PageSourceSearch

https://www.cuantica-studio.mx/_next/static/chunks/d8e9270f.ef43cb2af4126d7b.js

js cuantica-studio.mx collected 2026-10-08 11:06:12 UTC 2,272,521 bytes, 4,339 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3558],{39160:(e,t,n)=>{let r,i;n.d(t,{$6H:()=>iY,$_6:()=>ete,A1m:()=>aE,ADU:()=>D9,A_X:()=>ic,Aii:()=>etu,Az$:()=>zK,B1J:()=>ee3,BaK:()=>Mu,Bdt:()=>iJ,Bkf:()=>Mm,Bvg:()=>iW,ByQ:()=>Y_,C8j:()=>aM,CW3:()=>enR,Cu5:()=>ar,CuW:()=>mX,CzS:()=>zj,Dsj:()=>N7,FCT:()=>yZ,FP1:()=>iK,FUn:()=>enp,FfM:()=>i5,For:()=>co,G2c:()=>LV,GCV:()=>K5,GDb:()=>Mf,GW0:()=>r7,G_3:()=>Fb,H8m:()=>cz,HTc:()=>an,HuN:()=>etr,IMx:()=>ib,Ijd:()=>s8,J7:()=>Oa,JEU:()=>yG,Jd3:()=>Co,JhA:()=>MU,Jr6:()=>lS,Jrl:()=>lC,K0D:()=>lp,K1$:()=>Q1,KJ$:()=>l_,KgX:()=>iE,LIN:()=>cE,LJN:()=>Ms,Lay:()=>FP,LyQ:()=>Cp,M7h:()=>eto,M91:()=>oG,MLZ:()=>xE,MOl:()=>hD,MlF:()=>iw,Mlv:()=>i_,N6R:()=>etT,NO5:()=>vy,NeO:()=>ca,Ns2:()=>etM,P$5:()=>Mt,PaW:()=>IQ,QO2:()=>oW,QSs:()=>FE,R11:()=>ia,R8D:()=>id,Rdi:()=>s_,RwK:()=>yq,SfM:()=>zJ,Sjd:()=>MP,SxK:()=>ut,T4:()=>im,TLO:()=>C6,TMz:()=>ii,TU6:()=>D4,UYh:()=>aV,VJU:()=>rU,VMk:()=>W9,Vki:()=>Oo,Vq9:()=>ck,VrO:()=>FS,WUV:()=>Mg,XZv:()=>mT,Xhw:()=>iM,Y07:()=>Fv,Y73:()=>uj,YKH:()=>enm,YLU:()=>h6,YW1:()=>hE,Yfj:()=>W6,ZDR:()=>hR,Z_W:()=>pd,Zbb:()=>ee0,Zck:()=>iv,_4P:()=>ip,_Sr:()=>ix,_T7:()=>l$,_hI:()=>o4,_oG:()=>mh,aqr:()=>LO,ayN:()=>Mp,azN:()=>Mh,bCC:()=>iA,bSq:()=>yJ,bgA:()=>ets,bzQ:()=>aR,cMO:()=>cv,cUY:()=>r8,cUp:()=>ee8,cVB:()=>cW,cX9:()=>Ci,ctg:()=>iy,cyL:()=>iT,dWw:()=>Fz,drb:()=>lv,e8q:()=>Q2,eaL:()=>enP,fRg:()=>Cr,g19:()=>Q0,gJZ:()=>cn,gd4:()=>r5,gn8:()=>o0,hA9:()=>lE,i6N:()=>FV,iZK:()=>Cl,isY:()=>Ol,ixk:()=>cO,ixz:()=>Yw,jsZ:()=>x$,k0f:()=>ln,kbS:()=>etC,m2r:()=>KI,m6P:()=>cU,mLG:()=>qm,miu:()=>a7,mnZ:()=>etn,nHq:()=>BD,nfZ:()=>Cs,niW:()=>Og,o2j:()=>lw,oIj:()=>rY,okx:()=>Dt,olN:()=>enM,pDY:()=>Cm,pTS:()=>iD,pfD:()=>enu,q3J:()=>z6,r0j:()=>uK,sBy:()=>ig,tGd:()=>Ml,tH7:()=>ee7,tdH:()=>dM,tfA:()=>ik,ti5:()=>ee9,tmD:()=>vc,u4i:()=>iI,uD1:()=>enf,uMx:()=>MV,vM8:()=>dR,w1_:()=>hC,wG1:()=>enh,wI4:()=>lR,wwz:()=>yM,xo4:()=>lj,xx_:()=>hK,y4b:()=>Md,yKO:()=>z4,yW8:()=>dP,zOx:()=>Mc,zX2:()=>F$});var a=n(95155),o=n(11748),l=n(67547),s=n(12115),d=n(86697),c=n(4893),u=n(64509),p=n(59452),m=n(63997),h=n(77859),f=n(22654),g=n(60308),C=n(96241),y=n(8341),x=n(70189),b=n(47538),v=n(15374),j=n(19383),w=n(24274),_=n(8490),k=n(85755),S=n(61270),T=n(78242),I=n(47211),E=n(63704),$=n(54560),A=n(47891),D=n(36130),z=n(91436),M=n(77133),P=n(45037),R=n(32466),O=n(31536),V=n(34438),L=n(40712),F=n(25259),B=n(43756),N=n(29396),Y=n(34098),H=n(34030),Z=n(9618),U=n(39209),q=n(42764),J=n(43198),W=n(29279),K=n(59325),G=n(98203),X=n(89577),Q=n(86238),ee=n(64469),et=n(98396),en=n(15198),er=n(15440),ei=n(18362),ea=n(28205),eo=n(99148),el=n(32642),es=n(77241),ed=n(37305),ec=n(12718),eu=n(20981),ep=n(27887),em=n(28775),eh=n(50384),ef=n(13862),eg=n(41338),eC=n(41413),ey=n(16433),ex=n(54145),eb=n(20545),ev=n(3516),ej=n(25828),ew=n(60732),e_=n(49213),ek=n(43279),eS=n(86494),eT=n(40234),eI=n(65333),eE=n(53283),e$=n(83568),eA=n(28303),eD=n(81933),ez=n(37980),eM=n(10086),eP=n(70480),eR=n(69405),eO=n(64711),eV=n(96639),eL=n(44333),eF=n(40073),eB=n(76096),eN=n(35138),eY=n(66126),eH=n(60452),eZ=n(43475),eU=n(64494),eq=n(64681),eJ=n(87282),eW=n(84551),eK=n(15384),eG=n(97341),eX=n(19800),eQ=n(29894),e1=n(88106),e2=n(58140),e5=n(27754),e0=n(30114),e7=n(84460),e3=n(27883),e8=n(45547),e4=n(54152),e6=n(22644),e9=n(39971),te=n(13637),tt=n(30908),tn=n(99840),tr=n(35073),ti=n(32853),ta=n(90795),to=n(4774),tl=n(81952),ts=n(98374),td=n(49046),tc=n(2262),tu=n(78126),tp=n(90314),tm=n(46167),th=n(41957),tf=n(75571),tg=n(75412),tC=n(32617),ty=n(92503),tx=n(20365),tb=n(62562),tv=n(9166),tj=n(93259),tw=n(59675),t_=n(6067),tk=n(79489),tS=n(20279),tT=n(73219),tI=n(17071),tE=n(11655),t$=n(50291),tA=n(27741),tD=n(6502),tz=n(6284),tM=n(14002),tP=n(84148),tR=n(11074),tO=n(17362),tV=n(81765),tL=n(9135),tF=n(73807),tB=n(66316),tN=n(92081),tY=n(59622),tH=n(48090),tZ=n(56555),tU=n(68250),tq=n(46521),tJ=n(74743),tW=n(34471),tK=n(26497),tG=n(61927),tX=n(63270),tQ=n(83693),t1=n(80940),t2=n(34587),t5=n(23627),t0=n(85203),t7=n(21371),t3=n(86567),t8=n(5339),t4=n(89066),t6=n(61132),t9=n(90198),ne=n(11377),nt=n(58179),nn=n(49095),nr=n(55440),ni=n(98134),na=n(60147),no=n(98967),nl=n(34741),ns=n(86144),nd=n(17787),nc=n(93827),nu=n(49027),np=n(27587),nm=n(62057),nh=n(31194),nf=n(25997),ng=n(75725),nC=n(70469),ny=n(85862),nx=n(82476),nb=n(85116),nv=n(54704),nj=n(70361),nw=n(30338),n_=n(37121),nk=n(26719),nS=n(12309),nT=n(65211),nI=n(4399),nE=n(45362),n$=n(14806),nA=n(74578),nD=n(54166),nz=n(15779),nM=n(80276),nP=n(82993),nR=n(94752),nO=n(14996),nV=n(64311),nL=n(78411),nF=n(83399),nB=n(3472),nN=n(29761),nY=n(19849),nH=n(38586),nZ=n(29335),nU=n(22502),nq=n(92973),nJ=n(82751),nW=n(71674),nK=n(86001),nG=n(54845),nX=n(363),nQ=n(18975),n1=n(45993),n2=n(49759),n5=n(11506),n0=n(87267),n7=n(27122),n3=n(27627),n8=n(58409),n4=n(74449),n6=n(35336),n9=n(44092),re=n(5053),rt=n(679),rn=n(28138),rr=n(78332),ri=n(30827),ra=n(91039),ro=n(39420),rl=n(26745),rs=n(54272),rd=n(45687),rc=n(28568),ru=n(93261),rp=n(7603),rm=n(22991),rh=n(90886),rf=n(58496),rg
1=n(8186),rC=n(58626),ry=n(55415),rx=n(57433),rb=n(92653),rv=n(28423),rj=n(35787),rw=n(11867),r_=n(2485),rk=n(74620),rS=n(28253),rT=n(90176),rI=n(20628),rE=n(77767),r$=n(75794),rA=n(33642),rD=n(75627),rz=n(31529);n(12669);var rM=n(87358);let rP=(0,g.I4)(u.xA)`
2  align-items: flex-end;
3`;function rR(e){let{base:t,border:n,focusRing:r}=e,i=r.offset+r.width,a=0-r.offset,o=t?t.bg:"var(--card-bg-color)";return[a>0&&`inset 0 0 0 ${a}px var(--card-focus-ring-color)`,n&&`inset 0 0 0 ${n.width}px ${n.color}`,a<0&&`0 0 0 ${0-a}px ${o}`,i>0&&`0 0 0 ${i}px var(--card-focus-ring-color)`].filter(Boolean).join(",")}let rO="a,button",rV=g.I4.div(({theme:e,offset:t})=>(0,g.AH)`
4    bottom: ${-t}px;
5    border-radius: ${(0,u.D0)(e.sanity.radius[1])};
6    left: ${-t}px;
7    pointer-events: none;
8    position: absolute;
9    right: ${-t}px;
10    top: ${-t}px;
11    z-index: 2;
12
13    ${rF}:focus-visible & {
14      box-shadow: ${rR({base:e.sanity.color.base,focusRing:e.sanity.focusRing})};
15    }
16  `),rL=g.I4.div`
17  bottom: 0;
18  display: none;
19  left: 0;
20  position: absolute;
21  right: 0;
22  top: 0;
23  z-index: 1;
24
25  @media (hover: hover) {
26    &[data-enabled='true'] {
27      display: block;
28    }
29  }
30`,rF=(0,g.I4)(u.az)`
31  height: 100%;
32  outline: none;
33  overflow-x: hidden;
34  overflow-y: auto;
35  overscroll-behavior: contain;
36  width: 100%;
37`,rB=(0,g.I4)(u.az).attrs(({$height:e})=>({style:{height:`${e}px`}}))`
38  position: relative;
39  width: 100%;
40`,rN=(0,s.forwardRef)(function({activeItemDataAttr:e="data-active",ariaLabel:t,ariaMultiselectable:n=!1,autoFocus:r,canReceiveFocus:i,fixedHeight:o,focusRingOffset:l=0,getItemDisabled:d,getItemKey:c,getItemSelected:u,initialIndex:p,initialScrollAlign:h="start",inputElement:g,itemHeight:C,items:y,onEndReached:x,onEndReachedIndexOffset:b=0,onlyShowSelectionWhenActive:v,overscan:j,renderItem:w,testId:_,wrapAround:k=!0,...S},T){let I=(0,s.useRef)(!1),[E]=(0,s.useState)((0,s.useId)()),$=(0,s.useRef)(p??0),[A,D]=(0,s.use
40State)(null),[z,M]=(0,s.useState)(!1),[P,R]=(0,s.useState)(null),[O,V]=(0,s.useState)(null),L=(0,s.useCallback)(e=>{if(!x)return;let[t]=[...e.getVirtualItems()].reverse();t&&t.index>=y.length-b-1&&I.current&&x()},[x,y.length,b]),F=(0,m.Te)({count:y.length,getItemKey:c,getScrollElement:()=>O,estimateSize:()=>C,onChange:L,overscan:j}),B=(0,s.useMemo)(()=>{var e,t,n;let r;return e=y,t=d,n=u,r=-1,e.reduce((e,i,a)=>{let o=t?.(a)??!1,l=n?.(a)??!1;return o||(r+=1),e[a]={activeIndex:o?null:r,disabled:o,selected:l},e},[])},[d,u,y]),N=(0,s.useMemo)(()=>B.filter(e=>!e.disabled).length,[B]),Y=(0,s.useCallback)(e=>P?.setAttribute("data-enabled",(!e).toString()),[P]),H=(0,s.useCallback)(e=>`${E}-item-${e}`,[E]),Z=(0,s.useCallback)(()=>`${E}-children`,[E]),U=(0,s.useCallback)(()=>{let t=[g,O].some(e=>document.activeElement===e);(!v||t||z)&&Array.from(A?.children||[])?.forEach(t=>{let n=Number(t.dataset?.index),r=B[n]?.activeIndex;t.querySelector(rO)?.toggleAttribute(e,r===$.current)})},[e,A?.children,z,g,B,v,O]),q=(0,s.useCallback)(()=>{Array.from(A?.children||[])?.forEach(t=>{t.querySelector(rO)?.toggleAttribute(e,!1)})},[e,A?.children]),J=(0,s.useMemo)(()=>f(U,200),[U]),W=(0,s.useCallback)(()=>{let e=$?.current;y.length>0?(g?.setAttribute("aria-activedescendant",H(e)),O?.setAttribute("aria-activedescendant",H(e))):(g?.removeAttribute("aria-activedescendant"),O?.removeAttribute("aria-activedescendant"))},[H,g,y.length,O]),K=(0,s.useCallback)(()=>{let e=A?.parentElement;if(A&&e){let t=e.getBoundingClientRect().top-A.getBoundingClientRect().top;return F.getVirtualItemForOffset(t)?.index??-1}return -1},[A,F]),G=(0,s.useCallback)(({index:e,scrollAlign:t,scrollIntoView:n=!0})=>{if($.current=e,W(),U(),n){let n=B.findIndex(t=>t.activeIndex===e);n>-1&&F.scrollToIndex(n,t?{align:t}:{})}},[W,B,U,F]),X=(0,s.useCallback)(e=>{let t=-1,n=N-1;"next"===e&&(t=$.current<N-1?$.current+1:k?0:n),"previous"===e&&(t=$.current>0?$.current-1:k?n:0),G({index:t,scrollIntoView:!0}),Y(!1)},[N,Y,G,k]),Q=(0,s.useCallback)(e=>{switch(e){case"input":g?.focus();break;case"list":O?.focus()}},[g,O]),ee=(0,s.useCallback)(()=>{g?.focus()},[g]),et=(0,s.useCallback)(()=>{O?.focus()},[O]),en=(0,s.useCallback)(e=>()=>{G({index:e,scrollIntoView:!1})},[G]),er=(0,s.useCallback)(()=>{U()},[U]),ei=(0,s.useCallback)(e=>t=>{let n=Array.from(A?.children||[]);if(n.length&&("ArrowDown"===t.key&&(t.preventDefault(),Q(e),X("next")),"ArrowUp"===t.key&&(t.preventDefault(),Q(e),X("previous")),"Enter"===t.key)){t.preventDefault(),Q(e);let r=n.find(e=>Number(e.dataset.index)===B.findIndex(e=>e.activeIndex===$.current));r&&r?.querySelector(rO)?.click()}},[A?.children,Q,B,X]),ea=(0,s.useCallback)(e=>ei("input")(e),[ei]),eo=(0,s.useCallback)(e=>ei("list")(e),[ei]),el=(0,s.useCallback)(()=>{v&&(U(),M(!0))},[v,U]),es=(0,s.useCallback)(()=>{v&&(q(),M(!1))},[q,v]);(0,s.useImperativeHandle)(T,()=>({focusInputElement(){ee()},focusListElement(){et()},getTopIndex:()=>K(),scrollToIndex(e){G({index:e}),Y(!0)}}),[Y,ee,et,K,G]),(0,s.useEffect)(()=>{"u">typeof p&&!I.current&&G({index:p,scrollAlign:h,scrollIntoView:!0}),I.current=!0},[p,h,v,G]),(0,s.useEffect)(()=>{function e(){Y(!0)}return O?.addEventListener("mousemove",e),O?.addEventListener("wheel",e,{passive:!0}),()=>{O?.removeEventListener("mousemove",e),O?.removeEventListener("wheel",e)}},[Y,O]),(0,s.useEffect)(()=>(g?.addEventListener("focus",er),g?.addEventListener("keydown",ea),O?.addEventListener("focus",er),O?.addEventListener("keydown",eo),()=>{g?.removeEventListener("focus",er),g?.removeEventListener("keydown",ea),O?.removeEventListener("focus",er),O?.removeEventListener("keydown",eo)}),[i,er,ei,ea,eo,q,g,U,O]),(0,s.useEffect)(()=>{W()},[W,y]),(0,s.useEffect)(()=>{let e=new MutationObserver(J);return A&&e.observe(A,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[A,J]),(0,s.useEffect)(()=>{g?.setAttribute("aria-autocomplete","list"),g?.setAttribute("aria-expanded","true"),g?.setAttribute("aria-controls",Z()),g?.setAttribute("role","combobox")},[Z,g]),(0,s.useEffect)(()=>{r&&Q(r)},[r,i,et,ee,Q]);let ed=i?0:-1;return(0,a.jsxs)(rF,{id:Z(),onMouseEnter:el,onMouseLeave:es,ref:V,sizing:"border",tabIndex:ed,"data-testid":_,...S,children:[i&&(0,a.jsx)(rV,{offset:l}),(0,a.jsx)(rL,{"aria-hidden":"true","data-enabled":!0,ref:R}),F&&(0,a.jsx)(rB,{forwardedAs:"ul",$height:F.getTotalSize(),"aria-label":t,"aria-multiselectable":n,flex:1,ref:D,role:"listbox",children:F.getVirtualItems().map(e=>{let t=e.index,{activeIndex:r,disabled:i,selected:l}=B[t],d=w(y[t],{activeIndex:r,disabled:i,selected:l,virtualIndex:t}),c=(0,s.isValidElement)(d)&&d.type!=s.Fragment?(0,s.cloneElement)(d,{tabIndex:-1}):d;return(0,a.jsx)(rZ,{ref:o?void 0:F.measureElement,activeIndex:r,activeItem
40Count:N,ariaMultiselectable:n,disabled:i,fixedHeight:o?`${e.size}px`:void 0,getChildDescendantId:H,handleChildMouseEnter:en,selected:l,virtualIndex:t,virtualRowStart:e.start,children:c},e.key)})})]})}),rY=(0,s.memo)(rN);rY.displayName="Memo(ForwardRef(CommandList))";let rH=(0,s.forwardRef)(function(e,t){let{children:n,activeIndex:r,activeItemCount:i,ariaMultiselectable:o,disabled:l,fixedHeight:d,getChildDescendantId:c,handleChildMouseEnter:p,selected:m,virtualIndex:h,virtualRowStart:f}=e,g=(0,s.useMemo)(()=>"number"!=typeof r||l?void 0:p(r),[r,l,p]),C=(0,s.useMemo)(()=>"number"!=typeof r||l?{}:{"aria-posinset":r+1,...o?{"aria-selected":m.toString()}:{},"aria-setsize":i,id:c(r),role:"option"},[r,i,o,l,c,m]),y=(0,s.useMemo)(()=>({flex:1,height:d,left:0,position:"absolute",top:0,transform:`translateY(${f}px)`,width:"100%"}),[d,f]);return(0,a.jsx)(u.BJ,{as:"li","data-index":h,ref:t,style:y,tabIndex:-1,...C,onMouseEnter:g,children:n})}),rZ=(0,s.memo)(rH);rZ.displayName="Memo(ForwardRef(CommandListItem))";let rU=(0,s.forwardRef)(function(e,t){let n,r,i,l,s,d,c,u=(0,o.c)(17);u[0]!==e?({mode:r,tooltipProps:l,tone:i,...n}=e,u[0]=e,u[1]=n,u[2]=r,u[3]=i,u[4]=l):(n=u[1],r=u[2],i=u[3],l=u[4]);let p=void 0===r?"bleed":r,{t:m}=iJ();return u[5]!==m||u[6]!==l?.content?(s=l?.content||m("common.context-menu-button.tooltip"),u[5]=m,u[6]=l?.content,u[7]=s):s=u[7],u[8]!==s||u[9]!==l?(d={...l,content:s},u[8]=s,u[9]=l,u[10]=d):d=u[10],u[11]!==p||u[12]!==t||u[13]!==n||u[14]!==d||u[15]!==i?(c=(0,a.jsx)(y.$n,{...n,icon:C.riS,mode:p,ref:t,tone:i,tooltipProps:d}),u[11]=p,u[12]=t,u[13]=n,u[14]=d,u[15]=i,u[16]=c):c=u[16],c});function rq({name:e,title:t},n){return"string"==typeof e&&e.trim().length>0?e:rJ(t,n)}function rJ(e,t){let n="string"==typeof e&&e.trim().length>0?` (titled "${e}")`:"";return`at index ${t}${n}`}function rW(){let e=(0,s.useContext)(c.WB);if(!e)throw Error("Could not find `workspaces` context");return e}class rK extends Error{constructor(e,t){super(e),this.name="WorkspaceValidationError",this.index=t?.index,this.identifier=t?.workspace&&rq(t.workspace,t.index)}}function rG(e,t){let{name:n,basePath:r}=e;if(r&&"string"==typeof r)return!0;throw typeof r>"u"?new rK(`If more than one workspace is defined, every workspace must have a \`basePath\` defined. Workspace \`${n}\` is missing a \`basePath\``,{workspace:e,index:t}):new rK(`If more than one workspace is defined, every workspace must have a \`basePath\` defined. Workspace \`${n}\` has an invalid \`basePath\` (must be a non-empty string)`,{workspace:e,index:t})}function rX(e,t){let{name:n,basePath:r}=e;if(!(!r||"/"===r)&&!/^\/[a-z0-9/_-]*[a-z0-9_-]+$/i.test(r))throw new rK(`All workspace \`basePath\`s must start with a leading \`/\`, consist of only URL safe characters, and cannot end with a trailing \`/\`. Workspace \`${n}\`'s basePath is \`${r}\``,{workspace:e,index:t})}let rQ=(0,g.I4)(u.Zp)(({$fill:e})=>(0,g.AH)`
41    align-items: center;
42    box-sizing: border-box;
43    display: flex;
44    flex-direction: column;
45    justify-content: center;
46
47    ${e?(0,g.AH)`
48          bottom: 0;
49          height: 100%;
50          left: 0;
51          position: absolute;
52          right: 0;
53          top: 0;
54          width: 100%;
55        `:(0,g.AH)`
56          min-height: 75px;
57          height: stretch;
58          height: -webkit-fill-available;
59          width: stretch;
60          width: -webkit-fill-available;
61        `}
62
63    ${!1}
64
65    > * {
66      position: absolute;
67    }
68  `),r1=(0,g.I4)(u.y$)(({$animatePosition:e=!0})=>(0,g.AH)`
69    @keyframes fadeIn {
70      from {
71        opacity: 0;
72      }
73      to {
74        opacity: 1;
75      }
76    }
77    @keyframes slideUp {
78      from {
79        transform: translateY(0);
80      }
81      to {
82        transform: translateY(-15px);
83      }
84    }
85    animation: ${e?"500ms ease-out 750ms 1 normal both running fadeIn, 750ms ease-out 2000ms 1 normal both running slideUp":"500ms ease-out 750ms 1 normal both running fadeIn"};
86  `),r2=(0,g.I4)(u.EY)`
87  @keyframes fadeIn {
88    from {
89      opacity: 0;
90    }
91    to {
92      opacity: 1;
93    }
94  }
95  @keyframes slideDown {
96    from {
97      transform: translateY(0);
98    }
99    to {
100      transform: translateY(15px);
101    }
102  }
103  animation:
104    1500ms ease-out ${2e3}ms 1 normal both running fadeIn,
105    750ms ease-out ${2e3}ms 1 normal both running slideDown;
106`;function r5(e){let t,n,r,i=(0,o.c)(10),{fill:l,showText:s,title:d}=e,c=l?u.Wd:"div",p=!!s;return i[0]!==p?(t=(0,a.jsx)(r1,{$animatePosition:p,muted:!0}
106),i[0]=p,i[1]=t):t=i[1],i[2]!==s||i[3]!==d?(n=s&&(0,a.jsx)(r0,{title:d}),i[2]=s,i[3]=d,i[4]=n):n=i[4],i[5]!==l||i[6]!==c||i[7]!==t||i[8]!==n?(r=(0,a.jsxs)(rQ,{$fill:l,as:c,"data-testid":"loading-block",children:[t,n]}),i[5]=l,i[6]=c,i[7]=t,i[8]=n,i[9]=r):r=i[9],r}function r0(e){let t,n,r=(0,o.c)(5),{title:i}=e,{t:l}=iJ();return r[0]!==l||r[1]!==i?(t=i||l("common.loading"),r[0]=l,r[1]=i,r[2]=t):t=r[2],r[3]!==t?(n=(0,a.jsx)(r2,{muted:!0,size:1,children:t}),r[3]=t,r[4]=n):n=r[4],n}function r7(e){return e}function r3(e){return!("then"in e.resources&&"function"==typeof e.resources.then)}function r8(e,t){return t}let r4="studio",r6={id:"en-US",title:"English (US)",bundles:[{locale:"en-US",namespace:r4,resources:{"about-dialog.version-info.auto-updates.disabled":"Disabled","about-dialog.version-info.auto-updates.enabled":"Enabled","about-dialog.version-info.auto-updates.header":"Auto Updates","about-dialog.version-info.auto-updates.how-to-enable":"How to enable","about-dialog.version-info.copy-to-clipboard-button.copied-text":"Copied to Clipboard. Happy pasting!","about-dialog.version-info.copy-to-clipboard-button.text":"Copy to Clipboard","about-dialog.version-info.current-version.header":"Current version","about-dialog.version-info.how-to-upgrade":"How to upgrade","about-dialog.version-info.latest-version.header":"Latest version","about-dialog.version-info.latest-version.text":"Latest version is {{latestVersion}}","about-dialog.version-info.up-to-date":"Up to date","about-dialog.version-info.user-agent.header":"User agent","announcement.dialog.close"
106:"Close","announcement.dialog.close-label":"Close dialog","announcement.floating-button.dismiss":"Close","announcement.floating-button.dismiss-label":"Dismiss announcements","announcement.floating-button.open-label":"Open announcements","asset-source.asset-list.menu.delete":"Delete","asset-source.asset-list.menu.show-usage":"Show usage","asset-source.asset-usage-dialog.header_file":"Documents using file","asset-source.asset-usage-dialog.header_image":"Documents using image","asset-source.asset-usage-dialog.loading":"Loading…","asset-source.delete-dialog.action.cancel":"Cancel","asset-source.delete-dialog.action.delete":"Delete","asset-source.delete-dialog.header_file":"Delete file","asset-source.delete-dialog.header_image":"Delete image","asset-source.delete-dialog.loading":"Loading…","asset-source.delete-dialog.usage-list.confirm-delete-file_named":"You are about to delete the file <strong>{{filename}}</strong> and its metadata. Are you sure?","asset-source.delete-dialog.usage-list.confirm-delete-file_unnamed":"You are about to delete the file and its metadata. Are you sure?","asset-source.delete-dialog.usage-list.confirm-delete-image_named":"You are about to delete the image <strong>{{filename}}</strong> and its metadata. Are you sure?","asset-source.delete-dialog.usage-list.confirm-delete-image_unnamed":"You are about to delete the image and its metadata. Are you sure?","asset-source.delete-dialog.usage-list.image-preview-alt":"Preview of image","asset-source.delete-dialog.usage-list.warning-file-is-in-use_named":"{{filename}} cannot be deleted because it's being used. In order to delete this file, you first need to remove all uses of it.","asset-source.delete-dialog.usage-list.warning-file-is-in-use_unnamed":"This file cannot be deleted because it's being used. In order to delete it, you first need to remove all uses of it.","asset-source.delete-dialog.usage-list.warning-image-is-in-use_named":"{{filename}} cannot be deleted because it's being used. In order to delete this image, you first need to remove all uses of it.","asset-source.delete-dialog.usage-list.warning-image-is-in-use_unnamed":"This image cannot be deleted because it's being used. In order to delete it, you first need to remove all uses of it.","asset-source.dialog.accept-message":"Only showing assets of accepted types: <strong>{{acceptTypes}}</strong>","asset-source.dialog.button.cancel":"Cancel","asset-source.dialog.button.select":"Select","asset-source.dialog.default-title_file":"Select file","asset-source.dialog.default-title_image":"Select image","asset-source.dialog.insert-asset-error":"Error inserting asset. See the console for more information.","asset-source.dialog.load-more":"Load more","asset-source.dialog.no-assets_file":"No files","asset-source.dialog.no-assets_image":"No images","asset-source.file.asset-list.action.delete.disabled-cannot-delete-current-file":"Cannot delete currently selected file","asset-source.file.asset-list.action.delete.text":"Delete","asset-source.file.asset-list.action.delete.title":"Delete file","asset-source.file.asset-list.action.select-file.title":"Select the file {{filename}}","asset-source.file.asset-list.action.show-usage.title":"Show usage","asset-source.file.asset-list.delete-failed":"File could not be deleted","asset-source.file.asset-list.delete-successful":"File was deleted","asset-source.file.asset-list.header.date-added":"Date added","asset-source.file.asset-list.header.filename":"Filename","asset-source.file.asset-list.header.size":"Size","asset-source.file.asset-list.header.type":"Type","asset-source.file.title":"Uploaded files","asset-source.image.asset-list.delete-failed":"Image could not be deleted","asset-source.image.asset-list.delete-successful":"Image was deleted","asset-source.image.title":"Uploaded images","asset-source.usage-list.documents-using-file_named_one":"One document is using file <code>{{filename}}</code>","asset-source.usage-list.documents-using-file_named_other":"{{count}} documents are using file <code>{{filename}}</code>","asset-source.usage-list.documents-using-file_named_zero":"No documents are using file <code>{{filename}}</code>","asset-source.usage-list.documents-using-file_unnamed_one":"One document is using this file","asset-source.usage-list.documents-using-file_unnamed_other":"{{count}} documents are using this file","asset-source.usage-list.documents-using-file_unnamed_zero":"No documents are using this file","asset-source.usage-list.documents-using-image_named_one":"One document is using image <code>{{filename}}</code>","asset-source.usage-list.documents-using-image_named_other":"{{count}} documents are using image <code>{{filename}}</code>","asset-source.usage-list.documents-using-image_named_zero":"No documents are using image <code>{{filename}}</code>","asset-source.usage-list.documents-using-image_unnamed_one":"One document is using this image","asset-source.usage-list.documents-using-image_unnamed_other":"{{count}} documents are using this image","asset-source.usage-list.documents-using-image_unnamed_zero":"No documents are using this image","asset-sources.common.uploader.upload-failed.description":"See the console for more information.","asset-sources.common.uploader.upload-failed.title":"Upload failed","asset-sources.dataset.f
106ile.title":"Workspace files","asset-sources.dataset.image.title":"Workspace images","asset-sources.media-library.error.library-could-not-be-resolved":"Something went wrong trying to resolve the Media Library for this project.","asset-sources.media-library.file.title":"Media Library","asset-sources.media-library.image.title":"Media Library","asset-sources.media-library.info.provisioning":"Please wait while we prepare your Media Library","banners.deleted-bundle-banner.text":"The '<strong>{{title}}</strong>' release has been deleted.","calendar.action.go-to-next-month":"Go to next month","calendar.action.go-to-next-year":"Go to next year","calendar.action.go-to-previous-month":"Go to previous month","calendar.action.go-to-previous-year":"Go to previous year","calendar.action.go-to-today":"Today","calendar.action.go-to-today-aria-label":"Go to today","calendar.action.go-to-tomorrow":"Tomorrow","calendar.action.go-to-yesterday":"Yesterday","calendar.action.include-time-label":"Include time","calendar.action.select-time":"Select time","calendar.action.set-to-current-time":"Set to current time","calendar.action.set-to-time-preset":"{{time}} on {{date, datetime}}","calendar.button.aria-label":"Open calendar","calendar.button.tooltip-text":"Select date","calendar.error.must-be-in-format":"Must be in the format: {{exampleDate}}","calendar.month-names.april":"April","calendar.month-names.august":"August","calendar.month-names.december":"December","calendar.month-names.february":"February","calendar.month-names.january":"January","calendar.month-names.july":"July","calendar.month-names.june":"June","calendar.month-names.march":"March","calendar.month-names.may":"May","calendar.month-names.november":"November","calendar.month-names.october":"October","calendar.month-names.september":"September","calendar.weekday-names.short.friday":"Fri","calendar.weekday-names.short.monday":"Mon","calendar.weekday-names.short.saturday":"Sat","calendar.weekday-names.short.sunday":"Sun","calendar.weekday-names.short.thursday":"Thu","calendar.weekday-names.short.tuesday":"Tue","calendar.weekday-names.short.wednesday":"Wed","changes.action.close-label":"Close history","changes.action.revert-all-cancel":"Cancel","changes.action.revert-all-confirm":"Revert all","changes.action.revert-all-description":"Are you sure you want to revert all {{count}} changes?","changes.action.revert-changes-confirm-change_one":"Revert change","changes.action.revert-changes-confirm-change_other":"Revert changes","changes.action.revert-changes-description":"Are you sure you want to revert the changes?","changes.action.revert-changes-description_one":"Are you sure you want to revert the change?","changes.added-label":"Added","changes.array.item-added-in-position":"Added in position {{position}}","changes.array.item-moved_down_one":"Moved {{count}} position down","changes.array.item-moved_down_other":"Moved {{count}} positions down","changes.array.item-moved_up_one":"Moved {{count}} position up","changes.array.item-moved_up_other":"Moved {{count}} positions up","changes.array.item-removed-from-position":"Removed from position {{position}}","changes.change-bar.aria-label":"Review changes","changes.changed-label":"Changed","changes.changes-by-author":"Changes by","changes.error-boundary.developer-info":"Check the developer console for more information","changes.error-boundary.title":"Rendering the changes to this field caused an error","changes.error-description":"We're unable to load the changes for this document.","changes.error-title":"Something went wrong","changes.error.incorrect-type-message":'Value error: Value is of type "<code>{{actualType}}</code>", expected "<code>{{expectedType}}</code>"',"changes.file.meta-info-fallback-title":"Untitled","changes.image.crop-changed":"Crop changed","changes.image.deleted":"Image deleted","changes.image.error-loading-image":"Error loading image","changes.image.hotspot-changed":"Hotspot changed","changes.image.meta-info-fallback-title":"Untitled","changes.image.no-asset-set":"Image not set","changes.image.no-image-placeholder":"(no image)","changes.inspector.from-label":"From","changes.inspector.meta-label":"Meta","changes.inspector.to-label":"To","changes.loading-author":"Loading…","changes.loading-changes":"Loading changes…","changes.missing-since-document-error":"We couldn't find the document revision with id: <code>{{revisionId}}</code> you're trying to compare. <Break/> This is probably due to history retention policy of your plan. <Break/> Please select a different <strong>From</strong> entry.","changes.no-changes-description":"Edit the document or select an older version in the timeline to see a list of changes appear in this panel.","changes.no-changes-title":"There are no changes","changes.not-selectable":"It is not possible to select this event","changes.portable-text.annotation_added":"Added annotation","changes.portable-text.annotation_changed":"Changed annotation","changes.portable-text.annotation_removed":"Removed annotation","changes.portable-text.annotation_unchanged":"Unchanged annotation","changes.portable-text.block-style-changed":'Changed block style from "{{fromStyle}}" to "{{toStyle}}"',"changes.portable-text.changed-formatting":"Changed formatting","changes.portable-text.empty-inline-object":"Empty {{inlineObjectType}}","changes.portable-text.empty-object-annotation":"Empty {{annotationType}}","changes.portable-text.empty-text_added":"Added empty text","changes.portable-text.empty-text_changed":"Changed empty text","changes.portable-text.empty-text_removed":"Removed empty text","changes.portable-text.inline-object_added":"Added inline object","changes.portable-text.inline-object_changed":"Changed inline object","changes.portable-text.inline-object_removed":"Removed inline object","changes.portable-text.inline-object_unchanged":"Unchanged inline object","changes.portable-text.text_added":"Added text","changes.portable-text.text_removed":"Removed text","changes.portable-text.unknown-annotation-schema-type":"Unknown schema type","changes.portable-text.unknown-inline-object-schema-type":"Unknown schema type","changes.removed-label":"Removed","changes.same-revision-selected-description":"You have selected the same <strong>from</strong> and <strong>to</strong> revision, please select different revisions to compare the changes between them.","changes.same-revision-selected-title":"Same revision selected","changes.title":"History","changes.versions.draft":"Draft","common.context-menu-button.tooltip":"Show more","common.dialog.cancel-button.text":"Cancel","common.dialog.confirm-button.text":"Confirm","common.loading":"Loading","common.reconnecting.toast.title":"Trying to connect…","configuration-issues.button.label":"Configuration issues","configuration-issues.button.tooltip":"Found configuration issues","default-menu-item.fallback-title":"Sort by {{title}}","default-orderings.caption":"Sort by Caption","default-orderings.description":"Sort by Description","default-orderings.header":"Sort by Header","default-orderings.heading":"Sort by Heading","default-orderings.label":"Sort by Label","default-orderings.name":"Sort by Name","default-orderings.title":"Sort by Title","document-status.created":"Created {{date}}","document-status.date":"{{date}}","document-status.edited":"Edited {{date}}","document-status.not-published":"Not published","document-status.published":"Published {{date}}","document-status.revision-from":"Revision from <em>{{date}}</em>","document-status.revision-not-found":"Revision not found","document.type.not-found":'Document type "{{type}}" not found',"form.error.duplicate-keys-alert.details.additional-description":"The value of the <code>_key</code> property must be a unique string.","form.error.duplicate-keys-alert.details.description":"This usually happens when items are created using an API client, and the <code>_key</code> property of each elements has been generated non-uniquely.","form.error.duplicate-keys-alert.details.title":"Developer info","form.error.duplicate-keys-alert.generate-button.text":"Generate unique keys","form.error.duplicate-keys-alert.summary":"Several items in this list share the same identifier (key). Every item must have an unique identifier.","form.error.duplicate-keys-alert.title":"Non-unique keys","form.error.field-not-found":'Field "{{fieldName}}" not found among members – verify that it is defined in the schema and that it has not been conditionally hidden.',"form.error.missing-keys-alert.add-button.text":"Add missing keys","form.error.missing-keys-alert.details.additional-description":"The value of the <code>_key</code> property must be a unique string.","form.error.missing-keys-alert.details.description":"This usually happens when items are created using an API client, and the <code>_key</code> property has not been included.","form.error.missing-keys-alert.details.title":"Developer info","form.error.missing-keys-alert.summary":"Some items in the list are missing their keys. This must be fixed in order to edit the list.","form.error.missing-keys-alert.title":"Missing keys","form.error.mixed-array-alert.details.description":"This usually happens when items are created using an API client, or when a custom input component has added invali
106d data to the list.","form.error.mixed-array-alert.details.title":"Developer info","form.error.mixed-array-alert.remove-button.text":"Remove non-object values","form.error.mixed-array-alert.summary":"Some items in this list are not objects. This must be fixed in order to edit the list.","form.error.mixed-array-alert.title":"Invalid list values","form.error.no-array-item-at-index":"No array item at index <code>{{index}}</code> found at path <code>{{path}}</code>","form.error.no-array-item-at-key":'No array item with `_key` <code>"{{key}}"</code> found at path <code>{{path}}</code>',"form.error.unhandled-runtime-error.call-stack.title":"Call Stack:","form.error.unhandled-runtime-error.component-stack.title":"Component Stack:","form.error.unhandled-runtime-error.error-message":"Error: {{message}}","form.error.unhandled-runtime-error.title":"Unhandled Runtime Error","form.field.deprecated-label":"deprecated","form.field.untitled-field-label":"Untitled","form.validation.has-error-aria-label":"Has error","form.validation.has-info-aria-label":"Has information","form.validation.has-warning-aria-label":"Has warning","form.validation.summary.errors-count_one":"{{count}} error","form.validation.summary.errors-count_other":"{{count}} errors","form.validation.summary.warnings-count_one":"{{count}} warning","form.validation.summary.warnings-count_other":"{{count}} warnings","free-trial.tooltip.days-count_one":"{{count}} day left in trial","free-trial.tooltip.days-count_other":"{{count}} days left in trial","free-trial.tooltip.trial-finished":"Upgrade your project","help-resources.action.contact-sales":"Contact sales","help-resources.action.help-and-support":"Help and support","help-resources.action.join-our-community":"Join our community","help-resources.latest-sanity-version":"Latest version is {{latestVersion}}","help-resources.studio-version":"Sanity Studio version {{studioVersion}}","help-resources.title":"Help and resources","input.files.common.cancel-upload":"Cancel","input.files.common.upload-placeholder.file-input-button.default-source.badge":"Default","input.files.common.upload-placeholder.file-input-button.text":"Upload","input.files.common.upload-progress":"Uploading <FileName/>","input.reference.document-cannot-be-opened.failed-to-resolve-url":"This document cannot be opened (unable to resolve URL to Studio)","inputs.array.action.add-after":"Add item after","inputs.array.action.add-before":"Add item before","inputs.array.action.add-item":"Add item","inputs.array.action.add-item-select-type":"Add item...","inputs.array.action.copy":"Copy","inputs.array.action.drag.tooltip":"Drag to re-order","inputs.array.action.duplicate":"Duplicate","inputs.array.action.edit":"Edit {{itemTypeTitle}}","inputs.array.action.remove":"Remove","inputs.array.action.remove-invalid-item":"Remove","inputs.array.action.view":"View {{itemTypeTitle}}","inputs.array.error.can-delete-but-no-edit-description":"You can still move or delete this item, but it cannot be edited since the schema definition for its type is nowhere to be found.","inputs.array.error.cannot-resolve-initial-value-title":"Unable to resolve initial value for type: {{schemaTypeTitle}}: {{errorMessage}}.","inputs.array.error.cannot-upload-unable-to-convert_one":"The following item can't be uploaded because there's no known conversion from content type to array item:","inputs.array.error.cannot-upload-unable-to-convert_other":"The following items can't be uploaded because there's no known conversion from content types to array item:","inputs.array.error.current-schema-not-declare-description":"The current schema does not declare items of type <code>{{typeName}}</code> as valid for this list. This could mean that the type has been removed as a valid item type, or that someone else has added it to their own local schema that is not yet deployed.","inputs.array.error.json-representation-description":"JSON representation of this item:","inputs.array.error.type-is-incompatible-prompt":"Item of type <code>{{typeName}}</code> not valid for this list","inputs.array.error.type-is-incompatible-title":"Why is this happening?","inputs.array.error.unexpected-error":"Unexpected Error: {{error}}","inputs.array.insert-menu.filter.all-items":"All","inputs.array.insert-menu.search.no-results":"No items found","inputs.array.insert-menu.search.placeholder":"Search","inputs.array.insert-menu.toggle-grid-view.tooltip":"Toggle grid view","inputs.array.insert-menu.toggle-list-view.tooltip":"Toggle list view","inputs.array.no-items-label":"No items","inputs.array.read-only-label":"This field is read-only","inputs.array.resolving-initial-value":"Resolving initial value…","inputs.boolean.disabled":"Disabled","inputs.dateTime.past-date-warning":"Select a date in the future.","inputs.datetime.placeholder":"e.g. {{example}}","inputs.file.actions-menu.file-options.aria-label":"Open file options menu","inputs.file.browse-button.text":"Select","inputs.file.dialog.title":"Select file","inputs.file.error.unknown-member-kind":"Unknown member kind: {{kind}}
106","inputs.file.invalid-file-warning.description":"The value of this field is not a valid file. Resetting this field will let you choose a new file.","inputs.file.invalid-file-warning.reset-button.text":"Reset value","inputs.file.invalid-file-warning.title":"Invalid file value","inputs.file.multi-browse-button.text":"Select","inputs.file.upload-failed.description":"The upload could not be completed at this time.","inputs.file.upload-failed.title":"Upload failed","inputs.files.common.actions-menu.clear-field.label":"Clear field","inputs.files.common.actions-menu.copy-url.label":"Copy URL","inputs.files.common.actions-menu.download.label":"Download","inputs.files.common.actions-menu.notification.url-copied":"The URL is copied to the clipboard","inputs.files.common.actions-menu.replace.label":"Replace","inputs.files.common.actions-menu.upload.label":"Upload","inputs.files.common.drop-message.drop-to-upload":"Drop to upload","inputs.files.common.drop-message.drop-to-upload-multi_one":"Drop to upload {{count}} file","inputs.files.common.drop-message.drop-to-upload-multi_other":"Drop to upload {{count}} files","inputs.files.common.drop-message.drop-to-upload.no-accepted-file-message_one":"Can't upload this file here","inputs.files.common.drop-message.drop-to-upload.no-accepted-file-message_other":"Can't upload any of these files here","inputs.files.common.drop-message.drop-to-upload.rejected-file-message_one":"{{count}} file can't be uploaded here","inputs.files.common.drop-message.drop-to-upload.rejected-file-message_other":"{{count}} files can't be uploaded here","inputs.files.common.placeholder.cannot-upload-some-files_one":"Cannot upload file","inputs.files.common.placeholder.cannot-upload-some-files_other":"Cannot upload {{count}} files","inputs.files.common.placeholder.drag-or-paste-to-upload_file":"Drag or paste file here","inputs.files.common.placeholder.drag-or-paste-to-upload_image":"Drag or paste image here","inputs.files.common.placeholder.drop-to-upload_file":"Drop to upload file","inputs.files.common.placeholder.drop-to-upload_image":"Drop to upload image","inputs.files.common.placeholder.read-only":"Read only","inputs.files.common.placeholder.select-asset-source-upload-destination":"Upload files to:","inputs.files.common.placeholder.upload-not-supported":"Can't upload files here","inputs.files.common.stale-upload-warning.clear":"Clear upload","inputs.files.common.stale-upload-warning.description":"An upload has made no progress for at least {{staleThresholdMinutes}} minutes and likely got interrupted. You can safely clear the incomplete upload and try uploading again.","inputs.files.common.stale-upload-warning.title":"Incomplete upload","inputs.image.actions-menu.crop-image-tooltip":"Crop image","inputs.image.actions-menu.edit-details.aria-label":"Open image edit dialog","inputs.image.actions-menu.options.aria-label":"Open image options menu","inputs.image.browse-menu.text":"Select","inputs.image.drag-overlay.cannot-upload-here":"Cannot upload this file here","inputs.image.drag-overlay.drop-to-upload-image":"Drop image to upload","inputs.image.drag-overlay.this-field-is-read-only":"This field is read only","inputs.image.error.unknown-member-kind":"Unknown member kind: {{kind}}","inputs.image.hotspot-dialog.title":"Edit hotspot and crop","inputs.image.invalid-image-warning.description":"The value of this field is not a valid image. Resetting this field will let you choose a new image.","inputs.image.invalid-image-warning.reset-button.text":"Reset value","inputs.image.invalid-image-warning.title":"Invalid image value","inputs.image.preview-uploaded-image":"Preview of uploaded image","inputs.image.upload-error.description":"The upload could not be completed at this time.","inputs.image.upload-error.title":"Upload failed","inputs.imagetool.description":"Adjust the rectangle to crop image. Adjust the circle to specify the area that should always be visible.","inputs.imagetool.load-error":"Error: {{errorMessage}}","inputs.imagetool.title":"Hotspot & Crop","inputs.imagetool.vector-warning.developer-info":"The Asset Pipeline does not support hotspot and crop for vector formats. To enable hotspot & crop, output this image to any of the supported raster formats. For example: <code>fm=jpg</code> to the <ImageUrlDocumentationLink>image URL</ImageUrlDocumentationLink> or call <code>.format('png')</code>
106 with <ImageUrlPackageDocumentationLink>@sanity/image-url</ImageUrlPackageDocumentationLink>.","inputs.imagetool.vector-warning.expand-developer-info":"See developer info","inputs.imagetool.vector-warning.title":"Warning: Hotspot and crop might not be applied to this image where it's presented.","inputs.invalid-value.convert-button.text":"Convert to {{targetType}}","inputs.invalid-value.current-type":"The current value (<code>{{actualType}}</code>)","inputs.invalid-value.description":"The property value is stored as a value type that does not match the expected type.","inputs.invalid-value.details.description":"The value of this property must be of type <code>{{validType}}</code> according to the schema.","inputs.invalid-value.details.multi-type-description":"Only the following types are valid here according to schema:","inputs.invalid-value.details.possible-reason":"Mismatching value types typically occur when the schema has recently been changed.","inputs.invalid-value.details.title":"Developer info","inputs.invalid-value.reset-button.text":"Reset value","inputs.invalid-value.title":"Invalid property value","inputs.object.field-group-tabs.all-fields-title":"All fields","inputs.object.field-group-tabs.aria-label":"Field groups","inputs.object.unknown-fields.read-only.description":"This field is <strong>read only</strong> according to the document’s schema and cannot be unset. If you want to be able to unset this in Studio, make sure you remove the <code>readOnly</code> field from the enclosing type in the schema.","inputs.object.unknown-fields.remove-field-button.text":"Remove field","inputs.object.unknown-fields.warning.description_one":"Encountered a field that is not defined in the schema.","inputs.object.unknown-fields.warning.description_other":"Encountered {{count}} fields that are not defined in the schema.","inputs.object.unknown-fields.warning.details.description_one":"This field is not defined in the schema, which could mean that the field definition has been removed or that someone else has added it to their own local project and have not deployed their changes yet.","inputs.object.unknown-fields.warning.details.description_other":"These fields are not defined in the document’s schema, which could mean that the field definitions have been removed or that someone else has added them to their own local project and have not deployed their changes yet.","inputs.object.unknown-fields.warning.details.title":"Developer info","inputs.object.unknown-fields.warning.title_one":"Unknown field found","inputs.object.unknown-fields.warning.title_other":"Unknown fields found","inputs.portable-text.action.collapse-editor":"Collapse editor","inputs.portable-text.action.edit-annotation-aria-label":"Edit annotation","inputs.portable-text.action.expand-editor":"Expand editor","inputs.portable-text.action.insert-block":"Insert {{typeName}}","inputs.portable-text.action.insert-block-aria-label":"Insert {{typeName}} (block)","inputs.portable-text.action.insert-inline-object":"Insert {{typeName}}","inputs.portable-text.action.insert-inline-object-aria-label":"Insert {{typeName}} (inline)","inputs.portable-text.action.remove-annotation-aria-label":"Remove annotation","inputs.portable-text.activate-on-focus-message_click":"Click to activate","inputs.portable-text.activate-on-focus-message_click-focused":"Click or press space to activate","inputs.portable-text.activate-on-focus-message_tap":"Tap to activate","inputs.portable-text.annotation-aria-label":"Annotation object","inputs.portable-text.annotation-editor.title":"Edit {{schemaType}}","inputs.portable-text.annotation.link":"Link","inputs.portable-text.block.aria-label":"Block object","inputs.portable-text.block.edit":"Edit","inputs.portable-text.block.open-menu-aria-label":"Open menu","inputs.portable-text.block.open-reference":"Open reference","inputs.portable-text.block.remove":"Remove","inputs.portable-text.block.view":"View","inputs.portable-text.decorator.code":"Code","inputs.portable-text.decorator.emphasis":"Italic","inputs.portable-text.decorator.strike-through":"Strike","inputs.portable-text.decorator.strong":"Strong","inputs.portable-text.decorator.underline":"Underline","inputs.portable-text.empty-placeholder":"Empty","inputs.portable-text.inline-block.aria-label":"Inline object","inputs.portable-text.inline-object.edit":"Edit object","inputs.portable-text.inline-object.edit-aria-label":"Edit object","inputs.portable-text.inline-object.remove":"Remove object","inputs.portable-text.inline-object.remove-aria-label":"Remove object","inputs.portable-text.invali
106d-value.action-disclaimer":"NOTE: It’s generally safe to perform the action above, but if you are in doubt, get in touch with those responsible for configuring your studio.","inputs.portable-text.invalid-value.disallowed-child-type.action":"Remove the object","inputs.portable-text.invalid-value.disallowed-child-type.description":"Child with key {{childKey}} of block with key <code>{{key}}</code> is of type <code>{{childType}}</code>, which is not allowed by the schema.","inputs.portable-text.invalid-value.disallowed-type.action":"Remove the block","inputs.portable-text.invalid-value.disallowed-type.description":"Block with key <code>{{key}}</code> is of type <code>{{typeName}}</code>, which is not allowed by the schema.","inputs.portable-text.invalid-value.empty-children.action":"Insert empty text span","inputs.portable-text.invalid-value.empty-children.description":"Text block with key <code>{{key}}</code> has no text spans.","inputs.portable-text.invalid-value.ignore-button.text":"Ignore","inputs.portable-text.invalid-value.incorrect-block-type.action":"Use type <code>{{expectedTypeName}}</code>","inputs.portable-text.invalid-value.incorrect-block-type.description":"Block with key <code>{{key}}</code> has an invalid type name. According to the schema, it should be <code>{{expectedTypeName}}</code>
106.","inputs.portable-text.invalid-value.invalid-span-text.action":"Set empty text value","inputs.portable-text.invalid-value.invalid-span-text.description":"Span with key {{childKey}} of block with key <code>{{key}}</code> has a missing or invalid <code>text</code> property.","inputs.portable-text.invalid-value.missing-block-type.action":"Use type <code>{{expectedTypeName}}</code>","inputs.portable-text.invalid-value.missing-block-type.description":"Block with key <code>{{key}}</code> is missing a type name. According to the schema, it should be <code>{{expectedTypeName}}</code>.","inputs.portable-text.invalid-value.missing-child-key.action":"Assign random key","inputs.portable-text.invalid-value.missing-child-key.description":"Child at index <code>{{index}}</code> of block with key <code>{{key}}</code> is missing <code>_key</code> property.","inputs.portable-text.invalid-value.missing-child-type.action":"Remove the object","inputs.portable-text.invalid-value.missing-child-type.description":"Child with key {{childKey}} of block with key <code>{{key}}</code> is missing <code>_type</code> property.","inputs.portable-text.invalid-value.missing-key.action":"Assign random key","inputs.portable-text.invalid-value.missing-key.description":"Block at index <code>{{index}}</code> is missing required <code>_key</code> property.","inputs.portable-text.invalid-value.missing-or-invalid-children.action":"Remove the block","inputs.portable-text.invalid-value.missing-or-invalid-children.description":"Text block with key <code>{{key}}</code> has an invalid or missing `children` property.","inputs.portable-text.invalid-value.missing-or-invalid-markdefs.action":"Add property","inputs.portable-text.invalid-value.missing-or-invalid-markdefs.description":"Text block with key <code>{{key}}</code> has an invalid or missing `markDefs` property.","inputs.portable-text.invalid-value.missing-type.action":"Remove the block","inputs.portable-text.invalid-value.missing-type.description":"Block with key <code>{{key}}</code> is missing a type name.","inputs.portable-text.invalid-value.non-object-child.action":"Remove the item","inputs.portable-text.invalid-value.non-object-child.description":"Child at index <code>{{index}}</code> of block with key <code>{{key}}</code> is not an object.","inputs.portable-text.invalid-value.not-an-array.action":"Unset the value","inputs.portable-text.invalid-value.not-an-array.description":"Value must be an array of Portable Text blocks, or undefined.","inputs.portable-text.invalid-value.not-an-object.action":"Remove item","inputs.portable-text.invalid-value.not-an-object.description":"Item at <code>{{index}}</code> is not an object,.","inputs.portable-text.invalid-value.orphaned-marks.action":"Remove disallowed marks","inputs.portable-text.invalid-value.orphaned-marks.description":"Text block with key <code>{{key}}</code> contains marks <code>({{orphanedMarks, list}})</code> that are not allowed by the schema.","inputs.portable-text.invalid-value.title":"Invalid Portable Text value","inputs.portable-text.list-type.bullet":"Bulleted list","inputs.portable-text.list-type.number":"Numbered list","inputs.portable-text.style.h1":"Heading 1","inputs.portable-text.style.h2":"Heading 2","inputs.portable-text.style.h3":"Heading 3","inputs.portable-text.style.h4":"Heading 4","inputs.portable-text.style.h5":"Heading 5","inputs.portable-text.style.h6":"Heading 6","inputs.portable-text.style.multiple":"Multiple","inputs.portable-text.style.none":"No style","inputs.portable-text.style.normal":"Normal","inputs.portable-text.style.quote":"Quote","inputs.reference.action.clear":"Clear","inputs.reference.action.copy":"Copy","inputs.reference.action.create-new-document":"Create","inputs.reference.action.create-new-document-select":"Create…","inputs.reference.action.duplicate":"Duplicate","inputs.reference.action.open-in-new-tab":"Open in new tab","inputs.reference.action.remove":"Remove","inputs.reference.action.replace":"Replace","inputs.reference.action.replace-cancel":"Cancel replace","inputs.reference.cross-dataset.feature-disabled-actions":"You can still clear this field's existing reference, but it cannot be changed to a different document as long as the feature is disabled.","inputs.reference.cross-dataset.feature-disabled-description":"This feature has been disabled. Read how to enable it in <DocumentationLink>the documentation</DocumentationLink>.","inputs.reference.cross-dataset.feature-unavailable-title":"Unavailable feature: Cross dataset reference","inputs.reference.cross-dataset.invalid-type":"The referenced document is of invalid type ({{typeName}}) <JsonValue/>","inputs.reference.document-opens-in-new-tab":"This document opens in a new tab","inputs.reference.error.document-unavailable-title":"Document unavailable","inputs.reference.error.failed-to-load-document-title":"Failed to load referenced document","inputs.reference.error.invali
106d-search-result-type-title":'Search returned a type that\'s not valid for this reference: "{{returnedType}}"',"inputs.reference.error.invalid-type-description":"Referenced document (<code>{{documentId}}</code>) is of type <code>{{actualType}}</code>. According to the schema, referenced documents can only be of type <AllowedTypes/>.","inputs.reference.error.invalid-type-title":"Document of invalid type","inputs.reference.error.missing-read-permissions-description":"The referenced document could not be accessed due to insufficient permissions","inputs.reference.error.missing-read-permissions-title":"Insufficient permissions","inputs.reference.error.nonexistent-document-description":"The referenced document does not exist (ID: <code>{{documentId}}</code>). You can either remove the reference or replace it with another document.","inputs.reference.error.nonexistent-document-title":"Not found","inputs.reference.error.nonexistent-document.clear-button-label":"Clear","inputs.reference.error.search-failed-title":"Reference search failed","inputs.reference.global.invalid-type":"The referenced document is of invalid type ({{typeName}})","inputs.reference.image-preview-alt-text":"Image preview of referenced document","inputs.reference.incomplete-reference.finalize-action-description":"<strong>{{referencedDocument}}</strong> is published and this reference should now be finalized.","inputs.reference.incomplete-reference.finalize-action-title":"Finalize reference","inputs.reference.incomplete-reference.strengthen-action-description":"<strong>{{referencedDocument}}</strong> is published and this reference should now be converted to a strong reference.","inputs.reference.incomplete-reference.strengthen-action-title":"Convert to strong reference","inputs.reference.incomplete-reference.strengthen-button-label":"Convert to strong reference","inputs.reference.metadata-error.retry-button-label":"Retry","inputs.reference.metadata-error.title":"Unable to load reference metadata","inputs.reference.no-results-for-query":"No results for <strong>“{{searchTerm}}”</strong>","inputs.reference.preview.edited-at-time":"Edited <RelativeTime/>","inputs.reference.preview.has-no-unpublished-changes-aria-label":"No unpublished edits","inputs.reference.preview.has-unpublished-changes-aria-label":"Edited","inputs.reference.preview.is-not-published-aria-label":"Not published","inputs.reference.preview.is-published-aria-label":"Published","inputs.reference.preview.no-unpublished-edits":"No unpublished edits","inputs.reference.preview.not-published":"Not published","inputs.reference.preview.published-at-time":"Published <RelativeTime/>","inputs.reference.referenced-document-does-not-exist":"The referenced document no longer exist and might have been deleted (document ID: <code>{{documentId}}</code>).","inputs.reference.referenced-document-insufficient-permissions":"The referenced document could not be accessed due to insufficient permissions","inputs.reference.resolving-initial-value":"Resolving initial value…","inputs.reference.search-placeholder":"Type to search","inputs.reference.strength-mismatch.is-strong-consquences":"It will not be possible to delete the reference document without first removing this reference or converting it to weak.","inputs.reference.strength-mismatch.is-strong-description":"This reference is <em>strong</em>, but according to the current schema it should be <em>weak</em>.","inputs.reference.strength-mismatch.is-weak-consquences":"This makes it possible to delete the referenced document without first deleting this reference, leav
106ing this field referencing a nonexisting document.","inputs.reference.strength-mismatch.is-weak-description":"This reference is <em>weak</em>, but according to the current schema it should be <em>strong</em>.","inputs.reference.strength-mismatch.strengthen-button-label":"Convert to strong reference","inputs.reference.strength-mismatch.title":"Reference strength mismatch","inputs.reference.strength-mismatch.weaken-button-label":"Convert to weak reference","inputs.slug.action.generate":"Generate","inputs.slug.action.generating":"Generating…","inputs.slug.error.missing-source":"Source is missing. Check source on type {{schemaType}} in schema","inputs.tags.placeholder":"Enter tag and press ENTER…","inputs.tags.placeholder_touch":"Enter tag…","inputs.untyped-value.convert-button.text":"Convert to {{targetType}}","inputs.untyped-value.description":"Encountered an object value without a <code>_type</code> property.","inputs.untyped-value.details.description":"Either remove the <code>name</code> property of the object declaration, or set <code>_type</code> property on items.","inputs.untyped-value.details.json-dump-prefix":"Current value (<code>object</code>):","inputs.untyped-value.details.multi-type-description":"The following types are valid here according to schema:","inputs.untyped-value.details.title":"Developer info","inputs.untyped-value.title":"Property value missing <code>_type</code>","inputs.untyped-value.unset-item-button.text":"Unset value","insufficient-permissions-message.not-authorized-explanation":"You do not have permission to access this feature.","insufficient-permissions-message.not-authorized-explanation_create-any-document":"You do not have permission to create a document.","insufficient-permissions-message.not-authorized-explanation_create-document":"You do not have permission to create this document.","insufficient-permissions-message.not-authorized-explanation_create-document-type":"You do not have permission to create this kind of document.","insufficient-permissions-message.not-authorized-explanation_create-new-reference":"You do not have permission to create a new reference.","insufficient-permissions-message.not-authorized-explanation_delete-document":"You do not have permission to delete this document.","insufficient-permissions-message.not-authorized-explanation_delete-schedules":"You do not have permission to delete schedules.","insufficient-permissions-message.not-authorized-explanation_discard-changes":"You do not have permission to discard changes in this document.","insufficient-permissions-message.not-authorized-explanation_duplicate-document":"You do not have permission to duplicate this document.","insufficient-permissions-message.not-authorized-explanation_edit-schedules":"You do not have permission to edit schedules.","insufficient-permissions-message.not-authorized-explanation_execute-schedules":"You do not have permission to execute schedules.","insufficient-permissions-message.not-authorized-explanation_publish-document":"You do not have permission to publish this document.","insufficient-permissions-message.not-authorized-explanation_unpublish-document":"You do not have permission to unpublish this document.","insufficient-permissions-message.roles":"Your roles: <Roles/>","insufficient-permissions-message.title":"Insufficient permissions","member-field-error.unexpected-error":"Unexpected error: {{error}}","network-check.slow-protocol-warning.description":"Your browser is using an outdated HTTP protocol to communicate with Sanity. This may result in substantially degraded performance.","network-check.slow-protocol-warning.learn-more-button.text":"Learn more","network-check.slow-protocol-warning.snooze-button.text":"Don't show again for this session","network-check.slow-protocol-warning.title":"You've got your breaks on","new-document.button":"Create","new-document.create-new-document-label":"New document…","new-document.filter-placeholder":"Search document types","new-document.loading":"Loading…","new-document.new-document-aria-label":"New document","new-document.no-document-types-found":"No document types found","new-document.no-document-types-label":"No document types","new-document.no-results":"No results for <strong>{{searchQuery}}</strong>
106","new-document.open-dialog-aria-label":"Create new document","new-document.title":"Create new document","package-version.new-package-available.reload-button":"Push to reload","package-version.new-package-available.title":"Sanity Studio is ready to update!","presence.action.manage-members":"Invite members","presence.aria-label":"Global presence","presence.no-one-else-description":"Invite people to the project to see their online status.","presence.no-one-else-title":"No one else is here","presence.not-in-a-document":"Not in a document","presence.tooltip-content":"Who is here","preview.default.title-fallback":"Untitled","preview.fallback.no-value":"(no value)","preview.image.file-is-being-uploaded.alt-text":"The image currently being uploaded","relative-time.just-now":"just now","release.action.add-to-new-release":"Add to release","release.action.add-to-release":"Add to {{title}}","release.action.already-in-release":"Already in release {{title}}","release.action.copy-to":"Copy version to","release.action.create-new":"New release","release.action.discard-version":"Discard version","release.action.discard-version.failure":"Failed to discard version","release.action.new-release":"New release","release.action.new-release.limit-reached":"This workspace is limited to {{count}} release","release.action.new-release.limit-reached_other":"This workspace is limited to {{count}} releases","release.action.permission.error":"You do not have permission to perform this action","release.action.revert-unpublish-version.failure.description":"Please try again or check your connection. The document is still going to be unpublished upon release.","release.action.revert-unpublish-version.failure.title":"Failed to revert from setting to unpublish on release.","release.action.revert-unpublish-version.success.description":"You can now edit this version.","release.action.revert-unpublish-version.success.title":"Successfully reverted from setting to unpublish on release.","release.action.unpublish-version.failure":"Failed to set version to be unpublished on release","release.action.unpublish-version.success":"Successfully set <strong>{{title}}</strong> to be unpublished on release","release.action.view-release":"View release","release.banner.scheduled-for-publishing-on":"Scheduled to be published on {{date}}","release.chip.draft":"Draft","release.chip.global.drafts":"Drafts","release.chip.published":"Published","release.chip.tooltip.archived":"This release is archived and cannot be edited.","release.chip.tooltip.created-date":"Created {{date}}","release.chip.tooltip.draft-disabled.live-edit":"This document is in live edit mode, drafts are disabled","release.chip.tooltip.edited-date":"Edited {{date}}","release.chip.tooltip.intended-for-date":"Intended for {{date}}","release.chip.tooltip.no-edits":"No edits","release.chip.tooltip.not-published":"Not published","release.chip.tooltip.published-date":"Published {{date}}","release.chip.tooltip.scheduled-for-date":"Scheduled for {{date}}","release.chip.tooltip.unknown-date":"Unknown date","release.deleted-tooltip":"This release has been deleted","release.dialog.copy-to-release.title":"Copy version to new release","release.dialog.create.confirm":"Create release","release.dialog.create.title":"New release","release.dialog.tooltip.description":"The intended release time is used to create better previews and hints about whether documents conflict.","release.dialog.tooltip.note":"You can always change it later.","release.dialog.tooltip.title":"Approximate time of release","release.form.placeholder-describe-release":"Describe the release…","release.layer.hide":"Hide release","release.navbar.drafts":"Drafts","release.navbar.published":"Published","release.navbar.tooltip":"Releases","release.placeholder-untitled-release":"Untitled release","release.toast.archived-release.description":"This release has been unpinned","release.toast.archived-release.title":"The '{{title}}' release was archived","release.toast.create-release-error.title":"Failed to create release","release.toast.not-found-release.title":"The '{{title}}' release could not be found","release.toast.published-release.description":"This release has been unpinned","release.toast.published-release.title":"The '{{title}}' release was published","release.tooltip.already-added":"A version of this document has already been added","release.tooltip.locked":"This release has been scheduled. Unsechedule it to add more documents.","release.type.asap":"ASAP","release.type.scheduled":"At time","release.type.undecided":"Undecided","release.version-list.tooltip":"See all document versions","search.action-open-aria-label":"Open search","search.action.add-filter":"Add filter","search.action.clear-filters":"Clear filters","search.action.clear-recent-searches":"Clear recent searches","search.action.clear-type-filters-aria-label":"Clear checked filters","search.action.clear-type-filters-label":"Clear","search.action.close-search-aria-label":"Close search","search.action.filter-by-document-type-aria-label":"Filter by document type","search.action.remove-filter-aria-label":"Remove filter","search.action.search-all-types":"Search all documents","search.action.search-specific-types":"Search for {{types, list}}","search.action.search-specific-types-truncated":"Search for {{types, list}} +{{count}} more","search.action.select-asset":"Select asset","search.action.select-asset_file":"Select file","search.action.select-asset_image":"Select image","search.action.toggle-filters-aria-label_hide":"Hide filters","search.action.toggle-filters-aria-label_show":"Show filters","search.action.toggle-filters-label_hide":"Hide filters","search.action.toggle-filters-label_show":"Show filters","search.button.tooltip":"Search","search.document-type-list":"{{types, list}}","search.document-type-list-all-types":"All types","search.document-type-list-truncated":"{{types, list}} +{{count}} more","search.document-types-aria-label":"Document types","search.document-types-no-matches-found":"No matches for {{filter}}","search.error.display-filter-description":"This may indicate invalid options defined in your schema.","search.error.display-filter-title":"An error occurred whilst displaying this filter.","search.error.
106no-valid-asset-source-check-config-description":"Please ensure it's enabled in your studio configuration file.","search.error.no-valid-asset-source-only-default-description":"Currently, only the default asset source is supported.","search.error.no-valid-asset-source-title":"No valid asset sources found.","search.error.unspecified-error-help-description":"Please try again or check your connection","search.error.unspecified-error-title":"Something went wrong while searching","search.filter-all-fields-header":"All fields","search.filter-asset-change_file":"Change file","search.filter-asset-change_image":"Change image","search.filter-asset-clear":"Clear","search.filter-asset-select_file":"Select file","search.filter-asset-select_image":"Select image","search.filter-boolean-false":"False","search.filter-boolean-true":"True","search.filter-by-title-aria-label":"Filter by title","search.filter-date-aria-label":"Date","search.filter-date-range-end-date-aria-label":"End date","search.filter-date-range-start-date-aria-label":"Start date","search.filter-date-unit-aria-label":"Select unit","search.filter-date-unit_days":"Days","search.filter-date-unit_months":"Months","search.filter-date-unit_years":"Years","search.filter-date-value-aria-label":"Unit value","search.filter-field-tooltip-description":"Field description","search.filter-field-tooltip-name":"Field name","search.filter-field-tooltip-used-in-document-types":"Used in document types","search.filter-no-matches-found":"No matches for {{filter}}","search.filter-number-max-value-placeholder":"Max value","search.filter-number-min-value-placeholder":"Min value","search.filter-number-value-placeholder":"Value","search.filter-placeholder":"Filter","search.filter-reference-clear":"Clear","search.filter-shared-fields-header":"Shared fields","search.filter-string-value-placeholder":"Value","search.filter-string-value-select-predefined-value":"Select…","search.filters-aria-label_one":"Filter","search.filters-aria-label_other":"Filters","search.instructions":"Use <ControlsIcon/> to refine your search","search.no-results-help-description":"Try another keyword or adju
106st your filters","search.no-results-title":"No results found","search.operator.array-count-equal.description_one":"<Field/> <Operator>has</Operator> <Value>{{count}} item</Value>","search.operator.array-count-equal.description_other":"<Field/> <Operator>has</Operator> <Value>{{count}} items</Value>","search.operator.array-count-equal.name":"quantity is","search.operator.array-count-gt.description_one":"<Field/> <Operator>has ></Operator> <Value>{{count}} item</Value>","search.operator.array-count-gt.description_other":"<Field/> <Operator>has ></Operator> <Value>{{count}} items</Value>","search.operator.array-count-gt.name":"quantity greater than","search.operator.array-count-gte.description_one":"<Field/> <Operator>has ≥</Operator> <Value>{{count}} item</Value>","search.operator.array-count-gte.description_other":"<Field/> <Operator>has ≥</Operator> <Value>{{count}} items</Value>","search.operator.array-count-gte.name":"quantity greater than or equal to","search.operator.array-count-lt.description_one":"<Field/> <Operator>has <</Operator> <Value>{{count}} item</Value>","search.operator.array-count-lt.description_other":"<Field/> <Operator>has <</Operator> <Value>{{count}} items</Value>","search.operator.array-count-lt.name":"quantity less than","search.operator.array-count-lte.description_one":"<Field/> <Operator>has ≤</Operator> <Value>{{count}} item</Value>","search.operator.array-count-lte.description_other":"<Field/> <Operator>has ≤</Operator> <Value>{{count}} items</Value>","search.operator.array-count-lte.name":"quantity less than or equal to","search.operator.array-count-not-equal.description_one":"<Field/> <Operator>does not have</Operator> <Value>{{count}} item</Value>","search.operator.array-count-not-equal.description_other":"<Field/> <Operator>does not have</Operator> <Value>{{count}} items</Value>","search.operator.array-count-not-equal.name":"quantity is not","search.operator.array-count-range.description":"<Field/> <Operator>has between</Operator> <Value>{{from}} → {{to}} items</Value>","search.operator.array-count-range.name":"quantity is between","search.operator.array-list-includes.description":"<Field/> <Operator>includes</Operator> <Value>{{value}}</Value>","search.operator.array-list-includes.name":"includes","search.operator.array-list-not-includes.description":"<Field/> <Operator>does not include</Operator> <Value>{{value}}</Value>","search.operator.array-list-not-includes.name":"does not include","search.operator.array-reference-includes.description":"<Field/> <Operator>includes</Operator> <Value>{{value}}</Value>","search.operator.array-reference-includes.name":"includes","search.operator.array-reference-not-includes.description":"<Field/> <Operator>does not include</Operator> <Value>{{value}}</Value>","search.operator.array-reference-not-includes.name":"does not include","search.operator.asset-file-equal.description":"<Field/> <Operator>is</Operator> <Value>{{value}}</Value>","search.operator.asset-file-equal.name":"is","search.operator.asset-file-not-equal.description":"<Field/> <Operator>is not</Operator> <Value>{{value}}</Value>","search.operator.asset-file-not-equal.name":"is not","search.operator.asset-image-equal.description":"<Field/> <Operator>is</Operator> <Value>{{value}}</Value>","search.operator.asset-image-equal.name":"is","search.operator.asset-image-not-equal.description":"<Field/> <Operator>is not</Operator> <Value>{{value}}</Value>","search.operator.asset-image-not-equal.name":"is not","search.operator.boolean-equal.description":"<Field/> <Operator>is</Operator> <Value>{{value}}</Value>","search.operator.boolean-equal.name":"is","search.operator.date-after.description":"<Field/> <Operator>is after</Operator> <Value>{{value}}</Value>","search.operator.date-after.name":"after","search.operator.date-before.description":"<Field/> <Operator>is before</Operator> <Value>{{value}}</Value>","search.operator.date-before.name":"before","search.operator.date-equal.description":"<Field/> <Operator>is</Operator> <Value>{{value}}</Value>","search.operator.date-equal.name":"is","search.operator.date-last.description":"<Field/> <Operator>is in the last</Operator> <Value>{{value}}</Value>","search.operator.date-last.name":"last","search.operator.date-not-equal.description":"<Field/> <Operator>is not</Operator> <Value>{{value}}</Value>","search.operator.date-not-equal.name":"is not","search.operator.date-range.description":"<Field/> <Operator>is between</Operator> <Value/>","search.operator.date-range.name":"is between","search.operator.date-time-after.description":"<Field/> <Operator>is after</Operator> <Value>{{value}}</Value>","search.operator.date-time-after.name":"after","search.operator.date-time-before.description":"<Field/> <Operator>is before</Operator> <Value>{{value}}</Value>","search.operator.date-time-before.name":"before","search.operator.date-time-equal.description":"<Field/> <Operator>is</Operator> <Value>{{value}}</Value>","search.operator.date-time-equal.name":"is","search.operator.date-time-last.description":"<Field/> <Operator>is in the last</Operator> <Value>{{value}}</Value>","search.operator.date-time-last.name":"last","search.operator.date-time-not-equal.description":"<Field/> <Operator>is not</Operator> <Value>{{value}}</Value>","search.operator.date-time-not-equal.name":"is not","search.operator.date-time-range.description":"<Field/> <Operator>is between</Operator> <Value/>","search.operator.date-time-range.name":"is between","search.operator.defined.description":"<Field/> <Operator>is</Operator> <Value>not empty</Value>","search.operator.defined.name":"not empty","search.operator.not-defined.description":"<Field/> <Operator>is</Operator> <Value>empty</Value>","search.operator.not-defined.name":"empty","search.operator.number-equal.description":"<Field/> <Operator>is</Operator> <Value>{{value}}</Value>","search.operator.number-equal.name":"is","search.operator.number-gt.description":"<Field/> <Operator>></Operator> <Value>{{value}}</Value>
106","search.operator.number-gt.name":"greater than","search.operator.number-gte.description":"<Field/> <Operator>≥</Operator> <Value>{{value}}</Value>","search.operator.number-gte.name":"greater than or equal to","search.operator.number-lt.description":"<Field/> <Operator><</Operator> <Value>{{value}}</Value>","search.operator.number-lt.name":"less than","search.operator.number-lte.description":"<Field/> <Operator>≤</Operator> <Value>{{value}}</Value>","search.operator.number-lte.name":"less than or equal to","search.operator.number-not-equal.description":"<Field/> <Operator>is not</Operator> <Value>{{value}}</Value>","search.operator.number-not-equal.name":"is not","search.operator.number-range.description":"<Field/> <Operator>is between</Operator> <Value>{{from}} → {{to}}</Value>","search.operator.number-range.name":"is between","search.operator.portable-text-contains.description":"<Field/> <Operator>contains</Operator> <Value>{{value}}</Value>","search.operator.portable-text-contains.name":"contains","search.operator.portable-text-equal.description":"<Field/> <Operator>is</Operator> <Value>{{value}}</Value>","search.operator.portable-text-equal.name":"is","search.operator.portable-text-not-contains.description":"<Field/> <Operator>does not contain</Operator> <Value>{{value}}</Value>","search.operator.portable-text-not-contains.name":"does not contain","search.operator.portable-text-not-equal.description":"<Field/> <Operator>is not</Operator> <Value>{{value}}</Value>","search.operator.portable-text-not-equal.name":"is not","search.operator.reference-asset-file.description":"<Field/> <Operator>→</Operator> <Value>{{value}}</Value>","search.operator.reference-asset-file.name":"file","search.operator.reference-asset-image.description":"<Field/> <Operator>→</Operator> <Value>{{value}}</Value>","search.operator.reference-asset-image.name":"image","search.operator.reference-document.description":"<Field/> <Operator>→</Operator> <Value>{{value}}</Value>","search.operator.reference-document.name":"document","search.operator.reference-equal.description":"<Field/> <Operator>is</Operator> <Value>{{value}}</Value>","search.operator.reference-equal.name":"is","search.operator.reference-not-equal.description":"<Field/> <Operator>is not</Operator> <Value>{{value}}</Value>","search.operator.reference-not-equal.name":"is not","search.operator.slug-contains.description":"<Field/> <Operator>contains</Operator> <Value>{{value}}</Value>","search.operator.slug-contains.name":"contains","search.operator.slug-equal.description":"<Field/> <Operator>is</Operator> <Value>{{value}}</Value>","search.operator.slug-equal.name":"is","search.operator.slug-not-contains.description":"<Field/> <Operator>does not contain</Operator> <Value>{{value}}</Value>","search.operator.slug-not-contains.name":"does not contain","search.operator.slug-not-equal.description":"<Field/> <Operator>is not</Operator> <Value>{{value}}</Value>","search.operator.slug-not-equal.name":"is not","search.operator.string-contains.description":"<Field/> <Operator>contains</Operator> <Value>{{value}}</Value>","search.operator.string-contains.name":"contains","search.operator.string-equal.description":"<Field/> <Operator>is</Operator> <Value>{{value}}</Value>","search.operator.string-equal.name":"is","search.operator.string-list-equal.description":"<Field/> <Operator>is</Operator> <Value>{{value}}</Value>","search.operator.string-list-equal.name":"is","search.operator.string-list-not-equal.description":"<Field/> <Operator>is not</Operator> <Value>{{value}}</Value>","search.operator.string-list-not-equal.name":"is not","search.operator.string-not-contains.description":"<Field/> <Operator>does not contain</Operator> <Value>{{value}}</Value>","search.operator.string-not-contains.name":"does not contain","search.operator.string-not-equal.description":"<Field/> <Operator>is not</Operator> <Value>{{value}}</Value>","search.operator.string-not-equal.name":"is not","search.ordering.best-match-label":"Best match","search.ordering.created-ascending-label":"Created: Oldest first","search.ordering.created-descending-label":"Created: Newest first","search.ordering.updated-ascending-label":"Updated: Oldest first","search.ordering.updated-descending-label":"Updated: Newest first","search.placeholder":"Search","search.recent-searches-aria-label":"Recent searches","search.recent-searches-label":"Recent searches","search.search-results-aria-label":"Search results","sheet-list.edit-columns":"Edit columns","sheet-list.hide-field":"Remove from table","sheet-list.reset-columns":"Reset columns","sheet-list.select-fields":"Select up to 5 field types","status-button.aria-label":"Configuration status","time-zone.action.search-for-timezone-placeholder":"Search for a city or time zone","time-zone.action.select-local-time-zone":"Select local time zone","time-zone.dialog-info.content-releases":"The selected time zone will change how dates are represented in content releases.","t
106ime-zone.dialog-info.input":"The selected time zone will change how dates are represented only for this input in this document.","time-zone.dialog-info.scheduled-publishing":"The selected time zone will change how dates are represented in schedules.","time-zone.local-time":"local time","time-zone.time-zone":"Time zone","time-zone.time-zone-tooltip-content-releases":"Displaying releases in {{alternativeName}} GMT{{offset}}","time-zone.time-zone-tooltip-input":"Displaying <em>{{title}}</em> in {{alternativeName}} GMT{{offset}}","time-zone.time-zone-tooltip-scheduled-publishing":"Displaying schedules in {{alternativeName}} GMT{{offset}}","timeline.changes.title":"Changes by","timeline.error.load-document-changes-description":"Document history transactions have not been affected.","timeline.error.load-document-changes-title":"An error occurred whilst retrieving document changes.","timeline.error.load-document-changes-version-description":"Enable the events API through the Studio config to view document history.","timeline.error.load-document-changes-version-title":"Version documents history is only available through the Events API.","timeline.error.no-document-history-description":"When changing the content of the document, the document versions will appear in this menu.","timeline.error.no-document-history-title":"No document history","timeline.error.unable-to-load-revision":"Unable to load revision","timeline.latest":"Latest","timeline.latest-revision":"Latest revision","timeline.latest-version":"Latest revision","timeline.list.aria-label":"Document revisions","timeline.loading-history":"Loading history…","timeline.no-previous-events":"No previous events","timeline.operation.created":"Created","timeline.operation.created-initial":"Created","timeline.operation.created-initial_timestamp":"Created: {{timestamp, datetime}}","timeline.operation.created_timestamp":"Created: {{timestamp, datetime}}","timeline.operation.deleted":"Deleted","timeline.operation.deleted_timestamp":"Deleted: {{timestamp, datetime}}","timeline.operation.draft-created":"Draft created","timeline.operation.draft-created_timestamp":"Draft created: {{timestamp, datetime}}","timeline.operation.draft-discarded":"Discarded draft","timeline.operation.draft-discarded_timestamp":"Discarded draft: {{timestamp, datetime}}","timeline.operation.edited-draft":"Edited","timeline.operation.edited-draft_timestamp":"Edited: {{timestamp, datetime}}","timeline.operation.edited-live":"Live edited","timeline.operation.edited-live_timestamp":"Live edited: {{timestamp, datetime}}","timeline.operation.history-cleared":"Deleted by retention policy","timeline.operation.published":"Published","timeline.operation.published_timestamp":"Published: {{timestamp, datetime}}","timeline.operation.unpublished":"Unpublished","timeline.operation.unpublished_timestamp":"Unpublished: {{timestamp, datetime}}","timeline.operation.version-created":"Version created","timeline.operation.version-created_timestamp":"Version created: {{timestamp, datetime}}","timeline.operation.version-discarded":"Version discarded","timeline.operation.version-discarded_timestamp":"Version discarded: {{timestamp, datetime}}","timeline.since":"{{timestamp, datetime}}","timeline.since-version-missing":"Since: unknown version","toolbar.portable-text.action-button-aria-label":"{{action}}","tree-editing-dialog.breadcrumbs.menu":"Breadcrumb menu","tree-editing-dialog.search-placeholder":"Search","tree-editing-dialog.search.menu-label":"Search menu","tree-editing-dialog.search.no-results-title":"No results found","tree-editing-dialog.sidebar.action.close":"Close sidebar","tree-editing-dialog.sidebar.action.collapse":"Collapse","tree-editing-dialog.sidebar.action.done":"Done","tree-editing-dialog.sidebar.action.expand":"Expand","tree-editing-dialog.sidebar.action.open":"Open sidebar","user-menu.action.free-trial-finished":"Upgrade from free","user-menu.action.free-trial_one":"{{count}} day left in trial","user-menu.action.free-trial_other":"{{count}} days left in trial","user-menu.action.invite-members":"Invite members","user-menu.action.invite-members-aria-label":"Invite members","user-menu.action.manage-project":"Manage project","user-menu.action.manage-project-aria-label":"Manage project","user-menu.action.portable-text.annotation-disabled_empty-block":"Cannot apply {{name}} to empty block","user-menu.action.portable-text.annotation-disabled_multiple-blocks":"Cannot apply {{name}} to multiple blocks","user-menu.action.sign-out":"Sign out","user-menu.appearance-title":"Appearance","user-menu.close-menu":"Close menu","user-menu.color-scheme.dar
106k-description":"Use dark appearance","user-menu.color-scheme.dark-title":"Dark","user-menu.color-scheme.light-description":"Use light appearance","user-menu.color-scheme.light-title":"Light","user-menu.color-scheme.system-description":"Use system appearance","user-menu.color-scheme.system-title":"System","user-menu.locale-title":"Language","user-menu.login-provider":"Signed in with {{providerTitle}}","user-menu.open-menu":"Open menu","workspaces.action.add-workspace":"Add workspace","workspaces.action.choose-another-workspace":"Choose another workspace","workspaces.choose-your-workspace-label":"Choose your workspace","workspaces.select-workspace-aria-label":"Select workspace","workspaces.select-workspace-label":"Select workspace","workspaces.select-workspace-tooltip":"Select workspace","workspaces.title":"Workspaces"}},{locale:"en-US",namespace:"validation",resources:{"array.exact-length":"Must have exactly {{wantedLength}} items","array.exact-length_blocks":"Must have exactly {{wantedLength}} blocks","array.item-duplicate":"Can't be a duplicate","array.maximum-length":"Must have at most {{maxLength}} items","array.maximum-length_blocks":"Must have at most {{maxLength}} blocks","array.minimum-length":"Must have at least {{minLength}} items","array.minimum-length_blocks":"Must have at least {{minLength}} blocks","date.invalid-format":"Must be a valid ISO-8601 formatted date string","date.maximum":"Must be at or before {{maxDate}}","date.minimum":"Must be at or after {{minDate}}","generic.incorrect-type":'Expected type "{{expectedType}}", got "{{actualType}}"',"generic.not-allowed":"Value did not match any allowed values","generic.not-allowed_hint":'Value "{{hint}}" did not match any allowed values',"generic.required":"Required","number.greater-than":"Must be greater than {{threshold}}","number.less-than":"Must be less than {{threshold}}","number.maximum":"Must be lower than or equal to {{maxNumber}}","number.maximum-precision":"Max precision is {{limit}}","number.minimum":"Must be greater than or equal to {{minNumber}}","number.non-integer":"Must be an integer","object.asset-required":"Asset is required","object.asset-required_file":"File is required","object.asset-required_image":"Image is required","object.media-not-found":"The asset could not found in the Media Library","object.not-media-library-asset":"Mu
106st be a reference to a Media Library asset","object.not-reference":"Must be a reference to a document","object.reference-not-published":"Referenced document must be published","panel.close-button-aria-label":"Close validation","panel.no-errors-message":"No validation errors","panel.title":"Validation","panel.unpublish-message":"Document is going to unpublish, no validation errors are shown","slug.missing-current":"Slug must have a value","slug.not-object":"Slug must be an object","slug.not-unique":"Slug is already in use","string.email":"Must be a valid email address","string.exact-length":"Must be exactly {{wantedLength}} characters long","string.lowercase":"Must be all lowercase characters","string.maximum-length":"Must be at most {{maxLength}} characters long","string.minimum-length":"Must be at least {{minLength}} characters long","string.regex-does-not-match":'Does not match "{{name}}"-pattern',"string.regex-match":'Should not match "{{name}}"-pattern',"string.uppercase":"Must be all uppercase characters","string.url.disallowed-scheme":"Does not match allowed protocols/schemes","string.url.includes-credentials":"Username/password not allowed","string.url.invalid":"Not a valid URL","string.url.not-absolute":"Relative URLs are not allowed","string.url.not-relative":"Only relative URLs are allowed"}},{locale:"en-US",namespace:"copy-paste",resources:{"copy-paste.field-action-copy-button.document.title":"Copy document","copy-paste.field-action-copy-button.field.title":"Copy field","copy-paste.field-action-paste-button.document.title":"Paste document","copy-paste.field-action-paste-button.field.title":"Paste field","copy-paste.on-paste.validation.read-only-target.description":"The target is read-only","copy-paste.on-paste.validation.schema-type-incompatible.description":"Source and target schema types are not compatible","copy-paste.on-paste.validation.reference-type-incompatible.description":'References of type "{{sourceReferenceType}}" is not allowed in reference field that accepts types "{{targetReferenceTypes}}"',"copy-paste.on-paste.validation.reference-filter-incompatible.description":"Reference is not allowed in reference field according to filter","copy-paste.on-paste.validation.reference-validation-failed.description":'The referenced document "{{ref}}" does not exist',"copy-paste.on-paste.validation.image-file-incompatible.description":'A "{{sourceSchemaType}}" is not allowed in a "{{targetSchemaType}}"',"copy-paste.on-paste.validation.array-type-incompatible.description":'Value of type "{{type}}" is not allowed in this array field',"copy-paste.on-paste.validation.array-value-incompatible.description":'Value of type "{{type}}" is not allowed in this array field',"copy-paste.on-paste.validation.string-value-incompatible.description":'Value "{{value}}" is not allowed in "{{allowedStrings}}"',"copy-paste.on-paste.validation.primitive-type-incompatible.description":'Value of type "{{type}}" is not allowed in this field',"copy-paste.on-paste.validation.clipboard-empty.title":"Nothing to paste","copy-paste.on-paste.validation.clipboard-invalid.title":"Invalid clipboard item","copy-paste.on-paste.validation.schema-type-incompatible.title":"Could not resolve schema type for path: {{path}}","copy-paste.on-paste.validation.partial-warning.title":"Could not paste all values","copy-paste.on-paste.validation.mime-type-incompatible.description":'MIME type "{{mimeType}}" is not accepted for this field',"copy-paste.on-paste.validation.mime-type-validation-failed.description":"MIME type validation failed","copy-paste.on-copy.validation.schema-type-incompatible.title":"Could not resolve schema type for path: {{path}}","copy-paste.on-copy.validation.no-value.title":"Empty value, nothing to copy","copy-paste.on-copy.validation.clipboard-not-supported.description":"Clipboard access required to copy this content. Allow clipboard permissions in your browser settings, then try copying again.","copy-paste.on-copy.validation.clipboard-not-supported.title":"Clipboard access blocked"}}],weekInfo:{firstDay:7,weekend:[6,7],minimalDays:1}},r9=(()=>
106{let e="__tmp_supports_local_storage";try{return!(typeof localStorage>"u")&&(localStorage.setItem(e,"---"),localStorage.removeItem(e),!0)}catch{return!1}})();function ie(e,t){return["sanity-locale",e,t].join(":")}function it(e){let t,n=(0,o.c)(6),{projectId:r,name:i,i18n:l,__internal:s}=co(),{locales:d}=l,{i18next:c}=s;return n[0]!==c||n[1]!==d||n[2]!==r||n[3]!==e||n[4]!==i?(t=(0,a.jsx)(ir,{...e,projectId:r,sourceId:i,locales:d,i18next:c}),n[0]=c,n[1]=d,n[2]=r,n[3]=e,n[4]=i,n[5]=t):t=n[5],t}function ir(e){let t,n,r,i,l,d,u,p,m,h=(0,o.c)(24),{projectId:f,sourceId:g,locales:C,i18next:y,children:x}=e;h[0]!==y?(t=e=>(y.on("languageChanged",e),()=>y.off("languageChanged",e)),h[0]=y,h[1]=t):t=h[1];let b=t;h[2]!==y.language||h[3]!==C?(n=()=>C.find(e=>y.language===e.id)||r6,h[2]=y.language,h[3]=C,h[4]=n):n=h[4];let v=(0,s.useSyncExternalStore)(b,n);return h[5]!==y?(i={i18next:y},h[5]=y,h[6]=i):i=h[6],h[7]!==y||h[8]!==f||h[9]!==g?(l=async e=>{r9&&localStorage.setItem(ie(f,g),e),await y.changeLanguage(e)},h[7]=y,h[8]=f,h[9]=g,h[10]=l):l=h[10],h[11]!==v||h[12]!==C||h[13]!==i||h[14]!==l?(d={locales:C,currentLocale:v,__internal:i,changeLocale:l},h[11]=v,h[12]=C,h[13]=i,h[14]=l,h[15]=d):d=h[15],r=d,h[16]===Symbol.for("react.memo_cache_sentinel")?(u=(0,a.jsx)(r5,{}),h[16]=u):u=h[16],h[17]!==x||h[18]!==r||h[19]!==v.id?(p=(0,a.jsx)(c.U6.Provider,{value:r,children:x},v.id),h[17]=x,h[18]=r,h[19]=v.id,h[20]=p):p=h[20],h[21]!==y||h[22]!==p?(m=(0,a.jsx)(s.Suspense,{fallback:u,children:(0,a.jsx)(w.xC,{i18n:y,children:p})}),h[21]=y,h[22]=p,h[23]=m):m=h[23],m}function ii(e){return t=>{let n=0,r=(0,M.W)((t,i)=>e(t,++n,i).pipe(r));return t.pipe((0,W.M)(()=>{n=0}),r)}}function ia(e,t){let n=[t,!0],r={type:"tuple",tuple:n};return function(t){let i=(0,s.useMemo)(()=>(0,k.of)(t).pipe((0,z.n)(t=>(0,S.x)((0,k.of)({type:"loading"}),e(t).pipe((0,E.T)(e=>({type:"value",value:e}))))),(0,G.S)(([e],t)=>"loading"===t.type?[e,!0]:[t.value,!1],n),(0,ei.F)(([e,t],[n,r])=>e===n&&t===r),(0,E.T)(e=>({type:"tuple",tuple:e})),(0,M.W)(e=>(0,k.of)({type:"error",error:e}))),[t]),a=(0,eH.J)(i,r);if("error"===a.type)throw a.error;return a.tuple}}function io(e){return null!=e}let il="drafts.",is="versions.";function id(e){return e.startsWith(il)}function ic(e){return e.startsWith(is)}function iu(e,{version:t}={}){if("drafts"===t||"published"===t)throw Error('Version can not be "published" or "drafts"');return{publishedId:ib(e),draftId:im(e),...t?{versionId:iy(e,t)}:{}}}function ip(e){return!id(e)&&!ic(e)}function im(e){return ic(e)?il+ib(e):id(e)?e:il+e}let ih=["drafts","published"];function ig(e){return ih.includes(e)}let iC=["draft","published"];function iy(e,t){if(ig(t))throw Error('Version can not be "published" or "drafts"');return`${is}${t}.${ib(e)}`}function ix(e){if(!ic(e))return;let[t,n,...r]=e.split(".");return n}function ib(e){return ic(e)?e.split(".").slice(2).join("."):id(e)?e.slice(il.length):e}function iv(e){return Array.from(e.reduce((e,t)=>{let n=ib(t._id),r=e.get(n);return r||(r={id:n,type:t._type,published:void 0,draft:void 0,versions:[]},e.set(n,r)),ip(t._id)&&(r.published=t),id(t._id)&&(r.draft=t),ic(t._id)&&r.versions.push(t),e},new Map).values())}function ij(e){return iv(e).map(e=>e.draft||e.published||e.versions[0]).filter(io)}let iw=Object.freeze({}),i_=Object.freeze([]);function ik(e){return id(e)?"draft":ic(e)?"version":"published"}let iS=function(){if("u">typeof globalThis)return globalThis;if("u">typeof window)return window;if("u">typeof self)return self;if("u">typeof global)return global;throw Error("@sanity/ui: could not locate global scope")}();function iT(e){return Array.isArray(e)}function iI(e){return!!e&&"object"==typeof e&&!Array.isArray(e)}function iE(e){return"string"==typeof e}let i$="object"==typeof document&&"object"==typeof window&&window.ResizeObserver?window.ResizeObserver:x.tb,iA=(()=>{let e=(0,b.A)(),t=new i$(t=>e.publish(t));return{observe:(n,r,i)=>{let a=e.subscribe(e=>{let t=e.find(e=>e.target===n);t&&r(t)});return t.observe(n,i),()=>{a(),t.unobserve(n)}},unobserve:e=>t.unobserve(e)}})();function iD(e){let t=function(e){let t=new nO(e);return{get(e){let n=t.get(e);if(!n)throw Error(`Key not found in LRU cache: ${e}`);return n.value},set(e,n){t.set(e,{value:n})},delete(e){t.delete(e)},has:e=>t.has(e)}}(e);return function(e){return n=>(0,S.x)((0,T.v)(()=>t.has(e)?(0,k.of)({fromCache:!0,value:t.get(e)}):I.w),n.pipe((0,W.M)(n=>t.set(e,n)),(0,E.T)(e=>({fromCache:!1,value:e}))))}}let iz=["sanity.imageAsset","sanity.fileAsset"];function iM(e){return"document"===e.type&&!("document"===e.type&&iz.includes(e.name))}let iP=["match","in","asc","desc","true","false","null"],iR=/^[a-zA-Z_][a-zA-Z0-9_]*$/,iO=!(typeof window>"u")&&("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),iV="object"==typeof Intl&&"Segmenter"in Intl?new Intl.Segmenter
106:void 0;function iL(e,t){let n=function(e,t,n){if(n<0)throw Error("End must be greater than start, use `String.prototype.slice()` for negative values");if(!iV)return e.slice(0,n);let r=0,i="";for(let t of iV.segment(e)){if(r===n)break;i+=t.segment,r++}return i}(e,0,t);return n===e?n:`${n}\u2026`}let iF={isLoading:!0,value:void 0,error:null};function iB(e,t){let n,r,i,a=(0,o.c)(4);a[0]!==t?(n=typeof t>"u"?iF:{isLoading:!1,value:t,error:null},a[0]=t,a[1]=n):n=a[1];let l=n;return a[2]!==e?(i=e.pipe(e=>e.pipe((0,E.T)(e=>({isLoading:!1,value:e,error:null})),(0,M.W)(e=>(0,k.of)({isLoading:!1,value:void 0,error:e})))),a[2]=e,a[3]=i):i=a[3],r=i,(0,eH.J)(r,l)}function iN(e,t){return null!==e&&e.roles.some(e=>e.name===t)}function iY(e){let[t,n]=(0,s.useState)(e);return eN(t,e)?t:(n(e),e)}let iH=!(typeof rM>"u")&&rM?.env?.SANITY_STUDIO_DEBUG_I18N,iZ={reverse:e=>`\u202E${e}`,triangles:e=>`\u25E4 ${e} \u25E2`};function iU(e){let t="reverse"===iH||"triangles"===iH?iZ[iH]:null;return t?(...n)=>t(e(...n)):e}let iq={bindI18n:!1};function iJ(e,t){let n,r,i,a=(0,o.c)(6);a[0]!==t?(n=t?{keyPrefix:t.keyPrefix,lng:t.lng,...iq}:iq,a[0]=t,a[1]=n):n=a[1];let{t:l}=(0,w.Bd)(e,n);return a[2]!==l?(r=iU(l),a[2]=l,a[3]=r):r=a[3],a[4]!==r?(i={t:r},a[4]=r,a[5]=i):i=a[5],i}function iW(e){let t=JSON.stringify((Array.isArray(e)?e:[e]).flatMap(e=>e?.i18n?Object.values(e.i18n).map(({ns:e})=>e):[]).filter(io).sort()),{t:n}=iJ((0,s.useMemo)(()=>JSON.parse(t),[t]));return(0,s.useCallback)(function(e){let{i18n:t}=e;return t?new Proxy(e,{get:(e,r)=>{let i=e[r];if("string"==typeof r&&r in t){let{key:e,ns:a}=t[r];return n(e,{ns:a,..."string"==typeof i&&{defaultValue:i}})}return i}}):e},[n])}function iK(e){let{t}=iJ((0,s.useMemo)(()=>e.i18n?Array.from(new Set(Object.values(e.i18n).map(({ns:e})=>e))).sort():[],[e.i18n]));return(0,s.useMemo)(()=>{let{i18n:n}=e;return n?new Proxy(e,{get:(e,r)=>{let i=e[r];if("string"==typeof r&&r in n){let{key:e,ns:a}=n[r];return t(e,{ns:a,..."string"==typeof i&&{defaultValue:i}})}return i}}):e},[e,t])}function iG(){return iX().currentLocale}function iX(){let e=(0,s.useContext)(c.U6);if(!e)throw Error("Sanity LocaleContext value missing. Is this hook being used outside LocaleContext.Provider?");return e}let iQ=(()=>{let e={dateTimeFormat:i1(),listFormat:i1(),numberFormat:i1(),relativeTimeFormat:i1()};return{dateTimeFormat:function(t,n){let r=i2(t,n),i=e.dateTimeFormat[r];return i||(i=new Intl.DateTimeFormat(t,n),e.dateTimeFormat[r]=i,i)},listFormat:function(t,n){let r=i2(t,n),i=e.listFormat[r];return i||(i=new Intl.ListFormat(t,n),e.listFormat[r]=i,i)},numberFormat:function(t,n){let r=i2(t,n),i=e.numberFormat[r];return i||(i=new Intl.NumberFormat(t,n),e.numberFormat[r]=i,i)},relativeTimeFormat:function(t,n){let r=i2(t,n),i=e.relativeTimeFormat[r];return i||(i=new Intl.RelativeTimeFormat(t,n),e.relativeTimeFormat[r]=i,i)}}})();function i1(){return Object.create(null)}function i2(e,t){return`${e}-${JSON.stringify(function(e){let t=[];for(let[n,r]of Object.entries(e))t.push(`${n}=${JSON.stringify(r)}`);return t.sort().join(`
107`)}(t))}`}function i5(e){let t,n,r=(0,o.c)(5);r[0]!==e?(t=void 0===e?{}:e,r[0]=e,r[1]=t):t=r[1];let i=t,a=(0,s.useContext)(c.U6)?.currentLocale.id;return r[2]!==a||r[3]!==i?(n=a?iQ.listFormat(a,i):iQ.listFormat("en-US",{...i,style:"narrow"}),r[2]=a,r[3]=i,r[4]=n):n=r[4],n}let i0=/^<(?<tag>[^\s\d<][^/?><]+)\/?>/,i7=/<\/(?<tag>[^>]+)>/,i3=/<[^>]+\/>/,i8=/^[A-Z][A-Za-z0-9]+$/,i4=/^[a-z]+$/,i6=/{{\s*?([^}]+)\s*?}}/g;function i9(e){let t=[],n=e.matchAll(i6),r=0;for(let i of n){if(typeof i.index>"u")continue;let n=e.slice(r,i.index);n.length>0&&t.push({type:"text",text:n}),t.push(function(e){let[t,...n]=e.replace(/^\{\{|\}\}$/g,"").trim().split(/\s*,\s*/);if(1===n.length&&"list"===n[0])return{type:"interpolation",variable:t,formatters:n};if(n.length>0)throw Error(`Interpolations with formatters are not supported when using <Translate>. Found "${e}". Utilize "useTranslation" instead, or format the values passed to <Translate> ahead of time.`);return{type:"interpolation",variable:t}}(i[0])),r+=n.length+i[0].length}return r<e.length&&t.push({type:"text",text:e.slice(r)}),t}let ae=/^[A-Z]/,at=new Set(["abbr","address","cite","code","del","em","ins","kbd","q","samp","strong","sub","sup"]);function an(e){let t=e.t(e.i18nKey,{context:e.context,skipInterpolation:!0,count:e.values&&"count"in e.values&&"number"==typeof e.values.count?e.values.count:void 0}),n=(0,s.useMemo)(()=>(function(e){let t=[],n="",r="",i=e;for(;i.length>0;)if(r||"<"!==i[0])if(r&&"<"===i[0]&&"<"!==i[1]){let e=i.match(i7);if(e){let a=e.groups.tag;if("/"!==i[1])throw Error(`Expected closing tag for <${r}>, but found new opening tag <${a}>. Nested tags is not supported.`);if(a!==r)throw Error(`Expected closing tag for <${r}>, but found closing tag </${a}> instead. Make sure each opening tag has a matching closing tag.`);
107n&&(t.push(...i9(n)),n=""),t.push({type:"tagClose",name:a}),r="",i=i.slice(e[0].length)}else n+=i[0],i=i.slice(1)}else n+=i[0],i=i.slice(1);else{let e=i.match(i0);if(e){var a;let o=e.groups.tag;(function(e){if(!(i8.test(e)||i4.test(e)))throw Error(e.trim()===e?`Invalid tag "<${e}>". Tag names must be lowercase HTML tags or start with an uppercase letter and can only include letters and numbers.`:`Invalid tag "<${e}>". No whitespace allowed in tags.`)})(o),n&&(t.push(...i9(n)),n=""),(a=e[0],i3.test(a))?t.push({type:"tagOpen",selfClosing:!0,name:o}):(t.push({type:"tagOpen",name:o}),r=o),i=i.slice(e[0].length)}else n+=i[0],i=i.slice(1)}if(r)throw Error(`No matching closing tag for <${r}> found. Either make it self closing (e.g. "<${r}/>") or close it (e.g "<${r}>...</${r}>").`);return n&&t.push(...i9(n)),t})(t),[t]),r=i5();return(0,a.jsx)(a.Fragment,{children:function e(t,n,r,i){let[o,...l]=t;if(!o)return null;if("interpolation"===o.type){let t=n?n[o.variable]:void 0;if(typeof t>"u")return`{{${o.variable}}}`;let s=function(e,t,n){let r=e;for(let i of t)if("list"===i)if(Array.isArray(e))r=n.list(e);else throw Error("List formatter used on non-array value");return`${r}`}(t,o.formatters||[],i);return(0,a.jsxs)(a.Fragment,{children:[s,e(l,n,r,i)]})}if("text"===o.type)return(0,a.jsxs)(a.Fragment,{children:[o.text,e(l,n,r,i)]});if("tagOpen"===o.type&&o.selfClosing){let t=r[o.name];if(!t)throw Error(`Component not found: ${o.name}`);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t,{}),e(l,n,r,i)]})}if("tagOpen"===o.type&&!o.selfClosing){let t=l.findIndex(e=>"tagClose"===e.type),s=l[t];if(s&&o.name!==s.name)throw Error("Nested tags is not allowed");let d=r[o.name];if(!d&&ae.test(o.name))throw Error(`Component not defined: ${o.name}`);if(!d&&!at.has(o.name))throw Error(`HTML tag "${o.name}" is not allowed`);let c=l.slice(0,t),u=l.slice(t+1),p=d||o.name;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p,{children:e(c,n,r,i)}),e(u,n,r,i)]})}return null}(n,e.values,e.components||{},{list:e=>r.format(e)})})}let ar=!1;class ai extends Error{constructor(e,t,n){super(e),this.message=e,this.error=t,this.code=n}}function aa(e){if(e instanceof ai)return(0,k.of)({id:void 0,organizationId:void 0,status:"error",error:e});throw e}function ao(e){return e?.status==="provisioning"}function al(e){return(0,k.of)(e)}function as(e){let t,n,r=(0,o.c)(19),{onSetMediaLibraryId:i}=e,{t:l}=iJ(),{id:d,status:c,error:p}=function(e){let t,n,r,i,a=(0,o.c)(7);if(!e)throw Error("projectId is required to fetch organizationId");a[0]===Symbol.for("react.memo_cache_sentinel")?(t={apiVersion:"v2025-02-19"},a[0]=t):t=a[0];let l=ee7(t).observable;if(a[1]!==l||a[2]!==e){let t;a[4]!==l?(t=e=>l.request({uri:`/media-libraries?organizationId=${e}`,method:"GET"}).pipe((0,$.H)(e=>{if(e&&Array.isArray(e.data))return(0,k.of)(e.data);throw new ai("No media libraries found","No media libraries found","ERROR_NO_MEDIA_LIBRARIES_FOUND")})).pipe((0,$.H)(t=>t.length>0?(0,k.of)({id:t[0].id,organizationId:e,status:"active"}):l.request({uri:"/media-libraries",method:"POST",body:{organizationId:e}}).pipe((0,$.H)(t=>{if(t&&t.id)return(0,k.of)({id:t.id,organizationId:e,status:"provisioning"});throw new ai("Failed to create Media Library","Failed to create Media Library","ERROR_FAILED_TO_CREATE_MEDIA_LIBRARY")}),(0,$.H)(e=>(0,S.x)((0,k.of)(e),(0,A.Y)(1e3).pipe((0,$.H)(()=>{var t;return e.id?(t=e.id,l.request({uri:`/media-libraries/${t}`,method:"GET"}).pipe((0,$.H)(e=>{if(e&&e.id)return(0,k.of)({id:e.id,organizationId:e.organizationId,status:e.status});throw new ai("Media library not found","Media library not found","ERROR_NO_MEDIA_LIBRARIES_FOUND")}))).pipe((0,$.H)(al)):(0,k.of)(e)}),(0,D.v)(ao,!0))))))),a[4]=l,a[5]=t):t=a[5],r=l.request({uri:`/projects/${e}`,method:"GET"}).pipe((0,$.H)(async e=>{if(e.organizationId)return e.organizationId;throw new ai("Organization ID not found","Organization ID not found","ERROR_NO_ORGANIZATION_FOUND")})).pipe((0,z.n)(t),(0,M.W)(aa)),a[1]=l,a[2]=e,a[3]=r}else r=a[3];return n=r,a[6]===Symbol.for("react.memo_cache_sentinel")?(i={status:"loading"},a[6]=i):i=a[6],(0,eH.J)(n,i)}(e.projectId);if(r[0]!==d||r[1]!==i||r[2]!==c?(t=()=>{"active"===c&&d&&i(d)},n=[d,i,c],r[0]=d,r[1]=i,r[2]=c,r[3]=t,r[4]=n):(t=r[3],n=r[4]),(0,s.useEffect)(t,n),"error"===c&&p){let e,t,n,i,o=p.code;return r[5]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.YZv,{})}
107),r[5]=e):e=r[5],r[6]!==p.message||r[7]!==l?(t=p.message||l("asset-sources.media-library.error.library-could-not-be-resolved"),r[6]=p.message,r[7]=l,r[8]=t):t=r[8],r[9]!==t?(n=(0,a.jsx)(u.EY,{size:1,weight:"semibold",children:t}),r[9]=t,r[10]=n):n=r[10],r[11]!==o||r[12]!==n?(i=(0,a.jsx)(u.Zp,{padding:4,radius:4,tone:"critical","data-testid":"media-library-provision-error",children:(0,a.jsxs)(u.so,{gap:3,children:[e,(0,a.jsx)(u.BJ,{space:4,"data-testid":o,children:n})]})}),r[11]=o,r[12]=n,r[13]=i):i=r[13],i}if("provisioning"===c){let e,t,n;return r[14]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(u.y$,{})}),r[14]=e):e=r[14],r[15]!==l?(t=l("asset-sources.media-library.info.provisioning"),r[15]=l,r[16]=t):t=r[16],r[17]!==t?(n=(0,a.jsx)(u.Zp,{padding:4,radius:4,tone:"caution",children:(0,a.jsxs)(u.so,{gap:3,children:[e,(0,a.jsx)(u.BJ,{space:4,children:(0,a.jsx)(u.EY,{size:1,weight:"semibold","data-testid":"media-library-provisioning-message",children:t})})]})}),r[17]=t,r[18]=n):n=r[18],n}return null}let ad=new Map;function ac(e){let t,n,r,i,l,d,p=(0,o.c)(21),{projectId:m,libraryId:h,children:f}=e;p[0]!==m?(t=m&&ad.get(m)||void 0,p[0]=m,p[1]=t):t=p[1];let g=t,[x,b]=(0,s.useState)(h||g||null),[v,j]=(0,s.useState)(null),{t:w}=iJ();p[2]!==m?(n=e=>{b(e),m&&ad.set(m,e)},p[2]=m,p[3]=n):n=p[3];let _=n;p[4]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{let{error:t,info:n}=e;console.error(t,n),j(t)},p[4]=r):r=p[4];let k=r;if(v){let e,t,n;return p[5]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.YZv,{})}),p[5]=e):e=p[5],p[6]!==w||p[7]!==v.message?(t=v.message||w("asset-sources.media-library.error.library-could-not-be-resolved"),p[6]=w,p[7]=v.message,p[8]=t):t=p[8],p[9]!==t?(n=(0,a.jsx)(u.Zp,{padding:4,radius:4,tone:"critical","data-testid":"media-library-provision-error",children:(0,a.jsxs)(u.so,{gap:3,children:[e,(0,a.jsx)(u.BJ,{space:4,"data-testid":"MEDIA_LIBRARY_ERROR_UNEXPECTED",children:(0,a.jsx)(u.EY,{size:1,weight:"semibold",children:t})})]})}),p[9]=t,p[10]=n):n=p[10],n}return p[11]!==f||p[12]!==_||p[13]!==x||p[14]!==m?(i=x?f:(0,a.jsx)(as,{projectId:m,onSetMediaLibraryId:_}),p[11]=f,p[12]=_,p[13]=x,p[14]=m,p[15]=i):i=p[15],p[16]!==i?(l=(0,a.jsx)(y.tH,{onCatch:k,children:i}),p[16]=i,p[17]=l):l=p[17],p[18]!==x||p[19]!==l?(d=(0,a.jsx)(c.gG.Provider,{value:x,children:l}),p[18]=x,p[19]=l,p[20]=d):d=p[20],d}function au(){let e,t,n=(0,o.c)(3);n[0]===Symbol.for("react.memo_cache_sentinel")?(e={apiVersion:"vX"},n[0]=e):e=n[0];let r=ee7(e);n[1]!==r?(t=r.config(),n[1]=r,n[2]=t):t=n[2];let{token:i}=t;return i}function ap(){return au()?"token":"cookie"}function am(){return(0,s.useContext)(c.gG)}let ah=e=>e.documents.find(e=>"sanity.videoAsset"===e._type)?.state==="ready";function af({schemaType:e}){let t=am(),n=ee7({apiVersion:"vX"}),r=ee7({apiVersion:"vX"}).withConfig({"~experimental_resource":{type:"media-library",id:t??""}}),i=(0,s.useCallback)(async(e,n,i)=>{for(let a=0;a<30;a++)try{if(i?.aborted)throw Error("Asset polling was aborted");let o=await r.request({method:"GET",url:`media-libraries/${t}/doc/${e},${n}`,withCredentials:!0,signal:i});if(ah(o))return o.documents;a<29&&await new Promise((e,t)=>{let n=setTimeout(e,1e4);i?.addEventListener("abort",()=>{clearTimeout(n),t(Error("Asset polling was aborted"))})})}catch(e){if(i?.aborted)throw e;if(a<29)await new Promise((e,t)=>{let n=setTimeout(e,1e4);i?.addEventListener("abort",()=>{clearTimeout(n),t(Error("Asset polling was aborted"))})});else throw e}throw Error("Asset failed to become ready after maximum attempts")},[t,r]);return{onLinkAssets:(0,s.useCallback)(async(r,a)=>{if(!t)throw Error("No libraryId found");let o=e&&(0,_.F0)(e)?e.options?.metadata:void 0,l=[];for(let e of r){if(a?.aborted)throw Error("Asset linking was aborted");"sanity.videoAsset"===e.asset.assetType&&await i(e.asset._id,e.assetInstanceId,a);try{let r=(await n.request({method:"POST",url:`/assets/media-library-link/${n.config().dataset}?${o?.map(e=>`meta[]=${e}`).join("&")||""}`,withCredentials:!0,body:{mediaLibraryId:t,assetInstanceId:e.assetInstanceId,assetId:e.asset._id},tag:"media-library.link-asset",signal:a})).document;
107l.push({kind:"assetDocumentId",value:r._id,mediaLibraryProps:{mediaLibraryId:t,assetId:e.asset._id,assetInstanceId:e.assetInstanceId}})}catch(e){throw console.error(e),e}}return l},[n,t,e,i])}}let ag=(e,t)=>{let n,r,i,a,l=(0,o.c)(11),d=au(),[c,u]=(0,s.useState)(null);l[0]!==c||l[1]!==e?(n=t=>{c?.contentWindow&&c.contentWindow?.postMessage(t,e)},l[0]=c,l[1]=e,l[2]=n):n=l[2];let p=n;return l[3]!==t||l[4]!==c||l[5]!==p||l[6]!==d?(r=()=>{let e=e=>{c&&e.source===c?.contentWindow&&("tokenRequest"===e.data.type&&p({type:"tokenResponse",token:d||null}),t&&t(e.data,p))};return window.addEventListener("message",e,!1),()=>{window.removeEventListener("message",e,!1)}},i=[t,c,p,d],l[3]=t,l[4]=c,l[5]=p,l[6]=d,l[7]=r,l[8]=i):(r=l[7],i=l[8]),(0,s.useEffect)(r,i),l[9]!==p?(a={postMessage:p,setIframe:u},l[9]=p,l[10]=a):a=l[10],a};function aC(){let e,t,n,r,i=(0,o.c)(10);i[0]===Symbol.for("react.memo_cache_sentinel")?(e={apiVersion:"vX"},i[0]=e):e=i[0];let a=ee7(e).config().apiHost.endsWith("sanity.work"),l=a?"https://media.sanity.work":"https://media.sanity.io",s=a?"staging":"production",d=a?"https://sanity-cdn.work":"https://sanity-cdn.com",c=a?"https://api.sanity.work":"https://api.sanity.io";i[1]!==l||i[2]!==d||i[3]!==c?(t={cdn:d,app:l,api:c},i[1]=l,i[2]=d,i[3]=c,i[4]=t):t=i[4],i[5]!==s||i[6]!==t?(n={apiVersion:"vX",appBasePath:"",pluginApiVersion:"v1",hosts:t,isLocalDev:!1,env:s},i[5]=s,i[6]=t,i[7]=n):n=i[7];let u=n;return i[8]!==u?(r={__internal:u},i[8]=u,i[9]=r):r=i[9],r}let ay=(0,g.I4)(p.lG)`
108  [data-ui='Card']:first-child {
109    flex: 1;
110  }
111`,ax={display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},ab={display:"none"},av=(0,s.forwardRef)(function(e,t){let n,r,i,l=(0,o.c)(7),{src:s,hidden:d}=e,c=d?ab:ax;return l[0]===Symbol.for("react.memo_cache_sentinel")?(n={overflow:"hidden",flexGrow:1,border:"none",margin:0,padding:0,height:"100%",width:"100%"},l[0]=n):n=l[0],l[1]!==t||l[2]!==s?(r=(0,a.jsx)("iframe",{ref:t,src:s,style:n}),l[1]=t,l[2]=s,l[3]=r):r=l[3],l[4]!==c||l[5]!==r?(i=(0,a.jsx)(u.Zp,{style:c,children:r}),l[4]=c,l[5]=r,l[6]=i):i=l[6],i});function aj(e){let t,n,r,i,l,d,c,m,h,f,g,C=(0,o.c)(36),x=(0,u.DP)(),{t:b}=iJ(),{dark:v}=x.sanity.color,j=am(),w=aC(),_=w.__internal.hosts.app,k=ap(),{dialogHeaderTitle:S,onClose:T,open:I,onSelect:E,selectionType:$,ref:A,selectAssetType:D,schemaType:z}
111=e,M=(0,p.dj)(),[P,R]=(0,s.useState)(e.selection),[O,V]=(0,s.useState)(!1),L=w.__internal.pluginApiVersion,F=w.__internal.appBasePath,B=`${_}${F}/plugin/${L}/library/${j}/assets?selectionType=${void 0===$?"single":$}&selectAssetTypes=${"sanity.video"===D?"video":D}&scheme=${v?"dark":"light"}&auth=${k}`;C[0]!==z?(t={schemaType:z},C[0]=z,C[1]=t):t=C[1];let{onLinkAssets:N}=af(t);C[2]!==P||C[3]!==T||C[4]!==N||C[5]!==E||C[6]!==b||C[7]!==M?(n=async()=>{try{V(!0);let e=await N([P[0]]);E(e),T()}catch(e){M.push({closable:!0,status:"error",id:"insert-asset-error",title:b("asset-source.dialog.insert-asset-error")}),console.error(e),V(!1)}},C[2]=P,C[3]=T,C[4]=N,C[5]=E,C[6]=b,C[7]=M,C[8]=n):n=C[8];let Y=n;C[9]!==T?(r=()=>{T()},C[9]=T,C[10]=r):r=C[10];let H=r;C[11]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{"assetSelection"===e.type&&R(e.selection)},C[11]=i):i=C[11];let{setIframe:Z}=ag(_,i);if(!I)return null;C[12]!==b?(l=b("asset-source.dialog.button.cancel"),C[12]=b,C[13]=l):l=C[13],C[14]!==H||C[15]!==l?(d=(0,a.jsx)(y.$n,{mode:"ghost",onClick:H,text:l,size:"large"}),C[14]=H,C[15]=l,C[16]=d):d=C[16];let U=0===P.length;return C[17]!==b?(c=b("asset-source.dialog.button.select"),C[17]=b,C[18]=c):c=C[18],C[19]!==O||C[20]!==Y||C[21]!==U||C[22]!==c?(m=(0,a.jsx)(y.$n,{onClick:Y,loading:O,disabled:U,text:c,size:"large"}),C[19]=O,C[20]=Y,C[21]=U,C[22]=c,C[23]=m):m=C[23],C[24]!==d||C[25]!==m?(h=(0,a.jsx)(u.so,{width:"full",gap:3,justify:"flex-end",padding:2,children:(0,a.jsx)(u.BJ,{space:3,children:(0,a.jsxs)(u.so,{width:"full",gap:3,justify:"flex-end",padding:3,children:[d,m]})})}),C[24]=d,C[25]=m,C[26]=h):h=C[26],C[27]!==B||C[28]!==Z?(f=(0,a.jsx)(av,{ref:Z,src:B}),C[27]=B,C[28]=Z,C[29]=f):f=C[29],C[30]!==S||C[31]!==H||C[32]!==A||C[33]!==h||C[34]!==f?(g=(0,a.jsx)(ay,{animate:!0,header:S,id:"media-library-plugin-dialog-select-assets",onClose:H,open:!0,ref:A,"data-testid":"media-library-plugin-dialog-select-assets",width:3,footer:h,children:f}),C[30]=S,C[31]=H,C[32]=A,C[33]=h,C[34]=f,C[35]=g):g=C[35],g}let aw=function(e){let t,n,r,i,l,d=(0,o.c)(21),c=(0,u.DP)(),m=am(),{dark:h}=c.sanity.color,{schemaType:f}=e;d[0]!==f?(t={schemaType:f},d[0]=f,d[1]=t):t=d[1];let{onLinkAssets:g}=af(t),{open:C,onSelect:y,onClose:x,uploader:b}=e,v=aC(),j=ap(),w=(0,p.dj)(),{t:_}=iJ(),k=v.__internal.hosts.app,S=v.__internal.pluginApiVersion,T=v.__internal.appBasePath,I=`${k}${T}/plugin/${S}/library/${m}/upload?scheme=${h?"dark":"light"}&auth=${j}`,E=(0,s.createRef)(),[$,A]=(0,s.useState)(!1);d[2]!==x||d[3]!==g||d[4]!==y||d[5]!==_||d[6]!==w?(n=async e=>{try{let t=await g(e);y(t),x()}catch(e){w.push({closable:!0,status:"error",id:"insert-asset-error",title:_("asset-source.dialog.insert-asset-error")}),console.error(e)}},d[2]=x,d[3]=g,d[4]=y,d[5]=_,d[6]=w,d[7]=n):n=d[7];let D=n;d[8]!==D||d[9]!==C||d[10]!==b?(r=e=>{C&&("pageLoaded"===e.type&&"upload"===e.page&&A(!0),"pageUnloaded"===e.type&&"upload"===e.page&&A(!1),"uploadProgress"===e.type&&b&&e.files.forEach(e=>{let{id:t,status:n,progress:r,error:i}=e;b.updateFile(t,{status:n,progress:r,error:i})}),"uploadResponse"===e.type&&b&&D(e.assets))},d[8]=D,d[9]=C,d[10]=b,d[11]=r):r=d[11];let{postMessage:z,setIframe:M}=ag(k,r);return(d[12]!==C||d[13]!==$||d[14]!==z||d[15]!==b||d[16]!==E?(i=[C,$,z,b,E],d[12]=C,d[13]=$,d[14]=z,d[15]=b,d[16]=E,d[17]=i):i=d[17],(0,s.useEffect)(()=>C&&b?($&&b.getFiles().length>0&&b.getFiles().every(a_)&&(z({type:"uploadRequest",files:b.getFiles()}),A(!1)),E.current={uploader:b,unsubscribe:b.subscribe(e=>{"status"===e.type&&"aborted"===e.status&&z({type:"abortUploadRequest",files:[{id:e.file.id}]})})},E.current.unsubscribe):E.current?.unsubscribe(),i),C)?(d[18]!==I||d[19]!==M?(l=(0,a.jsx)(av,{ref:M,src:I,hidden:!0}),d[18]=I,d[19]=M,d[20]=l):l=d[20],l):null};function a_(e){return"pending"===e.status}let ak=(0,s.memo)((0,s.forwardRef)(function(e,t){let n,r,i,l,s,d,c,u=(0,o.c)(27),{action:p,assetType:m,dialogHeaderTitle:h,libraryId:f,onClose:g,onSelect:C,schemaType:y,uploader:x}=e,b=void 0===p?"select":p,v=void 0===m?"image":m,{t:j}=iJ();u[0]===Symbol.for("react.memo_cache_sentinel")?(n={apiVersion:"vX"},u[0]=n):n=u[0];let w=ee7(n);u[1]!==w?(r=w.config(),u[1]=w,u[2]=r):r=u[2];let _=r.projectId;if(!_)throw Error("No projectId found");let k="upload"===b;u[3]!==g||u[4]!==C||u[5]!==y||u[6]!==k||u[7]!==x?(i=(0,a.jsx)(aw,{open:k,onClose:g,onSelect:C,schemaType:y,uploader:x}),u[3]=g,u[4]=C,u[5]=y,u[6]=k,u[7]=x,u[8]=i):i=u[8],u[9]!==v||u[10]!==h||u[11]!==j?(l=h||j("asset-source.dialog.default-title",{context:v}),u[9]=v,u[10]=h,u[11]=j,u[12]=l):l=u[12];let S="select"===b;return u[13]===Symbol.for("react.memo_cache_sentinel")?(s=[],u[13]=s):s=u[13],u[14]!==v||u[15]!==g||u[16]!==C||u[17]!==t||u[18]!==y||u[19]!==l||u[20]!==S?(d=(0,a.jsx)(aj,{dialogHeaderTitle:l,open:S,ref:t,onClose:g,onSelect:C,selection:s,schemaType:y,selectAssetType:v}),u[14]=v,u[15]=g,u[16]=C,u[17]=t,u[18]=y,u[19]=l,u[20]=S,u[21]=d):d=u[21],u[22]!==f||u[23]!==_||u[24]!==i||u[25]!==d?(c=(0,a.jsxs)(ac,{projectId:_,libraryId:f,children:[i,d]}),u[22]=f,u[23]=_,u[24]=i,u[25]=d,u[26]=c):c=u[26],c}));class aS{files=[];subscribers=new Set;checkAllComplete(){this.files.length>0&&this.files.every(e=>["complete","error","aborted"].includes(e.status))&&(this.files.some(e=>
111"error"===e.status)&&this.emit({type:"error",files:this.files.filter(e=>"error"===e.status)}),this.emit({type:"all-complete",files:this.files}),this.reset())}emit(e){this.subscribers.forEach(t=>t(e))}upload(e){for(let t of e){let e={id:(0,nA.A)(),file:t,progress:0,status:"pending"};this.files.push(e)}return this.files}abort(e){if(e){let t=this.files.find(t=>t.id===e.id);t&&["pending","uploading"].includes(t.status)&&this.updateFile(t.id,{status:"aborted"})}else for(let e of this.files)["pending","uploading"].includes(e.status)&&this.updateFile(e.id,{status:"aborted"});this.emit({type:"abort",files:this.files.filter(e=>"aborted"===e.status)}),this.checkAllComplete()}updateFile(e,t){let n=this.files.find(t=>t.id===e);n&&(t.error&&(n.error=t.error),t.progress&&t.progress!==n.progress&&(n.progress=t.progress,this.emit({type:"progress",file:n,progress:100*n.progress})),t.status&&t.status!==n.status&&(n.status=t.status,this.emit({type:"status",file:n,status:n.status}))),this.checkAllComplete()}subscribe(e){for(let t of(this.subscribers.add(e),this.files))e({type:"status",file:t,status:t.status}),e({type:"progress",file:t,progress:t.progress});return this.checkAllComplete(),()=>{this.subscribers.delete(e)}}getFiles(){return this.files}reset(){this.files=[]}}let aT="sanity-media-library",aI=()=>(0,a.jsx)(s.Fragment,{});function aE(e){let t,n=(0,o.c)(4),{options:r}=co().__internal,{defaultComponent:i,pick:l}=e;if(n[0]!==i||n[1]!==r||n[2]!==l){let e=[...Oj(r,[])];e.reverse(),t=function(e,t){function n(t){return(0,a.jsx)(e,{...t})}return function(e){let r,i,l,d=(0,o.c)(6),c=n;if(d[0]===Symbol.for("react.memo_cache_sentinel")){for(let e of t){let t=c;c=n=>(0,a.jsx)(e,{...n,renderDefault:t})}d[0]=c}else c=d[0];return d[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,a.jsx)(p.EA,{padding:3,radius:1,animated:!0}),d[1]=r):r=d[1],d[2]!==e?(i=c({...e,renderDefault:aI}),d[2]=e,d[3]=i):i=d[3],d[4]!==i?(l=(0,a.jsx)(s.Suspense,{fallback:r,children:i}),d[4]=i,d[5]=l):l=d[5],l}}(i,e.map(e=>{let{config:t}=e;return l(t)}).filter(Boolean)),n[0]=i,n[1]=r,n[2]=l,n[3]=t}else t=n[3];return t}class a$ extends Error{constructor({propertyName:e,path:t,cause:n}){super(`An error occurred while resolving \`${e}\` from ${t.join(" > ")}${iI(n)&&"string"==typeof n?.message?`: ${n.message}`:""}`),this.name="ConfigPropertyError",this.propertyName=e,this.cause=n,this.path=t}}class aA extends Error{constructor({causes:e,name:t,type:n}){super(`Could not resolve ${n}${t?` \`${t}\``:""}:
112${e.filter(Boolean).map(e=>iI(e)&&"string"==typeof e?.message?e.message:String(e)).map(e=>`	- ${e}`).join(`
113`)}
114
115`),this.name=t,this.causes=e,this.type=n}}function aD(e){return Math.abs(16807*e.split("").reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0)%0x7fffffff)/0x7fffffff}let az=g.I4.text`
116  font-family: ${({theme:e})=>e.sanity.fonts.text.family};
117  font-weight: ${({theme:e})=>e.sanity.fonts.text.weights.medium};
118  font-size: ${({theme:e})=>e.sanity.fonts.text.sizes[1].fontSize}px;
119  transform: translateY(1px);
120`;function aM(e){return e}function aP(e){let t=["projectId"in e&&"`projectId` not allowed in plugin configuration","dataset"in e&&"`dataset` not allowed in plugin configuration"].filter(tJ);if(t.length)throw Error(`Invalid plugin configuration:
121${t.map(e=>`	${e}`).join(`
122`)}`)}function aR(e){return"function"==typeof e?t=>{let n=e(t);return aP(n),n}:(aP(e),()=>e)}let aO={delete:"delete",discardChanges:"discardChanges",discardVersion:"discardVersion",duplicate:"duplicate",restore:"restore",publish:"publish",unpublish:"unpublish",unpublishVersion:"unpublishVersion",linkToCanvas:"linkToCanvas",editInCanvas:"editInCanvas",unlinkFromCanvas:"unlinkFromCanvas",schedule:"schedule"},aV=e=>!!e.action&&void 0!==aO[e.action],aL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,aF=/_key\s*==\s*['"](.*)['"]/;function aB(e){if(!Array.isArray(e))throw Error("Path is not an array");return e.reduce((e,t,n)=>{if((0,_.wr)(t))return`${e}[${t}]`;if((0,_.tA)(t)&&t._key)return`${e}[_key=="${t._key}"]`;if((0,_.Z9)(t)){let[n,r]=t;return`${e}[${n}:${r}]`}if("string"==typeof t)return`${e}${0===n?"":"."}${t}`;throw Error(`Unsupported path segment \`${JSON.stringify(t)}\``)},"")}function aN(e,t){let n=t[0];if(typeof n>"u")return e;let r=t.slice(1);if((0,_.wr)(n))return aN(Array.isArray(e)?e[n]:void 0,r);if((0,_.tA)(n))return aN(Array.isArray(e)?e.find(e=>e._key===n._key):void 0,r);if("string"==typeof n)return aN(iI(e)?e[n]:void 0,r);throw Error(`Unknown segment type ${JSON.stringify(n)}`)}function aY(e){return(0,_.wr)(e)?Number(e.replace(/[^\d]/g,"")):(0,_.tA)(e)?function(e){let t=e.match(aF);if(!t)throw Error("Invalid key segment");return{_key:t[1]}}(e):(0,_.Z9)(e)?function(e){let[t,n]=e.split(":").map(e=>""===e?e:Number(e));return[t,n]}(e):e}function aH(e,t){return e.length===t.length&&e.every((e,n)=>{let r=t[n];return(0,_.tA)(e)&&(0,_.tA)(r)?e._key===r._key:(0,_.wr)(e)?Number(e)===Number(r):(0,_.Z9)(e)&&(0,_.Z9)(r)?e[0]===r[0]&&e[1]===r[1]:e===r})}function aZ(e){return(0,_.o8)(e)?e._key:void 0}function aU(e){let t=aZ(e);return t?{_key:t}:void 0}function aq(e,t){return e.get(t?.author||null)}function aJ(e,t){var n=e,r=Array.isArray(t)?t:function(e){let t=e.match(aL);if(!t)throw Error("Invalid path string");return t.map(aY)}(t);let i=function e(t,n,r=[]){if(0===n.length)return t;let i=n[0],a=n.slice(1);if((0,_.Z9)(i))throw Error("Index tuples are not supported in diff paths");
122if((0,_.wr)(i)||(0,_.tA)(i)){if((0,_.wr)(i)||i._key,"array"!==t.type)return void aB(r);let n=t.items.find((0,_.wr)(i)?e=>e.toIndex===i:e=>(function(e,t){let n=e.diff;return"object"===n.type&&!!n.toValue&&n.toValue._key===t})(e,i));return n?e(n.diff,a,r.concat(i)):void aB(r)}if("object"!==t.type)return void aB(r);let o=t.fields[i];return typeof o>"u"?void aB(r):e(o,a,r.concat(i))}(n,r);return i&&"unchanged"!==i.action&&i.annotation||void 0}function aW(){let e=(0,s.useContext)(c.vu);if(!e)throw Error("UserColorManager: missing context value");return e}function aK(e){let t,n,r,i=(0,o.c)(5),a=aW();return i[0]!==a||i[1]!==e?(n=e?a.listen(e):I.w,i[0]=a,i[1]=e,i[2]=n):n=i[2],t=n,i[3]!==a?(r=a.get(null),i[3]=a,i[4]=r):r=i[4],(0,eH.J)(t,r)}let aG=["green","red","gray"],aX=v.Cv.filter(e=>!aG.includes(e)),aQ=e=>{let t="dark"===e;return{background:t?"900":"100",border:t?"700":"300",text:t?"200":"700"}};function a1(e){let t,n,r,i=(0,o.c)(6),{children:l,manager:s}=e,d=Kj();return i[0]!==s||i[1]!==d?(n=s||function(e){let t,{anonymousColor:n,colors:r,currentUserColor:i,scheme:a}=e,o=r||(e=>{let{background:t,border:n,text:r}=aQ(e);return aX.reduce((e,i)=>(e[i]={name:i,background:v.OZ[i][t].hex,border:v.OZ[i][n].hex,text:v.OZ[i][r].hex,tints:v.OZ[i]},e),{})})(a),l=n||(e=>{let{background:t,border:n,text:r}=aQ(e);return{name:"gray",background:v.OZ.gray[t].hex,border:v.OZ.gray[n].hex,text:v.OZ.gray[r].hex,tints:v.OZ.gray}})(a),s=i||"purple";if(!o.hasOwnProperty(s))throw Error(`'colors' must contain 'currentUserColor' (${s})`);let d=Object.keys(o),c=new Map,u=new Map,p=d.reduce((e,t)=>(e[t]=0,e),{}),m=new Map;return e?.userStore&&e.userStore.me.subscribe(e=>{var n;t=n=e?e.id:null,p[s]+=n?1:-1}),{get:function(e){return e?o[h(e)]:l},listen:function(e){var t,n;let r=c.get(e);if(r)return r;let i=h(e);return t=e,n=i,r=new P.c(e=>{let r=o[n];return e.next(r),()=>{c.delete(t),m.delete(t),p[n]--}}).pipe((0,Y.t)({refCount:!0})),c.set(e,r),r}};function h(e){var n;let r,i;if(e===t)return s;let a=m.get(e);if(a)return a;let o=u.get(e);if(o&&(0===p[o]||!d.find(e=>0===p[e])))return f(e,o);let l=function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n)|0;return d[Math.abs(t)%d.length]}(e);return 0===p[l]?f(e,l):f(e,(n=o,r=1/0,i=[],d.forEach(e=>{let t=p[e];t===r?i.push(e):t<r&&(r=t,i=[e])}),n&&i.includes(n)?n:i[0]))}function f(e,t){return m.set(e,t),u.set(e,t),p[t]++,t}}({scheme:d}),i[0]=s,i[1]=d,i[2]=n):n=i[2],t=n,i[3]!==l||i[4]!==t?(r=(0,a.jsx)(c.vu.Provider,{value:t,children:l}),i[3]=l,i[4]=t,i[5]=r):r=i[5],r}function a2(e){let t,n=(0,o.c)(3),r=aW();return n[0]!==e||n[1]!==r?(t=aq(r,e),n[0]=e,n[1]=r,n[2]=t):t=n[2],t}function a5(e,t=[]){let n=aW(),r=(0,s.useMemo)(()=>aJ(e,t),[e,t]);return(0,s.useMemo)(()=>aq(n,r),[r,n])}let a0=function(){if(!r9){let e=Object.create(null);return{getKey:t=>e[t]||null,setKey(t,n){e[t]=n}}}return{getKey:function(e){let t=localStorage.getItem(e);return null===t?null:function(e){try{return JSON.parse(e)}catch(e){return console.warn(`Failed to parse settings: ${e.message}`),null}}(t)},setKey:function(e,t){typeof t>"u"||null===t?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(t))}}}(),a7={apiVersion:"2025-02-19"},a3=(e,t)=>t?e.withConfig({apiVersion:t}):e;class a8 extends Error{constructor({projectId:e}){super("CorsOriginError"),this.name="CorsOriginError",this.projectId=e}}let a4={};function a6(e,t){r9?localStorage[e]=t:a4[e]=t}function a9(e){r9?localStorage.removeItem(e):delete a4[e]}let oe=g.I4.svg(({theme:e})=>{let{fg:t}=e.sanity.color.base;return(0,g.AH)`
123    fill: ${t};
124  `}),ot=g.I4.img`
125  height: 19px;
126  width: 19px;
127  object-fit: contain;
128`;function on(e){let t,n=(0,o.c)(3),{provider:r}=e;return n[0]!==r.logo||n[1]!==r.name?(t=r.logo?(0,a.jsx)(ot,{src:r.logo,alt:`Logo for ${r.name}`}):void 0,n[0]=r.logo,n[1]=r.name,n[2]=t):t=n[2],t}let or={google:()=>{let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)("svg",{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",children:[(0,a.jsx)("path",{d:"M11 24a13 13 0 0 1 .66-4.08l-7.4-5.66a22.18 22.18 0 0 0 0 19.49l7.4-5.67A13 13 0 0 1 11 24z",fill:"#fbbc05"}),(0,a.jsx)("path",{d:"M24 11a12.72 12.72 0 0 1 8.1 2.9l6.4-6.4a22 22 0 0 0-34.24 6.75l7.4 5.66A13 13 0 0 1 24 11z",fill:"#ea4335"}),(0,a.jsx)("path",{d:"M24 37a13 13 0 0 1-12.34-8.92l-7.4 5.66A21.93 21.93 0 0 0 24 46a21 21 0 0 0 14.33-5.48l-7-5.44A13.59 13.59 0 0 1 24 37zm-12.35-8.93l-7.4 5.67 7.4-5.66z",fill:"#34a853"}),(0,a.jsx)("path",{d:"M44.5 20H24v8.5h11.8a9.91 9.91 0 0 1-4.49 6.58l7 5.44C42.37 36.76 45 31.17 45 24a18.25 18.25 0 0 0-.5-4z",fill:"#4285f4"})]}),t[0]=e):e=t[0],e},github:()=>{let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(oe,{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 438.55 438.55",children:(0,a.jsx)("path",{d:"M409.13 114.57a218.32 218.32 0 0 0-79.8-79.8Q278.94 5.36 219.27 5.36T109.21 34.77a218.29 218.29 0 0 0-79.8 79.8Q0 165 0 224.63q0 71.67 41.83 128.91t108.06 79.23q7.71 1.43 11.42-2a11.17 11.
12817 0 0 0 3.69-8.57q0-.86-.14-15.42t-.14-25.41l-6.57 1.14a83.77 83.77 0 0 1-15.85 1 120.73 120.73 0 0 1-19.84-2 44.34 44.34 0 0 1-19.11-8.51 36.23 36.23 0 0 1-12.56-17.6l-2.86-6.57a71.34 71.34 0 0 0-9-14.56q-6.14-8-12.42-10.85l-2-1.43a21 21 0 0 1-3.71-3.43 15.66 15.66 0 0 1-2.57-4q-.86-2 1.43-3.29C61.2 310.42 64 310 68 310l5.71.85q5.71 1.14 14.13 6.85a46.08 46.08 0 0 1 13.85 14.84q6.57 11.71 15.85 17.85t18.7 6.14a81.19 81.19 0 0 0 16.27-1.42 56.78 56.78 0 0 0 12.85-4.29q2.57-19.14 14-29.41a195.49 195.49 0 0 1-29.36-5.13 116.52 116.52 0 0 1-26.83-11.14 76.86 76.86 0 0 1-23-19.13q-9.14-11.42-15-30t-5.8-42.81q0-34.55 22.56-58.82-10.57-26 2-58.24 8.28-2.57 24.55 3.85t23.84 11q7.57 4.56 12.13 7.71a206.2 206.2 0 0 1 109.64 0l10.85-6.85a153.65 153.65 0 0 1 26.26-12.56q15.13-5.71 23.13-3.14 12.84 32.26 2.28 58.24 22.55 24.27 22.56 58.82 0 24.27-5.85 43t-15.12 30a79.82 79.82 0 0 1-23.13 19 116.74 116.74 0 0 1-26.84 11.14 195.29 195.29 0 0 1-29.23 5.07q14.8 12.84 14.81 40.58v60.2a11.37 11.37 0 0 0 3.57 8.56q3.57 3.42 11.28 2 66.24-22 108.07-79.23t41.83-128.91q-.03-59.62-29.43-110.05z"})}),t[0]=e):e=t[0],e}};async function oi({client:e,mode:t,providers:n=[]}){if("replace"===t&&Array.isArray(n))return n;let{providers:r}=await e.request({uri:"/auth/providers"});return"function"==typeof n?n(r):0===n.length?r:"replace"===t?n:r.filter(e=>n.some(t=>t.url!==e.url)).concat(n)}function oa({loginMethod:e="dual",projectId:t,url:n,redirectPath:r}){let i=new URLSearchParams;return i.set("origin",`${window.location.origin}${r}`),i.set("projectId",t),"token"===e?i.set("withSid","true"):i.set("type",e),`${n}?${i}`}let oo=/sid=([^&]{20,})&?/,ol=function(){if(typeof window>"u"||"object"!=typeof window.location)return null;let e=window.location.hash,[,t]=e.match(oo)||[];if(!t)return null;let n=e.replace(oo,""),r=new URL(window.location.href);return r.hash=n.length>1?n:"",history.replaceState(null,"",r),t}(),os=e=>{if(!e)throw Error("Invalid project id");return`__studio_auth_token_${e}`},od=e=>{let t=(e=>{try{let t=function(e){return r9?localStorage[e]:a4[e]}(os(e));if(!t)return null;let{token:n}=JSON.parse(t);return n&&"string"==typeof n?n:null}catch(e){return console.error(e),null}})(e),n=(()=>{if(typeof window>"u"||"object"!=typeof window.location)return null;let e=/token=([^&]{32,})&?/,[,t]=window.location.hash.match(e)||[];if(!t)return null;let n=window.location.hash.replace(e,""),r=new URL(window.location.href);return r.hash=n.length>1?n:"",history.replaceState(null,"",r),t})();return n&&(!t||n!==t)?(ou({token:n,projectId:e}),n):t||null},oc=e=>{try{a9(os(e))}catch(e){console.error("Failed to clear auth token from storage:",e)}},ou=({token:e,projectId:t})=>{try{a6(os(t),JSON.stringify({token:e,time:new Date().toISOString()}))}catch(e){console.error("Failed to save auth token to storage:",e)}},op=async(e,t)=>{try{let t=await e.request({uri:"/users/me",tag:"users.get-current"});return"string"==typeof t?.id?t:null}catch(n){if(401===n.statusCode)return oc(e.config().projectId||""),t(null),null;if(await e.request({uri:"/ping",withCredentials:!1,tag:"cors-check"}).then(()=>!0,()=>!1))throw new a8({projectId:e.config()?.projectId});if(n.isNetworkError&&!n.message&&n.request&&n.request.url){let e=new URL(n.request.url).host;throw Error(`Unknown network error attempting to reach ${e}`)}throw n}},om=eY(function({clientFactory:e,projectId:t,dataset:n,apiHost:r,loginMethod:i="dual",...l}){let{broadcast:d,messages:c}=function(e){let t=typeof window>"u"?(0,k.of)():(0,V.R)(window,"storage"),n=`__studio_local_storage_messaging_${e}`,r=new O.B;return{messages:(0,R.h)(r,t.pipe((0,q.p)(e=>e.key===n),(0,E.T)(e=>e.newValue),(0,q.p)(io),(0,E.T)(e=>JSON.parse(e)))).pipe((0,Y.t)(1)),broadcast:function(e){try{a6(n,JSON.stringify(e)),a9(n),r.next(e)}catch{}}}}(`dual_mode_auth_${t}`),p=e??eB.UU,m=c.pipe((0,Z.Z)(["dual","token"].includes(i)?od(t):null)),h={};r?h.apiHost=r:"u">typeof __SANITY_STAGING__&&!0===__SANITY_STAGING__&&(h.apiHost="https://api.sanity.work");let f=m.pipe((0,E.T)(e=>p({projectId:t,dataset:n,apiVersion:"2021-06-07",useCdn:!1,...e?{token:e}:{withCredentials:!0},perspective:"raw",requestTagPrefix:"sanity.studio",ignoreBrowserTokenWarning:!0,allowReconfigure:!1,...h})),(0,z.n)(e=>(0,T.v)(async()=>{let t=await op(e,d);return{currentUser:t,client:e,authenticated:!!t}}
128)),(0,ei.F)((e,t)=>eN(e.currentUser,t.currentUser)),(0,Y.t)(1));async function g(){let e,r=(()=>{let e=ol;return e&&(ol=null),e})();if(!r)return void d("cookie"===i?null:od(t));let a=p({projectId:t,dataset:n,useCdn:!0,withCredentials:!0,apiVersion:"2021-06-07",requestTagPrefix:"sanity.studio",...h});if(("dual"===i||"cookie"===i)&&(e=await op(a,d)),e||"cookie"===i)return void d(null);d(await C(a,r)??null)}async function C(e,n){let{token:r}=await e.request({method:"GET",uri:"/auth/fetch",query:{sid:n},tag:"auth.fetch-token"});return ou({token:r,projectId:t}),r}async function x(){let e=od(t),r=p({projectId:t,dataset:n,useCdn:!0,...e?{token:e}:{withCredentials:!0},apiVersion:"2021-06-07",requestTagPrefix:"sanity.studio",...h});oc(t),await r.request({uri:"/auth/logout",method:"POST"}),d(null)}let b=function({getClient:e,loginMethod:t,redirectOnSingle:n,...r}){let i=ia(e);return function(e){let l,d,c,p,m,h,f,g,C,x,b=(0,o.c)(24);b[0]!==e?({projectId:l,...d}=e,b[0]=e,b[1]=l,b[2]=d):(l=b[1],d=b[2]);let v=d.redirectPath||d.basePath||"/",[j,w]=(0,s.useState)(null),[_,k]=(0,s.useState)(null);if(_)throw _;let[S]=i();b[3]!==S?(c=()=>{S&&oi({client:S,...r}).then(w).catch(k)},p=[S],b[3]=S,b[4]=c,b[5]=p):(c=b[4],p=b[5]),(0,s.useEffect)(c,p),b[6]!==l||b[7]!==j||b[8]!==v?(m=n&&j?.length===1&&j?.[0]&&oa({loginMethod:t,projectId:l,url:j[0].url,redirectPath:v}),b[6]=l,b[7]=j,b[8]=v,b[9]=m):m=b[9];let T=m,I=!j||T;if(b[10]!==T?(h=()=>{T&&(window.location.href=T)},f=[T],b[10]=T,b[11]=h,b[12]=f):(h=b[11],f=b[12]),(0,s.useEffect)(h,f),I){let e;return b[13]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(r5,{showText:!0}),b[13]=e):e=b[13],e}if(b[14]===Symbol.for("react.memo_cache_sentinel")?(g=(0,a.jsx)(u.DZ,{align:"center",size:1,children:"Choose login provider"}),b[14]=g):g=b[14],b[15]!==l||b[16]!==j||b[17]!==v){let e;b[19]!==l||b[20]!==v?(e=(e,n)=>(0,a.jsx)(y.$n,{as:"a",icon:or[e.name]||(0,a.jsx)(on,{provider:e}),href:oa({loginMethod:t,projectId:l,url:e.url,redirectPath:v}),mode:"ghost",size:"large",text:e.title},`${e.url}_${n}`),b[19]=l,b[20]=v,b[21]=e):e=b[21],C=j.map(e),b[15]=l,b[16]=j,b[17]=v,b[18]=C}else C=b[18];return b[22]!==C?(x=(0,a.jsxs)(u.BJ,{space:4,children:[g,(0,a.jsx)(u.BJ,{space:2,children:C})]}),b[22]=C,b[23]=x):x=b[23],x}}({...l,getClient:()=>f.pipe((0,E.T)(e=>e.client)),loginMethod:i});return{handleCallbackUrl:g,token:m,state:f,LoginComponent:b,logout:x}},function e(t){return"object"!=typeof t||null===t?`${t}`:JSON.stringify(Object.fromEntries(Object.entries(t).sort(([e],[t])=>e.localeCompare(t,"en")).map(([t,n])=>[t,e(n)])))});function oh(e){return"google"===e?"Google":"github"===e?"GitHub":"sanity"===e?"Sanity":e?.startsWith("saml-")?"SAML/SSO":void 0}let of=typeof window>"u"?(0,k.of)({}):(0,V.R)(window,"online"),og=typeof window>"u"?(0,k.of)({}):(0,V.R)(window,"offline"),oC={type:"connecting"},oy=(0,eZ.t)(),ox=oy[0];function ob(e){return e.type?ob(e.type):"block"===e.name}function ov(e){return"field"===e.kind&&"array"===e.field.schemaType.jsonType}oy[1];let oj=["_key","_type","_weak"];function ow(e){return Object.keys(e).every(e=>oj.includes(e))}function o_(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function ok(e){return!("object"!=typeof e||!e||!("jsonType"in e)||"string"!=typeof e.jsonType||!("name"in e)||"string"!=typeof e.name)}let oS=function({decorator:e=function(e){return e}}={}){let t=e(function(e,n){if(e===n||null===e||"object"!=typeof e||"object"!=typeof n)return n;if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return n;let r=n.map((n,r)=>t(e[r],n));return r.every((t,n)=>t===e[n])?e:r}if(ok(e)||ok(n)||!o_(e)||!o_(n))return n;let r={},i=!1,a=new Set(Object.keys(n));for(let o of Object.getOwnPropertyNames(n))if(o in e){let l=t(e[o],n[o]);a.has(o)?r[o]=l:Object.defineProperty(r,o,{value:l,enumerable:!1}),i=i||l!==e[o]}else a.has(o)?r[o]=n[o]:Object.defineProperty(r,o,{value:n[o],enumerable:!1}),i=!0;for(let t of Object.getOwnPropertyNames(e))if(!(t in n)){i=!0;break}return i?r:e});return t}();function oT(e){let t,n=(0,o.c)(3);return n[0]!==e.children||n[1]!==e.presence?(t=(0,a.jsx)(c.tt.Provider,{value:e.presence,children:e.children}),n[0]=e.children,n[1]=e.presence,n[2]=t):t=n[2],t}function oI(){let e=(0,s.useContext)(c.tt);if(!e)throw Error("Form context not provided");return e}function oE(e,t){let n=oI(),r=(0,s.useRef)(n),i=oS(r.current,n.filter(n=>(0,l.w1)(e,n.path)&&t));return r.current=i,i}function o$(){let e=(0,s.useContext)(c.NU);if(!e)throw Error("FormBuilder: missing context value");return e}oT.displayName="PresenceProvider";let oA=(0,g.I4)(u.EY)(({theme:e})=>(0,g.AH)`
129    &[data-info] {
130      color: ${e.sanity.color.muted.primary.enabled.fg};
131    }
132
133    &[data-warning] {
134      color: ${e.sanity.color.muted.caution.enabled.fg};
135    }
136
137    &[data-error] {
138      color: ${e.sanity.color.muted.critical.enabled.fg};
139    }
140  `);function oD(e){let t,n,r,i=(0,o.c)(10),{markers:l,validation:s,renderCustomMarkers:d}=e,{CustomMarkers:c}=o$().__internal.components;return 0===l.length&&0===s.length?null:(i[0]!==s?(t=s.length>0&&s.map((e,t)=>{let{message:n,level:r}=e;return(0,a.jsxs)(u.so,{children:[(0,a.jsx)(u.az,{marginRight:2,marginBottom:2*(t+1!==s.length),children:(0,a.jsx)(oA,{size:1,"data-error":"error"===r?"":void 0,"data-warning":"warning"===r?"":void 0,"data-info":"info"===r?"":void 0,children:"error"===r?(0,a.jsx)(C.YZv,{}):"warning"===r?(0,a.jsx)(C.sAQ,{}):(0,a.jsx)(C.YzR,{})})}),(0,a.jsx)(u.az,{children:(0,a.jsx)(u.EY,{size:1,children:n||"Error"})})]},`validationItem-${t}`)}),i[0]=s,i[1]=t):t=i[1],i[2]!==c||i[3]!==l||i[4]!==d||i[5]!==s.length?(n=l.length>0&&(0,a.jsxs)(u.az,{marginTop:3*(s.length>0),children:[d&&d(l),!d&&(0,a.jsx)(c,{markers:l})]}),i[2]=c,i[3]=l,i[4]=d,i[5]=s.length,i[6]=n):n=i[6],i[7]!==t||i[8]!==n?(r=(0,a.jsxs)(u.BJ,{space:1,children:[t,n]}),i[7]=t,i[8]=n,i[9]=r):r=i[9],r)}function oz(e){let t,n=(0,o.c)(3);return n[0]!==e.children||n[1]!==e.validation?(t=(0,a.jsx)(c.dY.Provider,{value:e.validation,children:e.children}),n[0]=e.children,n[1]=e.validation,n[2]=t):t=n[2],t}function oM(e,t){let n,r=(0,o.c)(7),i=void 0!==t&&t,a=function(){let e=(0,s.useContext)(c.dY);if(!e)throw Error("Form context not provided");return e}();if(r[0]!==i||r[1]!==e||r[2]!==a){let t;
140r[4]!==i||r[5]!==e?(t=t=>(0,l.w1)(e,t.path)&&(i||!(0,l.n4)(e,t.path)),r[4]=i,r[5]=e,r[6]=t):t=r[6],n=a.filter(t).map(oP),r[0]=i,r[1]=e,r[2]=a,r[3]=n}else n=r[3];return n}function oP(e){return{message:e.message,level:e.level,path:e.path}}let oR=["@@_NONEXISTENT_PATH_@@"];function oO(e){let t=(0,s.useRef)(null),n=e?.validation&&e.validation.length>0?e.validation:i_,r=oM(e?.path||oR),i=(0,s.useMemo)(()=>e?.schemaType&&ob(e?.schemaType)?n:n.concat(r),[r,e,n]),[a,o,l]=(0,s.useMemo)(()=>[i.filter(e=>"error"===e.level).length>0,i.filter(e=>"warning"===e.level).length>0,i.filter(e=>"info"===e.level).length>0],[i]),d=oS(t.current,i);return t.current=d,(0,s.useMemo)(()=>({validation:d,hasError:a,hasWarning:o,hasInfo:l}),[d,a,o,l])}function oV(e){let t,n=(0,o.c)(5),r=(0,s.useContext)(c.ht);if(!r)throw Error("Form context not provided");if(n[0]!==r||n[1]!==e){let i;n[3]!==e?(i=t=>(0,l.n4)(t.path,e),n[3]=e,n[4]=i):i=n[4],t=r.filter(i),n[0]=r,n[1]=e,n[2]=t}else t=n[2];return t}let oL=(0,eQ.g_)({name:"Version Document Added to Release ",version:1,description:"User added a document to a release"}),oF=(0,eQ.g_)({name:"Release Created",version:1,description:"User created a release"});(0,eQ.g_)({name:"Release Updated",version:1,description:"User updated a release"});let oB=(0,eQ.g_)({name:"Release Deleted",version:1,description:"User deleted a release"}),oN=(0,eQ.g_)({name:"Release Published",version:1,description:"User published a release"}),oY=(0,eQ.g_)({name:"Release Scheduled",version:1,description:"User scheduled a release"}),oH=(0,eQ.g_)({name:"Release Unscheduled",version:1,description:"User unscheduled a release"}),oZ=(0,eQ.g_)({name:"Release Archived",version:1,description:"User archived a release"}),oU=(0,eQ.g_)({name:"Release Unarchived",version:1,description:"User unarchived a release"}),oq=(0,eQ.g_)({name:"Release Reverted",version:1,description:"User reverted a release"}),oJ=(0,eQ.g_)({name:"Release Duplicated",version:1,description:"User duplicated a release"});function oW(){let e=(0,s.useContext)(c.A3);if(!e)throw Error("usePerspective must be used within a PerspectiveProvider");return e}function oK(){return co().dataset}function oG(){return co().projectId}let oX={apiVersion:"v2025-02-19"},oQ=e=>!!Array.isArray(e),o1={data:[],error:null,loading:!0},o2=new Map,o5=iD({maxSize:100});function o0(e){let{documentId:t}=e,n=ib(t),r=oK(),i=oG(),a=z4(),[o,l]=(0,s.useState)(o1),d=(0,s.useMemo)(()=>(function(e){let{documentPreviewStore:t,projectId:n,dataset:r,publishedId:i,params:a}=e,o=`${n}-${r}-${i}`,l=o2.get(o);if(l)return l;let s=t.unstable_observeDocumentIdSet(`sanity::versionOf("${i}")`,a,{apiVersion:oX.apiVersion}).pipe(o5(o),(0,E.T)(({value:e})=>({data:e.documentIds,error:null,loading:!1})),(0,M.W)(e=>(0,k.of)({error:e,data:[],loading:!1})),(0,N.j)(()=>{o2.delete(o)}),(0,Y.t)({refCount:!0,bufferSize:1}));return o2.set(o,s),s})({documentPreviewStore:a,publishedId:n,projectId:i,dataset:r}),[r,a,i,n]);return(0,s.useEffect)(()=>{let e=d.subscribe(e=>{l(e)});return()=>e.unsubscribe()},[d]),o}let o7="system.release",o3="_.releases",o8=`${o3}.`;function o4(e){if(!e.startsWith(o8))throw Error(`Release document ID was ${e} but should start with ${o3}`);return e.slice(o8.length)}function o6(e=[]){return[...e].sort((e,t)=>{if("undecided"===e.metadata.releaseType&&"undecided"!==t.metadata.releaseType)return -1;if("undecided"!==e.metadata.releaseType&&"undecided"===t.metadata.releaseType)return 1;if("undecided"===e.metadata.releaseType&&"undecided"===t.metadata.releaseType)return new Date(t._createdAt).getTime()-new Date(e._createdAt).getTime();if("scheduled"===e.metadata.releaseType&&"scheduled"===t.metadata.releaseType){let n=e.publishAt||e.metadata.intendedPublishAt;if(!n)return 1;let r=t.publishAt||t.metadata.intendedPublishAt;return r?new Date(r).getTime()-new Date(n).getTime():-1}return"asap"===e.metadata.releaseType&&"asap"!==t.metadata.releaseType?1:"asap"!==e.metadata.releaseType&&"asap"===t.metadata.releaseType?-1:"asap"===e.metadata.releaseType&&"asap"===t.metadata.releaseType?new Date(t._createdAt).getTime()-new Date(e._createdAt).getTime():0})}let o9=["drafts"],le=["published"],lt=[],ln="drafts",lr="published",li="asap",la=["archived","published"],lo={asap:{tone
140:"caution"},scheduled:{tone:"suggest"},undecided:{tone:"neutral"}},ll=`_type=="${o7}" && _id in path("${o3}.*")`,ls=`{
141  _id,
142  _type,
143  _rev,
144  _createdAt,
145  _updatedAt,
146  state,
147  finalDocumentStates,
148  publishAt,
149  publishedAt,
150  "metadata": coalesce(metadata, {
151    "title": "",
152    "releaseType": "undecided",
153  }),
154  // Content Lake initially encoded non-error states as {error: {message: ""}}. This projection
155  // ensures the error field only appears if the document has a non-empty error message.
156  ...select(
157    length(error.message) > 0 => { error },
158    {}
159  ),
160}`,ld=`*[${ll}] ${ls} | order(_createdAt desc)`,lc={releases:new Map,state:"initialising"};function lu(){let e,t=(0,o.c)(5),n=d4(),r=lE(),i=z4(),a=ee7(oX);return t[0]!==i||t[1]!==n||t[2]!==a||t[3]!==r?(e=n.get({dependencies:[r,i],namespace:"ReleasesStore"})||function(e){let{client:t}=e,n=new O.B,r=new J.t(!1),i=(0,k.of)({action:{type:"LOADING_STATE_CHANGED",payload:{loading:!0,error:void 0}}}).pipe((0,q.p)(()=>!r.value),(0,W.M)(()=>r.next(!0)),(0,K.$)(Ce(t,ld,{},{tag:"releases.listen"}).pipe((0,W.M)(()=>r.next(!1)),(0,E.T)(e=>({response:e})))),(0,M.W)(e=>(0,k.of)({action:{type:"LOADING_STATE_CHANGED",payload:{loading:!1,error:e}}})),(0,z.n)(e=>"action"in e?(0,k.of)(e.action):(0,k.of)({type:"RELEASES_SET",payload:e.response},{type:"LOADING_STATE_CHANGED",payload:{loading:!1,error:void 0}}))),a=(0,S.x)((0,R.h)(i,n)).pipe((0,q.p)(e=>"u">typeof e),(0,G.S)((e,t)=>(function(e,t){switch(t.type){case"LOADING_STATE_CHANGED":return{...e,state:t.payload.loading?"loading":"loaded",error:t.payload.error};case"RELEASES_SET":{let n=(t.payload??[]).reduce((e,t)=>(e.set(t._id,t),e),new Map);return{...e,releases:n}}default:return e}})(e,t),lc),(0,Z.Z)(lc),(0,Y.t)(1)),o=a.pipe((0,X.F)((0,z.n)(({releases:e})=>(0,Q.H)(e.values()).pipe((0,q.p)(e=>"active"===e.state),(0,q.p)(e=>"u">typeof e.error),(0,ee.U)())),(0,ei.F)()),(0,Y.t)(1));return{state$:a,errorCount$:o,getMetadataStateForSlugs$:(e=>{let t=(t,n=!1)=>{if(!t?.length||!e)return(0,k.of)({data:null,error:null,loading:!1});let{subquery:r,projection:i}=t.reduce(({subquery:e,projection:t},n)=>{let r=o4(n),i=`release_${r.replaceAll("-","_")}`;return{subquery:`${e}"${i}": *[sanity::partOfRelease("${r}")]{_updatedAt, "docId": string::split(_id, ".")[2] } | order(_updatedAt desc),`,projection:`${t}"${n}": {
161              "updatedAt": ${i}[0]._updatedAt,
162              "documentIds": ${i}[].docId,
163            },`}},{subquery:"",projection:""}),a=e.observable.fetch(`{${r}}{${i}}`,{},{tag:"release-docs.fetch"}).pipe((0,z.n)(e=>(0,k.of)({data:Object.entries(e).reduce((e,t)=>{let[n,r]=t;return{...e,[n]:{...r,documentCount:r.documentIds?.length||0}}},{}),error:null,loading:!1})),(0,M.W)(e=>(console.error("Failed to fetch release metadata",e),(0,k.of)({data:null,error:e,loading:!1}))));return(0,H.T)(()=>n,a.pipe((0,Z.Z)({loading:!0,data:null,error:null})),a)};return n=>{let r;return(0,R.h)(t(n,!0),(r=n,r?.length&&e?e.observable.listen(`*[(${r.reduce((e,t,n)=>`${e}${0===n?"":" ||"} sanity::partOfRelease("${t}")`,"")})]`,{},{includeResult:!0,includeAllVersions:!0,visibility:"query",events:["mutation"],tag:"release-docs.listen"}).pipe((0,M.W)(e=>(console.error("Failed to listen for release metadata",e),I.w)),(0,U.w)(1e3),(0,q.p)(e=>e.length>0),(0,z.n)(e=>{let n=e.reduce((e,t)=>{if("type"in t&&"mutation"===t.type){let n=t.documentId.split(".")[1];return e.includes(n)?e:[...e,n]}return e},[]);return n.length?t(n):I.w})):I.w))}})(t),dispatch:function(e){n.next(e)}}}({client:a}),n.set({dependencies:[r,i],namespace:"ReleasesStore",value:e}),t[0]=i,t[1]=n,t[2]=a,t[3]=r,t[4]=e):e=t[4],e}function lp(){let e,t,n,r,i=(0,o.c)(8),{state$:a,dispatch:l}=lu(),s=(0,eH.J)(a);i[0]!==s.releases?(t=o6(Array.from(s.releases.values()).filter(lm)).reverse(),i[0]=s.releases,i[1]=t):t=i[1],e=t;let d=s.error;i[2]===Symbol.for("react.memo_cache_sentinel")?(n=["loading","initialising"],i[2]=n):n=i[2];let c=n.includes(s.state);return i[3]!==l||i[4]!==e||i[5]!==s.error||i[6]!==c?(r={data:e,dispatch:l,error:d,loading:c},i[3]=l,i[4]=e,i[5]=s.error,i[6]=c,i[7]=r):r=i[7],r}function lm(e){return!la.includes(e.state)}let lh=["asap","scheduled","undecided"];function lf(e,t){if("scheduled"===e.metadata.releaseType&&"scheduled"===t.metadata.releaseType){let n=e.publishAt||e.metadata.intendedPublishAt;if(!n)return -1;let r=t.publishAt||t.metadata.intendedPublishAt;return r?new Date(n).getTime()-new Date(r).getTime():1}return lh.indexOf(e.metadata.releaseType)-lh.indexOf(t.metadata.releaseType)}let lg=["asap","scheduled","undecided"];function lC(e){return"object"==typeof e&&null!==e&&"_type"in e&&e._type===o7}let ly=(0,e4.d_)("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",8);function lx(){return`${o3}.r${ly()}`}function lb(e){let t=e.publishedAt||e.publishAt||e.metadata.intendedPublishAt;return t?new Date(t):null}function lv(e){let t=lb(e);return t?((...e)=>{let t=(0,e9.A)(...e);
163if((0,te.A)((0,tt.A)(t,"MM/dd/yyyy",new Date))){let[t]=e;return new Date(t).toLocaleDateString()}return t})(t,new Date):""}function lj(e){return"published"===e}function lw(e){return e===ln}function l_(e){return"scheduled"===e.metadata.releaseType&&("scheduled"===e.state||"scheduling"===e.state)}let lk=()=>({_id:lx(),metadata:{title:"",description:"",releaseType:li}}),lS=e=>{let t,n,r=(0,o.c)(4),{documentId:i}=e;r[0]!==i?(t={documentId:i},r[0]=i,r[1]=t):t=r[1];let{data:a}=o0(t);return r[2]!==a?(n=a&&a.length>0&&!a.some(lT),r[2]=a,r[3]=n):n=r[3],n};function lT(e){return!ic(e)}function lI(e){let t,n=(0,o.c)(3),{children:r,workspace:i}=e;return n[0]!==r||n[1]!==i?(t=(0,a.jsx)(c.zp.Provider,{value:i,children:r}),n[0]=r,n[1]=i,n[2]=t):t=n[2],t}function lE(){let e=(0,s.useContext)(c.zp);if(!e)throw Error("Workspace: missing context value");return e}function l$(){let e,t=(0,o.c)(3),n=(0,tq.rd)(),{document:r}=lE(),{drafts:i}=r,{enabled:a}=i,l=a?ln:lr;return t[0]!==l||t[1]!==n?(e=e=>{n.navigate({stickyParams:{excludedPerspectives:null,perspective:e===l?"":e}})},t[0]=l,t[1]=n,t[2]=e):e=t[2],e}function lA(){return(0,s.useContext)(c.Pn)||lD}let lD={upsellDialogOpen:!1,mode:"default",onReleaseLimitReached:()=>null,guardWithReleaseLimitUpsell:async()=>{},telemetryLogs:{dialogSecondaryClicked:()=>null,dialogPrimaryClicked:()=>null,panelViewed:()=>null,panelDismissed:()=>null,panelPrimaryClicked:()=>null,panelSecondaryClicked:()=>null}},lz=e=>"object"==typeof e&&null!==e&&"details"in e&&"object"==typeof e.details,lM=e=>lz(e)&&e.details?.type==="releaseLimitExceededError";function lP(){let e,t=(0,o.c)(3),n=ee7(oX),{onReleaseLimitReached:r}=lA();return t[0]!==r||t[1]!==n?(e=function(e){let{client:t,onReleaseLimitReached:n}=e,r=(e,t)=>e.catch(e=>{throw!t?.dryRun&&lM(e)&&n(e.details.limit||0),e}),i=(e,n)=>r(t.releases.create({releaseId:o4(e._id),metadata:e.metadata},n),n),a=(e,n)=>r(t.releases.publish({releaseId:o4(e)},n),n);return{archive:(e,n)=>t.releases.archive({releaseId:o4(e)},n),unarchive:(e,n)=>r(t.releases.unarchive({releaseId:o4(e)},n),n),schedule:(e,n,i)=>r(t.releases.schedule({releaseId:o4(e),publishAt:n.toISOString()},i),i),unschedule:(e,n)=>r(t.releases.unschedule({releaseId:o4(e)},n),n),createRelease:i,updateRelease:async(e,n)=>{let i=o4(e._id),a=Object.entries(e).filter(([e,t])=>void 0===t).map(([e])=>`metadata.${e}`);return r(t.releases.edit({releaseId:i,patch:{set:{metadata:e.metadata},unset:a}},n),n)},publishRelease:a,deleteRelease:(e,n)=>t.releases.delete({releaseId:o4(e)},n),revertRelease:async(e,n,r,o)=>{await i({_id:e,metadata:{title:r.title,description:r.description,releaseType:"asap"}});let l=o4(e),s=n.map(e=>({actionType:"sanity.action.document.version.create",document:{...e,_id:iy(e._id,l)},publishedId:ib(e._id)}));await t.action(s),"immediate"===o&&await a(e)},duplicateRelease:async(e,n,r)=>{if(await i({_id:e,metadata:n}),r){let n=o4(e),i=r.map(e=>({actionType:"sanity.action.document.version.create",document:{...e,_id:iy(e._id,n)},publishedId:ib(e._id)}));await t.action(i)}},createVersion:async(e,n,r,i)=>{let a=await t.getDocument(n);if(!a&&!r)throw Error(`Document with id ${n} not found and no initial value provided`);let o=function e(t){if((0,_.A_)(t)){let e="u">typeof t._strengthenOnPublish,n=t._strengthenOnPublish?.weak===!0;return e&&!n?nL(t,["_weak"]):t}return"object"==typeof t&&t?Array.isArray(t)?t.map(e):Object.fromEntries(Object.entries(t).map(([t,n])=>[t,e(n)])):t}({...a,...r,_updatedAt:void 0,_id:iy(n,e)});return t.createVersion({document:o,publishedId:ib(n),releaseId:e},i)},discardVersion:(e,n,r)=>t.discardVersion({releaseId:e,publishedId:ib(n)},!1,r),unpublishVersion:(e,n)=>{let r=ix(e);if(!r)throw Error(`Release ID not found for document ${e}`);return t.unpublishVersion({releaseId:r,publishedId:ib(e)},n)},revertUnpublishVersion:async(e,n)=>await t.action({actionType:"sanity.action.document.edit",draftId:e,publishedId:ib(e),patch:{unset:["_system.delete"]}},n)}}({client:n,onReleaseLimitReached:r}),t[0]=r,t[1]=n,t[2]=e):e=t[2],e}function lR(){let e,t,n,r,i,a=(0,o.c)(15),l=(0,e5.Jr)(),{createVersion:s,discardVersion:d,unpublishVersion:c,revertUnpublishVersion:u}=lP(),p=l$();a[0]!==s||a[1]!==p||a[2]!==l?(e=async(e,t,n)=>{let r=ik(t);
163await s(e,t,n),p(e),l.log(oL,{documentOrigin:r})},a[0]=s,a[1]=p,a[2]=l,a[3]=e):e=a[3];let m=e;a[4]!==d?(t=async(e,t)=>d(e,t),a[4]=d,a[5]=t):t=a[5];let h=t;a[6]!==c?(n=async e=>c(e),a[6]=c,a[7]=n):n=a[7];let f=n;a[8]!==u?(r=async e=>u(e),a[8]=u,a[9]=r):r=a[9];let g=r;return a[10]!==m||a[11]!==h||a[12]!==g||a[13]!==f?(i={createVersion:m,discardVersion:h,unpublishVersion:f,revertUnpublishVersion:g},a[10]=m,a[11]=h,a[12]=g,a[13]=f,a[14]=i):i=a[14],i}let lO="releases";function lV(e){let{onClose:t,documentId:n,documentType:r,fromPerspective:i}=e,{t:o}=iJ(lO),{t:l}=iJ(),{discardChanges:d}=FE(ib(n),r),{selectedPerspective:c}=oW(),{discardVersion:m}=lR(),h=Cm(),f=(0,p.dj)(),[g,C]=(0,s.useState)(!1),x=id(n)?"draft":"release",b="string"==typeof i?i:i.metadata.title,v=h.get(r),j=(0,s.useCallback)(async()=>{if(C(!0),ic(n))try{await m(ix(n)||o4(c._id),n)}catch(e){f.push({closable:!0,status:"error",title:l("release.action.discard-version.failure"),description:e.message})}else d.execute();C(!1),t()},[n,t,m,c,f,l,d]);return(0,a.jsx)(y.lG,{id:"discard-version-dialog",header:(0,a.jsx)(an,{t:o,i18nKey:`discard-version-dialog.header-${x}`,values:{releaseTitle:b}}),onClose:t,width:0,padding:!1,footer:{cancelButton:{disabled:g,onClick:t},confirmButton:{text:o(`discard-version-dialog.title-${x}`),onClick:j,disabled:g}},children:(0,a.jsxs)(u.BJ,{space:3,paddingX:3,marginBottom:2,children:[v?(0,a.jsx)(DM,{value:{_id:n},schemaType:v}):(0,a.jsx)(r5,{}),(0,a.jsx)(u.az,{paddingX:2,children:(0,a.jsx)(u.EY,{size:1,muted:!0,children:(0,a.jsx)(an,{t:o,i18nKey:`discard-version-dialog.description-${x}`,values:{releaseTitle:b}})})})]})})}function lL(e,t,n){var r,i,a,o,l=function(e,t,n){if(n&&!n.code)throw Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,n.timeZone,n.locale);return l.formatToParts?function(e,t){for(var n=e.formatToParts(t),r=n.length-1;r>=0;--r)if("timeZoneName"===n[r].type)return n[r].value}(l,t):(r=l,i=t,a=r.format(i).replace(/\u200E/g,""),(o=/ [\w-+ ]+$/.exec(a))?o[0].substr(1):"")}var lF={year:0,month:1,day:2,hour:3,minute:4,second:5},lB={};function lN(e,t,n,r,i,a,o){var l=new Date(0);return l.setUTCFullYear(e,t,n),l.setUTCHours(r,i,a,o),l}var lY={timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function lH(e,t,n){if(!e||(r=lY.timezoneZ.exec(e)))return 0;if(r=lY.timezoneHH.exec(e))return lU(a=parseInt(r[1],10))?-(36e5*a):NaN;if(r=lY.timezoneHHMM.exec(e)){var r,i,a=parseInt(r[2],10),o=parseInt(r[3],10);return lU(a,o)?(i=36e5*Math.abs(a)+6e4*o,"+"===r[1]?-i:i):NaN}if(function(e){if(lq[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),lq[e]=!0,!0}catch{return!1}}(e)){t=new Date(t||Date.now());var l,s=lZ(n?t:lN((l=t).getFullYear(),l.getMonth(),l.getDate(),l.getHours(),l.getMinutes(),l.getSeconds(),l.getMilliseconds()),e);return-(n?s:function(e,t,n){var r=e.getTime()-t,i=lZ(new Date(r),n);if(t===i)return t;var a=lZ(new Date(r-=i-t),n);return i===a?i:Math.max(i,a)}(t,s,e))}return NaN}function lZ(e,t){var n,r,i,a,o,l=(o=function(e){if(!lB[e]){var t=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z"));lB[e]="06/25/2014, 00:00:00"===t||"‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00"===t?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return lB[e]}(t)).formatToParts?function(e,t){try{for(var n=e.formatToParts(t),r=[],i=0;i<n.length;i++){var a=lF[n[i].type];a>=0&&(r[a]=parseInt(n[i].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(o,e):(n=o,r=e,i=n.format(r),[(a=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(i))[3],a[1],a[2],a[4],a[5],a[6]]),s=lN(l[0],l[1]-1,l[2],l[3]%24,l[4],l[5],0).getTime(),d=e.getTime(),c=d%1e3;return s-(d-=c>=0?c:1e3+c)}function lU(e,t){return -23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var lq={},lJ={X:function(e,t,n,r){var i=lW(r.timeZone,e);if(0===i)return"Z";switch(t){case"X":return lX(i);case"XXXX":case"XX":return lG(i);default:return lG(i,":")}},x:function(e,t,n,r){var i=lW(r.timeZone,e);switch(t){case"x":return lX(i);case"xxxx":case"xx":return lG(i);default:return lG(i,":")}},O:function(e,t,n,r){var i,a,o,l,s,d=lW(r.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+(a=(i=d)>0?"-":"+",l=Math.floor((o=Math.abs(i))/60),0==(s=o%60)?a+String(l):a+String(l)+":"+lK(s,2));default:return"GMT"+lG(d,":")}},z:function(e,t,n,r){switch(t){case"z":case"zz":case"zzz":return lL("short",e,r);default:return lL("long",e,r)}}};function lW(e,t){var n=e?lH(e,t,!0)/6e4:t.getTimezoneOffset();if(Number.isNaN(n))throw RangeError("Invalid time zone specified: "+e);return n}function lK(e,t){for(var n=Math.abs(e).toString();n.length<t;)n="0"+n;return(e<0?"-":"")+n}function lG(e,t){var n=Math.abs(e);return(e>0?"-":"+")+lK(Math.floor(n/60),2)+(t||"")+lK(Math.floor(n%60),2)}function lX(e,t){return e%60==0?(e>0?"-":"+")+lK(Math.abs(e)/60,2):lG(e,t)}var lQ=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,l1={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:lQ};function l2(e,t){if(arguments.length<1)throw TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},r=null==n.additionalDigits?2:tY(n.additionalDigits);if(2!==r&&1!==r&&0!==r)throw RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var i=function(e){var t,n={},r=l1.dateTimePattern.exec(e);if(r?(n.date=r[1],t=r[3]):(r=l1.datePattern.exec(e))?(n.date=r[1],t=r[2]):(n.date=null,t=e),t){var i=l1.timeZone.exec(t);i?(n.time=t.replace(i[1],""),n.timeZone=i[1].trim()):n.time=t}return n}(e),a=function(e,t){var n,r=l1.YYY[t],i=l1.YYYYY[t];if(n=l1.YYYY.exec(e)||i.exec(e)){var a=n[1];return{year:parseInt(a,10),restDateString:e.slice(a.length)}}if(n=l1.YY.exec(e)||r.exec(e)){var o=n[1];return{year:100*parseInt(o,10),restDateString:e.slice(o.length)}}return{year:null}}(i.date,r),o=a.year,l=function(e,t){if(null===t)return null;if(0===e.length)return(a=new Date(0)).setUTCFullYear(t),a;if(n=l1.MM.exec(e))return a=new Date(0),l8(t,r=parseInt(n[1],10)-1)?(a.setUTCFullYear(t,r),a):new Date(NaN);if(n=l1.DDD.exec(e)){var n,r,i,a=new Date(0),o=parseInt(n[1],10);return!function(e,t){if(t<1)return!1;var n=l3(e);return!(n&&t>366||!n&&t>365)}(t,o)?new Date(NaN):(a.setUTCFullYear(t,0,o),a)}if(n=l1.MMDD.exec(e)){a=new Date(0),r=parseInt(n[1],10)-1;var l=parseInt(n[2],10);return l8(t,r,l)?(a.setUTCFullYear(t,r,l),a):new Date(NaN)}if(n=l1.Www.exec(e))return l4(t,i=parseInt(n[1],10)-1)?l5(t,i):new Date(NaN);if(n=l1.WwwD.exec(e)){i=parseInt(n[1],10)-1;var s=parseInt(n[2],10)-1;return l4(t,i,s)?l5(t,i,s):new Date(NaN)}return null}(a.restDateString,o);if(isNaN(l)||!l)return new Date(NaN);var s,d=l.getTime(),c=0;if(i.time&&isNaN(c=function(e){var t,n,r;if(t=l1.HH.exec(e))return l6(n=parseFloat(t[1].replace(",",".")))?n%24*36e5:NaN;if(t=l1.HHMM.exec(e))return l6(n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")))?n%24*36e5+6e4*r:NaN;if(t=l1.HHMMSS.exec(e)){n=parseInt(t[1],10),r=parseInt(t[2],10);var i=parseFloat(t[3].replace(",","."));return l6(n,r,i)?n%24*36e5+6e4*r+1e3*i:NaN}return null}(i.time)))return new Date(NaN);if(i.timeZone||n.timeZone){if(isNaN(s=lH(i.timeZone||n.timeZone,new Date(d+c))))return new Date(NaN)}else s=tH(new Date(d+c)),s=tH(new Date(d+c+s));return new Date(d+c+s)}function l5(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var i=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+i),r}var l0=[31,28,31,30,31,30,31,31,30,31,30,31],l7=[31,29,31,30,31,30,31,31,30,31,30,31];function l3(e){return e%400==0||e%4==0&&e%100!=0}function l8(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var r=l3(e);
163if(r&&n>l7[t]||!r&&n>l0[t])return!1}return!0}function l4(e,t,n){return!(t<0||t>52||null!=n&&(n<0||n>6))}function l6(e,t,n){return!(null!=e&&(e<0||e>=25)||null!=t&&(t<0||t>=60)||null!=n&&(n<0||n>=60))}var l9=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function se(e,t,n){var r=l2(e,n),i=lH(t,r,!0),a=new Date(r.getTime()-i),o=new Date(0);return o.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),o.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),o}function st(e,t,n,r){var i=tN(r);return i.timeZone=t,i.originalDate=e,function(e,t,n){var r=String(t),i=n||{},a=r.match(l9);if(a){var o=l2(i.originalDate||e,i);r=a.reduce(function(e,t){if("'"===t[0])return e;var n=e.indexOf(t),r="'"===e[n-1],a=e.replace(t,"'"+lJ[t[0]](o,t,null,i)+"'");return r?a.substring(0,n-1)+a.substring(n+1):a},r)}return nI(e,r,i)}(se(e,t),n,i)}function sn(e,t,n){if("string"==typeof e&&!e.match(lQ)){var r=tN(n);return r.timeZone=t,l2(e,r)}var i=l2(e,n),a=lN(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()).getTime(),o=lH(t,new Date(a));return new Date(a+o)}let sr={SMALL:"d MMM yy',' p",MEDIUM:"d MMMM yyyy',' p",LARGE:"iiii',' d MMMM yyyy',' p"},si=e=>{let t,n,r,i,l,s=(0,o.c)(10),{body:d,title:c}=e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(C.CTc,{}),s[0]=t):t=s[0],s[1]!==c?(n=c&&(0,a.jsx)(u.EY,{size:2,weight:"semibold",children:c}),s[1]=c,s[2]=n):n=s[2],s[3]!==n?(r=(0,a.jsxs)(u.cV,{space:2,children:[t,n]}),s[3]=n,s[4]=r):r=s[4],s[5]!==d?(i=d&&(0,a.jsx)(u.EY,{size:1,children:d}),s[5]=d,s[6]=i):i=s[6],s[7]!==r||s[8]!==i?(l=(0,a.jsxs)(u.BJ,{paddingY:1,space:3,children:[r,i]}),s[7]=r,s[8]=i,s[9]=l):l=s[9],l},sa="scheduled-publishing:";function so(e){let t=`${sa}${e}`;return eq&&eq.enabled(t)?eq(t):eq(sa)}eq(sa);let sl={update:"timeZoneEventUpdate"},ss=so("useScheduleOperation"),sd="studio.timezone.",sc=new Map,su=new Map,sp=e=>{if(!e)return 0;let t=e.startsWith("-")?-1:1;if(!e.includes(":"))return t*Number(e.replace(/[+-]/,""))*60;let[n,r]=e.replace(/[+-]/,"").split(":").map(Number);return t*(60*n+r)},sm={scheduledPublishing:"scheduled-publishing",contentReleases:"content-releases",input:"input"},sh=e=>{let t=(0,p.dj)(),n=Mt(),r=navigator.language,{defaultTimeZone:i}=e,o=sm[e.type],l="id"in e?`${sd}${o}.${e.id}`:`${sd}${o}`,d="relativeDate"in e?e.relativeDate:void 0;(0,s.useEffect)(()=>{if("scheduledPublishing"===e.type){let e="scheduled-publishing::time-zone",t=localStorage.getItem(e);if(t){let r=JSON.parse(t);n.setKey(l,r.name),localStorage.removeItem(e)}}},[e.type,n,l,r,d]);let c=(0,s.useMemo)(()=>(function(e,t){let n=`${e}_${t?.toISOString().slice(0,10)||"now"}`;if(sc.has(n))return sc.get(n);let r=Intl.supportedValuesOf("timeZone").map(n=>{if(!n.includes("/"))return null;let{alternativeName:r,abbreviation:i,offset:a}=function(e,t,n){let r=n?.toISOString().slice(0,10)||"now",i=`${e}_${t}_${r}`;if(su.has(i))return su.get(i);let a=new Intl.DateTimeFormat((0,e7.WI)(e),{timeZone:t,timeZoneName:"long"}),o=new Intl.DateTimeFormat((0,e7.WI)(e),{timeZone:t,timeZoneName:"short"}),l=n??new Date,s=a.formatToParts(l),d=o.formatToParts(l),c=st(l,t,"xxx").replace(/([+-])0(\d)/,"$1$2").replace(/([+-])0$/,"$1").replace(/:00$/,"").replace(/[+]0$/,""),u={abbreviation:d.find(({type:e})=>"timeZoneName"===e)?.value||"",alternativeName:s.find(({type:e})=>"timeZoneName"===e)?.value||"",offset:c};return su.set(i,u),u}(e,n,t),[,o]=n.split("/");return{abbreviation:i,alternativeName:r,city:o.replaceAll("_"," "),name:n,namePretty:n.replaceAll("_"," "),offset:a,value:`${a} ${i} ${n} ${r}`}}).filter(e=>null!==e).sort((e,t)=>sp(e.offset)-sp(t.offset));return sc.set(n,r),r})(r,d),[r,d]),u=(0,s.useCallback)(()=>i?c.find(e=>e.name===i):void 0,[c,i]),m=(0,s.useMemo)(()=>n.getKey(l).pipe((0,Z.Z)(null)),[n,l]),h=(0,eH.J)(m,null),f=(0,s.useCallback)(()=>{if(h)try{let e=c.find(e=>e.name===h);if(e&&c.some(t=>t.name===e.name))return e;let t=c.find(t=>t.offset===e?.offset);if(t)return n.setKey(l,t.name),t}catch{return}},[c,l,n,h]),g=(0,s.useCallback)(()=>{let e=Intl.DateTimeFormat().resolvedOptions().timeZone;return c.find(t=>t.name===e)||c.find(e=>"GMT"===e.abbreviation)||c[0]},[c]),C=(0,s.useCallback)(()=>
163f()||u()||g(),[f,u,g]),[y,x]=(0,s.useState)(()=>C());(0,s.useEffect)(()=>{x(C())},[C]),(0,s.useEffect)(()=>{let e=()=>{x(C())};return window.addEventListener(sl.update,e),()=>{window.removeEventListener(sl.update,e)}},[C]);let b=(0,s.useCallback)(({date:e,format:t=sr.LARGE,includeTimeZone:n,prefix:r})=>{let i=t;return r&&(i=`'${r}'${t}`),n&&(i=`${t} (zzzz)`),st(e,y?.name||g()?.name||"UTC",i)},[y,g]),v=(0,s.useCallback)(()=>y?se(new Date,y.name):new Date,[y]),j=(0,s.useCallback)(e=>c.find(t=>e===t.value)||C(),[c,C]),w=(0,s.useCallback)(e=>{ss("handleNewValue:",e),x(r=>{try{r?.name!==e.name&&(n.setKey(l,e.name),window.dispatchEvent(new Event(sl.update))),t.push({closable:!0,description:(0,a.jsx)(si,{body:`${e.alternativeName} (${e.namePretty})`,title:"Time zone updated"}),duration:15e3,status:"info"})}catch(e){console.error(e),t.push({closable:!0,description:(0,a.jsx)(si,{body:function(e){let t;return"object"==typeof e&&e&&"statusCode"in e&&"response"in e?t=403===e.response.statusCode?"Forbidden. Please check that your project has access to the feature.":e.message:(e instanceof Error&&(t=e.message),t=String(e)),t}(e),title:"Unable to update time zone"}),status:"error"})}return e})},[l,t,n]),_=(0,s.useCallback)(e=>y?se(e,y.name):e,[y]),k=(0,s.useCallback)(e=>y?sn(e,y.name):e,[y]);return(0,s.useMemo)(()=>({formatDateTz:b,getCurrentZoneDate:v,setTimeZone:w,timeZone:y,allTimeZones:c,getLocalTimeZone:g,getTimeZone:j,utcToCurrentZoneDate:_,zoneDateToUtc:k}),[b,v,w,y,c,g,j,_,k])},sf={toast:[100,11e3]},sg={type:"scheduledPublishing"},sC={type:"contentReleases"},sy="studio.release-form.recovery";function sx(){let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={getStoredReleaseData:sj,saveReleaseDataToStorage:sv,clearReleaseDataFromStorage:sb},t[0]=e):e=t[0],e}function sb(){localStorage.removeItem(sy)}function sv(e){localStorage.setItem(sy,JSON.stringify(e))}function sj(){let e=localStorage.getItem(sy);return e?JSON.parse(e):{}}let sw=e=>{let t,n,r=(0,o.c)(5),{tone:i}=e,l=`release-avatar-${i}`,s=`var(--card-badge-${i}-icon-color)`;r[0]!==s?(t={"--card-icon-color":s},r[0]=s,r[1]=t):t=r[1];let d=t;return r[2]!==l||r[3]!==d?(n=(0,a.jsx)(C.Zy4,{"data-testid":l,style:d}),r[2]=l,r[3]=d,r[4]=n):n=r[4],n};function s_(e){let t,n,r,i,l=(0,o.c)(9),{fontSize:s,padding:d,tone:c}=e,p=void 0===s?1:s,m=void 0===d?3:d;return l[0]===Symbol.for("react.memo_cache_sentinel")?(t={borderRadius:3},l[0]=t):t=l[0],l[1]!==c?(n=(0,a.jsx)(sw,{tone:c}),l[1]=c,l[2]=n):n=l[2],l[3]!==p||l[4]!==n?(r=(0,a.jsx)(u.EY,{size:p,children:n}),l[3]=p,l[4]=n,l[5]=r):r=l[5],l[6]!==m||l[7]!==r?(i=(0,a.jsx)(u.az,{flex:"none",padding:m,style:t,children:r}),l[6]=m,l[7]=r,l[8]=i):i=l[8],i}let sk=g.I4.span(({theme:e})=>(0,g.AH)`
164    color: ${e.sanity.color.base.fg};
165    font-weight: 500;
166    margin-left: 1em;
167  `),sS=g.I4.span(({theme:e})=>(0,g.AH)`
168    color: ${e.sanity.color.muted.default.enabled.fg};
169    font-weight: 500;
170  `),sT=g.I4.span(({theme:e})=>(0,g.AH)`
171    color: ${e.sanity.color.input.default.readOnly.fg};
172    float: right;
173  `),sI=e=>{let t,n,r,i,l,d,c,m,h,f,g,x,b,v,j,w,_,k,S,T,I,E,$,A,D=(0,o.c)(62),{onClose:z,timeZoneScope:M}=e,{setTimeZone:P,allTimeZones:R,timeZone:O,getLocalTimeZone:V,getTimeZone:L}=sh(M),[F,B]=(0,s.useState)(O),{t:N}=iJ("studio");D[0]!==N?(n=N("time-zone.dialog-info.scheduled-publishing"),D[0]=N,D[1]=n):n=D[1],D[2]!==N?(r=N("time-zone.dialog-info.content-releases"),D[2]=N,D[3]=r):r=D[3],D[4]!==N?(i=N("time-zone.dialog-info.input"),D[4]=N,D[5]=i):i=D[5],D[6]!==n||D[7]!==r||D[8]!==i?(l={scheduledPublishing:n,contentReleases:r,input:i},D[6]=n,D[7]=r,D[8]=i,D[9]=l):l=D[9],t=l,D[10]!==L?(d=e=>B(L(e)),D[10]=L,D[11]=d):d=D[11];let Y=d;D[12]!==V?(c=()=>B(V()),D[12]=V,D[13]=c):c=D[13];let H=c;D[14]!==z||D[15]!==F||D[16]!==P?(m=()=>{F&&P(F),z?.()},D[14]=z,D[15]=F,D[16]=P,D[17]=m):m=D[17];let Z=m,U=F?.name!==O.name;h=F?.name===V().name;let q=!U||!F;D[18]!==Z||D[19]!==q?(f={confirmButton:{text:"Update time zone",disabled:q,onClick:Z,tone:"primary"}},D[18]=Z,D[19]=q,D[20]=f):f=D[20];let J=t[M.type];D[21]!==J?(g=(0,a.jsx)(u.EY,{size:1,children:J}),D[21]=J,D[22]=g):g=D[22],D[23]!==N?(x=N("time-zone.time-zone"),D[23]=N,D[24]=x):x=D[24],D[25]!==x?(b=(0,a.jsx)(u.EY,{size:1,weight:"semibold",children:x}),D[25]=x,D[26]=b):b=D[26],D[27]!==h||D[28]!==N?(v=h&&(0,a.jsx)(u.EY,{muted:!0,size:1,children:N("time-zone.local-time")}),D[27]=h,D[28]=N,D[29]=v):v=D[29],D[30]!==b||D[31]!==v?(j=(0,a.jsxs)(u.cV,{space:2,children:[b,v]}),D[30]=b,D[31]=v,D[32]=j):j=D[32],D[33]!==H||D[34]!==h||D[35]!==N?(w=!h&&(0,a.jsx)(u.EY,{size:1,weight:"medium",children:(0,a.jsx)("a",{onClick:H,style:{cursor:"pointer"},children:N("time-zone.action.select-local-time-zone")})}),D[33]=H,D[34]=h,D[35]=N,D[36]=w):w=D[36],D[37]!==j||D[38]!==w?(_=(0,a.jsxs)(u.so,{align:"center",justify:"space-between",children:[j,w]}),D[37]=j,D[38]=w,D[39]=_):_=D[39],D[40]!==N?(k=N("time-zone.action.search-for-timezone-placeholder"),D[40]=N,D[41]=k):k=D[41],D[42]!==M.type?(S="input"===M.type?document.querySelector("#document-panel-scroller"):document.querySelector("body"),D[42]=M.type,D[43]=S):S=D[43],D[44]!==S?(T={boun
173daryElement:S,constrainSize:!0,placement:"bottom-start"},D[44]=S,D[45]=T):T=D[45];let W=F?.value;return D[46]!==R||D[47]!==Y||D[48]!==k||D[49]!==T||D[50]!==W?(I=(0,a.jsx)(p.jT,{fontSize:2,icon:C.WIv,id:"timezone",onChange:Y,openButton:!0,options:R,padding:4,filterOption:sA,placeholder:k,popover:T,renderOption:sE,renderValue:s$,tabIndex:-1,value:W}),D[46]=R,D[47]=Y,D[48]=k,D[49]=T,D[50]=W,D[51]=I):I=D[51],D[52]!==_||D[53]!==I?(E=(0,a.jsxs)(u.BJ,{space:3,children:[_,I]}),D[52]=_,D[53]=I,D[54]=E):E=D[54],D[55]!==g||D[56]!==E?($=(0,a.jsxs)(u.BJ,{padding:4,space:5,children:[g,E]}),D[55]=g,D[56]=E,D[57]=$):$=D[57],D[58]!==z||D[59]!==f||D[60]!==$?(A=(0,a.jsx)(y.lG,{footer:f,header:"Select time zone",id:"time-zone",onClose:z,width:1,children:$}),D[58]=z,D[59]=f,D[60]=$,D[61]=A):A=D[61],A};function sE(e){return(0,a.jsx)(u.Zp,{as:"button",padding:3,children:(0,a.jsxs)(u.EY,{size:1,textOverflow:"ellipsis",children:[(0,a.jsx)(sk,{children:e.city}),(0,a.jsxs)(sS,{children:[" ","(","GMT",e.offset,")"]}),(0,a.jsx)(sT,{children:e.alternativeName})]})})}function s$(e,t){return t?`${t.alternativeName} (${t.namePretty})`:""}function sA(e,t){return""===e||`${t.city} (GMT
174            ${t.offset}) ${t.alternativeName}`?.toLowerCase()?.includes(e?.toLowerCase())}
174function sD(e){let t,n,r,i,a=(0,o.c)(9),[l,d]=(0,s.useState)(!1);a[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{d(!1)},a[0]=t):t=a[0];let c=t;a[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{d(!0)},a[1]=n):n=a[1];let u=n;a[2]!==e||a[3]!==l?(r={onClose:c,visible:l,timeZoneScope:e},a[2]=e,a[3]=l,a[4]=r):r=a[4];let p=r,m=l?sI:null;return a[5]!==p||a[6]!==m||a[7]!==e?(i={DialogTimeZone:m,dialogProps:p,timeZoneScope:e,dialogTimeZoneShow:u,hide:c},a[5]=p,a[6]=m,a[7]=e,a[8]=i):i=a[8],i}let sz=(0,s.forwardRef)(function(e,t){let n,r,i,l,d,c,p,m,h,f,g=(0,o.c)(22);g[0]!==e?({onChange:r,onBlur:n,onKeyPress:i,value:d,...l}=e,g[0]=e,g[1]=n,g[2]=r,g[3]=i,g[4]=l,g[5]=d):(n=g[1],r=g[2],i=g[3],l=g[4],d=g[5]);let[C,y]=(0,s.useState)();g[6]===Symbol.for("react.memo_cache_sentinel")?(c=e=>{y(e.currentTarget.value)},g[6]=c):c=g[6];let x=c;g[7]!==r||g[8]!==d?(p=e=>{e.currentTarget.value!==`${d}`&&r&&r(e),y(void 0)},g[7]=r,g[8]=d,g[9]=p):p=g[9];let b=p;g[10]!==b||g[11]!==n?(m=e=>{b(e),n&&n(e)},g[10]=b,g[11]=n,g[12]=m):m=g[12];let v=m;g[13]!==b||g[14]!==i?(h=e=>{"Enter"===e.key&&b(e),i&&i(e)},g[13]=b,g[14]=i,g[15]=h):h=g[15];let j=h,w=void 0===C?d:C;return g[16]!==t||g[17]!==v||g[18]!==j||g[19]!==l||g[20]!==w?(f=(0,a.jsx)(u.ks,{...l,ref:t,value:w,onChange:x,onBlur:v,onKeyPress:j}),g[16]=t,g[17]=v,g[18]=j,g[19]=l,g[20]=w,g[21]=f):f=g[21],f}),sM=(0,g.I4)(sz).attrs(()=>({type:"time"}))`
175  line-height: 1;
176`;function sP(e){let t,n,r,i,l,s,d,c,p=(0,o.c)(28),{date:m,focused:h,isCurrentMonth:f,isToday:g,onSelect:C,selected:y,isPastDisabled:x}=e;p[0]!==m||p[1]!==C?(t=()=>{C(m)},p[0]=m,p[1]=C,p[2]=t):t=p[2];let b=t;p[3]!==m?(n=m.toDateString(),p[3]=m,p[4]=n):n=p[4];let v=h?"true":"";p[5]!==m||p[6]!==x||p[7]!==g?(r=x&&!g&&(0,tn.A)(m),p[5]=m,p[6]=x,p[7]=g,p[8]=r):r=p[8];let j=g||y?"primary":"default",w=`calendar-day-${m.toDateString().replaceAll(" ","-")}`,_=!y&&!f;p[9]===Symbol.for("react.memo_cache_sentinel")?(i={textAlign:"center"},p[9]=i):i=p[9];let k=f?"medium":"regular";return p[10]!==m?(l=m.getDate(),p[10]=m,p[11]=l):l=p[11],p[12]!==_||p[13]!==k||p[14]!==l?(s=(0,a.jsx)(u.EY,{muted:_,size:1,style:i,weight:k,children:l}),p[12]=_,p[13]=k,p[14]=l,p[15]=s):s=p[15],p[16]!==b||p[17]!==y||p[18]!==n||p[19]!==s||p[20]!==v||p[21]!==r||p[22]!==j||p[23]!==w?(d=(0,a.jsx)(u.Zp,{"aria-label":n,"aria-pressed":y,as:"button",__unstable_focusRing:!0,"data-weekday":!0,"data-focused":v,role:"button",tabIndex:-1,disabled:r,onClick:b,padding:2,radius:2,selected:y,tone:j,"data-testid":w,children:s}),p[16]=b,p[17]=y,p[18]=n,p[19]=s,p[20]=v,p[21]=r,p[22]=j,p[23]=w,p[24]=d):d=p[24],p[25]!==y||p[26]!==d?(c=(0,a.jsx)("div",{"aria-selected":y,"data-ui":"CalendarDay",children:d}),p[25]=y,p[26]=d,p[27]=c):c=p[27],c}let sR=["January","February","March","April","May","June","July","August","September","October","November","December"],sO=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],sV=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],sL=[1,2,3,4,5,6],sF=e=>{let t,n=(0,o.c)(3),{weekInfo:r}=iG();return n[0]!==e||n[1]!==r.firstDay?(t=((e,t)=>{let n=(0,tr.A)(e);return(0,ti.A)({start:n,end:(0,ta.A)(n)},{weekStartsOn:7===t?0:t})})(e,r.firstDay).map(e=>[e,...sL.map(t=>(0,to.A)(e,t))]).map(sB),n[0]=e,n[1]=r.firstDay,n[2]=t):t=n[2],t};function sB(e){return{number:(0,tl.A)(e[0]),days:e}}function sN(e){let t,n,r,i,l,s=(0,o.c)(24),{weekInfo:d}=iG(),{firstDay:c}=d,p=e.weekDayNames;if(7===c){let t;s[0]!==e.weekDayNames?(t=[e.weekDayNames[6],...e.weekDayNames.slice(0,6)],s[0]=e.weekDayNames,s[1]=t):t=s[1],p=t}else if(6===c){let t;s[2]!==e.weekDayNames?(t=[...e.weekDayNames.slice(5),...e.weekDayNames.slice(0,5)],s[2]=e.weekDayNames,s[3]=t):t=s[3],p=t}let m=e.hidden||!1;s[4]===Symbol.for("react.memo_cache_sentinel")?(t={gridTemplateColumns:"repeat(7, minmax(44px, 46px))"},s[4]=t):t=s[4],s[5]!==p?(n=p.map(sY),s[5]=p,s[6]=n):n=s[6];let h=sF(e.date);if(s[7]!==e.focused||s[8]!==e.isPastDisabled||s[9]!==e.onSelect||s[10]!==e.selected||s[11]!==h){let t;s[13]!==e.focused||s[14]!==e.isPastDisabled||s[15]!==e.onSelect||s[16]!==e.selected?(t=(t,n)=>t.days.map((t,r)=>{let i=e.focused&&(0,ts.A)(t,e.focused),o=e.selected&&(0,ts.A)(t,e.selected),l=(0,ts.A)(t,new Date),s=e.focused&&(0,td.A)(t,e.focused);return(0,a.jsx)(sP,{date:t,focused:i,isCurrentMonth:s,isToday:l,onSelect:e.onSelect,selected:o,isPastDisabled:e.isPastDisabled},`${n}-${r}`)}),s[13]=e.focused,s[14]=e.isPastDisabled,s[15]=e.onSelect,s[16]=e.selected,s[17]=t):t=s[17],r=h.map(t),s[7]=e.focused,s[8]=e.isPastDisabled,s[9]=e.onSelect,s[10]=e.selected,s[11]=h,s[12]=r}else r=s[12];return s[18]!==n||s[19]!==r?(i=(0,a.jsxs)(u.xA,{gap:1,style:t,children:[n,r]}),s[18]=n,s[19]=r,s[20]=i):i=s[20],s[21]!==m||s[22]!==i?(l=(0,a.jsx)(u.az,{"aria-hidden":m,"data-ui":"CalendarMonth",children:i}),s[21]=m,s[22]=i,s[23]=l):l=s[23],l}function sY(e){return(0,a.jsx)(u.az,{paddingY:2,children:(0,a.jsx)(u.EY,{size:1,weight:"medium",style:{textAlign:"center"},children:e})},e)}let sH={dayPresets:!1,timePresets:!1},sZ=e=>{let t,n,r,i,l=(0,o.c)(8);l[0]!==e?({onChange:t,...n}=e,l[0]=e,l[1]=t,l[2]=n):(t=l[1],n=l[2]),l[3]!==t?(r=e=>{let n=parseInt(e.currentTarget.value,10);isNaN(n)||t(n)},l[3]=t,l[4]=r):r=l[4];let s=r;return l[5]!==s||l[6]!==n?(i=(0,a.jsx)(sz,{"data-testid":"date-input",...n,fontSize:1,onChange:s,inputMode:"numeric",padding:2,radius:2}),l[5]=s,l[6]=n,l[7]=i):i=l[7],i},sU={carousel:"carousel"},sq=(0,a.jsx)("span",{"data-preserve-focus":!0,style:{overflow:"hidden",position:"absolute",outline:"none"},tabIndex:-1}),sJ={padding:2},sW=(0,s.forwardRef)(function(e,t){let{selectTime:n,onFocusedDateChange:r,selectedDate:i=new Date,focusedDate:o=i,timeStep:l=1,onSelect:d,labels:c,isPastDisabled:p,monthPickerVariant:m="select",padding:h=2,showTimeZone:f=!1,timeZoneScope:g,...x}=e,{timeZone:b}=sh(g),[v,j]=(0,s.useMemo)(()=>[Number((0,e7.GP)(o,"MM",{timeZone:b?.name}))-1,Number((0,e7.GP)(o,"YYYY",{timeZone:b?.name}))],[o,b?.name]),{DialogTimeZone:w,dialogProps:_,dialogTimeZoneShow:k}
176=sD(g),[S,T]=(0,s.useState)(i);(0,s.useEffect)(()=>{b&&T(se(sn(i,b.name),b.name))},[i,b]);let I=(0,s.useCallback)(e=>r(e),[r]),E=(0,s.useCallback)(e=>I((0,tc.A)((0,tu.A)(o,e),1)),[o,I]),$=(0,s.useCallback)(e=>E(Number(e.currentTarget.value)),[E]),A=(0,s.useCallback)(e=>I((0,tp.A)(o,e)),[o,I]),D=(0,s.useCallback)(e=>I((0,tm.A)(o,e)),[o,I]),z=(0,s.useCallback)(e=>{let t=(0,th.A)((0,tf.A)(e,S.getHours()),S.getMinutes());if(!b)return void d(t);d(se(sn(t,b.name),b.name))},[d,S,b]),M=(0,s.useCallback)((e,t)=>{if(!b)return void d((0,tf.A)((0,th.A)(S,t),e));let n=se(S,b.name);d(sn((0,tf.A)((0,th.A)(n,t),e),b.name))},[d,S,b]),P=(0,s.useCallback)(e=>{let t=(0,tt.A)(e.currentTarget.value,"HH:mm",new Date);M(t.getHours(),t.getMinutes())},[M]),R=(0,s.useRef)(null);(0,s.useImperativeHandle)(t,()=>R.current);let O=(0,s.useCallback)(()=>{R.current?.querySelector('[data-focused="true"]')?.focus()},[R]),V=(0,s.useCallback)(e=>{if(!sV.includes(e.key))return;let t=e.currentTarget;if(e.preventDefault(),t.hasAttribute("data-calendar-grid"))return void O();"ArrowUp"===e.key&&r((0,to.A)(o,-7)),"ArrowDown"===e.key&&r((0,to.A)(o,7)),"ArrowLeft"===e.key&&r((0,to.A)(o,-1)),"ArrowRight"===e.key&&r((0,to.A)(o,1)),R.current?.querySelector("[data-preserve-focus]")?.focus()},[R,O,r,o]);(0,s.useEffect)(()=>{O()},[O]),(0,s.useEffect)(()=>{document.activeElement?.matches("[data-calendar-grid], [data-calendar-grid] [data-preserve-focus]")&&O()},[R,O,o]),(0,s.useCallback)(()=>z((0,to.A)(new Date,-1)),[z]),(0,s.useCallback)(()=>z(new Date),[z]),(0,s.useCallback)(()=>z((0,to.A)(new Date,1)),[z]);let L=(0,s.useMemo)(()=>"carousel"===m?(0,a.jsx)(u.so,{align:"center",paddingLeft:4,style:{borderBottom:"1px solid var(--card-border-color)",minHeight:"55px",position:"sticky",top:0},children:(0,a.jsxs)(u.so,{align:"center",flex:1,justify:"space-between",children:[(0,a.jsx)(u.so,{align:"center",flex:1,children:(0,a.jsxs)(u.EY,{weight:"medium",size:1,children:[c.monthNames[(o||new Date)?.getMonth()]," ",(o||new Date)?.getFullYear()]})}),(0,a.jsx)(u.so,{paddingRight:3,gap:2,children:(0,a.jsxs)(y.vE,{children:[(0,a.jsx)(y.$n,{icon:C.YJP,mode:"bleed",onClick:()=>A(-1),"data-testid":"calendar-prev-month",tooltipProps:{content:"Previous month"}}),(0,a.jsx)(y.$n,{icon:C.vKP,mode:"bleed",onClick:()=>A(1),"data-testid":"calendar-next-month",tooltipProps:{content:"Next month"}})]})})]})}):(0,a.jsxs)(u.so,{children:[(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(sK,{onChange:$,monthNames:c.monthNames,value:v})}),(0,a.jsx)(u.az,{marginLeft:2,children:(0,a.jsx)(sX,{moveFocusedDate:A,labels:{goToNextYear:c.goToNextYear,goToPreviousYear:c.goToPreviousYear},onChange:D,value:j})})]}),[o,v,j,$,c.goToNextYear,c.goToPreviousYear,c.monthNames,m,A,D]),F=(0,s.useCallback)(()=>d(new Date),[d]);return(0,a.jsxs)(u.az,{"data-testid":"calendar","data-ui":"Calendar",...x,ref:R,children:[(0,a.jsxs)(u.az,{padding:h,children:[sH.dayPresets,L,(0,a.jsxs)(u.az,{"data-calendar-grid":!0,onKeyDown:V,marginY:2,overflow:"hidden",tabIndex:0,children:[(0,a.jsx)(sN,{weekDayNames:c.weekDayNamesShort,date:o,focused:o,onSelect:z,selected:S,isPastDisabled:p}),sq]})]}),(0,a.jsx)(u.az,{padding:2,style:{borderTop:"1px solid var(--card-border-color)"},children:(0,a.jsxs)(u.so,{align:"center",justify:"space-between",children:[n&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(u.so,{align:"center",children:[(0,a.jsx)(sM,{"aria-label":c.selectTime,value:(0,e7.GP)(S,"HH:mm",{timeZone:b?.name}),onChange:P}),(0,a.jsx)(u.az,{marginLeft:2,children:(0,a.jsx)(y.$n,{text:c.setToCurrentTime,mode:"bleed",onClick:F})})]}),f&&(0,a.jsx)(y.$n,{icon:C.DZb,mode:"bleed",size:"default",text:`${b?.abbreviation}`,onClick:k}),sH.timePresets]}),f&&w&&(0,a.jsx)(w,{..._})]})})]})});function sK(e){let t,n,r=(0,o.c)(6),{onChange:i,value:l,monthNames:s}=e;return r[0]!==s?(t=s.map(sG),r[0]=s,r[1]=t):t=r[1],r[2]!==i||r[3]!==t||r[4]!==l?(n=(0,a.jsx)(u.so,{flex:1,gap:1,children:(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(u.l6,{fontSize:1,radius:2,value:l,onChange:i,padding:2,children:t})})}),r[2]=i,r[3]=t,r[4]=l,r[5]=n):n=r[5],n}function sG(e,t){return(0,a.jsx)("option",{value:t,children:e},t)}function sX(e){let t,n,r,i,l,s,d,c,p,m=(0,o.c)(20),{moveFocusedDate:h,onChange:f,value:g,labels:x}=e;m[0]!==h?(t=()=>h(-12),m[0]=h,m[1]=t):t=m[1];let b=t;m[2]!==h?(n=()=>h(12),m[2]=h,m[3]=n):n=m[3];let v=n;return m[4]===Symbol.for("react.memo_cache_sentinel")?(r={content:"Previous year"},m[4]=r):r=m[4],m[5]!==b||m[6]!==x.goToPreviousYear?(i=(0,a.jsx)(y.$n,{"aria-label":x.goToPreviousYear,onClick:b,mode:"bleed",icon:C.YJP,tooltipProps:r,...sJ}),m[5]=b,m[6]=x.goToPreviousYear,m[7]=i):i=m[7],m[8]===Symbol.for("react.memo_cache_sentinel")?(l={width:48},m[8]=l):l=m[8],m[9]!==f||m[10]!==g?(s=(0,a.jsx)(sZ,{value:g,onChange:f,radius:0,style:l}),m[9]=f,m[10]=g,m[11]=s):s=m[11],m[12]===Symbol.for("react.memo_cache_sentinel")?(d={content:"Next year"},m[12]=d):d=m[12],m[13]!==v||m[14]!==x.goToNextYear?(c=(0,a.jsx)(y.$n,{"aria-label":x.goToNextYear,onClick:v,mode:"bleed",icon:C.vKP,tooltipProps:d,...sJ}),m[13]=v,m[14]=x.goToNextYear,m[15]=c):c=m[15],m[16]!==i||m[17]!==s||m[18]!==c?(p=(0,a.jsxs)(u.so,{gap:1,children:[i,s,c]}),m[16]=i,m[17]=s,m[18]=c,m[19]=p):p=m[19],p}let sQ=(0,s.forwardRef)(function(e,t){let{value:n=new Date,onChange:r,calendarLabels:i,padding:o=2,showTimeZone:l=!1,timeZoneScope:d,...c}
176=e,[u,p]=(0,s.useState)(),m=(0,s.useCallback)(e=>{r(e),p(void 0)},[r]);return(0,a.jsx)(sW,{...c,labels:i,ref:t,selectedDate:n,onSelect:m,focusedDate:u||n,onFocusedDateChange:p,padding:o,showTimeZone:l,timeZoneScope:d})}),s1=(0,s.forwardRef)(function(e,t){let n,r,i,l,d,c,p,m,h,f,g,x,b,v,j,w,_,k,S,T,I,E,$,A,D,z,M,P,R=(0,o.c)(53);R[0]!==e?({value:j,inputValue:i,onInputChange:p,onChange:c,selectTime:g,timeStep:b,calendarLabels:n,readOnly:h,constrainSize:x,monthPickerVariant:d,padding:m,disableInput:r,isPastDisabled:l,timeZoneScope:v,...f}=e,R[0]=e,R[1]=n,R[2]=r,R[3]=i,R[4]=l,R[5]=d,R[6]=c,R[7]=p,R[8]=m,R[9]=h,R[10]=f,R[11]=g,R[12]=x,R[13]=b,R[14]=v,R[15]=j):(n=R[1],r=R[2],i=R[3],l=R[4],d=R[5],c=R[6],p=R[7],m=R[8],h=R[9],f=R[10],g=R[11],x=R[12],b=R[13],v=R[14],j=R[15]);let O=void 0===x||x,{t:V}=iJ(),L=(0,s.useRef)(null),F=(0,s.useRef)(null),B=(0,s.useRef)(null),{zoneDateToUtc:N}=sh(v),[Y,H]=(0,s.useState)(null);R[16]===Symbol.for("react.memo_cache_sentinel")?(w=()=>F.current,R[16]=w):w=R[16],(0,s.useImperativeHandle)(t,w),R[17]===Symbol.for("react.memo_cache_sentinel")?(_=()=>H(F.current),k=[],R[17]=_,R[18]=k):(_=R[17],k=R[18]),(0,s.useEffect)(_,k);let[Z,U]=(0,s.useState)(!1);R[19]===Symbol.for("react.memo_cache_sentinel")?(S=()=>U(!1),T=()=>[L.current],R[19]=S,R[20]=T):(S=R[19],T=R[20]),(0,u.PR)(S,T),R[21]===Symbol.for("react.memo_cache_sentinel")?(I=()=>{F.current?.focus(),F.current?.select()},R[21]=I):I=R[21];let q=I;R[22]===Symbol.for("react.memo_cache_sentinel")?(E=e=>{"Escape"===e.key&&U(!1)},R[22]=E):E=R[22];let J=E;R[23]===Symbol.for("react.memo_cache_sentinel")?($=()=>U(!0),R[23]=$):$=R[23];let W=$;R[24]!==i||R[25]!==l||R[26]!==N?(D=i&&l&&(0,tn.A)(N(new Date(i))),R[24]=i,R[25]=l,R[26]=N,R[27]=D):D=R[27],A=D,R[28]!==n||R[29]!==h?(z=h?null:(0,a.jsx)(u.so,{style:{padding:"5px"},children:(0,a.jsx)(y.$n,{disabled:h,"aria-label":n.ariaLabel,ref:B,icon:C.CTc,mode:"bleed",onClick:W,style:{display:"block"},"data-testid":"select-date-button",tooltipProps:{content:n.tooltipText}})}),R[28]=n,R[29]=h,R[30]=z):z=R[30];let K=z,G=r||h;return R[31]!==n||R[32]!==O||R[33]!==A||R[34]!==l||R[35]!==Z||R[36]!==d||R[37]!==c||R[38]!==m||R[39]!==Y||R[40]!==g||R[41]!==K||R[42]!==V||R[43]!==b||R[44]!==v||R[45]!==j?(M=Z?(0,a.jsx)(u.XS,{zOffset:1e3,children:(0,a.jsx)(y.AM,{constrainSize:O,"data-testid":"date-input-dialog",referenceElement:Y,portal:!0,content:(0,a.jsx)(u.az,{overflow:"auto",children:(0,a.jsxs)(eX.Ay,{onDeactivation:q,children:[A&&(0,a.jsx)(u.Zp,{margin:1,padding:2,radius:2,shadow:1,tone:"critical",children:(0,a.jsx)(u.EY,{size:1,children:V("inputs.dateTime.past-date-warning")})}),(0,a.jsx)(sQ,{monthPickerVariant:d,calendarLabels:n,selectTime:g,timeStep:b,onKeyUp:J,value:j,isPastDisabled:l,onChange:c,padding:m,timeZoneScope:v})]})}),open:!0,placement:"bottom",ref:L,children:(0,a.jsx)(a.Fragment,{children:K})})}):K,R[31]=n,R[32]=O,R[33]=A,R[34]=l,R[35]=Z,R[36]=d,R[37]=c,R[38]=m,R[39]=Y,R[40]=g,R[41]=K,R[42]=V,R[43]=b,R[44]=v,R[45]=j,R[46]=M):M=R[46],R[47]!==i||R[48]!==p||R[49]!==f||R[50]!==G||R[51]!==M?(P=(0,a.jsx)(sz,{ref:F,"data-testid":"date-input",...f,readOnly:G,value:i,onChange:p,suffix:M}),R[47]=i,R[48]=p,R[49]=f,R[50]=G,R[51]=M,R[52]=P):P=R[52],P}),s2=Symbol.for("sanity.patch");function s5(e,t=[]){return{patchType:s2,type:"setIfMissing",path:t,value:e}}function s0(e,t,n=[]){return{patchType:s2,type:"insert",path:n,position:t,items:e}}function s7(e,t=[]){return{patchType:s2,type:"set",path:t,value:e}}function s3(e=[]){return{patchType:s2,type:"unset",path:e}}function s8(){let e=[];return{publish(t){for(let n of e)n(t)},subscribe:t=>(e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)})}}class s4{static from(e){return e instanceof s4?e:new s4(Array.isArray(e)?e2(e):[e])}constructor(e){this.patches=e}prepend(...e){return s4.from([...e2(e),...this.patches])}append(...e){return s4.from([...this.patches,...e2(e)])}prefixAll(e){return s4.from(this.patches.map(t=>({...t,path:[e,...t.path]})))}}let s6=new Date,s9=(0,s.forwardRef)(function(e,t){let n,r,i,l,d,c,u,p,m,h,f,g,C,y,x,b,v,j,w,_,k,S,T=(0,o.c)(52);T[0]!==e?({id:i,deserialize:n,formatInputValue:r,onChange:l,parseInputValue:d,placeholder:c,readOnly:u,selectTime:m,serialize:h,timeStep:f,timeZoneScope:g,value:C,...p}=e,T[0]=e,T[1]=n,T[2]=r,T[3]=i,T[4]=l,T[5]=d,T[6]=c,T[7]=u,T[8]=p,T[9]=m,T[10]=h,T[11]=f,T[12]=g,T[13]=C):(n=T[1],r=T[2],i=T[3],l=T[4],d=T[5],c=T[6],u=T[7],p=T[8],m=T[9],h=T[10],f=T[11],g=T[12],C=T[13]);
176let[I,E]=(0,s.useState)(null),{t:$}=iJ();T[14]===Symbol.for("react.memo_cache_sentinel")?(y=()=>{E(null)},T[14]=y):y=T[14],T[15]!==C?(x=[C],T[15]=C,T[16]=x):x=T[16],(0,s.useEffect)(y,x),T[17]!==I||T[18]!==l||T[19]!==d||T[20]!==h||T[21]!==C?(b=e=>{let t=e.currentTarget.value,n=""===t?null:d(t);null===n?(l(null),typeof C>"u"&&I&&E(null)):n.isValid?l(h(n.date)):E(t)},T[17]=I,T[18]=l,T[19]=d,T[20]=h,T[21]=C,T[22]=b):b=T[22];let A=b;T[23]!==l||T[24]!==h?(v=e=>{l(e?h(e):null)},T[23]=l,T[24]=h,T[25]=v):v=T[25];let D=v,z=(0,s.useRef)(null);T[26]===Symbol.for("react.memo_cache_sentinel")?(j=()=>z.current,T[26]=j):j=T[26],(0,s.useImperativeHandle)(t,j),T[27]!==n||T[28]!==r||T[29]!==I||T[30]!==d||T[31]!==C?(w=I?d(I):C?n(C):null,_=I||(w?.isValid?r(w.date):C),T[27]=n,T[28]=r,T[29]=I,T[30]=d,T[31]=C,T[32]=w,T[33]=_):(w=T[32],_=T[33]);let M=_,P=e.calendarLabels;T[34]!==r||T[35]!==c||T[36]!==$?(k=c||$("inputs.datetime.placeholder",{example:r(s6)}),T[34]=r,T[35]=c,T[36]=$,T[37]=k):k=T[37];let R=w?.date,O=M||"",V=!!u,L=w?.error;return T[38]!==D||T[39]!==A||T[40]!==i||T[41]!==e.calendarLabels||T[42]!==p||T[43]!==m||T[44]!==V||T[45]!==L||T[46]!==k||T[47]!==R||T[48]!==O||T[49]!==f||T[50]!==g?(S=(0,a.jsx)(s1,{...p,calendarLabels:P,id:i,selectTime:m,timeStep:f,timeZoneScope:g,placeholder:k,ref:z,value:R,inputValue:O,readOnly:V,onInputChange:A,onChange:D,customValidity:L}
176),T[38]=D,T[39]=A,T[40]=i,T[41]=e.calendarLabels,T[42]=p,T[43]=m,T[44]=V,T[45]=L,T[46]=k,T[47]=R,T[48]=O,T[49]=f,T[50]=g,T[51]=S):S=T[51],S});function de(e){return{ariaLabel:e("calendar.button.aria-label"),goToTomorrow:e("calendar.action.go-to-tomorrow"),goToToday:e("calendar.action.go-to-today"),goToYesterday:e("calendar.action.go-to-yesterday"),goToNextMonth:e("calendar.action.go-to-next-month"),goToPreviousMonth:e("calendar.action.go-to-previous-month"),goToNextYear:e("calendar.action.go-to-next-year"),goToPreviousYear:e("calendar.action.go-to-previous-year"),setToCurrentTime:e("calendar.action.set-to-current-time"),selectTime:e("calendar.action.select-time"),tooltipText:e("calendar.button.tooltip-text"),monthNames:[e("calendar.month-names.january"),e("calendar.month-names.february"),e("calendar.month-names.march"),e("calendar.month-names.april"),e("calendar.month-names.may"),e("calendar.month-names.june"),e("calendar.month-names.july"),e("calendar.month-names.august"),e("calendar.month-names.september"),e("calendar.month-names.october"),e("calendar.month-names.november"),e("calendar.month-names.december")],weekDayNamesShort:[e("calendar.weekday-names.short.monday"),e("calendar.weekday-names.short.tuesday"),e("calendar.weekday-names.short.wednesday"),e("calendar.weekday-names.short.thursday"),e("calendar.weekday-names.short.friday"),e("calendar.weekday-names.short.saturday"),e("calendar.weekday-names.short.sunday")],setToTimePreset:(t,n)=>e("calendar.action.set-to-time-preset",{time:t,date:n})}}let dt=e=>(0,e7.qg)(e,e7.D2),dn=e=>(0,e7.GP)(e,e7.D2),dr=e=>{let t,n,r,i,l,s=(0,o.c)(18),{useElementQueries:d,timeZoneScope:c,allowTimeZoneSwitch:p,tooltipContent:m}=e,h=void 0===p||p,{timeZone:f}=sh(c),{DialogTimeZone:g,dialogProps:x,dialogTimeZoneShow:b}=sD(c);return s[0]!==g||s[1]!==x?(t=g&&(0,a.jsx)(g,{...x}),s[0]=g,s[1]=x,s[2]=t):t=s[2],s[3]!==m?(n=(0,a.jsx)(u.az,{flex:1,padding:1,children:(0,a.jsx)(u.EY,{size:1,children:m})}),s[3]=m,s[4]=n):n=s[4],s[5]!==h||s[6]!==b||s[7]!==f.alternativeName||s[8]!==f.city||s[9]!==f.namePretty||s[10]!==d?(r=(0,a.jsx)("div",{children:d?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.az,{className:"button-small",children:h?(0,a.jsx)(y.$n,{"data-testid":"timezone-button",icon:C.Pe7,mode:"bleed",readOnly:!h,onClick:h?b:rg,text:`${f.city}`}):(0,a.jsxs)(u.cV,{space:2,padding:2,children:[(0,a.jsx)(u.EY,{weight:"medium",size:1,children:(0,a.jsx)(C.Pe7,{})}),(0,a.jsx)(u.EY,{weight:"medium",size:1,children:`${f.city}`})]})}),(0,a.jsx)(u.az,{className:"button-large",children:h?(0,a.jsx)(y.$n,{"data-testid":"timezone-button",icon:C.Pe7,mode:"bleed",readOnly:!h,onClick:h?b:rg,text:`${f.alternativeName} (${f.namePretty})`}):(0,a.jsxs)(u.cV,{space:2,padding:2,children:[(0,a.jsx)(u.EY,{weight:"medium",size:1,children:(0,a.jsx)(C.Pe7,{})}),(0,a.jsx)(u.EY,{weight:"medium",size:1,children:`${f.alternativeName} (${f.namePretty})`})]})})]}):(0,a.jsx)(a.Fragment,{children:h?(0,a.jsx)(y.$n,{icon:C.Pe7,mode:"bleed",readOnly:!h,onClick:h?b:rg,text:`${f.alternativeName} (${f.namePretty})`}):(0,a.jsxs)(u.cV,{space:2,padding:2,children:[(0,a.jsx)(u.EY,{weight:"medium",size:1,children:(0,a.jsx)(C.Pe7,{})}),(0,a.jsx)(u.EY,{weight:"medium",size:1,children:`${f.alternativeName} (${f.namePretty})`})]})})}),s[5]=h,s[6]=b,s[7]=f.alternativeName,s[8]=f.city,s[9]=f.namePretty,s[10]=d,s[11]=r):r=s[11],s[12]!==n||s[13]!==r?(i=(0,a.jsx)(y.m_,{content:n,portal:!0,children:r}),s[12]=n,s[13]=r,s[14]=i):i=s[14],s[15]!==t||s[16]!==i?(l=(0,a.jsxs)(a.Fragment,{children:[t,i]}),s[15]=t,s[16]=i,s[17]=l):l=s[17],l},di=(0,g.I4)(u.dU)`
177  .button-small {
178    display: block;
179  }
180  .button-large {
181    display: none;
182  }
183
184  &[data-eq-min~='2'] {
185    .button-small {
186      display: none;
187    }
188    .button-large {
189      display: block;
190    }
191  }
192`;function da(e,t){if(!(!t||!e))return`desc_${e}`}let dl=g.I4.div`
193  left: 8px;
194  position: relative;
195  width: 25px;
196`,ds=[],dd={error:function(){let e,t,n=(0,o.c)(4),{t:r}=iJ();return n[0]!==r?(e=r("form.validation.has-error-aria-label"),n[0]=r,n[1]=e):e=n[1],n[2]!==e?(t=(0,a.jsx)(C.YZv,{"data-testid":"input-validation-icon-error","aria-label":e,"aria-hidden":!0,role:"presentation"}),n[2]=e,n[3]=t):t=n[3],t},warning:function(){let e,t,n=(0,o.c)(4),{t:r}=iJ();return n[0]!==r?(e=r("form.validation.has-warning-aria-label"),n[0]=r,n[1]=e):e=n[1],n[2]!==e?(t=(0,a.jsx)(C.sAQ,{"data-testid":"input-validation-icon-warning","aria-label":e,"aria-hidden":!0,role:"presentation"}),n[2]=e,n[3]=t):t=n[3],t},info:function(){let e,t,n=(0,o.c)(4),{t:r}=iJ();return n[0]!==r?(e=r("form.validation.has-info-aria-label"),n[0]=r,n[1]=e):e=n[1],n[2]!==e?(t=(0,a.jsx)(C.YzR,{"data-testid":"input-validation-icon-info","aria-label":e,"aria-hidden":!0,role:"presentation"}),n[2]=e,n[3]=t):t=n[3],t}},dc=(0,g.I4)(u.BJ)`
197  max-width: 200px;
198`,du=(0,g.I4)(u.EY)(({$status:e})=>"error"===e?{"--card-icon-color":"var(--card-badge-critical-icon-color)"}:"warning"===e?{"--card-icon-color":"var(--card-badge-caution-icon-color)"}:"info"===e?{"--card-icon-color":"var(--card-badge-primary-icon-color)"}:{});function dp(e){let t,n,r,i,l,s,d,c=(0,o.c)(20),{validation:u,__unstable_showSummary:p,fontSize:m,placement:h}=e,f=void 0===u?ds:u,g=f.some(df),C=f.some(dh),x=g?"error":C?"warning":"info",b=dd[x];return c[0]!==p||c[1]!==f?(t=p&&(0,a.jsx)(dC,{validation:f}),c[0]=p,c[1]=f,c[2]=t):t=c[2],c[3]!==p||c[4]!==f?(n=!p&&(0,a.jsx)(a.Fragment,{children:f.map(dm)}),c[3]=p,c[4]=f,c[5]=n):n=c[5],c[6]!==t||c[7]!==n?(r=(0,a.jsxs)(dc,{space:3,children:[t,n]}),c[6]=t,c[7]=n,c[8]=r):r=c[8],c[9]===Symbol.for("react.memo_cache_sentinel")?(i=["bottom","right","left"],c[9]=i):i=c[9],c[10]!==b?(l=b&&(0,a.jsx)(b,{}),c[10]=b,c[11]=l):l=c[11],c[12]!==m||c[13]!==x||c[14]!==l?(s=(0,a.jsx)(dl,{children:(0,a.jsx)(du,{$status:x,size:m,weight:"medium",children:l})}),c[12]=m,c[13]=x,c[14]=l,c[15]=s):s=c[15],c[16]!==h||c[17]!==r||c[18]!==s?(d=(0,a.jsx)(y.m_,{content:r,portal:!0,placement:h,fallbackPlacements:i,children:s}),c[16]=h,c[17]=r,c[18]=s,c[19]=d):d=c[19],d}function dm(e,t){return(0,a.jsx)(dg,{validation:e},t)}function dh(e){return"warning"===e.level}function df(e){return"error"===e.level}function dg(e){let t,n,r,i,l=(0,o.c)(10),{validation:s}=e,d=dd[s.level];return l[0]!==d?(t=d&&(0,a.jsx)(d,{}),l[0]=d,l[1]=t):t=l[1],l[2]!==t||l[3]!==s.level?(n=(0,a.jsx)(u.az,{marginRight:2,children:(0,a.jsx)(du,{$status:s.level,size:1,children:t})}),l[2]=t,l[3]=s.level,l[4]=n):n=l[4],l[5]!==s.message?(r=(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(u.EY,{size:1,children:s.message})}),l[5]=s.message,l[6]=r):r=l[6],l[7]!==n||l[8]!==r?(i=(0,a.jsxs)(u.so,{children:[n,r]}),l[7]=n,l[8]=r,l[9]=i):i=l[9],i}function dC(e){let t,n=(0,o.c)(7),{validation:r}=e,{t:i}=iJ(),l=i5(),s=r.reduce(dx,0),d=r.reduce(dy,0),c=s>0,p=d>0;if(!c&&!p)return null;if(n[0]!==s||n[1]!==c||n[2]!==p||n[3]!==l||n[4]!==i||n[5]!==d){let e=c&&i("form.validation.summary.errors-count",{count:s}),r=p&&i("form.validation.summary.warnings-count",{count:d});t=e&&r?(0,a.jsx)(u.EY,{size:1,children:l.format([e,r])}):(0,a.jsx)(u.EY,{size:1,children:e||r}),n[0]=s,n[1]=c,n[2]=p,n[3]=l,n[4]=i,n[5]=d,n[6]=t}else t=n[6];return t}function dy(e,t){return"warning"===t.level?e+1:e}function dx(e,t){return"error"===t.level?e+1:e}let db=(0,g.I4)(u.so)`
199  /*
200   * Prevent the block size of appended elements (such as the deprecated field badge) affecting
201   * the intrinsic block size of the label.
202   */
203  contain: size;
204`,dv=[],dj=(0,s.memo)(function(e){let t,n,r,i,l,s,d,c,p=(0,o.c)(28),{description:m,inputId:h,title:f,deprecated:g,validation:C,suffix:y}=e,x=void 0===C?dv:C,{t:b}=iJ(),v=x.length>0;return p[0]!==b||p[1]!==f?(t=f||(0,a.jsx)("span",{style:{color:"var(--card-muted-fg-color)"},children:b("form.field.untitled-field-label")}),p[0]=b,p[1]=f,p[2]=t):t=p[2],p[3]!==h||p[4]!==t?(n=(0,a.jsx)(u.so,{align:"center",children:(0,a.jsx)(u.EY,{as:"label",htmlFor:h,weight:"medium",size:1,children:t})}
204),p[3]=h,p[4]=t,p[5]=n):n=p[5],p[6]!==y?(r=y&&(0,a.jsx)(u.az,{marginLeft:2,"data-testid":"form-field-suffix",children:y}),p[6]=y,p[7]=r):r=p[7],p[8]!==g||p[9]!==v||p[10]!==b||p[11]!==f||p[12]!==x?(i=(g||v)&&(0,a.jsxs)(db,{align:"center",children:[g&&(0,a.jsx)(u.az,{marginLeft:2,children:(0,a.jsx)(u.Ex,{"data-testid":`deprecated-badge-${f}`,tone:"caution",children:b("form.field.deprecated-label")})}),v&&(0,a.jsx)(u.az,{marginLeft:2,children:(0,a.jsx)(dp,{"data-testid":"input-validation-icon-error",fontSize:1,placement:"top",validation:x})})]}),p[8]=g,p[9]=v,p[10]=b,p[11]=f,p[12]=x,p[13]=i):i=p[13],p[14]!==n||p[15]!==r||p[16]!==i?(l=(0,a.jsxs)(u.so,{align:"center",paddingY:1,children:[n,r,i]}),p[14]=n,p[15]=r,p[16]=i,p[17]=l):l=p[17],p[18]!==g||p[19]!==f?(s=g&&(0,a.jsx)(ut,{"data-testid":`deprecated-message-${f}`,tone:"caution",size:1,children:g.reason}),p[18]=g,p[19]=f,p[20]=s):s=p[20],p[21]!==m||p[22]!==h?(d=m&&(0,a.jsx)(u.EY,{muted:!0,size:1,id:da(h,m),children:m}),p[21]=m,p[22]=h,p[23]=d):d=p[23],p[24]!==l||p[25]!==s||p[26]!==d?(c=(0,a.jsxs)(u.BJ,{space:3,children:[l,s,d]}),p[24]=l,p[25]=s,p[26]=d,p[27]=c):c=p[27],c}),dw=[0,.25,.75,1],d_={placement:"right",fallbackPlacements:["top","bottom"]};function dk(e){let t,n,r=(0,o.c)(14),{group:i}=e,{title:l}=iK(i);if(i.expanded){let e,t,n;return r[0]!==l?(e=(0,a.jsx)(u.az,{padding:2,paddingTop:3,children:(0,a.jsx)(u.EY,{muted:!0,size:1,weight:"medium",children:l})}),r[0]=l,r[1]=e):e=r[1],r[2]!==i.children?(t=i.children.map((e,t)=>(0,a.jsx)(dT,{action:e,isFirst:0===t,prevIsGroup:i.children[t-1]?.type==="group"},t)),r[2]=i.children,r[3]=t):t=r[3],r[4]!==e||r[5]!==t?(n=(0,a.jsxs)(a.Fragment,{children:[e,t]}),r[4]=e,r[5]=t,r[6]=n):n=r[6],n}let s=i.icon,d=i.tone;return r[7]!==i.children?(t=i.children.map((e,t)=>(0,a.jsx)(dT,{action:e,isFirst:0===t,prevIsGroup:i.children[t-1]?.type==="group"},t)),r[7]=i.children,r[8]=t):t=r[8],r[9]!==i.icon||r[10]!==i.tone||r[11]!==t||r[12]!==l?
204(n=(0,a.jsx)(nz.r,{icon:s,popover:d_,text:l,tone:d,children:t}),r[9]=i.icon,r[10]=i.tone,r[11]=t,r[12]=l,r[13]=n):n=r[13],n}function dS(e){let t,n,r,i,l=(0,o.c)(15),{action:s}=e,{title:d}=iK(s);l[0]!==s?(t=()=>{s.onAction()},l[0]=s,l[1]=t):t=l[1];let c=t;l[2]!==s.disabled?(n="object"==typeof s.disabled&&(0,a.jsx)(u.EY,{size:1,children:s.disabled.reason}),l[2]=s.disabled,l[3]=n):n=l[3];let p=n,m=!!s.disabled,h=s.iconRight||(s.selected?C.Nrt:void 0);return l[4]!==s.icon||l[5]!==s.selected||l[6]!==s.tone||l[7]!==c||l[8]!==m||l[9]!==h||l[10]!==d?(r=(0,a.jsx)(y.Dr,{disabled:m,icon:s.icon,iconRight:h,onClick:c,pressed:s.selected,text:d,tone:s.tone}),l[4]=s.icon,l[5]=s.selected,l[6]=s.tone,l[7]=c,l[8]=m,l[9]=h,l[10]=d,l[11]=r):r=l[11],l[12]!==p||l[13]!==r?(i=(0,a.jsx)(enp,{content:p,placement:"left",children:r}),l[12]=p,l[13]=r,l[14]=i):i=l[14],i}function dT(e){let t,n,r,i=(0,o.c)(15),{action:l,isFirst:s,prevIsGroup:d}=e;if("divider"===l.type){let e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(u.Nj,{}),i[0]=e):e=i[0],e}if("group"===l.type){let e,t,n;return i[1]!==s?(e=!s&&(0,a.jsx)(u.Nj,{}),i[1]=s,i[2]=e):e=i[2],i[3]!==l?(t=(0,a.jsx)(dk,{group:l}),i[3]=l,i[4]=t):t=i[4],i[5]!==e||i[6]!==t?(n=(0,a.jsxs)(a.Fragment,{children:[e,t]}),i[5]=e,i[6]=t,i[7]=n):n=i[7],n}return i[8]!==d?(t=d&&(0,a.jsx)(u.Nj,{}),i[8]=d,i[9]=t):t=i[9],i[10]!==l?(n=(0,a.jsx)(dS,{action:l}),i[10]=l,i[11]=n):n=i[11],i[12]!==t||i[13]!==n?(r=(0,a.jsxs)(a.Fragment,{children:[t,n]}),i[12]=t,i[13]=n,i[14]=r):r=i[14],r}let dI={placement:"top"};function dE(e){return"renderAsButton"in e&&e.renderAsButton}let d$=(0,s.memo)(function(e){let{nodes:t,onMenuOpenChange:n}=e,[r,i]=(0,s.useState)(!1),o=(0,s.useCallback)(()=>{n(!0),i(!0)},[n]),l=(0,s.useCallback)(()=>{n(!1),i(!1)},[n]),d=(0,s.useMemo)(()=>t.filter(dE),[t]),c=(0,s.useMemo)(()=>t.filter(e=>!dE(e)),[t]),u=(0,s.useMemo)(()=>{let e=c.length;if(0===e||e>1)return c;let t=c[0];return"group"===t.type?[{...t,expanded:!0}]:c},[c]),p=(0,s.useMemo)(()=>[...u.length?[{type:"group",children:u,icon:C.riS,title:"Field actions"}]:[],...d],[d,u]);return(0,a.jsx)(a.Fragment,{children:p.map((e,t)=>(0,a.jsx)(dA,{node:e,onOpen:o,onClose:l,open:r},t))})}),dA=(0,s.memo)(function(e){let t,n=(0,o.c)(12),{node:r,onOpen:i,onClose:l,open:s}=e;if("divider"===r.type){let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(u.Zp,{borderLeft:!0,flex:"none"}),n[0]=e):e=n[0],e}if("action"===r.type){let e,t;return n[1]!==r.title?(e={...dI,content:r.title},n[1]=r.title,n[2]=e):e=n[2],n[3]!==r.icon||n[4]!==r.onAction||n[5]!==e?(t=(0,a.jsx)(y.$n,{icon:r.icon,mode:"bleed",onClick:r.onAction,tooltipProps:e}),n[3]=r.icon,n[4]=r.onAction,n[5]=e,n[6]=t):t=n[6],t}return n[7]!==r||n[8]!==l||n[9]!==i||n[10]!==s?(t=(0,a.jsx)(dz,{node:r,onOpen:i,onClose:l,open:s}),n[7]=r,n[8]=l,n[9]=i,n[10]=s,n[11]=t):t=n[11],t}),dD={constrainSize:!0,placement:"right",portal:!0,fallbackPlacements:["top","bottom"]};function dz(e){let t,n,r,i,l,d=(0,o.c)(16),{node:c,onOpen:p,onClose:m,open:h}=e,{title:f}=iK(c),g=h?void 0:f;d[0]!==c.title?(t={...dI,content:c.title},d[0]=c.title,d[1]=t):t=d[1],d[2]!==c.icon||d[3]!==g||d[4]!==t?(n=(0,a.jsx)(y.$n,{"aria-label":g,"data-testid":"field-actions-trigger",icon:c.icon,mode:"bleed",tabIndex:0,tooltipProps:t}),d[2]=c.icon,d[3]=g,d[4]=t,d[5]=n):n=d[5];let C=(0,s.useId)();return d[6]!==c.children?(r=c.children.map((e,t)=>(0,a.jsx)(dT,{action:e,isFirst:0===t,prevIsGroup:c.children[t-1]?.type==="group"},t)),d[6]=c.children,d[7]=r):r=d[7],d[8]!==r?(i=(0,a.jsx)(u.W1,{children:r}),d[8]=r,d[9]=i):i=d[9],d[10]!==m||d[11]!==p||d[12]!==n||d[13]!==C||d[14]!==i?(l=(0,a.jsx)(y.IU,{button:n,id:C,menu:i,onOpen:p,onClose:m,popover:dD}),d[10]=m,d[11]=p,d[12]=n,d[13]=C,d[14]=i,d[15]=l):l=d[15],l}let dM=(0,s.memo)(function(e){let t,n,r,i,l,d,u=(0,o.c)(20),{actions:p,children:m,path:h,focused:f,__internal_comments:g,__internal_slot:C}=e,{onMouseEnter:y,onMouseLeave:x,store:b}=(0,s.useContext)(c.pd);u[0]!==b||u[1]!==h?(t=()=>{let[e]=b.getSnapshot();return iO||!!e&&aB(h)===e},u[0]=b,u[1]=h,u[2]=t):t=u[2];let v=(0,s.useSyncExternalStore)(b.subscribe,t);u[3]!==y||u[4]!==h?(n=()=>{y(h)},u[3]=y,u[4]=h,u[5]=n):n=u[5];let j=n;u[6]!==x||u[7]!==h?(r=()=>{x(h)},u[6]=x,u[7]=h,u[8]=r):r=u[8];let w=r;
204return u[9]!==g||u[10]!==C||u[11]!==p||u[12]!==f||u[13]!==j||u[14]!==w||u[15]!==v?(l={actions:p,focused:f,hovered:v,__internal_comments:g,__internal_slot:C,onMouseEnter:j,onMouseLeave:w},u[9]=g,u[10]=C,u[11]=p,u[12]=f,u[13]=j,u[14]=w,u[15]=v,u[16]=l):l=u[16],i=l,u[17]!==m||u[18]!==i?(d=(0,a.jsx)(c.vV.Provider,{value:i,children:m}),u[17]=m,u[18]=i,u[19]=d):d=u[19],d});dM.displayName="Memo(FieldActionsProvider)";let dP=(0,s.memo)(function(e){let{actions:t,documentId:n,documentType:r,onActions:i,path:l,schemaType:d}=e,c=t.length,u=(0,s.useRef)(c),[p,m]=(0,s.useState)(()=>Array.from(Array(c))),h=(0,s.useRef)(p),f=(0,s.useCallback)((e,t)=>{m(n=>{let r=[...n];return r[e]=t,r})},[]);(0,s.useEffect)(()=>{h.current!==p&&(h.current=p,i(function e(t){return t.filter(Boolean).filter(e=>!("hidden"in e)||!0!==e.hidden).map(t=>"group"===t.type?{...t,children:e(t.children)}:t)}(p)))},[p,i]),(0,s.useEffect)(()=>{if(u.current!==c){let e=Array.from(Array(c));for(let t=0;t<c;t++)e[t]=h.current[t];u.current=c,m(e),h.current=e}},[c]);let g=(0,s.useMemo)(()=>t.map((e,t)=>(function({action:e,documentId:t,documentType:n,index:r,path:i,schemaType:a,setFieldAction:l}){let{useAction:d}=e;return(0,s.memo)(function(){let e,c,u,p=(0,o.c)(4);p[0]===Symbol.for("react.memo_cache_sentinel")?(e={documentId:t,documentType:n,path:i,schemaType:a},p[0]=e):e=p[0];let m=iY(d(e));return p[1]!==m?(c=()=>{l(r,m)},u=[m],p[1]=m,p[2]=c,p[3]=u):(c=p[2],u=p[3]),(0,s.useEffect)(c,u),null})})({action:e,documentId:n,documentType:r,index:t,path:l,schemaType:d,setFieldAction:f})),[t,n,r,l,d,f]);return(0,a.jsx)(a.Fragment,{children:g.map((e,t)=>(0,a.jsx)(e,{},t))})});function dR(){return(0,s.useContext)(c.vV)}let dO=(0,s.memo)(function(e){let t,n,r,i,l,d,u,p,m,h,f=(0,o.c)(17),{children:g}=e,[C]=(0,s.useState)(dV);f[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],f[0]=t):t=f[0];let y=(0,s.useRef)(t);f[1]!==C?(n=e=>{let t=aB(e);if(!y.current.includes(t))for(let e of(y.current=[t,...y.current],C))e()},f[1]=C,f[2]=n):n=f[2];let x=n;f[3]!==C?(r=e=>{let t=aB(e);if(y.current.includes(t))for(let e of(y.current=y.current.filter(e=>e!==t),C))e()},f[3]=C,f[4]=r):r=f[4];let b=r;return f[5]!==C?(l=e=>(C.add(e),()=>{C.delete(e)}),f[5]=C,f[6]=l):l=f[6],f[7]===Symbol.for("react.memo_cache_sentinel")?(d=()=>y.current,f[7]=d):d=f[7],f[8]!==l?(u={subscribe:l,getSnapshot:d},f[8]=l,f[9]=u):u=f[9],i=u,f[10]!==x||f[11]!==b||f[12]!==i?(m={store:i,onMouseEnter:x,onMouseLeave:b},f[10]=x,f[11]=b,f[12]=i,f[13]=m):m=f[13],p=m,f[14]!==g||f[15]!==p?(h=(0,a.jsx)(c.pd.Provider,{value:p,children:g}),f[14]=g,f[15]=p,f[16]=h):h=f[16],h});function dV(){return new Set}let dL=(0,g.I4)(u.so)(({theme:e,$floatingCardWidth:t,$slotWidth:n,$floatingCardVisible:r})=>{let{space:i}=e.sanity;return(0,g.AH)`
205    /* Prevent buttons from taking up extra vertical space */
206    line-height: 1;
207    width: 100%;
208    /* For floating actions menu */
209    position: relative;
210
211    [data-ui='PresenceBox'] {
212      position: absolute;
213      bottom: 0;
214      right: ${n+t+i[1]}px;
215    }
216    @media (hover: hover) {
217      // If hover is supported, we hide the floating card by default, so only add space for it when it's visible.
218      [data-ui='PresenceBox'] {
219        position: absolute;
220        bottom: 0;
221        right: ${n+(r?t:0)+i[1]}px;
222      }
223    }
224  `}),dF=(0,g.I4)(u.az)(({theme:e,$presenceMaxWidth:t})=>{let{space:n}=e.sanity;return(0,g.AH)`
225    max-width: calc(100% - ${t+n[1]}px);
226    min-width: 75%;
227  `}),dB=(0,g.I4)(u.az)(({theme:e,$right:t,$fieldActionsVisible:n})=>{let{space:r}=e.sanity,i=n?t+r[1]:t;return(0,g.AH)`
228    position: absolute;
229    bottom: 0;
230    right: ${i}px;
231  `}),dN=(0,g.I4)(u.Zp)`
232  align-items: center;
233  bottom: 0;
234  position: absolute;
235  right: 0;
236  transition: opacity 150ms ease;
237  line-height: 1;
238
239  @media (hover: hover) {
240    // If hover is supported, we hide the floating card by default
241    // and only show it when it has focus within or when the field is hovered or focused.
242    opacity: 0;
243    pointer-events: none;
244
245    [data-ui='FieldActionsFlex'] {
246      opacity: 0;
247    }
248
249    &[data-actions-visible='false']:not(:focus-within) {
250      // Remove the shadow when the field actions are not visible
251      box-shadow: none;
252
253      // Since the field actions always will be present in the DOM (to make them focusable) –
254      // they will always affect the width of the floating card, even when they are not visible.
255      // Therefore, we remove the background of the floating card when the field actions are not visible.
256      background: transparent;
257    }
258
259    // Remove the shadow when the field has comments but no actions
260    &[data-has-comments='true']:not([data-has-actions='true']) {
261      box-shadow: none;
262    }
263
264    // Show the floating card when it has focus within (ie when field actions are focused).
265    &:focus-within {
266      opacity: 1;
267      pointer-events: auto;
268      width: max-content;
269
270      [data-ui='FieldActionsFlex'] {
271        opacity: 1;
272        pointer-events: auto;
273        width: max-content;
274      }
275    }
276  }
277
278  &[data-visible='true'] {
279    opacity: 1;
280    pointer-events: auto;
281    width: max-content;
282  }
283
284  &[data-actions-visible='true'] {
285    [data-ui='FieldActionsFlex'] {
286      opacity: 1;
287      pointer-events: auto;
288      width: max-content;
289    }
290  }
291`,dY=(0,g.I4)(u.so)`
292  gap: inherit;
293  transition: opacity 150ms ease;
294`;function dH(e){let t,n,r,i,l,d,c,p,m,h,f,g,C,x,b=(0,o.c)(44),{__internal_comments:v,__internal_slot:j,actions:w,content:_,fieldFocused:k,fieldHovered:S,presence:T,inputId:I}
294=e,[E,$]=(0,s.useState)(!1),[A,D]=(0,s.useState)(!1),[z,M]=(0,s.useState)(null),[P,R]=(0,s.useState)(0),[O,V]=(0,s.useState)(null),[L,F]=(0,s.useState)(0);b[0]!==v?(t=v||{},b[0]=v,b[1]=t):t=b[1];let{hasComments:B,button:N,isAddingComment:Y}=t,H=void 0!==B&&B,Z=void 0===N?null:N,U=w&&w.length>0,q=k||S||A||void 0!==Y&&Y,J=v?.button||U,W=E||q||H;b[2]!==z?(n=()=>{if(z){let{width:e}=z.getBoundingClientRect();R(e||0)}},b[2]=z,b[3]=n):n=b[3];let K=n;b[4]!==K?(r=()=>{K(),$(!0)},b[4]=K,b[5]=r):r=b[5];let G=r;b[6]!==K?(i=()=>{K(),$(!1)},b[6]=K,b[7]=i):i=b[7];let X=i;b[8]!==K?(l=()=>{K()},b[8]=K,b[9]=l):l=b[9],b[10]!==K||b[11]!==q?(d=[K,q],b[10]=K,b[11]=q,b[12]=d):d=b[12],(0,s.useEffect)(l,d),b[13]!==O?(p=()=>{if(O){let{width:e}=O.getBoundingClientRect();F(e||0)}},c=[O],b[13]=O,b[14]=c,b[15]=p):(c=b[14],p=b[15]),(0,s.useEffect)(p,c);e:{let e;if(!j){m=null;break e}let t=!!q;b[16]!==P||b[17]!==j||b[18]!==t?(e=(0,a.jsx)(dB,{$fieldActionsVisible:t,$right:P,ref:V,children:j}),b[16]=P,b[17]=j,b[18]=t,b[19]=e):e=b[19],m=e}let Q=m;return b[20]===Symbol.for("react.memo_cache_sentinel")?(h=88,b[20]=h):h=b[20],b[21]!==_?(f=(0,a.jsx)(dF,{"data-ui":"fieldHeaderContentBox",flex:1,paddingY:2,$presenceMaxWidth:h,children:_}),b[21]=_,b[22]=f):f=b[22],b[23]!==T?(g=T&&T.length>0&&(0,a.jsx)(u.az,{"data-ui":"PresenceBox",flex:"none",children:(0,a.jsx)(y4,{maxAvatars:4,presence:T})}),b[23]=T,b[24]=g):g=b[24],b[25]!==w||b[26]!==Z||b[27]!==X||b[28]!==G||b[29]!==U||b[30]!==H||b[31]!==J||b[32]!==I||b[33]!==W||b[34]!==q?(C=(J||H)&&(0,a.jsx)(y.vE,{children:(0,a.jsxs)(dN,{"data-actions-visible":q?"true":"false","data-has-actions":U?"true":"false","data-has-comments":H?"true":"false","data-visible":W?"true":"false",display:"flex",onBlurCapture:X,onFocusCapture:G,ref:M,sizing:"border",children:[U&&(0,a.jsx)(dY,{align:"center","data-ui":"FieldActionsFlex","data-testid":I?`field-actions-menu-${I}`:"field-actions-menu",children:(0,a.jsx)(d$,{nodes:w,onMenuOpenChange:D})}),Z]})}),b[25]=w,b[26]=Z,b[27]=X,b[28]=G,b[29]=U,b[30]=H,b[31]=J,b[32]=I,b[33]=W,b[34]=q,b[35]=C):C=b[35],b[36]!==P||b[37]!==W||b[38]!==Q||b[39]!==L||b[40]!==f||b[41]!==g||b[42]!==C?(x=(0,a.jsxs)(dL,{align:"flex-end",justify:"space-between",$floatingCardVisible:W,$floatingCardWidth:P,$slotWidth:L,children:[f,g,Q,C]}),b[36]=P,b[37]=W,b[38]=Q,b[39]=L,b[40]=f,b[41]=g,b[42]=C,b[43]=x):x=b[43],x}let dZ=g.I4.div`
295  display: flex;
296  justify-content: flex-end;
297  box-sizing: border-box;
298  min-height: var(--avatar-height);
299  width: 77px;
300  margin-left: var(--small-padding);
301
302  &[data-max-avatars='1'] {
303    max-width: 23px;
304  }
305
306  &[data-position='top'] {
307    align-self: flex-start;
308  }
309
310  &[data-position='bottom'] {
311    align-self: flex-end;
312  }
313`;function dU(e){let t,n=(0,o.c)(4),{children:r,maxAvatars:i,position:l}=e,s=void 0===l?"bottom":l;return n[0]!==r||n[1]!==i||n[2]!==s?(t=(0,a.jsx)(dZ,{"data-max-avatars":i,"data-position":s,children:r}),n[0]=r,n[1]=i,n[2]=s,n[3]=t):t=n[3],t}function dq(e){let t,n,r,i=(0,o.c)(5);return i[0]!==e.value?(n={value:e.value},i[0]=e.value,i[1]=n):n=i[1],t=n,i[2]!==e.children||i[3]!==t?(r=(0,a.jsx)(c.xP.Provider,{value:t,children:e.children}),i[2]=e.children,i[3]=t,i[4]=r):r=i[4],r}function dJ(e){let t=(0,l.p0)(e),n=(0,s.useContext)(c.xP);if(!n)throw Error("useFormValue must be used within a FormValueProvider");return aN(n?.value,t)}let dW=(0,g.I4)(u.Zp)`
314  line-height: 1;
315`,dK=e=>e.toISOString(),dG="PP HH:mm",dX=e=>{let t,n,r,i,l,s,d,c,p,m,h,f,g,x,b,v=(0,o.c)(47),{initialValue:j,onChange:w,timeZoneScope:_}=e,{t:k}=iJ(),{timeZone:S,utcToCurrentZoneDate:T,zoneDateToUtc:I}=sh(_),{dialogTimeZoneShow:E,DialogTimeZone:$,dialogProps:A}=sD(_);if(v[0]!==j||v[1]!==w||v[2]!==k||v[3]!==T||v[4]!==I){let e,a,o,f,g=T(j);v[16]!==w||v[17]!==I?(e=e=>{e&&w(I(e))},v[16]=w,v[17]=I,v[18]=e):e=v[18];let C=e;v[19]!==w||v[20]!==I?(a=e=>{let t=e.currentTarget.value,n=I((0,tt.A)(t,dG,new Date));(0,te.A)(n)&&w(n)},v[19]=w,v[20]=I,v[21]=a):a=v[21];let y=a;v[22]!==k?(f=de(k),v[22]=k,v[23]=f):f=v[23],o=f,n=u.so,m=1,h="space-between",t=s1,r=!0,i=sU.carousel,l=C,s=y,d=o,c=g,p=(0,ty.A)(g,dG),v[0]=j,v[1]=w,v[2]=k,v[3]=T,v[4]=I,v[5]=t,v[6]=n,v[7]=r,v[8]=i,v[9]=l,v[10]=s,v[11]=d,v[12]=c,v[13]=p,v[14]=m,v[15]=h}else t=v[5],n=v[6],r=v[7],i=v[8],l=v[9],s=v[10],d=v[11],c=v[12],p=v[13],m=v[14],h=v[15];v[24]!==t||v[25]!==r||v[26]!==i||v[27]!==l||v[28]!==s||v[29]!==d||v[30]!==c||v[31]!==p||v[32]!==_?(f=(0,a.jsx)(t,{selectTime:r,monthPickerVariant:i,onChange:l,onInputChange:s,calendarLabels:d,value:c,inputValue:p,constrainSize:!1,padding:0,isPastDisabled:!0,timeZoneScope:_}),v[24]=t,v[25]=r,v[26]=i,v[27]=l,v[28]=s,v[29]=d,v[30]=c,v[31]=p,v[32]=_,v[33]=f):f=v[33];let D=`${S.abbreviation}`;return v[34]!==E||v[35]!==D?(g=(0,a.jsx)(y.$n,{icon:C.DZb,mode:"bleed",size:"default",text:D,onClick:E}),v[34]=E,v[35]=D,v[36]=g):g=v[36],v[37]!==$||v[38]!==A?(x=$&&(0,a.jsx)($,{...A}),v[37]=$,v[38]=A,v[39]=x):x=v[39],v[40]!==n||v[41]!==f||v[42]!==g||v[43]!==x||v[44]!==m||v[45]!==h?(b=(0,a.jsxs)(n,{flex:m,justify:h,children:[f,g,x]}),v[40]=n,v[41]=f,v[42]=g,v[43]=x,v[44]=m,v[45]=h,v[46]=b):b=v[46],b},dQ=g.I4.input(e=>{let{color:t,font:n}=(0,tZ.JW)(e.theme);return(0,g.AH)`
316    resize: none;
317    overflow: hidden;
318    appearance: none;
319    background: none;
320    border: 0;
321    padding: 0;
322    border-radius: 0;
323    outline: none;
324    width: 100%;
325    box-sizing: border-box;
326    font-family: ${n.text.family};
327    font-weight: ${n.text.weights.bold};
328    font-size: ${n.text.sizes[4].fontSize}px;
329    line-height: ${n.text.sizes[4].lineHeight}px;
330    margin: 0;
331    position: relative;
332    z-index: 1;
333    display: block;
334    transition: height 500ms;
335    /* NOTE: This is a hack to disable Chrome’s autofill styles */
336    &:-webkit-autofill,
337    &:-webkit-autofill:hover,
338    &:-webkit-autofill:focus,
339    &:-webkit-autofill:active {
340      -webkit-text-fill-color: var(--input-fg-color) !important;
341      transition: background-color 5000s;
342      transition-delay: 86400s /* 24h */;
343    }
344
345    color: ${t.input.default.enabled.fg};
346
347    &::placeholder {
348      color: ${t.input.default.enabled.placeholder};
349    }
350  `}),d1=g.I4.textarea(e=>{let{color:t,font:n}=(0,tZ.JW)(e.theme);return(0,g.AH)`
351    resize: none;
352    overflow: hidden;
353    appearance: none;
354    background: none;
355    border: 0;
356    padding: 0;
357    border-radius: 0;
358    outline: none;
359    width: 100%;
360    box-sizing: border-box;
361    font-family: ${n.text.family};
362    font-weight: ${n.text.weights.regular};
363    font-size: ${n.text.sizes[2].fontSize}px;
364    height: auto;
365    line-height: ${n.text.sizes[2].lineHeight}px;
366    margin: 0;
367    max-width: 624px;
368    position: relative;
369    z-index: 1;
370    display: block;
371    color: ${t.input.default.enabled.fg};
372
373    &::placeholder {
374      color: ${t.input.default.enabled.placeholder};
375    }
376  `}),d2=e=>"archived"!==e.state&&"published"!==e.state;function d5(e){let t,n,r,i,l,d,c,p,m,h,f,g,C,y=(0,o.c)(41),{release:x,onChange:b,disabled:v}=e;y[0]!==x?(t=d2(x),y[0]=x,y[1]=t):t=y[1];let j=t,w=(0,s.useRef)(null),[_,k]=(0,s.useState)(46),S=x?._id,T=x?.metadata.title,I=x?.metadata.description;y[2]!==T||y[3]!==I?(n={title:T,description:I},y[2]=T,y[3]=I,y[4]=n):n=y[4],y[5]!==S||y[6]!==n?(r={_id:S,metadata:n},y[5]=S,y[6]=n,y[7]=r):r=y[7];let[E,$]=(0,s.useState)(r),{t:A}=iJ();y[8]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{w.current&&k(w.current.scrollHeight)},l=[],y[8]=i,y[9]=l):(i=y[8],l=y[9]),(0,s.useEffect)(i,l),y[10]!==x?(c=()=>{$(x)},d=[x],y[10]=x,y[11]=d,y[12]=c):(d=y[11],c=y[12]),(0,s.useEffect)(c,d),y[13]!==b||y[14]!==x.metadata||y[15]!==E?(p=e=>{e.preventDefault();let t=e.target.value;b({...E,metadata:{...x.metadata,title:t}}),$({...E,metadata:{...x.metadata,title:t}})},y[13]=b,y[14]=x.metadata,y[15]=E,y[16]=p):p=y[16];let D=p;y[17]!==j||y[18]!==b||y[19]!==x.metadata||y[20]!==E?(m=e=>{if(e.preventDefault(),!j)return;let t=e.target.value;b({...E,metadata:{...x.metadata,description:t}}),$({...E,metadata:{...x.metadata,description:t}}),w.current&&(w.current.style.overflow="hidden",w.current.style.height="auto",w.current.style.height=`${w.current.scrollHeight}px`,parseInt(w.current.style.height,10)>200&&(w.current.style.overflow="auto")),k(e.currentTarget.scrollHeight)},y[17]=j,y[18]=b,y[19]=x.metadata,y[20]=E,y[21]=m):m=y[21];let z=m,M=j||E.metadata.description,P=E.metadata.title;y[22]!==A?(h=A("release.placeholder-untitled-release"),y[22]=A,y[23]=h):h=y[23];let R=!j;return y[24]!==v||y[25]!==D||y[26]!==h||y[27]!==R||y[28]!==E.metadata.title?(f=(0,a.jsx)(dQ,{onChange:D,value:P,placeholder:h,"data-testid":"release-form-title",readOnly:R,disabled:v}),y[24]=v,y[25]=D,y[26]=h,y[27]=R,y[28]=E.metadata.title,y[29]=f):f=y[29],y[30]!==v||y[31]!==z||y[32]!==j||y[33]!==_||y[34]!==M||y[35]!==A||y[36]!==E?(g=M&&(0,a.jsx)(d1,{ref:w,autoFocus:!E,value:E.metadata.description,placeholder:A("release.form.placeholder-describe-release"),onChange:z,style:{height:`${_}px`,maxHeight:200},"data-testid":"release-form-description",disabled:v,readOnly:!j}),y[30]=v,y[31]=z,y[32]=j,y[33]=_,y[34]=M,y[35]=A,y[36]=E,y[37]=g):g=y[37],y[38]!==f||y[39]!==g?(C=(0,a.jsxs)(u.BJ,{space:3,children:[f,g]}),y[38]=f,y[39]=g,y[40]=C):C=y[40],C}function d0(e){let t,n,r,i,l,d,c,m,h,f,g,x,b,v,j,w,_,k,S,T,I,E,$,A,D,z,M,P,R,O,V,L,F,B,N=(0,o.c)(91),{onChange:Y,value:H}=e;N[0]!==H.metadata?(t=H.metadata||{},N[0]=H.metadata,N[1]=t):t=N[1];let{releaseType:Z}=t,{t:U}=iJ(),{timeZone:q,utcToCurrentZoneDate:J}=sh(sC),[W,K]=(0,s.useState)(q.name),[G,X]=(0,s.useState)(Z??"asap"),{getStoredReleaseData:Q,saveReleaseDataToStorage:ee}
376=sx(),et=H._id,[en,er]=(0,s.useState)();N[2]!==Q||N[3]!==et||N[4]!==Y?(n=()=>{let e=Q();e&&(Y({_id:et,...{metadata:{title:e.title,description:e.description,releaseType:e.releaseType,intendedPublishAt:e.intendedPublishAt}}}),e.releaseType&&X(e.releaseType),e.intendedPublishAt&&er(new Date(e.intendedPublishAt)))},r=[Q,et,Y],N[2]=Q,N[3]=et,N[4]=Y,N[5]=n,N[6]=r):(n=N[5],r=N[6]),(0,s.useEffect)(n,r),N[7]!==Y||N[8]!==ee?(i=e=>{Y(e),ee({...e.metadata})},N[7]=Y,N[8]=ee,N[9]=i):i=N[9];let ei=i;N[10]!==ei||N[11]!==H?(l=e=>{er(e),ei({...H,metadata:{...H.metadata,intendedPublishAt:e.toISOString()}})},N[10]=ei,N[11]=H,N[12]=l):l=N[12];let ea=l;N[13]!==ei||N[14]!==H?(d=e=>{let t=e.currentTarget.dataset.value;if(!("string"==typeof t&&lg.includes(t)))return;X(t);let n=(0,tx.A)((0,tb.A)(new Date,1));"scheduled"===t&&er(n),ei({...H,metadata:{...H.metadata,releaseType:t,intendedPublishAt:"scheduled"===t&&n.toISOString()||void 0}})},N[13]=ei,N[14]=H,N[15]=d):d=N[15];let eo=d;N[16]!==ei||N[17]!==H?(c=e=>{ei({...H,metadata:{...H.metadata,title:e.metadata.title,description:e.metadata.description}})},N[16]=ei,N[17]=H,N[18]=c):c=N[18];let el=c;N[19]!==W||N[20]!==en||N[21]!==q.name||N[22]!==J?(m=()=>{q.name!==W&&(K(q.name),en&&(0,te.A)(en))&&er(J(en))},N[19]=W,N[20]=en,N[21]=q.name,N[22]=J,N[23]=m):m=N[23],N[24]!==W||N[25]!==en||N[26]!==q||N[27]!==J?(h=[W,en,q,J],N[24]=W,N[25]=en,N[26]=q,N[27]=J,N[28]=h):h=N[28],(0,s.useEffect)(m,h);let es=(0,s.useId)(),[ed,ec]=(0,s.useState)(null);N[29]!==U?(f=U("release.dialog.tooltip.title"),N[29]=U,N[30]=f):f=N[30],N[31]!==es||N[32]!==f?(g=(0,a.jsx)(u.EY,{as:"label",htmlFor:es,children:f}),N[31]=es,N[32]=f,N[33]=g):g=N[33],N[34]===Symbol.for("react.memo_cache_sentinel")?(x={maxWidth:304},N[34]=x):x=N[34],N[35]!==U?(b=U("release.dialog.tooltip.description"),N[35]=U,N[36]=b):b=N[36],N[37]!==b?(v=(0,a.jsx)(u.EY,{size:1,children:b}),N[37]=b,N[38]=v):v=N[38],N[39]!==U?(j=U("release.dialog.tooltip.note"),N[39]=U,N[40]=j):j=N[40],N[41]!==j?(w=(0,a.jsx)(u.EY,{muted:!0,size:1,children:j}),N[41]=j,N[42]=w):w=N[42],N[43]!==v||N[44]!==w?(_=(0,a.jsxs)(u.BJ,{space:3,style:x,children:[v,w]}),N[43]=v,N[44]=w,N[45]=_):_=N[45],N[46]===Symbol.for("react.memo_cache_sentinel")?(k=(0,a.jsx)(C.YzR,{}),N[46]=k):k=N[46],N[47]!==_?(S=(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(y.m_,{content:_,delay:0,placement:"right-start",portal:!0,children:k})}),N[47]=_,N[48]=S):S=N[48],N[49]!==g||N[50]!==S?(T=(0,a.jsxs)(u.so,{gap:2,align:"center",children:[g,S]}),N[49]=g,N[50]=S,N[51]=T):T=N[51];let eu=`release.type.${G}`;N[52]!==U||N[53]!==eu?(I=U(eu),N[52]=U,N[53]=eu,N[54]=I):I=N[54];let ep=lo[G];return N[55]!==I||N[56]!==ep.tone?(E=(0,a.jsx)(d7,{text:I,tone:ep.tone}),N[55]=I,N[56]=ep.tone,N[57]=E):E=N[57],N[58]===Symbol.for("react.memo_cache_sentinel")?($=(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.D3D,{})}),N[58]=$):$=N[58],N[59]!==E?(A=(0,a.jsx)(u.$n,{mode:"ghost",children:(0,a.jsxs)(u.so,{justify:"space-between",align:"center",children:[E,$]})}),N[59]=E,N[60]=A):A=N[60],N[61]!==ed?(D={placement:"bottom",matchReferenceWidth:!0,boundaryElement:ed},N[61]=ed,N[62]=D):D=N[62],N[63]!==eo||N[64]!==U?(z=Object.entries(lo).map(e=>{let[t,n]=e,{tone:r}=n;return(0,a.jsx)(u.Dr,{"data-value":t,onClick:eo,children:(0,a.jsx)(d7,{text:U(`release.type.${t}`),tone:r})},t)}),N[63]=eo,N[64]=U,N[65]=z):z=N[65],N[66]!==z?(M=(0,a.jsx)(u.W1,{children:z}),N[66]=z,N[67]=M):M=N[67],N[68]!==es||N[69]!==A||N[70]!==D||N[71]!==M?(P=(0,a.jsx)(y.IU,{id:es,ref:ec,button:A,popover:D,menu:M}),N[68]=es,N[69]=A,N[70]=D,N[71]=M,N[72]=P):P=N[72],N[73]!==G||N[74]!==ea||N[75]!==en?(R="scheduled"===G&&(0,a.jsx)(p.Kp,{"aria-labelledby":"release-timing-at-time-tab",flex:1,id:"release-timing-at-time",style:{outline:"none"},tabIndex:-1,children:(0,a.jsx)(dX,{initialValue:en||new Date,onChange:ea,timeZoneScope:sC})}),N[73]=G,N[74]=ea,N[75]=en,N[76]=R):R=N[76],N[77]!==R?(O=(0,a.jsx)(u.so,{gap:1,children:R}),N[77]=R,N[78]=O):O=N[78],N[79]!==P||N[80]!==O?(V=(0,a.jsxs)(u.BJ,{space:3,children:[P,O]}),N[79]=P,N[80]=O,N[81]=V):V=N[81],N[82]!==T||N[83]!==V?(L=(0,a.jsxs)(u.BJ,{space:4,children:[T,V]}),N[82]=T,N[83]=V,N[84]=L):L=N[84],N[85]!==el||N[86]!==H?(F=(0,a.jsx)(d5,{release:H,onChange:el}),N[85]=el,N[86]=H,N[87]=F):F=N[87],N[88]!==L||N[89]!==F?(B=(0,a.jsxs)(u.BJ,{space:5,children:[L,F]}),N[88]=L,N[89]=F,N[90]=B):B=N[90],B}let d7=e=>{let t,n,r,i=(0,o.c)(7),{tone:l,text:s}=e;return i[0]!==l?(t=(0,a.jsx)(s_,{padding:1,tone:l}),i[0]=l,i[1]=t):t=i[1],i[2]!==s?(n=(0,a.jsx)(u.EY,{children:s}),i[2]=s,i[3]=n):n=i[3],i[4]!==t||i[5]!==n?(r=(0,a.jsxs)(u.so,{gap:3,align:"center",children:[t,n]}),i[4]=t,i[5]=n,i[6]=r):r=i[6],r};function d3(e){let t,n=(0,o.c)(3),{children:r}
376=e,[i]=(0,s.useState)(d8);return n[0]!==r||n[1]!==i?(t=(0,a.jsx)(c.Q$.Provider,{value:i,children:r}),n[0]=r,n[1]=i,n[2]=t):t=n[2],t}function d8(){let e=new Map,t={},n=[t],r=e=>e.length?e.map(e=>null===e?t:e):n;return{get:t=>{let{namespace:n,dependencies:i}=t,a=r(i);return e.get(n)?.get(a)},set:t=>{let{namespace:n,dependencies:i,value:a}=t,o=e.get(n)||function(){let e=new WeakMap,t=new WeakMap;function n(e){return Array.from(new Set(e)).map(e=>[function(e){let n=t.get(e);if(n)return n;let r=Array.from({length:10}).map(()=>Math.floor(255*Math.random()).toString(16).padStart(2,"0")).join("");return t.set(e,r),r}(e),e]).sort(([e],[t])=>e.localeCompare(t,"en")).map(([,e])=>e)}return{get:function(t){return function e(t,n){if(!t.length)return;let[r,...i]=t,a=n.get(r);if(a)return i.length?e(i,a.next):a.value}(n(t),e)},set:function(t,r){!function e(t,n,r){if(!t.length)return;let[i,...a]=t,o=n.get(i)||{type:"multi-key-weak-map-node",value:void 0,next:new WeakMap};if(n.set(i,o),!a.length){o.value=r;return}e(a,o.next,r)}(n(t),e,r)}}}(),l=r(i);e.set(n,o),o.set(l,a)}}}function d4(){let e=(0,s.useContext)(c.Q$);if(!e)throw Error("Could not find `cache` context");return e}function d6(e,t){let n=Object.create(null);return(...r)=>{let i=t(...r);return i in n||(n[i]=e(...r)),n[i]}}let d9={data:[],error:null,loading:!0},ce=d6((e,t,n)=>n.unstable_observeDocumentIdSet(`_type == "sanity.canvas.link" && (
377            studioDocumentId in path("versions.**."+ $publishedId) || 
378            studioDocumentId in [$publishedId, "drafts." + $publishedId]
379         )`,{publishedId:e}).pipe((0,E.T)(e=>e.documentIds),(0,tU.q)(e=>t.observable.fetch("*[_id == $id][0]{ _id, canvasDocumentId, studioDocumentId}",{id:e},{tag:"canvas.companion-docs"}).pipe((0,E.T)(e=>{if(!e?._id)throw Error("Companion doc not ready");return e}),(0,et.L)({count:2,delay:e=>{if(e instanceof Error&&"Companion doc not ready"===e.message)return(0,F.O)(1e3);throw e}}))),(0,E.T)(e=>({error:null,data:e,loading:!1})),(0,M.W)(e=>(0,k.of)({error:e,data:[],loading:!1})),(0,Z.Z)(d9),(0,Y.t)(1)),(e,t)=>`${e}-${t.config().dataset}-${t.config().projectId}`);function ct(){let e,t=(0,o.c)(5),n=d4(),r=lE(),i=z4(),a=ee7(a7);return t[0]!==i||t[1]!==n||t[2]!==a||t[3]!==r?(e=n.get({dependencies:[r,i],namespace:"CompanionDocsStore"})||function({client:e,previewStore:t}){return{getCompanionDocs:n=>ce(ib(n),e,t)}}({client:a,previewStore:i}),n.set({dependencies:[r,i],namespace:"CompanionDocsStore",value:e}),t[0]=i,t[1]=n,t[2]=a,t[3]=r,t[4]=e):e=t[4],e}function cn(){let e,t,n,r=(0,o.c)(6),{data:i,error:a,loading:l}=function(){let e,t,n,r=(0,o.c)(7),{state$:i}=lu(),{releases:a,error:l,state:s}=(0,eH.J)(i);r[0]!==a?(e=o6(Array.from(a.values())),r[0]=a,r[1]=e):e=r[1],r[2]===Symbol.for("react.memo_cache_sentinel")?(t=["loading","initialising"],r[2]=t):t=r[2];let d=t.includes(s);return r[3]!==l||r[4]!==e||r[5]!==d?(n={data:e,error:l,loading:d},r[3]=l,r[4]=e,r[5]=d,r[6]=n):n=r[6],n}();return r[0]!==i?(t=Array.from(i.values()).filter(cr),r[0]=i,r[1]=t):t=r[1],e=t,r[2]!==e||r[3]!==a||r[4]!==l?(n={data:e,error:a,loading:l},r[2]=e,r[3]=a,r[4]=l,r[5]=n):n=r[5],n}function cr(e){return la.includes(e.state)}async function ci(e,t){let n=t?{headers:{Authorization:`Bearer ${t}`}}:{credentials:"include"};return function(e){let t=e.body;if(!t)throw Error("Failed to read body from response");let n,r=!1;return new ReadableStream({start(e){n=t.getReader();let i=new TextDecoder,a="";n.read().then(function t(o){if(o.done)return r?void 0:0===(a=a.trim()).length?void e.close():(e.enqueue(JSON.parse(a)),void e.close());let l=(a+=i.decode(o.value,{stream:!0})).split(`
380`);for(let t=0;t<l.length-1;++t){let i=l[t].trim();if(0!==i.length)try{e.enqueue(JSON.parse(i))}catch(t){e.error(t),r=!0,n.cancel();return}}return a=l[l.length-1],n.read().then(t).catch(t=>e.error(t))}).catch(t=>e.error(t))},cancel(){r=!0,n.cancel()}})}
380(await fetch(e,n))}function ca(e){let t,n,r=(0,o.c)(16);r[0]!==e?({children:t,...n}=e,r[0]=e,r[1]=t,r[2]=n):(t=r[1],n=r[2]);let i=(0,s.useContext)(c.lH),{unstable_sources:l}=lE();if("source"in n){let e,{source:i}=n;return r[3]!==t||r[4]!==i?(e=(0,a.jsx)(c.lH.Provider,{value:i,children:t}),r[3]=t,r[4]=i,r[5]=e):e=r[5],e}if("name"in n){let e,o,{name:s}=n;if(r[6]!==s||r[7]!==l){let t;r[9]!==s?(t=e=>e.name===s,r[9]=s,r[10]=t):t=r[10],e=l.find(t),r[6]=s,r[7]=l,r[8]=e}else e=r[8];let d=e;if(!d)throw Error(`Could not find source with name \`${s}\` in current workspace`);if(i===d){let e;return r[11]!==t?(e=(0,a.jsx)(a.Fragment,{children:t}),r[11]=t,r[12]=e):e=r[12],e}return r[13]!==t||r[14]!==d?(o=(0,a.jsx)(c.lH.Provider,{value:d,children:t}),r[13]=t,r[14]=d,r[15]=o):o=r[15],o}throw Error("Invalid props passed into SourceProvider. A `name` or a `source` object is required.")}function co(){let e=(0,s.useContext)(c.lH);if(!e)throw Error("Could not find `source` context");return e}function cl(e){return`${o3}.${e}`}let cs={events:[],nextCursor:"",loading:!0,error:null};function cd(e){return{...e,id:`${e.timestamp}-${e.type}`,origin:"events"}}async function cc(e,t,n){let r=e.config(),i=r.dataset,a=new URLSearchParams({tag:"sanity.studio.transactions-log",excludeContent:"true",limit:"50",includeIdentifiedDocumentsOnly:"true"});Object.entries(n).forEach(([e,t])=>{void 0!==t&&a.set(e,t.toString())});let o=e.getUrl(`/data/history/${i}/transactions/${Array.isArray(t)?t.join(","):t}?${a.toString()}`),l=await ci(o,r.token),s=[],d=l.getReader();for(;;){let e=await d.read();if(e.done)break;if("error"in e.value)throw Error(e.value.error.description||e.value.error.type);s.push(e.value)}return s}function cu(e,t,n){if(n!==e?._rev)throw Error("Invalid document revision. The provided patch is calculated from a different revision than the current document");let r=(0,rf.X)(function(e){if(void 0===e)return;let{_rev:t,...n}=e;return n}(e),t);return null===r?void 0:r}let cp=Object.create(null),cm={editEvents:[],loading:!0,error:null},ch=e=>"createRelease"===e.type,cf=e=>"events"===e.origin,cg={events:[],hasMore:!1,error:null,loading:!0},cC={events$:(0,k.of)({events:[],nextCursor:"",loading:!1,error:null}),reloadEvents:()=>{},loadMore:()=>{}},cy=g.I4.div`
381  position: absolute;
382  top: 0;
383  bottom: 0;
384  width: 9px;
385  z-index: 201;
386  cursor: ew-resize;
387
388  ${({position:e})=>"right"===e?(0,g.AH)`
389          right: -4px;
390        `:(0,g.AH)`
391          left: -4px;
392        `}
393
394  /* Border */
395  & > span:nth-child(1) {
396    display: block;
397    border-left: 1px solid var(--card-border-color);
398    position: absolute;
399    top: 0;
400    ${({position:e})=>"right"===e?(0,g.AH)`
401            right: 4px;
402          `:(0,g.AH)`
403            left: 4px;
404          `}
405    bottom: 0;
406    transition: opacity 200ms;
407  }
408
409  /* Hover effect */
410  & > span:nth-child(2) {
411    display: block;
412    position: absolute;
413    top: 0;
414    ${({position:e})=>"right"===e?(0,g.AH)`
415            right: 0px;
416          `:(0,g.AH)`
417            left: 0px;
418          `}
419    width: 9px;
420    bottom: 0;
421    background-color: var(--card-border-color);
422    opacity: 0;
423    transition: opacity 150ms;
424  }
425
426  @media (hover: hover) {
427    &:hover > span:nth-child(2) {
428      opacity: 0.2;
429    }
430  }
431`;function cx(e){let t,n,r,i,l=(0,o.c)(8),{onResize:d,onResizeStart:c,position:u}=e,p=(0,s.useRef)(0);l[0]!==d||l[1]!==c?(t=e=>{e.preventDefault(),p.current=e.pageX,c();let t=e=>{e.preventDefault(),d(p.current-e.pageX)},n=()=>{window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)};window.addEventListener("mousemove",t),window.addEventListener("mouseup",n)},l[0]=d,l[1]=c,l[2]=t):t=l[2];let m=t;return l[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)("span",{}),r=(0,a.jsx)("span",{}),l[3]=n,l[4]=r):(n=l[3],r=l[4]),l[5]!==m||l[6]!==u?(i=(0,a.jsxs)(cy,{onMouseDown:m,position:u,children:[n,r]}),l[5]=m,l[6]=u,l[7]=i):i=l[7],i}let cb=(0,g.I4)(u.az)`
432  position: relative;
433  flex: 1;
434  padding-left: 1px;
435`;function cv(e){let t,n,r,i,l,d,c,u,p,m,h,f,g,C,y=(0,o.c)(33);y[0]!==e?({as:n,children:t,minWidth:l,maxWidth:i,initialWidth:r,resizerPosition:c,...d}=e,y[0]=e,y[1]=t,y[2]=n,y[3]=r,y[4]=i,y[5]=l,y[6]=d,y[7]=c):(t=y[1],n=y[2],r=y[3],i=y[4],l=y[5],d=y[6],c=y[7]);
435let x=void 0===c?"right":c,[b,v]=(0,s.useState)(null),j=(0,s.useRef)(void 0),[w,_]=(0,s.useState)(r);y[8]!==b?.offsetWidth?(u=()=>{j.current=b?.offsetWidth},y[8]=b?.offsetWidth,y[9]=u):u=y[9];let k=u;y[10]!==i||y[11]!==l||y[12]!==x?(p=e=>{let t=j.current;t&&_(Math.min(Math.max("right"===x?t-e:t+e,l),i))},y[10]=i,y[11]=l,y[12]=x,y[13]=p):p=y[13];let S=p;return y[14]!==i||y[15]!==l||y[16]!==w?(h=w?{flex:"none",width:w}:{minWidth:l,maxWidth:i},y[14]=i,y[15]=l,y[16]=w,y[17]=h):h=y[17],m=h,y[18]!==S||y[19]!==k||y[20]!==x?(f="left"===x&&(0,a.jsx)(cx,{onResize:S,onResizeStart:k,position:"left"}),y[18]=S,y[19]=k,y[20]=x,y[21]=f):f=y[21],y[22]!==S||y[23]!==k||y[24]!==x?(g="right"===x&&(0,a.jsx)(cx,{onResize:S,onResizeStart:k,position:"right"}),y[22]=S,y[23]=k,y[24]=x,y[25]=g):g=y[25],y[26]!==t||y[27]!==n||y[28]!==d||y[29]!==m||y[30]!==f||y[31]!==g?(C=(0,a.jsxs)(cb,{as:n,...d,ref:v,style:m,children:[f,t,g]}),y[26]=t,y[27]=n,y[28]=d,y[29]=m,y[30]=f,y[31]=g,y[32]=C):C=y[32],C}let cj={month:"short",day:"numeric"},cw={...cj,year:"numeric"},c_={...cw,hour:"numeric",minute:"numeric"};function ck(e,t){let n,r,i,a=(0,o.c)(5);a[0]!==t?(n=void 0===t?{}:t,a[0]=t,a[1]=n):n=a[1];let l=n,[d,c]=(0,s.useReducer)(cT,null,cS),u=function(e,t,n){let r,i,a,l,s,d,c,u,p,m,h=(0,o.c)(51);h[0]!==n?(r=void 0===n?{}:n,h[0]=n,h[1]=r):r=h[1];let f=r,{t:g}=iJ(),C=iG().id,{timeZone:y,minimal:x}=f;h[2]!==e?(i=e instanceof Date?e:new Date(e),h[2]=e,h[3]=i):i=h[3];let b=i,v=!!f.useTemporalPhrase;h[4]!==C||h[5]!==x||h[6]!==v?(a=function(e,t){let n="day"===t&&1===Math.abs(e),r="week"===t&&1===Math.abs(e);return v||n?iQ.relativeTimeFormat(C,{style:x&&!r?"short":"long",numeric:"auto"}).format(e,t):iQ.numberFormat(C,{style:"unit",unit:t,unitDisplay:x?"short":"long"}).format(Math.abs(e))},h[4]=C,h[5]=x,h[6]=v,h[7]=a):a=h[7];let j=a;if(!b.getTime()){let e;return h[8]===Symbol.for("react.memo_cache_sentinel")?(e={timestamp:"",refreshInterval:null},h[8]=e):e=h[8],e}let w=(0,tv.A)(t,b),_=(0,tj.A)(t,b);if(w||_){let e,t;if(x&&0===_){let e,t;return h[9]!==C||h[10]!==b||h[11]!==y?(e=iQ.dateTimeFormat(C,{...cj,timeZone:y}).format(b),h[9]=C,h[10]=b,h[11]=y,h[12]=e):e=h[12],h[13]!==e?(t={timestamp:e,refreshInterval:null},h[13]=e,h[14]=t):t=h[14],t}if(x){let e,t;return h[15]!==C||h[16]!==b||h[17]!==y?(e=iQ.dateTimeFormat(C,{...cw,timeZone:y}).format(b),h[15]=C,h[16]=b,h[17]=y,h[18]=e):e=h[18],h[19]!==e?(t={timestamp:e,refreshInterval:null},h[19]=e,h[20]=t):t=h[20],t}return h[21]!==C||h[22]!==b||h[23]!==y?(e=iQ.dateTimeFormat(C,{...c_,timeZone:y}
435).format(b),h[21]=C,h[22]=b,h[23]=y,h[24]=e):e=h[24],h[25]!==e?(t={timestamp:e,refreshInterval:null},h[25]=e,h[26]=t):t=h[26],t}if(h[27]!==j||h[28]!==t||h[29]!==b){l=Symbol.for("react.early_return_sentinel");e:{let e=(0,tw.A)(b,t);if(e){l={timestamp:j(e,"week"),refreshInterval:36e5};break e}}h[27]=j,h[28]=t,h[29]=b,h[30]=l}else l=h[30];if(l!==Symbol.for("react.early_return_sentinel"))return l;if(h[31]!==j||h[32]!==t||h[33]!==b){s=Symbol.for("react.early_return_sentinel");t:{let e=(0,t_.A)(b,t);if(e){s={timestamp:j(e,"day"),refreshInterval:36e5};break t}}h[31]=j,h[32]=t,h[33]=b,h[34]=s}else s=h[34];if(s!==Symbol.for("react.early_return_sentinel"))return s;if(h[35]!==j||h[36]!==t||h[37]!==b){d=Symbol.for("react.early_return_sentinel");n:{let e=(0,tk.A)(b,t);if(e){d={timestamp:j(e,"hour"),refreshInterval:6e4};break n}}h[35]=j,h[36]=t,h[37]=b,h[38]=d}else d=h[38];if(d!==Symbol.for("react.early_return_sentinel"))return d;if(h[39]!==j||h[40]!==t||h[41]!==b){c=Symbol.for("react.early_return_sentinel");r:{let e=(0,tS.A)(b,t);if(e){c={timestamp:j(e,"minute"),refreshInterval:2e4};break r}}h[39]=j,h[40]=t,h[41]=b,h[42]=c}else c=h[42];if(c!==Symbol.for("react.early_return_sentinel"))return c;if(h[43]!==j||h[44]!==t||h[45]!==b){u=Symbol.for("react.early_return_sentinel");i:{let e=(0,tT.A)(b,t);if(Math.abs(e)>10){u={timestamp:j(e,"second"),refreshInterval:5e3};break i}}h[43]=j,h[44]=t,h[45]=b,h[46]=u}else u=h[46];return u!==Symbol.for("react.early_return_sentinel")?u:(h[47]!==g?(p=g("relative-time.just-now"),h[47]=g,h[48]=p):p=h[48],h[49]!==p?(m={timestamp:p,refreshInterval:5e3},h[49]=p,h[50]=m):m=h[50],m)}(e,l.relativeTo||d,l);return a[2]!==u.refreshInterval?(r=()=>{let e;return null!==u.refreshInterval&&function t(n){e=window.setTimeout(()=>{c(),e=window.setTimeout(()=>t(n),n)},n)}(u.refreshInterval),()=>{null!==e&&clearTimeout(e)}},i=[u.refreshInterval],a[2]=u.refreshInterval,a[3]=r,a[4]=i):(r=a[3],i=a[4]),(0,s.useEffect)(r,i),u.timestamp}function cS(){return Date.now()}function cT(){return Date.now()}function cI(e){let t,n,r,i,l,s=(0,o.c)(10);s[0]!==e?({time:n,...t}=e,s[0]=e,s[1]=t,s[2]=n):(t=s[1],n=s[2]),s[3]!==n?(r=n instanceof Date?n:new Date(n),s[3]=n,s[4]=r):r=s[4];let d=r,c=ck(d,t);return s[5]!==d?(i=d.toISOString(),s[5]=d,s[6]=i):i=s[6],s[7]!==i||s[8]!==c?(l=(0,a.jsx)("time",{dateTime:i,title:c,children:c}),s[7]=i,s[8]=c,s[9]=l):l=s[9],l}let cE=(0,g.I4)(p.EA)(e=>{let t=(0,tZ.JW)(e.theme),n=e.$size??1;return(0,g.AH)`
436    border-radius: 50%;
437    width: ${t.avatar.sizes[n].size}px;
438    height: ${t.avatar.sizes[n].size}px;
439  `}),c$=/[^\p{Alpha}\p{White_Space}]/gu,cA=RegExp("\\p{White_Space}+","u"),cD={small:0,medium:1,large:2};function cz(e){let t,n,r,i,l=(0,o.c)(13);if(l[0]!==e?({user:n,withTooltip:r,...t}=e,l[0]=e,l[1]=t,l[2]=n,l[3]=r):(t=l[1],n=l[2],r=l[3]),iI(n)){let e;if(r){let e,r=n;return l[4]!==t||l[5]!==r?(e=(0,a.jsx)(cM,{...t,user:r}),l[4]=t,l[5]=r,l[6]=e):e=l[6],e}let i=n;return l[7]!==t||l[8]!==i?(e=(0,a.jsx)(cP,{...t,user:i}),l[7]=t,l[8]=i,l[9]=e):e=l[9],e}let s=n;return l[10]!==e||l[11]!==s?(i=(0,a.jsx)(cR,{...e,user:s}),l[10]=e,l[11]=s,l[12]=i):i=l[12],i}function cM(e){let t,n,r,i=(0,o.c)(6),{user:l}=e,{displayName:s}=l;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t={display:"inline-block"},i[0]=t):t=i[0],i[1]!==e?(n=(0,a.jsx)("div",{style:t,children:(0,a.jsx)(cP,{...e})}),i[1]=e,i[2]=n):n=i[2],i[3]!==s||i[4]!==n?(r=(0,a.jsx)(y.m_,{content:s,placement:"top",portal:!0,children:n}),i[3]=s,i[4]=n,i[5]=r):r=i[5],r}let cP=(0,s.forwardRef)(function(e,t){let n,r,i,l,d,c,p,m,h,f=(0,o.c)(22);f[0]!==e?({user:p,animateArrowFrom:n,position:r,size:l,status:d,tone:c,...i}=e,f[0]=e,f[1]=n,f[2]=r,f[3]=i,f[4]=l,f[5]=d,f[6]=c,f[7]=p):(n=f[1],r=f[2],i=f[3],l=f[4],d=f[5],c=f[6],p=f[7]);let[g,C]=(0,s.useState)(null),y=aK(p.id),x=g?void 0:p?.imageUrl;f[8]!==p.displayName?(m=p?.displayName&&function(e){let t=e.replace(c$,"").split(cA);return 1===t.length?`${t[0].charAt(0)}`.toUpperCase():`${t[0].charAt(0)}${t[t.length-1].charAt(0)}`}(p.displayName),f[8]=p.displayName,f[9]=m):m=f[9];let b="string"==typeof l?cD[l]:l,v=p?.displayName;return f[10]!==n||f[11]!==x||f[12]!==r||f[13]!==t||f[14]!==i||f[15]!==d||f[16]!==m||f[17]!==b||f[18]!==v||f[19]!==c||f[20]!==y.name?(h=(0,a.jsx)(u.eu,{__unstable_hideInnerStroke:!0,animateArrowFrom:n,arrowPosition:r,color:y.name,"data-legacy-tone":c,initials:m,src:x,onImageLoadError:C,ref:t,size:b,status:d,title:v,...i}),f[10]=n,f[11]=x,f[12]=r,f[13]=t,f[14]=i,f[15]=d,f[16]=m,f[17]=b,f[18]=v,f[19]=c,f[20]=y.name,f[21]=h):h=f[21],h});function cR(e){let t,n,r,i=(0,o.c)(10);i[0]!==e?({user:n,...t}=e,i[0]=e,i[1]=t,i[2]=n):(t=i[1],n=i[2]);let[l,s]=Co(n);if(s){let e;return i[3]!==t.size?(e=(0,a.jsx)(cE,{$size:t.size,animated:!0}),i[3]=t.size,i[4]=e):e=i[4],e}if(!l){let e;return i[5]!==t.size?(e=(0,a.jsx)(cE,{$size:t.size,animated:!1}),i[5]=t.size,i[6]=e):e=i[6],e}return i[7]!==t||i[8]!==l?(r=(0,a.jsx)(cz,{...t,user:l}),i[7]=t,i[8]=l,i[9]=r):r=i[9],r}function cO(e){let t,n,r=(0,o.c)(5);r[0]!==e?(t=void 0===e?{}:e,r[0]=e,r[1]=t):t=r[1];let i=t,a=iG().id;return r[2]!==a||r[3]!==i?(n=iQ.dateTimeFormat(a,i),r[2]=a,r[3]=i,r[4]=n):n=r[4],n}let cV=["title","status","assignedTo","dueBy","target","description"],cL="2024-03-05",cF=[{value:"open",title:"To Do",icon:(0,a.jsx)(C.GQ2,{})},{value:"closed",title:"Done",icon:(0,a.jsx)(C.Dee,{})}];function cB(e){let{documentId:t,documentType:n}=e||{},r=Cm().get(n),i=z4(),a=(0,s.useMemo)(()=>t&&r?D4(i,r,t):(0,k.of)(null),[t,i,r]),o=(0,eH.J)(a),l=o?.isLoading??!0,{snapshot:d}=o||{},c=d?.title,u=d?.subtitle,p=d?.description;return{isLoading:l,value:{title:c,subtitle:u,media:d?.media,description:p}}}function cN(){let{client:e,createAddonDataset:t}=Ks(),n=Cl(),r=(0,s.useCallback)(async r=>{if(!n)throw Error("No current user found. Unable to create task.");let i={...r,authorId:n.id,_type:"tasks.task"};if(!e)try{let e=await t();if(!e)throw Error("No addon client found. Unable to create task.");return await e.create(i)}catch(e){throw e}try{return await e.create(i)}catch(e){throw e}},[e,t,n]),i=(0,s.useCallback)(async(t,n)=>{try{if(!e)throw Error("No client. Unable to create task.");return await e.patch(t).set(n).commit()}catch(e){throw e}},[e]),a=(0,s.useCallback)(async t=>{try{if(!e)throw Error("No client. Unable to create task.");await e.delete(t)}catch(e){throw e}},[e]);return(0,s.useMemo)(()=>({create:r,edit:i,remove:a}),[r,i,a])}function cY({id:e,onError:t,onRemoved:n}
439){let[r,i]=(0,s.useState)("idle"),[a,o]=(0,s.useState)(!1),[l,d]=(0,s.useState)(null),c=cN(),u=(0,s.useCallback)(async()=>{try{i("loading"),await c.remove(e),n?.(),i("idle"),await new Promise(e=>setTimeout(e,300)),o(!1)}catch(e){t?.(e.message),d(e.message),i("error")}finally{i("idle")}},[e,c,t,n]);return{removeStatus:r,showDialog:a,error:l,handleRemove:u,handleOpenDialog:(0,s.useCallback)(()=>{o(!0)},[o]),handleCloseDialog:(0,s.useCallback)(()=>{o(!1)},[o])}}let cH={block:function(e){let t,n,r,i,l,s,d,c,p,m,h,f=(0,o.c)(30),{actions:g,title:C,subtitle:y,description:x,mediaDimensions:b,media:v,status:j,children:w}=e,_=void 0===b?ent:b;f[0]!==v||f[1]!==_?(t=v&&(0,a.jsx)(etO,{dimensions:_,layout:"block",media:v}),f[0]=v,f[1]=_,f[2]=t):t=f[2];let k=v?2:1;return f[3]!==C?(n=C?etV(C,"block"):"Untitled",f[3]=C,f[4]=n):n=f[4],f[5]!==n?(r=(0,a.jsx)(u.EY,{size:1,textOverflow:"ellipsis",weight:"medium",children:n}),f[5]=n,f[6]=r):r=f[6],f[7]!==y?(i=y&&(0,a.jsx)(u.az,{marginTop:2,children:(0,a.jsx)(u.EY,{muted:!0,size:1,textOverflow:"ellipsis",children:etV(y,"block")})}),f[7]=y,f[8]=i):i=f[8],f[9]!==x?(l=x&&(0,a.jsx)(u.az,{marginTop:3,children:(0,a.jsx)(u.EY,{muted:!0,size:1,textOverflow:"ellipsis",children:etV(x,"block")})}),f[9]=x,f[10]=l):l=f[10],f[11]!==k||f[12]!==r||f[13]!==i||f[14]!==l?(s=(0,a.jsxs)(u.az,{flex:1,paddingLeft:k,children:[r,i,l]}),f[11]=k,f[12]=r,f[13]=i,f[14]=l,f[15]=s):s=f[15],f[16]!==j?(d=j&&(0,a.jsx)(u.az,{paddingX:2,paddingY:3,children:etV(j,"block")}),f[16]=j,f[17]=d):d=f[17],f[18]!==d||f[19]!==g?(c=(0,a.jsxs)(u.so,{gap:1,paddingLeft:1,children:[d,g]}),f[18]=d,f[19]=g,f[20]=c):c=f[20],f[21]!==t||f[22]!==c||f[23]!==s?(p=(0,a.jsxs)(enn,{"data-testid":"block-preview__header",children:[t,s,c]}),f[21]=t,f[22]=c,f[23]=s,f[24]=p):p=f[24],f[25]!==w?(m=w&&(0,a.jsx)("div",{"data-testid":"block-preview__children",children:w}),f[25]=w,f[26]=m):m=f[26],f[27]!==p||f[28]!==m?(h=(0,a.jsxs)(u.BJ,{"data-testid":"block-preview",space:1,children:[p,m]}),f[27]=p,f[28]=m,f[29]=h):h=f[29],h},blockImage:function(e){let t,n,r,i,l,s,d,c,p,m,h,f,g,C=(0,o.c)(35),{actions:y,title:x,subtitle:b,description:v,fallbackTitle:j,mediaDimensions:w,media:_,children:k,status:S}=e,T=void 0===j?"Untitled":j,I=void 0===w?ene:w;return C[0]!==T||C[1]!==x?(t=(x||T)&&(0,a.jsx)(u.EY,{size:1,textOverflow:"ellipsis",weight:"medium",children:x?etV(x,"block"):T}),C[0]=T,C[1]=x,C[2]=t):t=C[2],C[3]!==b?(n=b&&(0,a.jsx)(u.EY,{muted:!0,size:1,textOverflow:"ellipsis",children:etV(b,"block")}),C[3]=b,C[4]=n):n=C[4],C[5]!==t||C[6]!==n?(r=(0,a.jsxs)(u.BJ,{flex:1,space:2,children:[t,n]}),C[5]=t,C[6]=n,C[7]=r):r=C[7],C[8]!==S?(i=S&&(0,a.jsx)(u.az,{paddingX:2,paddingY:3,children:etV(S,"block")}),C[8]=S,C[9]=i):i=C[9],C[10]!==i||C[11]!==y?(l=(0,a.jsxs)(u.so,{gap:1,paddingLeft:1,children:[i,y]}),C[10]=i,C[11]=y,C[12]=l):l=C[12],C[13]!==r||C[14]!==l?(s=(0,a.jsxs)(et4,{paddingBottom:3,paddingLeft:2,paddingRight:1,paddingTop:1,children:[r,l]}),C[13]=r,C[14]=l,C[15]=s):s=C[15],C[16]!==I?(d=(e=>{let{height:t,width:n}=e;return t&&n?t/n*100:1})(I),C[16]=I,C[17]=d):d=C[17],C[18]!==I||C[19]!==_?(c=(0,a.jsx)(etO,{border:!1,dimensions:I,layout:"blockImage",media:_,radius:0,responsive:!0}),C[18]=I,C[19]=_,C[20]=c):c=C[20],C[21]!==c||C[22]!==d?(p=(0,a.jsx)(et6,{$ratio:d,__unstable_checkered:!0,display:"flex",sizing:"border",radius:2,tone:"inherit",children:c}),C[21]=c,C[22]=d,C[23]=p):p=C[23],C[24]!==p||C[25]!==s?(m=(0,a.jsxs)(u.BJ,{children:[s,p]}),C[24]=p,C[25]=s,C[26]=m):m=C[26],C[27]!==v?(h=v&&(0,a.jsx)(u.az,{paddingX:2,paddingY:3,children:(0,a.jsx)(u.EY,{muted:!0,size:1,children:etV(v,"block")})}),C[27]=v,C[28]=h):h=C[28],C[29]!==k?(f=k&&(0,a.jsx)("div",{children:k}),C[29]=k,C[30]=f):f=C[30],C[31]!==m||C[32]!==h||C[33]!==f?(g=(0,a.jsxs)(et9,{children:[m,h,f]}),C[31]=m,C[32]=h,C[33]=f,C[34]=g):g=C[34],g},compact:function(e){let t,n,r,i,l,s,d,c,m,h=(0,o.c)(32),{children:f,isPlaceholder:g,media:C,status:y,title:x}=e,{t:b}=iJ();h[0]!==y?(t=y&&(0,a.jsx)(u.az,{"data-testid":"compact-preview__status",paddingLeft:4,paddingRight:1,children:etV(y,"compact")}),h[0]=y,h[1]=t):t=h[1];let v=t;if(g){let e,t,n,r,i=C?1:2;return h[2]!==C?(e=C&&(0,a.jsx)(p.EA,{animated:!0,radius:2,style:CJ.compact.media}),h[2]=C,h[3]=e):e=h[3],h[4]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(u.BJ,{"data-testid":"compact-preview__heading",flex:1,space:2,children:(0,a.jsx)(etB,{})}),h[4]=t):t=h[4],h[5]!==v||h[6]!==e?(n=(0,a.jsxs)(u.so,{align:"center",flex:1,gap:2,children:[e,t,v]}),h[5]=v,h[6]=e,h[7]=n):n=h[7],h[8]!==i||h[9]!==n?(r=(0,a.jsx)(etF,{align:"center","data-testid":"default-preview",paddingLeft:i,paddingRight:2,paddingY:1,children:n}),h[8]=i,h[9]=n,h[10]=r):r=h[10],r}let j=C?1:2;return h[11]!==C?(n=C&&(0,a.jsx)(etO,{border:!1,dimensions:etL,layout:"compact",media:C}),h[11]=C,h[12]=n):n=h[12],h[13]===Symbol.for("react.memo_cache_sentinel")?(r={color:"inherit"},h[13]=r):r=h[13],h[14]!==x?(i=x&&etV(x,"compact"),h[14]=x,h[15]=i):i=h[15],h[16]!==b||h[17]!==x?(l=!x&&(0,a.jsx)("span",{style:{color:"var(--card-muted-fg-color)"},children:b("preview.default.title-fallback")}),h[16]=b,h[17]=x,h[18]=l):l=h[18],h[19]!==i||h[20]!==l?(s=(0,a.jsx)(u.BJ,{"data-testid":"compact-preview__header",flex:1,space:2,children:(0,a.jsxs)(u.EY,{size:1,style:r,textOverflow:"ellipsis",weight:"medium",children:[i,l]})}),h[19]=i,h[20]=l,h[21]=s):s=h[21],h[22]!==v||h[23]!==n||h[24]!==s?(d=(0,a.jsxs)(u.so,{align:"center",flex:1,gap:2,children:[n,s,v]}),h[22]=v,h[23]=n,h[24]=s,h[25]=d):d=h[25],h[26]!==f?(c=f&&(0,a.jsx)(u.az,{marginLeft:1,children:f}),h[26]=f,h[27]=c):c=h[27],h[28]!==j||h[29]!==d||h[30]!==c?(m=(0,a.jsxs)(etF,{align:"center","data-testid":"compact-preview",paddingLeft:j,paddingRight:2,paddingY:1,children:[d,c]}),h[28]=j,h[29]=d,h[30]=c,h[31]=m):m=h[31],m},default:etU,detail:function(e){let t,n,r,i,l,s,d,c,p,m,h,f,g=(0,o.c)(47),{title:C,subtitle:y,description:x,mediaDimensions:b,media:v,status:j,children:w,isPlaceholder:_}=e,k=void 0===b?etq:b,{t:S}=iJ();g[0]!==j?(t=j&&(0,a.jsx)(CK,{marginLeft:3,paddingRight:1,children:etV(j,"detail")}),g[0]=j,g[1]=t):t=g[1];let T=t;if(_){let e,t,n,r,i,o,l,s=v?2:3;return g[2]!==v?(e=v&&(0,a.jsx)(CG,{"data-testid":"detail-preview__media"}),g[2]=v,g[3]=e):e=g[3],g[4]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(CX,{}),n=(0,a.jsx)(CQ,{}),g[4]=t,g[5]=n):(t=g[4],n=g[5]),g[6]!==x?(r=x&&(0,a.jsx)(u.az,{marginTop:1,children:(0,a.jsx)(C1,{})}),g[6]=x,g[7]=r):r=g[7],g[8]!==r?(i=(0,a.jsx)(u.so,{align:"center","data-testid":"detail-preview__header",flex:1,children:(0,a.jsxs)(u.BJ,{flex:1,space:2,children:[t,n,r]})}),g[8]=r,g[9]=i):i=g[9],g[10]!==T||g[11]!==e||g[12]!==i?(o=(0,a.jsxs)(u.so,{align:"center",flex:1,gap:3,children:[e,i,T]}),g[10]=T,g[11]=e,g[12]=i,g[13]=o):o=g[13],g[14]!==s||g[15]!==o?(l=(0,a.jsx)(CW,{"data-testid":"detail-preview",paddingLeft:s,paddingRight:2,paddingY:2,children:o}),g[14]=s,g[15]=o,g[16]=l):l=g[16],l}let I=v?2:3;return g[17]!==v||g[18]!==k?(n=v&&(0,a.jsx)(etO,{dimensions:k,layout:"detail",media:v}),g[17]=v,g[18]=k,g[19]=n):n=g[19],g[20]===Symbol.for("react.memo_cache_sentinel")?(r={color:"inherit"},g[20]=r):r=g[20],g[21]!==C?(i=C&&etV(C,"detail"),g[21]=C,g[22]=i):i=g[22],g[23]!==S||g[24]!==C?(l=!C&&(0,a.jsx)(a.Fragment,{children:S("preview.default.title-fallback")}),g[23]=S,g[24]=C,g[25]=l):l=g[25],g[26]!==i||g[27]!==l?(s=(0,a.jsxs)(u.EY,{textOverflow:"ellipsis",size:1,style:r,weight:"medium",children:[i,l]}),g[26]=i,g[27]=l,g[28]=s):s=g[28],g[29]!==y?(d=y&&(0,a.jsx)(u.EY,{muted:!0,size:1,textOverflow:"ellipsis",children:etV(y,"detail")}),g[29]=y,g[30]=d):d=g[30],g[31]!==x?(c=x&&(0,a.jsx)(u.az,{marginTop:1,children:(0,a.jsx)(C2,{muted:!0,size:1,children:etV(x,"detail")})}),g[31]=x,g[32]=c):c=g[32],g[33]!==s||g[34]!==d||g[35]!==c?(p=(0,a.jsxs)(u.BJ,{flex:1,space:2,children:[s,d,c]}),g[33]=s,g[34]=d,g[35]=c,g[36]=p):p=g[36],g[37]!==T||g[38]!==p?(m=(0,a.jsxs)(u.so,{align:"center","data-testid":"detail-preview__header",flex:1,children:[p,T]}),g[37]=T,g[38]=p,g[39]=m):m=g[39],g[40]!==w||g[41]!==m||g[42]!==n?(h=(0,a.jsxs)(u.so,{align:"center",flex:1,gap:3,children:[n,m,w]}),g[40]=w,g[41]=m,g[42]=n,g[43]=h):h=g[43],g[44]!==h||g[45]!==I?(f=(0,a.jsx)(CW,{"data-testid":"detail-preview",paddingLeft:I,paddingRight:2,paddingY:2,children:h}),g[44]=h,g[45]=I,g[46]=f):f=g[46],f}
439,inline:function(e){let t,n,r,i,l=(0,o.c)(11),{title:s,fallbackTitle:d,media:c,mediaDimensions:u}=e,p=void 0===d?"Untitled":d,m=void 0===u?eno:u;return l[0]!==c||l[1]!==m?(t=c&&(0,a.jsxs)(eni,{"data-testid":"inline-preview-media",children:[(0,eW.isValidElementType)(c)?(0,a.jsx)(c,{layout:"inline",dimensions:m}):"string"==typeof c?(0,a.jsx)("div",{children:c}):c,(0,a.jsx)("span",{})]}),l[0]=c,l[1]=m,l[2]=t):t=l[2],l[3]!==p||l[4]!==s?(n=etV(s,"inline",p),l[3]=p,l[4]=s,l[5]=n):n=l[5],l[6]!==n?(r=(0,a.jsx)(ena,{"data-testid":"inline-preview-title",size:1,children:n}),l[6]=n,l[7]=r):r=l[7],l[8]!==t||l[9]!==r?(i=(0,a.jsxs)(enr,{"data-testid":"inline-preview",children:[t,r]}),l[8]=t,l[9]=r,l[10]=i):i=l[10],i},media:function(e){let t,n,r,i,l,s,d,c,p,m=(0,o.c)(30),{media:h,mediaDimensions:f,children:g,isPlaceholder:C,progress:x,subtitle:b,title:v,withBorder:j,withRadius:w}=e,_=void 0===f?et8:f,k=void 0===x?-1:x,S=void 0===j||j,T=void 0===w||w,I=_.aspect||1,E=`${100/I}%`;m[0]!==E?(n={paddingBottom:E},m[0]=E,m[1]=n):n=m[1],t=n;e:{let e,t,n;if(!v||!b){r=null;break e}m[2]!==v?(e=v&&(0,a.jsx)(u.EY,{align:"center",size:1,weight:"medium",children:etV(v,"media")}),m[2]=v,m[3]=e):e=m[3],m[4]!==b?(t=b&&(0,a.jsx)(u.EY,{align:"center",muted:!0,size:1,children:etV(b,"media")}),m[4]=b,m[5]=t):t=m[5],m[6]!==e||m[7]!==t?(n=(0,a.jsxs)(et3,{children:[e,t]}),m[6]=e,m[7]=t,m[8]=n):n=m[8],r=n}let $=r;m[9]!==t?(i=(0,a.jsx)("div",{style:t}),m[9]=t,m[10]=i):i=m[10];let A=!$;return m[11]!==C||m[12]!==h||m[13]!==_||m[14]!==S||m[15]!==T?(l=C?(0,a.jsx)(et0,{}):(0,a.jsx)(etO,{border:S,dimensions:_,layout:"media",media:h,radius:+!!T,responsive:!0}),m[11]=C,m[12]=h,m[13]=_,m[14]=S,m[15]=T,m[16]=l):l=m[16],m[17]!==k?(s="number"==typeof k&&k>-1&&(0,a.jsx)(et7,{children:(0,a.jsx)(etG,{value:k})}),m[17]=k,m[18]=s):s=m[18],m[19]!==l||m[20]!==s?(d=(0,a.jsxs)(et5,{children:[l,s]}),m[19]=l,m[20]=s,m[21]=d):d=m[21],m[22]!==d||m[23]!==A||m[24]!==$?(c=(0,a.jsx)(y.m_,{content:$,disabled:A,placement:"top",portal:!0,children:d}),m[22]=d,m[23]=A,m[24]=$,m[25]=c):c=m[25],m[26]!==g||m[27]!==c||m[28]!==i?(p=(0,a.jsx)(u.az,{padding:2,children:(0,a.jsxs)(et2,{"data-testid":"media-preview",flex:1,overflow:"hidden",children:[i,c,g]})}),m[26]=g,m[27]=c,m[28]=i,m[29]=p):p=m[29],p}};function cZ(){let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(C.pyG,{className:"sanity-studio__preview-fallback-icon"}),t[0]=e):e=t[0],e}let cU=(0,s.memo)(function(e){let t,n,r,i,l,d,c,u,p,m,h,f,g,C,x,b=(0,o.c)(33);b[0]!==e?({icon:t,layout:r,media:i,imageUrl:n,title:d,tooltip:c,...l}=e,b[0]=e,b[1]=t,b[2]=n,b[3]=r,b[4]=i,b[5]=l,b[6]=d,b[7]=c):(t=b[1],n=b[2],r=b[3],i=b[4],l=b[5],d=b[6],c=b[7]);let v=ee7(a7);b[8]!==v?(p=e8(v),b[8]=v,b[9]=p):p=b[9],u=p,b[10]!==u||b[11]!==i||b[12]!==d?(m=e=>{let{dimensions:t}=e,n=t.width||100,r=t.height||100;return(0,a.jsx)("img",{alt:iE(d)?d:void 0,referrerPolicy:"strict-origin-when-cross-origin",src:u.image(i).width(n).height(r).fit(t.fit).dpr(t.dpr||1).url()||""})},b[10]=u,b[11]=i,b[12]=d,b[13]=m):m=b[13];let j=m;b[14]!==t?(h=()=>t?(0,a.jsx)(t,{}):(0,a.jsx)(cZ,{}),b[14]=t,b[15]=h):h=b[15];let w=h;e:{if(!1===t){f=!1;break e}if((0,eW.isValidElementType)(i)||(0,s.isValidElement)(i)){f=i;break e}if((0,e3.LG)(i)){f=j;break e}if(iE(n)){let e,t=iE(d)?d:void 0;b[16]!==n||b[17]!==t?(e=(0,a.jsx)("img",{src:n,alt:t,referrerPolicy:"strict-origin-when-cross-origin"}),b[16]=n,b[17]=t,b[18]=e):e=b[18],f=e;break e}f=w}let _=f;b[19]!==l||b[20]!==_||b[21]!==d?(C={...l,media:_,title:d},b[19]=l,b[20]=_,b[21]=d,b[22]=C):C=b[22],g=C;let k=cH[r||"default"];b[23]!==k||b[24]!==g?(x=(0,a.jsx)(k,{...g}),b[23]=k,b[24]=g,b[25]=x):x=b[25];let S=x;if(c){let e,t,n,r=!c;return b[26]===Symbol.for("react.memo_cache_sentinel")?(e=["top-end","bottom-end"],b[26]=e):e=b[26],b[27]!==S?(t=(0,a.jsx)("div",{children:S}),b[27]=S,b[28]=t):t=b[28],b[29]!==t||b[30]!==r||b[31]!==c?(n=(0,a.jsx)(y.m_,{content:c,disabled:r,fallbackPlacements:e,placement:"right",children:t}),b[29]=t,b[30]=r,b[31]=c,b[32]=n):n=b[32],n}return S});cU.displayName="Memo(SanityDefaultPreview)";let cq=[],cJ=(0,k.of)(cq);function cW(e){let t,n,r,i=(0,o.c)(6),[a,l]=(0,s.useReducer)(cK,!1);i[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>(0,s.startTransition)(l),n=[],i[0]=t,i[1]=n):(t=i[0],n=i[1]),(0,s.useEffect)(t,n);let d=z9();return i[2]!==e||i[3]!==a||i[4]!==d?(r=a?d.documentPresence(e):cJ,i[2]=e,i[3]=a,i[4]=d,i[5]=r):r=i[5],(0,eH.J)(r,cq)}function cK(){return!0}function cG(e){let t,n,r,i,l,d,c,p=(0,o.c)(24),{documentId:m,documentTypeName:h,releaseId:f,previewValues:g,isLoading:C,releaseState:y,documentRevision:x,layout:b}=e,v=cW(m);e:{let e;if("published"===y){let e,n=`@release:${o4(f)}`;p[0]!==n?(e={rev:n,inspect:"sanity/structure/history"},p[0]=n,p[1]=e):e=p[1],t=e;break e}if("archived"===y){let e,n;p[2]!==f?(e=o4(f),p[2]=f,p[3]=e):e=p[3],p[4]!==x||p[5]!==e?(n={rev:"@lastEdited",inspect:"sanity/structure/history",historyEvent:x,historyVersion:e,archivedRelease:"true"},p[4]=x,p[5]=e,p[6]=n):n=p[6],t=n;break e}p[7]===Symbol.for("react.memo_cache_sentinel")?(e={},p[7]=e):e=p[7],t=e}let j=t;return p[8]!==m||p[9]!==h||p[10]!==j||p[11]!==f||p[12]!==y?(r=(0,s.forwardRef)(function(e,t){return(0,a.jsx)(tq.RZ,{...e,intent:"edit",params:{id:ib(m),type:h,...j},searchParams:"archived"===y||"archiving"===y||"unarchiving"===y?void 0:[["perspective","published"===y?"published":o4(f)]],ref:t})}),p[8]=m,p[9]=h,p[10]=j,p[11]=f,p[12]=y,p[13]=r):r=p[13],n=r,p[14]!==v?
439(l=v?.length>0&&(0,a.jsx)(yG,{presence:v}),p[14]=v,p[15]=l):l=p[15],i=l,p[16]!==C||p[17]!==b||p[18]!==i||p[19]!==g?(d=(0,a.jsx)(cU,{...g,status:i,isPlaceholder:C,layout:b}),p[16]=C,p[17]=b,p[18]=i,p[19]=g,p[20]=d):d=p[20],p[21]!==n||p[22]!==d?(c=(0,a.jsx)(u.Zp,{tone:"inherit",as:n,radius:2,"data-as":"a",children:d}),p[21]=n,p[22]=d,p[23]=c):c=p[23],c}let cX=(0,g.I4)(u.EY)`
440  strong {
441    font-weight: 500;
442    color: var(--card-fg-color);
443  }
444  time {
445    white-space: nowrap;
446  }
447`,cQ={addDocumentToRelease:"activity.event.add-document",archiveRelease:"activity.event.archive",createRelease:"activity.event.create",discardDocumentFromRelease:"activity.event.discard-document",publishRelease:"activity.event.publish",scheduleRelease:"activity.event.schedule",unarchiveRelease:"activity.event.unarchive",unscheduleRelease:"activity.event.unschedule",editRelease:"activity.event.edit"},c1=e=>{let t,n,r,i=(0,o.c)(11),{event:l,releaseId:s}=e;i[0]!==l.documentId||i[1]!==l.documentType?(t={documentId:l.documentId,documentType:l.documentType},i[0]=l.documentId,i[1]=l.documentType,i[2]=t):t=i[2];let{value:d,isLoading:c}=cB(t);return i[3]!==d?(n={...d,subtitle:""},i[3]=d,i[4]=n):n=i[4],i[5]!==l.documentId||i[6]!==l.documentType||i[7]!==c||i[8]!==s||i[9]!==n?(r=(0,a.jsx)(u.BJ,{space:2,children:(0,a.jsx)(cG,{releaseId:s,documentId:l.documentId,documentTypeName:l.documentType,isLoading:c,previewValues:n,layout:"block"})}),i[5]=l.documentId,i[6]=l.documentType,i[7]=c,i[8]=s,i[9]=n,i[10]=r):r=i[10],r},c2=e=>{let t,n,r,i,l=(0,o.c)(13),{children:s,event:d}=e;l[0]===Symbol.for("react.memo_cache_sentinel")?(t={dateStyle:"full",timeStyle:"medium"},l[0]=t):t=l[0];let c=cO(t),{t:u}=iJ(lO);e:{let e,t;if("editRelease"===d.type){if("asap"===d.change.releaseType){let e;l[1]!==u?(e=u("activity.event.edit-time-asap"),l[1]=u,l[2]=e):e=l[2],n=e;break e}if("undecided"===d.change.releaseType){let e;l[3]!==u?(e=u("activity.event.edit-time-undecided"),l[3]=u,l[4]=e):e=l[4],n=e;break e}}if("scheduleRelease"===d.type?e=d.publishAt:ch(d)?e=d.change?.intendedPublishDate:"editRelease"===d.type&&(e=d.change.intendedPublishDate),!e){n=null;break e}l[5]!==e||l[6]!==c?(t=c.format(new Date(e)),l[5]=e,l[6]=c,l[7]=t):t=l[7],n=t}let p=n;if(!p&&ch(d))return null;let m=p||"---";return l[8]!==m?(r=(0,a.jsx)("strong",{children:m}),l[8]=m,l[9]=r):r=l[9],l[10]!==s||l[11]!==r?(i=(0,a.jsxs)("span",{children:[s," ",r]}),l[10]=s,l[11]=r,l[12]=i):i=l[12],i},c5=tW.P.create(u.Zp),c0=(0,s.memo)(e=>{let t,n,r,i,l,s,d,c,p,m,h,f,g=(0,o.c)(28),{event:C,releaseId:y,releaseTitle:x}=e,{t:b}=iJ(lO);g[0]===Symbol.for("react.memo_cache_sentinel")?(t={opacity:0},n={opacity:1},r={type:"spring",bounce:0,duration:.4},g[0]=t,g[1]=n,g[2]=r):(t=g[0],n=g[1],r=g[2]),g[3]!==C.author?(i=(0,a.jsx)(cz,{user:C.author}),g[3]=C.author,g[4]=i):i=g[4],g[5]!==C?(l={ScheduleTarget:e=>{let{children:t}=e;return(0,a.jsx)(c2,{event:C,children:t})}},g[5]=C,g[6]=l):l=g[6],g[7]!==x?(s={releaseTitle:x},g[7]=x,g[8]=s):s=g[8];let v=cQ[C.type];return g[9]!==b||g[10]!==l||g[11]!==s||g[12]!==v?(d=(0,a.jsx)(an,{t:b,components:l,values:s,i18nKey:v}),g[9]=b,g[10]=l,g[11]=s,g[12]=v,g[13]=d):d=g[13],g[14]!==C.timestamp?(c=(0,a.jsx)(cI,{time:C.timestamp,useTemporalPhrase:!0,minimal:!0}),g[14]=C.timestamp,g[15]=c):c=g[15],g[16]!==d||g[17]!==c?(p=(0,a.jsx)(u.so,{gap:2,paddingY:2,children:(0,a.jsxs)(cX,{muted:!0,size:1,children:[d," ","\xb7 ",c]})}),g[16]=d,g[17]=c,g[18]=p):p=g[18],g[19]!==C||g[20]!==y?(m="addDocumentToRelease"===C.type||"discardDocumentFromRelease"===C.type?(0,a.jsx)(c1,{event:C,releaseId:y}):null,g[19]=C,g[20]=y,g[21]=m):m=g[21],g[22]!==p||g[23]!==m?(h=(0,a.jsxs)(u.BJ,{flex:1,children:[p,m]}),g[22]=p,g[23]=m,g[24]=h):h=g[24],g[25]!==h||g[26]!==i?(f=(0,a.jsx)(c5,{paddingX:1,paddingTop:1,paddingBottom:2,overflow:"hidden",initial:t,animate:n,transition:r,children:(0,a.jsxs)(u.so,{align:"flex-start",gap:2,children:[i,h]})}),g[25]=h,g[26]=i,g[27]=f):f=g[27],f},(e,t)=>e.event.id===t.event.id&&e.releaseId===t.releaseId);c0.displayName="ReleaseActivityListItem";let c7=(0,g.I4)(u.az)`
448  height: 100%;
449  overflow: scroll;
450`,c3=({events:e,releaseTitle:t,releaseId:n,hasMore:r,loadMore:i,isLoading:o})=>{let l=(0,s.useRef)(null),d=(0,s.useMemo)(()=>
450{if(!r&&!o)return e;let t=[...e].reverse().find(cf);if(!t&&!o)return e;if(!t)return[];let n=new Date(t.timestamp);return e.filter(e=>"translog"!==e.origin||new Date(e.timestamp)>n)},[e,r,o]),c=(0,m.Te)({count:r||o?d.length+1:d.length,getScrollElement:()=>l.current,estimateSize:t=>(e=>e?"addDocumentToRelease"===e.type||"discardDocumentFromRelease"===e.type?70:56:40)(e[t]),overscan:10,paddingEnd:24}),p=c.getVirtualItems();return(0,s.useEffect)(()=>{let e=p.at(-1);e&&e.index>=d.length-1&&r&&i()},[d.length,r,i,p]),(0,a.jsx)(c7,{id:"virtualizer-container",ref:l,paddingX:3,children:(0,a.jsx)("div",{style:{height:`${c.getTotalSize()}px`,width:"100%",position:"relative"},children:(0,a.jsx)(tK.N,{initial:!1,children:c.getVirtualItems().map(e=>{let r=d[e.index],i=!r;return(0,a.jsx)("div",{"data-index":e.index,ref:c.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${e.start}px)`},children:i?(0,a.jsx)(u.az,{paddingY:4,children:(0,a.jsx)(r5,{fill:!0})}):(0,a.jsx)(c0,{event:r,releaseId:n,releaseTitle:t})},e.key)})})})})},c8=tW.P.create(u.so),c4=g.I4.div`
451  --card-border-color: transparent;
452  height: 100%;
453  display: flex;
454  flex-direction: column;
455`;function c6({events:e,release:t,show:n}){let{t:r}=iJ(lO),{t:i}=iJ();return(0,a.jsx)(tK.N,{children:n&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(tW.P.div,{animate:{width:"auto",opacity:1},initial:{width:0,opacity:0},exit:{width:0,opacity:0},transition:{type:"spring",bounce:0,duration:.2},children:(0,a.jsx)(cv,{as:c4,minWidth:320,maxWidth:800,initialWidth:320,resizerPosition:"left",style:{display:"flex",flexDirection:"column",flex:"none",maxHeight:"100%"},children:(0,a.jsxs)(c8,{flex:"none",height:"fill",direction:"column",children:[(0,a.jsx)(u.az,{padding:4,children:(0,a.jsx)(u.EY,{size:1,weight:"medium",children:r("activity.panel.title")})}),e.error&&!e.events.length&&(0,a.jsx)(u.Zp,{padding:3,tone:"caution",children:(0,a.jsx)(u.az,{padding:2,children:(0,a.jsx)(u.EY,{size:0,children:r("activity.panel.error")})})}),e.loading&&!e.events.length&&(0,a.jsx)(r5,{title:r("activity.panel.loading")}),(0,a.jsx)(c3,{releaseTitle:t.metadata.title||i("release.placeholder-untitled-release"),releaseId:t._id,events:e.events,hasMore:e.hasMore,loadMore:e.loadMore,isLoading:e.loading})]})})})})})}let c9=e=>{let t,n,r=(0,o.c)(5),{tone:i,icon:l}=e,s=`var(--card-badge-${i}-icon-color)`;r[0]!==s?(t={"--card-icon-color":s},r[0]=s,r[1]=t):t=r[1];let d=t;return r[2]!==l||r[3]!==d?(n=(0,a.jsx)(l,{style:d}),r[2]=l,r[3]=d,r[4]=n):n=r[4],n},ue=(0,g.I4)(u.EY)`
456  &:not([data-muted]) {
457    &[data-tone='default'] {
458      --card-fg-color: var(--card-badge-default-fg-color);
459    }
460    &[data-tone='primary'] {
461      --card-fg-color: var(--card-badge-primary-fg-color);
462    }
463    &[data-tone='positive'] {
464      --card-fg-color: var(--card-badge-positive-fg-color);
465    }
466    &[data-tone='caution'] {
467      --card-fg-color: var(--card-badge-caution-fg-color);
468    }
469    &[data-tone='critical'] {
470      --card-fg-color: var(--card-badge-critical-fg-color);
471    }
472  }
473
474  &[data-dimmed] {
475    opacity: 0.3;
476  }
477`,ut=(0,s.forwardRef)(function(e,t){let n,r,i,l,s,d=(0,o.c)(12);d[0]!==e?({tone:l,dimmed:n,muted:r,...i}=e,d[0]=e,d[1]=n,d[2]=r,d[3]=i,d[4]=l):(n=d[1],r=d[2],i=d[3],l=d[4]);let c=n?"":void 0,u=r?"":void 0;return d[5]!==r||d[6]!==t||d[7]!==i||d[8]!==c||d[9]!==u||d[10]!==l?(s=(0,a.jsx)(ue,{"data-ui":"TextWithTone","data-dimmed":c,"data-muted":u,"data-tone":l,muted:r,ref:t,...i}),d[5]=r,d[6]=t,d[7]=i,d[8]=c,d[9]=u,d[10]=l,d[11]=s):s=d[11],s}),un=g.I4.button`
478  display: block;
479  -webkit-font-smoothing: inherit;
480  appearance: none;
481  font: inherit;
482  background: none;
483  width: 100%;
484  text-align: left;
485  border: 0;
486  margin: 0;
487  padding: 0;
488  outline: none;
489`,ur=(0,g.I4)(C.nVd)`
490  transform: ${e=>e.open?"rotate(90deg)":""};
491`,ui=(0,g.I4)(u.so)`
492  cursor: default;
493  line-height: 0;
494`,ua=(0,g.I4)(u.so)`
495  & > div > svg {
496    transform: rotate(0);
497    transition: transform 100ms;
498  }
499
500  &[data-open] > div > svg {
501    transform: rotate(90deg);
502  }
503`;function uo(e){let t,n,r,i,l,d,c,p,m,h,f,g,C,y,x,b=(0,o.c)(30);b[0]!==e?({children:t,open:r,icon:n,title:l,...i}=e,b[0]=e,b[1]=t,b[2]=n,b[3]=r,b[4]=i,b[5]=l):(t=b[1],n=b[2],r=b[3],i=b[4],l=b[5]);
503let v=void 0===l?"Details":l,[j,w]=(0,s.useState)(r||!1);b[6]===Symbol.for("react.memo_cache_sentinel")?(d=()=>w(ul),b[6]=d):d=b[6];let _=d;b[7]!==r?(c=()=>w(r||!1),p=[r],b[7]=r,b[8]=c,b[9]=p):(c=b[8],p=b[9]),(0,s.useEffect)(c,p);let k=j?"":void 0;b[10]!==j?(m=(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(ur,{open:j})}),b[10]=j,b[11]=m):m=b[11],b[12]!==k||b[13]!==m?(h=(0,a.jsx)(ua,{"data-open":k,children:m}),b[12]=k,b[13]=m,b[14]=h):h=b[14],b[15]!==n?(f=n&&(0,a.jsx)(u.az,{marginLeft:1,children:n}),b[15]=n,b[16]=f):f=b[16],b[17]!==v?(g=(0,a.jsx)(u.az,{flex:1,marginLeft:1,children:(0,a.jsx)(u.EY,{textOverflow:"ellipsis",size:1,weight:"medium",children:v})}),b[17]=v,b[18]=g):g=b[18],b[19]!==h||b[20]!==f||b[21]!==g?(C=(0,a.jsx)(un,{type:"button",onClick:_,children:(0,a.jsx)(ui,{children:(0,a.jsxs)(u.so,{align:"center",children:[h,f,g]})})}),b[19]=h,b[20]=f,b[21]=g,b[22]=C):C=b[22];let S=!j;return b[23]!==t||b[24]!==S?(y=(0,a.jsx)(u.az,{hidden:S,marginTop:3,children:t}),b[23]=t,b[24]=S,b[25]=y):y=b[25],b[26]!==i||b[27]!==y||b[28]!==C?(x=(0,a.jsxs)(u.az,{...i,children:[C,y]}),b[26]=i,b[27]=y,b[28]=C,b[29]=x):x=b[29],x}function ul(e){return!e}let us={error:null,projectSubscriptions:null,isLoading:!0},ud=new Map;function uc(e){return(0,k.of)({isLoading:!1,projectSubscriptions:null,error:e})}function uu(e){return{isLoading:!1,projectSubscriptions:e,error:null}}let up=[],um={enabled:!0,error:null,features:up,isLoading:!0},uh=new Map;function uf({projectId:e,versionedClient:t}){let n=uh.get(e);return n||(n=(function({versionedClient:e}){return e.observable.request({uri:"/features",tag:"features"})})({versionedClient:t}).pipe((0,Y.t)()),uh.set(e,n)),n}function ug(e){let t=ee7(a7),{projectId:n}=co(),r=uf({projectId:n,versionedClient:t}),i=(0,s.useMemo)(()=>r.pipe((0,E.T)((t=[])=>({isLoading:!1,enabled:!!t?.includes(e),features:t,error:null})),(0,Z.Z)(um),(0,M.W)(e=>(0,k.of)({isLoading:!1,enabled:!1,features:up,error:e}))),[e,r]);return(0,eH.J)(i,um)}let uC="ReleasePermissions";function uy(){var e;let t,n,r=(0,o.c)(3),i=d4(),a=ug("contentReleases");return r[0]!==a||r[1]!==i?(t=i.get({dependencies:[a],namespace:uC})||(e=a.enabled,{checkWithPermissionGuard:async(t,...r)=>{if(!e)return!0;if(void 0!==n[t.name])return n[t.name];try{return await t(...r,{dryRun:!0,skipCrossDatasetReferenceValidation:!0}),n={...n,[t.name]:!0},!0}catch(e){return n={...n,[t.name]:!1},!(lz(e)&&e.details?.type==="insufficientPermissionsError")}},permissions:n={}}),i.set({namespace:uC,value:t,dependencies:[a]}),r[0]=a,r[1]=i,r[2]=t):t=r[2],t}function ux(e){let t,n,r,i,l=(0,o.c)(13),{release:d}=e,{updateRelease:c}=lP(),[u,p]=(0,s.useState)(void 0),{checkWithPermissionGuard:m}=uy(),[h,f]=(0,s.useState)(null);l[0]!==h||l[1]!==u||l[2]!==c?(t=e=>{clearTimeout(u),p(setTimeout(()=>{h&&c(e)},200))},l[0]=h,l[1]=u,l[2]=c,l[3]=t):t=l[3];let g=t,C=(0,s.useRef)(!1);l[4]!==m||l[5]!==d||l[6]!==c?(n=()=>(C.current=!0,d2(d)&&m(c,d).then(e=>{C.current&&f(e)}),()=>{C.current=!1}),r=[m,d,d._id,c],l[4]=m,l[5]=d,l[6]=c,l[7]=n,l[8]=r):(n=l[7],r=l[8]),(0,s.useEffect)(n,r);let y=d._id,x=!h;return l[9]!==g||l[10]!==d||l[11]!==x?(i=(0,a.jsx)(d5,{release:d,onChange:g,disabled:x},y),l[9]=g,l[10]=d,l[11]=x,l[12]=i):i=l[12],i}let ub=()=>{let e,t,n,r,i=(0,o.c)(9);i[0]===Symbol.for("react.memo_cache_sentinel")?(e={type:"contentReleases"},i[0]=e):e=i[0];let{timeZone:a,utcToCurrentZoneDate:l,getLocalTimeZone:s}=sh(e);i[1]!==s?(t=s(),i[1]=s,i[2]=t):t=i[2];let{abbreviation:d}=t;i[3]!==d||i[4]!==a.abbreviation?(n=()=>a.abbreviation===d?"":`(${a.abbreviation})`,i[3]=d,i[4]=a.abbreviation,i[5]=n):n=i[5];let c=n;return i[6]!==c||i[7]!==l?(r=e=>{let t=lb(e);return t?`${(0,ty.A)(l(t),"PPpp")} ${c()}`:null},i[6]=c,i[7]=l,i[8]=r):r=i[8],r},uv=e=>!!("scheduled"===e.metadata.releaseType&&e.metadata.intendedPublishAt&&(0,tn.A)(new Date(e.metadata.intendedPublishAt)));function uj(e){if(lj(e))return"positive";if(lw(e))return"default";if(lC(e)){if("archived"===e.state)return"default";if(e?.metadata?.releaseType==="asap")return lo.asap.tone;if(e?.metadata?.releaseType==="undecided")return lo.undecided.tone;if(e?.metadata?.releaseType==="scheduled")return lo.scheduled.tone}return"default"}let uw=e=>{let t,n=(0,o.c)(7),{release:r}=e,{t:i}=iJ(),a=ub(),{metadata:l}=r;if("asap"===l.releaseType){let e;return n[0]!==i?(e=i("release.type.asap"),n[0]=i,n[1]=e):e=n[1],e}if("undecided"===l.releaseType){let e;return n[2]!==i?(e=i("release.type.undecided"),n[2]=i,n[3]=e):e=n[3],e}return n[4]!==a||n[5]!==r?(t=a(r),n[4]=a,n[5]=r,n[6]=t):t=n[6],t},u_="PP HH:mm";function uk(e){let{release:t}=e,n=(0,s.useRef)(null),r=(0,s.useRef)(null),i=(0,s.useRef)(null),o=(0,s.useRef)(null),{t:l}=iJ(lO),{t:d}=iJ(),{updateRelease:c}=lP(),m=(0,p.dj)(),{utcToCurrentZoneDate:h,zoneDateToUtc:f}
503=sh(sC),g=ub(),[x,b]=(0,s.useState)(!1),[v,j]=(0,s.useState)(t.metadata.releaseType),w=(0,s.useMemo)(()=>lb(t),[t]),[_,k]=(0,s.useState)(!1),[S,T]=(0,s.useState)(w&&(0,tI.A)(new Date(w),new Date)),[I,E]=(0,s.useState)(w?new Date(w):void 0),$=I?.toISOString(),A=I&&h(I),D=(0,s.useMemo)(()=>de(d),[d]),z=(0,s.useCallback)(()=>{let e=document.querySelector("#time-zone");if(x&&!e){let e={...t,metadata:{...t.metadata,releaseType:v,...typeof $>"u"||"scheduled"!==v?{}:{intendedPublishAt:$}}};eN(e,t)||(uv(e)?(j(t.metadata.releaseType),E(t.metadata.intendedPublishAt?new Date(t.metadata.intendedPublishAt):void 0),m.push({closable:!0,status:"warning",title:l("schedule-dialog.publish-date-in-past-warning")})):(k(!0),c(e).finally(()=>{k(!1)}))),b(!1)}},[x,t,$,v,m,l,c]);(0,u.PR)(z,()=>[n.current,r.current,i.current,o.current]);let M=!!w&&(0,tI.A)(new Date(w),new Date),P=l_(t),R=(0,s.useMemo)(()=>"published"===t.state?M&&w?l("dashboard.details.published-on",{date:g(t)}):l("dashboard.details.published-asap"):(0,a.jsx)(uw,{release:t}),[g,M,w,t,l]),O=(0,s.useCallback)(e=>{j(e),E("scheduled"===e?w??(0,tE.A)(new Date):w??void 0),T(!0)},[w]),V=(0,s.useCallback)(e=>{if(!e)return;let t=f((0,tE.A)(new Date(e)));T((0,tI.A)(t,new Date)),E(t)},[f]),L=(0,s.useCallback)(e=>{let t=f((0,tt.A)(e.currentTarget.value,u_,new Date));(0,te.A)(t)&&(T((0,tI.A)(t,new Date)),E((0,tE.A)(t)))},[f]),F="published"===t.state?"positive":uj(t),B=(0,s.useMemo)(()=>_?(0,a.jsx)(u.y$,{size:1,"data-testid":"updating-release-spinner"}):"published"===t.state?(0,a.jsx)(C.VQ$,{}):(0,a.jsx)(s_,{tone:F,padding:0}),[_,t.state,F]),N=(0,s.useMemo)(()=>(0,a.jsxs)(u.so,{flex:1,gap:2,align:"center",children:[B,(0,a.jsx)(u.EY,{muted:!0,size:1,"data-testid":"release-type-label",weight:"medium",children:R}),P&&(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.XAi,{})})]}),[P,R,B]);return(0,a.jsx)(y.AM,{content:(0,a.jsx)(()=>(0,a.jsxs)(u.BJ,{space:1,children:[(0,a.jsxs)(u.wb,{space:.5,children:[(0,a.jsx)(y.oz,{"aria-controls":"release-timing-asap",id:"release-timing-asap-tab",onClick:()=>O("asap"),label:d("release.type.asap"),selected:"asap"===v}),(0,a.jsx)(y.oz,{"aria-controls":"release-timing-at-time",id:"release-timing-at-time-tab",onClick:()=>O("scheduled"),selected:"scheduled"===v,label:d("release.type.scheduled")}),(0,a.jsx)(y.oz,{"aria-controls":"release-timing-undecided",id:"release-timing-undecided-tab",onClick:()=>O("undecided"),selected:"undecided"===v,label:d("release.type.undecided")})]}),"scheduled"===v&&(0,a.jsxs)(a.Fragment,{children:[S&&(0,a.jsx)(u.Zp,{margin:1,padding:2,radius:2,shadow:1,tone:"critical",children:(0,a.jsx)(u.EY,{size:1,children:l("schedule-dialog.publish-date-in-past-warning")})}),(0,a.jsx)(sz,{"data-testid":"date-input",value:A?(0,ty.A)(A,u_):void 0,onChange:L}),(0,a.jsx)(sQ,{ref:o,monthPickerVariant:sU.carousel,calendarLabels:D,selectTime:!0,padding:0,value:A,onChange:V,isPastDisabled:!0,showTimeZone:!0,timeZoneScope:sC})]})]}),{}),open:x,padding:1,placement:"bottom-start",ref:n,children:"published"===t.state?(0,a.jsx)(u.Zp,{tone:"default","data-testid":"published-release-type-label",padding:2,style:{borderRadius:"999px"},children:N}):(0,a.jsx)(y.$n,{disabled:P,mode:"bleed",onClick:()=>{x?z():b(!0)},ref:r,tooltipProps:{placement:"bottom",content:P&&l("type-picker.tooltip.scheduled")},selected:x,tone:F,style:{borderRadius:"999px"},"data-testid":"release-type-picker",children:N})})}function uS(e){let t,n,r,i,l,d,c,p,m,h,f,g,x,b,v,j=(0,o.c)(57),{release:w}=e,{state:_}=w;j[0]!==w._id?(t=o4(w._id),j[0]=w._id,j[1]=t):t=j[1];let S=t,{checkWithPermissionGuard:T}=uy(),{publishRelease:I,schedule:$}=lP(),{t:A}=iJ(lO),{selectedReleaseId:D}=oW(),z=l$(),{projectSubscriptions:P}=function(){let e,t=(0,o.c)(4),n=ee7(a7),{projectId:r}=co();if(!ud.get(r)){let e=(function({versionedClient:e}){return e.observable.request({uri:`/subscriptions/project/${e.config().projectId}`,tag:"project-subscriptions"})})({versionedClient:n}).pipe((0,Y.t)());ud.set(r,e)}e:{let n;if(t[0]!==r){let i=ud.get(r);if(!i){let n;t[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,k.of)({isLoading:!1,error:null,projectSubscriptions:null}),t[3]=n):n=t[3],e=n;break e}n=i.pipe((0,E.T)(uu),(0,Z.Z)(us),(0,M.W)(uc)),t[0]=r,t[1]=n,t[2]=e}else n=t[1],e=t[2];e=n}return(0,eH.J)(e,us)}(),R=P?.featureTypes.retention.features[0].attributes.maxRetentionDays,O=S===D,V=w?.metadata?.releaseType==="scheduled",L="archived"!==_&&"published"!==_,F="active"===w.state,B=F&&"u">
503typeof w.error,[N,H]=(0,s.useState)(!1),U=F&&N,q=(0,s.useRef)(!1);j[2]!==T||j[3]!==F||j[4]!==V||j[5]!==I||j[6]!==w._id||j[7]!==w.metadata.intendedPublishAt||j[8]!==$?(n=()=>(q.current=!0,F&&(T(I,w._id).then(e=>{q.current&&H(!e)}),w.metadata.intendedPublishAt&&V&&T($,w._id,new Date).then(e=>{q.current&&H(!e)})),()=>{q.current=!1}),r=[T,F,V,I,w._id,w.metadata.intendedPublishAt,$],j[2]=T,j[3]=F,j[4]=V,j[5]=I,j[6]=w._id,j[7]=w.metadata.intendedPublishAt,j[8]=$,j[9]=n,j[10]=r):(n=j[9],r=j[10]),(0,s.useEffect)(n,r),j[11]!==O||j[12]!==S||j[13]!==z?(i=()=>{z(O?"drafts":S)},j[11]=O,j[12]=S,j[13]=z,j[14]=i):i=j[14];let J=i;return j[15]===Symbol.for("react.memo_cache_sentinel")?(l=[3,3,4,5],j[15]=l):l=j[15],j[16]!==J||j[17]!==L||j[18]!==O||j[19]!==w.metadata.title||j[20]!==A?(d=L&&(0,a.jsx)(y.$n,{icon:O?C.loS:C.tsw,tooltipProps:{placement:"top",content:A(O?"dashboard.details.unpin-release":"dashboard.details.pin-release")},mode:"bleed",onClick:J,radius:"full",selected:O,"aria-label":O?`${A("dashboard.details.unpin-release")}: "${w.metadata.title}"`:`${A("dashboard.details.pin-release")}: "${w.metadata.title}"`,"aria-live":"assertive"}),j[16]=J,j[17]=L,j[18]=O,j[19]=w.metadata.title,j[20]=A,j[21]=d):d=j[21],j[22]!==w?(c="archived"!==w.state&&(0,a.jsx)(uk,{release:w}),j[22]=w,j[23]=c):c=j[23],j[24]!==V||j[25]!==B||j[26]!==A?(p=B&&(0,a.jsxs)(u.so,{gap:2,padding:2,"data-testid":"release-error-details",children:[(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(c9,{icon:C.YZv,tone:"critical"})}),(0,a.jsx)(ut,{size:1,tone:"critical",children:A(V?"failed-schedule-title":"failed-publish-title")})]}),j[24]=V,j[25]=B,j[26]=A,j[27]=p):p=j[27],j[28]!==U||j[29]!==A?(m=U&&(0,a.jsxs)(u.so,{gap:2,padding:2,"data-testid":"release-permission-error-details",children:[(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(c9,{icon:C.sAQ,tone:"caution"})}),(0,a.jsx)(ut,{size:1,tone:"caution",children:A("permission-missing-title")})]}),j[28]=U,j[29]=A,j[30]=m):m=j[30],j[31]!==d||j[32]!==c||j[33]!==p||j[34]!==m?(h=(0,a.jsxs)(u.so,{gap:1,align:"center",children:[d,c,p,m]}),j[31]=d,j[32]=c,j[33]=p,j[34]=m,j[35]=h):h=j[35],j[36]!==w?(f=(0,a.jsx)(u.az,{padding:2,children:(0,a.jsx)(ux,{release:w})}),j[36]=w,j[37]=f):f=j[37],j[38]!==V||j[39]!==w.error?.message||j[40]!==B||j[41]!==A?(g=B&&(0,a.jsx)(u.Zp,{padding:4,radius:4,tone:"critical",children:(0,a.jsxs)(u.so,{gap:3,children:[(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.YZv,{})}),(0,a.jsxs)(u.BJ,{space:4,children:[(0,a.jsx)(u.EY,{size:1,weight:"semibold",children:A(V?"failed-schedule-title":"failed-publish-title")}),(0,a.jsx)(uo,{title:A("error-details-title"),children:(0,a.jsx)(u.EY,{size:1,accent:!0,children:(0,a.jsx)("code",{children:w.error?.message})})})]})]})}),j[38]=V,j[39]=w.error?.message,j[40]=B,j[41]=A,j[42]=g):g=j[42],j[43]!==U||j[44]!==A?(x=U&&(0,a.jsx)(u.Zp,{padding:4,radius:4,tone:"caution",children:(0,a.jsxs)(u.so,{gap:3,children:[(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.sAQ,{})}),(0,a.jsxs)(u.BJ,{space:3,children:[(0,a.jsx)(u.EY,{size:1,children:A("permission-missing-title")}),(0,a.jsx)(u.EY,{size:1,muted:!0,children:A("permission-missing-description")})]})]})}),j[43]=U,j[44]=A,j[45]=x):x=j[45],j[46]!==L||j[47]!==R||j[48]!==_||j[49]!==A?(b=!L&&R&&(0,a.jsx)(u.Zp,{padding:4,radius:4,tone:"primary","data-testid":"retention-policy-card",children:(0,a.jsxs)(u.so,{gap:3,children:[(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.YzR,{})}),(0,a.jsxs)(u.BJ,{space:4,children:[(0,a.jsx)(u.EY,{size:1,weight:"semibold",children:A("archived"===_?"archive-info.title":"publish-info.title")}),(0,a.jsx)(u.EY,{size:1,accent:!0,children:A("archive-info.description",{retentionDays:R})})]})]})}),j[46]=L,j[47]=R,j[48]=_,j[49]=A,j[50]=b):b=j[50],j[51]!==h||j[52]!==f||j[53]!==g||j[54]!==x||j[55]!==b?(v=(0,a.jsx)(u.mc,{width:3,children:(0,a.jsxs)(u.BJ,{padding:3,paddingY:l,children:[h,f,g,x,b]})}),j[51]=h,j[52]=f,j[53]=g,j[54]=x,j[55]=b,j[56]=v):v=j[56],v}let uT=({release:e,documents:t,disabled:n,isMenuItem:r=!1,onConfirmDialogOpen:i,onConfirmDialogClose:o})=>{let l=(0,p.dj)(),{publishRelease:d}=lP(),{checkWithPermissionGuard:c}=uy(),{t:m}=iJ(lO),{t:h}
503=iJ(),f=oW(),g=l$(),x=(0,e5.Jr)(),[b,v]=(0,s.useState)("idle"),[j,w]=(0,s.useState)(!1),_=t.some(({validation:e})=>e.isValidating),k=t.some(({validation:e})=>e.hasError),S=n||_||k||!j,T=(0,s.useRef)(!1);(0,s.useEffect)(()=>(T.current=!0,c(d,e._id).then(e=>{T.current&&w(e)}),()=>{T.current=!1}),[c,d,e._id,e.metadata.intendedPublishAt]);let I=(0,s.useCallback)(async()=>{if(e)try{v("publishing"),await d(e._id),x.log(oN),lC(f.selectedPerspective)&&f.selectedPerspective?._id===e._id&&g("drafts")}catch(t){l.push({status:"error",title:(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(an,{t:m,i18nKey:"toast.publish.error",values:{title:e.metadata.title||h("release.placeholder-untitled-release"),error:t.message}})})}),console.error(t)}finally{o?.(),v("idle")}},[e,d,x,l,m,h,f.selectedPerspective,g,o]),E=(0,s.useMemo)(()=>"idle"===b?null:(0,a.jsx)(y.lG,{id:"confirm-publish-dialog","data-testid":"confirm-publish-dialog",header:m("publish-dialog.confirm-publish.title"),onClose:()=>{o?.(),v("idle")},footer:{confirmButton:{text:m("action.publish-all-documents"),tone:"positive",onClick:I,loading:"publishing"===b,disabled:"publishing"===b}},children:(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(an,{t:m,i18nKey:"publish-dialog.confirm-publish-description",values:{title:e.metadata.title||h("release.placeholder-untitled-release"),releaseDocumentsLength:t.length,count:t.length}})})}),[b,m,I,e.metadata.title,h,t.length,o]),$=(0,s.useMemo)(()=>k||_||!j?(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsxs)(u.so,{align:"center",gap:3,padding:1,children:[(0,a.jsx)(c9,{icon:C.YZv,tone:_?"default":"critical"}),0===t.length?m("publish-action.validation.no-documents"):j?_?m("publish-dialog.validation.loading"):k?m("publish-dialog.validation.error"):null:m("publish-dialog.validation.no-permission")]})}):null,[t.length,k,_,j,m]),A=(0,s.useCallback)(()=>{v("confirm"),i?.()},[i]),D=(0,s.useMemo)(()=>({icon:C.VQ$,disabled:S||"publishing"===b||0===t.length,text:m("action.publish-all-documents"),handleOnClick:A,tooltipProps:{disabled:!S,content:$,placement:"bottom"}}),[t.length,A,S,b,$,m]);return(0,a.jsxs)(a.Fragment,{children:[r?(0,a.jsx)(y.Dr,{tooltipProps:D.tooltipProps,icon:D.icon,disabled:D.disabled,text:D.text,onClick:D.handleOnClick,"data-testid":"publish-all-button-menu-item"}):(0,a.jsx)(y.$n,{tooltipProps:D.tooltipProps,icon:D.icon,disabled:D.disabled,text:D.text,onClick:D.handleOnClick,loading:"publishing"===b,"data-testid":"publish-all-button",tone:"positive"}),E]})};function uI(e,t){let{projectId:n}=e.config();return e.withConfig({apiVersion:"vX"}).observable.request({uri:`projects/${n}/new-content-release-allowed`,tag:`new-content-release-allowed-${t}`}).pipe((0,M.W)(e=>{if(console.error(e),403===e.statusCode&&"string"!=typeof e.response.body&&"data"in e.response.body)return(0,k.of)(e.response.body);throw e}),(0,E.T)(({data:e})=>e))}let uE="ReleaseLimits",u$=()=>{let e,t,n=(0,o.c)(4),r=d4();n[0]===Symbol.for("react.memo_cache_sentinel")?(e={apiVersion:"v2025-02-19"},n[0]=e):e=n[0];let i=ee7(e);return n[1]!==i||n[2]!==r?(t=r.get({dependencies:[i],namespace:uE})||{releaseLimits$:uI(i,"releaseLimits").pipe((0,E.T)(e=>({defaultOrgActiveReleaseLimit:e.defaultOrgActiveReleaseLimit,datasetReleaseLimit:e.datasetReleaseLimit,orgActiveReleaseLimit:e.orgActiveReleaseLimit})),(0,Y.t)(1),(0,M.W)(e=>(console.error("Failed to fetch release limits",e),(0,k.of)(null))))},r.set({namespace:uE,value:t,dependencies:[i]}),n[1]=i,n[2]=r,n[3]=t):t=n[3],t},uA=()=>{let e,t,n=(0,o.c)(3),{releaseLimits$:r}=u$(),{enabled:i}=ug("contentReleases");n[0]!==i||n[1]!==r?(t=i?r:(0,k.of)(null),n[0]=i,n[1]=r,n[2]=t):t=n[2],e=t;let a=(0,eH.J)(e,null);if(!i)return!1;let{orgActiveReleaseLimit:l,defaultOrgActiveReleaseLimit:s}=a||{};return!!l&&l>(void 0===s?0:s)};function uD(e){let{document:t}=e;return{...t,_id:ib(t._id)}}function uz(e){return e._id}function uM(e){let{documents:t}=e,[n]=t;return n}function uP(e){return void 0!==e}function uR(e){return e?.filter(uP)}function uO(e){return console.error("Error in document revert states pipeline:",e),(0,k.of)(void 0)}function uV(e){let{document:t}=e;return ib(t._id)}function uL(e){return e.length>1}function uF(){return(0,k.of)(null)}let uB=({revertReleaseStatus:e,documents:t,setRevertReleaseStatus:n,release:r})=>{let{t:i}=iJ(lO),{t:l}=iJ(),d=(e=>{let t,n=(0,o.c)(5),r=ee7(oX),i=e[0]?.document._rev;e:{let a;if(!e.length){let e;n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,k.of)(!1),n[0]=e):e=n[0],t=e;break e}n[1]!==r||n[2]!==e||n[3]!==i?(a=(0,Q.H)(cc(r,e.map(uV),{fromTransaction:i,limit:2})).pipe((0,E.T)(uL),(0,M.W)(uF)),n[1]=r,n[2]=e,n[3]=i,n[4]=a):a=n[4],t=a}return(0,eH.J)(t,null)})(t),c=(e=>{let t,n,r,i,a,l,d,c=(0,o.c)(15),u=ee7(oX),p=u.observable,m=e[0]?.document._rev;c[0]!==u?(t=u.config(),c[0]=u,c[1]=t):t=c[1];let{dataset:h}=t,f=(0,s.useRef)(null),g=(0,s.useRef)(null),C=(0,s.useRef)(null);c[2]===Symbol.for("react.memo_cache_sentinel")?(n=()=>
503{if(!f.current){let{promise:e,resolve:t}=Promise.withResolvers();f.current=e,g.current=t}},r=[],c[2]=n,c[3]=r):(n=c[2],r=c[3]),(0,s.useEffect)(n,r);e:{let t;if(!e.length){let e;c[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,k.of)(void 0),c[4]=e):e=c[4],i=e;break e}if(c[5]!==u||c[6]!==h||c[7]!==p||c[8]!==e||c[9]!==m){let n=e.map(uD);t=(0,Q.H)(cc(u,n.map(uz),{toTransaction:m,reverse:!0})).pipe((0,E.T)(e=>n.map(t=>{let n;return{docId:t._id,revisionId:(n=t._id,e.find(e=>{let{documentIDs:t}=e;return t.includes(n)})?.id)}})),(0,z.n)(e=>e?(0,el.p)(e.map(e=>{let{docId:t,revisionId:r}=e;if(!r){let{publishedDocumentExists:e,...r}=n.find(e=>e._id===t)||{};return(0,k.of)({...r,_system:{delete:!0}})}return p.request({url:`/data/history/${h}/documents/${t}?revision=${r}`}).pipe((0,E.T)(uM),(0,M.W)(e=>(console.error(`Error fetching document ${t}:`,e),(0,k.of)(void 0))))})):(0,k.of)(void 0)),(0,E.T)(uR),(0,M.W)(uO)),c[5]=u,c[6]=h,c[7]=p,c[8]=e,c[9]=m,c[10]=t}else t=c[10];i=t}let y=(0,eH.J)(i,null);return c[11]!==y?(a=()=>{null!==y&&(C.current=y,g.current&&(g.current(y),g.current=null,f.current=null))},l=[y],c[11]=y,c[12]=a,c[13]=l):(a=c[12],l=c[13]),(0,s.useEffect)(a,l),c[14]===Symbol.for("react.memo_cache_sentinel")?(d=()=>C.current?Promise.resolve(C.current):f.current,c[14]=d):d=c[14],d})(t),[m,h]=(0,s.useState)(!0),f=(0,p.dj)(),g=(0,e5.Jr)(),{revertRelease:C}=lP(),x=(0,tq.rd)(),b=(0,s.useCallback)(e=>()=>x.navigate({releaseId:o4(e)}),[x]),v=(0,s.useCallback)(async()=>{n("reverting");let e=await c(),t=lx();try{if(!e)throw Error("Unable to find documents to revert");await C(t,e,{title:i("revert-release.title",{title:r.metadata.title||l("release.placeholder-untitled-release")}),description:i("revert-release.description",{title:r.metadata.title||l("release.placeholder-untitled-release")}),releaseType:"asap"},m?"staged":"immediate"),m?(g.log(oq,{revertType:"staged"}),f.push({closable:!0,status:"success",title:(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(an,{components:{Link:()=>(0,a.jsx)(u.EY,{size:1,weight:"medium","data-as":"a",onClick:b(t),style:{cursor:"pointer",marginBottom:"0.5rem",display:"flex"},"data-testid":"revert-stage-success-link",children:i("toast.revert-stage.success-link")})},t:i,i18nKey:"toast.revert-stage.success",values:{title:r.metadata.title||l("release.placeholder-untitled-release")}})})})):(g.log(oq,{revertType:"immediate"}),f.push({closable:!0,status:"success",title:(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(an,{t:i,i18nKey:"toast.immediate-revert.success",values:{title:r.metadata.title||l("release.placeholder-untitled-release")}})})}))}catch(e){if(lM(e))return;f.push({status:"error",title:(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(an,{t:i,i18nKey:"toast.revert.error",values:{error:e.message}})})}),console.error(e)}finally{n("idle")}},[n,c,C,i,l,r.metadata.title,m,g,f,b]),j=t.length>1?"revert-dialog.confirm-revert-description_other":"revert-dialog.confirm-revert-description_one";return(0,a.jsxs)(y.lG,{id:"confirm-revert-dialog",header:i("revert-dialog.confirm-revert.title",{title:r.metadata.title||l("release.placeholder-untitled-release")}),onClose:()=>n("idle"),footer:{confirmButton:{text:i(m?"action.create-revert-release":"action.immediate-revert-release"),tone:"positive",onClick:v,loading:"reverting"===e,disabled:"reverting"===e}},children:[(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(an,{t:i,i18nKey:j,values:{releaseDocumentsLength:t.length}})}),(0,a.jsxs)(u.so,{align:"center",paddingTop:4,children:[(0,a.jsx)(u.Sc,{onChange:()=>h(e=>!e),id:"stage-release",style:{display:"block"},checked:m}),(0,a.jsx)(u.az,{flex:1,paddingLeft:3,children:(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)("label",{htmlFor:"stage-release",children:i("revert-dialog.confirm-revert.stage-revert-checkbox-label")})})})]}),d&&!m&&(0,a.jsx)(u.Zp,{marginTop:4,padding:3,radius:2,shadow:1,tone:"critical",children:(0,a.jsx)(u.EY,{muted:!0,size:1,children:i("revert-dialog.confirm-revert.warning-card")})})]})},uN=e=>{let t,n,r,i,l,d,c,u,p,m=(0,o.c)(25),{release:h,documents:f,disabled:g}=e,{t:x}=iJ(lO),{t:b}=iJ(),{guardWithReleaseLimitUpsell:v,mode:j}
503=lA(),[w,_]=(0,s.useState)("idle"),[k,S]=(0,s.useState)(!1),{createRelease:T}=lP(),{checkWithPermissionGuard:I}=uy(),[E,$]=(0,s.useState)(null);m[0]!==v?(t=async()=>{S(!0),await v(()=>_("confirm")),S(!1)},m[0]=v,m[1]=t):t=m[1];let A=t,D=uA(),z=(0,s.useRef)(!1);if(m[2]!==I||m[3]!==T?(n=()=>(z.current=!0,I(T,lk()).then(e=>{z.current&&$(e)}),()=>{z.current=!1}),r=[I,T],m[2]=I,m[3]=T,m[4]=n,m[5]=r):(n=m[4],r=m[5]),(0,s.useEffect)(n,r),!D)return null;m[6]!==x?(i=x("action.revert"),m[6]=x,m[7]=i):i=m[7];let M=!0===E;m[8]!==b?(l=b("release.action.permission.error"),m[8]=b,m[9]=l):l=m[9],m[10]!==M||m[11]!==l?(d={disabled:M,content:l},m[10]=M,m[11]=l,m[12]=d):d=m[12];let P=k||!E||g||"disabled"===j;return m[13]!==A||m[14]!==i||m[15]!==d||m[16]!==P?(c=(0,a.jsx)(y.$n,{icon:C.G2W,onClick:A,text:i,tone:"critical",tooltipProps:d,disabled:P,"data-testid":"revert-button"}),m[13]=A,m[14]=i,m[15]=d,m[16]=P,m[17]=c):c=m[17],m[18]!==f||m[19]!==h||m[20]!==w?(u="idle"!==w&&(0,a.jsx)(uB,{release:h,documents:f,revertReleaseStatus:w,setRevertReleaseStatus:_}),m[18]=f,m[19]=h,m[20]=w,m[21]=u):u=m[21],m[22]!==u||m[23]!==c?(p=(0,a.jsxs)(a.Fragment,{children:[c,u]}),m[22]=u,m[23]=c,m[24]=p):p=m[24],p},uY=({release:e,disabled:t,documents:n,isMenuItem:r=!1,onConfirmDialogOpen:i,onConfirmDialogClose:o})=>{let l=(0,p.dj)(),{schedule:d,updateRelease:c}=lP(),{checkWithPermissionGuard:m}=uy(),[h,f]=(0,s.useState)(!1),{t:g}=iJ(lO),{t:x}=iJ(),b=(0,e5.Jr)(),{utcToCurrentZoneDate:v,zoneDateToUtc:j}=sh(sC),[w,_]=(0,s.useState)("idle"),[k,S]=(0,s.useState)(),[T,I]=(0,s.use
503State)(0),E=k?v(k):void 0,$=n.some(({validation:e})=>e.isValidating),A=n.some(({validation:e})=>e.hasError),D=t||$||!h||A,z=(0,s.useRef)(!1);(0,s.useEffect)(()=>(z.current=!0,m(d,e._id,new Date).then(e=>{z.current&&f(e)}),()=>{z.current=!1}),[m,e._id,e.metadata.intendedPublishAt,d]);let M=(0,s.useCallback)(()=>(0,tI.A)(j(k||new Date),new Date),[k,j]),P=(0,s.useCallback)(async()=>{if(k){if(r){let t={...e,metadata:{...e.metadata,releaseType:"scheduled",intendedPublishAt:k.toISOString()}};eN(t,e)||c(t)}if(M())return void I(e=>e+1);try{_("scheduling"),await d(e._id,k),b.log(oY),l.push({closable:!0,status:"info",title:(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(an,{t:g,i18nKey:"toast.schedule.success",values:{title:e.metadata.title||x("release.placeholder-untitled-release")}})})})}catch(t){l.push({status:"error",title:(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(an,{t:g,i18nKey:"toast.schedule.error",values:{title:e.metadata.title||x("release.placeholder-untitled-release"),error:t.message}})})}),console.error(t)}finally{o?.(),_("idle")}}},[k,r,M,e,c,d,b,l,g,x,o]),R=(0,s.useMemo)(()=>de(x),[x]),O=(0,s.useCallback)(e=>{e&&S(j((0,tE.A)(e)))},[j]),V=(0,s.useCallback)(e=>{let t=e.currentTarget.value,n=j((0,tt.A)(t,"PP HH:mm",new Date));(0,te.A)(n)&&S(n)},[j]),L=(0,s.useCallback)(()=>{o?.(),"scheduling"!==w&&_("idle")},[o,w]),F=(0,s.useMemo)(()=>{if("idle"===w)return null;let t=M();return(0,a.jsx)(y.lG,{id:"confirm-schedule-dialog","data-testid":"confirm-schedule-dialog",header:g("schedule-dialog.confirm-title",{documentsLength:n.length,count:n.length}),onClose:L,footer:{confirmButton:{text:g("schedule-dialog.confirm-button"),tone:"default",onClick:P,loading:"scheduling"===w,disabled:t||"scheduling"===w},cancelButton:{disabled:"scheduling"===w}},children:(0,a.jsxs)(u.BJ,{space:3,children:[t&&(0,a.jsx)(u.Zp,{marginBottom:1,padding:2,radius:2,shadow:1,tone:"critical",children:(0,a.jsx)(u.EY,{size:1,children:g("schedule-dialog.publish-date-in-past-warning")})}),(0,a.jsx)("label",{children:(0,a.jsxs)(u.BJ,{space:3,children:[(0,a.jsx)(u.EY,{size:1,weight:"semibold",children:g("schedule-dialog.select-publish-date-label")}),(0,a.jsx)(s1,{selectTime:!0,monthPickerVariant:sU.carousel,onChange:O,onInputChange:V,value:E,calendarLabels:R,inputValue:E?(0,ty.A)(E,"PP HH:mm"):"",constrainSize:!1,isPastDisabled:!0,timeZoneScope:sC})]})}),(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(an,{t:g,i18nKey:"schedule-dialog.confirm-description",values:{title:e.metadata.title||x("release.placeholder-untitled-release"),count:n.length}})})]})},T)},[w,M,T,g,n.length,L,P,O,V,E,R,e.metadata.title,x]),B=(0,s.useCallback)(()=>{S(e.metadata.intendedPublishAt?new Date(e.metadata.intendedPublishAt):new Date),_("confirm"),i?.()},[i,e.metadata.intendedPublishAt]),N=(0,s.useMemo)(()=>0===n.length?g("schedule-action.validation.no-documents"):h?$?g("schedule-button-tooltip.validation.loading"):A?g("schedule-button-tooltip.validation.error"):l_(e)?g("schedule-button-tooltip.already-scheduled"):null:g("schedule-button-tooltip.validation.no-permission"),[n.length,A,$,e,h,g]),Y=(0,s.useMemo)(()=>(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsxs)(u.so,{align:"center",gap:3,padding:1,children:[(0,a.jsx)(c9,{icon:C.YZv,tone:$?"default":"critical"}),N]})}),[$,N]),H=(0,s.useMemo)(()=>({icon:C.O4,disabled:D||"scheduling"===w||0===n.length,text:g("action.schedule"),handleOnClick:B,tooltipProps:{disabled:!N,content:Y,placement:"bottom"}}),[n.length,B,D,Y,w,g,N]);return(0,a.jsxs)(a.Fragment,{children:[r?(0,a.jsx)(y.Dr,{tooltipProps:H.tooltipProps,icon:H.icon,disabled:H.disabled,text:H.text,onClick:H.handleOnClick,"data-testid":"schedule-button-menu-item"}):(0,a.jsx)(y.$n,{tooltipProps:H.tooltipProps,tone:"primary",icon:H.icon,disabled:H.disabled,text:H.text,onClick:H.handleOnClick,loading:"scheduling"===w,"data-testid":"schedule-button"}),F]})},uH=({release:e,disabled:t,documents:n})=>{let r=(0,p.dj)(),{unschedule:i}
503=lP(),{t:o}=iJ(lO),{t:l}=iJ(),d=(0,e5.Jr)(),[c,m]=(0,s.useState)("idle"),h=(0,s.useCallback)(async()=>{try{m("unscheduling"),await i(e._id),d.log(oH)}catch(t){r.push({status:"error",title:(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(an,{t:o,i18nKey:"toast.unschedule.error",values:{title:e.metadata.title||l("release.placeholder-untitled-release"),error:t.message}})})}),console.error(t)}finally{m("idle")}},[i,e._id,e.metadata.title,d,r,o,l]),f=(0,s.useMemo)(()=>"idle"===c?null:(0,a.jsx)(y.lG,{id:"confirm-unschedule-dialog",header:o("unschedule-dialog.confirm-title"),onClose:()=>"unscheduling"!==c&&m("idle"),footer:{confirmButton:{text:o("action.unschedule"),tone:"default",onClick:h,loading:"unscheduling"===c,disabled:"unscheduling"===c},cancelButton:{disabled:"unscheduling"===c}},children:(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(an,{t:o,i18nKey:"unschedule-dialog.confirm-description",values:{title:e.metadata.title||l("release.placeholder-untitled-release"),documentsLength:n.length,count:n.length}})})}),[e.metadata.title,n.length,h,c,o,l]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.$n,{icon:C.kUM,disabled:t||"unscheduling"===c,text:o("action.unschedule"),onClick:()=>m("confirm"),loading:"unscheduling"===c,"data-testid":"schedule-button"}),f]})},uZ=e=>{let t,n,r,i,l=(0,o.c)(9),{actionResult:s}=e,d=(0,tq.rd)(),{t:c}=iJ(lO);l[0]!==s||l[1]!==d?(t=()=>{s&&"releaseId"in s&&d.navigate({releaseId:o4(s.releaseId)})},l[0]=s,l[1]=d,l[2]=t):t=l[2];let p=t;return l[3]===Symbol.for("react.memo_cache_sentinel")?(n={cursor:"pointer",marginBottom:"0.5rem",display:"flex"},l[3]=n):n=l[3],l[4]!==c?(r=c("toast.duplicate.success-link"),l[4]=c,l[5]=r):r=l[5],l[6]!==p||l[7]!==r?(i=(0,a.jsx)(u.EY,{size:1,weight:"medium","data-as":"a",onClick:p,style:n,"data-testid":"duplicate-release-success-link",children:r}),l[6]=p,l[7]=r,l[8]=i):i=l[8],i},uU={delete:{confirmDialog:{dialogId:"confirm-delete-dialog",dialogHeaderI18nKey:"delete-dialog.confirm-delete.header",dialogDescriptionI18nKey:"delete-dialog.confirm-delete-description",dialogConfirmButtonI18nKey:"delete-dialog.confirm-delete-button",confirmButtonTone:"critical"},toastSuccessI18nKey:"toast.delete.success",toastFailureI18nKey:"toast.delete.error",telemetry:oB},archive:{confirmDialog:{dialogId:"confirm-archive-dialog",dialogHeaderI18nKey:"archive-dialog.confirm-archive-header",dialogDescriptionI18nKey:"archive-dialog.confirm-archive-description",dialogConfirmButtonI18nKey:"archive-dialog.confirm-archive-button",confirmButtonTone:"critical"},toastFailureI18nKey:"toast.archive.error",telemetry:oZ},unarchive:{confirmDialog:!1,toastFailureI18nKey:"toast.unarchive.error",telemetry:oU},unschedule:{confirmDialog:!1,toastFailureI18nKey:"toast.unschedule.error",telemetry:oH},duplicate:{confirmDialog:{dialogId:"confirm-duplicate-dialog",dialogHeaderI18nKey:"duplicate-dialog.confirm-duplicate-header",dialogDescriptionI18nKey:"duplicate-dialog.confirm-duplicate-description",dialogConfirmButtonI18nKey:"duplicate-dialog.confirm-duplicate-button",confirmButtonTone:"primary"},toastSuccessI18nKey:"toast.duplicate.success",toastFailureI18nKey:"toast.duplicate.error",telemetry:oJ}};function uq(e){return o4(e._id)}let uJ=["_id","_type","_rev","_createdAt","_updatedAt"],uW={};function uK(e){let t=z4(),n=function(e){let t,n,r,i=(0,o.c)(4);return i[0]!==e?(n=e.map(uq),i[0]=e,i[1]=n):n=i[1],t=n,i[2]!==t?(r={releasesIds:t},i[2]=t,i[3]=r):r=i[3],r}(lp().data).releasesIds,[r,i]=[im(e),(0,ru.IM)(e)],a=(0,s.useMemo)(()=>{let e=n.length>0?(0,eo.z)(Object.fromEntries(n.map(e=>[e,t.observePaths({_id:iy(i,e)},uJ).pipe((0,E.T)(e=>e?._rev?e:void 0))]))):(0,k.of)(uW);return(0,eo.z)({isLoading:(0,k.of)(!1),draft:t.observePaths({_id:r},uJ).pipe((0,E.T)(e=>e?._rev?e:void 0)),published:t.observePaths({_id:i},uJ).pipe((0,E.T)(e=>e?._rev?e:void 0)),versions:e})},[r,t,i,n]);return(0,eH.J)(a,{isLoading:!0,versions:uW,draft:void 0,published:void 0})}let uG=e=>{let t,n,r,i,l,d,c,u,p,m,h,f=(0,o.c)(115),{ignoreCTA:g,disabled:x,release:b,setSelectedAction:v,documents:j}=e,w=!b||x,{t:_}=iJ(lO),{mode:k}=lA(),{archive:S,unarchive:T,deleteRelease:I,publishRelease:E,schedule:$,createRelease:A}=lP(),{checkWithPermissionGuard:D}
503=uy(),[z,M]=(0,s.useState)(null),[P,R]=(0,s.useState)(null),[O,V]=(0,s.useState)(null),[L,F]=(0,s.useState)(null),[B,N]=(0,s.useState)(null),[Y,H]=(0,s.useState)(null),Z=uA(),U=(0,s.useRef)(!1);f[0]!==S||f[1]!==D||f[2]!==A||f[3]!==I||f[4]!==E||f[5]!==b._id||f[6]!==b.state||f[7]!==w||f[8]!==$||f[9]!==T?(t=()=>(U.current=!0,w||("published"!==b.state&&("archived"===b.state?D(T,b._id).then(e=>{U.current&&R(e)}):(D(S,b._id).then(e=>{U.current&&M(e)}),D(E,b._id).then(e=>{U.current&&F(e)}),D($,b._id,new Date).then(e=>{U.current&&N(e)})),D(A,lk()).then(e=>{U.current&&H(e)})),("archived"===b.state||"published"==b.state)&&D(I,b._id).then(e=>{U.current&&V(e)})),()=>{U.current=!1}),f[0]=S,f[1]=D,f[2]=A,f[3]=I,f[4]=E,f[5]=b._id,f[6]=b.state,f[7]=w,f[8]=$,f[9]=T,f[10]=t):t=f[10],f[11]!==S||f[12]!==D||f[13]!==A||f[14]!==I||f[15]!==k||f[16]!==E||f[17]!==b._id||f[18]!==b.metadata.releaseType||f[19]!==b.state||f[20]!==w||f[21]!==$||f[22]!==T?(n=[b._id,k,w,b.state,D,T,S,I,b.metadata.releaseType,E,$,A],f[11]=S,f[12]=D,f[13]=A,f[14]=I,f[15]=k,f[16]=E,f[17]=b._id,f[18]=b.metadata.releaseType,f[19]=b.state,f[20]=w,f[21]=$,f[22]=T,f[23]=n):n=f[23],(0,s.useEffect)(t,n),f[24]!==v?(r=e=>{v(e.currentTarget.getAttribute("data-value"))},f[24]=v,f[25]=r):r=f[25];let q=r;e:{let e,t,n,r,o;if("published"===b.state){i=null;break e}if("archived"===b.state){let e,t,n,r,o=w||"disabled"===k||!P;f[26]!==_?(e=_("action.unarchive"),f[26]=_,f[27]=e):e=f[27],f[28]!==P||f[29]!==_?(t=!P&&_("permissions.error.unarchive"),f[28]=P,f[29]=_,f[30]=t):t=f[30],f[31]!==t?(n={content:t},f[31]=t,f[32]=n):n=f[32],f[33]!==q||f[34]!==o||f[35]!==e||f[36]!==n?(r=(0,a.jsx)(y.Dr,{"data-value":"unarchive",disabled:o,onClick:q,icon:C.HZr,text:e,"data-testid":"unarchive-release-menu-item",tooltipProps:n},"unarchive"),f[33]=q,f[34]=o,f[35]=e,f[36]=n,f[37]=r):r=f[37],i=r;break e}let l=!!z&&(!["scheduled","scheduling"].includes(b.state)||x);f[38]!==z||f[39]!==_?(e=_(z?"action.archive.tooltip":"permissions.error.archive"),f[38]=z,f[39]=_,f[40]=e):e=f[40],f[41]!==l||f[42]!==e?(t={disabled:l,content:e},f[41]=l,f[42]=e,f[43]=t):t=f[43],f[44]!==_?(n=_("action.archive"),f[44]=_,f[45]=n):n=f[45],f[46]!==z||f[47]!==b.state||f[48]!==w?(r=w||["scheduled","scheduling"].includes(b.state)||!z,f[46]=z,f[47]=b.state,f[48]=w,f[49]=r):r=f[49],f[50]!==q||f[51]!==t||f[52]!==n||f[53]!==r?(o=(0,a.jsx)(y.Dr,{tooltipProps:t,"data-value":"archive",onClick:q,icon:C.kbr,text:n,"data-testid":"archive-release-menu-item",disabled:r},"archive"),f[50]=q,f[51]=t,f[52]=n,f[53]=r,f[54]=o):o=f[54],i=o}let J=i;t:{let e,t,n,r;if("archived"!==b.state&&"published"!==b.state){l=null;break t}let i=w||!O;f[55]!==_?(e=_("action.delete-release"),f[55]=_,f[56]=e):e=f[56],f[57]!==O||f[58]!==_?(t=!O&&_("permissions.error.delete"),f[57]=O,f[58]=_,f[59]=t):t=f[59],f[60]!==t?(n={content:t},f[60]=t,f[61]=n):n=f[61],f[62]!==q||f[63]!==i||f[64]!==e||f[65]!==n?(r=(0,a.jsx)(y.Dr,{"data-value":"delete",onClick:q,disabled:i,icon:C.ucK,text:e,"data-testid":"delete-release-menu-item",tooltipProps:n},"delete"),f[62]=q,f[63]=i,f[64]=e,f[65]=n,f[66]=r):r=f[66],l=r}let W=l;n:{let e,t;if(g||"scheduled"!==b.state&&"scheduling"!==b.state){d=null;break n}f[67]!==_?(e=_("action.unschedule"),f[67]=_,f[68]=e):e=f[68],f[69]!==q||f[70]!==w||f[71]!==e?(t=(0,a.jsx)(y.Dr,{"data-value":"unschedule",onClick:q,disabled:w,icon:C.kUM,text:e,"data-testid":"unschedule-release-menu-item"},"unschedule"),f[69]=q,f[70]=w,f[71]=e,f[72]=t):t=f[72],d=t}let K=d;r:{let e,t,n;if("active"!==b.state||g&&"scheduled"===b.metadata.releaseType){c=null;break r}let r=w||!B;f[73]!==v?(t=()=>v(void 0),e=()=>v("schedule"),f[73]=v,f[74]=e,f[75]=t):(e=f[74],t=f[75]),f[76]!==j||f[77]!==b||f[78]!==e||f[79]!==r||f[80]!==t?(n=(0,a.jsx)(uY,{disabled:r,release:b,documents:j,isMenuItem:!0,onConfirmDialogClose:t,onConfirmDialogOpen:e},"schedule"),f[76]=j,f[77]=b,f[78]=e,f[79]=r,f[80]=t,f[81]=n):n=f[81],c=n}let G=c;i:{let e,t,n;if("active"!==b.state||g&&"scheduled"!==b.metadata.releaseType){u=null;break i}let r=w||!L;f[82]!==v?(e=()=>v(void 0),t=()=>v("publish"),f[82]=v,f[83]=e,f[84]=t):(e=f[83],t=f[84]),f[85]!==j||f[86]!==b||f[87
503]!==e||f[88]!==t||f[89]!==r?(n=(0,a.jsx)(uT,{release:b,documents:j,disabled:r,isMenuItem:!0,onConfirmDialogClose:e,onConfirmDialogOpen:t},"publish"),f[85]=j,f[86]=b,f[87]=e,f[88]=t,f[89]=r,f[90]=n):n=f[90],u=n}let X=u;a:{let e,t,n,r;if(!Z||"published"===b.state||"archived"===b.state){p=null;break a}let i=w||!Y||"disabled"===k;f[91]!==_?(e=_("action.duplicate-release"),f[91]=_,f[92]=e):e=f[92],f[93]!==Y||f[94]!==_?(t=!Y&&_("permissions.error.duplicate"),f[93]=Y,f[94]=_,f[95]=t):t=f[95],f[96]!==t?(n={content:t},f[96]=t,f[97]=n):n=f[97],f[98]!==q||f[99]!==i||f[100]!==e||f[101]!==n?(r=(0,a.jsx)(y.Dr,{"data-value":"duplicate",onClick:q,disabled:i,icon:C.TdU,text:e,"data-testid":"duplicate-release-menu-item",tooltipProps:n},"duplicate"),f[98]=q,f[99]=i,f[100]=e,f[101]=n,f[102]=r):r=f[102],p=r}let Q=p;o:{let e;if("scheduled"===b.metadata.releaseType){let e;f[103]!==X||f[104]!==G?(e=[G,X],f[103]=X,f[104]=G,f[105]=e):e=f[105],m=e;break o}f[106]!==X||f[107]!==G?(e=[X,G],f[106]=X,f[107]=G,f[108]=e):e=f[108],m=e}let ee=m;return f[109]!==ee||f[110]!==J||f[111]!==W||f[112]!==Q||f[113]!==K?(h=[K,...ee,Q,J,W],f[109]=ee,f[110]=J,f[111]=W,f[112]=Q,f[113]=K,f[114]=h):h=f[114],h};function uX(e){let t,n,r,i,l,s,d,c=(0,o.c)(17),{release:p}=e,{t:m}=iJ();return c[0]!==p?(t=uj(p),c[0]=p,c[1]=t):t=c[1],c[2]!==t?(n=(0,a.jsx)(s_,{tone:t,padding:0}),c[2]=t,c[3]=n):n=c[3],c[4]!==p.metadata.title||c[5]!==m?(r=p.metadata.title||m("release.placeholder-untitled-release"),c[4]=p.metadata.title,c[5]=m,c[6]=r):r=c[6],c[7]!==r?(i=(0,a.jsx)(u.EY,{weight:"medium",size:1,children:r}),c[7]=r,c[8]=i):i=c[8],c[9]!==p?(l=(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(uw,{release:p})}),c[9]=p,c[10]=l):l=c[10],c[11]!==i||c[12]!==l?(s=(0,a.jsxs)(u.BJ,{space:2,children:[i,l]}),c[11]=i,c[12]=l,c[13]=s):s=c[13],c[14]!==n||c[15]!==s?(d=(0,a.jsx)(u.Zp,{border:!0,padding:1,radius:2,children:(0,a.jsxs)(u.so,{gap:3,padding:3,children:[n,s]})}),c[14]=n,c[15]=s,c[16]=d):d=c[16],d}let uQ={duplicate:e=>({Link:()=>(0,a.jsx)(uZ,{actionResult:e})})},u1=({ignoreCTA:e,release:t,documentsCount:n,documents:r})=>{let i=(0,p.dj)(),o=(0,tq.rd)(),{archive:l,unarchive:d,deleteRelease:m,unschedule:h,duplicateRelease:f}
503=lP(),[g,x]=(0,s.useState)(!1),[b,v]=(0,s.useState)(),{selectedReleaseId:j}=oW(),w=l$(),_=(0,s.useRef)(null),k=(0,s.useRef)(null),[S,T]=(0,s.useState)(!1),I=!t,{t:E}=iJ(lO),{t:$}=iJ(),A=(0,e5.Jr)(),{guardWithReleaseLimitUpsell:D}=lA(),z=t.metadata.title||$("release.placeholder-untitled-release"),M="publish"===b||"schedule"===b,P=(0,s.useCallback)(async()=>{await m(t._id),o.navigate({})},[m,t._id,o]),R=(0,s.useCallback)(async()=>D(()=>d(t._id),!0),[D,t._id,d]),O=(0,s.useCallback)(async()=>{let e=lx();return await D(async()=>{let n=r?.map(e=>e.document);return f(e,{...t.metadata,title:`${t.metadata.title} (${E("copy-suffix")})`},n)},!0),{releaseId:e}},[D,f,r,t.metadata,E]),V=(0,s.useCallback)(async e=>{if("publish"===e||"schedule"===e||I)return;let n=uU[e];try{("archive"===e||"delete"===e)&&j===o4(t._id)&&w("drafts"),x(!0);let r=await ({delete:P,archive:l,unarchive:R,unschedule:h,duplicate:O})[e](t._id);if(A.log(n.telemetry),"u">typeof n.toastSuccessI18nKey){let t=uQ[e]?.(r);i.push({closable:!0,status:"success",title:(0,a.jsx)(c.zA.Provider,{value:o,children:(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(an,{t:E,components:t,i18nKey:n.toastSuccessI18nKey,values:{title:z}})})})})}}catch(e){if(lM(e))return;"u">typeof n.toastFailureI18nKey&&i.push({status:"error",title:(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(an,{t:E,i18nKey:n.toastFailureI18nKey,values:{title:z,error:e.toString()}})})}),console.error(e)}finally{x(!1),v(void 0)}},[I,P,l,R,h,O,j,t._id,A,w,o,i,E,z]);(0,s.useEffect)(()=>{!b||M||uU[b].confirmDialog||V(b)},[n,V,M,b]);let L=(0,s.useMemo)(()=>{if(!b||M)return null;let{confirmDialog:e}=uU[b];return e?(0,a.jsx)(y.lG,{id:e.dialogId,"data-testid":e.dialogId,header:E(e.dialogHeaderI18nKey),onClose:()=>!g&&v(void 0),padding:!1,footer:{confirmButton:{text:E(e.dialogConfirmButtonI18nKey),tone:e.confirmButtonTone,onClick:()=>V(b),loading:g,disabled:g},cancelButton:{disabled:g}},children:(0,a.jsxs)(u.BJ,{space:4,paddingX:4,paddingBottom:4,children:[(0,a.jsx)(uX,{release:t}),!!n&&(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(an,{t:E,i18nKey:e.dialogDescriptionI18nKey,values:{count:n}})})]})}):null},[b,M,E,g,t,n,V]),F=()=>{T(!1)};(0,u.PR)(()=>{M||F()},()=>[_.current,k.current]);let B=(0,s.useCallback)(e=>{e||F(),v(e)},[]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.AM,{content:(0,a.jsx)(u.W1,{ref:k,children:(0,a.jsx)(uG,{ignoreCTA:e,release:t,setSelectedAction:B,disabled:g,documents:r??[]})}),open:S,ref:_,constrainSize:!1,fallbackPlacements:["top-end"],portal:!0,tone:"default",placement:"bottom",children:(0,a.jsx)(y.$n,{disabled:I||g,icon:g?u.y$:C.riS,mode:"bleed",tooltipProps:{content:E("menu.tooltip")},"aria-label":E("menu.label"),"data-testid":"release-menu-button",onClick:()=>{S?F():T(!0)}})}),L]})};function u2(e){let t,n,r,i,l,s=(0,o.c)(13),{avatar:d,text:c,testId:p}=e;s[0]!==d?(t=d&&(0,a.jsx)(u.az,{padding:1,children:(0,a.jsx)("div",{style:{margin:-1},children:d})}),s[0]=d,s[1]=t):t=s[1];let m=d?1:void 0;return s[2]!==c?(n=(0,a.jsx)(u.EY,{muted:!0,size:1,children:c}),s[2]=c,s[3]=n):n=s[3],s[4]!==m||s[5]!==n?(r=(0,a.jsx)(u.az,{padding:2,paddingLeft:m,children:n}),s[4]=m,s[5]=n,s[6]=r):r=s[6],s[7]!==t||s[8]!==r?(i=(0,a.jsxs)(u.so,{children:[t,r]}),s[7]=t,s[8]=r,s[9]=i):i=s[9],s[10]!==i||s[11]!==p?(l=(0,a.jsx)(u.Zp,{"data-testid":p,children:i}),s[10]=i,s[11]=p,s[12]=l):l=s[12],l}let u5={createRelease:"footer.status.created",publishRelease:"footer.status.published",archiveRelease:"footer.status.archived",unarchiveRelease:"footer.status.unarchived"};function u0(e){let t,n,r,i=(0,o.c)(13),{events:l,release:s}=e,{t:d}=iJ(lO);if(i[0]!==l?(n=[l.find(ch),l.find(u7)].filter(io),i[0]=l,i[1]=n):n=i[1],!(t=n).length){let e,t,n,r;return i[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(cE,{$size:0}),i[2]=e):e=i[2],i[3]!==d?(t=d(u5.createRelease),i[3]=d,i[4]=t):t=i[4],i[5]!==s._createdAt?(n=(0,a.jsx)(cI,{time:s._createdAt,useTemporalPhrase:!0,minimal:!0}),i[5]=s._createdAt,i[6]=n):n=i[6],i[7]!==t||i[8]!==n?(r=(0,a.jsx)(u.so,{flex:1,gap:1,children:(0,a.jsx)(u2,{avatar:e,text:(0,a.jsxs)(a.Fragment,{children:[t," ",n]})})}),i[7]=t,i[8]=n,i[9]=r):r=i[9],r}return i[10]!==t||i[11]!==d?(r=(0,a.jsx)(u.so,{flex:1,gap:1,children:t.map(e=>(0,a.jsx)(u2,{testId:`status-${e.type}`,avatar:e.author&&(0,a.jsx)(cz,{size:0,user:e.author}),text:(0,a.jsxs)(a.Fragment,{children:[d(u5[e.type])," ",(0,a.jsx)(cI,{time:e.timestamp,useTemporalPhrase:!0,minimal:!0})]})},e.id))}),i[10]=t,i[11]=d,i[12]=r):r=i[12],r}function u7(e){return"publishRelease"===e.type||"archiveRelease"===e.type||"unarchiveRelease"===e.type}function u3(e){let t,n,r,i,l,s,d=(0,o.c)(30),{documents:c,release:p,events:m}=e;e:{if("archived"===p.state){t=null;break e}if(l_(p)){let e,n=!c.length;d[0]!==c||d[1]!==p||d[2]!==n?(e=(0,a.jsx)(uH,{release:p,documents:c,disabled:n}),d[0]=c,d[1]=p,d[2]=n,d[3]=e):e=d[3],t=e;break e}if("active"===p.state){if("scheduled"===p.metadata.releaseType){let e,n=!c.length;d[4]!==c||d[5]!==p||d[6]!==n?(e=(0,a.jsx)(uY,{release:p,documents:c,disabled:n}),d[4]=c,d[5]=p,d[6]=n,d[7]=e):e=d[7],t=e;break e}if("asap"===p.metadata.releaseType){let e,n=!c.length;d[8]!==c||d[9]!==p||d[10]!==n?(e=(0,a.jsx)(uT,{release:p,documents:c,disabled:n}),d[8]=c,d[9]=p,d[10]=n,d[11]=e):e=d[11],t=e;break e}}if("published"===p.state){let e,n=!c.length;d[12]!==c||d[13]!==p||d[14]!==n?(e=(0,a.jsx)(uN,{release:p,documents:c,disabled:n}),d[12]=c,d[13]=p,d[14]=n,d[15]=e):e=d[15],t=e;break e}t=null}let h=t;d[16]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(u.Zp,{borderTop:!0,marginX:2,style:{opacity:.6}}),d[16]=n):n=d[16],d[17]!==m||d[18]!==p?(r=(0,a.jsx)(u.so,{flex:1,gap:1,children:(0,a.jsx)(u0,{events:m,release:p})}),d[17]=m,d[18]=p,d[19]=r):r=d[19];let f="undecided"!==p.metadata.releaseType;return d[20]!==c||d[21]!==p||d[22]!==f?(i=(0,a.jsx)(u1,{release:p,documentsCount:c.length,documents:c,ignoreCTA:f}),d[20]=c,d[21]=p,d[22]=f,d[23]=i):i=d[23],d[24]!==h||d[25]!==i?(l=(0,a.jsxs)(u.so,{flex:"none",gap:1,"data-testid":"release-dashboard-footer-actions",children:[h,i]}
503),d[24]=h,d[25]=i,d[26]=l):l=d[26],d[27]!==r||d[28]!==l?(s=(0,a.jsxs)(u.Zp,{flex:"none",children:[n,(0,a.jsxs)(u.so,{padding:3,children:[r,l]})]}),d[27]=r,d[28]=l,d[29]=s):s=d[29],s}let u8="date",u4="group";function u6(e){let t,n,r,i,l,s,d,c,m,h,f,g,y,x=(0,o.c)(34),{inspector:b,release:v,setInspector:j}=e,{t:w}=iJ(lO),{t:_}=iJ();x[0]!==v.metadata.title||x[1]!==_?(t=v.metadata.title||_("release.placeholder-untitled-release"),x[0]=v.metadata.title,x[1]=_,x[2]=t):t=x[2];let k=t,S=(0,tq.rd)();x[3]!==v.state||x[4]!==S?(n=()=>{let e="archived"!==v.state&&"published"!==v.state;S.navigate({_searchParams:e?void 0:[[u4,"archived"]]})},x[3]=v.state,x[4]=S,x[5]=n):n=x[5];let T=n;x[6]!==j?(r=()=>{j(u9)},x[6]=j,x[7]=r):r=x[7];let I=r;x[8]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsx)(u.az,{paddingY:2,children:(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.vKP,{})})}),x[8]=i):i=x[8],x[9]!==w?(l=w("overview.title"),x[9]=w,x[10]=l):l=x[10],x[11]!==T||x[12]!==l?(s=(0,a.jsx)(u.$n,{mode:"bleed",onClick:T,text:l,textWeight:"regular",padding:2,"data-testid":"back-to-releases-button"}),x[11]=T,x[12]=l,x[13]=s):s=x[13],x[14]!==_||x[15]!==k?(d=k||_("release.placeholder-untitled-release"),x[14]=_,x[15]=k,x[16]=d):d=x[16],x[17]!==k?(c=k?void 0:{opacity:.5},x[17]=k,x[18]=c):c=x[18],x[19]!==d||x[20]!==c?(m=(0,a.jsx)(u.$n,{mode:"bleed",text:d,textWeight:"semibold",padding:2,style:c}),x[19]=d,x[20]=c,x[21]=m):m=x[21],x[22]!==s||x[23]!==m?(h=(0,a.jsx)(u.so,{flex:1,gap:1,children:(0,a.jsxs)(p.BI,{space:0,separator:i,children:[s,m]})}),x[22]=s,x[23]=m,x[24]=h):h=x[24];let E="activity"===b;return x[25]!==w?(f=w("dashboard.details.activity"),x[25]=w,x[26]=f):f=x[26],x[27]!==I||x[28]!==E||x[29]!==f?(g=(0,a.jsx)(u.so,{flex:"none",gap:2,children:(0,a.jsx)(u.$n,{icon:C.G2W,mode:"bleed",onClick:I,padding:2,selected:E,space:2,text:f})}),x[27]=I,x[28]=E,x[29]=f,x[30]=g):g=x[30],x[31]!==g||x[32]!==h?(y=(0,a.jsxs)(u.so,{align:"flex-start",children:[h,g]}),x[31]=g,x[32]=h,x[33]=y):y=x[33],y}function u9(e){return"activity"===e?void 0:"activity"}let pe=e=>{let t,n,r,i=(0,o.c)(7),{children:l,defaultSort:d}=e,[u,p]=(0,s.useState)(null),[m,h]=(0,s.useState)(d||null);i[0]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{h(t=>t?.column===e?{...t,direction:"asc"===t.direction?"desc":"asc"}:{column:String(e),direction:"desc"})},i[0]=t):t=i[0];let f=t;i[1]!==u||i[2]!==m?(n={searchTerm:u,setSearchTerm:p,sort:m,setSortColumn:f},i[1]=u,i[2]=m,i[3]=n):n=i[3];let g=n;return i[4]!==l||i[5]!==g?(r=(0,a.jsx)(c.Gt.Provider,{value:g,children:l}),i[4]=l,i[5]=g,i[6]=r):r=i[6],r},pt=()=>{let e=(0,s.useContext)(c.Gt);if(!e)throw Error("useTableContext must be used within a TableProvider");return e},pn=tW.P.create(C.Kpk),pr=e=>{let t,n,r,i=(0,o.c)(8),{headers:l,searchDisabled:s}=e;if(i[0]===Symbol.for("react.memo_cache_sentinel")?(t={paddingInline:`max(
504          calc((100% - var(--maxInlineSize)) / 2),
505          var(--paddingInline)
506        )`},i[0]=t):t=i[0],i[1]!==l||i[2]!==s){let e;i[4]!==s?(e=e=>{let{header:t,style:n,width:r,id:i,sorting:o}=e;return!!t&&(0,a.jsx)(t,{headerProps:{as:"th",id:String(i),style:{...n,width:r||void 0}},header:{id:i,sorting:o},searchDisabled:s},String(i))},i[4]=s,i[5]=e):e=i[5],n=l.map(e),i[1]=l,i[2]=s,i[3]=n}else n=i[3];return i[6]!==n?(r=(0,a.jsx)(u.Zp,{as:"thead",borderBottom:!0,children:(0,a.jsx)(u.so,{as:"tr",style:t,children:n})}),i[6]=n,i[7]=r):r=i[7],r},pi={SortHeaderButton:e=>{let t,n,r,i,l,s,d=(0,o.c)(12),{header:c,text:u}=e,{sort:p,setSortColumn:m}=pt(),h=180*(p?.direction!=="asc");d[0]!==h?(n={rotate:h},d[0]=h,d[1]=n):n=d[1],d[2]===Symbol.for("react.memo_cache_sentinel")?(r={duration:.25,ease:"easeInOut"},d[2]=r):r=d[2],d[3]!==n?(i=(0,a.jsx)(pn,{initial:!1,animate:n,transition:r}),d[3]=n,d[4]=i):i=d[4],t=i;let f=c.sorting&&p?.column===c.id?t:void 0;return d[5]!==c.id||d[6]!==m?(l=()=>m(String(c.id)),d[5]=c.id,d[6]=m,d[7]=l):l=d[7],d[8]!==f||d[9]!==l||d[10]!==u?(s=(0,a.jsx)(y.$n,{iconRight:f,onClick:l,mode:"bleed",size:"default",text:u}),d[8]=f,d[9]=l,d[10]=u,d[11]=s):s=d[11],s},TableHeaderSearch:e=>{let t,n,r,i,l,s=(0,o.c)(16),{headerProps:d,searchDisabled:c,placeholder:p}=e,{t:m}=iJ(),{setSearchTerm:h,searchTerm:f}=pt();s[0]!==p||s[1]!==m?(t=p||m("search.placeholder"),s[0]=p,s[1]=m,s[2]=t):t=s[2];let g=f||"";s[3]!==h?(n=e=>h(e.currentTarget.value),r=()=>h(""),s[3]=h,s[4]=n,s[5]=r):(n=s[4],r=s[5]);let y=!!f;return s[6]!==c||s[7]!==t||s[8]!==g||s[9]!==n||s[10]!==r||s[11]!==y?(i=(0,a.jsx)(u.ks,{border:!1,fontSize:1,icon:C.WIv,placeholder:t,radius:3,value:g,disabled:c,onChange:n,onClear:r,clearButton:y}),s[6]=c,s[7]=t,s[8]=g,s[9]=n,s[10]=r,s[11]=y,s[12]=i):i=s[12],s[13]!==d||s[14]!==i?(l=(0,a.jsx)(u.BJ,{...d,flex:1,paddingY:2,paddingRight:3,sizing:"border",children:i}),s[13]=d,s[14]=i,s[15]=l):l=s[15],l},BasicHeader:e=>{let t,n=(0,o.c)(2),{text:r}=e;return n[0]!==r?(t=(0,a.jsx)(u.az,{padding:2,children:(0,a.jsx)(u.EY,{muted:!0,size:1,weight:"medium",children:r})}),n[0]=r,n[1]=t):t=n[1],t}},pa=({columnDefs:e,data:t,emptyState:n,searchFilter:r,rowId:i,rowActions:o,loading:l=!1,rowProps:d=()=>({}),scrollContainerRef:c,hideTableInlinePadding:p=!1})=>{let{searchTerm:f,sort:g}=pt(),C=(0,s.useRef)(null),y=(0,s.useMemo)(()=>{let n=f&&r?r(t,f):t;if(!g)return n;let i=e.find(e=>e.id===g.column);return[...n].sort((e,t)=>
506{let n,[r,a]=[e,t].map(e=>i?.sortTransform?.(e,g.direction)??ni(e,g.column));if("string"!=typeof r||"string"!=typeof a||(0,te.A)(r)||(0,te.A)(a)){let[e,t]=[r,a].map(e=>i?.sortTransform&&"number"==typeof e?e:"string"==typeof e?Date.parse(e):0);n=e-t}else n=r.toLowerCase().localeCompare(a.toLowerCase());return"asc"===g.direction?n:-n})},[e,t,r,f,g]),x=(0,m.Te)({count:y.length,getScrollElement:()=>c.current,estimateSize:()=>59,overscan:5,rangeExtractor:e=>(({scrollContainerRef:e,virtualizerContainerRef:t,range:n})=>{let r=e.current?.offsetTop??0,i=Math.ceil(((t.current?.offsetTop??0)-r)/59),a=n.startIndex-i;return(0,h.vp)({...n,startIndex:a>0?a:0})})({scrollContainerRef:c,virtualizerContainerRef:C,range:e})}),b=(0,s.useMemo)(()=>({id:"actions",sorting:!1,width:50,header:({headerProps:{id:e}})=>(0,a.jsx)(u.so,{as:"th",id:e,paddingY:3,paddingX:3,sizing:"border",style:{width:"50px"},children:(0,a.jsx)(u.EY,{muted:!0,size:1,weight:"medium",children:"\xa0"})}),cell:({datum:e,cellProps:{id:t}})=>(0,a.jsx)(u.so,{as:"td",id:t,align:"center",flex:"none",padding:3,style:{width:"25px"},children:!e.isLoading&&o?.({datum:e})||(0,a.jsx)(u.az,{style:{width:"25px"}})})}),[o]),v=(0,s.useMemo)(()=>(o?[...e,b]:e).filter(e=>!e.hidden),[e,b,o]),j=(0,s.useMemo)(()=>function(e){let t=d(e),n=l?`skeleton-${e.index}`:String(ni(e,i));return(0,a.jsx)(u.Zp,{"data-testid":"table-row",as:"tr",borderBottom:!0,display:"flex",style:{height:`${e.virtualRow.size}px`,transform:`translateY(${e.virtualRow.start-e.index*e.virtualRow.size}px)`,paddingInline:`max(
507                calc((100% - var(--maxInlineSize)) / 2),
508                var(--paddingInline)
509              )`},...t,children:v.map(({cell:t,style:n,width:r,id:i,sorting:o=!1})=>(0,a.jsx)(s.Fragment,{children:(0,a.jsx)(t,{datum:{...e,isLoading:l},cellProps:{as:"td",id:String(i),style:{...n,width:r||void 0}},sorting:o})},String(i)))},n)},[v,l,i,d]),w=(0,s.useMemo)(()=>"string"==typeof n?(0,a.jsx)(u.Zp,{as:"tr",borderBottom:!0,display:"flex",padding:4,style:{justifyContent:"center"},children:(0,a.jsx)(u.EY,{as:"td",muted:!0,size:1,children:n})}):n(),[n]),_=(0,s.useMemo)(()=>v.map(({cell:e,sortTransform:t,...n})=>({...n,id:String(n.id)})),[v]),k=(0,u.DP)(),S=!p&&k.sanity.v2?.container[3]||0;return(0,a.jsx)("div",{ref:C,children:(0,a.jsx)("div",{style:{width:"100%",position:"relative","--maxInlineSize":(0,u.D0)(S),"--paddingInline":(0,u.D0)(k.sanity.v2?.space[3]??0)},children:(0,a.jsxs)(u.BJ,{as:"table",children:[(0,a.jsx)(pr,{headers:_,searchDisabled:l||!f&&!t.length}),(0,a.jsx)(u.BJ,{as:"tbody",children:(()=>l?Array.from({length:3}).map((e,t)=>{let n=`skeleton-${t}`;return j({_id:n,isLoading:!0,virtualRow:{index:t,start:59*t,size:59,lane:0,key:n,end:59*t+59},index:t,isFirst:0===t,isLast:2===t})}):0===y.length?w:x.getVirtualItems().map((e,t)=>j({...y[e.index],virtualRow:e,index:t,isFirst:0===e.index,isLast:e.index===y.length-1})))()})]})})})},po=({defaultSort:e,...t})=>(0,a.jsx)(y.vE,{children:(0,a.jsx)(pe,{defaultSort:e,children:(0,a.jsx)(pa,{...t})})}),pl="u">typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform)?"Cmd":"Ctrl",ps=u.Qx.space[4];function pd(){let e=(0,s.useContext)(c.o7);if(void 0===e)throw Error("useSearchState must be used within an SearchProvider");return e}function pc({allowEmptyQueries:e,terms:t}){let n=!!e||t.query.length>0,r=!!t.filter,i=t.types.length>0;return n||r||i}let pu=(0,eG.v_)("mod+k"),pp=(0,eG.v_)("escape");function pm(e){let t,n,r,i,a,l,d,c,p,m,h=(0,o.c)(24),{children:f,hasValidTerms:g,onClose:C,onOpen:y,open:x}=e,b=(0,s.useRef)(!1),{dispatch:v,searchCommandList:j,setOnClose:w,state:_}=pd(),{result:k}=_;h[0]!==v||h[1]!==C||h[2]!==j?(t=()=>{v({index:j?.getTopIndex()??-1,type:"LAST_ACTIVE_INDEX_SET"}),C()},h[0]=v,h[1]=C,h[2]=j,h[3]=t):t=h[3];let S=t;return h[4]!==S||h[5]!==y||h[6]!==x?(n={onClose:S,onOpen:y,open:x},h[4]=S,h[5]=y,h[6]=x,h[7]=n):n=h[7],function(e){let t,n,r=(0,o.c)(7),{open:i,onClose:a,onOpen:l}=e,{isTopLayer:s}=(0,u.Z4)();r[0]!==a?(t=()=>{a?.()},r[0]=a,r[1]=t):t=r[1];let d=t;r[2]!==d||r[3]!==s||r[4]!==l||r[5]!==i?(n=e=>{pu(e)&&(e.preventDefault(),i?d():l?.()),pp(e)&&i&&s&&d()},r[2]=d,r[3]=s,r[4]=l,r[5]=i,r[6]=n):n=r[6],(0,u.Pm)(n)}(n),h[8]!==S||h[9]!==w?(r=()=>{w(()=>S)},i=[S,w],h[8]=S,h[9]=w,h[10]=r,h[11]=i):(r=h[10],i=h[11]),(0,s.useEffect)(r,i),h[12]!==v||h[13]!==g||h[14]!==k.loaded?(a=()=>{(!g||k.loaded)&&b.current&&v({index:0,type:"LAST_ACTIVE_INDEX_SET"})},l=[v,g,k.loaded],h[12]=v,h[13]=g,h[14]=k.loaded,h[15]=a,h[16]=l):(a=h[15],l=h[16]),(0,s.useEffect)(a,l),h[17]!==v||h[18]!==g||h[19]!==x?(d=()=>{g||!b.current||x||v({type:"ORDERING_RESET"})},c=[v,g,x],h[17]=v,h[18]=g,h[19]=x,h[20]=d,h[21]=c):(d=h[20],c=h[21]),(0,s.useEffect)(d,c),h[22]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{b?.current||(b.current=!0)},m=[],h[22]=p,h[23]=m):(p=h[22],m=h[23]),(0,s.useEffect)(p,m),f}function ph(e){return e.reduce((e,t)=>
509(e[t.name]=t,e),{})}function pf(e){return e.reduce((e,t)=>(e[t.type]=t,e),{})}function pg(e,t){return t?e[t]:void 0}function pC(e,t){return{fieldId:t,filterName:e.name,operatorType:e?.operators.find(e=>"item"===e.type)?.name||""}}function py({fieldDefinitions:e,filterDefinitions:t,filters:n,operatorDefinitions:r}){return n.filter(n=>pj({filter:n,filterDefinitions:t,fieldDefinitions:e,operatorDefinitions:r})).map(n=>pg(r,n.operatorType)?.groqFilter({fieldPath:function({filter:e,fieldDefinitions:t,filterDefinitions:n}){let r=px(t,e),i=n[e.filterName];if(i)switch(i.type){case"field":return r?.fieldPath;case"pinned":return i?.fieldPath;default:return}}({filter:n,fieldDefinitions:e,filterDefinitions:t}),value:n?.value})).filter(e=>!no(e)).filter(io).join(" && ")}function px(e,t){return t?.fieldId?e[t.fieldId]:void 0}function pb(e){return[e.filterName,...e.fieldId?[e.fieldId]:[]].join("-")}function pv({fieldDefinitions:e,filters:t,types:n}){let r=n.map(e=>e.name),i=na(...Object.values(e).filter(e=>t.map(e=>e?.fieldId).includes(e.id)).filter(e=>e.documentTypes.length>0).map(e=>e.documentTypes)),a=[];return r.length>0&&a.push(r),i.length>0&&a.push(i),na(...a).sort()}function pj({filter:e,filterDefinitions:t,fieldDefinitions:n,operatorDefinitions:r}){let i=t[e.filterName],a=pg(r,e.operatorType),o=px(n,e);return!(!i||!a||e.fieldId&&!o||"field"===i.type&&(!o?.fieldPath||!e.fieldId||!a.groqFilter({fieldPath:o.fieldPath,value:e.value}))||"pinned"===i.type&&!a.groqFilter({fieldPath:i.fieldPath,value:e.value}))}let pw=(0,eG.v_)("escape"),p_=g.I4.div`
510  background: transparent;
511  height: 100%;
512  left: 0;
513  position: fixed;
514  top: 0;
515  width: 100%;
516  z-index: -1;
517`;function pk(e){let t,n,r,i,l,d,c=(0,o.c)(15),{anchorElement:p,children:m,onClose:h}=e,{isTopLayer:f}=(0,u.Z4)();c[0]!==f||c[1]!==h?(t=e=>{pw(e)&&f&&h()},c[0]=f,c[1]=h,c[2]=t):t=c[2],(0,u.Pm)(t);let g=function(e){let t,n,r,i,a,l,d=(0,o.c)(10);d[0]!==e?(t=e&&pS(e),d[0]=e,d[1]=t):t=d[1];let[c,u]=(0,s.useState)(t);d[2]!==e?(n=()=>{e&&u(pS(e))},d[2]=e,d[3]=n):n=d[3];let p=n;return d[4]!==e?(r=()=>{e&&u(pS(e))},i=[e],d[4]=e,d[5]=r,d[6]=i):(r=d[5],i=d[6]),(0,s.useEffect)(r,i),d[7]!==p?(a=()=>(window.addEventListener("resize",p),()=>window.removeEventListener("resize",p)),l=[p],d[7]=p,d[8]=a,d[9]=l):(a=d[8],l=d[9]),(0,s.useEffect)(a,l),c}(p||null);c[3]!==h?(n=(0,a.jsx)(p_,{onClick:h}),c[3]=h,c[4]=n):n=c[4];let C=`min(calc(100vh - ${g}px - 5px - ${ps}px), 500px`;return c[5]!==C?(r={maxHeight:C,zIndex:1},c[5]=C,c[6]=r):r=c[6],c[7]!==m?(i=(0,a.jsx)(u.so,{children:m}),c[7]=m,c[8]=i):i=c[8],c[9]!==r||c[10]!==i?(l=(0,a.jsx)(eX.Ay,{autoFocus:!1,returnFocus:!0,children:(0,a.jsx)(u.Zp,{display:"flex",overflow:"hidden",radius:3,style:r,children:i})}),c[9]=r,c[10]=i,c[11]=l):l=c[11],c[12]!==n||c[13]!==l?(d=(0,a.jsxs)(a.Fragment,{children:[n,l]}),c[12]=n,c[13]=l,c[14]=d):d=c[14],d}function pS(e){let t=e.getBoundingClientRect();return t.y+t.height+5}let pT=(0,g.I4)(u.az)(({$background:e,$smallClearButton:t})=>(0,g.AH)`
518    width: 100%;
519
520    input + span {
521      background: ${({theme:t})=>e?t.sanity.color.card.disabled.bg2:"transparent"};
522    }
523
524    [data-qa='clear-button'] {
525      background: none;
526      box-shadow: none;
527      display: flex; /* TODO: hack, currently used to vertically center <TextInput>'s clearButton */
528      transform: ${t?"scale(0.8)":"scale(1)"};
529      &:hover {
530        opacity: 0.5;
531      }
532    }
533  `),pI=(0,s.forwardRef)(function(e,t){let n,r,i,l,s,d=(0,o.c)(11);return d[0]!==e?({$background:n,$smallClearButton:r,...i}=e,d[0]=e,d[1]=n,d[2]=r,d[3]=i):(n=d[1],r=d[2],i=d[3]),d[4]!==t||d[5]!==i?(l=(0,a.jsx)(u.ks,{...i,ref:t}),d[4]=t,d[5]=i,d[6]=l):l=d[6],d[7]!==n||d[8]!==r||d[9]!==l?(s=(0,a.jsx)(pT,{$background:n,$smallClearButton:r,children:l}),d[7]=n,d[8]=r,d[9]=l,d[10]=s):s=d[10],s}),pE=(0,g.I4)(u.az)`
534  border-bottom: 1px solid ${({theme:e})=>e.sanity.color.base.border};
535  flex-shrink: 0;
536`,p$=(0,g.I4)(u.so)`
537  box-sizing: border-box;
538`,pA=(0,s.forwardRef)(function(e,t){let n,r,i=(0,o.c)(11),{ariaInputLabel:l,onChange:s,onClear:d,typeFilter:c}=e,{state:u}=pd(),{fullscreen:p}=u,{t:m}=iJ(),h=!!c,f=p?2:1;return i[0]!==m?(n=m("search.filter-placeholder"),i[0]=m,i[1]=n):n=i[1],i[2]!==l||i[3]!==s||i[4]!==d||i[5]!==t||i[6]!==h||i[7]!==f||i[8]!==n||i[9]!==c?(r=(0,a.jsx)(pE,{children:(0,a.jsx)(p$,{align:"center",flex:1,padding:1,children:(0,a.jsx)(pI,{__unstable_disableFocusRing:!0,$smallClearButton:!0,"aria-label":l,autoComplete:"off",border:!1,clearButton:h,fontSize:f,icon:C.WIv,muted:!0,onChange:s,onClear:d,placeholder:n,ref:t,spell
538Check:!1,radius:2,value:c})})}),i[2]=l,i[3]=s,i[4]=d,i[5]=t,i[6]=h,i[7]=f,i[8]=n,i[9]=c,i[10]=r):r=i[10],r});function pD({fieldDefinitions:e,filterDefinitions:t,filters:n,id:r,headerTitle:i,tone:a}){let o=n.map(n=>({fieldDefinition:px(e,n),filterDefinition:t[n.filterName],filter:n,group:r,tone:a||"default",type:"filter"}));return o.length>0?[...i?[{title:i||"",tone:a||"default",type:"header"}]:[],...o]:[]}function pz(e,t){return e.title.toLowerCase().includes(t.toLowerCase())}function pM(e){return"pinned"===e.type&&"u">typeof e?.group}function pP(e){return"pinned"===e.type&&typeof e?.group>"u"}function pR({filter:e,maxLength:t}){let{state:{definitions:n}}=pd(),r=(0,s.useMemo)(()=>{let t=n.filters[e.filterName];switch(t?.type){case"field":{let t=px(n.fields,e);return t?.titlePath?t.titlePath[t.titlePath.length-1]:null}case"pinned":return t.title;default:return null}},[n,e]);return r?t&&r.length>t?(0,a.jsxs)("span",{children:[r.slice(0,t),"…"]}):(0,a.jsx)("span",{children:r}):null}function pO(e){let t,n,r=(0,o.c)(6),{filter:i}=e,{state:l}=pd(),{definitions:s}=l;r[0]!==s.filters||r[1]!==i.filterName?(t=s.filters[i.filterName]?.icon,r[0]=s.filters,r[1]=i.filterName,r[2]=t):t=r[2];let d=t;if(d){let e;return r[3]!==d?(e=(0,a.jsx)(d,{}),r[3]=d,r[4]=e):e=r[4],e}return r[5]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(C.KSC,{}),r[5]=n):n=r[5],n}function pV(e){let t,n,r,i,l,d,c,p,m=(0,o.c)(18),{filter:h}=e,{state:f}=pd(),{definitions:g}=f;if(m[0]!==g.fields||m[1]!==h){let e=px(g.fields,h);t=u.BJ,n=2,r=e?.titlePath&&e.titlePath?.length>1&&(0,a.jsx)(u.az,{marginLeft:4,children:(0,a.jsx)(u.EY,{muted:!0,size:0,children:e.titlePath.slice(0,-1).map((t,n)=>(0,a.jsxs)(s.Fragment,{children:[(0,a.jsx)("span",{children:t}),n!==e.titlePath.length-2&&(0,a.jsx)("span",{style:{opacity:.75,paddingLeft:"0.25em",paddingRight:"0.25em"},children:(0,a.jsx)(C.vKP,{})})]},n))})}),m[0]=g.fields,m[1]=h,m[2]=t,m[3]=n,m[4]=r}else t=m[2],n=m[3],r=m[4];return m[5]===Symbol.for("react.memo_cache_sentinel")?(i={flexShrink:0},m[5]=i):i=m[5],m[6]!==h?(l=(0,a.jsx)(u.az,{style:i,children:(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(pO,{filter:h})})}),m[6]=h,m[7]=l):l=m[7],m[8]!==h?(d=(0,a.jsx)(u.EY,{size:1,weight:"medium",children:(0,a.jsx)(pR,{filter:h})}),m[8]=h,m[9]=d):d=m[9],m[10]!==l||m[11]!==d?(c=(0,a.jsxs)(u.so,{align:"flex-start",gap:3,children:[l,d]}),m[10]=l,m[11]=d,m[12]=c):c=m[12],m[13]!==t||m[14]!==n||m[15]!==r||m[16]!==c?(p=(0,a.jsxs)(t,{space:n,children:[r,c]}),m[13]=t,m[14]=n,m[15]=r,m[16]=c,m[17]=p):p=m[17],p}function pL(e,t){let n=t.split("."),r=n[0];if(r&&(0,_.$d)(e)){let t=e.fields.find(e=>e.name===r);if(t){let e=n.slice(1).join(".");return e?pL(t.type,e):t}}}function pF(e){var t;return(0,s.isValidElement)(e)?(t=(0,rd.F0)(e),new DOMParser().parseFromString(t,"text/html")?.body.textContent||""):"string"==typeof e?e:""}function pB({children:e,fieldDefinition:t,filterDefinition:n,visible:r}){let{state:{documentTypesNarrowed:i}}=pd(),{t:o}=iJ(),l=Cm(),d=(0,s.useMemo)(()=>t?.documentTypes?t.documentTypes.map(e=>{let t=l.get(e);return t?.title||eJ(t?.name)}).filter(io).sort():[],[t?.documentTypes,l]),c=(0,s.useMemo)(()=>{if(t?.documentTypes){let e=nt(t.documentTypes.map(e=>{let n=l.get(e);if(n){let e=pL(n,t.fieldPath);return e?.type.description&&pF(e?.type.description)}return null}).filter(io).sort());if(1===e.length)return e[0]}},[t?.documentTypes,t?.fieldPath,l]);return(0,a.jsx)(y.m_,{content:(0,a.jsx)(u.Zp,{tone:"default",radius:2,style:{maxWidth:"250px"},children:(0,a.jsxs)(u.BJ,{space:4,children:[t&&(0,a.jsxs)(u.BJ,{space:3,children:[(0,a.jsx)(u.EY,{muted:!0,size:1,weight:"medium",children:o("search.filter-field-tooltip-name")}),(0,a.jsx)(ut,{size:1,style:{fontFamily:"monospace"},tone:"primary",textOverflow:"ellipsis",children:t?.name})]}),c&&(0,a.jsxs)(u.BJ,{space:3,children:[(0,a.jsx)(u.EY,{muted:!0,size:1,weight:"medium",children:o("search.filter-field-tooltip-description")}),(0,a.jsx)(u.EY,{muted:!0,size:1,children:iL(c,256)})]}),n?.description&&(0,a.jsx)(u.EY,{muted:!0,size:1,children:iL(n.description,256)}),!i.length&&d.length>0&&(0,a.jsxs)(u.BJ,{space:2,children:[(0,a.jsxs)(u.so,{align:"center",gap:1,children:[(0,a.jsx)(u.EY,{muted:!0,size:1,weight:"medium",children:o("search.filter-field-tooltip-used-in-document-types")}),(0,a.jsx)(u.Zp,{padding:1,radius:2,tone:"transparent",children:(0,a.jsx)(u.EY,{size:1,muted:!0,children:d.length})})]}),(0,a.jsxs)(u.EY,{size:1,weight:"regular",muted:!0,children:[d.slice(0,10).join(", "),d?.length>10?` +${d.length-10} more`:""]})]})]})}),disabled:!r,fallbackPlacements:["left"],placement:"right",portal:!0,children:e})}let pN=(0,s.memo)(function(e){let t,n,r,i,l,s,d,c,p,m=(0,o.c)(24);m[0]!==e?({item:t,onClose:n,...r}=e,m[0]=e,m[1]=t,m[2]=n,m[3]=r):(t=m[1],n=m[2],r=m[3]);let{dispatch:h,state:f}=pd(),{filters:g}=f;m[4]!==h||m[5]!==t.filter||m[6]!==n?(i=()=>{h({filter:t.filter,type:"TERMS_FILTERS_ADD"}),n?.()},m[4]=h,m[5]=t.filter,m[6]=n,m[7]=i):i=m[7];let C=i,y=!!g.find(e=>pb(e)===pb(t.filter)),x=!!(t.fieldDefinition||t.filterDefinition.description),b=y?void 0:C;m[8]===Symbol.for("react.memo_cache_sentinel")?(l={position:"relative",whiteSpace:"normal",width:"100%"},m[8]=l):l=m[8];let v=t?.tone;return m[9]!==t.filter?(s=(0,a.jsx)(u.az,{padding:3,children:(0,a.jsx)(pV,{filter:t.filter})}),m[9]=t.filter,m[10]=s):s=m[10],m[11]!==t.fieldDefinition||m[12]!==t.filterDefinition||m[13]!==s||m[14]!==x?(d=(0,a.jsx)(pB,{fieldDefinition:t.fieldDefinition,filterDefinition:t.filterDefinition,visible:x,children:s}),m[11]=t.fieldDefinition,m[12]=t.filterDefinition,m[13]=s,m[14]=x,m[15]=d):d=m[15],m[16]!==y||m[17]!==b||m[18]!==v||m[19]!==d?(c=(0,a.jsx)(u.$
538n,{disabled:y,fontSize:1,justify:"flex-start",mode:"bleed",onClick:b,padding:0,style:l,tabIndex:-1,tone:v,children:d}),m[16]=y,m[17]=b,m[18]=v,m[19]=d,m[20]=c):c=m[20],m[21]!==r||m[22]!==c?(p=(0,a.jsx)(u.az,{...r,children:c}),m[21]=r,m[22]=c,m[23]=p):p=m[23],p}),pY=(0,s.memo)(function(e){let t,n,r=(0,o.c)(5),{item:i}=e,l=i?.tone;return r[0]!==i.title?(t=(0,a.jsx)(u.EY,{muted:!0,size:1,textOverflow:"ellipsis",weight:"medium",children:i.title}),r[0]=i.title,r[1]=t):t=r[1],r[2]!==l||r[3]!==t?(n=(0,a.jsx)(u.az,{paddingTop:1,children:(0,a.jsx)(u.Zp,{borderBottom:!0,paddingX:2,paddingY:3,tone:l,children:t})}),r[2]=l,r[3]=t,r[4]=n):n=r[4],n}),pH={width:"300px"};function pZ({onClose:e}){let[t,n]=(0,s.useState)(null),[r,i]=(0,s.useState)(""),{t:o}=iJ(),l=(0,s.useCallback)(e=>i(e.currentTarget.value),[i]),d=(0,s.useCallback)(()=>i(""),[]),c=Cm(),{state:{documentTypesNarrowed:p,definitions:m,filters:h,terms:{types:f}}}=pd(),g=(0,s.useMemo)(()=>(function({documentTypesNarrowed:e,fieldDefinitions:t,filterDefinitions:n,schema:r,titleFilter:i,types:a,t:o}){let l=Object.values(t).filter(e=>{var t,n;return t=e,n=i,t.titlePath.join("/").toLowerCase().includes(n.toLowerCase())}).map(e=>{let t=n[e.filterName];return t?pC(t,e.id):null}).filter(io),s=function({fieldDefinitions:e,filterDefinitions:t,titleFilter:n}){let r=Object.values(t).filter(pP).filter(e=>pz(e,n)).map(e=>pC(e)),i=Object.values(t).filter(pM).filter(e=>pz(e,n)).reduce((e,t)=>(e[t.group]=e[t.group]||[],e[t.group].push(pC(t)),e),{});return[...pD({fieldDefinitions:e,filterDefinitions:t,filters:r,id:"pinned-ungrouped",tone:"primary"}),...Object.entries(i).flatMap(([n,r])=>pD({fieldDefinitions:e,filterDefinitions:t,filters:r,headerTitle:n,id:n,tone:"primary"}))]}({fieldDefinitions:t,filterDefinitions:n,titleFilter:i});return 0===e.length?[...s,...pD({fieldDefinitions:t,filterDefinitions:n,filters:l,headerTitle:o("search.filter-all-fields-header"),id:"field"})]:[...s,...function({documentTypesNarrowed:e,fieldDefinitions:t,filterDefinitions:n,filters:r,schema:i,types:a,t:o}){let l=r.filter(n=>{var r,i;return r=e,i=px(t,n),0===nS(r,i?.documentTypes||[]).length});return[...e.length>1&&a.length>1?pD({fieldDefinitions:t,filterDefinitions:n,filters:l,headerTitle:o("search.filter-shared-fields-header"),id:"shared",tone:"primary"}):[],...e.map(e=>{let t=i.get(e);return{title:t?.title||eJ(t?.name)||"(Unknown type)",documentType:e}}).sort((e,t)=>e.title.localeCompare(t.title)).map(({documentType:e,title:i})=>{let a=r.filter(n=>{var r,i;return r=[e],i=px(t,n),i?.documentTypes.some(e=>r.includes(e))});return pD({fieldDefinitions:t,filterDefinitions:n,filters:a,id:i,headerTitle:i})}).flat()]}({documentTypesNarrowed:e,fieldDefinitions:t,filterDefinitions:n,filters:l,schema:r,types:a,t:o})]})({documentTypesNarrowed:p,fieldDefinitions:m.fields,filterDefinitions:m.filters,schema:c,titleFilter:r,types:f,t:o}),[p,m.fields,m.filters,c,r,f,o]),C=(0,s.useCallback)(t=>"filter"===t.type?(0,a.jsx)(pN,{item:t,onClose:e,paddingBottom:1}):"header"===t.type?(0,a.jsx)(pY,{item:t}):null,[e]),y=(0,s.useCallback)(e=>{let t=g[e];return"filter"!==t.type||!!h.find(e=>pb(e)===pb(t.filter))},[g,h]),x=(0,s.useCallback)(e=>{let t=g[e];switch(t.type){case"filter":return[...t.group?[t.group]:[],pb(t.filter)].join("-");case"header":return`${t.type}-${t.title}`;default:return e}},[g]);return(0,a.jsxs)(u.so,{direction:"column",style:pH,children:[(0,a.jsx)(pA,{ariaInputLabel:o("search.filter-by-title-aria-label"),onChange:l,onClear:d,ref:n,typeFilter:r}),(0,a.jsxs)(u.so,{children:[g.length>0&&(0,a.jsx)(rY,{activeItemDataAttr:"data-hovered",ariaLabel:o("search.filters-aria-label",{count:g.length}),autoFocus:"input",getItemDisabled:y,getItemKey:x,inputElement:t,itemHeight:45,items:g,overscan:20,padding:1,paddingBottom:0,renderItem:C}),0==g.length&&(0,a.jsx)(u.az,{padding:3,children:(0,a.jsx)(u.EY,{muted:!0,size:1,textOverflow:"ellipsis",children:o("search.filter-no-matches-found",{filter:r})})})]})]})}function pU(){let e,t,n,r,i,l,d,c,p,m=(0,o.c)(18),[h,f]=(0,s.useState)(!1),[g,x]=(0,s.use
538State)(null),b=(0,s.useRef)(null),{t:v}=iJ(),{state:j}=pd(),{fullscreen:w}=j;m[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>f(!1),m[0]=e):e=m[0];let _=e;m[1]===Symbol.for("react.memo_cache_sentinel")?(t=()=>f(!0),m[1]=t):t=m[1];let k=t;m[2]!==g?(n=()=>[g,b.current],m[2]=g,m[3]=n):n=m[3],(0,u.PR)(_,n),m[4]===Symbol.for("react.memo_cache_sentinel")?(r=[5,0,0,0],m[4]=r):r=m[4],m[5]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsx)(pZ,{onClose:_}),m[5]=i):i=m[5],m[6]!==g?(l=(0,a.jsx)(pk,{anchorElement:g,onClose:_,children:i}),m[6]=g,m[7]=l):l=m[7];let S=w?"large":"default";return m[8]!==v?(d=v("search.action.add-filter"),m[8]=v,m[9]=d):d=m[9],m[10]!==h||m[11]!==S||m[12]!==d?(c=(0,a.jsx)(y.$n,{icon:C.REV,mode:"bleed",onClick:k,size:S,ref:x,selected:h,text:d}),m[10]=h,m[11]=S,m[12]=d,m[13]=c):c=m[13],m[14]!==h||m[15]!==l||m[16]!==c?(p=(0,a.jsx)(y.AM,{__unstable_margins:r,content:l,open:h,placement:"bottom-start",radius:3,ref:b,portal:!0,children:c}),m[14]=h,m[15]=l,m[16]=c,m[17]=p):p=m[17],p}function pq({availableCharacters:e=40,types:t}){let n;if(0===t.length)return{remainingCount:0,types:[]};let r=t.reduce((n=e,function(t,r,i){let a=pW(r);return n-=a.length,(0===i||e>a.length&&n>a.length)&&t.push(r),t}),[]);return{remainingCount:t.length-r.length,types:r.map(pW)}}function pJ({t:e,availableCharacters:t,types:n}){if(0===n.length)return e("search.document-type-list-all-types");let{remainingCount:r,types:i}=pq({availableCharacters:t,types:n});return e(r>0?"search.document-type-list-truncated":"search.document-type-list",{count:r,types:i,formatParams:{types:{style:"short",type:"unit"}}})}function pW(e){return e.title??e.name}let pK=new WeakMap,pG={title:10,subtitle:5,description:1.5},pX={_id:{weight:1,type:"string"},_type:{weight:1,type:"string"}},pQ=["reference","crossDatasetReference","slug"],p1=e=>e?[e,...p1(e.type)]:[],p2=e=>e?.jsonType==="array"&&e.of.some(e=>p1(e).some(({name:e})=>"block"===e)),p5=e=>p1(e).some(({jsonType:e,name:t})=>"object"===e&&"slug"===t),p0=e=>iI(e)&&"search"in e&&iI(e.search);function p7(e){return"u">typeof e&&"name"in e}function p3(e,t){return p5(e)?[t,"current"].join("."):t}function p8(e,t,n){return p7(e)?(function e(r,i,a,o=[]){if(!r||a>t)return o;let s=p1(r);if(r&&r?.jsonType==="string"||p2(r)){let e=n(r,i);return"number"==typeof e&&o.push({path:i,weight:e,type:p2(r)?"pt":"string"}),o}if(p5(r)){let e=n(r,i);return"number"==typeof e&&o.push({path:p3(r,i),weight:e,type:p2(r)?"pt":"string"}),o}let d=o;for(let t of s)if("object"===t.jsonType&&t.fields?.length&&!pQ.includes(t.name))for(let n of t.fields)d=e(n.type,(0,l.dI)([i,n.name].filter(Boolean)),a+1,d);else if("array"===t.jsonType&&t.of?.length)for(let n of t.of)d=e(n,`${i}[]`,a+1,d);return d})(e,"",0).reduce((e,{path:t,weight:n,type:r})=>(e[t]={weight:n,type:r,path:t},e),{}):{}}let p4=e=>{let t=p1(e).map(e=>e.options).find(p0);return"number"==typeof t?.search?.weight?t.search.weight:null},p6=e=>p1(e).some(e=>e.hidden)?0:null,p9=e=>"number"==typeof(p4(e)??p6(e))?null:1,me=new WeakMap,mt={title:10,subtitle:5,description:1.5},mn={_id:{weight:1},_type:{weight:1}},mr=["reference","crossDatasetReference","slug","globalDocumentReference"],mi=e=>e?[e,...mi(e.type)]:[],ma=e=>mi(e).some(({jsonType:e,name:t})=>"object"===e&&"slug"===t),mo=e=>iI(e)&&"search"in e&&iI(e.search);function ml(e){return"u">typeof e&&"name"in e}function ms(e,t){return ma(e)?[t,"current"].join("."):t}function md(e,t,n){return ml(e)?(function e(r,i,a,o=[]){if(!r||a>t)return o;let s=mi(r);if(r&&r?.jsonType==="string"||r?.jsonType==="array"&&r.of.some(e=>mi(e).some(({name:e})=>"block"===e))){let e=n(r,i);return"number"==typeof e&&o.push({path:i,weight:e}),o}if(ma(r)){let e=n(r,i);return"number"==typeof e&&o.push({path:ms(r,i),weight:e}),o}let d=o;for(let t of s)if("object"===t.jsonType&&t.fields?.length&&!mr.includes(t.name))for(let n of t.fields)d=e(n.type,(0,l.dI)([i,n.name].filter(Boolean)),a+1,d);else if("array"===t.jsonType&&t.of?.length)for(let n of t.of)d=e(n,`${i}[]`,a+1,d);return d})(e,"",0).reduce((e,{path:t,weight:n,type:r})=>(e[t]={weight:n,type:r,path:t},e),{}):{}}let mc=e=>{let t=mi(e).map(e=>e.options).find(mo);return"number"==typeof t?.search?.weight?t.search.weight:null},mu=e=>mi(e).some(e=>e.hidden)?0:null,mp=e=>"number"==typeof(mc(e)??mu(e))?null:1,mm=e=>"object"===e.jsonType,mh=(e,t=[])=>e.getTypeNames().map(t=>e.get(t)).filter(io).filter(e=>(e=>
538!!(e.type&&"document"===e.type.name))(e)&&!(e=>e.name.startsWith("sanity.")&&"sanity.previewUrlSecret"!==e.name)(e)||t.includes(e.name)).filter(mm);function mf(e){return!!e&&(iE(e)?"raw"===e:e.some(e=>"raw"===e))}let mg=/(?:[^\s"]+|"[^"]*")+/g;function mC(e,t,{includeDrafts:n=!0,perspective:r,...i}={}){let a=t1(e.types.map(e=>(function({schemaType:e,maxDepth:t,isCrossDataset:n,processPaths:r=e=>e}){let i=me.get(e);if(i)return i;let a=md(e,t,mc),o=md(e,t,mu),l=md(e,t,mp),s=((e,t,n)=>{let r=e?.preview?.select;if(!r)return null;let i=Object.fromEntries(Object.entries(r).map(([e,t])=>[t.replace(/\.\d+/g,"[]"),e])),a=Object.fromEntries(Object.entries(md(e,t,mp)).map(([e,{type:t}])=>({path:e,type:t})).filter(({path:e})=>i[e]).map(({path:e,type:t})=>[e,{type:t,weight:mt[i[e]]}]));return n?Object.fromEntries(Object.entries(i).map(([e,t])=>[e,{path:e,type:"string",weight:mt[t]}])):md(e,t,(e,t)=>{let n=a[ms(e,t)];return n?n.weight:null})})(e,t,n),d={...mn,...l,...o,...s,...a},c={typeName:ml(e)?e.name:e.type,paths:r(Object.entries(d).map(([e,{weight:t}])=>({path:e,weight:t})))};return me.set(e,c),c})({schemaType:e,maxDepth:i.maxDepth||t7.ab,isCrossDataset:i.isCrossDataset,processPaths:e=>e.filter(({weight:e})=>1!==e)})).filter(({paths:e})=>0!==e.length).map(({typeName:e,paths:t})=>t.map(t=>({...t,typeName:e}))).flat(),e=>[e.path,e.weight].join(":")),o="[@, _id] match text::query($__query)",l=Object.entries(a).flatMap(([,e])=>e.some(({weight:e})=>0===e)?[]:`boost(_type in ${JSON.stringify(e.map(e=>e.typeName))} && ${e[0].path} match text::query($__query), ${e[0].weight})`).concat(o),s=i?.sort??[{field:"_score",direction:"desc"}],d=s.some(({field:e})=>"_score"===e),c=r;(typeof r>"u"||Array.isArray(r)&&0===r.length)&&(c="raw");let u=mf(c),p=["_type in $__types",d?[]:o,i.filter?`(${i.filter})`:[],e.filter?`(${e.filter})`:[],u?[]:'!(_id in path("versions.**"))',!1===n?"!(_id in path('drafts.**'))":[],i.cursor??[]].flat(),m=s.map(({field:e})=>e).concat("_type","_id","_originalId").join(", "),h=[`*[${p.join(" && ")}]`,d?["|",`score(${l.join(", ")})`]:[],["|",`order(${(s||[]).map(e=>[e.mapWith?`${e.mapWith}(${e.field})`:e.field,(e.direction||"").toLowerCase()].map(e=>e.trim()).filter(Boolean).join(" ")).join(",")})`],d?"[_score > 0]":[],"[0...$__limit]",`{${m}}`].flat().join(" "),f={__types:e.types.map(e=>"u">typeof e&&"name"in e?e.name:e.type),__limit:(i?.limit??1e3)+1,__query:function(e){let t=(e.match(mg)??[]).map(e=>e.trim()),n=t.findLastIndex(e=>!("u">typeof e&&"-"===e.trim().at(0))&&![e?.at(0),e?.at(-1)].every(e=>'"'===e)),r=t[n];if(0===t.length)return"*";if("u">typeof r&&"*"===r.trim().at(-1)||typeof r>"u")return t.join(" ");let i=[...t];return i.splice(n,1,`${r}*`),i.join(" ")}("string"==typeof t?t:t.query),...i.params};return{query:[["findability-mvi:5"].concat(i?.comments||[]).map(e=>`// ${e}`).join(`
539`),h].join(`
540`),options:{tag:i.tag,perspective:c},params:f,sortOrder:s}}function my({lastResult:e,sortOrder:t}){if(!e)return;let n=t.some(({field:e})=>"_id"===e);return t.concat(n?[]:{field:"_id",direction:"asc"}).reduce((n,r,i)=>{let a=t.slice(0,i).map(t=>mb(t,e,"==")).concat(mb(r,e)).filter(e=>"u">typeof e).join(" && ");return[n,`(${a})`].filter(e=>"u">typeof e).join(" || ")},void 0)}let mx={asc:">",desc:"<"};function mb(e,t,n=mx[e.direction]){if("_id"!=e.field||"=="!=n)return[e.field,n,JSON.stringify(t[e.field])].join(" ")}function mv(e){return e.replace(/^"(.*)"$/,"$1")}let mj=t4([e2,ne,t8]),mw=({mapWith:e,path:t})=>e?`${e}(${t})`:t,m_=/([^!@#$%^&*(),\\/?";:{}|[\]+<>\s-])+/g,mk=/(^[.]+)|([.]+$)/,mS={groqLegacy:(e,t,n)=>function(r,i={}){let{query:a,params:o,options:l,searchSpec:s,terms:d}=function(e,t={}){let{filter:n,params:r,tag:i}=t,a=e.types.map(e=>(function({schemaType:e,maxDepth:t,isCrossDataset:n,processPaths:r=e=>e}){let i=pK.get(e);if(i)return i;let a=p8(e,t,p4),o=p8(e,t,p6),l=p8(e,t,p9),s=((e,t,n)=>{let r=e?.preview?.select;if(!r)return null;let i=Object.fromEntries(Object.entries(r).map(([e,t])=>[t.replace(/\.\d+/g,"[]"),e])),a=Object.fromEntries(Object.entries(p8(e,t,p9)).map(([e,{type:t}])=>({path:e,type:t})).filter(({path:e})=>i[e]).map(({path:e,type:t})=>[e,{type:t,weight:pG[i[e]]}]));return n?Object.fromEntries(Object.entries(i).map(([e,t])=>[e,{path:e,type:"string",weight:pG[t]}])):p8(e,t,(e,t)=>{let n=a[p3(e,t)];return n?n.weight:null})})(e,t,n),d={...pX,...l,...o,...s,...a},c={typeName:p7(e)?e.name:e.type,paths:r(Object.entries(d).map(([e,{type:t,weight:n}])=>({path:e,weight:n,..."pt"===t&&{mapWith:"pt::text"}})))};return pK.set(e,c),c})({schemaType:e,maxDepth:t.maxDepth||t7.ab,isCrossDataset:t.isCrossDataset})).filter(({paths:e})=>e.length),o=function(e){let t=[],n=e.replace(/("[^"]*")/g,e=>nn(e).length>1?(t.push(e),""):e);return[...t.map(e=>t9(t6(e))),...nt(t8((t6(n).match(m_)||[]).map(e=>e.replace(mk,""))))]}(e.query),{perspective:l}=t,s=mf(l),d=["_type in $__types",!1===t.includeDrafts&&"!(_id in path('drafts.**'))",...function(e,t){let n=mj(t.map(e=>(e.paths||[]).map(e=>mw(e))));return e.map((e,t)=>n.map(e=>`${e} match $t${t}`)).filter(e=>e.length>0).map(e=>`(${e.join(" || ")})`)}(o,a),n?`(${n})`:"",e.filter?`(${e.filter}
540)`:"",s?"":'!(_id in path("versions.**"))'].filter(Boolean),c=a.map(e=>{let t=`_type == "${e.typeName}" => `,n=`{ ${e.paths.map((e,t)=>`"w${t}": ${mw(e)}`)} }`;return`${t}${n}`}),u=(t?.sort||[{field:"_id",direction:"asc"}]).map(e=>[e.mapWith?`${e.mapWith}(${e.field})`:e.field,(e.direction||"").toLowerCase()].map(e=>e.trim()).filter(Boolean).join(" ")).join(","),p=["_type","_id","_originalId"],m=c.length>0?`...select(${c.join(`,
541`)})`:"",h=p.join(", ")+(m?`, ${m}`:""),f=`*[${d.join(" && ")}]| order(${u})[0...$__limit]{${h}}`;if(t?.__unstable_extendedProjection){let e=t?.__unstable_extendedProjection,n=p.concat(e).join(", ");f=`*[${d.join(" && ")}]{${n}}|order(${u})[0...$__limit]{${h}}`}let g=["findability-mvi:4"].concat(t?.comments||[]).map(e=>`// ${e}`).join(`
542`),C=g?`${g}
543${f}`:f,y=t?.limit??1e3;return{query:C,params:{...o.reduce((e,t,n)=>(e[`t${n}`]=`${t}*`,e),{}),__types:a.map(e=>e.typeName),__limit:y,...r},options:{tag:i,perspective:s||!t.perspective?.length?"raw":t.perspective},searchSpec:a,terms:o}}("string"==typeof r?{query:r,types:e}:r.types.length?r:{...r,types:e},{...n,...i});return a3(t,oQ(l?.perspective)?oX.apiVersion:void 0).observable.fetch(a,o,l).pipe(n.unique?(0,E.T)(ij):(0,W.M)(),(0,E.T)(e=>(function(e,t,n=[]){let r=nR(e,e=>e.typeName);return t.map((e,i)=>{let a=(r[e._type].paths||[])?.map((t,r)=>{let i,a="string"==typeof(i=e[`w${r}`])?i:JSON.stringify(i);if(!a)return{path:t.path,score:0,why:"No match"};let[o,l]=((e,t)=>{let{phrases:n,words:r}=function(e){let[t,n]=nb(nt(e.map(t6)),e=>/^".*"$/.test(e));return{phrases:nt(t).map(t6).map(mv),words:nt(n.map(t6))}}(e),[i,a]=function(e,t){let n=t.toLowerCase().trim(),r=0,i=0;return e.forEach(e=>{n.includes(e)&&(r+=e.length/n.length,i+=e.length)}),1===r?[1,"[Phrase] Exact match"]:[r/2,`[Phrase] Matched ${i} of ${n.length} characters`]}(n,t),[o,l]=function(e,t){let n=nt(t8(nn(t6(t)))),r=na(e,n),i=ne(n,e),a=r.length/i.length;return 1===a?[1,"[Word] Exact match"]:[a/2,`[Word] Matched ${r.length} of ${i.length} terms: [${r.join(", ")}]`]}(r,t);return[i+o,[l,a].join(", ")]})(n,a);return{path:t.path,score:o*t.weight,why:`${l} (*${t.weight})`}}),o=a.reduce((e,t)=>e+t.score,0);return{hit:e,resultIndex:t.length-i,score:o,stories:a}})})(s,e,d)),i?.skipSortByScore?(0,W.M)():(0,E.T)(e=>tG(e,e=>-e.score)),(0,E.T)(e=>({type:"weighted",hits:e})))},groq2024:(e,t,n)=>function(r,i={}){let{query:a,params:o,options:l,sortOrder:s}=mC("string"==typeof r?{query:r,types:e}:r.types.length?r:{...r,types:e},r,{...n,...i});return t.observable.withConfig({apiVersion:"vX"}).fetch(a,o,l).pipe((0,E.T)(e=>{let t="u">typeof i.limit&&e.length>i.limit,n=t?e.at(-2):e.at(-1);return{type:"groq2024",hits:e.map(e=>({hit:e})).slice(0,i.limit),nextCursor:t?my({lastResult:n,sortOrder:s}):void 0}}))}},mT=(e,t,n)=>(0,mS[n.strategy??"groqLegacy"])(e,oQ(n?.perspective)?a3(t,oX.apiVersion):t,n);function mI(e){return mh(e).filter(e=>!1!==e.__experimental_omnisearch_visibility)}function mE(e,t){return(e.title??e.name).localeCompare(t.title??t.name)}let m$=(0,s.memo)(function(e){let t,n,r,i,l,s,d,c,p=(0,o.c)(23);p[0]!==e?({selected:n,type:r,...t}=e,p[0]=e,p[1]=t,p[2]=n,p[3]=r):(t=p[1],n=p[2],r=p[3]);let{dispatch:m}=pd();p[4]!==m||p[5]!==r?(i=()=>{m({type:"TERMS_TYPE_ADD",schemaType:r})},p[4]=m,p[5]=r,p[6]=i):i=p[6];let h=i;p[7]!==m||p[8]!==r?(l=()=>{m({type:"TERMS_TYPE_REMOVE",schemaType:r})},p[7]=m,p[8]=r,p[9]=l):l=p[9];let f=l;p[10]!==h||p[11]!==f||p[12]!==n?(s=()=>{n?f():h()},p[10]=h,p[11]=f,p[12]=n,p[13]=s):s=p[13];let g=s,x=n&&C.Nrt,b=r.title??r.name,v=r.title??r.name,j=n?"primary":"default";return p[14]!==g||p[15]!==x||p[16]!==b||p[17]!==v||p[18]!==j?(d=(0,a.jsx)(y.$n,{iconRight:x,justify:"flex-start",mode:"bleed",onClick:g,width:"fill",size:"large",tabIndex:-1,text:v,tone:j},b),p[14]=g,p[15]=x,p[16]=b,p[17]=v,p[18]=j,p[19]=d):d=p[19],p[20]!==t||p[21]!==d?(c=(0,a.jsx)(u.az,{...t,children:d}),p[20]=t,p[21]=d,p[22]=c):c=p[22],c}),mA=(0,g.I4)(u.az)`
544  border-top: 1px solid ${({theme:e})=>e.sanity.color.base.border};
545  flex-shrink: 0;
546`,mD={width:"250px"};function mz(){let e,t,n,r,i,l,d,c,p,m,h,f,g,C=(0,o.c)(37),[y,x]=(0,s.use
546State)(null),[b,v]=(0,s.useState)(""),j=(0,s.useRef)(null),{t:w}=iJ(),_=Cm(),{dispatch:k,state:S}=pd(),{terms:T}=S,{types:I}=T,[E,$]=(0,s.useState)(I),A=function(e,t,n,r){let i,a=(0,o.c)(5);if(a[0]!==e||a[1]!==t||a[2]!==n||a[3]!==r){let[o,l]=nb(mI(e).filter(e=>{var t,n;return t=e,!(n=r)||(t.title??t.name).toLowerCase().includes(n?.toLowerCase())}).sort(mE),e=>n.includes(e)),s=o.length>0,d=o.length>0;i=[],s&&i.push({title:"Selected",type:"header"}),o.forEach(e=>i.push({item:e,selected:t.includes(e),type:"item"})),s&&d&&i.push({type:"divider"}),l.forEach(e=>i.push({item:e,selected:t.includes(e),type:"item"})),a[0]=e,a[1]=t,a[2]=n,a[3]=r,a[4]=i}else i=a[4];return i}(_,I,E,b);C[0]===Symbol.for("react.memo_cache_sentinel")?(e=e=>v(e.currentTarget.value),C[0]=e):e=C[0];let D=e;C[1]===Symbol.for("react.memo_cache_sentinel")?(t=()=>v(""),C[1]=t):t=C[1];let z=t;C[2]!==k?(n=()=>{$([]),k({type:"TERMS_TYPES_CLEAR"}),j?.current?.focusInputElement(),j?.current?.scrollToIndex(0)},C[2]=k,C[3]=n):n=C[3];let M=n;C[4]!==A?(r=e=>{let t=A[e];switch(t.type){case"divider":return`${t.type}-${e}`;case"header":return`${t.type}-${t.title}`;case"item":return`${t.type}-${t.item.name}`;default:return e}},C[4]=A,C[5]=r):r=C[5];let P=r;C[6]!==A?(i=e=>"item"!==A[e].type,C[6]=A,C[7]=i):i=C[7];let R=i;C[8]!==A?(l=e=>{let t=A[e];return"item"===t.type&&t.selected},C[8]=A,C[9]=l):l=C[9];let O=l;return C[10]!==w?(d=w("search.action.filter-by-document-type-aria-label"),C[10]=w,C[11]=d):d=C[11],C[12]!==d||C[13]!==b?(c=(0,a.jsx)(pA,{ariaInputLabel:d,onChange:D,onClear:z,ref:x,typeFilter:b}),C[12]=d,C[13]=b,C[14]=c):c=C[14],C[15]!==A||C[16]!==R||C[17]!==P||C[18]!==O||C[19]!==y||C[20]!==w?(p=A.length>0&&(0,a.jsx)(rY,{activeItemDataAttr:"data-hovered",ariaLabel:w("search.document-types-aria-label"),ariaMultiselectable:!0,autoFocus:"input",getItemDisabled:R,getItemSelected:O,getItemKey:P,inputElement:y,itemHeight:37,items:A,overscan:20,padding:1,paddingBottom:0,ref:j,renderItem:mM}),C[15]=A,C[16]=R,C[17]=P,C[18]=O,C[19]=y,C[20]=w,C[21]=p):p=C[21],C[22]!==A.length||C[23]!==w||C[24]!==b?(m=!A.length&&(0,a.jsx)(u.az,{padding:3,children:(0,a.jsx)(u.EY,{muted:!0,size:1,textOverflow:"ellipsis",children:w("search.document-types-no-matches-found",{filter:b})})}),C[22]=A.length,C[23]=w,C[24]=b,C[25]=m):m=C[25],C[26]!==p||C[27]!==m?(h=(0,a.jsxs)(u.so,{children:[p,m]}),C[26]=p,C[27]=m,C[28]=h):h=C[28],C[29]!==M||C[30]!==I||C[31]!==b?(f=!b&&I.length>0&&(0,a.jsx)(mP,{onClick:M,selectedTypes:I}),C[29]=M,C[30]=I,C[31]=b,C[32]=f):f=C[32],C[33]!==h||C[34]!==f||C[35]!==c?(g=(0,a.jsxs)(u.so,{direction:"column",style:mD,children:[c,h,f]}),C[33]=h,C[34]=f,C[35]=c,C[36]=g):g=C[36],g}function mM(e){return"divider"===e.type?(0,a.jsx)(u.az,{paddingY:1,children:(0,a.jsx)(u.Nj,{})}):"header"===e.type?(0,a.jsx)(u.az,{margin:2,padding:1,children:(0,a.jsx)(u.EY,{muted:!0,size:1,weight:"medium",children:e.title})}):"item"===e.type?(0,a.jsx)(m$,{paddingBottom:1,selected:e.selected,type:e.item}):null}function mP(e){let t,n,r,i=(0,o.c)(9),{onClick:l,selectedTypes:s}=e,{t:d}=iJ();i[0]!==d?(t=d("search.action.clear-type-filters-aria-label"),i[0]=d,i[1]=t):t=i[1];let c=0===s.length;return i[2]!==d?(n=d("search.action.clear-type-filters-label"),i[2]=d,i[3]=n):n=i[3],i[4]!==l||i[5]!==t||i[6]!==c||i[7]!==n?(r=(0,a.jsx)(mA,{padding:1,children:(0,a.jsx)(u.BJ,{children:(0,a.jsx)(y.$n,{"aria-label":t,"data-name":"type-filter-button",disabled:c,mode:"bleed",onClick:l,text:n,tone:"primary"})})}),i[4]=l,i[5]=t,i[6]=c,i[7]=n,i[8]=r):r=i[8],r}let mR=["top-start","bottom-start"];function mO(){let e,t,n,r,i,l,d,c,p,m,h=(0,o.c)(19),[f,g]=(0,s.useState)(!1),[x,b]=(0,s.useState)(null),v=(0,s.useRef)(null),{state:j}=pd(),{fullscreen:w,terms:_}=j,{types:k}=_,{t:S}=iJ();h[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>g(!1),h[0]=e):e=h[0];let T=e;h[1]===Symbol.for("react.memo_cache_sentinel")?(t=()=>g(!0),h[1]=t):t=h[1];let I=t;h[2]!==x?(n=()=>[x,v.current],h[2]=x,h[3]=n):n=h[3],(0,u.PR)(T,n),h[4]!==S||h[5]!==k?(i=pJ({types:k,t:S}),h[4]=S,h[5]=k,h[6]=i):i=h[6],r=i,h[7]===Symbol.for("react.memo_cache_sentinel")?(l=[5,0,0,0],h[7]=l):l=h[7],h[8]===Symbol.for("react.memo_cache_sentinel")?(d=(0,a.jsx)(mz,{}),h[8]=d):d=h[8],h[9]!==x?(c=(0,a.jsx)(pk,{anchorElement:x,onClose:T,children:d}),h[9]=x,h[10]=c):c=h[10];let E=w?"large":"default";return h[11]!==f||h[12]!==E||h[13]!==r?(p=(0,a.jsx)(y.$n,{iconRight:C.D3D,mode:"ghost",onClick:I,size:E,ref:b,selected:f,text:r,tone:"default"}),h[11]=f,h[12]=E,h[13]=r,h[14]=p):p=h[14],h[15]!==f||h[16]!==p||h[17]!==c?(m=(0,a.jsx)(y.AM,{__unstable_margins:l,content:c,open:f,placement:"bottom-start",fallbackPlacements:mR,portal:!0,radius:3,ref:v,children:p}),h[15]=f,h[16]=p,h[17]=c,h[18]=m):m=h[18],m}let mV=(0,g.I4)(u.az)`
547  flex-shrink: ${({$flexShrink:e=0})=>e};
548`;function mL(e){let t,n,r,i,l,s,d,c,p=(0,o.c)(29),{filter:m,fontSize:h,showContent:f}=e,g=void 0===h?1:h,C=void 0===f||f,{t:y}=iJ(),{state:x}=pd(),{definitions:b,fullscreen:v}=x;p[0]!==b.operators||p[1]!==m.operatorType?(t=pg(b.operators,m.operatorType),p[0]=b.operators,p[1]=m.operatorType,p[2]=t):t=p[2];let j=t,w=j?.buttonValueComponent,_=m.value;if(p[3]!==m||p[4]!==g||p[5]!==v?(r=()=>(0,a.jsx)(mV,{$flexShrink:+!!v,children:(0,a.jsx)(ut,{tone:"default",size:g,textOverflow:"ellipsis",weight:"medium",children:(0,a.jsx)(pR,{filter:m,maxLength:v?25:40})})}
548),p[3]=m,p[4]=g,p[5]=v,p[6]=r):r=p[6],p[7]!==g||p[8]!==C?(i=e=>{let{children:t}=e;return C?(0,a.jsx)(mV,{$flexShrink:0,children:(0,a.jsx)(ut,{tone:"default",size:g,textOverflow:"ellipsis",weight:"regular",children:t})}):null},p[7]=g,p[8]=C,p[9]=i):i=p[9],p[10]!==w||p[11]!==_||p[12]!==g||p[13]!==C?(l=e=>{let{children:t}=e;return C?(0,a.jsx)(mV,{$flexShrink:1,children:(0,a.jsx)(ut,{tone:"default",size:g,textOverflow:"ellipsis",weight:"medium",children:w?(0,a.jsx)(w,{value:_}):t})}):null},p[10]=w,p[11]=_,p[12]=g,p[13]=C,p[14]=l):l=p[14],p[15]!==r||p[16]!==i||p[17]!==l?(s={Field:r,Operator:i,Value:l},p[15]=r,p[16]=i,p[17]=l,p[18]=s):s=p[18],n=s,j?.descriptionKey||console.warn("Missing `descriptionKey` for operator `%s`",m.operatorType),!C||!j?.descriptionKey){let e,t=n.Field;return p[19]!==t?(e=(0,a.jsx)(u.so,{align:"center",gap:1,children:(0,a.jsx)(t,{})}),p[19]=t,p[20]=e):e=p[20],e}let k=j?.descriptionKey;return p[21]!==m||p[22]!==y?(d=function(e,t){let n={};return"number"==typeof e.value&&(n.count=e.value),mF(e.value)&&(n.value=e.value),"boolean"==typeof e.value&&(n.value=t(e.value?"search.filter-boolean-true":"search.filter-boolean-false")),iI(e.value)&&"from"in e.value&&mF(e.value.from)&&(n.from=e.value.from),iI(e.value)&&"to"in e.value&&mF(e.value.to)&&(n.to=e.value.to),n}(m,y),p[21]=m,p[22]=y,p[23]=d):d=p[23],p[24]!==n||p[25]!==y||p[26]!==k||p[27]!==d?(c=(0,a.jsx)(u.so,{align:"center",gap:1,children:(0,a.jsx)(an,{t:y,i18nKey:k,components:n,values:d})}),p[24]=n,p[25]=y,p[26]=k,p[27]=d,p[28]=c):c=p[28],c}function mF(e){return"string"==typeof e||"number"==typeof e}function mB(e){let t,n,r,i,l,s,d,c=(0,o.c)(15),{t:p}=iJ();return c[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(ut,{tone:"critical",children:(0,a.jsx)(C.YZv,{})}),c[0]=t):t=c[0],c[1]!==p?(n=p("search.error.display-filter-title"),c[1]=p,c[2]=n):n=c[2],c[3]!==n?(r=(0,a.jsx)(ut,{size:1,tone:"critical",weight:"medium",children:n}),c[3]=n,c[4]=r):r=c[4],c[5]!==p?(i=p("search.error.display-filter-description"),c[5]=p,c[6]=i):i=c[6],c[7]!==i?(l=(0,a.jsx)(ut,{size:1,tone:"critical",children:i}),c[7]=i,c[8]=l):l=c[8],c[9]!==r||c[10]!==l?(s=(0,a.jsxs)(u.so,{align:"flex-start",gap:3,children:[t,(0,a.jsxs)(u.BJ,{space:4,children:[r,l]})]}),c[9]=r,c[10]=l,c[11]=s):s=c[11],c[12]!==e||c[13]!==s?(d=(0,a.jsx)(u.az,{...e,children:s}),c[12]=e,c[13]=s,c[14]=d):d=c[14],d}function mN(e){let t,n,r,i=(0,o.c)(11),{onClick:l,operator:s,selected:d}=e;i[0]!==l||i[1]!==s.type?(t=()=>l(s.type),i[0]=l,i[1]=s.type,i[2]=t):t=i[2];let c=t,{t:u}=iJ();i[3]!==s.nameKey||i[4]!==u?(n=u(s.nameKey),i[3]=s.nameKey,i[4]=u,i[5]=n):n=i[5];let p=s?.icon;return i[6]!==c||i[7]!==d||i[8]!==n||i[9]!==p?(r=(0,a.jsx)(y.Dr,{onClick:c,pressed:d,tone:"default",text:n,iconRight:p}),i[6]=c,i[7]=d,i[8]=n,i[9]=p,i[10]=r):r=i[10],r}function mY(e){let t,n,r,i,l,d,c,p,m,h,f,g=(0,o.c)(38),{filter:x,operator:b}=e,v=(0,s.useId)(),{t:j}=iJ(),{dispatch:w,state:_}=pd();if(g[0]!==w||g[1]!==x||g[2]!==v||g[3]!==b||g[4]!==_.definitions.filters||g[5]!==_.definitions.operators||g[6]!==j){c=Symbol.for("react.early_return_sentinel");e:{let e,o,s,p=_.definitions.filters[x.filterName]?.operators;g[14]!==w||g[15]!==x?(e=e=>{w({filterKey:pb(x),operatorType:e,type:"TERMS_FILTERS_SET_OPERATOR"})},g[14]=w,g[15]=x,g[16]=e):e=g[16];let m=e;if(!b||!p||p.length<=1){c=null;break e}r=u.cV,n=y.IU,g[17]!==b.nameKey||g[18]!==j?(o=j(b.nameKey),g[17]=b.nameKey,g[18]=j,g[19]=o):o=g[19],g[20]!==o?(l=(0,a.jsx)(y.$n,{mode:"ghost",iconRight:C.D3D,text:o}),g[20]=o,g[21]=l):l=g[21],d=v||"",t=u.W1,g[22]!==m||g[23]!==b.type||g[24]!==_.definitions.operators?(s=(e,t)=>{if("item"===e.type){let n=pg(_.definitions.operators,e.name);return n?(0,a.jsx)(mN,{onClick:m,operator:n,selected:b.type===e.name},t):null}return"divider"===e.type?(0,a.jsx)(u.Nj,{},t):null},g[22]=m,g[23]=b.type,g[24]=_.definitions.operators,g[25]=s):s=g[25],i=p.map(s)}g[0]=w,g[1]=x,g[2]=v,g[3]=b,g[4]=_.definitions.filters,g[5]=_.definitions.operators,g[6]=j,g[7]=t,g[8]=n,g[9]=r,g[10]=i,g[11]=l,g[12]=d,g[13]=c}else t=g[7],n=g[8],r=g[9],i=g[10],l=g[11],d=g[12],c=g[13];return c!==Symbol.for("react.early_return_sentinel")?c:(g[26]!==t||g[27]!==i?(p=(0,a.jsx)(t,{children:i}),g[26]=t,g[27]=i,g[28]=p):p=g[28],g[29]===Symbol.for("react.memo_cache_sentinel")?(m={constrainSize:!0,portal:!1,radius:2},g[29]=m):m=g[29],g[30]!==n||g[31]!==l||g[32]!==d||g[33]!==p?(h=(0,a.jsx)(n,{button:l,id:d,menu:p,placement:"bottom-start",popover:m}),g[30]=n,g[31]=l,g[32]=d,g[33]=p,g[34]=h):h=g[34],g[35]!==r||g[36]!==h?(f=(0,a.jsx)(r,{children:h}),g[35]=r,g[36]=h,g[37]=f):f=g[37],f)}function mH(e){let t,n,r,i,l,d,c,p,m,h,f,g,x,b,v,j=(0,o.c)(45),{filter:w}
548=e,[_,k]=(0,s.useState)(null),{dispatch:S,state:T}=pd(),{definitions:I,fullscreen:E}=T;j[0]!==I.filters||j[1]!==w.filterName?(t=I.filters[w.filterName],j[0]=I.filters,j[1]=w.filterName,j[2]=t):t=j[2];let $=t;j[3]!==I.operators||j[4]!==w.operatorType?(n=pg(I.operators,w.operatorType),j[3]=I.operators,j[4]=w.operatorType,j[5]=n):n=j[5];let A=n;j[6]!==I.fields||j[7]!==w?(r=px(I.fields,w),j[6]=I.fields,j[7]=w,j[8]=r):r=j[8];let D=r;j[9]!==w?(i=pb(w),j[9]=w,j[10]=i):i=j[10];let z=i;j[11]!==S||j[12]!==w?(l=()=>{S({filterKey:pb(w),type:"TERMS_FILTERS_REMOVE"})},j[11]=S,j[12]=w,j[13]=l):l=j[13];let M=l;j[14]!==S||j[15]!==z?(d=e=>{S({filterKey:z,type:"TERMS_FILTERS_SET_VALUE",value:e})},j[14]=S,j[15]=z,j[16]=d):d=j[16];let P=d;j[17]===Symbol.for("react.memo_cache_sentinel")?(c=e=>{k(e)},j[17]=c):c=j[17];let R=c,O=A?.inputComponent;if(_){let e;return j[18]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(mB,{padding:4}),j[18]=e):e=j[18],e}return j[19]!==O||j[20]!==D||j[21]!==w.operatorType||j[22]!==w.value||j[23]!==P?(p=O&&(0,a.jsx)(u.Zp,{borderTop:!0,padding:3,children:(0,a.jsx)(O,{fieldDefinition:D,onChange:P,value:w.value},w.operatorType)}),j[19]=O,j[20]=D,j[21]=w.operatorType,j[22]=w.value,j[23]=P,j[24]=p):p=j[24],j[25]!==w?(m=(0,a.jsx)(u.az,{paddingLeft:1,paddingRight:2,paddingY:1,children:(0,a.jsx)(pV,{filter:w})}),j[25]=w,j[26]=m):m=j[26],j[27]!==E||j[28]!==M?(h=E&&(0,a.jsx)(y.$n,{icon:C.ucK,mode:"bleed",onClick:M,tone:"critical",tooltipProps:{content:"Remove filter"}}),j[27]=E,j[28]=M,j[29]=h):h=j[29],j[30]!==m||j[31]!==h?(f=(0,a.jsxs)(u.so,{align:"flex-start",gap:3,justify:"space-between",children:[m,h]}),j[30]=m,j[31]=h,j[32]=f):f=j[32],j[33]!==$?(g=$?.description&&(0,a.jsx)(u.Zp,{border:!0,padding:3,radius:2,tone:"transparent",children:(0,a.jsx)(u.EY,{muted:!0,size:1,children:$.description})}),j[33]=$,j[34]=g):g=j[34],j[35]!==w||j[36]!==A?(x=(0,a.jsx)(mY,{filter:w,operator:A}),j[35]=w,j[36]=A,j[37]=x):x=j[37],j[38]!==f||j[39]!==g||j[40]!==x?(b=(0,a.jsx)(u.Zp,{padding:3,children:(0,a.jsxs)(u.BJ,{space:3,children:[f,g,x]})}),j[38]=f,j[39]=g,j[40]=x,j[41]=b):b=j[41],j[42]!==b||j[43]!==p?(v=(0,a.jsx)(y.tH,{onCatch:R,children:(0,a.jsx)(eX.Ay,{autoFocus:!iO,returnFocus:!0,children:(0,a.jsxs)(u.so,{direction:"column-reverse",children:[p,b]})})}),j[42]=b,j[43]=p,j[44]=v):v=j[44],v}let mZ=(0,g.I4)(u.so)`
549  max-width: 480px;
550  min-width: 150px;
551  overflow: hidden;
552  overflow: clip;
553  width: 100%;
554`;function mU(e){let t,n,r,i=(0,o.c)(6),{filter:l}=e;return i[0]!==l?(t=(0,a.jsx)(mH,{filter:l}),n=!1,i[0]=l,i[1]=t,i[2]=n):(t=i[1],n=i[2]),i[3]!==t||i[4]!==n?(r=(0,a.jsxs)(mZ,{direction:"column",children:[t,n]}),i[3]=t,i[4]=n,i[5]=r):r=i[5],r}let mq=(0,g.I4)(u.$n)`
555  border-radius: ${({theme:e})=>`0 ${(0,u.D0)(e.sanity.radius[2])} ${(0,u.D0)(e.sanity.radius[2])} 0`};
556`,mJ=(0,g.I4)(u.Zp)`
557  position: absolute;
558  right: 0;
559`,mW=g.I4.div`
560  align-items: center;
561  display: inline-flex;
562  max-width: 100%;
563  position: relative;
564`,mK=(0,g.I4)(u.$n)`
565  border: none;
566  width: 100%;
567`;function mG(e){let t,n,r,i,l,d,c,p,m,h,f,g,x,b,v,j=(0,o.c)(45),{filter:w,initialOpen:_}
567=e,[k,S]=(0,s.useState)(_),[T,I]=(0,s.useState)(null),E=(0,s.useRef)(null),{dispatch:$,state:A}=pd(),{definitions:D,fullscreen:z}=A,{t:M}=iJ();j[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>S(!1),j[0]=t):t=j[0];let P=t;j[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>S(!0),j[1]=n):n=j[1];let R=n;j[2]!==$||j[3]!==w?(r=()=>$({filterKey:pb(w),type:"TERMS_FILTERS_REMOVE"}),j[2]=$,j[3]=w,j[4]=r):r=j[4];let O=r;j[5]!==O?(i=e=>{["Backspace","Delete"].includes(e.key)&&O()},j[5]=O,j[6]=i):i=j[6];let V=i;j[7]!==T?(l=()=>[T,E.current],j[7]=T,j[8]=l):l=j[8],(0,u.PR)(P,l),j[9]!==D.fields||j[10]!==D.filters||j[11]!==D.operators||j[12]!==w?(d=pj({fieldDefinitions:D.fields,filter:w,filterDefinitions:D.filters,operatorDefinitions:D.operators}),j[9]=D.fields,j[10]=D.filters,j[11]=D.operators,j[12]=w,j[13]=d):d=j[13];let L=d;j[14]===Symbol.for("react.memo_cache_sentinel")?(c=[5,0,0,0],j[14]=c):c=j[14],j[15]!==w?(p=(0,a.jsx)(mU,{filter:w}),j[15]=w,j[16]=p):p=j[16],j[17]!==T||j[18]!==p?(m=(0,a.jsx)(pk,{anchorElement:T,onClose:P,children:p}),j[17]=T,j[18]=p,j[19]=m):m=j[19];let F=L?"primary":"transparent",B=z?3:2,N=z?3:5,Y=z?3:2;return j[20]!==w||j[21]!==L?(h=(0,a.jsx)(mL,{filter:w,showContent:L}),j[20]=w,j[21]=L,j[22]=h):h=j[22],j[23]!==V||j[24]!==B||j[25]!==N||j[26]!==Y||j[27]!==h?(f=(0,a.jsx)(mK,{mode:"bleed",onClick:R,onKeyDown:V,paddingLeft:B,paddingRight:N,paddingY:Y,ref:I,children:h}),j[23]=V,j[24]=B,j[25]=N,j[26]=Y,j[27]=h,j[28]=f):f=j[28],j[29]!==F||j[30]!==f?(g=(0,a.jsx)(u.Zp,{__unstable_focusRing:!0,display:"flex",radius:2,tone:F,children:f}),j[29]=F,j[30]=f,j[31]=g):g=j[31],j[32]!==z||j[33]!==V||j[34]!==O||j[35]!==L||j[36]!==M?(x=!z&&(0,a.jsx)(mJ,{__unstable_focusRing:!0,display:"flex",radius:2,tone:L?"primary":"transparent",children:(0,a.jsx)(mq,{"aria-label":M("search.action.remove-filter-aria-label"),fontSize:1,icon:C.USm,mode:"bleed",onClick:O,onKeyDown:V,padding:2,radius:2})}),j[32]=z,j[33]=V,j[34]=O,j[35]=L,j[36]=M,j[37]=x):x=j[37],j[38]!==g||j[39]!==x?(b=(0,a.jsxs)(mW,{children:[g,x]}),j[38]=g,j[39]=x,j[40]=b):b=j[40],j[41]!==k||j[42]!==m||j[43]!==b?(v=(0,a.jsx)(y.AM,{__unstable_margins:c,content:m,constrainSize:!0,open:k,overflow:"auto",placement:"bottom-start",portal:!0,radius:3,ref:E,children:b}),j[41]=k,j[42]=m,j[43]=b,j[44]=v):v=j[44],v}function mX(e){let t,n,r,i,l,d,c,p,m,h,f,g,C,x,b=(0,o.c)(38),{showTypeFilter:v}=e,j=void 0===v||v,{dispatch:w,state:_}=pd(),{filters:k,fullscreen:S,lastAddedFilter:T,terms:I}=_,{types:E}=I,{t:$}
567=iJ(),[A,D]=(0,s.useState)(!1);b[0]!==w||b[1]!==j?(t=()=>{j&&w({type:"TERMS_TYPES_CLEAR"}),w({type:"TERMS_FILTERS_CLEAR"})},b[0]=w,b[1]=j,b[2]=t):t=b[2];let z=t,M=k.length>0||j&&E.length>0;b[3]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{D(!0)},r=[],b[3]=n,b[4]=r):(n=b[3],r=b[4]),(0,s.useEffect)(n,r),b[5]!==T?(i=T&&pb(T),b[5]=T,b[6]=i):i=b[6];let P=i;b[7]!==S||b[8]!==z||b[9]!==$?(l=()=>(0,a.jsx)(y.$n,{mode:"bleed",onClick:z,size:S?"large":"default",text:$("search.action.clear-filters"),tone:"critical"}),b[7]=S,b[8]=z,b[9]=$,b[10]=l):l=b[10];let R=l;return b[11]!==j?(d=j&&(0,a.jsx)(mO,{}),b[11]=j,b[12]=d):d=b[12],b[13]!==k||b[14]!==A||b[15]!==P?(c=k?.map(e=>{let t=pb(e);return(0,a.jsx)(mG,{filter:e,initialOpen:A&&P===t},t)}),b[13]=k,b[14]=A,b[15]=P,b[16]=c):c=b[16],b[17]!==S?(p=!S&&(0,a.jsx)(pU,{}),b[17]=S,b[18]=p):p=b[18],b[19]!==c||b[20]!==p||b[21]!==d?(m=(0,a.jsxs)(u.so,{flex:1,gap:2,wrap:"wrap",children:[d,c,p]}),b[19]=c,b[20]=p,b[21]=d,b[22]=m):m=b[22],b[23]!==R||b[24]!==M||b[25]!==S?(h=M&&!S&&(0,a.jsx)(R,{}),b[23]=R,b[24]=M,b[25]=S,b[26]=h):h=b[26],b[27]!==m||b[28]!==h?(f=(0,a.jsxs)(u.so,{align:"flex-start",gap:3,justify:"space-between",padding:2,children:[m,h]}),b[27]=m,b[28]=h,b[29]=f):f=b[29],b[30]!==R||b[31]!==M||b[32]!==S?(g=S&&(0,a.jsxs)(u.so,{justify:"space-between",paddingBottom:2,paddingX:2,children:[(0,a.jsx)(pU,{}),M&&(0,a.jsx)(R,{})]}),b[30]=R,b[31]=M,b[32]=S,b[33]=g):g=b[33],b[34]===Symbol.for("react.memo_cache_sentinel")?(C=!1,b[34]=C):C=b[34],b[35]!==f||b[36]!==g?(x=(0,a.jsxs)(a.Fragment,{children:[f,g,C]}),b[35]=f,b[36]=g,b[37]=x):x=b[37],x}function mQ(e,t){var n,r,i;let a=mI(e).map(e=>e.name),{documentTypes:o,objectTypes:l}=(e._original?.types||[]).filter(e=>!m0(e)||a.includes(e.name)).filter(e=>"slug"!==e.name).filter(e=>!e.name.startsWith("sanity.")).reduce((e,t)=>(m0(t)&&(e.documentTypes[t.name]=t),m7(t)&&(e.objectTypes[t.name]=t),e),{documentTypes:{},objectTypes:{}})||{documentTypes:{},objectTypes:{}};return n=t.reduce((e,t)=>("field"===t.type&&e.push(t.fieldType),e),[]),r=o,i=l,Object.values(r).reduce((e,t)=>{let a=t.fields.reduce((e,a)=>((function e({acc:t,defType:a,depth:o=0,documentType:l,prevFieldPath:s,prevTitlePath:d}){let c=a.name.startsWith("_"),u=a?.title?pF(a.title):eJ(a.name),p=s?`${s}.${a.name}`:a.name,m=d?[...d,u]:[u];if(!(o<=3))return;let h=i[a.type],f=r[a.type],g=m7(a)?a:null,C=f||h||g;if(C)return void C?.fields?.forEach(n=>e({acc:t,defType:n,depth:o+1,documentType:l,prevFieldPath:p,prevTitlePath:m}));n.includes(a.type)&&t.push({documentTypes:l&&!c?[l]:[],fieldPath:p,filterName:function(e){var t;if("string"===(t=e).type&&t.options?.list&&t.options.list.length>0)return"stringList";if(m5(e)){if(e.of.some(e=>"reference"===e.type))return"arrayReferences";if(e.of.find(e=>"block"===e.type))return"portableText";if(m5(e)&&e.of.every(e=>["boolean","number","string"].includes(e.type))&&e.options?.list&&e.options.list.length>0)return"arrayList"}return e.type}(a),id:"",name:a.name,titlePath:m,title:u,type:a.type})})({acc:e,defType:a,documentType:t.name}),e),[]);return e.push(...a),e},[]).reduce((e,t)=>{let n=e.findIndex(e=>e.fieldPath===t.fieldPath&&e.title===t.title&&e.type===t.type);return n>-1?e[n]={...e[n],documentTypes:[...e[n].documentTypes,...t.documentTypes]}:e.push(t),e},[]).map(m2).sort(m3)}function m1(e){return e.reduce((e,t)=>(e[t.id]=t,e),{})}function m2(e){return{...e,id:[e.type,e.fieldPath,e.filterName,e.documentTypes.join(",")].join("-")}}function m5(e){return"array"===e.type}function m0(e){return"document"===e.type}function m7(e){return"object"===e.type}function m3(e,t){let n=e.titlePath.slice(0,-1).join("/"),r=t.titlePath.slice(0,-1).join("/");return e.title.localeCompare(t.title)||n.localeCompare(r)||e.fieldPath.localeCompare(t.fieldPath)}let m8={version:2,recentSearches:[]};function m4(){let e,t,n,r,i,a=(0,o.c)(18),[l,d]=function(){let e,t,n,r,i,a,l,d=(0,o.c)(14),c=Mt(),{dataset:u}=ee7(a7).config();e=`studio.search.recent.${u}`;let[p,m]=(0,s.useState)(m8);d[0]!==c||d[1]!==e?(n=c.getKey(e),d[0]=c,d[1]=e,d[2]=n):n=d[2],t=n,d[3]!==c||d[4]!==e||d[5]!==t?(r=()=>{let n=t.pipe((0,Z.Z)(m8),(0,E.T)(t=>t?t?.version!==2?(c.setKey(e,m8),m8):t:m8)).subscribe({next:m});return()=>n?.unsubscribe()},i=[t,c,e],d[3]=c,d[4]=e,d[5]=t,d[6]=r,d[7]=i):(r=d[6],i=d[7]),(0,s.useEffect)(r,i),d[8]!==c||d[9]!==e?(a=t=>{m(t),c.setKey(e,t)},d[8]=c,d[9]=e,d[10]=a):a=d[10];let h=a;return d[11]!==h||d[12]!==p?(l=[p,h],d[11]=h,d[12]=p,d[13]=l):l=d[13],l}(),c=Cm(),{search:u}=co(),{operators:p,filters:m}=u;a[0]!==m||a[1]!==c?(e=m1(mQ(c,m)),a[0]=m,a[1]=c,a[2]=e):e=a[2],a[3]!==m?(t=ph(m),a[3]=m,a[4]=t):t=a[4],a[5]!==p?(n=pf
567(p),a[5]=p,a[6]=n):n=a[6],a[7]!==e||a[8]!==t||a[9]!==n?(r={fieldDefinitions:e,filterDefinitions:t,operatorDefinitions:n},a[7]=e,a[8]=t,a[9]=n,a[10]=r):r=a[10];let{fieldDefinitions:h,filterDefinitions:f,operatorDefinitions:g}=r;return a[11]!==h||a[12]!==f||a[13]!==g||a[14]!==c||a[15]!==d||a[16]!==l?(i={addSearch:(e,t)=>{let n=(t||[]).map(m9).filter(e=>pj({fieldDefinitions:h,filter:e,filterDefinitions:f,operatorDefinitions:g})),r={created:new Date().toISOString(),filters:n,terms:{query:e.query.trim(),typeNames:e.types.map(m6)}},i={version:2,recentSearches:[r,...l.recentSearches.filter(e=>!eN(nL(e,"created"),nL(r,"created")))].slice(0,5)};return d(i),he({fieldDefinitions:h,filterDefinitions:f,operatorDefinitions:g,schema:c,storedSearch:i,setStoredSearch:d})},getRecentSearches:()=>he({fieldDefinitions:h,filterDefinitions:f,operatorDefinitions:g,schema:c,storedSearch:l,setStoredSearch:d}),removeSearch:()=>{let e={...l,recentSearches:[]};return d(e),he({fieldDefinitions:h,filterDefinitions:f,operatorDefinitions:g,schema:c,storedSearch:e,setStoredSearch:d})},removeSearchAtIndex:e=>{if(e<0||e>l.recentSearches.length)return he({fieldDefinitions:h,filterDefinitions:f,operatorDefinitions:g,schema:c,storedSearch:l,setStoredSearch:d});let t={...l,recentSearches:[...l.recentSearches.slice(0,e),...l.recentSearches.slice(e+1)]};return d(t),he({fieldDefinitions:h,filterDefinitions:f,operatorDefinitions:g,schema:c,storedSearch:t,setStoredSearch:d})}},a[11]=h,a[12]=f,a[13]=g,a[14]=c,a[15]=d,a[16]=l,a[17]=i):i=a[17],i}function m6(e){return e.name}function m9(e){return{fieldId:e.fieldId,filterName:e.filterName,operatorType:e.operatorType,value:e.value}}function he({schema:e,fieldDefinitions:t,filterDefinitions:n,operatorDefinitions:r,storedSearch:i,setStoredSearch:a}){return(function({fieldDefinitions:e,filterDefinitions:t,operatorDefinitions:n,studioSchema:r,storedSearch:i,setStoredSearch:a}){let o=mI(r).map(e=>e.name),l={version:2,recentSearches:i.recentSearches.filter(r=>r.terms.typeNames.every(e=>o.includes(e))&&r.filters.every(r=>pj({fieldDefinitions:e,filter:r,filterDefinitions:t,operatorDefinitions:n})))};return l.recentSearches.length<i.recentSearches.length&&a(l),l})({studioSchema:e,filterDefinitions:n,fieldDefinitions:t,operatorDefinitions:r,storedSearch:i,setStoredSearch:a}).recentSearches.filter(e=>!!e.terms).map((t,n)=>({__recent:{index:n,timestamp:new Date(t.created).getTime()},filters:t.filters,query:t.terms.query,types:t.terms.typeNames.map(t=>e.get(t)).filter(e=>!!(e&&"object"===e.jsonType))}))}function ht(){let e,t,n=(0,o.c)(3),{t:r}=iJ();return n[0]===Symbol.for("react.memo_cache_sentinel")?(e={ControlsIcon:hn},n[0]=e):e=n[0],n[1]!==r?(t=(0,a.jsx)(u.so,{align:"center",direction:"column",gap:4,paddingX:4,paddingY:5,children:(0,a.jsx)(u.cV,{space:3,children:(0,a.jsx)(u.EY,{muted:!0,children:(0,a.jsx)(an,{t:r,i18nKey:"search.instructions",components:e})})})}),n[1]=r,n[2]=t):t=n[2],t}function hn(){return(0,a.jsx)(C.YW2,{style:{padding:"0 0.25rem"}},0)}function hr(e){let t,n,r,i=(0,o.c)(6),{availableCharacters:l,types:s}=e,{t:d}=iJ();return i[0]!==l||i[1]!==d||i[2]!==s?(n=pJ({availableCharacters:l,types:s,t:d}),i[0]=l,i[1]=d,i[2]=s,i[3]=n):n=i[3],t=n,i[4]!==t?(r=(0,a.jsx)(u.Zp,{border:!0,padding:2,radius:2,children:(0,a.jsx)(u.EY,{muted:!0,size:1,children:t})}),i[4]=t,i[5]=r):r=i[5],r}let hi=(0,g.I4)(u.Zp)`
568  cursor: default;
569`;function ha(e){let t,n=(0,o.c)(2),{filter:r}=e;return n[0]!==r?(t=(0,a.jsx)(hi,{border:!0,padding:2,radius:2,tone:"primary",children:(0,a.jsx)(mL,{filter:r})}),n[0]=r,n[1]=t):t=n[1],t}let ho=(0,g.I4)(u.$n)`
570  border-radius: ${({theme:e})=>(0,u.D0)(e.sanity.radius[2])};
571  cursor: default;
572  width: 100%;
573`,hl=(0,g.I4)(u.az)`
574  flex-shrink: 3;
575`,hs=(0,g.I4)(u.so)`
576  flex-shrink: 2;
577`,hd=g.I4.div`
578  opacity: 0.8;
579  visibility: hidden;
580
581  @media (hover: hover) {
582    ${ho}:hover & {
583      visibility: visible;
584    }
585    &:hover {
586      opacity: 0.4;
587    }
588  }
589`;function hc(e){let t,n,r,i,l,s,d,c,p,m,h,f,g,y,x,b,v=(0,o.c)(36);v[0]!==e?({index:t,maxVisibleTypePillChars:r,value:i,...n}=e,v[0]=e,v[1]=t,v[2]=n,v[3]=r,v[4]=i):(t=v[1],n=v[2],r=v[3],i=v[4]);let j=void 0===r?40:r,{dispatch:w}=pd(),_=m4(),k=j-i.query.length;v[5]!==w||v[6]!==_||v[7]!==i?(l=()=>{w({type:"TERMS_SET",filters:i?.filters,terms:i}),_&&_?.addSearch(i,i?.filters)},v[5]=w,v[6]=_,v[7]=i,v[8]=l):l=v[8];let S=l;v[9]!==t||v[10]!==_?(s=e=>{e.stopPropagation(),_&&_?.removeSearchAtIndex(t)},v[9]=t,v[10]=_,v[11]=s):s=v[11];let T=s;return v[12]===Symbol.for("react.memo_cache_sentinel")?(d=(0,a.jsxs)(u.cV,{paddingY:2,children:[(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(C.O4,{})}),(0,a.jsx)(u.EY,{children:"​"})]}),v[12]=d):d=v[12],v[13]!==i.query?(c=i.query&&(0,a.jsx)(hs,{align:"center",paddingY:2,children:(0,a.jsx)(u.EY,{muted:!0,size:1,textOverflow:"ellipsis",weight:"medium",children:i.query})}),v[13]=i.query,v[14]=c):c=v[14],v[15]!==k||v[16]!==i.types?(p=i.types.length>0&&(0,a.jsx)(hl,{children:(0,a.jsx)(hr,{availableCharacters:k,types:i.types})}),v[15]=k,v[16]=i.types,v[17]=p):p=v[17],v[18]!==i.filters?(m=i?.filters?.map(hu),v[18]=i.filters,v[19]=m):m=v[19],v[20]!==c||v[21]!==p||v[22]!==m?(h=(0,a.jsxs)(u.so,{align:"stretch",flex:1,gap:2,justify:"flex-start",marginLeft:3,wrap:"wrap",children:[c,p,m]}),v[20]=c,v[21]=p,v[22]=m,v[23]=h):h=v[23],v[24]===Symbol.for("react.memo_cache_sentinel")?(f=(0,a.jsx)(u.so,{padding:2,children:(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.USm,{})})}),v[24]=f):f=v[24],v[25]!==T?(g=(0,a.jsx)(u.so,{align:"center",children:(0,a.jsx)(hd,{onClick:T,children:f})}),v[25]=T,v[26]=g):g=v[26],v[27]!==g||v[28]!==h?(y=(0,a.jsxs)(u.so,{align:"stretch",children:[d,h,g]}),v[27]=g,v[28]=h,v[29]=y):y=v[29],v[30]!==S||v[31]!==y?(x=(0,a.jsx)(ho,{mode:"bleed",onClick:S,paddingLeft:3,paddingRight:1,paddingY:1,tabIndex:-1,
589children:y}),v[30]=S,v[31]=y,v[32]=x):x=v[32],v[33]!==n||v[34]!==x?(b=(0,a.jsx)(u.az,{...n,children:x}),v[33]=n,v[34]=x,v[35]=b):b=v[35],b}function hu(e,t){return(0,a.jsx)(ha,{filter:e},t)}let hp=(0,g.I4)(u.Zp)`
590  overflow-x: hidden;
591  overflow-y: auto;
592  position: relative;
593`;function hm(e){let t,n,r,i,l,d,c=(0,o.c)(17),{inputElement:p}=e,{state:m}=pd(),{filtersVisible:h,fullscreen:f}=m,g=m4();c[0]!==g?(n=g?.getRecentSearches(),c[0]=g,c[1]=n):n=c[1],t=n;let C=(0,s.useRef)(null),{t:x}=iJ();c[2]!==g?(r=()=>{g&&g.removeSearch(),C?.current?.focusInputElement()},c[2]=g,c[3]=r):r=c[3];let b=r,v=2>(0,u.aY)()?20:40;c[4]!==v?(i=(e,t)=>{let{virtualIndex:n}=t;return(0,a.jsx)(hc,{index:n,maxVisibleTypePillChars:v,paddingBottom:1,value:e})},c[4]=v,c[5]=i):i=c[5];let j=i,w=!!t.length,_=w||!w&&!h&&f;return c[6]!==h||c[7]!==f||c[8]!==b||c[9]!==p||c[10]!==t||c[11]!==j||c[12]!==x?(l=t.length>0?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.az,{paddingBottom:2,paddingTop:4,paddingX:3,children:(0,a.jsx)(u.EY,{muted:!0,size:1,weight:"medium",children:x("search.recent-searches-label")})}),(0,a.jsx)(u.az,{children:(0,a.jsx)(rY,{activeItemDataAttr:"data-hovered",ariaLabel:x("search.recent-searches-aria-label"),inputElement:p,initialIndex:0,itemHeight:36,items:t,paddingX:2,paddingY:1,renderItem:j})}),(0,a.jsx)(u.az,{paddingBottom:2,paddingTop:1,paddingX:2,children:(0,a.jsx)(y.$n,{mode:"bleed",onClick:b,tone:"default",text:x("search.action.clear-recent-searches"),muted:!0})})]}):!h&&f&&(0,a.jsx)(ht,{}),c[6]=h,c[7]=f,c[8]=b,c[9]=p,c[10]=t,c[11]=j,c[12]=x,c[13]=l):l=c[13],c[14]!==_||c[15]!==l?(d=(0,a.jsx)(hp,{borderTop:_,flex:1,children:l}),c[14]=_,c[15]=l,c[16]=d):d=c[16],d}let hh=(0,g.i7)`
594  from {
595    transform: rotate(0deg);
596  }
597  to {
598    transform: rotate(360deg);
599  }
600`,hf=(0,g.I4)(C.Nl1)`
601  animation: ${hh} 500ms linear infinite;
602`,hg=g.I4.div`
603  line-height: 0;
604  position: relative;
605`,hC=(0,s.forwardRef)(function(e,t){let n,r,i,l,d,c,p,m,h,f,g,x,b,v,j,w=(0,o.c)(48),{ariaInputLabel:_,onClose:k}=e,S=(0,s.useRef)(!1),{t:T}=iJ(),{dispatch:I,state:E}=pd(),{filters:$,filtersVisible:A,fullscreen:D,result:z,terms:M}=E,{loading:P}=z,{types:R,query:O}=M;w[0]!==M?(n=pc({terms:M}),w[0]=M,w[1]=n):n=w[1];let V=n;w[2]!==_||w[3]!==V||w[4]!==T?(r=T(_||V?"search.search-results-aria-label":"search.recent-searches-aria-label"),w[2]=_,w[3]=V,w[4]=T,w[5]=r):r=w[5];let L=r;w[6]!==I||w[7]!==A?(i=()=>I({type:"FILTERS_VISIBLE_SET",visible:!A}),w[6]=I,w[7]=A,w[8]=i):i=w[8];let F=i;w[9]!==I?(l=e=>I({type:"TERMS_QUERY_SET",query:e.currentTarget.value}),w[9]=I,w[10]=l):l=w[10];let B=l;w[11]!==I?(d=()=>{I({type:"TERMS_QUERY_SET",query:""})},w[11]=I,w[12]=d):d=w[12];let N=d;w[13]!==I||w[14]!==D?(c=()=>{D||I({type:"FILTERS_VISIBLE_SET",visible:!0})},p=[I,D],w[13]=I,w[14]=D,w[15]=c,w[16]=p):(c=w[15],p=w[16]),(0,s.useEffect)(c,p),w[17]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{S.current=!0},h=[],w[17]=m,w[18]=h):(m=w[17],h=w[18]),(0,s.useEffect)(m,h);let Y=$.length>0||R.length>0,H=D?2:1,Z=D?2:1;w[19]!==D||w[20]!==k||w[21]!==T?(f=D&&(0,a.jsx)(y.$n,{"aria-label":T("search.action.close-search-aria-label"),icon:C.A60,mode:"bleed",onClick:k,size:"large",tooltipProps:{content:T("search.action.close-search-aria-label")}}),w[19]=D,w[20]=k,w[21]=T,w[22]=f):f=w[22];let U=!!O;w[23]===Symbol.for("react.memo_cache_sentinel")?(g=[2,2,1],w[23]=g):g=w[23];let q=P?hf:C.WIv;return w[24]!==T?(x=T("search.placeholder"),w[24]=T,w[25]=x):x=w[25],w[26]!==L||w[27]!==D||w[28]!==B||w[29]!==N||w[30]!==O||w[31]!==t||w[32]!==U||w[33]!==q||w[34]!==x?(b=(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(pI,{__unstable_disableFocusRing:!0,$background:D,$smallClearButton:D,"aria-label":L,autoComplete:"off",border:!1,clearButton:U,fontSize:g,icon:q,onChange:B,onClear:N,placeholder:x,radius:2,ref:t,spellCheck:!1,value:O})}),w[26]=L,w[27]=D,w[28]=B,w[29]=N,w[30]=O,w[31]=t,w[32]=U,w[33]=q,w[34]=x,w[35]=b):b=w[35],w[36]!==A||w[37]!==D||w[38]!==F||w[39]!==Y||w[40]!==T?(v=D&&(0,a.jsx)(hg,{children:(0,a.jsx)(enu,{"aria-expanded":A,"aria-label":T("search.action.toggle-filters-aria-label",{context:A?"hide":"show"}),icon:C.YW2,mode:"bleed",onClick:F,selected:A,size:"large",tone:Y?"primary":void 0,tooltipProps:{content:T("search.action.toggle-filters-label",{context:A?"hide":"show"})}})}),w[36]=A,w[37]=D,w[38]=F,w[39]=Y,w[40]=T,w[41]=v):v=w[41],w[42]!==H||w[43]!==Z||w[44]!==f||w[45]!==b||w[46]!==v?(j=(0,a.jsx)(u.Zp,{flex:"none",children:(0,a.jsxs)(u.so,{align:"center",flex:1,gap:H,padding:Z,children:[f,b,v]})}),w[42]=H,w[43]=Z,w[44]=f,w[45]=b,w[46]=v,w[47]=j):j=w[47],j});function hy(){let e,t,n,r,i,l=(0,o.c)(11),{t:s}=iJ();return l[0]!==s?(e=s("search.no-results-title"),l[0]=s,l[1]=e):e=l[1],l[2]!==e?(t=(0,a.jsx)(u.EY,{align:"center",muted:!0,size:1,weight:"medium",children:e}),l[2]=e,l[3]=t):t=l[3],l[4]!==s?(n=s("search.no-results-help-description"),l[4]=s,l[5]=n):n=l[5],l[6]!==n?(r=(0,a.jsx)(u.EY,{align:"center",muted:!0,size:1,children:n}),l[6]=n,l[7]=r):r=l[7],l[8]!==t||l[9]!==r?(i=(0,a.jsx)(u.mc,{width:0,children:(0,a.jsxs)(u.BJ,{"aria-live":"assertive",space:4,paddingX:4,paddingY:5,children:[t,r]})}),l[8]=t,l[9]=r,l[10]=i):i=l[10],i}function hx(){let e,t,n,r,i,l,s=(0,o.c)(12),{t:d}=iJ();return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(u.az,{marginBottom:1,children:(0,a.jsx)(ut,{tone:"critical",children:(0,a.jsx)(C.sAQ,{})})}),s[0]=e):e=s[0],s[1]!==d?(t=d("search.error.unspecified-error-title"),s[1]=d,s[2]=t):t=s[2],s[3]!==t?(n=(0,a.jsx)(ut,{size:2,tone:"critical",weight:"medium",children:t}),s[3]=t,s[4]=n):n=s[4],s[5]!==d?(r=d("search.error.unspecified-error-help-description"),s[5]=d,s[6]=r):r=s[6],s[7]!==r?(i=(0,a.jsx)(ut,{size:1,tone:"critical",children:r}),s[7]=r,s[8]=i):i=s[8],s[9]!==n||s[10]!==i?(l=(0,a.jsxs)(u.so,{align:"center","aria-live":"assertive",direction:"column",flex:1,gap:3,marginY:2,padding:4,children:[e,n,i]}),s[9]=n,s[10]=i,s[11]=l):l=s[11],l}let hb=({searchStrategy:e})=>({createdAsc:{ignoreScore:!0,sort:{direction:"asc",field:"_createdAt"},titleKey:"search.ordering.created-ascending-label"},createdDesc:{ignoreScore:!0,sort:{direction:"desc",field:"_createdAt"},titleKey:"search.ordering.created-descending-label"},relevance:{customMeasurementLabel:"relevance",..."groqLegacy"===e?{sort:{direction:"desc",field:"_updatedAt"}}:{},titleKey:"search.ordering.best-match-label"},updatedAsc:{ignoreScore:!0,sort:{direction:"asc",field:"_updatedAt"},titleKey:"search.ordering.updated-ascending-label"},updatedDesc:{ignoreScore:!0,sort:{direction:"desc",field:"_updatedAt"},titleKey:"search.ordering.updated-descending-label"}}),hv=(0,g.I4)(u.so)`
606  box-sizing: border-box;
607`;function hj(e){return"divider"===e.type}function hw(e){let t,n,r,i,l,s=(0,o.c)(13),{ordering:d}=e,{t:c}=iJ(),{dispatch:u,state:p}=pd(),{ordering:m}=p;s[0]!==u||s[1]!==d?(t=()=>{u({ordering:d,type:"ORDERING_SET"})}
607,s[0]=u,s[1]=d,s[2]=t):t=s[2];let h=t;return s[3]!==m||s[4]!==d?(r=eN(m,d),s[3]=m,s[4]=d,s[5]=r):r=s[5],n=r,s[6]!==d.titleKey||s[7]!==c?(i=c(d.titleKey),s[6]=d.titleKey,s[7]=c,s[8]=i):i=s[8],s[9]!==h||s[10]!==n||s[11]!==i?(l=(0,a.jsx)(y.Dr,{onClick:h,pressed:n,tone:"default",text:i}),s[9]=h,s[10]=n,s[11]=i,s[12]=l):l=s[12],l}function h_(){let{t:e}=iJ(),{strategy:t}=lE().search,{state:{ordering:n}}=pd(),r=(0,s.useId)(),i=(0,s.useMemo)(()=>{let e=hb({searchStrategy:t});return[e.relevance,{type:"divider"},e.createdAsc,e.createdDesc,{type:"divider"},e.updatedAsc,e.updatedDesc]},[t]),o=i.find(e=>eN(n,e)&&!hj(e));return o?(0,a.jsx)(u.Zp,{borderBottom:!0,children:(0,a.jsx)(hv,{align:"center",flex:1,padding:2,children:(0,a.jsx)(y.IU,{button:(0,a.jsx)(y.$n,{mode:"bleed",icon:C.ycB,text:e(o.titleKey)}),id:r||"",menu:(0,a.jsx)(u.W1,{children:i.map((e,t)=>hj(e)?(0,a.jsx)(u.Nj,{},t):(0,a.jsx)(hw,{ordering:e},t))}),placement:"bottom-start",popover:{portal:!0,radius:2}})})}):null}let hk=(0,g.I4)(u.Zp)`
608  cursor: help;
609  left: 0;
610  position: absolute;
611  top: 0;
612`;function hS(e){let t,n,r,i,l,s,d,c,p=(0,o.c)(18),{data:m}=e,{score:h}=m,f="default";if(h<=.1?f="critical":h>=.5&&(f="primary"),p[0]!==m.stories){let e=m.stories.filter(hI);n=y.m_,t=u.BJ,r=2,i=e.length?(0,a.jsx)(a.Fragment,{children:e.map(hT)}):(0,a.jsx)(u.Cy,{size:0,children:"No matches"}),p[0]=m.stories,p[1]=t,p[2]=n,p[3]=r,p[4]=i}else t=p[1],n=p[2],r=p[3],i=p[4];return p[5]!==t||p[6]!==r||p[7]!==i?(l=(0,a.jsx)(t,{space:r,children:i}),p[5]=t,p[6]=r,p[7]=i,p[8]=l):l=p[8],p[9]!==h?(s=(0,a.jsxs)(u.Cy,{size:0,children:["score: ",h]}),p[9]=h,p[10]=s):s=p[10],p[11]!==s||p[12]!==f?(d=(0,a.jsx)(hk,{padding:1,shadow:1,tone:f,children:s}),p[11]=s,p[12]=f,p[13]=d):d=p[13],p[14]!==n||p[15]!==l||p[16]!==d?(c=(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(n,{content:l,placement:"bottom-start",portal:!0,children:d})}),p[14]=n,p[15]=l,p[16]=d,p[17]=c):c=p[17],c}function hT(e){return(0,a.jsxs)(u.cV,{space:3,children:[(0,a.jsx)(u.Cy,{size:0,weight:"medium",children:e.path}),(0,a.jsx)(u.Cy,{size:0,children:e.why})]},e.path)}function hI(e){return e.score>0}function hE(e){return e._system?.delete===!0}let h$={isLoading:!0},hA={isLoading:!1,value:{title:void 0,description:void 0}};function hD(e){let t,n,r=(0,o.c)(12);r[0]!==e?(t=e||{},r[0]=e,r[1]=t):t=r[1];let{enabled:i,ordering:a,schemaType:l,value:s}=t,{observeForPreview:d}=z4(),{perspectiveStack:c}=oW();e:{let e,t;if(!(void 0===i||i)||!s||!l){let e;r[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,k.of)(hA),r[2]=e):e=r[2],n=e;break e}r[3]!==c||r[4]!==s?(e=c.length>1&&hE(s)?c.slice(1):c,r[3]=c,r[4]=s,r[5]=e):e=r[5];let o=e;r[6]!==d||r[7]!==a||r[8]!==l||r[9]!==s||r[10]!==o?(t=d(s,l,{perspective:o,viewOptions:{ordering:a}}).pipe((0,E.T)(hM),(0,M.W)(hz)),r[6]=d,r[7]=a,r[8]=l,r[9]=s,r[10]=o,r[11]=t):t=r[11],n=t}return(0,eH.J)(n,h$)}function hz(e){return(0,k.of)({isLoading:!1,error:e})}function hM(e){return{isLoading:!1,value:e.snapshot||void 0}}let hP=g.I4.div(e=>{let{$index:t}=e,n={asap:lo.asap.tone,scheduled:lo.scheduled.tone,undecided:lo.undecided.tone};return(0,g.AH)`
613    width: 5px;
614    height: 5px;
615    background-color: var(--card-icon-color);
616    border-radius: 999px;
617    box-shadow: 0 0 0 1px var(--card-bg-color);
618    z-index: ${t};
619    &[data-status='published'] {
620      --card-icon-color: var(--card-badge-positive-dot-color);
621    }
622    &[data-status='draft'] {
623      --card-icon-color: var(--card-badge-caution-dot-color);
624    }
625    &[data-status='asap'] {
626      --card-icon-color: var(--card-badge-${n.asap}-dot-color);
627    }
628    &[data-status='undecided'] {
629      --card-icon-color: var(--card-badge-${n.undecided}-dot-color);
630    }
631    &[data-status='scheduled'] {
632      --card-icon-color: var(--card-badge-${n.scheduled}-dot-color);
633    }
634  `});function hR({draft:e,published:t,versions:n}){let{data:r}=lp(),{document:{drafts:{enabled:i}}}=lE(),o=(0,s.useMemo)(()=>n?Object.entries(n).map(([e,t])=>t?r?.find(t=>o4(t._id)===e)?.metadata.releaseType:void 0):[],[r,n]),l=[{status:"published",show:!!t},{status:"draft",show:i&&!!e},{status:"asap",show:o.includes("asap")},{status:"scheduled",show:o.includes("scheduled")},{status:"undecided",show:o.includes("undecided")}];return(0,a.jsx)(u.so,{children:l.filter(({show:e})=>e).map(({status:e},t)=>(0,a.jsx)(hP,{"data-status":e,$index:t+1},e))})}let hO=(0,g.I4)(u.az)`
635  @supports (-webkit-overflow-scrolling: touch) {
636    * [data-ui='Box'] {
637      background-attachment: scroll;
638    }
639  }
640`;function hV({documentId:e,documentType:t,layout:n,presence:r,schemaType:i,showBadge:o=!0,perspective:l}){let d=z4(),c=(0,s.useMemo)(()=>D4(d,i,e,l),[d,i,e,l]),p=(0,s.useMemo)(()=>({_id:e,_type:t}),[e,t]),{isLoading:m,snapshot:h,original:f}=(0,eH.J)(c,{snapshot:null,isLoading:!0,original:null}),g=uK(e),C=(0,s.useMemo)(()=>m?null:(0,a.jsxs)(u.so,{align:"center",gap:3,children:[r&&r.length>0&&(0,a.jsx)(yG,{presence:r}
640),o&&(0,a.jsx)(u.Ex,{children:i.title}),(0,a.jsx)(hR,{draft:g.draft,published:g.published,versions:g.versions})]}),[m,r,i.title,o,g.draft,g.published,g.versions]),y=(0,a.jsx)(etu,{draft:g.draft,published:g.published,versions:g.versions});return(0,a.jsx)(hO,{children:(0,a.jsx)(cU,{...D9({snapshot:h,original:f,fallback:p}),isPlaceholder:m??!0,layout:n||"default",icon:i.icon,status:C,tooltip:y})})}function hL(e){let t,n,r,i,l,d,c,p,m,h,f,g,C,x,b,v,j,w,_,k,S,T,I,E,$,A,D=(0,o.c)(68);D[0]!==e?({disableIntentLink:t,documentId:n,documentType:r,layout:i,onClick:l,onItemSelect:d,previewPerspective:c,...p}=e,D[0]=e,D[1]=t,D[2]=n,D[3]=r,D[4]=i,D[5]=l,D[6]=d,D[7]=c,D[8]=p):(t=D[1],n=D[2],r=D[3],i=D[4],l=D[5],d=D[6],c=D[7],p=D[8]);let z=Cm();D[9]!==r||D[10]!==z?(m=z.get(r),D[9]=r,D[10]=z,D[11]=m):m=D[11];let M=m,P=cW(n);D[12]!==n?(f=ib(n),D[12]=n,D[13]=f):f=D[13];let R=M?.name;D[14]!==f||D[15]!==R?(g={id:f,type:R},D[14]=f,D[15]=R,D[16]=g):g=D[16],h=g,D[17]!==h?(C={intent:"edit",params:h},D[17]=h,D[18]=C):C=D[18];let{onClick:O,href:V}=(0,tq.cQ)(C),{state:L}=pd(),{t:F}=iJ(),B=z3(),[N,Y]=(0,s.useState)(null),H=N?.granted;D[19]!==n||D[20]!==r||D[21]!==B||D[22]!==L.canDisableAction?(x=()=>{L.canDisableAction&&B.checkDocumentPermission("create",{_id:n,_type:r}).subscribe(Y)},b=[n,r,B,L.canDisableAction],D[19]=n,D[20]=r,D[21]=B,D[22]=L.canDisableAction,D[23]=x,D[24]=b):(x=D[23],b=D[24]),(0,s.useEffect)(x,b),D[25]!==n||D[26]!==L.disabledDocumentIds?(v=L.disabledDocumentIds?.some(e=>e.includes(ib(n))),D[25]=n,D[26]=L.disabledDocumentIds,D[27]=v):v=D[27];let Z=v,U=!H&&L.canDisableAction||Z;D[28]!==n||D[29]!==r?(w={_id:n,_type:r},D[28]=n,D[29]=r,D[30]=w):w=D[30],j=w,D[31]!==j||D[32]!==M?(_={enabled:!0,schemaType:M,value:j},D[31]=j,D[32]=M,D[33]=_):_=D[33];let q=hD(_);D[34]!==t||D[35]!==n||D[36]!==r||D[37]!==l||D[38]!==O||D[39]!==d||D[40]!==q?(k=e=>{d?.({_id:n,_type:r,title:q.value?.title}),t||O(e),l?.(e)},D[34]=t,D[35]=n,D[36]=r,D[37]=l,D[38]=O,D[39]=d,D[40]=q,D[41]=k):k=D[41];let J=k;if(!M)return null;let W=U?void 0:"a",K=U||t?void 0:V,G=U?"none":void 0,X=U?.5:1;D[42]!==G||D[43]!==X?(S={pointerEvents:G,opacity:X},D[42]=G,D[43]=X,D[44]=S):S=D[44],D[45]!==n||D[46]!==P||D[47]!==r||D[48]!==i||D[49]!==c||D[50]!==M?(T=(0,a.jsx)(hV,{documentId:n,documentType:r,layout:i,perspective:c,presence:P,schemaType:M}),D[45]=n,D[46]=P,D[47]=r,D[48]=i,D[49]=c,D[50]=M,D[51]=T):T=D[51],D[52]!==J||D[53]!==W||D[54]!==K||D[55]!==S||D[56]!==T?(I=(0,a.jsx)(etM,{as:W,"data-as":"a",flex:1,href:K,onClick:J,radiu
640s:2,tabIndex:-1,style:S,children:T}),D[52]=J,D[53]=W,D[54]=K,D[55]=S,D[56]=T,D[57]=I):I=D[57],D[58]!==p||D[59]!==I?(E=(0,a.jsx)(u.az,{...p,children:I}),D[58]=p,D[59]=I,D[60]=E):E=D[60];let Q=E;D[61]!==Z||D[62]!==F?($=F(Z?"search.disabledItem":"release.action.permission.error"),D[61]=Z,D[62]=F,D[63]=$):$=D[63];let ee=$;return D[64]!==Q||D[65]!==U||D[66]!==ee?(A=U?(0,a.jsx)(y.m_,{content:ee,placement:"top",children:Q}):Q,D[64]=Q,D[65]=U,D[66]=ee,D[67]=A):A=D[67],A}let hF=(0,g.I4)(u.so)`
641  opacity: ${({$loadingFirstPage:e})=>e?.5:1};
642  overflow-x: hidden;
643  overflow-y: auto;
644  position: relative;
645  transition: 300ms opacity;
646  width: 100%;
647`;function hB(e){let t,n,r,i,l,s,d,c,p=(0,o.c)(36),{disableIntentLink:m,inputElement:h,onItemSelect:f,previewPerspective:g}=e,{dispatch:C,onClose:y,setSearchCommandList:x,state:b}=pd(),{debug:v,filters:j,fullscreen:w,lastActiveIndex:_,result:k,terms:S,cursor:T}=b,{t:I}=iJ(),E=m4(),$=!!k.hits.length,A=!k.hits.length&&k.loaded,D=k.error;p[0]!==j||p[1]!==y||p[2]!==E||p[3]!==S?(t=e=>{E&&E.addSearch(S,j),e.metaKey||e.ctrlKey||y?.()},p[0]=j,p[1]=y,p[2]=E,p[3]=S,p[4]=t):t=p[4];let z=t;p[5]!==C?(n=()=>{C({type:"PAGE_INCREMENT"})},p[5]=C,p[6]=n):n=p[6];let M=n;p[7]!==v||p[8]!==m||p[9]!==z||p[10]!==f||p[11]!==g?(r=e=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(hL,{disableIntentLink:m,documentId:e.hit._id||"",documentType:e.hit._type,onClick:z,onItemSelect:f,previewPerspective:g,paddingY:1}),v&&(0,a.jsx)(hS,{data:e})]}),p[7]=v,p[8]=m,p[9]=z,p[10]=f,p[11]=g,p[12]=r):r=p[12];let P=r,R=w||!!(D||$||A);p[13]!==$?(i=$&&(0,a.jsx)(h_,{}),p[13]=$,p[14]=i):i=p[14];let O=k.loading&&null===T;return p[15]!==M||p[16]!==D||p[17]!==A||p[18]!==$||p[19]!==h||p[20]!==_||p[21]!==P||p[22]!==k.hits||p[23]!==x||p[24]!==I?(l=D?(0,a.jsx)(hx,{}):(0,a.jsxs)(a.Fragment,{children:[$&&(0,a.jsx)(rY,{activeItemDataAttr:"data-hovered",ariaLabel:I("search.search-results-label"),"data-testid":"search-results",fixedHeight:!0,initialIndex:_,inputElement:h,itemHeight:57,items:k.hits,overscan:4,onEndReached:M,paddingX:2,paddingY:1,ref:x,renderItem:P}),A&&(0,a.jsx)(hy,{})]}),p[15]=M,p[16]=D,p[17]=A,p[18]=$,p[19]=h,p[20]=_,p[21]=P,p[22]=k.hits,p[23]=x,p[24]=I,p[25]=l):l=p[25],p[26]!==k.loading||p[27]!==O||p[28]!==l?(s=(0,a.jsx)(hF,{$loadingFirstPage:O,"aria-busy":k.loading,flex:1,children:l}),p[26]=k.loading,p[27]=O,p[28]=l,p[29]=s):s=p[29],p[30]!==i||p[31]!==s?(d=(0,a.jsxs)(u.so,{direction:"column",height:"fill",children:[i,s]}),p[30]=i,p[31]=s,p[32]=d):d=p[32],p[33]!==d||p[34]!==R?(c=(0,a.jsx)(u.so,{children:(0,a.jsx)(u.Zp,{borderTop:R,flex:1,children:d})}),p[33]=d,p[34]=R,p[35]=c):c=p[35],c}let hN={duration:.4,type:"spring"},hY={open:{opacity:1,scale:1,x:"-50%"},closed:{opacity:0,scale:.99,x:"-50%"}},hH={open:{opacity:1},closed:{opacity:0}},hZ=(0,g.I4)(tW.P.create(u.Zp))`
648  background-color: var(--card-backdrop-color);
649  bottom: 0;
650  left: 0;
651  position: absolute;
652  right: 0;
653  top: 0;
654`,hU=(0,g.I4)(tW.P.create(u.Zp))`
655  display: flex !important;
656  flex-direction: column;
657  left: 50%;
658  max-height: min(
659    calc(100vh - ${12}vh - ${ps}px),
660    ${735}px
661  );
662  position: absolute;
663  top: ${12}vh;
664  width: min(calc(100vw - ${2*ps}px), ${800}px);
665`;function hq(e){let t,n,r,i,l,d=(0,o.c)(22),{disableFocusLock:c,disableIntentLink:p,onClose:m,onItemSelect:h,onOpen:f,previewPerspective:g,open:C}=e,[y,x]=(0,s.useState)(null),b=(0,s.useRef)(null),{isTopLayer:v,zIndex:j}=(0,u.Z4)(),{onClose:w,state:_}=pd(),{filtersVisible:k,terms:S}=_;d[0]!==S?(t=pc({terms:S}),d[0]=S,d[1]=t):t=d[1];let T=t;return d[2]===Symbol.for("react.memo_cache_sentinel")?(n=()=>[b.current],d[2]=n):n=d[2],(0,u.PR)(v&&C&&!!w&&w,n),d[3]!==c||d[4]!==p||d[5]!==k||d[6]!==T||d[7]!==y||d[8]!==m||d[9]!==h||d[10]!==C||d[11]!==g||d[12]!==j?(r=C&&(0,a.jsx)(u.ZL,{children:(0,a.jsxs)(eX.Ay,{autoFocus:!iO,disabled:c,returnFocus:!0,children:[(0,a.jsx)(hZ,{animate:"open",exit:"closed",initial:"closed",style:{zIndex:j},transition:hN,variants:hH}),(0,a.jsxs)(hU,{animate:"open",exit:"closed",initial:"closed",overflow:"hidden",radius:3,ref:b,shadow:2,style:{zIndex:j},transition:hN,variants:hY,children:[(0,a.jsx)(hC,{onClose:m,ref:x}),k&&(0,a.jsx)(u.Zp,{borderTop:!0,flex:"none",children:(0,a.jsx)(mX,{})}),T?(0,a.jsx)(hB,{inputElement:y,onItemSelect:h,disableIntentLink:p,previewPerspective:g}):(0,a.jsx)(hm,{inputElement:y})]})]})}),d[3]=c,d[4]=p,d[5]=k,d[6]=T,d[7]=y,d[8]=m,d[9]=h,d[10]=C,d[11]=g,d[12]=j,d[13]=r):r=d[13],d[14]!==r?(i=(0,a.jsx)(tK.N,{children:r}),d[14]=r,d[15]=i):i=d[15],d[16]!==T||d[17]!==m||d[18]!==f||d[19]!==C||d[20]!==i?(l=(0,a.jsx)(pm,{hasValidTerms:T,onClose:m,onOpen:f,open:C,children:i}),d[16]=T,d[17]=m,d[18]=f,d[19]=C,d[20]=i,d[21]=l):l=d[21],l}let hJ={isLoading:!0,settings:{partialIndexSettings:{maxFieldDepth:0}}},hW=new Map;function hK(e){let t=lE().search?.unstable_partialIndexing?.enabled,n=ee7(a7),r=(0,s.useMemo)(()=>e||n,[e,n]),i=(0,s.useMemo)(()=>r.config().dataset,[r]);t||hW.set(i,(0,k.of)(hJ.settings)),hW.has(i)||hW.set(i,(function({client:e}){let{projectId:t,dataset:n}=e.config();return e.observable.request({uri:`/projects/${t}/datasets/${n}/settings/indexing`,tag:"search.getPartialIndexSettings"})})({client:r}).pipe((0,Y.t)()));let a=(0,s.useMemo)(()=>hW.get(i).pipe((0,E.T)(e=>({isLoading:!1,settings:e})),(0,Z.Z)(hJ),(0,M.W)(e=>(console.error(e),(0,k.of)({isLoading:!1,enabled:!0,settings:{partialIndexSettings:{maxFieldDepth:0}}})))),[i]),o=(0,eH.J)(a,hJ)?.settings?.partialIndexSettings?.maxFieldDepth;return nN(o)?Math.min(o,t7.ab):t7.ab}let hG={error:null,hits:[],loading:!1,terms:{query:"",types:[]}};function hX(e){return null!==e}function hQ(e){return{...e,terms:{...e.terms,filter:e.terms.filter?.trim(),query:e.terms.query.trim()}}}function h1(e){let t,n,r,i,a,l=(0,o.c)(16),{allowEmptyQueries:d,initialState:c,onComplete:u,onError:p,onStart:m,schema:h}
665=e,[f,g]=(0,s.useState)(c),C=ee7(a7),y=hK(),{strategy:x}=lE().search;l[0]!==C||l[1]!==y||l[2]!==h||l[3]!==x?(n=mT(mI(h),C,{tag:"search.global",unique:!0,strategy:x,maxDepth:y}),l[0]=C,l[1]=y,l[2]=h,l[3]=x,l[4]=n):n=l[4],t=n,l[5]!==d||l[6]!==u||l[7]!==p||l[8]!==m||l[9]!==t?(r=e=>e.pipe((0,q.p)(hX),(0,E.T)(hQ),(0,ei.F)(eN),(0,ex.s)(h5),(0,W.M)(m),(0,z.n)(e=>(0,S.x)((0,k.of)({...hG,loading:!0,options:e.options,terms:e.terms}),(0,H.T)(()=>pc({allowEmptyQueries:d,terms:e.terms}),t(e.terms,e.options).pipe((0,W.M)(e=>{let{hits:t,nextCursor:n}=e;return u?.({hits:t,nextCursor:n})}),(0,M.W)(t=>(p?.(t),(0,k.of)({...hG,error:t,loading:!1,options:e.options,terms:e.terms})))),(0,k.of)(I.w).pipe((0,W.M)(()=>u?.({hits:[],nextCursor:void 0})))),(0,k.of)({loading:!1}))),(0,G.S)(h2,hG),(0,W.M)(g)),l[5]=d,l[6]=u,l[7]=p,l[8]=m,l[9]=t,l[10]=r):r=l[10];let b=(0,eH.N)(r);l[11]!==b?(i=e=>b(e),l[11]=b,l[12]=i):i=l[12];let v=i;return l[13]!==v||l[14]!==f?(a={handleSearch:v,searchState:f},l[13]=v,l[14]=f,l[15]=a):a=l[15],a}function h2(e,t){return{...e,...t}}function h5(e){return(0,F.O)(e?.debounceTime||300)}function h0(e){return"u">typeof e.__recent}let h7="core:studio:navbar:search:";eq(h7);let h3=function(e){let t=`${h7}${e}`;return eq&&eq.enabled(t)?eq(t):eq(h7)}("reducer");function h8(e,t){let n="\uD83D\uDD0D";switch(t.type.startsWith("SEARCH_REQUEST")&&(n="\uD83D\uDEA8"),t.type.startsWith("RECENT_SEARCHES")&&(n="\uD83D\uDCBE"),h3(n,t),t.type){case"FILTERS_VISIBLE_SET":return{...e,filtersVisible:t.visible};case"LAST_ACTIVE_INDEX_SET":return{...e,lastActiveIndex:t.index};case"ORDERING_RESET":return{...e,ordering:hb({searchStrategy:e.strategy}).relevance,terms:h4(e.terms),cursor:null,nextCursor:null,result:{...e.result,hasLocal:!1}};case"ORDERING_SET":return{...e,ordering:t.ordering,terms:h4(e.terms),cursor:null,nextCursor:null,result:{...e.result,hasLocal:!1}};case"PAGE_INCREMENT":return{...e,cursor:e.nextCursor??e.cursor,nextCursor:null,terms:h4(e.terms)};case"SEARCH_CLEAR":return{...e,cursor:null,nextCursor:null,result:{...e.result,hasLocal:!1,hits:[]}};case"SEARCH_REQUEST_COMPLETE":return{...e,nextCursor:t.nextCursor??null,result:{...e.result,error:null,hasLocal:!0,hits:e.result.hasLocal?ij([...e.result.hits,...t.hits].map(({hit:e})=>e)).map(e=>({hit:e})):t.hits,loaded:!0,loading:!1}};case"SEARCH_REQUEST_ERROR":return{...e,result:{...e.result,error:t.error,loaded:!1,loading:!1}};case"SEARCH_REQUEST_START":return{...e,result:{...e.result,loaded:!1,loading:!0}};case"TERMS_FILTERS_ADD":{var r,i;let n={...t.filter,value:(r=e.definitions.operators,i=t.filter.operatorType,pg(r,i)?.initialValue)},a=[...e.filters,n];return{...e,documentTypesNarrowed:pv({fieldDefinitions:e.definitions.fields,filters:a,types:e.terms.types}),filters:a,lastAddedFilter:n,cursor:null,nextCursor:null,terms:{...e.terms,filter:py({fieldDefinitions:e.definitions.fields,filterDefinitions:e.definitions.filters,filters:a,operatorDefinitions:e.definitions.operators})},result:{...e.result,hasLocal:!1}}}case"TERMS_FILTERS_CLEAR":{let t=[];return{...e,documentTypesNarrowed:pv({fieldDefinitions:e.definitions.fields,filters:t,types:e.terms.types}),filters:t,cursor:null,nextCursor:null,terms:{...e.terms,filter:py({fieldDefinitions:e.definitions.fields,filterDefinitions:e.definitions.filters,filters:t,operatorDefinitions:e.definitions.operators})},result:{...e.result,hasLocal:!1}}}case"TERMS_FILTERS_REMOVE":{let n=e.filters.findIndex(e=>pb(e)===t.filterKey),r=[...e.filters.slice(0,n),...e.filters.slice(n+1)];return{...e,documentTypesNarrowed:pv({fieldDefinitions:e.definitions.fields,filters:r,types:e.terms.types}),filters:r,cursor:null,nextCursor:null,terms:{...e.terms,filter:py({fieldDefinitions:e.definitions.fields,filterDefinitions:e.definitions.filters,filters:r,operatorDefinitions:e.definitions.operators})},result:{...e.result,hasLocal:!1}}}case"TERMS_FILTERS_SET_OPERATOR":{let n=e.filters.find(e=>pb(e)===t.filterKey),r=pg(e.definitions.operators,n?.operatorType),i=pg(e.definitions.operators,t.operatorType),a=i?.initialValue,o=r?.inputComponent!=i?.inputComponent,l=e.filters.map(e=>pb(e)===t.filterKey?{...e,operatorType:t.operatorType,...o?{value:a}:{}}:e);return{...e,filters:l,cursor:null,nextCursor:null,terms:{...e.terms,filter:py({fieldDefinitions:e.definitions.fields,filterDefinitions:e.definitions.filters,filters:l,operatorDefinitions:e.definitions.operators})},result:{...e.result,hasLocal:!1}}}case"TERMS_FILTERS_SET_VALUE":{let n=e.filters.map(e=>pb(e)===t.filterKey?{...e,value:t.value}:e);return{...e,filters:n,cursor:null,nextCursor:null,terms:{...e.terms,filter:py({fieldDefinitions:e.definitions.fields,filterDefinitions:e.definitions.filters,filters:n,operatorDefinitions:e.definitions.operators})},result:{...e.result,hasLocal:!1}}}case"TERMS_QUERY_SET":return{...e,cursor:null,nextCursor:null,result:{...e.result,loaded:!1,hasLocal:!1},terms:h4({...e.terms,query:t.query})};case"TERMS_SET":{let n=t.filters||[],r=[...e.terms.types||[],...t.terms.types].sort(mE);return{...e,documentTypesNarrowed:pv({fieldDefinitions:e.definitions.fields,filters:n,types:r}),filters:n,lastAddedFilter:null,cursor:null,nextCursor:null,result:{...e.result,loaded:!1,hasLocal:!1},terms:{...t.terms,filter:py({fieldDefinitions:e.definitions.fields,filterDefinitions:e.definitions.filters,filters:n,operatorDefinitions:e.definitions.operators})}}}case"TERMS_TYPE_ADD":{let n=[...e.terms.types||[],t.schemaType].sort(mE),r=pv({fieldDefinitions:e.definitions.fields,filters:[],types:n}),i=e.filters.filter(t=>{let n=px(e.definitions.fields,t);return!n||0===n.documentTypes.length||r.every(e=>n.documentTypes.findIndex(t=>t===e)>-1)});return{...e,documentTypesNarrowed:r,filters:i,cursor:null,nextCursor:null,result:{...e.result,loaded:!1,hasLocal:!1},terms:h4({...e.terms,filter:py({fieldDefinitions:e.definitions.fields,filterDefinitions:e.definitions.filters,operatorDefinitions:e.definitions.operators,filters:i}),types:n})}}case"TERMS_TYPE_REMOVE":{let n=(e.terms.types||[]).filter(e=>e!==t.schemaType);return{...e,documentTypesNarrowed:pv({fieldDefinitions:e.definitions.fields,filters:e.filters,types:n}),cursor:null,nextCursor:null,result:{...e.result,loaded:!1,hasLocal:!1},terms:h4({...e.terms,types:n})}}case"TERMS_TYPES_CLEAR":return{...e,documentTypesNarrowed:pv({fieldDefinitions:e.definitions.fields,filters:e.filters,types:[]}),cursor:null,nextCursor:null,result:{...e.result,loaded:!1,hasLocal:!1},terms:h4({...e.terms,types:[]})};default:return e}}function h4(e){if(h0(e)){let{__recent:t,...n}=e;return n}return e}function h6({children:e,fullscreen:t,disabledDocumentIds:n,canDisableAction:r}
665){let[i,o]=(0,s.useState)(null),[l,d]=(0,s.useState)(null),{data:u}=lp(),p=Cm(),m=Cl(),{search:{operators:h,filters:f,strategy:g}}=co(),{fieldDefinitions:C,filterDefinitions:y,operatorDefinitions:x}=(0,s.useMemo)(()=>({fieldDefinitions:m1(mQ(p,f)),filterDefinitions:ph(f),operatorDefinitions:pf(h)}),[f,h,p]),b=(0,s.useMemo)(()=>(function({currentUser:e,fullscreen:t,definitions:n,pagination:r,strategy:i}){return{currentUser:e,debug:!(typeof window>"u")&&window.location.hash.slice(1).split(";").includes("_debug_search_score"),documentTypesNarrowed:[],filters:[],filtersVisible:!0,fullscreen:t,lastActiveIndex:-1,ordering:hb({searchStrategy:i}).relevance,...r,result:{error:null,hasLocal:!1,hits:[],loaded:!1,loading:!1},terms:{query:"",types:[]},definitions:n,strategy:i}})({currentUser:m,fullscreen:t,definitions:{fields:C,operators:x,filters:y},pagination:{cursor:null,nextCursor:null},strategy:g}),[m,t,C,x,y,g]),[v,j]=(0,s.useReducer)(h8,b),{documentTypesNarrowed:w,filters:_,ordering:k,cursor:S,result:T,terms:I}=v,E=(0,s.useRef)(!1),$=(0,s.useRef)(b.ordering),A=(0,s.useRef)(b.cursor),D=(0,s.useRef)(b.terms),{handleSearch:z,searchState:M}=h1({initialState:{...T,terms:I},onComplete:e=>j({...e,type:"SEARCH_REQUEST_COMPLETE"}),onError:e=>j({error:e,type:"SEARCH_REQUEST_ERROR"}),onStart:()=>j({type:"SEARCH_REQUEST_START"}),schema:p}),P=pc({terms:I}),R=w.map(e=>p.get(e)),O=_.filter(e=>pj({fieldDefinitions:C,filter:e,filterDefinitions:y,operatorDefinitions:x}));(0,s.useEffect)(()=>{let e=!eN(k,$.current),t=S!==A.current,n=!eN(I,D.current);if(e||t||n){let e="findability-sort:";(k?.customMeasurementLabel||k.sort)&&(e+=k?.customMeasurementLabel||`${k.sort?.field} ${k.sort?.direction}`),z({options:{comments:[...h0(I)?[`findability-recent-search:${I.__recent.index}`]:[],`findability-selected-types:${I.types.length}`,e,"findability-source: global",`findability-filter-count:${O.length}`],limit:"groq2024"===g?25:1e3,skipSortByScore:k.ignoreScore,...k.sort?{sort:[k.sort]}:{},cursor:S||void 0,perspective:"raw"},terms:{...I,...R?{types:R}:{}}}),t&&(A.current=S)}$.current=k,D.current=I},[O.length,_,R,z,P,k,M.terms,I,S,g,u]),(0,s.useEffect)(()=>{!P&&E?.current&&T.hits.length>0&&j({type:"SEARCH_CLEAR"}),E.current=!0},[j,P,T.hits,I.query,I.types]);let V=(0,s.useMemo)(()=>({dispatch:j,onClose:i,searchCommandList:l,setSearchCommandList:d,setOnClose:o,state:{...v,fullscreen:t,disabledDocumentIds:n,canDisableAction:r}}),[t,n,r,i,l,v]);return(0,a.jsx)(c.o7.Provider,{value:V,children:e})}function h9(e){let t,n,r,i=(0,o.c)(9),{open:l,onClose:s,releaseId:d,idsInRelease:c}=e;return i[0]!==d?(t=[d],i[0]=d,i[1]=t):t=i[1],i[2]!==s||i[3]!==l||i[4]!==t?(n=(0,a.jsx)(u.GD,{children:(0,a.jsx)(hq,{onClose:s,onItemSelect:s,open:l,previewPerspective:t,disableIntentLink:!0})}),i[2]=s,i[3]=l,i[4]=t,i[5]=n):n=i[5],i[6]!==c||i[7]!==n?(r=(0,a.jsx)(u.XS,{zOffset:1,children:(0,a.jsx)(h6,{disabledDocumentIds:c,canDisableAction:!0,children:n})}),i[6]=c,i[7]=n,i[8]=r):r=i[8],r}let fe=e=>{let t=e.LOCAL,n=e.document.HEAD;return t&&{...t,_type:(n||t)._type,_rev:(n||t)._rev,_updatedAt:new Date().toISOString()}},ft=e=>({type:"snapshot",document:e}),fn=e=>e.document,fr=(e,t)=>{let n=(e=>{let t=new O.B,n=new J.t(!0),r=new O.B,i=new O.B,a=new O.B,o=new O.B,l=e.pipe((0,G.S)((e,t)=>"snapshot"===t.type?(e&&e.commit(),(e=>{let t=new nF.Xg(e);return t.onMutation=({mutation:e,remote:n})=>{r.next({type:"mutation",document:fe(t),mutations:e.mutations,origin:n?"remote":"local"})},t.onRemoteMutation=e=>{a.next({type:"remoteMutation",head:t.document.HEAD,transactionId:e.transactionId,timestamp:e.timestamp,author:e.identity,effects:e.effects})},t.onRebase=(e,t,n)=>{i.next({type:"rebase",document:e,remoteMutations:t,localMutations:n})},t.onConsistencyChanged=e=>{n.next(e)},t.commitHandler=e=>o.next(e),t})(t.document||null)):null===e?(console.warn('Ignoring event of type "%s" since buffered document has not yet been set up with snapshot',t.type),null):e,null),(0,q.p)(e=>null!==e),(0,ei.F)(),(0,eS.H)(1),(0,eT.B)()),s=e.pipe((0,q.p)(e=>"mutation"===e.type),(0,eI.E)(l),(0,E.T)(([e,t])=>(t.arrive(new nF.sM(e)),fe(t)))),d=t.pipe((0,eI.E)(l),(0,W.M)(([e,t])=>{"mutation"===e.type&&t.add(new nF.sM({mutations:e.mutations})),"commit"===e.type&&t.commit()}),(0,e_.C)(I.w),(0,es.u)()),c=e=>{let n;return n={type:"mutation",mutations:e},t.next(n)},u=(0,R.h)(l.pipe((0,E.T)(e=>e.LOCAL)),r.pipe((0,E.T)(fn)),i.pipe((0,E.T)(fn)),s).pipe((0,E.T)(ft),(0,eS.H)(1),(0,eT.B)()),p=(0,R.h)(l.pipe((0,E.T)(e=>e.document.HEAD),(0,E.T)(ft)),a).pipe((0,eS.H)(1),(0,eT.B)());return{updates$:(0,R.h)(u,d,r,i),consistency$:n.pipe((0,ei.F)(),(0,eS.H)(1),(0,eT.B)()),remoteSnapshot$:p,commitRequest$:o,addMutation:e=>c([e]),addMutations:c,commit:()=>{l.pipe((0,ey.s)(1),(0,W.M)(e=>e.commit())).subscribe()}}})(t),r=t=>{let{_id:n,_rev:r,_updatedAt:i,...a}=t;return{_id:e,...a}},i={delete:{id:e}};return{events:n.updates$,consistency$:n.consistency$,remoteSnapshot$:n.remoteSnapshot$,commitRequest$:n.commitRequest$,patch:t=>t.map(t=>({patch:{...t,id:e}})),create:e=>({create:r(e)}
665),createIfNotExists:e=>({createIfNotExists:r(e)}),createOrReplace:e=>({createOrReplace:r(e)}),delete:()=>i,mutate:e=>n.addMutations(e),commit:()=>n.commit()}};function fi(e,t){var n;return n="function"==typeof e?{predicate:e,...t}:e,e=>{let t,r=!1,{predicate:i,...a}=n,o=e.pipe((0,W.M)(e=>{n.predicate(e)&&(r=!0,t=e)}),(0,N.j)(()=>{r=!1,t=void 0}),(0,es.u)(a)),l=new P.c(e=>{r&&e.next(t),e.complete()});return(0,R.h)(o,l)}}let fa=eq("sanity:document-store"),fo=[];function fl(e){let{resolveChainDeadline:t=3e4,maxBufferSize:n=20}={};return e=>e.pipe((0,G.S)((e,t)=>{if("mutation"===t.type&&!e.base)throw Error("Invalid state. Cannot create a sequence without a base");if("snapshot"===t.type)return{base:{revision:t.document?._rev},buffer:fo,emitEvents:[t]};if("mutation"===t.type){let[r,i]=nb((function(e){let t={};return e.forEach(n=>{t[n.resultRev]=e.find(e=>e.resultRev===n.previousRev)}),Object.entries(t).filter(([,e])=>!e).map(t=>{let[n]=t,r=e.find(e=>e.resultRev===n),i=[];for(;r;)i.push(r),r=e.find(e=>e.previousRev===r?.resultRev);return i})})(e.buffer.concat(t)).map(t=>{let[n,r]=function(e,t){var n,r;let i=e.findIndex(e=>e.resultRev===t);return n=e,(r=i+1)<0?[[],n]:[n.slice(0,r),n.slice(r)]}(t,e.base.revision);return n.length>0&&fa("Discarded %d mutations already applied to document",n.length),r}),t=>e.base.revision===t[0]?.previousRev),a=i.flat();if(r.length>1)throw Error("Expected at most one applicable chain");if(r.length>0&&r[0].length>0){let e=r[0].at(-1);return{base:{revision:"disappear"===e.transition?void 0:e?.resultRev},emitEvents:r[0],buffer:a}}if(a.length>=(globalThis.__sanity_debug_maxBufferSize??n))throw new fc(`Too many unchainable mutation events: ${e.buffer.length}`,e);return{...e,buffer:a,emitEvents:fo}}return{...e,emitEvents:[t]}},{emitEvents:fo,base:void 0,buffer:fo}),(0,z.n)(e=>{let n=globalThis.__sanity_debug_resolveChainDeadline??t;return e.buffer.length>0?(fa("Detected %d listener event(s) that can't be applied in sequence. This could be due to events arriving out of order. Will throw an error if chain can't be resolved within %dms",e.buffer.length,n),(0,S.x)((0,k.of)(e),(0,F.O)(n).pipe((0,ew.Z)(()=>(0,L.$)(()=>new fd(`Did not resolve chain within a deadline of ${t}ms`,e)))))):(0,k.of)(e)}),(0,ew.Z)(e=>e.emitEvents))}class fs extends Error{constructor(e,t){super(e),this.name="OutOfSyncError",this.state=t}}class fd extends fs{constructor(e,t){super(e,t),this.name="DeadlineExceededError"}}class fc extends fs{constructor(e,t){super(e,t),this.name="MaxBufferExceededError"}}let fu={type:"pending",phase:"begin"},fp={type:"pending",phase:"end"};function fm(e,t){return{type:"snapshot",documentId:e,document:t}}function fh(e,t){return t.versionId?e.withConfig(oX):e.withConfig({apiVersion:"2025-02-19"})}function ff(e,t){return t.versionId?e.withConfig(oX):e}let fg=e=>t=>"reconnect"!==t.type&&"pending"!==t.type&&t.documentId===e;function fC(e){return t=>({...t,version:e})}function fy(e,t,n){let{resultRev:r,...i}=n;return ff(e,t).dataRequest("mutate",i,{visibility:"async",returnDocuments:!1,tag:"document.commit",skipCrossDatasetReferenceValidation:!0})}function fx(e,t,n,r={}){let{publishedId:i,draftId:a,versionId:o}=t,{onReportLatency:l,onSyncErrorRecovery:s,tag:d}=r,c=(function(e,t,n={}){let{publishedId:r,draftId:i,versionId:a}=t,o=t.versionId?e.withConfig(oX):e;if(t.versionId&&"published"===ix(t.versionId)||t.versionId&&"drafts"===ix(t.versionId))throw Error('VersionId cannot be "published" or "drafts"');let l=(0,T.v)(()=>o.observable.listen("*[_id in $ids]",{ids:[r,i,a].filter(e=>"u">typeof e)},{includeResult:!1,includeAllVersions:!0,events:["welcome","mutation","reconnect"],effectFormat:"mendoza",tag:n.tag||"document.pair-listener"}).pipe(fi({predicate:e=>"welcome"===e.type||"reconnect"===e.type}))).pipe((0,$.H)(e=>"welcome"===e.type?o.observable.getDocuments([r,i,a].filter(e=>"string"==typeof e),{tag:"document.snapshots"}).pipe((0,E.T)(([e,t,n])=>({draft:t,published:e,version:n}))).pipe((0,ew.Z)(({draft:e,published:t,version:n})=>[fm(i,e),fm(r,t),...a?[fm(a,n)]:[]])):(0,k.of)(e)),(0,G.S)((e,t)=>{if("mutation"!==t.type)return{next:[t],buffer:[]};let n=e.buffer.length>0,r=t.transactionTotalEvents>1;if(!r&&!n)return{next:[t],buffer:[]};if(!r)return{next:[],buffer:e.buffer.concat(t)};let i=e.buffer.concat(t);return Object.values(t1(i.filter(e=>"mutation"===e.type),e=>e.transactionId)).every(e=>e.length===e[0].transactionTotalEvents)?{next:i.concat(fp),buffer:[]}:{next:1===i.length?[fu]:[],buffer:i}},{next:[],buffer:[]}),(0,ew.Z)(e=>e.next),(0,es.u)()),s=l.pipe((0,q.p)(e=>"mutation"!==e.type&&"snapshot"!==e.type||e.documentId===i),fl()),d=l.pipe((0,q.p)(e=>"mutation"!==e.type&&"snapshot"!==e.type||e.documentId===r),fl()),c=l.pipe((0,q.p)(e=>"mutation"!==e.type&&"snapshot"!==e.type||e.documentId===a),fl());return(0,R.h)(s,d,c).pipe((0,M.W)((e,t)=>e instanceof fs?(fa("Recovering from OutOfSyncError: %s",fs.name),"function"==typeof n?.onSyncErrorRecovery?n?.onSyncErrorRecovery(e):console.error(e),t):(0,L.$)(()=>e)))})(e,t,{onSyncErrorRecovery:s,tag:d}).pipe((0,es.u)()),u=c.pipe((0,q.p)(e=>"reconnect"===e.type)),p=fr(a,c.pipe((0,q.p)(fg(a)))),m=typeof o>"u"?void 0:fr(o,c.pipe((0,q.p)(fg(o)))),h=fr(i,c.pipe((0,q.p)(fg(i)))),f=c.pipe((0,q.p)(e=>"pending"===e.type)),g=(0,R.h)(p.commitRequest$,h.commitRequest$,m?m.commitRequest$:I.w).pipe((0,ew.Z)(r=>n.pipe((0,ey.s)(1),(0,ew.Z)(n=>{var i;return(0,Q.H)(n?!function(e,t){let{resultRev:n,...r}=e;return r.mutations.flatMap(e=>{let t=Object.values(e);if(t.length>
6651)throw Error("Did not expect multiple mutations in the same payload");return t[0].id||t[0]._id}).every(e=>e===t)}(i=r.mutation.params,t.publishedId)?fh(e,t).observable.action(function(e,t){let n=t.mutations.flatMap(t=>{if(t.createIfNotExists)return[];if(t.create)return function(e){if(!e._id)throw Error("Expected document to have an _id")}(t.create),{actionType:"sanity.action.document.create",publishedId:e.publishedId,attributes:t.create,ifExists:"fail"};if(t.patch)return{actionType:"sanity.action.document.edit",draftId:e.versionId??e.draftId,publishedId:e.publishedId,patch:nL(t.patch,"id")};throw Error("Cannot map mutation to action")});return 0===n.length?[{actionType:"sanity.action.document.edit",draftId:e.draftId,publishedId:e.publishedId,patch:{unset:["_empty_action_guard_pseudo_field_"]}}]:n}(t,i),{tag:"document.commit",transactionId:i.transactionId}):fy(e,t,i):fy(e,t,r.mutation.params)).pipe((0,W.M)({error:e=>{"statusCode"in e&&"number"==typeof e.statusCode&&e.statusCode>=400&&e.statusCode<=500?r.cancel(e):r.failure(e)},next:()=>r.success()}))})))),C=(0,T.v)(()=>l?function(e){let{client:t,commits$:n,listenerEvents$:r,onReportLatency:i}=e,a=fetch(t.getUrl(t.getDataUrl("ping")),{signal:AbortSignal.timeout(2e4)}).then(e=>e.headers.get("X-Sanity-Shard")||void 0).catch(()=>{}),o=n.pipe((0,E.T)(e=>({type:"submit",transactionId:e.transactionId,timestamp:new Date})),(0,es.u)()),l=r.pipe((0,q.p)(e=>"mutation"===e.type),(0,E.T)(e=>({type:"receive",transactionId:e.transactionId,timestamp:new Date})),(0,es.u)());return(0,R.h)(o,l).pipe((0,G.S)((e,t)=>{let n=e.pending.findIndex(e=>e.transactionId===t.transactionId);if(n>-1){let r=e.pending[n],[i,a]="submit"==r.type?[r,t]:[t,r];return{event:{transactionId:t.transactionId,submittedAt:i.timestamp,receivedAt:i.timestamp,deltaMs:a.timestamp.getTime()-i.timestamp.getTime()},pending:e.pending.toSpliced(n,1)}}return{event:void 0,pending:e.pending.concat(t)}},{event:void 0,pending:[]}),(0,E.T)(e=>e.event),(0,q.p)(e=>!!e),(0,eI.E)(a),(0,W.M)(([e,t])=>i?.({latencyMs:e.deltaMs,shard:t,transactionId:e.transactionId})))}({commits$:g,listenerEvents$:c,client:e,onReportLatency:l}):(0,R.h)(g,c)).pipe((0,ew.Z)(()=>I.w),(0,es.u)());return{transactionsPendingEvents$:f,draft:{...p,events:(0,R.h)(C,u,p.events).pipe((0,E.T)(fC("draft"))),remoteSnapshot$:p.remoteSnapshot$.pipe((0,E.T)(fC("draft")))},...typeof m>"u"?{}:{version:{...m,events:(0,R.h)(C,u,m.events).pipe((0,E.T)(fC("version"))),remoteSnapshot$:m.remoteSnapshot$.pipe((0,E.T)(fC("version")))}},published:{...h,events:(0,R.h)(C,u,h.events).pipe((0,E.T)(fC("published"))),remoteSnapshot$:h.remoteSnapshot$.pipe((0,E.T)(fC("published")))}}}function fb(e,t,n){let r=e.config();return`${r.dataset??""}-${r.projectId??""}-${t.publishedId}-${t.versionId??""}-${n}`}let fv=d6((e,t,n,r,i)=>new P.c(n=>{let a=fx(e,t,r,i);return(0,R.h)((0,k.of)(a),a.draft.events.pipe((0,ew.Z)(()=>I.w)),a.published.events.pipe((0,ew.Z)(()=>I.w)),a.version?.events.pipe((0,ew.Z)(()=>I.w))??I.w).subscribe(n)}).pipe((0,es.u)({connector:()=>new ed.m(1),resetOnComplete:!0,resetOnRefCountZero:()=>(0,F.O)(1e4)})),fb);function fj(e){return"snapshot"===e.type}function fw(e){return{snapshots$:e.events.pipe((0,q.p)(fj),(0,E.T)(e=>e.document),(0,eS.H)(1),(0,eT.B)()),patch:e.patch,create:e.create,createIfNotExists:e.createIfNotExists,createOrReplace:e.createOrReplace,delete:e.delete,mutate:e.mutate,commit:e.commit}}let f_=d6((e,t,n,r,i)=>fv(e,t,n,r,i).pipe((0,E.T)(({published:e,draft:t,version:n,transactionsPendingEvents$:r})=>({transactionsPendingEvents$:r,published:fw(e),draft:fw(t),...n?{version:fw(n)}:{}})),(0,eS.H)(1),(0,eT.B)()),fb),fk=(e,t)=>e.get(t)?.liveEdit===!0,fS=iD({maxSize:50}),fT={enabled:!0},fI={enabled:!1},fE=d6((e,t,n)=>{let r=fk(e.schema,n),i="u">typeof t.versionId||r;return f_(e.client,t,n,e.serverActionsEnabled,e.extraOptions).pipe((0,z.n)(e=>(0,eo.z)([e.draft.snapshots$,e.published.snapshots$,e.transactionsPendingEvents$.pipe((0,E.T)(e=>"begin"===e.phase?fT:fI),(0,Z.Z)(fI)),typeof e.version>"u"?(0,k.of)(null):e.version.snapshots$])),fS(`${t.publishedId}-${t.draftId}-${t.versionId}`),(0,E.T)(({value:[e,a,o,l],fromCache:s})=>({id:t.publishedId,type:n,draft:e,published:a,version:typeof t.versionId>"u"?null:l,liveEdit:i,liveEditSchemaType:r,ready:!s,transactionSyncLock:s?null:o,release:t.versionId?ix(t.versionId):void 0})),(0,Z.Z)({id:t.publishedId,type:n,draft:null,published:null,version:null,liveEdit:i,liveEditSchemaType:r,ready:!1,transactionSyncLock:null,release:t.versionId?ix(t.versionId):void 0}),(0,eS.H)(1),(0,eT.B)())},(e,t,n)=>fb(e.client,t,n)),f$=d6((e,t,n,r,i)=>fv(e,t,n,r,i).pipe((0,z.n)(({draft:e,published:t})=>(0,eo.z)([e.consistency$,t.consistency$])),(0,E.T)(([e,t])=>e&&t),(0,ei.F)(),(0,eS.H)(1),(0,eT.B)()),fb),fA=d6((e,t,n)=>f_(e.client,t,n,e.serverActionsEnabled,e.pairListenerOptions).pipe((0,z.n)(r=>
665(0,eo.z)([r.draft.snapshots$,r.published.snapshots$,e.serverActionsEnabled,...typeof r.version>"u"?[]:[r.version.snapshots$]]).pipe((0,E.T)(([i,a,o,l])=>({...e,serverActionsEnabled:o,idPair:t,typeName:n,snapshots:{published:a,draft:i,...l?{version:l}:{}},...r.version?{version:r.version}:{},draft:r.draft,published:r.published})))),(0,eS.H)(1),(0,eT.B)()),(e,t,n)=>fb(e.client,t,n)),fD={disabled:()=>!1,execute:({draft:e,published:t,version:n})=>(n?.commit(),e.commit(),t.commit(),I.w)},fz={disabled:({snapshots:e})=>!e.draft&&!e.published&&"NOTHING_TO_DELETE",execute:({client:e,schema:t,idPair:n,typeName:r})=>{let i=ff(e,n).observable.transaction().delete(n.publishedId);return fk(t,r)?i.commit({tag:"document.delete"}):i.delete(n.draftId).commit({tag:"document.delete",skipCrossDatasetReferenceValidation:!0})}},fM={disabled:({snapshots:e})=>e.draft?!e.published&&"NOT_PUBLISHED":"NO_CHANGES",execute:({client:e,idPair:t})=>ff(e,t).observable.transaction().delete(t.draftId).commit({tag:"document.discard-changes"})},fP=["_createdAt","_updatedAt"],fR=e=>e,fO={disabled:({snapshots:e})=>!e.published&&!e.draft&&!e.version&&"NOTHING_TO_DUPLICATE",execute:({schema:e,client:t,snapshots:n,typeName:r,idPair:i},a,{mapDocument:o=fR}={})=>{let l=n.version||n.draft||n.published;if(!l)throw Error("cannot execute on empty document");let s=(({versionSnapshot:e,dupeId:t,liveEdit:n})=>{if(e){let n=ix(e._id);if(n)return iy(t,n)}return n?t:im(t)})({versionSnapshot:n.version,dupeId:a,liveEdit:fk(e,r)});return ff(t,i).observable.create(nL(o({...l,_id:s,_type:l._type}),fP),{tag:"document.duplicate"})}},fV={disabled:()=>!1,execute:({schema:e,snapshots:t,idPair:n,draft:r,published:i,version:a,typeName:o},l=[],s)=>{if(a)return void a.mutate([a.createIfNotExists({_type:o,...s}),...a.patch(l)]);fk(e,o)?i.mutate([i.createIfNotExists({_type:o,...s}),...i.patch(l)]):r.mutate([r.createIfNotExists({...s,...t.published,_id:n.draftId,_type:o}),...r.patch(l)])}},fL={disabled:({schema:e,typeName:t,snapshots:n})=>fk(e,t)?"LIVE_EDIT_ENABLED":!n.draft&&(n.published?"ALREADY_PUBLISHED":"NO_CHANGES"),execute:({client:e,idPair:t,snapshots:n})=>{if(!n.draft)throw Error('cannot execute "publish" when draft is missing');let r=function e(t){return(0,_.A_)(t)?t._strengthenOnPublish?nL(t,["_strengthenOnPublish"].concat(t._strengthenOnPublish.weak?[]:["_weak"])):t:"object"==typeof t&&t?Array.isArray(t)?t.map(e):Object.fromEntries(Object.entries(t).map(([t,n])=>[t,e(n)])):t}(nL(n.draft,"_updatedAt")),i=ff(e,t).observable.transaction();if(!n.draft)throw Error('cannot execute "publish" when draft is missing');return n.published?(i.patch(t.publishedId,{unset:["_revision_lock_pseudo_field_"],ifRevisionID:n.published._rev}),i.createOrReplace({...r,_id:t.publishedId,_type:n.draft._type})):i.create({...r,_id:t.publishedId,_type:n.draft._type}),i.delete(t.draftId),i.commit({tag:"document.publish",visibility:"async"})}},fF={disabled:()=>!1,execute:({historyStore:e,schema:t,idPair:n,typeName:r},i)=>{let a=fk(t,r)?n.publishedId:n.draftId;return e.restore(n.publishedId,a,i)}},fB={disabled:({schema:e,snapshots:t,typeName:n})=>fk(e,n)?"LIVE_EDIT_ENABLED":!t.published&&"NOT_PUBLISHED",execute:({client:e,idPair:t,snapshots:n})=>{let r=ff(e,t).observable.transaction().delete(t.publishedId);return n.published&&(r=r.createIfNotExists({...nL(n.published,"_updatedAt"),_id:t.draftId,_type:n.published._type})),r.commit({tag:"document.unpublish",visibility:"async",skipCrossDatasetReferenceValidation:!0})}},fN={disabled:({snapshots:e})=>!e.draft&&!e.published&&"NOTHING_TO_DELETE",execute:({client:e,schema:t,idPair:n,typeName:r,snapshots:i})=>fk(t,r)?e.observable.transaction().delete(n.publishedId).commit({tag:"document.delete"}):i.published?fh(e,n).observable.action({actionType:"sanity.action.document.delete",includeDrafts:i.draft?[n.draftId]:[],publishedId:n.publishedId},{tag:"document.delete",skipCrossDatasetReferenceValidation:!0}):fh(e,n).observable.action({actionType:"sanity.action.document.discard",draftId:n.draftId},{tag:"document.delete"})},fY={disabled:({snapshots:e})=>e.draft?!e.published&&"NOT_PUBLISHED":"NO_CHANGES",execute:({client:e,idPair:t})=>fh(e,t).observable.action({actionType:"sanity.action.document.discard",draftId:t.draftId},{tag:"document.discard-changes"})},fH={disabled:()=>!1,execute:({schema:e,snapshots:t,idPair:n,draft:r,published:i,version:a,typeName:o},l=[],s)=>{if(a){let e=a.patch(l),r=t.version?a.patch([{unset:["_empty_action_guard_pseudo_field_"]}]):[a.create({...s,_id:n.draftId,_type:o})];a.mutate([...r,...e]);return}if(fk(e,o)){let e=i.patch(l),n=t.published?e:[i.createIfNotExists({_type:o,...s})];i.mutate(n);return}let d=r.patch(l);if(t.published)return void r.mutate([r.createIfNotExists({...s,...t.published,_id:n.draftId,_type:o}),...d]);let c=t.draft?r.patch([{unset:["_empty_action_guard_pseudo_field_"]}]):[r.create({...s,_id:n.draftId,_type:o})];r.mutate([...c,...d])}},fZ={disabled:({schema:e,typeName:t,snapshots:n}
665)=>fk(e,t)?"LIVE_EDIT_ENABLED":!n.draft&&(n.published?"ALREADY_PUBLISHED":"NO_CHANGES"),execute:({client:e,idPair:t,snapshots:n})=>{if(!n.draft)throw Error('cannot execute "publish" when draft is missing');return fh(e,t).observable.action({actionType:"sanity.action.document.publish",draftId:t.draftId,publishedId:t.publishedId,ifPublishedRevisionId:n.published?._rev},{tag:"document.publish"})}},fU={disabled:()=>!1,execute:({snapshots:e,historyStore:t,schema:n,idPair:r,typeName:i},a)=>{let o=fk(n,i)?r.publishedId:r.draftId;return t.restore(r.publishedId,o,a,{fromDeleted:!e.draft&&!e.published,useServerDocumentActions:!0})}},fq={disabled:({schema:e,snapshots:t,typeName:n})=>fk(e,n)?"LIVE_EDIT_ENABLED":!t.published&&"NOT_PUBLISHED",execute:({client:e,idPair:t})=>fh(e,t).observable.action({actionType:"sanity.action.document.unpublish",draftId:t.draftId,publishedId:t.publishedId},{tag:"document.unpublish",skipCrossDatasetReferenceValidation:!0})},fJ={del:fz,delete:fz,publish:fL,patch:fV,commit:fD,discardChanges:fM,unpublish:fB,duplicate:fO,restore:fF},fW={...fJ,del:fN,delete:fN,discardChanges:fY,patch:fH,publish:fZ,unpublish:fq,restore:fU},fK=new O.B;function fG(e,t,n,r){fK.next({operationName:e,idPair:t,typeName:n,extraArgs:r})}let fX=["publish","unpublish","discardChanges","delete"],fQ=d6(e=>{let t=fK.pipe((0,e$.$)(e=>e.idPair.publishedId),(0,ew.Z)(t=>t.pipe((0,z.n)(t=>fA(e,t.idPair,t.typeName).pipe((0,ey.s)(1),(0,z.n)(n=>{let r=fX.includes(t.operationName);r&&(n.published.commit(),n.draft.commit());let i=f$(e.client,t.idPair,t.typeName,e.serverActionsEnabled,e.extraOptions).pipe((0,q.p)(Boolean));return(r?i.pipe((0,ey.s)(1)):(0,k.of)(!0)).pipe((0,z.n)(()=>((e,t,n,r)=>{let i=r?fW[e]:fJ[e];return(0,T.v)(()=>(0,R.h)((0,k.of)(null),function(e){return typeof e>"u"?(0,k.of)(null):e}(i.execute(t,...n)))).pipe((0,eE.H)())})(t.operationName,n,t.extraArgs,n.serverActionsEnabled)))}),(0,E.T)(()=>({type:"success",args:t})),(0,M.W)(e=>(0,k.of)({type:"error",args:t,error:e})))))),(0,es.u)()),n=t.pipe((0,q.p)(e=>"success"===e.type&&"patch"===e.args.operationName),(0,eA.c)(1e3,ec.E,{leading:!0,trailing:!0}),(0,$.H)(e=>window.SLOW?(0,F.O)(1e4).pipe((0,E.T)(()=>e)):(0,k.of)(e)),(0,W.M)(e=>{fG("commit",e.args.idPair,e.args.typeName,[])}));return(0,R.h)(t,n.pipe((0,e_.C)(I.w)))},e=>{let t=e.client.config();return`${t.dataset??""}-${t.projectId??""}${e.serverActionsEnabled?"-serverActionsEnabled":""}`}),f1=d6((e,t,n,r,i)=>fv(e,t,n,r,i).pipe((0,z.n)(({published:e,draft:t,version:n})=>(0,R.h)(e.remoteSnapshot$,t.remoteSnapshot$,n?.remoteSnapshot$??I.w))),fb);function f2(e=[]){return e.reduce((e,t,n)=>{let r=typeof t;if("number"===r)return`${e}[${t}]`;if("string"===r)return`${e}${0===n?"":"."}${t}`;if((0,_.o8)(t))return`${e}[_key=="${t._key}"]`;throw Error(`Unsupported path segment "${t}"`)},"")}function f5(e){return null!==e||void 0!==e}function f0(e,t,n){if(!n)throw Error("missing context");if(!0===e)return[];if(Array.isArray(e))return e.flatMap(e=>f0(e,t,n)).filter(f5);if("string"==typeof e)return f0({message:e},t,n);if("string"!=typeof e.message)throw Error(`${f2(n.path)}: Validator must return 'true' if valid or an error message as a string on errors`);let{message:r}=e,i=[];for(let t of(e.path&&i.push(e.path),e.paths||[]))i.push(t);return i.length?i.map(e=>({path:(n.path||[]).concat(e),level:t||"error",item:{message:r},message:r})):[{level:t||"error",item:{message:r},message:r,path:n.path||[]}]}function f7(e,t){let{currentLocale:n}=t,r=n.id;if(e[r])return e[r];if(r.includes("-")){let t=r.split("-",1)[0];if(e[t])return e[t]}return e["en-US"]||e["en-GB"]||e.en||"Unknown validation error (not localized)"}function f3(e){return!0!==e&&"u">typeof e&&"string"!=typeof e&&nl(e)&&!("message"in e)}function f8(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!f8(e[n],t[n]))return!1;return!0}if(Array.isArray(e)!=Array.isArray(t))return!1;if(e&&t&&"object"==typeof e&&"object"==typeof t){let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof Date!=t instanceof Date)return!1;if(e instanceof RegExp&&t instanceof RegExp)return e.toString()==t.toString();if(e instanceof RegExp!=t instanceof RegExp)return!1;for(let e=0;e<n.length;e++)if("_key"!==n[e]&&!Object.prototype.hasOwnProperty.call(t,n[e]))return!1;for(let r=0;r<n.length;r++){let i=n[r];if("_key"!==i&&!f8(e[i],t[i]))return!1}return!0}return!1}let f4={}.toString,f6=[Object,Function,Array,String,Boolean,Number,Date,RegExp,Error];function f9(e){let t=f4.call(e).slice(8,-1);if(null==e)return t.toLowerCase();let n=e.constructor;return n&&!function(e){for(let t=0;t<f6.length;t++)if(f6[t]===e)return!0;return!1}(n)?n.name:t}let ge=e=>e.message?e.message:1===e.results.length?e.results[0]?.message:e.i18n.t("{{messages, list}}",{messages:e.results.map(e=>e.message||e.item?.message),formatParams:{messages:{style:"long",type:e.operation}}}),gt={type:(e,t,n,{i18n:r})=>{let i=f9(t);return i===e||"undefined"===i||n||r.t("validation:generic.incorrect-type",{actualType:i,expectedType:e})},presence:(e,t,n,{i18n:r})=>void 0!==t||"required"!==e||n||r.t("validation:generic.required"),all:async(e,t,n,r)=>{let i=(await Promise.all(e.map(e=>e.validate(t,r)))).flat();return 0===i.length||ge({message:n,results:i,operation:"conjunction",i18n:r.i18n})},either:async(e,t,n,r)=>{let i=await Promise.all(e.map(e=>e.validate(t,r))),a=i.flat();return!!i.find(e=>!e.length)||ge({message:n,results:a,operation:"disjunction",i18n:r.i18n})},valid:(e,t,n,{i18n:r})=>{let i=typeof t;if("undefined"===i)return!0;let a=("number"===i||"string"===i)&&`${t}`,o=a&&a.length>30?`${a.slice(0,30)}\u2026`:a;return!!e.some(e=>f8(e,t))||n||r.t("validation:generic.not-allowed",a?{context:"hint",replace:{hint:o}}:{})},custom:async(e,t,n,r)=>{let i,a=setTimeout(()=>{"studio"===r.environment&&console.warn(`Custom validator at ${f2(r.path)} has taken more than 5000ms to respond`)},5e3);try{i=await e(t,r)}finally{clearTimeout(a)}return f3(i)?f7(i,r.i18n):"string"==typeof i&&n||i}},gn={...gt,min:(e,t,n,{i18n:r,type:i})=>{if(!t||t.length>=e)return!0;let a=(0,_.GX)(i)?"blocks":void 0;return n||r.t("validation:array.minimum-length",{minLength:e,context:a})},max:(e,t,n,{i18n:r,type:i})=>{if(!t||t.length<=e)return!0;let a=(0,_.GX)(i)?"blocks":void 0;return n||r.t("validation:array.maximum-length",{maxLength:e,context:a})},length:(e,t,n,{i18n:r,type:i})=>{if(!t||t.length===e)return!0;let a=(0,_.GX)(i)?"blocks":void 0;return n||r.t("validation:array.exact-length",{wantedLength:e,context:a})},presence:(e,t,n,{i18n:r})=>"required"!==e||!!t||n||r.t("validation:generic.required",{context:"array"}),valid:(e,t,n,{i18n:r})=>{if(typeof t>"u")return!0;let i=[];for(let n=0;n<t.length;n++){let r=t[n];if(e.some(e=>f8(e,r)))continue;let a=r&&r._key?{_key:r._key}:n;i.push([a])}let a=n||r.t("validation:generic.not-allowed");return i.map(e=>({message:a,path:e}))},unique:(e,t,n,{i18n:r})=>{let i=[];if(!t)return!0;for(let e=0;e<t.length;e++)for(let n=e+1;n<t.length;n++)f8(t[e],t[n])&&(-1===i.indexOf(e)&&i.push(e),-1===i.indexOf(n)&&i.push(n));let a=i.map(e=>{let n=t[e];return[n&&n._key?{_key:n._key}:e]}),o=n||r.t("validation:array.item-duplicate");return a.map(e=>({message:o,path:e}))}},gr={...gt,presence:(e,t,n,{i18n:r})=>"required"!==e||"boolean"==typeof t||n||r.t("validation:generic.required",{context:"boolean"})};function gi(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let ga=/^(?:[-+]\d{2})?(?:\d{4}(?!\d{2}\b))(?:(-?)(?:(?:0[1-9]|1[0-2])(?:\1(?:[12]\d|0[1-9]|3[01]))?|W(?:[0-4]\d|5[0-2])(?:-?[1-7])?|(?:00[1-9]|0[1-9]\d|[12]\d{2}|3(?:[0-5]\d|6[1-6])))(?![T]$|[T][\d]+Z$)(?:[T\s](?:(?:(?:[01]\d|2[0-3])(?:(:?)[0-5]\d)?|24:?00)(?:[.,]\d+(?!:))?)(?:\2[0-5]\d(?:[.,]\d+)?)?(?:[Z]|(?:[+-])(?:[01]\d|2[0-3])(?::?[0-5]\d)?)?)?)?$/,go=(e="",t,n)=>{let r=n?.dateFormat||e7.D2,i=n?.timeFormat||e7.EN;return e7.GP(t,"date"===e?r:`${r} ${i}`,{useUTC:"date"===e})};
665function gl(e,t=!1){if(!e)return null;if("now"===e)return new Date;let n=new Date(e),r=isNaN(n.getTime());if(r&&t)throw Error(`Unable to parse "${e}" to a date`);return r?null:n}let gs={...gt,type:(e,t,n,{i18n:r})=>!!(typeof t>"u"||ga.test(`${t}`))||n||r.t("validation:date.invalid-format"),min:(e,t,n,{type:r,i18n:i})=>{let a=gl(t),o=gl(e,!0);if(!a||!t||a>=o)return!0;if(!r)throw Error("`type` was not provided in validation context.");let l=gi(r.options)?r.options:{};return n||i.t("validation:date.minimum",{minDate:go(r.name,o,l),providedMinDate:e})},max:(e,t,n,{type:r,i18n:i})=>{let a=gl(t),o=gl(e,!0);if(!a||!t||a<=o)return!0;if(!r)throw Error("`type` was not provided in validation context.");let l=gi(r.options)?r.options:{};return n||i.t("validation:date.maximum",{maxDate:go(r.name,o,l),providedMaxDate:e})}},gd=/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/,gc={...gt,integer:(e,t,n,{i18n:r})=>!!Number.isInteger(t)||n||r.t("validation:number.non-integer"),precision:(e,t,n,{i18n:r})=>{if(void 0===t)return!0;let i=t.toString().match(gd);return!(Math.max((i[1]?i[1].length:0)-(i[2]?parseInt(i[2],10):0),0)>e)||n||r.t("validation:number.maximum-precision",{limit:e})},min:(e,t,n,{i18n:r})=>t>=e||n||r.t("validation:number.minimum",{minNumber:e}),max:(e,t,n,{i18n:r})=>t<=e||n||r.t("validation:number.maximum",{maxNumber:e}),greaterThan:(e,t,n,{i18n:r})=>t>e||n||r.t("validation:number.greater-than",{threshold:e}),lessThan:(e,t,n,{i18n:r})=>t<e||n||r.t("validation:number.less-than",{threshold:e})},gu=["_key","_type","_weak"],gp={...gt,presence:(e,t,n,{i18n:r})=>{if("required"!==e)return!0;let i=t&&Object.keys(t).filter(e=>!gu.includes(e));return void 0!==t&&(!i||0!==i.length)||n||r.t("validation:generic.required",{context:"object"})},reference:async(e,t,n,r)=>{if(!t)return!0;let{type:i,document:a,getDocumentExists:o,i18n:l}=r;if(!(0,_.A_)(t))return n||l.t("validation:object.not-reference");if(!i)throw Error("`type` was not provided in validation context");if("weak"in i&&i.weak)return!0;if(!o)throw Error("`getDocumentExists` was not provided in validation context");let s=a?._id;return!!(s&&t._ref==ib(s)||await o({id:t._ref}))||l.t("validation:object.reference-not-published",{documentId:t._ref})},assetRequired:(e,t,n,{i18n:r})=>!!t&&!!t.asset&&!!t.asset._ref||n||r.t("validation:object.asset-required",{context:e.assetType||""}),media:async(e,t,n,r)=>{let i=setTimeout(()=>{"studio"===r.environment&&console.warn(`Media validator at ${f2(r.path)} has taken more than 5000ms to respond`)},5e3);if(!t)return!0;if(!t||!t.media||!t.media._ref)return r.i18n.t("validation:object.not-media-library-asset");let a=!0;try{let[n,i,o]=t.media._ref.split(":",3),l=await r.getClient({apiVersion:"2025-02-19"}).withConfig({"~experimental_resource":{type:n,id:i}}).fetch("*[_id == $id] { ..., 'currentVersion': @.currentVersion-> { ... }  }[0]",{id:o});if(!l)return console.warn(`${r.i18n.t("validation:object.media-not-found")}
666Asset ID: ${t.media._ref}`),r.i18n.t("validation:object.media-not-found");a=await e({media:{asset:l},value:t},r)}catch(e){throw Error(`Media validator at ${f2(r.path)} failed with an error: ${e instanceof Error?e.message:String(e)}`,{cause:e})}finally{clearTimeout(i)}return f3(a)?f7(a,r.i18n):"string"==typeof a&&n||a}},gm="http://sanity",gh=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,gf={Boolean:gr,Number:gc,String:{...gt,min:(e,t,n,{i18n:r})=>!t||t.length>=e||n||r.t("validation:string.minimum-length",{minLength:e}),max:(e,t,n,{i18n:r})=>!t||t.length<=e||n||r.t("validation:string.maximum-length",{maxLength:e}),length:(e,t,n,{i18n:r})=>(t||"").length===e||n||r.t("validation:string.exact-length",{wantedLength:e}),uri:(e,t,n,{i18n:r})=>{let i,a=t||"";if(!a)return!0;let{options:o}=e,{allowCredentials:l,relativeOnly:s}=o,d=o.allowRelative||s;try{i=d?new URL(a,gm):new URL(a)}catch{return n||r.t("validation:string.url.invalid")}if(s&&i.origin!==gm)return n||r.t("validation:string.url.not-relative");if(!d&&i.origin===gm&&/^\.*\//.test(a))return n||r.t("validation:string.url.not-absolute");if(!l&&(i.username||i.password))return n||r.t("validation:string.url.includes-credentials");let c=i.protocol.replace(/:$/,"");return!!o.scheme.some(e=>e.test(c))||n||r.t("validation:string.url.disallowed-scheme",{scheme:c})},stringCasing:(e,t,n,{i18n:r})=>{let i=t||"";return"uppercase"===e&&i!==i.toLocaleUpperCase()?n||r.t("validation:string.uppercase"):"lowercase"!==e||i===i.toLocaleLowerCase()||n||r.t("validation:string.lowercase")},presence:(e,t,n,{i18n:r})=>"required"!==e||!!t||n||r.t("validation:generic.required",{context:"string"}),regex:(e,t,n,{i18n:r})=>{let{pattern:i,name:a,invert:o}=e,l=a||`${i.toString()}`;i.lastIndex=0;let s=i.test(t||"");return(!!o||!!s)&&(!o||!s)||n||(o?r.t("validation:string.regex-match",{name:l}):r.t("validation:string.regex-does-not-match",{name:l}))},email:(e,t,n,{i18n:r})=>{let i=`${t||""}`.trim();return!!(!i||gh.test(i))||n||r.t("validation:string.email")}},Array:gn,Object:gp,Date:gs},gg=e=>e&&e.type?gg(e.type):e,gC=[],gy=Symbol("FIELD_REF"),gx=["Array","Boolean","Date","Number","Object","String"],gb=class e{static FIELD_REF=gy;static array=t=>new e(t).type("Array");static object=t=>new e(t).type("Object");static string=t=>new e(t).type("String");static number=t=>new e(t).type("Number");static boolean=t=>new e(t).type("Boolean");static dateTime=t=>new e(t).type("Date");static valueOfField=e=>({type:gy,path:e});
666_type=void 0;_level=void 0;_required=void 0;_typeDef=void 0;_message=void 0;_rules=[];_fieldRules=void 0;constructor(e){this._typeDef=e,this.reset()}_mergeRequired(e){return"required"===this._required||"required"===e._required?"required":"optional"===this._required||"optional"===e._required?"optional":void 0}valueOfField=e.valueOfField.bind(e);error(e){let t=this.clone();return t._level="error",t._message=e||void 0,t}warning(e){let t=this.clone();return t._level="warning",t._message=e||void 0,t}info(e){let t=this.clone();return t._level="info",t._message=e||void 0,t}reset(){return this._type=this._type||void 0,this._rules=(this._rules||[]).filter(e=>"type"===e.flag),this._message=void 0,this._required=void 0,this._level="error",this._fieldRules=void 0,this}isRequired(){return"required"===this._required}clone(){let t=new e;return t._type=this._type,t._message=this._message,t._required=this._required,t._rules=nj(this._rules),t._level=this._level,t._fieldRules=this._fieldRules,t._typeDef=this._typeDef,t}cloneWithRules(e){let t=this.clone(),n=new Set;return e.forEach(e=>{"type"===e.flag&&(t._type=e.constraint),n.add(e.flag)}),t._rules=t._rules.filter(e=>{let t=["type","uri","email"].includes(e.flag),r=n.has(e.flag);return!(t&&r)}).concat(e),t}merge(e){if(this._type&&e._type&&this._type!==e._type)throw Error("merge() failed: conflicting types");let t=this.cloneWithRules(e._rules);return t._type=this._type||e._type,t._message=this._message||e._message,t._required=this._mergeRequired(e),t._level="error"===this._level?e._level:this._level,t}type(e){let t=`${e.slice(0,1).toUpperCase()}${e.slice(1)}`;if(!gx.includes(t))throw Error(`Unknown type "${e}"`);let n=this.cloneWithRules([{flag:"type",constraint:t}]);return n._type=t,n}all(e){return this.cloneWithRules([{flag:"all",constraint:e}])}either(e){return this.cloneWithRules([{flag:"either",constraint:e}])}optional(){let e=this.cloneWithRules([{flag:"presence",constraint:"optional"}]);return e._required="optional",e}required(){let e=this.cloneWithRules([{flag:"presence",constraint:"required"}]);return e._required="required",e}custom(e,t={}){return t.bypassConcurrencyLimit&&Object.assign(e,{bypassConcurrencyLimit:!0}),this.cloneWithRules([{flag:"custom",constraint:e}])}min(e){return this.cloneWithRules([{flag:"min",constraint:e}])}max(e){return this.cloneWithRules([{flag:"max",constraint:e}])}length(e){return this.cloneWithRules([{flag:"length",constraint:e}])}valid(e){let t=Array.isArray(e)?e:[e];return this.cloneWithRules([{flag:"valid",constraint:t}])}integer(){return this.cloneWithRules([{flag:"integer"}])}precision(e){return this.cloneWithRules([{flag:"precision",constraint:e}])}positive(){return this.cloneWithRules([{flag:"min",constraint:0}])}negative(){return this.cloneWithRules([{flag:"lessThan",constraint:0}])}greaterThan(e){return this.cloneWithRules([{flag:"greaterThan",constraint:e}])}lessThan(e){return this.cloneWithRules([{flag:"lessThan",constraint:e}])}uppercase(){return this.cloneWithRules([{flag:"stringCasing",constraint:"uppercase"}])}lowercase(){return this.cloneWithRules([{flag:"stringCasing",constraint:"lowercase"}])}regex(e,t,n){let r="string"==typeof t?t:t?.name??n?.name,i="string"!=typeof t&&(t?.invert??n?.invert);return this.cloneWithRules([{flag:"regex",constraint:{pattern:e,name:r,invert:i||!1}}])}email(){return this.cloneWithRules([{flag:"email"}])}uri(e){let t=e?.scheme||["http","https"],n=Array.isArray(t)?t:[t];if(!n.length)throw Error("scheme must have at least 1 scheme specified");let r={options:{scheme:n.map(e=>{if(!(e instanceof RegExp)&&"string"!=typeof e)throw Error("scheme must be a RegExp or a String");return"string"==typeof e?RegExp(`^${e.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g,"\\$&")}$`):e}),allowRelative:e?.allowRelative||!1,relativeOnly:e?.relativeOnly||!1,allowCredentials:e?.allowCredentials||!1}};return this.cloneWithRules([{flag:"uri",constraint:r}])}unique(){return this.cloneWithRules([{flag:"unique"}])}reference(){return this.cloneWithRules([{flag:"reference"}])}fields(e){if("Object"!==this._type)throw Error("fields() can only be called on an object type");let t=this.cloneWithRules([]);return t._fieldRules=e,t}assetRequired(){let e,t=gg(this._typeDef);return e=t&&["image","file"].includes(t.name)?"image"===t.name?"image":"file":"asset",this.cloneWithRules([{flag:"assetRequired",constraint:{assetType:e}}
666])}media(e){return this.cloneWithRules([{flag:"media",constraint:e}])}async validate(e,{__internal:t={},...n}){let{customValidationConcurrencyLimiter:r}=t,i=null==e;if(i&&"optional"===this._required)return gC;let a=void 0===this._required&&i?this._rules.filter(e=>"custom"===e.flag):this._rules,o=this._type&&gf[this._type]||gt;return(await Promise.all(a.map(async t=>{let i;if(void 0===t.flag)throw Error('Invalid rule, did not contain "flag"-property');let a=o[t.flag];if(!a){let e=this._type?`type "${this._type}"`:"rule without declared type";throw Error(`Validator for flag "${t.flag}" not found for ${e}`)}let l="constraint"in t?t.constraint:null;if("object"==typeof(i=l)&&i&&i.type===gb.FIELD_REF&&(l=ni(n.parent,l.path)),"custom"===t.flag&&r&&!l?.bypassConcurrencyLimit){let e=l;l=async(...t)=>{await r.ready();try{return await e(...t)}finally{r.release()}}}let s=f3(this._message)?f7(this._message,n.i18n):this._message;try{let t=await a(l,e,s,n);return f0(t,this._level,n)}catch(e){return f0({message:`${f2(n.path)}: Exception occurred while validating value: ${e.message}`},"error",n)}}))).flat()}},gv=eY(function(e){console.warn([`Slug field at path ${e} is within an array and cannot be automatically checked for uniqueness`,'If you need to check for uniqueness, provide your own "isUnique" method',"To disable this message, set `disableArrayWarning: true` on the slug `options` field"].join(`
667`))});function gj(e){return e.reduce((e,t,n)=>{let r="number"==typeof t,i=(0,_.o8)(t),a=r||i?"[]":`${0===n?"":"."}${t}`;return`${e}${a}`},"")}let gw=(e,t)=>{let{getClient:n,document:r,path:i,type:a}=t,o=a?.options;if(!r)throw Error("`document` was not provided in validation context.");if(!i)throw Error("`path` was not provided in validation context.");let l=o?.disableArrayWarning||!1,s=r._type,d=gj(i.concat("current"));!l&&d.includes("[]")&&"studio"===t.environment&&gv(gj(i));let c=`_type == $docType && !sanity::versionOf($published) && ${d} == $slug`;return n({apiVersion:a7.apiVersion}).withConfig({perspective:"raw"}).fetch(`!defined(*[${c}][0]._id)`,{docType:s,published:ib(r._id),slug:e},{tag:"validation.slug-is-unique"})},g_=async(e,t)=>{if(!e)return!0;let{i18n:n}=t;if("object"!=typeof e||Array.isArray(e))return n.t("validation:slug.not-object");if(!(0,_.u5)(e)||0===e.current.trim().length)return n.t("validation:slug.missing-current");let r=t?.type?.options?.isUnique||gw,i={...t,parent:t.parent,type:t.type,defaultIsUnique:gw};return!!await r(e.current,i)||n.t("validation:slug.not-unique",{slug:e.current})},gk={array:!0,boolean:!0,date:!0,number:!0,object:!0,string:!0};function gS(e,t=new Set){return e?t.has(e)?[]:(t.add(e),[...e.type?gS(e.type,t):[],e]):[]}function gT(e,t){let n=e;t.jsonType in gk&&(n=n.type(t.jsonType));let r=t?.options&&"object"==typeof t.options&&"list"in t.options&&t.options.list;return Array.isArray(r)&&(n=n.valid(r.map(e=>{var n,r;return n=e,"object"===(r=t).jsonType&&function e(t){return!!t&&("fields"in t||!t.type?"fields"in t&&!!Array.isArray(t.fields)&&t.fields.some(e=>"value"===e.name):e(t.type))}(r)||void 0===n.value?n:n.value}))),"datetime"===t.name||"date"===t.name?n.type("Date"):"url"===t.name?n.uri():"slug"===t.name?n.custom(g_,{bypassConcurrencyLimit:!0}):"reference"===t.name?n.reference():"email"===t.name?n.email():n}function gI(e){if(!e)return[];let t=e.validation;if(Array.isArray(t))return t.flatMap(t=>gI({...e,validation:t}));if(t&&"object"==typeof t)return[t];let n=Object.values(gS(e).reduce((e,t)=>(e[t.name]=t,e),{})).reduce(gT,new gb(e));return t?gI({...e,validation:t(n)}):[n]}function gE(e){return e.getLocalTypeNames().forEach(t=>{let n=e.get(t);n&&function e(t,n){if(!n.has(t)){if(n.add(t),t.validation=gI(t),"fields"in t)for(let r of t.fields)e(r.type,n);if("of"in t)for(let r of t.of)e(r,n);if(t.annotations)for(let r of t.annotations)e(r,n)}}(n,new Set)}),e}let g$=typeof window>"u"||typeof document>"u",gA=[r6],gD=eY(function(){let e=function(){let e={[r6.id]:{}},t=r6.bundles?.filter(r3)||[],n=new Set;for(let r of t)e[r6.id][r.namespace]=r.resources,n.add(r.namespace);return(0,nw.Q_)({ns:Array.from(n),defaultNS:r4,initImmediate:!0,partialBundledLanguages:!0,fallbackLng:r6.id,lng:r6.id,supportedLngs:[r6.id],debug:!1,load:"currentOnly",resources:e,interpolation:{escapeValue:g$}})}();return e.init(),{currentLocale:r6,locales:gA,loadNamespaces:e.loadNamespaces,t:e.t}}),gz=typeof window>"u"?void 0:window,gM=gz?.requestIdleCallback||function(e,t){let n=Date.now();return window.setTimeout(()=>{e({didTimeout:!1,timeRemaining:()=>Math.max(0,Date.now()-n)})},0)},gP=gz?.cancelIdleCallback||function(e){return window.clearTimeout(e)},gR=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),gO=e=>null!=e,gV=new WeakMap,gL={isValidating:!0,validation:[]},gF=[];function gB(){return(0,Y.t)({bufferSize:1,refCount:!0})}function gN(e,t){let n=t.pipe((0,E.T)(e=>(0,rw.TS)(e,(e,t)=>((0,_.A_)(t)&&!(0,_.Q9)(t)&&e.add(t._ref),e),new Set)),(0,ew.Z)(e=>(0,Q.H)(e))),r=t.pipe((0,E.T)(e=>({versionId:ix(e?._id||"")})),(0,ei.F)()),i=(0,eo.z)([r,n]).pipe((0,e$.$)(([e,t])=>t,{duration:()=>(0,F.O)(18e5)}),(0,ew.Z)(t=>t.pipe((0,eM.d)(),(0,ew.Z)(([{versionId:t},n])=>(0,e.observeDocumentPairAvailability)(n,{version:t}).pipe((0,E.T)(({published:e,version:t})=>
667(!!t?.available||t?.reason!=="VERSION_DELETED")&&(e.available||t?.available||!1))).pipe((0,E.T)(e=>[n,e]))))),(0,G.S)((e,[t,n])=>e[t]===n?e:{...e,[t]:n},{}),(0,ei.F)(nm),gB()),a=({id:e})=>(0,eu.s)(i.pipe((0,eP.$)(t=>e in t),(0,E.T)(t=>t[e]))),o=i.pipe((0,ea.i)(1),(0,eA.c)(1e3,ec.E,{leading:!0,trailing:!0}));return(0,eo.z)([t,(0,S.x)((0,k.of)(null),o)]).pipe((0,E.T)(([e])=>e),(0,rC.L)(t=>(0,T.v)(()=>t?._type?(0,S.x)((0,k.of)({isValidating:!0,revision:t._rev}),(function({document:e,getClient:t,i18n:n=gD(),schema:r,getDocumentExists:i,environment:a,maxCustomValidationConcurrency:o}){if("string"!=typeof e?._type)throw Error("Tried to validated a value without a '_type'");let l=r.get(e._type);if(!l)return"studio"===a?(console.warn('Schema type for object type "%s" not found, skipping validation',e._type),(0,k.of)([])):(0,k.of)([{level:"warning",message:`Could not find schema type for type '${e._type}', skipping validation`,path:[]}]);let s=gV.get(r);s||(s=new r_._(o??5),gV.set(r,s));let d={getClient:t,schema:r,parent:void 0,value:e,path:[],document:e,type:l,i18n:n,getDocumentExists:i,environment:a,customValidationConcurrencyLimiter:s};return(0,Q.H)(n.loadNamespaces(["validation"])).pipe((0,z.n)(()=>(function e({value:t,type:n,path:r=[],parent:i,customValidationConcurrencyLimiter:a,environment:o,...l}){let s=e=>n?.jsonType==="object"&&gS(n).find(e=>["object","document","file","image"].includes(e.name))&&"studio"!==o?e.custom(e=>{if("object"!=typeof e||!e)return!0;let t=new Set(n.fields?.map(e=>e.name));return Object.keys(e).filter(e=>!e.startsWith("_")).filter(e=>!t.has(e)).map(e=>({message:`Field '${e}' does not exist on type '${n.name}'`,path:[e]}))},{bypassConcurrencyLimit:!0}).warning():e,d=gI(n),c=d.map(s).map(e=>(0,T.v)(()=>e.validate(t,{...l,environment:o,parent:i,path:r,type:n,__internal:{customValidationConcurrencyLimiter:a}}))),u=[],p=d.some(e=>e.isRequired());if(n?.jsonType==="object"&&(t||null==t&&p)){let i=n.fields.reduce((e,t)=>(e[t.name]=t.type,e),{});u=(u=u.concat(d.map(e=>e._fieldRules).filter(gO).flatMap(e=>Object.entries(e)).flatMap(([e,n])=>{let d=i[e];return gI({...d,validation:n}).map(s).map(n=>{let i=gR(t)?t[e]:void 0;return(0,T.v)(()=>n.validate(i,{...l,parent:t,path:r.concat(e),type:d,environment:o,__internal:{customValidationConcurrencyLimiter:a}}))})}))).concat(n.fields.map(n=>e({...l,parent:t,value:gR(t)?t[n.name]:void 0,path:r.concat(n.name),type:n.type,environment:o,customValidationConcurrencyLimiter:a})))}return n?.jsonType==="array"&&Array.isArray(t)&&(u=u.concat(t.map((i,s)=>e({...l,parent:t,value:i,path:r.concat((0,_.o8)(i)?{_key:i._key}:s),type:function(e,t){if(1===t.length)return t[0];let n=(0,_.Kk)(e)&&e._type,r=null==e||!n&&f9(e).toLowerCase();return r&&"object"!==r?t.find(e=>e.jsonType===r):t.find(e=>e.type?.name===n)||t.find(e=>e.name===n)||t.find(e=>"object"===e.name&&"object"===r)}(i,n.of),environment:o,customValidationConcurrencyLimiter:a})))),(0,T.v)(()=>(0,R.h)([...c,...u])).pipe((0,ew.Z)(e=>(0,S.x)(new P.c(e=>{let t=gM(()=>{e.complete()},void 0);return()=>gP(t)}),e),40),(0,eD.U)(),(0,ez.$)(),(0,E.T)(e2),(0,E.T)(e=>d.some(e=>e._fieldRules)?tX(e,e=>JSON.stringify(e)):e))})(d)),(0,M.W)(e=>{console.error(e);let t=e?.message||"Unknown error";return(0,k.of)([{level:"error",message:t,item:{message:t},path:[]}])}))})({document:t,getClient:e.getClient,getDocumentExists:a,i18n:e.i18n,schema:e.schema,environment:"studio"}).pipe((0,E.T)(e=>({validation:e,isValidating:!1})))):(0,k.of)({validation:gF,isValidating:!1}))),(0,G.S)((e,t)=>({...e,...t}),gL),gB())}let gY=d6((e,{draftId:t,publishedId:n,versionId:r},i)=>{let a=fE(e,{draftId:t,publishedId:n,versionId:r},i).pipe((0,E.T)(({version:e,draft:t,published:n})=>e||t||n),(0,eA.c)(200,ec.E,{trailing:!0}),(0,ei.F)((e,t)=>e?._rev===t?._rev||nm(nL(e,"_rev","_updatedAt"),nL(t,"_rev","_updatedAt"))),(0,Y.t)({bufferSize:1,refCount:!0}));return gN(e,a)},(e,t,n)=>fb(e.client,t,n)),gH=d6((e,t,n,r,i)=>fv(e,t,n,r,i).pipe((0,z.n)(({draft:e,published:t})=>(0,R.h)(e.events,t.events))),fb);function gZ(e){return{disabled:"NOT_READY",execute:()=>{throw Error(`Called ${e} before it was ready.`)}}}let gU={commit:gZ("commit"),delete:gZ("delete"),del:gZ("del"),publish:gZ("publish"),patch:gZ("patch"),discardChanges:gZ("discardChanges"),unpublish:gZ("unpublish"),duplicate:gZ("duplicate"),restore:gZ("restore")};function gq(e,t,n){let r,i;return{disabled:t.disabled(n),execute:(r=n.idPair,i=n.typeName,(...t)=>fG(e,r,i,t))}}function gJ(e){let t={commit:gq("commit",fD,e),delete:gq("delete",fz,e),del:gq("delete",fz,e),publish:gq("publish",fL,e),patch:gq("patch",fV,e),discardChanges:gq("discardChanges",fM,e),unpublish:gq("unpublish",fB,e),duplicate:gq("duplicate",fO,e),restore:gq("restore",fF,e)};return e.serverActionsEnabled?{...t,delete:gq("delete",fN,e),del:gq("delete",fN,e),discardChanges:gq("discardChanges",fY,e),patch:gq("patch",fH,e),publish:gq("publish",fZ,e),unpublish:gq("unpublish",fq,e),restore:gq("restore",fU,e)}:t}let gW=d6((e,t,n)=>{let r=fQ(e),i=fA(e,t,n).pipe((0,E.T)(gJ));return(0,S.x)((0,k.of)(gU),(0,R.h)(r.pipe((0,ew.Z)(()=>I.w)),i)).pipe((0,Y.t)({refCount:!0,bufferSize:1}))},(e,t,n)=>fb(e.client,t,n));function gK(e,t={}){return"scheduler"in window&&"function"==typeof window.scheduler?.postTask?window.scheduler.postTask(e,t):e()}function gG(e,t){let n={...e,...t};
667return Object.keys(n).forEach(r=>{let i=t[r],a=e[r];nl(i)&&nl(a)&&(n[r]=gG(a,i))}),n}let gX=["_dataset","_projectId","_strengthenOnPublish","_key","_ref","_type","_weak"];function gQ(e){return e&&e.length>0?`"${e}"`:e}function g1(e,t){let n=e=>`Template "${t.id}" initial value: ${e}`;if(!nl(e))throw Error(n("resolved to a non-object"));if(e._type&&t.schemaType!==e._type)throw Error(n(`includes "_type"-property (${e._type}) that does not match template (${t.schemaType})`));try{return function e(t,n=[],r=!1){if(Array.isArray(t))return t.map((t,r)=>{if(Array.isArray(t))throw Error(`multidimensional arrays are not supported (at path "${(0,l.dI)(n)}")`);return e(t,n.concat(r),!0)});if(!nl(t))return t;let i=r&&!t._key?{_key:(0,nr.Xp)()}:{};return n.length>0&&!t._type&&t._ref&&(i._type="reference"),t._ref&&function(e,t=[]){if(!e._type&&e.type)throw Error(`Reference is missing "_type", but has a "type" property at path "${(0,l.dI)(t)}"`);let n=Object.keys(e).filter(e=>!gX.includes(e));if(n.length>0){let e=n.length>1?"properties":"property";throw Error(`Disallowed ${e} found in reference: ${n.map(gQ).join(", ")} at path "${(0,l.dI)(t)}"`)}}(t,n),Object.keys(t).reduce((r,i)=>(r[i]=e(t[i],n.concat([i])),r),i)}(e)}catch(e){throw e.message=n(e.message),e}}let g2=new WeakMap;async function g5(e,t,n,r){let i=r?.useCache;if("function"==typeof e){let r=g2.get(e),a=JSON.stringify([t,n.projectId,n.dataset,n.currentUser?.id]);if(i&&r?.[a])return r[a];let o=e(t,n);return i&&g2.set(e,{...r,[a]:o}),o}return e}async function g0(e,t,n={},r,i){var a;if(nl(a=t)&&"function"==typeof a.serialize)return g0(e,t.serialize(),n,r,i);let{id:o,schemaType:l,value:s}=t;if(!s)throw Error(`Template "${o}" has invalid "value" property`);let d=await g5(s,n,r,i);if(!nl(d))throw Error(`Template "${o}" has invalid "value" property - must be a plain object or a resolver function returning a plain object`);nl(d)&&!Object.keys(d).length&&(d={_type:l}),d=g1(d,t);let c=e.get(l);if(!c)throw Error(`Could not find schema type with name "${l}".`);return g1(gG(await g3(c,n,g7,r,i)||{},d),t)}let g7=10,g3=(e=>{let t=new WeakMap,n=e=>null!==e&&"object"==typeof e?Array.isArray(e)?`[${e.map(n).join(",")}]`:`{${Object.keys(e).sort().map(t=>`${JSON.stringify(t)}:${n(e[t])}`).join(",")}}`:JSON.stringify(e);return async function(r,i,a,o,l){if(!l?.useCache)return e(r,i,a,o,l);let s=t.get(r);s||(s=new Map,t.set(r,s));let d=n({params:i,context:{schemaName:o.schema.name,projectId:o.projectId,dataset:o.dataset,currentUser:o.currentUser?.id}}),c=s.get(d);if(c)return c;let u=await e(r,i,a,o,l);return s.has(d)||s.set(d,u),u}})((e,t,n=g7,r,i)=>n<=0?Promise.resolve(void 0):(0,_.$d)(e)?gK(()=>g4(e,t,n,r,i)):(0,_.zR)(e)?gK(()=>g8(e,t,n,r,i)):g5(e.initialValue,t,r,i));async function g8(e,t,n,r,i){let a=await g5(e.initialValue,void 0,r,i);if(Array.isArray(a))return Promise.all(a.map(async a=>{let o=function(e,t){let n=(0,nr.yu)(t);return"object"===n&&1===e.of.length?e.of[0]:e.of.find(e=>e.name===n)}(e,a);return(0,_.$d)(o)?{...a,...await g3(o,t,n-1,r,i),_key:(0,nr.Xp)()}:a}))}async function g4(e,t,n,r,i){let a={...await g5(e.initialValue,t,r,i)||{}},o={};await Promise.all(e.fields.map(async e=>{let a=await g3(e.type,t,n-1,r,i);null!=a&&(o[e.name]=a)}));let l=gG(o,a);if(!(0,nr.AF)(l))return"object"!==e.name&&(l._type=e.name),l}let g6={type:"loading"};function g9(e){return"welcome"===e.type}function Ce(e,t,n={},r={}){let i="string"==typeof t?t:t.fetch,a="string"==typeof t?t:t.listen,o=(0,T.v)(()=>e.listen(a,n,{events:["welcome","mutation","reconnect"],includeResult:!1,visibility:"query",includeAllVersions:!0,tag:r.tag})).pipe((0,ew.Z)((e,t)=>0!==t||g9(e)?(0,k.of)(e):(0,L.$)(()=>Error("reconnect"===e.type?"Could not establish EventSource connection":`Received unexpected type of first event "${e.type}"`))),(0,es.u)()),[l,s]=(0,ep.j)(o,g9),d=()=>(0,T.v)(()=>e.observable.fetch(i,n,{tag:r.tag,filterResponse:!0,perspective:r.perspective}));return(0,R.h)(l.pipe((0,ey.s)(1)),s.pipe((0,q.p)(e=>!r.transitions||"mutation"!==e.type||r.transitions.includes(e.transition)),(0,eA.c)(r.throttleTime||1e3,ec.E,{leading:!0,trailing:!0}))).pipe((0,rC.L)(e=>"mutation"===e.type&&"query"!==e.visibility?(0,F.O)(1200).pipe((0,ew.Z)(d)):d()))}function Ct(e,t){if("published"===t||"drafts"===t)throw Error('Version Id cannot be "published" or "drafts"');
667if(ic(e))throw Error("editOpsOf does not expect a version id.");if(id(e))throw Error("editOpsOf does not expect a draft id.");return iu(e,{version:t})}let Cn={isLoaded:!1,documentType:void 0};function Cr(e,t){let n,r,i,a,l,d,c,u=(0,o.c)(14),p=void 0===t?"*":t,m=z6();u[0]!==e?(n=ib(e),u[0]=e,u[1]=n):n=u[1];let h=n,f=!!(p&&"*"!==p);u[2]!==p?(i={documentType:p,isLoaded:!0},u[2]=p,u[3]=i):i=u[3],r=i;let[g,C]=(0,s.useState)(f?r:Cn);return u[4]===Symbol.for("react.memo_cache_sentinel")?(a=()=>C(Cn),u[4]=a):a=u[4],u[5]!==h||u[6]!==p?(l=[h,p],u[5]=h,u[6]=p,u[7]=l):l=u[7],(0,s.useEffect)(a,l),u[8]!==m||u[9]!==f||u[10]!==h||u[11]!==p?(d=()=>{if(f)return;let e=m.resolveTypeForDocument(h,p).subscribe(e=>C({documentType:e,isLoaded:!0}));return()=>e.unsubscribe()},c=[m,h,p,f],u[8]=m,u[9]=f,u[10]=h,u[11]=p,u[12]=d,u[13]=c):(d=u[12],c=u[13]),(0,s.useEffect)(d,c),f?r:g}function Ci(e){if(e?.ready)return[e.draft,e.published,e.version].every(e=>null===e)}let Ca=ia(([e,t])=>(0,Q.H)(e.getUser(t).catch(e=>(console.error(e),null))));function Co(e){let t,n=(0,o.c)(3),r=z7();return n[0]!==e||n[1]!==r?(t=[r,e],n[0]=e,n[1]=r,n[2]=t):t=n[2],Ca(t)}function Cl(){let{currentUser:e}=co();return e}function Cs(e){let t,n,r,i,a,l,d=(0,o.c)(17),{documentId:c,documentType:u,templateName:p,templateParams:m,version:h}=e,f=iY(m),g=z6(),C=Cd();d[0]!==c||d[1]!==h?(n=h?iy(c,h):c,d[0]=c,d[1]=h,d[2]=n):n=d[2],d[3]!==u||d[4]!==n?(r={_id:n,_type:u},d[3]=u,d[4]=n,d[5]=r):r=d[5],t=r,d[6]!==t?(i={loading:!1,error:null,value:t},d[6]=t,d[7]=i):i=d[7];let[y,x]=(0,s.useState)(i);return d[8]!==C||d[9]!==t||d[10]!==c||d[11]!==g||d[12]!==u||d[13]!==p||d[14]!==f?(a=()=>{let e=g.initialValue({documentId:c,documentType:u,templateName:p,templateParams:f},C).subscribe(e=>{"loading"===e.type&&x({loading:!0,error:null,value:t}),"success"===e.type&&x({loading:!1,error:null,value:e.value?{...t,...e.value}:t}),"error"===e.type&&x({loading:!1,error:e.error,value:t})});return x({loading:!0,error:null,value:t}),()=>e.unsubscribe()},l=[t,c,g,u,p,f,C],d[8]=C,d[9]=t,d[10]=c,d[11]=g,d[12]=u,d[13]=p,d[14]=f,d[15]=a,d[16]=l):(a=d[15],l=d[16]),(0,s.useEffect)(a,l),y}function Cd(){let e,t=(0,o.c)(6),n=co(),r=Cm(),i=Cl(),a=oG(),l=oK(),s=n.getClient;return t[0]!==i||t[1]!==l||t[2]!==s||t[3]!==a||t[4]!==r?(e={projectId:a,dataset:l,getClient:s,schema:r,currentUser:i},t[0]=i,t[1]=l,t[2]=s,t[3]=a,t[4]=r,t[5]=e):e=t[5],e}function Cc(){let e,t=(0,o.c)(2),n=Cd();return t[0]!==n?(e=(e,t)=>g3(e,t,g7,n),t[0]=n,t[1]=e):e=t[1],e}let Cu=ia(function({client:e,grantsStore:t,schema:n,id:r,permission:i,type:a,serverActionsEnabled:o,version:l,pairListenerOptions:s}){if("*"===a)return(0,k.of)({granted:!1,reason:"Type specified was `*`"});let d=!!function(e,t){let n=e.get(t);if(!n)throw Error(`No such schema type: ${t}`);return n}(n,a).liveEdit;return f_(e,iu(r,{version:l}),a,o,s).pipe((0,z.n)(e=>(0,eo.z)([e.draft.snapshots$,e.published.snapshots$,e.version?.snapshots$||(0,k.of)(null)]).pipe((0,E.T)(([e,t,n])=>({draft:e,published:t,version:n})))),(0,z.n)(({draft:e,published:n,version:r})=>{let a=(function({grantsStore:e,permission:t,draft:n,version:r,published:i,liveEdit:a}){let o=r||n||i,l=o===r?r:o===n?"draft":"published",{checkDocumentPermission:s}=e;switch(t){case"delete":return a?[["delete published document (live-edit)",s("update",i)]]:[["delete draft document",s("update",n)],["delete published document",s("update",i)]];case"discardDraft":return a?[]:[["delete draft document",s("update",n)]];case"discardVersion":return a?[]:[["delete version",s("update",r||null)]];case"publish":return a?[]:[["update published document at its current state",s("update",i)],["delete draft document",s("update",n)],["create published document from draft",s("create",n&&{...n,_id:ib(n._id)})]];case"unpublish":return a?[]:[["update draft document at its current state",s("create",n)],["delete published document",s("update",i)],["create draft document from published version",s("create",i&&{...i,_id:im(i._id)})]];case"update":return a?[["update published document (live-edit)",s("update",i)]]:[[`update ${l} document`,s("update",o)]];case"duplicate":return a?[["create new published document from existing document (live-edit)",s("create",{...i,_id:"dummy-id"})]]:[[`create new draft document from existing ${l} document`,s("create",{...o,_id:im("dummy-id")})]];default:throw Error(`Could not match permission: ${t}`)}})({grantsStore:t,permission:i,draft:e,version:r,published:n,liveEdit:d}).map(([e,t])=>t.pipe((0,E.T)(({granted:t,reason:n})=>({granted:t,reason:t?"":`not allowed to ${e}: ${n}`,label:e,permission:i}))));return a.length?(0,eo.z)(a).pipe((0,E.T)(e=>{let t=e.every(e=>e.granted),n=t?"":`Unable to ${i}:
668	${e.filter(e=>!e.granted).map(e=>e.reason).join(`
669	`)}`;return{granted:t,reason:n}})):(0,k.of)({granted:!0,reason:""})}))});function Cp(e){let t,n,r,i=(0,o.c)(14),{id:a,type:l,version:s,permission:d,client:c,schema:u,grantsStore:p,pairListenerOptions:m}=e,h=ee7(a7),f=Cm(),g=z3(),C=lE(),y=c||h,x=u||f,b=p||g;i[0]!==C.__internal_serverDocumentActions?.enabled?(t=()=>{let e=C.__internal_serverDocumentActions?.enabled;return"boolean"==typeof e?(0,k.of)(e):(0,k.of)(!0)},i[0]=C.__internal_serverDocumentActions?.enabled,i[1]=t):t=i[1],i[2]!==t?(n=t(),i[2]=t,i[3]=n):n=i[3];let v=n;return i[4]!==y||i[5]!==b||i[6]!==a||i[7]!==m||i[8]!==d||i[9]!==x||i[10]!==v||i[11]!==l||i[12]!==s?(r={client:y,schema:x,grantsStore:b,id:a,permission:d,type:l,serverActionsEnabled:v,pairListenerOptions:m,version:s},i[4]=y,i[5]=b,i[6]=a,i[7]=m,i[8]=d,i[9]=x,i[10]=v,i[11]=l,i[12]=s,i[13]=r):r=i[13],Cu(r)}function Cm(){return co().schema}function Ch(e){let{onClose:t,documentVersionId:n,documentType:r}=e,{t:i}=iJ(lO),{t:o}=iJ(),l=Cm(),{unpublishVersion:d}
669=lR(),[c,m]=(0,s.useState)(!1),h=(0,p.dj)(),{data:f}=lp(),{data:g}=cn(),C=f.concat(g).find(e=>o4(e._id)===ix(n)),x=uj(C),b=l.get(r),v=hD({schemaType:b,value:{_id:n}}),j=(0,s.useCallback)(async()=>{m(!0);try{await d(n),h.push({closable:!0,status:"success",description:(0,a.jsx)(an,{t:o,i18nKey:"release.action.unpublish-version.success",values:{title:v?.value?.title||n}})})}catch(e){h.push({closable:!0,status:"error",title:o("release.action.unpublish-version.failure"),description:e.message})}m(!1),t()},[o,n,t,v?.value?.title,h,d]);return(0,a.jsx)(y.lG,{header:i("unpublish-dialog.header"),id:"document-unpublish-dialog",onClickOutside:t,onClose:t,width:0,padding:!1,footer:{cancelButton:{text:i("unpublish-dialog.action.cancel"),onClick:t},confirmButton:{text:i("unpublish-dialog.action.unpublish"),onClick:j,tone:"critical",disabled:c,loading:c}},children:(0,a.jsxs)(u.BJ,{space:4,paddingX:4,paddingBottom:4,children:[b?(0,a.jsx)(DM,{value:{_id:n},schemaType:b}):(0,a.jsx)(r5,{}),(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(an,{t:i,i18nKey:"unpublish-dialog.description.to-draft",values:{title:C?.metadata.title||o("release.placeholder-untitled-release")},components:{Label:({children:e})=>(0,a.jsx)("span",{style:{color:`var(--card-badge-${x??"default"}-fg-color)`,backgroundColor:`var(--card-badge-${x??"default"}-bg-color)`,borderRadius:3,textDecoration:"none",padding:"0px 2px",fontWeight:500},children:e})}})}),(0,a.jsx)(u.EY,{muted:!0,size:1,children:i("unpublish-dialog.description.lost-changes")})]})})}let Cf=(0,s.memo)(function(e){let t,n,r,i,l,d,c,p,m,h,f,g,x,b,v,j,w,_,k,S,T,I,E,$=(0,o.c)(66),{document:A,releaseTitle:D}
669=e,[z,M]=(0,s.useState)(!1),[P,R]=(0,s.useState)(!1),{t:O}=iJ(),{t:V}=iJ(lO);$[0]!==A.document?(t=hE(A.document),$[0]=A.document,$[1]=t):t=$[1];let L=t;$[2]!==A.document._id?(n=ib(A.document._id),$[2]=A.document._id,$[3]=n):n=$[3];let F=n,B=A.document._type;$[4]!==A.document._id?(r=ix(A.document._id),$[4]=A.document._id,$[5]=r):r=$[5];let N=r;$[6]!==F||$[7]!==B||$[8]!==N?(i={id:F,type:B,version:N,permission:"discardVersion"},$[6]=F,$[7]=B,$[8]=N,$[9]=i):i=$[9];let[Y,H]=Cp(i);$[10]!==F||$[11]!==B||$[12]!==N?(l={id:F,type:B,version:N,permission:"unpublish"},$[10]=F,$[11]=B,$[12]=N,$[13]=l):l=$[13];let[Z,U]=Cp(l),q=!Y?.granted||H,J=!Z?.granted||U;e:{if(J){let e;$[14]!==V?(e=V("permissions.error.unpublish"),$[14]=V,$[15]=e):e=$[15],d=e;break e}if(!A.document.publishedDocumentExists){let e;$[16]!==V?(e=V("unpublish.no-published-version"),$[16]=V,$[17]=e):e=$[17],d=e;break e}if(L){let e;$[18]!==V?(e=V("unpublish.already-unpublished"),$[18]=V,$[19]=e):e=$[19],d=e;break e}d=null}let W=d,K=J||!A.document.publishedDocumentExists||L;$[20]===Symbol.for("react.memo_cache_sentinel")?(c=(0,a.jsx)(rU,{}),$[20]=c):c=$[20],$[21]!==O?(p=O("release.action.discard-version"),$[21]=O,$[22]=p):p=$[22],$[23]===Symbol.for("react.memo_cache_sentinel")?(m=()=>M(!0),$[23]=m):m=$[23];let G=!q;$[24]!==V?(h=V("permissions.error.discard-version"),$[24]=V,$[25]=h):h=$[25],$[26]!==G||$[27]!==h?(f={disabled:G,content:h},$[26]=G,$[27]=h,$[28]=f):f=$[28],$[29]!==q||$[30]!==f||$[31]!==p?(g=(0,a.jsx)(y.Dr,{text:p,icon:C.USm,onClick:m,disabled:q,tooltipProps:f}),$[29]=q,$[30]=f,$[31]=p,$[32]=g):g=$[32],$[33]===Symbol.for("react.memo_cache_sentinel")?(x=(0,a.jsx)(u.Nj,{}),$[33]=x):x=$[33],$[34]!==V?(b=V("menu.group.when-releasing"),$[34]=V,$[35]=b):b=$[35],$[36]!==b?(v=(0,a.jsx)(u.az,{padding:3,paddingBottom:2,children:(0,a.jsx)(u.JU,{size:1,children:b})}),$[36]=b,$[37]=v):v=$[37],$[38]!==V?(j=V("action.unpublish"),$[38]=V,$[39]=j):j=$[39];let X=!K;return $[40]!==X||$[41]!==W?(w={disabled:X,content:W},$[40]=X,$[41]=W,$[42]=w):w=$[42],$[43]===Symbol.for("react.memo_cache_sentinel")?(_=()=>R(!0),$[43]=_):_=$[43],$[44]!==K||$[45]!==j||$[46]!==w?(k=(0,a.jsx)(y.Dr,{text:j,icon:C.wvk,disabled:K,tooltipProps:w,onClick:_}),$[44]=K,$[45]=j,$[46]=w,$[47]=k):k=$[47],$[48]!==g||$[49]!==v||$[50]!==k?(S=(0,a.jsx)(u.Zp,{tone:"default",display:"flex",children:(0,a.jsx)(y.IU,{id:"document-actions",button:c,menu:(0,a.jsxs)(u.W1,{children:[g,x,v,k]})})}),$[48]=g,$[49]=v,$[50]=k,$[51]=S):S=$[51],$[52]!==A.document._id||$[53]!==A.document._type||$[54]!==D||$[55]!==z||$[56]!==V?(T=z&&(0,a.jsx)(lV,{onClose:()=>M(!1),documentId:A.document._id,documentType:A.document._type,fromPerspective:D||V("release-placeholder.title")}),$[52]=A.document._id,$[53]=A.document._type,$[54]=D,$[55]=z,$[56]=V,$[57]=T):T=$[57],$[58]!==A.document._id||$[59]!==A.document._type||$[60]!==P?(I=P&&(0,a.jsx)(Ch,{onClose:()=>R(!1),documentVersionId:A.document._id,documentType:A.document._type}),$[58]=A.document._id,$[59]=A.document._type,$[60]=P,$[61]=I):I=$[61],$[62]!==S||$[63]!==T||$[64]!==I?(E=(0,a.jsxs)(a.Fragment,{children:[S,T,I]}),$[62]=S,$[63]=T,$[64]=I,$[65]=E):E=$[65],E},(e,t)=>e.document.memoKey===t.document.memoKey),Cg=(0,s.memo)(function(e){let t,n=(0,o.c)(7),r=Cm().get(e.document.document._type),{t:i}=iJ();if(!r){let t,r;return n[0]!==e.document.document._type||n[1]!==i?(t=i("document.type.not-found",{type:e.document.document._type}),n[0]=e.document.document._type,n[1]=i,n[2]=t):t=n[2],n[3]!==t?(r=(0,a.jsx)(rU,{disabled:!0,tooltipProps:{content:t}}),n[3]=t,n[4]=r):r=n[4],r}return n[5]!==e?(t=(0,a.jsx)(Cf,{...e}),n[5]=e,n[6]=t):t=n[6],t}),CC=(0,s.memo)(function(e){let t,n=(0,o.c)(8),{item:r,releaseId:i,releaseState:l,documentRevision:s}=e;return n[0]!==s||n[1]!==r.document._id||n[2]!==r.document._type||n[3]!==r.previewValues.isLoading||n[4]!==r.previewValues.values||n[5]!==i||n[6]!==l?(t=(0,a.jsx)(cG,{documentId:r.document._id,documentTypeName:r.document._type,releaseId:i,releaseState:l,documentRevision:s,previewValues:r.previewValues.values,isLoading:r.previewValues.isLoading}),n[0]=s,n[1]=r.document._id,n[2]=r.document._type,n[3]=r.previewValues.isLoading,n[4]=r.previewValues.values,n[5]=i,n[6]=l,n[7]=t):t=n[7],t},(e,t)=>e.item.memoKey===t.item.memoKey&&e.releaseId===t.releaseId),Cy=(0,s.memo)(function(e){let t,n,r=(0,o.c)(5),{type:i}=e,l=Cm();r[0]!==l||r[1]!==i?(t=l.get(i),r[0]=l,r[1]=i,r[2]=t):t=r[2];let s=t?.title||"Not found";return r[3]!==s?(n=(0,a.jsx)(u.EY,{size:1,children:s}),r[3]=s,r[4]=n):n=r[4],n},(e,t)=>e.type===t.type);function Cx(e){let{documents:t,documentsHistory:n,isLoading:r=!1,release:i,scrollContainerRef:o}=e,l=(0,p.dj)(),{createVersion:d}
669=lP(),c=(0,e5.Jr)(),[m,h]=(0,s.useState)(!1),[f,g]=(0,s.useState)([]),{t:x}=iJ(lO),b=o4(i._id),v=(0,s.useMemo)(()=>t.map(e=>({...e,history:n[e.document._id]})),[t,n]),j=(0,s.useCallback)(e=>{let t;return"active"!==i.state||!((t=e.datum)&&"object"==typeof t&&"memoKey"in t&&"document"in t&&"validation"in t&&"previewValues"in t&&"history"in t)||e.datum.isPending?null:(0,a.jsx)(Cg,{document:e.datum,releaseTitle:i.metadata.title})},[i.metadata.title,i.state]),w=(0,s.useMemo)(()=>{let e,t;return e=i._id,t=i.state,[..."archived"===t||"published"===t?[]:[{id:"action",width:100,header:e=>(0,a.jsx)(u.so,{...e.headerProps,paddingY:3,sizing:"border",children:(0,a.jsx)(pi.BasicHeader,{text:x("table-header.action")})}),cell:({cellProps:e,datum:t})=>(0,a.jsx)(u.so,{align:"center",...e,children:(0,a.jsx)(u.az,{paddingX:2,children:t.isPending||t.isLoading?null:hE(t.document)?(0,a.jsx)(u.Ex,{radius:2,tone:"critical","data-testid":`unpublish-badge-${t.document._id}`,children:x("table-body.action.unpublish")}):t.document.publishedDocumentExists?(0,a.jsx)(u.Ex,{radius:2,tone:"caution","data-testid":`change-badge-${t.document._id}`,children:x("table-body.action.change")}):(0,a.jsx)(u.Ex,{radius:2,tone:"positive","data-testid":`add-badge-${t.document._id}`,children:x("table-body.action.add")})})})}],{id:"document._type",width:100,sorting:!0,header:e=>(0,a.jsx)(u.so,{...e.headerProps,paddingY:3,sizing:"border",children:(0,a.jsx)(pi.SortHeaderButton,{text:x("table-header.type"),...e})}),cell:({cellProps:e,datum:t})=>(0,a.jsx)(u.so,{align:"center",...e,children:(0,a.jsx)(u.az,{paddingX:2,children:!t.isLoading&&(0,a.jsx)(Cy,{type:t.document._type})})})},{id:"search",width:null,style:{minWidth:"50%",maxWidth:"50%"},sortTransform:e=>e.previewValues&&e.previewValues.values?.title?.toLowerCase()||0,header:e=>(0,a.jsx)(pi.TableHeaderSearch,{...e,placeholder:x("search-documents-placeholder")}),cell:({cellProps:n,datum:r})=>(0,a.jsx)(u.az,{...n,flex:1,padding:1,paddingRight:2,sizing:"border",children:r.isPending||r.isLoading?(0,a.jsx)(cU,{isPlaceholder:!0}):(0,a.jsx)(CC,{item:r,releaseId:e,releaseState:t,documentRevision:r.document._rev})})},{id:"document._updatedAt",sorting:!0,width:130,header:e=>(0,a.jsx)(u.so,{...e.headerProps,paddingY:3,sizing:"border",children:(0,a.jsx)(pi.SortHeaderButton,{text:x("table-header.edited"),...e})}),cell:({cellProps:e,datum:{document:t,history:n,isLoading:r}})=>(0,a.jsx)(u.so,{...e,align:"center",paddingX:2,paddingY:3,style:{minWidth:130},sizing:"border",children:!r&&t._updatedAt&&(0,a.jsxs)(u.so,{align:"center",gap:2,children:[n?.lastEditedBy&&(0,a.jsx)(cz,{size:0,user:n.lastEditedBy}),(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(cI,{time:t._updatedAt,useTemporalPhrase:!0,minimal:!0})})]})})},{id:"validation",sorting:!1,width:50,header:({headerProps:e})=>(0,a.jsx)(u.so,{...e,paddingY:3,sizing:"border",children:(0,a.jsx)(pi.BasicHeader,{text:""})}),cell:({cellProps:e,datum:t})=>{if(t.isLoading)return null;let n=t.validation.validation.filter(e=>"error"===e.level).length;return(0,a.jsx)(u.so,{...e,flex:1,padding:1,justify:"center",align:"center",sizing:"border",children:t.validation.hasError&&(0,a.jsx)(y.m_,{portal:!0,placement:"bottom-end",content:(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsxs)(u.so,{align:"center",gap:3,padding:1,children:[(0,a.jsx)(c9,{icon:C.YZv,tone:"critical"}),x(1===n?"document-validation.error_one":"document-validation.error_other",{count:n})]})}),children:(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(c9,{icon:C.YZv,tone:"critical"})})})})}}]},[i._id,i.state,x]),_=(0,s.useCallback)((e,t)=>e.filter(({previewValues:e,isPending:n})=>{let r="string"==typeof e.values?.title?e.values?.title:x("release-placeholder.title");return n||r.toLowerCase().includes(t.toLowerCase())}),[x]),k=(0,s.useCallback)(async e=>{if(h(!1),!e)return;let t=iy(e._id,b),n=`${t}-pending`,r={memoKey:t,previewValues:{isLoading:!0,values:{}},validation:{isValidating:!1,validation:[],hasError:!1},history:void 0,document:{...e,_id:n,publishedDocumentExists:!1},isPending:!0};g(e=>[...e,r]);try{await d(b,e._id);let t=ik(e._id);c.log(oL,{documentOrigin:t})}catch(e){g(e=>e.filter(({document:e})=>e._id!==n)),l.push({id:`add-version-to-release-${t}`,closable:!0,status:"error",title:x("toast.create-version.error",{error:e.message})})}},[d,b,x,c,l]);(0,s.useEffect)(()=>{let e=[];f?.forEach(n=>{t.find(({document:e})=>`${e._id}-pending`===n.document._id)&&e.push(n.document._id)}),e.length&&g(t=>t.filter(({document:t})=>!e.includes(t._id)))},[t,f,x,l]);let S=(0,s.useMemo)(()=>f.length?[...v,...f]:v,[f,v]);return(0,a.jsxs)(u.Zp,{borderTop:!0,"data-testid":"document-table-card",ref:o,children:[(0,a.jsx)(po,{loading:r,data:S,emptyState:x("summary.no-documents"),rowId:"document._id",columnDefs:w,rowActions:j,searchFilter:_,scrollC
669ontainerRef:o,defaultSort:{column:"search",direction:"asc"}}),"active"===i.state&&(0,a.jsx)(u.mc,{width:3,children:(0,a.jsx)(u.Zp,{padding:3,children:(0,a.jsx)(y.$n,{icon:C.REV,disabled:r,mode:"bleed",onClick:()=>h(!0),text:x("action.add-document")})})}),(0,a.jsx)(h9,{open:m,onClose:k,releaseId:b,idsInRelease:v.map(({document:e})=>e._id)})]})}function Cb(e){let t,n,r,i=(0,o.c)(9),a=z4(),{getClient:l,i18n:s}=co(),d=Cm(),{state$:c}=lu(),{perspectiveStack:u}=oW();return i[0]!==a||i[1]!==l||i[2]!==s||i[3]!==u||i[4]!==e||i[5]!==c||i[6]!==d?(n=(({schema:e,documentPreviewStore:t,getClient:n,releaseId:r,i18n:i,releasesState$:a,perspectiveStack:o})=>a.pipe((0,E.T)(e=>e.releases.get(cl(r))),(0,q.p)(Boolean),(0,ei.F)((e,t)=>e._rev===t._rev),(0,z.n)(a=>"published"===a.state||"archived"===a.state?(({getClient:e,schema:t,documentPreviewStore:n,release:r})=>{let i=e(oX),a=i.observable,o=i.config().dataset;if(!r.finalDocumentStates?.length)return(0,k.of)({loading:!1,results:[],error:null});function l(e){let t=e+10;return a.request({url:`/data/history/${o}/documents/${r.finalDocumentStates?.slice(e,t).map(e=>e.id).join(",")}?lastRevision=true`}).pipe((0,E.T)(({documents:e})=>({documents:e,finalIndex:t})))}return l(0).pipe((0,en.f)(e=>r.finalDocumentStates&&e.finalIndex<r.finalDocumentStates.length?l(e.finalIndex):(0,k.of)()),(0,er.T)((e,t)=>e.concat(t.documents),[])).pipe((0,ew.Z)(e=>(0,eo.z)(e.map(e=>{let r=t.get(e._type);if(!r)throw Error(`Schema type not found for document type ${e._type}`);return n.observeForPreview(e,r).pipe((0,ey.s)(1),(0,E.T)(({snapshot:t})=>({isLoading:!1,values:D0(t||e,r)})),(0,Z.Z)({isLoading:!0,values:{}}),(0,q.p)(({isLoading:e})=>!e)).pipe((0,E.T)(t=>({document:e,previewValues:t,memoKey:(0,nA.A)(),validation:{validation:[],hasError:!1,isValidating:!1}})))})).pipe((0,E.T)(e=>({loading:!1,results:e,error:null})))),(0,M.W)(e=>(0,k.of)({loading:!1,results:[],error:e})))})({schema:e,documentPreviewStore:t,getClient:n,release:a}):(({schema:e,documentPreviewStore:t,i18n:n,getClient:r,releaseId:i,perspectiveStack:a})=>t.unstable_observeDocumentIdSet("sanity::partOfRelease($releaseId)",{releaseId:i},{apiVersion:oX.apiVersion}).pipe((0,E.T)(e=>e.documentIds||[]),(0,tU.q)(o=>{let l={observeDocumentPairAvailability:t.unstable_observeDocumentPairAvailability,i18n:n,getClient:r,schema:e},s=t.unstable_observeDocument(o,{apiVersion:oX.apiVersion}).pipe((0,q.p)(Boolean),(0,z.n)(e=>t.unstable_observeDocumentPairAvailability(o).pipe((0,E.T)(t=>({...e,publishedDocumentExists:t.published.available}))))),d=s.pipe((0,z.n)(e=>hE(e)?(0,k.of)({isValidating:!1,validation:[],revision:e._rev,hasError:!1}):gN(l,(0,k.of)(e)).pipe((0,E.T)(e=>({...e,hasError:e.validation.some(e=>(0,_.Uw)(e))}))))),c=s.pipe((0,E.T)(n=>{let r=e.get(n._type);return r?t.observeForPreview(n,r,{perspective:[i]}).pipe((0,z.n)(e=>{if(e.snapshot)return(0,k.of)(e);let i=a.length>1?a.slice(1):a,o=i[0],l="drafts"===o?im(n._id):iy(n._id,o);return t.observeForPreview({_id:l},r,{perspective:i})}),(0,E.T)(({snapshot:e})=>({isLoading:!1,values:e})),(0,Z.Z)({isLoading:!0,values:{}})):(console.error(`Schema type not found for document type ${n._type} (document ID: ${n._id})`),(0,k.of)({isLoading:!1,values:{_id:n._id,title:`Document type "${n._type}" not found`,_createdAt:n._createdAt,_updatedAt:n._updatedAt}}))}),(0,eR.w)());return(0,eo.z)([s,d,c]).pipe((0,E.T)(([e,t,n])=>({document:e,validation:t,previewValues:n,memoKey:(0,nA.A)()})))}),(0,E.T)(e=>({loading:!1,results:e,error:null})),(0,M.W)(e=>(0,k.of)({loading:!1,results:[],error:e}))))({schema:e,documentPreviewStore:t,i18n:i,getClient:n,releaseId:r,perspectiveStack:o})),(0,Z.Z)({loading:!0,results:[],error:null})))({schema:d,documentPreviewStore:a,getClient:l,releaseId:e,i18n:s,releasesState$:c,perspectiveStack:u}),i[0]=a,i[1]=l,i[2]=s,i[3]=u,i[4]=e,i[5]=c,i[6]=d,i[7]=n):n=i[7],t=n,i[8]===Symbol.for("react.memo_cache_sentinel")?(r={loading:!0,results:[],error:null},i[8]=r):r=i[8],(0,eH.J)(t,r)}let Cv=tW.P.create(u.Zp),Cj=()=>
669{let e,t,n,r,i,l=(0,o.c)(61),d=(0,tq.rd)(),[c,p]=(0,s.useState)(void 0),{t:m}=iJ(lO),{releaseId:h}=d.state,f=decodeURIComponent(h||""),{data:g,loading:y}=lp(),{data:x}=cn(),{loading:b,results:v,error:j}=Cb(f),w=function(e){let t,n,r,i=(0,o.c)(12),a=ee7(oX),l=z4(),{state$:s}=lu(),d=!!co().beta?.eventsAPI?.releases;i[0]!==a||i[1]!==l||i[2]!==d||i[3]!==e||i[4]!==s?(n=function({client:e,releaseId:t,releasesState$:n,documentPreviewStore:r,eventsAPIEnabled:i}){let a=function({client:e,observeDocument$:t}){return t.pipe((0,q.p)(Boolean),(0,ei.F)((e,t)=>e._rev===t._rev),(0,z.n)(t=>(function({documentId:e,client:t,toTransaction:n}){let r=`${e}`,i=cp[r]||[];if(i.length>0&&i[0].id===n)return(0,k.of)(i);function a(n){return(0,Q.H)(cc(t,e,{tag:"sanity.studio.release.history",effectFormat:"mendoza",limit:100,reverse:!0,fromTransaction:n.fromTransaction,toTransaction:n.toTransaction}))}return a({fromTransaction:i[0]?.id,toTransaction:n}).pipe((0,en.f)(e=>100===e.length?a({fromTransaction:void 0,toTransaction:e[e.length-1].id}):(0,k.of)()),(0,er.T)((e,t)=>e.concat(t),[])).pipe((0,E.T)(e=>(function(e,t){let n=new Set;return e.concat(t).filter(e=>!n.has(e.id)&&(n.add(e.id),!0))})(e,i)),(0,W.M)(e=>{cp[r]=e}))})({client:e,documentId:t._id,toTransaction:t._rev}).pipe((0,E.T)(e=>({editEvents:function(e,t){if(t._rev!==e[0]?.id)return console.error("Some transactions are missing, cannot calculate the edit events"),[];let n=[],r=t;for(let i of e){let e=i.effects[t._id];if(!e)continue;let a=cu(r,e.revert,r._rev),o={};a?.state!==r.state&&"archived"===r.state&&n.push({type:"archiveRelease",timestamp:i.timestamp,author:i.author,releaseName:o4(t._id),id:i.id,origin:"translog"}),a?.state!==r.state&&"published"===r.state&&n.push({type:"publishRelease",timestamp:i.timestamp,author:i.author,releaseName:o4(t._id),id:i.id,origin:"translog"}),a?.state==="unarchiving"&&"active"===r.state&&n.push({type:"unarchiveRelease",timestamp:i.timestamp,author:i.author,releaseName:o4(t._id),id:i.id,origin:"translog"}),a?.metadata.releaseType!==r.metadata.releaseType&&(o.releaseType=r.metadata.releaseType),a?.metadata.intendedPublishAt!==r.metadata.intendedPublishAt&&(o.intendedPublishDate=r.metadata.intendedPublishAt),Object.values(o).length>=1&&n.push({type:a?"editRelease":"createRelease",origin:"translog",author:i.author,change:o,id:i.id,timestamp:i.timestamp,releaseName:o4(t._id)}),a&&(r=a)}return n}(e,t),loading:!1,error:null})),(0,M.W)(e=>(console.error(e),(0,k.of)({editEvents:[],loading:!1,error:e}))))),(0,Z.Z)(cm),(0,G.S)((e,t)=>{let n=t.loading?e.editEvents:t.editEvents;return{...t,editEvents:n}},cm),(0,Y.t)(1))}({client:e,observeDocument$:r.unstable_observeDocument(t,{apiVersion:oX.apiVersion})}),o=n.pipe((0,E.T)(e=>e.releases.get(t)?._rev),(0,q.p)(Boolean),(0,ei.F)(),(0,ea.i)(1)),l=i?function({client:e,releaseId:t}){let n=new J.t({cursor:null,origin:"initial"}),r="";return{events$:n.pipe((0,z.n)(({cursor:n,origin:r})=>(({limit:n,nextCursor:r})=>{let i=new URLSearchParams({limit:n.toString()});return r&&i.append("nextCursor",r),e.observable.request({url:`/data/history/${e.config().dataset}/events/releases/${o4(t)}?${i.toString()}`,tag:"get-release-events"}).pipe((0,E.T)(e=>({events:e.events.map(cd),nextCursor:e.nextCursor,loading:!1,error:null})),(0,M.W)(e=>(console.error(e),[{events:[],nextCursor:"",loading:!1,error:e}])))})({nextCursor:n,limit:"reload"===r?10:100}).pipe((0,E.T)(e=>({...e,origin:r})),(0,Z.Z)({events:[],nextCursor:"",loading:!0,error:null,origin:r}))),(0,G.S)((e,t)=>({events:Array.from([...e.events,...t.events].reduce((e,t)=>e.has(t.id)?e:e.set(t.id,t),new Map).values()).sort((e,t)=>new Date(t.timestamp).getTime()-new Date(e.timestamp).getTime()),nextCursor:"reload"===t.origin?e.nextCursor:t.nextCursor,loading:t.loading,error:t.error}),cs),(0,W.M)(e=>{r=e.nextCursor}),(0,Y.t)(1)),reloadEvents:()=>n.next({cursor:null,origin:"reload"}),loadMore:()=>{let e=n.getValue().cursor;r&&e!==r&&n.next({origin:"loadMore",cursor:r})}}}({client:e,releaseId:t}):cC,s=i?(0,k.of)(0):r.unstable_observeDocumentIdSet("sanity::partOfRelease($releaseId)",{releaseId:o4(t)},{apiVersion:oX.apiVersion}).pipe((0,q.p)(({status:e})=>"connected"===e),(0,E.T)(({documentIds:e})=>e.length),(0,ei.F)(),(0,ea.i)(1)),d=(0,R.h)(o,s).pipe((0,W.M)(()=>{l.reloadEvents()}),(0,Z.Z)(null));return{events$:(0,eo.z)([l.events$,a,d]).pipe((0,E.T)(([e,t])=>{let n;return{events:(n=[...e.events,...t.editEvents].sort((e,t)=>
669Date.parse(t.timestamp)-Date.parse(e.timestamp)).reduce((e,t)=>{if(ch(t)){let n=e.find(ch);n?cf(n)&&"translog"===t.origin&&(e[e.indexOf(n)]=t):e.push(t)}else e.push(t);return e},[])).filter((e,t)=>{var r,i;let a=n[t+1];return!a||!(e.type===a.type&&(r=e.timestamp,i=a.timestamp,1e3>=Math.abs(new Date(r).getTime()-new Date(i).getTime())))}),hasMore:!!e.nextCursor,error:e.error||t.error,loading:e.loading||t.loading}})),loadMore:l.loadMore}}({client:a,releaseId:cl(e),releasesState$:s,documentPreviewStore:l,eventsAPIEnabled:d}),i[0]=a,i[1]=l,i[2]=d,i[3]=e,i[4]=s,i[5]=n):n=i[5],t=n;let c=(0,eH.J)(t.events$,cg);return i[6]!==c.error||i[7]!==c.events||i[8]!==c.hasMore||i[9]!==c.loading||i[10]!==t.loadMore?(r={events:c.events,hasMore:c.hasMore,loading:c.loading,error:c.error,loadMore:t.loadMore},i[6]=c.error,i[7]=c.events,i[8]=c.hasMore,i[9]=c.loading,i[10]=t.loadMore,i[11]=r):r=i[11],r}(f);l[0]!==v?(e=v.map(Cw),l[0]=v,l[1]=e):e=l[1];let _=function(e,t){let n=ee7(oX),{dataset:r,token:i}=n.config(),[a,o]=(0,s.useState)([]),l=e.map(e=>iy(e,t)).join(","),d=n.getUrl(`/data/history/${r}/transactions/${l}?tag=sanity.studio.tasks.history&effectFormat=mendoza&excludeContent=true&includeIdentifiedDocumentsOnly=true`),c=(0,s.useCallback)(async()=>{let e;if(!l||!t)return;let n=[],r=(await ci(d,i)).getReader();for(;!(e=await r.read()).done;){if("error"in e.value)throw Error(e.value.error.description||e.value.error.type);n.push(e.value)}o(n)},[l,d,i,t]);return(0,s.useEffect)(()=>{c()},[c]),(0,s.useMemo)(()=>{let e=[],t={};return a.length?(a.forEach(n=>{let r=n.documentIDs[0],i=t[r];e.includes(n.author)||e.push(n.author),i?(n.mutations.some(e=>"create"in e)&&(i.createdBy=n.author),i.editors.includes(n.author)||i.editors.push(n.author),i.lastEditedBy=n.author,i.history.push(n)):(i={history:[n],createdBy:n.author,lastEditedBy:n.author,editors:[n.author]},t[r]=i)}),{documentsHistory:t,collaborators:e,loading:!1}):{documentsHistory:t,collaborators:e,loading:!0}},[a])}(e,f);if(l[2]!==x||l[3]!==g||l[4]!==f){let e;l[6]!==f?(e=e=>o4(e._id)===f,l[6]=f,l[7]=e):e=l[7],t=g.concat(x).find(e),l[2]=x,l[3]=g,l[4]=f,l[5]=t}else t=l[5];let S=t,T=(0,s.useRef)(null);e:{let e;if(j){let e,t,r,i,o,s,d,c;l[8]===Symbol.for("react.memo_cache_sentinel")?(e={opacity:0}
669,t={opacity:1},l[8]=e,l[9]=t):(e=l[8],t=l[9]),l[10]===Symbol.for("react.memo_cache_sentinel")?(r=(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.YZv,{})}),l[10]=r):r=l[10],l[11]!==m?(i=m("loading-release-documents.error.title"),l[11]=m,l[12]=i):i=l[12],l[13]!==i?(o=(0,a.jsx)(u.EY,{size:1,weight:"semibold",children:i}),l[13]=i,l[14]=o):o=l[14],l[15]!==m?(s=m("loading-release-documents.error.description"),l[15]=m,l[16]=s):s=l[16],l[17]!==s?(d=(0,a.jsx)(u.EY,{size:1,children:s}),l[17]=s,l[18]=d):d=l[18],l[19]!==o||l[20]!==d?(c=(0,a.jsx)(u.az,{padding:3,children:(0,a.jsx)(Cv,{initial:e,animate:t,tone:"critical",padding:4,radius:4,children:(0,a.jsxs)(u.so,{gap:3,children:[r,(0,a.jsxs)(u.BJ,{space:4,children:[o,d]})]})})}),l[19]=o,l[20]=d,l[21]=c):c=l[21],n=c;break e}if(!S){n=null;break e}l[22]!==b||l[23]!==_.documentsHistory||l[24]!==S||l[25]!==v?(e=(0,a.jsx)(Cx,{isLoading:b,documents:v,release:S,documentsHistory:_.documentsHistory,scrollContainerRef:T}),l[22]=b,l[23]=_.documentsHistory,l[24]=S,l[25]=v,l[26]=e):e=l[26],n=e}let I=n;if(y){let e,t;return l[27]!==m?(e=m("loading-release"),l[27]=m,l[28]=e):e=l[28],l[29]!==e?(t=(0,a.jsx)(r5,{title:e,fill:!0,"data-testid":"release-documents-table-loader"}),l[29]=e,l[30]=t):t=l[30],t}if(S){let e,t,n,r,i,o,s,d;l[31]!==c||l[32]!==S?(e=(0,a.jsx)(u.Zp,{flex:"none",padding:3,children:(0,a.jsx)(u6,{release:S,inspector:c,setInspector:p})}),l[31]=c,l[32]=S,l[33]=e):e=l[33],l[34]!==S?(t=(0,a.jsx)(uS,{release:S}),l[34]=S,l[35]=t):t=l[35],l[36]!==I||l[37]!==t?(n=(0,a.jsxs)(u.Zp,{flex:1,overflow:"auto",children:[t,I]}),l[36]=I,l[37]=t,l[38]=n):n=l[38],l[39]!==w.events||l[40]!==S||l[41]!==v?(r=(0,a.jsx)(u3,{documents:v,release:S,events:w.events}),l[39]=w.events,l[40]=S,l[41]=v,l[42]=r):r=l[42],l[43]!==n||l[44]!==r?(i=(0,a.jsxs)(u.so,{direction:"column",flex:1,height:"fill",children:[n,r]}),l[43]=n,l[44]=r,l[45]=i):i=l[45];let m="activity"===c;return l[46]!==w||l[47]!==S||l[48]!==m?(o=(0,a.jsx)(c6,{events:w,release:S,show:m}),l[46]=w,l[47]=S,l[48]=m,l[49]=o):o=l[49],l[50]!==i||l[51]!==o?(s=(0,a.jsxs)(u.so,{flex:1,children:[i,o]}),l[50]=i,l[51]=o,l[52]=s):s=l[52],l[53]!==s||l[54]!==e?(d=(0,a.jsxs)(u.so,{direction:"column",flex:1,height:"fill",overflow:"hidden",children:[e,s]}),l[53]=s,l[54]=e,l[55]=d):d=l[55],d}return l[56]!==f||l[57]!==m?(r=m("not-found",{releaseId:f}),l[56]=f,l[57]=m,l[58]=r):r=l[58],l[59]!==r?(i=(0,a.jsx)(u.Zp,{flex:1,tone:"critical",children:(0,a.jsx)(u.mc,{width:0,children:(0,a.jsx)(u.BJ,{paddingX:4,paddingY:6,space:1,children:(0,a.jsx)(u.DZ,{children:r})})})}),l[59]=r,l[60]=i):i=l[60],i};function Cw(e){return e.document?._id}function C_(e){let t,n,r,i,l,s,d,c,p,m,h=(0,o.c)(30),{date:f,focused:g,isCurrentMonth:y,isToday:x,onSelect:b,selected:v,disabled:j,dateStyles:w}=e;h[0]!==w?(t=void 0===w?{}:w,h[0]=w,h[1]=t):t=h[1];let _=t;h[2]!==f||h[3]!==b||h[4]!==v?(n=()=>{b(v?void 0:f)},h[2]=f,h[3]=b,h[4]=v,h[5]=n):n=h[5];let k=n;x||v?r="primary":((0,t$.A)(f),r="default"),h[6]!==f?(i=f.toDateString(),h[6]=f,h[7]=i):i=h[7];let S=g?"true":"",T=x?"day-tile-today":`day-tile-${f.getDate()}-${f.getMonth()}`;h[8]===Symbol.for("react.memo_cache_sentinel")?(l={position:"relative"},h[8]=l):l=h[8];let I=v||y?1:.35;return h[9]!==_||h[10]!==I?(s={opacity:I,textAlign:"center",..._},h[9]=_,h[10]=I,h[11]=s):s=h[11],h[12]!==f||h[13]!==v?(d=v?(0,a.jsx)(C.USm,{}):f.getDate(),h[12]=f,h[13]=v,h[14]=d):d=h[14],h[15]!==s||h[16]!==d?(c=(0,a.jsx)(u.EY,{size:1,style:s,children:d}),h[15]=s,h[16]=d,h[17]=c):c=h[17],h[18]!==j||h[19]!==k||h[20]!==v||h[21]!==c||h[22]!==i||h[23]!==S||h[24]!==T||h[25]!==r?(p=(0,a.jsx)(u.Zp,{"aria-label":i,"aria-pressed":v,as:"button",__unstable_focusRing:!0,"data-weekday":!0,"data-focused":S,"data-testid":T,role:"button",tabIndex:-1,onClick:k,paddingX:3,paddingY:4,radius:2,selected:v,style:l,tone:r,disabled:j,children:c}),h[18]=j,h[19]=k,h[20]=v,h[21]=c,h[22]=i,h[23]=S,h[24]=T,h[25]=r,h[26]=p):p=h[26],h[27]!==v||h[28]!==p?(m=(0,a.jsx)("div",{"aria-selected":v,"data-ui":"CalendarDay",children:p}),h[27]=v,h[28]=p,h[29]=m):m=h[29],m}function Ck(e){let t,n,r,i,l,s=(0,o.c)(24),{date:d,renderCalendarDay:c,hidden:p,disabled:m,timeZoneScope:h}=e,{getCurrentZoneDate:f}=sh(h),g=c||C_,C=sF(d),y=p||!1;if(s[0]===Symbol.for("react.memo_cache_sentinel")?(t={gridGap:"1px",gridTemplateColumns:"repeat(7, 1fr)"},n=sO.map(CS),s[0]=t,s[1]=n):(t=s[0],n=s[1]),s[2]!==g||s[3]!==d||s[4]!==m||s[5]!==f||s[6]!==e.focused||s[7]!==e.onSelect||s[8]!==e.selected||s[9]!==C){let t;s[11]!==g||s[12]!==d||s[13]!==m||s[14]!==f||s[15]!==e.focused||s[16]!==e.onSelect||s[17]!==e.selected?(t=(t,n)=>t.days.map((t,r)=>{let i=e.focused&&(0,ts.A)(t,e.focused),o=e.selected&&(0,ts.A)(t,e.selected),l=(0,ts.A)(t,f()),s=(0,td.A)(t,e.focused||d);return(0,a.jsx)(g,{date:t,focused:i,isCurrentMonth:s,isToday:l,onSelect:e.onSelect,selected:o,disabled:m},`${n}-${r}`)}),s[11]=g,s[12]=d,s[13]=m,s[14]=f,s[15]=e.focused,s[16]=e.onSelect,s[17]=e.selected,s[18]=t):t=s[18],r=C.map(t),s[2]=g,s[3]=d,s[4]=m,s[5]=f,s[6]=e.focused,s[7]=e.onSelect,s[8]=e.selected,s[9]=C,s[10]=r}else r=s[10];return s[19]!==r?(i=(0,a.jsxs)(u.xA,{style:t,children:[n,r]}),s[19]=r,s[20]=i):i=s[20],s[21]!==y||s[22]!==i?(l=(0,a.jsx)(u.az,{"aria-hidden":y,"data-ui":"CalendarMonth",children:i}),s[21]=y,s[22]=i,s[23]=l):l=s[23],l}function CS(e){return(0,a.jsx)(u.Zp,{paddingY:3,children:(0,a.jsx)(u.JU,{size:1,style:{textAlign:"center"},children:e.slice(0,1)})},e)}let CT=(0,a.jsx)("span",{"data-preserve-focus":!0,style:{overflow:"hidden",position:"absolute",outline:"none"},tabIndex:-1}
669),CI=(0,s.forwardRef)(function(e,t){let n,r,i,l,d,c,p,m,h,f,g,x,b,v,j,w,_,k,S,T,I,E,$,A,D,z,M,P,R,O,V,L,F,B,N,Y,H,Z,U=(0,o.c)(86);U[0]!==e?({focusedDate:i,onFocusedDateChange:n,onSelect:r,selectedDate:c,renderCalendarDay:l,timeZoneScope:p,...d}=e,U[0]=e,U[1]=n,U[2]=r,U[3]=i,U[4]=l,U[5]=d,U[6]=c,U[7]=p):(n=U[1],r=U[2],i=U[3],l=U[4],d=U[5],c=U[6],p=U[7]),U[8]===Symbol.for("react.memo_cache_sentinel")?(m=new Date,U[8]=m):m=U[8];let[q,J]=(0,s.useState)(m),{t:W}=iJ(),{zoneDateToUtc:K}=sh(p),G=i||q;U[9]!==n||U[10]!==i?(h=e=>{n&&i?n(e):J(e)},U[9]=n,U[10]=i,U[11]=h):h=U[11];let X=h;U[12]!==X||U[13]!==K?(f=e=>{X(K(e))},U[12]=X,U[13]=K,U[14]=f):f=U[14];let Q=f;U[15]!==G||U[16]!==Q?(g=e=>Q((0,tp.A)(G,e)),U[15]=G,U[16]=Q,U[17]=g):g=U[17];let ee=g;U[18]!==X||U[19]!==r||U[20]!==K?(x=e=>{if(e){let t=K((0,th.A)((0,tf.A)(e,e.getHours()),e.getMinutes()));r(t),X(t)}else r(void 0)},U[18]=X,U[19]=r,U[20]=K,U[21]=x):x=U[21];let et=x,en=(0,s.useRef)(null);U[22]===Symbol.for("react.memo_cache_sentinel")?(b=()=>en.current,U[22]=b):b=U[22],(0,s.useImperativeHandle)(t,b),U[23]===Symbol.for("react.memo_cache_sentinel")?(v=()=>{en.current?.querySelector('[data-focused="true"]')?.focus()},U[23]=v):v=U[23];let er=v;U[24]!==G||U[25]!==X||U[26]!==K?(j=e=>{if(sV.includes(e.key)){if(e.preventDefault(),e.currentTarget.hasAttribute("data-calendar-grid"))return void er();"ArrowUp"===e.key&&X(K((0,to.A)(G,-7))),"ArrowDown"===e.key&&X(K((0,to.A)(G,7))),"ArrowLeft"===e.key&&X(K((0,to.A)(G,-1))),"ArrowRight"===e.key&&X(K((0,to.A)(G,1))),en.current?.querySelector("[data-preserve-focus]")?.focus()}},U[24]=G,U[25]=X,U[26]=K,U[27]=j):j=U[27];let ei=j;U[28]===Symbol.for("react.memo_cache_sentinel")?(w=()=>{er()},_=[er],U[28]=w,U[29]=_):(w=U[28],_=U[29]),(0,s.useEffect)(w,_),U[30]===Symbol.for("react.memo_cache_sentinel")?(k=()=>{document.activeElement?.matches("[data-calendar-grid], [data-calendar-grid] [data-preserve-focus]")&&er()},U[30]=k):k=U[30],U[31]!==G?(S=[en,er,G],U[31]=G,U[32]=S):S=U[32],(0,s.useEffect)(k,S),U[33]!==X||U[34]!==r?(T=()=>{let e=new Date;r(e),X(e)},U[33]=X,U[34]=r,U[35]=T):T=U[35];let ea=T;U[36]!==ee?(I=()=>ee(-1),U[36]=ee,U[37]=I):I=U[37];let eo=I;U[38]!==ee?(E=()=>ee(1),U[38]=ee,U[39]=E):E=U[39];let el=E;U[40]===Symbol.for("react.memo_cache_sentinel")?($={borderBottom:"1px solid var(--card-border-color)",minHeight:"55px",position:"sticky",top:0},U[40]=$):$=U[40];let es=sR[G?.getMonth()];U[41]!==G?(A=G?.getFullYear(),U[41]=G,U[42]=A):A=U[42],U[43]!==es||U[44]!==A?(D=(0,a.jsxs)(u.EY,{weight:"medium",size:1,children:[es," ",A]}),U[43]=es,U[44]=A,U[45]=D):D=U[45],U[46]===Symbol.for("react.memo_cache_sentinel")?(z={content:"Previous month"},U[46]=z):z=U[46],U[47]!==eo||U[48]!==d.disabled?(M=(0,a.jsx)(y.$n,{icon:C.YJP,mode:"bleed",onClick:eo,tooltipProps:z,disabled:d.disabled}),U[47]=eo,U[48]=d.disabled,U[49]=M):M=U[49],U[50]===Symbol.for("react.memo_cache_sentinel")?(P={content:"Next month"},U[50]=P):P=U[50],U[51]!==el||U[52]!==d.disabled?(R=(0,a.jsx)(y.$n,{icon:C.vKP,mode:"bleed",onClick:el,tooltipProps:P,disabled:d.disabled}),U[51]=el,U[52]=d.disabled,U[53]=R):R=U[53],U[54]!==M||U[55]!==R?(O=(0,a.jsx)(u.so,{paddingRight:3,gap:2,children:(0,a.jsxs)(y.vE,{children:[M,R]})}),U[54]=M,U[55]=R,U[56]=O):O=U[56],U[57]!==D||U[58]!==O?(V=(0,a.jsx)(u.so,{align:"center",paddingLeft:4,style:$,children:(0,a.jsxs)(u.so,{align:"center",flex:1,justify:"space-between",children:[D,O]})}),U[57]=D,U[58]=O,U[59]=V):V=U[59],U[60]!==G||U[61]!==et||U[62]!==i||U[63]!==l||U[64]!==d.disabled||U[65]!==c||U[66]!==p?(L=(0,a.jsx)(Ck,{date:G,focused:i,onSelect:et,selected:c,renderCalendarDay:l,disabled:d.disabled,timeZoneScope:p}),U[60]=G,U[61]=et,U[62]=i,U[63]=l,U[64]=d.disabled,U[65]=c,U[66]=p,U[67]=L):L=U[67],U[68]!==ei||U[69]!==L?(F=(0,a.jsx)(u.az,{children:(0,a.jsxs)(u.az,{"data-calendar-grid":!0,onKeyDown:ei,overflow:"hidden",paddingBottom:1,paddingX:1,tabIndex:0,children:[L,CT]})}),U[68]=ei,U[69]=L,U[70]=F):F=U[70],U[71]===Symbol.for("react.memo_cache_sentinel")?(B={borderBottom:"1px solid var(--card-border-color)"},U[71]=B):B=U[71];let ed=d.disabled;return U[72]!==W?(N=W("calendar.action.go-to-today-aria-label"),U[72]=W,U[73]=N):N=U[73],U[74]!==W?(Y=W
669("calendar.action.go-to-today"),U[74]=W,U[75]=Y):Y=U[75],U[76]!==ea||U[77]!==d.disabled||U[78]!==N||U[79]!==Y?(H=(0,a.jsx)(u.az,{flex:1,style:B,children:(0,a.jsx)(y.$n,{disabled:ed,mode:"bleed",onClick:ea,width:"fill","aria-label":N,text:Y})}),U[76]=ea,U[77]=d.disabled,U[78]=N,U[79]=Y,U[80]=H):H=U[80],U[81]!==d||U[82]!==V||U[83]!==F||U[84]!==H?(Z=(0,a.jsxs)(u.az,{"data-ui":"Calendar",...d,ref:en,children:[V,F,H]}),U[81]=d,U[82]=V,U[83]=F,U[84]=H,U[85]=Z):Z=U[85],Z}),CE=()=>{let e,t=(0,o.c)(2),{zoneDateToUtc:n}=sh(sC);return t[0]!==n?(e=e=>{let{metadata:t}=e,r=t.intendedPublishAt?n(new Date(t.intendedPublishAt)).toISOString():void 0;return{...e,metadata:{...t,intendedPublishAt:r,title:t?.title?.trim()}}},t[0]=n,t[1]=e):e=t[1],e};function C$(){let e,t,n,r=(0,o.c)(7),[i,a]=(0,s.useState)(!0),[l,d]=(0,s.useState)(null),{guardWithReleaseLimitUpsell:c}=lA();return r[0]!==c?(e=()=>{a(!0),d(new Promise(e=>{c(rg,!1,t=>{e(t)})}))},r[0]=c,r[1]=e):e=r[1],r[2]!==c||r[3]!==i?(t=[c,i],r[2]=c,r[3]=i,r[4]=t):t=r[4],(0,s.useEffect)(e,t),r[5]!==l?(n={releasePromise:l},r[5]=l,r[6]=n):n=r[6],n}function CA(e){let{onCancel:t,onSubmit:n,origin:r}=e,i=(0,p.dj)(),{createRelease:o}=lP(),l=l$(),{t:d}=iJ(),c=(0,e5.Jr)(),m=CE(),{clearReleaseDataFromStorage:h}=sx(),[f,g]=(0,s.useState)(lk),[C,x]=(0,s.useState)(!1),{releasePromise:b}=C$(),v=(0,s.useCallback)(async e=>{if(e.preventDefault(),x(!0),!await b)return void x(!1);try{let e=m(f);await o(e),c.log(oF,{origin:r}),await new Promise(e=>setTimeout(e,1e3)),l(o4(f._id)),n(o4(f._id))}catch(e){lM(e)?(t(),h()):(console.error(e),i.push({closable:!0,status:"error",title:d("release.toast.create-release-error.title")}))}finally{x(!1),h()}},[b,m,f,o,c,r,l,n,t,i,d,h]),j=(0,s.useCallback)(e=>{g(e)},[]),w=d("release.dialog.create.title"),_=d("release.dialog.create.confirm"),k=(0,s.useCallback)(()=>{h(),t()},[h,t]);return(0,a.jsx)(y.lG,{onClickOutside:t,header:w,id:"create-release-dialog",onClose:k,width:1,padding:!1,children:(0,a.jsx)(u.Zp,{padding:4,borderTop:!0,children:(0,a.jsxs)("form",{onSubmit:v,children:[(0,a.jsx)(u.az,{paddingBottom:4,children:(0,a.jsx)(d0,{onChange:j,value:f})}),(0,a.jsx)(u.so,{justify:"flex-end",paddingTop:5,children:(0,a.jsx)(y.$n,{size:"large",disabled:C,type:"submit",text:_,loading:C,"data-testid":"submit-release-button"})})]})})})}let CD={data:null,error:null,loading:!1},Cz=e=>{let t,n,r,i,l,d,u,p,m,h,f=(0,o.c)(15),{children:g}=e;f[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],f[0]=t):t=f[0];let[C,y]=(0,s.useState)(t),{getMetadataStateForSlugs$:x}=lu(),[b,v]=(0,s.useState)(null);f[1]!==x||f[2]!==C?(r=x(C.map(CP)),f[1]=x,f[2]=C,f[3]=r):r=f[3],n=r;let j=(0,eH.J)(n)||CD;f[4]!==j.data?(i=()=>v(e=>j.data?{...e,...j.data}:e),l=[j.data],f[4]=j.data,f[5]=i,f[6]=l):(i=f[5],l=f[6]),(0,s.useEffect)(i,l),f[7]===Symbol.for("react.memo_cache_sentinel")?(d=e=>{y(t=>[...t,...e.filter(CR)])},f[7]=d):d=f[7];let w=d;f[8]===Symbol.for("react.memo_cache_sentinel")?(u=e=>{y(t=>{let{nextSlugs:n}=t.reduce((t,n)=>{let{removedSlugs:r,nextSlugs:i}=t;return e.includes(n)&&!r.includes(n)?{removedSlugs:[...r,n],nextSlugs:i}:{removedSlugs:r,nextSlugs:[...i,n]}},{removedSlugs:[],nextSlugs:[]});return n})},f[8]=u):u=f[8];let _=u;return f[9]!==j||f[10]!==b?(m={addReleaseIdsToListener:w,removeReleaseIdsFromListener:_,state:{...j,data:b}},f[9]=j,f[10]=b,f[11]=m):m=f[11],p=m,f[12]!==g||f[13]!==p?(h=(0,a.jsx)(c.JQ.Provider,{value:p,children:g}),f[12]=g,f[13]=p,f[14]=h):h=f[14],h},CM=e=>{let t,n=(0,o.c)(2),{children:r}=e;return(0,s.useContext)(c.JQ)?r:(n[0]!==r?(t=(0,a.jsx)(Cz,{children:r}),n[0]=r,n[1]=t):t=n[1],t)};function CP(e){return e}function CR(e){return"string"==typeof e}function CO(){return null}function CV(){return null}let CL=()=>{let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)("svg",{width:"248",height:"201",viewBox:"0 0 248 201",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{opacity:"0.2",d:"M175.4 29.8262V98.1738C175.4 103.823 181.346 107.498 186.399 104.971L222.399 86.9714C224.974 85.684 226.6 83.0524 226.6 80.1738V11.8262C226.6 6.17654 220.654 2.50197 215.601 5.02859L179.601 23.0286C177.026 24.316 175.4 26.9476 175.4 29.8262Z",fill:"white",stroke:"#515870",strokeWidth:"1.2"}),(0,a.jsx)("path",{opacity:"0.2",d:"M183.4 33.8262V102.174C183.4 107.823 189.346 111.498 194.399 108.971L230.399 90.9714C232.974 89.684 234.6 87.0524 234.6 84.1738V15.8262C234.6 10.1765 228.654 6.50197 223.601 9.02859L187.601 27.0286C185.026 28.316 183.4 30.9476 183.4 33.8262Z",fill:"white",stroke:"#515870",strokeWidth:"1.2"}),(0,a.jsx)("path",{opacity:"0.2",d:"M195.4 39.8262V108.174C195.4 113.823 201.346 117.498 206.399 114.971L242.399 96.9714C244.974 95.684 246.6 93.0524 246.6 90.1738V21.8262C246.6 16.1765 240.654 12.502 235.601 15.0286L199.601 33.0286C197.026 34.316 195.4 36.9476 195.4 39.8262Z",fill:"white",stroke:"#515870",strokeWidth:"1.2"}),(0,a.jsx)("path",{opacity:"0.6",d:"M109.4 50.8262V119.174C109.4 124.823 115.346 128.498 120.399 125.971L156.399 107.971C158.974 106.684 160.6 104.052 160.6 101.174V32.8262C160.6 27.1765 154.654 23.502 149.601 26.0286L113.601 44.0286C111.026 45.316 109.4 47.9476 109.4 50.8262Z",fill:"white",stroke:"#515870",strokeWidth:"1.2"}),(0,a.jsx)("path",{opacity:"0.9",d:"M118 123.174V54.8262C118 52.1748 119.498 49.751 121.87 48.5653L157.87 30.5652C162.524 28.2381 168 31.6226 168 36.8262V105.174C168 107.825 166.502 110.249 164.131 111.435L128.13 129.435C123.476 131.762 118 128.377 118 123.174Z",fill:"#F6F6F8",stroke:"#4E556D",strokeWidth:"1.2"}
669),(0,a.jsx)("path",{opacity:"0.2",d:"M121.4 56.8262V125.174C121.4 130.823 127.346 134.498 132.399 131.971L168.399 113.971C170.974 112.684 172.6 110.052 172.6 107.174V38.8262C172.6 33.1765 166.654 29.502 161.601 32.0286L125.601 50.0286C123.026 51.316 121.4 53.9476 121.4 56.8262Z",fill:"white",stroke:"#515870",strokeWidth:"1.2"}),(0,a.jsx)("path",{opacity:"0.2",d:"M125.4 58.8262V127.174C125.4 132.823 131.346 136.498 136.399 133.971L172.399 115.971C174.974 114.684 176.6 112.052 176.6 109.174V40.8262C176.6 35.1765 170.654 31.502 165.601 34.0286L129.601 52.0286C127.026 53.316 125.4 55.9476 125.4 58.8262Z",fill:"white",stroke:"#515870",strokeWidth:"1.2"}),(0,a.jsx)("path",{opacity:"0.2",d:"M137.4 64.8262V133.174C137.4 138.823 143.346 142.498 148.399 139.971L184.399 121.971C186.974 120.684 188.6 118.052 188.6 115.174V46.8262C188.6 41.1765 182.654 37.502 177.601 40.0286L141.601 58.0286C139.026 59.316 137.4 61.9476 137.4 64.8262Z",fill:"white",stroke:"#515870",strokeWidth:"1.2"}),(0,a.jsx)("path",{opacity:"0.2",d:"M145.4 68.8262V137.174C145.4 142.823 151.346 146.498 156.399 143.971L192.399 125.971C194.974 124.684 196.6 122.052 196.6 119.174V50.8262C196.6 45.1765 190.654 41.502 185.601 44.0286L149.601 62.0286C147.026 63.316 145.4 65.9476 145.4 68.8262Z",fill:"white",stroke:"#515870",strokeWidth:"1.2"}),(0,a.jsx)("path",{opacity:"0.6",d:"M1.4 104.826V173.174C1.4 178.823 7.34557 182.498 12.3988 179.971L48.3988 161.971C50.9736 160.684 52.6 158.052 52.6 155.174V86.8262C52.6 81.1765 46.6544 77.502 41.6012 80.0286L5.60117 98.0286C3.02641 99.316 1.4 101.948 1.4 104.826Z",fill:"white",stroke:"#515870",strokeWidth:"1.2"}),(0,a.jsx)("path",{opacity:"0.6",d:"M56.6 146.174V77.8262C56.6 75.4021 57.9696 73.186 60.1378 72.1019L96.1378 54.1019C100.393 51.9742 105.4 55.0686 105.4 59.8262V128.174C105.4 130.598 104.03 132.814 101.862 133.898L65.8622 151.898C61.6068 154.026 56.6 150.931 56.6 146.174Z",fill:"white",stroke:"#515870",strokeWidth:"1.2"}),(0,a.jsx)("path",{opacity:"0.8",d:"M60.6 148.174V79.8262C60.6 77.4021 61.9696 75.186 64.1378 74.1019L100.138 56.1019C104.393 53.9742 109.4 57.0686 109.4 61.8262V130.174C109.4 132.598 108.03 134.814 105.862 135.898L69.8622 153.898C65.6068 156.026 60.6 152.931 60.6 148.174Z",fill:"white",stroke:"#515870",strokeWidth:"1.2"}),(0,a.jsx)("path",{opacity:"0.9",d:"M64 150.174V81.8262C64 79.1748 65.498 76.751 67.8695 75.5653L103.87 57.5652C108.524 55.2381 114 58.6226 114 63.8262V132.174C114 134.825 112.502 137.249 110.131 138.435L74.1305 156.435C69.4762 158.762 64 155.377 64 150.174Z",fill:"#F6F6F8",stroke:"#4E556D",strokeWidth:"1.2"}),(0,a.jsx)("path",{opacity:"0.2",d:"M72.6 154.174V85.8262C72.6 83.4021 73.9696 81.186 76.1378 80.1019L112.138 62.1019C116.393 59.9742 121.4 63.0686 121.4 67.8262V136.174C121.4 138.598 120.03 140.814 117.862 141.898L81.8622 159.898C77.6068 162.026 72.6 158.931 72.6 154.174Z",fill:"white",stroke:"#515870",strokeWidth:"1.2"}),(0,a.jsx)("path",{opacity:"0.2",d:"M76.6 156.174V87.8262C76.6 85.4021 77.9696 83.186 80.1378 82.1019L116.138 64.1019C120.393 61.9742 125.4 65.0686 125.4 69.8262V138.174C125.4 140.598 124.03 142.814 121.862 143.898L85.8622 161.898C81.6068 164.026 76.6 160.931 76.6 156.174Z",fill:"white",stroke:"#515870",strokeWidth:"1.2"}),(0,a.jsx)("path",{opacity:"0.2",d:"M84.6 160.174V91.8262C84.6 89.4021 85.9696 87.186 88.1378 86.1019L124.138 68.1019C128.393 65.9742 133.4 69.0686 133.4 73.8262V142.174C133.4 144.598 132.03 146.814 129.862 147.898L93.8622 165.898C89.6068 168.026 84.6 164.931 84.6 160.174Z",fill:"white",stroke:"#515870",strokeWidth:"1.2"}),(0,a.jsx)("path",{opacity:"0.2",d:"M88.6 162.174V93.8262C88.6 91.4021 89.9696 89.186 92.1378 88.1019L128.138 70.1019C132.393 67.9742 137.4 71.0686 137.4 75.8262V144.174C137.4 146.598 136.03 148.814 133.862 149.898L97.8622 167.898C93.6068 170.026 88.6 166.931 88.6 162.174Z",fill:"white",stroke:"#515870",strokeWidth:"1.2"}),(0,a.jsx)("path",{opacity:"0.2",d:"M92.6 164.174V95.8262C92.6 93.4021 93.9696 91.186 96.1378 90.1019L132.138 72.1019C136.393 69.9742 141.4 73.0686 141.4 77.8262V146.174C141.4 148.598 140.03 150.814 137.862 151.898L101.862 169.898C97.6068 172.026 92.6 168.931 92.6 164.174Z",fill:"white",stroke:"#515870",strokeWidth:"1.2"}),(0,a.jsx)("path",{opacity:"0.2",d:"M96.6 166.174V97.8262C96.6 95.4021 97.9696 93.186 100.138 92.1019L136.138 74.1019C140.393 71.9742 145.4 75.0686 145.4 79.8262V148.174C145.4 150.598 144.03 152.814 141.862 153.898L105.862 171.898C101.607 174.026 96.6 170.931 96.6 166.174Z",fill:"white",stroke:"#515870",strokeWidth:"1.2"}),(0,a.jsx)("path",{opacity:"0.2",d:"M104.6 170.174V101.826C104.6 99.4021 105.97 97.186 108.138 9
6696.1019L144.138 78.1019C148.393 75.9742 153.4 79.0686 153.4 83.8262V152.174C153.4 154.598 152.03 156.814 149.862 157.898L113.862 175.898C109.607 178.026 104.6 174.931 104.6 170.174Z",fill:"white",stroke:"#515870",strokeWidth:"1.2"}),(0,a.jsx)("path",{opacity:"0.8",d:"M5.4 106.826V175.174C5.4 180.823 11.3456 184.498 16.3988 181.971L52.3988 163.971C54.9736 162.684 56.6 160.052 56.6 157.174V88.8262C56.6 83.1765 50.6544 79.502 45.6012 82.0286L9.60117 100.029C7.02641 101.316 5.4 103.948 5.4 106.826Z",fill:"white",stroke:"#515870",strokeWidth:"1.2"}),(0,a.jsx)("path",{opacity:"0.9",d:"M10 177.174V108.826C10 106.175 11.498 103.751 13.8695 102.565L49.8695 84.5652C54.5238 82.2381 60 85.6226 60 90.8262V159.174C60 161.825 58.502 164.249 56.1305 165.435L20.1305 183.435C15.4762 185.762 10 182.377 10 177.174Z",fill:"#F6F6F8",stroke:"#4E556D",strokeWidth:"1.2"}),(0,a.jsx)("path",{opacity:"0.2",d:"M13.4 110.826V179.174C13.4 184.823 19.3456 188.498 24.3988 185.971L60.3988 167.971C62.9736 166.684 64.6 164.052 64.6 161.174V92.8262C64.6 87.1765 58.6544 83.502 53.6012 86.0286L17.6012 104.029C15.0264 105.316 13.4 107.948 13.4 110.826Z",fill:"white",stroke:"#515870",strokeWidth:"1.2"}),(0,a.jsx)("path",{opacity:"0.2",d:"M29.4 118.826V187.174C29.4 192.823 35.3456 196.498 40.3988 193.971L76.3988 175.971C78.9736 174.684 80.6 172.052 80.6 169.174V100.826C80.6 95.1765 74.6544 91.502 69.6012 94.0286L33.6012 112.029C31.0264 113.316 29.4 115.948 29.4 118.826Z",fill:"white",stroke:"#515870",strokeWidth:"1.2"}),(0,a.jsx)("path",{opacity:"0.2",d:"M33.4 120.826V189.174C33.4 194.823 39.3456 198.498 44.3988 195.971L80.3988 177.971C82.9736 176.684 84.6 174.052 84.6 171.174V102.826C84.6 97.1765 78.6544 93.502 73.6012 96.0286L37.6012 114.029C35.0264 115.316 33.4 117.948 33.4 120.826Z",fill:"white",stroke:"#515870",strokeWidth:"1.2"})]}),t[0]=e):e=t[0],e};function CF(e){let t,n,r,i,l,d,c,p=(0,o.c)(14),{content:m}
669=e,h=(0,s.useRef)(null),f=(0,s.useRef)(null),[g,x]=(0,s.useState)(!1),{t:b}=iJ(lO);return p[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>x(!1),n=()=>[h.current,f.current],p[0]=t,p[1]=n):(t=p[0],n=p[1]),(0,u.PR)(t,n),p[2]!==b?(r=b("overview.calendar.tooltip"),p[2]=b,p[3]=r):r=p[3],p[4]===Symbol.for("react.memo_cache_sentinel")?(i=()=>x(CB),p[4]=i):i=p[4],p[5]!==g?(l=(0,a.jsx)(u.$n,{name:"calendar","data-as":"a",icon:C.CTc,mode:"bleed",padding:2,radius:"full",selected:g,onClick:i,ref:h,space:2}),p[5]=g,p[6]=l):l=p[6],p[7]!==r||p[8]!==l?(d=(0,a.jsx)(y.m_,{content:r,children:l}),p[7]=r,p[8]=l,p[9]=d):d=p[9],p[10]!==m||p[11]!==g||p[12]!==d?(c=(0,a.jsx)(y.AM,{content:m,placement:"bottom",open:g,ref:f,children:d}),p[10]=m,p[11]=g,p[12]=d,p[13]=c):c=p[13],c}function CB(e){return!e}let CN=()=>{let e,t=(0,o.c)(2),{zoneDateToUtc:n}=sh(sC);return t[0]!==n?(e=e=>[(0,tA.A)(e),(0,tD.A)(e)].map(n),t[0]=n,t[1]=e):e=t[1],e},CY=e=>{let t,n,r,i,l=(0,o.c)(12),{data:s}=lp(),d=CN(),{date:c}=e;l[0]!==c||l[1]!==d?(t=d(c),l[0]=c,l[1]=d,l[2]=t):t=l[2];let[u,p]=t;l[3]!==p||l[4]!==s||l[5]!==u?(n=s?.some(e=>{let t=e.publishAt||e.metadata.intendedPublishAt;if(!t)return!1;let n=new Date(t);return"scheduled"===e.metadata.releaseType&&n>=u&&n<=p}),l[3]=p,l[4]=s,l[5]=u,l[6]=n):n=l[6];let m=n;return l[7]!==m?(r=m?{fontWeight:700}:{},l[7]=m,l[8]=r):r=l[8],l[9]!==e||l[10]!==r?(i=(0,a.jsx)(C_,{...e,dateStyles:r}),l[9]=e,l[10]=r,l[11]=i):i=l[11],i},CH=tW.P.create(y.$n),CZ=e=>{let t,n,r,i,l=(0,o.c)(8),{filterDate:d,onClear:c}=e,[u,p]=(0,s.useState)(!1);return(l[0]!==c?(n=()=>{p(!1),c()},l[0]=c,l[1]=n):n=l[1],t=n,d)?(l[2]!==d||l[3]!==u?(r=!u&&(0,a.jsx)(CH,{"data-testid":"selected-date-filter",initial:{width:0,opacity:0},animate:{width:"auto",opacity:1},exit:{width:0,opacity:0},transition:{duration:.35,ease:"easeInOut"},iconRight:C.USm,mode:"bleed",onClick:()=>p(!0),selected:!0,text:(0,ty.A)(d,"PPP")}),l[2]=d,l[3]=u,l[4]=r):r=l[4],l[5]!==t||l[6]!==r?(i=(0,a.jsx)(tK.N,{onExitComplete:t,children:r}),l[5]=t,l[6]=r,l[7]=i):i=l[7],i):null},CU=e=>{let t,n,r=(0,o.c)(6),{release:i,documentsCount:l}=e;r[0]!==i._id?(t=o4(i._id),r[0]=i._id,r[1]=t):t=r[1];let{results:s}=Cb(t);return r[2]!==s||r[3]!==l||r[4]!==i?(n=(0,a.jsx)(u1,{release:i,documentsCount:l,documents:s}),r[2]=s,r[3]=l,r[4]=i,r[5]=n):n=r[5],n},Cq=e=>{let t,n=(0,o.c)(2),{documentCount:r}=e,i=r||"-";return n[0]!==i?(t=(0,a.jsx)(u.EY,{muted:!0,size:1,children:i}),n[0]=i,n[1]=t):t=n[1],t},CJ={block:{icon:25,media:{width:33,height:33}},blockImage:{icon:25,media:{width:600,height:400}},compact:{icon:21,media:{width:25,height:25}},default:{icon:21,media:{width:33,height:33}},detail:{icon:25,media:{width:73,height:73}},inline:{icon:15,media:{width:15,height:15}},media:{icon:25,media:{width:160,height:160}}},CW=(0,g.I4)(u.so).attrs({align:"center"})`
670  height: ${(0,u.D0)(CJ.detail.media.height)};
671`,CK=(0,g.I4)(u.az)`
672  white-space: nowrap;
673`,CG=(0,g.I4)(p.EA).attrs({animated:!0,radius:2})`
674  width: ${(0,u.D0)(CJ.detail.media.width)};
675  height: ${(0,u.D0)(CJ.detail.media.height)};
676`,CX=(0,g.I4)(p.r5).attrs({animated:!0,radius:1,size:1})`
677  max-width: ${(0,u.D0)(160)}; /* 80% of 200px */
678  width: 80%;
679`,CQ=(0,g.I4)(p.r5).attrs({animated:!0,radius:1,size:1})`
680  max-width: ${(0,u.D0)(120)}; /* 60% of 200px */
681  width: 60%;
682`,C1=(0,g.I4)(p.r5).attrs({animated:!0,radius:1,size:1})`
683  max-width: ${(0,u.D0)(180)}; /* 90% of 200px */
684  width: 90%;
685`,C2=(0,g.I4)(u.EY)(({theme:e})=>{let{fonts:t}=e.sanity,n=2*t.text.sizes[1].lineHeight;return(0,g.AH)`
686    & > span {
687      max-height: ${(0,u.D0)(n)};
688
689      /* Multi-line text overflow */
690      display: -webkit-box;
691      overflow: hidden;
692      overflow: clip;
693      text-overflow: ellipsis;
694      -webkit-line-clamp: ${2};
695      -webkit-box-orient: vertical;
696    }
697  `}),C5=e=>{let t,n,r,i,l,s,d,c,m,h,f,g,x,b,v,j,w,_,k=(0,o.c)(59),{cellProps:S,datum:T}=e,I=(0,tq.rd)(),{t:E}=iJ(lO),{t:$}=iJ(),{selectedReleaseId:A}=oW(),D=l$(),{state:z}=T;k[0]!==T._id||k[1]!==T.isLoading?(t=T.isLoading?"loading":o4(T._id),k[0]=T._id,k[1]=T.isLoading,k[2]=t):t=k[2];let M=t,P="archived"===z,R=M===A;k[3]!==R||k[4]!==M||k[5]!==D?(n=()=>{D(R?"drafts":M)},k[3]=R,k[4]=M,k[5]=D,k[6]=n):n=k[6];let O=n;k[7]!==S?(r=e=>{let{children:t}=e;return(0,a.jsx)(u.az,{...S,paddingLeft:3,flex:1,paddingY:1,paddingRight:2,sizing:"border",children:t})},k[7]=S,k[8]=r):r=k[8];let V=r;if(T.isLoading){let e,t;return k[9]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)(u.so,{align:"center",gap:2,children:[(0,a.jsx)(p.EA,{animated:!0,radius:1,style:CJ.default.media}),(0,a.jsx)(CX,{})]}),k[9]=e):e=k[9],k[10]!==V?(t=(0,a.jsx)(V,{children:e}),k[10]=V,k[11]=t):t=k[11],t}k[12]!==T.isDeleted||k[13]!==M||k[14]!==I?(i=T.isDeleted?{tone:"transparent"}:{as:"a",onClick:()=>I.navigate({releaseId:M}),tone:"inherit"},k[12]=T.isDeleted,k[13]=M,k[14]=I,k[15]=i):i=k[15];let L=i,F=R?C.loS:C.tsw;k[16]!==T.metadata.title||k[17]!==$?(l=T.metadata.title||$("release.placeholder-untitled-release"),k[16]=T.metadata.title,k[17]=$,k[18]=l):l=k[18];let B=l,N=!T.isDeleted;k[19]!==B?(s={title:B},k[19]=B,k[20]=s):s=k[20],k[21]!==E||k[22]!==s?(d=(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(an,{t:E,i18nKey:"deleted-release",values:s})}),k[21]=E,k[22]=s,k[23]=d):d=k[23];let Y=P||"published"===T.state;k[24]!==R||k[25]!==E?(c=E(R?"dashboard.details.unpin-release":"dashboard.details.pin-release"),k[24]=R,k[25]=E,k[26]=c):c=k[26],k[27]!==c||k[28]!==Y?(m={disabled:Y,content:c},k[27]=c,k[28]=Y,k[29]=m):m=k[29];let H=P||"published"===T.state,Z=R?`${E("dashboard.details.unpin-release")}: "${T.metadata.title}"`:`${E("dashboard.details.pin-release")}: "${T.metadata.title}"`;return k[30]!==O||k[31]!==R||k[32]!==F||k[33]!==m||k[34]!==H||k[35]!==Z?(h=(0,a.jsx)(y.$n,{tooltipProps:m,disabled:H,icon:F,mode:"bleed","data-testid":"pin-release-button",onClick:O,radius:"full",selected:R,"aria-label":Z,"aria-live":"assertive"}),k[30]=O,k[31]=R,k[32]=F,k[33]=m,k[34]=H,k[35]=Z,k[36]=h):h=k[36],k[37]!==T?(f=uj(T),k[37]=T,k[38]=f):f=k[38],k[39]!==f?(g=(0,a.jsx)(u.az,{flex:"none",children:(0,a.jsx)(s_,{tone:f})}),k[39]=f,k[40]=g):g=k[40],k[41]!==B?(x=(0,a.jsx)(u.BJ,{flex:1,space:2,children:(0,a.jsx)(u.so,{align:"center",gap:2,children:(0,a.jsx)(u.EY,{size:1,weight:"medium",children:B})})}),k[41]=B,k[42]=x):x=k[42],k[43]!==g||k[44]!==x?(b=(0,a.jsxs)(u.so,{align:"center",gap:2,children:[g,x]}),k[43]=g,k[44]=x,k[45]=b):b=k[45],k[46]!==L||k[47]!==b?(v=(0,a.jsx)(u.Zp,{...L,padding:2,radius:2,flex:1,children:b}),k[46]=L,k[47]=b,k[48]=v):v=k[48],k[49]!==h||k[50]!==v?(j=(0,a.jsxs)(u.so,{align:"center",gap:3,children:[h,v]}),k[49]=h,k[50]=v,k[51]=j):j=k[51],k[52]!==j||k[53]!==N||k[54]!==d?(w=(0,a.jsx)(y.m_,{disabled:N,content:d,children:j}),k[52]=j,k[53]=N,k[54]=d,k[55]=w):w=k[55],k[56]!==V||k[57]!==w?(_=(0,a.jsx)(V,{children:w}
697),k[56]=V,k[57]=w,k[58]=_):_=k[58],_},C0=tW.P.create(y.$n),C7={column:"publishAt",direction:"asc"},C3={column:"lastActivity",direction:"desc"};function C8(){let{data:e,loading:t}=lp(),{data:n}=cn(),{mode:r}=lA(),i=(0,tq.rd)(),[l,d]=(0,s.useState)(()=>"archived"===new URLSearchParams(i.state._searchParams).get(u4)?"archived":"active"),[p,m]=(0,s.useState)(()=>{let e=new URLSearchParams(i.state._searchParams).get(u8);return e?new Date(e):void 0}),[h,f]=(0,s.useState)(!1),g=(0,s.useMemo)(()=>e.map(e=>e._id),[e]),{data:x,loading:b}=(e=>{let t,n,r,i,a,l=(0,o.c)(14),{addReleaseIdsToListener:d,removeReleaseIdsFromListener:u,state:p}=(()=>{let e,t=(0,o.c)(2),n=(0,s.useContext)(c.JQ);return t[0]!==n?(e=n||{state:CD,addReleaseIdsToListener:CO,removeReleaseIdsFromListener:CV},t[0]=n,t[1]=e):e=t[1],e})(),[m,h]=(0,s.useState)(null);l[0]!==d||l[1]!==e||l[2]!==u?(t=()=>(e.length&&d([...new Set(e)]),()=>u([...new Set(e)])),n=[d,e,u],l[0]=d,l[1]=e,l[2]=u,l[3]=t,l[4]=n):(t=l[3],n=l[4]),(0,s.useEffect)(t,n);let{data:f,loading:g}=p;return l[5]!==f||l[6]!==e||l[7]!==m?(r=()=>{f&&(!m||Object.entries(m).some(e=>{let[t,n]=e;return n!==f[t]}))&&h(Object.fromEntries(e.map(e=>[e,f[e]])))},i=[e,f,m],l[5]=f,l[6]=e,l[7]=m,l[8]=r,l[9]=i):(r=l[8],i=l[9]),(0,s.useEffect)(r,i),l[10]!==g||l[11]!==m||l[12]!==p.error?(a={error:p.error,loading:g,data:m},l[10]=g,l[11]=m,l[12]=p.error,l[13]=a):a=l[13],a})(g),v=t||b&&!x,j=v||!x&&!!g.length,{t:w}=iJ(lO),{t:_}=iJ(),{timeZone:k,utcToCurrentZoneDate:S}=sh(sC),{selectedPerspective:T}=oW(),{DialogTimeZone:I,dialogProps:E,dialogTimeZoneShow:$}=sD(sC),A=CN(),{createRelease:D}=lP(),{checkWithPermissionGuard:z}=uy(),[M,P]=(0,s.useState)(null),R=(0,u.aY)(),O=(0,s.useCallback)(e=>e.isDeleted?{tone:"transparent"}:{tone:lC(T)&&T._id===e._id?uj(e):"default"},[T]),V=(0,s.useRef)(null),L=e.length>0||n.length>0,F=v||L,B=!v&&!L,N=(0,s.useMemo)(()=>L&&x?e.map(e=>({...e,publishAt:e.publishAt||e.metadata.intendedPublishAt,documentsMetadata:x[e._id]||{}})):[],[L,x,e]),Y=(0,s.useRef)(!1);(0,s.useEffect)(()=>(Y.current=!0,z(D,lk()).then(e=>{Y.current&&P(e)}),()=>{Y.current=!1}),[z,D]),(0,s.useEffect)(()=>{"archived"!==l||t||n.length||d("active")},[l,n.length,t]);let H=(0,s.useCallback)(({currentTarget:{value:e}})=>{d(e)},[]),Z=(0,s.useCallback)(e=>m(t=>{if(!e)return;let n=S(e);return t&&(0,ts.A)(t,n)?void 0:n}),[S]),U=(0,s.useCallback)(()=>{m(void 0),d("active")},[]);(0,s.useEffect)(()=>{i.navigate({_searchParams:p?[[u8,(0,ty.A)(p,"yyyy-MM-dd")]]:l?[[u4,l]]:[]})},[p,l,i]);let[q,J]=(0,s.useState)(!1);(0,s.useEffect)(()=>{J(!0)},[]);let W=R>2,K=(0,s.useMemo)(()=>{let e={disabled:v||!L,mode:"bleed",padding:2,...q?{initial:{opacity:0}
697,animate:{opacity:1},transition:{duration:.4,ease:"easeInOut"}}:{}};return(0,a.jsxs)(tK.N,{children:[(0,s.createElement)(C0,{...e,key:"open-group",onClick:H,selected:"active"===l,text:w("action.open"),value:"active"}),(0,a.jsx)(y.m_,{disabled:0!==n.length,content:w("no-archived-release"),placement:"bottom",children:(0,a.jsx)("div",{children:(0,s.createElement)(C0,{...e,key:"archived-group",disabled:e.disabled||!n.length,onClick:H,selected:"archived"===l,text:w("action.archived"),value:"archived"})})})]})},[v,L,q,H,l,w,n.length]),G=(0,s.useCallback)(async()=>{f(!0)},[]),X=(0,s.useMemo)(()=>(0,a.jsx)(y.$n,{icon:C.REV,disabled:!M||h||"disabled"===r,onClick:G,text:_("release.action.create-new"),tooltipProps:{disabled:!0===M,content:_("release.action.permission.error")}}),[M,h,r,G,_]),Q=(0,s.useCallback)(e=>{f(!1),i.navigate({releaseId:e},{stickyParams:{excludedPerspectives:null,perspective:e}})},[i]),ee=(0,s.useCallback)(({datum:e})=>{if(e.isDeleted||e.isLoading)return null;let t=("active"===l?e.documentsMetadata?.documentCount:e.finalDocumentStates?.length)??0;return(0,a.jsx)(CU,{release:e,documentsCount:t})},[l]),et=(0,s.useMemo)(()=>{if(!p)return"active"===l?N:n;let[e,t]=A(p);return N.filter(n=>{if(!n.publishAt||"scheduled"!==n.metadata.releaseType)return!1;let r=new Date(n.publishAt);return r>=e&&r<=t})},[p,l,N,n,A]),en=(0,s.useMemo)(()=>(0,a.jsx)(u.so,{flex:"none",children:(0,a.jsx)(u.Zp,{borderRight:!0,flex:"none",disabled:!0,children:(0,a.jsx)(CI,{disabled:v||0===e.length,renderCalendarDay:CY,selectedDate:p,onSelect:Z,timeZoneScope:sC})})}),[v,e,p,Z]),er=(0,s.useMemo)(()=>((e,t)=>{let n,r=(n=t,(e,t)=>{if(!n)throw Error("currentMode is required");if("all"===t||t===n)return e});return[r({id:"metadata.title",sorting:!0,width:null,style:{minWidth:"50%",maxWidth:"50%"},header:t=>(0,a.jsx)(u.so,{...t.headerProps,flex:1,paddingLeft:6,width:3,paddingRight:2,paddingY:3,sizing:"border",children:(0,a.jsx)(pi.SortHeaderButton,{...t,text:e("table-header.title")})}),cell:C5},"all"),r({id:"publishAt",sorting:!0,sortTransform:e=>{if("undecided"===e.metadata.releaseType)return 1/0;let t=lb(e);return"asap"!==e.metadata.releaseType&&t?new Date(t).getTime():0},width:250,header:t=>(0,a.jsx)(u.so,{...t.headerProps,paddingY:3,sizing:"border",children:(0,a.jsx)(pi.SortHeaderButton,{text:e("table-header.time"),...t})}),cell:({cellProps:e,datum:t})=>t.isLoading?null:(0,a.jsxs)(u.so,{...e,align:"center",paddingX:2,paddingY:3,gap:2,sizing:"border",children:[(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(uw,{release:t})}),l_(t)&&(0,a.jsx)(u.EY,{size:1,"data-testid":"release-lock-icon",children:(0,a.jsx)(C.XAi,{})})]})},"active"),r({id:"lastActivity",hidden:!0,sorting:!0,width:100,sortTransform:({publishedAt:e,_updatedAt:t})=>{let n=e??t;return n?new Date(n).getTime():-1/0}},"archived"),r({id:"publishedAt",sorting:!0,sortTransform:(e,t)=>"published"!==e.state?"asc"===t?1/0:-1/0:e.publishedAt?new Date(e.publishedAt).getTime():e._updatedAt,width:250,header:t=>(0,a.jsx)(u.so,{...t.headerProps,paddingY:3,sizing:"border",children:(0,a.jsx)(pi.SortHeaderButton,{text:e("table-header.publishedAt"),...t})}),cell:({cellProps:e,datum:t})=>(0,a.jsx)(u.so,{...e,align:"center",paddingX:2,paddingY:3,gap:2,sizing:"border",children:(0,a.jsx)(u.EY,{muted:!0,size:1,children:t.publishedAt?(0,a.jsx)(cI,{time:t.publishedAt,useTemporalPhrase:!0,minimal:!0}):"-"})})},"archived"),r({id:"_updatedAt",sorting:!0,sortTransform:(e,t)=>"archived"!==e.state?"asc"===t?1/0:-1/0:new Date(e._updatedAt).getTime(),width:250,header:t=>(0,a.jsx)(u.so,{...t.headerProps,paddingY:3,sizing:"border",children:(0,a.jsx)(pi.SortHeaderButton,{text:e("table-header.archivedAt"),...t})}),cell:({cellProps:e,datum:t})=>(0,a.jsx)(u.so,{...e,align:"center",paddingX:2,paddingY:3,gap:2,sizing:"border",children:(0,a.jsx)(u.EY,{muted:!0,size:1,children:"archived"===t.state?(0,a.jsx)(cI,{time:t._updatedAt,useTemporalPhrase:!0,minimal:!0}):"-"})})},"archived"),r({id:"documentsMetadata.updatedAt",sorting:!0,width:150,header:t=>(0,a.jsx)(u.so,{...t.headerProps,paddingY:3,sizing:"border",children:(0,a.jsx)(pi.SortHeaderButton,{text:e("table-header.edited"),...t})}),cell:({datum:{documentsMetadata:e,_updatedAt:t},cellProps:n})=>{let r=e?.updatedAt??t;return(0,a.jsx)(u.so,{...n,align:"center",gap:2,paddingX:2,paddingY:3,sizing:"border",children:(0,a.jsx)(u.EY,{muted:!0,size:1,children:r?(0,a.jsx)(cI,{time:r,useTemporalPhrase:!0,minimal:!0}):"-"})})}},"active"),r({id:"error",sorting:!1,width:40,header:()=>(0,a.jsx)(s.Fragment,{}),cell:({datum:{error:t,state:n},cellProps:r})=>(0,a.jsx)(u.so,{...r,align:"center",paddingX:2,paddingY:3,sizing:"border","data-testid":"error-indicator",children:"u">typeof t&&"active"===n&&(0,a.jsx)(y.m_,{content:(0,a.jsx)(u.EY,{size:1,children:e("failed-publish-title")}),portal:!0,children:(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(c9,{icon:C.YZv,tone
697:"critical"})})})})},"all"),r({id:"documentCount",sorting:!1,width:120,header:({headerProps:t})=>(0,a.jsx)(u.so,{...t,paddingY:3,sizing:"border",children:(0,a.jsx)(pi.BasicHeader,{text:e("table-header.documents")})}),cell:({datum:{isDeleted:e,state:t,finalDocumentStates:n,documentsMetadata:r},cellProps:i})=>(0,a.jsx)(u.so,{...i,align:"center",paddingX:2,paddingY:3,sizing:"border",children:!e&&(0,a.jsx)(Cq,{documentCount:"archived"===t||"published"===t?n?.length:r?.documentCount})})},"all")].filter(Boolean)})(w,l),[l,w]);return(0,a.jsxs)(u.so,{direction:"row",flex:1,style:{height:"100%"},children:[(0,a.jsxs)(u.so,{flex:1,children:[W&&en,B?(0,a.jsx)(()=>(0,a.jsx)(u.so,{direction:"column",flex:1,justify:B?"center":"flex-start",align:B?"center":"flex-start",style:{position:"relative"},children:(0,a.jsxs)(u.so,{gap:3,direction:"column",style:{maxWidth:"300px"},children:[(0,a.jsx)(CL,{}),(0,a.jsx)(u.EY,{as:"h1",size:1,weight:"semibold","data-testid":"no-releases-info-text",children:w("overview.title")}),(0,a.jsx)(u.EY,{size:1,muted:!0,children:w("overview.description")}),(0,a.jsxs)(u.cV,{space:2,children:[X,(0,a.jsx)(y.$n,{as:"a",href:"https://www.sanity.io/docs/content-releases",target:"_blank",mode:"ghost",onClick:G,text:w("overview.action.documentation")})]})]})}),{}):(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(u.so,{direction:"column",flex:1,style:{position:"relative"},children:[(0,a.jsx)(u.Zp,{flex:"none",padding:3,children:(0,a.jsxs)(u.so,{align:"center",flex:1,gap:3,children:[(0,a.jsxs)(u.cV,{children:[!W&&(0,a.jsx)(CF,{content:en}),(0,a.jsx)(u.BJ,{padding:2,space:4,children:(0,a.jsx)(u.EY,{as:"h1",size:1,weight:"semibold",children:w("overview.title")})})]}),(0,a.jsx)(u.so,{flex:1,gap:1,children:F&&(p?(0,a.jsx)(CZ,{filterDate:p,onClear:U}):K)}),(0,a.jsxs)(u.so,{flex:"none",gap:2,children:[(0,a.jsx)(y.$n,{icon:C.DZb,iconRight:C.D3D,mode:"bleed",text:`${k.abbreviation} (${k.namePretty})`,onClick:$}),I&&(0,a.jsx)(I,{...E}),F&&X]})]})}),(0,a.jsx)(u.az,{ref:V,marginTop:3,overflow:"auto",children:(v||L)&&(0,a.jsx)(po,{defaultSort:"archived"===l?C3:C7,loading:j,data:et,columnDefs:er,emptyState:w("no-releases"),rowId:"_id",rowActions:ee,rowProps:O,scrollContainerRef:V,hideTableInlinePadding:!0},p?"by_date":l)})]})})]}),h?(0,a.jsx)(CA,{onCancel:()=>f(!1),onSubmit:Q,origin:"release-plugin"}):null]})}let C4=[];function C6(e){let t,n,r,i,l,s,d,c,p,m=(0,o.c)(21),{currentUser:h,context:f}=e,{t:g}=iJ();m[0]===Symbol.for("react.memo_cache_sentinel")?(t={style:"short",type:"unit"},m[0]=t):t=m[0];let y=i5(t),x=h?.roles||C4;m[1]!==y||m[2]!==x?(n=()=>(0,a.jsx)(a.Fragment,{children:y.formatToParts(x.map(ye)).map(C9)}),m[1]=y,m[2]=x,m[3]=n):n=m[3];let b=n;return m[4]===Symbol.for("react.memo_cache_sentinel")?(r=(0,a.jsx)(u.EY,{size:0,children:(0,a.jsx)(C.VY$,{})}),m[4]=r):r=m[4],m[5]!==g?(i=g("insufficient-permissions-message.title"),m[5]=g,m[6]=i):i=m[6],m[7]!==i?(l=(0,a.jsxs)(u.cV,{space:2,children:[r,(0,a.jsx)(u.EY,{size:1,weight:"medium",children:i})]}),m[7]=i,m[8]=l):l=m[8],m[9]!==f||m[10]!==g?(s=(0,a.jsx)(u.cV,{marginTop:4,children:(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(an,{i18nKey:"insufficient-permissions-message.not-authorized-explanation",t:g,context:f})})}),m[9]=f,m[10]=g,m[11]=s):s=m[11],m[12]!==b?(d={Roles:b},m[12]=b,m[13]=d):d=m[13],m[14]!==g||m[15]!==d?(c=(0,a.jsx)(u.cV,{marginTop:4,marginBottom:1,children:(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(an,{i18nKey:"insufficient-permissions-message.roles",t:g,components:d})})}),m[14]=g,m[15]=d,m[16]=c):c=m[16],m[17]!==l||m[18]!==s||m[19]!==c?(p=(0,a.jsxs)(u.az,{children:[l,s,c]}),m[17]=l,m[18]=s,m[19]=c,m[20]=p):p=m[20],p}function C9(e,t){return"element"===e.type?(0,a.jsx)("code",{children:e.value},`${e.value}-${t}`):(0,a.jsx)(s.Fragment,{children:e.value},`${e.value}-${t}`)}function ye(e){return e.title||eJ(e.name)}let yt=e=>{let{id:t,type:n,release:r,version:i}=e,o=Cl(),{t:l}=iJ(),{selectedPerspective:d}=oW(),[c,u]=Cp({id:t,type:n,version:r,permission:"discardVersion"}),[p,m]=(0,s.useState)(!1),h=(0,s.useCallback)(()=>{m(!0)},[]);return i?u||c?.granted?{disabled:u||!c?.granted,dialog:p&&{type:"custom",component:(0,a.jsx)(lV,{documentId:i._id,documentType:n,onClose:()=>m(!1),fromPerspective:d})},label:l("release.action.discard-version"),icon:C.ucK,onHandle:h,title:l("release.action.discard-version")}:{disabled:!0,icon:C.ucK,label:"no permissions",title:(0,a.jsx)(C6,{currentUser:o,context:"discard-changes"})}:null};yt.action="discardVersion",yt.displayName="DiscardVersionAction";let yn=e=>{let{id:t,type:n,release:r,published:i,version:o}=e,l=Cl(),{t:d}=iJ(lO),c=!!o&&hE(o),{revertUnpublishVersion:u}=lR(),m=(0,p.dj)(),{t:h}=iJ(),[f,g]=Cp({id:t,type:n,version:r,permission:"unpublish"}
697),[y,x]=(0,s.useState)(!1),b=(0,s.useCallback)(async()=>{if(c&&o)try{await u(o._id)}catch{m.push({closable:!0,status:"error",title:h("release.action.revert-unpublish-version.failure.title"),description:h("release.action.revert-unpublish-version.failure.description")})}else x(!0)},[c,o,u,m,h]);return o?g||f?.granted?{dialog:y&&!c&&{type:"custom",component:(0,a.jsx)(Ch,{documentVersionId:o._id,documentType:n,onClose:()=>x(!1)})},label:d(c?"action.revert-unpublish-actions":"action.unpublish-doc-actions"),icon:c?C.AAk:C.wvk,onHandle:b,disabled:null===i,title:d(c?"action.revert-unpublish-actions":"action.unpublish-doc-actions")}:{disabled:!0,icon:C.ucK,label:"no permissions",title:(0,a.jsx)(C6,{context:"unpublish-document",currentUser:l})}:null};yn.action="unpublishVersion",yn.displayName="UnpublishVersionAction";let yr={interpolate:/{{([\s\S]+?)}}/g},yi={inlineIcon:(e,t,n)=>{if(!(0,_.L4)(n))return n;let r=!!(n.children[t-1]?._type==="span"&&n.children[t-1]?.text),i=!!(n.children[t+1]?._type==="span"&&n.children[t+1]?.text);return{...e,hasTextRight:i,hasTextLeft:r}}},ya=(0,g.I4)(u.az)`
698  height: 1px;
699  background: var(--card-border-color);
700  width: 100%;
701`,yo=g.I4.div`
702  // Remove margin top of first element
703  > div:first-child {
704    margin-top: 0;
705  }
706  // Remove margin bottom to last box.
707  > [data-ui='Box']:last-child {
708    margin-bottom: 0;
709  }
710`,yl=(0,g.I4)(u.EY)(e=>e.accent?`
711    --card-icon-color: var(--card-accent-fg-color);
712    `:""),ys=g.I4.span`
713  color: var(--card-accent-fg-color);
714  --card-icon-color: var(--card-accent-fg-color);
715`,yd=g.I4.span(({theme:e})=>{let{weights:t}=e.sanity.fonts.text;return(0,g.AH)`
716    font-weight: ${t.semibold};
717  `}),yc=(0,g.I4)(C.Int)`
718  &[data-sanity-icon] {
719    /* Forces the icon to leave the necessary space to the right or left it has surrounding text */
720    margin-left: ${e=>e.$hasTextLeft?"0":""};
721    margin-right: ${e=>e.$hasTextRight?"0":""};
722  }
723`,yu=g.I4.a`
724  font-weight: 600;
725  color: ${e=>e.$useTextColor?"var(--card-muted-fg-color) !important":""};
726`,yp=g.I4.span`
727  display: ${({$inline:e})=>e?"inline-block":"inline"};
728  font-size: calc(21 / 16 * 1rem) !important;
729  min-width: calc(21 / 16 * 1rem - 0.375rem);
730  line-height: 0;
731  > svg {
732    height: 1em;
733    width: 1em;
734    display: inline;
735    font-size: 1em !important;
736    margin: -0.375rem !important;
737    *[stroke] {
738      stroke: currentColor;
739    }
740  }
741`,ym=e=>(0,a.jsx)(ys,{children:e}),yh=e=>{let t,n,r,i,l=(0,o.c)(8),[d,c]=(0,s.useState)("");l[0]!==e.icon.url?(t=()=>{let t=new AbortController,n=t.signal;return fetch(e.icon.url,{signal:n}).then(yv).then(e=>c(e)).catch(yj),()=>{t.abort()}},n=[e.icon.url],l[0]=e.icon.url,l[1]=t,l[2]=n):(t=l[1],n=l[2]),(0,s.useEffect)(t,n);let u=!!e.inline;return l[3]!==d?(r={__html:d},l[3]=d,l[4]=r):r=l[4],l[5]!==u||l[6]!==r?(i=(0,a.jsx)(yp,{$inline:u,dangerouslySetInnerHTML:r}),l[5]=u,l[6]=r,l[7]=i):i=l[7],i};function yf(e){let t,n=(0,o.c)(2),{children:r}=e;return n[0]!==r?(t=(0,a.jsx)(u.az,{paddingX:2,marginBottom:4,children:(0,a.jsx)(u.EY,{size:1,muted:!0,children:r})}),n[0]=r,n[1]=t):t=n[1],t}function yg(e){let t,n=(0,o.c)(2),{children:r}=e;return n[0]!==r?(t=(0,a.jsx)(u.az,{paddingX:2,marginY:4,children:(0,a.jsx)(u.DZ,{size:2,as:"h2",children:r})}),n[0]=r,n[1]=t):t=n[1],t}function yC(e){let t,n=(0,o.c)(2),{children:r}=e;return n[0]!==r?(t=(0,a.jsx)(u.az,{paddingX:2,marginY:4,children:(0,a.jsx)(u.DZ,{size:1,as:"h3",children:r})}),n[0]=r,n[1]=t):t=n[1],t}let yy=g.I4.img(e=>{let t=(0,tZ.JW)(e.theme);return(0,g.AH)`
742    object-fit: cover;
743    width: 100%;
744    border-radius: ${t.radius[3]}px;
745  `});function yx(e){let t,n=(0,o.c)(2),r=e.value.image?.url;return n[0]!==r?(t=(0,a.jsx)(u.az,{paddingX:2,marginY:4,children:(0,a.jsx)(yy,{src:r})}),n[0]=r,n[1]=t):t=n[1],t}function yb(e){let t,n,r,i,l,s=(0,o.c)(8),{blocks:d,onLinkClick:c,interpolation:p}=e;return s[0]!==d?(n=d.map(e=>{if((0,_.L4)(e)&&"block"===e._type){let t=e.children.map((t,n)=>yi[t._type]?yi[t._type](t,n,e):t);return{...e,children:t}}return e}),s[0]=d,s[1]=n):n=s[1],t=n,s[2]!==p||s[3]!==c?(i=(({onLinkClick:e,interpolation:t})=>{let n,r=(n=t,e=>e&&n?(Array.isArray(e)?e:[e]).map(e=>"string"==typeof e?nv(e,yr)(n):e):e);return{block:{normal:({children:e})=>(0,a.jsx)(yf,{children:r(e)}),h2:({children:e})=>(0,a.jsx)(yg,{children:r(e)}),h3:({children:e})=>(0,a.jsx)(yC,{children:r(e)})},list:{bullet:({children:e})=>(0,a.jsx)("ul",{children:r(e)}),number:({children:e})=>(0,a.jsx)("ol",{children:r(e)}),checkmarks:({children:e})=>(0,a.jsx)(a.Fragment,{children:r(e)})},listItem:{bullet:({children:e})=>(0,a.jsx)(u.EY,{as:"li",size:1,muted:!0,style:{display:"list-item",padding:"0.5rem 0"},children:r(e)}),number:({children:e})=>(0,a.jsx)(u.EY,{as:"li",size:1,muted:!0,style:{display:"list-item",padding:"0.5rem 0"},children:r(e)}),checkmarks:({children:e})=>(0,a.jsx)(u.EY,{children:e})},marks:{strong:({children:e})=>(0,a.jsx)("strong",{children:r(e)}),semibold:({children:e})=>(0,a.jsx)(yd,{children:r(e)}),link:t=>(0,a.jsxs)(yu,{href:t.value.href,rel:"noopener noreferrer",target:"_blank",$useTextColor:t.value.useTextColor,onClick:e?()=>e({url:t.value.href,linkTitle:t.text}):void 0,children:[t.children,t.value.showIcon&&(0,a.jsx)(C.qYV,{style:{marginLeft:"2px"}})]}),accent:({children:e})=>(0,a.jsx)(ys,{children:r(e)})},types:{inlineIcon:e=>(0,a.jsx)(y.e7,{condition:e.value.accent,wrapper:ym,children:e.value.sanityIcon?(0,a.jsx)(yc,{symbol:e.value.sanityIcon,$hasTextLeft:e.value.hasTextLeft,$hasTextRight:e.value.hasTextRight}):(0,a.jsx)(a.Fragment,{children:e.value.icon?.url&&(0,a.jsx)(yh,{icon:e.value.icon,inline:!0})})}),divider:()=>(0,a.jsx)(u.az,{marginY:3,children:(0,a.jsx)(u.az,{paddingY:3,children:(0,a.jsx)(ya,{})})}),iconAndText:e=>(0,a.jsxs)(u.so,{align:"flex-start",paddingX:2,paddingTop:1,paddingBottom:2,marginTop:2,gap:2,children:[(0,a.jsxs)(u.so,{gap:2,style:{flexShrink:0},children:[(0,a.jsx)(yl,{size:1,accent:e.value.accent,children:e.value.sanityIcon?(0,a.jsx)(C.Int,{symbol:e.value.sanityIcon}):(0,a.jsxs)(a.Fragment,{children:[e.value.icon?.url&&(0,a.jsx)(yh,{icon:e.value.icon})," "]})}),(0,a.jsx)(u.EY,{size:1,weight:"semibold",accent:e.value.accent,children:r(e.value.title)})]}),(0,a.jsx)(u.EY,{size:1,muted:!0,accent:e.value.accent,children:r(e.value.text)})]}),imageBlock:e=>(0,a.jsx)(yx,{...e})}}})({onLinkClick:c,interpolation:p}),s[2]=p,s[3]=c,s[4]=i):i=s[4],r=i,s[5]!==r||s[6]!==t?(l=(0,a.jsx)(u.Zp,{tone:"default",children:(0,a.jsx)(yo,{children:(0,a.jsx)(nh.RK,{value:t,components:r,onMissingComponent:!1})})}),s[5]=r,s[6]=t,s[7]=l):l=s[7],l}function yv(e){if(!e.ok)throw Error(`HTTP error! status: ${e.status}`);return e.text()}function yj(e){"AbortError"!==e.name&&console.error(e)}let yw=(0,g.I4)(y.$n)(({theme:e})=>{let{space:t}=(0,tZ.JW)(e);return`
746      position: absolute;
747      top: ${t[3]}px;
748      right: ${t[3]}px;
749      z-index: 20;
750      background: transparent;
751      border-radius: 9999px;
752      box-shadow: none;
753      color: ${v.ON.hex};
754      --card-fg-color: ${v.ON.hex};
755      :hover {
756        --card-fg-color: ${v.ON.hex};
757      }
758    `}),y_=g.I4.img`
759  object-fit: cover;
760  width: 100%;
761  height: 100%;
762  height: 200px;
763`;function yk(e){let t,n,r,i,l,s,d,c,p=(0,o.c)(25),{data:m,onClose:h,onPrimaryClick:f,onSecondaryClick:g,interpolation:x}=e;p[0]!==m.secondaryButton||p[1]!==g?(t=m.secondaryButton?.text?{text:m.secondaryButton.text,mode:"bleed",tone:"default",iconRight:C.ZPM,...m.secondaryButton.url&&{target:"_blank",rel:"noopener noreferrer",as:"a",href:m.secondaryButton.url},onClick:g}:void 0,p[0]=m.secondaryButton,p[1]=g,p[2]=t):t=p[2];let b=m.ctaButton?.text;return p[3]!==m.ctaButton.url?(n=m.ctaButton.url&&{target:"_blank",rel:"noopener noreferrer",as:"a",href:m.ctaButton.url},p[3]=m.ctaButton.url,p[4]=n):n=p[4],p[5]!==f||p[6]!==b||p[7]!==n?(r={text:b,mode:"default",tone:"primary",...n,onClick:f},p[5]=f,p[6]=b,p[7]=n,p[8]=r):r=p[8],p[9]!==t||p[10]!==r?(i={cancelButton:t,confirmButton:r},p[9]=t,p[10]=r,p[11]=i):i=p[11],p[12]!==h?(l=(0,a.jsx)(yw,{icon:C.USm,mode:"bleed",tone:"default",onClick:h,tabIndex:-1,tooltipProps:null}),p[12]=h,p[13]=l):l=p[13],p[14]!==m.image?(s=m.image&&(0,a.jsx)(y_,{src:m.image.asset.url,alt:m.image.asset.altText??""}),p[14]=m.image,p[15]=s):s=p[15],p[16]!==m.descriptionText||p[17]!==x?(d=(0,a.jsx)(u.az,{padding:3,marginTop:2,children:(0,a.jsx)(u.BJ,{space:4,paddingBottom:2,children:(0,a.jsx)(yb,{blocks:m.descriptionText,interpolation:x})})}),p[16]=m.descriptionText,p[17]=x,p[18]=d):d=p[18],p[19]!==h||p[20]!==i||p[21]!==l||p[22]!==s||p[23]!==d?(c=(0,a.jsxs)(y.lG,{id:"upsell-dialog",onClose:h,onClickOutside:h,__unstable_hideCloseButton:!0,bodyHeight:"fill",padding:!1,zOffset:800,footer:i,children:[l,s,d]}),p[19]=h,p[20]=i,p[21]=l,p[22]=s,p[23]=d,p[24]=c):c=p[24],c}let yS="orgActiveReleaseCount";
763class yT extends Error{constructor(){super("StudioReleaseLimitExceeded"),this.name="StudioReleaseLimitExceededError",this.details={type:"releaseLimitExceededError"}}}let yI="content-releases",yE="www.sanity.io";function y$(e){let t,n,r,i,l,d,u,p,m,h,f,g,C,y,x,b,v,j=(0,o.c)(44),[w,_]=(0,s.useState)(!1),[S,T]=(0,s.useState)(null),I=oG(),$=(0,e5.Jr)();j[0]===Symbol.for("react.memo_cache_sentinel")?(t={apiVersion:"2024-04-19"},j[0]=t):t=j[0];let A=ee7(t),{data:D}=lp(),{enabled:P}=ug("contentReleases");e:{if(!P&&S){n="upsell";break e}if(P&&!S){n="disabled";break e}n="default"}let R=n;j[1]!==$?(i={dialogSecondaryClicked:()=>$.log(Z$,{feature:yI,type:"modal"}),dialogPrimaryClicked:()=>$.log(ZE,{feature:yI,type:"modal"}),panelViewed:e=>$.log(ZT,{feature:yI,type:"inspector",source:e}),panelDismissed:()=>$.log(ZI,{feature:yI,type:"inspector"}),panelPrimaryClicked:()=>$.log(ZE,{feature:yI,type:"inspector"}),panelSecondaryClicked:()=>$.log(Z$,{feature:yI,type:"inspector"})},j[1]=$,j[2]=i):i=j[2],r=i,j[3]!==r?(l=()=>{r.dialogPrimaryClicked()},j[3]=r,j[4]=l):l=j[4];let O=l;j[5]!==r?(d=()=>{r.dialogSecondaryClicked()},j[5]=r,j[6]=d):d=j[6];let V=d;j[7]!==$?(u=()=>{_(!1),$.log(ZI,{feature:yI,type:"modal"})},j[7]=$,j[8]=u):u=j[8];let L=u;j[9]!==A.observable||j[10]!==I?(p=()=>{let e=A.observable.request({uri:"/journey/content-releases"}).subscribe({next:e=>{if(e)try{let t=nv(e.ctaButton.url,yr);e.ctaButton.url=t({baseUrl:yE,projectId:I});let n=nv(e.secondaryButton.url,yr);e.secondaryButton.url=n({baseUrl:yE,projectId:I}),T(e)}catch{}},error:yA});return()=>{e.unsubscribe()}},j[9]=A.observable,j[10]=I,j[11]=p):p=j[11],j[12]!==A||j[13]!==I?(m=[A,I],j[12]=A,j[13]=I,j[14]=m):m=j[14],(0,s.useEffect)(p,m);let[B,N]=(0,s.useState)(null);j[15]!==$?(h=e=>{_(!0),void 0!==e&&N(e),$.log(ZT,{feature:yI,type:"modal",source:"navbar"})},j[15]=$,j[16]=h):h=j[16];let Y=h,{releaseLimits$:H}=u$(),{orgActiveReleaseCount$:Z}=(()=>{let e=d4(),{data:t}=lp(),n=ee7({apiVersion:"v2025-02-19"}),r=t?.length||0,i=(0,s.useMemo)(()=>({activeReleasesCount:r}),[r]);return(0,s.useMemo)(()=>{let t=e.get({dependencies:[n,i],namespace:yS})||function(e,t){let n=new J.t(null),r=new J.t(!1),i=new J.t(null);return{orgActiveReleaseCount$:n.pipe((0,z.n)(a=>null===a||!0===r.getValue()||i.getValue()!==t?(r.next(!1),uI(e,"orgActiveReleaseCount").pipe((0,W.M)(()=>i.next(t)),(0,E.T)(e=>e.orgActiveReleaseCount),(0,M.W)(e=>{if(console.error("Failed to fetch org release count",e),!a)throw e;return(0,k.of)(a)}),(0,z.n)(e=>(n.next(e),(0,F.O)(6e4).subscribe(()=>{r.next(!0),i.next(null)}),(0,k.of)(e))))):(0,k.of)(a)))}}(n,i.activeReleasesCount);return e.set({namespace:yS,value:t,dependencies:[n,i]}),t},[n,i,e])})();j[17]!==D?.length||j[18]!==Y||j[19]!==R||j[20]!==Z||j[21]!==H?(f=async(e,t,n)=>{let r=void 0!==t&&t,i=e=>{if(Y(e),r)throw new yT;return!1};if("upsell"===R)return n?.(!1),i();let a=await (async()=>{try{return await Promise.all([(0,em._)(Z),(0,em._)(H)])}catch(e){return console.error("Error fetching release limits and org count for upsell:",e),null}})();if(null===a)return n?.(!0),e();let[o,l]=a;if(null===l||null===o)return n?.(!0),e();let{orgActiveReleaseLimit:s,datasetReleaseLimit:d}=l;if(null===o)return n?.(!0),e();let c=D?.length||0,u=null!==s&&o>=s;return c>=d||null!==s&&c>=s||u?(n?.(!1),i(o)):(n?.(!0),e())},j[17]=D?.length,j[18]=Y,j[19]=R,j[20]=Z,j[21]=H,j[22]=f):f=j[22];let U=f;j[23]!==Y?(g=e=>Y(e),j[23]=Y,j[24]=g):g=j[24];let q=g;j[25]!==U||j[26]!==R||j[27]!==q||j[28]!==r||j[29]!==w?(y={mode:R,upsellDialogOpen:w,guardWithReleaseLimitUpsell:U,onReleaseLimitReached:q,telemetryLogs:r},j[25]=U,j[26]=R,j[27]=q,j[28]=r,j[29]=w,j[30]=y):y=j[30],C=y,j[31]!==B?(x=null===B?void 0:{releaseLimit:B},j[31]=B,j[32]=x):x=j[32];let K=x;return j[33]!==L||j[34]!==O||j[35]!==V||j[36]!==K||j[37]!==S||j[38]!==w?(b=S&&w&&(0,a.jsx)(yk,{interpolation:K,data:S,onClose:L,onPrimaryClick:O,onSecondaryClick:V}),j[33]=L,j[34]=O,j[35]=V,j[36]=K,j[37]=S,j[38]=w,j[39]=b):b=j[39],j[40]!==C||j[41]!==e.children||j[42]!==b?(v=(0,a.jsxs)(c.Pn.Provider,{value:C,children:[e.children,b]}),j[40]=C,j[41]=e.children,j[42]=b,j[43]=v):v=j[43],v}function yA(){}let yD="sanity/releases",yz="releases",yM="release",yP=aR({name:yD,studio:{components:{layout:function(e){let t,n,r=(0,o.c)(6);if(!yR()){let t;return r[0]!==e?(t=e.renderDefault(e),r[0]=e,r[1]=t):t=r[1],t}return r[2]!==e?(t=e.renderDefault(e),r[2]=e,r[3]=t):t=r[3],r[4]!==t?(n=(0,a.jsx)(y$,{children:(0,a.jsx)(CM,{children:t})}),r[4]=t,r[5]=n):n=r[5],n}}},tools:[{name:yz,title:"Releases",component:function(){let e,t=(0,o.c)(3),{releaseId:n}=(0,tq.rd)().state;if(n){let e;return t[0]!==n?(e=(0,a.jsx)(Cj,{},n),t[0]=n,t[1]=e):e=t[1],e}return t[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(C8,{}),t[2]=e):e=t[2],e},router:tq.wE.create("/",[tq.wE.create("/:releaseId")]),canHandleIntent:e=>e===yM,getIntentState:(e,t)=>
763e===yM?{releaseId:t.id}:null}],i18n:{bundles:[{locale:"en-US",namespace:lO,resources:()=>n.e(8286).then(n.bind(n,48286))}]},document:{actions:(e,t)=>(function(e,t){let n=e.filter(({action:e})=>"duplicate"===e);return"version"===t.versionType?n.concat(yt,yn):e})(e,t)}});function yR(){let e,t=(0,o.c)(2),n=lE();return t[0]!==n?(e=n.tools.some(({name:e})=>e===yz),t[0]=n,t[1]=e):e=t[1],e}let yO=e=>{let t,n,r,i,l,s=(0,o.c)(30),{onCreateRelease:d}=e,{t:c}=iJ(),{mode:u}=lA(),{createRelease:p}=lP(),{checkWithPermissionGuard:m}=uy(),h=CE();s[0]!==m||s[1]!==p||s[2]!==h?(n=(0,Q.H)(m(p,h(lk()))),s[0]=m,s[1]=p,s[2]=h,s[3]=n):n=s[3],t=n;let f=(0,eH.J)(t),g=lp().data.length,{releases:x}=lE(),b=x?.limit??1/0,v=g>=b;s[4]!==c?(r=c("release.action.create-new"),s[4]=c,s[5]=r):r=s[5],s[6]!==d||s[7]!==r?(i={icon:C.REV,onClick:d,"data-testid":"create-new-release-button",text:r},s[6]=d,s[7]=r,s[8]=i):i=s[8];let j=i;if(v){let e,t,n,r;return s[9]!==c?(e=c("release.action.create-new"),s[9]=c,s[10]=e):e=s[10],s[11]!==c||s[12]!==b?(t=c("release.action.new-release.limit-reached",{count:b}),s[11]=c,s[12]=b,s[13]=t):t=s[13],s[14]!==t?(n={content:t},s[14]=t,s[15]=n):n=s[15],s[16]!==j||s[17]!==e||s[18]!==n?(r=(0,a.jsx)(y.Dr,{...j,text:e,tooltipProps:n,disabled:!0}),s[16]=j,s[17]=e,s[18]=n,s[19]=r):r=s[19],r}if(!f||"disabled"===u){let e,t,n,r=!0===f;return s[20]!==c?(e=c("release.action.permission.error"),s[20]=c,s[21]=e):e=s[21],s[22]!==r||s[23]!==e?(t={disabled:r,content:e},s[22]=r,s[23]=e,s[24]=t):t=s[24],s[25]!==j||s[26]!==t?(n=(0,a.jsx)(y.Dr,{...j,tooltipProps:t,disabled:!0}),s[25]=j,s[26]=t,s[27]=n):n=s[27],n}return s[28]!==j?(l=(0,a.jsx)(y.Dr,{...j}),s[28]=j,s[29]=l):l=s[29],l},yV=(0,s.memo)(function(e){let t,n,r,i,l,s,d,c,p,m,h,f,g=(0,o.c)(33),{release:y}=e,{t:x}=iJ();g[0]!==y?(t=l_(y),g[0]=y,g[1]=t):t=g[1];let b=t;return g[2]!==y?(n=uj(y),g[2]=y,g[3]=n):n=g[3],g[4]!==n?(r=(0,a.jsx)(s_,{padding:2,tone:n}),g[4]=n,g[5]=r):r=g[5],g[6]!==y.metadata.title||g[7]!==x?(i=y.metadata?.title||x("release.placeholder-untitled-release"),g[6]=y.metadata.title,g[7]=x,g[8]=i):i=g[8],g[9]!==i?(l=(0,a.jsx)(u.EY,{size:1,weight:"medium",children:i}),g[9]=i,g[10]=l):l=g[10],g[11]!==y.metadata.releaseType||g[12]!==x?(s="asap"===y.metadata.releaseType&&(0,a.jsx)(a.Fragment,{children:x("release.type.asap")}),g[11]=y.metadata.releaseType,g[12]=x,g[13]=s):s=g[13],g[14]!==y||g[15]!==x?(d="scheduled"===y.metadata.releaseType&&(y.metadata.intendedPublishAt?(0,a.jsx)(a.Fragment,{children:lv(y)}):(0,a.jsx)(a.Fragment,{children:x("release.chip.tooltip.unknown-date")})),g[14]=y,g[15]=x,g[16]=d):d=g[16],g[17]!==y.metadata.releaseType||g[18]!==x?(c="undecided"===y.metadata.releaseType&&(0,a.jsx)(a.Fragment,{children:x("release.type.undecided")}),g[17]=y.metadata.releaseType,g[18]=x,g[19]=c):c=g[19],g[20]!==s||g[21]!==d||g[22]!==c?(p=(0,a.jsxs)(u.EY,{muted:!0,size:1,children:[s,d,c]}),g[20]=s,g[21]=d,g[22]=c,g[23]=p):p=g[23],g[24]!==l||g[25]!==p?(m=(0,a.jsxs)(u.BJ,{flex:1,space:2,children:[l,p]}),g[24]=l,g[25]=p,g[26]=m):m=g[26],g[27]!==b?(h=b&&(0,a.jsx)(C.XAi,{}),g[27]=b,g[28]=h):h=g[28],g[29]!==h||g[30]!==r||g[31]!==m?(f=(0,a.jsxs)(u.so,{gap:3,justify:"center",align:"center",children:[r,m,h]}),g[29]=h,g[30]=r,g[31]=m,g[32]=f):f=g[32],f}),yL=(0,g.I4)(u.BJ)`
764  max-width: 300px;
765  max-height: 200px;
766  overflow-y: auto;
767`,yF=(0,s.memo)(function(e){let t,n,r,i,l,d,c,p,m,h,f,g,x,b,v,j,w,_,k=(0,o.c)(64),{documentId:S,releases:T,releasesLoading:I,fromRelease:E,isVersion:$,onDiscard:A,onCreateRelease:D,onCreateVersion:z,disabled:M,locked:P,type:R}=e,{t:O}=iJ();k[0]!==S||k[1]!==$?(t=ip(S)&&!$,k[0]=S,k[1]=$,k[2]=t):t=k[2];let V=t,L=T.filter(yB),{checkWithPermissionGuard:F}=uy(),{createRelease:B}=lP(),[N,Y]=(0,s.useState)(null);k[3]!==S?(n=ib(S),k[3]=S,k[4]=n):n=k[4];let H=$?E:void 0,Z="draft"===E?"discardDraft":"discardVersion";k[5]!==n||k[6]!==H||k[7]!==Z||k[8]!==R?(r={id:n,type:R,version:H,permission:Z},k[5]=n,k[6]=H,k[7]=Z,k[8]=R,k[9]=r):r=k[9];let[U,q]=Cp(r),J=!q&&U?.granted,W=(0,s.useRef)(!1);k[10]!==F||k[11]!==B?(i=()=>(W.current=!0,F(B,lk()).then(e=>{W.current&&Y(e)}),()=>{W.current=!1}),l=[F,B],k[10]=F,k[11]=B,k[12]=i,k[13]=l):(i=k[12],l=k[13]),(0,s.useEffect)(i,l);let K=u.W1;k[14]!==M||k[15]!==E||k[16]!==$||k[17]!==O?(d=$&&(0,a.jsx)(tq.RZ,{intent:"release",params:{id:E},rel:"noopener noreferrer",style:{textDecoration:"none"},disabled:M,children:(0,a.jsx)(y.Dr,{icon:C.CTc,text:O("release.action.view-release")})}
767),k[14]=M,k[15]=E,k[16]=$,k[17]=O,k[18]=d):d=k[18],k[19]!==I?(c=I&&(0,a.jsx)(u.y$,{}),k[19]=I,k[20]=c):c=k[20];let G=nz.r,X=C.TdU;k[21]===Symbol.for("react.memo_cache_sentinel")?(p={placement:"right-start"},k[21]=p):p=k[21],k[22]!==O?(m=O("release.action.copy-to"),k[22]=O,k[23]=m):m=k[23];let Q=M||!N,ee=!0===N;k[24]!==O?(h=O("release.action.permission.error"),k[24]=O,k[25]=h):h=k[25],k[26]!==ee||k[27]!==h?(f={disabled:ee,content:h},k[26]=ee,k[27]=h,k[28]=f):f=k[28],k[29]!==M||k[30]!==z||k[31]!==O?(g=e=>(0,a.jsx)(y.Dr,{as:"a",onClick:()=>z(e._id),renderMenuItem:()=>(0,a.jsx)(yV,{release:e}),disabled:M,tooltipProps:{content:O("release.tooltip.locked")}},e._id),k[29]=M,k[30]=z,k[31]=O,k[32]=g):g=k[32];let et=L.map(g);return k[33]!==yL||k[34]!==E||k[35]!==et?(x=(0,a.jsx)(yL,{space:1,children:et},E),k[33]=yL,k[34]=E,k[35]=et,k[36]=x):x=k[36],k[37]!==L.length?(b=L.length>1&&(0,a.jsx)(u.Nj,{}),k[37]=L.length,k[38]=b):b=k[38],k[39]!==D?(v=(0,a.jsx)(yO,{onCreateRelease:D}),k[39]=D,k[40]=v):v=k[40],k[41]!==G||k[42]!==p||k[43]!==m||k[44]!==Q||k[45]!==f||k[46]!==x||k[47]!==b||k[48]!==v||k[49]!==X?(j=(0,a.jsxs)(G,{icon:X,popover:p,text:m,disabled:Q,tooltipProps:f,children:[x," ",b,v]}),k[41]=G,k[42]=p,k[43]=m,k[44]=Q,k[45]=f,k[46]=x,k[47]=b,k[48]=v,k[49]=X,k[50]=j):j=k[50],k[51]!==M||k[52]!==J||k[53]!==V||k[54]!==P||k[55]!==A||k[56]!==O?(w=!V&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.Nj,{}),(0,a.jsx)(y.Dr,{icon:C.ucK,onClick:A,text:O("release.action.discard-version"),disabled:M||P||!J,tooltipProps:{disabled:!0===J,content:O("release.action.permission.error")}})]}),k[51]=M,k[52]=J,k[53]=V,k[54]=P,k[55]=A,k[56]=O,k[57]=w):w=k[57],k[58]!==K||k[59]!==j||k[60]!==w||k[61]!==d||k[62]!==c?(_=(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(K,{children:[d,c,j,w]})}),k[58]=K,k[59]=j,k[60]=w,k[61]=d,k[62]=c,k[63]=_):_=k[63],_});function yB(e){return!l_(e)}function yN(e){let{onClose:t,documentId:n,documentType:r,tone:i,title:o,onCreateVersion:l}=e,{t:d}=iJ(),{t:c}=iJ(lO),m=(0,p.dj)(),h=CE(),{releasePromise:f}=C$(),g=Cm().get(r),[C]=(0,s.useState)(lx),[x,b]=(0,s.useState)(()=>({_id:C,metadata:{title:"",description:"",releaseType:li}})),[v,j]=(0,s.useState)(!1),[,w]=(0,s.useState)(0),_=(0,e5.Jr)(),{createRelease:k}=lP(),{clearReleaseDataFromStorage:S}=sx(),T=o||d("release.placeholder-untitled-release"),I=uv(x),E=(0,s.useCallback)(e=>{b(e)},[]),$=(0,s.useCallback)(async()=>{l(C)},[l,C]),A=(0,s.useCallback)(async()=>{if(uv(x))return void w(e=>e+1);if(j(!0),!await f)return void j(!1);try{let e=h(x);await k(e),await $(),_.log(oF,{origin:"document-panel"})}catch(e){lM(e)?t():(console.error(e),m.push({closable:!0,status:"error",title:d("release.toast.create-release-error.title"),description:e.message}))}finally{j(!1),S()}},[x,f,h,k,$,_,t,m,d,S]),D=(0,s.useCallback)(()=>{S(),t()},[S,t]);return(0,a.jsxs)(y.lG,{id:"create-release-dialog",header:d("release.dialog.copy-to-release.title"),onClickOutside:t,onClose:D,padding:!1,width:1,children:[(0,a.jsx)(u.az,{paddingX:2,marginBottom:2,style:{borderBottom:"1px solid var(--card-border-color)"},children:(0,a.jsxs)(u.so,{align:"center",padding:4,paddingTop:1,justify:"space-between",children:[g?(0,a.jsx)(DM,{value:{_id:n},schemaType:g}):(0,a.jsx)(r5,{}),(0,a.jsxs)(u.so,{align:"center",gap:2,padding:1,paddingRight:2,style:{borderRadius:999,border:"1px solid var(--card-border-color)",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:[(0,a.jsx)(s_,{padding:1,tone:i}),(0,a.jsx)(u.EY,{size:1,title:T,children:T})]})]})}),(0,a.jsxs)(u.az,{paddingX:5,paddingY:3,children:[I&&(0,a.jsx)(u.Zp,{padding:3,marginBottom:3,radius:2,shadow:1,tone:"critical",children:(0,a.jsx)(u.EY,{size:1,children:c("schedule-dialog.publish-date-in-past-warning")})}),(0,a.jsx)(d0,{onChange:E,value:x}),(0,a.jsxs)(u.so,{width:"full",gap:3,justify:"flex-end",paddingTop:3,align:"center",children:[(0,a.jsx)(y.$n,{disabled:v,text:d("common.dialog.cancel-button.text"),"data-testid":"cancel-button",onClick:t,mode:"bleed"}),(0,a.jsx)(y.$n,{disabled:v||I,type:"submit",onClick:A,text:d("release.action.add-to-new-release"),loading:v,tone:"primary","data-testid":"confirm-button"})]})]})]})}let yY=g.I4.span`
768  display: inline-flex;
769  --border-color: var(--card-border-color);
770`,yH=(0,g.I4)(u.$n)`
771  flex: none;
772  transition: none;
773  cursor: pointer;
774  --card-border-color: var(--border-color);
775`,yZ=(0,s.memo)(function(e){let t,n,r,i,l,d,c,m,h,f,g,x,b,v,j,w,_,k,S,T,I,E,$,A=(0,o.c)(79),{disabled:D,selected:z,tooltipContent:M,onClick:P,text:R,tone:O,locked:V,contextValues:L}=e,F=void 0!==V&&V,{documentId:B,releases:N,releasesLoading:Y,documentType:H,menuReleaseId:Z,fromRelease:U,isVersion:q,disabled:J}=L,W=void 0!==J&&J,K=yR(),G=((e,t)=>{let n,r,i,a,l=(0,o.c)(13);e:{let r;if("published"===t){let t;l[0]!==e?(t=ib(e),l[0]=e,l[1]=t):t=l[1],n=t;break e}if("draft"===t){let t;l[2]!==e?(t=im(e),l[2]=e,l[3]=t):t=l[3],n=t;break e}l[4]!==e||l[5]!==t?(r=iy(e,t),l[4]=e,l[5]=t,l[6]=r):r=l[6],n=r}let s=n,d=ct();l[7]!==d||l[8]!==e?(i=d.getCompanionDocs(e),l[7]=d,l[8]=e,l[9]=i):i=l[9],r=i;let c=(0,eH.J)(r);return l[10]!==c?.data||l[11]!==s?(a=c?.data.some(e=>e?.studioDocumentId===s),l[10]=c?.data,l[11]=s,l[12]=a):a=l[12],a}
775)(B,U),[X,Q]=(0,s.useState)(void 0),ee=(0,s.useRef)(null),[et,en]=(0,s.useState)(!1),[er,ei]=(0,s.useState)(!1),ea=(0,s.useRef)(null);A[0]!==z?(t=()=>{z&&ea.current?.scrollIntoView({inline:"center"})},n=[z],A[0]=z,A[1]=t,A[2]=n):(t=A[1],n=A[2]),(0,s.useEffect)(t,n),A[3]!==B||A[4]!==U||A[5]!==q?(r=q?iy(B,U):B,A[3]=B,A[4]=U,A[5]=q,A[6]=r):r=A[6];let eo=r,{createVersion:el}=lR(),es=(0,p.dj)(),{t:ed}=iJ();A[7]===Symbol.for("react.memo_cache_sentinel")?(i=()=>Q(void 0),A[7]=i):i=A[7];let ec=i;A[8]===Symbol.for("react.memo_cache_sentinel")?(l=e=>{e.preventDefault(),Q({x:e.clientX,y:e.clientY})},A[8]=l):l=A[8];let eu=l;A[9]!==X?.x||A[10]!==X?.y?(d=()=>{X?.x&&X?.y&&ec()},A[9]=X?.x,A[10]=X?.y,A[11]=d):d=A[11],A[12]===Symbol.for("react.memo_cache_sentinel")?(c=()=>[ee.current],A[12]=c):c=A[12],(0,u.PR)(d,c),A[13]===Symbol.for("react.memo_cache_sentinel")?(m=e=>{"Escape"===e.key&&ec()},A[13]=m):m=A[13],(0,u.Pm)(m),A[14]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{en(!0)},A[14]=h):h=A[14];let ep=h;A[15]===Symbol.for("react.memo_cache_sentinel")?(f=()=>ei(!0),A[15]=f):f=A[15];let em=f;A[16]!==el||A[17]!==eo||A[18]!==ed||A[19]!==es?(g=async e=>{try{await el(o4(e),eo)}catch(e){es.push({closable:!0,status:"error",title:ed("release.action.create-version.failure"),description:e.message})}ec()},A[16]=el,A[17]=eo,A[18]=ed,A[19]=es,A[20]=g):g=A[20];let eh=g;e:{let e;if(!X){x=null;break e}A[21]!==X?(e={getBoundingClientRect:()=>({x:X.x,y:X.y,left:X.x,top:X.y,right:X.x,bottom:X.y,width:0,height:0})},A[21]=X,A[22]=e):e=A[22],x=e}let ef=x,eg=D||!K?void 0:eu;A[23]===Symbol.for("react.memo_cache_sentinel")?(b=[],A[23]=b):b=A[23];let eC=`document-header-${R.replaceAll(" ","-")}-chip`,ey=D?"ghost":"bleed";A[24]!==O?(v=(0,a.jsx)(sw,{tone:O}),A[24]=O,A[25]=v):v=A[25],A[26]!==G||A[27]!==F?(j=G?(0,a.jsx)(C.v5M,{}):F&&(0,a.jsx)(C.XAi,{}),A[26]=G,A[27]=F,A[28]=j):j=A[28],A[29]!==eg||A[30]!==D||A[31]!==P||A[32]!==z||A[33]!==eC||A[34]!==ey||A[35]!==v||A[36]!==j||A[37]!==R||A[38]!==O?(w=(0,a.jsx)(yY,{children:(0,a.jsx)(yH,{"data-testid":eC,ref:ea,disabled:D,mode:ey,onClick:P,selected:z,tone:O,onContextMenu:eg,paddingY:2,paddingLeft:2,paddingRight:3,space:2,radius:"full",icon:v,iconRight:j,text:R})}),A[29]=eg,A[30]=D,A[31]=P,A[32]=z,A[33]=eC,A[34]=ey,A[35]=v,A[36]=j,A[37]=R,A[38]=O,A[39]=w):w=A[39],A[40]!==w||A[41]!==M?(_=(0,a.jsx)(y.m_,{content:M,fallbackPlacements:b,portal:!0,placement:"bottom",children:w}),A[40]=w,A[41]=M,A[42]=_):_=A[42],A[43]!==W||A[44]!==B||A[45]!==H||A[46]!==U||A[47]!==eh||A[48]!==q||A[49]!==F||A[50]!==N||A[51]!==Y?(k=(0,a.jsx)(yF,{documentId:B,releases:N,releasesLoading:Y,fromRelease:U,isVersion:q,onDiscard:ep,onCreateRelease:em,disabled:W,onCreateVersion:eh,locked:F,type:H}),A[43]=W,A[44]=B,A[45]=H,A[46]=U,A[47]=eh,A[48]=q,A[49]=F,A[50]=N,A[51]=Y,A[52]=k):k=A[52],A[53]===Symbol.for("react.memo_cache_sentinel")?(S=[],A[53]=S):S=A[53];let ex=!!ef;return A[54]!==ef||A[55]!==k||A[56]!==ex?(T=(0,a.jsx)(y.AM,{content:k,fallbackPlacements:S,open:ex,portal:!0,placement:"bottom-start",ref:ee,referenceElement:ef,zOffset:10}),A[54]=ef,A[55]=k,A[56]=ex,A[57]=T):T=A[57],A[58]!==B||A[59]!==H||A[60]!==et||A[61
775]!==q||A[62]!==Z||A[63]!==R?(I=et&&(0,a.jsx)(lV,{onClose:()=>en(!1),documentId:q?iy(B,o4(Z)):B,fromPerspective:R,documentType:H}),A[58]=B,A[59]=H,A[60]=et,A[61]=q,A[62]=Z,A[63]=R,A[64]=I):I=A[64],A[65]!==B||A[66]!==H||A[67]!==eh||A[68]!==er||A[69]!==q||A[70]!==Z||A[71]!==R||A[72]!==O?(E=er&&(0,a.jsx)(yN,{onClose:()=>ei(!1),onCreateVersion:eh,documentId:q?iy(B,o4(Z)):B,documentType:H,tone:O,title:R}),A[65]=B,A[66]=H,A[67]=eh,A[68]=er,A[69]=q,A[70]=Z,A[71]=R,A[72]=O,A[73]=E):E=A[73],A[74]!==_||A[75]!==T||A[76]!==I||A[77]!==E?($=(0,a.jsxs)(a.Fragment,{children:[_,T,I,E]}),A[74]=_,A[75]=T,A[76]=I,A[77]=E,A[78]=$):$=A[78],$}),yU=g.I4.span(e=>{let{$tone:t}=e;return(0,g.AH)`
776    color: var(--card-badge-${t??"default"}-fg-color);
777    background-color: var(--card-badge-${t??"default"}-bg-color);
778    border-radius: 3px;
779    text-decoration: none;
780    padding: 0px 2px;
781    font-weight: 500;
782  `}),yq=e=>{let t,n=(0,o.c)(3),{children:r,$tone:i}=e;return n[0]!==i||n[1]!==r?(t=(0,a.jsx)(yU,{$tone:i,children:r}),n[0]=i,n[1]=r,n[2]=t):t=n[2],t},yJ=e=>{let t=uj(e??ln);return e=>{let n,r=(0,o.c)(2),{children:i}=e;return r[0]!==i?(n=(0,a.jsx)(yq,{$tone:t,children:i}),r[0]=i,r[1]=n):n=r[1],n}},yW={portal:!0},yK=g.I4.div(e=>{let{space:t}=(0,tZ.JW)(e.theme);return(0,g.AH)`
783    margin: ${0-t[1]}px;
784  `});function yG(e){let{presence:t}=e,{t:n}=iJ(lO),{data:r}=lp(),i=(0,s.useMemo)(()=>Array.from(new Set(t.map(e=>e.user.id))).map(e=>t.find(t=>t.user.id===e)).filter(io),[t]),o=(0,s.useMemo)(()=>{if(1===i.length){let e=i[0],t=e?.documentId,a=(t?r.find(e=>o4(e._id)===ix(t)):void 0)?.metadata?.title;return n("presence.tooltip.one",{displayName:e.user.displayName,releaseTitle:a||n("release-placeholder.title")})}if(i.length>1)return n("presence.tooltip.other",{count:i.length})},[r,n,i]);return(0,a.jsx)(y.m_,{content:o,...yW,children:(0,a.jsx)(yK,{children:(0,a.jsx)(u.GE,{maxLength:2,"aria-label":o,size:0,children:i.map(e=>(0,a.jsx)(cz,{size:0,user:e.user},e.user.id))})})})}let yX=(0,g.I4)(u.so)`
785  & > div:first-child {
786    flex: 1;
787    min-width: 0;
788  }
789`,yQ=(0,g.I4)(u.so)`
790  height: ${25}px;
791  min-width: 23px;
792  vertical-align: top;
793`;function y1(){let[e]=(0,s.useState)(()=>new Map),[t,n]=(0,s.useReducer)(()=>Array.from(e.entries()),[]),r=(0,s.useMemo)(()=>tQ(n,10,{trailing:!0}),[]);return{store:(0,s.useMemo)(()=>({add:function(t,n){e.has(t),e.set(t,n),r()},remove:function(t){e.has(t),e.delete(t),r()},update:function(t,n){e.has(t),e.set(t,n),r()}}),[r,e]),snapshot:t}}function y2(e,t,n,r){let i,a,l,d=(0,o.c)(10),c=void 0===r?Object.is:r,u=(0,s.useRef)(null),p=(0,s.useRef)(null);d[0]!==t||d[1]!==e||d[2]!==n?(i=()=>{if(null===t||null===e)return;let r=n();return e.add(t,r),u.current=t,p.current=r,()=>{e.remove(t),u.current=null,p.current=null}},a=[t,e,n],d[0]=t,d[1]=e,d[2]=n,d[3]=i,d[4]=a):(i=d[3],a=d[4]),(0,s.useLayoutEffect)(i,a),d[5]!==t||d[6]!==c||d[7]!==e||d[8]!==n?(l=()=>{if(null===t||null===u.current||null===e||t!==u.current)return;let r=n();c(p.current,r)||(e.update(t,r),p.current=r)},d[5]=t,d[6]=c,d[7]=e,d[8]=n,d[9]=l):l=d[9],(0,s.useLayoutEffect)(l)}let y5=(0,s.memo)(function(e){let t,n,r=(0,o.c)(6),{children:i}=e,{store:l,snapshot:s}=y1();return r[0]!==i||r[1]!==s?(t=(0,a.jsx)(c.rr.Provider,{value:s,children:i}),r[0]=i,r[1]=s,r[2]=t):t=r[2],r[3]!==l||r[4]!==t?(n=(0,a.jsx)(c.ov.Provider,{value:l,children:t}),r[3]=l,r[4]=t,r[5]=n):n=r[5],n}),y0=[];function y7(e){let t,n,r,i,l=(0,o.c)(7),{children:s,items:d}=e;return l[0]!==d?(n=d.map(y3),l[0]=d,l[1]=n):n=l[1],l[2]!==n?(r=(0,a.jsx)(u.BJ,{sizing:"border",children:n}),l[2]=n,l[3]=r):r=l[3],t=r,l[4]!==s||l[5]!==t?(i=(0,a.jsx)(y.m_,{content:t,placement:"top",portal:"documentScrollElement",children:s}),l[4]=s,l[5]=t,l[6]=i):i=l[6],i}function y3(e){return(0,a.jsxs)(u.so,{align:"center",gap:2,children:[(0,a.jsx)("div",{children:(0,a.jsx)(cz,{user:e.user,status:"online"})}),(0,a.jsx)(u.EY,{size:1,children:e.user.displayName})]},e.user.id)}let y8=(0,s.memo)(function(e){let t,n,r,i,l=(0,o.c)(14),{presence:s,position:d,animateArrowFrom:c,maxAvatars:p,stack:m}=e,h=void 0===d?"inside":d,f=void 0===c?"inside":c,g=void 0===p?3:p,C=void 0===m||m;if(l[0]!==s?(t=s||[],l[0]=s,l[1]=t):t=l[1],l[2]!==f||l[3]!==g||l[4]!==h||l[5]!==C||l[6]!==t){let e,r=tG(tX(t,y9),xe),[i,o]=C?((e,t)=>
793{let n=e.length>t?t-1:t,r=Math.max(0,e.length-n);return[e.slice(0,r),e.slice(r)]})(r,g):[[],r];l[8]!==f||l[9]!==h?(e=e=>({key:e.user.id,element:(0,a.jsx)(cz,{animateArrowFrom:f,position:h,status:"online",user:e.user})}),l[8]=f,l[9]=h,l[10]=e):e=l[10],n=[...o.reverse().map(e),i.length>=2?{key:"counter",element:(0,a.jsx)(u.CA,{count:i.length})}:null].filter(Boolean),l[2]=f,l[3]=g,l[4]=h,l[5]=C,l[6]=t,l[7]=n}else n=l[7];let y=n;return l[11]===Symbol.for("react.memo_cache_sentinel")?(r=(0,a.jsx)("div",{}),l[11]=r):r=l[11],l[12]!==y?(i=(0,a.jsxs)(yX,{children:[r,(0,a.jsx)(yQ,{direction:"row-reverse",children:y.map(xt)})]}),l[12]=y,l[13]=i):i=l[13],i});function y4(e){let t,n,r,i,l,d,u=(0,o.c)(11),p=(0,s.useContext)(c.xh),{presence:m,maxAvatars:h}=e,f=void 0===m?p:m,g=void 0===h?3:h,[C,y]=(0,s.useState)(null),x=(0,s.useId)();return u[0]!==C||u[1]!==g||u[2]!==f?(t=()=>({presence:f,element:C,maxAvatars:g}),u[0]=C,u[1]=g,u[2]=f,u[3]=t):t=u[3],((e,t,n)=>{let r=(0,s.useContext)(c.ov);null===r&&console.warn(Error('No context provided for reporter. Make sure that the component calling "usePresenceReporter()", is wrapped inside a <PresenceTracker> element')),y2(r,e,t,n)})(C?x:null,t),u[4]!==f?(r=f||[],u[4]=f,u[5]=r):r=u[5],u[6]!==r?(i=tX(r,y6),u[6]=r,u[7]=i):i=u[7],n=i,u[8]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsx)(yX,{ref:y,style:{minHeight:25,minWidth:25}}),u[8]=l):l=u[8],u[9]!==n?(d=(0,a.jsx)(y7,{items:n,children:l}),u[9]=n,u[10]=d):d=u[10],d}function y6(e){return e.user.id}function y9(e){return e.user.id}function xe(e){return e.lastActiveAt}function xt(e,t){return e&&(0,a.jsx)("div",{style:{position:"absolute",transform:`translate3d(${-(21*t)}px, 0px, 0px)`,transitionProperty:"transform",transitionDuration:"200ms",transitionTimingFunction:"cubic-bezier(0.85, 0, 0.15, 1)",zIndex:100-t},children:e.element},e.key)}let xn=e=>{let t,n,r,i,l,d,c,u=(0,o.c)(12);u[0]!==e?({onIntersection:r,io:n,id:t,...i}=e,u[0]=e,u[1]=t,u[2]=n,u[3]=r,u[4]=i):(t=u[1],n=u[2],r=u[3],i=u[4]);let p=(0,s.useRef)(null);return u[5]!==t||u[6]!==n||u[7]!==r?(l=()=>{let e=p.current;if(!e)return;
793let i=n.observe(e).pipe((0,W.M)(e=>r(t,e))).subscribe();return()=>i.unsubscribe()},d=[n,t,r],u[5]=t,u[6]=n,u[7]=r,u[8]=l,u[9]=d):(l=u[8],d=u[9]),(0,s.useEffect)(l,d),u[10]!==i?(c=(0,a.jsx)("div",{...i,ref:p}),u[10]=i,u[11]=c):c=u[11],c},xr=g.I4.div`
794  position: relative;
795`,xi=g.I4.div`
796  position: absolute;
797  top: 0;
798  left: 0;
799  right: 0;
800  bottom: 0;
801  pointer-events: none;
802  z-index: 13;
803`,xa=(0,g.AH)`
804  overflow: hidden;
805  overflow: clip;
806  pointer-events: none;
807  position: absolute;
808`,xo=(0,g.I4)(xn)(({$debug:e,margins:t})=>(0,g.AH)`
809    ${xa}
810
811    z-index: 100;
812    position: sticky;
813    height: 1px;
814    top: ${t?`${t[0]-1}px`:void 0};
815    background-color: ${e?"red":"none"};
816  `),xl=(0,g.I4)(xn)(({$debug:e})=>(0,g.AH)`
817    ${xa}
818
819    visibility: none;
820
821    ${e&&(0,g.AH)`
822      background: rgba(255, 0, 0, 0.25);
823      outline: 1px solid #00b;
824      visibility: visible;
825    `}
826  `),xs=(0,g.I4)(xn)(({$debug:e})=>(0,g.AH)`
827    ${xa}
828
829    position: sticky;
830    bottom: -1px;
831    height: 1px;
832    background-color: ${e?"blue":"transparent"};
833  `),xd=e=>`${e}px`,xc=e=>0-e,xu=(0,s.forwardRef)(function(e,t){let{regions:n,render:r,children:i,margins:[o,l,d,c]}=e,u=(0,s.useRef)(null),p=(0,s.useMemo)(()=>[o,l,d,c],[o,l,d,c]),m=(0,s.useMemo)(()=>(e=>{let t=new O.B,n=new IntersectionObserver(e=>{e.forEach(e=>{t.next(e)})},e);return{observe:e=>new P.c(r=>{let i=t.pipe((0,q.p)(t=>t.target===e)).subscribe(r);return n.observe(e),()=>{i.unsubscribe(),n.unobserve(e)}})}})({rootMargin:p.map(xc).map(xd).join(" "),threshold:dw}),[p]),[h,f]=(0,s.useState)({}),g=(0,s.useCallback)((e,t)=>{f(n=>({...n,[e]:t}))},[]),[C,y]=(0,s.useState)(0);(0,s.useLayoutEffect)(()=>{if(u.current)return y(u.current.offsetWidth),iA.observe(u.current,e=>{y(e.contentRect.width)})},[]);let x=h["::top"],b=h["::bottom"],v=(0,s.useMemo)(()=>x&&b?n.filter(e=>e.presence?.length>0).map(e=>{let t=h[e.id];if(!t)return null;let{bottom:n,top:r}=t.boundingClientRect,i=t.boundingClientRect.top<x.boundingClientRect.bottom,a=t.boundingClientRect.top<b.boundingClientRect.top,o=t.isIntersecting?r-(t.intersectionRect.top-23):i?-x.boundingClientRect.bottom:b.boundingClientRect.top,l=t.isIntersecting?-(n-(t.intersectionRect.bottom+23)):a?b.boundingClientRect.top:-x.boundingClientRect.bottom;return{distanceTop:o,distanceBottom:l,region:e,position:o<=8?"top":l<=8?"bottom":"inside"}}).filter(Boolean):[],[b,h,n,x]);return(0,a.jsxs)(xr,{ref:t,children:[(0,a.jsx)(xo,{$debug:!1,io:m,id:"::top",onIntersection:g,margins:p}),(0,a.jsx)("div",{children:i}),(0,a.jsx)(xi,{ref:u,children:C&&r(v,C)}),n.map(e=>{let t=0===e.rect.width;return(0,a.jsx)(xl,{$debug:!1,io:m,onIntersection:g,id:e.id,style:{width:t?1:e.rect.width,left:e.rect.left-!!t,top:e.rect.top-23,height:e.rect.height+46}},e.id)}),(0,a.jsx)(xs,{$debug:!1,id:"::bottom",io:m,onIntersection:g})]})}),xp={transitionProperty:"transform",transitionDuration:"200ms",transitionTimingFunction:"cubic-bezier(0.85, 0, 0.15, 1)"},xm=e=>t2(e,e=>e.region.rect.top),xh=(e,t)=>e+t,xf=e=>e.reduce(xh,0),xg=e=>{let t,n,r,i=(0,o.c)(6);i[0]!==e?({height:t,...n}=e,i[0]=e,i[1]=t,i[2]=n):(t=i[1],n=i[2]);let l=Math.max(0,t),s=n?.style;return i[3]!==l||i[4]!==s?(r=(0,a.jsx)("div",{style:{height:l,...s}}),i[3]=l,i[4]=s,i[5]=r):r=i[5],r},xC=[0,0,0,0];function xy(e){let t,n,r,i,l=(0,o.c)(10),{children:d,margins:u}=e,p=void 0===u?xC:u,m=function(){let e=(0,s.useContext)(c.rr);return null===e?(console.warn(Error('No context provided for reporter. Make sure that the component calling "usePresenceReportedValues()", is wrapped inside a <PresenceTracker> element')),y0):e}(),[h,f]=(0,s.useState)(null);l[0]!==h||l[1]!==m?(n=h?m.map(([e,t])=>{var n;return t.element?{...t,id:e,rect:{...((e,t)=>{let n=e,r=-n.scrollTop,i=0;for(;n&&n!==t;)r+=n.offsetTop-n.scrollTop,i+=n.offsetLeft,n=n.offsetParent instanceof HTMLElement?n.offsetParent:null;return{top:r,left:i}})(n=t.element,h),width:n.offsetWidth,height:n.offsetHeight}}:null}).filter(Boolean):xw,l[0]=h,l[1]=m,l[2]=n):n=l[2],t=n,l[3]!==p?(r=(e,t)=>{let n=function(e){let t={top:[],inside:[],bottom:[],...t1(xm(e).map((e,t,n)=>{let r=n[t-1]?.region.rect,i=r?r.top+r.height:0;return{...e,spacerHeight:e.region.rect.top-i}}),e=>e.position)};return{top:xm(t.top).map((e,t,n)=>({...e,indent:n.slice(t+1).reduce((e,t)=>
833e+t.region.rect.width,0)})),inside:xm(t.inside).map(e=>({...e,indent:0})),bottom:xm(t.bottom).map((e,t,n)=>({...e,indent:n.slice(0,t).reduce((e,t)=>e+t.region.rect.width,0)}))}}(e.filter(xj)),r=xf(n.top.map(xv)),i=xf([...n.inside,...n.bottom].map(xb)),o=n.inside.reduce(xx,{nearTop:0,nearBottom:0});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x_,{closeCount:o.nearTop,margins:p,position:"top",regionsWithIntersectionDetails:n.top}),(0,a.jsx)(xg,{height:r}),(0,a.jsx)(xk,{containerWidth:t,regionsWithIntersectionDetails:n.inside}),(0,a.jsx)(xg,{height:i}),(0,a.jsx)(x_,{closeCount:o.nearBottom,margins:p,position:"bottom",regionsWithIntersectionDetails:n.bottom})]})},l[3]=p,l[4]=r):r=l[4];let g=r;return l[5]!==d||l[6]!==p||l[7]!==t||l[8]!==g?(i=(0,a.jsx)(xu,{ref:f,margins:p,regions:t,render:g,children:d}),l[5]=d,l[6]=p,l[7]=t,l[8]=g,l[9]=i):i=l[9],i}function xx(e,t){let{distanceTop:n,distanceBottom:r}=t;return{nearTop:e.nearTop+(n<=20?t.region.presence.length:0),nearBottom:e.nearBottom+(r<=20?t.region.presence.length:0)}}function xb(e){return e.region.rect.height+e.spacerHeight}function xv(e){return e.region.rect.height+e.spacerHeight}function xj(e){return e.region.presence.length>0}let xw=[],x_=(0,s.memo)(function(e){let t,n,r,i,l,s=(0,o.c)(17),{closeCount:d,margins:c,position:u,regionsWithIntersectionDetails:p}=e,m="top"===u?1:-1;e:{let e,n;if(!p.length){t=xw;break e}s[0]!==m?(e=e=>e.region.rect.top*m,s[0]=m,s[1]=e):e=s[1],s[2]!==p||s[3]!==e?(n=e2(tG(p,e).map(xT)),s[2]=p,s[3]=e,s[4]=n):n=s[4],t=n}let h=t,[f,g,C,y]=c,x=(y||0)+(h.length>0?-(21*d):0)-g,b="top"===u?f:C,v=`translate3d(${x}px, 0px, 0px)`,j=5+b,w=5+b;s[5]!==v||s[6]!==j||s[7]!==w?(r={zIndex:2,position:"sticky",display:"flex",flexDirection:"column",alignItems:"flex-end",...xp,transform:v,top:j,bottom:w},s[5]=v,s[6]=j,s[7]=w,s[8]=r):r=s[8],n=r;let _=`sticky-${u}`;return s[9]!==h||s[10]!==u?(i=(0,a.jsx)(y8,{position:u,maxAvatars:3,presence:h}),s[9]=h,s[10]=u,s[11]=i):i=s[11],s[12]!==u||s[13]!==n||s[14]!==_||s[15]!==i?(l=(0,a.jsx)("div",{"data-dock":u,style:n,children:i},_),s[12]=u,s[13]=n,s[14]=_,s[15]=i,s[16]=l):l=s[16],l});function xk(e){let t,n,r=(0,o.c)(7),{regionsWithIntersectionDetails:i,containerWidth:l}=e;if(r[0]!==l||r[1]!==i){let e;r[3]!==l?(e=e=>{let t=e.region.rect.left,{distanceTop:n,distanceBottom:r}=e,i=n<=20,o=r<=20,d=l-t-e.region.rect.width,{presence:c,maxAvatars:u}=e.region;return(0,a.jsx)(s.Fragment,{children:(0,a.jsx)("div",{style:{zIndex:2,position:"absolute",...xp,left:t,transform:`translate3d(${i||o?d:0}px, 0px, 0px)`,height:e.region.rect.height,top:e.region.rect.top},children:(0,a.jsx)(xS,{value:()=>`\u2912${n} | ${r}\u2913`,children:(0,a.jsx)(y8,{stack:!i&&!o,position:i?"top":o?"bottom":"inside",maxAvatars:u,presence:c})})})},e.region.id)},r[3]=l,r[4]=e):e=r[4],t=i.map(e),r[0]=l,r[1]=i,r[2]=t}else t=r[2];return r[5]!==t?(n=(0,a.jsx)(a.Fragment,{children:t}),r[5]=t,r[6]=n):n=r[6],n}let xS=e=>e.children;function xT(e){return e.region.presence||xw}let xI=[0,0,0,0];function xE(e){let t,n=(0,o.c)(3),{children:r,margins:i}=e,l=i||xI;return n[0]!==r||n[1]!==l?(t=(0,a.jsx)(y5,{children:(0,a.jsx)(xy,{margins:l,children:r})}),n[0]=r,n[1]=l,n[2]=t):t=n[2],t}function x$(e){let t,n,r,i=(0,o.c)(6),{scrollElement:l,containerElement:s}=e;return i[0]!==s||i[1]!==l?(n={scrollElement:l,containerElement:s},i[0]=s,i[1]=l,i[2]=n):n=i[2],t=n,i[3]!==e.children||i[4]!==t?(r=(0,a.jsx)(c.hK.Provider,{value:t,children:e.children}),i[3]=e.children,i[4]=t,i[5]=r):r=i[5],r}let xA=[0,0,1,0];function xD(e){return e.stopPropagation()}function xz(e){return e.stopPropagation()}function xM(e){let t,n,r,i=(0,o.c)(21),{children:l,header:d,onClose:c,type:p,width:m}=e,[h,f]=(0,s.useState)(null),g=(0,s.useRef)(null);i[0]!==l?(t=(0,a.jsx)(xE,{margins:xA,children:(0,a.jsx)(u.az,{ref:g,children:l})}),i[0]=l,i[1]=t):t=i[1];let C=t;if("dialog"===p){let t,n,r=e.id||"";return i[2]!==C||i[3]!==d||i[4]!==c||i[5]!==e.autofocus||i[6]!==r||i[7]!==m?(t=(0,a.jsx)(y.lG,{__unstable_autoFocus:e.autofocus,contentRef:f,"data-testid":"edit-portal-dialog",header:d,id:r,onClickOutside:c,onClose:c,onDragEnter:xD,onDrop:xz,width:m,children:C}),i[2]=C,i[3]=d,i[4]=c,i[5]=e.autofocus,i[6]=r,i[7]=m,i[8]=t):t=i[8],i[9]!==h||i[10]!==t?(n=(0,a.jsx)(x$,{scrollElement:h,containerElement:g,children:t}),i[9]=h,i[10]=t,i[11]=n):n=i[11],n}return i[12]!==C||i[13]!==h?(n=(0,a.jsx)(x$,{scrollElement:h,containerElement:g,children:C}),i[12]=C,i[13]=h,i[14]=n):n=i[14],i[15]!==d||i[16]!==c||i[17]!==e.legacy_referenceElement||i[18]!==n||i[19]!==m?(r=(0,a.jsx)(etD,{header:d,onClose:c,referenceElement:e.legacy_referenceElement,width:m,containerRef:f,children:n}),i[15]=d,i[16]=c,i[17]=e.legacy_referenceElement,i[18]=n,i[19]=m,i[20]=r):r=i[20],r}let xP=[],xR=(0,s.memo)(function(e){let t,n,r,i,l,s,d,c,p,m,h,f,g,C,y,x=(0,o.c)(34);x[0]!==e?({__unstable_headerActions:c,__unstable_presence:p,__internal_slot:m,__internal_comments:n,children:t,description:i,inputId:l,level:s,title:h,validation:f,deprecated:r,...d}=e,x[0]=e,x[1]=t,x[2]=n,x[3]=r,x[4]=i,x[5]=l,x[6]=s,x[7]=d,x[8]=c,x[9]=p,x[10]=m,x[11]=h,x[12]=f):(t=x[1],n=x[2],r=x[3],i=x[4],l=x[5],s=x[6],d=x[7],c=x[8],p=x[9],m=x[10],h=x[11],f=x[12]);let b=void 0===c?xP:c,v=void 0===p?xP:p,j=void 0===m?null:m,{focused:w,hovered:_,onMouseEnter:k,onMouseLeave:S}=dR();return x[13]!==b||x[14]!==n||x[15]!==r||x[16]!==i||x[17]!==w||x[18]!==_||x[19]!==l||x[20]!==v||x[21]!==j||x[22]!==h||x[23]!==f?(g=h&&(0,a.jsx)(dH,{__internal_comments:n,__internal_slot:j,actions:b,fieldFocused:!!w,fieldHovered:_,presence:v,inputId:l,content:(0,a.jsx)(dj,{description:i,inputId:l,title:h,validation:f,deprecated:r})}),x[13]=b,x[14]=n,x[15]=r,x[16]=i,x[17]=w,x[18]=_,x[19]=l,x[20]=v,x[21]=j,x[22]=h,x[23]=f,x[24]=g):g=x[24],x[25]!==t?(C=(0,a.jsx)("div",{children:t}),x[25]=t,x[26]=C):C=x[26],x[27]!==s||x[28]!==k||x[29]!==S||x[30]!==d||x[31]!==g||x[32]!==C?(y=(0,a.jsxs)(u.BJ,{...d,"data-level":s,onMouseEnter:k,onMouseLeave:S,space:2,children:[g,C]}),x[27]=s,x[28]=k,x[29]=S,x[30]=d,x[31]=g,x[32]=C,x[33]=y):y=x[33],y}),xO=g.I4.legend`
834  /* See: https://thatemil.com/blog/2015/01/03/reset-your-fieldset/ */
835  padding: 0;
836  display: table;
837`,xV=(0,g.I4)(u.so).attrs({forwardedAs:"button"})(e=>{let{theme:t}=e,{focusRing:n,radius:r}=t.sanity,{base:i}=t.sanity.color;return(0,g.AH)`
838    appearance: none;
839    border: 0;
840    background: none;
841    color: inherit;
842    -webkit-font-smoothing: inherit;
843    font: inherit;
844    outline: none;
845    border-radius: ${(0,u.D0)(r[2])};
846    position: relative;
847
848    &:not([hidden]) {
849      display: flex;
850    }
851
852    &:focus {
853      box-shadow: ${rR({base:i,focusRing:n})};
854    }
855
856    &:focus:not(:focus-visible) {
857      box-shadow: none;
858    }
859
860    /* Added to increase the hit area of the collapsible fieldset */
861    &::after {
862      content: '';
863      position: absolute;
864      top: -10px;
865      right: -10px;
866      bottom: -10px;
867      left: -10px;
868    }
869  `}),xL=(0,g.I4)(u.az)`
870  width: 9px;
871  height: 9px;
872  margin-right: 3px;
873
874  & svg {
875    transition: transform 100ms;
876  }
877`,xF=(0,s.memo)(function(e){let t,n,r,i=(0,o.c)(10),{collapsed:l,collapsible:s,onClick:d,title:c}=e;i[0]!==c?(t=(0,a.jsx)(u.EY,{weight:"medium",size:1,children:c}),i[0]=c,i[1]=t):t=i[1];let p=t;if(!s){let e;return i[2]!==p?(e=(0,a.jsx)(xO,{children:p}),i[2]=p,i[3]=e):e=i[3],e}let m=`rotate(${l?"0":"90deg"}) translate3d(0, 0, 0)`;return i[4]!==m?(n=(0,a.jsx)(xL,{children:(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(C.nVd,{style:{transform:m}})})}),i[4]=m,i[5]=n):n=i[5],i[6]!==d||i[7]!==n||i[8]!==p?(r=(0,a.jsx)(xO,{children:(0,a.jsxs)(xV,{type:"button",onClick:d,children:[n,p]})}),i[6]=d,i[7]=n,i[8]=p,i[9]=r):r=i[9],r}),xB=(0,g.I4)(u.BJ).attrs({forwardedAs:"fieldset"})`
878  border: none;
879
880  /* See: https://thatemil.com/blog/2015/01/03/reset-your-fieldset/ */
881  body:not(:-moz-handler-blocked) & {
882    display: table-cell;
883  }
884`,xN=(0,g.I4)(u.az)(e=>{let{$borderLeft:t,$focused:n,theme:r}=e,{focusRing:i}=r.sanity,{base:a}=r.sanity.color;return(0,g.AH)`
885    outline: none;
886    border-left: ${t?"1px solid var(--card-border-color)":void 0};
887    transition:
888      border-color 0.2s ease-in-out,
889      box-shadow 0.2s ease-in-out;
890
891    ${t&&n&&`border-left: 1px solid var(--card-focus-ring-color);
892    box-shadow: inset 1px 0 0 var(--card-focus-ring-color);`}
893
894    ${t&&!n&&`
895      box-shadow: inset 0 0 0 transparent;
896    `}
897
898    &:focus {
899      box-shadow: ${rR({base:a,focusRing:{...i,offset:2}})};
900    }
901
902    &:focus:not(:focus-visible) {
903      box-shadow: none;
904    }
905  `}),xY=[],xH=(0,s.forwardRef)(function(e,t){let n,r,i,l,d,c,p,m,h,f,g,C,y,x,b,v,j,w,_,k,S,T,I,E,$,A,D,z,M,P,R,O,V,L=(0,o.c)(82);L[0]!==e?({__internal_comments:d,__internal_slot:y,__unstable_headerActions:x,__unstable_presence:b,children:n,collapsed:r,collapsible:i,columns:l,description:p,level:v,onCollapse:h,onExpand:f,onFocus:g,tabIndex:w,title:_,validation:j,inputId:m,deprecated:c,...C}=e,L[0]=e,L[1]=n,L[2]=r,L[3]=i,L[4]=l,L[5]=d,L[6]=c,L[7]=p,L[8]=m,L[9]=h,L[10]=f,L[11]=g,L[12]=C,L[13]=y,L[14]=x,L[15]=b,L[16]=v,L[17]=j,L[18]=w,L[19]=_):(n=L[1],r=L[2],i=L[3],l=L[4],d=L[5],c=L[6],p=L[7],m=L[8],h=L[9],f=L[10],g=L[11],C=L[12],y=L[13],x=L[14],b=L[15],v=L[16],j=L[17],w=L[18],_=L[19]);let F=void 0===y?null:y,B=void 0===x?xY:x,N=void 0===b?xY:b,Y=void 0===v?0:v,H=void 0===j?xY:j,{focused:Z,hovered:U,onMouseEnter:q,onMouseLeave:J}=dR(),W=H.length>0,K=(0,s.useRef)(null),{t:G}=iJ();L[20]===Symbol.for("react.memo_cache_sentinel")?(k=()=>K.current,L[20]=k):k=L[20],(0,s.useImperativeHandle)(t,k),L[21]!==g?(S=e=>{K.current===e.target&&g&&g(e)},L[21]=g,L[22]=S):S=L[22];let X=S;L[23]!==r||L[24]!==h||L[25]!==f?(T=()=>r?f?.():h?.(),L[23]=r,L[24]=h,L[25]=f,L[26]=T):T=L[26];let Q=T;e:{var ee;let e,t;if(r){I=null;break e}L[27]!==n?(e="function"==typeof(ee=n)?ee():ee,L[27]=n,L[28]=e):e=L[28],L[29]!==l||L[30]!==e?(t=(0,a.jsx)(rP,{columns:l,gapX:4,gapY:5,children:e}),L[29]=l,L[30]=e,L[31]=t):t=L[31],I=t}let et=I,en=!!Z;L[32]!==r||L[33]!==i||L[34]!==Q||L[35]!==_?(E=_&&(0,a.jsx)(xF,{collapsed:!!r,collapsible:i,onClick:i?Q:void 0,title:_}),L[32]=r,L[33]=i,L[34]=Q,L[35]=_,L[36]=E):E=L[36],L[37]!==c||L[38]!==G||L[39]!==_?($=c&&(0,a.jsx)(u.az,{marginLeft:2,children:(0,a.jsx)(u.Ex,{"data-testid":`deprecated-badge-${_}`,tone:"caution",children:G("form.field.deprecated-label")})}),L[37]=c,L[38]=G,L[39]=_,L[40]=$):$=L[40],L[41]!==W||L[42]!==H?(A=W&&(0,a.jsx)(u.az,{marginLeft:2,children:(0,a.jsx)(dp,{fontSize:1,placement:"top",validation:H})}),L[41]=W,L[42]=H,L[43]=A):A=L[43],L[44]!==E||L[45]!==$||L[46]!==A?(D=(0,a.jsxs)(u.so,{align:"center",children:[E,$,A]}),L[44]=E,L[45]=$,L[46]=A,L[47]=D):D=L[47],L[48]!==c||L[49]!==_?(z=c&&(0,a.jsx)(ut,{"data-testid":`deprecated-message-${_}`,tone:"caution",size:1,children:c.reason}),L[48]=c,L[49]=_,L[50]=z):z=L[50],L[51]!==p||L[52]!==m?(M=p&&(0,a.jsx)(u.EY,{muted:!0,size:1,id:da(m,p),children:p}),L[51]=p,L[52]=m,L[53]=M):M=L[53],L[54]!==D||L[55]!==z||L[56]!==M?(P=(0,a.jsxs)(u.BJ,{space:3,children:[D,z,M]}),L[54]=D,L[55]=z,L[56]=M,L[57]=P):P=L[57],L[58]!==B||L[59]!==d||L[60]!==U||L[61]!==m||L[62]!==N||L[63]!==F||L[64]!==P||L[65]!==en?(R=(0,a.jsx)(dH,{__internal_comments:d,__internal_slot:F,actions:B,fieldFocused:en,fieldHovered:U,presence:N,inputId:m,content:P}),L[58]=B,L[59]=d,L[60]=U,L[61]=m,L[62]=N,L[63]=F,L[64]=P,L[65]=en,L[66]=R):R=L[66];let er=Y>0,ei=!!Z,ea=3*(0!==Y),eo="number"==typeof w&&w>-1?X:void 0,el=!r&&et;return L[67]!==r||L[68]!==er||L[69]!==ei||L[70]!==ea||L[71]!==eo||L[72]!==el||L[73]!==w?(O=(0,a.jsx)(xN,{$borderLeft:er,$focused:ei,hidden:r,paddingLeft:ea,onFocus:eo,ref:K,tabIndex:w,children:el}),L[67]=r,L[68]=er,L[69]=ei,L[70]=ea,L[71]=eo,L[72]=el,L[73]=w,L[74]=O):O=L[74],L[75]!==Y||L[76]!==q||L[77]!==J||L[78]!==C||L[79]!==R||L[80]!==O?(V=(0,a.jsxs)(xB,{"data-level":Y,...C,onMouseEnter:q,onMouseLeave:J,space:2,children:[R,O]}),L[75]=Y,L[76]=q,L[77]=J,L[78]=C,L[79]=R,L[80]=O,L[81]=V):V=L[81],V});function xZ(e,t,n){let r,i,a=(0,o.c)(5),l=void 0===n?nm:n,d=(0,s.useRef)(void 0);a[0]!==l||a[1]!==e||a[2]!==t?(r=()=>
905{l(d.current,e)||(t(d.current,e),d.current=e)},i=[l,e,t],a[0]=l,a[1]=e,a[2]=t,a[3]=r,a[4]=i):(r=a[3],i=a[4]),(0,s.useEffect)(r,i)}let xU=(0,s.memo)(function(e){let t,n,r,i,l,d,u,p,m,h,f,g,C,y=(0,o.c)(14),x=(0,s.useRef)(e);y[0]!==e?(t=()=>{x.current=e},n=[e],y[0]=e,y[1]=t,y[2]=n):(t=y[1],n=y[2]),(0,s.useEffect)(t,n),y[3]===Symbol.for("react.memo_cache_sentinel")?(r=e=>x.current?.transformPatches?.(e)??[],y[3]=r):r=y[3];let b=r;y[4]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{x.current.onChange(e)},y[4]=i):i=y[4];let v=i;y[5]===Symbol.for("react.memo_cache_sentinel")?(l=(e,t)=>{x.current.onPathFocus(e,t)},y[5]=l):l=y[5];let j=l;y[6]===Symbol.for("react.memo_cache_sentinel")?(d=e=>{x.current.onPathBlur(e)},y[6]=d):d=y[6];let w=d;y[7]===Symbol.for("react.memo_cache_sentinel")?(u=e=>{x.current.onPathOpen(e)},y[7]=u):u=y[7];let _=u;y[8]===Symbol.for("react.memo_cache_sentinel")?(p=(e,t)=>{x.current.onSetPathCollapsed(e,t)},y[8]=p):p=y[8];let k=p;y[9]===Symbol.for("react.memo_cache_sentinel")?(m=(e,t)=>{x.current.onSetFieldSetCollapsed(e,t)},y[9]=m):m=y[9];let S=m;y[10]===Symbol.for("react.memo_cache_sentinel")?(h=(e,t)=>{x.current.onFieldGroupSelect(e,t)},y[10]=h):h=y[10];let T=h;return y[11]===Symbol.for("react.memo_cache_sentinel")?(g={transformPatches:b,onChange:v,onPathFocus:j,onPathBlur:w,onPathOpen:_,onSetPathCollapsed:k,onSetFieldSetCollapsed:S,onFieldGroupSelect:T},y[11]=g):g=y[11],f=g,y[12]!==e.children?(C=(0,a.jsx)(c.q4.Provider,{value:f,children:e.children}),y[12]=e.children,y[13]=C):C=y[13],C});function xq(){let e=(0,s.useContext)(c.q4);if(!e)throw Error("Form context not provided");return e}function xJ(e){return(0,_.$d)(e)?"object"===e.name?{}:{_type:e.name}:(0,_.zR)(e)?[]:"string"===e.jsonType?"":"number"===e.jsonType?0:"boolean"!==e.jsonType&&void 0}let xW=(()=>{let e;return()=>{if(e)return e;e=[];for(let t=0;t<256;++t)e[t]=(t+256).toString(16).slice(1);return e}})();function xK(e){let t=xW();return(function(e=16){let t=new Uint8Array(e);return(0,rv.A)(t),t})(e).reduce((e,n)=>e+t[n],"").slice(0,e)}function xG(e){return void 0!==e._key?e:{...e,_key:xK(12)}}function xX(e,t,n){return(0,Q.H)(e).pipe((0,ew.Z)(e=>{let r={_key:e._key};return(0,k.of)(((e,t)=>{let n=(0,nr.yu)(t);return e.of.find(e=>e.name===n)})(t,e)).pipe((0,ew.Z)(e=>e?(0,k.of)(e):I.w),(0,ew.Z)(t=>ow(e)&&n?(0,S.x)((0,k.of)({type:"patch",patches:[s7(!0,[r,"_resolvingInitialValue"])]}),(0,T.v)(()=>n(t,e)).pipe((0,q.p)(io),(0,E.T)(e=>{var t;return{type:"patch",patches:(t=[r],Object.entries(e).map(([e,n])=>s7(n,[...t,e])))}}),(0,M.W)(n=>(0,k.of)({type:"error",error:n,item:e,schemaType:t}))),(0,k.of)({type:"patch",patches:[s3([r,"_resolvingInitialValue"])]})):I.w))}))}function xQ(e){let t=(0,s.useRef)(void 0),{member:n,renderAnnotation:r,renderBlock:i,renderField:o,renderInlineBlock:l,renderInput:d,renderItem:c,renderPreview:u}=e,{t:m}=iJ(),{onPathBlur:h,onPathFocus:f,onChange:g,onPathOpen:C,onSetPathCollapsed:y,onSetFieldSetCollapsed:x,onFieldGroupSelect:b}=xq(),v=Cc(),j=OC(),{onCopy:w}=Q2();xZ(n.item.focused,(e,n)=>{!e&&n&&t.current?.focus()});let _=(0,s.useCallback)(()=>{g(s4.from([s3([{_key:n.key}])]))},[n.key,g]),k=(0,s.useCallback)(e=>{C(e),y(e,!1)},[C,y]),S=(0,p.dj)(),T=(0,s.useCallback)(e=>{if(0===e.items.length)throw Error("Insert event should include at least one item");let t=e.items.map(e=>xG(e));g(s4.from([s0(t,e.position,[{_key:n.key}])]));let r=t[0]._key,i=[...n.item.path.slice(0,-1),{_key:r}];f(i);let a=!1!==e.open;e.skipInitialValue?a&&k(i):xX(t,n.parentSchemaType,v).pipe((0,W.M)(e=>{"patch"===e.type?g(s4.from(e.patches)):S.push({title:m("inputs.array.error.cannot-resolve-initial-value-title"),description:m("inputs.array.error.cannot-resolve-initial-value-description",{schemaTypeTitle:e.schemaType.title,errorMessage:e.error.message}),status:"error"})})).subscribe({complete:()=>{a&&k(i)}})},[k,n.item.path,n.key,n.parentSchemaType,g,f,v,S,m]),I=(0,s.useCallback)(e=>{let t=j([]);w(n.item.path,t,{context:{source:"arrayItem"},patchType:"append"})},[j,w,n.item.path]),E=(0,s.useCallback)(()=>{h(n.item.path)},[n.item.path,h]),$=(0,s.useCallback)(()=>{f(n.item.path)},[n.item.path,f]),A=(0,s.useCallback)(e=>{f(n.item.path.concat(e))},[n.item.path,f]),D=(0,s.useCallback)(e=>{g(s4.from(e).prepend(s5(xJ(n.item.schemaType))).prefixAll({_key:n.key}))},[g,n.item.schemaType,n.key]),z=(0,s.useCallback)(()=>{y(n.item.path,!0)},[y,n.item.path]),M=(0,s.useCallback)(()=>{y(n.item.path,!1)},[y,n.item.path]),P=(0,s.useCallback)(e=>{y(n.item.path.concat(e),!0)},[y,n.item.path]),R=(0,s.useCallback)(e=>{y(n.item.path.concat(e),!1)},[y,n.item.path]),O=(0,s.useCallback)(()=>{C(n.item.path)},[C,n.item.path]),V=(0,s.useCallback)(e=>{C(n.item.path.concat(e))},[C,n.item.path]),L=(0,s.useCallback)(e=>{x(n.item.path.concat(e),!1)},[x,n.item.path]),F=(0,s.useCallback)(e=>{x(n.item.path.concat(e),!0)},[x,n.item.path]),B=(0,s.useCallback)(()=>{C(n.item.path)},[C,n.item.path]),N=!n.item.value||ow(n.item.value),Y=(0,s.useCallback)(()=>{N&&_();let e=n.item.path.slice(0,-1);C(e),f(e)},[N,C,n.item.path,f,_]),H=(0,s.useCallback)(e=>{b(n.item.path,e)},[b,n.item.path]),Z=(0,s.useMemo)(()=>({onBlur:E,onFocus:$,id:n.item.id,ref:t,"aria-describedby":da(n.item.id,n.item.schemaType.description)}),[E,$,n.item.id,n.item.schemaType.description]),U=(0,s.useMemo)(()=>({changed:n.item.changed,focusPath:n.item.focusPath,focused:n.item.focused,groups:n.item.groups,id:n.item.id,level:n.item.level,members:n.item.members,onChange:D,onFieldClose:O,onFieldCollapse:P,onFieldSetCollapse:F,onFieldExpand:R,onFieldSetExpand:L,onFieldGroupSelect:H,onPathF
905ocus:A,onFieldOpen:V,path:n.item.path,presence:n.item.presence,readOnly:n.item.readOnly,renderAnnotation:r,renderBlock:i,renderField:o,renderInlineBlock:l,renderInput:d,renderItem:c,renderPreview:u,schemaType:n.item.schemaType,validation:n.item.validation,value:n.item.value,elementProps:Z}),[Z,D,O,P,F,R,L,A,V,H,n.item.changed,n.item.focusPath,n.item.focused,n.item.groups,n.item.id,n.item.level,n.item.members,n.item.path,n.item.presence,n.item.readOnly,n.item.schemaType,n.item.validation,n.item.value,r,i,o,l,d,c,u]),q=(0,s.useMemo)(()=>d(U),[U,d]),J=(0,s.useMemo)(()=>({key:n.key,index:n.index,level:n.item.level,value:n.item.value,title:n.item.schemaType.title,description:n.item.schemaType.description,collapsible:n.collapsible,collapsed:n.collapsed,schemaType:n.item.schemaType,parentSchemaType:n.parentSchemaType,onInsert:T,onCopy:I,onRemove:_,presence:n.item.presence,validation:n.item.validation,open:n.open,onOpen:B,onClose:Y,onExpand:M,onCollapse:z,readOnly:n.item.readOnly,focused:n.item.focused,onFocus:$,onBlur:E,inputId:n.item.id,path:n.item.path,children:q,changed:n.item.changed,inputProps:U}),[n.key,n.index,n.item.level,n.item.value,n.item.schemaType,n.item.presence,n.item.validation,n.item.readOnly,n.item.focused,n.item.id,n.item.path,n.item.changed,n.collapsible,n.collapsed,n.parentSchemaType,n.open,T,I,_,B,Y,M,z,$,E,q,U]);return(0,a.jsx)(xU,{onFieldGroupSelect:b,onChange:D,onPathOpen:C,onSetFieldSetCollapsed:x,onSetPathCollapsed:y,onPathBlur:h,onPathFocus:f,children:(0,s.useMemo)(()=>c(J),[J,c])})}let x1=(0,g.I4)(u.Zp)`
906  max-width: ${({theme:e})=>e.sanity.container[1]}px;
907`;function x2(e){let t,n,r,i,l,d,c,p,m,h,f,g,x,b,v,j,w,_,k,S,T,I,E,$,A,D,z,M,P=(0,o.c)(60);if(P[0]!==e){let{value:i,onFocus:a,vertical:o,...l}=e;r=i,t=a,n=l,P[0]=e,P[1]=t,P[2]=n,P[3]=r}else t=P[1],n=P[2],r=P[3];let[R,O]=(0,s.useState)(!1),V=(0,s.useRef)(null),{t:L}=iJ();P[4]===Symbol.for("react.memo_cache_sentinel")?(i=()=>O(!1),l=()=>[V.current],P[4]=i,P[5]=l):(i=P[4],l=P[5]),(0,u.PR)(i,l),P[6]===Symbol.for("react.memo_cache_sentinel")?(d=e=>{("Escape"===e.key||"Tab"===e.key)&&O(!1)},P[6]=d):d=P[6];let F=d;P[7]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{O(x5)},P[7]=c):c=P[7];let B=c;P[8]!==r?(p=(0,nr.yu)(r),P[8]=r,P[9]=p):p=P[9];let N=p;return P[10]!==N?(m={typeName:N},P[10]=N,P[11]=m):m=P[11],P[12]!==L||P[13]!==m?(h=(0,a.jsx)(u.EY,{weight:"medium",children:(0,a.jsx)(an,{t:L,i18nKey:"inputs.array.error.type-is-incompatible-prompt",values:m})}),P[12]=L,P[13]=m,P[14]=h):h=P[14],P[15]!==L?(f=L("inputs.array.error.type-is-incompatible-title"),P[15]=L,P[16]=f):f=P[16],P[17]!==f?(g=(0,a.jsx)(u.EY,{size:1,weight:"medium",children:f}),P[17]=f,P[18]=g):g=P[18],P[19]!==N?(x={typeName:N},P[19]=N,P[20]=x):x=P[20],P[21]!==L||P[22]!==x?(b=(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(an,{t:L,i18nKey:"inputs.array.error.current-schema-not-declare-description",values:x})}),P[21]=L,P[22]=x,P[23]=b):b=P[23],P[24]===Symbol.for("react.memo_cache_sentinel")?(v=(0,a.jsx)(C.Pnw,{}),P[24]=v):v=P[24],P[25]!==L?(j=L("inputs.array.error.can-delete-but-no-edit-description"),P[25]=L,P[26]=j):j=P[26],P[27]!==j?(w=(0,a.jsx)(u.az,{children:(0,a.jsxs)(u.EY,{size:1,children:[v," ",j]})}),P[27]=j,P[28]=w):w=P[28],P[29]!==L?(_=L("inputs.array.error.json-representation-description"),P[29]=L,P[30]=_):_=P[30],P[31]!==_?(k=(0,a.jsx)(u.EY,{size:1,weight:"medium",children:_}),P[31]=_,P[32]=k):k=P[32],P[33]!==r?(S=JSON.stringify(r,null,2),P[33]=r,P[34]=S):S=P[34],P[35]!==S?(T=(0,a.jsx)(u.Zp,{padding:2,overflow:"auto",border:!0,children:(0,a.jsx)(u.Cy,{size:1,as:"pre",language:"json",children:S})}),P[35]=S,P[36]=T):T=P[36],P[37]!==k||P[38]!==T?(I=(0,a.jsxs)(u.BJ,{space:2,children:[k,T]}),P[37]=k,P[38]=T,P[39]=I):I=P[39],P[40]!==b||P[41]!==w||P[42]!==I||P[43]!==h||P[44]!==g?(E=(0,a.jsx)(x1,{margin:1,padding:3,onKeyDown:F,tabIndex:0,overflow:"auto",children:(0,a.jsxs)(u.BJ,{space:4,children:[h,g,b,w,I]})}),P[40]=b,P[41]=w,P[42]=I,P[43]=h,P[44]=g,P[45]=E):E=P[45],P[46]===Symbol.for("react.memo_cache_sentinel")?($=(0,a.jsx)(u.az,{marginRight:3,children:(0,a.jsx)(u.EY,{children:(0,a.jsx)(C.KSC,{})})}),P[46]=$):$=P[46],P[47]!==N?(A={typeName:N},P[47]=N,P[48]=A):A=P[48],P[49]!==L||P[50]!==A?(D=(0,a.jsxs)(u.so,{align:"center",children:[$,(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(u.EY,{size:1,textOverflow:"ellipsis",children:(0,a.jsx)(an,{t:L,i18nKey:"inputs.array.error.type-is-incompatible-prompt",values:A})})})]}),P[49]=L,P[50]=A,P[51]=D):D=P[51],P[52]!==t||P[53]!==n||P[54]!==D?(z=(0,a.jsx)(u.Zp,{as:"button",type:"button",radius:2,tone:"inherit",paddingX:2,paddingY:3,flex:1,onFocus:t,onClick:B,onKeyDown:F,__unstable_focusRing:!0,...n,children:D}),P[52]=t,P[53]=n,P[54]=D,P[55]=z):z=P[55],P[56]!==R||P[57]!==E||P[58]!==z?(M=(0,a.jsx)(y.AM,{open:R,ref:V,onKeyDown:F,portal:!0,constrainSize:!0,tone:"default",content:E,children:z}),P[56]=R,P[57]=E,P[58]=z,P[59]=M):M=P[59],M}function x5(e){return!e}function x0(e){let t,n,r=(0,o.c)(7),{member:i}=e,{t:l}=iJ();if("INVALID_ITEM_TYPE"===i.error.type){let e;return r[0]!==i.error.value?(e=(0,a.jsx)(x2,{value:i.error.value}),r[0]=i.error.value,r[1]=e):e=r[1],e}
907return r[2]!==i.error.type||r[3]!==l?(t=l("inputs.array.error.unexpected-error",{error:i.error.type}),r[2]=i.error.type,r[3]=l,r[4]=t):t=r[4],r[5]!==t?(n=(0,a.jsx)("div",{children:t}),r[5]=t,r[6]=n):n=r[6],n}function x7(e){switch(e.jsonType){case"string":return"";case"number":return -0;case"boolean":return!1;default:throw Error(`Unable to create value from type "${e.jsonType}"`)}}function x3(e,t,n){return(0,_.F3)(e)&&"string"==typeof n&&Number(n)===t?n:String(t??"")}function x8(e){let t=(0,s.useRef)(void 0),{member:n,renderItem:r,renderInput:i}=e,[o,l]=(0,s.useState)(),{onPathBlur:d,onPathFocus:c,onChange:u}=xq(),p=OC(),{onCopy:m}=Q2();xZ(n.item.focused,(e,n)=>{!e&&n&&t.current?.focus()});let h=(0,s.useCallback)(e=>{d(n.item.path)},[n.item.path,d]),f=(0,s.useCallback)(e=>{c(n.item.path)},[n.item.path,c]),g=(0,s.useCallback)(e=>{u(s4.from(e).prefixAll(n.index))},[u,n.index]),C=(0,s.useCallback)(e=>{let t=e.currentTarget.value;if((0,_.F3)(n.item.schemaType)){if((t=e.currentTarget.valueAsNumber)>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER)return}else(0,_.oV)(n.item.schemaType)&&(t=e.currentTarget.checked);let r=""===t||"number"==typeof t&&isNaN(t);(0,_.F3)(n.item.schemaType)&&l(r?void 0:e.currentTarget.value),g(s7(r?x7(n.item.schemaType):t))},[g,n.item.schemaType]),y=(0,s.useMemo)(()=>{var e,r,i;return{onBlur:h,onFocus:f,id:n.item.id,ref:t,onChange:C,value:(e=n.item.schemaType,r=n.item.value,i=o,Object.is(r,-0)?"":x3(e,r,i)),readOnly:!!n.item.readOnly,placeholder:n.item.schemaType.placeholder,"aria-describedby":da(n.item.id,n.item.schemaType.description)}},[h,f,C,n.item.id,n.item.readOnly,n.item.schemaType,n.item.value,o]),x=(0,s.useMemo)(()=>({changed:n.item.changed,level:n.item.level,value:n.item.value,readOnly:n.item.readOnly,schemaType:n.item.schemaType,id:n.item.id,path:n.item.path,focused:n.item.focused,onChange:g,validation:n.item.validation,presence:n.item.presence,elementProps:y}),[n.item.changed,n.item.level,n.item.value,n.item.readOnly,n.item.schemaType,n.item.id,n.item.path,n.item.focused,n.item.validation,n.item.presence,g,y]),b=(0,s.useMemo)(()=>i(x),[x,i]),v=(0,s.useCallback)(()=>{u(s4.from([s3([n.index])]))},[n.index,u]),j=(0,s.useCallback)(e=>{u(s4.from([s0(e.items,e.position,[n.index])]))},[n.index,u]),w=(0,s.useCallback)(e=>{let t=p([]);m(n.item.path,t,{context:{source:"arrayItem"},patchType:"append"})},[p,n.item.path,m]),k=(0,s.useMemo)(()=>({key:n.key,index:n.index,level:n.item.level,value:n.item.value,title:n.item.schemaType.title,description:n.item.schemaType.description,schemaType:n.item.schemaType,parentSchemaType:n.parentSchemaType,onInsert:j,onCopy:w,onRemove:v,presence:n.item.presence,validation:n.item.validation,readOnly:n.item.readOnly,focused:n.item.focused,onFocus:f,onBlur:h,inputId:n.item.id,path:n.item.path,children:b}),[n.key,n.index,n.item.level,n.item.value,n.item.schemaType,n.item.presence,n.item.validation,n.item.readOnly,n.item.focused,n.item.id,n.item.path,n.parentSchemaType,j,w,v,f,h,b]);return(0,a.jsx)(a.Fragment,{children:(0,s.useMemo)(()=>r(k),[k,r])})}function x4(e){if(!(0,_.$d)(e))throw Error(`Invalid item type: "${e.type}". Default array input can only contain objects (for now)`);return{...xJ(e),_key:(0,nr.Xp)(12)}}let x6="before",x9="after";function be(...e){return e.reduce((e,t)=>e.concat(t),[])}let bt=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),bn={replace:(e,t)=>t,set:(e,t)=>t,setIfMissing:(e,t)=>void 0===e?t:e,unset(e,t){},inc:(e,t)=>e+t,dec:(e,t)=>e-t},br=Object.keys(bn),bi={replace:(e,t)=>t,set:(e,t)=>t,setIfMissing:(e,t)=>void 0===e?t:e,unset(e,t){},diffMatchPatch(e,t){let[n]=(0,n_.$i)((0,n_.iz)(t),e,{allowExceedingIndices:!0});return n}},ba=Object.keys(bi);function bo(e,t){return t.reduce(function e(t,n){return Array.isArray(t)?function(t,n){let r=t.slice();if(0===n.path.length){if("setIfMissing"===n.type){if(!Array.isArray(n.value))throw Error("Cannot set value of an array to a non-array");return void 0===t?n.value:t}if("set"===n.type){if(!Array.isArray(n.value))throw Error("Cannot set value of an array to a non-array");return n.value}if("unset"===n.type)return;if("move"===n.type){if(!n.value||!bt(n.value,"from")||!bt(n.value,"to"))throw Error(`Invalid value of 'move' patch. Expected a value with "from" and "to" indexes, instead got: ${JSON.stringify(n.value)}`);return function(e,t,n){let r=e.slice(),i=r[t];return r.splice(t,1),r.splice(n,0,i),r}(r,n.value.from,n.value.to)}throw Error(`Invalid array operation: ${n.type}`)}let[i,...a]=n.path,o=function(e,t){if("number"==typeof t)return t;let n=ry(e,t);return -1!==n&&n}(t,i);if(!1===o)return r;if(0===a.length){if("insert"===n.type){let{position:e,items:r}=n;return function(e,t,n,...r){if(t!==x6&&t!==x9)throw Error(`Invalid position "${t}", must be either ${x6} or ${x9}`);let i=be(...r);if(0===e.length)return i;let a=e.length,o=Math.abs((a+n)%a)%a,l=e.slice();return l.splice("after"===t?o+1:o,0,...be(i)),l}(t,e,o,r)}else if("unset"===n.type){if("number"!=typeof o)throw Error(`Expected array index to be a number, instead got "${o}"`);return r.splice(o,1),r}}return r[o]=e(r[o],{...n,path:a}),r}(t,n):tJ(t)?function(e,t){if(!ba.includes(t.type))throw Error(`Received patch of unsupported type: "${JSON.stringify(t.type)}" for string. This is most likely a bug.`);if(t.path.length>0)throw Error(`Cannot apply deep operations on string values. Received patch with type "${t.type}" and path "${t.path.join(".")} that targeted the value "${JSON.stringify(e)}"`);return bi[t.type](e,t.value)}(t,n):rl(t)?function(t,n){let r=rj(t);if(0===n.path.length){if("set"===n.type){if(!rl(n.value))throw Error("Cannot set value of an object to a non-object");return n.value}if("unset"===n.type)return;if("setIfMissing"===n.type)return void 0===t?n.value:t;throw Error(`Invalid object operation: ${n.type}`)}let[i,...a]=n.path;if("string"!=typeof i)throw Error(`Expected field name to be a string, instad got: ${i}`);return 0===a.length&&"unset"===n.type?nL(r,i):(r[i]=e(r[i],{...n,path:a}),r)}(t,n):function(e,t){if(!br.includes(t.type))throw Error(`Received patch of unsupported type "${t.type}" for primitives. This is most likely a bug.`);if(t.path.length>0)throw Error(`Cannot apply deep operations on primitive values. Received patch with type "${t.type}" and path "${t.path.map(e=>JSON.stringify(e)).join(".")} that targeted the value "${JSON.stringify(e)}"`);return bn[t.type](e,t.value)}(t,n)},e)}function bl(e){let t,n,r,i=(0,o.c)(5),l=e.actions||i_;return i[0]!==l?(n={actions:l},i[0]=l,i[1]=n):n=i[1],t=n,i[2]!==e.children||i[3]!==t?(r=(0,a.jsx)(c.YI.Provider,{value:t,children:e.children}),i[2]=e.children,i[3]=t,i[4]=r):r=i[4],r}function bs(){let e=(0,s.useContext)(c.YI);if(!e)throw Error("useDocumentFieldActions must be used within a DocumentFieldActionsProvider");return e.actions}function bd(e,t){return t.name===e||!!(t.type&&bd(e,t.type))}function bc(e,t){if(!e||!t)return!0;let n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),a=i.replace(/\/.*$/,"");return n.some(e=>{let t=e.trim().toLowerCase();return"."===t.charAt(0)?!r||r.toLowerCase().endsWith(t):t.endsWith("/*")?a===t.replace(/\/.*$/,""):i===t})}function bu(e,t){let n=e.indexOf(t);return n>-1&&e.splice(n,1),e}let bp=function(e,t=4){let n=function(e=4){let t=[],n=[],r=new O.B;return function i(a){return new P.c(o=>{if(t.length>=e){var l;return(l=a,n.push(l),r.asObservable().pipe((0,eP.$)(e=>e===l))).pipe((0,ew.Z)(i)).subscribe(o)}let s=a.subscribe(o);return t.push(s),()=>{bu(t,s),bu(n,a),s.unsubscribe(),function(){for(;n.length>0&&t.length<e;)r.next(n.shift())}()}})}}(t);return(...t)=>(0,Q.H)(n(e(...t)))}(function(e,t,n,r={}){let i=r.metadata,a=r.storeOriginalFilename,{label:o,title:l,description:s,creditLine:d,source:c}=r;return(function(e){return window.crypto&&window.crypto.subtle&&window.FileReader?new P.c(t=>{let n=new FileReader;return n.onload=()=>{t.next(n.result),t.complete()},n.onerror=e=>{t.error(e)}
907,n.readAsArrayBuffer(e),()=>{n.abort()}}).pipe((0,ew.Z)(e=>crypto.subtle.digest("SHA-1",e)),(0,E.T)(bh)):(0,k.of)(null)})(n).pipe((0,M.W)(()=>(0,k.of)(null)),(0,ew.Z)(n=>{var r,i,a;return n?(r=e,i=`sanity.${t}Asset`,a=n,r.observable.fetch("*[_type == $documentType && sha1hash == $hash][0]",{documentType:i,hash:a},{tag:"asset.find-duplicate"})):(0,k.of)(null)}),(0,ew.Z)(r=>r?(0,k.of)({type:"complete",id:r._id,asset:r}):e.observable.assets.upload(t,n,{tag:"asset.upload",extract:i,preserveFilename:a,label:o,title:l,description:s,creditLine:d,source:c}).pipe((0,E.T)(e=>"response"===e.type?{type:"complete",id:e.body.document._id,asset:e.body.document}:e))))},4);function bm(e,t){return e.observePaths({_type:"reference",_ref:t},["originalFilename","url","metadata","label","title","description","creditLine","source","size"])}function bh(e){return Array.prototype.map.call(new Uint8Array(e),e=>`00${e.toString(16)}`.slice(-2)).join("")}let bf="_upload";function bg(e=[]){return{type:"uploadProgress",patches:e}}let bC=bg([s3([bf])]);function by(e){let t=new Date().toISOString();return[s7({progress:2,createdAt:t,updatedAt:t,file:{name:e.name,type:e.type}},[bf])]}function bx(e,t,n){let r=bp(e,"file",t,n).pipe((0,E.T)(e=>"complete"===e.type?bg([s7({_type:"reference",_ref:e.asset._id},["asset"]),s7(100,[bf,"progress"]),s7(new Date().toISOString(),[bf,"updated"])]):bg([s7(e.percent,[bf,"progress"]),s7(new Date().toISOString(),[bf,"updated"])])));return(0,S.x)((0,k.of)(bg(by(t))),r,(0,k.of)(bC))}function bb(e){return[5,6,7,8].indexOf(e)>-1}function bv(e,t,n){let r=e.getContext("2d");r?.translate(t?e.width:0,n?e.height:0),r?.scale(t?-1:1,n?-1:1)}let bj=[{op:"none",degrees:0},{op:"flip-x",degrees:0},{op:"none",degrees:180},{op:"flip-y",degrees:0},{op:"flip-x",degrees:90},{op:"none",degrees:90},{op:"flip-x",degrees:-90},{op:"none",degrees:-90}],bw=["top-left","top-right","bottom-right","bottom-left","left-top","right-top","right-bottom","left-bottom"],b_=/(invalid image format)|(No exif data)/i,bk=[{type:"image",accepts:"image/*",upload:(e,t,n,r)=>(function(e,t,n){let r=bp(e,"image",t,n).pipe((0,q.p)(e=>"download"!==e.stage),(0,E.T)(e=>({...e,progress:2+e.percent/100*98})),(0,E.T)(e=>"complete"===e.type?bg([s7({_type:"reference",_ref:e.asset._id},["asset"]),s7(100,[bf,"progress"]),s7(new Date().toISOString(),[bf,"updatedAt"])]):bg([s7(e.percent,[bf,"progress"]),s7(new Date().toISOString(),[bf,"updatedAt"])]))),i=(0,Q.H)(new P.c(e=>{let n=new window.FileReader;return n.onerror=t=>e.error(t),n.onload=()=>{e.next(n.result),e.complete()},n.readAsArrayBuffer(t.slice(0,128e3)),()=>n.abort()})).pipe((0,E.T)(e=>rp(e)),(0,M.W)(e=>(b_.test(e.message)||console.warn(`Exif read failed, continuing anyway: ${e.message}`),(0,k.of)({})))).pipe((0,ew.Z)(e=>{var n,r;return n=e.orientation||"top-left",(r=window.URL.createObjectURL(t),new P.c(e=>{let t=new window.Image;return t.onerror=()=>{e.error(Error(`Could not load image from url "${r}". Image may be of an unsupported format`))},t.onload=()=>{e.next(t),e.complete()},t.src=r,()=>{}})).pipe((0,ew.Z)(e=>new P.c(t=>{let r=function(e,t){let n=bj[t-1],r=e.height/e.width;e.width=120/r,e.height=e.width*r;let i=document.createElement("canvas"),a=i.getContext("2d");if(bb(t)?(i.height=e.width,i.width=e.height):(i.width=e.width,i.height=e.height),"flip-x"===n.op&&bv(i,!0,!1),"flip-y"===n.op&&bv(i,!1,!0),n.degrees&&(function(e,t){let n=t.x,r=t.y,i=(t.degrees||0)*(Math.PI/180);e?.translate(n,r),e?.rotate(i),e?.translate(-n,-r)}(a,{degrees:n.degrees,x:i.width/2,y:i.height/2}),bb(t))){let e=i.width-i.height;a?.translate(e/2,-e/2)}return a?.drawImage(e,0,0,e.width,e.height),i}(e,bw.indexOf(n)+1);t.next(r.toDataURL("image/jpeg",.1)),t.complete()})))}),(0,M.W)(e=>(console.warn('Image preprocessing failed for "%s" with the error: %s',t.name,e.message),(0,k.of)(null))),(0,q.p)(Boolean),(0,E.T)(e=>bg([s7(e,[bf,"previewImage"])])));return(0,S.x)((0,k.of)(bg(by(t))),(0,R.h)(r,i),(0,k.of)(bC))})(e,t,r)},{type:"string",accepts:"text/*",upload:(e,t,n,r)=>bx(e,t,r).pipe((0,E.T)(e=>({type:"uploadProgress",patches:[s7(e)]})))},{type:"file",accepts:"",upload:(e,t,n,r)=>bx(e,t,r)}].map((e,t)=>({...e,priority:t}));function bS(e,t){return bk.find(n=>bd(n.type,e)&&bc(t,n.accepts)&&bc(t,e.options?.accept||""))||null}function bT(e){let{onPathBlur:t,onPathFocus:n,onChange:r,onSetPathCollapsed:i,onSetFieldSetCollapsed:o,onPathOpen:l,onFieldGroupSelect:d}=xq(),{member:c,renderAnnotation:u,renderBlock:m,renderField:h,renderInlineBlock:f,renderInput:g,renderItem:C,renderPreview:y}=e,x=bs(),b=(0,s.useRef)(void 0),v=(0,s.useRef)({});xZ(c.field.focused,(e,t)=>{!e&&t&&b.current?.focus()});let j=(0,s.useCallback)(e=>{e.currentTarget===e.target&&e.currentTarget===b.current&&n(c.field.path)},[c.field.path,n]),w=(0,s.useCallback)(e=>{e.currentTarget===e.target&&e.currentTarget===b.current&&t(c.field.path)},[c.field.path,t]),_=(0,s.useRef)(c.field.value);(0,s.useEffect)(()=>{_.current=c.field.value},[c.field.value]);let k=(0,s.useCallback)(e=>{let t=s4.from(e).patches;if(t.some(e=>"unset"===e.type&&1===e.path.length)&&(_.current=bo(_.current||[],t),Array.isArray(_.current)&&!_.current.length))return void r(s4.from(s3([c.name])));r(s4.from(e).prepend(s5([])).prefixAll(c.name))},[r,c.name,_]),S=Cc(),T=(0,p.dj)(),I=(0,s.useCallback)(()=>{i(c.field.path,!0)},[i,c.field.path]),$=(0,s.useCallback)(()=>{i(c.field.path,!1)},[i,c.field.path]),A=(0,s.useCallback)(e=>{i(c.field.path.concat({_key:e}),!0)},[i,c.field.path]),D=(0,s.useCallback)(e=>{i(c.field.path.concat({_key:e}),!1)},[i,c.field.path]),z=(0,s.useCallback)(e=>{l(e),i(e,!1)},[l,i]),M=(0,s.useCallback)(()=>{l(c.field.path),i(c.field.path,!0)},[l,c.field.path,i]),P=(0,s.useCallback)(e=>{if(0===e.items.length)throw Error("Insert event should include at least one item");let t=e.items.map(e=>xG(e));k(s4.from([s0(t,e.position,[e.referenceItem])]));let r=t[0]._key,i=[...c.field.path,{_key:r}];n(i);let a=!1!==e.open;e.skipInitialValue?a&&z(i):xX(t,c.field.schemaType,S).pipe((0,W.M)(e=>{"patch"===e.type?k(e.patches):T.push({title:"Could not resolve initial value",description:`Unable to resolve initial value for type: ${e.schemaType.title}: ${e.error.message}.`,status:"error"})})).subscribe({complete:()=>{a&&z(i)}})},[k,z,c.field.path,c.field.schemaType,n,S,T]),R=(0,s.useCallback)(e=>
907{let t=c.field.value,n=t?.[e.fromIndex],r=t?.[e.toIndex];if(e.fromIndex!==e.toIndex){if(!n?._key||!r?._key)return void console.error("Neither the item you are moving nor the item you are moving to have a key. Cannot continue.");k([s3([{_key:n._key}]),s0([n],e.fromIndex>e.toIndex?"before":"after",[{_key:r._key}])])}},[k,c.field.value]),O=(0,s.useCallback)(e=>{P({items:[e],position:"before",referenceItem:0})},[P]),V=(0,s.useCallback)(e=>{P({items:[e],position:"after",referenceItem:-1})},[P]),L=(0,s.useCallback)(e=>{v.current[e]&&(v.current[e].unsubscribe(),delete v.current[e]),k([s3([{_key:e}])])},[k]),F=(0,s.useCallback)((e,t)=>{n(c.field.path.concat(e),t)},[c.field.path,n]),B=(0,s.useMemo)(()=>({onBlur:w,onFocus:j,id:c.field.id,ref:b,"aria-describedby":da(c.field.id,c.field.schemaType.description)}),[w,j,c.field.id,c.field.schemaType.description]),N=ee7(a7),Y=o$(),H=Y.__internal.image.directUploads,Z=Y.__internal.file.directUploads,U=(0,s.useCallback)((e,t)=>bd("image",e)&&!H||bd("file",e)&&!Z?null:bS(e,t),[Z,H]),q=(0,s.useCallback)(({file:e,sc
907hemaType:t,uploader:n})=>{let r=x4(t),i=r._key;P({items:[r],position:"after",referenceItem:-1,open:!1});let a={metadata:ni(t,"options.metadata"),storeOriginalFilename:ni(t,"options.storeOriginalFilename")},o=n.upload(N,e,t,a).pipe((0,E.T)(e=>s4.from(e.patches||[]).prefixAll({_key:i})),(0,W.M)(e=>k(e.patches)));v.current={...v.current,[i]:o.subscribe()}},[N,k,P]),J=(0,s.useMemo)(()=>({level:c.field.level,members:c.field.members,value:c.field.value,readOnly:c.field.readOnly,schemaType:c.field.schemaType,changed:c.field.changed,id:c.field.id,onItemExpand:D,onItemCollapse:A,onItemClose:M,onItemOpen:z,focusPath:c.field.focusPath,focused:c.field.focused,path:c.field.path,onChange:k,onInsert:P,onItemMove:R,onItemRemove:L,onItemAppend:V,onItemPrepend:O,onPathFocus:F,resolveInitialValue:S,onUpload:q,resolveUploader:U,validation:c.field.validation,presence:c.field.presence,renderAnnotation:u,renderBlock:m,renderInlineBlock:f,renderInput:g,renderField:h,renderItem:C,renderPreview:y,elementProps:B}),[c.field.level,c.field.members,c.field.value,c.field.readOnly,c.field.schemaType,c.field.changed,c.field.id,c.field.focusPath,c.field.focused,c.field.path,c.field.validation,c.field.presence,D,A,M,z,k,P,R,L,V,O,F,S,q,U,u,m,f,g,h,C,y,B]),K=(0,s.useMemo)(()=>g(J),[J,g]),G=(0,s.useMemo)(()=>({actions:x,name:c.name,index:c.index,level:c.field.level,value:c.field.value,title:c.field.schemaType.title,description:c.field.schemaType.description,collapsible:c.collapsible,collapsed:c.collapsed,changed:c.field.changed,onCollapse:I,onExpand:$,schemaType:c.field.schemaType,inputId:c.field.id,path:c.field.path,presence:c.field.presence,validation:c.field.validation,children:K,inputProps:J}),[x,c.name,c.index,c.field.level,c.field.value,c.field.schemaType,c.field.changed,c.field.id,c.field.path,c.field.presence,c.field.validation,c.collapsible,c.collapsed,I,$,K,J]);return(0,a.jsx)(xU,{onFieldGroupSelect:d,onChange:k,onSetFieldSetCollapsed:o,onSetPathCollapsed:i,onPathOpen:l,onPathBlur:t,onPathFocus:n,children:(0,s.useMemo)(()=>h(G),[G,h])})}function bI(e){let{onPathBlur:t,onPathFocus:n,onChange:r,onPathOpen:i,onSetPathCollapsed:o,onSetFieldSetCollapsed:l,onFieldGroupSelect:d}=xq(),{member:c,renderAnnotation:u,renderBlock:p,renderField:m,renderInlineBlock:h,renderInput:f,renderItem:g,renderPreview:C}=e,y=bs(),x=(0,s.useRef)(void 0),b=(0,s.useRef)(void 0),v=ee7(a7);xZ(c.field.focused,(e,t)=>{!e&&t&&x.current?.focus()});let j=(0,s.useCallback)(e=>{e.currentTarget===e.target&&e.currentTarget===x.current&&n(c.field.path)},[c.field.path,n]),w=(0,s.useCallback)(e=>{e.currentTarget===e.target&&e.currentTarget===x.current&&t(c.field.path)},[c.field.path,t]),k=(0,s.useCallback)(e=>{let t=s4.from(e).patches;if(t.some(e=>"unset"===e.type&&1===e.path.length)){let e=bo(c.field.value||[],t);if(Array.isArray(e)&&!e.length)return void r(s4.from(s3([c.name])))}r(s4.from(e).prepend(s5([])).prefixAll(c.name))},[r,c.name,c.field.value]),S=(0,s.useCallback)(e=>{o(c.field.path,e)},[o,c.field.path]),T=(0,s.useCallback)(()=>{o(c.field.path,!0)},[o,c.field.path]),I=(0,s.useCallback)(()=>{o(c.field.path,!1)},[o,c.field.path]),$=(0,s.useCallback)(e=>{k(0===e.length?s3():s7(e))},[k]),A=(0,s.useCallback)(e=>{let{value:t=[]}=c.field;e.fromIndex!==e.toIndex&&$(function(e,t,n){let r=e.slice(),i=r[t];return r.splice(t,1),r.splice(n,0,i),r}(t,e.fromIndex,e.toIndex))},[c.field,$]),D=(0,s.useCallback)(e=>{let{value:t=[]}=c.field;$(t.concat(e))},[c.field,$]),z=(0,s.useCallback)(e=>{let{value:t=[]}=c.field;$([e].concat(t||[]))},[c.field,$]),M=(0,s.useCallback)(e=>{let{value:t=[]}=c.field;$(function(e,t,n){let r=t.slice();return r.splice(e+1,0,...n),r}(e.referenceIndex+("before"===e.position?-1:0),t,e.items))},[c.field,$]),R=(0,s.useCallback)(e=>{k(s3([e]))},[k]),O=(0,s.useCallback)(e=>{n(c.field.path.concat([e]))},[c.field.path,n]),V=(0,s.useMemo)(()=>({onBlur:w,onFocus:j,id:c.field.id,ref:x,"aria-describedby":da(c.field.id,c.field.schemaType.description)}),[w,j,c.field.id,c.field.schemaType.description]),L=(0,s.useMemo)(()=>{var e;return e=c.field.schemaType.of,{priority:0,accepts:"text/*",type:"string",upload:(t,n)=>new P.c(e=>{let t=new FileReader;return t.onerror=t=>e.error(t),t.onload=()=>
907{e.next(t.result),e.complete()},t.readAsText(n,"utf-8"),()=>{t.abort()}}).pipe((0,E.T)(t=>t?.split(/[\n\r]/).map(t=>{let n,r,i;return n=!1,r=!1,i=!1,e.forEach(e=>{(0,_.oV)(e)&&(n=!0),(0,_.pZ)(e)&&(i=!0),(0,_.F3)(e)&&(r=!0)}),n&&("true"===t||"false"===t)?"true"===t:r&&/^\d+$/.test(t)?Number(t):i?t:void 0}).filter(e=>void 0!==e)),(0,q.p)(e=>Array.isArray(e)),(0,E.T)(e=>({type:"uploadProgress",patches:[s0(e,"after",[-1])]})))}},[c.field.schemaType.of]),F=(0,s.useCallback)((e,t)=>bc(t,"text/*")?L:null,[L]),B=(0,s.useCallback)(({file:e,schemaType:t,uploader:n})=>{let r=n.upload(v,e,t).pipe((0,E.T)(e=>s4.from(e.patches||[])),(0,W.M)(e=>k(e.patches)));b.current&&b.current.unsubscribe(),b.current=r.subscribe()},[v,k]),N=(0,s.useMemo)(()=>({level:c.field.level,members:c.field.members,value:c.field.value,readOnly:c.field.readOnly,onSetCollapsed:S,schemaType:c.field.schemaType,changed:c.field.changed,id:c.field.id,elementProps:V,path:c.field.path,focusPath:c.field.focusPath,focused:c.field.focused,onChange:k,onInsert:M,onMoveItem:A,onItemRemove:R,onItemAppend:D,onItemPrepend:z,validation:c.field.validation,presence:c.field.presence,resolveUploader:F,onUpload:B,renderAnnotation:u,renderBlock:p,renderInlineBlock:h,renderInput:f,renderItem:g,onIndexFocus:O,renderPreview:C}),[c.field.level,c.field.members,c.field.value,c.field.readOnly,c.field.schemaType,c.field.changed,c.field.id,c.field.path,c.field.focusPath,c.field.focused,c.field.validation,c.field.presence,S,V,k,M,A,R,D,z,F,B,u,p,h,f,g,O,C]),Y=(0,s.useMemo)(()=>f(N),[N,f]),H=(0,s.useMemo)(()=>({actions:y,name:c.name,index:c.index,level:c.field.level,value:c.field.value,title:c.field.schemaType.title,description:c.field.schemaType.description,collapsible:c.collapsible,collapsed:c.collapsed,onExpand:I,changed:c.field.changed,onCollapse:T,schemaType:c.field.schemaType,inputId:c.field.id,path:c.field.path,presence:c.field.presence,validation:c.field.validation,children:Y,inputProps:N}),[y,c.name,c.index,c.field.level,c.field.value,c.field.schemaType,c.field.changed,c.field.id,c.field.path,c.field.presence,c.field.validation,c.collapsible,c.collapsed,I,T,Y,N]);return(0,a.jsx)(xU,{onFieldGroupSelect:d,onChange:k,onPathOpen:i,onSetFieldSetCollapsed:l,onSetPathCollapsed:o,onPathBlur:t,onPathFocus:n,children:(0,s.useMemo)(()=>m(H),[H,m])})}function bE(e){return(0,_.$d)(e.field.schemaType)}function b$(e){return(0,_.zR)(e.field.schemaType)&&e.field.schemaType.of.every(e=>(0,_.$d)(e))}let bA=function(e){let{onPathBlur:t,onPathFocus:n,onChange:r,onPathOpen:i,onSetPathCollapsed:o,onSetFieldSetCollapsed:l,onFieldGroupSelect:d}=xq(),{member:c,renderAnnotation:u,renderBlock:p,renderField:m,renderInlineBlock:h,renderInput:f,renderItem:g,renderPreview:C}=e,y=bs(),x=(0,s.useRef)(void 0),b=(0,s.useRef)(c.field.value);(0,s.useEffect)(()=>{b.current=c.field.value},[c.field.value]),xZ(c.field.focused,(e,t)=>{!e&&t&&x.current?.focus()});let v=(0,s.useCallback)(()=>{t(c.field.path)},[c.field.path,t]),j=(0,s.useCallback)(()=>{n(c.field.path)},[c.field.path,n]),w=(0,s.useCallback)(e=>{n(c.field.path.concat(e))},[c.field.path,n]),_=(0,s.useCallback)(e=>{if(0!==c.field.path.length){let t=s4.from(e).patches;if(b.current=bo(b.current||{},t),b.current&&(0,nr.RN)(b.current))return void r(s4.from(s3([c.name])))}r(s4.from(e).prepend(s5(xJ(c.field.schemaType))).prefixAll(c.name))},[r,c,b]),k=(0,s.useCallback)(()=>{o(c.field.path,!0)},[o,c.field.path]),S=(0,s.useCallback)(()=>{o(c.field.path,!1)},[o,c.field.path]),T=(0,s.useCallback)(e=>{o(c.field.path.concat(e),!0)},[o,c.field.path]),I=(0,s.useCallback)(e=>{o(c.field.path.concat(e),!1)},[o,c.field.path]),E=(0,s.useCallback)(e=>{i(c.field.path.concat(e))},[i,c.field.path]),$=(0,s.useCallback)(()=>{i(c.field.path)},[i,c.field.path]),A=(0,s.useCallback)(e=>{l(c.field.path.concat(e),!1)},[l,c.field.path]),D=(0,s.useCallback)(e=>{l(c.field.path.concat(e),!0)},[l,c.field.path]),z=(0,s.useCallback)(()=>{i(c.field.path)},[i,c.field.path]),M=(0,s.useCallback)(()=>{i(c.field.path.slice(0,-1))},[i,c.field.path]),P=(0,s.useCallback)(e=>{d(c.field.path,e)},[d,c.field.path]),R=(0,s.useMemo)(()=>({onBlur:v,onFocus:j,id:c.field.id,ref:x,"aria-describedby":da(c.field.id,c.field.schemaType.description)}),[v,j,c.field.id,c.field.schemaType.description]),O=(0,s.useMemo)(()=>({elementProps:R,level:c.field.level,members:c.field.members,value:c.field.value,readOnly:c.field.readOnly,val
907idation:c.field.validation,presence:c.field.presence,schemaType:c.field.schemaType,changed:c.field.changed,id:c.field.id,onFieldGroupSelect:P,onFieldOpen:E,onFieldClose:$,onFieldCollapse:T,onFieldExpand:I,onFieldSetExpand:A,onFieldSetCollapse:D,onPathFocus:w,path:c.field.path,focusPath:c.field.focusPath,focused:c.field.focused,groups:c.field.groups,onChange:_,renderAnnotation:u,renderBlock:p,renderField:m,renderInlineBlock:h,renderInput:f,renderItem:g,renderPreview:C}),[R,c.field.level,c.field.members,c.field.value,c.field.readOnly,c.field.validation,c.field.presence,c.field.schemaType,c.field.changed,c.field.id,c.field.path,c.field.focusPath,c.field.focused,c.field.groups,P,E,$,T,I,A,D,w,_,u,p,m,h,f,g,C]),V=(0,s.useMemo)(()=>f(O),[O,f]),L=(0,s.useMemo)(()=>({actions:y,name:c.name,index:c.index,level:c.field.level,value:c.field.value,validation:c.field.validation,presence:c.field.presence,title:c.field.schemaType.title,description:c.field.schemaType.description,collapsible:c.collapsible,collapsed:c.collapsed,onCollapse:k,onExpand:S,open:c.open,changed:c.field.changed,onOpen:z,onClose:M,schemaType:c.field.schemaType,inputId:c.field.id,path:c.field.path,children:V,inputProps:O}),[y,c.name,c.index,c.field.level,c.field.value,c.field.validation,c.field.presence,c.field.schemaType,c.field.changed,c.field.id,c.field.path,c.collapsible,c.collapsed,c.open,k,S,z,M,V,O]);return(0,a.jsx)(xU,{onFieldGroupSelect:d,onChange:_,onSetFieldSetCollapsed:l,onPathOpen:i,onSetPathCollapsed:o,onPathBlur:t,onPathFocus:n,children:(0,s.useMemo)(()=>m(L),[L,m])})};function bD(e){let{member:t,renderInput:n,renderField:r}
907=e,i=bs(),o=(0,s.useRef)(void 0),[l,d]=(0,s.useState)(),{onPathBlur:c,onPathFocus:u,onChange:p}=xq();(0,s.useEffect)(()=>{t.field.focused&&o.current?.focus()},[t.field.focused]);let m=(0,s.useCallback)(()=>{c(t.field.path)},[t.field.path,c]),h=(0,s.useCallback)(()=>{u(t.field.path)},[t.field.path,u]),f=(0,s.useCallback)(e=>{p(s4.from(e).prefixAll(t.name))},[p,t.name]),g=(0,s.useCallback)(e=>{let n=e.currentTarget.value;if((0,_.F3)(t.field.schemaType)){if((n=e.currentTarget.valueAsNumber)>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER)return}else(0,_.oV)(t.field.schemaType)&&(n=e.currentTarget.checked);let r=""===n||"number"==typeof n&&isNaN(n);(0,_.F3)(t.field.schemaType)&&d(r?void 0:e.currentTarget.value),p(s4.from(r?s3():s7(n)).prefixAll(t.name))},[t.name,t.field.schemaType,p]),C=(0,s.useMemo)(()=>t.field.validation.filter(e=>"error"===e.level).map(e=>e.message).join(`
908`),[t.field.validation])||void 0,y=(0,s.useMemo)(()=>({onBlur:m,onFocus:h,id:t.field.id,ref:o,onChange:g,value:x3(t.field.schemaType,t.field.value,l),readOnly:!!t.field.readOnly,placeholder:t.field.schemaType.placeholder,"aria-describedby":da(t.field.id,t.field.schemaType.description)}),[m,h,g,t.field.id,t.field.readOnly,t.field.schemaType,t.field.value,l]),x=(0,s.useMemo)(()=>({value:t.field.value,readOnly:t.field.readOnly,schemaType:t.field.schemaType,changed:t.field.changed,id:t.field.id,path:t.field.path,focused:t.field.focused,level:t.field.level,onChange:f,validation:t.field.validation,presence:t.field.presence,validationError:C,elementProps:y}),[t.field.value,t.field.readOnly,t.field.schemaType,t.field.changed,t.field.id,t.field.path,t.field.focused,t.field.level,t.field.validation,t.field.presence,f,C,y]),b=(0,s.useMemo)(()=>n(x),[x,n]),v=(0,s.useMemo)(()=>({actions:i,changed:t.field.changed,children:b,description:t.field.schemaType.description,index:t.index,inputId:t.field.id,inputProps:x,level:t.field.level,name:t.name,path:t.field.path,presence:t.field.presence,schemaType:t.field.schemaType,title:t.field.schemaType.title,validation:t.field.validation,value:t.field.value}),[i,t.field.level,t.field.value,t.field.schemaType,t.field.id,t.field.path,t.field.validation,t.field.presence,t.field.changed,t.name,t.index,b,x]);return(0,a.jsx)(a.Fragment,{children:r(v)})}let bz=(0,s.memo)(function(e){let t,n=(0,o.c)(31),{member:r,renderAnnotation:i,renderBlock:l,renderField:s,renderInlineBlock:d,renderInput:c,renderItem:u,renderPreview:p}=e;if(bE(r)){let e;return n[0]!==r||n[1]!==i||n[2]!==l||n[3]!==s||n[4]!==d||n[5]!==c||n[6]!==u||n[7]!==p?(e=(0,a.jsx)(bA,{member:r,renderAnnotation:i,renderBlock:l,renderField:s,renderInlineBlock:d,renderInput:c,renderItem:u,renderPreview:p}),n[0]=r,n[1]=i,n[2]=l,n[3]=s,n[4]=d,n[5]=c,n[6]=u,n[7]=p,n[8]=e):e=n[8],e}if((0,_.zR)(r.field.schemaType)&&r.field.schemaType.of.every(e=>(0,_.zZ)(e))){let e;return n[9]!==r||n[10]!==i||n[11]!==l||n[12]!==s||n[13]!==d||n[14]!==c||n[15]!==p||n[16]!==u?(e=(0,a.jsx)(bI,{member:r,renderAnnotation:i,renderBlock:l,renderField:s,renderInput:c,renderInlineBlock:d,renderItem:u,renderPreview:p}),n[9]=r,n[10]=i,n[11]=l,n[12]=s,n[13]=d,n[14]=c,n[15]=p,n[16]=u,n[17]=e):e=n[17],e}if(b$(r)){let e;return n[18]!==r||n[19]!==i||n[20]!==l||n[21]!==s||n[22]!==d||n[23]!==c||n[24]!==u||n[25]!==p?(e=(0,a.jsx)(bT,{member:r,renderAnnotation:i,renderBlock:l,renderField:s,renderInlineBlock:d,renderInput:c,renderItem:u,renderPreview:p}),n[18]=r,n[19]=i,n[20]=l,n[21]=s,n[22]=d,n[23]=c,n[24]=u,n[25]=p,n[26]=e):e=n[26],e}return n[27]!==r||n[28]!==s||n[29]!==c?(t=(0,a.jsx)(bD,{member:r,renderField:s,renderInput:c}),n[27]=r,n[28]=s,n[29]=c,n[30]=t):t=n[30],t}),bM={warning:"caution",error:"critical"},bP=(0,g.I4)(u.az)`
909  border-top: 1px solid var(--card-border-color);
910`;function bR(e){let t,n,r,i,l,s,d,c,p,m,h,f,g,y,x=(0,o.c)(30);x[0]!==e?({children:t,status:i,suffix:r,title:l,...n}=e,x[0]=e,x[1]=t,x[2]=n,x[3]=r,x[4]=i,x[5]=l):(t=x[1],n=x[2],r=x[3],i=x[4],l=x[5]);let b=void 0===i?"warning":i,v=bM[b];return x[6]!==b?(s="warning"===b&&(0,a.jsx)(C.sAQ,{}),x[6]=b,x[7]=s):s=x[7],x[8]!==b?(d="error"===b&&(0,a.jsx)(C.YZv,{}),x[8]=b,x[9]=d):d=x[9],x[10]!==s||x[11]!==d?(c=(0,a.jsx)(u.az,{children:(0,a.jsxs)(u.EY,{size:1,children:[s,d]})}),x[10]=s,x[11]=d,x[12]=c):c=x[12],x[13]!==l?(p=(0,a.jsx)(u.EY,{size:1,weight:"medium",children:l}),x[13]=l,x[14]=p):p=x[14],x[15]!==t?(m=t&&(0,a.jsx)(u.az,{marginTop:3,children:t}),x[15]=t,x[16]=m):m=x[16],x[17]!==p||x[18]!==m?(h=(0,a.jsxs)(u.az,{flex:1,marginLeft:3,children:[p,m]}),x[17]=p,x[18]=m,x[19]=h):h=x[19],x[20]!==c||x[21]!==h?(f=(0,a.jsxs)(u.so,{padding:4,children:[c,h]}),x[20]=c,x[21]=h,x[22]=f):f=x[22],x[23]!==r?(g=r&&(0,a.jsx)(bP,{children:r}),x[23]=r,x[24]=g):g=x[24],x[25]!==n||x[26]!==v||x[27]!==f||x[28]!==g?(y=(0,a.jsxs)(u.Zp,{radius:2,tone:v,...n,"data-ui":"Alert",children:[f,g]}),x[25]=n,x[26]=v,x[27]=f,x[28]=g,x[29]=y):y=x[29],y}let bO=["yes","true","1"],bV=["false","no","false","0","null"],bL=bO.concat(bV),bF=()=>!0,bB={string:{number:{test:Number,convert:Number},boolean:{test:e=>bL.includes(e.toLowerCase()),convert:e=>bO.includes(e.toLowerCase())||!bV.includes(e.toLowerCase())},richDate:{test:e=>(0,te.A)(e),convert:e=>({_type:"richDate",local:(function(e){let t=new Date(e.getTime()+60*e.getTimezoneOffset()*1e3),n=e.getTimezoneOffset()/60,r=e.getHours();return t.setHours(r-n),t})(new Date(e)).toJSON(),utc:new Date(e).toJSON(),timezone:function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}return null}(),offset:new Date().getTimezoneOffset()})}},date:{richDate:{test:e=>"date"===(e&&e._type),convert:e=>Object.assign({},e,{_type:"richDate"})}},richDate:{datetime:{test:e=>e&&e.utc,convert:e=>e.utc}},number:{string:{test:bF,convert:String},boolean:{test:bF,convert:Number}},boolean:{string:{test:bF,convert:e=>e?"Yes":"No"},number:{test:bF,convert:Number}}};function bN(e){let t,n,r,i,l,s=(0,o.c)(13),{value:d,targetType:c,onChange:u}=e;s[0]!==c||s[1]!==d?(n={...d,_type:c},s[0]=c,s[1]=d,s[2]=n):n=s[2],t=n,s[3]!==t||s[4]!==u||s[5]!==c?(r=()=>u(s4.from(s5(c,["_type"])),t),s[3]=t,s[4]=u,s[5]=c,s[6]=r):r=s[6];let p=r,{t:m}=iJ();return s[7]!==m||s[8]!==c?(i=m("inputs.untyped-value.convert-button.text",{targetType:c}),s[7]=m,s[8]=c,s[9]=i):i=s[9],s[10]!==p||s[11]!==i?(l=(0,a.jsx)(y.$n,{onClick:p,text:i}),s[10]=p,s[11]=i,s[12]=l):l=s[12],l}function bY(e){let t,n,r,i,l,s=(0,o.c)(11),{value:d,onChange:c,validTypes:u}=e;s[0]!==u[0]||s[1]!==d?(n={...d,_type:u[0]},s[0]=u[0],s[1]=d,s[2]=n):n=s[2],t=n,s[3]!==t||s[4]!==c?(r=()=>c(s4.from(s3()),t),s[3]=t,s[4]=c,s[5]=r):r=s[5];let p=r,{t:m}=iJ();return s[6]!==m?(i=m("inputs.untyped-value.unset-item-button.text"),s[6]=m,s[7]=i):i=s[7],s[8]!==p||s[9]!==i?(l=(0,a.jsx)(y.$n,{onClick:p,tone:"critical",text:i}),s[8]=p,s[9]=i,s[10]=l):l=s[10],l}function bH(e){let t,n,r,i,l,s,d,c,p,m,h,f,g,C,y,x,b,v,j,w=(0,o.c)(56),{validTypes:_,value:k,onChange:S}=e,T=Cm(),I=1===_.length;w[0]!==T||w[1]!==_[0]?(t=T.has(_[0]),w[0]=T,w[1]=_[0],w[2]=t):t=w[2];let E=t,{t:$}=iJ();return w[3]!==$?(n=(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(an,{t:$,i18nKey:"inputs.untyped-value.title"})}),w[3]=$,w[4]=n):n=w[4],w[5]!==$?(r=$("inputs.untyped-value.details.title"),w[5]=$,w[6]=r):r=w[6],w[7]!==$?(i=(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:(0,a.jsx)(an,{t:$,i18nKey:"inputs.untyped-value.description"})}),w[7]=$,w[8]=i):i=w[8],w[9]!==E||w[10]!==I||w[11]!==$?(l=I&&!E&&(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:(0,a.jsx)(an,{t:$,i18nKey:"inputs.untyped-value.details.description"})}),w[9]=E,w[10]=I,w[11]=$,w[12]=l):l=w[12],w[13]!==I||w[14]!==$?(s=!I&&(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:$("inputs.untyped-value.details.multi-type-description")}
910),w[13]=I,w[14]=$,w[15]=s):s=w[15],w[16]!==I||w[17]!==_?(d=!I&&(0,a.jsx)(u.BJ,{as:"ul",space:2,children:_.map(bZ)}),w[16]=I,w[17]=_,w[18]=d):d=w[18],w[19]!==$?(c=$("inputs.untyped-value.details.json-dump-prefix"),w[19]=$,w[20]=c):c=w[20],w[21]!==c?(p=(0,a.jsx)(u.EY,{as:"h4",weight:"medium",size:1,children:c}),w[21]=c,w[22]=p):p=w[22],w[23]!==k?(m=JSON.stringify(k,null,2),w[23]=k,w[24]=m):m=w[24],w[25]!==m?(h=(0,a.jsx)(u.Zp,{border:!0,overflow:"auto",padding:2,radius:2,tone:"inherit",children:(0,a.jsx)(u.Cy,{language:"json",children:m})}),w[25]=m,w[26]=h):h=w[26],w[27]!==h||w[28]!==p?(f=(0,a.jsxs)(u.BJ,{space:2,children:[p,h]}),w[27]=h,w[28]=p,w[29]=f):f=w[29],w[30]===Symbol.for("react.memo_cache_sentinel")?(g=[1,2,2],w[30]=g):g=w[30],w[31]!==I||w[32]!==S||w[33]!==_[0]||w[34]!==k?(C=I&&(0,a.jsx)(bN,{onChange:S,targetType:_[0],value:k}),w[31]=I,w[32]=S,w[33]=_[0],w[34]=k,w[35]=C):C=w[35],w[36]!==S||w[37]!==_||w[38]!==k?(y=(0,a.jsx)(bY,{onChange:S,validTypes:_,value:k}),w[36]=S,w[37]=_,w[38]=k,w[39]=y):y=w[39],w[40]!==C||w[41]!==y?(x=(0,a.jsxs)(u.xA,{columns:g,gap:1,children:[C,y]}),w[40]=C,w[41]=y,w[42]=x):x=w[42],w[43]!==f||w[44]!==x||w[45]!==i||w[46]!==l||w[47]!==s||w[48]!==d?(b=(0,a.jsxs)(u.BJ,{space:3,children:[i,l,s,d,f,x]}),w[43]=f,w[44]=x,w[45]=i,w[46]=l,w[47]=s,w[48]=d,w[49]=b):b=w[49],w[50]!==b||w[51]!==r?(v=(0,a.jsx)(uo,{open:ar,title:r,children:b}),w[50]=b,w[51]=r,w[52]=v):v=w[52],w[53]!==v||w[54]!==n?(j=(0,a.jsx)(bR,{status:"warning",title:n,children:v}),w[53]=v,w[54]=n,w[55]=j):j=w[55],j}function bZ(e){return(0,a.jsx)(u.EY,{as:"li",muted:!0,size:1,children:(0,a.jsx)("code",{children:e})},e)}let bU=(0,s.forwardRef)((e,t)=>{let{value:n,actualType:r,validTypes:i,onChange:o}=e;(0,s.useImperativeHandle)(t,()=>({focus:()=>{}}));let l=(0,s.useCallback)(()=>{o(s4.from(s3()))},[o]),d=(0,s.useCallback)(e=>{o(s4.from(s7(e)))},[o]),c=(0,s.useMemo)(()=>(function(e,t,n){return t in bB?Object.keys(bB[t]).filter(e=>n.includes(e)).map(e=>({from:t,to:e,...bB[t][e]})).filter(t=>t.test(e)):[]})(n,r,i),[n,r,i]),{t:p}=iJ();if(nl(n)&&!("_type"in n))return(0,a.jsx)(bH,{value:n,validTypes:i,onChange:o});let m=(0,a.jsx)(u.BJ,{padding:2,children:(0,a.jsx)(y.$n,{onClick:l,tone:"critical",text:p("inputs.invalid-value.reset-button.text")})});return(0,a.jsxs)(bR,{status:"error",suffix:m,title:p("inputs.invalid-value.title"),children:[(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:p("inputs.invalid-value.description")}),(0,a.jsx)(uo,{marginTop:4,open:ar,title:p("inputs.invalid-value.details.title"),children:(0,a.jsxs)(u.BJ,{space:3,children:[1===i.length&&(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:(0,a.jsx)(an,{t:p,i18nKey:"inputs.invalid-value.details.description",values:{validType:i[0]}})}),1===i.length&&(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:p("inputs.invalid-value.details.possible-reason")}),1!==i.length&&(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:p("inputs.invalid-value.details.multi-type-description")}),1!==i.length&&(0,a.jsx)(u.BJ,{as:"ul",space:2,children:i.map(e=>(0,a.jsx)(u.EY,{as:"li",children:(0,a.jsx)("code",{children:e})},e))}),(0,a.jsxs)(u.BJ,{marginTop:2,space:2,children:[(0,a.jsx)(u.EY,{size:1,weight:"medium",children:(0,a.jsx)(an,{t:p,i18nKey:"inputs.invalid-value.current-type",values:{actualType:r}})}),(0,a.jsx)(u.Zp,{border:!0,padding:2,radius:2,tone:"inherit",children:(0,a.jsx)(u.Cy,{language:"json",size:1,children:JSON.stringify(n,null,2)})})]}),c.length>0&&(0,a.jsx)(u.BJ,{space:1,children:c.map(e=>(0,a.jsx)(bq,{converter:e,onConvert:d,value:n},`${e.from}-${e.to}`))})]})})]})});function bq(e){let t,n,r,i=(0,o.c)(10),{converter:l,onConvert:s,value:d}=e;i[0]!==l||i[1]!==s||i[2]!==d?(t=()=>s(l.convert(d)),i[0]=l,i[1]=s,i[2]=d,i[3]=t):t=i[3];let c=t,{t:u}=iJ();return i[4]!==l.to||i[5]!==u?(n=u("inputs.invalid-value.convert-button.text",{targetType:l.to}),i[4]=l.to,i[5]=u,i[6]=n):n=i[6],i[7]!==c||i[8]!==n?(r=(0,a.jsx)(y.$n,{onClick:c,text:n}),i[7]=c,i[8]=n,i[9]=r):r=i[9],r}function bJ(e){let t,n,r,i,l,s,d,c,p,m,h,f,g,C=(0,o.c)(35),{error:x,onChange:b}=e;C[0]!==x.duplicates||C[1]!==b?(t=()=>{b(s4.from((x.duplicates||[]).map(bW)))},C[0]=x.duplicates,C[1]=b,C[2]=t):t=C[2];let v=t,{t:j}=iJ(),w=x.schemaType.title,_=x.schemaType.description;return C[3]!==j?(n=j("form.error.duplicate-keys-alert.generate-button.text"),C[3]=j,C[4]=n):n=C[4],C[5]!==v||C[6]!==n?(r=(0,a.jsx)(u.BJ,{padding:2,children:(0,a.jsx)(y.$n,{onClick:v,text:n,tone:"caution"})}),C[5]=v,C[6]=n,C[7]=r):r=C[7],C[8]!==j?(i=j("form.error.duplicate-keys-alert.title"),C[8]=j,C[9]=i):i=C[9],C[10]!==j?(l=j("form.error.duplicate-keys-alert.summary"),C[10]=j,C[11]=l):l=C[11],C[12]!==l?
910(s=(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:l}),C[12]=l,C[13]=s):s=C[13],C[14]!==j?(d=j("form.error.duplicate-keys-alert.details.title"),C[14]=j,C[15]=d):d=C[15],C[16]!==j?(c=(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:(0,a.jsx)(an,{t:j,i18nKey:"form.error.duplicate-keys-alert.details.description"})}),C[16]=j,C[17]=c):c=C[17],C[18]!==j?(p=(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:(0,a.jsx)(an,{t:j,i18nKey:"form.error.duplicate-keys-alert.details.additional-description"})}),C[18]=j,C[19]=p):p=C[19],C[20]!==p||C[21]!==c?(m=(0,a.jsxs)(u.BJ,{space:3,children:[c,p]}),C[20]=p,C[21]=c,C[22]=m):m=C[22],C[23]!==m||C[24]!==d?(h=(0,a.jsx)(uo,{marginTop:4,open:ar,title:d,children:m}),C[23]=m,C[24]=d,C[25]=h):h=C[25],C[26]!==h||C[27]!==r||C[28]!==i||C[29]!==s?(f=(0,a.jsxs)(bR,{status:"warning",suffix:r,title:i,children:[s,h]}),C[26]=h,C[27]=r,C[28]=i,C[29]=s,C[30]=f):f=C[30],C[31]!==x.schemaType.description||C[32]!==x.schemaType.title||C[33]!==f?(g=(0,a.jsx)(xR,{title:w,description:_,children:f}),C[31]=x.schemaType.description,C[32]=x.schemaType.title,C[33]=f,C[34]=g):g=C[34],g}function bW(e){let[t,n]=e;return s7(`${n}_deduped_${t}`,[t,"_key"])}function bK(e){let t,n,r,i,l,s,d,c,p,m,h,f,g,C=(0,o.c)(35),{error:x,onChange:b}=e;C[0]!==x.value||C[1]!==b?(t=()=>{b(s4.from((x.value||[]).map(bG)))},C[0]=x.value,C[1]=b,C[2]=t):t=C[2];let v=t,{t:j}=iJ(),w=x.schemaType.title,_=x.schemaType.description;return C[3]!==j?(n=j("form.error.missing-keys-alert.add-button.text"),C[3]=j,C[4]=n):n=C[4],C[5]!==v||C[6]!==n?(r=(0,a.jsx)(u.BJ,{padding:2,children:(0,a.jsx)(y.$n,{onClick:v,text:n,tone:"caution"})}),C[5]=v,C[6]=n,C[7]=r):r=C[7],C[8]!==j?(i=j("form.error.missing-keys-alert.title"),C[8]=j,C[9]=i):i=C[9],C[10]!==j?(l=j("form.error.missing-keys-alert.summary"),C[10]=j,C[11]=l):l=C[11],C[12]!==l?(s=(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:l}),C[12]=l,C[13]=s):s=C[13],C[14]!==j?(d=j("form.error.missing-keys-alert.details.title"),C[14]=j,C[15]=d):d=C[15],C[16]!==j?(c=(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:(0,a.jsx)(an,{t:j,i18nKey:"form.error.missing-keys-alert.details.description"})}),C[16]=j,C[17]=c):c=C[17],C[18]!==j?(p=(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:(0,a.jsx)(an,{t:j,i18nKey:"form.error.missing-keys-alert.details.additional-description"})}),C[18]=j,C[19]=p):p=C[19],C[20]!==p||C[21]!==c?(m=(0,a.jsxs)(u.BJ,{space:3,children:[c,p]}),C[20]=p,C[21]=c,C[22]=m):m=C[22],C[23]!==m||C[24]!==d?(h=(0,a.jsx)(uo,{marginTop:4,open:ar,title:d,children:m}),C[23]=m,C[24]=d,C[25]=h):h=C[25],C[26]!==h||C[27]!==r||C[28]!==i||C[29]!==s?(f=(0,a.jsxs)(bR,{status:"warning",suffix:r,title:i,children:[s,h]}),C[26]=h,C[27]=r,C[28]=i,C[29]=s,C[30]=f):f=C[30],C[31]!==x.schemaType.description||C[32]!==x.schemaType.title||C[33]!==f?(g=(0,a.jsx)(xR,{title:w,description:_,children:f}),C[31]=x.schemaType.description,C[32]=x.schemaType.title,C[33]=f,C[34]=g):g=C[34],g}function bG(e,t){return s5((0,nr.Xp)(),[t,"_key"])}function bX(e){let t,n,r,i,l,s,d,c,p,m,h,f,g=(0,o.c)(32),{error:C,onChange:x}=e;g[0]!==C.value||g[1]!==x?(t=()=>{let e=(C.value||[]).flatMap(b1).reverse().map(bQ);x(s4.from(e))},g[0]=C.value,g[1]=x,g[2]=t):t=g[2];let b=t,{t:v}=iJ(),j=C.schemaType.title,w=C.schemaType.description;return g[3]!==v?(n=v("form.error.mixed-array-alert.remove-button.text"),g[3]=v,g[4]=n):n=g[4],g[5]!==b||g[6]!==n?(r=(0,a.jsx)(u.BJ,{padding:2,children:(0,a.jsx)(y.$n,{onClick:b,text:n,tone:"critical"})}),g[5]=b,g[6]=n,g[7]=r):r=g[7],g[8]!==v?(i=v("form.error.mixed-array-alert.title"),g[8]=v,g[9]=i):i=g[9],g[10]!==v?(l=v("form.error.mixed-array-alert.summary"),g[10]=v,g[11]=l):l=g[11],g[12]!==l?(s=(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:l}),g[12]=l,g[13]=s):s=g[13],g[14]!==v?(d=v("form.error.mixed-array-alert.details.title"),g[14]=v,g[15]=d):d=g[15],g[16]!==v?(c=v("form.error.mixed-array-alert.details.description"),g[16]=v,g[17]=c):c=g[17],g[18]!==c?(p=(0,a.jsx)(u.BJ,{space:3,children:(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:c})}),g[18]=c,g[19]=p):p=g[19],g[20]!==p||g[21]!==d?(m=(0,a.jsx)(uo,{marginTop:4,open:ar,title:d,children:p}),g[20]=p,g[21]=d,g[22]=m):m=g[22],g[23]!==m||g[24]!==r||g[25]!==i||g[26]!==s?(h=(0,a.jsxs)(bR,{status:"error",suffix:r,title:i,children:[s,m]}),g[23]=m,g[24]=r,g[25]=i,g[26]=s,g[27]=h):h=g[27],g[28]!==C.schemaType.description||g[29]!==C.schemaType.title||g[30]!==h?(f=(0,a.jsx)(xR,{title:j,description:w,children:h}),g[28]=C.schemaType.description,g[29]=C.schemaType.title,g[30]=h,g[31]=f):f=g[31],f}function bQ(e){return s3([e])}function b1(e,t){return nl(e)?[]:[t]}function b2(e){let t,n,r,i=(0,o.c)(24),{member:l}=e,{onChange:s}=xq();i[0]!==l.fieldName||i[1]!==s?(t=e=>{s(s4.from(e).prefixAll(l.fieldName))},i[0]=l.fieldName,i[1]=s,i[2]=t):t=i[2];let d=t,{t:c}=iJ();if("INCOMPATIBLE_TYPE"===l.error.type){let e,t;
910return i[3]!==l.error.expectedSchemaType.name?(e=[l.error.expectedSchemaType.name],i[3]=l.error.expectedSchemaType.name,i[4]=e):e=i[4],i[5]!==d||i[6]!==l.error.resolvedValueType||i[7]!==l.error.value||i[8]!==e?(t=(0,a.jsx)(bU,{value:l.error.value,onChange:d,actualType:l.error.resolvedValueType,validTypes:e}),i[5]=d,i[6]=l.error.resolvedValueType,i[7]=l.error.value,i[8]=e,i[9]=t):t=i[9],t}if("MISSING_KEYS"===l.error.type){let e;return i[10]!==d||i[11]!==l.error?(e=(0,a.jsx)(bK,{error:l.error,onChange:d}),i[10]=d,i[11]=l.error,i[12]=e):e=i[12],e}if("DUPLICATE_KEYS"===l.error.type){let e;return i[13]!==d||i[14]!==l.error?(e=(0,a.jsx)(bJ,{error:l.error,onChange:d}),i[13]=d,i[14]=l.error,i[15]=e):e=i[15],e}if("MIXED_ARRAY"===l.error.type){let e;return i[16]!==d||i[17]!==l.error?(e=(0,a.jsx)(bX,{onChange:d,error:l.error}),i[16]=d,i[17]=l.error,i[18]=e):e=i[18],e}return i[19]!==e.member.error.type||i[20]!==c?(n=c("member-field-error.unexpected-error",{error:e.member.error.type}),i[19]=e.member.error.type,i[20]=c,i[21]=n):n=i[21],i[22]!==n?(r=(0,a.jsx)(u.az,{children:n}),i[22]=n,i[23]=r):r=i[23],r}bU.displayName="ForwardRef(InvalidValueInput)";let b5=(0,s.memo)(function(e){let t,n,r,i,l,s=(0,o.c)(40),{member:d,renderAnnotation:c,renderBlock:u,renderField:p,renderInlineBlock:m,renderInput:h,renderItem:f,renderPreview:g}=e,{onSetFieldSetCollapsed:C}=xq();s[0]!==d.fieldSet.path||s[1]!==C?(t=()=>{C(d.fieldSet.path,!0)},s[0]=d.fieldSet.path,s[1]=C,s[2]=t):t=s[2];let y=t;s[3]!==d.fieldSet.path||s[4]!==C?(n=()=>{C(d.fieldSet.path,!1)},s[3]=d.fieldSet.path,s[4]=C,s[5]=n):n=s[5];let x=n;s[6]!==d.fieldSet.name||s[7]!==d.fieldSet.title?(r=d.fieldSet.title||ns(d.fieldSet.name),s[6]=d.fieldSet.name,s[7]=d.fieldSet.title,s[8]=r):r=s[8];let b=d.fieldSet.description,v=d.fieldSet.level,j=d.fieldSet.collapsible,w=d.fieldSet.collapsed,_=d?.fieldSet?.columns,k=`fieldset-${d.fieldSet.name}`,S=d.fieldSet.name;if(s[9]!==d.fieldSet.members||s[10]!==d.key||s[11]!==c||s[12]!==u||s[13]!==p||s[14]!==m||s[15]!==h||s[16]!==f||s[17]!==g){let e;s[19]!==d.key||s[20]!==c||s[21]!==u||s[22]!==p||s[23]!==m||s[24]!==h||s[25]!==f||s[26]!==g?(e=e=>"error"===e.kind?(0,a.jsx)(b2,{member:e},d.key):(0,a.jsx)(bz,{member:e,renderAnnotation:c,renderBlock:u,renderField:p,renderInlineBlock:m,renderInput:h,renderItem:f,renderPreview:g},e.key),s[19]=d.key,s[20]=c,s[21]=u,s[22]=p,s[23]=m,s[24]=h,s[25]=f,s[26]=g,s[27]=e):e
910=s[27],i=d.fieldSet.members.map(e),s[9]=d.fieldSet.members,s[10]=d.key,s[11]=c,s[12]=u,s[13]=p,s[14]=m,s[15]=h,s[16]=f,s[17]=g,s[18]=i}else i=s[18];return s[28]!==y||s[29]!==x||s[30]!==d.fieldSet.collapsed||s[31]!==d.fieldSet.collapsible||s[32]!==d.fieldSet.description||s[33]!==d.fieldSet.level||s[34]!==d.fieldSet.name||s[35]!==i||s[36]!==r||s[37]!==_||s[38]!==k?(l=(0,a.jsx)(xH,{title:r,description:b,level:v,collapsible:j,collapsed:w,onCollapse:y,onExpand:x,columns:_,"data-testid":k,inputId:S,children:i}),s[28]=y,s[29]=x,s[30]=d.fieldSet.collapsed,s[31]=d.fieldSet.collapsible,s[32]=d.fieldSet.description,s[33]=d.fieldSet.level,s[34]=d.fieldSet.name,s[35]=i,s[36]=r,s[37]=_,s[38]=k,s[39]=l):l=s[39],l}),b0=(0,s.memo)(function(e){let t=(0,o.c)(20),{member:n,renderAnnotation:r,renderBlock:i,renderInput:l,renderInlineBlock:s,renderField:d,renderItem:c,renderPreview:u}=e;if("field"===n.kind){let e;return t[0]!==n||t[1]!==r||t[2]!==i||t[3]!==d||t[4]!==s||t[5]!==l||t[6]!==c||t[7]!==u?(e=(0,a.jsx)(bz,{member:n,renderAnnotation:r,renderBlock:i,renderInlineBlock:s,renderInput:l,renderField:d,renderItem:c,renderPreview:u},n.key),t[0]=n,t[1]=r,t[2]=i,t[3]=d,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=e):e=t[8],e}if("error"===n.kind){let e;return t[9]!==n?(e=(0,a.jsx)(b2,{member:n},n.key),t[9]=n,t[10]=e):e=t[10],e}if("fieldSet"===n.kind){let e;return t[11]!==n||t[12]!==r||t[13]!==i||t[14]!==d||t[15]!==s||t[16]!==l||t[17]!==c||t[18]!==u?(e=(0,a.jsx)(b5,{member:n,renderAnnotation:r,renderBlock:i,renderInlineBlock:s,renderInput:l,renderField:d,renderItem:c,renderPreview:u},n.key),t[11]=n,t[12]=r,t[13]=i,t[14]=d,t[15]=s,t[16]=l,t[17]=c,t[18]=u,t[19]=e):e=t[19],e}return console.warn(Error(`Unhandled member kind ${n.kind}`)),null});function b7(e){let t,n,r,i=(0,o.c)(19),{members:l,renderAnnotation:s,renderBlock:d,renderInput:c,renderInlineBlock:u,renderField:p,renderItem:m,renderPreview:h}=e;if(i[0]!==l||i[1]!==s||i[2]!==d||i[3]!==p||i[4]!==u||i[5]!==c||i[6]!==m||i[7]!==h){let e;i[9]!==s||i[10]!==d||i[11]!==p||i[12]!==u||i[13]!==c||i[14]!==m||i[15]!==h?(e=e=>(0,a.jsx)(b0,{member:e,renderAnnotation:s,renderBlock:d,renderField:p,renderInlineBlock:u,renderInput:c,renderItem:m,renderPreview:h},e.key),i[9]=s,i[10]=d,i[11]=p,i[12]=u,i[13]=c,i[14]=m,i[15]=h,i[16]=e):e=i[16],n=l.map(e),i[0]=l,i[1]=s,i[2]=d,i[3]=p,i[4]=u,i[5]=c,i[6]=m,i[7]=h,i[8]=n}else n=i[8];return t=n,i[17]!==t?(r=(0,a.jsx)(a.Fragment,{children:t}),i[17]=t,i[18]=r):r=i[18],r}function b3(e){return(0,_.$d)(e.schemaType)}function b8(e){return(0,_.zR)(e.schemaType)}let b4=(0,s.memo)(function(e){let t,n,r,i=(0,o.c)(8);i[0]!==e?(n="absolutePath"in e?e.absolutePath:e.path.concat(e.relativePath),i[0]=e,i[1]=n):n=i[1],t=n;let l=e.renderAnnotation||b9,s=e.renderBlock||b9,d=e.renderInlineBlock||b9;return i[2]!==t||i[3]!==e||i[4]!==l||i[5]!==s||i[6]!==d?(r=(0,a.jsx)(b6,{...e,absolutePath:t,destinationRenderAnnotation:l,destinationRenderBlock:s,destinationRenderField:e.renderField,destinationRenderInlineBlock:d,destinationRenderInput:e.renderInput,destinationRenderItem:e.renderItem,destinationRenderPreview:e.renderPreview}),i[2]=t,i[3]=e,i[4]=l,i[5]=s,i[6]=d,i[7]=r):r=i[7],r}),b6=(0,s.memo)(function e(t){let{absolutePath:n,destinationRenderAnnotation:r,destinationRenderBlock:i,destinationRenderField:o,destinationRenderInlineBlock:d,destinationRenderInput:c,destinationRenderItem:u,destinationRenderPreview:p}=t,{t:m}=iJ(),h=(0,s.useCallback)(e=>((0,l.n4)(n,e.path)?t.includeField:(0,l.w1)(n,e.path))?o(e):(({children:e})=>e)(e),[n,o,t.includeField]),f=(0,s.useCallback)(e=>((0,l.n4)(n,e.path)?t.includeItem:(0,l.w1)(n,e.path))?u(e):(({children:e})=>e)(e),[n,u,t.includeItem]),g=(0,s.useCallback)(s=>{if((0,l.n4)(s.path,n)||(0,l.w1)(n,s.path))return c(s);if(!b3(s)&&!b8(s))throw Error(`Expected either object input props or array input props for: ${JSON.stringify(s.path)}`);return(0,a.jsx)(e,{...s,includeField:t.includeField,includeItem:t.includeItem,absolutePath:n,destinationRenderAnnotation:r,destinationRenderBlock:i,destinationRenderInput:c,destinationRenderItem:u,destinationRenderField:o,destinationRenderInlineBlock:d,destinationRenderPreview:p})},[n,r,i,o,d,c,u,p,t.includeField,t.includeItem]),C=(0,s.useCallback)(e=>(0,l.w1)(n,e.path)&&(t.includeItem||!(0,l.n4)(n,e.path))?i(e):(({children:e})=>e)(e),[n,i,t.includeItem]),y=(0,s.useCallback)(e=>(0,l.w1)(n,e.path)&&(t.includeItem||!(0,l.n4)(n,e.path))?d(e):(({children:e})=>e)(e),[n,d,t.includeItem]),x=(0,s.useCallback)(e=>(0,l.w1)(n,e.path)&&(t.includeItem||!(0,l.n4)(n,e.path))?r(e):(({children:e})=>e)(e),[n,r,t.includeItem]);if(b8(t)){let e=(0,l.Mr)(t.path,n),r=t.members.find(t=>"item"==t.kind&&(0,_.tA)(e[0])&&t.key===e[0]._key);if(!r){let e=aB(t.path),r=(0,l.Mr)(t.path,n);
910if((0,_.tA)(r[0])){let t=r[0]._key;return(0,a.jsx)("div",{children:(0,a.jsx)(an,{t:m,i18nKey:"form.error.no-array-item-at-key",values:{key:t,path:e}})})}let i=(0,_.wr)(r[0])?r[0]:r[0][0];return(0,a.jsx)("div",{children:(0,a.jsx)(an,{t:m,i18nKey:"form.error.no-array-item-at-index",values:{index:i,path:e}})})}return"error"===r.kind?(0,a.jsx)(x0,{member:r}):(0,a.jsx)(xQ,{member:r,renderAnnotation:x,renderBlock:C,renderInput:g,renderField:h,renderInlineBlock:y,renderItem:f,renderPreview:p})}if(b3(t)){let e=(0,l.Mr)(t.path,n),r=t.members.find(t=>"field"==t.kind&&e[0]===t.name),i=t.members.filter(e=>"fieldSet"===e.kind).flatMap(e=>"fieldSet"===e.kind&&e.fieldSet?.members||[]).find(t=>"field"===t.kind&&t.name===e[0]),o=r||i;if(!o){let t="string"==typeof e[0]?e[0]:JSON.stringify(e[0]);return(0,a.jsx)("div",{children:m("form.error.field-not-found",{fieldName:t})})}return(0,a.jsx)(bz,{member:o,renderAnnotation:x,renderBlock:C,renderInput:g,renderInlineBlock:y,renderField:h,renderItem:f,renderPreview:p})}throw Error("FormInput can only be used with arrays or objects")});function b9(){return(0,a.jsx)(a.Fragment,{children:"Missing destination render function"})}function ve(e){let t,n=(0,o.c)(5),r=(0,s.useContext)(c.u2);if(!r)throw Error("Form context not provided");if(n[0]!==r||n[1]!==e){let i;n[3]!==e?(i=t=>t.key===e,n[3]=e,n[4]=i):i=n[4],t=r.find(i),n[0]=r,n[1]=e,n[2]=t}else t=n[2];return t}function vt(){let e=(0,s.useContext)(c.u2);if(!e)throw Error("Form context not provided");return e}let vn=g.I4.span(e=>{let{$toneKey:t="default",theme:n}=e;return(0,g.AH)`
911      text-decoration: none;
912      display: inline;
913      background-color: ${n.sanity.color.selectable?.[t].enabled.bg};
914      border-bottom: 1px dashed ${n.sanity.color.selectable?.[t].enabled.fg};
915      color: ${n.sanity.color.selectable?.[t].enabled.fg};
916
917      &[data-link] {
918        border-bottom: 1px solid ${n.sanity.color.selectable?.[t].enabled.fg};
919      }
920
921      &[data-custom-markers] {
922        background-color: ${n.sanity.color.dark?v.OZ.purple[950].hex:v.OZ.purple[50].hex};
923      }
924
925      &[data-warning] {
926        background-color: ${n.sanity.color.muted.caution.hovered.bg};
927      }
928
929      &[data-error] {
930        background-color: ${n.sanity.color.muted.critical.hovered.bg};
931      }
932    `}),vr=(0,g.I4)(u.az).attrs({forwardedAs:"span"})`
933  max-width: 250px;
934`,vi=["top","bottom"];function va(e){let t,n,r,i,l,d,c,p,m,h,f,g,x,b,v,j,w,_,k,S,T=(0,o.c)(51),{annotationOpen:I,annotationTextSelected:E,floatingBoundary:$,onOpenAnnotation:A,onRemoveAnnotation:D,referenceBoundary:z,referenceElement:M,title:P}=e,[R,O]=(0,s.useState)(!1),[V,L]=(0,s.useState)(null),F=(0,s.useRef)(null),{sanity:B}=(0,u.DP)(),{t:N}=iJ(),Y=(0,s.useRef)(null),H=(0,s.useRef)(null),Z=(0,s.useRef)(null),U=B.color.dark?"light":"dark",q=(0,ng.v$)();e:{let e;if(!V){t=null;break e}T[0]!==V?(e={getBoundingClientRect:()=>V},T[0]=V,T[1]=e):e=T[1],t=e}let J=t;T[2]!==q?(n=()=>{ng.Og.focus(q),O(!1),Z.current=null},T[2]=q,T[3]=n):n=T[3];let W=n;T[4]!==E||T[5]!==q||T[6]!==W||T[7]!==R?(r=e=>{if(R){if("Tab"===e.key){if(E&&e.target instanceof HTMLElement&&e.target.contentEditable&&null===Z.current){e.preventDefault(),Y.current?.focus(),Z.current=Y.current;return}if(e.target===H.current){e.preventDefault(),e.stopPropagation(),Z.current=null,ng.Og.focus(q);return}}"Escape"===e.key&&W()}},T[4]=E,T[5]=q,T[6]=W,T[7]=R,T[8]=r):r=T[8],(0,u.Pm)(r),T[9]!==I||T[10]!==M?(i=()=>{if(I){O(!1),L(null);return}let e=window.getSelection();if(!e||0===e.rangeCount)return;Z.current=null;let t=e.getRangeAt(0);if(!M?.contains(t.commonAncestorContainer)){O(!1),L(null);return}let n=t?.getBoundingClientRect();n&&(L(n),O(!0))},T[9]=I,T[10]=M,T[11]=i):i=T[11];let K=i;T[12]!==K?(l=()=>(document.addEventListener("selectionchange",K,{passive:!0}),()=>{document.removeEventListener("selectionchange",K)}),d=[K],T[12]=K,T[13]=l,T[14]=d):(l=T[13],d=T[14]),(0,s.useEffect)(l,d),T[15]!==A?(c=()=>{O(!1),A()},T[15]=A,T[16]=c):c=T[16];let G=c;T[17]!==D?(p=()=>{O(!1),D()},T[17]=D,T[18]=p):p=T[18];let X=p;T[19]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{F.current&&L(F.current.getBoundingClientRect())},T[19]=m):m=T[19];let Q=m;return T[20]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{let e=window.getSelection();e&&e.rangeCount>0&&(F.current=e.getRangeAt(0))},T[20]=h):h=T[20],T[21]!==R?(f=[R],T[21]=R,T[22]=f):f=T[22],(0,s.useEffect)(h,f),T[23]!==$||T[24]!==R||T[25]!==z?(g=()=>(R&&($?.addEventListener("scroll",Q),z?.addEventListener("scroll",Q)),()=>{$?.removeEventListener("scroll",Q),z?.removeEventListener("scroll",Q)}),x=[R,z,$,Q],T[23]=$,T[24]=R,T[25]=z,T[26]=g,T[27]=x):(g=T[26],x=T[27]),(0,s.useEffect)(g,x),T[28]!==P?(b=(0,a.jsx)(u.az,{padding:2,children:(0,a.jsx)(u.EY,{weight:"medium",size:1,children:P})}),T[28]=P,T[29]=b):b=T[29],T[30]!==N?(v=N("inputs.portable-text.action.edit-annotation-aria-label"),T[30]=N,T[31]=v):v=T[31],T[32]!==G||T[33]!==v?
934(j=(0,a.jsx)(y.$n,{"aria-label":v,"data-testid":"edit-annotation-button",icon:C.qUP,mode:"bleed",onClick:G,ref:Y,tabIndex:0,tooltipProps:null}),T[32]=G,T[33]=v,T[34]=j):j=T[34],T[35]!==N?(w=N("inputs.portable-text.action.remove-annotation-aria-label"),T[35]=N,T[36]=w):w=T[36],T[37]!==X||T[38]!==w?(_=(0,a.jsx)(y.$n,{"aria-label":w,"data-testid":"remove-annotation-button",icon:C.ucK,mode:"bleed",onClick:X,ref:H,tabIndex:0,tone:"critical",tooltipProps:null}),T[37]=X,T[38]=w,T[39]=_):_=T[39],T[40]!==b||T[41]!==j||T[42]!==_?(k=(0,a.jsx)(u.az,{padding:1,"data-testid":"annotation-toolbar-popover",children:(0,a.jsxs)(u.so,{gap:1,children:[b,j,_]})}),T[40]=b,T[41]=j,T[42]=_,T[43]=k):k=T[43],T[44]!==J||T[45]!==$||T[46]!==R||T[47]!==U||T[48]!==z||T[49]!==k?(S=(0,a.jsx)(y.AM,{open:R,floatingBoundary:$,constrainSize:!0,content:k,fallbackPlacements:vi,placement:"top",portal:!0,preventOverflow:!0,referenceBoundary:z,referenceElement:J,scheme:U}),T[44]=J,T[45]=$,T[46]=R,T[47]=U,T[48]=z,T[49]=k,T[50]=S):S=T[50],S}function vo(e){let{children:t,editorNodeFocused:n,floatingBoundary:r,focused:i,onItemClose:o,onItemOpen:d,onPathFocus:c,path:u,readOnly:p,referenceBoundary:m,renderAnnotation:h,renderBlock:f,renderCustomMarkers:g,renderField:C,renderInlineBlock:x,renderInput:b,renderItem:v,renderPreview:j,schemaType:w,selected:_,setElementRef:k,value:S}=e,{Markers:T=oD}=o$().__internal.components,I=(0,ng.v$)(),E=(0,s.useMemo)(()=>u.slice(0,u.length-2).concat(["markDefs",{_key:S._key}]),[u,S._key]),[$,A]=(0,s.useState)(null),D=ve(aB(E)),{validation:z}=oO(D?.node),M=oV(u),P=(0,s.useMemo)(()=>(0,a.jsx)("span",{"data-annotation":"",children:t}),[t]),R=(0,s.useCallback)(()=>{D&&(ng.Og.blur(I),d(D.node.path))},[I,D,d]),O=(0,s.useCallback)(()=>{o(),ow(S)&&ng.Og.removeAnnotation(I,w),ng.Og.focus(I)},[I,o,w,S]),V=(0,s.useCallback)(()=>{ng.Og.removeAnnotation(I,w),ng.Og.focus(I)},[I,w]),L=(0,s.useMemo)(()=>z.length>0||M.length>0?(0,a.jsx)(y.m_,{placement:"bottom",portal:"default",content:(0,a.jsx)(vr,{children:(0,a.jsx)(T,{markers:M,renderCustomMarkers:g,validation:z})}),children:P}):void 0,[T,M,g,P,z]),F=oE(u,!0),B=(0,s.useMemo)(()=>F.filter(e=>(0,l.n4)(e.path,u)),[u,F]),N=!!D?.member.open,Y=D?.input,H=D?.node.path||i_,Z=(0,s.useMemo)(()=>({__unstable_floatingBoundary:r,__unstable_referenceBoundary:m,__unstable_referenceElement:$,__unstable_textElementFocus:n,children:Y,focused:i,markers:M,onClose:O,onOpen:R,onPathFocus:c,onRemove:V,open:N,parentSchemaType:I.schemaTypes.block,path:H,presence:B,readOnly:!!p,renderAnnotation:h,renderBlock:f,renderField:C,renderInlineBlock:x,renderInput:b,renderPreview:j,renderItem:v,renderDefault:vl,schemaType:w,selected:_,textElement:L||P,validation:z,value:S}),[I.schemaTypes.block,n,r,i,Y,N,M,L,H,O,R,c,V,p,m,$,h,f,C,x,b,v,j,B,w,_,P,z,S]),U=w.components?.annotation,q=(0,s.useCallback)(e=>{D&&k({key:D.member.key,elementRef:e}),A(e)},[D,k,A]);return(0,s.useMemo)(()=>(0,a.jsx)("span",{ref:q,style:void 0,children:U?(0,a.jsx)(U,{...Z}):(0,a.jsx)(vl,{...Z})}),[U,Z,q])}let vl=e=>{let t,n,r,i,l=(0,o.c)(25),{__unstable_floatingBoundary:s,__unstable_referenceBoundary:d,__unstable_referenceElement:c,children:u,markers:p,onOpen:m,onRemove:h,open:f,readOnly:g,schemaType:C,selected:y,textElement:x,validation:b}=e,v="link"===C.name,j=b.some(vs),w=b.some(vd),_=p.length>0,k=!!u,{t:S}=iJ();e:{if(j){t="critical";break e}if(w){t="caution";break e}if(v){t="primary";break e}t="default"}let T=t;l[0]!==S?(n=S("inputs.portable-text.annotation-aria-label"),l[0]=S,l[1]=n):n=l[1];let I=v?"":void 0,E=j?"":void 0,$=w?"":void 0,A=_||void 0,D=g?m:void 0;return l[2]!==s||l[3]!==k||l[4]!==m||l[5]!==h||l[6]!==f||l[7]!==d||l[8]!==c||l[9]!==C.i18nTitleKey||l[10]!==C.name||l[11]!==C.title||l[12]!==y||l[13]!==S?(r=k&&(0,a.jsx)(va,{annotationOpen:f,floatingBoundary:s,onOpenAnnotation:m,onRemoveAnnotation:h,referenceBoundary:d,referenceElement:c,annotationTextSelected:y,title:C.i18nTitleKey?S(C.i18nTitleKey):C.title||C.name}),l[2]=s,l[3]=k,l[4]=m,l[5]=h,l[6]=f,l[7]=d,l[8]=c,l[9]=C.i18nTitleKey,l[10]=C.name,l[11]=C.title,l[12]=y,l[13]=S,l[14]=r):r=l[14],l[15]!==n||l[16]!==I||l[17]!==E||l[18]!==$||l[19]!==A||l[20]!==D||l[21]!==r||l[22]!==x||l[23]!==T?(i=(0,a.jsxs)(vn,{$toneKey:T,"aria-label":n,"data-link":I,"data-error":E,"data-warning":$,"data-markers":A,onClick:D,children:[x,r]}),l[15]=n,l[16]=I,l[17]=E,l[18]=$,l[19]=A,l[20]=D,l[21]=r,l[22]=x,l[23]=T,l[24]=i):i=l[24],i};function vs(e){return"error"===e.level}function vd(e){return"warning"===e.level}let vc=(0,s.memo)(function(e){let t,n,r=(0,o.c)(6),{children:i}=e,{store:l,snapshot:s}=y1();return r[0]!==i||r[1]!==s?(t=(0,a.jsx)(c.VN.Provider,{value:s,children:i}),r[0]=i,r[1]=s,r[2]=t):t=r[2],r[3]!==l||r[4]!==t?(n=(0,a.jsx)(c._x.Provider,{value:l,children:t}),r[3]=l,r[4]=t,r[5]=n):n=r[5],n}),vu=[];function vp(){let e=(0,s.useContext)(c.VN);return null===e?(console.warn(Error('No context provided for reporter. Make sure that the component calling "useChangeIndicatorsReportedValues()", is wrapped inside a <ChangeIndicatorsTracker> element')),vu):e}
934let vm=(e,t,n)=>{let r=(0,s.useContext)(c._x);null===r&&console.warn(Error('No context provided for reporter. Make sure that the component calling "useChangeIndicatorsReporter()", is wrapped inside a <ChangeIndicatorsTracker> element')),y2(r,e,t,n)};function vh(){let e,t=(0,o.c)(2),n=vp();t[0]!==n?(e=n.filter(vg).sort(vf),t[0]=n,t[1]=e):e=t[1];let r=e[0];if(r){let[,e]=r;return e}}function vf(e,t){return t[1].path.length-e[1].path.length}function vg(e){let[,t]=e;return t.hasHover}function vC(){return(0,s.useContext)(c.DA)}function vy(e){let t,n,r,i=(0,o.c)(9),{children:l,activePath:s,EditReferenceLinkComponent:d,onEditReference:u,initialValueTemplateItems:p,disableNew:m}=e;return i[0]!==d||i[1]!==s||i[2]!==m||i[3]!==p||i[4]!==u?(n={activePath:s,EditReferenceLinkComponent:d,onEditReference:u,initialValueTemplateItems:p,disableNew:m},i[0]=d,i[1]=s,i[2]=m,i[3]=p,i[4]=u,i[5]=n):n=i[5],t=n,i[6]!==l||i[7]!==t?(r=(0,a.jsx)(c.DA.Provider,{value:t,children:l}),i[6]=l,i[7]=t,i[8]=r):r=i[8],r}function vx(e){let t,n,r,i=(0,o.c)(5);return i[0]!==e.id?(n={id:e.id},i[0]=e.id,i[1]=n):n=i[1],t=n,i[2]!==e.children||i[3]!==t?(r=(0,a.jsx)(c.k5.Provider,{value:t,children:e.children}),i[2]=e.children,i[3]=t,i[4]=r):r=i[4],r}function vb(){let e,t=(0,o.c)(2),n=function(){let e=(0,s.useContext)(c.k5);if(!e)throw Error("useDocumentId must be used within a DocumentIdProvider");return e.id}();return t[0]!==n?(e=ib(n),t[0]=n,t[1]=e):e=t[1],e}function vv(e,t){return xZ(t,(0,s.useCallback)((t,n)=>{e.current&&!t&&n&&(0,nk.A)(e.current,{scrollMode:"always"})},[e]))}function vj(e){let t,n,r,i,l,d,c=(0,o.c)(27),u=(0,s.useRef)(null),{schemaType:p,path:m,open:h,inputId:f,children:g,inputProps:C}=e;c[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],c[0]=t):t=c[0];let[y,x]=(0,s.useState)(t),b=vb();vv(u,h),c[1]===Symbol.for("react.memo_cache_sentinel")?(n=(e,t)=>{!e&&t&&u.current&&u.current.focus()},c[1]=n):n=c[1],xZ(C.focused,n),c[2]!==b||c[3]!==m||c[4]!==e.actions||c[5]!==p?(r=b&&e.actions&&e.actions.length>0&&(0,a.jsx)(dP,{actions:e.actions,documentId:b,documentType:p.name,onActions:x,path:m,schemaType:p}),c[2]=b,c[3]=m,c[4]=e.actions,c[5]=p,c[6]=r):r=c[6];let v=!!e.inputProps.focused;return c[7]!==g||c[8]!==y||c[9]!==f||c[10]!==e.__internal_comments||c[11]!==e.__internal_slot||c[12]!==e.description||c[13]!==e.level||c[14]!==e.presence||c[15]!==e.schemaType.deprecated||c[16]!==e.title||c[17]!==e.validation?(i=(0,a.jsx)(xR,{__internal_comments:e.__internal_comments,__internal_slot:e.__internal_slot,__unstable_headerActions:y,__unstable_presence:e.presence,description:e.description,inputId:f,level:e.level,title:e.title,validation:e.validation,deprecated:e.schemaType.deprecated,children:g}),c[7]=g,c[8]=y,c[9]=f,c[10]=e.__internal_comments,c[11]=e.__internal_slot,c[12]=e.description,c[13]=e.level,c[14]=e.presence,c[15]=e.schemaType.deprecated,c[16]=e.title,c[17]=e.validation,c[18]=i):i=c[18],c[19]!==y||c[20]!==m||c[21]!==v||c[22]!==i?(l=(0,a.jsx)(dM,{actions:y,focused:v,path:m,children:i}),c[19]=y,c[20]=m,c[21]=v,c[22]=i,c[23]=l):l=c[23],c[24]!==r||c[25]!==l?(d=(0,a.jsxs)(a.Fragment,{children:[r,l]}),c[24]=r,c[25]=l,c[26]=d):d=c[26],d}function vw(e,t){return ni(e.options,t)}let v_=["array","file","image","reference","slug"],vk=["asset","crop","hotspot","_ref","_weak","media"],vS=["tags"],vT=["slug"];function vI(e,t){if(!e||t.has(e))return[];t.add(e);let n=e.type?vI(e.type,t):[];return[e,...n]}let vE=[];function v$(e){let t,n,r,i,l=(0,o.c)(20),d=vb(),[c,u]=(0,s.useState)(vE),p=!!e.inputProps.focused;l[0]!==d||l[1]!==e.actions||l[2]!==e.path||l[3]!==e.schemaType?(t=d&&e.actions&&e.actions.length>0&&(0,a.jsx)(dP,{actions:e.actions,documentId:d,documentType:e.schemaType.name,onActions:u,path:e.path,schemaType:e.schemaType}),l[0]=d,l[1]=e.actions,l[2]=e.path,l[3]=e.schemaType,l[4]=t):t=l[4];let m=!!e.inputProps.focused;return l[5]!==e.__internal_comments||l[6]!==e.__internal_slot||l[7]!==e.children||l[8]!==e.path||l[9]!==c||l[10]!==p?(n=(0,a.jsx)(dM,{__internal_slot:e.__internal_slot,__internal_comments:e.__internal_comments,actions:c,focused:p,path:e.path,children:e.children}),l[5]=e.__internal_comments,l[6]=e.__internal_slot,l[7]=e.children,l[8]=e.path,l[9]=c,l[10]=p,l[11]=n):n=l[11],l[12]!==e.inputProps.changed||l[13]!==e.path||l[14]!==m||l[15]!==n?(r=(0,a.jsx)(El,{hasFocus:m,isChanged:e.inputProps.changed,path:e.path,children:n}),l[12]=e.inputProps.changed,l[13]=e.path,l[14]=m,l[15]=n,l[16]=r):r=l[16],l[17]!==t||l[18]!==r?(i=(0,a.jsxs)(a.Fragment,{children:[t,r]}),l[17]=t,l[18]=r,l[19]=i):i=l[19],i}
934function vA(e){let t,n,r,i=(0,o.c)(15),l=vb(),[d,c]=(0,s.useState)(vE),u=!!e.inputProps.focused;return i[0]!==l||i[1]!==e.actions||i[2]!==e.path||i[3]!==e.schemaType?(t=l&&e.actions&&e.actions.length>0&&(0,a.jsx)(dP,{actions:e.actions,documentId:l,documentType:e.schemaType.name,onActions:c,path:e.path,schemaType:e.schemaType}),i[0]=l,i[1]=e.actions,i[2]=e.path,i[3]=e.schemaType,i[4]=t):t=i[4],i[5]!==e.__internal_comments||i[6]!==e.__internal_slot||i[7]!==e.children||i[8]!==e.path||i[9]!==d||i[10]!==u?(n=(0,a.jsx)(dM,{__internal_slot:e.__internal_slot,__internal_comments:e.__internal_comments,actions:d,focused:u,path:e.path,children:e.children}),i[5]=e.__internal_comments,i[6]=e.__internal_slot,i[7]=e.children,i[8]=e.path,i[9]=d,i[10]=u,i[11]=n):n=i[11],i[12]!==t||i[13]!==n?(r=(0,a.jsxs)(a.Fragment,{children:[t,n]}),i[12]=t,i[13]=n,i[14]=r):r=i[14],r}function vD(e){let t,n,r,i,l,d,c=(0,o.c)(35),[u,p]=(0,s.useState)(vE),m=vb(),h=!!e.inputProps.focused;c[0]!==m||c[1]!==e.actions||c[2]!==e.path||c[3]!==e.schemaType?(t=m&&e.actions&&e.actions.length>0&&(0,a.jsx)(dP,{actions:e.actions,documentId:m,documentType:e.schemaType.name,onActions:p,path:e.path,schemaType:e.schemaType}),c[0]=m,c[1]=e.actions,c[2]=e.path,c[3]=e.schemaType,c[4]=t):t=c[4];let f=`field-${e.inputId}`;return c[5]!==e.children||c[6]!==e.inputProps.changed||c[7]!==e.path||c[8]!==h?(n=(0,a.jsx)(El,{hasFocus:h,isChanged:e.inputProps.changed,path:e.path,children:e.children}),c[5]=e.children,c[6]=e.inputProps.changed,c[7]=e.path,c[8]=h,c[9]=n):n=c[9],c[10]!==e.__internal_comments||c[11]!==e.__internal_slot||c[12]!==e.description||c[13]!==e.inputId||c[14]!==e.level||c[15]!==e.presence||c[16]!==e.schemaType.deprecated||c[17]!==e.title||c[18]!==e.validation||c[19]!==u||c[20]!==n?(r=(0,a.jsx)(xR,{__internal_slot:e.__internal_slot,__internal_comments:e.__internal_comments,__unstable_headerActions:u,__unstable_presence:e.presence,description:e.description,inputId:e.inputId,level:e.level,title:e.title,validation:e.validation,deprecated:e.schemaType.deprecated,children:n}),c[10]=e.__internal_comments,c[11]=e.__internal_slot,c[12]=e.description,c[13]=e.inputId,c[14]=e.level,c[15]=e.presence,c[16]=e.schemaType.deprecated,c[17]=e.title,c[18]=e.validation,c[19]=u,c[20]=n,c[21]=r):r=c[21],c[22]!==f||c[23]!==r?(i=(0,a.jsx)("div",{"data-testid":f,children:r}),c[22]=f,c[23]=r,c[24]=i):i=c[24],c[25]!==e.__internal_comments||c[26]!==e.__internal_slot||c[27]!==e.path||c[28]!==u||c[29]!==h||c[30]!==i?(l=(0,a.jsx)(dM,{__internal_slot:e.__internal_slot,__internal_comments:e.__internal_comments,actions:u,focused:h,path:e.path,children:i}),c[25]=e.__internal_comments,c[26]=e.__internal_slot,c[27]=e.path,c[28]=u,c[29]=h,c[30]=i,c[31]=l):l=c[31],c[32]!==t||c[33]!==l?(d=(0,a.jsxs)(a.Fragment,{children:[t,l]}),c[32]=t,c[33]=l,c[34]=d):d=c[34],d}function vz(e){let t,n,r,i,l,d,c=(0,o.c)(36),[u,p]=(0,s.useState)(vE),m=vb(),h=!!e.inputProps.focused,f=e.schemaType.options?.disableActions||vE;c[0]!==f||c[1]!==e.actions?(n=e.actions?.filter(e=>"pasteField"===e.name?!f.includes("add"):"copyField"!==e.name||!f.includes("copy")),c[0]=f,c[1]=e.actions,c[2]=n):n=c[2],t=n,c[3]!==t||c[4]!==m||c[5]!==e.actions||c[6]!==e.path||c[7]!==e.schemaType?(r=m&&e.actions&&e.actions.length>0&&(0,a.jsx)(dP,{actions:t||vE,documentId:m,documentType:e.schemaType.name,onActions:p,path:e.path,schemaType:e.schemaType}),c[3]=t,c[4]=m,c[5]=e.actions,c[6]=e.path,c[7]=e.schemaType,c[8]=r):r=c[8];let g=`field-${e.inputId}`;return c[9]!==e.__internal_comments||c[10]!==e.__internal_slot||c[11]!==e.children||c[12]!==e.collapsed||c[13]!==e.collapsible||c[14]!==e.description||c[15]!==e.inputId||c[16]!==e.level||c[17]!==e.onCollapse||c[18]!==e.onExpand||c[19]!==e.presence||c[20]!==e.schemaType.deprecated||c[21]!==e.title||c[22]!==e.validation||c[23]!==u||c[24]!==g?(i=(0,a.jsx)(xH,{__internal_comments:e.__internal_comments,__internal_slot:e.__internal_slot,__unstable_headerActions:u,__unstable_presence:e.presence,collapsed:e.collapsed,collapsible:e.collapsible,"data-testid":g,description:e.description,level:e.level,onCollapse:e.onCollapse,onExpand:e.onExpand,title:e.title,validation:e.validation,inputId:e.inputId,deprecated:e.schemaType.deprecated,children:e.children}),c[9]=e.__internal_comments,c[10]=e.__internal_slot,c[11]=e.children,c[12]=e.collapsed,c[13]=e.collapsible,c[14]=e.description,c[15]=e.inputId,c[16]=e.level,c[17]=e.onCollapse,c[18]=e.onExpand,c[19]=e.presence,c[20]=e.schemaType.deprecated,c[21]=e.title,c[22]=e.validation,c[23]=u,c[24]=g,c[25]=i):i=c[25],c[26]!==e.__internal_comments||c[27]!==e.__internal_slot||c[28]!==e.path||c[29]!==u||c[30]!==h||c[31]!==i?(l=(0,a.jsx)(dM,{__internal_slot:e.__internal_slot,__internal_comments:e.__internal_comments,actions:u,focused:h,path:e.path,children:i}),c[26]=e.__internal_comments,c[27]=e.__internal_slot,c[28]=e.path,c[29]=u,c[30]=h,c[31]=i,c[32]=l):l=c[32],c[33]!==r||c[34]!==l?(d=(0,a.jsxs)(a.Fragment,{children:[r,l]}),c[33]=r,c[34]=l,c[35]=d):d=c[35],d}
934function vM(e){let t,n,r,i,l,d=(0,o.c)(32),[c,u]=(0,s.useState)(vE),p=vb(),m=!!e.inputProps.focused;if(d[0]!==e.inputProps.members||d[1]!==e.presence){let n=e.inputProps.members.find(vP);t=n?.open?e.presence:e.presence.concat(n?.field.presence||vE),d[0]=e.inputProps.members,d[1]=e.presence,d[2]=t}else t=d[2];let h=t;return d[3]!==p||d[4]!==e.actions||d[5]!==e.path||d[6]!==e.schemaType?(n=p&&e.actions&&e.actions.length>0&&(0,a.jsx)(dP,{actions:e.actions,documentId:p,documentType:e.schemaType.name,onActions:u,path:e.path,schemaType:e.schemaType}),d[3]=p,d[4]=e.actions,d[5]=e.path,d[6]=e.schemaType,d[7]=n):n=d[7],d[8]!==e.__internal_comments||d[9]!==e.__internal_slot||d[10]!==e.children||d[11]!==e.collapsed||d[12]!==e.collapsible||d[13]!==e.description||d[14]!==e.inputId||d[15]!==e.level||d[16]!==e.onCollapse||d[17]!==e.onExpand||d[18]!==e.schemaType.deprecated||d[19]!==e.title||d[20]!==e.validation||d[21]!==c||d[22]!==h?(r=(0,a.jsx)(xH,{__internal_comments:e.__internal_comments,__internal_slot:e.__internal_slot,__unstable_headerActions:c,__unstable_presence:h,collapsed:e.collapsed,collapsible:e.collapsible,description:e.description,level:e.level,onCollapse:e.onCollapse,onExpand:e.onExpand,title:e.title,validation:e.validation,inputId:e.inputId,deprecated:e.schemaType.deprecated,children:e.children}),d[8]=e.__internal_comments,d[9]=e.__internal_slot,d[10]=e.children,d[11]=e.collapsed,d[12]=e.collapsible,d[13]=e.description,d[14]=e.inputId,d[15]=e.level,d[16]=e.onCollapse,d[17]=e.onExpand,d[18]=e.schemaType.deprecated,d[19]=e.title,d[20]=e.validation,d[21]=c,d[22]=h,d[23]=r):r=d[23],d[24]!==e.path||d[25]!==c||d[26]!==m||d[27]!==r?(i=(0,a.jsx)(dM,{actions:c,focused:m,path:e.path,children:r}),d[24]=e.path,d[25]=c,d[26]=m,d[27]=r,d[28]=i):i=d[28],d[29]!==n||d[30]!==i?(l=(0,a.jsxs)(a.Fragment,{children:[n,i]}),d[29]=n,d[30]=i,d[31]=l):l=d[31],l}function vP(e){return"field"===e.kind&&"hotspot"===e.name}function vR(e){if(e.components?.field)return e.components.field;if((0,_.oV)(e))return v$;if((0,_.XK)(e))return vA;let t=vI(e,new Set);return t.some(e=>"image"===e.name||"file"===e.name)?vM:t.some(e=>(0,_.P3)(e))||t.some(e=>"slug"===e.name)?vD:t.some(e=>(0,_.do)(e))?vj:"object"!==e.jsonType&&"array"!==e.jsonType?vD:vz}let vO=(0,g.AH)`
935  grid-template-columns: minmax(0px, 1fr);
936`,vV=(0,g.AH)`
937  grid-template-columns: 1fr min-content;
938`,vL=(0,g.I4)(u.xA)(e=>e.$narrow?vO:vV),vF=(0,s.forwardRef)(function(e,t){let n,r,i=(0,o.c)(6),[l,d]=(0,s.use
938State)(null);i[0]!==t?(n=e=>{var n,r;n=t,r=e,"function"==typeof n?n(r):n&&(n.current=r),d(e)},i[0]=t,i[1]=n):n=i[1];let c=n,u=480>((0,p.sQ)(l)?.width||480);return i[2]!==c||i[3]!==e.children||i[4]!==u?(r=(0,a.jsx)(vL,{ref:c,gap:1,$narrow:u,children:e.children}),i[2]=c,i[3]=e.children,i[4]=u,i[5]=r):r=i[5],r}),vB={display:"inline-flex"},vN={width:"100%"},vY={portal:!0,tone:"default",constrainSize:!0,fallbackPlacements:["bottom","left","top"],placement:"right",preventOverflow:!0};function vH(e){let t,n,r,i,l,s,d=(0,o.c)(25);d[0]!==e?({createOptions:t,onCreate:i,id:n,menuRef:r,...l}=e,d[0]=e,d[1]=t,d[2]=n,d[3]=r,d[4]=i,d[5]=l):(t=d[1],n=d[2],r=d[3],i=d[4],l=d[5]);let c=Cl(),{t:p}=iJ(),m=iW(t);if(!t.some(vZ)){let e,t,n,r;return d[6]!==c?(e=(0,a.jsx)(C6,{currentUser:c,context:"create-new-reference"}),d[6]=c,d[7]=e):e=d[7],d[8]!==p?(t=p("inputs.reference.action.create-new-document"),d[8]=p,d[9]=t):t=d[9],d[10]!==t?(n=(0,a.jsx)("div",{style:vB,children:(0,a.jsx)(y.$n,{text:t,mode:"ghost",disabled:!0,icon:C.REV,style:vN})}),d[10]=t,d[11]=n):n=d[11],d[12]!==e||d[13]!==n?(r=(0,a.jsx)(y.m_,{content:e,children:n}),d[12]=e,d[13]=n,d[14]=r):r=d[14],r}return d[15]!==t||d[16]!==c||d[17]!==m||d[18]!==n||d[19]!==r||d[20]!==i||d[21]!==e.readOnly||d[22]!==l||d[23]!==p?(s=t.length>1?(0,a.jsx)(y.IU,{button:(0,a.jsx)(y.$n,{...l,disabled:e.readOnly,text:p("inputs.reference.action.create-new-document-select"),mode:"ghost",icon:C.REV,size:"large"}),id:n,menu:(0,a.jsx)(u.W1,{ref:r,children:t.map(e=>(0,a.jsx)(y.m_,{disabled:e.permission.granted,content:(0,a.jsx)(C6,{currentUser:c,context:"create-document-type"}),portal:!0,children:(0,a.jsx)("div",{children:(0,a.jsx)(y.Dr,{disabled:!e.permission.granted,icon:e.icon,text:m(e).title,onClick:()=>i(e)})})},e.id))}),popover:vY}):(0,a.jsx)(y.$n,{...l,text:p("inputs.reference.action.create-new-document-select"),mode:"ghost",disabled:!t[0].permission.granted||e.readOnly,onClick:()=>i(t[0]),icon:C.REV,size:"large","data-testid":`create-new-document-select-${n}`}),d[15]=t,d[16]=c,d[17]=m,d[18]=n,d[19]=r,d[20]=i,d[21]=e.readOnly,d[22]=l,d[23]=p,d[24]=s):s=d[24],s}function vZ(e){return e.permission.granted}function vU(e){let{id:t,layout:n,refType:r,renderPreview:i,showTypeLabel:o}=e,l=cW(t),d=uK(t),c=(0,s.useMemo)(()=>({_id:t,_type:r.name}),[t,r.name]),p=(0,s.useMemo)(()=>({children:(0,a.jsx)(u.az,{paddingLeft:3,children:(0,a.jsxs)(u.cV,{space:3,children:[o&&(0,a.jsx)(u.Ex,{mode:"outline",children:r.title}),l&&l.length>0&&(0,a.jsx)(yG,{presence:l}),(0,a.jsx)(hR,{draft:d.draft,published:d.published,versions:d.versions})]})}),layout:n,schemaType:r,tooltip:(0,a.jsx)(etu,{draft:d.draft,published:d.published,versions:d.versions}),value:c}),[l,n,c,r,o,d.draft,d.published,d.versions]);return i(p)}let vq=()=>{},vJ={isLoading:!0,result:void 0,error:void 0,retry:vq},vW={isLoading:!1,result:void 0,error:void 0,retry:vq};
938function vK(e,t){let n,r,i=(0,o.c)(10),[a]=(0,s.useState)(vG),[l,d]=a;if(i[0]!==t||i[1]!==e||i[2]!==d||i[3]!==l){let n,a;i[5]!==e?(n=()=>e,i[5]=e,i[6]=n):n=i[6],i[7]!==t||i[8]!==d?(a=e=>e?t(e).pipe((0,E.T)(e=>({isLoading:!1,result:e,error:void 0,retry:d})),(0,Z.Z)(vJ),(0,M.W)(e=>(console.error(e),(0,k.of)({isLoading:!1,result:void 0,error:e,retry:d})))):(0,k.of)(vW),i[7]=t,i[8]=d,i[9]=a):a=i[9],r=(0,S.x)((0,k.of)(null),l).pipe((0,E.T)(n),(0,$.H)(a)),i[0]=t,i[1]=e,i[2]=d,i[3]=l,i[4]=r}else r=i[4];return n=r,(0,eH.J)(n,vJ)}function vG(){return(0,eZ.t)()}function vX(e){let t,n,r=(0,o.c)(28),{getReferenceInfo:i,id:l,renderPreview:s}=e,{isLoading:d,result:c,error:m}=vK(l,i),{t:h}=iJ();if(d){let e,t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(p.r5,{style:{maxWidth:320},radius:1,animated:!0}),r[0]=e):e=r[0],r[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsxs)(u.BJ,{space:2,padding:1,children:[e,(0,a.jsx)(p.r5,{style:{maxWidth:200},radius:1,size:1,animated:!0})]}),r[1]=t):t=r[1],t}if(m){let e,t,n;return r[2]!==h?(e=h("inputs.reference.error.failed-to-load-document-title"),r[2]=h,r[3]=e):e=r[3],r[4]!==m.message?(t=(0,a.jsx)(u.EY,{muted:!0,size:1,children:m.message}),r[4]=m.message,r[5]=t):t=r[5],r[6]!==e||r[7]!==t?(n=(0,a.jsx)(u.BJ,{space:2,padding:1,children:(0,a.jsx)(bR,{title:e,children:t})}),r[6]=e,r[7]=t,r[8]=n):n=r[8],n}if(!c)return null;if("PERMISSION_DENIED"===c.availability.reason){let e,t;return r[9]!==h?(e=h("inputs.reference.error.missing-read-permissions-description"),r[9]=h,r[10]=e):e=r[10],r[11]!==e?(t=(0,a.jsx)(u.BJ,{space:2,padding:1,children:e}),r[11]=e,r[12]=t):t=r[12],t}if(r[13]!==e.type.to||r[14]!==c.type){let n;r[16]!==c.type?(n=e=>e.name===c.type,r[16]=c.type,r[17]=n):n=r[17],t=e.type.to.find(n),r[13]=e.type.to,r[14]=c.type,r[15]=t}else t=r[15];let f=t;if(!f){let e,t;return r[18]!==c.type||r[19]!==h?(e=h("inputs.reference.error.invalid-search-result-type-title",{returnedType:c.type}),r[18]=c.type,r[19]=h,r[20]=e):e=r[20],r[21]!==e?(t=(0,a.jsx)(u.BJ,{space:2,padding:1,children:e}),r[21]=e,r[22]=t):t=r[22],t}return r[23]!==e.type.to.length||r[24]!==f||r[25]!==c||r[26]!==s?(n=c&&f&&(0,a.jsx)(vU,{id:c.id,layout:"default",refType:f,renderPreview:s,showTypeLabel:e.type.to.length>1}),r[23]=e.type.to.length,r[24]=f,r[25]=c,r[26]=s,r[27]=n):n=r[27],n}let vQ=(0,g.I4)(y.AM)`
939  & > div {
940    overflow: auto;
941    -webkit-overflow-scrolling: touch;
942  }
943`,v1=(0,g.I4)(u.EY)`
944  word-break: break-word;
945`,v2=["top-start","bottom-start"],v5=(0,s.forwardRef)(function(e,t){let n,r,i,l,s,d,c,m=(0,o.c)(18);m[0]!==e?({searchString:s,loading:n,portalRef:r,referenceElement:i,...l}=e,m[0]=e,m[1]=n,m[2]=r,m[3]=i,m[4]=l,m[5]=s):(n=m[1],r=m[2],i=m[3],l=m[4],s=m[5]);let{t:h}=iJ(),f=e.options&&e.options.length>0;m[6]!==f||m[7]!==n||m[8]!==r||m[9]!==i||m[10]!==s||m[11]!==h?(d=(e,t)=>{let{content:o,hidden:l,inputElement:d,onMouseEnter:c,onMouseLeave:p}=e;return(0,a.jsx)(vQ,{"data-testid":"autocomplete-popover",placement:"bottom-start",fallbackPlacements:v2,arrow:!1,constrainSize:!0,onMouseEnter:c,onMouseLeave:p,content:(0,a.jsx)("div",{ref:t,children:f?o:(0,a.jsx)(u.az,{padding:4,children:(0,a.jsx)(u.so,{align:"center",height:"fill",justify:"center",children:(0,a.jsx)(v1,{align:"center",muted:!0,children:(0,a.jsx)(an,{t:h,i18nKey:"inputs.reference.no-results-for-query",values:{searchTerm:s||""}})})})})}),open:!n&&!l,ref:r,portal:!0,referenceElement:i||d,matchReferenceWidth:!0})},m[6]=f,m[7]=n,m[8]=r,m[9]=i,m[10]=s,m[11]=h,m[12]=d):d=m[12];let g=d;return m[13]!==n||m[14]!==t||m[15]!==g||m[16]!==l?(c=(0,a.jsx)(p.jT,{...l,loading:n,ref:t,renderPopover:g}),m[13]=n,m[14]=t,m[15]=g,m[16]=l,m[17]=c):c=m[17],c});function v0(e){let t,n,r=(0,o.c)(66),{layout:i,referenceInfo:l,renderPreview:s,type:d,value:c,showTypeLabel:p}=e,m=void 0===i?"default":i,{t:h}=iJ();if(l.isLoading||l.error){let e;return r[0]!==m?(e=(0,a.jsx)(cU,{isPlaceholder:!0,layout:m}),r[0]=m,r[1]=e):e=r[1],e}if(l.result?.availability.reason==="NOT_FOUND"&&c._strengthenOnPublish){let e,t,n,i,o,l,h,f,g,C,y,x=d.to;if(r[2]!==m||r[3]!==s||r[4]!==d.to||r[5]!==c){h=Symbol.for("react.early_return_sentinel");e:{let p,f;if(r[13]!==c._strengthenOnPublish?.type?(p=e=>e.name===c?._strengthenOnPublish?.type,r[13]=c._strengthenOnPublish?.type,r[14]=p):p=r[14],!(n=x.find(p))){let e,t,n=c._ref,i=c._strengthenOnPublish?.type;r[15]!==d.to?(e=d.to.map(v3),r[15]=d.to,r[16]=e):e=r[16],r[17]!==i||r[18]!==e||r[19]!==c._ref?(t=(0,a.jsx)(v4,{documentId:n,actualType:i,declaredTypes:e}),r[17]=i,r[18]=e,r[19]=c._ref,r[20]=t):t=r[20],h=t;break e}r[21]!==c?(f=c._strengthenOnPublish?.type?{_id:c._ref,_type:c._strengthenOnPublish?.type}:c,r[21]=c,r[22]=f):f=r[22];let g=f;t=u.so,l="center",e=u.az,i=1,o=s({layout:m,schemaType:n,value:g,skipVisibilityCheck:!0})}r[2]=m,r[3]=s,r[4]=d.to,r[5]=c,r[6]=e,r[7]=t,r[8]=n,r[9]=i,r[10]=o,r[11]=l,r[12]=h}else e=r[6],t=r[7],n=r[8],i=r[9],o=r[10],l=r[11],h=r[12];return h!==Symbol.for("react.early_return_sentinel")?h:(r[23]!==e||r[24]!==i||r[25]!==o?(f=(0,a.jsx)(e,{flex:i,children:o}),r[23]=e,r[24]=i,r[25]=o,r[26]=f):f=r[26],r[27]!==n||r[28]!==p?(g=p&&(0,a.jsx)(u.Ex,{mode:"outline",children:n.title}),r[27]=n,r[28]=p,r[29]=g):g=r[29],r[30]!==g?(C=(0,a.jsx)(u.az,{children:(0,a.jsx)(u.cV,{space:4,children:g})}),r[30]=g,r[31]=C):C=r[31],r[32]!==t||r[33]!==l||r[34]!==f||r[35]!==C?(y=(0,a.jsxs)(t,{align:l,children:[f,C]}),r[32]=t,r[33]=l,r[34]=f,r[35]=C,r[36]=y):y=r[36],y)}let f=l.result.availability,g="NOT_FOUND"===f.reason,x="PERMISSION_DENIED"===f.reason;if(x||g){let e,t,n,i;return r[37]!==h?(e=h("inputs.reference.error.document-unavailable-title"),r[37]=h,r[38]=e):e=r[38],r[39]!==e?(t=(0,a.jsx)(u.az,{padding:1,children:(0,a.jsx)(u.so,{align:"center",children:(0,a.jsx)(u.az,{flex:1,paddingY:2,children:(0,a.jsx)(u.EY,{muted:!0,children:e})})})}),r[39]=e,r[40]=t):t=r[40],r[41]!==x||r[42]!==g||r[43]!==h||r[44]!==c?(n=x||g?(0,a.jsx)(u.az,{children:(0,a.jsx)(y.m_,{portal:!0,content:g?(0,a.jsx)(v8,{title:h("inputs.reference.error.nonexistent-document-title"),icon:C.V1u,children:(0,a.jsx)(an,{i18nKey:"inputs.reference.error.nonexistent-document-description",t:h,values:{documentId:c._ref}})}):(0,a.jsx)(v8,{title:h("inputs.reference.error.missing-read-permissions-title"),icon:C.VY$,children:h("inputs.reference.error.missing-read-permissions-description")}),children:(0,a.jsx)(ut,{tone:"default",children:(0,a.jsx)(C.V1u,{})})})}):null,r[41]=x,r[42]=g,r[43]=h,r[44]=c,r[45]=n):n=r[45],r[46]!==t||r[47]!==n?(i=(0,a.jsxs)(u.cV,{space:2,children:[t,n]}),r[46]=t,r[47]=n,r[48]=i):i=r[48],i}let b=l.result?.type;if(r[49]!==b||r[50]!==d.to){let e;r[52]!==b?(e=e=>
945e.name===b,r[52]=b,r[53]=e):e=r[53],t=d.to.find(e),r[49]=b,r[50]=d.to,r[51]=t}else t=r[51];let v=t;if(!v){let e,t,n=c._ref,i=b||"<unknown>";return r[54]!==d.to?(e=d.to.map(v7),r[54]=d.to,r[55]=e):e=r[55],r[56]!==i||r[57]!==e||r[58]!==c._ref?(t=(0,a.jsx)(v4,{documentId:n,actualType:i,declaredTypes:e}),r[56]=i,r[57]=e,r[58]=c._ref,r[59]=t):t=r[59],t}return r[60]!==m||r[61]!==v||r[62]!==s||r[63]!==p||r[64]!==c._ref?(n=(0,a.jsx)(vU,{id:c._ref,layout:m,refType:v,renderPreview:s,showTypeLabel:p}),r[60]=m,r[61]=v,r[62]=s,r[63]=p,r[64]=c._ref,r[65]=n):n=r[65],n}function v7(e){return e.name}function v3(e){return e.name}function v8(e){let t,n,r,i,l,s=(0,o.c)(12),d=e.icon;return s[0]!==d?(t=(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(d,{})}),s[0]=d,s[1]=t):t=s[1],s[2]!==e.title?(n=(0,a.jsx)(u.EY,{size:1,weight:"medium",children:e.title}),s[2]=e.title,s[3]=n):n=s[3],s[4]!==e.children?(r=(0,a.jsx)(u.az,{marginTop:3,children:(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:e.children})}),s[4]=e.children,s[5]=r):r=s[5],s[6]!==n||s[7]!==r?(i=(0,a.jsxs)(u.az,{flex:1,marginLeft:3,children:[n,r]}),s[6]=n,s[7]=r,s[8]=i):i=s[8],s[9]!==t||s[10]!==i?(l=(0,a.jsxs)(u.so,{children:[t,i]}),s[9]=t,s[10]=i,s[11]=l):l=s[11],l}function v4(e){let t,n,r,i,l,s,d,c,p=(0,o.c)(19),{declaredTypes:m,documentId:h,actualType:f}=e,{t:g}=iJ();return p[0]!==g?(t=g("inputs.reference.error.invalid-type-title"),p[0]=g,p[1]=t):t=p[1],p[2]!==t?(n=(0,a.jsx)(u.az,{padding:1,children:(0,a.jsx)(u.so,{align:"center",children:(0,a.jsx)(u.az,{flex:1,paddingY:2,children:(0,a.jsx)(u.EY,{muted:!0,children:t})})})}),p[2]=t,p[3]=n):n=p[3],p[4]!==f||p[5]!==h?(r={documentId:h,actualType:f},p[4]=f,p[5]=h,p[6]=r):r=p[6],p[7]!==m?(i={AllowedTypes:()=>(0,a.jsx)(v6,{values:m})},p[7]=m,p[8]=i):i=p[8],p[9]!==g||p[10]!==r||p[11]!==i?(l=(0,a.jsx)(u.BJ,{space:3,children:(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(an,{t:g,i18nKey:"inputs.reference.error.invalid-type-description",values:r,components:i})})}),p[9]=g,p[10]=r,p[11]=i,p[12]=l):l=p[12],p[13]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsx)(u.az,{padding:2,children:(0,a.jsx)(ut,{tone:"default",children:(0,a.jsx)(C.V1u,{})})}),p[13]=s):s=p[13],p[14]!==l?(d=(0,a.jsx)(u.az,{children:(0,a.jsx)(y.m_,{portal:!0,content:l,children:s})}),p[14]=l,p[15]=d):d=p[15],p[16]!==n||p[17]!==d?(c=(0,a.jsxs)(u.so,{align:"center",justify:"flex-start",children:[n,d]}),p[16]=n,p[17]=d,p[18]=c):c=p[18],c}function v6(e){let t,n,r,i,l=(0,o.c)(8);l[0]===Symbol.for("react.memo_cache_sentinel")?(t={type:"disjunction"},l[0]=t):t=l[0];let d=i5(t);if(l[1]!==d||l[2]!==e.values){let t=d.formatToParts(e.values);n=s.Fragment,r=t.map(v9),l[1]=d,l[2]=e.values,l[3]=n,l[4]=r}else n=l[3],r=l[4];return l[5]!==n||l[6]!==r?(i=(0,a.jsx)(n,{children:r}),l[5]=n,l[6]=r,l[7]=i):i=l[7],i}function v9(e){return"element"===e.type?(0,a.jsx)("code",{children:e.value},e.value):e.value}let je={warning:"caution",error:"critical",info:"positive"},jt={warning:(0,a.jsx)(C.sAQ,{}),error:(0,a.jsx)(C.YZv,{}),info:(0,a.jsx)(C.YzR,{})};function jn(e){let t,n,r,i,l,s,d,c=(0,o.c)(15);c[0]!==e?({children:t,status:r,title:i,...n}=e,c[0]=e,c[1]=t,c[2]=n,c[3]=r,c[4]=i):(t=c[1],n=c[2],r=c[3],i=c[4]);let p=void 0===r?"warning":r,m=je[p];return c[5]!==t||c[6]!==p||c[7]!==i?(l=t&&(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(uo,{icon:jt[p],title:i,children:(0,a.jsx)(u.az,{marginLeft:3,marginTop:3,children:t})})}),c[5]=t,c[6]=p,c[7]=i,c[8]=l):l=c[8],c[9]!==l?(s=(0,a.jsx)(u.so,{padding:1,children:l}),c[9]=l,c[10]=s):s=c[10],c[11]!==n||c[12]!==m||c[13]!==s?(d=(0,a.jsx)(u.Zp,{radius:2,tone:m,...n,"data-ui":"Alert",children:s}),c[11]=n,c[12]=m,c[13]=s,c[14]=d):d=c[14],d}function jr(e){let t,n,r,i,l,s,d=(0,o.c)(17),{schemaType:c,handleRemoveStrengthenOnPublish:p}=e,{t:m}=iJ(),h=c.weak?"inputs.reference.incomplete-reference.finalize-action-title":"inputs.reference.incomplete-reference.strengthen-action-title";d[0]!==m||d[1]!==h?(t=m(h),d[0]=m,d[1]=h,d[2]=t):t=d[2];let f=c.weak?"inputs.reference.incomplete-reference.finalize-action-description":"inputs.reference.incomplete-reference.strengthen-action-description";return d[3]!==m||d[4]!==f?(n=(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:(0,a.jsx)(an,{t:m,i18nKey:f})}),d[3]=m,d[4]=f,d[5]=n):n=d[5],d[6]!==m?(r=m("inputs.reference.incomplete-reference.strengthen-button-label"),d[6]=m,d[7]=r):r=d[7],d[8]!==p||d[9]!==r?(i=(0,a.jsx)(y.$n,{mode:"ghost",onClick:p,size:"large",text:r,tone:"positive"}),d[8]=p,d[9]=r,d[10]=i):i=d[10],d[11]!==n||d[12]!==i?(l=(0,a.jsxs)(u.BJ,{space:3,children:[n,i]}),d[11]=n,d[12]=i,d[13]=l):l=d[13],d[14]!==t||d[15]!==l?(s=(0,a.jsx)(jn,{padding:1,title:t,status:"info","data-testid":"alert-reference-published",children:l}),d[14]=t,d[15]=l,d[16]=s):s=d[16],s}let ji=(0,g.I4)(u.Zp)`
946  /* this is a hack to avoid layout jumps while previews are loading
947     there's probably better ways of solving this */
948  min-height: 33px;
949  position: relative;
950
951  /* TextWithTone uses its own logic to set color, and we therefore need */
952  /* to override this logic in order to set the correct color in different states */
953  &[data-selected],
954  &[data-pressed],
955  &:active {
956    [data-ui='TextWithTone'] {
957      color: inherit;
958    }
959  }
960`,ja=(0,s.forwardRef)(function(e,t){let n,r,i,l,s,d,c=(0,o.c)(13);c[0]!==e?({as:n,documentId:i,documentType:l,...r}=e,c[0]=e,c[1]=n,c[2]=r,c[3]=i,c[4]=l):(n=c[1],r=c[2],i=c[3],l=c[4]),c[5]!==n||c[6]!==i||c[7]!==l?(s=i&&l&&{"data-as":"a",forwardedAs:n,documentId:i,documentType:l},c[5]=n,c[6]=i,c[7]=l,c[8]=s):s=c[8];let u=s;return c[9]!==r||c[10]!==u||c[11]!==t?(d=(0,a.jsx)(ji,{...r,...u,"data-ui":"ReferenceLinkCard",ref:t}),c[9]=r,c[10]=u,c[11]=t,c[12]=d):d=c[12],d});
960function jo(e){let t,n,r,i,l,s,d=(0,o.c)(15),{errorMessage:c,onHandleRetry:p}=e,{t:m}=iJ();return d[0]!==m?(t=m("inputs.reference.metadata-error.title"),d[0]=m,d[1]=t):t=d[1],d[2]!==c?(n=(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:c}),d[2]=c,d[3]=n):n=d[3],d[4]!==m?(r=m("inputs.reference.metadata-error.retry-button-label"),d[4]=m,d[5]=r):r=d[5],d[6]!==p||d[7]!==r?(i=(0,a.jsx)(y.$n,{mode:"ghost",onClick:p,size:"large",text:r,tone:"primary"}),d[6]=p,d[7]=r,d[8]=i):i=d[8],d[9]!==n||d[10]!==i?(l=(0,a.jsxs)(u.BJ,{space:3,children:[n,i]}),d[9]=n,d[10]=i,d[11]=l):l=d[11],d[12]!==t||d[13]!==l?(s=(0,a.jsx)(jn,{padding:1,title:t,status:"warning","data-testid":"alert-reference-info-failed",children:l}),d[12]=t,d[13]=l,d[14]=s):s=d[14],s}function jl(e){let t,n,r,i,l,s,d,c,p=(0,o.c)(23),{actualStrength:m,handleFixStrengthMismatch:h}=e,f="weak"===m?"strong":"weak",{t:g}=iJ();p[0]!==g?(t=g("inputs.reference.strength-mismatch.title"),p[0]=g,p[1]=t):t=p[1];let C="weak"===m?"inputs.reference.strength-mismatch.is-weak-description":"inputs.reference.strength-mismatch.is-strong-description";p[2]!==g||p[3]!==C?(n=(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:(0,a.jsx)(an,{t:g,i18nKey:C})}),p[2]=g,p[3]=C,p[4]=n):n=p[4];let x="weak"===f?"inputs.reference.strength-mismatch.is-strong-consquences":"inputs.reference.strength-mismatch.is-weak-consquences";p[5]!==g||p[6]!==x?(r=g(x),p[5]=g,p[6]=x,p[7]=r):r=p[7],p[8]!==r?(i=(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:r}),p[8]=r,p[9]=i):i=p[9];let b="weak"===f?"inputs.reference.strength-mismatch.weaken-button-label":"inputs.reference.strength-mismatch.strengthen-button-label";return p[10]!==g||p[11]!==b?(l=g(b),p[10]=g,p[11]=b,p[12]=l):l=p[12],p[13]!==h||p[14]!==l?(s=(0,a.jsx)(y.$n,{mode:"ghost",onClick:h,size:"large",text:l,tone:"caution"}),p[13]=h,p[14]=l,p[15]=s):s=p[15],p[16]!==n||p[17]!==i||p[18]!==s?(d=(0,a.jsxs)(u.BJ,{space:3,children:[n,i,s]}),p[16]=n,p[17]=i,p[18]=s,p[19]=d):d=p[19],p[20]!==t||p[21]!==d?(c=(0,a.jsx)(jn,{padding:1,title:t,status:"warning","data-testid":"alert-reference-strength-mismatch",children:d}),p[20]=t,p[21]=d,p[22]=c):c=p[22],c}let js={available:!0,reason:"READABLE"},jd={available:!1,reason:"PERMISSION_DENIED"},jc={available:!1,reason:"NOT_FOUND"};function ju(e,t,n,{version:r,perspective:i}={}){let{publishedId:a,draftId:o,versionId:l}=iu(t,{version:r});return e.unstable_observeDocumentPairAvailability(t,{version:r}).pipe((0,z.n)(r=>{if(!r.draft.available&&!r.published.available&&!r.version?.available){let e=r.version?.reason==="PERMISSION_DENIED"||"PERMISSION_DENIED"===r.draft.reason||"PERMISSION_DENIED"===r.published.reason?jd:jc;return(0,k.of)({id:t,type:void 0,availability:e,isPublished:null,preview:{snapshot:null,original:null}})}return(0,eo.z)([e.observeDocumentTypeFromId(o),e.observeDocumentTypeFromId(a),...l?[e.observeDocumentTypeFromId(l)]:[]]).pipe((0,E.T)(([e,t,n])=>n||e||t)).pipe((0,z.n)(o=>{if(!o)return(0,k.of)({id:t,type:void 0,availability:{available:!0,reason:"READABLE"},isPublished:null,preview:{snapshot:null,original:null}});let l=n.to.find(e=>e.name===o);if(!l)return(0,k.of)({id:t,type:o,availability:{available:!0,reason:"READABLE"},isPublished:null,preview:{snapshot:null,original:null}});let s=e.observePaths({_id:a},["_rev"]).pipe((0,E.T)(e=>!!e?._rev)),d=D4(e,l,a,i);return(0,eo.z)([d,s]).pipe((0,E.T)(([e,t])=>({type:o,id:a,availability:r.version?.available||r.draft.available||r.published.available?js:r.version?.reason==="PERMISSION_DENIED"||"PERMISSION_DENIED"===r.draft.reason||"PERMISSION_DENIED"===r.published.reason?jd:jc,isPublished:t,preview:{snapshot:e.snapshot,original:e.original}})))}))}))}function jp(e){let{path:t,schemaType:n,version:r}=e,i=Cm(),d=oW(),c=z4(),{EditReferenceLinkComponent:u,onEditReference:p,activePath:m,initialValueTemplateItems:h,...f}=vC(),g=dJ([]),C=function(e){let t,n,r=(0,o.c)(3),i=(0,s.useRef)(e);return r[0]!==e?(t=()=>{i.current=e},n=[e],r[0]=e,r[1]=t,r[2]=n):(t=r[1],n=r[2]),(0,s.useEffect)(t,n),i}(g).current?._type,y=(0,s.useMemo)(()=>i.get(C)?.liveEdit,[C,i]),x=f.disableNew??n.options?.disableNew===!0,b=e.value?._strengthenOnPublish?.template,v=(0,s.useMemo)(()=>(0,s.forwardRef)(function(e,n){return u?(0,a.jsx)(u,{...e,ref:n,parentRefPath:t,template:b}):null}),[u,t,b]),j=(0,s.useCallback)(e=>{p?.({parentRefPath:t,id:e.id,type:e.type,template:e.template})},[p,t]),w=l.w1(t,m?.path||[])?m?.state:"none";return{selectedState:w,isCurrentDocumentLiveEdit:y,handleEditReference:j,EditReferenceLink:v,createOptions:(0,s.useMemo)(()=>x?[]:(h||[]).filter(e=>n.to.some(t=>t.name===e.template?.schemaType)).map(e=>e.template?.schemaType?{id:e.id,title:e.title||`${e.template.schemaType} from template ${e.template.id}`,type:e.template.schemaType,icon:e.icon,template:{id:e.template.id,params:e.parameters},permission:{granted:e.granted,reason:e.reason}}:void 0).filter(io),[x,h,n.to]),getReferenceInfo:(0,s.useCallback)(e=>ju(c,e,n,{version:r,perspective:d.perspectiveStack}),[c,n,r,d.perspectiveStack])}}let jm={portal:!0,tone:"default"};function jh(e){let t,n,r,i,l,d,c,p,m,h,f,g,x,b,v,j,w,_,k,S,T,I,E,$=(0,o.c)(80),A=(0,s.useRef)(null),{schemaType:D,path:z,children:M,focusPath:P}
960=e,{readOnly:R,focused:O,renderPreview:V,onChange:L,onPathFocus:F,id:B}=e,{selectedReleaseId:N}=oW();$[0]!==L?(t=()=>L(s3()),$[0]=L,$[1]=t):t=$[1];let Y=t,H=e.value;$[2]!==z||$[3]!==D||$[4]!==N||$[5]!==H?(n={path:z,schemaType:D,value:H,version:N},$[2]=z,$[3]=D,$[4]=N,$[5]=H,$[6]=n):n=$[6];let{EditReferenceLink:Z,getReferenceInfo:U,selectedState:q,isCurrentDocumentLiveEdit:J}=jp(n);$[7]===Symbol.for("react.memo_cache_sentinel")?(r=(e,t)=>{!e&&t&&A.current&&A.current.focus()},$[7]=r):r=$[7],xZ(O,r);let W=e.validation.some(jg),K=e.validation.some(jf),G=vK(H?._ref,U),X=G.result?.type||H?._strengthenOnPublish?.type;$[8]!==X||$[9]!==D.to?(i=X?D.to.find(e=>e.name===X):void 0,$[8]=X,$[9]=D.to,$[10]=i):i=$[10];let Q=i,ee="pressed"===q,et="selected"===q,en=H?._ref,er=en&&G.result?.isPublished;$[11]!==L||$[12]!==D.weak?(l=()=>{L([!0===D.weak?s7(!0,["_weak"]):s3(["_weak"]),s3(["_strengthenOnPublish"])])},$[11]=L,$[12]=D.weak,$[13]=l):l=$[13];let ei=l;$[14]!==L||$[15]!==D.weak?(d=()=>{L(!0===D.weak?s7(!0,["_weak"]):s3(["_weak"]))},$[14]=L,$[15]=D.weak,$[16]=d):d=$[16];let ea=d;$[17]!==F?(c=()=>{F(["_ref"])},$[17]=F,$[18]=c):c=$[18];let eo=c,el=H?._weak?"weak":"strong",es=!0===D.weak?"weak":"strong",ed=en&&!G.isLoading&&H?._strengthenOnPublish,ec=!G.isLoading&&G.result?.availability.available&&en&&el!==es&&!ed,eu=function({readOnly:e,hasErrors:t,hasWarnings:n}){return e?"transparent":t?"critical":n?"caution":"default"}({readOnly:R,hasErrors:W,hasWarnings:K}),ep=!H?._ref||"_ref"===P[0],{t:em}=iJ();$[19]!==ei||$[20]!==J||$[21]!==er||$[22]!==D||$[23]!==H?(p=J&&er&&H._strengthenOnPublish&&(0,a.jsx)(jr,{schemaType:D,handleRemoveStrengthenOnPublish:ei}),$[19]=ei,$[20]=J,$[21]=er,$[22]=D,$[23]=H,$[24]=p):p=$[24],$[25]!==el||$[26]!==ea||$[27]!==ec?(m=ec&&(0,a.jsx)(jl,{actualStrength:el,handleFixStrengthMismatch:ea}),$[25]=el,$[26]=ea,$[27]=ec,$[28]=m):m=$[28],$[29]!==G.error||$[30]!==G.retry?(h=G.error&&(0,a.jsx)(jo,{errorMessage:G.error.message,onHandleRetry:G.retry}),$[29]=G.error,$[30]=G.retry,$[31]=h):h=$[31],$[32]!==p||$[33]!==m||$[34]!==h?(f=(0,a.jsxs)(a.Fragment,{children:[p,m,h]}),$[32]=p,$[33]=m,$[34]=h,$[35]=f):f=$[35];let eh=f;$[36]!==Q?.name||$[37]!==H?._ref?(x=(0,s.forwardRef)(function(e,t){return(0,a.jsx)(tq.RZ,{...e,intent:"edit",params:{id:H?._ref,type:Q?.name},target:"_blank",rel:"noopener noreferrer",ref:t})}),$[36]=Q?.name,$[37]=H?._ref,$[38]=x):x=$[38],g=x,$[39]!==g||$[40]!==Y||$[41]!==eo||$[42]!==B||$[43]!==R||$[44]!==em||$[45]!==H?._ref?(b=()=>R?null:(0,a.jsx)(u.az,{flex:"none",children:(0,a.jsx)(y.IU,{button:(0,a.jsx)(rU,{}),id:`${B}-menuButton`,menu:(0,a.jsxs)(u.W1,{children:[!R&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.Dr,{text:em("inputs.reference.action.clear"),tone:"critical",icon:C.ucK,onClick:Y}),(0,a.jsx)(y.Dr,{text:em("inputs.reference.action.replace"),icon:C.Fjq,onClick:eo})]}),!R&&H?._ref&&(0,a.jsx)(u.Nj,{}),H?._ref&&(0,a.jsx)(y.Dr,{as:g,"data-as":"a",text:em("inputs.reference.action.open-in-new-tab"),icon:C.ZPM})]}),popover:jm})}),$[39]=g,$[40]=Y,$[41]=eo,$[42]=B,$[43]=R,$[44]=em,$[45]=H?._ref,$[46]=b):b=$[46],$[47]!==b?(v=b(),$[47]=b,$[48]=v):v=$[48];let ef=v;$[49]!==F?(j=e=>{e.target===A.current&&F(i_)},$[49]=F,$[50]=j):j=$[50];let eg=j;if(ep){let e;return $[51]!==M?(e=(0,a.jsx)(u.az,{children:M}),$[51]=M,$[52]=e):e=$[52],e}$[53]===Symbol.for("react.memo_cache_sentinel")?(w={lineHeight:0},$[53]=w):w=$[53];let eC=!!ee||void 0,ey=!!et||void 0,ex=H?._ref,eb=Q?.name;return $[54]!==G||$[55]!==V||$[56]!==D||$[57]!==H?(_=(0,a.jsx)(v0,{value:H,referenceInfo:G,renderPreview:V,type:D}),$[54]=G,$[55]=V,$[56]=D,$[57]=H,$[58]=_):_=$[58],$[59]!==Z||$[60]!==eg||$[61]!==ee||$[62]!==et||$[63]!==eC||$[64]!==ey||$[65]!==ex||$[66]!==eb||$[67]!==_?
960(k=(0,a.jsx)(ja,{__unstable_focusRing:!0,as:Z,"data-pressed":eC,"data-selected":ey,documentId:ex,documentType:eb,flex:1,pressed:ee,radius:2,ref:A,selected:et,tone:"inherit",onFocus:eg,children:_}),$[59]=Z,$[60]=eg,$[61]=ee,$[62]=et,$[63]=eC,$[64]=ey,$[65]=ex,$[66]=eb,$[67]=_,$[68]=k):k=$[68],$[69]!==ef?(S=(0,a.jsx)(u.az,{children:ef}),$[69]=ef,$[70]=S):S=$[70],$[71]!==k||$[72]!==S?(T=(0,a.jsx)(u.so,{gap:1,align:"center",style:w,children:(0,a.jsxs)(y.vE,{children:[k,S]})}),$[71]=k,$[72]=S,$[73]=T):T=$[73],$[74]!==eh||$[75]!==T?(I=(0,a.jsxs)(u.BJ,{space:1,children:[T,eh]}),$[74]=eh,$[75]=T,$[76]=I):I=$[76],$[77]!==I||$[78]!==eu?(E=(0,a.jsx)(u.Zp,{border:!0,radius:2,padding:1,tone:eu,children:I}),$[77]=I,$[78]=eu,$[79]=E):E=$[79],E}function jf(e){return"warning"===e.level}function jg(e){return"error"===e.level}let jC={hits:[],isLoading:!1},jy=()=>!0;function jx(e){return null!==e}function jb(e){let t,n,r,i,l,d,m,h,f,g,C,x,b,v,j,w,_,T,I,$,A,D,P,R,O,V=(0,o.c)(101),{createOptions:L,onChange:F,onEditReference:B,onSearch:N,schemaType:Y,readOnly:H,id:Z,onPathFocus:U,value:J,version:K,renderPreview:X,path:Q,elementProps:ee,focusPath:et}=e,{selectedReleaseId:en}=oW();V[0]!==Q||V[1]!==Y||V[2]!==J||V[3]!==K?(t={path:Q,schemaType:Y,value:J,version:K},V[0]=Q,V[1]=Y,V[2]=J,V[3]=K,V[4]=t):t=V[4];let{getReferenceInfo:er}=jp(t),[ei,ea]=(0,s.useState)(jC);V[5]!==F||V[6]!==B||V[7]!==U||V[8]!==Q||V[9]!==Y.name||V[10]!==Y.weak||V[11]!==en?(n=e=>{let t=(0,nA.A)(),n=typeof en>"u"?[s7(!0,["_weak"])]:[],r=[s7({type:e.type,weak:Y.weak,template:e.template},["_strengthenOnPublish"])];F([s5({}),s7(Y.name,["_type"]),s7(t,["_ref"])].concat(n,r).filter(io)),B({id:t,type:e.type,template:e.template,version:en}),U(Q)},V[5]=F,V[6]=B,V[7]=U,V[8]=Q,V[9]=Y.name,V[10]=Y.weak,V[11]=en,V[12]=n):n=V[12];let eo=n;V[13]!==F||V[14]!==U||V[15]!==Q||V[16]!==Y.name||V[17]!==Y.weak||V[18]!==ei.hits?(r=e=>{if(!e){F(s3()),U([]);return}let t=ei.hits.find(t=>t.id===e);if(!t)throw Error("Selected an item that wasnt part of the result set");F([s5({}),s7(Y.name,["_type"]),s7(ib(e),["_ref"]),t.published&&!Y.weak?s3(["_weak"]):s7(!0,["_weak"]),t.published?s3(["_strengthenOnPublish"]):s7({type:t?.type,weak:Y.weak},["_strengthenOnPublish"])].filter(io)),U(Q)},V[13]=F,V[14]=U,V[15]=Q,V[16]=Y.name,V[17]=Y.weak,V[18]=ei.hits,V[19]=r):r=V[19];let el=r;V[20]!==F?(i=()=>{F(s3())},V[20]=F,V[21]=i):i=V[21];let es=i;V[22]!==U||V[23]!==Q?(l=e=>{"Escape"===e.key&&U(Q)},V[22]=U,V[23]=Q,V[24]=l):l=V[24];
960let ed=l,ec=vK(J?._ref,er),[eu,ep]=(0,s.useState)(null),{push:em}=(0,p.dj)(),{t:eh}=iJ();V[25]!==Z||V[26]!==N||V[27]!==em||V[28]!==eh?(d=e=>e.pipe((0,q.p)(jx),(0,z.n)(e=>(0,S.x)((0,k.of)({isLoading:!0}),N(e).pipe((0,E.T)(t=>({hits:t,searchString:e,isLoading:!1})),(0,M.W)(e=>(em({title:eh("inputs.reference.error.search-failed-title"),description:e.message,status:"error",id:`reference-search-fail-${Z}`}),console.error(e),(0,k.of)({hits:[]})))))),(0,G.S)(jj,jC),(0,W.M)(ea)),V[25]=Z,V[26]=N,V[27]=em,V[28]=eh,V[29]=d):d=V[29];let ef=(0,eH.N)(d);V[30]!==ef?(m=()=>{ef("")},V[30]=ef,V[31]=m):m=V[31];let eg=m;V[32]!==U||V[33]!==Q?(h=e=>{"Escape"===e.key&&U(Q)},V[32]=U,V[33]=Q,V[34]=h):h=V[34];let eC=h;V[35]!==er||V[36]!==X||V[37]!==Y?(f=e=>{let t=e.hit.draft?._id||e.hit.published?._id||e.value;return(0,a.jsx)(etP,{forwardedAs:"button",type:"button",radius:2,tone:"inherit",children:(0,a.jsx)(vX,{getReferenceInfo:er,id:t,renderPreview:X,type:Y})})},V[35]=er,V[36]=X,V[37]=Y,V[38]=f):f=V[38];let ey=f;V[39]!==ec.result?.preview?.original?.title||V[40]!==ec.result?.preview?.snapshot?.title?(g=()=>ec.result?.preview?.snapshot?.title||ec.result?.preview?.original?.title||"",V[39]=ec.result?.preview?.original?.title,V[40]=ec.result?.preview?.snapshot?.title,V[41]=g):g=V[41];let ex=g;V[42]!==U?(C=()=>U(["_ref"]),V[42]=U,V[43]=C):C=V[43];let eb=C;V[44]!==eu||V[45]!==e.elementProps?(x=t=>{eu?.contains(t.relatedTarget)||e.elementProps.onBlur(t)},V[44]=eu,V[45]=e.elementProps,V[46]=x):x=V[46];let ev=x,ej=ec?.result?.availability?.reason==="NOT_FOUND"&&!J?._strengthenOnPublish&&J?._weak;V[47]!==ee?(b=(e,t)=>{!e&&t&&ee.ref.current?.focus()},V[47]=ee,V[48]=b):b=V[48],xZ(et?.[0]==="_ref",b),V[49]!==ei.hits?(j=ei.hits.map(jv),V[49]=ei.hits,V[50]=j):j=V[50],v=j;let ew=1===et.length&&"_ref"===et[0],{menuRef:e_,menuButtonRef:ek,containerRef:eS}=function(){let e=(0,o.c)(1),t=(0,s.useContext)(c.Re);if(!t){let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={menuRef:{current:null},menuButtonRef:{current:null},containerRef:{current:null}},e[0]=t):t=e[0],t}return t}(),eT=(0,s.useRef)(null),eI=(0,s.useRef)(null),eE=(0,s.useRef)(null);V[51]!==es||V[52]!==ew||V[53]!==ek.current||V[54]!==J?._ref?(w=!J?._ref&&(()=>{(ew||document.activeElement===ek.current)&&es()}),V[51]=es,V[52]=ew,V[53]=ek.current,V[54]=J?._ref,V[55]=w):w=V[55],V[56]!==eS.current||V[57]!==ek.current||V[58]!==e_.current?(_=()=>[e_.current,ek.current,eS.current,eT.current,eI.current,eE.current],V[56]=eS.current,V[57]=ek.current,V[58]=e_.current,V[59]=_):_=V[59],(0,u.PR)(w,_),V[60]!==es||V[61]!==ej||V[62]!==eh||V[63]!==J?(T=ej?(0,a.jsx)(bR,{"data-testid":"alert-nonexistent-document",title:eh("inputs.reference.error.nonexistent-document-title"),suffix:(0,a.jsx)(u.BJ,{padding:2,children:(0,a.jsx)(y.$n,{text:eh("inputs.reference.error.nonexistent-document.clear-button-label"),onClick:es})}),children:(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(an,{i18nKey:"inputs.reference.error.nonexistent-document-description",t:eh,values:{documentId:J._ref}})})}):null,V[60]=es,V[61]=ej,V[62]=eh,V[63]=J,V[64]=T):T=V[64];let e$=ei.isLoading;V[65]!==eh?(I=eh("inputs.reference.search-placeholder"),V[65]=eh,V[66]=I):I=V[66];let eA=ec.isLoading||H;V[67]!==eg?($={onClick:eg},V[67]=eg,V[68]=$):$=V[68];let eD=J?._ref;return V[69]!==eu||V[70]!==ee||V[71]!==ed||V[72]!==ev||V[73]!==el||V[74]!==eb||V[75]!==ef||V[76]!==v||V[77]!==ex||V[78]!==ei.isLoading||V[79]!==ei.searchString||V[80]!==I||V[81]!==eA||V[82]!==ey||V[83]!==$||V[84]!==eD?(A=(0,a.jsx)(v5,{...ee,onFocus:eb,onBlur:ev,"data-testid":"autocomplete",loading:e$,referenceElement:eu,options:v,radius:2,placeholder:I,onKeyDown:ed,readOnly:eA,onQueryChange:ef,searchString:ei.searchString,onChange:el,filterOption:jy,renderOption:ey,renderValue:ex,openButton:$,portalRef:eI,value:eD}),V[69]=eu,V[70]=ee,V[71]=ed,V[72]=ev,V[73]=el,V[74]=eb,V[75]=ef,V[76]=v,V[77]=ex,V[78]=ei.isLoading,V[79]=ei.searchString,V[80]=I,V[81]=eA,V[82]=ey,V[83]=$,V[84]=eD,V[85]=A):A=V[85],V[86]!==L||V[87]!==eC||V[88]!==eo||V[89]!==Z||V[90]!==H?(D=L.length>0&&(0,a.jsx)(vH,{id:`${Z}-selectTypeMenuButton`,readOnly:H,createOptions:L,onCreate:eo,onKeyDown:eC,menuRef:eE}),V[86]=L,V[87]=eC,V[88]=eo,V[89]=Z,V[90]=H,V[91]=D):D=V[91],V[92]!==A||V[93]!==D?(P=(0,a.jsxs)(vF,{ref:ep,children:[A,D]}),V[92]=A,V[93]=D,V[94]=P):P=V[94],V[95]!==T||V[96]!==P?(R=(0,a.jsx)(u.BJ,{space:1,"data-testid":"reference-input",ref:eT,children:(0,a.jsxs)(u.BJ,{space:2,children:[T,P]})}),V[95]=T,V[96]=P,V[97]=R):R=V[97],V[98]!==e||V[99]!==R?(O=(0,a.jsx)(jh,{...e,children:R}),V[98]=e,V[99]=R,V[100]=O):O=V[100],O}function jv(e){return{value:e.id,hit:e}}function jj(e,t){return{...e,...t}}async function jw(e,t,n,r){if(!e)return{};if("function"==typeof e.filter){let i=n.slice(0,-1),a=(0,l.Jt)(t,i);return await e.filter({document:t,parentPath:i,parent:a,getClient:r})}return{filter:e.filter,params:"filterParams"in e?e.filterParams:void 0}}function j_(e){let t=co(),n=t.getClient(a7),{perspectiveStack:r}=oW(),i=Cm(),d=hK(),c=z4(),{selectedReleaseId:u}=oW(),{path:p,schemaType:m}=e,{EditReferenceLinkComponent:h,onEditReference:f,activePath:g,initialValueTemplateItems:C,...y}=vC(),{strategy:x}=t.search,b=function(e){let t,n,r=(0,o.c)(3),i=(0,s.useRef)(e);return r[0]!==e?(t=()=>{i.current=e},n=[e],r[0]=e,r[1]=t,r[2]=n):(t=r[1],n=r[2]),(0,s.useEffect)(t,n),i}(dJ([])),v=b.current?._type,j=i.get(v),w=(0,s.useMemo)(()=>j?.liveEdit,[j]),_=y.disableNew??m.options?.disableNew===!0,S=t.getClient,T=(0,s.useCallback)(e=>(0,Q.H)(jw(m.options,b.current,p,S)).pipe((0,ew.Z)(({filter:t,params:i})=>{var a;return a={...m.options,filter:t,params:i,tag:"search.reference",maxFieldDepth:d,strategy:x,perspective:r},mT(m.to,n,{...a,maxDepth:a.maxFieldDepth||t7.ab})(e,{includeDrafts:!0}).pipe((0,E.T)(({hits:e})=>e.map(({hit:e})=>e)),(0,E.T)(e=>e.map(e=>({...e,_id:e._originalId||e._id}))),(0,E.T)(e=>iv(e)),(0,E.T)(e=>e.slice(0,100)),(0,ew.Z)(e=>{var t;return(0===(t=e.filter(e=>!e.draft||!e.published).map(e=>e.draft?e.id:im(e.id))).length?(0,k.of)([]):n.observable.fetch("*[_id in $ids]._id",{ids:t},{tag:"get-counterpart-ids"})).pipe((0,E.T)(t=>e.map(e=>{let n=im(e.id);return{id:e.id,type:e.type,draft:e.draft||t.includes(n)?{_id:n,_type:e.type}:void 0,published:e.published||t.includes(e.id)?{_id:e.id,_type:e.type}:void 0}})))}))}),(0,M.W)(e=>{let t=e.details&&"queryParseError"===e.details.type;return m.options?.filter&&t&&(e.message='Invalid reference filter, please check the custom "filter" option'),(0,L.$)(e)})),[m,b,p,S,n,d,x,r]),I=e.value?._strengthenOnPublish?.template,$=(0,s.useMemo)(()=>(0,s.forwardRef)(function(e,t){return h?(0,a.jsx)(h,{...e,ref:t,parentRefPath:p,template:I}):null}),[h,p,I]),A=(0,s.useCallback)(e=>{f?.({parentRefPath:p,id:e.id,type:e.type,template:e.template,version:e.version})},[f,p]),D=l.w1(p,g?.path||[])?g?.state:"none",z=(0,s.useMemo)(()=>_?[]:(C||[]).filter(e=>m.to.some(t=>t.name===e.template?.schemaType)).map(e=>e.template?.schemaType?{id:e.id,title:e.title||`${e.template.schemaType} from template ${e.template?.id}`,i18n:e.i18n,type:e.template.schemaType,icon:e.icon,template:{id:e.template?.id,params:e.parameters},permission:{granted:e.granted,reason:e.reason}}:void 0).filter(io),[_,C,m.to]),P=(0,s.useCallback)((e,t)=>ju(c,e,t),[c]);return(0,a.jsx)(jb,{...e,onSearch:T,liveEdit:w,getReferenceInfo:P,
960selectedState:D,editReferenceLinkComponent:$,createOptions:z,onEditReference:A,version:u})}let jk="moving",jS=(0,g.I4)(u.az)`
961  ${e=>e.$moving&&(0,g.AH)`
962      z-index: 10000;
963      /* prevents hover-effects etc on the dragged element  */
964      pointer-events: none;
965    `}
966`,jT={threshold:{x:0,y:.02}},jI={coordinateGetter:nu.JR},jE={duration:200,easing:"ease"},j$=(0,s.memo)(function(e){let t,n,r,i,l,s,d,c,p,m,h,f,g,C,y,x,b=(0,o.c)(29);b[0]!==e?({items:r,axis:t,onItemMove:i,onItemMoveStart:s,onItemMoveEnd:l,children:n,...d}=e,b[0]=e,b[1]=t,b[2]=n,b[3]=r,b[4]=i,b[5]=l,b[6]=s,b[7]=d):(t=b[1],n=b[2],r=b[3],i=b[4],l=b[5],s=b[6],d=b[7]);let v=(0,nd.FR)((0,nd.MS)(nd.AN),(0,nd.MS)(nd.uN,jI));b[8]!==i||b[9]!==l?(c=e=>{let{active:t,over:n}=e;t.id!==n?.id&&i?.({fromIndex:t.data.current?.sortable?.index,toIndex:n?.data.current?.sortable?.index}),l?.()},b[8]=i,b[9]=l,b[10]=c):c=b[10];let j=c;return b[11]===Symbol.for("react.memo_cache_sentinel")?(x={y:4},m=({containerNodeRect:e,draggingNodeRect:t,transform:n})=>t&&e?function(e,t,n,r){let i={...e},a=r.y,o=r.x||0;return t.top+i.y<=n.top+a?i.y=n.top-t.top+a:t.bottom+i.y>=n.top+n.height-a&&(i.y=n.top+n.height-t.bottom-a),t.left+i.x<=n.left-o?i.x=n.left-t.left+o:t.right+i.x>=n.left+n.width+o&&(i.x=n.left+n.width-t.right+o),i}(n,t,e,x):n,b[11]=m):m=b[11],b[12]!==t?(h=[m,...t?["x"===t?nc.dU:nc.FN]:[]],b[12]=t,b[13]=h):h=b[13],p=h,b[14]!==t?(f=t?"x"===t?nu.m$:nu._G:void 0,b[14]=t,b[15]=f):f=b[15],b[16]!==n||b[17]!==d?(g=(0,a.jsx)(u.xA,{...d,children:n}),b[16]=n,b[17]=d,b[18]=g):g=b[18],b[19]!==r||b[20]!==f||b[21]!==g?(C=(0,a.jsx)(nu.gB,{items:r,strategy:f,children:g}),b[19]=r,b[20]=f,b[21]=g,b[22]=C):C=b[22],b[23]!==j||b[24]!==p||b[25]!==s||b[26]!==v||b[27]!==C?(y=(0,a.jsx)(nd.Mp,{sensors:v,autoScroll:jT,modifiers:p,c
966ollisionDetection:nd.fp,onDragEnd:j,onDragStart:s,children:C}),b[23]=j,b[24]=p,b[25]=s,b[26]=v,b[27]=C,b[28]=y):y=b[28],y}),jA=(0,s.forwardRef)(function(e,t){let n,r,i,l,s,d,c=(0,o.c)(19),{id:u,children:p,disableTransition:m}=e,h=m?null:jE;c[0]!==u||c[1]!==h?(n={id:u,transition:h},c[0]=u,c[1]=h,c[2]=n):n=c[2];let{setNodeRef:f,transform:g,transition:C,active:y}=(0,nu.gl)(n),x=u===y?.id;c[3]!==g?(i=np.Ks.Translate.toString(g),c[3]=g,c[4]=i):i=c[4];let b=y?"none":void 0;c[5]!==i||c[6]!==b||c[7]!==C?(l={transform:i,transition:C,pointerEvents:b},c[5]=i,c[6]=b,c[7]=C,c[8]=l):l=c[8],r=l,c[9]!==t||c[10]!==f?(s=e=>{f(e),"function"==typeof t?t(e):t&&(t.current=e)},c[9]=t,c[10]=f,c[11]=s):s=c[11];let v=s,j=x?jk:"",w=e["data-index"];return c[12]!==p||c[13]!==x||c[14]!==v||c[15]!==r||c[16]!==j||c[17]!==w?(d=(0,a.jsx)(jS,{ref:v,style:r,$moving:x,className:j,"data-index":w,children:p}),c[12]=p,c[13]=x,c[14]=v,c[15]=r,c[16]=j,c[17]=w,c[18]=d):d=c[18],d});function jD(e){let t,n,r,i,l,s,d,c=(0,o.c)(14);c[0]!==e?({onItemMove:t,onItemMoveEnd:n,onItemMoveStart:r,sortable:l,...i}=e,c[0]=e,c[1]=t,c[2]=n,c[3]=r,c[4]=i,c[5]=l):(t=c[1],n=c[2],r=c[3],i=c[4],l=c[5]),c[6]!==t?(s=e=>{t?.(e)},c[6]=t,c[7]=s):s=c[7];let p=s;return c[8]!==p||c[9]!==n||c[10]!==r||c[11]!==i||c[12]!==l?(d=l?(0,a.jsx)(j$,{onItemMove:p,onItemMoveStart:r,onItemMoveEnd:n,...i}):(0,a.jsx)(u.xA,{...i}),c[8]=p,c[9]=n,c[10]=r,c[11]=i,c[12]=l,c[13]=d):d=c[13],d}let jz=(0,s.forwardRef)(function(e,t){let n,r,i,l,s=(0,o.c)(10);return s[0]!==e?({sortable:r,...n}=e,s[0]=e,s[1]=n,s[2]=r):(n=s[1],r=s[2]),s[3]!==t||s[4]!==n||s[5]!==r?(i=r?(0,a.jsx)(jA,{ref:t,...n}):(0,a.jsx)(jS,{ref:t,...n}),s[3]=t,s[4]=n,s[5]=r,s[6]=i):i=s[6],s[7]!==e.id||s[8]!==i?(l=(0,a.jsx)(c.KH.Provider,{value:e.id,children:i}),s[7]=e.id,s[8]=i,s[9]=l):l=s[9],l});function jM(e){return`inset 0 0 0 ${e.width}px ${e.color}`}function jP(e){let{base:t,border:n,focusRing:r}=e,i=r.offset+r.width,a=0-r.offset,o=t?t.bg:"var(--card-bg-color)";return[a>0&&`inset 0 0 0 ${a}px var(--card-focus-ring-color)`,n&&jM(n),a<0&&`0 0 0 ${0-a}px ${o}`,i>0&&`0 0 0 ${i}px var(--card-focus-ring-color)`].filter(Boolean).join(",")}function jR(e){return(0,g.I4)(e)(e=>{let{$border:t,$radius:n}=e,{card:r,color:i,radius:a}=(0,tZ.JW)(e.theme),o={width:+!!t,color:"var(--card-border-color)"};return(0,g.AH)`
967        --card-focus-box-shadow: ${jM(o)};
968
969        border-radius: ${(0,u.D0)(a[n??1])};
970        outline: none;
971        box-shadow: var(--card-focus-box-shadow);
972
973        &:focus {
974          --card-focus-box-shadow: ${jP({border:o,base:i,focusRing:{...r.focusRing,offset:0}})};
975        }
976      `})}function jO(e){return e.files&&e.files.length>0?Promise.resolve(Array.from(e.files||[])):jL(Array.from(e.items||[])).then(e2)}function jV(e){return null===e?[]:[e]}function jL(e){return Promise.all(e.map(e=>{if("file"===e.kind&&e.webkitGetAsEntry){let t;try{t=e.webkitGetAsEntry()}catch{return jV(e.getAsFile())}return t?t.isDirectory?function e(t){if(t.isFile)return new Promise((e,n)=>t.file(e,n)).then(e=>[e]);if(t.isDirectory){let n=t.createReader();return new Promise((e,t)=>n.readEntries(e,t)).then(e=>e.filter(e=>!e.name.startsWith("."))).then(t=>Promise.all(t.map(e)).then(e2))}return Promise.resolve([])}(t):jV(e.getAsFile()):[]}if("file"===e.kind){let t=e.getAsFile();return Promise.resolve(t?[t]:[])}return"string"===e.kind?console.warn('DataTransfer with kind="string" is currently not supported'):console.warn("Unknown DataTransferItem.kind: %s",e.kind),Promise.resolve([])}))}function jF(e){return"application/portable-text"===e.type||"application/x-portable-text"===e.type}let jB={"data-is-file-target":"true"},jN={opacity:0,position:"absolute"};function jY(e){return(0,s.forwardRef)(function(t,n){let r,i,l,d,c,u,p,m,h,f,g,C,y,x,b,v,j,w,_,k=(0,o.c)(40);k[0]!==t?({onFiles:i,onFilesOver:d,onFilesOut:l,disabled:r,...c}=t,k[0]=t,k[1]=r,k[2]=i,k[3]=l,k[4]=d,k[5]=c):(r=k[1],i=k[2],l=k[3],d=k[4],c=k[5]);let[S,T]=(0,s.useState)(!1),I=(0,s.useRef)(null),E=(0,s.useRef)(null);k[6]===Symbol.for("react.memo_cache_sentinel")?(u=()=>E.current,k[6]=u):u=k[6],(0,s.useImperativeHandle)(n,u),k[7]===Symbol.for("react.memo_cache_sentinel")?(p=[],k[7]=p):p=k[7];let $=(0,s.useRef)(p);k[8]!==i?(m=e=>{i?.(e)},k[8]=i,k[9]=m):m=k[9];let A=m;k[10]===Symbol.for("react.memo_cache_sentinel")?(h=e=>{e.target===E.current&&(e.ctrlKey||e.metaKey)&&"v"===e.key&&T(!0)},k[10]=h):h=k[10];let D=h;k[11]!==A?(f=e=>{jO(e.clipboardData).then(e=>I.current?e.length>0?e:function(e,t="image/jpeg"){return e.isContentEditable?new Promise(e=>setTimeout(e,10)).then(()=>Array.from(e.querySelectorAll("img"))).then(t=>(e.innerHTML="",t)).then(e=>Promise.all(e.map(e=>(function(e,t="image/jpeg",n=1){return e.match(/^webkit-fake-url:\/\//)?Promise.reject(Error("Cannot read image contents from webkit fake url")):new Promise((r,i)=>{let a=new Image;
976a.crossOrigin="anonymous",a.referrerPolicy="strict-origin-when-cross-origin",a.onload=()=>{let e=document.createElement("canvas");e.width=a.width,e.height=a.height,e.getContext("2d")?.drawImage(a,0,0,e.width,e.height);try{e.toBlob(r,t,n)}catch(e){i(e)}},a.src=e})})(e.src)))).then(e=>e.map(e=>new File([e],"pasted-image.jpg",{type:t}))):Promise.reject(Error(`Expected element to be contentEditable="true". Instead found a non contenteditable ${e.tagName}`))}(I.current,"image/jpeg"):[]).then(e=>{A(e),T(!1),E.current?.focus()})},k[11]=A,k[12]=f):f=k[12];let z=f;k[13]!==A||k[14]!==i||k[15]!==l?(g=e=>{if($.current=[],Array.from(e.dataTransfer.items).map(jH).some(jZ))return;e.preventDefault(),e.stopPropagation();let t=e.nativeEvent.dataTransfer;i&&t&&(function(e){let t=Array.from(e.files||[]),n=Array.from(e.items||[]);return t&&t.length>0?Promise.resolve(t):jL(n).then(e2)})(t).then(e=>{e&&A(e)}),l?.()},k[13]=A,k[14]=i,k[15]=l,k[16]=g):g=k[16];let M=g;k[17]!==i?(C=e=>{i&&(Array.from(e.dataTransfer.items).map(jU).some(jq)||(e.preventDefault(),e.stopPropagation()))},k[17]=i,k[18]=C):C=k[18];let P=C;k[19]!==d?(y=e=>{let t=Array.from(e.dataTransfer.items).map(jJ);t.some(jW)||(e.stopPropagation(),d&&E.current===e.currentTarget&&($.current=[...new Set($.current),e.currentTarget],d(t)))},k[19]=d,k[20]=y):y=k[20];let R=y;k[21]!==l?(x=e=>{if(Array.from(e.dataTransfer.items).map(jK).some(jG))return;e.stopPropagation();let t=$.current.indexOf(e.currentTarget);t>-1&&$.current.splice(t,1),0===$.current.length&&l?.()},k[21]=l,k[22]=x):x=k[22];let O=x,V=(0,s.useRef)(!1);k[23]!==S?(v=()=>{!V.current&&S&&I.current?(I.current.focus(),function(e){let t=document.createRange();t.selectNodeContents(e);let n=window.getSelection();n?.removeAllRanges(),n?.addRange(t)}
976(I.current)):V.current&&!S&&I.current?.focus(),V.current=S},b=[S],k[23]=S,k[24]=b,k[25]=v):(b=k[24],v=k[25]),(0,s.useEffect)(v,b);let L=c,F=r?void 0:D,B=r?void 0:P,N=r?void 0:R,Y=r?void 0:O,H=r?void 0:M;return k[26]!==L||k[27]!==F||k[28]!==B||k[29]!==N||k[30]!==Y||k[31]!==H?(j=(0,a.jsx)(e,{...L,ref:E,onKeyDown:F,onDragOver:B,onDragEnter:N,onDragLeave:Y,onDrop:H,"data-test-id":"file-target",...jB}),k[26]=L,k[27]=F,k[28]=B,k[29]=N,k[30]=Y,k[31]=H,k[32]=j):j=k[32],k[33]!==r||k[34]!==z||k[35]!==S?(w=!r&&S&&(0,a.jsx)("div",{contentEditable:!0,onPaste:z,ref:I,style:jN}),k[33]=r,k[34]=z,k[35]=S,k[36]=w):w=k[36],k[37]!==j||k[38]!==w?(_=(0,a.jsxs)(a.Fragment,{children:[j,w]}),k[37]=j,k[38]=w,k[39]=_):_=k[39],_})}function jH(e){return{type:e.type,kind:e.kind}}function jZ(e){return jF(e)}function jU(e){return{type:e.type,kind:e.kind}}function jq(e){return jF(e)}function jJ(e){return{type:e.type,kind:e.kind}}function jW(e){return jF(e)}function jK(e){return{type:e.type,kind:e.kind}}function jG(e){return jF(e)}function jX(e){let t,n,r=(0,o.c)(5),{hoveringFiles:i,types:l,resolveUploader:s}=e;r[0]!==s||r[1]!==l?(t=e=>l.some(t=>s(t,e)),r[0]=s,r[1]=l,r[2]=t):t=r[2];let d=i.filter(t),c=i.length-d.length,p=l.length>1,{t:m}=iJ(),h=d.length>0?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(u.cV,{space:2,children:[(0,a.jsx)(u.EY,{children:(0,a.jsx)(C.JMY,{})}),p?m("inputs.files.common.drop-message.drop-to-upload-multi",{count:d.length}):m("inputs.files.common.drop-message.drop-to-upload"),(0,a.jsx)(u.EY,{})]}),c>0&&(0,a.jsx)(u.az,{marginTop:4,children:(0,a.jsxs)(u.cV,{space:2,children:[(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(C.VY$,{})}),(0,a.jsx)(u.EY,{muted:!0,size:1,children:m("inputs.files.common.drop-message.drop-to-upload.rejected-file-message",{count:c})})]})})]}):(0,a.jsxs)(u.cV,{space:2,children:[(0,a.jsx)(u.EY,{children:(0,a.jsx)(C.VY$,{})}),(0,a.jsx)(u.EY,{children:m("inputs.files.common.drop-message.drop-to-upload.no-accepted-file-message",{count:i.length})})]});return r[3]!==h?(n=(0,a.jsx)(a.Fragment,{children:h}),r[3]=h,r[4]=n):n=r[4],n}let jQ=(0,g.I4)(u.Wd)`
977  position: absolute;
978  display: flex;
979  flex-direction: column;
980  align-items: center;
981  justify-content: center;
982  top: -2px;
983  left: -2px;
984  right: -2px;
985  bottom: -2px;
986  background-color: var(--card-bg-color);
987  opacity: 0.8;
988`,j1=g.I4.div`
989  position: relative;
990`;function j2(e){return e.uploaderCandidates.length>0}function j5(e){return 0===e.uploaderCandidates.length}function j0(e,t){return(0,a.jsxs)(u.so,{gap:2,padding:2,children:[(0,a.jsx)(u.az,{children:(0,a.jsx)(u.EY,{weight:"medium",children:e.file.name})}),(0,a.jsx)(u.az,{children:(0,a.jsxs)(u.EY,{size:1,children:["(",e.file.type,")"]})})]},t)}function j7(e){return e.uploader.priority}let j3=jR(function(e){let t=jY(e);return(0,s.forwardRef)(function(e,n){let r,i,l,d,c,u,m,h,f,g,C,y=(0,o.c)(26);y[0]!==e?({children:r,resolveUploader:l,onUpload:i,types:c,...d}=e,y[0]=e,y[1]=r,y[2]=i,y[3]=l,y[4]=d,y[5]=c):(r=y[1],i=y[2],l=y[3],d=y[4],c=y[5]);let{push:x}=(0,p.dj)(),{t:b}=iJ();y[6]!==i?(u=(e,t)=>{let{type:n,uploader:r}=t;i?.({file:e,schemaType:n,uploader:r})},y[6]=i,y[7]=u):u=y[7];let v=u;y[8]!==x||y[9]!==l||y[10]!==b||y[11]!==c||y[12]!==v?(m=e=>{if(!l)return;let t=e.map(e=>{var t,n;return{file:e,uploaderCandidates:(t=c,n=l,t.map(t=>({type:t,uploader:n(t,e)})).filter(e=>e.uploader))}}),n=t.filter(j2),r=t.filter(j5);r.length>0&&x({closable:!0,status:"warning",title:b("inputs.array.error.cannot-upload-unable-to-convert",{count:r.length}),description:r.map(j0)}),n.forEach(e=>{v(e.file,tG(e.uploaderCandidates,j7)[0])})},y[8]=x,y[9]=l,y[10]=b,y[11]=c,y[12]=v,y[13]=m):m=y[13];let j=m;y[14]===Symbol.for("react.memo_cache_sentinel")?(h=[],y[14]=h):h=y[14];let[w,_]=(0,s.useState)(h);y[15]===Symbol.for("react.memo_cache_sentinel")?(f=()=>_([]),y[15]=f):f=y[15];let k=f;return y[16]!==w||y[17]!==l||y[18]!==c?(g=l&&w.length>0&&(0,a.jsx)(jQ,{zOffset:10,children:(0,a.jsx)(jX,{hoveringFiles:w,types:c,resolveUploader:l})}),y[16]=w,y[17]=l,y[18]=c,y[19]=g):g=y[19],y[20]!==r||y[21]!==n||y[22]!==j||y[23]!==d||y[24]!==g?(C=(0,a.jsx)(j1,{children:(0,a.jsxs)(t,{...d,ref:n,onFiles:j,onFilesOver:_,onFilesOut:k,children:[g,r]})}),y[20]=r,y[21]=n,y[22]=j,y[23]=d,y[24]=g,y[25]=C):C=y[25],C})}((0,g.I4)(u.Zp)`
991  height: 100%;
992`));function j8(e,t){return"toggle"===t.type?{open:!e.open}:{open:!1}}function j4(e){let t,n,r,i,l,d,c,p,m,h,f,g=(0,o.c)(22);g[0]===Symbol.for("react.memo_cache_sentinel")?(t={open:!1},g[0]=t):t=g[0];let[C,x]=(0,s.useReducer)(j8,t),b=(0,s.useRef)(null),v=e.popoverProps.referenceElement??null;g[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>x({type:"close"}),g[1]=n):n=g[1],g[2]!==v?(r=()=>[b.current,v],g[2]=v,g[3]=r):r=g[3],(0,u.PR)(n,r),g[4]!==v||g[5]!==C.open?(i=e=>{"Escape"===e.key&&C.open&&(x({type:"close"}),v?.focus())},g[4]=v,g[5]=C.open,g[6]=i):i=g[6],(0,u.Pm)(i),g[7]!==e.insertMenuProps?({onSelect:d,...l}=e.insertMenuProps,g[7]=e.insertMenuProps,g[8]=l,g[9]=d):(l=g[8],d=g[9]),g[10]!==d?(c=e=>{d(e),x({type:"close"})},g[10]=d,g[11]=c):c=g[11];let j=c;return g[12]!==j||g[13]!==l?(m=(0,a.jsx)(j6,{...l,onSelect:j}
992),g[12]=j,g[13]=l,g[14]=m):m=g[14],g[15]!==e.popoverProps||g[16]!==C.open||g[17]!==m?(h=(0,a.jsx)(y.AM,{ref:b,open:C.open,constrainSize:!0,overflow:"hidden",portal:!0,content:m,...e.popoverProps}),g[15]=e.popoverProps,g[16]=C.open,g[17]=m,g[18]=h):h=g[18],p=h,g[19]!==p||g[20]!==C?(f={popover:p,state:C,send:x},g[19]=p,g[20]=C,g[21]=f):f=g[21],f}function j6(e){let t,n,r,i,l,s,d,c=(0,o.c)(19),{t:u}=iJ();return c[0]!==u?(t=u("inputs.array.insert-menu.filter.all-items"),c[0]=u,c[1]=t):t=c[1],c[2]!==u?(n=u("inputs.array.insert-menu.search.no-results"),c[2]=u,c[3]=n):n=c[3],c[4]!==u?(r=u("inputs.array.insert-menu.search.placeholder"),c[4]=u,c[5]=r):r=c[5],c[6]!==u?(i=u("inputs.array.insert-menu.toggle-grid-view.tooltip"),c[6]=u,c[7]=i):i=c[7],c[8]!==u?(l=u("inputs.array.insert-menu.toggle-list-view.tooltip"),c[8]=u,c[9]=l):l=c[9],c[10]!==t||c[11]!==n||c[12]!==r||c[13]!==i||c[14]!==l?(s={"insert-menu.filter.all-items":t,"insert-menu.search.no-results":n,"insert-menu.search.placeholder":r,"insert-menu.toggle-grid-view.tooltip":i,"insert-menu.toggle-list-view.tooltip":l},c[10]=t,c[11]=n,c[12]=r,c[13]=i,c[14]=l,c[15]=s):s=c[15],c[16]!==e||c[17]!==s?(d=(0,a.jsx)(rh.Z,{...e,labels:s}),c[16]=e,c[17]=s,c[18]=d):d=c[18],d}function j9(e){let t,n,r,i,l,d,c,p,m,h,f,g,x=(0,o.c)(41),{schemaType:b,readOnly:v,children:j,onValueCreate:w,onItemAppend:_}=e,{t:k}=iJ(),[S,T]=(0,s.useState)(null),[I,E]=(0,s.useState)(null);x[0]!==_||x[1]!==w?(t=e=>{_(w(e))},x[0]=_,x[1]=w,x[2]=t):t=x[2];let $=t;x[3]!==$||x[4]!==b.of[0]?(n=()=>{$(b.of[0])},x[3]=$,x[4]=b.of[0],x[5]=n):n=x[5];let A=n,D=b.of.length>1?"inputs.array.action.add-item-select-type":"inputs.array.action.add-item";x[6]!==D||x[7]!==k?(r=k(D),x[6]=D,x[7]=k,x[8]=r):r=x[8],x[9]!==r?(i={icon:C.REV,mode:"ghost",size:"large",text:r},x[9]=r,x[10]=i):i=x[10];let z=i,M=e.schemaType.options?.insertMenu;x[11]!==$||x[12]!==e.schemaType.of||x[13]!==M?(l={...M,schemaTypes:e.schemaType.of,onSelect:$},x[11]=$,x[12]=e.schemaType.of,x[13]=M,x[14]=l):l=x[14],x[15]===Symbol.for("react.memo_cache_sentinel")?(d=["top"],x[15]=d):d=x[15],x[16]!==e.schemaType.options?.insertMenu?.views?(c=e.schemaType.options?.insertMenu?.views?.some(we),x[16]=e.schemaType.options?.insertMenu?.views,x[17]=c):c=x[17],x[18]!==S||x[19]!==I||x[20]!==c?(p={placement:"bottom",fallbackPlacements:d,matchReferenceWidth:c,referenceBoundary:S,referenceElement:I},x[18]=S,x[19]=I,x[20]=c,x[21]=p):p=x[21],x[22]!==l||x[23]!==p?(m={insertMenuProps:l,popoverProps:p},x[22]=l,x[23]=p,x[24]=m):m=x[24];let P=j4(m);if(b.options?.disableActions?.includes("add"))return null;if(v){let e,t,n;return x[25]!==k?(e=k("inputs.array.read-only-label"),x[25]=k,x[26]=e):e=x[26],x[27]!==z?(t=(0,a.jsx)(u.xA,{children:(0,a.jsx)(y.$n,{...z,"data-testid":"add-read-object-button",disabled:!0})}),x[27]=z,x[28]=t):t=x[28],x[29]!==e||x[30]!==t?(n=(0,a.jsx)(y.m_,{portal:!0,content:e,children:t}),x[29]=e,x[30]=t,x[31]=n):n=x[31],n}return x[32]===Symbol.for("react.memo_cache_sentinel")?(h={gridTemplateColumns:"repeat(auto-fit, minmax(100px, 1fr))"},x[32]=h):h=x[32],x[33]!==A||x[34]!==z||x[35]!==P||x[36]!==b.of.length?(f=1===b.of.length?(0,a.jsx)(y.$n,{...z,onClick:A,"data-testid":"add-single-object-button"}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.$n,{...z,"data-testid":"add-multiple-object-button",selected:P.state.open,onClick:()=>{P.send({type:"toggle"})},ref:E}),P.popover]}),x[33]=A,x[34]=z,x[35]=P,x[36]=b.of.length,x[37]=f):f=x[37],x[38]!==j||x[39]!==f?(g=(0,a.jsxs)(u.xA,{ref:T,gap:1,style:h,children:[f,j]}),x[38]=j,x[39]=f,x[40]=g):g=x[40],g}function we(e){return"grid"===e.name}let wt=(0,g.I4)(y.$n)(e=>{let{$grid:t,disabled:n}=e;return n?(0,g.AH)``:(0,g.AH)`
993    cursor: ${t?"move":"ns-resize"};
994  `}),wn=function(e){let t,n,r,i,l,d,u,p,m=(0,o.c)(20),h=(0,s.useContext)(c.KH);m[0]!==e?({mode:r,readOnly:t,...n}=e,m[0]=e,m[1]=t,m[2]=n,m[3]=r):(t=m[1],n=m[2],r=m[3]);let f=void 0===r?"bleed":r;m[4]!==h||m[5]!==t?(i={id:h,disabled:t},m[4]=h,m[5]=t,m[6]=i):i=m[6];let{listeners:g,attributes:y}=(0,nu.gl)(i),{t:x}=iJ();m[7]!==x?(l=x("inputs.array.action.drag.tooltip"),m[7]=x,m[8]=l):l=m[8],m[9]===Symbol.for("react.memo_cache_sentinel")?(d={open:1e3},m[9]=d):d=m[9];let b=!!t;return m[10]!==l||m[11]!==b?(u={content:l,delay:d,disabled:b},m[10]=l,m[11]=b,m[12]=u):u=m[12],m[13]!==y||m[14]!==g||m[15]!==f||m[16]!==t||m[17]!==n||m[18]!==u?(p=(0,a.jsx)(wt,{icon:C.GG1,tooltipProps:u,mode:f,"data-ui":"DragHandleButton",...n,...y,...g,disabled:t}),m[13]=y,m[14]=g,m[15]=f,m[16]=t,m[17]=n,m[18]=u,m[19]=p):p=m[19],p},wr=(0,g.I4)(u.so)`
995  min-height: 33px;
996`,wi=(0,g.I4)(u.so)`
997  position: absolute;
998  top: 0;
999  right: 0;
1000  height: 33px;
1001`,wa=(0,g.I4)(u.Zp)`
1002  position: absolute;
1003  top: 0;
1004  left: 0;
1005`,wo=(0,g.I4)(u.Zp)`
1006  transition: border-color 250ms;
1007  box-sizing: border-box;
1008  position: relative;
1009
1010  @media (hover: hover) {
1011    ${wa} {
1012      opacity: 0;
1013    }
1014
1015    &:hover,
1016    &:focus-within {
1017      ${wa} {
1018        opacity: 1;
1019      }
1020    }
1021  }
1022
1023  .${jk} & {
1024    box-shadow:
1025      0 0 0 0,
1026      0 8px 17px 2px var(--card-shadow-umbra-color),
1027      0 3px 14px 2px var(--card-shadow-penumbra-color),
1028      0 5px 5px -3px var(--card-shadow-ambient-color);
1029  }
1030
1031  &[aria-selected='true'] {
1032    box-shadow: 0 0 0 2px var(--card-focus-ring-color);
1033  }
1034`;function wl(e){let t,n,r,i,l,s,d,c,p,m,h,f,g,C,y,x,b=(0,o.c)(32);return b[0]!==e?({validation:m,selected:c,tone:p,presence:l,children:t,dragHandle:n,menu:i,footer:r,readOnly:s,...d}=e,b[0]=e,b[1]=t,b[2]=n,b[3]=r,b[4]=i,b[5]=l,b[6]=s,b[7]=d,b[8]=c,b[9]=p,b[10]=m):(t=b[1],n=b[2],r=b[3],i=b[4],l=b[5],s=b[6],d=b[7],c=b[8],p=b[9],m=b[10]),b[11]!==n||b[12]!==s?(h=n&&(0,a.jsx)(wa,{margin:1,radius:2,display:"flex",tone:"inherit","data-ui":"DragHandleCard",children:(0,a.jsx)(wn,{$grid:!0,mode:"ghost",readOnly:!!s})}),b[11]=n,b[12]=s,b[13]=h):h=b[13],b[14]!==l?(f=l&&(0,a.jsx)(wi,{align:"center",marginX:1,children:l}),b[14]=l,b[15]=f):f=b[15],b[16]!==m?(g=(0,a.jsx)(u.so,{children:m}),b[16]=m,b[17]=g):g=b[17],b[18]!==r?(C=(0,a.jsx)(u.az,{children:r}),b[18]=r,b[19]=C):C=b[19],b[20]!==i||b[21]!==g||b[22]!==C?(y=(0,a.jsxs)(wr,{al
1034ign:"center",paddingX:1,sizing:"border",justify:"space-between",children:[g,C,i]}),b[20]=i,b[21]=g,b[22]=C,b[23]=y):y=b[23],b[24]!==t||b[25]!==d||b[26]!==c||b[27]!==h||b[28]!==f||b[29]!==y||b[30]!==p?(x=(0,a.jsxs)(wo,{forwardedAs:u.so,direction:"column",border:!0,selected:c,"aria-selected":c,radius:1,tone:p,...d,children:[t,h,f,y]}),b[24]=t,b[25]=d,b[26]=c,b[27]=h,b[28]=f,b[29]=y,b[30]=p,b[31]=x):x=b[31],x}let ws=(0,g.I4)(u.Zp)`
1035  max-width: ${({theme:e})=>e.sanity.container[1]}px;
1036`;function wd(e){let t,n,r,i,l,d,c,p,m,h,f,g,x,b,v,j,w,_,k,S,T,I,E,$,A,D,z,M=(0,o.c)(55);if(M[0]!==e){let{value:i,onFocus:a,vertical:o,...l}=e;r=i,t=a,n=l,M[0]=e,M[1]=t,M[2]=n,M[3]=r}else t=M[1],n=M[2],r=M[3];let[P,R]=(0,s.useState)(!1),O=(0,s.useRef)(null),{t:V}=iJ();M[4]===Symbol.for("react.memo_cache_sentinel")?(i=()=>R(!1),l=()=>[O.current],M[4]=i,M[5]=l):(i=M[4],l=M[5]),(0,u.PR)(i,l),M[6]===Symbol.for("react.memo_cache_sentinel")?(d=e=>{("Escape"===e.key||"Tab"===e.key)&&R(!1)},M[6]=d):d=M[6];let L=d;M[7]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{R(wc)},M[7]=c):c=M[7];let F=c;M[8]!==r?(p=(0,nr.yu)(r),M[8]=r,M[9]=p):p=M[9];let B=p;return M[10]!==V?(m=V("inputs.array.error.type-is-incompatible-title"),M[10]=V,M[11]=m):m=M[11],M[12]!==m?(h=(0,a.jsx)(u.az,{children:(0,a.jsx)(u.EY,{weight:"medium",children:m})}),M[12]=m,M[13]=h):h=M[13],M[14]!==B?(f={typeName:B},M[14]=B,M[15]=f):f=M[15],M[16]!==V||M[17]!==f?(g=(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(an,{t:V,i18nKey:"inputs.array.error.current-schema-not-declare-description",values:f})}),M[16]=V,M[17]=f,M[18]=g):g=M[18],M[19]===Symbol.for("react.memo_cache_sentinel")?(x=(0,a.jsx)(C.Pnw,{}),M[19]=x):x=M[19],M[20]!==V?(b=V("inputs.array.error.can-delete-but-no-edit-description"),M[20]=V,M[21]=b):b=M[21],M[22]!==b?(v=(0,a.jsx)(u.az,{children:(0,a.jsxs)(u.EY,{size:1,children:[x," ",b]})}),M[22]=b,M[23]=v):v=M[23],M[24]!==V?(j=V("inputs.array.error.json-representation-description"),M[24]=V,M[25]=j):j=M[25],M[26]!==j?(w=(0,a.jsx)(u.EY,{size:1,weight:"medium",children:j}),M[26]=j,M[27]=w):w=M[27],M[28]!==r?(_=JSON.stringify(r,null,2),M[28]=r,M[29]=_):_=M[29],M[30]!==_?(k=(0,a.jsx)(u.Zp,{padding:2,overflow:"auto",border:!0,children:(0,a.jsx)(u.Cy,{size:1,as:"pre",language:"json",children:_})}),M[30]=_,M[31]=k):k=M[31],M[32]!==w||M[33]!==k?(S=(0,a.jsxs)(u.BJ,{space:2,children:[w,k]}),M[32]=w,M[33]=k,M[34]=S):S=M[34],M[35]!==v||M[36]!==S||M[37]!==h||M[38]!==g?(T=(0,a.jsx)(ws,{margin:1,padding:3,onKeyDown:L,tabIndex:0,overflow:"auto",children:(0,a.jsxs)(u.BJ,{space:4,children:[h,g,v,S]})}),M[35]=v,M[36]=S,M[37]=h,M[38]=g,M[39]=T):T=M[39],M[40]===Symbol.for("react.memo_cache_sentinel")?(I={height:"100%"},M[40]=I):I=M[40],M[41]===Symbol.for("react.memo_cache_sentinel")?(E=(0,a.jsx)(u.az,{margin:1,children:(0,a.jsx)(u.EY,{align:"center",size:4,children:(0,a.jsx)(C.KSC,{})})}),M[41]=E):E=M[41],M[42]!==B?($={typeName:B},M[42]=B,M[43]=$):$=M[43],M[44]!==V||M[45]!==$?(A=(0,a.jsxs)(u.BJ,{space:4,marginTop:2,children:[E,(0,a.jsx)(u.EY,{align:"center",size:1,children:(0,a.jsx)(an,{t:V,i18nKey:"inputs.array.error.type-is-incompatible-prompt",values:$})})]}),M[44]=V,M[45]=$,M[46]=A):A=M[46],M[47]!==t||M[48]!==n||M[49]!==A?(D=(0,a.jsx)(u.Zp,{as:"button",type:"button",radius:2,tone:"inherit",paddingX:2,paddingY:3,style:I,onFocus:t,onClick:F,onKeyDown:L,__unstable_focusRing:!0,...n,children:A}),M[47]=t,M[48]=n,M[49]=A,M[50]=D):D=M[50],M[51]!==P||M[52]!==T||M[53]!==D?(z=(0,a.jsx)(y.AM,{open:P,ref:O,onKeyDown:L,portal:!0,constrainSize:!0,tone:"default",content:T,children:D}),M[51]=P,M[52]=T,M[53]=D,M[54]=z):z=M[54],z}function wc(e){return!e}let wu={portal:!0,tone:"default"};function wp(e){let t,n,r,i,l,d,c,p,m=(0,o.c)(22),{member:h,sortable:f,readOnly:g}=e,x=(0,s.useId)(),{onChange:b}=xq(),{t:v}=iJ();m[0]!==h.key||m[1]!==b?(t=()=>{b(s4.from([s3([{_key:h.key}])]))},m[0]=h.key,m[1]=b,m[2]=t):t=m[2];let j=t;m[3]===Symbol.for("react.memo_cache_sentinel")?(n={height:"100%"},m[3]=n):n=m[3],m[4]===Symbol.for("react.memo_cache_sentinel")?(r=(0,a.jsx)(rU,{}),m[4]=r):r=m[4];let w=`${x}-menuButton`;return m[5]!==v?(i=v("inputs.array.action.remove-invalid-item"),m[5]=v,m[6]=i):i=m[6],m[7]!==j||m[8]!==i?(l=(0,a.jsx)(u.W1,{children:(0,a.jsx)(y.Dr,{text:i,tone:"critical",icon:C.ucK,onClick:j})}),m[7]=j,m[8]=i,m[9]=l):l=m[9],m[10]!==w||m[11]!==l?(d=(0,a.jsx)(y.IU,{button:r,id:w,menu:l,popover:wu}
1036),m[10]=w,m[11]=l,m[12]=d):d=m[12],m[13]!==h.error.type||m[14]!==h.error.value||m[15]!==v?(c="INVALID_ITEM_TYPE"===h.error.type?(0,a.jsx)(wd,{value:h.error.value,vertical:!0}):(0,a.jsx)("div",{children:v("inputs.array.error.unexpected-error",{error:h.error.type})}),m[13]=h.error.type,m[14]=h.error.value,m[15]=v,m[16]=c):c=m[16],m[17]!==g||m[18]!==f||m[19]!==d||m[20]!==c?(p=(0,a.jsx)(wl,{dragHandle:f,readOnly:g,tone:"caution",style:n,menu:d,children:c}),m[17]=g,m[18]=f,m[19]=d,m[20]=c,m[21]=p):p=m[21],p}let wm=e=>"error"===e.severity,wh=ny.S.compile({name:"studio",types:t3.jN});gE(wh);let wf=new t3.UL({ruleClass:gb,validationExtractor:function e(t){return t?Array.isArray(t)?t.flatMap(t=>e(t)):"object"==typeof t?[t]:e(t(new gb)):[]}});function wg(e){return"string"==typeof e.title?e.title:e.type?wg(e.type):e.name||e.jsonType}function wC(e){return e.reduce((e,t)=>t?.children?[...e,t,...wC(t.children)]:[...e,t],[]).map(({children:e,...t})=>t)}function wy(e){let t,n,r,i=(0,o.c)(9),a=hD(e),{t:l}=iJ(),s=a?.value;return i[0]!==a?.value?.title||i[1]!==l?(t=a?.value?.title||l("preview.default.title-fallback"),i[0]=a?.value?.title,i[1]=l,i[2]=t):t=i[2],i[3]!==s||i[4]!==t?(n={...s,title:t},i[3]=s,i[4]=t,i[5]=n):n=i[5],i[6]!==a||i[7]!==n?(r={...a,value:n},i[6]=a,i[7]=n,i[8]=r):r=i[8],r}function wx(e){let t,n,r,i,l,s,d,c,p=(0,o.c)(24),{item:m,onPathSelect:h,selected:f,isFirst:g,renderMenuItemTitle:y}=e;p[0]!==m.schemaType||p[1]!==m.value?(t={schemaType:m.schemaType,value:m.value},p[0]=m.schemaType,p[1]=m.value,p[2]=t):t=p[2];let{value:x}=wy(t),{title:b}=x,v=g?void 0:1;return p[3]!==m.path||p[4]!==h?(n=()=>h(m.path),p[3]=m.path,p[4]=h,p[5]=n):n=p[5],p[6]!==y||p[7]!==x?(r=y(x),p[6]=y,p[7]=x,p[8]=r):r=p[8],p[9]!==r?(i=(0,a.jsx)(u.so,{flex:1,children:r}),p[9]=r,p[10]=i):i=p[10],p[11]!==f?(l=f&&(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.Nrt,{})}),p[11]=f,p[12]=l):l=p[12],p[13]!==i||p[14]!==l?(s=(0,a.jsxs)(u.so,{align:"center",gap:3,justify:"space-between",children:[i,l]}),p[13]=i,p[14]=l,p[15]=s):s=p[15],p[16]!==f||p[17]!==n||p[18]!==s||p[19]!==b?(d=(0,a.jsx)(u.$n,{mode:"bleed",onClick:n,selected:f,title:b,padding:2,children:s}),p[16]=f,p[17]=n,p[18]=s,p[19]=b,p[20]=d):d=p[20],p[21]!==v||p[22]!==d?(c=(0,a.jsx)(u.BJ,{marginTop:v,children:d}),p[21]=v,p[22]=d,p[23]=c):c=p[23],c}function wb(e){let t,n,r,i,l,s=(0,o.c)(17),{items:d,onPathSelect:c,selectedPath:p,collapsed:m}=e,h=void 0!==m&&m,{t:f}=iJ();s[0]!==d||s[1]!==p?(t=e=>eN(d[e].path,p),s[0]=d,s[1]=p,s[2]=t):t=s[2];let g=t;s[3]!==h?(n=e=>{let{title:t,media:n}=e;return h?(0,a.jsxs)(u.so,{align:"center",gap:1,children:[(0,a.jsx)(u.EY,{size:1,muted:!0,children:"/"}),(0,a.jsx)(cU,{title:t,media:n,layout:"inline"})]}):(0,a.jsx)(cU,{title:t,media:n,layout:"inline"})},s[3]=h,s[4]=n):n=s[4];let C=n;s[5]!==C||s[6]!==d[0].path||s[7]!==c||s[8]!==p?(r=e=>{let t=eN(e.path,p),n=eN(e.path,d[0].path);return(0,a.jsx)(wx,{isFirst:n,item:e,onPathSelect:c,renderMenuItemTitle:C,selected:t})},s[5]=C,s[6]=d[0].path,s[7]=c,s[8]=p,s[9]=r):r=s[9];let y=r;return s[10]!==f?(i=f("tree-editing-dialog.breadcrumbs.menu"),s[10]=f,s[11]=i):i=s[11],s[12]!==g||s[13]!==d||s[14]!==y||s[15]!==i?(l=(0,a.jsx)(rY,{activeItemDataAttr:"data-hovered",ariaLabel:i,autoFocus:iO?void 0:"input","data-testid":"tree-editing-breadcrumbs-menu",getItemDisabled:g,itemHeight:33,items:d,overscan:5,padding:1,renderItem:y}),s[12]=g,s[13]=d,s[14]=y,s[15]=i,s[16]=l):l=s[16],l}let wv=["bottom-start"],wj=(0,g.I4)(u.so)``,ww=(0,g.I4)(u.Zp)`
1037  min-height: max-content;
1038`,w_=(0,g.I4)(u.so)(e=>{let{$maxDisplayedItems:t,$itemHeight:n}=e;return(0,g.AH)`
1039    --item-height: ${n}px;
1040    --max-items: ${t};
1041    --list-padding: 0.5rem;
1042
1043    position: relative;
1044    max-height: calc(var(--item-height) * var(--max-items) + var(--list-padding));
1045    min-height: calc((var(--item-height) * 1));
1046  `}),wk=(0,g.I4)(y.AM)(()=>(0,g.AH)`
1047    [data-ui='Popover__wrapper'] {
1048      width: 250px;
1049      display: flex;
1050      flex-direction: column;
1051      border-radius: ${({theme:e})=>e.sanity.radius[3]}px;
1052      position: relative;
1053      overflow: hidden;
1054      overflow: clip;
1055    }
1056  `);function wS(e){let t,n,r,i,l,d,c,p,m,h,f,g=(0,o.c)(32),{button:C,collapsed:y,items:x,menuTitle:b,onPathSelect:v,parentElement:j,selectedPath:w}
1056=e,_=void 0!==y&&y,[k,S]=(0,s.useState)(!1),T=(0,s.useRef)(null),[I,E]=(0,s.useState)(null);g[0]!==I||g[1]!==k?(t=()=>{k&&(S(!1),I?.focus())},g[0]=I,g[1]=k,g[2]=t):t=g[2];let $=t;g[3]!==$?(n=e=>{let{key:t,shiftKey:n}=e;(n&&"Tab"===t||"Escape"===t||"Tab"===t)&&$()},g[3]=$,g[4]=n):n=g[4];let A=n;g[5]!==k?(r=()=>{S(!k)},g[5]=k,g[6]=r):r=g[6];let D=r;g[7]!==v?(i=e=>{v(e),S(!1)},g[7]=v,g[8]=i):i=g[8];let z=i;g[9]===Symbol.for("react.memo_cache_sentinel")?(l=()=>S(!1),g[9]=l):l=g[9],g[10]!==I?(d=()=>[T.current,I],g[10]=I,g[11]=d):d=g[11],(0,u.PR)(l,d),g[12]!==b?(c=b&&(0,a.jsx)(ww,{borderBottom:!0,padding:3,sizing:"border",children:(0,a.jsx)(u.az,{paddingX:1,sizing:"border",children:(0,a.jsx)(u.EY,{muted:!0,size:1,textOverflow:"ellipsis",weight:"semibold",title:b,children:b})})}),g[12]=b,g[13]=c):c=g[13],g[14]!==_||g[15]!==z||g[16]!==x||g[17]!==w?(p=(0,a.jsx)(wb,{collapsed:_,items:x,onPathSelect:z,selectedPath:w}),g[14]=_,g[15]=z,g[16]=x,g[17]=w,g[18]=p):p=g[18],g[19]!==c||g[20]!==p?(m=(0,a.jsx)(wj,{direction:"column",flex:1,forwardedAs:eX.Ay,height:"fill",returnFocus:!0,children:(0,a.jsxs)(w_,{$itemHeight:33,$maxDisplayedItems:50,direction:"column",overflow:"hidden",children:[c,p]})}),g[19]=c,g[20]=p,g[21]=m):m=g[21];let M=m;g[22]!==C||g[23]!==D||g[24]!==k?(h=(0,s.cloneElement)(C,{"aria-expanded":k,"aria-haspopup":"true","data-testid":"tree-editing-breadcrumb-menu-button",id:"tree-breadcrumb-menu-button",onClick:D,ref:E,selected:k}),g[22]=C,g[23]=D,g[24]=k,g[25]=h):h=g[25];let P=h;return g[26]!==P||g[27]!==M||g[28]!==A||g[29]!==k||g[30]!==j?(f=(0,a.jsx)(wk,{constrainSize:!0,content:M,"data-testid":"tree-editing-breadcrumbs-menu-popover",fallbackPlacements:wv,onKeyDown:A,open:k,placement:"bottom-start",portal:!0,ref:T,referenceBoundary:j,children:P}),g[26]=P,g[27]=M,g[28]=A,g[29]=k,g[30]=j,g[31]=f):f=g[31],f}let wT=[],wI=(0,g.I4)(u.$n)(({theme:e})=>{let{bold:t}=(0,tZ.JW)(e)?.font.text?.weights||{};return(0,g.AH)`
1057    max-height: 1rem;
1058    overflow: hidden;
1059    min-width: 2ch;
1060
1061    &[data-active='true'] {
1062      [data-ui='Text']:first-child {
1063        font-weight: ${t};
1064      }
1065    }
1066  `}),wE=(0,g.I4)(u.EY)`
1067  overflow: hidden;
1068  padding: 8px 0;
1069`,w$=(0,s.forwardRef)(function(e,t){let n,r,i,l,s,d,c,p,m,h,f=(0,o.c)(26);f[0]!==e?({item:r,onPathSelect:i,isSelected:n,...l}=e,f[0]=e,f[1]=n,f[2]=r,f[3]=i,f[4]=l):(n=f[1],r=f[2],i=f[3],l=f[4]),f[5]!==r.schemaType||f[6]!==r.value?(s={schemaType:r.schemaType,value:r.value},f[5]=r.schemaType,f[6]=r.value,f[7]=s):s=f[7];let{value:g}=wy(s),y=g.title,x=r.children&&r.children?.length>1,b=n?"true":"false";return f[8]!==r.path||f[9]!==i?(d=()=>i(r.path),f[8]=r.path,f[9]=i,f[10]=d):d=f[10],f[11]!==y||f[12]!==g.media?(c=(0,a.jsx)(cU,{title:y,media:g.media,layout:"inline"}),f[11]=y,f[12]=g.media,f[13]=c):c=f[13],f[14]!==x?(p=x&&(0,a.jsx)(u.EY,{size:0,children:(0,a.jsx)(C.D3D,{})}),f[14]=x,f[15]=p):p=f[15],f[16]!==c||f[17]!==p?(m=(0,a.jsxs)(u.so,{flex:1,align:"center",justify:"flex-start",gap:1,overflow:"hidden",children:[c,p]}),f[16]=c,f[17]=p,f[18]=m):m=f[18],f[19]!==t||f[20]!==l||f[21]!==b||f[22]!==d||f[23]!==m||f[24]!==y?(h=(0,a.jsx)(wI,{"data-active":b,mode:"bleed",onClick:d,padding:1,ref:t,space:2,title:y,...l,children:m}),f[19]=t,f[20]=l,f[21]=b,f[22]=d,f[23]=m,f[24]=y,f[25]=h):h=f[25],h}),wA=(0,s.forwardRef)(function(e,t){let n,r,i=(0,o.c)(5),{children:l}=e;return i[0]!==l?(n=(0,a.jsx)(u.EY,{size:1,children:l}),i[0]=l,i[1]=n):n=i[1],i[2]!==t||i[3]!==n?(r=(0,a.jsx)(u.az,{ref:t,children:n}),i[2]=t,i[3]=n,i[4]=r):r=i[4],r});function wD(e){let t,n,r,i,l,d=(0,o.c)(17),{items:c,onPathSelect:p,selectedPath:m}=e,h=void 0===c?wT:c,[f,g]=(0,s.useState)(null),C=(0,u.cF)(f);e:{let e=C?.border.width;if(!e){t=5;break e}if(e<500){t=3;break e}if(e<700){t=4;break e}t=5}let y=t;t:{let e=h.length,t=Math.ceil(y/2),r=Math.floor(y/2);if(y&&e>y){let i;d[0]!==r||d[1]!==t||d[2]!==h||d[3]!==e?(i=[...h.slice(0,t-1),h.slice(t-1,e-r),...h.slice(e-r)],d[0]=r,d[1]=t,d[2]=h,d[3]=e,d[4]=i):i=d[4],n=i;break t}n=h}let x=n;if(d[5]!==x||d[6]!==p||d[7]!==f||d[8]!==m){let e;d[10]!==x.length||d[11]!==p||d[12]!==f||d[13]!==m?(e=(e,t)=>{let n=`${e}-${t}`,r=t<x.length-1;if(Array.isArray(e))return(0,a.jsxs)(s.Fragment,{children:[(0,a.jsx)(wS,{button:(0,a.jsx)(wI,{mode:"bleed",padding:1,children:(0,a.jsx)(u.so,{overflow:"hidden",children:(0,a.jsx)(wE,{size:1,weight:"medium",textOverflow:"ellipsis",children:"..."})})}),collapsed:!0,items:e,onPathSelect:p,parentElement:f,selectedPath:m}),r&&(0,a.jsx)(wA,{children:"/"})]},n);let i=e.children&&e.children?.length>1,o=eN(e.path,m),l=(0,a.jsx)(w$,{item:e,isSelected:o,onPathSelect:p});return(0,a.jsxs)(s.Fragment,{children:[!i&&l,i&&(0,a.jsx)(wS,{button:l,items:e.children||wT,onPathSelect:p,menuTitle:wg(e.schemaType),parentElement:f,selectedPath:e.path}),r&&(0,a.jsx)(wA,{children:"/"})]},n)},d[10]=x.length,d[11]=p,d[12]=f,d[13]=m,d[14]=e):e=d[14],i=x.map(e),d[5]=x,d[6]=p,d[7]=f,d[8]=m,d[9]=i}else i=d[9];return r=i,d[15]!==r?(l=(0,a.jsx)(u.so,{align:"center",as:"ol",gap:2,ref:g,children:r}),d[15]=r,d[16]=l):l=d[16],l}let wz=(0,g.I4)(u.so).attrs({padding:2,align:"center",sizing:"border"})`
1070  height: 40px;
1071  min-height: 40px;
1072`;function wM(e){let t,n,r,i,l,s,d,c,p=(0,o.c)(22),{item:m,onPathSelect:h,isFirst:f}=e;
1072p[0]!==m.schemaType||p[1]!==m.value?(t={value:m.value,schemaType:m.schemaType},p[0]=m.schemaType,p[1]=m.value,p[2]=t):t=p[2];let{value:g}=wy(t),C=g.title,y=f?void 0:1;return p[3]!==m.path||p[4]!==h?(n=()=>h(m.path),p[3]=m.path,p[4]=h,p[5]=n):n=p[5],p[6]!==C||p[7]!==g.media?(r=(0,a.jsx)(cU,{title:C,media:g.media,layout:"inline"}),p[6]=C,p[7]=g.media,p[8]=r):r=p[8],p[9]!==m.parentSchemaType?(i=wg(m.parentSchemaType),p[9]=m.parentSchemaType,p[10]=i):i=p[10],p[11]!==i?(l=(0,a.jsx)(u.az,{children:(0,a.jsx)(u.EY,{muted:!0,size:0,textOverflow:"ellipsis",children:i})}),p[11]=i,p[12]=l):l=p[12],p[13]!==r||p[14]!==l?(s=(0,a.jsxs)(u.BJ,{space:2,flex:1,children:[r,l]}),p[13]=r,p[14]=l,p[15]=s):s=p[15],p[16]!==n||p[17]!==s?(d=(0,a.jsx)(u.$n,{mode:"bleed",onClick:n,children:s}),p[16]=n,p[17]=s,p[18]=d):d=p[18],p[19]!==y||p[20]!==d?(c=(0,a.jsx)(u.BJ,{marginTop:y,children:d}),p[19]=y,p[20]=d,p[21]=c):c=p[21],c}function wP(e){let t,n,r,i=(0,o.c)(10),{items:l,onPathSelect:s,textInputElement:d}=e,{t:c}=iJ();i[0]!==l[0].path||i[1]!==s?(t=e=>{let t=eN(e.path,l[0].path);return(0,a.jsx)(wM,{isFirst:t,item:e,onPathSelect:s})},i[0]=l[0].path,i[1]=s,i[2]=t):t=i[2];let u=t;return i[3]!==c?(n=c("tree-editing-dialog.search.menu-label"),i[3]=c,i[4]=n):n=i[4],i[5]!==l||i[6]!==u||i[7]!==n||i[8]!==d?(r=(0,a.jsx)(rY,{activeItemDataAttr:"data-hovered",ariaLabel:n,autoFocus:iO?void 0:"input",inputElement:d,itemHeight:51,items:l,overscan:5,padding:1,renderItem:u}),i[5]=l,i[6]=u,i[7]=n,i[8]=d,i[9]=r):r=i[9],r}let wR=["bottom-start"],wO=(0,g.I4)(u.so)``,wV=(0,g.I4)(u.so)(e=>{let{$maxDisplayedItems:t,$itemHeight:n}=e;return(0,g.AH)`
1073    --item-height: ${n}px;
1074    --max-items: ${t};
1075    --list-padding: 0.5rem;
1076
1077    position: relative;
1078    max-height: calc(var(--item-height) * var(--max-items) + var(--list-padding));
1079    min-height: calc((var(--item-height) * 1));
1080    width: 100%;
1081  `}),wL=(0,g.I4)(y.AM)(()=>(0,g.AH)`
1082    [data-ui='Popover__wrapper'] {
1083      min-width: 250px;
1084      display: flex;
1085      flex-direction: column;
1086      border-radius: ${({theme:e})=>e.sanity.radius[3]}px;
1087      position: relative;
1088      overflow: hidden;
1089      overflow: clip;
1090    }
1091  `),wF=(0,g.I4)(u.ks)`
1092  border-radius: inherit;
1093`;function wB(e){let t,n,r,i,l,d,c,p,m,h,f,g=(0,o.c)(28),{items:y,onPathSelect:x}=e,[b,v]=(0,s.useState)(null),[j,w]=(0,s.useState)(""),{t:_}=iJ(),k=j.length>0,S=function(e){let t,n,r,i,a,l,d=(0,o.c)(8);d[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],d[0]=t):t=d[0];let[c,u]=(0,s.useState)(t),{observeForPreview:p}=z4();d[1]!==e?(r=wC(e),d[1]=e,d[2]=r):r=d[2],n=r,d[3]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{let t=e.path;u(n=>n.some(e=>eN(e.path,t))?n.map(n=>eN(n.path,t)?{...e,title:e?.title}:n):n.concat(e))},d[3]=i):i=d[3];let m=i;return d[4]!==n||d[5]!==p?(a=()=>
1093{u([]),n.forEach(e=>{p(e.value,e.schemaType).pipe((0,E.T)(t=>({...e,title:t.snapshot?.title}))).subscribe(m).unsubscribe()})},l=[n,m,p],d[4]=n,d[5]=p,d[6]=a,d[7]=l):(a=d[6],l=d[7]),(0,s.useEffect)(a,l),c}(y);g[0]!==j||g[1]!==S?(n=function(e,t){let n=wC(e),r=nM(t).toLocaleLowerCase();return n?.filter(e=>nM(e.title||"").toLocaleLowerCase().includes(r))?.sort((e,t)=>{let n=e.title?.startsWith(r),i=t.title?.startsWith(r);return n&&!i?-1:!n&&i?1:0})}(S,j),g[0]=j,g[1]=S,g[2]=n):n=g[2],t=n,g[3]===Symbol.for("react.memo_cache_sentinel")?(r=()=>w(""),g[3]=r):r=g[3];let T=r;g[4]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{w(e.target.value)},g[4]=i):i=g[4];let I=i;g[5]!==x?(l=e=>{x(e),T()},g[5]=x,g[6]=l):l=g[6];let $=l;g[7]!==b?(d=e=>{"Escape"===e.key&&(T(),b?.focus())},g[7]=b,g[8]=d):d=g[8];let A=d;g[9]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{requestAnimationFrame(()=>{T()})},g[9]=c):c=g[9];let D=c;e:{let e;if(0===t.length){let e,t;g[10]!==_?(e=_("tree-editing-dialog.search.no-results-title"),g[10]=_,g[11]=e):e=g[11],g[12]!==e?(t=(0,a.jsx)(u.Zp,{children:(0,a.jsx)(u.BJ,{padding:4,sizing:"border",space:3,children:(0,a.jsx)(u.EY,{align:"center",muted:!0,size:1,weight:"medium",children:e})})}),g[12]=e,g[13]=t):t=g[13],p=t;break e}g[14]!==t||g[15]!==$||g[16]!==b?(e=(0,a.jsx)(wO,{direction:"column",flex:1,height:"fill",children:(0,a.jsx)(u.Zp,{children:(0,a.jsx)(wV,{$itemHeight:51,$maxDisplayedItems:10,direction:"column",overflow:"hidden",children:(0,a.jsx)(wP,{items:t,onPathSelect:$,textInputElement:b})})})}),g[14]=t,g[15]=$,g[16]=b,g[17]=e):e=g[17],p=e}let z=p;return g[18]!==_?(m=_("tree-editing-dialog.search-placeholder"),g[18]=_,g[19]=m):m=g[19],g[20]!==A||g[21]!==j||g[22]!==m?(h=(0,a.jsx)(u.Zp,{radius:3,children:(0,a.jsx)(wF,{fontSize:1,icon:C.WIv,onBlur:D,onChange:I,onKeyDown:A,placeholder:m,ref:v,value:j})}),g[20]=A,g[21]=j,g[22]=m,g[23]=h):h=g[23],g[24]!==z||g[25]!==k||g[26]!==h?(f=(0,a.jsx)(wL,{constrainSize:!0,content:z,fallbackPlacements:wR,matchReferenceWidth:!0,open:k,placement:"bottom-start",portal:!0,children:h}),g[24]=z,g[25]=k,g[26]=h,g[27]=f):f=g[27],f}function wN(e,t){return JSON.stringify(e)===JSON.stringify(t)}function wY(e){return 0!==e.length&&e[e.length-1].hasOwnProperty("_key")}function wH(e,t){return e.every((e,n)=>wN(t[n],e))&&wY(e)}function wZ(e){return wY(e)?e:e.slice(0,e.length-1)}function wU(e){return e.some(e=>e.children&&e.children.length>0)}let wq={block:"center",behavior:"smooth",scrollMode:"if-needed"},wJ=(0,g.I4)(C.vKP)`
1094  transition: transform 0.2s ease;
1095
1096  &[data-expanded='true'] {
1097    transform: rotate(90deg);
1098  }
1099`,wW=g.I4.div`
1100  min-width: 23px;
1101  max-width: 23px;
1102`,wK=(0,g.I4)(u.BJ)(({theme:e})=>{let t=(0,tZ.JW)(e)?.space[3]||0,n=(0,tZ.JW)(e)?.color._dark,r=v.OZ.gray[n?900:200].hex;return(0,g.AH)`
1103    margin-left: ${t+2}px;
1104    box-sizing: border-box;
1105    border-left: 1px solid ${r};
1106  `}),wG=(0,g.I4)(u.so)(({theme:e})=>{let t=(0,tZ.JW)(e)?.color.button.bleed.default.hovered.bg,n=(0,tZ.JW)(e)?.color.button.bleed.default.pressed.bg,r=(0,tZ.JW)(e)?.color.button.bleed.default.selected.bg;return(0,g.AH)`
1107    padding: 2px;
1108    padding-right: 3px;
1109    box-sizing: border-box;
1110    transition: inherit;
1111    border-radius: ${(0,tZ.JW)(e).radius[2]}px;
1112
1113    &[data-selected='true'] {
1114      background-color: ${r};
1115    }
1116
1117    [data-ui='ExpandButton'],
1118    [data-ui='NavigateButton'] {
1119      transition: inherit;
1120      background-color: inherit;
1121      box-shadow: unset;
1122    }
1123
1124    @media (hover: hover) {
1125      &:hover {
1126        &[data-selected='false'] {
1127          background-color: ${t};
1128          border-radius: ${(0,tZ.JW)(e).radius[2]}px;
1129
1130          [data-ui='ExpandButton']:hover {
1131            background-color: ${n};
1132          }
1133        }
1134
1135        [data-ui='ExpandButton']:hover {
1136          background-color: ${t};
1137        }
1138      }
1139    }
1140  `});function wX(e){let t,n,r,i,d,c,p,m,h,f,g,y,x,b,v,j,w,_,k,S,T,I,E=(0,o.c)(58),{item:$,onPathSelect:A,selectedPath:D,siblingHasChildren:z}=e,{children:M}=$,P=M&&M.length>0,[R,O]=(0,s.useState)(!1),[V,L]=(0,s.useState)(null),{t:F}=iJ();E[0]!==$.schemaType||E[1]!==$.value?(t={schemaType:$.schemaType,value:$.value},E[0]=$.schemaType,E[1]=$.value,E[2]=t):t=E[2];let{value:B}=wy(t);E[3]!==$.path||E[4]!==D?(r=eN($.path,D),E[3]=$.path,E[4]=D,E[5]=r):r=E[5],n=r,i=!wY($.path),E[6]!==$.path?(c=(0,l.dI)($.path),E[6]=$.path,E[7]=c):c=E[7],d=c;e:{if(i){let e;E[8]!==$.schemaType?(e=wg($.schemaType),E[8]=$.schemaType,E[9]=e):e=E[9],p=e;break e}p=B.title}let N=p;t:{let e;if(!P){m=null;break t}let t=R?"true":"false";E[10]!==t?(e=(0,a.jsx)(wJ,{"data-expanded":t}),E[10]=t,E[11]=e):e=E[11],m=e}let Y=m;n:{if(i){let e;E[12]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(C.dSb,{}),E[12]=e):e=E[12],h=e;break n}h=B.media}let H=h;E[13]!==$.path||E[14]!==A?(f=()=>A($.path),E[13]=$.path,E[14]=A,E[15]=f):f=E[15];let Z=f;E[16]===Symbol.for("react.memo_cache_sentinel")?(g=()=>O(wQ),E[16]=g):g=E[16];let U=g;E[17]!==$||E[18]!==D?(y=()=>{(function e(t,n){return t.children?.some(t=>eN(t.path,n)||e(t,n))||!1})($,D)&&O(!0)},x=[$,D],E[17]=$,E[18]=D,E[19]=y,E[20]=x):(y=E[19],x=E[20]),(0,s.useEffect)(y,x),E[21]!==V||E[22]!==n?(b=()=>{V&&n&&(0,nk.A)(V,wq)},v=[V,n],E[21]=V,E[22]=n,E[23]=b,E[24]=v):(b=E[23],v=E[24]),(0,s.useEffect)(b,v),E[25]!==Y||E[26]!==R||E[27]!==d||E[28]!==F||E[29]!==N?(j=Y&&(0,a.jsx)(u.$
1140n,{"aria-label":`${F(R?"tree-editing-dialog.sidebar.action.collapse":"tree-editing-dialog.sidebar.action.expand")} ${N}`,"data-testid":`tree-editing-menu-expand-button-${d}`,"data-ui":"ExpandButton",mode:"bleed",onClick:U,padding:2,children:(0,a.jsx)(u.EY,{size:0,muted:!0,children:Y})}),E[25]=Y,E[26]=R,E[27]=d,E[28]=F,E[29]=N,E[30]=j):j=E[30],E[31]!==Y||E[32]!==z?(w=!Y&&z&&(0,a.jsx)(wW,{}),E[31]=Y,E[32]=z,E[33]=w):w=E[33];let q=`tree-editing-menu-navigate-button-${d}`;return E[34]!==H||E[35]!==N?(_=(0,a.jsx)(u.so,{align:"center",children:(0,a.jsx)(cU,{layout:"inline",media:H,title:N})}),E[34]=H,E[35]=N,E[36]=_):_=E[36],E[37]!==Z||E[38]!==q||E[39]!==_||E[40]!==N?(k=(0,a.jsx)(u.BJ,{flex:1,children:(0,a.jsx)(u.$n,{"data-testid":q,"data-ui":"NavigateButton",mode:"bleed",onClick:Z,padding:1,title:N,children:_})}),E[37]=Z,E[38]=q,E[39]=_,E[40]=N,E[41]=k):k=E[41],E[42]!==n||E[43]!==j||E[44]!==w||E[45]!==k?(S=(0,a.jsx)(u.Zp,{"data-as":"button","data-testid":"tree-editing-menu-item",overflow:"hidden",radius:2,tone:"inherit",children:(0,a.jsxs)(wG,{align:"center","data-selected":n,"data-testid":"tree-editing-menu-item-content",children:[j,w,k]})}),E[42]=n,E[43]=j,E[44]=w,E[45]=k,E[46]=S):S=E[46],E[47]!==M||E[48]!==P||E[49]!==A||E[50]!==R||E[51]!==D?(T=R&&P&&(0,a.jsx)(wK,{flex:1,forwardedAs:"ul",paddingLeft:1,role:"group",space:1,children:M.map(e=>{let t=wU(M);return(0,a.jsx)(wX,{item:e,onPathSelect:A,selectedPath:D,siblingHasChildren:t},(0,l.dI)(e.path))})}),E[47]=M,E[48]=P,E[49]=A,E[50]=R,E[51]=D,E[52]=T):T=E[52],E[53]!==R||E[54]!==d||E[55]!==S||E[56]!==T?(I=(0,a.jsxs)(u.BJ,{"aria-expanded":R,as:"li",ref:L,role:"treeitem",space:1,children:[S,T]},d),E[53]=R,E[54]=d,E[55]=S,E[56]=T,E[57]=I):I=E[57],I}function wQ(e){return!e}let w1=(0,s.memo)(function(e){let t,n,r=(0,o.c)(6),{items:i,onPathSelect:s,selectedPath:d}=e;return r[0]!==i||r[1]!==s||r[2]!==d?(t=i.map(e=>{let t=wU(i);return(0,a.jsx)(wX,{item:e,onPathSelect:s,selectedPath:d,siblingHasChildren:t},(0,l.dI)(e.path))}),r[0]=i,r[1]=s,r[2]=d,r[3]=t):t=r[3],r[4]!==t?(n=(0,a.jsx)(u.BJ,{as:"ul","data-testid":"tree-editing-menu",role:"tree",space:2,children:t}),r[4]=t,r[5]=n):n=r[5],n}),w2={initial:{opacity:0}
1140,animate:{opacity:1},exit:{opacity:0}},w5=(0,g.I4)(u.Zp)`
1141  flex-direction: column;
1142`,w0=(0,g.I4)(tW.P.create(u.BJ))`
1143  overflow-x: hidden;
1144`,w7=(0,g.I4)(u.BJ)`
1145  min-height: max-content;
1146`,w3=(0,s.memo)(function(e){let t,n,r,i,l,s,d,c,p,m,h=(0,o.c)(33),{items:f,onPathSelect:g,selectedPath:x,onOpenToggle:b,open:v,title:j}=e,{t:w}=iJ();h[0]!==v||h[1]!==w?(n=w(v?"tree-editing-dialog.sidebar.action.close":"tree-editing-dialog.sidebar.action.open"),h[0]=v,h[1]=w,h[2]=n):n=h[2],h[3]!==n?(r={content:n},h[3]=n,h[4]=r):r=h[4],t=r;let _=!v;h[5]!==b||h[6]!==v||h[7]!==t?(i=(0,a.jsx)(y.$n,{"data-testid":"tree-editing-sidebar-toggle",icon:C.lC2,mode:"bleed",onClick:b,selected:v,tooltipProps:t}),h[5]=b,h[6]=v,h[7]=t,h[8]=i):i=h[8],h[9]!==v||h[10]!==j?(l=v&&(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(u.EY,{size:1,muted:!0,weight:"medium",textOverflow:"ellipsis",children:j})}),h[9]=v,h[10]=j,h[11]=l):l=h[11],h[12]!==i||h[13]!==l?(s=(0,a.jsxs)(wz,{align:"center",gap:2,children:[i,l]}),h[12]=i,h[13]=l,h[14]=s):s=h[14],h[15]!==f||h[16]!==g||h[17]!==v?(d=v&&(0,a.jsx)(w7,{padding:2,sizing:"border",children:(0,a.jsx)(wB,{items:f,onPathSelect:g})}),h[15]=f,h[16]=g,h[17]=v,h[18]=d):d=h[18],h[19]!==f||h[20]!==g||h[21]!==v||h[22]!==x?(c=v&&(0,a.jsx)(w0,{animate:"animate",exit:"exit",initial:"initial",overflow:"auto",padding:3,sizing:"border",variants:w2,children:(0,a.jsx)(w1,{items:f,onPathSelect:g,selectedPath:x})}),h[19]=f,h[20]=g,h[21]=v,h[22]=x,h[23]=c):c=h[23],h[24]!==c?(p=(0,a.jsx)(tK.N,{mode:"wait",children:c}),h[24]=c,h[25]=p):p=h[25],h[26]!==_||h[27]!==s||h[28]!==d||h[29]!==p?(m=(0,a.jsxs)(w5,{borderRight:_,"data-testid":"tree-editing-sidebar","data-ui":"SidebarCard",display:"flex",forwardedAs:"aside",height:"fill",overflow:"hidden",tone:"transparent",children:[s,d,p]}),h[26]=_,h[27]=s,h[28]=d,h[29]=p,h[30]=m):m=h[30];let k=m;if(v){let e;return h[31]!==k?(e=(0,a.jsx)(cv,{maxWidth:450,minWidth:150,initialWidth:250,children:k}),h[31]=k,h[32]=e):e=h[32],e}return k}),w8=[0,0,1,0],w4=(0,s.memo)(function(e){let t,n,r,i,l,d,c,p,m=(0,o.c)(26),{breadcrumbs:h,children:f,footer:g,items:C,onPathSelect:y,selectedPath:x,setScrollElement:b,title:v}=e,[j,w]=(0,s.useState)(null),_=(0,s.useRef)(null),[k,S]=(0,s.useState)(!1);m[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>S(w6),m[0]=t):t=m[0];let T=t;m[1]!==b?(n=e=>{w(e),b?.(e)},m[1]=b,m[2]=n):n=m[2];let I=n;return m[3]!==C||m[4]!==y||m[5]!==k||m[6]!==x||m[7]!==v?(r=(0,a.jsx)(w3,{items:C,onOpenToggle:T,onPathSelect:y,open:k,selectedPath:x,title:v}),m[3]=C,m[4]=y,m[5]=k,m[6]=x,m[7]=v,m[8]=r):r=m[8],m[9]!==h||m[10]!==y||m[11]!==x?(i=(0,a.jsx)(wz,{align:"center",sizing:"border",gap:2,paddingX:4,children:(0,a.jsx)(u.so,{flex:1,children:(0,a.jsx)(wD,{items:h,onPathSelect:y,selectedPath:x})})}),m[9]=h,m[10]=y,m[11]=x,m[12]=i):i=m[12],m[13]!==f||m[14]!==j?(l=f&&(0,a.jsx)(x$,{containerElement:_,scrollElement:j,children:(0,a.jsx)(u.mc,{width:1,ref:_,paddingX:5,paddingY:5,sizing:"border",children:(0,a.jsx)(xE,{margins:w8,children:f})})}),m[13]=f,m[14]=j,m[15]=l):l=m[15],m[16]!==I||m[17]!==l?(d=(0,a.jsx)(u.Zp,{flex:1,id:"tree-editing-form",overflow:"auto",ref:I,children:l}),m[16]=I,m[17]=l,m[18]=d):d=m[18],m[19]!==g||m[20]!==i||m[21]!==d?(c=(0,a.jsxs)(u.so,{direction:"column",flex:1,overflow:"hidden",children:[i,d,g]}),m[19]=g,m[20]=i,m[21]=d,m[22]=c):c=m[22],m[23]!==r||m[24]!==c?(p=(0,a.jsxs)(u.so,{height:"fill",overflow:"hidden",children:[r,c]}),m[23]=r,m[24]=c,m[25]=p):p=m[25],p});function w6(e){return!e}function w9(e,t){if(!t)return;let n=(0,l.sH)(t),r=n[0];if(r&&(0,_.$d)(e)){let t=e?.fields?.find(e=>e.name===r);if(t){let e=(0,l.dI)(n.slice(1));return e?w9(t.type,e):t}}}function _e(e,t){let n=(0,nr.yu)(t);return"object"===n&&1===e.of.length?e.of[0]:e.of.find(e=>e.name===n)}function _t(e){let{arraySchemaType:t,arrayValue:n,itemPath:r,parentPath:i}=e,a=n.map(e=>{let n=[...i,{_key:e._key}],r=_e(t,e);return(0,_.do)(r)||!r?null:{children:i_,parentSchemaType:t,path:n,schemaType:r,value:e}}).filter(Boolean),o=a.find(e=>eN(e.path,r));return{children:a,parentSchemaType:t,path:r,schemaType:o.schemaType,value:o.value}}let _n=[],_r={breadcrumbs:_n,menuItems:_n,relativePath:_n,rootTitle:""},_i=[],_a={initial:{opacity:0}
1146,animate:{opacity:1},exit:{opacity:0}},_o={duration:.2,ease:"easeInOut"};function _l(e){return e.renderDefault(e)}let _s=(0,g.I4)(p.lG)(({theme:e})=>{let t=(0,tZ.JW)(e)?.space[4];return(0,g.AH)`
1147    [data-ui='DialogCard'] {
1148      padding: ${t}px;
1149      box-sizing: border-box;
1150
1151      // Make the dialog full height
1152      & > [data-ui='Card']:first-child {
1153        flex: 1;
1154      }
1155    }
1156  `}),_d=tW.P.create(u.so);function _c(e){let t,n,r,i,d,c,p,m,h,f,g,C,x,b,v,j,w=(0,o.c)(49),{onPathFocus:k,onPathOpen:S,openPath:T,rootInputProps:I,schemaType:E}=e,{value:$}=I,{t:A}=iJ(),[D,z]=(0,s.useState)(_r),[M,P]=(0,s.useState)(null),R=(0,s.useRef)(void 0),O=(0,s.useRef)(void 0);w[0]!==M?(t=()=>{M?.scrollTo(0,0)},w[0]=M,w[1]=t):t=w[1];let V=t;w[2]!==D?(n=e=>{let t=function(e){let{openPath:t}=e,n=function(e){let t=e.findIndex(e=>e?.hasOwnProperty("_key"));return -1===t?e:e.slice(0,t)}(t),r=w9(e.schemaType,(0,l.dI)(n)),i=wg(r?.type);if(!(0,_.m5)(r?.type)||r?.options?.treeEditing===!1)return _r;let a=[],o=[],s=function e(n){let{schemaType:r,path:i,documentValue:s}=n,d=aN(s,i),c=Array.isArray(d)?d:_n,u=function(e){let{arraySchemaType:t,arrayValue:n,documentValue:r,openPath:i,rootPath:a,recursive:o}=e,s=[],d=[],c=[];return t.options?.treeEditing===!1||n.forEach(e=>{let u=[...a,{_key:e._key}],p=_e(t,e);if(!p||(0,_.do)(p)||p?.options?.treeEditing===!1)return;let m=p?.fields||[],h=[];if(wH(u,i)){let e=_t({arraySchemaType:t,arrayValue:n,itemPath:u,parentPath:a});c.push(e)}m.forEach(e=>{if(e?.type?.options?.treeEditing===!1)return;let t=[...u,e.name],n=aN(r,t);if(wN(t,i)&&(s=wZ(t)),(0,_.$d)(e.type)){let n=function(e){let t=[],n=[];return function e(r){r.forEach(r=>{let i=[...n,r.name];(0,_.m5)(r.type)&&!(0,_.GX)(r.type)&&t.push(i),(0,_.$d)(r.type)&&(n=i,e(r.type.fields),n=n.slice(0,-1))})}(e),t}(e.type.fields);if(0===n.length)return;n.forEach(n=>{let a=[...t,...n],d=w9(e.type,(0,l.dI)(n)),c=aN(r,a),u=Array.isArray(c)?c:[];if(!u.length||d.type.options?.treeEditing===!1)return;wN(a,i)&&(s=wZ(a));let p=o({documentValue:r,path:a,schemaType:d});h.push({children:p.menuItems,parentSchemaType:e.type,path:a,schemaType:d.type,value:u})})}let a=(0,_.GX)(e.type);if((0,_.m5)(e.type)&&n&&!a){if(wH(t,i)){let r=_t({arraySchemaType:e.type,arrayValue:n,itemPath:t,parentPath:u});c.push(r)}let a=o({documentValue:r,path:t,schemaType:e});h.push({children:a?.menuItems||i_,parentSchemaType:p,path:t,schemaType:e,value:n});return}a&&(0,l.dI)(i).startsWith((0,l.dI)(t))&&(s=wZ(t))}),wN(u,i)&&(s=wZ(u)),(0,_.zZ)(p?.type)||d.push({children:h,parentSchemaType:t,path:u,schemaType:p,value:e})}),{breadcrumbs:c,menuItems:d,relativePath:s,rootTitle:""}}({arraySchemaType:r?.type,arrayValue:c,documentValue:s,openPath:t,recursive:e,rootPath:i});return u.relativePath.length>0&&(a=u.relativePath),o.unshift(...u.breadcrumbs),u}({schemaType:r,documentValue:e.documentValue,path:n});return{relativePath:a,breadcrumbs:o,menuItems:s.menuItems,rootTitle:i}}(e);if(eN(t,D))return;let n=t.relativePath,r=0!==n.length&&wY(n)?n:D.relativePath;z({...t,relativePath:r})},w[2]=D,w[3]=n):n=w[3];let L=n;w[4]!==L?(i=tQ(L,1e3),w[4]=L,w[5]=i):i=w[5],r=i,w[6]!==r||w[7]!==k||w[8]!==S||w[9]!==T?(d=()=>{r.cancel(),S(_i),z(_r),O.current=void 0,R.current=void 0;let e=T.findIndex(_.tA);k(T.slice(0,e+1))},w[6]=r,w[7]=k,w[8]=S,w[9]=T,w[10]=d):d=w[10];let F=d;w[11]!==r||w[12]!==k||w[13]!==S?(c=e=>{r.cancel(),S(e),wY(e)||k(e)},w[11]=r,w[12]=k,w[13]=S,w[14]=c):c=w[14];let B=c;if(w[15]!==r||w[16]!==L||w[17]!==T||w[18]!==E||w[19]!==$?(p=()=>{let e=!eN($,O.current),t=!eN(T,R.current);if(void 0===O.current&&void 0===R.current||t){L({schemaType:E,documentValue:$,openPath:T}),R.current=T;return}if(!(!e&&!t))return O.current=$,R.current=T,r({schemaType:E,documentValue:$,openPath:T}),()=>{r.cancel()}},m=[E,$,r,T,L],w[15]=r,w[16]=L,w[17]=T,w[18]=E,w[19]=$,w[20]=p,w[21]=m):(p=w[20],m=w[21]),(0,s.useEffect)(p,m),0===D.relativePath.length)return null;let N=D.breadcrumbs,Y=D.menuItems,H=D.relativePath,Z=D.rootTitle;return w[22]!==A?(h=A("tree-editing-dialog.sidebar.action.done"),w[22]=A,w[23]=h):h=w[23],w[24]!==F||w[25]!==h?(f=(0,a.jsx)(u.Zp,{borderTop:!0,children:(0,a.jsx)(u.so,{align:"center",justify:"flex-end",paddingX:3,paddingY:2,sizing:"border",children:(0,a.jsx)(y.$n,{size:"large","data-testid":"tree-editing-done",text:h,onClick:F})})}),w[24]=F,w[25]=h,w[26]=f):f=w[26],w[27]!==D.relativePath?(g=(0,l.dI)(D.relativePath),w[27]=D.relativePath,w[28]=g):g=w[28],w[29]!==I||w[30]!==D.relativePath?(C=(0,a.jsx)(b4,{...I,relativePath:D.relativePath,renderDefault:_l}),w[29]=I,w[30]=D.relativePath,w[31]=C):C=w[31],w[32]!==g||w[33]!==C?(x=(0,a.jsx)(_d,{animate:"animate","data-testid":"tree-editing-dialog-content",direction:"column",exit:"exit",he
1156ight:"fill",initial:"initial",overflow:"hidden",padding:1,sizing:"border",transition:_o,variants:_a,children:C},g),w[32]=g,w[33]=C,w[34]=x):x=w[34],w[35]!==V||w[36]!==x?(b=(0,a.jsx)(tK.N,{initial:!1,mode:"wait",onExitComplete:V,children:x}),w[35]=V,w[36]=x,w[37]=b):b=w[37],w[38]!==B||w[39]!==f||w[40]!==b||w[41]!==D.breadcrumbs||w[42]!==D.menuItems||w[43]!==D.relativePath||w[44]!==D.rootTitle?(v=(0,a.jsx)(w4,{breadcrumbs:N,items:Y,onPathSelect:B,selectedPath:H,title:Z,setScrollElement:P,footer:f,children:b}),w[38]=B,w[39]=f,w[40]=b,w[41]=D.breadcrumbs,w[42]=D.menuItems,w[43]=D.relativePath,w[44]=D.rootTitle,w[45]=v):v=w[45],w[46]!==F||w[47]!==v?(j=(0,a.jsx)(_s,{__unstable_hideCloseButton:!0,animate:!0,"data-testid":"tree-editing-dialog",id:"tree-editing-dialog",onClickOutside:F,onClose:F,padding:0,width:3,children:v}),w[46]=F,w[47]=v,w[48]=j):j=w[48],j}function _u(){return(0,s.useContext)(c.lV)}function _p(e){let t,n,r,i=(0,o.c)(5),{children:l,legacyEditing:s}=e,d=!!(_u().legacyEditing||s);return i[0]!==d?(n={enabled:!1,legacyEditing:d},i[0]=d,i[1]=n):n=i[1],t=n,i[2]!==l||i[3]!==t?(r=(0,a.jsx)(c.lV.Provider,{value:t,children:l}),i[2]=l,i[3]=t,i[4]=r):r=i[4],r}function _m(e){let t,n,r,i,l,s,d,c,u,p,m,h,f,g,x,b,v,j,w,_,k,S=(0,o.c)(53),{t:T}=iJ(),{onInsert:I,schemaTypes:E}=e;S[0]!==e.schemaTypes?(t=e.schemaTypes??[],S[0]=e.schemaTypes,S[1]=t):t=S[1],S[2]!==e?(n=t=>{e.onInsert("before",t)},S[2]=e,S[3]=n):n=S[3],S[4]!==e.insertMenuOptions||S[5]!==t||S[6]!==n?(r={...e.insertMenuOptions,schemaTypes:t,onSelect:n},S[4]=e.insertMenuOptions,S[5]=t,S[6]=n,S[7]=r):r=S[7],S[8]===Symbol.for("react.memo_cache_sentinel")?(i=["bottom-end"],S[8]=i):i=S[8],S[9]!==e.referenceElement?(l={referenceElement:e.referenceElement,placement:"top-end",fallbackPlacements:i},S[9]=e.referenceElement,S[10]=l):l=S[10],S[11]!==r||S[12]!==l?(s={insertMenuProps:r,popoverProps:l},S[11]=r,S[12]=l,S[13]=s):s=S[13];let $=j4(s);S[14]!==e.schemaTypes?(d=e.schemaTypes??[],S[14]=e.schemaTypes,S[15]=d):d=S[15],S[16]!==e?(c=t=>{e.onInsert("after",t)},S[16]=e,S[17]=c):c=S[17],S[18]!==e.insertMenuOptions||S[19]!==d||S[20]!==c?(u={...e.insertMenuOptions,schemaTypes:d,onSelect:c},S[18]=e.insertMenuOptions,S[19]=d,S[20]=c,S[21]=u):u=S[21],S[22]===Symbol.for("react.memo_cache_sentinel")?(p=["top-end"],S[22]=p):p=S[22],S[23]!==e.referenceElement?(m={referenceElement:e.referenceElement,placement:"bottom-end",fallbackPlacements:p},S[23]=e.referenceElement,S[24]=m):m=S[24],S[25]!==m||S[26]!==u?(h={insertMenuProps:u,popoverProps:m},S[25]=m,S[26]=u,S[27]=h):h=S[27];let A=j4(h);S[28]!==$||S[29]!==I||S[30]!==E?(f=()=>{E&&(1===E.length?I("before",E[0]):$.send({type:"toggle"}))},S[28]=$,S[29]=I,S[30]=E,S[31]=f):f=S[31];let D=f;S[32]!==A||S[33]!==I||S[34]!==E?(g=()=>{E&&(1===E.length?I("after",E[0]):A.send({type:"toggle"}))},S[32]=A,S[33]=I,S[34]=E,S[35]=g):g=S[35];let z=g;return S[36]!==D||S[37]!==T||S[38]!==E?(b=E?(0,a.jsx)(y.Dr,{text:1===E.length?T("inputs.array.action.add-before"):`${T("inputs.array.action.add-before")}...`,icon:C.SKY,onClick:D},"insertBefore"):null,S[36]=D,S[37]=T,S[38]=E,S[39]=b):b=S[39],x=b,S[40]!==z||S[41]!==T||S[42]!==E?(j=E?(0,a.jsx)(y.Dr,{text:1===E.length?T("inputs.array.action.add-after"):`${T("inputs.array.action.add-after")}...`,icon:C.amD,onClick:z},"insertAfter"):null,S[40]=z,S[41]=T,S[42]=E,S[43]=j):j=S[43],v=j,S[44]!==$||S[45]!==x?(w={...$,menuItem:x},S[44]=$,S[45]=x,S[46]=w):w=S[46],S[47]!==A||S[48]!==v?(_={...A,menuItem:v},S[47]=A,S[48]=v,S[49]=_):_=S[49],S[50]!==w||S[51]!==_?(k={insertBefore:w,insertAfter:_},S[50]=w,S[51]=_,S[52]=k):k=S[52],k}let _h=(0,g.I4)(u.Zp)`
1157  border-top-right-radius: inherit;
1158  border-top-left-radius: inherit;
1159  height: 100%;
1160  position: relative;
1161
1162  @media (hover: hover) {
1163    &:hover {
1164      filter: brightness(95%);
1165    }
1166  }
1167
1168  &:focus:focus-visible {
1169    box-shadow: 0 0 0 2px var(--card-focus-ring-color);
1170  }
1171`,_f={portal:!0,tone:"default"},_g=[];function _C(e){let{schemaType:t,parentSchemaType:n,path:r,readOnly:i,onRemove:o,value:l,open:d,onInsert:c,onCopy:p,onFocus:m,onOpen:h,onClose:f,changed:g,focused:x,children:b,inputProps:{renderPreview:v}}=e,{t:j}=iJ(),w=_u(),_=n?.options?.treeEditing===!1,k=_||w.legacyEditing,S=d&&(!w.enabled||k),T=n.options?.sortable!==!1,I=n.of,[E,$]=(0,s.use
1171State)(null),A=(0,s.useRef)(null);(0,s.useImperativeHandle)(A,()=>E,[E]),vv(A,d),xZ(x,(e,t)=>{!e&&t&&A.current&&A.current?.focus()});let D=l._resolvingInitialValue,z=(0,s.useCallback)(()=>{c({items:[{...l,_key:xK()}],position:"after"})},[c,l]),M=(0,s.useCallback)(()=>{p({items:[{...l,_key:xK()}]})},[p,l]),P=(0,s.useCallback)((e,t)=>{c({items:[x4(t)],position:e})},[c]),R=oE(r,!0),O=(0,s.useMemo)(()=>0===R.length?null:(0,a.jsx)(y4,{presence:R,maxAvatars:1}),[R]),V=oM(r,!0),L=(0,s.useMemo)(()=>0===V.length?null:(0,a.jsx)(u.az,{paddingX:1,paddingY:3,children:(0,a.jsx)(dp,{validation:V,__unstable_showSummary:!0})}),[V]),F=V.some(e=>"error"===e.level),B=V.some(e=>"warning"===e.level),[N,Y]=(0,s.useState)(null),{insertBefore:H,insertAfter:Z}=_m({schemaTypes:I,insertMenuOptions:n.options?.insertMenu,onInsert:P,referenceElement:N}),U=n.options?.disableActions||_g,q=(0,s.useMemo)(()=>[!U.includes("remove")&&(0,a.jsx)(y.Dr,{text:j("inputs.array.action.remove"),tone:"critical",icon:C.ucK,onClick:o}),!U.includes("copy")&&(0,a.jsx)(y.Dr,{text:j("inputs.array.action.copy"),icon:C.TdU,onClick:M}),!U.includes("duplicate")&&(0,a.jsx)(y.Dr,{text:j("inputs.array.action.duplicate"),icon:C.g$z,onClick:z}),!U.includes("add")&&!U.includes("addBefore")&&H.menuItem,!U.includes("add")&&!U.includes("addAfter")&&Z.menuItem].filter(Boolean),[U,M,z,Z.menuItem,H.menuItem,o,j]),J=(0,s.useMemo)(()=>i||0===q.length?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.IU,{ref:Y,onOpen:()=>{H.send({type:"close"}),Z.send({type:"close"})},button:(0,a.jsx)(rU,{"data-testid":"array-item-menu-button",selected:!!H.state.open||!!Z.state.open||void 0}),id:`${e.inputId}-menuButton`,menu:(0,a.jsx)(u.W1,{children:q}),popover:_f}),H.popover,Z.popover]}),[i,H,Z,e.inputId,q]),W=function({readOnly:e,hasErrors:t,hasWarnings:n}){return e?"transparent":t?"critical":n?"caution":"default"}({readOnly:i,hasErrors:F,hasWarnings:B}),K=(0,a.jsx)(wl,{menu:J,presence:O,validation:L,tone:W,radius:2,border:!0,dragHandle:T,selected:S,readOnly:i,children:(0,a.jsxs)(_h,{tone:"inherit",overflow:"auto",forwardedAs:"button","data-ui":"PreviewCard","data-as":"button",type:"button",flex:1,tabIndex:0,disabled:D,onClick:h,ref:$,onFocus:m,__unstable_focusRing:!0,children:[v({schemaType:t,value:l,layout:"media",withBorder:!1,withShadow:!1}),D&&(0,a.jsx)(r5,{fill:!0})]})}),G=wg(t);return(0,a.jsxs)(_p,{legacyEditing:_,children:[(0,a.jsx)(El,{path:r,isChanged:g,hasFocus:!!x,children:K}),S&&(0,a.jsx)(xM,{header:i?j("inputs.array.action.view",{itemTypeTitle:G}):j("inputs.array.action.edit",{itemTypeTitle:G}),type:n?.options?.modal?.type||"dialog",width:n?.options?.modal?.width??1,id:l._key,onClose:f,autofocus:x,legacy_referenceElement:E,children:b})]})}let _y=[];function _x(e){let t,n,r,i,l,s,d,c,p=(0,o.c)(38),{arrayFunctions:m,elementProps:h,members:f,onChange:g,onItemPrepend:C,onItemAppend:y,onItemMove:x,onUpload:b,readOnly:v,renderAnnotation:j,renderBlock:w,renderField:_,renderInlineBlock:k,renderInput:S,renderPreview:T,resolveUploader:I,schemaType:E,value:$}=e,A=void 0===m?j9:m,D=void 0===$?_y:$,{t:z}=iJ(),M=E.options?.sortable!==!1;return p[0]!==f?(n=f.map(_b),p[0]=f,p[1]=n):n=p[1],t=n,p[2]!==f.length||p[3]!==E.placeholder||p[4]!==z?(r=f?.length===0&&(0,a.jsx)(u.Zp,{padding:3,border:!0,radius:2,children:(0,a.jsx)(u.EY,{align:"center",muted:!0,size:1,children:E.placeholder||(0,a.jsx)(a.Fragment,{children:z("inputs.array.no-items-label")})})}),p[2]=f.length,p[3]=E.placeholder,p[4]=z,p[5]=r):r=p[5],p[6]!==t||p[7]!==f||p[8]!==x||p[9]!==v||p[10]!==j||p[11]!==w||p[12]!==_||p[13]!==k||p[14]!==S||p[15]!==T||p[16]!==M?(i=f?.length>0&&(0,a.jsx)(u.Zp,{border:!0,radius:1,children:(0,a.jsx)(jD,{columns:[2,3,4],gap:3,padding:1,margin:1,items:t,onItemMove:x,sortable:M,children:f.map(e=>(0,a.jsxs)(jz,{sortable:M,id:e.key,flex:1,children:["item"===e.kind&&(0,a.jsx)(xQ,{member:e,renderAnnotation:j,renderBlock:w,renderInlineBlock:k,renderItem:_v,renderField:_,renderInput:S,renderPreview:T}),"error"===e.kind&&(0,a.jsx)(wp,{sortable:M,member:e,readOnly:v})]},e.key))})}),p[6]=t,p[7]=f,p[8]=x,p[9]=v,p[10]=j,p[11]=w,p[12]=_,p[13]=k,p[14]=S,p[15]=T,p[16]=M,p[17]=i):i=p[17],p[18]!==r||p[19]!==i?(l=(0,a.jsxs)(u.BJ,{"data-ui":"ArrayInput__c
1171ontent",space:2,children:[r,i]}),p[18]=r,p[19]=i,p[20]=l):l=p[20],p[21]!==h||p[22]!==b||p[23]!==I||p[24]!==E.of||p[25]!==l?(s=(0,a.jsx)(j3,{types:E.of,resolveUploader:I,onUpload:b,...h,tabIndex:0,children:l}),p[21]=h,p[22]=b,p[23]=I,p[24]=E.of,p[25]=l,p[26]=s):s=p[26],p[27]!==A||p[28]!==g||p[29]!==y||p[30]!==C||p[31]!==v||p[32]!==E||p[33]!==D?(d=(0,a.jsx)(A,{onChange:g,onItemAppend:y,onItemPrepend:C,onValueCreate:x4,readOnly:v,schemaType:E,value:D}),p[27]=A,p[28]=g,p[29]=y,p[30]=C,p[31]=v,p[32]=E,p[33]=D,p[34]=d):d=p[34],p[35]!==s||p[36]!==d?(c=(0,a.jsxs)(u.BJ,{space:2,children:[s,d]}),p[35]=s,p[36]=d,p[37]=c):c=p[37],c}function _b(e){return e.key}function _v(e){let{key:t,...n}=e;return(0,a.jsx)(_C,{...n},t)}let _j=(0,g.I4)(u.Zp)`
1172  position: relative;
1173  border: 1px solid transparent;
1174  transition: border-color 250ms;
1175
1176  .${jk} & {
1177    border-color: var(--card-shadow-umbra-color);
1178    box-shadow:
1179      0 0 0 0,
1180      0 8px 17px 2px var(--card-shadow-umbra-color),
1181      0 3px 14px 2px var(--card-shadow-penumbra-color),
1182      0 5px 5px -3px var(--card-shadow-ambient-color);
1183  }
1184
1185  &:hover {
1186    border-color: var(--card-shadow-umbra-color);
1187  }
1188
1189  &[aria-selected='true'] {
1190    border-color: var(--card-focus-ring-color);
1191  }
1192`;function _w(e){let t,n,r,i,l,d,c,p=(0,o.c)(21),{validation:m,selected:h,tone:f,presence:g,focused:C,children:y,dragHandle:x,menu:b,footer:v,readOnly:j}=e,w=(0,s.useRef)(null);return p[0]===Symbol.for("react.memo_cache_sentinel")?(t=(e,t)=>{!e&&t&&w.current?.focus()},p[0]=t):t=p[0],xZ(C,t),p[1]!==x||p[2]!==j?(n=x&&(0,a.jsx)(wn,{paddingY:3,readOnly:j}),p[1]=x,p[2]=j,p[3]=n):n=p[3],p[4]!==y?(r=(0,a.jsx)(u.az,{flex:1,children:y}),p[4]=y,p[5]=r):r=p[5],p[6]!==b||p[7]!==g||p[8]!==m?(i=(g||m||b)&&(0,a.jsxs)(u.so,{align:"center",flex:"none",gap:2,style:{lineHeight:0},children:[g&&(0,a.jsx)(u.az,{flex:"none",children:g}),m&&(0,a.jsx)(u.az,{flex:"none",children:m}),b]}),p[6]=b,p[7]=g,p[8]=m,p[9]=i):i=p[9],p[10]!==n||p[11]!==r||p[12]!==i?(l=(0,a.jsxs)(u.so,{align:"center",gap:1,children:[n,r,i]}),p[10]=n,p[11]=r,p[12]=i,p[13]=l):l=p[13],p[14]!==v||p[15]!==l?(d=(0,a.jsxs)(u.BJ,{space:1,children:[l,v]}
1192),p[14]=v,p[15]=l,p[16]=d):d=p[16],p[17]!==h||p[18]!==d||p[19]!==f?(c=(0,a.jsx)(_j,{ref:w,selected:h,"aria-selected":h,radius:1,padding:1,tone:f,children:d}),p[17]=h,p[18]=d,p[19]=f,p[20]=c):c=p[20],c}let __=(0,g.I4)(u.Zp)`
1193  max-width: ${({theme:e})=>e.sanity.container[1]}px;
1194`;function _k(e){let t,n,r,i,l,d,c,p,m,h,f,g,x,b,v,j,w,_,k,S,T,I,E,$,A,D,z=(0,o.c)(54);if(z[0]!==e){let{value:i,onFocus:a,vertical:o,...l}=e;r=i,t=a,n=l,z[0]=e,z[1]=t,z[2]=n,z[3]=r}else t=z[1],n=z[2],r=z[3];let[M,P]=(0,s.useState)(!1),R=(0,s.useRef)(null),{t:O}=iJ();z[4]===Symbol.for("react.memo_cache_sentinel")?(i=()=>P(!1),l=()=>[R.current],z[4]=i,z[5]=l):(i=z[4],l=z[5]),(0,u.PR)(i,l),z[6]===Symbol.for("react.memo_cache_sentinel")?(d=e=>{("Escape"===e.key||"Tab"===e.key)&&P(!1)},z[6]=d):d=z[6];let V=d;z[7]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{P(_S)},z[7]=c):c=z[7];let L=c;z[8]!==r?(p=(0,nr.yu)(r),z[8]=r,z[9]=p):p=z[9];let F=p;return z[10]!==O?(m=O("inputs.array.error.type-is-incompatible-title"),z[10]=O,z[11]=m):m=z[11],z[12]!==m?(h=(0,a.jsx)(u.az,{children:(0,a.jsx)(u.EY,{weight:"medium",children:m})}),z[12]=m,z[13]=h):h=z[13],z[14]!==F?(f={typeName:F},z[14]=F,z[15]=f):f=z[15],z[16]!==O||z[17]!==f?(g=(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(an,{t:O,i18nKey:"inputs.array.error.current-schema-not-declare-description",values:f})}),z[16]=O,z[17]=f,z[18]=g):g=z[18],z[19]===Symbol.for("react.memo_cache_sentinel")?(x=(0,a.jsx)(C.Pnw,{}),z[19]=x):x=z[19],z[20]!==O?(b=O("inputs.array.error.can-delete-but-no-edit-description"),z[20]=O,z[21]=b):b=z[21],z[22]!==b?(v=(0,a.jsx)(u.az,{children:(0,a.jsxs)(u.EY,{size:1,children:[x," ",b]})}),z[22]=b,z[23]=v):v=z[23],z[24]!==O?(j=O("inputs.array.error.json-representation-description"),z[24]=O,z[25]=j):j=z[25],z[26]!==j?(w=(0,a.jsx)(u.EY,{size:1,weight:"medium",children:j}),z[26]=j,z[27]=w):w=z[27],z[28]!==r?(_=JSON.stringify(r,null,2),z[28]=r,z[29]=_):_=z[29],z[30]!==_?(k=(0,a.jsx)(u.Zp,{padding:2,overflow:"auto",border:!0,children:(0,a.jsx)(u.Cy,{size:1,as:"pre",language:"json",children:_})}),z[30]=_,z[31]=k):k=z[31],z[32]!==w||z[33]!==k?(S=(0,a.jsxs)(u.BJ,{space:2,children:[w,k]}),z[32]=w,z[33]=k,z[34]=S):S=z[34],z[35]!==v||z[36]!==S||z[37]!==h||z[38]!==g?(T=(0,a.jsx)(__,{margin:1,padding:3,onKeyDown:V,tabIndex:0,overflow:"auto",children:(0,a.jsxs)(u.BJ,{space:4,children:[h,g,v,S]})}),z[35]=v,z[36]=S,z[37]=h,z[38]=g,z[39]=T):T=z[39],z[40]===Symbol.for("react.memo_cache_sentinel")?(I=(0,a.jsx)(u.az,{marginRight:3,children:(0,a.jsx)(u.EY,{children:(0,a.jsx)(C.KSC,{})})}),z[40]=I):I=z[40],z[41]!==F?(E={typeName:F},z[41]=F,z[42]=E):E=z[42],z[43]!==O||z[44]!==E?($=(0,a.jsxs)(u.so,{align:"center",children:[I,(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(u.EY,{size:1,textOverflow:"ellipsis",children:(0,a.jsx)(an,{t:O,i18nKey:"inputs.array.error.type-is-incompatible-prompt",values:E})})})]}),z[43]=O,z[44]=E,z[45]=$):$=z[45],z[46]!==t||z[47]!==n||z[48]!==$?(A=(0,a.jsx)(u.Zp,{as:"button",type:"button",radius:2,tone:"inherit",paddingX:2,paddingY:3,flex:1,onFocus:t,onClick:L,onKeyDown:V,__unstable_focusRing:!0,...n,children:$}),z[46]=t,z[47]=n,z[48]=$,z[49]=A):A=z[49],z[50]!==M||z[51]!==T||z[52]!==A?(D=(0,a.jsx)(y.AM,{open:M,ref:R,onKeyDown:V,portal:!0,constrainSize:!0,tone:"default",content:T,children:A}),z[50]=M,z[51]=T,z[52]=A,z[53]=D):D=z[53],D}function _S(e){return!e}let _T={portal:!0,tone:"default"};function _I(e){let t,n,r,i,l,d,c=(0,o.c)(18),{member:p,sortable:m,onRemove:h,readOnly:f}=e,g=(0,s.useId)(),{t:x}=iJ(),b=!!f;c[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(rU,{}),c[0]=t):t=c[0];let v=`${g}-menuButton`;return c[1]!==x?(n=x("inputs.array.action.remove-invalid-item"),c[1]=x,c[2]=n):n=c[2],c[3]!==h||c[4]!==n?(r=(0,a.jsx)(u.W1,{children:(0,a.jsx)(y.Dr,{text:n,tone:"critical",icon:C.ucK,onClick:h})}),c[3]=h,c[4]=n,c[5]=r):r=c[5],c[6]!==v||c[7]!==r?(i=(0,a.jsx)(y.IU,{button:t,id:v,menu:r,popover:_T}),c[6]=v,c[7]=r,c[8]=i):i=c[8],c[9]!==p.error.type||c[10]!==p.error.value||c[11]!==x?(l="INVALID_ITEM_TYPE"===p.error.type?(0,a.jsx)(_k,{value:p.error.value}):(0,a.jsx)("div",{children:x("inputs.array.error.unexpected-error",{error:p.error.type})}),c[9]=p.error.type,c[10]=p.error.value,c[11]=x,c[12]=l):l=c[12],c[13]!==m||c[14]!==b||c[15]!==i||c[16]!==l?(d=(0,a.jsx)(u.az,{paddingX:1,children:(0,a.jsx)(_w,{dragHandle:m,readOnly:b,tone:"caution",menu:i,children:l})}),c[13]=m,c[14]=b,c[15]=i,c[16]=l,c[17]=d):d=c[17],d}let _E=[];function _$(e){let{arrayFunctions:t=j9,elementProps:n,members:r,onChange:i,onItemMove:o,onUpload:l,focusPath:d,readOnly:p,onItemAppend:f,onItemPrepend:g,renderAnnotation:C,renderBlock:y,renderField:x,renderInlineBlock:b,renderInput:v,renderItem:j,renderPreview:w,resolveUploader:k,schemaType:S,value:T=_E}=e,{t:I}
1194=iJ(),[E,$]=(0,s.useState)(null),{space:A}=(0,u.DP)().sanity,D=function(e,t){let[n,r]=(0,s.useState)(e);return t(n,e)?n:(r(e),e)}((0,s.useMemo)(()=>r.map(e=>e.key),[r]),nm),{scrollElement:z,containerElement:M}=function(){let e=(0,s.useContext)(c.hK);if(!e)throw Error("VirtualizerScrollInstance: missing context value");return e}(),P=(0,s.useRef)(null),R=(0,s.useMemo)(()=>(0,_.tA)(d[0])?d[0]._key:d[0],[d]),O=(0,s.useCallback)(e=>{let t={...e};if(null!==E&&(t.startIndex=Math.min(e.startIndex,E),t.endIndex=Math.max(e.endIndex,E)),R){let e=D.findIndex(e=>e===R);-1!==e&&(t.startIndex=Math.min(t.startIndex,e),t.endIndex=Math.max(t.endIndex,e))}return(0,h.vp)(t)},[E,R,D]),V=(0,s.useCallback)((e,t)=>{if(!e.scrollElement)return;let n=e.scrollElement,r=e=>{let r=M.current?.getBoundingClientRect().top??0,i=Math.floor((P.current?.getBoundingClientRect().top??0)-r);t(n.scrollTop-i,!!e)};return r(),e.scrollElement.addEventListener("scroll",r,{capture:!1,passive:!0}),()=>{n.removeEventListener("scroll",r)}},[M]),L=(0,s.useCallback)(()=>53,[]),F=(0,m.Te)({count:r.length,estimateSize:L,getScrollElement:(0,s.useCallback)(()=>z,[z]),observeElementOffset:V,rangeExtractor:O,getItemKey:(0,s.useCallback)(e=>D[e],[D]),scrollToFn:(e,t,n)=>{e!==n.scrollOffset&&(0,h.Ox)(e,t,n)}}),B=F.getVirtualItems(),N=(0,s.useCallback)(e=>{let{active:t}=e;$(t.data.current?.sortable?.index)},[]),Y=(0,s.useCallback)(()=>{$(null)},[]),H=S.options?.sortable!==!1;return(0,a.jsxs)(u.BJ,{space:2,ref:P,children:[(0,a.jsx)(j3,{$radius:2,types:S.of,resolveUploader:k,onUpload:l,...n,tabIndex:0,children:(0,a.jsx)(u.BJ,{"data-ui":"ArrayInput__content",space:2,children:0===r.length?(0,a.jsx)(u.Zp,{padding:3,border:!0,radius:2,children:(0,a.jsx)(u.EY,{align:"center",muted:!0,size:1,children:S.placeholder||(0,a.jsx)(a.Fragment,{children:I("inputs.array.no-items-label")})})}):(0,a.jsx)(u.Zp,{border:!0,radius:2,style:{boxSizing:"border-box",height:`${F.getTotalSize()+B.length*A[1]+A[1]}px`,width:"100%",position:"relative"},children:(0,a.jsx)(jD,{axis:"y",gap:1,paddingY:1,items:D,onItemMove:o,onItemMoveStart:N,onItemMoveEnd:Y,sortable:H,style:{position:"absolute",top:0,left:0,width:"100%",transform:B.length>0?`translateY(${B[0].start}px)`:void 0},children:B.map(t=>{let n=r[t.index];return(0,a.jsxs)(jz,{ref:F.measureElement,sortable:H,"data-index":t.index,id:n.key,children:["item"===n.kind&&(0,a.jsx)(xQ,{member:n,renderAnnotation:C,renderBlock:y,renderField:x,renderInlineBlock:b,renderInput:v,renderItem:j,renderPreview:w}),"error"===n.kind&&(0,a.jsx)(_I,{readOnly:p,sortable:H,member:n,onRemove:()=>e.onItemRemove(n.key)})]},t.key)})})})})}),(0,a.jsx)(t,{onChange:i,onItemAppend:f,onItemPrepend:g,onValueCreate:x4,readOnly:p,schemaType:S,value:T})]})}function _A(e){let t,n=(0,o.c)(3),r=e.schemaType.options?.layout==="grid";return n[0]!==r||n[1]!==e?(t=r?(0,a.jsx)(_x,{...e}):(0,a.jsx)(_$,{...e}),n[0]=r,n[1]=e,n[2]=t):t=n[2],t}function _D(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("object"!=typeof e&&!Array.isArray(e))return e===t;if(e._key&&e._key===t._key)return!0;if(Array.isArray(e))return!e.length===t.length&&e.every((n,r)=>_D(e[r],t[r]));let n=Object.keys(e),r=Object.keys(e);return n.length===r.length&&n.every(n=>_D(e[n],t[n]))}function _z(e,t){return!!e&&e.some(e=>_D(e,t))}let _M=[];function _P(e){let{renderPreview:t,schemaType:n,onChange:r,onPathFocus:i,value:o=[],readOnly:l,elementProps:d,path:c,changed:p}=e,m=(0,s.useMemo)(()=>(n.options?.list||_M).map((e,t)=>(0,_.o8)(e)?e:{...e,_key:`auto-generated-${t}`}),[n.options?.list]),h=(0,s.useCallback)((e,t)=>{if(!e&&(0,_.o8)(t))return void r(s3([{_key:t._key}]));let n=m.filter(n=>_D(t,n)?e:_z(o,n));r(n.length>0?s7(n):s3())},[r,m,o]),f=(0,s.useCallback)(e=>{i([e])},[i]),g=n.options?.layout==="grid";return(0,a.jsx)(El,{path:c,isChanged:p,hasFocus:!1,children:(0,a.jsx)(u.xA,{gap:2,columns:g?Math.min(m.length,4):1,tabIndex:0,...d,children:m.map((e,r)=>{let i=n.of.find(t=>t.name===(0,nr.yu)(e)),s=_z(o,e),d=!i;return(0,a.jsxs)(u.so,{align:"center",as:"label",muted:d,children:[(0,a.jsx)(u.Sc,{disabled:d,checked:s,onChange:t=>h(t.currentTarget.checked,e),onFocus:()=>f(r),readOnly:l}),(0,a.jsx)(u.az,{flex:1,marginLeft:2,children:i?t({layout:"default",schemaType:i,value:e}):(0,a.jsx)(u.Zp,{tone:"caution",radius:2,children:(0,a.jsx)(x2,{value:e,onFocus:()=>f(r)})})})]},r)})})})}function _R(e){let{schemaType:t,onChange:n,value:r=[],readOnly:i,path:o,changed:l,onIndexFocus:d,elementProps:c}=e,p=(0,s.useMemo)(()=>(t.options?.list||[]).map(e=>e&&"object"==typeof e&&"title"in e&&"value"in e?{title:e.title||eJ(String(e.value)),value:e.value}:{title:eJ(String(e)),value:e}),[t.options?.list]),m=t.options?.layout==="grid";return(0,a.jsx)(El,{path:o,isChanged:l,hasFocus:!1,children:(0,a.jsx)(u.xA,{gap:2,columns:m?Math.min(p.length,4):1,...c,children:p.map((e,o)=>{let l=t.of.find(t=>t.name===(0,nr.yu)(e.value)),s=r.includes(e.value),c=!l;return(0,a.jsxs)(u.so,{align:"center",as:"label",muted:c,children:[(0,a.jsx)(u.Sc,{disabled:c,
1194checked:s,onChange:t=>((e,t)=>{let i=p.map(e=>e.value).filter(n=>n===t?e:r.includes(n));n(i.length>0?s7(i):s3())})(t.currentTarget.checked,e.value),onFocus:()=>d(o),readOnly:i}),(0,a.jsx)(u.az,{padding:2,children:(0,a.jsx)(u.EY,{children:e.title})}),!l&&(0,a.jsx)(_k,{value:e,onFocus:()=>d(o)})]},o)})})})}function _O(e){let t,n=(0,o.c)(2);return n[0]!==e?(t=(0,_.m5)(e.schemaType)?(0,a.jsx)(_P,{...e}):(0,a.jsx)(_R,{...e}),n[0]=e,n[1]=t):t=n[1],t}function _V(e){let t,n,r,i,l,d,c,p=(0,o.c)(28),{schemaType:m,readOnly:h,children:f,onValueCreate:g,onItemAppend:x}=e,b=(0,s.useId)(),{t:v}=iJ();p[0]!==x||p[1]!==g?(t=e=>{x(g(e))},p[0]=x,p[1]=g,p[2]=t):t=p[2];let j=t;p[3]!==j||p[4]!==m.of[0]?(n=()=>{j(m.of[0])},p[3]=j,p[4]=m.of[0],p[5]=n):n=p[5];let w=n;p[6]===Symbol.for("react.memo_cache_sentinel")?(i={constrainSize:!0,portal:!0},p[6]=i):i=p[6],r=i;let k=m.of.length>1?"inputs.array.action.add-item-select-type":"inputs.array.action.add-item";if(m.options?.disableActions?.includes("add"))return null;if(h){let e,t,n,r;return p[7]!==v?(e=v("inputs.array.read-only-label"),p[7]=v,p[8]=e):e=p[8],p[9]!==k||p[10]!==v?(t=v(k),p[9]=k,p[10]=v,p[11]=t):t=p[11],p[12]!==t?(n=(0,a.jsx)(u.xA,{children:(0,a.jsx)(y.$n,{"data-testid":"add-single-primitive-button",icon:C.REV,mode:"ghost",disabled:!0,size:"large",text:t})}),p[12]=t,p[13]=n):n=p[13],p[14]!==e||p[15]!==n?(r=(0,a.jsx)(y.m_,{portal:!0,content:e,children:n}),p[14]=e,p[15]=n,p[16]=r):r=p[16],r}return p[17]===Symbol.for("react.memo_cache_sentinel")?(l={gridTemplateColumns:"repeat(auto-fit, minmax(100px, 1fr))"},p[17]=l):l=p[17],p[18]!==k||p[19]!==w||p[20]!==j||p[21]!==b||p[22]!==m.of||p[23]!==v?(d=1===m.of.length?(0,a.jsx)(y.$n,{"data-testid":"add-multiple--primitive-button",icon:C.REV,mode:"ghost",onClick:w,size:"large",text:v(k)}):(0,a.jsx)(y.IU,{button:(0,a.jsx)(y.$n,{icon:C.REV,mode:"ghost",size:"large",text:v(k)}),id:b||"",menu:(0,a.jsx)(u.W1,{children:m.of.map((e,t)=>{let n=(0,_.do)(e)&&1===(e.to||[]).length&&e.to[0].icon,r=e.icon||e.type?.icon||n;return(0,a.jsx)(y.Dr,{text:e.title||e.type?.name,onClick:()=>j(e),icon:r},t)})}),popover:r}),p[18]=k,p[19]=w,p[20]=j,p[21]=b,p[22]=m.of,p[23]=v,p[24]=d):d=p[24],p[25]!==f||p[26]!==d?(c=(0,a.jsxs)(u.xA,{gap:1,style:l,children:[d,f]}),p[25]=f,p[26]=d,p[27]=c):c=p[27],c}let _L={portal:!0,tone:"default",placement:"left",constrainSize:!0};function _F(e){let t,n,r=(0,o.c)(17),{types:i,onInsert:l,pos:s,text:d,icon:c}=e;if(i?.length===1){let e,t;return r[0]!==l||r[1]!==s||r[2]!==i[0]?(e=()=>l(s,i[0]),r[0]=l,r[1]=s,r[2]=i[0],r[3]=e):e=r[3],r[4]!==c||r[5]!==s||r[6]!==e||r[7]!==d?(t=(0,a.jsx)(y.Dr,{text:d,icon:c,onClick:e},s),r[4]=c,r[5]=s,r[6]=e,r[7]=d,r[8]=t):t=r[8],t}return r[9]!==l||r[10]!==s||r[11]!==i?(t=i?.map(e=>(0,a.jsx)(y.Dr,{icon:e.icon,text:e.title,onClick:()=>l(s,e)},e.name)),r[9]=l,r[10]=s,r[11]=i,r[12]=t):t=r[12],r[13]!==s||r[14]!==t||r[15]!==d?(n=(0,a.jsx)(nz.r,{text:d,popover:_L,children:t},s),r[13]=s,r[14]=t,r[15]=d,r[16]=n):n=r[16],n}(0,s.memo)(function(e){let t,n,r,i,l,s=(0,o.c)(15),{types:d,onInsert:c}=e,{t:u}=iJ();return s[0]!==u?(t=u("inputs.array.action.add-before"),s[0]=u,s[1]=t):t=s[1],s[2]!==c||s[3]!==t||s[4]!==d?(n=(0,a.jsx)(_F,{pos:"before",types:d,onInsert:c,text:t,icon:C.SKY}),s[2]=c,s[3]=t,s[4]=d,s[5]=n):n=s[5],s[6]!==u?(r=u("inputs.array.action.add-after"),s[6]=u,s[7]=r):r=s[7],s[8]!==c||s[9]!==r||s[10]!==d?(i=(0,a.jsx)(_F,{pos:"after",types:d,onInsert:c,text:r,icon:C.amD}),s[8]=c,s[9]=r,s[10]=d,s[11]=i):i=s[11],s[12]!==n||s[13]!==i?(l=(0,a.jsxs)(a.Fragment,{children:[n,i]}),s[12]=n,s[13]=i,s[14]=l):l=s[14],l});let _B={portal:!0,tone:"default"},_N=[],_Y=(0,s.forwardRef)(function(e,t){let n,r,i,l,s,d,c,p,m,h,f,g,x,b,v,j,w,_,k=(0,o.c)(58),{sortable:S,value:T,insertableTypes:I,onInsert:E,onCopy:$,onRemove:A,readOnly:D,inputId:z,parentSchemaType:M,validation:P,children:R,presence:O,schemaType:V}=e,L=P.filter(_H).length>0,F=P.filter(_Z).length>0;k[0]!==E?(n=(e,t)=>{E({position:e,items:[x7(t)]})},k[0]=E,k[1]=n):n=k[1];let B=n;k[2]!==E||k[3]!==T?(r=()=>{T&&E({position:"after",items:[T]})},k[2]=E,k[3]=T,k[4]=r):r=k[4];let N=r;k[5]!==$||k[6]!==T?(i=()=>{$({items:[T]})},k[5]=$,k[6]=T,k[7]=i):i=k[7];let Y=i;e:{if(L){l="critical";break e}if(F){l="caution";break e}l=void 0}let H=l,{t:Z}=iJ(),U=M.options?.disableActions||_N;k[8]!==U||k[9]!==A||k[10]!==Z?(d=!U.includes("remove")&&(0,a.jsx)(y.Dr,{text:Z("inputs.array.action.remove"),tone:"critical",icon:C.ucK,onClick:A},"remove"),k[8]=U,k[9]=A,k[10]=Z,k[11]=d):d=k[11],k[12]!==U||k[13]!==Y||k[14]!==Z?(c=!U.includes("copy")&&(0,a.jsx)(y.Dr,{text:Z("inputs.array.action.copy"),icon:C.TdU,onClick:Y}
1194,"copy"),k[12]=U,k[13]=Y,k[14]=Z,k[15]=c):c=k[15],k[16]!==U||k[17]!==N||k[18]!==Z?(p=!U.includes("duplicate")&&(0,a.jsx)(y.Dr,{text:Z("inputs.array.action.duplicate"),icon:C.g$z,onClick:N},"duplicate"),k[16]=U,k[17]=N,k[18]=Z,k[19]=p):p=k[19],k[20]!==U||k[21]!==B||k[22]!==I||k[23]!==Z?(m=!(U.includes("add")||U.includes("addBefore"))&&(0,a.jsx)(_F,{pos:"before",types:I,onInsert:B,text:Z("inputs.array.action.add-before"),icon:C.SKY}),k[20]=U,k[21]=B,k[22]=I,k[23]=Z,k[24]=m):m=k[24],k[25]!==U||k[26]!==B||k[27]!==I||k[28]!==Z?(h=!U.includes("add")&&!U.includes("addAfter")&&(0,a.jsx)(_F,{pos:"after",types:I,onInsert:B,text:Z("inputs.array.action.add-after"),icon:C.amD}),k[25]=U,k[26]=B,k[27]=I,k[28]=Z,k[29]=h):h=k[29],k[30]!==d||k[31]!==c||k[32]!==p||k[33]!==m||k[34]!==h?(f=[d,c,p,m,h].filter(Boolean),k[30]=d,k[31]=c,k[32]=p,k[33]=m,k[34]=h,k[35]=f):f=k[35],s=f,k[36]!==z||k[37]!==s||k[38]!==D?(x=D||0===s.length?null:(0,a.jsx)(y.IU,{button:(0,a.jsx)(rU,{}),id:`${z}-menuButton`,popover:_B,menu:(0,a.jsx)(u.W1,{children:s})}),k[36]=z,k[37]=s,k[38]=D,k[39]=x):x=k[39],g=x;let q=!!D;k[40]!==O?(b=0===O.length?null:(0,a.jsx)(y4,{presence:O,maxAvatars:1}),k[40]=O,k[41]=b):b=k[41],k[42]!==P?(v=P.length>0?(0,a.jsx)(u.az,{paddingX:1,paddingY:3,children:(0,a.jsx)(dp,{validation:P})}):null,k[42]=P,k[43]=v):v=k[43];let J=V?"flex-end":"center";return k[44]!==R?(j=(0,a.jsx)(u.so,{align:"flex-end",flex:1,children:(0,a.jsx)(u.az,{flex:1,marginRight:2,children:R})}),k[44]=R,k[45]=j):j=k[45],k[46]!==t||k[47]!==J||k[48]!==j?(w=(0,a.jsx)(u.so,{align:J,ref:t,children:j}),k[46]=t,k[47]=J,k[48]=j,k[49]=w):w=k[49],k[50]!==g||k[51]!==S||k[52]!==q||k[53]!==b||k[54]!==v||k[55]!==w||k[56]!==H?(_=(0,a.jsx)(_w,{tone:H,readOnly:q,menu:g,dragHandle:S,presence:b,validation:v,children:w}),k[50]=g,k[51]=S,k[52]=q,k[53]=b,k[54]=v,k[55]=w,k[56]=H,k[57]=_):_=k[57],_});function _H(e){return"error"===e.level}function _Z(e){return"warning"===e.level}function _U(e){let t,n,r=(0,o.c)(5),{schemaType:i}=e,{t:l}=iJ();return r[0]!==i.placeholder||r[1]!==l?(t=i.placeholder||l("inputs.array.no-items-label"),r[0]=i.placeholder,r[1]=l,r[2]=t):t=r[2],r[3]!==t?(n=(0,a.jsx)(u.Zp,{padding:3,border:!0,radius:2,children:(0,a.jsx)(u.EY,{align:"center",muted:!0,size:1,children:t})}),r[3]=t,r[4]=n):n=r[4],n}class _q extends s.PureComponent{_element=null;constructor(e){super(e),this.state={disableTransition:!1}}handleAppend=e=>{let{value:t=[],onIndexFocus:n,onItemAppend:r}=this.props;r(e),n(t.length)};handlePrepend=e=>{let{onIndexFocus:t,value:n=[],onItemPrepend:r}=this.props;r(e),t(n.length)};handleSortEnd=e=>{let{onIndexFocus:t,onMoveItem:n,value:r}=this.props;r&&n(e),t(e.toIndex)};handleItemMoveStart=()=>{this.setState({disableTransition:!1})};handleItemMoveEnd=()=>{this.setState({disableTransition:!0})};focus(){this._element&&this._element.focus()}getSnapshotBeforeUpdate(e){let{focusPath:t=[],value:n=[]}=e,{focusPath:r=[],value:i=[]}=this.props;if(t[0]===r[0]&&n.length!==i.length){let e=r[0],t=window.getSelection();if(!(t?.focusNode instanceof HTMLElement))return null;let n=t.focusNode?.querySelector("input,textarea");return n instanceof HTMLInputElement?{prevFocusedIndex:e,restoreSelection:{text:t.toString(),start:n.selectionStart,end:n.selectionEnd,value:n.value}}:{}}return null}componentDidUpdate(e,t,n){let{onIndexFocus:r}=this.props;if(n?.restoreSelection&&e.value){var i,a;let t=e.value[n.prevFocusedIndex],o=(i=this.props.value||[],a=n.prevFocusedIndex,function(e,t,n){let r=t-1,i=t,a=e.length;for(;r>-1||i<a;){let t=e[i];if(i<a&&n(t,i))return i;let o=e[r];if(r>-1&&n(o,r))return r;r--,i++}return -1}(i,a,e=>e===t));if(-1===o)return;let l=this._element?.querySelector(`[data-item-index='${o}'] input,textarea`);if(l instanceof HTMLInputElement){l.focus();try{l.setSelectionRange(n.restoreSelection.start,n.restoreSelection.end)}catch{}}r(o)}}renderArrayItem=e=>{let{schemaType:t}=this.props,{key:n,...r}=e,i=t.options?.sortable!==!1;return(0,a.jsx)(_Y,{...r,sortable:i,insertableTypes:t.of},n)};render(){let{schemaType:e,members:t,readOnly:n,renderInput:r,onUpload:i,onItemRemove:o,resolveUploader:l,elementProps:s,arrayFunctions:d=_V,changed:c}=this.props,p=!n&&!1!==ni(e,"options.sortable"),m=t.map(e=>({id:`${e.key}-${"item"===e.kind?e.item.value:"error"}`,member:e}));return(0,a.jsxs)(u.BJ,{space:2,"data-testid":"array-primitives-input",children:[(0,a.jsx)(j3,{types:e.of,resolveUploader:l,onUpload:i,...s,tabIndex:0,children:(0,a.jsx)(u.BJ,{space:1,children:0===m.length?(0,a.jsx)(_U,{schemaType:e}):(0,a.jsx)(u.Zp,{padding:1,border:!0,children:(0,a.jsx)(jD,{onItemMove:this.handleSortEnd,onItemMoveStart:this.handleItemMoveStart,onItemMoveEnd:this.handleItemMoveEnd,items:m.map(e=>e.id),sortable:p,gap:1,children:m.map(({member:e,id:t},i)=>(0,a.jsxs)(jz,{id:t,sortable:p,disableTransition:this.state.disableTransition,children:["item"===e.kind&&(0,a.jsx)(El,{path:e.item.path,isChanged:c,hasFocus:!1,children:(0,a.jsx)(x8,{member:e,renderItem:this.renderArrayItem,renderInput:r})}),"error"===e.kind&&(0,a.jsx)(_I,{readOnly:n,sortable:p,member:e,onRemove:()=>o(i)})]},e.key))})})})}),(0,a.jsx)(d,{onChange:this.props.onChange,onItemAppend:this.handleAppend,onItemPrepend:this.handlePrepend,onValueCreate:x7,readOnly:this.props.readOnly,schemaType:this.props.schemaType,value:this.props.value})]})}}let _J=(0,g.I4)(u.az)`
1195  align-self: center;
1196`;function _W(e,t){for(let n of((e,t)=>{if("function"==typeof e)throw Error(`Schema type "${t?.name||"<not-found>"}"'s \`validation\` was not run though \`inferFromSchema\``);return e?Array.isArray(e)?e:[e]:[]})(e?.validation,e))for(let e of n._rules)if(e.flag===t)return e;return null}function _K(e){if(e.currentTarget&&document.activeElement===e.currentTarget){e.preventDefault();let t=function(e){if(!e||!(e instanceof Element))return null;let t=e.parentElement;for(;t;){let e=window.getComputedStyle(t).overflowY;if(("auto"===e||"scroll"===e)&&t.scrollHeight>t.clientHeight)return t;t=t.parentElement}return window}
1196(e.currentTarget);t&&t.scrollBy({top:e.deltaY,left:e.deltaX,behavior:"instant"})}}function _G(e){let t,n,r,i=(0,o.c)(10),{schemaType:l,validationError:d,elementProps:c}=e,p=_W(l,"min"),m=_W(l,"integer"),h=_W(l,"precision"),f="number"==typeof p?.constraint&&p?.constraint>=0,g=m||h?.constraint===0,C=f?g?"numeric":"decimal":"text",y=c.ref;i[0]!==y.current?(t=()=>{let e=y.current;return e.addEventListener("wheel",_K),()=>{e.removeEventListener("wheel",_K)}},i[0]=y.current,i[1]=t):t=i[1],i[2]!==y?(n=[y],i[2]=y,i[3]=n):n=i[3],(0,s.useEffect)(t,n);let x=f?"[d]*":void 0;return i[4]!==c||i[5]!==C||i[6]!==l.placeholder||i[7]!==x||i[8]!==d?(r=(0,a.jsx)(u.ks,{...c,type:"number",step:"any",inputMode:C,customValidity:d,placeholder:l.placeholder,pattern:x,max:Number.MAX_SAFE_INTEGER,min:Number.MIN_SAFE_INTEGER,"data-testid":"number-input"}),i[4]=c,i[5]=C,i[6]=l.placeholder,i[7]=x,i[8]=d,i[9]=r):r=i[9],r}let _X=(0,s.forwardRef)(function(e,t){let n,r,i=(0,o.c)(9),{onClick:l}=e;i[0]!==l||i[1]!==e.name?(n=()=>{l?.(e.name)},i[0]=l,i[1]=e.name,i[2]=n):n=i[2];let s=n,d=`group-tab-${e.name}`,c=`${e.name}-tab`;return i[3]!==s||i[4]!==e||i[5]!==t||i[6]!==d||i[7]!==c?(r=(0,a.jsx)(y.oz,{"data-testid":d,id:c,label:e.title,ref:t,...e,onClick:s}),i[3]=s,i[4]=e,i[5]=t,i[6]=d,i[7]=c,i[8]=r):r=i[8],r}),_Q=e=>{let t,n,r,i,l=(0,o.c)(12);l[0]!==e?({name:t,title:r,...n}=e,l[0]=e,l[1]=t,l[2]=n,l[3]=r):(t=l[1],n=l[2],r=l[3]);let{selected:s}=e,d=`${t}-tab`,c=n["aria-controls"],u=`group-select-${t}`,p=s?"true":"false",m=r||t;return l[4]!==t||l[5]!==d||l[6]!==c||l[7]!==u||l[8]!==p||l[9]!==m||l[10]!==r?(i=(0,a.jsx)("option",{title:r,value:t,id:d,"aria-controls":c,"data-testid":u,"aria-selected":p,children:m}),l[4]=t,l[5]=d,l[6]=c,l[7]=u,l[8]=p,l[9]=m,l[10]=r,l[11]=i):i=l[11],i},_1=(0,g.I4)(u.dU)`
1197  /* Hide on small screens */
1198  &[data-eq-max~='0'] [data-ui='TabList'] {
1199    display: none;
1200  }
1201
1202  /* Hide on medium to large screens */
1203  [data-ui='Select'] {
1204    display: none;
1205  }
1206
1207  /* Show on small screens */
1208  &[data-eq-max~='0'] [data-ui='Select'] {
1209    display: block;
1210  }
1211`,_2=e=>{let t,n,r=(0,o.c)(15),{inputId:i,groups:l,onClick:s,shouldAutoFocus:d,disabled:c}=e,p=void 0===d||d,{t:m}=iJ();if(r[0]!==c||r[1]!==l||r[2]!==i||r[3]!==s||r[4]!==p||r[5]!==m){let e;r[7]!==c||r[8]!==i||r[9]!==s||r[10]!==p||r[11]!==m?(e=e=>{let t=e.i18n?.title?m(e.i18n.title.key,{ns:e.i18n.title.ns}):e.title||e.name;return(0,a.jsx)(_X,{"aria-controls":`${i}-field-group-fields`,autoFocus:p&&e.selected,disabled:c||e.disabled,icon:e?.icon,name:e.name,onClick:s,selected:!!e.selected,title:t},`${i}-${e.name}-tab`)},r[7]=c,r[8]=i,r[9]=s,r[10]=p,r[11]=m,r[12]=e):e=r[12],t=l.map(e),r[0]=c,r[1]=l,r[2]=i,r[3]=s,r[4]=p,r[5]=m,r[6]=t}else t=r[6];return r[13]!==t?(n=(0,a.jsx)(u.wb,{space:2,"data-testid":"field-group-tabs",children:t}),r[13]=t,r[14]=n):n=r[14],n},_5=e=>{let t,n,r,i,l=(0,o.c)(18),{disabled:s,groups:d,inputId:c,onSelect:p,shouldAutoFocus:m}=e,h=void 0===m||m;l[0]!==p?(t=e=>{p(e.currentTarget.value)},l[0]=p,l[1]=t):t=l[1];let f=t,{t:g}=iJ();l[2]!==g?(n=g("inputs.object.field-group-tabs.aria-label"),l[2]=g,l[3]=n):n=l[3];let C=d.find(_7)?.name;if(l[4]!==d||l[5]!==c||l[6]!==g){let e;l[8]!==c||l[9]!==g?(e=e=>{let t=e.i18n?.title?g(e.i18n.title.key,{ns:e.i18n.title.ns}):e.title||e.name;return(0,a.jsx)(_Q,{"aria-controls":`${c}-field-group-fields`,disabled:e.disabled,name:e.name,selected:!!e.selected,title:t},`${c}-${e.name}-tab`)},l[8]=c,l[9]=g,l[10]=e):e=l[10],r=d.map(e),l[4]=d,l[5]=c,l[6]=g,l[7]=r}else r=l[7];return l[11]!==s||l[12]!==f||l[13]!==h||l[14]!==n||l[15]!==C||l[16]!==r?(i=(0,a.jsx)(u.l6,{"aria-label":n,autoFocus:h,"data-testid":"field-group-select",disabled:s,fontSize:2,muted:!0,onChange:f,value:C,children:r}),l[11]=s,l[12]=f,l[13]=h,l[14]=n,l[15]=C,l[16]=r,l[17]=i):i=l[17],i},_0=(0,s.memo)(function(e){let t,n,r,i,l,s=(0,o.c)(10);s[0]!==e?({disabled:r,onClick:t,...n}=e,s[0]=e,s[1]=t,s[2]=n,s[3]=r):(t=s[1],n=s[2],r=s[3]);let d=void 0!==r&&r;s[4]!==t?(i=e=>{t?.(e)},s[4]=t,s[5]=i):i=s[5];let c=i;return s[6]!==d||s[7]!==c||s[8]!==n?(l=(0,a.jsxs)(_1,{"data-testid":"field-group-root",children:[(0,a.jsx)(_2,{...n,disabled:d,onClick:c}),(0,a.jsx)(_5,{...n,disabled:d,onSelect:c}
1211)]}),s[6]=d,s[7]=c,s[8]=n,s[9]=l):l=s[9],l});function _7(e){return e.selected}let _3=(0,g.I4)(u.Zp)`
1212  margin-bottom: ${({$level:e,theme:t})=>0===e?0:-1*t.sanity.space[5]}px;
1213  padding-bottom: ${({$level:e,theme:t})=>t.sanity.space[4]}px;
1214`,_8=(0,g.I4)(u.xA)`
1215  align-items: flex-end;
1216`;function _4(e){let t,n,r,i,l,s,d,c,p,m,h,f,g=(0,o.c)(38),{fieldNames:C,onChange:y,readOnly:x,value:b}=e,v=C.length;g[0]!==y?(t=e=>{y(s3([e]))},g[0]=y,g[1]=t):t=g[1];let j=t,{t:w}=iJ();if(g[2]!==v||g[3]!==w?(n=w("inputs.object.unknown-fields.warning.title",{count:v}),g[2]=v,g[3]=w,g[4]=n):n=g[4],g[5]!==n?(r=(0,a.jsx)(a.Fragment,{children:n}),g[5]=n,g[6]=r):r=g[6],g[7]!==v||g[8]!==w?(i=w("inputs.object.unknown-fields.warning.description",{count:v}),g[7]=v,g[8]=w,g[9]=i):i=g[9],g[10]!==i?(l=(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:(0,a.jsx)(a.Fragment,{children:i})}),g[10]=i,g[11]=l):l=g[11],g[12]!==w?(s=w("inputs.object.unknown-fields.warning.details.title"),g[12]=w,g[13]=s):s=g[13],g[14]!==v||g[15]!==w?(d=w("inputs.object.unknown-fields.warning.details.description",{count:v}),g[14]=v,g[15]=w,g[16]=d):d=g[16],g[17]!==d?(c=(0,a.jsx)(u.az,{marginBottom:3,children:(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:(0,a.jsx)(a.Fragment,{children:d})})}),g[17]=d,g[18]=c):c=g[18],g[19]!==C||g[20]!==j||g[21]!==x||g[22]!==b){let e;g[24]!==j||g[25]!==x||g[26]!==b?(e=e=>(0,a.jsx)(_6,{fieldName:e,onUnsetClick:j,readOnly:x,value:b?.[e]},e),g[24]=j,g[25]=x,g[26]=b,g[27]=e):e=g[27],p=C.map(e),g[19]=C,g[20]=j,g[21]=x,g[22]=b,g[23]=p}else p=g[23];return g[28]!==p?(m=(0,a.jsx)(u.BJ,{as:"ul",space:3,children:p}),g[28]=p,g[29]=m):m=g[29],g[30]!==s||g[31]!==c||g[32]!==m?(h=(0,a.jsxs)(uo,{marginTop:4,open:ar,title:s,children:[c,m]}),g[30]=s,g[31]=c,g[32]=m,g[33]=h):h=g[33],g[34]!==h||g[35]!==r||g[36]!==l?(f=(0,a.jsxs)(bR,{status:"warning",title:r,children:[l,h]}),g[34]=h,g[35]=r,g[36]=l,g[37]=f):f=g[37],f}function _6(e){let t,n,r,i,l,s,d,c=(0,o.c)(21),{fieldName:p,onUnsetClick:m,readOnly:h,value:f}=e;c[0]!==p||c[1]!==m?(t=()=>{m(p)},c[0]=p,c[1]=m,c[2]=t):t=c[2];let g=t,{t:x}=iJ();return c[3]!==p?(n=(0,a.jsx)(u.Zp,{padding:3,shadow:1,tone:"inherit",children:(0,a.jsx)(u.Cy,{size:1,children:p})}),c[3]=p,c[4]=n):n=c[4],c[5]!==f?(r=JSON.stringify(f,null,2),c[5]=f,c[6]=r):r=c[6],c[7]!==r?(i=(0,a.jsx)(u.az,{overflow:"auto",padding:3,children:(0,a.jsx)(u.Cy,{language:"json",size:1,children:r})}),c[7]=r,c[8]=i):i=c[8],c[9]!==h||c[10]!==x?(l=h&&(0,a.jsx)(u.az,{padding:3,children:(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:(0,a.jsx)(an,{t:x,i18nKey:"inputs.object.unknown-fields.read-only.description"})})}),c[9]=h,c[10]=x,c[11]=l):l=c[11],c[12]!==g||c[13]!==h||c[14]!==x?(s=!h&&(0,a.jsx)(u.Zp,{padding:3,shadow:1,tone:"inherit",children:(0,a.jsx)(y.$n,{icon:C.ucK,mode:"ghost",onClick:g,size:"large",tone:"critical",text:x("inputs.object.unknown-fields.remove-field-button.text")})}),c[12]=g,c[13]=h,c[14]=x,c[15]=s):s=c[15],c[16]!==n||c[17]!==i||c[18]!==l||c[19]!==s?(d=(0,a.jsxs)(u.Zp,{as:"li",overflow:"hidden",radius:2,shadow:1,tone:"caution",children:[n,i,l,s]}),c[16]=n,c[17]=i,c[18]=l,c[19]=s,c[20]=d):d=c[20],d}let _9=(0,g.I4)(u.BJ)`
1217  // Disable focus ring for the object block. We instead highlight the left border on the fieldset
1218  // for level > 0 to signal that you have focused on the object
1219  &:focus {
1220    outline: none;
1221  }
1222`,ke=(0,s.memo)(function(e){let t,n,r,i,l,d,c,u,p,m,h,f,g=(0,o.c)(43),{__internal_arrayEditingModal:C,groups:y,id:x,members:b,onChange:v,onFieldGroupSelect:j,renderAnnotation:w,renderBlock:k,renderField:S,renderInlineBlock:T,renderInput:I,renderItem:E,renderPreview:$,schemaType:A,path:D,level:z,value:M,onPathFocus:P}=e,R=void 0===C?null:C,O=(0,s.useRef)(null);g[0]!==A.options?(t=A.options||{},g[0]=A.options,g[1]=t):t=g[1];let{columns:V}=t;n="root"!==x&&!(D.length>0&&(0,_.tA)(e0(D)));e:{let e,t;if(!A.fields){r=null;break e}if(g[2]!==A.fields||g[3]!==M){let t=A.fields.map(kt);e=Object.keys(M||{}).filter(e=>!e.startsWith("_")&&!t.includes(e)),g[2]=A.fields,g[3]=M,g[4]=e}else e=g[4];let n=e;if(0===n.length){r=null;break e}g[5]!==v||g[6]!==n||g[7]!==M?(t=(0,a.jsx)(_4,{fieldNames:n,value:M,onChange:v}),g[5]=v,g[6]=n,g[7]=M,g[8]=t):t=g[8],r=t}let L=r;g[9]!==y?(l=y.find(kn),g[9]=y,g[10]=l):l=g[10],i=l,g[11]!==n||g[12]!==P?(d=e=>{n&&e.target===O.current&&P(i_)},g[11]=n,g[12]=P,g[13]=d):d=g[13];let F=d;g[14]!==b||g[15]!==w||g[16]!==k||g[17]!==S||g[18]!==T||g[19]!==I||g[20]!==E||g[21]!==$?(c=()=>(0,a.jsx)(b7,{members:b,renderAnnotation:w,renderBlock:k,renderField:S,renderInlineBlock:T,renderInput:I,renderItem:E,renderPreview:$}),g[14]=b,g[15]=w,g[16]=k,g[17]=S,g[18]=T,g[19]=I,g[20]=E,g[21]=$,g[22]=c):c=g[22];let B=c;if(0===b.length)return null;let N=n?0:void 0;g[23]!==y||g[24]!==x||g[25]!==z||g[26]!==j?(u=y.length>0?(0,a.jsx)(_3,{$level:z,"data-testid":"field-groups",children:(0,a.jsx)(_0,{groups:y,inputId:x,onClick:j,shouldAutoFocus:!1})}):null,g[23]=y,g[24]=x,g[25]=z,g[26]=j,g[27]=u):u=g[27];let Y=i?.name;return g[28]!==V||g[29]!==B?(p=V?(0,a.jsx)(_8,{columns:V,gap:4,marginTop:1,children:B()}):B(),g[28]=V,g[29]=B,g[30]=p):p=g[30],g[31]!==Y||g[32]!==p?(m=(0,a.jsx)(s.Fragment,{children:p},Y),g[31]=Y,g[32]=p,g[33]=m):m=g[33],g[34]!==F||g[35]!==L||g[36]!==m||g[37]!==N||g[38]!==u?(h=(0,a.jsxs)(_9,{space:6,tabIndex:N,onFocus:
1222F,ref:O,children:[u,m,L]}),g[34]=F,g[35]=L,g[36]=m,g[37]=N,g[38]=u,g[39]=h):h=g[39],g[40]!==R||g[41]!==h?(f=(0,a.jsxs)(a.Fragment,{children:[R,h]}),g[40]=R,g[41]=h,g[42]=f):f=g[42],f});function kt(e){return e.name}function kn(e){let{selected:t}=e;return t}async function kr(e,t,n){return e&&(t.options?.slugify||((e,t)=>{let n=t.options?.maxLength;return e?rk(e,{truncate:"number"==typeof n?n:200,symbols:!0}):""}))(e,t,n)}async function ki(e,t,n){return"function"==typeof e?e(t,n):l.Jt(t,e)}function ka(e){return"error"===e.level}function ko(e){let t,n=(0,o.c)(3),{validationError:r,elementProps:i}=e;return n[0]!==i||n[1]!==r?(t=(0,a.jsx)(u.ks,{...i,customValidity:r,"data-testid":"string-input"}),n[0]=i,n[1]=r,n[2]=t):t=n[2],t}let kl=(0,g.I4)(u.fs)`
1223  &[data-as='textarea'] {
1224    resize: vertical;
1225  }
1226`;function ks(e){let t,n,r,i,l,s,d,c,p,m,h,f,g=(0,o.c)(29),{value:x,onClearValue:b}=e;t=!!x?._ref;let{t:v}=iJ();g[0]===Symbol.for("react.memo_cache_sentinel")?(n={DocumentationLink:kd},g[0]=n):n=g[0],g[1]!==v?(r=(0,a.jsx)(an,{t:v,i18nKey:"inputs.reference.cross-dataset.feature-disabled-description",components:n}),g[1]=v,g[2]=r):r=g[2];let j=r,w=t?4:void 0;return g[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsx)(u.az,{children:(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.sAQ,{})})}),g[3]=i):i=g[3],g[4]!==v?(l=v("inputs.reference.cross-dataset.feature-unavailable-title"),g[4]=v,g[5]=l):l=g[5],g[6]!==l?(s=(0,a.jsx)(u.EY,{as:"h2",size:1,weight:"medium",children:l}),g[6]=l,g[7]=s):s=g[7],g[8]!==j||g[9]!==t||g[10]!==v?(d=t&&(0,a.jsxs)(u.BJ,{space:3,children:[(0,a.jsx)(u.EY,{as:"p",size:1,children:j}),(0,a.jsx)(u.EY,{as:"p",size:1,children:v("inputs.reference.cross-dataset.feature-disabled-actions")})]}),g[8]=j,g[9]=t,g[10]=v,g[11]=d):d=g[11],g[12]!==j||g[13]!==t?(c=!t&&(0,a.jsx)(u.EY,{as:"p",size:1,children:j}),g[12]=j,g[13]=t,g[14]=c):c=g[14],g[15]!==s||g[16]!==d||g[17]!==c?(p=(0,a.jsxs)(u.BJ,{space:3,children:[s,d,c]}),g[15]=s,g[16]=d,g[17]=c,g[18]=p):p=g[18],g[19]!==p||g[20]!==w?(m=(0,a.jsxs)(u.so,{gap:4,marginBottom:w,children:[i,p]}),g[19]=p,g[20]=w,g[21]=m):m=g[21],g[22]!==t||g[23]!==b||g[24]!==v?(h=b&&t&&(0,a.jsx)(y.$n,{icon:C.NAP,mode:"ghost",onClick:b,text:v("inputs.reference.action.clear"),width:"fill"}),g[22]=t,g[23]=b,g[24]=v,g[25]=h):h=g[25],g[26]!==m||g[27]!==h?(f=(0,a.jsxs)(u.Zp,{tone:"caution",padding:4,border:!0,radius:2,"data-testid":"alert-cross-dataset-reference-feature-disabled",children:[m,h]}),g[26]=m,g[27]=h,g[28]=f):f=g[28],f}function kd(e){let{children:t}=e;return(0,a.jsx)("a",{href:"https://www.sanity.io/docs/cross-dataset-references",target:"_blank",rel:"noreferrer",children:t})}let kc=(0,g.I4)(u.so)`
1227  /* this is a hack to avoid layout jumps while previews are loading
1228  or the message is not tall enough to fill the card
1229  there's probably better ways of solving this */
1230  min-height: 36px;
1231`;function ku(e){let t,n,r,i,l,d,c,p=(0,o.c)(37),{refType:m,showStudioUrlIcon:h,hasStudioUrl:f,showTypeLabel:g,availability:x,preview:b,id:v,dataset:j,projectId:w}=e,_=x?.reason==="NOT_FOUND",k=x?.reason==="PERMISSION_DENIED",S=b.published?.media,{t:T}=iJ();e:{let e;if(S){let e,n,r="u">typeof S?.asset&&(0,e3.LG)(S);p[0]!==S?(e=(0,s.isValidElement)(S),p[0]=S,p[1]=e):e=p[1];let i=e;if(!r&&!i){t=null;break e}p[2]!==j||p[3]!==i||p[4]!==S||p[5]!==w||p[6]!==T?(n=function(e){let{dimensions:t}=e;return i?S:(0,a.jsx)("img",{src:e8({dataset:j,projectId:w}).image(S).withOptions(t).url(),alt:T("inputs.reference.image-preview-alt-text"),referrerPolicy:"strict-origin-when-cross-origin"})},p[2]=j,p[3]=i,p[4]=S,p[5]=w,p[6]=T,p[7]=n):n=p[7],t=n;break e}if(!m?.icon){t=null;break e}let n=m.icon;p[8]!==n?(e=(0,a.jsx)(n,{}),p[8]=n,p[9]=e):e=p[9],t=e}let I=t;return p[10]!==x?.available||p[11]!==I||p[12]!==b.published?.subtitle||p[13]!==b.published?.title||p[14]!==T?(n=x?.available?(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(etU,{title:b.published?.title,subtitle:b.published?.subtitle,media:I||!1})}):(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(u.so,{align:"center",children:(0,a.jsx)(u.az,{flex:1,paddingY:2,children:(0,a.jsx)(u.EY,{muted:!0,children:T("inputs.reference.error.document-unavailable-title")})})})}),p[10]=x?.available,p[11]=I,p[12]=b.published?.subtitle,p[13]=b.published?.title,p[14]=T,p[15]=n):n=p[15],p[16]!==m||p[17]!==g?(r=m&&g&&(0,a.jsx)(u.Ex,{mode:"outline",children:m.title||m.type}),p[16]=m,p[17]=g,p[18]=r):r=p[18],p[19]!==v||p[20]!==k||p[21]!==_||p[22]!==T?(i=(k||_)&&(0,a.jsx)(u.az,{children:(0,a.jsx)(y.m_,{portal:!0,content:T(_?"input
1231s.reference.referenced-document-does-not-exist":"inputs.reference.referenced-document-insufficient-permissions",{documentId:v}),children:(0,a.jsx)(ut,{tone:"default",children:k?(0,a.jsx)(C.VY$,{}):(0,a.jsx)(C.V1u,{})})})}),p[19]=v,p[20]=k,p[21]=_,p[22]=T,p[23]=i):i=p[23],p[24]!==f||p[25]!==k||p[26]!==_||p[27]!==h||p[28]!==T?(l=!(_||k)&&h&&(0,a.jsx)(u.az,{children:(0,a.jsx)(y.m_,{portal:!0,content:T(f?"inputs.reference.document-opens-in-new-tab":"input.reference.document-cannot-be-opened.failed-to-resolve-url"),children:(0,a.jsx)(ut,{size:1,tone:"default",muted:!f,children:(0,a.jsx)(C.ZPM,{})})})}),p[24]=f,p[25]=k,p[26]=_,p[27]=h,p[28]=T,p[29]=l):l=p[29],p[30]!==r||p[31]!==i||p[32]!==l?(d=(0,a.jsx)(u.az,{paddingLeft:3,children:(0,a.jsxs)(u.cV,{space:4,children:[r,i,l]})}),p[30]=r,p[31]=i,p[32]=l,p[33]=d):d=p[33],p[34]!==n||p[35]!==d?(c=(0,a.jsxs)(kc,{align:"center",justify:"center",flex:1,"data-testid":"preview",children:[n,d]}),p[34]=n,p[35]=d,p[36]=c):c=p[36],c}let kp=()=>{},km={isLoading:!0,result:void 0,error:void 0,retry:kp},kh={isLoading:!1,result:void 0,error:void 0,retry:kp};function kf(e,t){let[n,r]=(0,s.useState)(0),i=(0,s.useCallback)(()=>{r(e=>e+1)},[]),a=(0,s.useMemo)(()=>({_id:e._id,_type:e._type}),[e._id,e._type]),o=(0,s.useMemo)(()=>a._id?t(a).pipe((0,E.T)(e=>({isLoading:!1,result:e,error:void 0,retry:i,retryAttempt:n})),(0,Z.Z)(km),(0,M.W)(e=>(console.error(e),(0,k.of)({isLoading:!1,result:void 0,error:e,retry:i,retryAttempt:n})))):(0,k.of)(kh),[a,t,i,n]);return(0,eH.J)(o,km)}function kg(){let e,t=(0,o.c)(2),n=ee7(a7);return t[0]!==n?(e=n.config(),t[0]=n,t[1]=e):e=t[1],e.projectId}function kC(e){let t,n,r=(0,o.c)(29),{isLoading:i,result:l,error:s}=kf(e.document,e.getReferenceInfo),{t:d}=iJ(),c=kg();if(i){let e,t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(p.r5,{style:{maxWidth:320},radius:1,animated:!0}),r[0]=e):e=r[0],r[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsxs)(u.BJ,{space:2,padding:1,children:[e,(0,a.jsx)(p.r5,{style:{maxWidth:200},radius:1,size:1,animated:!0})]}),r[1]=t):t=r[1],t}if(s){let e,t,n;return r[2]!==d?(e=d("inputs.reference.error.failed-to-load-document-title"),r[2]=d,r[3]=e):e=r[3],r[4]!==s.message?(t=(0,a.jsx)(u.EY,{muted:!0,size:1,children:s.message}),r[4]=s.message,r[5]=t):t=r[5],r[6]!==e||r[7]!==t?(n=(0,a.jsx)(u.BJ,{space:2,padding:1,children:(0,a.jsx)(bR,{title:e,children:t})}),r[6]=e,r[7]=t,r[8]=n):n=r[8],n}if(!l)return null;if(l.availability?.reason==="PERMISSION_DENIED"){let e,t;return r[9]!==d?(e=d("inputs.reference.error.missing-read-permissions-description"),r[9]=d,r[10]=e):e=r[10],r[11]!==e?(t=(0,a.jsx)(u.BJ,{space:2,padding:1,children:e}),r[11]=e,r[12]=t):t=r[12],t}if(r[13]!==e.referenceType.to||r[14]!==l.type){let n;r[16]!==l.type?(n=e=>e.type===l.type,r[16]=l.type,r[17]=n):n=r[17],t=e.referenceType.to.find(n),r[13]=e.referenceType.to,r[14]=l.type,r[15]=t}else t=r[15];let m=t;if(!m){let e,t;return r[18]!==l.type||r[19]!==d?(e=d("inputs.reference.error.invalid-search-result-type-title",{returnedType:l.type}),r[18]=l.type,r[19]=d,r[20]=e):e=r[20],r[21]!==e?(t=(0,a.jsx)(u.BJ,{space:2,padding:1,children:e}),r[21]=e,r[22]=t):t=r[22],t}return r[23]!==c||r[24]!==e.referenceType.dataset||r[25]!==e.referenceType.to.length||r[26]!==m||r[27]!==l?(n=l&&m&&(0,a.jsx)(ku,{id:l.id,availability:l.availability,preview:l.preview,refType:m,dataset:e.referenceType.dataset,projectId:c,showTypeLabel:e.referenceType.to.length>1}),r[23]=c,r[24]=e.referenceType.dataset,r[25]=e.referenceType.to.length,r[26]=m,r[27]=l,r[28]=n):n=r[28],n}function ky(e){let t,n,r=(0,o.c)(32),{value:i,type:l,showStudioUrlIcon:s,hasStudioUrl:d,referenceInfo:c}=e,{t:m}=iJ(),h=kg();if(c.isLoading||c.error){let e,t,n,i,o;r[0]===Symbol.for("react.memo_cache_sentinel")?(e={maxWidth:320},r[0]=e):e=r[0];let l=!c.error;r[1]!==l?(t=(0,a.jsx)(p.r5,{style:e,radius:1,animated:l}),r[1]=l,r[2]=t):t=r[2],r[3]===Symbol.for("react.memo_cache_sentinel")?(n={maxWidth:200},r[3]=n):n=r[3];let s=!c.error;return r[4]!==s?(i=(0,a.jsx)(p.r5,{style:n,radius:1,size:1,animated:s}),r[4]=s,r[5]=i):i=r[5],r[6]!==t||r[7]!==i?(o=(0,a.jsxs)(u.BJ,{space:2,padding:1,children:[t,i]}),r[6]=t,r[7]=i,r[8]=o):o=r[8],o}let f=l.to.length>1,g=c.result?.type;if(r[9]!==g||r[10]!==l.to){let e;r[12]!==g?(e=e=>e.type===g,r[12]=g,r[13]=e):e=r[13],t=l.to.find(e),r[9]=g,r[10]=l.to,r[11]=t}else t=r[11];let C=t;if(c.result.availability?.available&&!C){let e,t,n,o=g||"unknown";return r[14]!==o?(e={typeName:o},r[14]=o,r[15]=e):e=r[15],r[16]!==i?(t={JsonValue:()=>(0,a.jsx)("pre",{children:JSON.stringify(i,null,2)})},r[16]=i,r[17]=t):t=r[17],r[18]!==m||r[19]!==e||r[20]!==t?(n=(0,a.jsx)(u.BJ,{space:2,padding:2,children:(0,a.jsx)(u.EY,{as:"p",children:(0,a.jsx)(an,{t:m,i18nKey:"inputs.reference.cross-dataset.invalid-type",values:e,components:t})})}),r[18]=m,r[19]=e,r[20]=t,r[21]=n):n=r[21],n}return r[22]!==d||r[23]!==h||r[24]!==C||r[25]!==c.result.availability||r[26]!==c.result.preview||r[27]!==s||r[28]!==f||r[29]!==l.dataset||r[30]!==i._ref?(n=(0,a.jsx)(ku,{availability:c.result.availability,hasStudioUrl:d,showStudioUrlIcon:s,preview:c.result.preview,refType:C,projectId:h,dataset:l.dataset,id:i._ref,showTypeLabel:f}),r[22]=d,r[23]=h,r[24]=C,r[25]=c.result.availability,r[26]=c.result.preview,r[27]=s,r[28]=f,r[29]=l.dataset,r[30]=i._ref,r[31]=n):n=r[31],n}let kx=(0,g.I4)(y.AM)`
1232  & > div {
1233    overflow: auto;
1234    -webkit-overflow-scrolling: touch;
1235  }
1236`,kb=(0,g.I4)(u.EY)`
1237  word-break: break-word;
1238`,kv=["top-start","bottom-start"],kj=(0,s.forwardRef)(function(e,t){let n,r,i,l,s,d,c,m=(0,o.c)(17);m[0]!==e?({searchString:s,loading:n,portalRef:r,referenceElement:i,...l}=e,m[0]=e,m[1]=n,m[2]=r,m[3]=i,m[4]=l,m[5]=s):(n=m[1],r=m[2],i=m[3],l=m[4],s=m[5]);let{t:h}=iJ(),f=e.options&&e.options.length>0;m[6]!==f||m[7]!==n||m[8]!==r||m[9]!==i||m[10]!==s||m[11]!==h?(d=(e,t)=>{let{content:o,hidden:l,inputElement:d,onMouseEnter:c,onMouseLeave:p}=e;return(0,a.jsx)(kx,{"data-testid":"autocomplete-popover",placement:"bottom-start",fallbackPlacements:kv,arrow:!1,constrainSize:!0,onMouseEnter:c,onMouseLeave:p,content:(0,a.jsx)("div",{ref:t,children:f?o:(0,a.jsx)(u.az,{padding:4,children:(0,a.jsx)(u.so,{align:"center",height:"fill",justify:"center",children:(0,a.jsx)(kb,{align:"center",muted:!0,children:(0,a.jsx)(an,{t:h,i18nKey:"inputs.reference.n
1238o-results-for-query",values:{searchTerm:s||""}})})})})}),open:!n&&!l,ref:r,portal:!0,referenceElement:i||d,matchReferenceWidth:!0})},m[6]=f,m[7]=n,m[8]=r,m[9]=i,m[10]=s,m[11]=h,m[12]=d):d=m[12];let g=d;return m[13]!==t||m[14]!==g||m[15]!==l?(c=(0,a.jsx)(p.jT,{...l,ref:t,renderPopover:g}),m[13]=t,m[14]=g,m[15]=l,m[16]=c):c=m[16],c}),kw={hits:[],isLoading:!1},k_=()=>!0,kk=["_ref"];function kS(e){let{changed:t,focused:n,focusPath:r,getReferenceInfo:i,onChange:o,onPathFocus:l,onSearch:d,path:c,readOnly:m,schemaType:h,validation:f,value:g,elementProps:x}=e,{t:b}=iJ(),v=kg(),[j,w]=(0,s.useState)(kw),_=(0,s.useCallback)(e=>{if(!e){o(s3()),l([]);return}if(!j.hits.find(t=>t.id===e))throw Error("Selected an item that wasnt part of the result set");o(s7({_type:h.name,_ref:ib(e),_projectId:v,_dataset:h.dataset,_weak:h.weak,_key:g?._key})),l([])},[g?._key,j.hits,h.name,h.dataset,h.weak,v,o,l]),T=(0,s.useCallback)(()=>{o(s3())},[o]),I=(0,s.useCallback)(e=>{"Escape"===e.key&&l?.([])},[l]),$=(0,s.useCallback)(e=>i(e,h),[i,h]),A=kf((0,s.useMemo)(()=>({_id:g?._ref}
1238),[g?._ref]),$),D=ug("crossDatasetReferences"),[P,R]=(0,s.useState)(null),O=1===r.length&&"_ref"===r[0],V=x.ref;xZ({hasFocusAt:O,ref:g?._ref},(e,t)=>{let n=e?.ref!==t.ref;(e?.hasFocusAt!==t.hasFocusAt||n)&&t.hasFocusAt&&V.current?.focus()});let L=g?._weak?"weak":"strong",F=!0===h.weak?"weak":"strong",B=!!g?._ref,N=(0,s.useCallback)(()=>{o(!0===h.weak?s7(!0,["_weak"]):s3(["_weak"]))},[o,h]),{push:Y}=(0,p.dj)(),H=(0,s.useMemo)(()=>f.filter(e=>"error"===e.level),[f]),Z=(0,s.useCallback)(e=>{e.currentTarget===x.ref.current&&l?.([])},[x.ref,l]),U=(0,s.useCallback)(e=>x.onBlur(e),[x]),J=(0,s.useCallback)(e=>{e.currentTarget===x.ref.current&&l?.(kk)},[x.ref,l]),K=(0,s.useCallback)(()=>{l?.(kk)},[l]),X=(0,s.useId)(),Q=(0,eH.N)(e=>e.pipe((0,q.p)(io),(0,ei.F)(),(0,z.n)(e=>(0,S.x)((0,k.of)({isLoading:!0}),d(e).pipe((0,E.T)(t=>({hits:t,searchString:e,isLoading:!1})),(0,M.W)(e=>(Y({title:"Reference search failed",description:e.message,status:"error",id:`reference-search-fail-${X}`}),console.error(e),(0,k.of)({hits:[]})))))),(0,G.S)((e,t)=>({...e,...t}),kw),(0,W.M)(w))),ee=(0,s.useCallback)(()=>{Q("")},[Q]),et=!A.isLoading&&B&&L!==F,en=g?._ref&&h.studioUrl?.({id:g?._ref,type:A?.result?.type})||null,er=(0,s.useCallback)(e=>(0,a.jsx)(etM,{as:"button",type:"button",radius:2,children:(0,a.jsx)(u.az,{paddingX:3,paddingY:1,children:(0,a.jsx)(kC,{referenceType:h,document:e.hit.published,getReferenceInfo:$})})}),[h,$]),ea=O||!g?._ref,eo=(0,s.useRef)(null),el=(0,s.useRef)(null);return(0,u.PR)(O&&(()=>l([])),()=>[eo.current,el.current]),(0,a.jsxs)(a.Fragment,{children:[!D.isLoading&&!D.enabled&&(0,a.jsx)(ks,{value:g,onClearValue:T}),(D.isLoading||D.enabled)&&(0,a.jsx)(u.BJ,{space:1,children:ea?(0,a.jsx)(u.BJ,{space:2,ref:eo,children:(0,a.jsx)(El,{path:c,isChanged:t,hasFocus:!!n,children:(0,a.jsx)("div",{ref:R,children:(0,a.jsx)(kj,{...x,"data-testid":"autocomplete",loading:j.isLoading,referenceElement:P,portalRef:el,id:X||"",options:j.hits.map(e=>({value:e.id,hit:e})),onFocus:J,radius:2,placeholder:b("inputs.reference.search-placeholder"),onKeyDown:I,readOnly:m,disabled:A.isLoading,onQueryChange:Q,searchString:j.searchString,onChange:_,filterOption:k_,renderOption:er,openButton:{onClick:ee}})})})}):(0,a.jsx)(El,{path:c,isChanged:t,hasFocus:!!n,children:(0,a.jsxs)(u.Zp,{padding:0,border:!0,flex:1,radius:1,tone:m?"transparent":A.error||H.length>0?"critical":"default",children:[(0,a.jsxs)(u.so,{align:"center",padding:1,children:[en?(0,a.jsx)(etM,{as:"a",target:"_blank",rel:"noopener noreferrer",href:en,"data-as":"a",flex:1,padding:1,paddingRight:3,radius:2,tone:"inherit",__unstable_focusRing:!0,tabIndex:0,onFocus:Z,onBlur:U,ref:x.ref,children:(0,a.jsx)(ky,{value:g,referenceInfo:A,showStudioUrlIcon:!0,hasStudioUrl:!!en,type:h})}):(0,a.jsx)(etM,{flex:1,padding:1,paddingRight:3,radius:2,tone:"inherit",__unstable_focusRing:!0,tabIndex:0,onFocus:Z,onBlur:U,ref:x.ref,children:(0,a.jsx)(ky,{value:g,referenceInfo:A,showStudioUrlIcon:!0,type:h})}),(0,a.jsx)(u.cV,{paddingX:1,children:(0,a.jsx)(y.IU,{button:(0,a.jsx)(rU,{"data-testid":"menu-button"}),id:`${X}-menuButton`,menu:(0,a.jsx)(u.W1,{children:!m&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.Dr,{text:b("inputs.reference.action.clear"),tone:"critical",icon:C.NAP,"data-testid":"menu-item-clear",onClick:T}),(0,a.jsx)(y.Dr,{text:b("inputs.reference.action.replace"),icon:C.Fjq,"data-testid":"menu-item-replace",onClick:K})]})}),placement:"right",popover:{portal:!0,tone:"default"}})})]}),et&&(0,a.jsx)(jl,{actualStrength:L,handleFixStrengthMismatch:N}),A.error&&(0,a.jsx)(jo,{errorMessage:A.error.message,onHandleRetry:A.retry})]})})})]})}let kT={available:!0,reason:"READABLE"},kI={available:!1,reason:"PERMISSION_DENIED"},kE={available:!1,reason:"NOT_FOUND"};async function k$(e,t,n,r){if(!e)return{};if("function"==typeof e.filter){let i=n.slice(0,-1),a=(0,l.Jt)(t,i);return await e.filter({document:t,parentPath:i,parent:a,getClient:r})}return{filter:e.filter,params:"filterParams"in e?e.filterParams:void 0}}let kA=(0,g.I4)(u.so)`
1239  /* this is a hack to avoid layout jumps while previews are loading
1240  or the message is not tall enough to fill the card
1241  there's probably better ways of solving this */
1242  min-height: 36px;
1243`;function kD(e){let t,n,r,i,l,d,c,p=(0,o.c)(37),{refType:m,showStudioUrlIcon:h,hasStudioUrl:f,showTypeLabel:g,availability:x,preview:b,id:v,resourceType:j,resourceId:w}=e,_=x?.reason==="NOT_FOUND",k=x?.reason==="PERMISSION_DENIED",S=b.published?.media,{t:T}=iJ();e:{let e;if(S){let e,n,r="u">typeof S?.asset&&(0,e3.LG)(S);p[0]!==S?(e=(0,s.isValidElement)(S),p[0]=S,p[1]=e):e=p[1];let i=e;if(!r&&!i){t=null;break e}p[2]!==i||p[3]!==S||p[4]!==w||p[5]!==j||p[6]!==T?(n=function(e){let{dimensions:t}=e,n=function(e,t){if("dataset"!==e)return null;let[n,r]=t.split(".",2);if(!n||!r)throw Error(`Invalid resource ID for resource "dataset": ${t}`);return{projectId:n,dataset:r}}(j,w);return n?i?S:(0,a.jsx)("img",{src:e8(n).image(S).withOptions(t).url(),alt:T("inputs.reference.image-preview-alt-text"),referrerPolicy:"str
1243ict-origin-when-cross-origin"}):null},p[2]=i,p[3]=S,p[4]=w,p[5]=j,p[6]=T,p[7]=n):n=p[7],t=n;break e}if(!m?.icon){t=null;break e}let n=m.icon;p[8]!==n?(e=(0,a.jsx)(n,{}),p[8]=n,p[9]=e):e=p[9],t=e}let I=t;return p[10]!==x?.available||p[11]!==I||p[12]!==b.published?.subtitle||p[13]!==b.published?.title||p[14]!==T?(n=x?.available?(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(etU,{title:b.published?.title,subtitle:b.published?.subtitle,media:I||!1})}):(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(u.so,{align:"center",children:(0,a.jsx)(u.az,{flex:1,paddingY:2,children:(0,a.jsx)(u.EY,{muted:!0,children:T("inputs.reference.error.document-unavailable-title")})})})}),p[10]=x?.available,p[11]=I,p[12]=b.published?.subtitle,p[13]=b.published?.title,p[14]=T,p[15]=n):n=p[15],p[16]!==m||p[17]!==g?(r=m&&g&&(0,a.jsx)(u.Ex,{mode:"outline",children:m.title||m.type}),p[16]=m,p[17]=g,p[18]=r):r=p[18],p[19]!==v||p[20]!==k||p[21]!==_||p[22]!==T?(i=(k||_)&&(0,a.jsx)(u.az,{children:(0,a.jsx)(y.m_,{portal:!0,content:T(_?"inputs.reference.referenced-document-does-not-exist":"inputs.reference.referenced-document-insufficient-permissions",{documentId:v}),children:(0,a.jsx)(ut,{tone:"default",children:k?(0,a.jsx)(C.VY$,{}):(0,a.jsx)(C.V1u,{})})})}),p[19]=v,p[20]=k,p[21]=_,p[22]=T,p[23]=i):i=p[23],p[24]!==f||p[25]!==k||p[26]!==_||p[27]!==h||p[28]!==T?(l=!(_||k)&&h&&(0,a.jsx)(u.az,{children:(0,a.jsx)(y.m_,{portal:!0,content:T(f?"inputs.reference.document-opens-in-new-tab":"input.reference.document-cannot-be-opened.failed-to-resolve-url"),children:(0,a.jsx)(ut,{size:1,tone:"default",muted:!f,children:(0,a.jsx)(C.ZPM,{})})})}),p[24]=f,p[25]=k,p[26]=_,p[27]=h,p[28]=T,p[29]=l):l=p[29],p[30]!==r||p[31]!==i||p[32]!==l?(d=(0,a.jsx)(u.az,{paddingLeft:3,children:(0,a.jsxs)(u.cV,{space:4,children:[r,i,l]})}),p[30]=r,p[31]=i,p[32]=l,p[33]=d):d=p[33],p[34]!==n||p[35]!==d?(c=(0,a.jsxs)(kA,{align:"center",justify:"center",flex:1,"data-testid":"preview",children:[n,d]}),p[34]=n,p[35]=d,p[36]=c):c=p[36],c}let kz=()=>{},kM={isLoading:!0,result:void 0,error:void 0,retry:kz},kP={isLoading:!1,result:void 0,error:void 0,retry:kz};function kR(e,t){let n,r,i=(0,o.c)(10),[a,l]=(0,s.useState)(0);i[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{l(kO)},i[0]=n):n=i[0];let d=n;e:{let n;if(!e){let e;i[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,k.of)(kP),i[1]=e):e=i[1],r=e;break e}if(i[2]!==e||i[3]!==t||i[4]!==a){let r,o;i[6]!==a?(r=e=>({isLoading:!1,result:e,error:void 0,retry:d,retryAttempt:a}),i[6]=a,i[7]=r):r=i[7],i[8]!==a?(o=e=>(console.error(e),(0,k.of)({isLoading:!1,result:void 0,error:e,retry:d,retryAttempt:a})),i[8]=a,i[9]=o):o=i[9],n=t(e).pipe((0,E.T)(r),(0,Z.Z)(kM),(0,M.W)(o)),i[2]=e,i[3]=t,i[4]=a,i[5]=n}else n=i[5];r=n}return(0,eH.J)(r,kM)}function kO(e){return e+1}function kV(e){let t,n,r=(0,o.c)(29),{isLoading:i,result:l,error:s}=kR(e.document,e.getReferenceInfo),{t:d}=iJ();if(i){let e,t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(p.r5,{style:{maxWidth:320},radius:1,animated:!0}),r[0]=e):e=r[0],r[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsxs)(u.BJ,{space:2,padding:1,children:[e,(0,a.jsx)(p.r5,{style:{maxWidth:200},radius:1,size:1,animated:!0})]}),r[1]=t):t=r[1],t}if(s){let e,t,n;return r[2]!==d?(e=d("inputs.reference.error.failed-to-load-document-title"),r[2]=d,r[3]=e):e=r[3],r[4]!==s.message?(t=(0,a.jsx)(u.EY,{muted:!0,size:1,children:s.message}),r[4]=s.message,r[5]=t):t=r[5],r[6]!==e||r[7]!==t?(n=(0,a.jsx)(u.BJ,{space:2,padding:1,children:(0,a.jsx)(bR,{title:e,children:t})}),r[6]=e,r[7]=t,r[8]=n):n=r[8],n}if(!l)return null;if(l.availability?.reason==="PERMISSION_DENIED"){let e,t;return r[9]!==d?(e=d("inputs.reference.error.missing-read-permissions-description"),r[9]=d,r[10]=e):e=r[10],r[11]!==e?(t=(0,a.jsx)(u.BJ,{space:2,padding:1,children:e}),r[11]=e,r[12]=t):t=r[12],t}if(r[13]!==e.referenceType.to||r[14]!==l.type){let n;r[16]!==l.type?(n=e=>e.type===l.type,r[16]=l.type,r[17]=n):n=r[17],t=e.referenceType.to.find(n),r[13]=e.referenceType.to,r[14]=l.type,r[15]=t}else t=r[15];let c=t;if(!c){let e,t;return r[18]!==l.type||r[19]!==d?(e=d("inputs.reference.error.invali
1243d-search-result-type-title",{returnedType:l.type}),r[18]=l.type,r[19]=d,r[20]=e):e=r[20],r[21]!==e?(t=(0,a.jsx)(u.BJ,{space:2,padding:1,children:e}),r[21]=e,r[22]=t):t=r[22],t}return r[23]!==e.referenceType.resourceId||r[24]!==e.referenceType.resourceType||r[25]!==e.referenceType.to.length||r[26]!==c||r[27]!==l?(n=l&&c&&(0,a.jsx)(kD,{id:l.id,availability:l.availability,preview:l.preview,refType:c,resourceType:e.referenceType.resourceType,resourceId:e.referenceType.resourceId,showTypeLabel:e.referenceType.to.length>1}),r[23]=e.referenceType.resourceId,r[24]=e.referenceType.resourceType,r[25]=e.referenceType.to.length,r[26]=c,r[27]=l,r[28]=n):n=r[28],n}function kL(e){let t,n,r=(0,o.c)(32),{value:i,type:l,showStudioUrlIcon:s,hasStudioUrl:d,referenceInfo:c}=e,{t:m}=iJ();if(c.isLoading||c.error){let e,t,n,i,o;r[0]===Symbol.for("react.memo_cache_sentinel")?(e={maxWidth:320},r[0]=e):e=r[0];let l=!c.error;r[1]!==l?(t=(0,a.jsx)(p.r5,{style:e,radius:1,animated:l}),r[1]=l,r[2]=t):t=r[2],r[3]===Symbol.for("react.memo_cache_sentinel")?(n={maxWidth:200},r[3]=n):n=r[3];let s=!c.error;return r[4]!==s?(i=(0,a.jsx)(p.r5,{style:n,radius:1,size:1,animated:s}),r[4]=s,r[5]=i):i=r[5],r[6]!==t||r[7]!==i?(o=(0,a.jsxs)(u.BJ,{space:2,padding:1,children:[t,i]}),r[6]=t,r[7]=i,r[8]=o):o=r[8],o}let h=l.to.length>1,f=c.result?.type;if(r[9]!==f||r[10]!==l.to){let e;r[12]!==f?(e=e=>e.type===f,r[12]=f,r[13]=e):e=r[13],t=l.to.find(e),r[9]=f,r[10]=l.to,r[11]=t}else t=r[11];let g=t;if(c.result.availability?.available&&!g){let e,t,n,o=f||"unknown";return r[14]!==o?(e={typeName:o},r[14]=o,r[15]=e):e=r[15],r[16]!==i?(t={JsonValue:()=>(0,a.jsx)("pre",{children:JSON.stringify(i,null,2)})},r[16]=i,r[17]=t):t=r[17],r[18]!==m||r[19]!==e||r[20]!==t?(n=(0,a.jsx)(u.BJ,{space:2,padding:2,children:(0,a.jsx)(u.EY,{as:"p",children:(0,a.jsx)(an,{t:m,i18nKey:"inputs.reference.global.invalid-type",values:e,components:t})})}),r[18]=m,r[19]=e,r[20]=t,r[21]=n):n=r[21],n}return r[22]!==d||r[23]!==g||r[24]!==c.result.availability||r[25]!==c.result.preview||r[26]!==s||r[27]!==h||r[28]!==l.resourceId||r[29]!==l.resourceType||r[30]!==i._ref?(n=(0,a.jsx)(kD,{availability:c.result.availability,hasStudioUrl:d,showStudioUrlIcon:s,preview:c.result.preview,refType:g,resourceType:l.resourceType,resourceId:l.resourceId,id:i._ref,showTypeLabel:h}),r[22]=d,r[23]=g,r[24]=c.result.availability,r[25]=c.result.preview,r[26]=s,r[27]=h,r[28]=l.resourceId,r[29]=l.resourceType,r[30]=i._ref,r[31]=n):n=r[31],n}let kF=(0,g.I4)(y.AM)`
1244  & > div {
1245    overflow: auto;
1246    -webkit-overflow-scrolling: touch;
1247  }
1248`,kB=(0,g.I4)(u.EY)`
1249  word-break: break-word;
1250`,kN=["top-start","bottom-start"],kY=(0,s.forwardRef)(function(e,t){let n,r,i,l,s,d,c,m=(0,o.c)(17);m[0]!==e?({searchString:s,loading:n,portalRef:r,referenceElement:i,...l}=e,m[0]=e,m[1]=n,m[2]=r,m[3]=i,m[4]=l,m[5]=s):(n=m[1],r=m[2],i=m[3],l=m[4],s=m[5]);let{t:h}=iJ(),f=e.options&&e.options.length>0;m[6]!==f||m[7]!==n||m[8]!==r||m[9]!==i||m[10]!==s||m[11]!==h?(d=(e,t)=>{let{content:o,hidden:l,inputElement:d,onMouseEnter:c,onMouseLeave:p}=e;return(0,a.jsx)(kF,{"data-testid":"autocomplete-popover",placement:"bottom-start",fallbackPlacements:kN,arrow:!1,constrainSize:!0,onMouseEnter:c,onMouseLeave:p,content:(0,a.jsx)("div",{ref:t,children:f?o:(0,a.jsx)(u.az,{padding:4,children:(0,a.jsx)(u.so,{align:"center",height:"fill",justify:"center",children:(0,a.jsx)(kB,{align:"center",muted:!0,children:(0,a.jsx)(an,{t:h,i18nKey:"inputs.reference.no-results-for-query",values:{searchTerm:s||""}})})})})}),open:!n&&!l,ref:r,portal:!0,referenceElement:i||d,matchReferenceWidth:!0})},m[6]=f,m[7]=n,m[8]=r,m[9]=i,m[10]=s,m[11]=h,m[12]=d):d=m[12];let g=d;return m[13]!==t||m[14]!==g||m[15]!==l?(c=(0,a.jsx)(p.jT,{...l,ref:t,renderPopover:g}),m[13]=t,m[14]=g,m[15]=l,m[16]=c):c=m[16],c}),kH={hits:[],isLoading:!1},kZ=()=>!0,kU=["_ref"];function kq(e){let{changed:t,focused:n,focusPath:r,getReferenceInfo:i,onChange:o,onPathFocus:l,onSearch:d,path:c,readOnly:m,schemaType:h,validation:f,value:g,elementProps:x}=e,{t:b}=iJ(),[v,j]=(0,s.useState)(kH),w=(0,s.useCallback)(e=>{if(!e){o(s3()),l([]);return}if(!v.hits.find(t=>
1250t.id===e))throw Error("Selected an item that wasnt part of the result set");o(s7({_type:h.name,_ref:`${h.resourceType}:${h.resourceId}:${ib(e)}`,_weak:h.weak,_key:g?._key})),l([])},[g?._key,v.hits,h.name,h.resourceType,h.resourceId,h.weak,o,l]),T=(0,s.useCallback)(()=>{o(s3())},[o]),I=(0,s.useCallback)(e=>{"Escape"===e.key&&l?.([])},[l]),$=(0,s.useCallback)(e=>i(e,h),[i,h]),A=kR((0,s.useMemo)(()=>{if(!g?._ref)return null;let[,,e]=g._ref.split(":",3);return{_id:e}},[g]),$),[D,P]=(0,s.useState)(null),R=1===r.length&&"_ref"===r[0],O=x.ref;xZ({hasFocusAt:R,ref:g?._ref},(e,t)=>{let n=e?.ref!==t.ref;(e?.hasFocusAt!==t.hasFocusAt||n)&&t.hasFocusAt&&O.current?.focus()});let V=g?._weak?"weak":"strong",L=!0===h.weak?"weak":"strong",F=!!g?._ref,B=(0,s.useCallback)(()=>{o(!0===h.weak?s7(!0,["_weak"]):s3(["_weak"]))},[o,h]),{push:N}=(0,p.dj)(),Y=(0,s.useMemo)(()=>f.filter(e=>"error"===e.level),[f]),H=(0,s.useCallback)(e=>{e.currentTarget===x.ref.current&&l?.([])},[x.ref,l]),Z=(0,s.useCallback)(e=>x.onBlur(e),[x]),U=(0,s.useCallback)(e=>{e.currentTarget===x.ref.current&&l?.(kU)},[x.ref,l]),J=(0,s.useCallback)(()=>{l?.(kU)},[l]),K=(0,s.useId)(),X=(0,eH.N)(e=>e.pipe((0,q.p)(io),(0,ei.F)(),(0,z.n)(e=>(0,S.x)((0,k.of)({isLoading:!0}),d(e).pipe((0,E.T)(t=>({hits:t,searchString:e,isLoading:!1})),(0,M.W)(e=>(N({title:"Reference search failed",description:e.message,status:"error",id:`reference-search-fail-${K}`}),console.error(e),(0,k.of)({hits:[]})))))),(0,G.S)((e,t)=>({...e,...t}),kH),(0,W.M)(j))),Q=(0,s.useCallback)(()=>{X("")},[X]),ee=!A.isLoading&&F&&V!==L,et=(0,s.useMemo)(()=>{if(!g?._ref||!(0,_.Q9)(g))return null;let[,,e]=g._ref.split(":");return h.studioUrl&&A?.result?.type?"string"==typeof h.studioUrl?`${h.studioUrl}/desk/intent/edit/id=${e};type=${A.result.type}/`:h.studioUrl({id:e,type:A.result.type}):null},[g,h,A]),en=(0,s.useCallback)(e=>(0,a.jsx)(etM,{as:"button",type:"button",radius:2,children:(0,a.jsx)(u.az,{paddingX:3,paddingY:1,children:(0,a.jsx)(kV,{referenceType:h,document:e.hit.published,getReferenceInfo:$})})}),[h,$]),er=R||!g?._ref,ea=(0,s.useRef)(null),eo=(0,s.useRef)(null);return(0,u.PR)(R&&(()=>l([])),()=>[ea.current,eo.current]),(0,a.jsx)(u.BJ,{space:1,children:er?(0,a.jsx)(u.BJ,{space:2,ref:ea,children:(0,a.jsx)(El,{path:c,isChanged:t,hasFocus:!!n,children:(0,a.jsx)("div",{ref:P,children:(0,a.jsx)(kY,{...x,"data-testid":"autocomplete",loading:v.isLoading,referenceElement:D,portalRef:eo,id:K||"",options:v.hits.map(e=>({value:e.id,hit:e})),onFocus:U,radius:2,placeholder:b("inputs.reference.search-placeholder"),onKeyDown:I,readOnly:m,disabled:A.isLoading,onQueryChange:X,searchString:v.searchString,onChange:w,filterOption:kZ,renderOption:en,openButton:{onClick:Q}})})})}):(0,a.jsx)(El,{path:c,isChanged:t,hasFocus:!!n,children:(0,a.jsxs)(u.Zp,{padding:0,border:!0,flex:1,radius:1,tone:m?"transparent":A.error||Y.length>0?"critical":"default",children:[(0,a.jsxs)(u.so,{align:"center",padding:1,children:[et?(0,a.jsx)(etM,{as:"a",target:"_blank",rel:"noopener noreferrer",href:et,"data-as":"a",flex:1,padding:1,paddingRight:3,radius:2,tone:"inherit",__unstable_focusRing:!0,tabIndex:0,onFocus:H,onBlur:Z,ref:x.ref,children:(0,a.jsx)(kL,{value:g,referenceInfo:A,showStudioUrlIcon:!0,hasStudioUrl:!0,type:h})}):(0,a.jsx)(etM,{flex:1,padding:1,paddingRight:3,radius:2,tone:"inherit",__unstable_focusRing:!0,tabIndex:0,onFocus:H,onBlur:Z,ref:x.ref,children:(0,a.jsx)(kL,{value:g,referenceInfo:A,type:h})}),(0,a.jsx)(u.cV,{paddingX:1,children:(0,a.jsx)(y.IU,{button:(0,a.jsx)(rU,{"data-testid":"menu-button"}),id:`${K}-menuButton`,menu:(0,a.jsx)(u.W1,{children:!m&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.Dr,{text:b("inputs.reference.action.clear"),tone:"critical",icon:C.NAP,"data-testid":"menu-item-clear",onClick:T}),(0,a.jsx)(y.Dr,{text:b("inputs.reference.action.replace"),icon:C.Fjq,"data-testid":"menu-item-replace",onClick:J})]})}),placement:"right",popover:{portal:!0,tone:"default"}})})]}),ee&&(0,a.jsx)(jl,{actualStrength:V,handleFixStrengthMismatch:B}),A.error&&(0,a.jsx)(jo,{errorMessage:A.error.message,onHandleRetry:A.retry})]})})})}function kJ(e){return Object.keys(e)}function kW(e){let{observeFields:t}=e;return(e,n,r,i)=>(function e(t,n,r,i,a){if(!t||"object"!=typeof t)return(0,k.of)(t);let o=(0,_.A_)(t)?t._ref:"_id"in t?t._id:void 0,l=o?{...t,_id:o}:{...t};"reference"===l._type&&(delete l._type,delete l._ref,delete l._weak,delete l._dataset,delete l._projectId,delete l._strengthenOnPublish);let s=n.filter(e=>!(e[0]in l));if(o&&s.length>0){let l=nt(s.map(e=>e[0])),d=(0,_.I0)(t)?{projectId:t._projectId,dataset:t._dataset}:i;return r(o,l,d,a).pipe((0,z.n)(i=>
1250null===i?(0,k.of)(null):e({...l.reduce((e,t)=>(e[t]=void 0,e),{}),...(0,_.A_)(t)?{...t,...d}:t,...i},n,r,d,a)))}let d={};n.forEach(e=>{let[t,...n]=e;d[t]||(d[t]=[]),d[t].push(n)});let c=Object.keys(d).reduce((n,o)=>{let l=d[o].filter(e=>e.length>0);return 0===l.length?n[o]=iI(t)?t[o]:void 0:n[o]=e(t[o],l,r,i,a),n},l);return(0,k.of)(c).pipe(function(e={}){return t=>new P.c(e=>t.subscribe(e)).pipe((0,z.n)(t=>{let n=kJ(t).map(e=>{let n=t[e];return(0,eh.A)(n)?(0,Q.H)(n).pipe((0,E.T)(t=>[e,t])):(0,k.of)([e,n])});return e.wait?(0,eo.z)(n).pipe((0,E.T)(e=>e.reduce((e,[t,n])=>({...e,[t]:n}),{}))):(0,Q.H)(n).pipe((0,eD.U)(),(0,G.S)((e,[t,n])=>({...e,[t]:n}),{}))}))}({wait:!0}))})(e,n.map(e=>"string"==typeof e?e.split("."):e),t,r,i)}let kK={available:!0,reason:"READABLE"},kG={available:!1,reason:"PERMISSION_DENIED"},kX={available:!1,reason:"NOT_FOUND"};async function kQ(e,t,n,r){if(!e)return{};if("function"==typeof e.filter){let i=n.slice(0,-1),a=(0,l.Jt)(t,i);return await e.filter({document:t,parentPath:i,parent:a,getClient:r})}return{filter:e.filter,params:"filterParams"in e?e.filterParams:void 0}}function k1(e,t){let n=e.split(","),r=n[0].match(/:(.*?);/)?.[1],i=atob(n[1]),a=i.length,o=new Uint8Array(a);for(;a--;)o[a]=i.charCodeAt(a);return new File([o],t,{type:r})}function k2({assetsFromSource:e,onChange:t,type:n,resolveUploader:r,uploadWith:i,isImage:a}){var o,l;if(!e)throw Error("No asset given");if(!Array.isArray(e)||0===e.length)throw Error("Returned value must be an array with at least one item (asset)");let s=e[0],d=s.assetDocumentProps,c=s.mediaLibraryProps,u=d?.originalFilename,p=d?.label,m=d?.title,h=d?.description,f=d?.creditLine,g=d?.source,C=a?[s3(["hotspot"]),s3(["crop"]),s3(["media"])]:[s3(["media"])];if(c){let e={_type:"globalDocumentReference",_ref:`media-library:${c.mediaLibraryId}:${c.assetId}`,_weak:!0};C.push(s7(e,["media"]))}switch(s.kind){case"assetDocumentId":t([s5({_type:n.name}),...C,s7({_type:"reference",_ref:s.value},["asset"])]);break;case"file":{let e=r(n,s.value);e&&i(e,s.value,{label:p,title:m,description:h,creditLine:f,source:g});break}case"base64":(o=s.value,new Promise((e,t)=>{let n=o.toString(),r=n.indexOf(";base64");if(!n||-1===r)return void t(Error("Could not convert base64 to file"));let i=n.slice(11,r);if(!i&&!u)return void t(Error("Could not find mime type for image"));e(k1(o,u||`${(0,nA.A)()}.${i}`))})).then(e=>{let t=r(n,e);t&&i(t,e,{label:p,title:m,description:h,creditLine:f,source:g})});break;case"url":(l=s.value,new Promise((e,t)=>{let n=new XMLHttpRequest;n.onload=()=>{let r=new FileReader;r.onloadend=()=>{let n=r.result?.toString(),i=n?.indexOf(";base64");if(!n||-1===i)return void t(Error("Could not convert URL to file"));let a=n.slice(11,i);if(!a&&!u)return void t(Error("Could not find mime type for image"));e(k1(r.result,u||`${(0,nA.A)()}.${a}`))},r.readAsDataURL(n.response)},n.onerror=e=>{t(e)},n.open("GET",l),n.responseType="blob",n.send()})).then(e=>{let t=r(n,e);t&&i(t,e,{label:p,title:m,description:h,creditLine:f,source:g})});break;default:throw Error("Invalid value returned from asset source plugin")}}let k5=(0,g.I4)(u.so)`
1251  pointer-events: none;
1252`;function k0(e){let t,n,r,i,l,s=(0,o.c)(24),{hoveringFiles:d,type:c,readOnly:p,acceptedFiles:m,rejectedFilesCount:h,directUploads:f}=e,g="file"===c,{t:y}=iJ();e:{let e;if(p){let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(C.Eoh,{}),s[0]=e):e=s[0],t=e;break e}if(d&&h>0||!1===f){let e;s[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(C.VY$,{}),s[1]=e):e=s[1],t=e;break e}s[2]!==g?(e=g?(0,a.jsx)(C.A1A,{}):(0,a.jsx)(C.xfq,{}),s[2]=g,s[3]=e):e=s[3],t=e}let x=t;t:{let e;if(!1===f){let e;s[4]!==y?(e=y("inputs.files.common.placeholder.upload-not-supported"),s[4]=y,s[5]=e):e=s[5],n=e;break t}if(p){let e;s[6]!==y?(e=y("inputs.files.common.placeholder.read-only"),s[6]=y,s[7]=e):e=s[7],n=e;break t}if(d&&f&&!p){if(m.length>0){let e;s[8]!==y||s[9]!==c?(e=y("inputs.files.common.placeholder.drop-to-upload",{context:c}),s[8]=y,s[9]=c,s[10]=e):e=s[10],n=e;break t}if(h>0){let e;s[11]!==h||s[12]!==y?(e=y("inputs.files.common.placeholder.cannot-upload-some-files",{count:h}),s[11]=h,s[12]=y,s[13]=e):e=s[13],n=e;break t}}
1252s[14]!==y||s[15]!==c?(e=y("inputs.files.common.placeholder.drag-or-paste-to-upload",{context:c}),s[14]=y,s[15]=c,s[16]=e):e=s[16],n=e}let b=n;return s[17]!==x?(r=(0,a.jsx)(u.EY,{muted:!0,size:1,children:x}),s[17]=x,s[18]=r):r=s[18],s[19]!==b?(i=(0,a.jsx)(u.EY,{size:1,muted:!0,children:b}),s[19]=b,s[20]=i):i=s[20],s[21]!==r||s[22]!==i?(l=(0,a.jsxs)(k5,{align:"center",gap:3,justify:"center",paddingLeft:1,children:[r,i]}),s[21]=r,s[22]=i,s[23]=l):l=s[23],l}let k7=jR(jY(u.Zp)),k3=(0,g.I4)(y.$n)`
1253  * {
1254    pointer-events: none;
1255  }
1256`;function k8(e){let t,n,r,i,l,d,c,p,m,h,f,g,x,b=(0,o.c)(37),{assetSources:v,onSelectAssetSource:j,text:w,onClose:_}=e,{t:k}=iJ(),S=v.filter(k6),[T,I]=(0,s.useState)(S.reduce(k4,{}));b[0]!==v||b[1]!==j?(t=e=>{let t=e.target.getAttribute("data-asset-source-name");I(e=>({...e,[t]:"default"}));let n=v.find(e=>e.name===t);n&&j&&j(n)},b[0]=v,b[1]=j,b[2]=t):t=b[2];let E=t;b[3]!==j?(n=e=>{let t=e.target.getAttribute("data-asset-source-name");I(e=>({...e,[t]:"bleed"})),j&&j(null)},b[3]=j,b[4]=n):n=b[4];let $=n;b[5]!==v||b[6]!==j?(r=e=>{let t=e.currentTarget.getAttribute("data-asset-source-name"),n=v.find(e=>e.name===t);n&&j&&j(n)},b[5]=v,b[6]=j,b[7]=r):r=b[7];let A=r;if(b[8]!==_?(i=e=>{"Escape"===e.key&&_&&_()},b[8]=_,b[9]=i):i=b[9],(0,u.Pm)(i),0===S.length)return null;let D=y.AM;b[10]===Symbol.for("react.memo_cache_sentinel")?(l={top:"-0.5rem"},b[10]=l):l=b[10];let z=e.referenceElement,M=u.az;b[11]!==w?(d=(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(u.EY,{size:1,textOverflow:"ellipsis",weight:"medium",children:w})}),b[11]=w,b[12]=d):d=b[12],b[13]===Symbol.for("react.memo_cache_sentinel")?(c={content:"Close"},b[13]=c):c=b[13],b[14]!==_?(p=(0,a.jsx)(y.$n,{icon:C.USm,mode:"bleed",onClick:_,tooltipProps:c}),b[14]=_,b[15]=p):p=b[15],b[16]!==p||b[17]!==d?(m=(0,a.jsx)(u.az,{padding:2,paddingLeft:4,children:(0,a.jsxs)(u.so,{align:"center",gap:2,children:[d,p]})}),b[16]=p,b[17]=d,b[18]=m):m=b[18];let P=u.so;b[19]!==A||b[20]!==E||b[21]!==$||b[22]!==T||b[23]!==k?(h=e=>{let t=e.icon;return(0,a.jsx)(k3,{"data-asset-source-name":e.name,mode:T[e.name],onClick:A,onDragEnter:E,onDragLeave:$,size:"large",style:{padding:"2rem",margin:"0.5rem"},tone:"default",tooltipProps:null,children:(0,a.jsxs)(u.so,{align:"center",children:[(0,eW.isValidElementType)(t)&&(0,a.jsx)(t,{style:{fontSize:"2rem"}}),(0,a.jsx)(u.az,{children:e.i18nKey?k(e.i18nKey):e.title})]})},e.name)},b[19]=A,b[20]=E,b[21]=$,b[22]=T,b[23]=k,b[24]=h):h=b[24];let R=S.map(h);return b[25]!==P||b[26]!==R?(f=(0,a.jsx)(P,{children:R}),b[25]=P,b[26]=R,b[27]=f):f=b[27],b[28]!==M||b[29]!==m||b[30]!==f?(g=(0,a.jsxs)(M,{padding:2,children:[m,f]}),b[28]=M,b[29]=m,b[30]=f,b[31]=g):g=b[31],b[32]!==D||b[33]!==e.referenceElement||b[34]!==g||b[35]!==l?(x=(0,a.jsx)(D,{open:!0,style:l,referenceElement:z,content:g}),b[32]=D,b[33]=e.referenceElement,b[34]=g,b[35]=l,b[36]=x):x=b[36],x}function k4(e,t){return e[t.name]="bleed",e}function k6(e){return!!e.Uploader}function k9(e,t){return e<1e3?t(e,"byte"):e<1e6?t(e/1e3,"kilobyte"):e<1e9?t(e/1e6,"megabyte"):e<1e12?t(e/1e9,"gigabyte"):t(e/1e12,"terabyte")}let Se={referringDocuments:[],isLoading:!0},St=["_id","_type"];function Sn(e){return{referringDocuments:e,isLoading:!1}}let Sr=[];function Si(e){return function(e,t){let n,r,i,a,l=(0,o.c)(6),s=void 0===t?St:t,d=z6();return l[0]!==s?(r=0===s.length?"":s.join(","),l[0]=s,l[1]=r):r=l[1],n=r,l[2]!==d||l[3]!==e||l[4]!==n?(a=d.listenQuery(`*[references($docId)] [0...101]${n}`,{docId:e},{tag:"use-referring-documents"}).pipe((0,E.T)(Sn),(0,Z.Z)(Se)),l[2]=d,l[3]=e,l[4]=n,l[5]=a):a=l[5],i=a,(0,eH.J)(i,Se)}(e,Sr)}let Sa=e=>{let t,n,r,i,l,s=(0,o.c)(16),{asset:d,assetType:c,referringDocuments:p}=e,{t:m}=iJ(),h=p.length,f=h>0,g=`asset-source.usage-list.documents-using-${c}`,C=d.originalFilename?"named":"unnamed";return s[0]!==d.originalFilename||s[1]!==h?(t={filename:d.originalFilename,count:h},s[0]=d.originalFilename,s[1]=h,s[2]=t):t=s[2],s[3]!==m||s[4]!==g||s[5]!==C||s[6]!==t?(n=(0,a.jsx)(u.EY,{size:1,as:"h2",weight:"medium",children:(0,a.jsx)(an,{t:m,i18nKey:g,context:C,values:t})}),s[3]=m,s[4]=g,s[5]=C,s[6]=t,s[7]=n):n=s[7],s[8]!==f||s[9]!==n?(r=(0,a.jsx)(u.Zp,{borderBottom:f,marginTop:2,paddingBottom:2,marginBottom:1,children:n}),s[8]=f,s[9]=n,s[10]=r):r=s[10],s[11]!==p?(i=p.map(Sl),s[11]=p,s[12]=i):i=s[12],s[13]!==r||s[14]!==i?(l=(0,a.jsxs)(a.Fragment,{children:[r,i]}),s[13]=r,s[14]=i,s[15]=l):l=s[15],l},So=e=>{let t,n,r,i,l,s=(0,o.c)(15),{document:d}=e,c=Cm();s[0]!==d._id||s[1]!==d._type?(t=e=>(0,a.jsx)(tq.RZ,{...e,params:{id:d._id,type:d._type},intent:"edit"}),s[0]=d._id,s[1]=d._type,s[2]=t):t=s[2];let p=t,m=d._id;return s[3]!==d._id?(n={_type:"reference",_ref:d._id},s[3]=d._id,s[4]=n):n=s[4],s[5]!==d._type||s[6]!==c?(r=c.get(d._type),s[5]=d._type,s[6]=c,s[7]=r):r=s[7],s[8]!==n||s[9]!==r?(i=(0,a.jsx)(u.so,{align:"center",gap:2,children:(0,a.jsx)(DM,{layout:"default",value:n,schemaType:r})}),s[8]=n,s[9]=r,s[10]=i):i=s[10],s[11]!==p||s[12]!==d._id||s[13]!==i?(l=(0,a.jsx)(u.Zp,{as:p,radius:2,"data-as":"a",tabIndex:0,children:i},m),s[11]=p,s[12]=d._id,s[13]=i,s[14]=l):l=s[14],l};function Sl(e){return(0,a.jsx)(So,{document:e},e._id)}let Ss={maxWidth:"100%",height:"120px",objectFit:"contain",objectPosition:"center"},Sd={gridColumn:"span 1",overflow:"hidden",display:"flex",alignSelf:"center",justifyContent:"center"},Sc={height:"100%"},Su=e=>{let t,n,r,i,l,s,d,c,p=(0,o.c)(44),{asset:m,assetType:h,hasResults:f}=e,g="image"===h,{t:y}=iJ();if(void 0!==f&&f){let e,t,n,r,i,o,l,s,d,c;p[0]===Symbol.for("react.memo_cache_sentinel")?(e=[3,3,4],p[0]=e):e=p[0],p[1]===Symbol.for("react.memo_cache_sentinel")?(t=[2,3,4],p[1]=t):t=p[1],p[2]===Symbol.for("react.memo_cache_sentinel")?(n=[3,4],p[2]=n):n=p[2];let f=g?"span 2":"span 3";p[3]!==f?(r={gridColumn:f},p[3]=f,p[4]=r):r=p[4],p[5]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsx)(u.EY,{children:(0,a.jsx)(C.sAQ,{})}),p[5]=i):i=p[5];let x=`asset-source.delete-dialog.usage-list.warning-${h}-is-in-use`,b=m.originalFilename?"named":"unnamed";return p[6]!==m.originalFilename||p[7]!==y||p[8]!==x||p[9]!==b?(o=y(x,{context:b,filename:m.originalFilename}),p[6]=m.originalFilename,p[7]=y,p[8]=x,p[9]=b,p[10]=o):o=p[10],p[11]!==o?(l=(0,a.jsx)(u.EY,{size:1,children:o}),p[11]=o,p[12]=l):l=p[12],p[13]!==l||p[14]!==r?(s=(0,a.jsxs)(u.so,{gap:n,align:"center",style:r,children:[i,l]}),p[13]=l,p[14]=r,p[15]=s):s=p[15],p[16]!==m.url||p[17]!==g||p[18]!==y?(d=g&&(0,a.jsx)(u.Zp,{__unstable_checkered:!0,border:!0,radius:1,style:Sd,children:(0,a.jsx)(u.so,{align:"center",justify:"center",style:Sc,children:(0,a.jsx)("img",{src:`${m.url}?w=200`,style:Ss,alt:y("asset-source.usage-list.image-alt"),referrerPolicy:"str
1256ict-origin-when-cross-origin"})})}),p[16]=m.url,p[17]=g,p[18]=y,p[19]=d):d=p[19],p[20]!==s||p[21]!==d?(c=(0,a.jsx)(u.Zp,{tone:"caution",padding:e,border:!0,radius:2,marginBottom:3,children:(0,a.jsxs)(u.xA,{columns:3,gap:t,children:[s,d]})}),p[20]=s,p[21]=d,p[22]=c):c=p[22],c}p[23]===Symbol.for("react.memo_cache_sentinel")?(t=[2,3,4],n=[3,3,3,4],p[23]=t,p[24]=n):(t=p[23],n=p[24]);let x=g?"span 2":"span 3";p[25]!==x?(r={gridColumn:x},p[25]=x,p[26]=r):r=p[26];let b=`asset-source.delete-dialog.usage-list.confirm-delete-${h}`,v=m.originalFilename?"named":"unnamed";return p[27]!==m.originalFilename?(i={filename:m.originalFilename},p[27]=m.originalFilename,p[28]=i):i=p[28],p[29]!==y||p[30]!==b||p[31]!==v||p[32]!==i?(l=(0,a.jsx)(u.EY,{children:(0,a.jsx)(an,{t:y,i18nKey:b,context:v,values:i})}),p[29]=y,p[30]=b,p[31]=v,p[32]=i,p[33]=l):l=p[33],p[34]!==r||p[35]!==l?(s=(0,a.jsx)(u.so,{style:r,align:"center",children:l}),p[34]=r,p[35]=l,p[36]=s):s=p[36],p[37]!==m.url||p[38]!==g||p[39]!==y?(d=g&&(0,a.jsx)(u.Zp,{__unstable_checkered:!0,border:!0,radius:1,style:Sd,children:(0,a.jsx)(u.so,{align:"center",justify:"center",style:Sc,children:(0,a.jsx)("img",{src:`${m.url}?w=200`,style:Ss,alt:y("asset-source.asset-list.table.preview-alt"),referrerPolicy:"strict-origin-when-cross-origin"})})}),p[37]=m.url,p[38]=g,p[39]=y,p[40]=d):d=p[40],p[41]!==s||p[42]!==d?(c=(0,a.jsx)(u.Zp,{paddingX:t,paddingY:n,children:(0,a.jsxs)(u.xA,{columns:3,gap:3,children:[s,d]})}),p[41]=s,p[42]=d,p[43]=c):c=p[43],c};function Sp(e){let t,n,r,i,l,s,d,c,p,m,h=(0,o.c)(32),{asset:f,assetType:g,isDeleting:x,onClose:b,onDelete:v}=e,j=void 0!==x&&x,{isLoading:w,referringDocuments:_}=Si(f._id);if(h[0]!==_){let e=_.reduce(Sm,[]);n=_.filter(t=>!e.includes(t._id)),h[0]=_,h[1]=n}else n=h[1];let k=(t=n).length>0,{t:S}=iJ();return h[2]!==S?(r=S("asset-source.delete-dialog.action.cancel"),h[2]=S,h[3]=r):r=h[3],h[4]!==b||h[5]!==r?(i={onClick:b,text:r},h[4]=b,h[5]=r,h[6]=i):i=h[6],h[7]!==S?(l=S("asset-source.delete-dialog.action.delete"),h[7]=S,h[8]=l):l=h[8],h[9]!==k||h[10]!==j||h[11]!==v||h[12]!==l?(s={disabled:k,icon:C.ucK,loading:j,onClick:v,text:l},h[9]=k,h[10]=j,h[11]=v,h[12]=l,h[13]=s):s=h[13],h[14]!==i||h[15]!==s?(d={cancelButton:i,confirmButton:s},h[14]=i,h[15]=s,h[16]=d):d=h[16],h[17]!==g||h[18]!==S?(c=S("asset-source.delete-dialog.header",{context:g}),h[17]=g,h[18]=S,h[19]=c):c=h[19],h[20]!==f||h[21]!==g||h[22]!==k||h[23]!==w||h[24]!==t?(p=w?(0,a.jsx)(u.az,{padding:4,children:(0,a.jsx)(r5,{showText:!0})}):(0,a.jsxs)(u.BJ,{paddingX:k?[2,3,4]:0,paddingY:k?[3,3,3,4]:0,space:1,children:[(0,a.jsx)(Su,{asset:f,assetType:g,hasResults:k}),k&&(0,a.jsx)(Sa,{asset:f,referringDocuments:t,assetType:g})]}),h[20]=f,h[21]=g,h[22]=k,h[23]=w,h[24]=t,h[25]=p):p=h[25],h[26]!==w||h[27]!==b||h[28]!==p||h[29]!==d||h[30]!==c?(m=(0,a.jsx)(y.lG,{__unstable_autoFocus:w,footer:d,header:c,id:"asset-dialog",onClickOutside:b,onClose:b,width:1,children:p}),h[26]=w,h[27]=b,h[28]=p,h[29]=d,h[30]=c,h[31]=m):m=h[31],m}function Sm(e,t){return t._id.startsWith("drafts.")?e.concat(t._id.slice(7)):e}let Sh={portal:!0,placement:"right"};function Sf(e){let t,n,r,i,l,s,d,c,p,m=(0,o.c)(23),{isSelected:h,border:f,onAction:g}=e,x=void 0===f||f,{t:b}=iJ(),v=x?"ghost":h?"default":"bleed",j=x?"default":h?"primary":"default";return m[0]!==v||m[1]!==j?(t=(0,a.jsx)(rU,{mode:v,tone:j}),m[0]=v,m[1]=j,m[2]=t):t=m[2],m[3]!==b?(n=b("asset-source.asset-list.menu.show-usage"),m[3]=b,m[4]=n):n=m[4],m[5]!==g?(r=()=>{g({type:"showUsage"})},m[5]=g,m[6]=r):r=m[6],m[7]!==n||m[8]!==r?(i=(0,a.jsx)(y.Dr,{text:n,icon:C.qYV,onClick:r}),m[7]=n,m[8]=r,m[9]=i):i=m[9],m[10]!==b?(l=b("asset-source.asset-list.menu.delete"),m[10]=b,m[11]=l):l=m[11],m[12]!==g?(s=()=>{g({type:"delete"})},m[12]=g,m[13]=s):s=m[13],m[14]!==l||m[15]!==s?(d=(0,a.jsx)(y.Dr,{text:l,icon:C.ucK,tone:"critical",onClick:s}),m[14]=l,m[15]=s,m[16]=d):d=m[16],m[17]!==d||m[18]!==i?(c=(0,a.jsxs)(u.W1,{children:[i,d]}),m[17]=d,m[18]=i,m[19]=c):c=m[19],m[20]!==c||m[21]!==t?(p=(0,a.jsx)(y.IU,{button:t,id:"asset-menu",menu:c,popover:Sh}),m[20]=c,m[21]=t,m[22]=p):p=m[22],p}function Sg(e){let t,n,r,i,l,s=(0,o.c)(14),{asset:d,assetType:c,onClose:u}=e,{isLoading:p,referringDocuments:m}=Si(d._id);if(s[0]!==m){let e=m.reduce(SC,[]);n=m.filter(t=>!e.includes(t._id)),s[0]=m,s[1]=n}else n=s[1];t=n;let{t:h}=iJ();return s[2]!==c||s[3]!==h?(r=h("asset-source.asset-usage-dialog.header",{context:c}),s[2]=c,s[3]=h,s[4]=r):r=s[4],s[5]!==d||s[6]!==c||s[7]!==p||s[8]!==t?(i=p?(0,a.jsx)(r5,{showText:!0}):(0,a.jsx)(Sa,{asset:d,referringDocuments:t,assetType:c}
1256),s[5]=d,s[6]=c,s[7]=p,s[8]=t,s[9]=i):i=s[9],s[10]!==u||s[11]!==r||s[12]!==i?(l=(0,a.jsx)(y.lG,{__unstable_autoFocus:!0,header:r,id:"asset-dialog",onClickOutside:u,onClose:u,width:1,children:i}),s[10]=u,s[11]=r,s[12]=i,s[13]=l):l=s[13],l}function SC(e,t){return t._id.startsWith("drafts.")?e.concat(t._id.slice(7)):e}let Sy={"image/bmp":{title:"Bitmap Image"},"image/jpeg":{title:"JPEG Image"},"image/gif":{title:"GIF Image"},"image/vnd.microsoft.icon":{title:"Icon"},"image/png":{title:"PNG Image"},"image/svg+xml":{title:"SVG Image"},"image/webp":{title:"WebP Image"},"image/tiff":{title:"TIFF Image"},"image/heic":{title:"HEIC Image"},"audio/midi":{title:"MIDI Audio"},"audio/midi-x":{title:"MIDI Audio"},"audio/mpeg":{title:"MP3 Audio"},"audio/ogg":{title:"OGG Audio"},"audio/wav":{title:"WAV Audio"},"audio/webm":{title:"WebM Audio"},"audio/aac":{title:"AAC Audio"},"video/x-msvideo":{title:"AVI Video"},"video/mp4":{title:"MP4 Video"},"video/mpeg":{title:"MPEG Video"},"video/ogg":{title:"OGG Video"},"video/webm":{title:"WebM Video"},"video/quicktime":{title:"QuickTime Video"},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{title:"Excel Spreadsheet"},"application/vnd.ms-excel":{title:"Excel Spreadsheet"},"text/plain":{title:"Text"},"text/javascript":{title:"JavaScript"},"text/markdown":{title:"Markdown"},"text/csv":{title:"CSV"},"text/css":{title:"CSS"},"application/pdf":{title:"PDF Document"},"application/xml":{title:"XML Document"},"text/xml":{title:"XML Document"},"application/zip":{title:"ZIP Archive"},"application/vnd.rar":{title:"RAR Archive"},"application/x-7z-compressed":{title:"7-zip Archive"},"application/octet-stream":{title:"Binary"}},Sx=g.I4.span`
1257  background-color: transparent;
1258  flex-shrink: 0;
1259`,Sb=(0,g.I4)(u.so)``,Sv=(0,g.I4)(u.Zp)`
1260  ${e=>e.isSelected&&(0,g.AH)`
1261      --card-muted-fg-color: var(--card-bg-color);
1262      --card-fg-color: var(--card-bg-color);
1263    `}
1264`,Sj=(0,g.I4)(u.$n)`
1265  box-shadow: none;
1266  min-width: 0;
1267  cursor: pointer;
1268  position: initial;
1269
1270  &:before,
1271  &:after {
1272    content: '';
1273    position: absolute;
1274    left: 0;
1275    top: 0;
1276    width: 100%;
1277    height: 100%;
1278    z-index: 2;
1279  }
1280
1281  &:before {
1282    z-index: 0;
1283    pointer-events: none;
1284    border-radius: inherit;
1285  }
1286
1287  ${e=>e.isSelected&&(0,g.AH)`
1288      --card-muted-fg-color: var(--card-bg-color);
1289      --card-fg-color: var(--card-bg-color);
1290
1291      &:before {
1292        background-color: var(--card-focus-ring-color);
1293      }
1294
1295      ${Sx} {
1296        --card-muted-fg-color: var(--card-bg-color);
1297      }
1298
1299      ${Sb} {
1300        --card-muted-fg-color: var(--card-bg-color);
1301        --card-fg-color: var(--card-bg-color);
1302      }
1303    `}
1304
1305  ${e=>!e.isSelected&&(0,g.AH)`
1306      &:hover:before {
1307        background-color: var(--card-bg-color);
1308      }
1309
1310      &:focus:before {
1311        background-color: var(--card-code-bg-color);
1312      }
1313
1314      &:focus-within:before {
1315        background-color: var(--card-bg-color);
1316      }
1317    `}
1318`,Sw=(0,g.I4)(u.EY)`
1319  overflow-wrap: anywhere;
1320`,S_={position:"relative"},Sk={flexShrink:0},SS={minWidth:0},ST={zIndex:3,marginTop:"-0.5rem",marginBottom:"-0.5rem"},SI=e=>{let t,n,r,i,l,d,c,m,h,f,g,x,b,v,j,w,_,k,S,T,I,E,$,A,D,z,M,P,R,O=(0,o.c)(105),V=ee7(a7),L=(0,p.dj)(),F=(0,s.useRef)(void 0),[B,N]=(0,s.useState)(!1),[Y,H]=(0,s.useState)(!1),[Z,U]=(0,s.useState)(!1),[q,J]=(0,s.useState)(!1),{asset:W,onClick:K,onKeyPress:G,onDeleteFinished:X,isSelected:Q,isMobile:ee}=e,{originalFilename:et,_id:en,mimeType:er,size:ei,_createdAt:ea}=W;O[0]===Symbol.for("react.memo_cache_sentinel")?(t={useTemporalPhrase:!0},O[0]=t):t=O[0];let eo=ck(ea,t);O[1]!==er?(n=function(e){return Sy?.[e]?Sy[e].title:function(e){let t=e.replace("x-","").split("/")[1];return t.charAt(0).toUpperCase()+t.slice(1)}(e)}(er),O[1]=er,O[2]=n):n=O[2];let el=n;O[3]===Symbol.for("react.memo_cache_sentinel")?(r={unitDisplay:"short",maximumFractionDigits:2},O[3]=r):r=O[3];let es=OQ(r);O[4]!==es||O[5]!==ei?(i=k9(ei,es),O[4]=es,O[5]=ei,O[6]=i):i=O[6];let ed=i,ec=(et||"").length>37,{t:eu}=iJ();O[7]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{H(!0)},O[7]=l):l=O[7];let ep=l;O[8]!==eu||O[9]!==L?(d=e=>{L.push({closable:!0,status:"error",title:eu("asset-source.file.asset-list.delete-failed"),description:e.message})},O[8]=eu,O[9]=L,O[10]=d):d=O[10];let em=d;O[11]!==eu||O[12]!==L?(c=()=>{L.push({status:"success",title:eu("asset-source.file.asset-list.delete-successful")})},O[11]=eu,O[12]=L,O[13]=c):c=O[13];let eh=c;O[14]!==W._id||O[15]!==em||O[16]!==eh||O[17]!==X||O[18]!==V.observable?(m=()=>{U(!0),F.current=V.observable.delete(W._id).subscribe({next:()=>{U(!1),X?.(W._id),H(!1),eh()},error:e=>{U(!1),em(e),console.error("Could not delete asset",e)}})}
1320,O[14]=W._id,O[15]=em,O[16]=eh,O[17]=X,O[18]=V.observable,O[19]=m):m=O[19];let ef=m;O[20]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{N(!1),H(!1)},O[20]=h):h=O[20];let eg=h;O[21]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{N(!0)},O[21]=f):f=O[21];let eC=f;O[22]===Symbol.for("react.memo_cache_sentinel")?(g=()=>{J(SE)},O[22]=g):g=O[22];let ey=g;O[23]===Symbol.for("react.memo_cache_sentinel")?(x=e=>{"delete"===e.type&&ep(),"showUsage"===e.type&&eC()},O[23]=x):x=O[23];let ex=x;if(O[24]!==W||O[25]!==B?(v=B&&(0,a.jsx)(Sg,{assetType:"file",asset:W,onClose:eg}),O[24]=W,O[25]=B,O[26]=v):v=O[26],b=v,O[27]!==W||O[28]!==ef||O[29]!==Z||O[30]!==Y?(w=Y&&(0,a.jsx)(Sp,{assetType:"file",asset:W,onClose:eg,onDelete:ef,isDeleting:Z}),O[27]=W,O[28]=ef,O[29]=Z,O[30]=Y,O[31]=w):w=O[31],j=w,ee){let e,t,n,r,i,o,l,s,d=Z?.5:1;O[32]!==d?(e={position:"relative",gridTemplateColumns:"1fr 30px",opacity:d},O[32]=d,O[33]=e):e=O[33],O[34]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(u.Zp,{as:Sx,padding:2,tone:"transparent",radius:2,children:(0,a.jsx)(u.EY,{muted:!0,size:2,style:Sk,children:(0,a.jsx)(C.pyG,{})})}),O[34]=t):t=O[34],O[35]!==et?(n=(0,a.jsxs)(u.so,{gap:2,flex:2,align:"center",children:[t,(0,a.jsx)(u.EY,{size:1,align:"left",textOverflow:"ellipsis",style:SS,children:et})]}),O[35]=et,O[36]=n):n=O[36],O[37]!==en||O[38]!==W||O[39]!==K||O[40]!==n?(r=(0,a.jsx)(Sj,{asset:W,mode:"bleed",padding:0,"data-id":en,onClick:K,paddingY:1,radius:2,children:n}),O[37]=en,O[38]=W,O[39]=K,O[40]=n,O[41]=r):r=O[41];let c=q?C.Mtm:C.D3D;O[42]!==c?(i=(0,a.jsx)(u.so,{justify:"flex-end",align:"center",paddingRight:1,style:ST,children:(0,a.jsx)(u.$n,{mode:"bleed",fontSize:1,padding:2,onClick:ey,icon:c})}),O[42]=c,O[43]=i):i=O[43],O[44]!==e||O[45]!==r||O[46]!==i?(o=(0,a.jsxs)(u.xA,{columns:4,gap:1,style:e,children:[r,i]}),O[44]=e,O[45]=r,O[46]=i,O[47]=o):o=O[47],O[48]!==el||O[49]!==ed||O[50]!==eo||O[51]!==q||O[52]!==Q||O[53]!==eu?(l=q&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(u.xA,{marginTop:3,columns:3,gap:1,children:[(0,a.jsxs)(u.BJ,{space:2,children:[(0,a.jsx)(u.EY,{size:1,muted:!0,weight:"medium",children:eu("asset-source.file.asset-list.header.size")}),(0,a.jsx)(u.EY,{size:1,muted:!0,children:ed})]}),(0,a.jsxs)(u.BJ,{space:2,children:[(0,a.jsx)(u.EY,{size:1,muted:!0,weight:"medium",children:eu("asset-source.file.asset-list.header.type")}),(0,a.jsx)(u.EY,{size:1,muted:!0,children:el})]}),(0,a.jsxs)(u.BJ,{space:2,children:[(0,a.jsx)(u.EY,{size:1,muted:!0,weight:"medium",children:eu("asset-source.file.asset-list.header.date-added")}),(0,a.jsx)(u.EY,{size:1,muted:!0,children:eo})]})]}),(0,a.jsxs)(u.BJ,{space:2,marginTop:3,children:[(0,a.jsx)(u.$n,{fontSize:1,tone:"default",mode:"ghost",text:eu("asset-source.file.asset-list.action.show-usage.title"),onClick:eC,icon:C.qYV}),(0,a.jsx)(u.$n,{fontSize:1,tone:"critical",mode:"ghost",text:eu("asset-source.file.asset-list.action.delete.title"),icon:C.ucK,disabled:Q,title:eu(Q?"asset-source.file.asset-list.action.delete.disabled-cannot-delete-current-file":"asset-source.file.asset-list.action.delete.title"),onClick:ep}
1320)]})]}),O[48]=el,O[49]=ed,O[50]=eo,O[51]=q,O[52]=Q,O[53]=eu,O[54]=l):l=O[54];let p=b||j;return O[55]!==o||O[56]!==l||O[57]!==p?(s=(0,a.jsxs)(u.Zp,{paddingBottom:2,style:S_,children:[o,l,p]}),O[55]=o,O[56]=l,O[57]=p,O[58]=s):s=O[58],s}let eb=Z?.5:1;O[59]!==eb?(_={position:"relative",gridTemplateColumns:"3fr 1fr 1fr 2fr 30px",opacity:eb},O[59]=eb,O[60]=_):_=O[60],O[61]!==et||O[62]!==eu?(k=eu("asset-source.file.asset-list.item.select-file-tooltip",{filename:et}),O[61]=et,O[62]=eu,O[63]=k):k=O[63],O[64]===Symbol.for("react.memo_cache_sentinel")?(S=(0,a.jsx)(u.Zp,{as:Sx,padding:2,tone:"transparent",radius:2,style:Sk,children:(0,a.jsx)(u.EY,{muted:!0,size:2,children:(0,a.jsx)(C.pyG,{})})}),O[64]=S):S=O[64],O[65]!==et||O[66]!==ec?(T=ec&&(0,a.jsx)(y.m_,{content:et,children:(0,a.jsx)(u.EY,{size:1,align:"left",textOverflow:"ellipsis",style:SS,children:et})}),O[65]=et,O[66]=ec,O[67]=T):T=O[67],O[68]!==et||O[69]!==ec?(I=!ec&&(0,a.jsx)(u.EY,{size:1,align:"left",textOverflow:"ellipsis",style:SS,children:et}),O[68]=et,O[69]=ec,O[70]=I):I=O[70],O[71]!==en||O[72]!==K||O[73]!==G||O[74]!==T||O[75]!==I?(E=(0,a.jsxs)(Sb,{gap:2,flex:2,paddingRight:1,align:"center",onClick:K,onKeyPress:G,"data-id":en,children:[S,T,I]}),O[71]=en,O[72]=K,O[73]=G,O[74]=T,O[75]=I,O[76]=E):E=O[76],O[77]!==en||O[78]!==W||O[79]!==Q||O[80]!==K||O[81]!==G||O[82]!==k||O[83]!==E?($=(0,a.jsx)(Sj,{asset:W,mode:"bleed","data-id":en,onClick:K,padding:0,onKeyPress:G,title:k,isSelected:Q,radius:2,children:E}),O[77]=en,O[78]=W,O[79]=Q,O[80]=K,O[81]=G,O[82]=k,O[83]=E,O[84]=$):$=O[84],O[85]!==ed?(A=(0,a.jsx)(Sb,{align:"center",children:(0,a.jsx)(u.EY,{size:1,muted:!0,children:ed})}),O[85]=ed,O[86]=A):A=O[86],O[87]!==el?(D=(0,a.jsx)(Sb,{align:"center",children:(0,a.jsx)(u.az,{children:(0,a.jsx)(Sw,{size:1,muted:!0,textOverflow:"ellipsis",children:el})})}),O[87]=el,O[88]=D):D=O[88],O[89]!==ea||O[90]!==eo?(z=(0,a.jsx)(Sb,{align:"center",children:(0,a.jsx)(u.EY,{as:"time",size:1,muted:!0,dateTime:ea,children:eo})}),O[89]=ea,O[90]=eo,O[91]=z):z=O[91],O[92]===Symbol.for("react.memo_cache_sentinel")?(M=(0,a.jsx)(Sb,{justify:"flex-end",align:"center",paddingX:1,paddingY:1,style:ST,children:(0,a.jsx)(Sf,{border:!1,isSelected:!1,onAction:ex})}),O[92]=M):M=O[92],O[93]!==en||O[94]!==_||O[95]!==$||O[96]!==A||O[97]!==D||O[98]!==z?(P=(0,a.jsxs)(u.xA,{columns:4,gap:1,"data-id":en,paddingY:1,style:_,children:[$,A,D,z,M]}),O[93]=en,O[94]=_,O[95]=$,O[96]=A,O[97]=D,O[98]=z,O[99]=P):P=O[99];let ev=b||j;return O[100]!==W||O[101]!==Q||O[102]!==P||O[103]!==ev?(R=(0,a.jsxs)(Sv,{asset:W,paddingBottom:1,style:S_,radiu
1320s:0,overflow:"hidden",isSelected:Q,"aria-selected":"true",children:[P,ev]}),O[100]=W,O[101]=Q,O[102]=P,O[103]=ev,O[104]=R):R=O[104],R};function SE(e){return!e}let S$={paddingLeft:"2.2rem"},SA={gridTemplateColumns:"3fr 1fr 1fr 2fr 30px"};function SD(e){let t,n,r,i,l,s=(0,o.c)(25),d=2>(0,u.aY)(),{assets:c,onClick:p,onKeyPress:m,onDeleteFinished:h,selectedAssets:f,isLoading:g}=e,{t:C}=iJ();if(s[0]!==d||s[1]!==C?(t=(0,a.jsx)(u.Zp,{borderBottom:!0,paddingBottom:2,marginBottom:1,children:d?(0,a.jsx)(u.xA,{style:SA,children:(0,a.jsx)(u.az,{flex:2,paddingLeft:5,children:(0,a.jsx)(u.EY,{muted:!0,size:1,weight:"medium",children:C("asset-source.file.asset-list.header.filename")})})}):(0,a.jsxs)(u.xA,{gap:1,style:SA,children:[(0,a.jsx)(u.az,{flex:2,style:S$,children:(0,a.jsx)(u.EY,{muted:!0,size:1,weight:"medium",children:C("asset-source.file.asset-list.header.filename")})}),(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(u.EY,{muted:!0,size:1,weight:"medium",children:C("asset-source.file.asset-list.header.size")})}),(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(u.EY,{muted:!0,size:1,weight:"medium",children:C("asset-source.file.asset-list.header.type")})}),(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(u.EY,{muted:!0,size:1,weight:"medium",children:C("asset-source.file.asset-list.header.date-added")})})]})}),s[0]=d,s[1]=C,s[2]=t):t=s[2],s[3]!==c.length||s[4]!==g?(n=g&&0===c.length&&(0,a.jsx)(u.az,{paddingTop:4,paddingBottom:2,children:(0,a.jsx)(u.so,{justify:"center",children:(0,a.jsx)(u.y$,{muted:!0})})}),s[3]=c.length,s[4]=g,s[5]=n):n=s[5],s[6]!==c||s[7]!==d||s[8]!==p||s[9]!==h||s[10]!==m||s[11]!==f){let e;s[13]!==d||s[14]!==p||s[15]!==h||s[16]!==m||s[17]!==f?(e=e=>(0,a.jsx)(SI,{asset:e,isMobile:d,isSelected:f.some(t=>t._id===e._id),onClick:p,onKeyPress:m,onDeleteFinished:h},e._id),s[13]=d,s[14]=p,s[15]=h,s[16]=m,s[17]=f,s[18]=e):e=s[18],r=c.map(e),s[6]=c,s[7]=d,s[8]=p,s[9]=h,s[10]=m,s[11]=f,s[12]=r}else r=s[12];return s[19]!==n||s[20]!==r?(i=(0,a.jsxs)(u.BJ,{children:[n,r]}),s[19]=n,s[20]=r,s[21]=i):i=s[21],s[22]!==t||s[23]!==i?(l=(0,a.jsxs)(u.az,{children:[t,i]}),s[22]=t,s[23]=i,s[24]=l):l=s[24],l}let Sz=typeof window>"u"||!window.devicePixelRatio?1:Math.round(window.devicePixelRatio),SM=g.I4.img`
1321  position: absolute;
1322  z-index: 1;
1323  top: 0;
1324  left: 0;
1325  width: 100%;
1326  height: 100%;
1327  display: block;
1328  object-fit: contain;
1329`,SP=(0,g.I4)(u.Zp)`
1330  position: relative;
1331  z-index: 1;
1332  padding-bottom: 100%;
1333`,SR=g.I4.div`
1334  position: relative;
1335  display: inherit;
1336`,SO=g.I4.div`
1337  box-sizing: border-box;
1338  position: absolute;
1339  z-index: 2;
1340  top: 3px;
1341  right: 3px;
1342
1343  & button[data-selected] {
1344    display: block;
1345  }
1346
1347  @media (hover: hover) {
1348    // If hover is supported, hide the buttons until the user hovers or focuses the asset
1349    // Use opacity to enable the buttons to still be focusable
1350    & button {
1351      opacity: 0;
1352    }
1353
1354    ${SR}:hover & {
1355      button {
1356        opacity: 1;
1357      }
1358    }
1359
1360    ${SR}:focus-within & {
1361      button {
1362        opacity: 1;
1363      }
1364    }
1365  }
1366`,SV=(0,s.memo)(function(e){let t,n,r,i,l,d,c,m,h,f,g,C,y,x,b,v,j,w,_,k,S=(0,o.c)(48),T=ee7(a7),I=(0,p.dj)(),E=(0,s.useRef)(void 0),{asset:$,onClick:A,onKeyPress:D,onDeleteFinished:z,isSelected:M}
1366=e,[P,R]=(0,s.useState)(!1),[O,V]=(0,s.useState)(!1),[L,F]=(0,s.useState)(!1),{t:B}=iJ();S[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>()=>{E.current&&E.current.unsubscribe()},n=[],S[0]=t,S[1]=n):(t=S[0],n=S[1]),(0,s.useEffect)(t,n),S[2]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{V(!0)},S[2]=r):r=S[2];let N=r;S[3]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{R(!1),V(!1)},S[3]=i):i=S[3];let Y=i;S[4]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{R(!0)},S[4]=l):l=S[4];let H=l;S[5]!==B||S[6]!==I?(d=e=>{I.push({closable:!0,status:"error",title:B("asset-source.image.asset-list.delete-failed"),description:e.message})},S[5]=B,S[6]=I,S[7]=d):d=S[7];let Z=d;S[8]!==B||S[9]!==I?(c=()=>{I.push({status:"success",title:B("asset-source.image.asset-list.delete-successful")})},S[8]=B,S[9]=I,S[10]=c):c=S[10];let U=c;S[11]!==$._id||S[12]!==Z||S[13]!==U||S[14]!==z||S[15]!==T.observable?(m=()=>{F(!0),E.current=T.observable.delete($._id).subscribe({next:()=>{F(!1),z($._id),V(!1),U()},error:e=>{F(!1),Z(e),console.error("Could not delete asset",e)}})},S[11]=$._id,S[12]=Z,S[13]=U,S[14]=z,S[15]=T.observable,S[16]=m):m=S[16];let q=m;S[17]===Symbol.for("react.memo_cache_sentinel")?(h=e=>{"delete"===e.type&&N(),"showUsage"===e.type&&H()},S[17]=h):h=S[17];let J=h;S[18]!==$||S[19]!==P?(g=P&&(0,a.jsx)(Sg,{assetType:"file",asset:$,onClose:Y}),S[18]=$,S[19]=P,S[20]=g):g=S[20],f=g,S[21]!==$||S[22]!==q||S[23]!==L||S[24]!==O?(y=O&&(0,a.jsx)(Sp,{assetType:"file",asset:$,onClose:Y,onDelete:q,isDeleting:L}),S[21]=$,S[22]=q,S[23]=L,S[24]=O,S[25]=y):y=S[25],C=y;let{originalFilename:W,_id:K,url:G}=$,X=200*Math.max(1,Sz),Q=G.includes(".gif")?`${G}?h=${X}&fit=max&fm=jpg`:`${G}?h=${X}&fit=max`;S[26]===Symbol.for("react.memo_cache_sentinel")?(x={padding:2},S[26]=x):x=S[26],S[27]!==K||S[28]!==Q||S[29]!==A||S[30]!==W?(b=(0,a.jsx)(SM,{alt:W,src:Q,onClick:A,"data-id":K}),S[27]=K,S[28]=Q,S[29]=A,S[30]=W,S[31]=b):b=S[31],S[32]!==L?(v=L&&(0,a.jsx)(r5,{}),S[32]=L,S[33]=v):v=S[33],S[34]!==b||S[35]!==v?(j=(0,a.jsxs)(SP,{__unstable_checkered:!0,children:[b,v]}),S[34]=b,S[35]=v,S[36]=j):j=S[36],S[37]!==K||S[38]!==M||S[39]!==D||S[40]!==j?(w=(0,a.jsx)(u.$n,{selected:M,tabIndex:0,"data-id":K,mode:"ghost",onKeyPress:D,padding:0,style:x,children:j}),S[37]=K,S[38]=M,S[39]=D,S[40]=j,S[41]=w):w=S[41],S[42]!==M?(_=(0,a.jsx)(SO,{children:(0,a.jsx)(Sf,{isSelected:M,onAction:J})}),S[42]=M,S[43]=_):_=S[43];let ee=f||C;return S[44]!==w||S[45]!==_||S[46]!==ee?(k=(0,a.jsxs)(SR,{children:[w,_,ee]}),S[44]=w,S[45]=_,S[46]=ee,S[47]=k):k=S[47],k}),SL=(0,g.I4)(u.xA)`
1367  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
1368`;function SF(e){let t,n,r,i,l,s=(0,o.c)(23),{isLoading:d,assets:c,selectedAssets:p,onItemClick:m,onItemKeyPress:h,onDeleteFinished:f}=e;if(s[0]!==c||s[1]!==f||s[2]!==m||s[3]!==h||s[4]!==p){let e;s[6]!==f||s[7]!==m||s[8]!==h||s[9]!==p?(e=e=>(0,a.jsx)(SV,{asset:e,isSelected:p.some(t=>t._id===e._id),onClick:m,onKeyPress:h,onDeleteFinished:f},e._id),s[6]=f,s[7]=m,s[8]=h,s[9]=p,s[10]=e):e=s[10],t=c.map(e),s[0]=c,s[1]=f,s[2]=m,s[3]=h,s[4]=p,s[5]=t}else t=s[5];return s[11]!==t?(n=(0,a.jsx)(SL,{gap:2,children:t}),s[11]=t,s[12]=n):n=s[12],s[13]!==c.length||s[14]!==d?(r=d&&0===c.length&&(0,a.jsx)(u.so,{justify:"center",children:(0,a.jsx)(u.y$,{muted:!0})}),s[13]=c.length,s[14]=d,s[15]=r):r=s[15],s[16]!==c.length||s[17]!==d?(i=!d&&0===c.length&&(0,a.jsx)(u.EY,{align:"center",muted:!0}),s[16]=c.length,s[17]=d,s[18]=i):i=s[18],s[19]!==n||s[20]!==r||s[21]!==i?(l=(0,a.jsxs)(u.az,{padding:4,children:[n,r,i]}),s[19]=n,s[20]=r,s[21]=i,s[22]=l):l=s[22],l}let SB=200,SN="sanity.imageAsset",SY=(0,g.I4)(u.Zp)`
1369  border-top: 1px solid var(--card-border-color);
1370  position: sticky;
1371  bottom: 0;
1372  z-index: 200;
1373`,SH=(0,s.memo)((0,s.forwardRef)(function(e,t){let n,r,i,l,d,c,p,m,h,f,g,x,b,v,j,w,_,k,S,T,I,E,$=(0,o.c)(68),A=ee7(a7);$[0]!==A?(r=A.withConfig({apiVersion:"2023-02-14"}),$[0]=A,$[1]=r):r=$[1],n=r;
1373let[D]=(0,s.useState)(SZ),z=(0,s.useRef)(0),{t:M}=iJ(),P=(0,s.useRef)(void 0);$[2]===Symbol.for("react.memo_cache_sentinel")?(i=[],$[2]=i):i=$[2];let[R,O]=(0,s.useState)(i),[V,L]=(0,s.useState)(!1),[F,B]=(0,s.useState)(!1),[N,Y]=(0,s.useState)(!0),{selectedAssets:H,assetType:Z,dialogHeaderTitle:U,onClose:q,onSelect:J,accept:W}=e,K=void 0===Z?"image":Z,G=W&&"image/*"===W&&"image"===K;$[3]!==W||$[4]!==K||$[5]!==n?(l=e=>{let t=e*SB,r="image"===K;Y(!0),"u">typeof W&&(P.current=n.observable.fetch(((e=0,t=SB,n=SN,r)=>{let i=r.length>0?(e=>{let t=["image/*","audio/*","video/*"],n=e.split(",").map(e=>e.trim()).reduce((e,n)=>t.includes(n)?{...e,wildcards:`mimeType match '${n}' || ${e.wildcards}`}:0===n.indexOf(".")?{...e,extensions:`'${n.replace(".","")}', ${e.extensions}`}:{...e,mimes:`'${n}', ${e.mimes}`},{mimes:"",extensions:"",wildcards:""});return`&&
1374  (
1375    ${n.wildcards}
1376    extension in [${n.extensions}] ||
1377    mimeType in [${n.mimes}]
1378  )`})(r):"";return`
1379  *[_type == "${n}" ${i}] | order(_updatedAt desc) [${e}...${t}] {
1380    _id,
1381    _updatedAt,
1382    _createdAt,
1383    url,
1384    originalFilename,
1385    mimeType,
1386    extension,
1387    size,
1388    metadata {dimensions}
1389  }
1390`})(t,t+SB,r?SN:"sanity.fileAsset",W),{},{tag:r?"asset.image-list":"asset.file-list"}).subscribe(e=>{L(e.length<SB),O(t=>t.concat(e)),Y(!1)}))},$[3]=W,$[4]=K,$[5]=n,$[6]=l):l=$[6];let X=l;$[7]===Symbol.for("react.memo_cache_sentinel")?(d=e=>{O(t=>t.filter(t=>t._id!==e))},$[7]=d):d=$[7];let Q=d;$[8]!==R||$[9]!==J?(c=e=>{R.find(t=>t._id===e)&&J([{kind:"assetDocumentId",value:e}])},$[8]=R,$[9]=J,$[10]=c):c=$[10];let ee=c;$[11]!==ee?(p=e=>{e.preventDefault();let t=e.currentTarget.getAttribute("data-id");if(!t)throw Error("Missing data-id attribute on item");ee(t)},$[11]=ee,$[12]=p):p=$[12];let et=p;$[13]!==ee?(m=e=>{if("Enter"===e.key){e.preventDefault();let t=e.currentTarget.getAttribute("data-id");if(!t)throw Error("Missing data-id attribute on item");ee(t)}},$[13]=ee,$[14]=m):m=$[14];let en=m;$[15]!==q?(h=()=>{q&&q()},$[15]=q,$[16]=h):h=$[16];let er=h;$[17]!==X?(f=e=>{e.preventDefault(),X(z.current=z.current+1)},$[17]=X,$[18]=f):f=$[18];let ei=f;$[19]!==X?(g=()=>(X(z.current),()=>{P.current&&P.current.unsubscribe()}),x=[X],$[19]=X,$[20]=g,$[21]=x):(g=$[20],x=$[21]),(0,s.useEffect)(g,x),$[22]!==N?(b=()=>{N||z.current&&0!==z.current||B(!0)},v=[N],$[22]=N,$[23]=b,$[24]=v):(b=$[23],v=$[24]),(0,s.useEffect)(b,v),$[25]===Symbol.for("react.memo_cache_sentinel")?(j={style:"narrow"},$[25]=j):j=$[25];let ea=i5(j);return $[26]!==K||$[27]!==U||$[28]!==M?(w=U||M("asset-source.dialog.default-title",{context:K}),$[26]=K,$[27]=U,$[28]=M,$[29]=w):w=$[29],$[30]!==W||$[31]!==G||$[32]!==N||$[33]!==ea||$[34]!==M?(_=!G&&!N&&W?.length>0&&(0,a.jsx)(u.Zp,{tone:"primary",padding:3,border:!0,radius:2,children:(0,a.jsxs)(u.so,{gap:3,align:"center",children:[(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.YzR,{})}),(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(an,{t:M,i18nKey:"asset-source.dialog.accept-message",values:{acceptTypes:ea.format(W.split(",").map(SU))}})})]})}),$[30]=W,$[31]=G,$[32]=N,$[33]=ea,$[34]=M,$[35]=_):_=$[35],$[36]!==K||$[37]!==R||$[38]!==et||$[39]!==en||$[40]!==N||$[41]!==H?(k="file"===K&&(0,a.jsx)(SD,{assets:R,onDeleteFinished:Q,onClick:et,onKeyPress:en,isLoading:N,selectedAssets:H}),$[36]=K,$[37]=R,$[38]=et,$[39]=en,$[40]=N,$[41]=H,$[42]=k):k=$[42],$[43]!==K||$[44]!==R||$[45]!==et||$[46]!==en||$[47]!==N||$[48]!==H?(S="image"===K&&(0,a.jsx)(SF,{assets:R,onDeleteFinished:Q,onItemClick:et,onItemKeyPress:en,isLoading:N,selectedAssets:H}),$[43]=K,$[44]=R,$[45]=et,$[46]=en,$[47]=N,$[48]=H,$[49]=S):S=$[49],$[50]!==R.length||$[51]!==ei||$[52]!==V||$[53]!==N||$[54]!==M?(T=R.length>0&&!V&&(0,a.jsx)(SY,{tone:"default",padding:4,children:(0,a.jsx)(u.so,{direction:"column",children:(0,a.jsx)(y.$n,{type:"button",icon:C.s3U,loading:N,onClick:ei,size:"large",text:M("asset-source.dialog.load-more"),tone:"primary"})})}),$[50]=R.length,$[51]=ei,$[52]=V,$[53]=N,$[54]=M,$[55]=T):T=$[55],$[56]!==_||$[57]!==k||$[58]!==S||$[59]!==T?(I=(0,a.jsxs)(u.BJ,{space:5,children:[_,k,S,T]}),$[56]=_,$[57]=k,$[58]=S,$[59]=T,$[60]=I):I=$[60],$[61]!==D||$[62]!==er||$[63]!==F||$[64]!==t||$[65]!==w||$[66]!==I?(E=(0,a.jsx)(y.lG,{__unstable_autoFocus:
1390F,header:w,id:D,onClickOutside:er,onClose:er,ref:t,width:2,children:I}),$[61]=D,$[62]=er,$[63]=F,$[64]=t,$[65]=w,$[66]=I,$[67]=E):E=$[67],E}));function SZ(){return`default-asset-source-${eK()}`}function SU(e){return e.trim()}let Sq=(0,s.memo)((0,s.forwardRef)(function(e,t){let n=(0,o.c)(3),{action:r}=e;if((void 0===r?"select":r)==="select"){let r;return n[0]!==e||n[1]!==t?(r=(0,a.jsx)(SH,{...e,ref:t}),n[0]=e,n[1]=t,n[2]=r):r=n[2],r}return null}));class SJ{files=[];subscribers=new Set;subscriptions=new Map;constructor(e){this.client=e.client}checkAllComplete(){this.files.length>0&&this.files.every(e=>["complete","error","aborted"].includes(e.status))&&(this.emit({type:"all-complete",files:this.files}),this.reset())}emit(e){this.subscribers.forEach(t=>t(e))}upload(e,t){let{schemaType:n,onChange:r}=t||{};for(let t of e){if(!n)throw Error("No schema type provided for file upload");if(!r)throw Error("No onChange provided for file upload");let e=bS(n,t),i={metadata:ni(n,"options.metadata"),storeOriginalFilename:ni(n,"options.storeOriginalFilename")},a=(0,nA.A)(),o={id:a,file:t,progress:0,status:"pending"};this.files.push(o),e&&this.subscriptions.set(a,e.upload(this.client,t,n,i).subscribe({next:e=>{let{patches:t}=e;this.updateFile(o.id,{status:"uploading"}),t&&r(t)},error:e=>{let t;t=e instanceof Error?e:Error("Unknown error"),this.updateFile(o.id,{status:"error",error:t}),this.emit({type:"error",files:this.files.filter(e=>"error"===e.status)}),this.subscriptions.get(a)?.unsubscribe()},complete:()=>{this.updateFile(o.id,{status:"complete"}),this.subscriptions.get(a)?.unsubscribe()}}))}return this.files}abort(e){if(e){let t=this.files.find(t=>t.id===e.id);t&&["pending","uploading"].includes(t.status)&&this.updateFile(t.id,{status:"aborted"})}else for(let e of this.files)["pending","uploading"].includes(e.status)&&this.updateFile(e.id,{status:"aborted"});this.emit({type:"abort",files:this.files.filter(e=>"aborted"===e.status)}),this.checkAllComplete()}updateFile(e,t){let n=this.files.find(t=>t.id===e);n&&(t.error&&(n.error=t.error),t.progress&&t.progress!==n.progress&&(n.progress=t.progress,this.emit({type:"progress",file:n,progress:100*n.progress})),t.status&&t.status!==n.status&&(n.status=t.status,this.emit({type:"status",file:n,status:n.status}))),this.checkAllComplete()}subscribe(e){for(let t of(this.subscribers.add(e),this.files))e({type:"status",file:t,status:t.status}),e({type:"progress",file:t,progress:t.progress});return this.checkAllComplete(),()=>{this.subscribers.delete(e)}}getFiles(){return this.files}reset(){this.files=[]}}function SW(e){return class extends SJ{constructor(){super(e)}}}let SK="sanity-default";function SG(e){return{name:SK,title:e.title,component:Sq,icon:C.xfq,Uploader:SW(e)}}function SX(e){return{name:SK,title:e.title,component:Sq,icon:C.So9,Uploader:SW(e)}}let SQ=(0,g.I4)(y.$n).attrs({forwardedAs:"label"})(({theme:e})=>{let{focusRing:t}=e.sanity,n=e.sanity.color.base;return(0,g.AH)`
1391      &:not([data-disabled='true']) {
1392        &:focus-within {
1393          box-shadow: ${jP({base:n,border:{width:1,color:"var(--card-border-color)"},focusRing:t})};
1394        }
1395      }
1396
1397      // The underlying file input is rendered as children within a Sanity UI <Button> component.
1398      // The below visibly hides it by targeting the input's parent <span> element, which is
1399      // added by the <Button> component.
1400      // TODO: refactor, avoid nth-child selector usage
1401      & > span:nth-child(2) {
1402        overflow: hidden;
1403        overflow: clip;
1404        top: 0;
1405        left: 0;
1406        width: 100%;
1407        height: 100%;
1408        position: absolute;
1409        min-width: 0;
1410        display: block;
1411        appearance: none;
1412        padding: 0;
1413        margin: 0;
1414        border: 0;
1415        opacity: 0;
1416      }
1417    `});(0,g.I4)(y.Dr).attrs({forwardedAs:"label"})(({theme:e})=>{let{focusRing:t}=e.sanity,n=e.sanity.color.base;return(0,g.AH)`
1418      &:not([data-disabled='true']) {
1419        &:focus-within {
1420          box-shadow: ${jP({base:n,border:{width:1,color:"var(--card-border-color)"},focusRing:t})};
1421        }
1422      }
1423
1424      // The underlying file input is rendered as children within a Sanity UI <Button> component.
1425      // The below visibly hides it by targeting the input's parent <span> element, which is
1426      // added by the <Button> component.
1427      // TODO: refactor, avoid nth-child selector usage
1428      & > span:nth-child(2) {
1429        overflow: hidden;
1430        overflow: clip;
1431        top: 0;
1432        left: 0;
1433        width: 100%;
1434        height: 100%;
1435        position: absolute;
1436        min-width: 0;
1437        display: block;
1438        appearance: none;
1439        padding: 0;
1440        margin: 0;
1441        border: 0;
1442        opacity: 0;
1443      }
1444    `});let S1=(0,s.forwardRef)(function(e,t){let n,r,i,l,d,c,u,p,m,h,f,g,C=(0,o.c)(27);C[0]!==e?({icon:l,id:d,accept:n,capture:r,multiple:c,onSelect:u,text:m,disabled:i,...p}=e,C[0]=e,C[1]=n,C[2]=r,C[3]=i,C[4]=l,C[5]=d,C[6]=c,C[7]=u,C[8]=p,C[9]=m):(n=C[1],r=C[2],i=C[3],l=C[4],d=C[5],c=C[6],u=C[7],p=C[8],m=C[9]);let y=`${d||""}-${(0,s.useId)()}`;C[10]!==u?(h=e=>{u&&e.target.files&&u(Array.from(e.target.files))},C[10]=u,C[11]=h):h=C[11];let x=h;return C[12]!==n||C[13]!==r||C[14]!==i||C[15]!==t||C[16]!==x||C[17]!==y||C[18]!==c?(f=(0,a.jsx)("input",{"data-testid":"file-button-input",accept:n,capture:r,id:y,multiple:c,onChange:x,ref:t,type:"file",value:"",disabled:i}),C[12]=n,C[13]=r,C[14]=i,C[15]=t,C[16]=x,C[17]=y,C[18]=c,C[19]=f):f=C[19],C[20]!==i||C[21]!==l||C[22]!==y||C[23]!==p||C[24]!==f||C[25]!==m?(g=(0,a.jsx)(SQ,{...p,icon:l,text:m,htmlFor:y,disabled:i,children:f}),C[20]=i,C[21]=l,C[22]=y,C[23]=p,C[24]=f,C[25]=m,C[26]=g):g=C[26],g}),S2={portal:!0},S5={placement:"right-start",fallbackPlacements:["left-start","bottom","top"]},S0="data-asset-source-name",S7=(0,s.memo)((0,s.forwardRef)(function(e,t){let n,r,i,l,s,d,c,p,m,h=(0,o.c)(53),{accept:f,assetSources:g,capture:x,directUploads:b,multiple:v,onSelectFiles:j,readOnly:w,renderAsMenuGroup:_}=e,{t:k}=iJ();h[0]===Symbol.for("react.memo_cache_sentinel")?(r=eK(),h[0]=r):r=h[0],n=r;let S=w||!1===b;h[1]===Symbol.for("react.memo_cache_sentinel")?(i=e=>`${n}-${e.name}-upload-button`,h[1]=i):i=h[1];let T=i;h[2]!==g?(l=e=>{let t=e.currentTarget.getAttribute(S0),n=g.find(e=>e.name===t);if(!n)return;let r=document.getElementById(T(n));r&&document.activeElement!==r&&r.click()},h[2]=g,h[3]=l):l=h[3];let I=l;h[4]!==g?(s=e=>{let t=e.props[S0],n=g.find(e=>e.name===t);return n?(0,a.jsx)("label",{htmlFor:T(n),children:e}):e},h[4]=g,h[5]=s):s=h[5];let E=s;h[6]!==g[0]||h[7]!==I||h[8]!==E||h[9]!==k||h[10]!==S?(d=(e,t)=>{let n=T(e),r=e.name===g[0].name;return(0,a.jsx)(y.Dr,{[S0]:e.name,badgeText:r?k("input.files.common.upload-placeholder.file-input-button.default-source.badge"):void 0,"data-testid":`file-input-upload-button-${t}`,disabled:S,htmlFor:n,icon:e.icon,onClick:I,renderMenuItem:E,text:(e.i18nKey?k(e.i18nKey):e.title)||eJ(e.name)},`${n}-menu-button`)},h[6]=g[0],h[7]=I,h[8]=E,h[9]=k,h[10]=S,h[11]=d):d=h[11];let $=d;h[12]!==g||h[13]!==j?(c=e=>{let t=e.target.dataset.assetSourceName,n=g.find(e=>e.name===t);n&&(j&&e.target.files&&j(n,Array.from(e.target.files)),e.stopPropagation(),e.preventDefault())},h[12]=g,h[13]=j,h[14]=c):c=h[14];let A=c;if(h[15]!==f||h[16]!==g||h[17]!==x||h[18]!==A||h[19]!==v){let e;h[21]!==f||h[22]!==x||h[23]!==A||h[24]!==v?(e=e=>{let t=T(e);return(0,a.jsx)("input",{accept:f,capture:x,id:t,"data-asset-source-name":e.name,multiple:v,onChange:A,type:"file",value:"",style:{display:"none"}},t)}
1444,h[21]=f,h[22]=x,h[23]=A,h[24]=v,h[25]=e):e=h[25],m=g.map(e),h[15]=f,h[16]=g,h[17]=x,h[18]=A,h[19]=v,h[20]=m}else m=h[20];if(p=m,g&&g.length>1){let e,r,i,o,l,s;if(h[26]!==g||h[27]!==$){let t;h[29]!==$?(t=(e,t)=>$(e,t),h[29]=$,h[30]=t):t=h[30],e=g.map(t),h[26]=g,h[27]=$,h[28]=e}else e=h[28];let d=e;if(void 0!==_&&_){let e,t,n;return h[31]!==k?(e=k("input.files.common.upload-placeholder.file-input-button.text"),h[31]=k,h[32]=e):e=h[32],h[33]!==d||h[34]!==e?(t=(0,a.jsx)(nz.r,{icon:C.JMY,text:e,popover:S5,children:d}),h[33]=d,h[34]=e,h[35]=t):t=h[35],h[36]!==p||h[37]!==t?(n=(0,a.jsxs)(a.Fragment,{children:[t,p]}),h[36]=p,h[37]=t,h[38]=n):n=h[38],n}return h[39]!==k?(r=k("input.files.common.upload-placeholder.file-input-button.text"),h[39]=k,h[40]=r):r=h[40],h[41]!==r||h[42]!==S?(i=(0,a.jsx)(y.$n,{"data-testid":"file-input-upload-button-0",icon:C.JMY,iconRight:C.D3D,mode:"bleed",disabled:S,text:r}),h[41]=r,h[42]=S,h[43]=i):i=h[43],h[44]!==d?(o=(0,a.jsx)(u.W1,{children:d}),h[44]=d,h[45]=o):o=h[45],h[46]!==t||h[47]!==i||h[48]!==o?(l=(0,a.jsx)(y.IU,{id:`${n}_upload-button`,ref:t,button:i,menu:o,popover:S2}),h[46]=t,h[47]=i,h[48]=o,h[49]=l):l=h[49],h[50]!==p||h[51]!==l?(s=(0,a.jsxs)(a.Fragment,{children:[l,p]}),h[50]=p,h[51]=l,h[52]=s):s=h[52],s}return null}));function S3(e){return!!e.Uploader}let S8=(0,s.memo)(function(e){let t,n,r,i,l,d=(0,o.c)(35),{accept:c,acceptedFiles:p,assetSources:m,browse:h,directUploads:f,hoveringFiles:g,onUpload:y,readOnly:x,rejectedFilesCount:b,type:v}=e,[j,w]=(0,s.useState)(null),_=(0,u.cF)(j),k=_?.border&&_.border.width<440,{t:S}=iJ(),T=ee7(a7),I=co();if(d[0]!==m||d[1]!==T||d[2]!==I||d[3]!==v){if(0===(n=m.filter(S3)).length){let e={client:T,title:I.title||I.name},t="file"===v;n.push(t?SX(e):SG(e))}d[0]=m,d[1]=T,d[2]=I,d[3]=v,d[4]=n}else n=d[4];t=n,d[5]!==y?(r=(e,t)=>{y&&y(e,t)},d[5]=y,d[6]=r):r=d[6];let E=r;switch(t.length){case 0:i=null;break;case 1:{let e,n,r,o=`file-input-upload-button-${t[0].name}`,l=x||!1===f;d[7]!==t[0]||d[8]!==y?(e=e=>{y&&y(t[0],e)},d[7]=t[0],d[8]=y,d[9]=e):e=d[9],d[10]!==S?(n=S("input.files.common.upload-placeholder.file-input-button.text"),d[10]=S,d[11]=n):n=d[11],d[12]!==c||d[13]!==o||d[14]!==l||d[15]!==e||d[16]!==n?(r=(0,a.jsx)(S1,{accept:c,"data-testid":o,disabled:l,icon:C.JMY,mode:"bleed",onSelect:e,text:n}),d[12]=c,d[13]=o,d[14]=l,d[15]=e,d[16]=n,d[17]=r):r=d[17],i=r;break}default:{let e;d[18]!==c||d[19]!==t||d[20]!==f||d[21]!==E||d[22]!==x?(e=(0,a.jsx)(S7,{accept:c,assetSources:t,directUploads:f,onSelectFiles:E,readOnly:x}),d[18]=c,d[19]=t,d[20]=f,d[21]=E,d[22]=x,d[23]=e):e=d[23],i=e}}let $=i;return d[24]!==p||d[25]!==t.length||d[26]!==h||d[27]!==k||d[28]!==f||d[29]!==g||d[30]!==x||d[31]!==b||d[32]!==v||d[33]!==$?(l=0===t.length?null:(0,a.jsxs)(u.so,{align:k?void 0:"center",direction:k?"column":"row",gap:4,justify:"space-between",paddingY:k?1:void 0,ref:w,children:[(0,a.jsx)(u.so,{flex:1,children:(0,a.jsx)(k0,{acceptedFiles:p,directUploads:f,hoveringFiles:g,readOnly:x,rejectedFilesCount:b,type:v})}),(0,a.jsxs)(u.so,{align:"center",gap:1,justify:"center",wrap:"wrap",children:[$,h]})]}),d[24]=p,d[25]=t.length,d[26]=h,d[27]=k,d[28]=f,d[29]=g,d[30]=x,d[31]=b,d[32]=v,d[33]=$,d[34]=l):l=d[34],l}),S4=(0,g.I4)(u.Zp)`
1445  position: relative;
1446  width: 100%;
1447  min-height: 3.75rem;
1448  max-height: min(calc(var(--image-height) * 1px), 30vh);
1449  aspect-ratio: var(--image-width) / var(--image-height);
1450
1451  & img {
1452    display: block;
1453    width: 100%;
1454    height: 100%;
1455    object-fit: scale-down;
1456    object-position: center;
1457  }
1458`,S6=(0,g.I4)(u.Zp)`
1459  display: flex;
1460  justify-content: flex-end;
1461  position: absolute;
1462  top: 0;
1463  left: 0;
1464  right: 0;
1465  bottom: 0;
1466  backdrop-filter: blur(10px);
1467  background-color: color-mix(in srgb, transparent, var(--card-bg-color) 80%);
1468`,S9=(0,g.I4)(u.so)`
1469  position: absolute;
1470  top: 0;
1471  left: 0;
1472  bottom: 0;
1473  right: 0;
1474`,Te=(0,g.I4)(S4)`
1475  box-sizing: border-box;
1476`,Tt=(0,g.I4)(u.so)`
1477  box-sizing: border-box;
1478  text-overflow: ellipsis;
1479  overflow: hidden;
1480  overflow: clip;
1481`,Tn=(0,g.I4)(u.BJ)`
1482  position: relative;
1483  width: 60%;
1484`,Tr=(0,g.I4)(u.Cy)`
1485  position: relative;
1486  width: 100%;
1487
1488  code {
1489    overflow: hidden;
1490    overflow: clip;
1491    text-overflow: ellipsis;
1492    position: relative;
1493    max-width: 200px;
1494  }
1495`;function Ti(e){let t,n,r,i,l,d,c,p,m,h,f=(0,o.c)(22),{uploadState:g,onCancel:C,onStale:x}=e,b=g.file.name;f[0]!==x||f[1]!==g.updatedAt?(t=()=>{let e;e=g.updatedAt,new Date().getTime()-new Date(e).getTime()>12e4&&x?.()},n=[g.updatedAt,x],f[0]=x,f[1]=g.updatedAt,f[2]=t,f[3]=n):(t=f[2],n=f[3]),(0,s.useEffect)(t,n);let{t:v}=iJ();return f[4]===Symbol.for("react.memo_cache_sentinel")?(r=[3,3,2,2],i=["column","column","row"],f[4]=r,f[5]=i):(r=f[4],i=f[5]),f[6]!==b?(l={FileName:()=>(0,a.jsx)(Tr,{size:1,children:b||"…"})},f[6]=b,f[7]=l):l=f[7],f[8]!==v||f[9]!==l?(d=(0,a.jsx)(u.so,{justify:"center",gap:r,direction:i,children:(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(u.cV,{space:2,children:(0,a.jsx)(an,{t:v,i18nKey:"input.files.common.upload-progress",components:l})})})}),f[8]=v,f[9]=l,f[10]=d):d=f[10],f[11]!==g.progress?(c=(0,a.jsx)(u.Zp,{border:!0,marginTop:3,radiu
1495s:5,children:(0,a.jsx)(et1,{value:g.progress})}),f[11]=g.progress,f[12]=c):c=f[12],f[13]!==d||f[14]!==c?(p=(0,a.jsxs)(Tn,{children:[d,c]}),f[13]=d,f[14]=c,f[15]=p):p=f[15],f[16]!==C||f[17]!==v?(m=C?(0,a.jsx)(y.$n,{mode:"ghost",onClick:C,text:v("input.files.common.cancel-upload"),tone:"critical"}):null,f[16]=C,f[17]=v,f[18]=m):m=f[18],f[19]!==p||f[20]!==m?(h=(0,a.jsx)(Te,{tone:"primary",border:!0,children:(0,a.jsxs)(Tt,{padding:4,align:"center",justify:"space-between",height:"fill",direction:"row",gap:2,children:[p,m]})}),f[19]=p,f[20]=m,f[21]=h):h=f[21],h}function Ta(e){let t,n,r,i,l,s,d,c,p,m=(0,o.c)(20),{onClearStale:h}=e,{t:f}=iJ();return m[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(u.az,{children:(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.sAQ,{})})}),m[0]=t):t=m[0],m[1]!==f?(n=f("inputs.files.common.stale-upload-warning.title"),m[1]=f,m[2]=n):n=m[2],m[3]!==n?(r=(0,a.jsx)(u.EY,{size:1,weight:"medium",children:n}),m[3]=n,m[4]=r):r=m[4],m[5]!==f?(i=f("inputs.files.common.stale-upload-warning.description",{staleThresholdMinutes:Math.ceil(2)}),m[5]=f,m[6]=i):i=m[6],m[7]!==i?(l=(0,a.jsx)(u.EY,{size:1,children:i}),m[7]=i,m[8]=l):l=m[8],m[9]!==r||m[10]!==l?(s=(0,a.jsxs)(u.so,{gap:4,marginBottom:4,children:[t,(0,a.jsxs)(u.BJ,{space:3,children:[r,l]})]}),m[9]=r,m[10]=l,m[11]=s):s=m[11],m[12]!==f?(d=f("inputs.files.common.stale-upload-warning.clear"),m[12]=f,m[13]=d):d=m[13],m[14]!==h||m[15]!==d?(c=(0,a.jsx)(y.$n,{icon:C.NAP,mode:"ghost",onClick:h,text:d,width:"fill"}),m[14]=h,m[15]=d,m[16]=c):c=m[16],m[17]!==s||m[18]!==c?(p=(0,a.jsxs)(u.Zp,{tone:"caution",padding:4,border:!0,radius:2,children:[s,c]}),m[17]=s,m[18]=c,m[19]=p):p=m[19],p}function To(e){let t,n,r,i,l=(0,o.c)(32),{assetSources:s,readOnly:d,id:c,browseButtonElementRef:p,schemaType:m,setIsBrowseMenuOpen:h,setSelectedAssetSource:f}=e,g=m.options?.sources,{t:x}=iJ();l[0]!==h||l[1]!==f?(t=e=>{h(!1),f(e)},l[0]=h,l[1]=f,l[2]=t):t=l[2];let b=t;if(g?.length===0||0===s.length)return null;if(s.length>1&&!d){let e,t,n,r,i,o=`${c}_assetFileButton`;if(l[3]!==x?(e=x("inputs.file.multi-browse-button.text"),l[3]=x,l[4]=e):e=l[4],l[5]!==e?
1495(t=(0,a.jsx)(y.$n,{mode:"bleed",text:e,"data-testid":"file-input-multi-browse-button",icon:C.WIv,iconRight:C.D3D}),l[5]=e,l[6]=t):t=l[6],l[7]!==s||l[8]!==b||l[9]!==x){let e;l[11]!==b||l[12]!==x?(e=e=>(0,a.jsx)(y.Dr,{text:(e.i18nKey?x(e.i18nKey):e.title)||eJ(e.name),onClick:()=>b(e),icon:e.icon||C.xfq,"data-testid":`file-input-browse-button-${e.name}`},e.name),l[11]=b,l[12]=x,l[13]=e):e=l[13],n=s.map(e),l[7]=s,l[8]=b,l[9]=x,l[10]=n}else n=l[10];return l[14]!==n?(r=(0,a.jsx)(u.W1,{children:n}),l[14]=n,l[15]=r):r=l[15],l[16]!==p||l[17]!==o||l[18]!==t||l[19]!==r?(i=(0,a.jsx)(y.IU,{id:o,ref:p,button:t,"data-testid":"input-select-button",menu:r}),l[16]=p,l[17]=o,l[18]=t,l[19]=r,l[20]=i):i=l[20],i}l[21]!==x?(n=x("inputs.file.browse-button.text"),l[21]=x,l[22]=n):n=l[22],l[23]!==s[0]||l[24]!==b?(r=()=>b(s[0]),l[23]=s[0],l[24]=b,l[25]=r):r=l[25];let v=`file-input-browse-button-${s[0].name}`;return l[26]!==p||l[27]!==d||l[28]!==n||l[29]!==r||l[30]!==v?(i=(0,a.jsx)(y.$n,{text:n,icon:C.WIv,mode:"bleed",onClick:r,"data-testid":v,disabled:d,ref:p}),l[26]=p,l[27]=d,l[28]=n,l[29]=r,l[30]=v,l[31]=i):i=l[31],i}function Tl(e){let t,n,r,i,l=(0,o.c)(10),{reference:s,children:d,observeAsset:c,waitPlaceholder:u}=e,p=s?._ref;l[0]!==p||l[1]!==c?(n=c(p),l[0]=p,l[1]=c,l[2]=n):n=l[2],t=n;let m=(0,eH.J)(t);return l[3]!==m||l[4]!==d||l[5]!==p||l[6]!==u?(r=p&&m?d(m):u,l[3]=m,l[4]=d,l[5]=p,l[6]=u,l[7]=r):r=l[7],l[8]!==r?(i=(0,a.jsx)(a.Fragment,{children:r}),l[8]=r,l[9]=i):i=l[9],i}function Ts(e){let t,n,r,i,l,s,d,c,m,h=(0,o.c)(32),{onReset:f,readOnly:g,browse:x,downloadUrl:b,copyUrl:v,upload:j}=e,{push:w}=(0,p.dj)(),{t:_}=iJ();h[0]!==v||h[1]!==w||h[2]!==_?(t=()=>{navigator.clipboard.writeText(v||""),w({closable:!0,status:"success",title:_("inputs.files.common.actions-menu.notification.url-copied")})},h[0]=v,h[1]=w,h[2]=_,h[3]=t):t=h[3];let k=t;return h[4]!==x||h[5]!==j?(n=j&&x&&(0,a.jsx)(u.Nj,{}),h[4]=x,h[5]=j,h[6]=n):n=h[6],h[7]!==v||h[8]!==b?(r=(b||v)&&(0,a.jsx)(u.Nj,{}),h[7]=v,h[8]=b,h[9]=r):r=h[9],h[10]!==b||h[11]!==_?(i=b&&(0,a.jsx)(y.Dr,{as:"a",icon:C.s3U,text:_("inputs.files.common.actions-menu.download.label"),href:b}),h[10]=b,h[11]=_,h[12]=i):i=h[12],h[13]!==v||h[14]!==k||h[15]!==_?(l=v&&(0,a.jsx)(y.Dr,{icon:C.TdU,text:_("inputs.files.common.actions-menu.copy-url.label"),onClick:k}),h[13]=v,h[14]=k,h[15]=_,h[16]=l):l=h[16],h[17]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsx)(u.Nj,{}),h[17]=s):s=h[17],h[18]!==_?(d=_("inputs.files.common.actions-menu.clear-field.label"),h[18]=_,h[19]=d):d=h[19],h[20]!==f||h[21]!==g||h[22]!==d?(c=(0,a.jsx)(y.Dr,{tone:"critical",icon:C.NAP,text:d,onClick:f,disabled:g,"data-testid":"file-input-clear"}),h[20]=f,h[21]=g,h[22]=d,h[23]=c):c=h[23],h[24]!==x||h[25]!==n||h[26]!==r||h[27]!==i||h[28]!==l||h[29]!==c||h[30]!==j?(m=(0,a.jsxs)(a.Fragment,{children:[j,n,x,r,i,l,s,c]}),h[24]=x,h[25]=n,h[26]=r,h[27]=i,h[28]=l,h[29]=c,h[30]=j,h[31]=m):m=h[31],m}let Td=(0,g.I4)(y.Dr)`
1496  position: relative;
1497
1498  & input {
1499    overflow: hidden;
1500    overflow: clip;
1501    top: 0;
1502    left: 0;
1503    width: 100%;
1504    height: 100%;
1505    position: absolute;
1506    min-width: 0;
1507    display: block;
1508    appearance: none;
1509    padding: 0;
1510    margin: 0;
1511    border: 0;
1512    opacity: 0;
1513  }
1514`,Tc=(0,s.forwardRef)(function(e,t){let n,r,i,l,d,c,u,p,m,h,f,g,C=(0,o.c)(27);C[0]!==e?({icon:l,id:d,accept:n,capture:r,multiple:c,onSelect:u,text:m,disabled:i,...p}=e,C[0]=e,C[1]=n,C[2]=r,C[3]=i,C[4]=l,C[5]=d,C[6]=c,C[7]=u,C[8]=p,C[9]=m):(n=C[1],r=C[2],i=C[3],l=C[4],d=C[5],c=C[6],u=C[7],p=C[8],m=C[9]);let y=`${d||""}-${(0,s.useId)()}`;C[10]!==u?(h=e=>{u&&e.target.files&&u(Array.from(e.target.files))},C[10]=u,C[11]=h):h=C[11];let x=h;C[12]!==n||C[13]!==r||C[14]!==i||C[15]!==x||C[16]!==y||C[17]!==c?(f=e=>(0,a.jsxs)("div",{children:[e,(0,a.jsx)("input",{"data-testid":"file-menuitem-input",accept:n,capture:r,id:y,multiple:c,onChange:x,type:"file",value:"",disabled:i})]}),C[12]=n,C[13]=r,C[14]=i,C[15]=x,C[16]=y,C[17]=c,C[18]=f):f=C[18];let b=f;return C[19]!==i||C[20]!==t||C[21]!==l||C[22]!==y||C[23]!==b||C[24]!==p||C[25]!==m?(g=(0,a.jsx)(Td,{...p,htmlFor:y,disabled:i,ref:t,icon:l,text:m,renderMenuItem:b}),C[19]=i,C[20]=t,C[21]=l,C[22]=y,C[23]=b,C[24]=p,C[25]=m,C[26]=g):g=C[26],g});function Tu(e,t=2){if(0===e)return"0 Bytes";let n=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,n)).toFixed(t<0?0:t))} ${["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][n]}`}function Tp(e){let t,n,r,i,l,d,c,p,m,h,f,g,x,b,v,j,w,_,k,S,T=(0,o.c)(52),{originalFilename:I,size:E,children:$,muted:A,disabled:D,onClick:z,isMenuOpen:M,onMenuOpen:P,setMenuButtonElement:R}
1514=e,[O,V]=(0,s.useState)(null),[L,F]=(0,s.useState)(null);T[0]!==P?(t=()=>P(!0),T[0]=P,T[1]=t):t=T[1];let B=t;T[2]!==L||T[3]!==M||T[4]!==P?(n=e=>{M&&("Escape"===e.key||"Tab"===e.key)&&(P(!1),L?.focus())},T[2]=L,T[3]=M,T[4]=P,T[5]=n):n=T[5],(0,u.Pm)(n),T[6]!==L||T[7]!==P?(r=e=>{L?.contains(e.target)||P(!1)},T[6]=L,T[7]=P,T[8]=r):r=T[8],T[9]!==O?(i=()=>[O],T[9]=O,T[10]=i):i=T[10],(0,u.PR)(r,i),T[11]!==R?(l=e=>{R(e),F(e)},T[11]=R,T[12]=l):l=T[12];let N=l;T[13]!==M||T[14]!==O?(d=()=>{M&&O?.focus()},c=[M,O],T[13]=M,T[14]=O,T[15]=d,T[16]=c):(d=T[15],c=T[16]),(0,s.useEffect)(d,c);let{t:Y}=iJ(),H=A||D?void 0:"button";return T[17]===Symbol.for("react.memo_cache_sentinel")?(p=(0,a.jsx)(C.A1A,{}),T[17]=p):p=T[17],T[18]!==A?(m=(0,a.jsx)(u.Zp,{padding:3,tone:"transparent",shadow:1,radius:1,children:(0,a.jsx)(u.EY,{muted:A,children:p})}),T[18]=A,T[19]=m):m=T[19],T[20]!==A||T[21]!==I?(h=(0,a.jsx)(u.EY,{size:1,textOverflow:"ellipsis",muted:A,"data-testid":"file-name",weight:"medium",children:I}),T[20]=A,T[21]=I,T[22]=h):h=T[22],T[23]!==E?(f=Tu(E),T[23]=E,T[24]=f):f=T[24],T[25]!==f?(g=(0,a.jsx)(u.EY,{size:1,muted:!0,"data-testid":"file-size",children:f}),T[25]=f,T[26]=g):g=T[26],T[27]!==h||T[28]!==g?(x=(0,a.jsxs)(u.BJ,{flex:1,space:2,marginLeft:3,children:[h,g]}),T[27]=h,T[28]=g,T[29]=x):x=T[29],T[30]!==x||T[31]!==m?(b=(0,a.jsxs)(u.so,{wrap:"nowrap",align:"center",children:[m,x]}),T[30]=x,T[31]=m,T[32]=b):b=T[32],T[33]!==z||T[34]!==b||T[35]!==H?(v=(0,a.jsx)(u.Zp,{as:H,radius:2,padding:2,tone:"inherit",onClick:z,flex:1,children:b}),T[33]=z,T[34]=b,T[35]=H,T[36]=v):v=T[36],T[37]!==$?(j=(0,a.jsx)(u.W1,{ref:V,children:$}),T[37]=$,T[38]=j):j=T[38],T[39]!==Y?(w=Y("inputs.file.actions-menu.file-options.aria-label"),T[39]=Y,T[40]=w):w=T[40],T[41]!==B||T[42]!==N||T[43]!==w?(_=(0,a.jsx)(rU,{"aria-label":w,"data-testid":"options-menu-button",onClick:B,ref:N}),T[41]=B,T[42]=N,T[43]=w,T[44]=_):_=T[44],T[45]!==M||T[46]!==j||T[47]!==_?(k=(0,a.jsx)(u.az,{padding:2,children:(0,a.jsx)(u.so,{justify:"center",children:(0,a.jsx)(y.AM,{content:j,id:"file-actions-menu",portal:!0,open:M,constrainSize:!0,children:_})})}),T[45]=M,T[46]=j,T[47]=_,T[48]=k):k=T[48],T[49]!==v||T[50]!==k?(S=(0,a.jsxs)(u.so,{wrap:"nowrap",justify:"space-between",align:"center",children:[v,k]}),T[49]=v,T[50]=k,T[51]=S):S=T[51],S}function Tm(){let e,t,n,r=(0,o.c)(3);return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(p.EA,{padding:3,radius:1,animated:!0}),r[0]=e):e=r[0],r[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(p.r5,{style:{width:"100%"},radius:1,animated:!0}),r[1]=t):t=r[1],r[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsxs)(u.so,{align:"center",justify:"flex-start",padding:2,children:[e,(0,a.jsxs)(u.BJ,{flex:1,space:2,marginLeft:3,children:[t,(0,a.jsx)(p.r5,{style:{width:"100%"},radius:1,animated:!0})]})]}),r[2]=n):n=r[2],n}function Th(e){let t,n,r,i,l,d,c,u,p,m,h=(0,o.c)(57),{assetSources:f,clearField:g,directUploads:x,onSelectFiles:b,observeAsset:v,readOnly:j,schemaType:w,setBrowseButtonElement:_,setSelectedAssetSource:k,value:S}=e,{t:T}=iJ(),[I,E]=(0,s.useState)(!1),$=S?.asset,A=w.options?.sources;h[0]!==w?(t=ni(w,"options.accept",""),h[0]=w,h[1]=t):t=h[1];let D=t;h[2]!==f?(n=f.filter(Tf),h[2]=f,h[3]=n):n=h[3];let z=n;h[4]!==f||h[5]!==k?(r=e=>{E(!1);let t=e.currentTarget.getAttribute("data-asset-source-name"),n=f.find(e=>e.name===t);n?k(n):console.warn(`No asset source found for the selected asset source name '${t}'`)},h[4]=f,h[5]=k,h[6]=r):r=h[6];let M=r;h[7]!==b?(i=(e,t)=>{E(!1),b(e,t)},h[7]=b,h[8]=i):i=h[8];let P=i;h[9]!==z[0]||h[10]!==P?(l=e=>{P(z[0],e)},h[9]=z[0],h[10]=P,h[11]=l):l=h[11];let R=l;e:{let e;if(A?.length===0||0===f.length){d=null;break e}if(1===f.length){let e,t;h[12]!==T?(e=T("inputs.file.browse-button.text"),h[12]=T,h[13]=e):e=h[13];let n=`file-input-browse-button-${f[0].name}`;h[14]!==f[0].name||h[15]!==M||h[16]!==j||h[17]!==e||h[18]!==n?(t=(0,a.jsx)(y.Dr,{icon:C.WIv,text:e,onClick:M,disabled:j,"data-testid":n,"data-asset-source-name":f[0].name}),h[14]=f[0].name,h[15]=M,h[16]=j,h[17]=e,h[18]=n,h[19]=t):t=h[19],d=t;break e}if(h[20]!==f||h[21]!==M||h[22]!==j||h[23]!==T){let t;h[25]!==M||h[26]!==j||h[27]!==T?(t=e=>(0,a.jsx)(y.Dr,{text:(e.i18nKey?T(e.i18nKey):e.title)||eJ(e.name),onClick:M,icon:e.icon||C.xfq,disabled:j,"data-testid":`file-input-browse-button-${e.name}`,"data-asset-source-name":e.name},e.name),h[25]=M,h[26]=j,h[27]=T,h[28]=t):t=h[28],e=f.map(t),h[20]=f,h[21]=M,h[22]=j,h[23]=T,h[24]=e}else e=h[24];d=e}let O=d;switch(z.length){case 0:c=null;break;case 1:{let e,t,n=z[0].name;
1514h[29]!==T?(e=T("inputs.files.common.actions-menu.upload.label"),h[29]=T,h[30]=e):e=h[30];let r=`file-input-upload-button-${z[0].name}`,i=j||!1===x;h[31]!==D||h[32]!==z[0].name||h[33]!==R||h[34]!==i||h[35]!==e||h[36]!==r?(t=(0,a.jsx)(Tc,{icon:C.JMY,onSelect:R,accept:D,"data-asset-source-name":n,text:e,"data-testid":r,disabled:i}),h[31]=D,h[32]=z[0].name,h[33]=R,h[34]=i,h[35]=e,h[36]=r,h[37]=t):t=h[37],c=t;break}default:{let e;h[38]!==D||h[39]!==z||h[40]!==x||h[41]!==P||h[42]!==j?(e=(0,a.jsx)(S7,{accept:D,assetSources:z,directUploads:x,onSelectFiles:P,readOnly:j,"data-testid":"file-input-upload-drop-down-menu-button",renderAsMenuGroup:!0}),h[38]=D,h[39]=z,h[40]=x,h[41]=P,h[42]=j,h[43]=e):e=h[43],c=e}}let V=c;return $?(h[44]===Symbol.for("react.memo_cache_sentinel")?(u=(0,a.jsx)(Tm,{}),h[44]=u):u=h[44],h[45]!==O||h[46]!==g||h[47]!==I||h[48]!==j||h[49]!==_||h[50]!==V||h[51]!==S?(p=e=>{let t,n,{originalFilename:r,extension:i,url:o,size:l}=e,s=r||`download.${i}`;return(0,e3.ql)(S)&&(n=`${o}?dl`,t=o),(0,a.jsx)(Tp,{size:l,originalFilename:s,muted:!j,onMenuOpen:E,isMenuOpen:I,setMenuButtonElement:_,children:(0,a.jsx)(Ts,{browse:O,upload:V,onReset:g,downloadUrl:n,copyUrl:t,readOnly:j})})},h[45]=O,h[46]=g,h[47]=I,h[48]=j,h[49]=_,h[50]=V,h[51]=S,h[52]=p):p=h[52],h[53]!==$||h[54]!==v||h[55]!==p?(m=(0,a.jsx)(Tl,{reference:$,observeAsset:v,waitPlaceholder:u,children:p}),h[53]=$,h[54]=v,h[55]=p,h[56]=m):m=h[56],m):null}function Tf(e){return!!e.Uploader}function Tg(e){let t,n,r,i,l,s,d,c,p,m=(0,o.c)(20),{onClearValue:h}=e,{t:f}=iJ();return m[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(u.az,{children:(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.sAQ,{})})}),m[0]=t):t=m[0],m[1]!==f?(n=f("inputs.file.invalid-file-warning.title"),m[1]=f,m[2]=n):n=m[2],m[3]!==n?(r=(0,a.jsx)(u.EY,{size:1,weight:"medium",children:n}),m[3]=n,m[4]=r):r=m[4],m[5]!==f?(i=f("inputs.file.invalid-file-warning.description"),m[5]=f,m[6]=i):i=m[6],m[7]!==i?(l=(0,a.jsx)(u.EY,{size:1,children:i}),m[7]=i,m[8]=l):l=m[8],m[9]!==r||m[10]!==l?(s=(0,a.jsxs)(u.so,{gap:4,marginBottom:4,children:[t,(0,a.jsxs)(u.BJ,{space:3,children:[r,l]})]}),m[9]=r,m[10]=l,m[11]=s):s=m[11],m[12]!==f?(d=f("inputs.file.invalid-file-warning.reset-button.text"),m[12]=f,m[13]=d):d=m[13],m[14]!==h||m[15]!==d?(c=(0,a.jsx)(y.$n,{icon:C.NAP,mode:"ghost",onClick:h,text:d,width:"fill"}),m[14]=h,m[15]=d,m[16]=c):c=m[16],m[17]!==s||m[18]!==c?(p=(0,a.jsxs)(u.Zp,{tone:"caution",padding:4,border:!0,radius:2,children:[s,c]}),m[17]=s,m[18]=c,m[19]=p):p=m[19],p}let TC=(0,g.I4)(u.Zp)`
1515  position: absolute;
1516  top: 0;
1517  left: 0;
1518  width: 100%;
1519  height: 100%;
1520`,Ty=(0,g.I4)(u.so)`
1521  height: 100%;
1522`,Tx=["asset"];function Tb(e){let t,n,r,i,l,d,c,p,m,h,f,g,C,y,x,b=(0,o.c)(76),{assetSources:v,changed:j,clearField:w,directUploads:_,elementProps:k,hoveringFiles:S,isStale:T,isUploading:I,onCancelUpload:E,onClearUploadStatus:$,onSelectAssets:A,onSelectFiles:D,onStale:z,path:M,readOnly:P,resolveUploader:R,schemaType:O,setHoveringFiles:V,value:L}=e,{t:F}=iJ();b[0]!==M?(n=M.concat(Tx),b[0]=M,b[1]=n):n=b[1],t=n;let[B,N]=(0,s.useState)(null),[Y,H]=(0,s.useState)(!1);b[2]===Symbol.for("react.memo_cache_sentinel")?(r=[],b[2]=r):r=b[2];let[Z,U]=(0,s.useState)(r),q=k.ref?.current,J=v.filter(Tw).length>1;b[3]!==k?(i=e=>{e.currentTarget===e.target&&e.currentTarget===k.ref?.current&&k.onFocus(e)},b[3]=k,b[4]=i):i=b[4];let W=i;b[5]!==_||b[6]!==J||b[7]!==R||b[8]!==O||b[9]!==V?(l=e=>{V(e.filter(Tj));let t=!0,n=e.filter(e=>R?.(O,e)),r=e.length-n.length;e.length>0&&(r>0||!1===_)&&(t=!1),J&&t&&H(!0)},b[5]=_,b[6]=J,b[7]=R,b[8]=O,b[9]=V,b[10]=l):l=b[10];let K=l;b[11]!==V?(d=()=>{V([]),H(!1)},b[11]=V,b[12]=d):d=b[12];let G=d;b[13]!==_||b[14]!==G||b[15]!==S.length||b[16]!==D||b[17]!==P||b[18]!==V?(c=(e,t)=>{_&&!P?(V([]),D(e,t)):S.length>0&&G()},b[13]=_,b[14]=G,b[15]=S.length,b[16]=D,b[17]=P,b[18]=V,b[19]=c):c=b[19];let X=c;b[20]!==_||b[21]!==S||b[22]!==P||b[23]!==R||b[24]!==O||b[25]!==L?._upload||b[26]!==L?.asset?(p=()=>{let e=S.filter(e=>R?.(O,e)),t=S.length-e.length;return S.length>0&&(t>0||!1===_)?"critical":L?._upload||P||!(S.length>0)?L?._upload&&L?.asset&&P?"transparent":"default":"primary"},b[20]=_,b[21]=S,b[22]=P,b[23]=R,b[24]=O,b[25]=L?._upload,b[26]=L?.asset,b[27]=p):p=b[27];let Q=p,ee=!!(L?._upload||L?.asset);b[28]!==Z||b[29]!==D?(m=e=>{N(e),e&&Z.length>0&&(H(!1),D(e,Z),U([]),N(null))},b[28]=Z,b[29]=D,b[30]=m):m=b[30];let et=m;b[31]!==B||b[32]!==v||b[33]!==_||b[34]!==J||b[35]!==D||b[36]!==R||b[37]!==O?(h=e=>{let t=e.filter(e=>R?.(O,e));if(!(e.length-t.length>0||!1===_)&&0!==e.length)if(J){if(B){D(B,e),H(!1),N(null);return}H(!0),U(e)}else{let t=v.filter(Tv)[0];t&&D(t,e),H(!1),N(null)}},b[31]=B,b[32]=v,b[33]=_,b[34]=J,b[35]=D,b[36]=R,b[37]=O,b[38]=h):h=b[38];let en=h;b[39]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{H(!1),N(null)},b[39]=f):f=b[39];let er=f;if(L&&"u">typeof L.asset&&!L?._upload&&!(0,e3.ql)(L)){let e;return b[40]!==w?(e=(0,a.jsx)(Tg,{onClearValue:w}),b[40]=w,b[41]=e):e=b[41],e}b[42]!==T||b[43]!==$?(g=T&&(0,a.jsx)(u.az,{marginBottom:2,children:(0,a.jsx)(Ta,{onClearStale:$})}),b[42]=T,b[43]=$,b[44]=g):g=b[44];let ei=!!e.focused;return b[45]!==v||b[46]!==_||b[47]!==k||b[48]!==q||b[49]!==Q||b[50]!==W||b[51]!==G||b[52]!==K||b[53]!==en||b[54]!==X||b[55]!==et||b[56]!==ee||b[57]!==S.length||b[58]!==I||b[59]!==E||b[60]!==A||b[61]!==z||b[62]!==e||b[63]!==P||b[64]!==Y||b[65]!==F||b[66]!==L?(C=L?._upload?(0,a.jsx)(Ti,{uploadState:L._upload,onCancel:I&&E?E:void 0,onStale:z}):(0,a.jsx)(k7,{...k,onFocus:W,tabIndex:0,disabled:P||!1===_,onFiles:en,onFilesOver:K,onFilesOut:G,tone:Q(),$border:ee||S.length>0,style:{padding:1}
1522,sizing:"border",radius:2,children:(0,a.jsxs)("div",{style:{position:"relative"},children:[Y&&(0,a.jsx)(k8,{assetSources:v,onSelectAssetSource:et,referenceElement:q,onClose:er,text:F("inputs.files.common.placeholder.select-asset-source-upload-destination",{context:"file"})}),!L?.asset&&(0,a.jsx)(T_,{...e,onSelectFiles:X}),L?.asset&&S.length>0?(0,a.jsx)(Tk,{...e,tone:Q(),onSelectFiles:X}):null,!L?._upload&&L?.asset&&(0,a.jsx)(Th,{...e,onSelectAssets:A})]})}),b[45]=v,b[46]=_,b[47]=k,b[48]=q,b[49]=Q,b[50]=W,b[51]=G,b[52]=K,b[53]=en,b[54]=X,b[55]=et,b[56]=ee,b[57]=S.length,b[58]=I,b[59]=E,b[60]=A,b[61]=z,b[62]=e,b[63]=P,b[64]=Y,b[65]=F,b[66]=L,b[67]=C):C=b[67],b[68]!==t||b[69]!==j||b[70]!==ei||b[71]!==C?(y=(0,a.jsx)(El,{path:t,hasFocus:ei,isChanged:j,children:C}),b[68]=t,b[69]=j,b[70]=ei,b[71]=C,b[72]=y):y=b[72],b[73]!==g||b[74]!==y?(x=(0,a.jsxs)(a.Fragment,{children:[g,y]}),b[73]=g,b[74]=y,b[75]=x):x=b[75],x}function Tv(e){return e.Uploader}function Tj(e){return"string"!==e.kind}function Tw(e){return!!e.Uploader}function T_(e){let t,n,r,i,l,s,d=(0,o.c)(27),{assetSources:c,directUploads:p,hoveringFiles:m,onSelectFiles:h,readOnly:f,resolveUploader:g,schemaType:C}=e;if(d[0]!==m||d[1]!==g||d[2]!==C){let e;d[4]!==g||d[5]!==C?(e=e=>g?.(C,e),d[4]=g,d[5]=C,d[6]=e):e=d[6],t=m.filter(e),d[0]=m,d[1]=g,d[2]=C,d[3]=t}else t=d[3];let y=t,x=m.length-y.length;d[7]!==C?(n=ni(C,"options.accept",""),d[7]=C,d[8]=n):n=d[8];let b=n,v=f?"transparent":"inherit";return d[9]!==m.length?(r=0===m.length?{borderStyle:"dashed"}:{borderStyle:"dashed",borderColor:"transparent"},d[9]=m.length,d[10]=r):r=d[10],d[11]!==e?(i=(0,a.jsx)(To,{...e}),d[11]=e,d[12]=i):i=d[12],d[13]!==b||d[14]!==y||d[15]!==c||d[16]!==p||d[17]!==m||d[18]!==h||d[19]!==f||d[20]!==x||d[21]!==i?(l=(0,a.jsx)(S8,{accept:b,acceptedFiles:y,assetSources:c,browse:i,directUploads:p,hoveringFiles:m,onUpload:h,readOnly:f,rejectedFilesCount:x,type:"file"}),d[13]=b,d[14]=y,d[15]=c,d[16]=p,d[17]=m,d[18]=h,d[19]=f,d[20]=x,d[21]=i,d[22]=l):l=d[22],d[23]!==v||d[24]!==r||d[25]!==l?(s=(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(u.Zp,{tone:v,border:!0,paddingX:3,paddingY:2,radius:2,style:r,children:l})}),d[23]=v,d[24]=r,d[25]=l,d[26]=s):s=d[26],s}function Tk(e){let t,n,r,i=(0,o.c)(16),{directUploads:l,schemaType:s,readOnly:d,resolveUploader:c,hoveringFiles:u,tone
1522:p}=e;if(i[0]!==u||i[1]!==c||i[2]!==s){let e;i[4]!==c||i[5]!==s?(e=e=>c?.(s,e),i[4]=c,i[5]=s,i[6]=e):e=i[6],t=u.filter(e),i[0]=u,i[1]=c,i[2]=s,i[3]=t}else t=i[3];let m=t,h=u.length-m.length;return i[7]!==m||i[8]!==l||i[9]!==u||i[10]!==d||i[11]!==h?(n=(0,a.jsx)(Ty,{align:"center",justify:"center",gap:2,flex:1,children:(0,a.jsx)(k0,{directUploads:l,readOnly:d,hoveringFiles:u,acceptedFiles:m,rejectedFilesCount:h,type:"file"})}),i[7]=m,i[8]=l,i[9]=u,i[10]=d,i[11]=h,i[12]=n):n=i[12],i[13]!==n||i[14]!==p?(r=(0,a.jsx)(TC,{radius:2,tone:p,children:n}),i[13]=n,i[14]=p,i[15]=r):r=i[15],r}function TS(e){let t,n,r,i,l,s=(0,o.c)(32),{isUploading:d,observeAsset:c,schemaType:u,selectedAssetSource:p,setSelectedAssetSource:m,onSelectAssets:h,value:f,uploader:g}=e,{t:C}=iJ();s[0]!==u?(t=ni(u,"options.accept",""),s[0]=u,s[1]=t):t=s[1];let y=t;s[2]!==m?(n=()=>{m(null)},s[2]=m,s[3]=n):n=s[3];let x=n;if(!p)return null;let b=p.component;if(f&&f.asset){let e,t,n;return s[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(Tm,{}),s[4]=e):e=s[4],s[5]!==b||s[6]!==y||s[7]!==x||s[8]!==d||s[9]!==h||s[10]!==u||s[11]!==p||s[12]!==C||s[13]!==g?(t=e=>(0,a.jsx)(b,{accept:y,action:d?"upload":"select",assetSource:p,assetType:"file",dialogHeaderTitle:C("inputs.file.dialog.title"),onClose:x,onSelect:h,schemaType:u,selectedAssets:[e],selectionType:"single",uploader:g}),s[5]=b,s[6]=y,s[7]=x,s[8]=d,s[9]=h,s[10]=u,s[11]=p,s[12]=C,s[13]=g,s[14]=t):t=s[14],s[15]!==c||s[16]!==t||s[17]!==f.asset?(n=(0,a.jsx)(Tl,{observeAsset:c,reference:f.asset,waitPlaceholder:e,children:t}),s[15]=c,s[16]=t,s[17]=f.asset,s[18]=n):n=s[18],n}let v=d?"upload":"select";return s[19]!==C?(r=C("inputs.file.dialog.title"),s[19]=C,s[20]=r):r=s[20],s[21]===Symbol.for("react.memo_cache_sentinel")?(i=[],s[21]=i):i=s[21],s[22]!==b||s[23]!==y||s[24]!==x||s[25]!==h||s[26]!==u||s[27]!==p||s[28]!==v||s[29]!==r||s[30]!==g?(l=(0,a.jsx)(b,{accept:y,action:v,assetSource:p,assetType:"file",dialogHeaderTitle:r,onClose:x,onSelect:h,schemaType:u,selectedAssets:i,selectionType:"single",uploader:g}),s[22]=b,s[23]=y,s[24]=x,s[25]=h,s[26]=u,s[27]=p,s[28]=v,s[29]=r,s[30]=g,s[31]=l):l=s[31],l}function TT({children:e}){return e}function TI(e){let{client:t,members:n,onChange:r,renderAnnotation:i,renderBlock:o,renderField:l,renderInlineBlock:d,renderInput:c,renderItem:u,renderPreview:m,schemaType:h,value:f}=e,{push:g}=(0,p.dj)(),{t:C}=iJ(),[y,x]=(0,s.useState)([]),[b,v]=(0,s.useState)(!1),[j,w]=(0,s.useState)(!1),[_,k]=(0,s.useState)(!1),[S,T]=(0,s.useState)(null),I=(0,s.useRef)(null),E=(0,s.useRef)(null),$=(0,s.useCallback)(e=>{e&&(I.current=e)},[I]),A=(0,s.useRef)(null),D=(0,s.useCallback)(()=>{r([s3(["asset"]),s3(["media"])])},[r]),z=(0,s.useCallback)(()=>{f?._upload&&r(s4.from([s3(["_upload"])]))},[r,f?._upload]),M=(0,s.useCallback)(()=>{v(!0)},[]),P=(0,s.useCallback)(()=>{A.current&&(A.current?.unsubscribe(),z())},[z]),R=(0,s.useCallback)((e,n,i={})=>{let{source:a}=i,o={metadata:ni(h,"options.metadata"),storeOriginalFilename:ni(h,"options.storeOriginalFilename"),source:a};P(),w(!0),r(s4.from([s5({_type:h.name})])),A.current=e.upload(t,n,h,o).subscribe({next:e=>{e.patches&&r(s4.from(e.patches))},error:e=>{console.error(e),g({status:"error",description:C("inputs.file.upload-failed.description"),title:C("inputs.file.upload-failed.title")}),z()},complete:()=>{w(!1)}})},[P,z,t,r,g,h,C]),O=(0,s.useCallback)(e=>{0!==e.length&&(k2({assetsFromSource:e,onChange:r,type:h,resolveUploader:bS,uploadWith:R}),T(null),w(!1))},[r,h,R]),V=(0,s.useCallback)((e,t)=>{if(0!==t.length&&(T(e),e.Uploader)){let n=new e.Uploader;E.current?.unsubscribe();try{E.current={unsubscribe:n.subscribe(e=>{switch(e.type){case"progress":r(s4.from([s7(Math.max(2,e.progress),[bf,"progress"]),s7(new Date().toISOString(),[bf,"updatedAt"])]));break;case"error":e.files.forEach(e=>{console.error(e.error)}),g({status:"error",description:C("asset-sources.common.uploader.upload-failed.description"),title:C("asset-sources.common.uploader.upload-failed.title")});break;case"all-complete":r(s4.from([s3([bf])]))}}),uploader:n},w(!0),r(s4.from(by(t[0]))),n.upload(t,{schemaType:h,onChange:r})}catch(e){r(s4.from([s3([bf])])),w(!1),T(null),E.current?.unsubscribe(),g({status:"error",description:C("asset-sources.common.uploader.upload-failed.description"),title:C("asset-sources.common.uploader.upload-failed.title")}),console.error(e)}}},[r,g,h,C]);(0,s.useEffect)(()=>()=>{E.current?.uploader?.abort(),E.current?.unsubscribe()},[]);let L=(0,s.useCallback)(()=>{E.current?.uploader?.abort()},[]),F=(0,s.useCallback)(()=>(0,a.jsx)(Tb,{...e,browseButtonElementRef:I,clearField:D,hoveringFiles:y,isBrowseMenuOpen:_,isStale:b,isUploading:j,onCancelUpload:L,onClearUploadStatus:z,onSelectAssets:O,onSelectFiles:V,onStale:M,selectedAssetSource:S,setBrowseButtonElement:$,setHoveringFiles:x,setIsBrowseMenuOpen:k,setIsUploading:w,setSelectedAssetSource:T}),[L,D,z,O,V,M,y,_,b,j,e,S,$]);return(0,a.jsxs)(a.Fragment,{children:[n.map(e=>"field"===e.kind?(0,a.jsx)(bz,{member:e,renderAnnotation:i,renderBlock:o,renderField:"asset"===e.name?TT:l,renderInlineBlock:d,renderInput:"asset"===e.name?F:c,renderItem:u,renderPreview:m},e.key):"fieldSet"===e.kind?(0,a.jsx)(b5,{member:e,renderAnnotation:i,renderBlock:o,renderField:l,renderInlineBlock:d,renderInput:c,renderItem:u,renderPreview:m},e.key):"error"===e.kind?(0,a.jsx)(b2,{member:e},e.key):(0,a.jsx)(a.Fragment,{children:C("inputs.file.error.unknown-member-kind",{kind:e.kind})})),S&&(0,a.jsx)(TS,{...e,browseButtonElementRef:I,clearField:D,hoveringFiles:y,isBrowseMenuOpen:_,isStale:b,isUploading:j,onClearUploadStatus:z,onStale:M,onSelectAssets:O,onSelectFiles:V,selectedAssetSource:S,setBrowseButtonElement:$,setHoveringFiles:x,setIsBrowseMenuOpen:k,setIsUploading:w,setSelectedAssetSource:T,uploader:E.current?.uploader})]})}function TE({value:e,imageUrlBuilder:t}){let n=(0,t5.J)(),r=(0,s.useMemo)(()=>e&&(0,e3.LG)(e)?t.width(2e3).fit("max").image(e).dpr(n).auto("format").url():void 0,[n,t,e]),i=(0,s.useMemo)(()=>r?(0,e3.vX)(r):{width:0,height:0,aspectRatio:0},[r]),a=(0,s.useMemo)(()=>({"--image-width":i.width,"--image-height":i.height}),[i.width,i.height]);return{url:r,dimensions:i,customProperties:a}}let T$=["asset"];function TA(e){return e.Uploader}function TD(e){return!!e.Uploader}let Tz=(0,s.memo)(function(e){let t,n,r,i,l,d,c,p,m,h,f,g,C,y=(0,o.c)(58),{assetSources:x,directUploads:b,elementProps:v,handleClearUploadState:j,handleFileTargetFocus:w,onSelectFiles:_,hoveringFiles:k,inputProps:S,isStale:T,readOnly:I,renderAssetMenu:E,renderPreview:$,renderUploadPlaceholder:A,renderUploadState:D,schemaType:z,setHoveringFiles:M,tone:P,value:R,imageUrlBuilder:O}=e,V=v.ref?.current,{t:L}=iJ(),F=!!(R?._upload||R?.asset);y[0]!==S.path?(n=S.path.concat(T$),y[0]=S.path,y[1]=n):n=y[1],t=n,y[2]!==O||y[3]!==R?(r={value:R,imageUrlBuilder:O},y[2]=O,y[3]=R,y[4]=r):r=y[4];let{customProperties:B}
1522=TE(r),[N,Y]=(0,s.useState)(null),[H,Z]=(0,s.useState)(!1);y[5]===Symbol.for("react.memo_cache_sentinel")?(i=[],y[5]=i):i=y[5];let[U,q]=(0,s.useState)(i),J=x.filter(TD).length>1;y[6]!==M?(l=()=>{M([]),Z(!1)},y[6]=M,y[7]=l):l=y[7];let W=l;y[8]!==b||y[9]!==J||y[10]!==z||y[11]!==M?(d=e=>{M(e);let t=!0,n=e.filter(e=>bS?.(z,e)),r=e.length-n.length;e.length>0&&(r>0||!1===b)&&(t=!1),J&&t&&Z(!0)},y[8]=b,y[9]=J,y[10]=z,y[11]=M,y[12]=d):d=y[12];let K=d;y[13]!==N||y[14]!==x||y[15]!==b||y[16]!==W||y[17]!==J||y[18]!==_||y[19]!==I||y[20]!==z?(c=e=>{if(!1===b||I)return void W();let t=e.filter(e=>bS?.(z,e));if(!(e.length-t.length>0)&&0!==e.length)if(J){if(N){_(N,e),Z(!1),Y(null);return}Z(!0),q(e)}else{let t=x.filter(TA)[0];t&&_(t,e),Z(!1),Y(null)}},y[13]=N,y[14]=x,y[15]=b,y[16]=W,y[17]=J,y[18]=_,y[19]=I,y[20]=z,y[21]=c):c=y[21];let G=c;y[22]!==U||y[23]!==_?(p=e=>{Y(e),e&&U.length>0&&(Z(!1),_(e,U),q([]),Y(null))},y[22]=U,y[23]=_,y[24]=p):p=y[24];let X=p;y[25]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{Z(!1),Y(null)},y[25]=m):m=y[25];let Q=m;y[26]!==j||y[27]!==T?(h=T&&(0,a.jsx)(u.az,{marginBottom:2,children:(0,a.jsx)(Ta,{onClearStale:j})}),y[26]=j,y[27]=T,y[28]=h):h=y[28];let ee=!!S.focused;return y[29]!==x||y[30]!==v||y[31]!==V||y[32]!==w||y[33]!==W||y[34]!==K||y[35]!==G||y[36]!==X||y[37]!==F||y[38]!==k||y[39]!==I||y[40]!==E||y[41]!==$||y[42]!==A||y[43]!==D||y[44]!==H||y[45]!==L||y[46]!==P||y[47]!==R?(f=R?._upload?D(R._upload):(0,a.jsxs)(k7,{...v,onFocus:w,tabIndex:0,disabled:!!I,onFiles:G,onFilesOver:K,onFilesOut:W,tone:P,$border:F||k.length>0,sizing:"border",radius:2,children:[H&&(0,a.jsx)(k8,{assetSources:x,onSelectAssetSource:X,referenceElement:V,onClose:Q,text:L("inputs.files.common.placeholder.select-asset-source-upload-destination",{context:"image"})}),!R?.asset&&A(),!R?._upload&&R?.asset&&(0,a.jsxs)("div",{style:{position:"relative"},children:[$(),E()]})]}),y[29]=x,y[30]=v,y[31]=V,y[32]=w,y[33]=W,y[34]=K,y[35]=G,y[36]=X,y[37]=F,y[38]=k,y[39]=I,y[40]=E,y[41]=$,y[42]=A,y[43]=D,y[44]=H,y[45]=L,y[46]=P,y[47]=R,y[48]=f):f=y[48],y[49]!==S.changed||y[50]!==t||y[51]!==ee||y[52]!==f?(g=(0,a.jsx)(El,{path:t,hasFocus:ee,isChanged:S.changed,children:f}),y[49]=S.changed,y[50]=t,y[51]=ee,y[52]=f,y[53]=g):g=y[53],y[54]!==B||y[55]!==g||y[56]!==h?(C=(0,a.jsxs)("div",{style:B,children:[h,g]}),y[54]=B,y[55]=g,y[56]=h,y[57]=C):C=y[57],C}),TM=(0,g.I4)(u.cV)`
1523  position: absolute;
1524  top: 0;
1525  right: 0;
1526`,TP=()=>{let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(TM,{padding:2,children:(0,a.jsx)(p.EA,{style:{width:"25px",height:"25px"},animated:!0})}),t[0]=e):e=t[0],e};function TR(e){let t,n,r,i,l,d,c,p,m,h,f,g,x,b=(0,o.c)(38),{onEdit:v,children:j,showEdit:w,setHotspotButtonElement:_,setMenuButtonElement:k,onMenuOpen:S,isMenuOpen:T}=e,[I,E]=(0,s.useState)(null),[$,A]=(0,s.useState)(null);b[0]!==T||b[1]!==S?(t=()=>S(!T),b[0]=T,b[1]=S,b[2]=t):t=b[2];let D=t;b[3]!==$||b[4]!==T||b[5]!==S?(n=e=>{T&&("Escape"===e.key||"Tab"===e.key)&&(S(!1),$?.focus())},b[3]=$,b[4]=T,b[5]=S,b[6]=n):n=b[6],(0,u.Pm)(n),b[7]!==$||b[8]!==S?(r=e=>{$?.contains(e.target)||S(!1)},b[7]=$,b[8]=S,b[9]=r):r=b[9],b[10]!==I?(i=()=>[I],b[10]=I,b[11]=i):i=b[11],(0,u.PR)(r,i),b[12]!==k?(l=e=>{k(e),A(e)},b[12]=k,b[13]=l):l=b[13];let z=l;b[14]!==T||b[15]!==I?(d=()=>{T&&I?.focus()},c=[T,I],b[14]=T,b[15]=I,b[16]=d,b[17]=c):(d=b[16],c=b[17]),(0,s.useEffect)(d,c);let{t:M}=iJ();return b[18]!==v||b[19]!==_||b[20]!==w||b[21]!==M?(p=w&&(0,a.jsx)(y.$n,{"aria-label":M("inputs.image.actions-menu.edit-details.aria-label"),"data-testid":"options-menu-edit-details",icon:C.K1E,mode:"ghost",onClick:v,ref:_,tooltipProps:{content:M("inputs.image.actions-menu.crop-image-tooltip")}}),b[18]=v,b[19]=_,b[20]=w,b[21]=M,b[22]=p):p=b[22],b[23]!==j?(m=(0,a.jsx)(u.W1,{ref:E,children:j}),b[23]=j,b[24]=m):m=b[24],b[25]!==M?(h=M("inputs.image.actions-menu.options.aria-label"),b[25]=M,b[26]=h):h=b[26],b[27]!==D||b[28]!==z||b[29]!==h?(f=(0,a.jsx)(rU,{"aria-label":h,"data-testid":"options-menu-button",mode:"ghost",onClick:D,ref:z}),b[27]=D,b[28]=z,b[29]=h,b[30]=f):f=b[30],b[31]!==T||b[32]!==f||b[33]!==m?(g=(0,a.jsx)(y.AM,{id:"image-actions-menu",content:m,portal:!0,open:T,constrainSize:!0,children:f}),b[31]=T,b[32]=f,b[33]=m,b[34]=g):g=b[34],b[35]!==g||b[36]!==p?(x=(0,a.jsx)(y.vE,{children:(0,a.jsxs)(TM,{"data-buttons":!0,space:1,padding:2,children:[p,g]})}),b[35]=g,b[36]=p,b[37]=x):x=b[37],x}let TO=(0,s.memo)(function(e){let t,n,r,i,l=(0,o.c)(38),{assetSources:s,directUploads:d,handleOpenDialog:c,handleRemoveButtonClick:u,onSelectFiles:p,handleSelectImageFromAssetSource:m,imageUrlBuilder:h,isImageToolEnabled:f,isMenuOpen:g,observeAsset:x,readOnly:b,schemaType:v,setHotspotButtonElement:j,setMenuButtonElement:w,setMenuOpen:_,value:k}=e,{t:S}=iJ();l[0]!==v?(n=ni(v,"options.accept","image/*"),l[0]=v,l[1]=n):n=l[1],t=n;let T=k?.asset,I=k&&T&&f;if(!T)return null;l[2]!==s||l[3]!==m||l[4]!==b||l[5]!==_||l[6]!==S?(r=s&&0===s.length?null:(0,a.jsx)(y.Dr,{icon:C.WIv,text:S("inputs.image.browse-menu.text"),onClick:()=>{_(!1),m(s[0])},disabled:b,"data-testid":"file-input-browse-button"}),l[2]=s,l[3]=m,l[4]=b,l[5]=_,l[6]=S,l[7]=r):r=l[7];let E=r;if(s&&s.length>1){let e;if(l[8]!==s||l[9]!==m||l[10]!==b||l[11]!==_||l[12]!==S){let t;l[14]!==m||l[15]!==b||l[16]!==_||l[17]!==S?(t=e=>(0,a.jsx)(y.Dr,{text:(e.i18nKey?S(e.i18nKey):e.title)||eJ(e.name),onClick:()=>{_(!1),m(e)},icon:e.icon||C.xfq,"data-testid":`file-input-browse-button-${e.name}`,disabled:b},e.name),l[14]=m,l[15]=b,l[16]=_,l[17]=S,l[18]=t):t=l[18],e=s.map(t),l[8]=s,l[9]=m,l[10]=b,l[11]=_,l[12]=S,l[13]=e}else e=l[13];E=e}let $=!!I;return l[19]!==t||l[20]!==T||l[21]!==s||l[22]!==E||l[23]!==d||l[24]!==c||l[25]!==u||l[26]!==
1526h||l[27]!==g||l[28]!==x||l[29]!==p||l[30]!==b||l[31]!==v||l[32]!==j||l[33]!==w||l[34]!==_||l[35]!==$||l[36]!==k?(i=(0,a.jsx)(TL,{accept:t,assetSources:s,browseMenuItem:E,directUploads:d,handleOpenDialog:c,handleRemoveButtonClick:u,onSelectFiles:p,imageUrlBuilder:h,isMenuOpen:g,observeAsset:x,readOnly:b,reference:T,schemaType:v,setHotspotButtonElement:j,setMenuButtonElement:w,setMenuOpen:_,showAdvancedEditButton:$,value:k}),l[19]=t,l[20]=T,l[21]=s,l[22]=E,l[23]=d,l[24]=c,l[25]=u,l[26]=h,l[27]=g,l[28]=x,l[29]=p,l[30]=b,l[31]=v,l[32]=j,l[33]=w,l[34]=_,l[35]=$,l[36]=k,l[37]=i):i=l[37],i});function TV(e){return!!e.Uploader}let TL=(0,s.memo)(function(e){let t,n,r,i,l,s,d,c,u,p,m=(0,o.c)(47),{accept:h,assetSources:f,browseMenuItem:g,directUploads:y,handleOpenDialog:x,handleRemoveButtonClick:b,onSelectFiles:v,imageUrlBuilder:j,isMenuOpen:w,observeAsset:_,readOnly:k,reference:S,setHotspotButtonElement:T,setMenuButtonElement:I,setMenuOpen:E,showAdvancedEditButton:$,value:A}=e,{t:D}=iJ(),z=S?._ref;m[0]!==z||m[1]!==_?(n=_(z),m[0]=z,m[1]=_,m[2]=n):n=m[2],t=n;let M=(0,eH.J)(t);m[3]!==f?(r=f.filter(TV),m[3]=f,m[4]=r):r=m[4];let P=r;m[5]!==v?(i=(e,t)=>{v(e,t)},m[5]=v,m[6]=i):i=m[6];let R=i;m[7]!==P[0]||m[8]!==R?(l=e=>{R(P[0],e)},m[7]=P[0],m[8]=R,m[9]=l):l=m[9];let O=l;if(!z||!M){let e;return m[10]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(TP,{}),m[10]=e):e=m[10],e}let{_id:V,originalFilename:L,extension:F}=M;if((0,e3.LG)(A)){let e,t,n=L||`download.${F}`;m[11]!==V||m[12]!==n||m[13]!==j?(e=j.image(V).forceDownload(n).url(),m[11]=V,m[12]=n,m[13]=j,m[14]=e):e=m[14],d=e,m[15]!==V||m[16]!==j?(t=j.image(V).url(),m[15]=V,m[16]=j,m[17]=t):t=m[17],s=t}switch(P.length){case 0:c=null;break;case 1:{let e,t,n=P[0].name;m[18]!==D?(e=D("inputs.files.common.actions-menu.upload.label"),m[18]=D,m[19]=e):e=m[19];let r=k||!1===y;m[20]!==h||m[21]!==P[0].name||m[22]!==O||m[23]!==e||m[24]!==r?(t=(0,a.jsx)(Tc,{icon:C.JMY,onSelect:O,accept:h,"data-asset-source-name":n,text:e,"data-testid":"file-input-upload-button",disabled:r}),m[20]=h,m[21]=P[0].name,m[22]=O,m[23]=e,m[24]=r,m[25]=t):t=m[25],c=t;break}default:{let e;m[26]!==h||m[27]!==P||m[28]!==y||m[29]!==R||m[30]!==k?(e=(0,a.jsx)(S7,{accept:h,assetSources:P,directUploads:y,onSelectFiles:R,readOnly:k,renderAsMenuGroup:!0}),m[26]=h,m[27]=P,m[28]=y,m[29]=R,m[30]=k,m[31]=e):e=m[31],c=e}}let B=!!$;return m[32]!==g||m[33]!==s||m[34]!==d||m[35]!==b||m[36]!==k||m[37]!==c?(u=(0,a.jsx)(Ts,{upload:c,browse:g,onReset:b,downloadUrl:d,copyUrl:s,readOnly:k}),m[32]=g,m[33]=s,m[34]=d,m[35]=b,m[36]=k,m[37]=c,m[38]=u):u=m[38],m[39]!==x||m[40]!==w||m[41]!==T||m[42]!==I||m[43]!==E||m[44]!==B||m[45]!==u?(p=(0,a.jsx)(TR,{isMenuOpen:w,onEdit:x,onMenuOpen:E,setHotspotButtonElement:T,setMenuButtonElement:I,showEdit:B,children:u}),m[39]=x,m[40]=w,m[41]=T,m[42]=I,m[43]=E,m[44]=B,m[45]=u,m[46]=p):p=m[46],p}),TF=(0,s.memo)(function(e){let t,n,r,i,l=(0,o.c)(25),{handleAssetSourceClosed:s,handleSelectAssetFromSource:d,isUploading:c,observeAsset:u,schemaType:p,selectedAssetSource:m,uploader:h,value:f}=e;if(l[0]!==p?(n=ni(p,"options.accept","image/*"),l[0]=p,l[1]=n):n=l[1],t=n,!m)return null;let{component:g}=m;if(f&&f.asset){let e,n;return l[2]!==g||l[3]!==t||l[4]!==s||l[5]!==d||l[6]!==c||l[7]!==p||l[8]!==m||l[9]!==h?(e=e=>(0,a.jsx)(g,{accept:t,action:c?"upload":"select",assetSource:m,assetType:"image",onClose:s,onSelect:d,schemaType:p,selectedAssets:[e],selectionType:"single",uploader:h}),l[2]=g,l[3]=t,l[4]=s,l[5]=d,l[6]=c,l[7]=p,l[8]=m,l[9]=h,l[10]=e):e=l[10],l[11]!==u||l[12]!==e||l[13]!==f.asset?(n=(0,a.jsx)(Tl,{observeAsset:u,reference:f.asset,children:e}),l[11]=u,l[12]=e,l[13]=f.asset,l[14]=n):n=l[14],n}let C=c?"upload":"select";return l[15]===Symbol.for("react.memo_cache_sentinel")?(r=[],l[15]=r):r=l[15],l[16]!==g||l[17]!==t||l[18]!==s||l[19]!==d||l[20]!==p||l[21]!==m||l[22]!==C||l[23]!==h?(i=(0,a.jsx)(g,{accept:t,action:C,assetSource:m,assetType:"image",onClose:s,onSelect:d,schemaType:p,selectedAssets:r,selectionType:"single",uploader:h}),l[16]=g,l[17]=t,l[18]=s,l[19]=d,l[20]=p,l[21]=m,l[22]=C,l[23]=h,l[24]=i):i=l[24],i}),TB={portal:!0},TN=(0,s.memo)((0,s.forwardRef)(function(e,t){let n,r,i,l=(0,o.c)(32),{assetSources:s,readOnly:d,id:c,setMenuOpen:p,handleSelectImageFromAssetSource:m,schemaType:h}=e,f=h.options?.sources,{t:g}=iJ();if(f?.length===0||s&&0===s.length)return null;if(s&&s.length>1&&!d){let e,n,r,i,o,h=`${c}_assetImageButton`;if(l[0]!==g?(e=g("inputs.image.browse-menu.text"),l[0]=g,l[1]=e):e=l[1],l[2]!==e?(n=(0,a.jsx)(y.$n,{"data-testid":"file-input-multi-browse-button",icon:C.WIv,iconRight:C.D3D,mode:"bleed",text:e}
1526),l[2]=e,l[3]=n):n=l[3],l[4]!==s||l[5]!==m||l[6]!==d||l[7]!==p||l[8]!==g){let e;l[10]!==m||l[11]!==d||l[12]!==p||l[13]!==g?(e=e=>(0,a.jsx)(y.Dr,{text:(e.i18nKey?g(e.i18nKey):e.title)||eJ(e.name),onClick:()=>{p(!1),m(e)},icon:e.icon||C.xfq,disabled:d,"data-testid":`file-input-browse-button-${e.name}`},e.name),l[10]=m,l[11]=d,l[12]=p,l[13]=g,l[14]=e):e=l[14],r=s.map(e),l[4]=s,l[5]=m,l[6]=d,l[7]=p,l[8]=g,l[9]=r}else r=l[9];return l[15]!==r?(i=(0,a.jsx)(u.W1,{children:r}),l[15]=r,l[16]=i):i=l[16],l[17]!==t||l[18]!==h||l[19]!==n||l[20]!==i?(o=(0,a.jsx)(y.IU,{id:h,ref:t,button:n,menu:i,popover:TB}),l[17]=t,l[18]=h,l[19]=n,l[20]=i,l[21]=o):o=l[21],o}return l[22]!==g?(n=g("inputs.image.browse-menu.text"),l[22]=g,l[23]=n):n=l[23],l[24]!==s[0]||l[25]!==m||l[26]!==p?(r=()=>{p(!1),m(s[0])},l[24]=s[0],l[25]=m,l[26]=p,l[27]=r):r=l[27],l[28]!==d||l[29]!==n||l[30]!==r?(i=(0,a.jsx)(y.$n,{text:n,icon:C.WIv,mode:"bleed",onClick:r,"data-testid":"file-input-browse-button",disabled:d}),l[28]=d,l[29]=n,l[30]=r,l[31]=i):i=l[31],i})),TY=(0,g.I4)(u.az)`
1527  position: relative;
1528  padding-bottom: calc(${({ratio:e=1.5})=>1/e} * 100%);
1529
1530  & > div {
1531    position: absolute;
1532    top: ${({padding:e=0})=>e}px;
1533    left: ${({padding:e=0})=>e}px;
1534    right: ${({padding:e=0})=>e}px;
1535    bottom: ${({padding:e=0})=>e}px;
1536  }
1537`,TH={x:.5,y:.5,height:1,width:1},TZ={top:0,left:0,right:0,bottom:0};function TU(e){if(!e)return null;if("aspectRatio"in e)return e.aspectRatio;if("height"in e||"width"in e){if("number"!=typeof e.height&&"number"!=typeof e.width)throw Error(`Height and width must be numbers, got ${JSON.stringify(e)}`);return e.width/e.height}return null}function Tq(e,t=2){let n=Math.pow(10,t);return Math.round(e*n)/n}function TJ(e){return 0===e?0:`${e}%`}function TW(e){return TJ(Tq(100*e))}let TK=g.I4.div`
1538  position: relative;
1539  width: 100%;
1540`,TG=eq("sanity-imagetool"),TX=(0,s.memo)(function(e){let t,n,r,i,l,d,c,u,p,m,h,f=(0,o.c)(36),{alignX:g,alignY:C,alt:y,aspectRatio:x,className:b,crop:v,hotspot:j,onError:w,onLoad:_,src:k,srcAspectRatio:S,srcSet:T,style:I}=e,E=void 0===g?"center":g,$=void 0===C?"center":C,A=void 0===x?"none":x,D=void 0===v?TZ:v,z=void 0===j?TH:j,[M,P]=(0,s.useState)(null),R=(0,s.useRef)(null),O=(0,s.useRef)(null);f[0]!==A?(t=()=>{if(R.current)if("auto"===A){let e=R.current.parentNode;(0,s.startTransition)(()=>P(e.offsetWidth/e.offsetHeight))}else P(null)},f[0]=A,f[1]=t):t=f[1];let V=t;f[2]!==k||f[3]!==V?(n=()=>{let e=O.current;return e&&e.src&&e.complete&&void 0!==e.naturalWidth&&(TG("Image '%s' already loaded, refreshing (from cache) to trigger onLoad / onError",k),e.src=e.src),V(),window.addEventListener("resize",V),()=>{window.removeEventListener("resize",V)}},r=[k,V],f[2]=k,f[3]=V,f[4]=n,f[5]=r):(n=f[4],r=f[5]),(0,s.useEffect)(n,r);e:{if("none"===A){let e;f[6]!==D||f[7]!==S?(e=D?function(e,t){let n=1/t,r=t*n;return(r-(e.left+e.right)*r)/(n-(e.top+e.bottom)*n)}(D,S):S,f[6]=D,f[7]=S,f[8]=e):e=f[8],i=e;break e}if("auto"===A){i=M;break e}i=A||null}let L=i||S;f[9]!==E||f[10]!==$||f[11]!==D||f[12]!==z||f[13]!==S||f[14]!==L?(d=function(e={}){let t=TU(e.image)||1,n=e.hotspot||TH,r=e.crop||TZ,i=TU(e.container)||t*function(e){let t=1-e.top-e.bottom;return(1-e.left-e.right)/t}(r),a=function(e,t,n){let r,i,a,o=t.crop,l=n.aspect,s=n.align,d=1-o.left-o.right,c=1-o.top-o.bottom,u={top:-o.top/c,left:-o.left/d,width:1/d,height:1/c},p=d/c*e,m={x:(t.hotspot.x-o.left)/d,y:(t.hotspot.y-o.top)/c,height:t.hotspot.height/c,width:t.hotspot.width/d},h=Math.min(1/m.width,1/m.height*p/l),f=p<=l;if((r=f?1:p/l)>h){let e;i="letterbox";a={width:e=f?1-(r-h):h,height:e/p*l,left:0,top:0};let t=m.x*a.width-m.width*a.width/2;switch(s.x){case"left":a.left=f?0:-t;break;case"right":a.left=f?1-a.width:t;break;case"center":a.left=f?(1-a.width)/2:-t;break;default:throw Error(`Invalid x alignment: '${s.x}
1540'. Must be either 'left', 'right' or 'center'`)}let n=m.y*a.height-m.height*a.height/2;switch(s.y){case"top":a.top=f?-n:0;break;case"bottom":a.top=n;break;case"center":a.top=f?-n:(1-a.height)/2;break;default:throw Error(`Invalid y alignment: '${s.y}'. Must be either 'top', 'bottom' or 'center'`)}}else if(f){i="full_width";let e=-m.y/p*l+.5,t=r/p*l;e>0?e=0:-e>t-1&&(e=-(t-1)),a={width:r,height:t,left:0,top:e}}else{i="full_height";let e=.5-m.x*r;e>0?e=0:-e>r-1&&(e=-(r-1)),a={width:r,height:r/p*l,top:0,left:e}}return{method:i,crop:a,image:u}}(t,{hotspot:n,crop:r},{aspect:i,align:e.align||{x:"center",y:"center"}}),o=TJ(Tq(100/i));return{debug:{result:a},container:{overflow:"hidden",position:"relative",width:"100%",height:o},padding:{marginTop:o},crop:{position:"absolute",overflow:"hidden",height:TW(a.crop.height),width:TW(a.crop.width),top:TW(a.crop.top),left:TW(a.crop.left)},image:{position:"absolute",height:TW(a.image.height),width:TW(a.image.width),top:TW(a.image.top),left:TW(a.image.left)}}}({container:{aspectRatio:L},image:{aspectRatio:S},hotspot:z,crop:D,align:{x:E,y:$}}),f[9]=E,f[10]=$,f[11]=D,f[12]=z,f[13]=S,f[14]=L,f[15]=d):d=f[15],l=d;let F=`${void 0===b?"":b}`;return f[16]!==l.padding?(c=(0,a.jsx)("div",{style:l.padding}),f[16]=l.padding,f[17]=c):c=f[17],f[18]!==y||f[19]!==w||f[20]!==_||f[21]!==k||f[22]!==T||f[23]!==l.image?(u=(0,a.jsx)("img",{ref:O,src:k,alt:y,srcSet:T,onLoad:_,onError:w,style:l.image}),f[18]=y,f[19]=w,f[20]=_,f[21]=k,f[22]=T,f[23]=l.image,f[24]=u):u=f[24],f[25]!==u||f[26]!==l.crop?(p=(0,a.jsx)("div",{style:l.crop,children:u}),f[25]=u,f[26]=l.crop,f[27]=p):p=f[27],f[28]!==c||f[29]!==p||f[30]!==l.container?(m=(0,a.jsxs)("div",{style:l.container,children:[c,p]}),f[28]=c,f[29]=p,f[30]=l.container,f[31]=m):m=f[31],f[32]!==I||f[33]!==F||f[34]!==m?(h=(0,a.jsx)(TK,{className:F,style:I,ref:R,children:m}),f[32]=I,f[33]=F,f[34]=m,f[35]=h):h=f[35],h});function TQ(e){let t,n,r,i=(0,o.c)(8),{src:a,children:l}=e,[d,c]=(0,s.useState)(!0),[u,p]=(0,s.useState)(null),[m,h]=(0,s.useState)(null);return i[0]!==a?(t=()=>{p(null),h(null),c(!0);let e=new Image;e.onload=()=>{p(e),h(null),c(!1)},e.onerror=()=>{h(Error(`Could not load image from ${JSON.stringify(a)}`)),c(!1)},e.referrerPolicy="strict-origin-when-cross-origin",e.src=a},n=[a],i[0]=a,i[1]=t,i[2]=n):(t=i[1],n=i[2]),(0,s.useEffect)(t,n),i[3]!==l||i[4]!==m||i[5]!==u||i[6]!==d?(r=l({image:u,error:m,isLoading:d}),i[3]=l,i[4]=m,i[5]=u,i[6]=d,i[7]=r):r=i[7],r}function T1(e){let{image:t,maxHeight:n,maxWidth:r,children:i}=e,a=t.width/t.height,o=t.width>t.height,l={width:o?r:n*a,height:o?r/a:n};return l.width>r&&(l.width=r,l.height=r/a),l.height>n&&(l.height=n,l.width=n*a),i(l)}let T2=e=>e.left+e.width/2,T5=e=>e.top+e.height/2,T0=e=>({width:1-e.left-e.right,height:1-e.top-e.bottom,left:e.left,right:1-e.right,top:e.top,bottom:1-e.bottom}),T7=(e,t,n)=>({x:(t.x-e.x)/n.width,y:(t.y-e.y)/n.height}),T3=(e,t)=>
1540{let n=T0(t),r=Math.min(e.width,n.width),i=Math.min(e.height,n.height),a=n.left+r/2,o=n.right-r/2,l=n.top+i/2,s=n.bottom-i/2;return{x:Math.min(Math.max(e.x,a),o),y:Math.min(Math.max(e.y,l),s),width:r,height:i}},T8=(e,t)=>{let{x:n,y:r,width:i,height:a}=e.hotspot||TH,o=e.crop||TZ;return T3({x:n+t.x,y:r+t.y,width:i,height:a},o)},T4=e=>{let{initialHotspot:t,crop:n,initialCursor:r,pointerPos:i,innerRect:a}=e,o=T0(n),l=o.width,s=o.height,d=o.left,c=o.right,u=o.top,p=o.bottom,m=i.x-r.x,h=i.y-r.y,f=t.width*a.width,g=t.height*a.height,C=(f+2*m)/a.width,y=(g+2*h)/a.height;C=Math.max(0,C),y=Math.max(0,y),C=Math.min(C,l),y=Math.min(y,s);let x=t.x,b=t.y,v=d+C/2,j=c-C/2;x<v?x=v:x>j&&(x=j);let w=u+y/2,_=p-y/2;return b<w?b=w:b>_&&(b=_),{crop:n,hotspot:{...t,x:x,y:b,width:C,height:y}}},T6=e=>{let{initialCrop:t,initialHotspot:n,initialCursor:r,pointerPos:i,innerRect:a}=e,o=T7(r,i,a),{top:l,right:s,bottom:d,left:c}=t,u=c+o.x,p=s-o.x,m=l+o.y,h=d-o.y,f=T0(t),g=f.width,C=f.height;u<0?(u=0,p=1-g):p<0?(p=0,u=1-g):u+p>1&&(o.x>0?(u=1-g,p=0):(u=0,p=1-g)),m<0?(m=0,h=1-C):h<0?(h=0,m=1-C):m+h>1&&(o.y>0?(m=1-C,h=0):(m=0,h=1-C));let y={top:m,right:p,bottom:h,left:u},x=.5-(u+p)/2,b=.5-(m+h)/2,v=T3({...n,x:n.x+(x-(.5-(c+s)/2)),y:n.y+(b-(.5-(l+d)/2))},y);return{crop:y,hotspot:v}},T9=e=>{let{initialCrop:t,initialHotspot:n,initialCursor:r,pointerPos:i,innerRect:a,activeHandle:o}=e,l=o.startsWith("crop-")?o.slice(5):"",s=T7(r,i,a),{left:d,right:c,top:u,bottom:p}=t;switch(l){case"left":d=Math.min(Math.max(t.left+s.x,0),1-t.right-.05);break;case"right":c=Math.min(Math.max(t.right-s.x,0),1-t.left-.05);break;case"top":u=Math.min(Math.max(t.top+s.y,0),1-t.bottom-.05);break;case"bottom":p=Math.min(Math.max(t.bottom-s.y,0),1-t.top-.05);break;case"topLeft":d=Math.min(Math.max(t.left+s.x,0),1-t.right-.05),u=Math.min(Math.max(t.top+s.y,0),1-t.bottom-.05);break;case"topRight":c=Math.min(Math.max(t.right-s.x,0),1-t.left-.05),u=Math.min(Math.max(t.top+s.y,0),1-t.bottom-.05);break;case"bottomLeft":d=Math.min(Math.max(t.left+s.x,0),1-t.right-.05),p=Math.min(Math.max(t.bottom-s.y,0),1-t.top-.05);break;case"bottomRight":c=Math.min(Math.max(t.right-s.x,0),1-t.left-.05),p=Math.min(Math.max(t.bottom-s.y,0),1-t.top-.05)}let m={left:d,right:c,top:u,bottom:p},h=T3(n,m);return{crop:m,hotspot:h}},Ie={"crop-top":"ns-resize","crop-bottom":"ns-resize","crop-left":"ew-resize","crop-right":"ew-resize","crop-topRight":"nesw-resize","crop-bottomLeft":"nesw-resize","crop-topLeft":"nwse-resize","crop-bottomRight":"nwse-resize"},It={CORNER_PATH:e=>{let t=e/2;return`M ${-t} ${1.5*e} 
1541            L ${-t} ${-t} 
1542            L ${1.5*e} ${-t} 
1543            L ${1.5*e} ${t} 
1544            L ${t} ${t} 
1545            L ${t} ${1.5*e} 
1546            Z`},EDGE_DIMENSIONS:{top:e=>({width:2*e,height:e}),right:e=>({width:e,height:2*e}),bottom:e=>({width:2*e,height:e}),left:e=>({width:e,height:2*e})}},In={cornerPath:It.CORNER_PATH(8),edgeDimensions:{top:It.EDGE_DIMENSIONS.top(8),right:It.EDGE_DIMENSIONS.right(8),bottom:It.EDGE_DIMENSIONS.bottom(8),left:It.EDGE_DIMENSIONS.left(8)}},Ir=g.I4.div`
1547  position: relative;
1548  display: flex;
1549  justify-content: center;
1550  align-items: center;
1551  width: 100%;
1552  height: 100%;
1553  overflow: visible;
1554  touch-action: none;
1555  -webkit-touch-callout: none;
1556  -webkit-tap-highlight-color: transparent;
1557  user-select: none;
1558  -webkit-user-select: none;
1559`,Ii=g.I4.svg`
1560  display: block;
1561  overflow: visible;
1562  shape-rendering: crispEdges;
1563`,Ia=g.I4.rect`
1564  fill: rgba(0, 0, 0, 0.5);
1565  pointer-events: none;
1566`,Io=e=>{let{color:t}=(0,tZ.JW)(e.theme);return e.$focused?t.focusRing:"#000"},Il=g.I4.rect`
1567  fill: none;
1568  stroke: ${e=>{let{color:t}=(0,tZ.JW)(e.theme);return e.$focused?t.focusRing:e.$hovered?"rgba(255, 255, 255, 1)":"rgba(255, 255, 255, .5)"}};
1569  stroke-opacity: 1;
1570  stroke-width: 1px;
1571  outline: none;
1572  ${e=>e.$focused&&(0,g.AH)`
1573      stroke-width: 2px;
1574      filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.3));
1575    `}
1576`,Is=g.I4.path`
1577  fill: #fff;
1578  stroke: ${Io};
1579  stroke-width: 1;
1580  outline: none;
1581`,Id=g.I4.rect`
1582  fill: #fff;
1583  stroke: ${Io};
1584  stroke-width: 1;
1585  outline: none;
1586`,Ic=g.I4.ellipse`
1587  fill: transparent;
1588  stroke: ${e=>{let{color:t}=(0,tZ.JW)(e.theme);return e.$focused?t.focusRing:e.$hovered?"rgba(255, 255, 255, 1)":"rgba(255, 255, 255, .5)"}};
1589  stroke-opacity: 1;
1590  stroke-width: 1px;
1591  outline: none;
1592  ${e=>e.$focused&&(0,g.AH)`
1593      stroke-width: 2px;
1594    `}
1595`,Iu=g.I4.circle`
1596  fill: #fff;
1597  stroke: ${Io};
1598  stroke-width: 1;
1599  outline: none;
1600`,Ip=g.I4.rect`
1601  fill: transparent;
1602  stroke: transparent;
1603  pointer-events: all;
1604`,Im=g.I4.circle`
1605  fill: transparent;
1606  stroke: transparent;
1607  pointer-events: all;
1608`,Ih=g.I4.g`
1609  ${e=>{let{color:t}=(0,tZ.JW)(e.theme);return(0,g.AH)`
1610      stroke: ${t.fg};
1611      stroke-opacity: 0.2;
1612      stroke-width: 1px;
1613      stroke-dasharray: 3, 3;
1614      pointer-events: none;
1615    `}}
1616`,If=(0,s.memo)(function(e){let{value:t,image:n,onChange:r,onChangeEnd:i,readOnly:l,size:d}=e,c=(0,s.useRef)(null),u=(0,s.useRef)(null),p=(0,s.useRef)(null),[m,h]=(0,s.useState)(null),f=(0,s.useMemo)(()=>`hotspotClip-${(0,nA.A)()}`,[]);(0,s.useEffect)(()=>{let e=c.current;if(!e)return;let t=e=>{e.preventDefault()};return e.addEventListener("touchmove",t,{passive:!1}),()=>{e.removeEventListener("touchmove",t)}},[]);let{innerRect:g,cropRect:C,constrainedHotspot:y,hotspotRect:x}=function(e){let t,n,r,i,a,l,s,d,c,u,p,m,h,f=(0,o.c)(27),{size:g,value:C}=e;f[0]!==g.height||f[1]!==g.width?(n={left:0,top:0,width:g.width,height:g.height},f[0]=g.height,f[1]=g.width,f[2]=n):n=f[2];let y=(t=n).width-24,x=t.height-24,b=t.width/t.height;y/x>b?i=(a=x)*b:a=(i=y)/b;let v=t.left+(t.width-i)/2,j=t.top+(t.height-a)/2;f[3]!==a||f[4]!==v||f[5]!==j||f[6]!==i?(l={left:v,top:j,width:i,height:a},f[3]=a,f[4]=v,f[5]=j,f[6]=i,f[7]=l):l=f[7],r=l;let w=C.crop||TZ,_=T0(w),k=r.left+r.width*w.left,S=r.top+r.height*w.top,T=r.width*_.width,I=r.height*_.height;f[8]!==k||f[9]!==S||f[10]!==T||f[11]!==I?(d={left:k,top:S,width:T,height:I},f[8]=k,f[9]=S,f[10]=T,f[11]=I,f[12]=d):d=f[12],s=d;let E=C.hotspot||TH,$=C.crop||TZ;f[13]!==$||f[14]!==E?(u=T3(E,$),f[13]=$,f[14]=E,f[15]=u):u=f[15],c=u;let A=r.left+r.width*(c.x-c.width/2),D=r.top+r.height*(c.y-c.height/2),z=r.width*c.width,M=r.height*c.height;return f[16]!==A||f[17]!==D||f[18]!==z||f[19]!==M?(m={left:A,top:D,width:z,height:M},f[16]=A,f[17]=D,f[18]=z,f[19]=M,f[20]=m):m=f[20],p=m,f[21]!==c||f[22]!==s||f[23]!==p||f[24]!==t||f[25]!==r?(h={imageRect:t,innerRect:r,cropRect:s,constrainedHotspot:c,hotspotRect:p},f[21]=c,f[22]=s,f[23]=p,f[24]=t,f[25]=r,f[26]=h):h=f[26],h}({size:d,value:t}),{hoverTarget:b,handleMouseEnter:v,handleMouseLeave:j,handleHotspotMouseEnter:w,handleHotspotHandleMouseEnter:_,handleCropMouseEnter:k,getCropHandleMouseEnter:S}=function(){let e,t,n,r,i,a,l,d=(0,o.c)(8),[c,u]=(0,s.useState)(null);d[0]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{u(e)},d[0]=e):e=d[0];let p=e;d[1]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{u(null)},d[1]=t):t=d[1];let m=t;d[2]===Symbol.for("react.memo_cache_sentinel")?(n=()=>p("hotspot"),d[2]=n):n=d[2];let h=n;d[3]===Symbol.for("react.memo_cache_sentinel")?(r=()=>p("hotspotHandle"),d[3]=r):r=d[3];let f=r;d[4]===Symbol.for("react.memo_cache_sentinel")?(i=()=>p("crop"),d[4]=i):i=d[4];let g=i;d[5]===Symbol.for("react.memo_cache_sentinel")?(a=e=>()=>p(`crop-${e}`),d[5]=a):a=d[5];let C=a;return d[6]!==c?(l={hoverTarget:c,handleMouseEnter:p,handleMouseLeave:m,handleHotspotMouseEnter:h,handleHotspotHandleMouseEnter:f,handleCropMouseEnter:g,getCropHandleMouseEnter:C},d[6]=c,d[7]=l):l=d[7],l}(),{dragTarget:T,activeHandle:I,handlePointerDown:E,handlePointerMove:$,resetDragState:A}=function({value:e,onChange:t,innerRect:n,svgRef:r,size:i,readOnly:a,hotspotRef:o,cropRef:l}){let d=(0,s.useRef)(null),c=(0,s.useRef)(null),u=(0,s.useRef)(null),[p,m]=(0,s.useState)(null),[h,f]=(0,s.useState)(null),[g,C]=(0,s.useState)(null),y=(0,s.useCallback)(t=>{if(a)return;let n=r.current;if(!n)return;let s=n.getBoundingClientRect(),p=(t.clientX-s.left)/s.width*i.width,h=(t.clientY-s.top)/s.height*i.height;m({x:p,y:h}),c.current={x:p,y:h},d.current={...e.crop||TZ},u.current={...e.hotspot||TH};let g=t.currentTarget.dataset.handle;"hotspotHandle"===g?(f("hotspotHandle"),o.current?.focus()):"hotspot"===g?(f("hotspot"),o.current?.focus()):g&&g.startsWith("crop-")?(C(g),f("cropHandle"),l.current?.focus()):"crop"===g&&(f("crop"),l.current?.focus()),n.setPointerCapture(t.pointerId),t.preventDefault(),t.stopPropagation()},[a,i.width,i.height,e.crop,e.hotspot,r,o,l]),x=(0,s.useCallback)(a=>{let o=r.current;if(!o||!h||!p||!c.current||!d.current||!u.current)return;let l=((e,t,n)=>{let r=t.getBoundingClientRect();return{x:(e.clientX-r.left)/r.width*n.width,y:(e.clientY-r.top)/r.height*n.height}})(a,o,i);"hotspot"===h?t(((e,t,n,r)=>{let i=T7(t,n,r);return{crop:e.crop||TZ,hotspot:T8(e,i)}})({crop:e.crop||TZ,hotspot:u.current},c.current,l,n)):"hotspotHandle"===h?t(T4({initialHotspot:u.current,crop:e.crop||TZ,initialCursor:c.current,pointerPos:l,innerRect:n})):"crop"===h?t(T6({initialCrop:d.current,initialHotspot:u.current,initialCursor:c.current,pointerPos:l,innerRect:n})):"cropHandle"===h&&g&&t(T9({initialCrop:d.current,initialHotspot:u.current,initialCursor:c.current,pointerPos:l,innerRect:n,activeHandle:g}))},[p,h,g,n,t,e.crop,i,r,u,d,c]);return{dragTarget:h,activeHandle:g,dragStart:p,handlePointerDown:y,handlePointerMove:x,resetDragState:(0,s.useCallback)(()=>{f(null),C(null),m(null),d.current=null,c.current=null,u.current=null},[])}}({value:t,onChange:r,innerRect:g,svgRef:c,size:d,readOnly:l,hotspotRef:p,cropRef:u}),{handleKeyDown:D,handleKeyUp:z}=function(e){let t,n,r,i,a,l,d=(0,o.c)(20),{value:c,onChange:u,onChangeEnd:p,innerRect:m,focusTarget:h,readOnly:f}=e,g=(0,s.useRef)(null),C=(0,s.useRef)(null),y=(0,s.useRef)(null),x=(0,s.useRef)(null);d[0]!==p||d[1]!==c?(t=()=>{(g.current||C.current)&&(p({crop:c.crop||TZ,hotspot:c.hotspot||TH}),g.current=null,C.current=null,y.current=null)},d[0]=p,d[1]=c,d[2]=t):t=d[2];let b=t;d[3]!==m?(n=e=>{let t,{e:n,crop:r,hotspot:i,isCtrlOrCmdPressed:a,step:o,resizeStep:l}=e;if(a){let e={x:y.current.x,y:y.current.y};switch(n.key){case"ArrowUp":e.y=e.y-m.height*l;break;case"ArrowDown":e.y=e.y+m.height*l;break;case"ArrowLeft":e.x=e.x-m.width*l;break;case"ArrowRight":e.x=e.x+m.width*l;break;default:return null}t=T4({initialHotspot:i,crop:r,initialCursor:y.current,pointerPos:e,innerRect:m})}else{let e={x:0,y:0};switch(n.key){case"ArrowUp":e.y=-o;break;case"ArrowDown":e.y=o;break;case"ArrowLeft":e.x=-o;break;case"ArrowRight":e.x=o;break;default:return null}t={hotspot:T8({hotspot:i,crop:r},e),crop:r}}return t},d[3]=m,d[4]=n):n=d[4];let v=n;
1616d[5]!==m?(r=e=>{let{e:t,crop:n,hotspot:r,isCtrlOrCmdPressed:i,step:a,resizeStep:o}=e;if(i){let e,i={x:y.current.x,y:y.current.y};switch(t.key){case"ArrowUp":e="crop-bottom",i.y=i.y-m.height*o;break;case"ArrowDown":e="crop-bottom",i.y=i.y+m.height*o;break;case"ArrowLeft":e="crop-right",i.x=i.x-m.width*o;break;case"ArrowRight":e="crop-right",i.x=i.x+m.width*o;break;default:return null}if(e)return T9({initialCrop:n,initialHotspot:r,initialCursor:y.current,pointerPos:i,innerRect:m,activeHandle:e})}else{let e={x:y.current.x,y:y.current.y};switch(t.key){case"ArrowUp":e.y=e.y-m.height*a;break;case"ArrowDown":e.y=e.y+m.height*a;break;case"ArrowLeft":e.x=e.x-m.width*a;break;case"ArrowRight":e.x=e.x+m.width*a;break;default:return null}return T6({initialCrop:n,initialHotspot:r,initialCursor:y.current,pointerPos:e,innerRect:m})}return null},d[5]=m,d[6]=r):r=d[6];let j=r;d[7]!==h||d[8]!==j||d[9]!==v||d[10]!==m||d[11]!==u||d[12]!==f||d[13]!==c?(i=e=>{if(null!==x.current&&window.clearTimeout(x.current),f||!h||!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(e.key))return;let t=c.crop||TZ,n=c.hotspot||TH;g.current={...t},C.current={...n},y.current={x:m.width/2,y:m.height/2};let r=e.shiftKey,i=e.ctrlKey||e.metaKey,a=r?.025:.005,o=r?.025:.005,l=null;"hotspot"===h||"hotspotHandle"===h?l=v({e:e,crop:t,hotspot:n,isCtrlOrCmdPressed:i,step:a,resizeStep:o}):("crop"===h||"cropHandle"===h)&&(l=j({e:e,crop:t,hotspot:n,isCtrlOrCmdPressed:i,step:a,resizeStep:o})),l&&(u(l),e.preventDefault())},d[7]=h,d[8]=j,d[9]=v,d[10]=m,d[11]=u,d[12]=f,d[13]=c,d[14]=i):i=d[14];let w=i;d[15]!==b?(a=e=>{null!==x.current&&window.clearTimeout(x.current),x.current=window.setTimeout(()=>{b(),x.current=null},300)},d[15]=b,d[16]=a):a=d[16];let _=a;return d[17]!==w||d[18]!==_?(l={handleKeyDown:w,handleKeyUp:_},d[17]=w,d[18]=_,d[19]=l):l=d[19],l}({value:t,onChange:r,onChangeEnd:i,innerRect:g,focusTarget:m,readOnly:l}),M=(0,s.useMemo)(()=>(e=>{let t,n,r,i,a,o,l={top:{x:e.left+e.width/2,y:e.top},right:{x:(t=e).left+t.width,y:e.top+e.height/2},bottom:{x:e.left+e.width/2,y:(n=e).top+n.height},left:{x:e.left,y:e.top+e.height/2},topLeft:{x:e.left,y:e.top},topRight:{x:(r=e).left+r.width,y:e.top},bottomLeft:{x:e.left,y:(i=e).top+i.height},bottomRight:{x:(a=e).left+a.width,y:(o=e).top+o.height}},s={topLeft:0,topRight:90,bottomRight:180,bottomLeft:270},d={};for(let e of["top","right","bottom","left"]){let t=In.edgeDimensions[e],n=l[e];d[e]={visual:{left:n.x-t.width/2,top:n.y-t.height/2,width:t.width,height:t.height},hit:{left:n.x-12,top:n.y-12,width:24,height:24}}}for(let e of["topLeft","topRight","bottomLeft","bottomRight"]){let t=l[e];d[e]={visual:{left:t.x-24,top:t.y-24,width:48,height:48},hit:{left:t.x-12,top:t.y-12,width:24,height:24},path:In.cornerPath,position:t,rotation:s[e]}}return d})(C),[C]),P=(0,s.useMemo)(()=>({...(e=>{let t=.25*Math.PI,n=e.width/2,r=e.height/2;return{x:T2(e)+Math.cos(t)*n,y:T5(e)+Math.sin(t)*r}})(x),radius:8,hitRadius:12}),[x]),R=(0,s.useCallback)(e=>{h(e)},[]),O=(0,s.useCallback)(()=>{h(null)},[]),V=(0,s.useCallback)(()=>R("hotspot"),[R]),L=(0,s.useCallback)(()=>O(),[O]),F=(0,s.useCallback)(()=>R("crop"),[R]),B=(0,s.useCallback)(()=>O(),[O]),N=(0,s.useCallback)(e=>{let n=c.current;n&&(T&&("hotspot"===T||"hotspotHandle"===T?i({hotspot:y,crop:t.crop||TZ}):("crop"===T||"cropHandle"===T)&&i({crop:t.crop||TZ,hotspot:t.hotspot||TH})),n.releasePointerCapture(e.pointerId),A())},[T,i,t.crop,t.hotspot,y,A]),Y=(0,s.useMemo)(()=>"crop"===T||"hotspot"===T?"grabbing":"hotspotHandle"===T?"move":"cropHandle"===T&&I?Ie[I]||"move":b?"crop"===b||"hotspot"===b?"grab":"hotspotHandle"===b?"move":"string"==typeof b&&b in Ie?Ie[b]:"default":"default",[T,I,b]),H=(0,s.useCallback)(()=>v("crop"),[v]),Z=(0,s.useCallback)(e=>!!b&&("crop"===b||b===`crop-${e}`),[b]);return(0,a.jsx)(Ir,{children:(0,a.jsxs)(Ii,{ref:c,viewBox:`0 0 ${d.width} ${d.height}`,preserveAspectRatio:"xMidYMid",onPointerMove:$,onPointerUp:N,style:{cursor:l?"default":Y,width:`${d.width}px`,height:`${d.height}px`},children:[(0,a.jsx)("image",{href:n.src,x:g.left,y:g.top,width:g.width,height:g.height,opacity:.25,preserveAspectRatio:"xMidYMid meet"}),(0,a.jsxs)("svg",{x:C.left,y:C.top,width:C.width,height:C.height,overflow:"hidden","data-handle":"crop",onPointerDown:E,onMouseEnter:k,onMouseLeave:j,children:[(0,a.jsx)("image",{href:n.src,x:-C.left+g.left,y:-C.top+g.top,width:g.width,height:g.height,preserveAspectRatio:"xMidYMid meet"}),(0,a.jsx)(Ia,{x:"0",y:"0",width:C.width,height:C.height}),(0,a.jsx)("rect",{x:"0",y:"0",width:C.width,height:C.height,fill:"transparent","data-handle":"crop",onPointerDown:E,onMouseEnter:k})]}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:f,children:(0,a.jsx)("ellipse",{cx:T2(x),cy:T5(x),rx:x.width/2,ry:x.height/2})})}),(0,a.jsx)("image",{href:n.src,x:g.left,y:g.top,width:g.width,height:g.height,clipPath:`url(#${f})`,preserveAspectRatio:"xMidYMid meet"}),(0,a.jsxs)("g",{children:[(0,a.jsx)(Ic,{ref:p,cx:T2(x),cy:T5(x),rx:Math.max(.01,x.width/2),ry:Math.max(.01,x.height/2),$hovered:!l&&("hotspot"===b||"hotspotHandle"===b||"hotspot"===T||"hotspotHandle"===T),$focused:!l&&"hotspot"===m,"data-handle":"hotspot",onPointerDown:E,tabIndex:l?-1:0,onMouseEnter:w,onMouseLeave:j,onFocus:V,onBlur:L,onKeyDown:D,onKeyUp:z,
1616style:{pointerEvents:"visiblePainted"}}),!l&&(0,a.jsxs)("g",{children:[(0,a.jsx)(Im,{cx:P.x,cy:P.y,r:P.hitRadius,"data-handle":"hotspotHandle",onPointerDown:E,onMouseEnter:_,onMouseLeave:j,style:{pointerEvents:"visiblePainted"}}),(0,a.jsx)(Iu,{cx:P.x,cy:P.y,r:P.radius,$hovered:!l&&("hotspot"===b||"hotspotHandle"===b||"hotspot"===T||"hotspotHandle"===T),$focused:!l&&"hotspot"===m,pointerEvents:"none"})]})]}),(0,a.jsxs)(Ih,{children:[(0,a.jsx)("line",{x1:T2(x),y1:g.top,x2:T2(x),y2:g.top+g.height}),(0,a.jsx)("line",{x1:g.left,y1:T5(x),x2:g.left+g.width,y2:T5(x)}),(0,a.jsx)("line",{x1:x.left,y1:g.top,x2:x.left,y2:g.top+g.height}),(0,a.jsx)("line",{x1:x.left+x.width,y1:g.top,x2:x.left+x.width,y2:g.top+g.height}),(0,a.jsx)("line",{x1:g.left,y1:x.top,x2:g.left+g.width,y2:x.top}),(0,a.jsx)("line",{x1:g.left,y1:x.top+x.height,x2:g.left+g.width,y2:x.top+x.height})]}),(0,a.jsxs)("g",{children:[(0,a.jsx)(Il,{ref:u,x:C.left,y:C.top,width:C.width,height:C.height,$hovered:!l&&("crop"===b||!!b?.startsWith("crop-")||"crop"===T||"cropHandle"===T),$focused:!l&&"crop"===m,"data-handle":"crop",onPointerDown:E,tabIndex:l?-1:0,onMouseEnter:H,onMouseLeave:j,onFocus:F,onBlur:B,onKeyDown:D,onKeyUp:z}
1616),!l&&Object.entries(M).map(([e,t])=>(0,a.jsxs)("g",{children:[(0,a.jsx)(Ip,{x:t.hit.left,y:t.hit.top,width:t.hit.width,height:t.hit.height,"data-handle":`crop-${e}`,onPointerDown:E,onMouseEnter:S(e),onMouseLeave:j,style:{pointerEvents:"all"}}),["topLeft","topRight","bottomLeft","bottomRight"].includes(e)?(0,a.jsx)("g",{transform:`translate(${t.position?.x??0}, ${t.position?.y??0}) rotate(${t.rotation??0})`,children:(0,a.jsx)(Is,{d:t.path,$hovered:!l&&Z(e),$focused:!l&&"crop"===m,pointerEvents:"none"})}):(0,a.jsx)(Id,{x:t.visual.left,y:t.visual.top,width:t.visual.width,height:t.visual.height,$hovered:!l&&Z(e),$focused:!l&&"crop"===m,pointerEvents:"none"})]},e))]})]})})});function Ig(e){let t,n,r,i,l,d=(0,o.c)(9),c=(0,s.useRef)(null),[u,p]=(0,s.useState)(null),[m,h]=(0,s.useState)(null);return d[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{if(c.current)return c.current&&(p(c.current.clientWidth),h(c.current.clientHeight)),iA.observe(c.current,e=>{p(e.contentRect.width),h(e.contentRect.height)})},n=[],d[0]=t,d[1]=n):(t=d[0],n=d[1]),(0,s.useLayoutEffect)(t,n),d[2]===Symbol.for("react.memo_cache_sentinel")?(r={position:"relative",width:"100%",height:"100%"},d[2]=r):r=d[2],d[3]!==m||d[4]!==u||d[5]!==e?(i=null!==u&&null!==m&&(0,a.jsx)(TQ,{src:e.src,children:t=>{let{isLoading:n,image:r,error:i}=t;return n?(0,a.jsx)(r5,{showText:!0}):i?(0,a.jsx)("div",{children:i.message}):r?(0,a.jsx)(T1,{image:r,maxHeight:m,maxWidth:u,children:t=>(0,a.jsx)(If,{...e,image:r,size:t})}):null}}),d[3]=m,d[4]=u,d[5]=e,d[6]=i):i=d[6],d[7]!==i?(l=(0,a.jsx)("div",{ref:c,style:r,children:i}),d[7]=i,d[8]=l):l=d[8],l}let IC={isLoading:!0},Iy=["hotspot"],Ix=[{title:"3:4",aspectRatio:3/4},{title:"Square",aspectRatio:1},{title:"16:9",aspectRatio:16/9},{title:"Panorama",aspectRatio:4}],Ib={crop:TZ,hotspot:TH},Iv=g.I4.div`
1617  min-height: 6em;
1618`;function Ij(e){let t,n,r=(0,o.c)(3);return r[0]===Symbol.for("react.memo_cache_sentinel")?(t={overflowWrap:"break-word"},r[0]=t):t=r[0],r[1]!==e.children?(n=(0,a.jsx)(u.so,{align:"center",justify:"center",padding:4,style:t,children:e.children}),r[1]=e.children,r[2]=n):n=r[2],n}function Iw(e){let t,n,r,i,l,d,c,p,m,h,f,g,C,y,x,b,v,j,w=(0,o.c)(59),{imageUrl:_,value:k,changed:S,level:T,path:I,focusPath:E,presence:$,onChange:A,schemaType:D,onPathFocus:z,readOnly:M,elementProps:R}=e,O=void 0===E?i_:E,[V,L]=(0,s.useState)(k||Ib),{image:F,isLoading:B,error:N}=function(e){let t,n,r=(0,o.c)(3),[i,a]=(0,s.useState)(IC);return r[0]!==e?(t=()=>{a(IC);let t=new P.c(t=>{let n=document.createElement("img"),r=!1;return n.onload=()=>{r=!0,t.next(n),t.complete()},n.onerror=()=>{r=!0,t.error(Error(`Could not load image from ${e.startsWith("blob:")?"blob":e}`))},n.src=e,()=>{n.onload=null,n.onerror=null,r||(n.src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=")}}).subscribe({error:e=>{a({isLoading:!1,error:e})},next:e=>{a({image:e,isLoading:!1})}});return()=>{t.unsubscribe()}},n=[e],r[0]=e,r[1]=t,r[2]=n):(t=r[1],n=r[2]),(0,s.useEffect)(t,n),i}(_);w[0]!==z?(t=()=>{z(Iy)},w[0]=z,w[1]=t):t=w[1];let Y=t;w[2]!==k?(n=()=>{L(k||Ib)},r=[k],w[2]=k,w[3]=n,w[4]=r):(n=w[3],r=w[4]),(0,s.useEffect)(n,r);let H="hotspot"===O[0],Z="object"==typeof D.options?.hotspot&&D.options.hotspot.previews||Ix;w[5]!==R.ref||w[6]!==H?(i=e=>{!e&&H&&R.ref.current?.focus()},w[5]=R.ref,w[6]=H,w[7]=i):i=w[7],xZ(H,i),w[8]!==A||w[9]!==M||w[10]!==D.fields?(l=e=>{if(M)return;let t=D.fields.find(IT),n=D.fields.find(IS),r=t?{_type:t.type.name,...e.crop||TZ}:e.crop,i=n?{_type:n.type.name,...e.hotspot||TH}:e.hotspot;A([s7(r,["crop"]),s7(i,["hotspot"])])},w[8]=A,w[9]=M,w[10]=D.fields,w[11]=l):l=w[11];let U=l;d=k?.asset?._ref?.split("-").at(-1)==="svg";let{t:q}=iJ();w[12]!==q?(c=q("inputs.imagetool.title"),w[12]=q,w[13]=c):c=w[13],w[14]!==q?(p=q("inputs.imagetool.description"),w[14]=q,w[15]=p):p=w[15];let J=D.deprecated;w[16]!==d||w[17]!==q?(m=d?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(u.Zp,{padding:3,marginY:3,tone:"caution",radius:2,children:(0,a.jsxs)(u.BJ,{space:4,children:[(0,a.jsx)(u.EY,{size:1,children:q("inputs.imagetool.vector-warning.title")}),(0,a.jsx)(uo,{title:q("inputs.imagetool.vector-warning.expand-developer-info"),children:(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(an,{t:q,i18nKey:"inputs.imagetool.vector-warning.developer-info",components:{ImageUrlDocumentationLink:Ik,ImageUrlPackageDocumentationLink:I_}})})})]})})}):null,w[16]=d,w[17]=q,w[18]=m):m=w[18];let W=R.ref;w[19]!==I?(h=I.concat(Iy),w[19]=I,w[20]=h):h=w[20];let K="hotspot"===O[0];return w[21]!==N||w[22]!==B||w[23]!==q?(f=(B||N)&&(0,a.jsx)(Ij,{children:N?(0,a.jsx)(u.Zp,{padding:4,radius:2,tone:"critical",border:!0,children:(0,a.jsx)(u.EY,{children:q("inputs.imagetool.load-error",{errorMessage:N.message})})}):(0,a.jsx)(r5,{showText:!0})}),w[21]=N,w[22]=B,w[23]=q,w[24]=f):f=w[24],w[25]!==U||w[26]!==F||w[27]!==B||w[28]!==V||w[29]!==M?(g=!B&&F&&(0,a.jsx)(u.az,{children:(0,a.jsx)(Ig,{value:V,src:F.src,readOnly:!!M,onChangeEnd:U,onChange:L})}),w[25]=U,w[26]=F,w[27]=B,w[28]=V,w[29]=M,w[30]=g):g=w[30],w[31]!==f||w[32]!==g?(C=(0,a.jsxs)(TY,{ratio:1.5,children:[f,g]}),w[31]=f,w[32]=g,w[33]=C):C=w[33],w[34]!==S||w[35]!==h||w[36]!==K||w[37]!==C?(y=(0,a.jsx)(El,{path:h,hasFocus:K,isChanged:S,children:C}),w[34]=S,w[35]=h,w[36]=K,w[37]=C,w[38]=y):y=w[38],w[39]!==R.ref||w[40]!==Y||w[41]!==y?(x=(0,a.jsx)(u.Zp,{__unstable_checkered:!0,__unstable_focusRing:!0,tabIndex:0,ref:W,onFocus:Y,border:!0,children:y}),w[39]=R.ref,w[40]=Y,w[41]=y,w[42]=x):x=w[42],w[43]!==Z||w[44]!==F||w[45]!==B||w[46]!==V?(b=Z.length>0?(0,a.jsx)(u.az,{marginTop:2,children:(0,a.jsx)(u.xA,{columns:4,gap:1,children:Z.map(e=>{let{title:t,aspectRatio:n}=e;return(0,a.jsxs)(u.az,{marginTop:2,children:[(0,a.jsx)(u.DZ,{as:"h4",size:0,children:t}),(0,a.jsx)(u.az,{marginTop:2,children:(0,a.jsx)(TY,{ratio:n,children:(0,a.jsx)(u.Zp,{__unstable_checkered:!0,border:!0,children:!B&&F?(0,a.jsx)(TX,{aspectRatio:n,src:F.src,srcAspectRatio:F.width/F.height,hotspot:V.hotspot||TH,crop:V.crop||TZ}):(0,a.jsx)(Iv,{})})})})]},t)})})}):null,w[43]=Z,w[44]=F,w[45]=B,w[46]=V,w[47]=b):b=w[47],w[48]!==x||w[49]!==b?(v=(0,a.jsxs)("div",{children:[x,b]}),w[48]=x,w[49]=b,w[50]=v):v=w[50],w[51]!==T||w[52]!==$||w[53]!==D.deprecated||w[54]!==m||w[55]!==v||w[56]!==c||w[57]!==p?(j=(0,a.jsxs)(xR,{title:c,level:T,description:p,deprecated:J,__unstable_presence:$,children:[m,v]}),w[51]=T,w[52]=$,w[53]=D.deprecated,w[54]=m,w[55]=v,w[56]=c,w[57]=p,w[58]=j):j=w[58],j}function I_(e){let{children:t}=e;return(0,a.jsx)("a",{href:"https://www.sanity.io/docs/image-urls#fm-048ba39d9e88",children:(0,a.jsx)("code",{children:t})})}function Ik(e){let{children:t}=e;return(0,a.jsx)("a",{href:"https://www.sanity.io/docs/image-urls#fm-048ba39d9e88",children:t})}
1618function IS(e){return"object"!==e.type.name&&"hotspot"===e.name}function IT(e){return"crop"===e.name&&"object"!==e.type.name}let II=(0,s.memo)(function(e){let{handleCloseDialog:t,inputProps:n,imageInputProps:r,isImageToolEnabled:i}=e,{t:o}=iJ(),{changed:l,id:d,imageUrlBuilder:c,value:p}=r,m=i&&p&&p.asset,h=(0,s.useMemo)(()=>p?.asset?c.image(p.asset).url():"",[c,p?.asset]);return(0,a.jsx)(y.lG,{__unstable_autoFocus:!1,header:o("inputs.image.hotspot-dialog.title"),id:`${d}_dialog`,onClickOutside:t,onClose:t,width:1,children:(0,a.jsx)(xE,{children:(0,a.jsx)(u.BJ,{space:5,children:m&&p?.asset&&(0,a.jsx)(Iw,{...r,imageUrl:h,value:p,presence:n.presence,changed:l})})})})});function IE(e){let t,n,r,i,l,d,c,p,m,h,f,g,C=(0,o.c)(26);C[0]!==e?({drag:t,readOnly:r,isRejected:n,src:l,...i}=e,C[0]=e,C[1]=t,C[2]=n,C[3]=r,C[4]=i,C[5]=l):(t=C[1],n=C[2],r=C[3],i=C[4],l=C[5]);let[y,x]=(0,s.useState)(!1),b=t?n||r?"critical":"primary":"default";C[6]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{x(!1)},C[6]=d):d=C[6],C[7]!==l?(c=[l],C[7]=l,C[8]=c):c=C[8],(0,s.useEffect)(d,c),C[9]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{x(!0)},C[9]=p):p=C[9];let v=p,{t:j}=iJ();return C[10]!==y?(m=!y&&(0,a.jsx)(IA,{cardTone:"transparent",content:(0,a.jsx)(r5,{showText:!0})}),C[10]=y,C[11]=m):m=C[11],C[12]!==e.alt||C[13]!==l?(h=(0,a.jsx)("img",{src:l,"data-testid":"hotspot-image-input",alt:e.alt,onLoad:v,referrerPolicy:"strict-origin-when-cross-origin"}),C[12]=e.alt,C[13]=l,C[14]=h):h=C[14],C[15]!==t||C[16]!==n||C[17]!==r||C[18]!==j||C[19]!==b?(f=t&&(0,a.jsx)(IA,{cardTone:b,content:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.az,{marginBottom:3,children:(0,a.jsx)(u.DZ,{children:(0,a.jsx)(I$,{isRejected:n,readOnly:r})})}),(0,a.jsx)(u.EY,{size:1,children:j(function({isRejected:e,readOnly:t}){return e?"inputs.image.drag-overlay.cannot-upload-here":t?"inputs.image.drag-overlay.this-field-is-read-only":"inputs.image.drag-overlay.drop-to-upload-image"}({isRejected:n,readOnly:r}))})]})}),C[15]=t,C[16]=n,C[17]=r,C[18]=j,C[19]=b,C[20]=f):f=C[20],C[21]!==i||C[22]!==m||C[23]!==h||C[24]!==f?(g=(0,a.jsxs)(S4,{...i,tone:"transparent",children:[m,h,f]}),C[21]=i,C[22]=m,C[23]=h,C[24]=f,C[25]=g):g=C[25],g}function I$(e){let t,n=(0,o.c)(3),{isRejected:r,readOnly:i}=e;if(r){let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(C.VY$,{}),n[0]=e):e=n[0],e}if(i){let e;return n[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(C.Eoh,{}),n[1]=e):e=n[1],e}return n[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(C.xfq,{}),n[2]=t):t=n[2],t}function IA(e){let t,n,r=(0,o.c)(5),{cardTone:i,content:l}=e;return r[0]!==l?(t=(0,a.jsx)(S9,{direction:"column",align:"center",justify:"center",children:l}),r[0]=l,r[1]=t):t=r[1],r[2]!==i||r[3]!==t?(n=(0,a.jsx)(S6,{padding:3,tone:i,children:t}),r[2]=i,r[3]=t,r[4]=n):n=r[4],n}let ID=(0,s.memo)(function(e){let t,n=(0,o.c)(9),{directUploads:r,handleOpenDialog:i,hoveringFiles:l,imageUrlBuilder:s,readOnly:d,resolveUploader:c,schemaType:u,value:p}=e;return n[0]!==r||n[1]!==i||n[2]!==l||n[3]!==s||n[4]!==d||n[5]!==c||n[6]!==u||n[7]!==p?(t=(0,a.jsx)(Iz,{directUploads:r,handleOpenDialog:i,hoveringFiles:l,imageUrlBuilder:s,readOnly:d,resolveUploader:c,schemaType:u,value:p}),n[0]=r,n[1]=i,n[2]=l,n[3]=s,n[4]=d,n[5]=c,n[6]=u,n[7]=p,n[8]=t):t=n[8],t});function Iz(e){let t,n,r,i,l,s=(0,o.c)(12),{directUploads:d,handleOpenDialog:c,hoveringFiles:u,imageUrlBuilder:p,readOnly:m,resolveUploader:h,schemaType:f,value:g}=e,{t:C}=iJ();t=u.filter(e=>h(f,e)),n=u.length-t.length,s[0]!==p||s[1]!==g?(r={value:g,imageUrlBuilder:p},s[0]=p,s[1]=g,s[2]=r):r=s[2];let{url:y}=TE(r);s[3]!==C?(i=C("inputs.image.preview-uploaded-image"),s[3]=C,s[4]=i):i=s[4];let x=!g?._upload&&u.length>0,b=n>0||!1===d;return s[5]!==c||s[6]!==m||s[7]!==i||s[8]!==x||s[9]!==b||s[10]!==y?(l=(0,a.jsx)(IE,{alt:i,drag:x,isRejected:b,onDoubleClick:c,readOnly:m,src:y}),s[5]=c,s[6]=m,s[7]=i,s[8]=x,s[9]=b,s[10]=y,s[11]=l):l=s[11],l}let IM=(0,s.memo)(function(e){let t,n,r,i,l,s,d,c,p,m=(0,o.c)(28),{assetSources:h,directUploads:f,onSelectFiles:g,hoveringFiles:C,readOnly:y,renderBrowser:x,resolveUploader:b,schemaType:v}=e;if(m[0]!==C||m[1]!==b||m[2]!==v){let e;m[4]!==b||m[5]!==v?(e=e=>b(v,e),m[4]=b,m[5]=v,m[6]=e):e=m[6],n=C.filter(e),m[0]=C,m[1]=b,m[2]=v,m[3]=n}else n=m[3];t=n,m[7]!==v?(i=ni(v,"options.accept","image/*"),m[7]=v,m[8]=i):i=m[8],r=i;let j=C.length-t.length;m[9]===Symbol.for("react.memo_cache_sentinel")?(l={padding:1},m[9]=l):l=m[9];let w=y?"transparent":"inherit";return m[10]!==C.length?(s=0===C.length?{}:{borderColor:"transparent"},m[10]=C.length,m[11]=s):s=m[11],m[12]!==x?(d=x(),m[12]=x,m[13]=d):d=m[13],m[14]!==r||m[15]!==t||m[16]!==h||m[17]!==f||m[18]!==C||m[19]!==g||m[20]!==y||m[21]!==j||m[22]!==d?(c=(0,a.jsx)(S8,{accept:r,acceptedFiles:t,assetSources:h,browse:d,directUploads:f,hoveringFiles:C,onUpload:g,readOnly:y,rejectedFilesCount:j,type:"image"}),m[14]=r,m[15]=t,m[16]=h,m[17]=f,m[18]=C,m[19]=g,m[20]=y,m[21]=j,m[22]=d,m[23]=c):c=m[23],m[24]!==w||m[25]!==s||m[26]!==c?(p=(0,a.jsx)("div",{style:l,children:(0,a.jsx)(u.Zp,{tone:w,border:!0,paddingX:3,paddingY:2,radius:2,style:s,children:c})}),m[24]=w,m[25]=s,m[26]=c,m[27]=p):p=m[27],p});function IP(e){let t,n,r,i,l,s,d,c,p,m=(0,o.c)(20),{onClearValue:h}=e,{t:f}=iJ();return m[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(u.az,{children:(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.sAQ,{})})}
1618),m[0]=t):t=m[0],m[1]!==f?(n=f("inputs.image.invalid-image-warning.title"),m[1]=f,m[2]=n):n=m[2],m[3]!==n?(r=(0,a.jsx)(u.EY,{size:1,weight:"medium",children:n}),m[3]=n,m[4]=r):r=m[4],m[5]!==f?(i=f("inputs.image.invalid-image-warning.description"),m[5]=f,m[6]=i):i=m[6],m[7]!==i?(l=(0,a.jsx)(u.EY,{size:1,children:i}),m[7]=i,m[8]=l):l=m[8],m[9]!==r||m[10]!==l?(s=(0,a.jsxs)(u.so,{gap:4,marginBottom:4,children:[t,(0,a.jsxs)(u.BJ,{space:3,children:[r,l]})]}),m[9]=r,m[10]=l,m[11]=s):s=m[11],m[12]!==f?(d=f("inputs.image.invalid-image-warning.reset-button.text"),m[12]=f,m[13]=d):d=m[13],m[14]!==h||m[15]!==d?(c=(0,a.jsx)(y.$n,{icon:C.NAP,mode:"ghost",onClick:h,text:d,width:"fill"}),m[14]=h,m[15]=d,m[16]=c):c=m[16],m[17]!==s||m[18]!==c?(p=(0,a.jsxs)(u.Zp,{tone:"caution",padding:4,border:!0,radius:2,children:[s,c]}),m[17]=s,m[18]=c,m[19]=p):p=m[19],p}let IR=(0,s.memo)(function(e){let{assetSources:t,client:n,directUploads:r,elementProps:i,focusPath:o,id:l,imageUrlBuilder:d,members:c,observeAsset:m,onChange:h,onPathFocus:f,path:g,readOnly:C,renderAnnotation:y,renderBlock:x,renderField:b,renderInlineBlock:v,renderInput:j,renderItem:w,renderPreview:_,resolveUploader:k,schemaType:S,value:T}=e,{push:I}=(0,p.dj)(),{t:E}=iJ(),[$,A]=(0,s.useState)(null),[D,z]=(0,s.useState)(!1),[M,P]=(0,s.useState)([]),[R,O]=(0,s.useState)(!1),[V,L]=(0,s.useState)(null),[F,B]=(0,s.useState)(null),[N,Y]=(0,s.useState)(!1),H=(0,s.useRef)(null),Z=(0,s.useRef)(null),U=(0,s.useCallback)(()=>{let e=M.filter(e=>k(S,e)),t=M.length-e.length;return M.length>0&&(t>0||!1===r)?"critical":T?._upload||C||!(M.length>0)?C||T?._upload&&T?.asset?"transparent":"default":"primary"},[r,M,C,k,S,T?._upload,T?.asset]),q=(0,s.useCallback)(()=>{let e=ni(S,"options.hotspot");return"object"==typeof e||!0===e},[S]),J=(0,s.useCallback)(()=>"string"!=typeof g.slice(-1)[0],[g]),W=(0,s.useCallback)(()=>{T?._upload&&h(s3(["_upload"]))},[h,T?._upload]),K=(0,s.useCallback)(()=>{H.current&&(H.current.unsubscribe(),W())},[W]),G=(0,s.useCallback)((e,t,r={})=>{let{label:i,title:a,description:o,creditLine:l,source:s}=r,d={metadata:ni(S,"options.metadata"),storeOriginalFilename:ni(S,"options.storeOriginalFilename"),label:i,title:a,description:o,creditLine:l,source:s};K(),z(!0),h(s5({_type:S.name})),H.current=e.upload(n,t,S,d).subscribe({next:e=>{e.patches&&h(e.patches)},error:e=>{console.error(e),I({status:"error",description:E("inputs.image.upload-error.description"),title:E("inputs.image.upload-error.title")}),W()},complete:()=>{h([s3(["hotspot"]),s3(["crop"]),s3(["media"])]),z(!1)}})},[K,W,n,h,I,S,E]),X=(0,s.useCallback)(()=>{h([s3(["asset"]),s3(["crop"]),s3(["hotspot"]),s3(["media"])])},[h]),Q=(0,s.useCallback)(()=>{let e=Object.keys(T||{}),t=0===e.filter(e=>!["_type","_key","_upload","asset","crop","hotspot","media"].includes(e)).length,n=["asset","media"].concat(e.filter(e=>["crop","hotspot","_upload"].includes(e))).map(e=>s3([e]));h(t&&!J()?s3():n)},[h,T,J]),ee=(0,s.useCallback)(()=>{f(["hotspot"])},[f]),et=(0,s.useCallback)(()=>{f([]),V?.focus()},[V,f]),en=(0,s.useCallback)(e=>{k2({assetsFromSource:e,onChange:h,type:S,resolveUploader:k,uploadWith:G,isImage:!0}),A(null),z(!1)},[h,k,S,G]),er=(0,s.useCallback)(e=>{e.currentTarget===e.target&&e.currentTarget===i.ref?.current&&i.onFocus(e)},[i]),ei=(0,s.useCallback)(()=>{K()},[K]),ea=(0,s.useCallback)(()=>{O(!1),W()},[W]),eo=(0,s.useCallback)(()=>{O(!0)},[]),el=(0,s.useCallback)((e,t)=>{if(0!==t.length&&(A(e),e.Uploader))try{let n=new e.Uploader;Z.current?.unsubscribe(),Z.current={unsubscribe:n.subscribe(e=>{switch(e.type){case"progress":h(s4.from([s7(Math.max(2,e.progress),[bf,"progress"]),s7(new Date().toISOString(),[bf,"updatedAt"])]));break;case"error":e.files.forEach(e=>{console.error(e.error)}),I({status:"error",description:E("asset-sources.common.uploader.upload-failed.description"),title:E("asset-sources.common.uploader.upload-failed.title")});break;case"all-complete":h(s4.from([s3([bf])])),Y(!1)}}),uploader:n},z(!0),h(s4.from(by(t[0]))),n.upload(t,{schemaType:S,onChange:h})}catch(e){h(s4.from([s3([bf])])),z(!1),Z.current?.unsubscribe(),A(null),Z.current=null,I({status:"error",description:E("asset-sources.common.uploader.upload-failed.description"),title:E("asset-sources.common.uploader.upload-failed.title")}),console.error(e)}},[h,I,S,E]);(0,s.useEffect)(()=>()=>{Z.current?.uploader?.abort(),Z.current?.unsubscribe()},[]);let es=(0,s.useCallback)(e=>{A(e)},[]),ed=(0,s.useCallback)(()=>{A(null),F?.focus()},[F]),ec=(0,s.useCallback)(()=>T?(0,a.jsx)(ID,{directUploads:r,handleOpenDialog:ee,hoveringFiles:M,imageUrlBuilder:d,readOnly:C,resolveUploader:k,schemaType:S,value:T}):(0,a.jsx)(a.Fragment,{}),[r,ee,M,d,C,k,S,T]),eu=(0,s.useCallback)(()=>(0,a.jsx)(TO,{assetSources:t,directUploads:r,handleOpenDialog:ee,handleRemoveButtonClick:Q,onSelectFiles:el,handleSelectImageFromAssetSource:es,imageUrlBuilder:d,isImageToolEnabled:q(),isMenuOpen:N,observeAsset:m,readOnly:C,schemaType:S,setHotspotButtonElement:L,setMenuButtonElement:B,setMenuOpen:Y,value:T}),[t,r,ee,Q,el,es,d,q,N,m,C,S,T]),ep=(0,s.useCallback)(()=>(0,a.jsx)(TN,{assetSources:t,readOnly:C,id:l,setMenuOpen:Y,schemaType:S,handleSelectImageFromAssetSource:es}),[t,es,l,C,S]),em=(0,s.useCallback)(()=>(0,a.jsx)(IM,{assetSources:t,directUploads:r,onSelectFiles:el,hoveringFiles:M,readOnly:C,renderBrowser:ep,resolveUploader:k,schemaType:S}),[t,r,el,M,C,ep,k,S]),eh=(0,s.useCallback)(e=>(0,a.jsx)(Ti,{uploadState:e,onCancel:D?ei:void 0,onStale:eo}),[ei,eo,D]),ef=(0,s.useCallback)(()=>T&&"u">typeof T.asset&&!T?._upload&&!(0,e3.LG)(T)?()=>(0,a.jsx)(IP,{onClearValue:X}):e=>(0,a.jsx)(Tz,{assetSources:t,directUploads:!1!==r,elementProps:i,handleClearUploadState:ea,handleFileTargetFocus:er,hoveringFiles:M,imageUrlBuilder:d,inputProps:e,isStale:R,onSelectFiles:el,readOnly:C,renderAssetMenu:eu,renderPreview:ec,renderUploadPlaceholder:em,renderUploadState:eh,schemaType:S,setHoveringFiles:P,selectedAssetSource:$,tone:U(),value:T}),[t,r,i,U,X,ea,er,el,M,d,R,C,eu,ec,em,eh,S,$,T]),eg=(0,s.useCallback)(t=>(0,a.jsx)(II,{isImageToolEnabled:q(),handleCloseDialog:et,imageInputProps:e,inputProps:t}),[et,q,e]),eC=(0,s.useCallback)(()=>(0,a.jsx)(TF,{handleAssetSourceClosed:ed,handleSelectAssetFromSource:en,isUploading:D,observeAsset:m,schemaType:S,selectedAssetSource:$,uploader:Z.current?.uploader,value:T}),[ed,en,D,m,S,$,T]),ey=(0,s.useMemo)(()=>c.find(e=>"field"===e.kind&&"hotspot"===e.name),[c]);return(0,a.jsxs)(u.BJ,{space:5,"data-testid":"image-input",children:[c.map(e=>"field"===e.kind&&("crop"===e.name||"hotspot"===e.name)?null:"field"===e.kind?(0,a.jsx)(bz,{member:e,renderAnnotation:y,renderBlock:x,renderInlineBlock:v,renderInput:"asset"===e.name?ef():j,renderField:"asset"===e.name?IO:b,renderItem:w,renderPreview:_},e.key):"fieldSet"===e.kind?(0,a.jsx)(b5,{member:e,renderAnnotation:y,renderBlock:x,renderField:b,renderInlineBlock:v,renderInput:j,renderItem:w,renderPreview:_},e.key):"error"===e.kind?(0,a.jsx)(b2,{member:e},e.key):(0,a.jsx)(a.Fragment,{children:E("inputs.image.error.unknown-member-kind",{kind:e.kind})})),ey&&"hotspot"===o[0]&&(0,a.jsx)(b4,{...e,absolutePath:ey.field.path,renderInput:eg}),$&&eC()]})});function IO({children:e}){return e}let IV={document:ke,object:ke,array:function(e){let t,n=(0,o.c)(4);
1618if(Array.isArray(e.schemaType.options?.list)){let t;return n[0]!==e?(t=(0,a.jsx)(_O,{...e}),n[0]=e,n[1]=t):t=n[1],t}return n[2]!==e?(t=(0,_.gw)(e.schemaType)?(0,a.jsx)(_q,{...e}):(0,a.jsx)(_A,{...e}),n[2]=e,n[3]=t):t=n[3],t},boolean:function(e){let t,n,r,i,l,s,d,c,p,m,h=(0,o.c)(39),{t:f}=iJ(),{focused:g,__internal_comments:C,hovered:x,onMouseEnter:b,onMouseLeave:v,actions:j,__internal_slot:w}=dR(),{id:_,value:k,schemaType:S,readOnly:T,elementProps:I,validation:E,presence:$}=e,A=S.options?.layout||"switch",D="boolean"!=typeof k,z=k||!1,M="checkbox"===A?u.Sc:u.dO,P=T?"transparent":void 0;h[0]===Symbol.for("react.memo_cache_sentinel")?(t={paddingTop:"0.85rem"},h[0]=t):t=h[0],h[1]===Symbol.for("react.memo_cache_sentinel")?(n={margin:-4},h[1]=n):n=h[1],h[2]!==M||h[3]!==z||h[4]!==I||h[5]!==D||h[6]!==T||h[7]!==S.title?(r=(0,a.jsx)(u.az,{padding:3,style:t,children:(0,a.jsx)(M,{label:S.title,...I,checked:z,readOnly:T,indeterminate:D,style:n})}),h[2]=M,h[3]=z,h[4]=I,h[5]=D,h[6]=T,h[7]=S.title,h[8]=r):r=h[8];let R=r;h[9]!==R||h[10]!==T||h[11]!==f?(i=T?(0,a.jsx)(y.m_,{content:f("inputs.boolean.disabled"),children:R}):R,h[9]=R,h[10]=T,h[11]=f,h[12]=i):i=h[12];let O=!!g;return h[13]!==_||h[14]!==S.deprecated||h[15]!==S.description||h[16]!==S.title||h[17]!==E?(l=(0,a.jsx)(dj,{deprecated:S.deprecated,description:S.description,inputId:_,validation:E,title:S.title}),h[13]=_,h[14]=S.deprecated,h[15]=S.description,h[16]=S.title,h[17]=E,h[18]=l):l=h[18],h[19]!==j||h[20]!==C||h[21]!==x||h[22]!==_||h[23]!==$||h[24]!==w||h[25]!==O||h[26]!==l?(s=(0,a.jsx)(dH,{__internal_comments:C,__internal_slot:w,actions:j,fieldFocused:O,fieldHovered:x,presence:$,inputId:_,content:l}),h[19]=j,h[20]=C,h[21]=x,h[22]=_,h[23]=$,h[24]=w,h[25]=O,h[26]=l,h[27]=s):s=h[27],h[28]!==b||h[29]!==v||h[30]!==s?(d=(0,a.jsx)(u.az,{flex:1,onMouseEnter:b,onMouseLeave:v,paddingY:2,children:s}),h[28]=b,h[29]=v,h[30]=s,h[31]=d):d=h[31],h[32]===Symbol.for("react.memo_cache_sentinel")?(c=(0,a.jsx)(_J,{paddingX:3,paddingY:1,children:(0,a.jsx)(dU,{maxAvatars:1,position:"top"})}),h[32]=c):c=h[32],h[33]!==i||h[34]!==d?(p=(0,a.jsxs)(u.so,{children:[i,d,c]}),h[33]=i,h[34]=d,h[35]=p):p=h[35],h[36]!==p||h[37]!==P?(m=(0,a.jsx)(u.Zp,{border:!0,"data-testid":"boolean-input",radius:2,tone:P,children:p}),h[36]=p,h[37]=P,h[38]=m):m=h[38],m},number:_G,text:function(e){let t,n=(0,o.c)(6),{schemaType:r,validationError:i,value:l,elementProps:s}=e,d=l||"",c="number"==typeof r.rows?r.rows:10;return n[0]!==s||n[1]!==r.placeholder||n[2]!==d||n[3]!==c||n[4]!==i?(t=(0,a.jsx)(kl,{customValidity:i,value:d,placeholder:r.placeholder,rows:c,...s}),n[0]=s,n[1]=r.placeholder,n[2]=d,n[3]=c,n[4]=i,n[5]=t):t=n[5],t},email:function(e){let t,n=(0,o.c)(3),{validationError:r,elementProps:i}=e;return n[0]!==i||n[1]!==r?(t=(0,a.jsx)(u.ks,{...i,type:"email",inputMode:"email",customValidity:r}),n[0]=i,n[1]=r,n[2]=t):t=n[2],t},datetime:function(e){let t,n,r,i,l,s,d,c,p,m,h,f,g,C,y,x,b,v,j,w,_,k=(0,o.c)(73),{onChange:S,schemaType:T,value:I,elementProps:E,id:$,validation:A,changed:D,path:z,presence:M}=e,P=void 0===M?i_:M,{focused:R,__internal_comments:O,hovered:V,onMouseEnter:L,onMouseLeave:F,actions:B,__internal_slot:N}=dR();k[0]!==T.options?(t=function(e={}){let t=e.displayTimeZone&&(0,e7.t$)(e.displayTimeZone)?e.displayTimeZone:void 0;return e.displayTimeZone&&!t&&console.warn(`Invalid time zone "${e.displayTimeZone}" supplied to datetime input, defaulting to local time zone or a previously stored preference`),{dateFormat:e.dateFormat||e7.D2,timeFormat:e.timeFormat||e7.EN,timeStep:"timeStep"in e&&Number(e.timeStep)||1,displayTimeZone:t,allowTimeZoneSwitch:void 0===e.allowTimeZoneSwitch||e.allowTimeZoneSwitch}}(T.options),k[0]=T.options,k[1]=t):t=k[1];let{dateFormat:Y,timeFormat:H,timeStep:Z,displayTimeZone:U,allowTimeZoneSwitch:q}=t,J=void 0===q||q,{title:W}=T,{t:K}=iJ();k[2]===Symbol.for("react.memo_cache_sentinel")?(n=["_id"],k[2]=n):n=k[2];let G=ib(dJ(n)),X=`${G}.${$}${J?"":".fixed"}`;k[3]!==I?(i=I?new Date(I):void 0,k[3]=I,k[4]=i):i=k[4],k[5]!==U||k[6]!==X||k[7]!==i?(l={type:"input",defaultTimeZone:U,id:X,relativeDate:i},k[5]=U,k[6]=X,k[7]=i,k[8]=l):l=k[8];let{timeZone:Q}=sh(r=l);k[9]!==S||k[10]!==Z?(s=e=>{let t=e;null!==t&&Z>1&&(t=function(e,t){if(!t||1===t)return e;let n=(0,tg.A)(e),r=(0,tC.A)(n),i=r%t;return dK(0!==i?(0,th.A)(n,r-i):n)}(t,Z)),S(null===t?s3():s7(t))}
1618,k[9]=S,k[10]=Z,k[11]=s):s=k[11];let ee=s;k[12]!==Y||k[13]!==H||k[14]!==Q.name?(d=e=>(0,e7.GP)(e,`${Y} ${H}`,{timeZone:Q.name}),k[12]=Y,k[13]=H,k[14]=Q.name,k[15]=d):d=k[15];let et=d;k[16]!==Q.name?(_=Q.name,p=e=>{var t;let{date:n}=(0,e7.qg)(e,void 0,_);return n&&(t=n)instanceof Date&&!isNaN(t.valueOf())?{isValid:!0,date:n}:{isValid:!1,error:`Invalid date value: "${e}"`}},k[16]=Q.name,k[17]=p):p=k[17],c=p,k[18]!==Y||k[19]!==H||k[20]!==Q.name?(m=e=>(0,e7.qg)(e,`${Y} ${H}`,Q.name),k[18]=Y,k[19]=H,k[20]=Q.name,k[21]=m):m=k[21];let en=m;k[22]!==K?(f=de(K),k[22]=K,k[23]=f):f=k[23],h=f;let er=`field-${$}`,ei=!!R;k[24]!==J||k[25]!==U||k[26]!==K||k[27]!==Q.alternativeName||k[28]!==Q.offset||k[29]!==r||k[30]!==W?(g=U&&(0,a.jsx)(di,{children:(0,a.jsx)(dr,{tooltipContent:(0,a.jsx)(an,{t:K,i18nKey:"time-zone.time-zone-tooltip-input",values:{title:W,alternativeName:Q.alternativeName,offset:Q.offset}}),allowTimeZoneSwitch:J,useElementQueries:!0,timeZoneScope:r})}),k[24]=J,k[25]=U,k[26]=K,k[27]=Q.alternativeName,k[28]=Q.offset,k[29]=r,k[30]=W,k[31]=g):g=k[31],k[32]!==$||k[33]!==T.deprecated||k[34]!==T.description||k[35]!==T.title||k[36]!==g||k[37]!==A?(C=(0,a.jsx)(u.BJ,{space:2,children:(0,a.jsx)(dj,{deprecated:T.deprecated,description:T.description,inputId:$,validation:A,title:T.title,suffix:g})}),k[32]=$,k[33]=T.deprecated,k[34]=T.description,k[35]=T.title,k[36]=g,k[37]=A,k[38]=C):C=k[38],k[39]!==B||k[40]!==O||k[41]!==V||k[42]!==$||k[43]!==P||k[44]!==N||k[45]!==ei||k[46]!==C?(y=(0,a.jsx)(u.az,{flex:1,paddingY:2,children:(0,a.jsx)(dH,{__internal_comments:O,__internal_slot:N,actions:B,fieldFocused:ei,fieldHovered:V,presence:P,inputId:$,content:C})}),k[39]=B,k[40]=O,k[41]=V,k[42]=$,k[43]=P,k[44]=N,k[45]=ei,k[46]=C,k[47]=y):y=k[47],k[48]===Symbol.for("react.memo_cache_sentinel")?(x=(0,a.jsx)(dU,{maxAvatars:1,position:"top"}),k[48]=x):x=k[48];let ea=!!R;return k[49]!==h||k[50]!==c||k[51]!==E||k[52]!==et||k[53]!==ee||k[54]!==en||k[55]!==T.placeholder||k[56]!==Z||k[57]!==r||k[58]!==I?(b=(0,a.jsx)("div",{"data-testid":"change-bar-wrapper",children:(0,a.jsx)("div",{"data-testid":"change-bar__field-wrapper",children:(0,a.jsx)(s9,{...E,calendarLabels:h,deserialize:c,formatInputValue:et,onChange:ee,parseInputValue:en,placeholder:T.placeholder,serialize:dK,timeStep:Z,selectTime:!0,value:I,timeZoneScope:r})})}),k[49]=h,k[50]=c,k[51]=E,k[52]=et,k[53]=ee,k[54]=en,k[55]=T.placeholder,k[56]=Z,k[57]=r,k[58]=I,k[59]=b):b=k[59],k[60]!==D||k[61]!==z||k[62]!==ea||k[63]!==b?(v=(0,a.jsx)(El,{hasFocus:ea,isChanged:D,path:z,children:b}),k[60]=D,k[61]=z,k[62]=ea,k[63]=b,k[64]=v):v=k[64],k[65]!==y||k[66]!==v?(j=(0,a.jsxs)(u.so,{direction:"column",children:[y,x,v]}),k[65]=y,k[66]=v,k[67]=j):j=k[67],k[68]!==L||k[69]!==F||k[70]!==er||k[71]!==j?(w=(0,a.jsx)(dW,{onMouseEnter:L,onMouseLeave:F,"data-testid":er,radius:2,children:j}),k[68]=L,k[69]=F,k[70]=er,k[71]=j,k[72]=w):w=k[72],w},date:function(e){let t,n,r,i,l,s,d,c=(0,o.c)(20),{readOnly:u,onChange:p,schemaType:m,elementProps:h,value:f,id:g}=e,C=m.options?.dateFormat||e7.D2,{t:y}=iJ();c[0]!==g?(t={type:"input",id:g},c[0]=g,c[1]=t):t=c[1];let x=t;c[2]!==p?(n=e=>{p(null===e?s3():s7(e))},c[2]=p,c[3]=n):n=c[3];let b=n;c[4]!==C?(r=e=>(0,e7.GP)(e,C),c[4]=C,c[5]=r):r=c[5];let v=r;c[6]!==C?(i=e=>(0,e7.qg)(e,C),c[6]=C,c[7]=i):i=c[7];let j=i;return c[8]!==y?(s=de(y),c[8]=y,c[9]=s):s=c[9],l=s,c[10]!==l||c[11]!==h||c[12]!==v||c[13]!==b||c[14]!==j||c[15]!==u||c[16]!==m.placeholder||c[17]!==x||c[18]!==f?(d=(0,a.jsx)(s9,{...h,deserialize:dt,formatInputValue:v,onChange:b,parseInputValue:j,placeholder:m.placeholder,calendarLabels:l,readOnly:u,selectTime:!1,serialize:dn,value:f,timeZoneScope:x}),c[10]=l,c[11]=h,c[12]=v,c[13]=b,c[14]=j,c[15]=u,c[16]=m.placeholder,c[17]=x,c[18]=f,c[19]=d):d=c[19],d},url:function(e){let t,n=(0,o.c)(4),{schemaType:r,validationError:i,elementProps:l}=e,s=_W(r,"uri")?.constraint?.options?.allowRelative?"text":"url";return n[0]!==l||n[1]!==s||n[2]!==i?(t=(0,a.jsx)(u.ks,{type:s,inputMode:"url",customValidity:i,...l}),n[0]=l,n[1]=s,n[2]=i,n[3]=t):t=n[3],t},image:function(e){let t,n,r,i,l,s=(0,o.c)(15),d=e.schemaType.options?.sources,{image:c}=o$().__internal,u=z4(),p=ee7(a7),m=c.directUploads;s[0]!==m?(t=(e,t)=>
1618m?bS(e,t):null,s[0]=m,s[1]=t):t=s[1];let h=t,f=d||c.assetSources;s[2]!==p?(r=e8(p),s[2]=p,s[3]=r):r=s[3],n=r,s[4]!==u?(i=e=>bm(u,e),s[4]=u,s[5]=i):i=s[5];let g=i,{t:C}=iJ();return s[6]!==f||s[7]!==n||s[8]!==p||s[9]!==g||s[10]!==e||s[11]!==h||s[12]!==m||s[13]!==C?(l=(0,a.jsx)(IR,{...e,t:C,client:p,assetSources:f,directUploads:m,imageUrlBuilder:n,observeAsset:g,resolveUploader:h}),s[6]=f,s[7]=n,s[8]=p,s[9]=g,s[10]=e,s[11]=h,s[12]=m,s[13]=C,s[14]=l):l=s[14],l},file:function(e){let t,n,r,i=(0,o.c)(11),l=e.schemaType.options?.sources,s=z4(),{file:d}=o$().__internal,c=ee7(a7);i[0]!==d.directUploads?(t=(e,t)=>d.directUploads?bS(e,t):null,i[0]=d.directUploads,i[1]=t):t=i[1];let u=t,p=l||d.assetSources;i[2]!==s?(n=e=>bm(s,e),i[2]=s,i[3]=n):n=i[3];let m=n;return i[4]!==p||i[5]!==c||i[6]!==d.directUploads||i[7]!==m||i[8]!==e||i[9]!==u?(r=(0,a.jsx)(TI,{...e,client:c,assetSources:p,directUploads:d.directUploads,observeAsset:m,resolveUploader:u}),i[4]=p,i[5]=c,i[6]=d.directUploads,i[7]=m,i[8]=e,i[9]=u,i[10]=r):r=i[10],r},string:ko,slug:function(e){let t,n,r,i,d,c,p,m,h,f,g,C,x,b=(0,o.c)(40),v=OC(),{path:j,value:w,schemaType:_,validation:k,onChange:S,readOnly:T,elementProps:I,focused:E,focusPath:$}=e,A=_.options?.source;b[0]!==k?(n=k.filter(ka),b[0]=k,b[1]=n):n=b[1],t=n;let D=(0,s.useRef)(null),z=function(){let e,t=(0,o.c)(6),{getClient:n}=co(),r=Cm(),i=Cl(),a=oG(),l=oK();return t[0]!==i||t[1]!==l||t[2]!==n||t[3]!==a||t[4]!==r?(e={projectId:a,dataset:l,getClient:n,schema:r,currentUser:i},t[0]=i,t[1]=l,t[2]=n,t[3]=a,t[4]=r,t[5]=e):e=t[5],e}(),{t:M}=iJ();b[2]!==S||b[3]!==_.name?(r=e=>{if(!e)return void S(s4.from(s3([])));S(s4.from([s5({_type:_.name}),s7(e,["current"])]))},b[2]=S,b[3]=_.name,b[4]=r):r=b[4];let P=r;b[5]!==v||b[6]!==j||b[7]!==_||b[8]!==z||b[9]!==A||b[10]!==M||b[11]!==P?(i=()=>{if(!A)return Promise.reject(Error(M("inputs.slug.error.missing-source",{schemaType:_.name})));let e=v([])||{_type:_.name},t=function(e,t,n){let r=e.slice(0,-1),i=l.Jt(t,r);return{parentPath:r,parent:i,...n}}(j,e,z);return ki(A,e,t).then(e=>kr(e||"",_,t)).then(e=>P(e))},b[5]=v,b[6]=j,b[7]=_,b[8]=z,b[9]=A,b[10]=M,b[11]=P,b[12]=i):i=b[12];let[R,O]=function(e){let t,n,r=(0,o.c)(5),[i,a]=(0,s.useState)(null),l=(0,s.useRef)(0);r[0]!==e?(t=t=>{let n=l.current=l.current+1;a({status:"pending"}),Promise.resolve().then(()=>e(t)).then(e=>{n===l.current&&a({status:"complete",result:e})},e=>{n===l.current&&a({status:"error",error:e})})},r[0]=e,r[1]=t):t=r[1];let d=t;return r[2]!==i||r[3]!==d?(n=[i,d],r[2]=i,r[3]=d,r[4]=n):n=r[4],n}(i),V=R?.status==="pending";b[13]!==P?(d=e=>P(e.currentTarget.value),b[13]=P,b[14]=d):d=b[14];let L=d;b[15]===Symbol.for("react.memo_cache_sentinel")?(c=(e,t)=>{!e&&t&&D.current?.focus()},b[15]=c):c=b[15],xZ(E,c),b[16]===Symbol.for("react.memo_cache_sentinel")?(p=(e,t)=>{let n=void 0===e?[]:e;n!==t&&Array.isArray(n)&&Array.isArray(t)&&0===n.length&&1===t.length&&"current"===t[0]&&D.current?.focus()},b[16]=p):p=b[16],xZ($,p),b[17]===Symbol.for("react.memo_cache_sentinel")?(m=()=>D.current,b[17]=m):m=b[17],(0,s.useImperativeHandle)(I.ref,m);let F=t.length>0?t[0].message:"",B=w?.current||"";return b[18]!==I||b[19]!==L||b[20]!==V||b[21]!==T||b[22]!==F||b[23]!==B?(h=(0,a.jsx)(u.ks,{customValidity:F,disabled:V,onChange:L,value:B,readOnly:T,...I,ref:D}),b[18]=I,b[19]=L,b[20]=V,b[21]=T,b[22]=F,b[23]=B,b[24]=h):h=b[24],b[25]!==R?(f=R?.status==="error"&&(0,a.jsx)(u.Zp,{padding:2,tone:"critical",children:R.error.message}),b[25]=R,b[26]=f):f=b[26],b[27]!==h||b[28]!==f?(g=(0,a.jsxs)(u.az,{flex:1,children:[h,f]}),b[27]=h,b[28]=f,b[29]=g):g=b[29],b[30]!==R?.status||b[31]!==O||b[32]!==V||b[33]!==T||b[34]!==A||b[35]!==M?(C=A&&(0,a.jsx)(y.$n,{mode:"ghost",type:"button",disabled:T||V,onClick:O,size:"large",text:R?.status==="pending"?M("inputs.slug.action.generating"):M("inputs.slug.action.generate")}),b[30]=R?.status,b[31]=O,b[32]=V,b[33]=T,b[34]=A,b[35]=M,b[36]=C):C=b[36],b[37]!==g||b[38]!==C?(x=(0,a.jsx)(u.BJ,{space:3,children:(0,a.jsxs)(u.so,{gap:1,children:[g,C]})}),b[37]=g,b[38]=C,b[39]=x):x=b[39],x},crossDatasetReference:function(e){let{path:t,schemaType:n}=e,r=co(),i=r.getClient(a7),l=z4(),d=r.getClient,{strategy:c}=r.search,u=(0,s.useMemo)(()=>i.withConfig({dataset:n.dataset,apiVersion:"2023-11-13",ignoreBrowserTokenWarning:!0}).clone(),[i,n.dataset]),p=hK(u),m=function(e){let t,n,r=(0,o.c)(3),i=(0,s.useRef)(e);return r[0]!==e?(t=()=>{i.current=e},n=[e],r[0]=e,r[1]=t,r[2]=n):(t=r[1],n=r[2]),(0,s.useEffect)(t,n),i}(dJ([])),h=(0,s.useCallback)(e=>(0,Q.H)(k$(n.options,m.current,t,d)).pipe((0,ew.Z)(({filter:t,params:r})=>{var i;return i={...n.options,filter:t,params:r,tag:"search.cross-dataset-reference",maxFieldDepth:p,strategy:c},mT(n.to,u,{...i,maxDepth:i.maxFieldDepth})(e,{includeDrafts:!1,isCrossDataset:!0}).pipe((0,E.T)(({hits:e})=>e.map(({hit:e})=>e)),(0,E.T)(e=>iv(e)),(0,E.T)(e=>e.map(e=>({id:e.id,type:e.type,published:e.published}))))}),(0,M.W)(e=>{let t=e.details&&"queryParseError"===e.details.type;return n.options?.filter&&t&&(e.message='Invalid reference filter, please check the custom "filter" option'),(0,L.$)(e)})),[n,m,t,d,u,p,c]),f=(0,s.useMemo)(()=>(function(e){let{client:t,documentPreviewStore:n}=e,{dataset:r,projectId:i}=t.config(),a=r&&i?{dataset:r,projectId:i}:void 0;return function(e,r){return(e._type?(0,k.of)(e):n.observeDocumentTypeFromId(e._id,a).pipe((0,E.T)(t=>({_id:e._id,_type:t})))).pipe((0,z.n)(i=>
1618{if(!i._type)return(function(e,t){let n={uri:e.getDataUrl("doc",t),json:!0,query:{excludeContent:"true"},tag:"cross-dataset-refs.availability"};return e.observable.request(n).pipe((0,E.T)(e=>{let n=nR(e.omitted||[],e=>e.id)[t];return n?"existence"===n.reason?kE:"permission"===n.reason?kI:null:kT}))})(t,e._id).pipe((0,E.T)(t=>({id:e._id,type:void 0,availability:t,preview:{published:void 0}})));let o=r.to.find(e=>e.type===i._type),l=DU(o?.preview)||[],s=n.observePaths(e,l,a).pipe((0,E.T)(e=>e&&D0(e,o)));return(0,eo.z)([s]).pipe((0,E.T)(([t])=>({type:i._type,id:e._id,availability:kT,preview:{published:iI(t)?t:void 0}})))}))}})({client:u,documentPreviewStore:l}),[u,l]);return(0,a.jsx)(kS,{...e,getReferenceInfo:f,onSearch:h})},globalDocumentReference:function(e){let{path:t,schemaType:n}=e,r=co(),i=r.getClient({apiVersion:"2025-02-19"}),l=r.getClient,{strategy:d}=r.search,c=(0,s.useMemo)(()=>(function(e,t){if("dataset"===t.resourceType){let[n,r]=t.resourceId.split(".",2);return e.withConfig({apiVersion:"X","~experimental_resource":{type:"dataset",id:`${n}.${r}`}})}if("media-library"===t.resourceType||"canvas"===t.resourceType)return e.withConfig({apiVersion:"2025-02-19","~experimental_resource":{type:t.resourceType,id:t.resourceId}});throw Error(`Invalid resource type "${t.resourceType}"`)})(i,n),[i,n]),u=function(e){let t,n,r=(0,o.c)(3),i=(0,s.useRef)(e);return r[0]!==e?(t=()=>{i.current=e},n=[e],r[0]=e,r[1]=t,r[2]=n):(t=r[1],n=r[2]),(0,s.useEffect)(t,n),i}(dJ([])),p=(0,s.useCallback)(e=>(0,Q.H)(kQ(n.options,u.current,t,l)).pipe((0,ew.Z)(({filter:t,params:r})=>{var i;return i={...n.options,filter:t,params:r,tag:"search.global-document-reference",strategy:d},(function(e,t,n,r){let{query:i,params:a,sortOrder:o}=mC({types:n},t,r);return e.observable.fetch(i,a).pipe((0,E.T)(e=>{let t=e.length>10,n=t?e.at(-2):e.at(-1);return{type:"groq2024",hits:e.map(e=>({hit:e})).slice(0,10),nextCursor:t?my({lastResult:n,sortOrder:o}):void 0}}))})(c,e,n.to,i).pipe((0,E.T)(({hits:e})=>e.map(({hit:e})=>e)),(0,E.T)(e=>iv(e)),(0,E.T)(e=>e.map(e=>({id:e.id,type:e.type,published:e.published}))))}),(0,M.W)(e=>{let t=e.details&&"queryParseError"===e.details.type;return n.options?.filter&&t&&(e.message='Invalid reference filter, please check the custom "filter" option'),(0,L.$)(e)})),[n,u,t,l,c,d]),m=(0,s.useMemo)(()=>(function(e){let{client:t}=e;return function(e,n){return(e._type?(0,k.of)(e):t.observable.getDocument(e._id).pipe((0,E.T)(t=>({_id:e._id,_type:t?._type})))).pipe((0,z.n)(r=>{if(!r._type)return(function(e,t){let n={uri:e.getDataUrl("doc",t),json:!0,excludeContent:"true",tag:"gdr.availability"};return e.observable.request(n).pipe((0,E.T)(e=>{let n=nR(e.omitted||[],e=>e.id)[t];return n?"existence"===n.reason?kX:"permission"===n.reason?kG:null:kK}))})(t,e._id).pipe((0,E.T)(t=>({id:e._id,type:void 0,availability:t,preview:{published:void 0}})));let i=n.to.find(e=>e.type===r._type);if(!i)return(0,k.of)({id:e._id,type:r._type,availability:kK,preview:{published:void 0}});let a=DU(i?.preview)||[],o=t.observable.listen("*",{},{includeResult:!0,tag:"gdr.preview",events:["mutation","welcome"]}),l=kW({observeFields:function(e){let{client:t,listener:n}=e;return function(e,r){return n.pipe((0,z.n)(n=>{if("welcome"===n.type)return t.observable.getDocument(e,{tag:"gdr.get-document"}).pipe((0,E.T)(e=>e||null));if("mutation"!==n.type)return I.w;let r=n.result;return r?r.documentId!==e?I.w:"disappear"===r.transition?(0,k.of)(null):(0,k.of)(r):I.w}))}}({client:t,listener:o})})(e,a).pipe((0,E.T)(e=>e?D0(e,i):null));return(0,eo.z)([l]).pipe((0,E.T)(([t])=>({type:r._type,id:e._id,availability:kK,preview:{published:iI(t)?t:void 0}})))}))}})({client:c}),[c]);return(0,a.jsx)(kq,{...e,getReferenceInfo:m,onSearch:p})}},IL=(0,eQ.g_)({version:1,name:"Portable Text Editor Expanded",description:"The portable text editor was expanded"}),IF=(0,eQ.g_)({version:1,name:"Portable Text Editor Collapsed",description:"The portable text editor was collapsed"}),IB=(0,eQ.g_)({version:1,name:"Portable Text Editor Invalid Value Ignored",description:"The portable text got an invalid value from the form and pressed button to ignore it"}),IN=(0,eQ.g_)({version:1,name:"Portable Text Editor Invalid Value Resolved",description:"The portable text got an invali
1618d value from the form and pressed button to resolve it."}),IY=(0,eQ.g_)({name:"New Draft Created",version:1,description:"User created a new draft"}),IH=g.I4.div`
1619  position: relative;
1620`,IZ=g.I4.div`
1621  z-index: 13;
1622  opacity: 0;
1623  transition: opacity 300ms linear;
1624`,IU=(0,g.I4)(u.Zp)`
1625  border: 1px solid var(--card-border-color);
1626  position: absolute;
1627  top: 0;
1628  left: 0;
1629  width: 100%;
1630  height: 100%;
1631  z-index: 12;
1632  transition: opacity 150ms ease-in-out;
1633  opacity: 0;
1634  box-sizing: border-box;
1635`,Iq=(0,g.I4)(u.so)`
1636  position: absolute;
1637  top: 0;
1638  left: 0;
1639  width: 100%;
1640  height: 100%;
1641
1642  &:hover,
1643  &:focus {
1644    & ${IU} {
1645      opacity: 0.9;
1646    }
1647
1648    & ${IZ} {
1649      opacity: 1;
1650    }
1651  }
1652`;function IJ(e){let t,n,r,i,l,d,c,p,m,h,f,g=(0,o.c)(25),{children:C,message:y,onActivate:x,isOverlayActive:b}=e,[v,j]=(0,s.useState)(!1),{t:w}=iJ();g[0]!==x?(t=()=>{x&&x()},g[0]=x,g[1]=t):t=g[1];let _=t;g[2]!==b||g[3]!==x?(n=e=>{b&&"Space"===e.code&&x&&(e.preventDefault(),x())},g[2]=b,g[3]=x,g[4]=n):n=g[4];let k=n;g[5]!==b||g[6]!==x?(r=()=>{b&&x&&x()},g[5]=b,g[6]=x,g[7]=r):r=g[7];let S=r;g[8]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{j(!0)},g[8]=i):i=g[8];let T=i;g[9]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{j(!1)},g[9]=l):l=g[9];let I=l;c="u">typeof window&&"ontouchstart"in window||"u">typeof navigator&&navigator.maxTouchPoints>0?"tap":v?"click-focused":"click",g[10]!==y||g[11]!==c||g[12]!==w?(p=y||w("inputs.portable-text.activate-on-focus-message",{context:c}),g[10]=y,g[11]=c,g[12]=w,g[13]=p):p=g[13];let E=p;return g[14]!==E?(m=(0,a.jsx)(u.EY,{weight:"medium",children:E}),g[14]=E,g[15]=m):m=g[15],d=m,g[16]!==b||g[17]!==d?(h=b&&(0,a.jsxs)(Iq,{"data-testid":"activate-overlay",tabIndex:0,align:"center",justify:"center",children:[(0,a.jsx)(IU,{radius:2}),(0,a.jsx)(IZ,{children:d})]}),g[16]=b,g[17]=d,g[18]=h):h=g[18],g[19]!==C||g[20]!==_||g[21]!==S||g[22]!==k||g[23]!==h?(f=(0,a.jsxs)(IH,{onBlur:I,onClick:_,onFocus:T,onKeyDown:k,onDragEnter:S,children:[h,C]}),g[19]=C,g[20]=_,g[21]=S,g[22]=k,g[23]=h,g[24]=f):f=g[24],f}let IW=g.I4.div(e=>{let{color:t,input:n,radius:r}=(0,tZ.JW)(e.theme),i={color:t.input.default.enabled.border,width:n.border.width};return(0,g.AH)`
1653    --input-box-shadow: ${jM(i)};
1654
1655    position: relative;
1656
1657    & [data-wrapper] {
1658      overflow: hidden;
1659      overflow: clip;
1660      position: relative;
1661      z-index: 1;
1662      padding: ${n.border.width}px;
1663    }
1664
1665    & [data-border] {
1666      position: absolute;
1667      top: 0;
1668      left: 0;
1669      right: 0;
1670      bottom: 0;
1671      box-shadow: var(--input-box-shadow);
1672      z-index: 2;
1673      border-radius: ${r[2]}px;
1674      pointer-events: none;
1675    }
1676
1677    &:not([data-read-only])[data-focused] [data-border] {
1678      --input-box-shadow: ${jP({base:t,border:i,focusRing:n.text.focusRing})};
1679    }
1680  `}),IK=(0,g.I4)(u.Wd)`
1681  position: absolute;
1682  top: 0;
1683  left: 0;
1684  right: 0;
1685  bottom: 0;
1686
1687  & > div {
1688    height: 100%;
1689  }
1690`;function IG(){let e,t=(0,o.c)(1),n=(0,s.useContext)(c.rf);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={},t[0]=e):e=t[0],(0,eH.J)(n,e)}let IX=(0,s.forwardRef)(function(e,t){let n,r,i,l,d,u,p,m,h,f,g,C,y=(0,o.c)(22);y[0]!==e?({as:i,onScroll:n,...r}=e,y[0]=e,y[1]=n,y[2]=r,y[3]=i):(n=y[1],r=y[2],i=y[3]);let x=void 0===i?"div":i,b=(0,s.useRef)(null);y[4]===Symbol.for("react.memo_cache_sentinel")?(l=()=>b.current,y[4]=l):l=y[4],(0,s.useImperativeHandle)(t,l);let v=(0,s.useContext)(c.z_),[j]=(0,s.useState)(I1);return y[5]!==j||y[6]!==n?(d=()=>{if(n)return j.subscribe(n)},u=[j,n],y[5]=j,y[6]=n,y[7]=d,y[8]=u):(d=y[7],u=y[8]),(0,s.useEffect)(d,u),y[9]!==j||y[10]!==v?(p=()=>{if(v)return j.subscribe(v.publish)},m=[v,j],y[9]=j,y[10]=v,y[11]=p,y[12]=m):(p=y[11],m=y[12]),(0,s.useEffect)(p,m),y[13]!==j?(h=()=>{let e=e=>{j.publish(e)},t=b.current;if(t)return t.addEventListener("scroll",e,{passive:!0,capture:!0}),()=>{t.removeEventListener("scroll",e)}},f=[j,b],y[13]=j,y[14]=h,y[15]=f):(h=y[14],f=y[15]),(0,s.useEffect)(h,f),y[16]!==x||y[17]!==r?(g=(0,a.jsx)(x,{"data-testid":"scroll-container",...r,ref:b}),y[16]=x,y[17]=r,y[18]=g):g=y[18],y[19]!==j||y[20]!==g?(C=(0,a.jsx)(c.z_.Provider,{value:j,children:g}),y[19]=j,y[20]=g,y[21]=C):C=y[21],C}),IQ=(0,s.memo)(IX);function I1(){return(0,b.A)()}IQ.displayName="Memo(Forwardref(ScrollContainer))";let I2=[1,2,3,4,5,6,7,8,9,10],I5=["●","○","■"],I0=["number","lower-alpha","lower-roman"],I7={em:"em","strike-through":"s",underline:"u",strong:"strong",code:"code"},I3={h1:{paddingTop:5,paddingBottom:4},h2:{paddingTop:4,paddingBottom:4},h3:{paddingTop:4,paddingBottom:3},h4:{paddingTop:4,paddingBottom:3},h5:{paddingTop:4,paddingBottom:3},h6:{paddingTop:4,paddingBottom:2},normal:{paddingTop:2,paddingBottom:3},blockquote:{paddingTop:2,paddingBottom:3}},I8=g.I4.span(({theme:e})=>{let t=e.sanity.color.dark;return(0,g.AH)`
1691    /* Make sure the annotation styling is visible */
1692    &[data-mark='code'] {
1693      color: inherit;
1694      mix-blend-mode: ${t?"screen":"multiply"};
1695    }
1696  `});function I4(e){let t,n,r,i=(0,o.c)(14),{value:l,focused:s,selected:d,children:c,schemaType:u}=e,p=I7[l],m=u.component;i[0]!==p||i[1]!==l?(t=e=>(0,a.jsx)(I8,{as:p,"data-mark":l,children:e.children}),i[0]=p,i[1]=l,i[2]=t):t=i[2];let h=t;
1696i[3]!==h||i[4]!==s||i[5]!==u||i[6]!==d||i[7]!==l?(n={focused:s,renderDefault:h,schemaType:u,selected:d,title:u.title,value:l},i[3]=h,i[4]=s,i[5]=u,i[6]=d,i[7]=l,i[8]=n):n=i[8];let f=n;return i[9]!==m||i[10]!==h||i[11]!==c||i[12]!==f?(r=m?(0,a.jsx)(m,{...f,children:c}):(0,a.jsx)(h,{...f,children:c}),i[9]=m,i[10]=h,i[11]=c,i[12]=f,i[13]=r):r=i[13],r}function I6(e){return`list-level-${e}`}let I9=g.I4.div(({theme:e,$fullScreen:t})=>{let{radius:n,space:r,color:i}=e.sanity,a=(0,u.B3)(i.spot.yellow,.2);return(0,g.AH)`
1697    position: absolute;
1698    border-radius: ${n[3]}px;
1699    top: -${r[2]}px;
1700    bottom: -${r[1]+r[1]}px;
1701    left: ${t?r[4]+r[1]:r[1]}px;
1702    right: ${r[1]}px;
1703    background-color: ${a};
1704    pointer-events: none;
1705  `}),Ee=g.I4.div(({$changed:e,$disabled:t,$hasFocus:n,$isReviewChangeOpen:r})=>t?(0,g.AH)`
1706        ${Er}:after {
1707          display: none;
1708        }
1709      `:(0,g.AH)`
1710      --change-bar-offset: 4px;
1711
1712      display: flex;
1713      position: relative;
1714
1715      ${Er}:after {
1716        opacity: 0.5;
1717      }
1718
1719      @media (hover: hover) {
1720        &:hover {
1721          z-index: 10;
1722          ${Er}:after {
1723            opacity: 1;
1724          }
1725        }
1726      }
1727
1728      /* hide when field is not changed */
1729      ${n&&(0,g.AH)`
1730        ${Er}:after {
1731          opacity: 1;
1732        }
1733      `}
1734
1735      /* hide when field is not changed */
1736      ${!e&&(0,g.AH)`
1737        ${Er}:after {
1738          opacity: 0;
1739          pointer-events: none;
1740        }
1741      `}
1742
1743      /* hide hover effect when review changes is open */
1744      ${r&&(0,g.AH)`
1745        ${Ei} {
1746          opacity: 0;
1747        }
1748      `}
1749    `),Et=g.I4.div`
1750  flex-grow: 1;
1751  min-width: 0;
1752`,En=g.I4.div`
1753  position: relative;
1754  opacity: 1;
1755  transition: opacity 100ms;
1756  z-index: ${({$zIndex:e})=>e};
1757`,Er=g.I4.div(e=>{let{media:t}=(0,tZ.JW)(e.theme);return(0,g.AH)`
1758    position: absolute;
1759    top: -1px;
1760    left: var(--change-bar-offset);
1761    width: 1px;
1762    bottom: -1px;
1763    background-color: var(--card-bg-color);
1764
1765    @media (min-width: ${t[0]}px) {
1766      display: unset;
1767    }
1768
1769    &:after {
1770      content: '';
1771      display: block;
1772      position: absolute;
1773      top: 1px;
1774      left: 0;
1775      width: 1px;
1776      bottom: 1px;
1777      background-color: var(--card-badge-caution-dot-color);
1778      border-radius: 0.5px;
1779    }
1780  `}),Ei=g.I4.button(e=>{let{$withHoverEffect:t,$isInteractive:n}=e;return(0,g.AH)`
1781    appearance: none;
1782    border: 0;
1783    outline: 0;
1784    display: block;
1785    padding: 0;
1786    background: transparent;
1787    opacity: 0;
1788    position: absolute;
1789    height: 100%;
1790
1791    ${n&&(0,g.AH)`
1792      cursor: pointer;
1793      pointer-events: all;
1794    `}
1795
1796    left: calc(-0.25rem + var(--change-bar-offset));
1797    width: calc(1rem - 1px);
1798    transition: opacity ${250}ms;
1799
1800    &:focus {
1801      border: 0;
1802      outline: 0;
1803    }
1804
1805    &:focus {
1806      border: 0;
1807      outline: 0;
1808    }
1809
1810    ${t&&(0,g.AH)`
1811      @media (hover: hover) {
1812        &:hover {
1813          opacity: 0.2;
1814        }
1815      }
1816    `}
1817  `});function Ea(e){let t,n,r,i,l=(0,o.c)(18),{children:d,disabled:p,hasFocus:m,isChanged:h,withHoverEffect:f,isInteractive:g}=e,C=void 0===f||f,x=void 0===g||g,{onOpenReviewChanges:b,isReviewChangesOpen:v}=(0,s.useContext)(c.HJ),{zIndex:j}=(0,u.Z4)(),{t:w}=iJ();return l[0]!==p||l[1]!==h||l[2]!==x||l[3]!==v||l[4]!==b||l[5]!==w||l[6]!==C||l[7]!==j?(n=p||!h?null:(0,a.jsxs)(En,{"data-testid":"change-bar",$zIndex:j,children:[(0,a.jsx)(Er,{"data-testid":"change-bar__marker"}),(0,a.jsx)(y.m_,{content:w("changes.change-bar.aria-label"),portal:!0,disabled:!x,children:(0,a.jsx)(Ei,{"aria-label":w("changes.change-bar.aria-label"),"data-testid":"change-bar__button",onClick:v?void 0:b,tabIndex:-1,type:"button",$withHoverEffect:C,$isInteractive:x})})]}),l[0]=p,l[1]=h,l[2]=x,l[3]=v,l[4]=b,l[5]=w,l[6]=C,l[7]=j,l[8]=n):n=l[8],t=n,l[9]!==d?(r=(0,a.jsx)(Et,{"data-testid":"change-bar__field-wrapper",children:d}),l[9]=d,l[10]=r):r=l[10],l[11]!==t||l[12]!==p||l[13]!==m||l[14]!==h||l[15]!==v||l[16]!==r?(i=(0,a.jsxs)(Ee,{"data-testid":"change-bar-wrapper",$changed:h,$disabled:p,$hasFocus:m,$isReviewChangeOpen:v,children:[r,t]}),l[11]=t,l[12]=p,l[13]=m,l[14]=h,l[15]=v,l[16]=r,l[17]=i):i=l[17],i}let Eo=(0,s.memo)(function(e){let t,n,r,i,c,p,m,h,f,g,C,y,x,b,v,j,w,_=(0,o.c)(37);_[0]!==e?({children:t,disabled:n,hasFocus:r,isChanged:i,onMouseEnter:p,onMouseLeave:m,path:f,withHoverEffect:g,isInteractive:c,...h}=e,_[0]=e,_[1]=t,_[2]=n,_[3]=r,_[4]=i,_[5]=c,_[6]=p,_[7]=m,_[8]=h,_[9]=f,_[10]=g):(t=_[1],n=_[2],r=_[3],i=_[4],c=_[5],p=_[6],m=_[7],h=_[8],f=_[9],g=_[10]);
1817let k=void 0===f?i_:f,S=(0,u.Z4)(),[T,I]=(0,s.useState)(!1);_[11]!==p?(C=e=>{p?.(e),I(!0)},_[11]=p,_[12]=C):C=_[12];let E=C;_[13]!==m?(y=e=>{m?.(e),I(!1)},_[13]=m,_[14]=y):y=_[14];let $=y,[A,D]=(0,s.useState)(null);return x=n||!A?null:`field-${l.dI(k)}`,_[15]!==A||_[16]!==r||_[17]!==T||_[18]!==i||_[19]!==S.zIndex||_[20]!==k?(b=()=>({element:A,path:k,isChanged:!!i,hasFocus:r,hasHover:T,hasRevertHover:!1,zIndex:S.zIndex}),_[15]=A,_[16]=r,_[17]=T,_[18]=i,_[19]=S.zIndex,_[20]=k,_[21]=b):b=_[21],vm(x,b,d),_[22]!==k?(v=!1,_[22]=k,_[23]=v):v=_[23],_[24]!==t||_[25]!==n||_[26]!==r||_[27]!==i||_[28]!==c||_[29]!==v||_[30]!==g?(j=(0,a.jsxs)(Ea,{hasFocus:r,isChanged:i,disabled:n,withHoverEffect:g,isInteractive:c,children:[v,t]}),_[24]=t,_[25]=n,_[26]=r,_[27]=i,_[28]=c,_[29]=v,_[30]=g,_[31]=j):j=_[31],_[32]!==E||_[33]!==$||_[34]!==h||_[35]!==j?(w=(0,a.jsx)("div",{...h,ref:D,onMouseEnter:E,onMouseLeave:$,children:j}),_[32]=E,_[33]=$,_[34]=h,_[35]=j,_[36]=w):w=_[36],w});function El(e){let t,n,r,i,l,d,u,p=(0,o.c)(15);p[0]!==e?({children:t,hasFocus:n,isChanged:r,path:i,withHoverEffect:d,...l}=e,p[0]=e,p[1]=t,p[2]=n,p[3]=r,p[4]=i,p[5]=l,p[6]=d):(t=p[1],n=p[2],r=p[3],i=p[4],l=p[5],d=p[6]);let{isInteractive:m}=(0,s.useContext)(c.HJ);return p[7]!==t||p[8]!==n||p[9]!==r||p[10]!==m||p[11]!==i||p[12]!==l||p[13]!==d?(u=(0,a.jsx)(Eo,{...l,path:i,hasFocus:n,isChanged:r,withHoverEffect:d,isInteractive:m,children:t}),p[7]=t,p[8]=n,p[9]=r,p[10]=m,p[11]=i,p[12]=l,p[13]=d,p[14]=u):u=p[14],u}let Es=(0,g.I4)(El)(()=>(0,g.AH)`
1818    width: 1px;
1819    height: 100%;
1820
1821    & > div {
1822      height: 100%;
1823    }
1824  `),Ed=g.I4.div`
1825  display: flex;
1826  pointer-events: all;
1827`;function Ec(e){let t=(0,ng.v$)(),{block:n,onChange:r,renderBlockActions:i}=e,o=(0,s.useMemo)(()=>t.schemaTypes.decorators.map(e=>e.value),[t]),l=(0,s.useMemo)(()=>{if(i)return i({block:n,value:ng.Og.getValue(t),set:function(e){let{allowedDecorators:t,block:n,onChange:r}=e;return e=>{let i=[s7((0,nP.$x)(e,{allowedDecorators:t}),[{_key:n._key}])];return r(s4.from(i))}}({allowedDecorators:o,block:n,onChange:r}),unset:function(e){let{block:t,onChange:n}=e;return()=>{let e=[s3([{_key:t._key}])];return n(s4.from(e))}}({block:n,onChange:r}),insert:function(e){let{allowedDecorators:t,block:n,onChange:r}=e;return e=>{let i=[s0((Array.isArray(e)?e:[e]).map(e=>(0,nP.$x)(e,{allowedDecorators:t})),"after",[{_key:n._key}])];return r(s4.from(i))}}({allowedDecorators:o,block:n,onChange:r})})},[i,n,t,r,o]);return l?(0,a.jsx)(Ed,{contentEditable:!1,children:l}):null}let Eu=g.I4.div(function(e){let{$level:t}=e,{color:n,font:r,radius:i,space:a}=(0,tZ.JW)(e.theme),o=I0[(t-1)%I0.length],l=I5[(t-1)%I5.length];return(0,g.AH)`
1828    --marker-bg-color: transparent;
1829
1830    mix-blend-mode: ${n._dark?"screen":"multiply"};
1831    position: relative;
1832
1833    & > [data-ui='TextBlock_inner'] {
1834      position: relative;
1835      flex: 1;
1836    }
1837
1838    & > div:before {
1839      content: '';
1840      position: absolute;
1841      top: -${a[1]}px;
1842      bottom: -${a[1]}px;
1843      left: -${a[1]}px;
1844      right: -${a[1]}px;
1845      border-radius: ${i[2]}px;
1846      background-color: var(--marker-bg-color);
1847      // This is to make sure the marker is always behind the text
1848      z-index: -1;
1849      pointer-events: none;
1850    }
1851
1852    &[data-markers] {
1853      --marker-bg-color: ${n._dark?v.OZ.purple[950].hex:v.OZ.purple[50].hex};
1854    }
1855
1856    &[data-warning] {
1857      --card-border-color: ${n.button.ghost.caution.enabled.border};
1858      --marker-bg-color: ${n.button.ghost.caution.hovered.bg};
1859    }
1860
1861    &[data-error] {
1862      --card-border-color: ${n.button.ghost.critical.enabled.border};
1863      --marker-bg-color: ${n.button.ghost.critical.hovered.bg};
1864    }
1865
1866    & [data-list-prefix] {
1867      position: absolute;
1868      margin-left: -4.5rem;
1869      width: 3.75rem;
1870      text-align: right;
1871      box-sizing: border-box;
1872    }
1873
1874    &[data-list-item='number'] [data-list-prefix] {
1875      font-variant-numeric: tabular-nums;
1876
1877      & > span:before {
1878        content: counter(${I6(t)}) '.';
1879        content: counter(${I6(t)}, ${o}) '.';
1880      }
1881    }
1882
1883    &[data-list-item='bullet'] [data-list-prefix] {
1884      & > span {
1885        position: relative;
1886        top: -0.1875em;
1887
1888        &:before {
1889          content: '${l}';
1890          font-size: 0.46666em;
1891        }
1892      }
1893    }
1894
1895    & [data-text] {
1896      overflow-wrap: anywhere;
1897      text-transform: none;
1898      white-space: pre-wrap;
1899      font-family: ${r.text.family};
1900      flex: 1;
1901
1902      *::selection {
1903        background-color: ${(0,tZ.B3)(n.focusRing,.3)};
1904      }
1905    }
1906  `}),Ep=(0,g.I4)(u.az)`
1907  position: relative;
1908  display: flex;
1909`,Em=g.I4.div`
1910  user-select: none;
1911  white-space: nowrap;
1912`,Eh=(0,g.I4)(u.az)`
1913  line-height: 0;
1914  width: 25px;
1915  position: relative;
1916`,Ef=(0,g.I4)(u.so)(({theme:e})=>{let{fonts:t,space:n}=e.sanity,r=t.text.sizes[1],i=t.text.sizes[2],a=r.lineHeight-r.ascenderHeight-r.descenderHeight,o=i.lineHeight-i.ascenderHeight-i.descenderHeight,l=0-(a+n[2]+n[2]-o)/2;return(0,g.AH)`
1917    user-select: none;
1918    position: absolute;
1919    right: 0;
1920    top: ${l}px;
1921  `}),Eg=(0,g.I4)(u.az)`
1922  max-width: 250px;
1923`,EC=(0,g.I4)(u.so)`
1924  position: relative;
1925  padding-left: ${({$level:e})=>e?32*e:0}px;
1926`,Ey=g.I4.div(({theme:e,$hasChanges:t})=>{let{space:n}=e.sanity;return(0,g.AH)`
1927      position: absolute;
1928      width: ${n[2]}px;
1929      right: 0;
1930      top: 0;
1931      bottom: 0;
1932      padding-left: ${n[1]}px;
1933      padding-right: ${n[2]}px;
1934      user-select: none;
1935      ${!1}
1936
1937      ${!t&&(0,g.AH)`
1938        display: none;
1939      `}
1940    `}),Ex=g.I4.div`
1941  display: block;
1942`,Eb=e=>{let t,n,r,i,l=(0,o.c)(8);return l[0]!==e?({children:t,...n}=e,l[0]=e,l[1]=t,l[2]=n):(t=l[1],n=l[2]),l[3]!==t?(r=(0,a.jsx)(Ex,{children:t}),l[3]=t,l[4]=r):r=l[4],l[5]!==n||l[6]!==r?(i=(0,a.jsx)(u.EY,{"data-testid":"text-style--normal",...n,children:r}),l[5]=n,l[6]=r,l[7]=i):i=l[7],i},Ev=e=>{let t,n,r,i,l=(0,o.c)(8);return l[0]!==e?({children:t,...n}=e,l[0]=e,l[1]=t,l[2]=n):(t=l[1],n=l[2]),l[3]!==t?(r=(0,a.jsx)(Ex,{children:t}),l[3]=t,l[4]=r):r=l[4],l[5]!==n||l[6]!==r?(i=(0,a.jsx)(u.DZ,{as:"h1","data-testid":"text-style--h1",size:5,...n,children:r}),l[5]=n,l[6]=r,l[7]=i):i=l[7],i},Ej=e=>{let t,n,r,i,l=(0,o.c)(8);return l[0]!==e?({children:t,...n}=e,l[0]=e,l[1]=t,l[2]=n):(t=l[1],n=l[2]),l[3]!==t?(r=(0,a.jsx)(Ex,{children:t}),l[3]=t,l[4]=r):r=l[4],l[5]!==n||l[6]!==r?(i=(0,a.jsx)(u.DZ,{as:"h2","data-testid":"text-style--h2",size:4,...n,children:r}),l[5]=n,l[6]=r,l[7]=i):i=l[7],i},Ew=e=>{let t,n,r,i,l=(0,o.c)(8);return l[0]!==e?({children:t,...n}=e,l[0]=e,l[1]=t,l[2]=n):(t=l[1],n=l[2]),l[3]!==t?(r=(0,a.jsx)(Ex,{children:t}),l[3]=t,l[4]=r):r=l[4],l[5]!==n||l[6]!==r?(i=(0,a.jsx)(u.DZ,{as:"h3","data-testid":"text-style--h3",size:3,...n,children:r}),l[5]=n,l[6]=r,l[7]=i):i=l[7],i},E_=e=>{let t,n,r,i,l=(0,o.c)(8);return l[0]!==e?({children:t,...n}=e,l[0]=e,l[1]=t,l[2]=n):(t=l[1],n=l[2]),l[3]!==t?(r=(0,a.jsx)(Ex,{children:t}),l[3]=t,l[4]=r):r=l[4],l[5]!==n||l[6]!==r?(i=(0,a.jsx)(u.DZ,{as:"h4","data-testid":"text-style--h4",size:2,...n,children:r}),l[5]=n,l[6]=r,l[7]=i):i=l[7],i},Ek=e=>{let t,n,r,i,l=(0,o.c)(8);return l[0]!==e?({children:t,...n}=e,l[0]=e,l[1]=t,l[2]=n):(t=l[1],n=l[2]),l[3]!==t?(r=(0,a.jsx)(Ex,{children:t}),l[3]=t,l[4]=r):r=l[4],l[5]!==n||l[6]!==r?(i=(0,a.jsx)(u.DZ,{as:"h5","data-testid":"text-style--h5",size:1,...n,children:r}),l[5]=n,l[6]=r,l[7]=i):i=l[7],i},ES=e=>{let t,n,r,i,l=(0,o.c)(8);return l[0]!==e?({children:t,...n}=e,l[0]=e,l[1]=t,l[2]=n):(t=l[1],n=l[2]),l[3]!==t?(r=(0,a.jsx)(Ex,{children:t}),l[3]=t,l[4]=r):r=l[4],l[5]!==n||l[6]!==r?(i=(0,a.jsx)(u.DZ,{as:"h6","data-testid":"text-style--h6",size:0,...n,children:r}),l[5]=n,l[6]=r,l[7]=i):i=l[7],i},ET=g.I4.blockquote`
1943  position: relative;
1944  display: block;
1945  margin: 0;
1946  padding-left: ${({theme:e})=>e.sanity.space[3]}px;
1947
1948  &::before {
1949    content: '';
1950    position: absolute;
1951    left: 0;
1952    top: -4px;
1953    bottom: -4px;
1954    width: 3px;
1955    background: var(--card-border-color);
1956  }
1957`,EI=e=>{let t,n,r,i,l=(0,o.c)(8);l[0]!==e?({children:t,...n}=e,l[0]=e,l[1]=t,l[2]=n):(t=l[1],n=l[2]);let s=n;return l[3]!==t?(r=(0,a.jsx)(u.EY,{as:"p",children:t}),l[3]=t,l[4]=r):r=l[4],l[5]!==s||l[6]!==r?(i=(0,a.jsx)(ET,{"data-testid":"text-style--blockquote",...s,children:r}),l[5]=s,l[6]=r,l[7]=i):i=l[7],i},EE={normal:Eb,h1:Ev,h2:Ej,h3:Ew,h4:E_,h5:Ek,h6:ES,blockquote:EI};function E$(e){let{children:t,floatingBoundary:n,focused:r,isFullscreen:i,onItemClose:o,onItemOpen:d,onPathF
1957ocus:c,path:p,readOnly:m,referenceBoundary:h,renderBlock:f,renderAnnotation:g,renderBlockActions:C,renderCustomMarkers:x,renderField:b,renderInlineBlock:v,renderInput:j,renderItem:w,renderPreview:_,schemaType:k,selected:S,setElementRef:T,spellCheck:I,value:E}=e,{Markers:$}=o$().__internal.components,A=oV(p),[D,z]=(0,s.useState)(null),M=ve(aB(p)),P=(0,ng.v$)(),{onChange:R}=xq(),O=vh(),V=O&&aB(O?.path||[])===aB(p),L=oE(p,!0),F=(0,s.useMemo)(()=>L.filter(e=>(0,l.n4)(e.path,p)||"children"===e.path.slice(-3)[1]&&e.path.length-p.length==2),[p,L]),{validation:B,hasError:N,hasWarning:Y,hasInfo:H}=oO(M?.node),Z=!!x&&A.length>0,U=N||Y||Z||H,q=(0,s.useCallback)(()=>{M&&d(M.node.path)},[d,M]),J=(0,s.useCallback)(()=>{let e={path:p.slice(-1),offset:0};ng.Og.delete(P,{focus:e,anchor:e},{mode:"blocks"}),ng.Og.focus(P)},[p,P]),W=(0,s.useMemo)(()=>(0,a.jsxs)(EC,{align:"flex-start",$level:E?.level,children:[E.listItem&&(0,a.jsx)(Em,{contentEditable:!1,children:(0,a.jsx)(u.EY,{"data-list-prefix":"",children:(0,a.jsx)(Ex,{})})}),(0,a.jsx)("div",{"data-text":"",style:void 0,children:t})]}),[E.listItem,E.level,t]),K=(0,s.useMemo)(()=>i&&!C?{paddingX:5}:i&&C?{paddingLeft:5,paddingRight:2}:C?{paddingLeft:3,paddingRight:2}:{paddingX:3},[i,C]),G=(0,s.useMemo)(()=>E.listItem?{paddingY:2}:I3[E.style||"normal"]||{paddingY:2},[E]),X=!!M?.member.open,Q=P.schemaTypes.portableText,ee=(0,s.useMemo)(()=>({__unstable_floatingBoundary:n,__unstable_referenceBoundary:h,__unstable_referenceElement:D,children:W,focused:r,markers:A,onClose:o,onOpen:q,onPathFocus:c,onRemove:J,open:X,parentSchemaType:Q,path:M?.node.path||i_,presence:F,readOnly:!!m,renderAnnotation:g,renderBlock:f,renderDefault:EA,renderField:b,renderInput:j,renderInlineBlock:v,renderItem:w,renderPreview:_,schemaType:k,selected:S,validation:B,value:E}),[n,r,X,A,M?.node.path,o,q,c,J,Q,m,h,D,g,f,b,v,j,w,_,k,S,W,F,B,E]),et=(0,s.useMemo)(()=>U&&(0,a.jsx)(Eg,{children:(0,a.jsx)($,{markers:A,renderCustomMarkers:x,validation:B})})||null,[$,A,x,U,B]),en=C&&!m,er=i&&M,ei=(0,s.useCallback)(e=>{M&&T({key:M.member.key,elementRef:e}),z(e)},[M,T,z]);return(0,s.useMemo)(()=>(0,a.jsx)(u.az,{...G,"data-testid":"text-block",ref:ei,style:void 0,children:(0,a.jsx)(Ep,{"data-testid":"text-block__wrapper",children:(0,a.jsxs)(u.so,{flex:1,...K,children:[(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(y.m_,{content:et,disabled:!U,placement:"top",portal:"editor",children:(0,a.jsx)(Eu,{$level:E.level||1,"data-error":N?"":void 0,"data-list-item":E.listItem,"data-markers":Z?"":void 0,"data-read-only":m,"data-testid":"text-block__text","data-warning":Y?"":void 0,spellCheck:I,children:f&&f(ee)})})}),en&&(0,a.jsx)(Eh,{contentEditable:!1,marginRight:3,children:(0,a.jsx)(Ef,{children:r&&(0,a.jsx)(Ec,{block:E,onChange:R,renderBlockActions:C})})}),er&&(0,a.jsx)(Ey,{$hasChanges:M.member.item.changed,contentEditable:!1,children:(0,a.jsx)(Es,{hasFocus:r,isChanged:M.member.item.changed,path:M.member.item.path,withHoverEffect:!1})}),V&&(0,a.jsx)(I9,{$fullScreen:!!i})]})})}),[en,er,ee,r,N,Z,Y,K,M?.member.item.changed,M?.member.item.path,i,R,G,m,f,C,V,ei,I,et,U,E])}let EA=e=>{let t,n=(0,o.c)(2);return n[0]!==e.children?(t=(0,a.jsx)(a.Fragment,{children:e.children}),n[0]=e.children,n[1]=t):t=n[1],t},ED=(0,g.I4)(u.Zp)`
1958  &[data-fullscreen='true'] {
1959    height: 100%;
1960  }
1961
1962  &[data-fullscreen='false'] {
1963    min-height: 5em;
1964    resize: ${({$isOneLine:e})=>e?"none":"vertical"};
1965    overflow: auto;
1966    height: ${({$isOneLine:e})=>e?"auto":"19em"};
1967  }
1968
1969  &:not([hidden]) {
1970    display: flex;
1971  }
1972
1973  flex-direction: column;
1974`,Ez=(0,g.I4)(u.Zp)`
1975  z-index: 10;
1976  line-height: 0;
1977`,EM=(0,g.I4)(u.Zp)`
1978  position: relative;
1979  overflow: hidden;
1980  overflow: clip;
1981
1982  & > [data-portal] {
1983    position: absolute;
1984    top: 0;
1985    left: 0;
1986    right: 0;
1987    bottom: 0;
1988    pointer-events: none;
1989
1990    & > * {
1991      pointer-events: initial;
1992    }
1993  }
1994
1995  &::selection,
1996  *::selection {
1997    background-color: transparent;
1998  }
1999`,EP=(0,g.I4)(IQ)`
2000  position: relative;
2001  overflow: auto;
2002  height: 100%;
2003  display: flex;
2004  flex-direction: column;
2005
2006  & > * {
2007    flex: 1;
2008    min-height: auto;
2009  }
2010`,ER=(0,g.I4)(u.Zp)`
2011  height: 100%;
2012  width: 100%;
2013  counter-reset: ${I2.map(e=>I6(e)).join(" ")};
2014  overflow: hidden;
2015  overflow: clip;
2016
2017  & > div {
2018    height: 100%;
2019  }
2020
2021  & .pt-editable {
2022    display: block;
2023    width: 100%;
2024    height: 100%;
2025
2026    ${I2.map(e=>(0,g.AH)`
2027        /* Reset the list count each time a list index of 1 is encountered
2028         * for the current level.
2029         */
2030        & [data-level='${e}'][data-list-index='1'] {
2031          counter-set: ${I6(e)} 1;
2032        }
2033        /* Otherwise, increment the list count for the current level. */
2034        & [data-level='${e}']:not([data-list-index='1']) {
2035          counter-increment: ${I6(e)};
2036        }
2037      `)}
2038
2039    & > .pt-list-item-bullet + .pt-list-item-number,
2040    & > .pt-list-item-number + .pt-list-item-bullet {
2041      margin-top: ${({theme:e})=>e.sanity.space[3]}px;
2042    }
2043
2044    & > :not(.pt-list-item) + .pt-list-item {
2045      margin-top: ${({theme:e})=>e.sanity.space[2]}px;
2046    }
2047
2048    & > .pt-list-item + :not(.pt-list-item) {
2049      margin-top: ${({theme:e})=>e.sanity.space[3]}px;
2050    }
2051
2052    & > :first-child {
2053      padding-top: ${({$isFullscreen:e,theme:t})=>t.sanity.space[e?5:3]}px;
2054    }
2055
2056    padding-bottom: ${({$isFullscreen:e,$isOneLine:t,theme:n})=>t?"0":n.sanity.space[e?9:5]}px;
2057
2058    & > .pt-block {
2059      margin: 0 auto;
2060      max-width: ${e=>(0,tZ.JW)(e.theme).container[1]}px;
2061    }
2062
2063    /* & > .pt-block {
2064      & .pt-inline-object {
2065      }
2066    } */
2067
2068    & .pt-drop-indicator {
2069      pointer-events: none;
2070      border: 1px solid var(--card-focus-ring-color) !important;
2071      height: 0px !important;
2072      border-radius: ${e=>(0,tZ.JW)(e.theme).radius[2]}px;
2073      margin-top: -3px;
2074      left: calc(
2075        ${({$isFullscreen:e,theme:t})=>e?(0,u.D0)(t.sanity.space[5]):(0,u.D0)(t.sanity.space[3])} -
2076          1px
2077      );
2078      right: calc(
2079        ${({$isFullscreen:e,theme:t})=>e?(0,u.D0)(t.sanity.space[5]):(0,u.D0)(t.sanity.space[3])} -
2080          1px
2081      );
2082      width: calc(
2083        100% -
2084          ${({$isFullscreen:e,theme:t})=>e?(0,u.D0)(2*t.sanity.space[5]):(0,u.D0)(2*t.sanity.space[3])} +
2085          2px
2086      ) !important;
2087    }
2088  }
2089`,EO=e=>{let t,n=(0,o.c)(2);return n[0]!==e.children?(t=(0,a.jsx)(a.Fragment,{children:e.children}),n[0]=e.children,n[1]=t):t=n[1],t},EV=e=>{let t,n,r=(0,o.c)(12),{block:i,children:l,schemaType:s,selected:d,focused:c,level:u,value:p}=e,{title:m,component:h}=s;r[0]!==i||r[1]!==c||r[2]!==u||r[3]!==s||r[4]!==d||r[5]!==m||r[6]!==p?(t={block:i,focused:c,level:u,renderDefault:EO,schemaType:s,selected:d,title:m,value:p},r[0]=i,r[1]=c,r[2]=u,r[3]=s,r[4]=d,r[5]=m,r[6]=p,r[7]=t):t=r[7];let f=t;return r[8]!==h||r[9]!==l||r[10]!==f?(n=h?(0,a.jsx)(h,{...f,children:l}):(0,a.jsx)(EO,{...f,children:l}),r[8]=h,r[9]=l,r[10]=f,r[11]=n):n=r[11],n},EL=e=>{let{block:t,focused:n,children:r,selected:i,schemaType:o}=e,l=(0,s.useMemo)(()=>(t.style&&EE[t.style]?EE[t.style]:EE[0])||Eb,[t.style]),d=(0,s.useCallback)(e=>(0,a.jsx)(l,{children:(0,a.jsx)(Ex,{"data-testid":`text-style--${t.style}`,children:e.children})}),[l,t.style]);return(0,s.useMemo)(()=>{let e=o.component,{title:l,value:s}=o,c={block:t,focused:n,renderDefault:d,schemaType:o,selected:i,title:l,value:s};return e?(0,a.jsx)(e,{...c,children:r}):(0,a.jsx)(d,{...c,children:r})},[d,t,r,n,o,i])},EF=g.I4.div`
2090  border-right: 1px solid var(--card-border-color);
2091  height: auto;
2092
2093  &[data-hidden] {
2094    opacity: 0;
2095  }
2096`;function EB(e){let t,n,r,i=(0,o.c)(6);i[0]!==e?({hidden:t,...n}=e,i[0]=e,i[1]=t,i[2]=n):(t=i[1],n=i[2]);let l=t?"":void 0;return i[3]!==n||i[4]!==l?(r=(0,a.jsx)(EF,{"data-ui":"CollapseMenuDivider","data-hidden":l,...n}),i[3]=n,i[4]=l,i[5]=r):r=i[5],r}let EN={portal:!0,constrainSize:!0},EY=(0,s.forwardRef)(function(e,t){let n,r,i,l=(0,o.c)(11),{disableRestoreFocusOnClose
2096:s,menuButton:d,menuButtonProps:c,menuOptions:p,onMenuClose:m}=e;return l[0]!==p?(n=p.map(EH),l[0]=p,l[1]=n):n=l[1],l[2]!==n?(r=(0,a.jsx)(u.W1,{children:n}),l[2]=n,l[3]=r):r=l[3],l[4]!==s||l[5]!==t||l[6]!==d||l[7]!==c||l[8]!==m||l[9]!==r?(i=(0,a.jsx)(y.IU,{__unstable_disableRestoreFocusOnClose:s,id:"menu-button",ref:t,onClose:m,popover:EN,...c,button:d,menu:r}),l[4]=s,l[5]=t,l[6]=d,l[7]=c,l[8]=m,l[9]=r,l[10]=i):i=l[10],i});function EH(e,t){let{collapsedProps:n,expandedProps:r,tooltipProps:i,tooltipText:o,dividerBefore:l,fontSize:d,padding:c,text:p,icon:m,selected:h,...f}=e.props;return(0,a.jsxs)(s.Fragment,{children:[l&&0!==t&&(0,a.jsx)(u.Nj,{}),(0,a.jsx)(y.Dr,{text:p,icon:m,pressed:h,...f})]},e.key)}function EZ(e){let t,n,r,i,l,d,c,p,m=(0,o.c)(14);m[0]!==e?({onIntersectionChange:n,children:t,options:r,...i}=e,m[0]=e,m[1]=t,m[2]=n,m[3]=r,m[4]=i):(t=m[1],n=m[2],r=m[3],i=m[4]);let[h,f]=(0,s.useState)(null);return m[5]!==h||m[6]!==n||m[7]!==r?(l=()=>{let e=h?.closest('[data-ui="Flex"]');if(!e)return;let t=new IntersectionObserver(n,r);return t.observe(e),()=>{t.unobserve(e),t.disconnect()}},d=[h,n,r],m[5]=h,m[6]=n,m[7]=r,m[8]=l,m[9]=d):(l=m[8],d=m[9]),(0,s.useEffect)(l,d),m[10]===Symbol.for("react.memo_cache_sentinel")?(c=(0,a.jsx)("span",{hidden:!0,ref:f}),m[10]=c):c=m[10],m[11]!==t||m[12]!==i?(p=(0,a.jsxs)(u.so,{...i,children:[t,c]}),m[11]=t,m[12]=i,m[13]=p):p=m[13],p}let EU=(0,g.AH)`
2097  list-style: none;
2098  display: flex;
2099  white-space: nowrap;
2100
2101  &[data-hidden='true'] {
2102    opacity: 0;
2103    visibility: hidden;
2104  }
2105`,Eq=(0,g.I4)(u.so)`
2106  padding: ${3}px;
2107  margin: -${3}px;
2108  box-sizing: border-box;
2109`,EJ=(0,g.I4)(u.so)`
2110  border-radius: inherit;
2111  position: relative;
2112`,EW=(0,g.I4)(u.so)`
2113  width: max-content;
2114  &[data-hidden='true'] {
2115    visibility: hidden;
2116    position: relative;
2117    margin-top: -1px;
2118    height: 1px;
2119  }
2120`,EK=(0,g.I4)(EZ)`
2121  ${EU}
2122`;function EG(e){return!!e}let EX=(0,s.forwardRef)(function(e,t){let n,r,i,l,d,c,u,p,m,h,f,g=(0,o.c)(25);if(g[0]!==e?({children:n,collapsed:r,disableRestoreFocusOnClose:i,onMenuClose:d,menuButtonProps:l,...c}=e,g[0]=e,g[1]=n,g[2]=r,g[3]=i,g[4]=l,g[5]=d,g[6]=c):(n=g[1],r=g[2],i=g[3],l=g[4],d=g[5],c=g[6]),g[7]!==n?(p=s.Children.toArray(n).filter(EG),g[7]=n,g[8]=p):p=g[8],u=p,g[9]!==l?.button?(h=l?.button||(0,a.jsx)(rU,{}),g[9]=l?.button,g[10]=h):h=g[10],m=h,r){let e;return g[11]!==i||g[12]!==m||g[13]!==l||g[14]!==u||g[15]!==d||g[16]!==t?(e=(0,a.jsx)(EY,{ref:t,disableRestoreFocusOnClose:i,menuButton:m,menuButtonProps:l,menuOptions:u,onMenuClose:d}),g[11]=i,g[12]=m,g[13]=l,g[14]=u,g[15]=d,g[16]=t,g[17]=e):e=g[17],e}return g[18]!==i||g[19]!==l||g[20]!==u||g[21]!==d||g[22]!==t||g[23]!==c?(f=(0,a.jsx)(EQ,{...c,ref:t,disableRestoreFocusOnClose:i,menuButtonProps:l,menuOptions:u,onMenuClose:d}),g[18]=i,g[19]=l,g[20]=u,g[21]=d,g[22]=t,g[23]=c,g[24]=f):f=g[24],f}),EQ=(0,s.forwardRef)(function(e,t){let{collapseText:n=!0,disableRestoreFocusOnClose:r,gap:i,menuOptions:o,menuButtonProps:l,onMenuClose:d,...c}=e,[p,m]=(0,s.useState)(null),[h,f]=(0,s.useState)({}),[g,C]=(0,s.useState)({}),x=(0,s.useMemo)(()=>({root:p,threshold:.99,rootMargin:"2px"}),[p]),b=(0,s.useMemo)(()=>o.map(e=>e.key),[o]),v=(0,s.useMemo)(()=>[...nS(b,Object.keys(h)),...nS(b,Object.keys(g))],[b,h,g]),j=(0,s.useMemo)(()=>o.filter(e=>{let t=h[e.key];return t&&!t.intersects}),[h,o]),w=(0,s.useCallback)((e,t)=>{f(n=>{let r=t.key;if(null===r)throw Error("Expected element to have a non-null key");let i={intersects:e.isIntersecting,element:t},a=n[r];return a&&a.intersects===i.intersects?n:{...n,[r]:i}})},[]),_=(0,s.useCallback)((e,t)=>{C(n=>{let r=t.key;if(null===r)throw Error("Expected child element to have a non-null key");let i=n[r],a={intersects:e.isIntersecting,element:t};return i?.intersects===a.intersects?n:{...n,[r]:a}})},[]),k=(0,s.useMemo)(()=>o.map(e=>{let{collapsedProps:t}=e.props,r=n?void 0:e.props.text;return(0,s.cloneElement)(e,{...t,text:r})}),[o,n]),S=(0,s.useMemo)(()=>o.filter(e=>g[e.key]?.intersects===!1),[o,g]),T=j.length>0?k.filter(e=>g[e.key]?.intersects===!0):o,I=(0,s.useMemo)(()=>l?.button||(0,a.jsx)(rU,{}),[l]);return(0,a.jsxs)(Eq,{align:"center","data-ui":"CollapseMenu",overflow:"hidden",sizing:"border",ref:t,...c,children:[(0,a.jsxs)(EJ,{direction:"column",flex:1,justify:"center",ref:m,children:[(0,a.jsx)(EW,{gap:i,children:0===v.length&&T.map((e,t)=>{let{dividerBefore:n,tooltipText:r="",tooltipProps:i={}}
2122=e.props,o=!e.key||!(e.key in h)||S.includes(e);return(0,a.jsxs)(s.Fragment,{children:[n&&0!==t&&(0,a.jsx)(EB,{hidden:o}),(0,a.jsx)(y.m_,{portal:!0,disabled:!r,content:r,...i,children:(0,a.jsx)(u.so,{children:(0,s.cloneElement)(e,{disabled:e.props.disabled||o,"aria-hidden":o})})})]},e.key)})}),(0,a.jsx)(E1,{gap:i,elements:o,intersectionOptions:x,onIntersectionChange:w}),(0,a.jsx)(E1,{gap:i,elements:k,intersectionOptions:x,onIntersectionChange:_})]}),S.length>0&&(0,a.jsx)(u.so,{marginLeft:i,children:(0,a.jsx)(EY,{disableRestoreFocusOnClose:r,menuButton:I,menuButtonProps:l,menuOptions:S,onMenuClose:d})})]})}),E1=(0,s.memo)(function(e){let t,n,r=(0,o.c)(10),{elements:i,gap:l,intersectionOptions:d,onIntersectionChange:c}=e;if(r[0]!==i||r[1]!==d||r[2]!==c){let e;r[4]!==d||r[5]!==c?(e=(e,t)=>{let{dividerBefore:n}=e.props;return(0,a.jsxs)(s.Fragment,{children:[n&&0!==t&&(0,a.jsx)(EB,{hidden:!0}),(0,a.jsx)(EK,{options:d,onIntersectionChange:t=>c(t[0],e),children:(0,a.jsx)(u.so,{children:(0,s.cloneElement)(e,{disabled:!0,"aria-hidden":!0})})})]},e.key)},r[4]=d,r[5]=c,r[6]=e):e=r[6],t=i.map(e),r[0]=i,r[1]=d,r[2]=c,r[3]=t}else t=r[3];return r[7]!==l||r[8]!==t?(n=(0,a.jsx)(EW,{"data-hidden":!0,"aria-hidden":"true",gap:l,overflow:"hidden",children:t}),r[7]=l,r[8]=t,r[9]=n):n=r[9],n}),E2=(0,s.forwardRef)(function(e,t){let n,r,i,l,s,d=(0,o.c)(8);if(d[0]!==e){let{collapsedProps:t,expandedProps:a,tooltipProps:o,tooltipText:s,dividerBefore:c,...u}=e;r=t,i=a,l=o,n=u,d[0]=e,d[1]=n,d[2]=r,d[3]=i,d[4]=l}else n=d[1],r=d[2],i=d[3],l=d[4];return d[5]!==t||d[6]!==n?(s=(0,a.jsx)(y.$n,{"data-ui":"CollapseMenuButton",...n,ref:t}),d[5]=t,d[6]=n,d[7]=s):s=d[7],s}),E5=g.I4.div`
2123  width: 1em;
2124  height: 1em;
2125  border-radius: inherit;
2126  background-origin: content-box;
2127  background-position: center;
2128  background-repeat: no-repeat;
2129  background-size: cover;
2130  transform: scale(0.7);
2131`;function E0(e){let t,n,r,i=(0,o.c)(5),{icon:l,active:s}=e,d=`url(${l})`,c=s?"invert(100%)":"invert(0%)";return i[0]!==d||i[1]!==c?(n={backgroundImage:d,filter:c},i[0]=d,i[1]=c,i[2]=n):n=i[2],t=n,i[3]!==t?(r=(0,a.jsx)(E5,{style:t}),i[3]=t,i[4]=r):r=i[4],r}function E7(e,t){let n=ni(e,"to[0].icon");return e.icon||e.type&&e.type.icon||n||t}let E3={link:C.qYV},E8={strong:C.$oz,em:C.yOR,"strike-through":C.t64,underline:C.qpS,code:C.loI},E4={number:C.J7Y,bullet:C.r$9};function E6(){let e,t=(0,o.c)(3),n=(0,ng.v$)(),r=(0,ng.pq)();return t[0]!==n||t[1]!==r?(e=r?ng.Og.focusBlock(n):void 0,t[0]=n,t[1]=r,t[2]=e):e=t[2],e}function E9(e){return e.key}function $e(e){return e.style}let $t=(0,s.memo)(EX),$n={constrainSize:!0,portal:!0},$r=(0,s.memo)(function(e){let{disabled:t,groups:n,isFullscreen:r,collapsed:i}=e,l=E6(),d=(0,ng.v$)(),c=(0,ng.pq)(),{t:u}=iJ(),p=c&&(0,_.tA)(c.anchor.path[0])&&(0,_.tA)(c.focus.path[0])?c.anchor.path[0]._key!==c?.focus.path[0]._key:c?.anchor.path[0]!==c?.focus.path[0],m=l?._type!==d.schemaTypes.block.name,h=!m&&Array.isArray(l.children)&&1===l.children.length&&l?.children[0].text==="",f=t||m,g=(0,s.useMemo)(()=>n.reduce((e,t)=>e.concat(t.actions.map((e,t)=>0===t?{...e,firstInGroup:!0}:e)),[]),[n]),y=function(e){let t,n=(0,o.c)(4),{actions:r}=e,i=(0,ng.v$)(),a=(0,ng.pq)();return n[0]!==r||n[1]!==i||n[2]!==a?(t=a?r.filter(e=>"annotation"===e.type?ng.Og.isAnnotationActive(i,e.key):"listStyle"===e.type?ng.Og.hasListStyle(i,e.key):ng.Og.isMarkActive(i,e.key)).map(E9):[],n[0]=r,n[1]=i,n[2]=a,n[3]=t):t=n[3],iY(t)}({actions:g}),x=(0,s.useCallback)(()=>{ng.Og.focus(d)},[d]),b=r?"bottom":"top",v=(0,s.useMemo)(()=>g.map(e=>{let t="annotation"===e.type&&(h||p),n=h?u("user-menu.action.portable-text.annotation-disabled_empty-block",{name:e.title||e.key}):u("user-menu.action.portable-text.annotation-disabled_multiple-blocks",{name:e.title||e.key}),r=y.includes(e.key);return(0,a.jsx)(E2,{"aria-label":u("toolbar.portable-text.action-button-aria-label",{action:e.title||e.key}),"data-testid":`action-button-${e.key}`,disabled:f||t,mode:"bleed",dividerBefore:e.firstInGroup,icon:e.icon?"string"==typeof e.icon?(0,a.jsx)(E0,{active:r,icon:e.icon}):e.icon:"annotation"===e.type?E3[e.key]||C.KSC:"listStyle"===e.type?E4[e.key]||C.KSC:E8[e.key]||C.KSC,onClick:()=>e.handle(r),selected:r,text:e.title||e.key,tooltipText:t?n:e.title||e.key,tooltipProps:{disabled:f,placement:b,portal:"default"}},e.key)}),[g,y,f,h,p,u,b]),j=(0,s.useMemo)(()=>({button:(0,a.jsx)(rU,{"data-testid":"action-menu-button",disabled:f,tooltipProps:{placement:b}}),popover:$n}),[f,b]);return(0,a.jsx)($t,{"data-testid":"action-menu-auto-collapse-menu",collapsed:i,disableRestoreFocusOnClose
2131:!0,gap:1,menuButtonProps:j,onMenuClose:x,children:v})}),$i=(0,s.memo)(y.IU),$a=(0,g.I4)(u.Dr)`
2132  // Change the border color variable used by BlockQuote
2133  // to make the border visible when the MenuItem is selected
2134  &[data-selected] {
2135    [data-option='blockquote'] {
2136      --card-border-color: var(--card-muted-fg-color);
2137    }
2138  }
2139`,$o={h1:e=>(0,a.jsx)(Ev,{children:e}),h2:e=>(0,a.jsx)(Ej,{children:e}),h3:e=>(0,a.jsx)(Ew,{children:e}),h4:e=>(0,a.jsx)(E_,{children:e}),h5:e=>(0,a.jsx)(Ek,{children:e}),h6:e=>(0,a.jsx)(ES,{children:e}),normal:e=>(0,a.jsx)(Eb,{children:e}),blockquote:e=>(0,a.jsx)(EI,{"data-option":"blockquote",children:e})},$l=e=>e.preventDefault(),$s={key:"style-none",style:"",title:"No style",i18nTitleKey:"inputs.portable-text.style.none"},$d=(0,s.memo)(function(e){let{disabled:t,items:n,boundaryElement:r}=e,i=(0,ng.v$)(),l=E6(),{t:d}=iJ(),c=t||!!l&&i.schemaTypes.block.name!==l._type,p=function(e){let t,n=(0,o.c)(5),{items:r}=e,i=(0,ng.v$)(),a=E6(),l=(0,ng.pq)();return n[0]!==i||n[1]!==a||n[2]!==r||n[3]!==l?(t=a&&l?r.filter(e=>ng.Og.hasBlockStyle(i,e.style)).map($e):[],n[0]=i,n[1]=a,n[2]=r,n[3]=l,n[4]=t):t=n[4],iY(t)}({items:n}),{activeItems:m,items:h}=(0,s.useMemo)(()=>{let e=n.filter(e=>p.includes(e.style)),t=n;return 0===e.length&&t.length>1&&(t=t.concat([$s]),e.push($s)),{activeItems:e,items:t}},[p,n]),f=(0,s.useMemo)(()=>m.length>1?d("inputs.portable-text.style.multiple"):1!==m.length?$s.i18nTitleKey?d($s.i18nTitleKey):$s.title:m[0].i18nTitleKey?d(m[0].i18nTitleKey):m[0].title,[m,d]),g=(0,s.useCallback)(e=>{l&&e.style!==l.style&&(ng.Og.toggleBlockStyle(i,e.style),ng.Og.focus(i))},[i,l]),x=(0,s.useCallback)(e=>{let{style:t,styleComponent:n}=e,r=$o[t],i=e.i18nTitleKey?d(e.i18nTitleKey):e?.title||e.style,o="function"==typeof n?n:void 0;return r&&!o?r(i):o?(0,a.jsx)(o,{children:i}):(0,a.jsx)(u.EY,{children:i})},[d]),b=(0,s.useMemo)(()=>(0,a.jsx)(y.$n,{disabled:c,iconRight:C.D3D,justify:"space-between",mode:"bleed",onClick:$l,text:f,width:"fill"}),[c,f]),v=(0,s.useMemo)(()=>(0,a.jsx)(u.W1,{disabled:c,children:h.map(e=>(0,a.jsx)($a,{pressed:m.includes(e),onClick:c?void 0:()=>g(e),children:x(e)},e.key))}),[c,m,g,h,x]);return(0,a.jsx)($i,{popover:{constrainSize:!0,placement:"bottom-start",portal:"default",referenceBoundary:r},id:"block-style-select",button:b,menu:v})}),$c=(0,s.memo)(EX),$u={constrainSize:!0,portal:!0},$p=(0,s.memo)(function(e){let t,n,r,i,l,s,d,c=(0,o.c)(23),{disabled:u,items:p,isFullscreen:m,collapsed:h}=e,{t:f}=iJ(),g=E6(),C=(0,ng.v$)(),y=g&&g._type!==C.schemaTypes.block.name;c[0]!==C?(t=()=>{ng.Og.focus(C)},c[0]=C,c[1]=t):t=c[1];let x=t,b=m?"bottom":"top";if(c[2]!==u||c[3]!==y||c[4]!==p||c[5]!==f||c[6]!==b){let e;c[8]!==u||c[9]!==y||c[10]!==f||c[11]!==b?(e=e=>{let t=e.type.title||rc(e.type.name);return(0,a.jsx)(E2,{"aria-label":f(e.inline?"inputs.portable-text.action.insert-inline-object-aria-label":"inputs.portable-text.action.insert-block-aria-label",{typeName:t}),mode:"bleed",disabled:u||y&&!0===e.inline||!!e.type.deprecated,"data-testid":`${e.type.name}-insert-menu-button`,icon:e.icon,onClick:e.handle,text:t,tooltipText:f(e.type.deprecated?e.type.deprecated.reason:e.inline?"inputs.portable-text.action.insert-inline-object":"inputs.portable-text.action.insert-block",{typeName:t}),tooltipProps:{disabled:u,placement:b,portal:"default"}},e.key)},c[8]=u,c[9]=y,c[10]=f,c[11]=b,c[12]=e):e=c[12],r=p.map(e),c[2]=u,c[3]=y,c[4]=p,c[5]=f,c[6]=b,c[7]=r}else r=c[7];return n=r,c[13]!==b?(l={placement:b},c[13]=b,c[14]=l):l=c[14],c[15]!==u||c[16]!==l?(s={button:(0,a.jsx)(rU,{"data-testid":"insert-menu-button",disabled:u,tooltipProps:l}),popover:$u},c[15]=u,c[16]=l,c[17]=s):s=c[17],i=s,c[18]!==n||c[19]!==h||c[20]!==x||c[21]!==i?(d=(0,a.jsx)($c,{"data-testid":"insert-menu-auto-collapse-menu",collapsed:h,collapseText:!1,disableRestoreFocusOnClose:!0,gap:1,menuButtonProps:i,onMenuClose:x,children:n}),c[18]=n,c[19]=h,c[20]=x,c[21]=i,c[22]=d):d=c[22],d}),$m=(0,g.I4)(u.so)`
2140  width: 100%;
2141`,$h=(0,g.I4)(u.az)`
2142  width: 8em;
2143`,$f=(0,g.I4)(u.so)`
2144  border-right: 1px solid var(--card-border-color);
2145`,$g=(0,g.I4)(u.az)`
2146  ${({$withInsertMenu:e})=>e&&(0,g.AH)`
2147      max-width: max-content;
2148      border-right: 1px solid var(--card-border-color);
2149    `}
2150`,$C=(0,g.I4)(u.az)`
2151  border-left: 1px solid var(--card-border-color);
2152`,$y="u">typeof window&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),$x=(0,s.memo)(function(e){let t,n,r,i,l,d,c,m,h,f,g,x,b=(0,o.c)(46),{actionGroups:v,blockStyles:j,collapsible:w,disabled:_,insertMenuItems:k,isFullscreen:S,onToggleFullscreen:T}=e,{t:I}=iJ(),E=v.reduce($v,0)>0,$=k.length>
21520,[A,D]=(0,s.useState)(null),z=(0,p.sQ)(A),M=!!w&&!!z&&z?.width<400,P=j.length>1;b[0]!==A?(t={rootElement:A},b[0]=A,b[1]=t):t=b[1],ens(t),b[2]!==j||b[3]!==M||b[4]!==_||b[5]!==S||b[6]!==A||b[7]!==P?(n=P&&(0,a.jsx)($f,{flex:M?1:void 0,children:(0,a.jsx)($h,{padding:S?2:1,"data-testid":"block-style-select",children:(0,a.jsx)($d,{disabled:_,items:j,boundaryElement:A})})}),b[2]=j,b[3]=M,b[4]=_,b[5]=S,b[6]=A,b[7]=P,b[8]=n):n=b[8],b[9]!==v||b[10]!==M||b[11]!==_||b[12]!==S||b[13]!==E||b[14]!==$?(r=E&&(0,a.jsx)($g,{flex:M?void 0:1,padding:S?2:1,$withInsertMenu:$,children:(0,a.jsx)($r,{disabled:_,collapsed:M,groups:v,isFullscreen:S})}),b[9]=v,b[10]=M,b[11]=_,b[12]=S,b[13]=E,b[14]=$,b[15]=r):r=b[15],b[16]!==M||b[17]!==_||b[18]!==k||b[19]!==S||b[20]!==$?(i=$&&(0,a.jsx)(u.az,{flex:M?void 0:1,padding:S?2:1,children:(0,a.jsx)($p,{disabled:_,collapsed:M,items:k,isFullscreen:S})}),b[16]=M,b[17]=_,b[18]=k,b[19]=S,b[20]=$,b[21]=i):i=b[21],b[22]!==r||b[23]!==i?(l=(0,a.jsxs)(u.so,{flex:1,children:[r,i]}),b[22]=r,b[23]=i,b[24]=l):l=b[24];let R=S?2:1;b[25]!==I?(d=I("inputs.portable-text.action.expand-editor"),b[25]=I,b[26]=d):d=b[26];let O=S?C.dLE:C.mSu,V=S?"inputs.portable-text.action.collapse-editor":"inputs.portable-text.action.expand-editor";b[27]!==I||b[28]!==V?(c=I(V),b[27]=I,b[28]=V,b[29]=c):c=b[29],b[30]===Symbol.for("react.memo_cache_sentinel")?(m=[`${$y?"Cmd":"Ctrl"}`,"Enter"],b[30]=m):m=b[30];let L=S?"bottom":"top";return b[31]!==c||b[32]!==L?(h={content:c,hotkeys:m,placement:L,portal:"default"},b[31]=c,b[32]=L,b[33]=h):h=b[33],b[34]!==T||b[35]!==h||b[36]!==d||b[37]!==O?(f=(0,a.jsx)(y.$n,{"aria-label":d,icon:O,mode:"bleed",onClick:T,tooltipProps:h}),b[34]=T,b[35]=h,b[36]=d,b[37]=O,b[38]=f):f=b[38],b[39]!==f||b[40]!==R?(g=(0,a.jsx)($C,{padding:R,children:f}),b[39]=f,b[40]=R,b[41]=g):g=b[41],b[42]!==g||b[43]!==n||b[44]!==l?(x=(0,a.jsxs)($m,{align:"center",ref:D,onMouseDown:$j,children:[n,l,g]}),b[42]=g,b[43]=n,b[44]=l,b[45]=x):x=b[45],x});function $b(e){let t,n,r,i,l,s,d,c,u,m=(0,o.c)(30),{collapsible:h,hotkeys:f,isFullscreen:g,readOnly:y,onMemberOpen:x,onToggleFullscreen:b}=e,v=(0,ng.v$)(),j=(0,ng.pq)(),w=Cc(),_=y||!j,{push:k}=(0,p.dj)();m[0]!==k||m[1]!==w?(t=e=>{let t=!1,n=setTimeout(()=>{t=!0,k({id:"resolving-initial-value",status:"info",title:"Resolving initial value…"})},300);return w(e,{}).then(e=>(t&&k({id:"resolving-initial-value",status:"info",duration:500,title:"Initial value resolved"}),e)).catch(t=>{k({title:"Could not resolve initial value",id:"resolving-initial-value",description:`Unable to resolve initial value for type: ${e.name}: ${t.message}.`,status:"error"})}).finally(()=>clearTimeout(n))},m[0]=k,m[1]=w,m[2]=t):t=m[2];let S=t;m[3]!==v||m[4]!==x||m[5]!==S?(n=async e=>{let t=await S(e),n=ng.Og.insertBlock(v,e,t);n&&x(n)},m[3]=v,m[4]=x,m[5]=S,m[6]=n):n=m[6];let T=n;m[7]!==v||m[8]!==x||m[9]!==S?(r=async e=>{let t=await S(e),n=ng.Og.insertChild(v,e,t);n&&x(n)},m[7]=v,m[8]=x,m[9]=S,m[10]=r):r=m[10];let I=r;m[11]!==f||m[12]!==x||m[13]!==S?(i={hotkeys:f,onMemberOpen:x,resolveInitialValue:S,disabled:!0},m[11]=f,m[12]=x,m[13]=S,m[14]=i):i=m[14];let E=function(e){let t,n,r=(0,o.c)(10),{hotkeys:i,onMemberOpen:a,resolveInitialValue:l,disabled:s}=e,d=(0,ng.v$)(),{t:c}=iJ();r[0]!==d||r[1]!==a||r[2]!==l?(t=async e=>{let t=await l(e),n=ng.Og.addAnnotation(d,e,t);n&&n.markDefPath&&a(n.markDefPath)},r[0]=d,r[1]=a,r[2]=l,r[3]=t):t=r[3];let u=t;return r[4]!==s||r[5]!==d||r[6]!==u||r[7]!==i||r[8]!==c?(n=d?[{name:"format",actions:d.schemaTypes.decorators.map(e=>{let t=Object.keys(i.marks||{}).find(t=>i.marks?.[t]===e.value),n=[];return t&&(n=[t]),{type:"format",disabled:s,icon:e?.icon,key:e.value,handle:()=>{ng.Og.toggleMark(d,e.value),ng.Og.focus(d)},hotkeys:n,title:e.i18nTitleKey&&c?c(e.i18nTitleKey):e.title}})},{name:"list",actions:d.schemaTypes.lists.map(e=>({type:"listStyle",key:e.value,disabled:s,icon:e?.icon,handle:()=>{ng.Og.toggleList(d,e.value)},title:e.i18nTitleKey&&c?c(e.i18nTitleKey):e.title}))}
2152,{name:"annotation",actions:function(e,t,n,r){let i=e.schemaTypes,a=ng.Og.focusChild(e),o=a&&a.text;return i.annotations.map(i=>({type:"annotation",disabled:!o||t,icon:ni(i,"icon")||ni(i,"type.icon")||ni(i,"type.to.icon")||ni(i,"type.to[0].icon"),key:i.name,handle:t=>{t?(ng.Og.removeAnnotation(e,i),ng.Og.focus(e)):n(i)},title:i.i18nTitleKey&&r?r(i.i18nTitleKey):i.title||ns(i.name)}))}(d,s,u,c)}]:[],r[4]=s,r[5]=d,r[6]=u,r[7]=i,r[8]=c,r[9]=n):n=r[9],n}(i);return m[15]!==v.schemaTypes?(s=v.schemaTypes.styles.map(e=>({key:`style-${e.value}`,style:e.value,styleComponent:e&&e.component,title:e.title,i18nTitleKey:e.i18nTitleKey})),m[15]=v.schemaTypes,m[16]=s):s=m[16],l=s,m[17]!==_||m[18]!==v.schemaTypes||m[19]!==T||m[20]!==I?(c=function(e,t,n,r){let i=e.blockObjects.map((e,t)=>({handle:()=>n(e),icon:E7(e,C.nee),inline:!1,key:`block-${t}`,type:e})),a=e.inlineObjects.map((e,t)=>({handle:()=>r(e),icon:E7(e,C.pus),inline:!0,key:`inline-${t}`,type:e}));return i.concat(a).filter(e=>!e.type?.hidden)}(v.schemaTypes,0,T,I),m[17]=_,m[18]=v.schemaTypes,m[19]=T,m[20]=I,m[21]=c):c=m[21],d=c,m[22]!==E||m[23]!==l||m[24]!==h||m[25]!==_||m[26]!==d||m[27]!==g||m[28]!==b?(u=(0,a.jsx)($x,{actionGroups:E,blockStyles:l,collapsible:h,disabled:_,insertMenuItems:d,isFullscreen:g,onToggleFullscreen:b}),m[22]=E,m[23]=l,m[24]=h,m[25]=_,m[26]=d,m[27]=g,m[28]=b,m[29]=u):u=m[29],u}function $v(e,t){return e+t.actions.length}function $j(e){e.preventDefault()}let $w={outline:"none"},$_=g.I4.span(e=>{let{color:t}=(0,tZ.JW)(e.theme);return(0,g.AH)`
2153    color: ${t.input.default.enabled.placeholder};
2154  `}),$k=e=>(0,a.jsx)(I4,{...e}),$S=e=>(0,a.jsx)(EL,{...e}),$T=e=>(0,a.jsx)(EV,{...e});function $I(e){let t,n,r,i,l,s,d,c,p,m,h,f,g,C=(0,o.c)(56),{elementRef:x,hideToolbar:b,hotkeys:v,initialSelection:j,isActive:w,isFullscreen:_,isOneLine:k,onCopy:S,onItemOpen:T,onPaste:I,onToggleFullscreen:E,path:$,readOnly:A,rangeDecorations:D,renderAnnotation:z,renderBlock:M,renderChild:P,scrollElement:R,setPortalElement:O,setScrollElement:V,ariaDescribedBy:L}=e,{id:F}=o$(),{t:B}=iJ(),{isTopLayer:N}=(0,u.Z4)(),{element:Y}=(0,u.$w)();C[0]!==_||C[1]!==N||C[2]!==E?(t=e=>{N&&_&&"Escape"===e.key&&E()}
2154,C[0]=_,C[1]=N,C[2]=E,C[3]=t):t=C[3],(0,u.Pm)(t),C[4]!==B?(n=()=>(0,a.jsx)($_,{"data-testid":"pt-input-placeholder",children:B("inputs.portable-text.empty-placeholder")}),C[4]=B,C[5]=n):n=C[5];let H=n,Z=function(){let e=(0,ng.v$)(),t=e.schemaTypes.block.options?.spellCheck,n=!(typeof navigator>"u")&&/Chrome\/96/.test(navigator.userAgent);return(void 0!==t||!0!==n)&&t}(),U=function(e){let t,n=(0,o.c)(2);return n[0]!==e?(t=(t,n)=>{if(ng.Og.getSelection(t)){let t=n.startContainer.parentElement;t&&(0,nk.A)(t,{scrollMode:"if-needed",boundary:e,block:"nearest",inline:"nearest"})}},n[0]=e,n[1]=t):t=n[1],t}(R);C[6]!==L||C[7]!==x||C[8]!==v||C[9]!==j||C[10]!==S||C[11]!==I||C[12]!==D||C[13]!==z||C[14]!==M||C[15]!==P||C[16]!==H||C[17]!==U||C[18]!==Z?(i={"aria-describedby":L,hotkeys:v,onCopy:S,onPaste:I,rangeDecorations:D,ref:x,renderAnnotation:z,renderBlock:M,renderChild:P,renderDecorator:$k,renderListItem:$T,renderPlaceholder:H,renderStyle:$S,scrollSelectionIntoView:U,selection:j,spellCheck:Z,style:$w},C[6]=L,C[7]=x,C[8]=v,C[9]=j,C[10]=S,C[11]=I,C[12]=D,C[13]=z,C[14]=M,C[15]=P,C[16]=H,C[17]=U,C[18]=Z,C[19]=i):i=C[19];let q=i;C[20]!==q?(l=(0,a.jsx)(ng.LF,{...q}),C[20]=q,C[21]=l):l=C[21],r=l,C[22]!==T||C[23]!==$?(s=e=>{T($.concat(e))},C[22]=T,C[23]=$,C[24]=s):s=C[24];let J=s,W="root"===F;C[25]!==W||C[26]!==J||C[27]!==b||C[28]!==v||C[29]!==w||C[30]!==_||C[31]!==E||C[32]!==A?(d=w&&!b&&(0,a.jsx)(y.vE,{children:(0,a.jsx)(Ez,{"data-testid":"pt-editor__toolbar-card",shadow:1,children:(0,a.jsx)($b,{collapsible:W,hotkeys:v,isFullscreen:_,onMemberOpen:J,onToggleFullscreen:E,readOnly:A})})}),C[25]=W,C[26]=J,C[27]=b,C[28]=v,C[29]=w,C[30]=_,C[31]=E,C[32]=A,C[33]=d):d=C[33];let K=A?"transparent":"default",G=A?"transparent":"default",X=_?R:Y;return C[34]!==r||C[35]!==X?(c=(0,a.jsx)(u.EZ,{element:X,children:r}),C[34]=r,C[35]=X,C[36]=c):c=C[36],C[37]!==_||C[38]!==k||C[39]!==c||C[40]!==G?(p=(0,a.jsx)("div",{children:(0,a.jsx)(ER,{$isFullscreen:_,$isOneLine:k,tone:G,children:c})}),C[37]=_,C[38]=k,C[39]=c,C[40]=G,C[41]=p):p=C[41],C[42]!==V||C[43]!==p?(m=(0,a.jsx)(EP,{ref:V,children:p}),C[42]=V,C[43]=p,C[44]=m):m=C[44],C[45]!==O?(h=(0,a.jsx)("div",{"data-portal":"",ref:O}),C[45]=O,C[46]=h):h=C[46],C[47]!==m||C[48]!==h||C[49]!==K?(f=(0,a.jsxs)(EM,{flex:1,tone:K,children:[m,h]}),C[47]=m,C[48]=h,C[49]=K,C[50]=f):f=C[50],C[51]!==_||C[52]!==k||C[53]!==f||C[54]!==d?(g=(0,a.jsxs)(ED,{"data-fullscreen":_,"data-testid":"pt-editor",$isOneLine:k,children:[d,f]}),C[51]=_,C[52]=k,C[53]=f,C[54]=d,C[55]=g):g=C[55],g}function $E(e){return e.member.open}function $$(e){return e.member.item.focused}let $A=(0,g.I4)(u.Zp)(function({theme:e}){let{color:t,radius:n}=e.sanity;return(0,g.AH)`
2155    line-height: 0;
2156    border-radius: ${n[2]}px;
2157    padding: 2px;
2158    box-shadow: inset 0 0 0 1px var(--card-border-color);
2159    height: calc(1em - 1px);
2160    margin-top: 0.0625em;
2161    cursor: default;
2162
2163    &:not([hidden]) {
2164      display: inline-flex;
2165      align-items: center;
2166      vertical-align: top;
2167    }
2168
2169    &[data-ready-only] {
2170      cursor: default;
2171    }
2172
2173    &[data-focused] {
2174      box-shadow: inset 0 0 0 1px ${t.selectable?.primary.selected.border};
2175      color: ${t.selectable?.primary.pressed.fg};
2176    }
2177
2178    &[data-selected] {
2179      background-color: ${t.selectable?.primary.pressed.bg};
2180    }
2181
2182    &:not([data-focused]):not([data-selected]) {
2183      @media (hover: hover) {
2184        &:hover {
2185          --card-border-color: ${t.input.default.hovered.border};
2186        }
2187      }
2188    }
2189
2190    &[data-markers] {
2191      --card-bg-color: ${t.dark?v.OZ.purple[950].hex:v.OZ.purple[50].hex};
2192    }
2193
2194    &[data-warning] {
2195      --card-bg-color: ${t.muted.caution.hovered.bg};
2196
2197      @media (hover: hover) {
2198        &:hover {
2199          --card-border-color: ${t.muted.caution.hovered.border};
2200        }
2201      }
2202    }
2203
2204    &[data-invalid] {
2205      --card-bg-color: ${t.input.invalid.enabled.bg};
2206      --card-border-color: ${t.input.invalid.enabled.border};
2207
2208      @media (hover: hover) {
2209        &:hover {
2210          --card-border-color: ${t.input.invalid.hovered.border};
2211        }
2212      }
2213    }
2214  `}),$D=g.I4.span`
2215  display: block;
2216  max-width: calc(5em + 80px);
2217  position: relative;
2218`,$z=(0,g.I4)(u.az)`
2219  max-width: 250px;
2220`,$M=["top","bottom"];function $P(e){let t,n,r,i,l,d,c,p,m,h,f,g,x,b,v,j,w,_=(0,o.c)(48),{floatingBoundary:k,inlineObjectFocused:S,inlineObjectOpen:T,onOpenInlineObject:I,onRemoveInlineObject:E,referenceBoundary:$,referenceElement:A,title:D}
2220=e,[z,M]=(0,s.useState)(!1),{sanity:P}=(0,u.DP)(),{t:R}=iJ(),O=(0,s.useRef)(null),V=(0,s.useRef)(null),L=(0,s.useRef)(null),F=P.color.dark?"light":"dark",B=(0,ng.v$)(),N=(0,s.useRef)(null);_[0]!==B?(t=()=>{M(!1),ng.Og.focus(B),L.current=null},_[0]=B,_[1]=t):t=_[1];let Y=t;_[2]!==B||_[3]!==Y||_[4]!==S||_[5]!==z?(n=e=>{if(z){if("Tab"===e.key){if(S&&e.target instanceof HTMLElement&&e.target.contentEditable&&null===L.current){e.preventDefault(),O.current?.focus(),L.current=O.current;return}if(e.target===V.current){e.preventDefault(),e.stopPropagation(),L.current=null,ng.Og.focus(B);return}}"Escape"===e.key&&Y()}},_[2]=B,_[3]=Y,_[4]=S,_[5]=z,_[6]=n):n=_[6],(0,u.Pm)(n),_[7]!==S||_[8]!==T?(r=()=>(L.current=null,T)?void M(!1):S?void M(!0):void M(!1),i=[S,T],_[7]=S,_[8]=T,_[9]=r,_[10]=i):(r=_[9],i=_[10]),(0,s.useEffect)(r,i),_[11]!==I?(l=()=>{M(!1),I()},_[11]=I,_[12]=l):l=_[12];let H=l;_[13]!==E?(d=()=>{M(!1),E()},_[13]=E,_[14]=d):d=_[14];let Z=d,U=!T&&z;return _[15]!==D?(c=(0,a.jsx)(u.az,{padding:2,children:(0,a.jsx)(u.EY,{weight:"medium",size:1,children:D})}),_[15]=D,_[16]=c):c=_[16],_[17]!==R?(p=R("inputs.portable-text.inline-object.edit-aria-label"),_[17]=R,_[18]=p):p=_[18],_[19]!==R?(m=R("inputs.portable-text.inline-object.edit"),_[19]=R,_[20]=m):m=_[20],_[21]!==m?(h={content:m},_[21]=m,_[22]=h):h=_[22],_[23]!==H||_[24]!==h||_[25]!==p?(f=(0,a.jsx)(y.$n,{"aria-label":p,"data-testid":"edit-inline-object-button",icon:C.qUP,mode:"bleed",onClick:H,ref:O,tabIndex:0,tooltipProps:h}),_[23]=H,_[24]=h,_[25]=p,_[26]=f):f=_[26],_[27]!==R?(g=R("inputs.portable-text.inline-object.remove-aria-label"),_[27]=R,_[28]=g):g=_[28],_[29]!==R?(x=R("inputs.portable-text.inline-object.remove"),_[29]=R,_[30]=x):x=_[30],_[31]!==x?(b={content:x},_[31]=x,_[32]=b):b=_[32],_[33]!==Z||_[34]!==g||_[35]!==b?(v=(0,a.jsx)(y.$n,{"aria-label":g,"data-testid":"remove-inline-object-button",icon:C.ucK,mode:"bleed",onClick:Z,ref:V,tabIndex:0,tone:"critical",tooltipProps:b}),_[33]=Z,_[34]=g,_[35]=b,_[36]=v):v=_[36],_[37]!==f||_[38]!==v||_[39]!==c?(j=(0,a.jsx)(u.az,{padding:1,"data-testid":"inline-object-toolbar-popover",ref:N,children:(0,a.jsxs)(u.so,{gap:1,children:[c,f,v]})}),_[37]=f,_[38]=v,_[39]=c,_[40]=j):j=_[40],_[41]!==k||_[42]!==F||_[43]!==$||_[44]!==A||_[45]!==j||_[46]!==U?(w=(0,a.jsx)(y.AM,{open:U,floatingBoundary:k,constrainSize:!0,content:j,fallbackPlacements:$M,placement:"top",portal:!0,preventOverflow:!0,referenceBoundary:$,referenceElement:A,scheme:F}),_[41]=k,_[42]=F,_[43]=$,_[44]=A,_[45]=j,_[46]=U,_[47]=w):w=_[47],w}let $R=e=>Array.isArray(e)?e.flatMap($R):"number"==typeof e?[e]:"auto"===e?["auto"]:[];function $O(e){let t,n,r,i,l=(0,o.c)(13),{onClose:d,children:c,title:p,width:m,autoFocus:h}=e,f=void 0===m?1:m,g=(0,s.useId)(),[C,x]=(0,s.useState)(null),b=(0,s.useRef)(null);return l[0]===Symbol.for("react.memo_cache_sentinel")?(t=[0,0,1,0],l[0]=t):t=l[0],l[1]!==c?(n=(0,a.jsx)(u.az,{ref:b,children:c}),l[1]=c,l[2]=n):n=l[2],l[3]!==C||l[4]!==n?(r=(0,a.jsx)(xE,{margins:t,children:(0,a.jsx)(x$,{scrollElement:C,containerElement:b,children:n})}),l[3]=C,l[4]=n,l[5]=r):r=l[5],l[6]!==h||l[7]!==g||l[8]!==d||l[9]!==r||l[10]!==p||l[11]!==f?(i=(0,a.jsx)(y.lG,{header:p,id:g,onClickOutside:d,onClose:d,portal:"default",width:f,contentRef:x,"data-testid":"default-edit-object-dialog",__unstable_autoFocus:h,children:r}),l[6]=h,l[7]=g,l[8]=d,l[9]=r,l[10]=p,l[11]=f,l[12]=i):i=l[12],i}let $V=(0,g.I4)(y.AM)`
2221  & > div {
2222    overflow: hidden;
2223    overflow: clip;
2224  }
2225`,$L=(0,g.I4)(u.az)`
2226  /* Prevent overflow caused by change indicator */
2227  overflow-x: hidden;
2228  overflow-y: auto;
2229`,$F=(0,g.I4)(u.az)`
2230  box-shadow: 0 1px 0 var(--card-shadow-outline-color);
2231  position: relative;
2232  z-index: 10;
2233  min-height: auto;
2234`,$B=e=>{let t,n,r,i,l=(0,o.c)(7);return l[0]!==e?({children:t,...n}=e,l[0]=e,l[1]=t,l[2]=n):(t=l[1],n=l[2]),l[3]===Symbol.for("react.memo_cache_sentinel")?(r={maxHeight:"60vh"},l[3]=r):r=l[3],l[4]!==t||l[5]!==n?(i=(0,a.jsx)("div",{...n,style:r,children:t}),l[4]=t,l[5]=n,l[6]=i):i=l[6],i},$N=["top","bottom"];function $Y(e){let t,n,r=(0,o.c)(8),{floatingBoundary:i,referenceBoundary:l,referenceElement:s,width:d}=e,c=void 0===d?1:d;return r[0]!==e?(t=(0,a.jsx)($H,{...e}),r[0]=e,r[1]=t):t=r[1],r[2]!==i||r[3]!==l||r[4]!==s||r[5]!==t||r[6]!==c?(n=(0,a.jsx)($V,{content:t,constrainSize:!0,"data-testid":"popover-edit-dialog","data-ui":"PopoverEditDialog",fallbackPlacements:$N,floatingBoundary:i,open:!0,overflow:"auto",placement:"bottom",portal:"default",preventOverflow:!0,referenceBoundary:l,referenceElement:s,width:c,autoFocus:!0}),r[2]=i,r[3]=l,r[4]=s,r[5]=t,r[6]=c,r[7]=n):n=r[7],n}function $H(e){let t,n,r,i,l,d,c,p,m,h,f,g,x,b=(0,o.c)(26),{onClose:v,referenceBoundary:j,referenceElement:w,title:_}=e,k=(0,s.useRef)(!1);b[0]!==v?(t=()=>{k.current=!0,v()},b[0]=v,b[1]=t):t=b[1];let S=t;b[2]!==S?(n=e=>{"Escape"===e.key&&S()},b[2]=S,b[3]=n):n=b[3],(0,u.Pm)(n),b[4]!==w?(r=()=>[w],b[4]=w,b[5]=r):r=b[5],b[6]!==j?(i=()=>j,b[6]=j,b[7]=i):i=b[7],(0,u.PR)(S,r,i);
2234let[T,I]=(0,s.useState)(null),E=(0,s.useRef)(null);b[8]===Symbol.for("react.memo_cache_sentinel")?(l=e=>!k.current&&(!!e.contentEditable||!!E.current?.contains(e)),b[8]=l):l=b[8];let $=l;return b[9]!==_?(d=(0,a.jsx)(u.az,{flex:1,padding:2,children:(0,a.jsx)(u.EY,{weight:"medium",children:_})}),b[9]=_,b[10]=d):d=b[10],b[11]===Symbol.for("react.memo_cache_sentinel")?(c={content:"Close"},b[11]=c):c=b[11],b[12]!==S?(p=(0,a.jsx)(y.$n,{autoFocus:!0,icon:C.USm,mode:"bleed",onClick:S,tooltipProps:c}),b[12]=S,b[13]=p):p=b[13],b[14]!==d||b[15]!==p?(m=(0,a.jsx)($F,{flex:"none",padding:1,children:(0,a.jsxs)(u.so,{align:"center",children:[d,p]})}),b[14]=d,b[15]=p,b[16]=m):m=b[16],b[17]===Symbol.for("react.memo_cache_sentinel")?(h=[0,0,1,0],b[17]=h):h=b[17],b[18]!==e.children?(f=(0,a.jsx)($L,{flex:1,children:(0,a.jsx)(xE,{margins:h,children:(0,a.jsx)(u.az,{padding:3,ref:I,children:e.children})})}),b[18]=e.children,b[19]=f):f=b[19],b[20]!==f||b[21]!==m?(g=(0,a.jsx)(eX.Ay,{autoFocus:!0,whiteList:$,children:(0,a.jsxs)(u.so,{as:$B,ref:E,direction:"column",height:"fill",children:[m,f]})}),b[20]=f,b[21]=m,b[22]=g):g=b[22],b[23]!==T||b[24]!==g?(x=(0,a.jsx)(x$,{scrollElement:T,containerElement:E,children:g}),b[23]=T,b[24]=g,b[25]=x):x=b[25],x}function $Z(e){let t,n,r,i,l,s,d=(0,o.c)(29),{autoFocus:c,defaultType:u,floatingBoundary:p,onClose:m,referenceBoundary:h,referenceElement:f,schemaType:g}=e,{t:C}=iJ();d[0]!==g?(n=function(e){let t,n=e.options?.modal;return"object"==typeof n&&null!==n?{type:"dialog"===(t=n.type)||"popover"===t?t:void 0,width:$R(n.width)}:void 0}(g),d[0]=g,d[1]=n):n=d[1],t=n;let y=t?.type||u;d[2]!==g.i18nTitleKey||d[3]!==g.name||d[4]!==g.title||d[5]!==C?(r=g.i18nTitleKey?C(g.i18nTitleKey):g.title||g.name,d[2]=g.i18nTitleKey,d[3]=g.name,d[4]=g.title,d[5]=C,d[6]=r):r=d[6];let x=r;d[7]!==x||d[8]!==C?(i=C("inputs.portable-text.annotation-editor.title",{schemaType:x}),d[7]=x,d[8]=C,d[9]=i):i=d[9];let b=i;d[10]!==m?(l=()=>{m()},d[10]=m,d[11]=l):l=d[11];let v=l,j=t?.width;if("popover"===y){let t,n;return d[12]!==b?(t=(0,a.jsx)(a.Fragment,{children:b}),d[12]=b,d[13]=t):t=d[13],d[14]!==c||d[15]!==p||d[16]!==v||d[17]!==j||d[18]!==e.children||d[19]!==h||d[20]!==f||d[21]!==t?(n=(0,a.jsx)($Y,{autoFocus:c,floatingBoundary:p,onClose:v,referenceBoundary:h,referenceElement:f,title:t,width:j,children:e.children}),d[14]=c,d[15]=p,d[16]=v,d[17]=j,d[18]=e.children,d[19]=h,d[20]=f,d[21]=t,d[22]=n):n=d[22],n}return d[23]!==c||d[24]!==v||d[25]!==b||d[26]!==j||d[27]!==e.children?(s=(0,a.jsx)($O,{onClose:v,title:b,width:j,autoFocus:c,children:e.children}),d[23]=c,d[24]=v,d[25]=b,d[26]=j,d[27]=e.children,d[28]=s):s=d[28],s}let $U=e=>{let{floatingBoundary:t,focused:n,onItemClose:r,onItemOpen:i,onPathF
2234ocus:o,path:d,readOnly:c,referenceBoundary:u,relativePath:p,renderAnnotation:m,renderBlock:h,renderCustomMarkers:f,renderField:g,renderItem:C,renderInlineBlock:x,renderInput:b,renderPreview:v,schemaType:j,selected:w,setElementRef:_,value:k}=e,{Markers:S}=o$().__internal.components,T=(0,ng.v$)(),I=oV(d),[E,$]=(0,s.useState)(null),A=ve(aB(d)),{validation:D,hasError:z,hasInfo:M,hasWarning:P}=oO(A?.node),R=T.schemaTypes.block,O=I.length>0,V=(0,s.useMemo)(()=>({anchor:{path:p,offset:0},focus:{path:p,offset:0}}),[p]),L=(0,s.useCallback)(()=>{ng.Og.delete(T,V,{mode:"children"}),ng.Og.focus(T)},[V,T]),F=(0,s.useCallback)(()=>{A&&(ng.Og.blur(T),i(A.node.path))},[i,T,A]),B=(0,s.useCallback)(()=>{r(),ng.Og.select(T,V),ng.Og.focus(T)},[r,T,V]),N=!!A?.member.open,Y=A?.input,H=A?.node.path||i_,Z=oE(d,!0),U=(0,s.useMemo)(()=>Z.filter(e=>(0,l.n4)(e.path,d)),[d,Z]),q=(0,s.useMemo)(()=>({__unstable_floatingBoundary:t,__unstable_referenceBoundary:u,__unstable_referenceElement:E,children:Y,focused:n,onClose:B,onOpen:F,onPathFocus:o,onRemove:L,open:N,markers:I,member:A?.member,parentSchemaType:R,path:H,presence:U,readOnly:!!c,renderAnnotation:m,renderBlock:h,renderDefault:$q,renderField:g,renderInlineBlock:x,renderInput:b,renderItem:C,renderPreview:v,schemaType:j,selected:w,value:k,validation:D}),[t,n,Y,N,I,A?.member,H,B,F,o,L,R,c,u,E,m,h,g,x,b,C,v,U,j,w,D,k]),J=z||P||M||O,W=(0,s.useMemo)(()=>J&&(0,a.jsx)($z,{children:(0,a.jsx)(S,{markers:I,validation:D,renderCustomMarkers:f})})||null,[S,I,f,J,D]),K=(0,s.useCallback)(e=>{A&&_({key:A.member.key,elementRef:e}),$(e)},[A,_,$]);return(0,s.useMemo)(()=>(0,a.jsx)("span",{ref:K,contentEditable:!1,children:(0,a.jsx)(y.m_,{placement:"bottom",portal:"editor",disabled:!!N||!J,content:W,children:x&&(0,a.jsx)("span",{style:{position:"relative"},children:x(q)})})}),[q,x,K,W,J,N])},$q=e=>{let t,n,r,i,l,s,d,c,u=(0,o.c)(41),{__unstable_floatingBoundary:p,__unstable_referenceBoundary:m,__unstable_referenceElement:h,children:f,focused:g,markers:C,onClose:y,onOpen:x,onRemove:b,open:v,readOnly:j,renderPreview:w,schemaType:_,selected:k,validation:S,value:T}=e,{t:I}=iJ(),E=C.length>0,$=_?.title||_.name,A=S.filter($J).length>0,D=S.filter($W).length>0;e:{if(A){t="critical";break e}if(D){t="caution";break e}if(k||g){t="primary";break e}t=void 0}let z=t;u[0]!==I?(n=I("inputs.portable-text.inline-block.aria-label"),u[0]=I,u[1]=n):n=u[1];let M=g||void 0,P=A||void 0,R=E||void 0,O=j||void 0,V=k||void 0,L=D||void 0,F=j?x:void 0;return u[2]!==w||u[3]!==_||u[4]!==T?(r=w({layout:"inline",schemaType:_,skipVisibilityCheck:!0,value:T,fallbackTitle:"Click to edit"}),u[2]=w,u[3]=_,u[4]=T,u[5]=r):r=u[5],u[6]!==r?(i=(0,a.jsx)($D,{children:r}),u[6]=r,u[7]=i):i=u[7],u[8]!==x||u[9]!==n||u[10]!==i||u[11]!==M||u[12]!==P||u[13]!==R||u[14]!==O||u[15]!==V||u[16]!==L||u[17]!==F||u[18]!==z?(l=(0,a.jsx)($A,{"aria-label":n,"data-focused":M,"data-invalid":P,"data-markers":R,"data-read-only":O,"data-selected":V,"data-warning":L,forwardedAs:"span",onClick:F,onDoubleClick:x,tone:z,children:i}),u[8]=x,u[9]=n,u[10]=i,u[11]=M,u[12]=P,u[13]=R,u[14]=O,u[15]=V,u[16]=L,u[17]=F,u[18]=z,u[19]=l):l=u[19],u[20]!==p||u[21]!==g||u[22]!==x||u[23]!==b||u[24]!==v||u[25]!==$||u[26]!==m||u[27]!==h?(s=h&&(0,a.jsx)($P,{floatingBoundary:p,inlineObjectFocused:g,inlineObjectOpen:v,onOpenInlineObject:x,onRemoveInlineObject:b,referenceBoundary:m,referenceElement:h,title:$}),u[20]=p,u[21]=g,u[22]=x,u[23]=b,u[24]=v,u[25]=$,u[26]=m,u[27]=h,u[28]=s):s=u[28],u[29]!==f||u[30]!==p||u[31]!==y||u[32]!==v||u[33]!==m||u[34]!==h||u[35]!==_?(d=v&&(0,a.jsx)($Z,{autoFocus:!0,defaultType:"popover",floatingBoundary:p,onClose:y,referenceBoundary:m,referenceElement:h,schemaType:_,children:f}),u[29]=f,u[30]=p,u[31]=y,u[32]=v,u[33]=m,u[34]=h,u[35]=_,u[36]=d):d=u[36],u[37]!==l||u[38]!==s||u[39]!==d?(c=(0,a.jsxs)(a.Fragment,{children:[l,s,d]}),u[37]=l,u[38]=s,u[39]=d,u[40]=c):c=u[40],c};function $J(e){return"error"===e.level}function $W(e){return"warning"===e.level}function $K(e){let t,n,r,i,l=(0,o.c)(14),s=(0,ng.v$)(),d=(0,u.$w)().element,c=vt(),p=IG();l[0]!==c?(n=c.find($G),l[0]=c,l[1]=n):n=l[1],t=n,l[2]!==s||l[3]!==t||l[4]!==e?(r=()=>{t&&(e.onItemClose(),t.node.value&&ow(t.node.value)&&t&&ng.Og.removeAnnotation(s,t.node.schemaType),ng.Og.focus(s))},l[2]=s,l[3]=t,l[4]=e,l[5]=r):r=l[5];let m=r;if(!t)return null;let h=p[t.member.key];if(!h)return null;let f=!!e.focused;return l[6]!==d||l[7]!==h||l[8]!==m||l[9]!==t.input||l[10]!==t.node.schemaType||l[11]!==e.referenceBoundary||l[12]!==f?(i=(0,a.jsx)($Z,{defaultType:"popover",floatingBoundary:d,onClose:m,autoFocus:f,referenceBoundary:e.referenceBoundary,referenceElement:h,schemaType:t.node.schemaType,children:t.input}),l[6]=d,l[7]=h,l[8]=m,l[9]=t.input,l[10]=t.node.schemaType,l[11]=e.referenceBoundary,l[12]=f,l[13]=i):i=l[13],i}function $G(e){return"annotation"===e.kind&&e.member.open}function $X(e){let t,n,r,i,d,p,m,h,f,g,C,y,x,b,v,j,w,k,S,T,I,E,$,A=(0,o.c)(154),{changed:D,elementRef:z,focused:M,focusPath:P,elementProps:R,hasFocusWithin:O,hideToolbar:V,hotkeys:L,isActive:F,isFullscreen:B,onActivate:N,onCopy:Y,onItemClose:H,onItemOpen:Z,onItemRemove:U,onPaste:q,onPathFocus:J,onToggleFullscreen:W,onUpload:K,path:G,rangeDecorations:X,readOnly:Q,renderAnnotation:ee,renderBlock:et,renderBlockActions:en,renderCustomMarkers:er,renderField:ei,renderInlineBlock:ea,renderInput:eo,renderItem:el,renderPreview:es,resolveUploader:ed,value:ec}=e,eu=void 0===P?i_:P,ep=(0,ng.v$)(),em=function(){let e,t=(0,o.c)(2),n=(0,s.useContext)(c.rf);return t[0]!==n?(e=e=>{let{key:t,elementRef:r}=e;n.next({...n.value,[t]:r})},t[0]=n,t[1]=e):e=t[1],e}
2234(),eh=(0,u.$w)().element,[ef,eg]=(0,s.useState)(null),[eC,ey]=(0,s.useState)(null);A[0]!==W?(t=()=>{W()},A[0]=W,A[1]=t):t=A[1];let ex=t,eb=L?.custom;A[2]!==W||A[3]!==eb?(n={"mod+enter":W,...eb},A[2]=W,A[3]=eb,A[4]=n):n=A[4],A[5]!==L||A[6]!==n?(r={...L,custom:n},A[5]=L,A[6]=n,A[7]=r):r=A[7];let ev=function(e){let t,n,r,i,a,l=(0,o.c)(12),d=(0,ng.v$)();l[0]!==e?(t=()=>e,l[0]=e,l[1]=t):t=l[1];let[c]=(0,s.useState)(t);return c!==e&&console.warn("Make sure that hotkeys are a stable object across renders, or there will be issues with key handling in the Portable Text Editor."),l[2]!==d.schemaTypes.decorators?(n={marks:{}},d.schemaTypes.decorators.forEach(e=>{switch(e.value){case"strong":n.marks["mod+b"]=e.value;break;case"em":n.marks["mod+i"]=e.value;break;case"underline":n.marks["mod+u"]=e.value;break;case"code":n.marks["mod+'"]=e.value}}),l[2]=d.schemaTypes.decorators,l[3]=n):n=l[3],l[4]!==c?(r=c||{},l[4]=c,l[5]=r):r=l[5],l[6]!==n.marks||l[7]!==r.marks?(i={...n.marks,...r.marks},l[6]=n.marks,l[7]=r.marks,l[8]=i):i=l[8],l[9]!==c.custom||l[10]!==i?(a={marks:i,custom:c.custom},l[9]=c.custom,l[10]=i,l[11]=a):a=l[11],a}(r),ej=ec&&en?en:void 0,ew=ec&&er?er:void 0,[e_,ek]=(0,s.useState)(null);A[8]!==ej||A[9]!==ew||A[10]!==eh||A[11]!==B||A[12]!==H||A[13]!==Z||A[14]!==U||A[15]!==J||A[16]!==G||A[17]!==Q||A[18]!==ee||A[19]!==et||A[20]!==ei||A[21]!==ea||A[22]!==eo||A[23]!==el||A[24]!==es||A[25]!==eC||A[26]!==em?(i=e=>{let{children:t,focused:n,path:r,selected:i,schemaType:o,value:l}=e;return(0,a.jsx)(E$,{floatingBoundary:eh,focused:n,isFullscreen:B,onItemClose:H,onItemOpen:Z,onItemRemove:U,onPathFocus:J,path:G.concat(r),readOnly:Q,referenceBoundary:eC,renderAnnotation:ee,renderField:ei,renderInlineBlock:ea,renderInput:eo,renderItem:el,renderBlockActions:ej,renderCustomMarkers:ew,renderPreview:es,renderBlock:et,schemaType:o,selected:i,setElementRef:em,value:l,children:t})}
2234,A[8]=ej,A[9]=ew,A[10]=eh,A[11]=B,A[12]=H,A[13]=Z,A[14]=U,A[15]=J,A[16]=G,A[17]=Q,A[18]=ee,A[19]=et,A[20]=ei,A[21]=ea,A[22]=eo,A[23]=el,A[24]=es,A[25]=eC,A[26]=em,A[27]=i):i=A[27];let eS=i;A[28]!==ej||A[29]!==ew||A[30]!==eh||A[31]!==B||A[32]!==H||A[33]!==Z||A[34]!==U||A[35]!==J||A[36]!==G||A[37]!==Q||A[38]!==ee||A[39]!==et||A[40]!==ei||A[41]!==ea||A[42]!==eo||A[43]!==el||A[44]!==es||A[45]!==eC||A[46]!==em?(d=e=>{let{focused:t,path:n,selected:r,schemaType:i,value:o}=e;return(0,a.jsx)(Dp,{floatingBoundary:eh,focused:t,isFullscreen:B,onItemClose:H,onItemOpen:Z,onItemRemove:U,onPathFocus:J,path:G.concat(n),readOnly:Q,referenceBoundary:eC,relativePath:n,renderAnnotation:ee,renderBlock:et,renderBlockActions:ej,renderCustomMarkers:ew,renderField:ei,renderInlineBlock:ea,renderInput:eo,renderItem:el,renderPreview:es,schemaType:i,selected:r,setElementRef:em,value:o})},A[28]=ej,A[29]=ew,A[30]=eh,A[31]=B,A[32]=H,A[33]=Z,A[34]=U,A[35]=J,A[36]=G,A[37]=Q,A[38]=ee,A[39]=et,A[40]=ei,A[41]=ea,A[42]=eo,A[43]=el,A[44]=es,A[45]=eC,A[46]=em,A[47]=d):d=A[47];let eT=d;A[48]!==ep.schemaTypes.block.name||A[49]!==eT||A[50]!==eS?(p=e=>{let{value:t}=e;return t._type===ep.schemaTypes.block.name?eS(e):eT(e)},A[48]=ep.schemaTypes.block.name,A[49]=eT,A[50]=eS,A[51]=p):p=A[51];let eI=p;A[52]!==eh||A[53]!==ep.schemaTypes.span.name||A[54]!==H||A[55]!==Z||A[56]!==J||A[57]!==G||A[58]!==Q||A[59]!==ee||A[60]!==et||A[61
2234]!==er||A[62]!==ei||A[63]!==ea||A[64]!==eo||A[65]!==el||A[66]!==es||A[67]!==eC||A[68]!==em?(m=e=>{let{children:t,focused:n,path:r,selected:i,schemaType:o,value:l}=e;return l._type===ep.schemaTypes.span.name?t:(0,a.jsx)($U,{floatingBoundary:eh,focused:n,onItemClose:H,onItemOpen:Z,onPathFocus:J,path:G.concat(r),readOnly:Q,referenceBoundary:eC,relativePath:r,renderAnnotation:ee,renderBlock:et,renderCustomMarkers:er,renderField:ei,renderInlineBlock:ea,renderInput:eo,renderItem:el,renderPreview:es,schemaType:o,selected:i,setElementRef:em,value:l})},A[52]=eh,A[53]=ep.schemaTypes.span.name,A[54]=H,A[55]=Z,A[56]=J,A[57]=G,A[58]=Q,A[59]=ee,A[60]=et,A[61]=er,A[62]=ei,A[63]=ea,A[64]=eo,A[65]=el,A[66]=es,A[67]=eC,A[68]=em,A[69]=m):m=A[69];let eE=m;A[70]!==eh||A[71]!==M||A[72]!==H||A[73]!==Z||A[74]!==J||A[75]!==G||A[76]!==Q||A[77]!==ee||A[78]!==et||A[79]!==er||A[80]!==ei||A[81]!==ea||A[82]!==eo||A[83]!==el||A[84]!==es||A[85]!==eC||A[86]!==em?(h=e=>{let{children:t,focused:n,path:r,selected:i,schemaType:o,value:l}=e;return(0,a.jsx)(vo,{editorNodeFocused:n,floatingBoundary:eh,focused:!!M,onItemClose:H,onItemOpen:Z,onPathFocus:J,path:G.concat(r),readOnly:Q,referenceBoundary:eC,renderAnnotation:ee,renderBlock:et,renderCustomMarkers:er,renderField:ei,renderInlineBlock:ea,renderInput:eo,renderItem:el,renderPreview:es,schemaType:o,selected:i,setElementRef:em,value:l,children:t})},A[70]=eh,A[71]=M,A[72]=H,A[73]=Z,A[74]=J,A[75]=G,A[76]=Q,A[77]=ee,A[78]=et,A[79]=er,A[80]=ei,A[81]=ea,A[82]=eo,A[83]=el,A[84]=es,A[85]=eC,A[86]=em,A[87]=h):h=A[87];let e$=h,eA=R["aria-describedby"];A[88]!==eu||A[89]!==O?(f=()=>{if(O)return{anchor:{path:eu,offset:0},focus:{path:eu,offset:0}}},A[88]=eu,A[89]=O,A[90]=f):f=A[90];let[eD]=(0,s.useState)(f),ez=!!ep.schemaTypes.block.options?.oneLine;A[91]!==eA||A[92]!==ev||A[93]!==e$||A[94]!==eI||A[95]!==eE||A[96]!==z||A[97]!==ex||A[98]!==V||A[99]!==eD||A[100]!==F||A[101]!==B||A[102]!==ez||A[103]!==Y||A[104]!==Z||A[105]!==q||A[106]!==G||A[107]!==X||A[108]!==Q||A[109]!==eC?(C=(0,a.jsx)($I,{ariaDescribedBy:eA,elementRef:z,initialSelection:eD,hideToolbar:V,hotkeys:ev,isActive:F,isFullscreen:B,isOneLine:ez,onItemOpen:Z,onCopy:Y,onPaste:q,onToggleFullscreen:ex,path:G,rangeDecorations:X,readOnly:Q,renderAnnotation:e$,renderBlock:eI,renderChild:eE,setPortalElement:ek,scrollElement:eC,setScrollElement:ey}),A[91]=eA,A[92]=ev,A[93]=e$,A[94]=eI,A[95]=eE,A[96]=z,A[97]=ex,A[98]=V,A[99]=eD,A[100]=F,A[101]=B,A[102]=ez,A[103]=Y,A[104]=Z,A[105]=q,A[106]=G,A[107]=X,A[108]=Q,A[109]=eC,A[110]=C):C=A[110],A[111]!==ep.schemaTypes.portableText.of||A[112]!==K||A[113]!==ed||A[114]!==C?(y=(0,a.jsx)(j3,{types:ep.schemaTypes.portableText.of,resolveUploader:ed,onUpload:K,tabIndex:-1,children:C}),A[111]=ep.schemaTypes.portableText.of,A[112]=K,A[113]=ed,A[114]=C,A[115]=y):y=A[115],g=y;let eM=(0,u.WP)();A[116]!==eM.element||A[117]!==e_||A[118]!==ef?(b={collapsed:ef,default:eM.element,editor:e_,expanded:eM.element},A[116]=eM.element,A[117]=e_,A[118]=ef,A[119]=b):b=A[119],x=b,A[120]!==eu||A[121]!==H||A[122]!==eC?(v={focusPath:eu,boundaryElement:eC,onItemClose:H},A[120]=eu,A[121]=H,A[122]=eC,A[123]=v):v=A[123],function(e){let t,n,r=(0,o.c)(15),{focusPath:i,boundaryElement:a,onItemClose:d}=e,c=vt(),u=IG(),p=(0,ng.v$)(),m=(0,ng.pq)();r[0]!==a||r[1]!==p||r[2]!==u||r[3]!==i||r[4]!==c||r[5]!==m?(t=()=>{if(0===i.length||m?.focus.path&&(0,l.n4)(m.focus.path,i.slice(0,m.focus.path.length)))return;let e=c.find($$),t=c.find($E),n=e||t,r=n?u[n.member.key]:void 0;if(n&&r){a&&((0,nk.A)(a,{scrollMode:"if-needed",block:"start",inline:"start"}),(0,nk.A)(r,{scrollMode:"if-needed",boundary:a,block:"nearest",inline:"start"}));let e="textBlock"===n.kind,t=1===i.length;if(e||t){let r=e&&(0,_.o8)(i[2])?i[2]._key:void 0,a=r&&Array.isArray(n.node.value?.children)?n.node.value?.children.find(e=>e._key===r):void 0,o=a&&"span"===a._type&&4===i.length&&"children"===i[1]&&"text"===i[3]||!1,l=e&&(3===i.length&&"children"===i[1]||o),s=[];l?s=i.slice(0,3):e&&t&&Array.isArray(n.node.value?.children)?s=[i[0],"children",{_key:n.node.value?.children[0]._key}]:t&&(s=[{_key:n.key}]),s.length&&(ng.Og.select(p,{anchor:{path:s,offset:0},focus:{path:s,offset:0}}),e&&ng.Og.focus(p))}}},r[0]=a,r[1]=p,r[2]=u,r[3]=i,r[4]=c,r[5]=m,r[6]=t):t=r[6];let h=m?.focus.path;r[7]!==a||r[8]!==p||r[9]!==u||r[10]!==i||r[11]!==d||r[12]!==c||r[13]!==h?(n=[a,p,u,i,d,c,h],r[7]=a,r[8]=p,r[9]=u,r[10]=i,r[11]=d,r[12]=c,r[13]=h,r[14]=n):n=r[14],(0,s.useLayoutEffect)(t,n)}(v);let eP=M||O,eR=eM.element,eO=!F,eV=!!M,eL=eP?"":void 0,eF=Q?"":void 0,eB=B?"expanded":"collapsed";return A[124]!==g||A[125]!==B?(j=B?(0,a.jsx)(IK,{children:g}):g,A[124]=g,A[125]=B,A[126]=j):j=A[126],A[127]!==M||A[128]!==H||A[129]!==eC?(w=(0,a.jsx)($K,{focused:M,onItemClose:H,referenceBoundary:eC}),A[127]=M,A[128]=H,A[129]=eC,A[130]=w):w=A[130],A[131]!==eB||A[132]!==j||A[133]!==w?(k=(0,a.jsx)(u.az,{"data-wrapper":"",ref:eg,children:(0,a.jsxs)(u.ZL,{__unstable_name:eB,children:[j,w]})}),A[131]=eB,A[132]=j,A[133]=w,A[134]=k):k=A[134],A[135]===Symbol.for("react.memo_cache_sentinel")?(S=(0,a.jsx)("div",{"data-border":""}),A[135]=S):S=A[135],A[136]!==eL||A[137]!==eF||A[138]!==k?(T=(0,a.jsxs)(IW,{"data-focused":eL,"data-read-only":eF,children:[k,S]}),A[136]=eL,A[137]=eF,A[138]=k,A[139]=T):T=A[139],A[140]!==D||A[141]!==B||A[142]!==G||A[143]!==eV||A[144]!==T?(I=(0,a.jsx)(El,{disabled:B,hasFocus:eV,isChanged:D,path:G,children:T}),A[140]=D,A[141]=B,A[142]=G,A[143]=eV,A[144]=T,A[145]=I):I=A[145],A[146]!==N||A[147]!==eO||A[148]!==I?(E=(0,a.jsx)(IJ,{onActivate:N,isOverlayActive:eO,children:I}),A[146]=N,A[147]=eO,A[148]=I,A[149]=E):E=A[149],A[150]!==eM.element||A[151]!==x||A[152]!==E?($=(0,a.jsx)(_p,{legacyEditing:!0,children:(0,a.jsx)(u.GD,{__unstable_elements:x,element:eR,children:E})}),A[150]=eM.element,A[151]=x,A[152]=E,A[153]=$):$=A[153],$}function $Q(e){let t,n=(0,o.c)(3);return n[0]!==e.children||n[1]!==e.markers?(t=(0,a.jsx)(c.ht.Provider,{value:e.markers,children:e.children}),n[0]=e.children,n[1]=e.markers,n[2]=t):t=n[2],t}function $1(e){let t,n=(0,o.c)(3);return n[0]!==e.children||n[1]!==e.memberItems?(t=(0,a.jsx)(c.u2.Provider,{value:e.memberItems,children:e.children}),n[0]=e.children,n[1]=e.memberItems,n[2]=t):t=n[2],t}function $2(e){let t,n,r,i,l,s,d,c,p,m,h,f,g,C=(0,o.c)(42),{onChange:y,onIgnore:x,resolution:b,readOnly:v}=e,j=(0,e5.Jr)(),{t:w}=iJ();C[0]!==y||C[1]!==b||C[2]!==j?(t=()=>{b&&(y({type:"mutation",patches:b.patches}
2234),j.log(IN,{PTEInvalidValueId:b.i18n.description,PTEInvalidValueDescription:b.description}))},C[0]=y,C[1]=b,C[2]=j,C[3]=t):t=C[3];let _=t;C[4]!==x||C[5]!==j?(n=()=>{j.log(IB),x()},C[4]=x,C[5]=j,C[6]=n):n=C[6];let k=n;return b?(C[7]!==w?(r=w("inputs.portable-text.invalid-value.title"),C[7]=w,C[8]=r):r=C[8],C[9]!==r?(i=(0,a.jsx)(a.Fragment,{children:r}),C[9]=r,C[10]=i):i=C[10],C[11]!==_||C[12]!==k||C[13]!==v||C[14]!==b.action||C[15]!==b.i18n.action||C[16]!==b.i18n.values||C[17]!==w?(l=b.action&&(0,a.jsxs)(u.xA,{columns:[1,2],gap:1,children:[(0,a.jsx)(u.$n,{mode:"ghost",onClick:k,text:w("inputs.portable-text.invalid-value.ignore-button.text")}),!v&&(0,a.jsx)(u.$n,{onClick:_,text:(0,a.jsx)(an,{t:w,i18nKey:b.i18n.action,values:b.i18n.values}),tone:"caution"})]}),C[11]=_,C[12]=k,C[13]=v,C[14]=b.action,C[15]=b.i18n.action,C[16]=b.i18n.values,C[17]=w,C[18]=l):l=C[18],C[19]!==b.action||C[20]!==w?(s=b.action&&(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:w("inputs.portable-text.invalid-value.action-disclaimer")}),C[19]=b.action,C[20]=w,C[21]=s):s=C[21],C[22]!==s?(d=(0,a.jsx)(u.az,{padding:3,children:s}),C[22]=s,C[23]=d):d=C[23],C[24]!==l||C[25]!==d?(c=(0,a.jsxs)(u.BJ,{padding:2,children:[l,d]}),C[24]=l,C[25]=d,C[26]=c):c=C[26],C[27]!==b.i18n.description||C[28]!==b.i18n.values||C[29]!==w?(p=(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:(0,a.jsx)(an,{t:w,i18nKey:b.i18n.description,values:b.i18n.values})}),C[27]=b.i18n.description,C[28]=b.i18n.values,C[29]=w,C[30]=p):p=C[30],C[31]!==b.item?(m=JSON.stringify(b.item,null,2),C[31]=b.item,C[32]=m):m=C[32],C[33]!==m?(h=(0,a.jsx)(u.Zp,{border:!0,overflow:"auto",padding:2,tone:"inherit",children:(0,a.jsx)(u.Cy,{language:"json",children:m})}),C[33]=m,C[34]=h):h=C[34],C[35]!==h||C[36]!==p?(f=(0,a.jsxs)(u.BJ,{space:3,children:[p,h]}),C[35]=h,C[36]=p,C[37]=f):f=C[37],C[38]!==f||C[39]!==i||C[40]!==c?(g=(0,a.jsx)(bR,{title:i,suffix:c,children:f}),C[38]=f,C[39]=i,C[40]=c,C[41]=g):g=C[41],g):null}function $5(e){return e.form?.components?.input}function $0(e){return e.form?.components?.field}function $7(e){return e.form?.components?.preview}function $3(e){return e.form?.components?.item}function $8(e){return e.form?.components?.block}function $4(e){return e.form?.components?.inlineBlock}function $6(e){return e.form?.components?.annotation}function $9(e){return e.form?.components?.portableText?.plugins}let Ae={boldDecorator:({schema:e})=>e.decorators.find(e=>"strong"===e.name)?.name,codeDecorator:({schema:e})=>e.decorators.find(e=>"code"===e.name)?.name,italicDecorator:({schema:e})=>e.decorators.find(e=>"em"===e.name)?.name,strikeThroughDecorator:({schema:e})=>e.decorators.find(e=>"strike-through"===e.name)?.name,defaultStyle:({schema:e})=>e.styles.find(e=>"normal"===e.name)?.name,blockquoteStyle:({schema:e})=>e.styles.find(e=>"blockquote"===e.name)?.name,headingStyle:({schema:e,level:t})=>e.styles.find(e=>e.name===`h${t}`)?.name,orderedListStyle:({schema:e})=>e.lists.find(e=>"number"===e.name)?.name,unorderedListStyle:({schema:e})=>e.lists.find(e=>"bullet"===e.name)?.name},At=e=>{let t,n,r,i,l,s=(0,o.c)(8),d=!!(0,ng.v$)().schemaTypes.block.options?.oneLine;s[0]===Symbol.for("react.memo_cache_sentinel")?(n={plugins:{markdown:{config:Ae}},renderDefault:Ar},s[0]=n):n=s[0],t=n;let c=e.schemaType.components?.portableText?.plugins;return s[1]!==d?(r=d&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(nx.U0,{}),(0,a.jsx)(nx.cd,{behaviors:[(0,rx.Ke)({on:"insert.soft break",actions:[]})]})]}),s[1]=d,s[2]=r):r=s[2],s[3]!==c?(i=c?(0,a.jsx)(c,{...t}):(0,a.jsx)(Ar,{...t}),s[3]=c,s[4]=i):i=s[4],s[5]!==r||s[6]!==i?(l=(0,a.jsxs)(a.Fragment,{children:[r,i]}),s[5]=r,s[6]=i,s[7]=l):l=s[7],l},An=e=>{let t,n=(0,o.c)(2);return n[0]!==e.plugins.markdown.config?(t=(0,a.jsx)(nx.LK,{config:e.plugins.markdown.config}),n[0]=e.plugins.markdown.config,n[1]=t):t=n[1],t},Ar=e=>{let t,n,r=(0,o.c)(4);r[0]===Symbol.for("react.memo_cache_sentinel")?(t={defaultComponent:An,pick:$9},r[0]=t):t=r[0];let i=aE(t);return r[1]!==i||r[2]!==e?(n=(0,a.jsx)(i,{...e}),r[1]=i,r[2]=e,r[3]=n):n=r[3],n},Ai={animate:{opacity:1,scaleX:1,scaleY:1},exit:{opacity:0,scaleX:0,scaleY:.5},initial:{opacity:0,scaleX:0,scaleY:.5}},Aa={duration:.3,ease:"easeInOut",type:"spring",bounce:0}
2234,Ao={animate:{opacity:1},exit:{opacity:0},initial:{opacity:0}},Al={duration:.2,delay:.15},As=g.I4.span(({theme:e,$tints:t})=>{let n=(0,tZ.JW)(e)?.color._dark,r=t[n?400:500].hex,i=t[n?900:50].hex;return(0,g.AH)`
2235    --presence-cursor-bg: ${r};
2236    --presence-cursor-fg: ${i};
2237
2238    border-left: 1px solid transparent;
2239    border-color: var(--presence-cursor-bg);
2240    margin-left: -1px;
2241    position: relative;
2242    word-break: normal;
2243    white-space: normal;
2244    mix-blend-mode: unset;
2245    pointer-events: none;
2246  `}),Ad=g.I4.div`
2247  background-color: var(--presence-cursor-bg);
2248  border-radius: 50%;
2249  width: ${6}px;
2250  height: ${6}px;
2251  position: absolute;
2252  top: -${5}px;
2253  left: -0.5px;
2254  transform: translateX(-50%);
2255  mix-blend-mode: unset;
2256  z-index: 0;
2257  pointer-events: all;
2258
2259  // Increase the hit area of the cursor dot
2260  &:before {
2261    content: '';
2262    position: absolute;
2263    top: -${3}px;
2264    left: 50%;
2265    transform: translateX(-50%);
2266    width: ${12}px;
2267    height: ${18}px;
2268    opacity: 0.5;
2269  }
2270`,Ac=(0,g.I4)(tW.P.create(u.az))(({theme:e})=>{let t=(0,tZ.JW)(e)?.radius[4];return(0,g.AH)`
2271    position: absolute;
2272    top: -${9}px;
2273    left: -${4.5}px;
2274    transform-origin: left;
2275    white-space: nowrap;
2276    padding: 3px 6px;
2277    box-sizing: border-box;
2278    border-radius: ${t}px;
2279    background-color: var(--presence-cursor-bg);
2280    z-index: 1;
2281    mix-blend-mode: unset;
2282    user-select: none;
2283  `}),Au=(0,g.I4)(tW.P.create(u.EY))`
2284  color: var(--presence-cursor-fg);
2285  mix-blend-mode: unset;
2286`;function Ap(e){let t,n,r,i,l,d,c,u,p=(0,o.c)(15),{children:m,user:h}=e,{tints:f}=aK(h.id),[g,C]=(0,s.useState)(!1);p[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>C(!0),p[0]=t):t=p[0];let y=t;p[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>C(!1),p[1]=n):n=p[1];let x=n;return r=`presence-cursor-${h.displayName?.split(" ").join("-")}`,p[2]!==g||p[3]!==h.displayName?(i=g&&(0,a.jsx)(Ac,{animate:"animate",exit:"exit",flex:1,initial:"initial",transition:Aa,variants:Ai,children:(0,a.jsx)(Au,{animate:"animate",exit:"exit",initial:"initial",size:0,transition:Al,variants:Ao,weight:"medium",children:h.displayName})}),p[2]=g,p[3]=h.displayName,p[4]=i):i=p[4],p[5]!==i?(l=(0,a.jsx)(tK.N,{children:i}),p[5]=i,p[6]=l):l=p[6],p[7]===Symbol.for("react.memo_cache_sentinel")?(d=(0,a.jsx)(Ad,{}),p[7]=d):d=p[7],p[8]!==l||p[9]!==r||p[10]!==f?(c=(0,a.jsxs)(As,{$tints:f,contentEditable:!1,"data-testid":r,onMouseEnter:y,onMouseLeave:x,children:[l,d]}),p[8]=l,p[9]=r,p[10]=f,p[11]=c):c=p[11],p[12]!==m||p[13]!==c?(u=(0,a.jsxs)(a.Fragment,{children:[c,m]}),p[12]=m,p[13]=c,p[14]=u):u=p[14],u}function Am(e){return{...e.selection,sessionId:e.sessionId}}function Ah(e){return{...e.selection,sessionId:e.sessionId}}function Af(e,t){if(e===t)return!0;if(!Array.isArray(e)||!Array.isArray(t)||e.length<t.length)return!1;for(let n=0,r=t.length;n<r;n++)if(!function(e,t){let n=typeof e;return n===typeof t&&("object"===n?nm(e,t):e===t)}(t[n],e[n]))return!1;return!0}function Ag(){return(0,nr.Xp)(12)}let AC=(0,s.forwardRef)((e,t)=>{let n,r,i=(0,o.c)(2),a=(0,ng.v$)(),l=(0,s.useRef)(a);return i[0]===Symbol.for("react.memo_cache_sentinel")?(n=()=>l.current,r=[],i[0]=n,i[1]=r):(n=i[0],r=i[1]),(0,s.useImperativeHandle)(t,n,r),null});function Ay(e){let{editorRef:t,elementProps:n,hotkeys:r,initialActive:i,initialFullscreen:d,markers:c=i_,onChange:m,onCopy:h,onEditorChange:f,onFullScreenChange:g,onInsert:C,onItemRemove:y,onPaste:x,onPathFocus:b,path:v,readOnly:j,rangeDecorations:w,renderBlockActions:k,renderCustomMarkers:S,schemaType:T,value:I,resolveUploader:E,onUpload:$}=e,{onBlur:A,ref:D}=n,z=(0,s.useRef)(null),M=t||z,P=function(e){let t,n,r,i,d,c,u,p=(0,o.c)(10),{path:m}=e,h=oI();p[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],p[0]=t):t=p[0];let[f,g]=(0,s.useState)(t);p[1]===Symbol.for("react.memo_cache_sentinel")?(n=[],p[1]=n):n=p[1];let[C,y]=(0,s.useState)(n),x=(0,s.useRef)(f);p[2]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{let{rangeDecoration:t,newSelection:n}=e;y(e=>e.map(e=>e.payload?.sessionId===t.payload?.sessionId?{...t,selection:n}:e))},p[2]=r):r=p[2];let b=r;return p[3]!==h||p[4]!==m?(i=()=>{let e=h.filter(e=>(0,l.w1)(m,e.path)&&!eN(m,e.path));if(!eN(e.map(Ah),x.current.map(Am))){let t=e.length>0?e:i_;g(t),x.current=t}},d=[h,m],p[3]=h,p[4]=m,p[5]=i,p[6]=d):(i=p[5],d=p[6]),(0,s.useEffect)(i,d),p[7]!==f?(c=()=>{y(f.map(e=>e.selection?{component:t=>{let{children:n}=t;return(0,a.jsx)(Ap,{user:e.user,children:n})},selection:{focus:e.selection.focus,anchor:e.selection.focus},onMoved:b,payload:{sessionId:e.sessionId}}
2286:null).filter(Boolean))},u=[f,b],p[7]=f,p[8]=c,p[9]=u):(c=p[8],u=p[9]),(0,s.useEffect)(c,u),C}((0,s.useMemo)(()=>({path:e.path}),[e.path])),{t:R}=iJ(),[O,V]=(0,s.useState)(!1),[L,F]=(0,s.useState)(null),[B,N]=(0,s.useState)(d??!1),[Y,H]=(0,s.useState)(i??!0),[Z,U]=(0,s.useState)(!1),[q,J]=(0,s.useState)(!1),W=(0,e5.Jr)(),K=(0,p.dj)(),G=(0,s.useCallback)(()=>{N(e=>{let t=!e;return t?W.log(IL):W.log(IF),g?.(t),t})},[g,W]);(0,s.useEffect)(()=>{L&&I!==L.value&&F(null)},[L,I]);let X=function(e){let{members:t,path:n,schemaType:r,renderAnnotation:i,renderField:o,renderBlock:d,renderInput:c,renderItem:u,renderInlineBlock:p,renderPreview:m,onPathFocus:h}=e,f=(0,s.useRef)([]);return(0,s.useMemo)(()=>{let e=[];for(let n of t)if("item"===n.kind)if(ob(n.item.schemaType)){(n.item.validation.length>0||n.item.changed||n.item.presence?.length||n.open||n.item.focusPath.length||n.item.focused)&&e.push({kind:"textBlock",member:n,node:n.item});let t=n.item.members.find(e=>"field"===e.kind&&"children"===e.name);if(t&&"field"===t.kind&&b$(t))for(let n of t.field.members)"item"===n.kind&&"span"!==n.item.schemaType.name&&e.push({kind:"inlineObject",member:n,node:n.item});let r=n.item.members.filter(ov).find(e=>"markDefs"===e.name);if(r)for(let t of r.field.members)"item"===t.kind&&"object"===t.item.schemaType.jsonType&&e.push({kind:"annotation",member:t,node:t.item})}else e.push({kind:"objectBlock",member:n,node:n.item});let s=e.map(e=>{let s=aB(e.node.path),g=f.current.find(e=>e.key===s),C="textBlock"!==e.kind,y=null;if(C&&e.member!==g?.member||e.node!==g?.node){let s=t=>{let r=e.member.item.path.concat(t);0!==t.length&&h(r.slice(n.length,r.length))},f={absolutePath:(0,l.p0)(e.node.path),includeField:!1,members:t,path:(0,l.p0)(n),renderAnnotation:i,renderBlock:d,renderField:o,renderInlineBlock:p,renderInput:t=>(0,l.n4)(t.path,e.member.item.path)?c({...t,onChange:n=>{if("unset"===n.type&&0===n.path.length)return void t.onChange(s7({_type:e.member.item.schemaType.name,_key:e.member.key},n.path));t.onChange(n)},onPathFocus:s,elementProps:{...t.elementProps,onFocus:()=>{}}}):c(t),renderItem:u,renderPreview:m,schemaType:r};y=(0,a.jsx)(b4,{...f})}return g?(g.member=e.member,g.node=e.node,g.input=y||g.input,g):{kind:e.kind,key:s,member:e.member,node:e.node,input:y}});return f.current=s,s},[t,h,n,i,d,o,p,c,u,m,r])}(e);(0,s.useEffect)(()=>{Z&&H(!0)},[Z]);let Q=(0,s.useCallback)(e=>{let t=e?.focus.path;if(!t)return;let n=3===t.length&&"children"===t[1]&&(0,_.tA)(t[2])&&!X.some(e=>(0,_.tA)(t[2])&&e.member.key===t[2]._key)?t.concat(["text"]):t;(0,s.startTransition)(()=>{b(n,{selection:e})})},[b,X]),ee=(0,s.useCallback)(e=>{switch(e.type){case"mutation":m(e.patches.map(e=>({...e,patchType:s2})));break;case"selection":Q(e.selection);break;case"focus":H(!0),U(!0);break;case"blur":A(e.event),U(!1);break;case"invalidValue":F(e);break;case"error":K.push({status:e.level,description:e.description});break;case"ready":J(!0)}M.current&&f&&f(e,M.current)},[M,f,m,Q,A,K]);(0,s.useEffect)(()=>{V(!1)},[I]);let et=(0,s.useCallback)(()=>{V(!0)},[]),en=(0,s.useMemo)(()=>L&&L.resolution?(0,a.jsx)(u.az,{marginBottom:2,children:(0,a.jsx)($2,{onChange:ee,onIgnore:et,resolution:L.resolution,readOnly:j})}):null,[ee,et,L,j]),er=(0,s.useCallback)(()=>{Y||(H(!0),M.current&&ng.Og.focus(M.current))},[M,Y]),ei=(0,s.useRef)([]),ea=(0,s.useMemo)(()=>{let e=[...w||[],...P],t=oS(ei.current,e);return ei.current=t,t},[P,w]),eo=(0,s.useCallback)((e,t)=>{let{type:n,uploader:r}=t;$?.({file:e,schemaType:n,uploader:r})},[$]),el=(0,s.useCallback)(e=>{if(!E)return;let t=e.map(e=>{var t;return{file:e,uploaderCandidates:(t=T.of,t.map(t=>({type:t,uploader:E(t,e),parentType:t})).filter(e=>e.uploader))}}),n=t.filter(e=>e.uploaderCandidates.length>0),r=t.filter(e=>0===e.uploaderCandidates.length);r.length>0&&K.push({closable:!0,status:"warning",title:R("inputs.array.error.cannot-upload-unable-to-convert",{count:r.length}),description:r.map((e,t)=>(0,a.jsxs)(u.so,{gap:2,padding:2,children:[(0,a.jsx)(u.az,{children:(0,a.jsx)(u.EY,{weight:"medium",children:e.file.name})}),(0,a.jsx)(u.az,{children:(0,a.jsxs)(u.EY,{size:1,children:["(",e.file.type,")"]})})]},t))}
2286),n.forEach(e=>{eo(e.file,tG(e.uploaderCandidates,e=>e.uploader.priority)[0])})},[K,E,T,eo,R]),es=(0,s.useCallback)(e=>{let{event:t}=e,n="paste"===t.type?"paste":"drop",r=!!t.clipboardData.getData("text/html"),i=!!t.clipboardData.getData("text/plain");return"paste"===n&&r&&i||jO(t.clipboardData).then(e=>e.length>0?e:[]).then(e=>{el(e)}),x?.(e)},[el,x]);return(0,a.jsxs)(u.az,{children:[!O&&en,(!L||O)&&(0,a.jsx)($Q,{markers:c,children:(0,a.jsx)($1,{memberItems:X,children:(0,a.jsxs)(ng.zz,{initialConfig:{initialValue:I,readOnly:j||!q,keyGenerator:Ag,schema:T},children:[(0,a.jsx)(Ax,{onChange:ee}),(0,a.jsx)(AC,{ref:M}),(0,a.jsx)(Ab,{path:v}),(0,a.jsx)(Aj,{readOnly:j||!q}),(0,a.jsx)(Av,{value:I}),(0,a.jsx)(At,{schemaType:T}),(0,a.jsx)($X,{...e,elementRef:D,hasFocusWithin:Z,hotkeys:r,isActive:Y,isFullscreen:B,onActivate:er,onItemRemove:y,onCopy:h,onInsert:C,onPaste:es,onToggleFullscreen:G,rangeDecorations:ea,readOnly:j||!q,renderBlockActions:k,renderCustomMarkers:S})]})})})]})}function Ax(e){let t,n,r=(0,o.c)(4);r[0]!==e?(t=t=>{switch(t.type){case"blurred":e.onChange({type:"blur",event:t.event});break;case"error":e.onChange({type:"error",name:t.name,level:"warning",description:t.description});break;case"focused":e.onChange({type:"focus",event:t.event});break;case"loading":e.onChange({type:"loading",isLoading:!0});break;case"done loading":e.onChange({type:"loading",isLoading:!1});break;case"invalid value":e.onChange({type:"invalidValue",resolution:t.resolution,value:t.value});break;case"mutation":case"patch":case"ready":case"selection":e.onChange(t);break;case"value changed":e.onChange({type:"value",value:t.value})}},r[0]=e,r[1]=t):t=r[1];let i=t;return r[2]!==i?(n=(0,a.jsx)(nx.Un,{on:i}),r[2]=i,r[3]=n):n=r[3],n}function Ab(e){let t,n,r,i=(0,o.c)(6),a=(0,nC.h)();i[0]!==e.path?(t={path:e.path},i[0]=e.path,i[1]=t):t=i[1];let{subscribe:l}=function(e){let t,n,r=(0,o.c)(5),{path:i}=e,{patchChannel:a}=o$().__internal;r[0]!==a||r[1]!==i?(t=e=>a.subscribe(t=>{var n,r;let{snapshot:a,patches:o}=t,l=o.filter(e=>Af(e.path,i)).map(e=>({...e,path:e.path.slice(i.length)}));l.length&&e({shouldReset:(n=i,o.some(e=>{var t;return t=e.path,(0===t.length||Af(n,t)&&!Af(t,n))&&("set"===e.type||"unset"===e.type)})),snapshot:iI(a)?(r=a,i.reduce((e,t)=>"object"==typeof t?rb(e,t):ni(e,t),r)):{},patches:l})}),r[0]=a,r[1]=i,r[2]=t):t=r[2];let l=t;return r[3]!==l?(n={subscribe:l},r[3]=l,r[4]=n):n=r[4],n}(t);return i[2]!==a||i[3]!==l?(n=()=>{let e=l(e=>{let{patches:t,snapshot:n}=e;a.send({type:"patches",patches:t,snapshot:n})});return()=>e()},r=[a,l],i[2]=a,i[3]=l,i[4]=n,i[5]=r):(n=i[4],r=i[5]),(0,s.useEffect)(n,r),null}function Av(e){let t,n,r=(0,o.c)(4),i=(0,nC.h)();return r[0]!==i||r[1]!==e.value?(t=()=>{i.send({type:"update value",value:e.value})},n=[i,e.value],r[0]=i,r[1]=e.value,r[2]=t,r[3]=n):(t=r[2],n=r[3]),(0,s.useEffect)(t,n),null}function Aj(e){let t,n,r=(0,o.c)(4),i=(0,nC.h)();return r[0]!==i||r[1]!==e.readOnly?(t=()=>{i.send({type:"update readOnly",readOnly:e.readOnly})},n=[i,e.readOnly],r[0]=i,r[1]=e.readOnly,r[2]=t,r[3]=n):(t=r[2],n=r[3]),(0,s.useEffect)(t,n),null}function Aw(e){return`inset 0 0 0 ${e.width}px ${e.color}`}AC.displayName="EditorRefPlugin";let A_=(0,g.I4)(u.Zp)(e=>{let{theme:t}=e,{focusRing:n,input:r,radius:i}=t.sanity,a=t.sanity.color.input,o=(0,u.D0)(t.sanity.space[1]);return{position:"relative",borderRadius:`${i[1]}px`,color:a.default.enabled.fg,boxShadow:Aw({color:a.default.enabled.border,width:r.border.width}),"& > .content":{position:"relative",lineHeight:0,margin:`-${o} 0 0 -${o}`},"& > .content > div":{display:"inline-block",verticalAlign:"top",padding:`${o} 0 0 ${o}`},"&:not([data-read-only])":{cursor:"text"},"@media(hover:hover):not([data-disabled]):not([data-read-only]):hover":{borderColor:a.default.hovered.border},"&:not([data-disabled]):not([data-read-only])[data-focused]":{boxShadow:function(e){let{base:t,border:n,focusRing:r}=e,i=r.offset+r.width,a=0-r.offset,o=t?t.bg:"var(--card-bg-color)";return[a>0&&`inset 0 0 0 ${a}px var(--card-focus-ring-color)`,n&&Aw(n),a<0&&`0 0 0 ${0-a}px ${o}`,i>0&&`0 0 0 ${i}
2286px var(--card-focus-ring-color)`].filter(Boolean).join(",")}({border:{color:a.default.enabled.border,width:r.border.width},focusRing:n})},"*:disabled + &":{color:a.default.disabled.fg,backgroundColor:a.default.disabled.bg,boxShadow:Aw({color:a.default.disabled.border,width:r.border.width})}}}),Ak=g.I4.input(e=>{let{theme:t}=e,n=t.sanity.fonts.text,r=t.sanity.color.input,i=t.sanity.space[2],a=t.sanity.fonts.text.sizes[2];return{appearance:"none",background:"none",border:0,borderRadius:0,outline:"none",fontSize:(0,u.D0)(a.fontSize),lineHeight:a.lineHeight/a.fontSize,fontFamily:n.family,fontWeight:n.weights.regular,margin:0,display:"block",minWidth:"1px",maxWidth:"100%",boxSizing:"border-box",paddingTop:(0,u.D0)(i-a.ascenderHeight),paddingRight:(0,u.D0)(i),paddingBottom:(0,u.D0)(i-a.descenderHeight),paddingLeft:(0,u.D0)(i),"&:not(:invalid):not(:disabled)":{color:r.default.enabled.fg},"&:not(:invalid):disabled":{color:r.default.disabled.fg}}}),AS=(0,g.I4)(u.az)(e=>{let{theme:t}=e,n=t.sanity.color.input;return(0,g.AH)`
2287    position: absolute;
2288    top: 0;
2289    left: 0;
2290    right: 0;
2291    pointer-events: none;
2292    --card-fg-color: ${n.default.enabled.placeholder};
2293  `}),AT=(0,g.I4)(u.az)`
2294  // This is needed to make textOverflow="ellipsis" work properly for the Text primitive
2295  max-width: 100%;
2296`,AI=(0,s.forwardRef)((e,t)=>{let n,r,i,l,d,c,p,m,h,f,g,C,y,x,b,v,j,w,_,k,S,T,I=(0,o.c)(54);I[0]!==e?({disabled:n,onChange:r,onFocus:i,placeholder:l,readOnly:d,value:p,...c}=e,I[0]=e,I[1]=n,I[2]=r,I[3]=i,I[4]=l,I[5]=d,I[6]=c,I[7]=p):(n=I[1],r=I[2],i=I[3],l=I[4],d=I[5],c=I[6],p=I[7]),I[8]!==p?(m=void 0===p?[]:p,I[8]=p,I[9]=m):m=I[9];let E=m,{t:$}
2296=iJ(r4),[A,D]=(0,s.useState)(""),z=!n&&!d,[M,P]=(0,s.useState)(!1),R=(0,s.useRef)(null),O=(0,s.useRef)(null);I[10]===Symbol.for("react.memo_cache_sentinel")?(h=()=>R.current,I[10]=h):h=I[10],(0,s.useImperativeHandle)(t,h),I[11]===Symbol.for("react.memo_cache_sentinel")?(f=e=>{if((0,u.sb)(e.target)&&e.target.closest('[data-ui="Tag"]'))return;let t=R.current;t&&setTimeout(()=>t.focus(),0)},I[11]=f):f=I[11];let V=f;I[12]===Symbol.for("react.memo_cache_sentinel")?(g=()=>{P(!1)},I[12]=g):g=I[12];let L=g;I[13]===Symbol.for("react.memo_cache_sentinel")?(C=e=>{D(e.currentTarget.value)},I[13]=C):C=I[13];let F=C;I[14]!==i?(y=e=>{P(!0),i&&i(e)},I[14]=i,I[15]=y):y=I[15];let B=y;I[16]!==A||I[17]!==r||I[18]!==E?(x=e=>{if("Enter"===e.key&&(e.preventDefault(),e.stopPropagation(),r&&A)){let e=E.concat([{value:A}]);D(""),r&&r(e)}},I[16]=A,I[17]=r,I[18]=E,I[19]=x):x=I[19];let N=x;I[20]!==r||I[21]!==E?(b=e=>{if(!r)return;let t=E.slice(0);t.splice(e,1),r(t)},I[20]=r,I[21]=E,I[22]=b):b=I[22];let Y=b;I[23]===Symbol.for("react.memo_cache_sentinel")?(v=()=>{let e=R.current;e&&(e.style.width="0",e.style.width=`${e.scrollWidth}px`)},I[23]=v):v=I[23],I[24]!==A?(j=[A],I[24]=A,I[25]=j):j=I[25],(0,s.useEffect)(v,j);let H=n?"":void 0,Z=M?"":void 0,U=d?"":void 0;if(I[26]!==z||I[27]!==A||I[28]!==l||I[29]!==$||I[30]!==E.length?(w=z&&(0,a.jsx)(AS,{hidden:!!(A||E.length),padding:3,children:(0,a.jsx)(u.EY,{textOverflow:"ellipsis",children:l||$("inputs.tags.placeholder",{context:"u">typeof window&&"ontouchstart"in window?"touch":void 0})})}),I[26]=z,I[27]=A,I[28]=l,I[29]=$,I[30]=E.length,I[31]=w):w=I[31],I[32]!==z||I[33]!==Y||I[34]!==E){let e;I[36]!==z||I[37]!==Y?(e=(e,t)=>(0,a.jsx)(AT,{children:(0,a.jsx)(AE,{enabled:z,index:t,muted:!z,onRemove:Y,tag:e})},`tag-${t}`),I[36]=z,I[37]=Y,I[38]=e):e=I[38],_=E.map(e),I[32]=z,I[33]=Y,I[34]=E,I[35]=_}else _=I[35];let q=!z;return I[39]!==B||I[40]!==N||I[41]!==A||I[42]!==c||I[43]!==q?(k=(0,a.jsx)("div",{children:(0,a.jsx)(Ak,{...c,disabled:q,onBlur:L,onChange:F,onFocus:B,onKeyDown:N,ref:R,type:"text",value:A})},"tag-input"),I[39]=B,I[40]=N,I[41]=A,I[42]=c,I[43]=q,I[44]=k):k=I[44],I[45]!==_||I[46]!==k?(S=(0,a.jsxs)("div",{className:"content",children:[_,k]}),I[45]=_,I[46]=k,I[47]=S):S=I[47],I[48]!==H||I[49]!==Z||I[50]!==U||I[51]!==w||I[52]!==S?(T=(0,a.jsxs)(A_,{"data-disabled":H,"data-focused":Z,"data-read-only":U,"data-ui":"TagInput",onPointerDown:V,overflow:"auto",padding:1,ref:O,children:[w,S]}),I[48]=H,I[49]=Z,I[50]=U,I[51]=w,I[52]=S,I[53]=T):T=I[53],T});function AE(e){let t,n,r,i,l=(0,o.c)(12),{enabled:s,index:d,muted:c,onRemove:p,tag:m}=e;l[0]!==d||l[1]!==p?(t=()=>{p(d)},l[0]=d,l[1]=p,l[2]=t):t=l[2];let h=t;return l[3]!==c||l[4]!==m.value?(n=(0,a.jsx)(u.az,{flex:1,paddingY:2,paddingLeft:2,children:(0,a.jsx)(u.EY,{muted:c,textOverflow:"ellipsis",children:m.value})}),l[3]=c,l[4]=m.value,l[5]=n):n=l[5],l[6]!==s||l[7]!==h?(r=s&&(0,a.jsx)(y.$n,{icon:C.USm,mode:"bleed",onClick:h,tooltipProps:{content:"Remove"}}
2296),l[6]=s,l[7]=h,l[8]=r):r=l[8],l[9]!==n||l[10]!==r?(i=(0,a.jsx)(u.Zp,{"data-ui":"Tag",radius:2,tone:"transparent",children:(0,a.jsxs)(u.so,{align:"center",gap:1,children:[n,r]})}),l[9]=n,l[10]=r,l[11]=i):i=l[11],i}function A$(e){let t,n,r,i,l,s,d=(0,o.c)(15),{onChange:c,readOnly:u,value:p,elementProps:m,path:h,changed:f}=e;d[0]!==p?(t=void 0===p?[]:p,d[0]=p,d[1]=t):t=d[1];let g=t;d[2]!==g?(r=g?.map(AD),d[2]=g,d[3]=r):r=d[3],n=r,d[4]!==c?(i=e=>{c(0===e.length?s3():s7(e.map(AA)))},d[4]=c,d[5]=i):i=d[5];let C=i;return d[6]!==m||d[7]!==C||d[8]!==u||d[9]!==n?(l=(0,a.jsx)(AI,{onChange:C,readOnly:u,value:n,...m}),d[6]=m,d[7]=C,d[8]=u,d[9]=n,d[10]=l):l=d[10],d[11]!==f||d[12]!==h||d[13]!==l?(s=(0,a.jsx)(El,{path:h,isChanged:f,hasFocus:!1,children:l}),d[11]=f,d[12]=h,d[13]=l,d[14]=s):s=d[14],s}function AA(e){return e.value}function AD(e){return{value:e}}AI.displayName="ForwardRef(TagInput)";let Az=["string","number","boolean"];function AM(e){return(0,_.uC)(e)?e:{title:ns(`${e}`),value:e}}let AP={title:"",value:void 0};function AR(e){let{value:t,readOnly:n,validationError:r,schemaType:i,onChange:o,path:l,changed:d,focused:c,elementProps:p}=e,m=(0,s.useMemo)(()=>(i.options?.list||[]).map(AM),[i.options?.list]),h=m.find(e=>e.value===t),f=i.options&&"radio"===i.options.layout,g=(0,s.useCallback)(e=>m[Number(e)],[m]),C=(0,s.useCallback)(e=>String(m.indexOf(e)),[m]),y=(0,s.useId)(),x=(0,s.useCallback)(e=>{o(s4.from(typeof e?.value>"u"?s3():s7(e.value)))},[o]),b=(0,s.useCallback)(e=>{let t=g(e.currentTarget.value);if(!t)return void x(AP);x(t)},[x,g]),v=f?(0,a.jsx)(AO,{...p,value:h,inputId:y,items:m,direction:i.options?.direction||"vertical",customValidity:r,onChange:x,readOnly:n}):(0,a.jsx)(u.l6,{...p,customValidity:r,value:C(h),readOnly:n,onChange:b,children:[AP,...m].map((e,t)=>(0,a.jsx)("option",{value:t-1,children:e.title},`${t-1}`))});return(0,a.jsx)(El,{path:l,isChanged:d,hasFocus:!!c,children:v})}let AO=(0,s.forwardRef)(function(e,t){let n,r,i=(0,o.c)(12),{items:l,value:s,onChange:d,onFocus:c,readOnly:p,customValidity:m,direction:h,inputId:f}=e,g="horizontal"===h?u.cV:u.BJ;return i[0]!==m||i[1]!==f||i[2]!==l||i[3]!==d||i[4]!==c||i[5]!==p||i[6]!==t||i[7]!==s?(n=l.map((e,n)=>(0,a.jsx)(AV,{customValidity:m,inputId:f,item:e,onChange:d,onFocus:c,readOnly:p,ref:0===n?t:null,value:s},n)),i[0]=m,i[1]=f,i[2]=l,i[3]=d,i[4]=c,i[5]=p,i[6]=t,i[7]=s,i[8]=n):n=i[8],i[9]!==g||i[10]!==n?(r=(0,a.jsx)(u.Zp,{border:!0,padding:3,radius:2,children:(0,a.jsx)(g,{space:3,role:"group",children:n})}),i[9]=g,i[10]=n,i[11]=r):r=i[11],r}),AV=(0,s.forwardRef)(function(e,t){let n,r,i,l,s=(0,o.c)(16),{customValidity:d,inputId:c,item:p,onChange:m,onFocus:h,readOnly:f,value:g}=e;s[0]!==p||s[1]!==m?(n=()=>{m(p)},s[0]=p,s[1]=m,s[2]=n):n=s[2];let C=n,y=g===p;return s[3]!==d||s[4]!==C||s[5]!==c||s[6]!==h||s[7]!==f||s[8]!==t||s[9]!==y?(r=(0,a.jsx)(u.sx,{ref:t,checked:y,onChange:C,onFocus:h,readOnly:f,customValidity:d,name:c}),s[3]=d,s[4]=C,s[5]=c,s[6]=h,s[7]=f,s[8]=t,s[9]=y,s[10]=r):r=s[10],s[11]!==p.title?(i=(0,a.jsx)(u.az,{marginLeft:2,children:(0,a.jsx)(u.EY,{size:1,weight:"medium",children:p.title})}),s[11]=p.title,s[12]=i):i=s[12],s[13]!==r||s[14]!==i?(l=(0,a.jsxs)(u.so,{as:"label",align:"center",children:[r,i]}),s[13]=r,s[14]=i,s[15]=l):l=s[15],l});function AL(e){if(e.components?.input)return e.components.input;let t=function(e){if(bd("array",e))return 1===e.of.length&&bd("string",e.of[0])&&e.options?.layout==="tags"?A$:e.options?.list?_O:e.of.every(e=>Az.includes(e.jsonType))?_q:e.of.some(e=>bd("block",e))?Ay:_A;return bd("reference",e)?j_:bd("string",e)?vw(e,"list")?AR:ko:bd("number",e)?vw(e,"list")?AR:_G:void 0}(e);if(t)return t;let n=Object.values(vI(e,new Set).reduce((e,t)=>(e[t.name]=t,e),{})).find(e=>IV[e.name]);if(n)return IV[n.name];throw Error(`Could not find input component for schema type \`${e.name}\``)}function AF(e){return e.components?.preview?e.components.preview:cU}let AB={portal:!0,tone:"default"},AN={position:"relative"},AY=[];function AH(e){let{schemaType:t,parentSchemaType:n,path:r,readOnly:i,onRemove:o,value:l,open:d,onInsert:c,onCopy:p,onFocus:m,onOpen:h,onClose:f,changed:g,focused:x,children:b,inputProps:{renderPreview:v}}=e,{t:j}=iJ(),w=_u(),_=n?.options?.treeEditing===!1,k=_||w.legacyEditing,S=d&&(!w.enabled||k),T=n.options?.sortable!==!1,I=n.of,[E,$]=(0,s.use
2296State)(null),A=(0,s.useRef)(null);(0,s.useImperativeHandle)(A,()=>E,[E]),vv(A,d&&null!==E),xZ(x,(e,t)=>{!e&&t&&A.current&&A.current?.focus()});let D=l._resolvingInitialValue,z=(0,s.useCallback)(()=>{c({items:[{...l,_key:xK()}],position:"after"})},[c,l]),M=(0,s.useCallback)(()=>{p({items:[{...l,_key:xK()}]})},[p,l]),P=(0,s.useCallback)((e,t)=>{c({items:[x4(t)],position:e})},[c]),R=oE(r,!0),O=(0,s.useMemo)(()=>0===R.length?null:(0,a.jsx)(y4,{presence:R,maxAvatars:1}),[R]),V=oM(r,!0),L=(0,s.useMemo)(()=>0===V.length?null:(0,a.jsx)(u.az,{paddingX:1,paddingY:3,children:(0,a.jsx)(dp,{validation:V,__unstable_showSummary:!0})}),[V]),F=V.some(e=>"error"===e.level),B=V.some(e=>"warning"===e.level),[N,Y]=(0,s.useState)(null),{insertBefore:H,insertAfter:Z}=_m({schemaTypes:I,insertMenuOptions:n.options?.insertMenu,onInsert:P,referenceElement:N}),U=n.options?.disableActions||AY,q=(0,s.useMemo)(()=>[!U.includes("remove")&&(0,a.jsx)(y.Dr,{text:j("inputs.array.action.remove"),tone:"critical",icon:C.ucK,onClick:o},"remove"),!U.includes("copy")&&(0,a.jsx)(y.Dr,{text:j("inputs.array.action.copy"),icon:C.TdU,onClick:M},"copy"),!U.includes("duplicate")&&(0,a.jsx)(y.Dr,{text:j("inputs.array.action.duplicate"),icon:C.g$z,onClick:z},"duplicate"),!U.includes("add")&&!U.includes("addBefore")&&H.menuItem,!U.includes("add")&&!U.includes("addAfter")&&Z.menuItem].filter(Boolean),[U,M,z,Z.menuItem,H.menuItem,o,j]),J=(0,s.useMemo)(()=>i||0===q.length?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.IU,{ref:Y,onOpen:()=>{H.send({type:"close"}),Z.send({type:"close"})},button:(0,a.jsx)(rU,{"data-testid":"array-item-menu-button",selected:!!H.state.open||!!Z.state.open||void 0}),id:`${e.inputId}-menuButton`,menu:(0,a.jsx)(u.W1,{children:q}),popover:AB}),H.popover,Z.popover]}),[q,i,H,Z,e.inputId]),W=function({readOnly:e,hasErrors:t,hasWarnings:n}){return e?"transparent":t?"critical":n?"caution":"default"}({readOnly:i,hasErrors:F,hasWarnings:B}),K=(0,a.jsx)(_w,{menu:J,presence:O,validation:L,tone:W,focused:x,dragHandle:T,selected:d,readOnly:!!i,children:(0,a.jsxs)(u.Zp,{as:"button",type:"button",tone:"inherit",radius:1,disabled:D,onClick:h,ref:$,onFocus:m,__unstable_focusRing:!0,style:AN,children:[v({schemaType:e.schemaType,value:e.value,layout:"default",skipVisibilityCheck:!0}),D&&(0,a.jsx)(r5,{fill:!0})]})}),G=wg(t);return(0,a.jsxs)(_p,{legacyEditing:_,children:[(0,a.jsx)(El,{path:r,isChanged:g,hasFocus:!!x,children:(0,a.jsx)(u.az,{paddingX:1,children:K})}),S&&(0,a.jsx)(xM,{header:i?j("inputs.array.action.view",{itemTypeTitle:G}):j("inputs.array.action.edit",{itemTypeTitle:G}),type:n?.options?.modal?.type||"dialog",width:n?.options?.modal?.width??1,id:l._key,onClose:f,autofocus:x,legacy_referenceElement:E,children:b})]})}function AZ(e){let t,n,r,i=(0,o.c)(7),{menuRef:l,menuButtonRef:s,containerRef:d}=e;return i[0]!==d||i[1]!==s||i[2]!==l?(n={menuRef:l,menuButtonRef:s,containerRef:d},i[0]=d,i[1]=s,i[2]=l,i[3]=n):n=i[3],t=n,i[4]!==e.children||i[5]!==t?(r=(0,a.jsx)(c.Re.Provider,{value:t,children:e.children}),i[4]=e.children,i[5]=t,i[6]=r):r=i[6],r}let AU={portal:!0,tone:"default"};function Aq(e){let{schemaType:t,parentSchemaType:n,path:r,readOnly:i,onRemove:o,value:l,open:d,onInsert:c,onCopy:p,presence:m,validation:h,inputId:f,changed:g,focused:x,children:b,inputProps:{onChange:v,focusPath:j,onPathFocus:w,renderPreview:_,elementProps:k}}=e,S=n.options?.sortable!==!1,T=n.of,I=(0,s.useRef)(null),E=(0,s.useRef)(null),$=(0,s.useRef)(null),A=(0,s.useRef)(null),{EditReferenceLink:D,getReferenceInfo:z,selectedState:M,isCurrentDocumentLiveEdit:P}=jp({path:r,schemaType:t,value:l});vv(I,d),xZ(x,(e,t)=>{!e&&t&&I.current&&I.current?.focus()});let R=e.validation.some(e=>"error"===e.level),O=e.validation.some(e=>"warning"===e.level),V=l._resolvingInitialValue,L=(0,s.useCallback)(()=>{c({items:[{...l,_key:xK()}],position:"after"})},[c,l]),F=(0,s.useCallback)(()=>{p({items:[{...l,_key:xK()}]})},[p,l]),B=(0,s.useCallback)((e,t)=>{c({items:[{...x4(t),_key:xK()}],position:e})},[c]),N=vK(l?._ref,z),Y=l._ref,H=N.result?.type||l?._strengthenOnPublish?.type,Z=Y&&N.result?.isPublished,U=(0,s.useCallback)(()=>{v([!0===t.weak?s7(!0,["_weak"]):s3(["_weak"]),s3(["_strengthenOnPublish"])])},[v,t.weak]),q=H?t.to.find(e=>e.name===H):void 0,J="pressed"===M,W="selected"===M,K=function({readOnly:e,hasErrors:t,hasWarnings:n}){return e?"transparent":t?"critical":n?"caution":"default"}({readOnly:i,hasErrors:R,hasWarnings:O}),G=!Y||"_ref"===j[0],{t:X}=iJ(),Q=(0,s.useMemo)(()=>(0,s.forwardRef)(function(e,t){return(0,a.jsx)(tq.RZ,{...e,intent:"edit",params:{id:l?._ref,type:q?.name},target:"_blank",rel:"noopener noreferrer",ref:t})}),[q?.name,l?._ref]),ee=(0,s.useCallback)(()=>{w(Y&&G?[]:["_ref"])}
2296,[Y,G,w]),[et,en]=(0,s.useState)(null),er=(0,s.useCallback)(e=>{en(e),$.current=e},[]),{insertBefore:ei,insertAfter:ea}=_m({schemaTypes:T,insertMenuOptions:n.options?.insertMenu,onInsert:B,referenceElement:et}),eo=n.options?.disableActions||i_,el=(0,s.useMemo)(()=>i?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.IU,{ref:er,onOpen:()=>{ei.send({type:"close"}),ea.send({type:"close"})},button:(0,a.jsx)(rU,{selected:!!ei.state.open||!!ea.state.open||void 0,tooltipProps:{fallbackPlacements:["top","bottom"],placement:"right"}}),id:`${f}-menuButton`,menu:(0,a.jsxs)(u.W1,{ref:E,children:[!i&&(0,a.jsxs)(a.Fragment,{children:[!eo.includes("remove")&&(0,a.jsx)(y.Dr,{text:X("inputs.reference.action.remove"),tone:"critical",icon:C.ucK,onClick:o}),(0,a.jsx)(y.Dr,{text:X(Y&&G?"inputs.reference.action.replace-cancel":"inputs.reference.action.replace"),icon:Y&&G?C.USm:C.Fjq,onClick:ee}),!eo.includes("copy")&&(0,a.jsx)(y.Dr,{text:X("inputs.reference.action.copy"),icon:C.TdU,onClick:F}),!eo.includes("duplicate")&&(0,a.jsx)(y.Dr,{text:X("inputs.reference.action.duplicate"),icon:C.g$z,onClick:L}),!(eo.includes("add")||eo.includes("addBefore"))&&ei.menuItem,!eo.includes("add")&&!eo.includes("addAfter")&&ea.menuItem]}),!i&&!G&&Y&&(0,a.jsx)(u.Nj,{}),!G&&Y&&(0,a.jsx)(y.Dr,{as:Q,"data-as":"a",text:X("inputs.reference.action.open-in-new-tab"),icon:C.ZPM})]}),popover:AU}),ei.popover,ea.popover]}),[Q,eo,F,L,ee,Y,f,ea,ei,G,o,i,er,X]),es=(0,s.useCallback)(()=>{v(!0===t.weak?s7(!0,["_weak"]):s3(["_weak"]))},[v,t]),ed=l?._weak?"weak":"strong",ec=!0===t.weak?"weak":"strong",eu=Y&&!N.isLoading&&l?._strengthenOnPublish,ep=!N.isLoading&&N.result?.availability.available&&Y&&ed!==ec&&!eu,em=(0,a.jsxs)(a.Fragment,{children:[P&&Z&&l._strengthenOnPublish&&(0,a.jsx)(jr,{schemaType:t,handleRemoveStrengthenOnPublish:U}),ep&&(0,a.jsx)(jl,{actualStrength:ed,handleFixStrengthMismatch:es}),N.error&&(0,a.jsx)(jo,{errorMessage:N.error.message,onHandleRetry:N.retry})]}),eh=(0,a.jsx)(AZ,{menuRef:E,menuButtonRef:$,containerRef:A,children:(0,a.jsx)(_w,{dragHandle:S,readOnly:!!i,presence:!G&&m.length>0&&(0,a.jsx)(y4,{presence:m,maxAvatars:1}),validation:!G&&h.length>0&&(0,a.jsx)(dp,{validation:h}),menu:el,footer:G?void 0:em,tone:G?void 0:K,focused:x,children:G?(0,a.jsx)(u.az,{padding:1,ref:A,children:(0,a.jsx)(xH,{title:t.title,description:t.description,__unstable_presence:m,validation:h,inputId:f,deprecated:t.deprecated,children:b})}):(0,a.jsxs)(ja,{as:D,tone:"inherit",radius:2,documentId:l?._ref,documentType:q?.name,disabled:V,__unstable_focusRing:!0,selected:W,pressed:J,"data-selected":!!W||void 0,"data-pressed":!!J||void 0,...k,children:[(0,a.jsx)(v0,{value:l,referenceInfo:N,renderPreview:_,type:t}),V&&(0,a.jsx)(r5,{fill:!0})]})})});return(0,a.jsx)(El,{path:r,isChanged:g,hasFocus:!!x,children:(0,a.jsx)(u.az,{paddingX:1,children:eh})})}function AJ(e){return e.components?.item?e.components.item:(0,_.do)(e)?Aq:AH}function AW(e){let t,n,r,i=(0,o.c)(7),{children:l}=e;i[0]===Symbol.for("react.memo_cache_sentinel")?(t={error:null,info:{}},i[0]=t):t=i[0];let[d,c]=(0,s.useState)(t),{error:u,info:p}=d;i[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>c({error:null,info:{}}),i[1]=n):n=i[1];let m=n;if(!u){let e;return i[2]!==l?(e=(0,a.jsx)(y.tH,{onCatch:c,children:l}),i[2]=l,i[3]=e):e=i[3],e}return i[4]!==u||i[5]!==p?(r=(0,a.jsx)(AK,{error:u,info:p,onRetry:m}),i[4]=u,i[5]=p,i[6]=r):r=i[6],r}function AK(e){let{error:t,info:n,onRetry:r}=e;if(t instanceof a8||t instanceof W1)throw t;let{t:i}=iJ(),o=(0,s.useMemo)(()=>iI(t)&&"string"==typeof t.message&&t.message,[t]),l=(0,s.useMemo)(()=>iI(t)&&"string"==typeof t.stack&&t.stack,[t]),d=(0,s.useMemo)(()=>"string"==typeof n?.componentStack&&n.componentStack,[n?.componentStack]);return(0,ro.i)(r),(0,a.jsx)(bR,{status:"error",title:(0,a.jsx)(a.Fragment,{children:i("form.error.unhandled-runtime-error.title")}),children:(0,a.jsxs)(u.BJ,{space:4,children:[(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:(0,a.jsx)(a.Fragment,{children:i("form.error.unhandled-runtime-error.error-message",{message:o})})}),l&&(0,a.jsx)(u.az,{children:(0,a.jsxs)(u.BJ,{space:2,children:[(0,a.jsx)(u.EY,{as:"p",size:1,children:(0,a.jsx)(a.Fragment,{children:i("form.error.unhandled-runtime-error.call-stack.title")})}),(0,a.jsx)(u.Zp,{border:!0,radius:2,overflow:"auto",padding:4,tone:"inherit",children:l&&(0,a.jsx)(u.Cy,{size:1,style:{maxHeight:"40vh"},children:l})})]})},"call-stack"),ar&&d&&(0,a.jsx)(u.az,{children:(0,a.jsxs)(u.BJ,{space:2,children:[(0,a.jsx)(u.EY,{as:"p",size:1,children:(0,a.jsx)(a.Fragment,{children:i("form.error.unhandled-runtime-error.component-stack.title")})}),(0,a.jsx)(u.Zp,{border:!0,radius:2,overflow:"auto",padding:4,tone:"inherit",children:d&&(0,a.jsx)(u.Cy,{size:1,style:{maxHeight:"40vh"},children:d})})]})},"component-stack")]})})}let AG=typeof window>"u"?I.w:(0,V.R)(window,"orientationchange").pipe((0,Y.t)(1)),AX=typeof window>"u"?I.w:(0,V.R)(window,"resize").pipe((0,Y.t)(1)),AQ=typeof window>"u"?I.w:(0,V.R)(window,"scroll",{passive:!0,capture:!0}).pipe((0,Y.t)(1)),A1="u">typeof window&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in IntersectionObserverEntry.prototype&&("isIntersecting"in IntersectionObserverEntry.prototype||Ob
2296ject.defineProperty(IntersectionObserverEntry.prototype,"isIntersecting",{get(){return this.intersectionRatio>0}}),1)?function(){let e=new O.B,t=new IntersectionObserver(t=>{t.forEach(t=>{e.next(t)})},{threshold:0,rootMargin:"150px"});return function(n){return new P.c(e=>(t.observe(n),e.next(),()=>t.unobserve(n))).pipe((0,ew.Z)(()=>e.asObservable()),(0,q.p)(e=>e.target===n),(0,E.T)(e=>({isIntersecting:e.isIntersecting})))}}():function(e){let t=()=>{var t,n;return t=e.getBoundingClientRect(),n={left:0,right:window.innerWidth,top:0,bottom:window.innerHeight},t.left<=n.right+150&&t.right>=n.left-150&&t.top<=n.bottom+150&&t.bottom>=n.top-150};return(0,R.h)((0,k.of)(t()),AX,AQ,AG).pipe((0,E.T)(t),(0,E.T)(e=>({isIntersecting:e})))},A2=typeof window>"u"?I.w:(0,V.R)(document,"visibilitychange").pipe((0,Y.t)(1));function A5(e){return e.isIntersecting}function A0(e){return e.target instanceof Document&&!e?.target?.hidden}function A7(e){return iE(e)?e:void 0}function A3(e){var t;let n,r,i,l,d,c,u,p,m,h,f,g,C,y,x,b,v=(0,o.c)(37);v[0]!==e?({layout:r,value:u,component:n,style:c,schemaType:l,skipVisibilityCheck:d,...i}=e,v[0]=e,v[1]=n,v[2]=r,v[3]=i,v[4]=l,v[5]=d,v[6]=c,v[7]=u):(n=v[1],r=v[2],i=v[3],l=v[4],d=v[5],c=v[6],u=v[7]);let{t:j}=iJ(),[w,_]=(0,s.useState)(null),T=function(e){let t,n,r=(0,o.c)(5),{element:i,hideDelay:a,disabled:l}=e,d=void 0===a?0:a,[c,u]=(0,s.useState)(!1);return r[0]!==l||r[1]!==i||r[2]!==d?(t=()=>{if(!i||l)return;i&&"checkVisibility"in i&&u(i.checkVisibility());let e=(0,S.x)((0,k.of)(!document.hidden),A2.pipe((0,E.T)(A0))).pipe((0,ei.F)()),t=A1(i).pipe((0,E.T)(A5)),n=e.pipe((0,z.n)(e=>e?t:(0,k.of)(!1)),(0,z.n)(e=>e?(0,k.of)(!0):(0,k.of)(!1).pipe((0,eO.c)(d))),(0,ei.F)()).subscribe(u);return()=>n.unsubscribe()},n=[i,d,l],r[0]=l,r[1]=i,r[2]=d,r[3]=t,r[4]=n):(t=r[3],n=r[4]),(0,s.useLayoutEffect)(t,n),!l&&c}({disabled:d,element:w,hideDelay:2e3})||d,I=d||T;v[8]!==l||v[9]!==I||v[10]!==u?(p={enabled:I,schemaType:l,value:u},v[8]=l,v[9]=I,v[10]=u,v[11]=p):p=v[11];let $=hD(p),A=c?.minWidth||1,D=c?.minHeight||1;v[12]!==c||v[13]!==A||v[14]!==D?(h={...c,minWidth:A,minHeight:D},v[12]=c,v[13]=A,v[14]=D,v[15]=h):h=v[15],m=h,v[16]!==u?(t=u,g=function(e){if(!iI(e))return;let t="number"==typeof e.progress?e.progress:0,n=A7(e.initiated||e.createdAt),r=A7(e.updated||e.updatedAt),i=A7(e?.file?.name),a=A7(e?.file?.type),o=A7(e.previewImage);if(n&&r&&i&&a)return{progress:t,createdAt:n,updatedAt:r,file:{name:i,type:a},previewImage:o}}(t?._upload),v[16]=u,v[17]=g):g=v[17],f=g;e:{if(f?.previewImage){let e,t;v[18]!==j?(e=j("preview.image.file-is-being-uploaded.alt-text"),v[18]=j,v[19]=e):e=v[19],v[20]!==e||v[21]!==f.previewImage?(t=(0,a.jsx)("img",{alt:e,src:f.previewImage}),v[20]=e,v[21]=f.previewImage,v[22]=t):t=v[22],C=t;break e}if(!$?.value?.media){C=l.icon;break e}C=$?.value?.media}let M=C;v[23]!==$?.value?(y=$?.value||{},v[23]=$?.value,v[24]=y):y=v[24];let P=$?.error,R=$?.isLoading;return v[25]!==n||v[26]!==r||v[27]!==M||v[28]!==i||v[29]!==l||v[30]!==P||v[31]!==R||v[32]!==y?(x=(0,a.jsx)(n,{...i,...y,media:M,error:P,isPlaceholder:R,layout:r,schemaType:l}),v[25]=n,v[26]=r,v[27]=M,v[28]=i,v[29]=l,v[30]=P,v[31]=R,v[32]=y,v[33]=x):x=v[33],v[34]!==m||v[35]!==x?(b=(0,a.jsx)("div",{ref:_,style:m,children:x}),v[34]=m,v[35]=x,v[36]=b):b=v[36],b}function A8(){let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsxs)(u.EY,{size:1,children:["This is a example custom marker, please implement ",(0,a.jsx)("code",{children:"renderCustomMarkers"})," function."]}),t[0]=e):e=t[0],e}let A4={publish:()=>{},subscribe:()=>(console.warn("No patch channel provided to form-builder. If you need input based patch updates, please provide one"),()=>{})};function A6(e){let t,n,r,i,l,s,d,u,p,m,h,f,g,C,y=(0,o.c)(61),{__internal_fieldActions:x,__internal_patchChannel:b,autoFocus:v,changesOpen:j,children:w,collapsedFieldSets:_,collapsedPaths:k,file:S,filterField:T,focusPath:I,focused:E,groups:$,id:A,image:D,onChange:z,onFieldGroupSelect:M,onPathBlur:P,onPathFocus:R,onPathOpen:O,onSetFieldSetCollapsed:V,onSetPathCollapsed:L,presence:F,readOnly:B,renderAnnotation:N,renderBlock:Y,renderField:H,renderInlineBlock:Z,renderInput:U,renderItem:q,renderPreview:J,schemaType:W,unstable:K,validation:G}=e,X=void 0===x?i_:x,Q=void 0===b?A4:b,ee=K?.CustomMarkers||A8,et=K?.Markers||oD;y[0]!==ee||y[1]!==et?(n={ArrayFunctions:j9,CustomMarkers:ee,Markers:et},y[0]=ee,y[1]=et,y[2]=n):n=y[2],y[3]!==X?(r={actions:X},y[3]=X,y[4]=r):r=y[4];let en=S?.directUploads!==!1;y[5]!==S.assetSources||y[6]!==en?(i={assetSources:S.assetSources,directUploads:en},y[5]=S.assetSources,y[6]=en,y[7]=i):i=y[7];let er=T||A9,ei=D?.directUploads!==!1;return y[8]!==D.assetSources||y[9]!==ei?(l={assetSources:D.assetSources,directUploads:ei},y[8]=D.assetSources,y[9]=ei,y[10]=l):l=y[10],y[11]!==z||y[12]!==Q||y[13]!==l||y[14]!==n||y[15]!==r||y[16]!==i||y[17]!==er?(s={patchChannel:Q,components:n,field:r,file:i,filterField:er,image:l,onCh
2296ange:z},y[11]=z,y[12]=Q,y[13]=l,y[14]=n,y[15]=r,y[16]=i,y[17]=er,y[18]=s):s=y[18],t=s,y[19]!==t||y[20]!==v||y[21]!==j||y[22]!==_||y[23]!==k||y[24]!==I||y[25]!==E||y[26]!==$||y[27]!==A||y[28]!==B||y[29]!==N||y[30]!==Y||y[31]!==H||y[32]!==Z||y[33]!==U||y[34]!==q||y[35]!==J||y[36]!==W?(u={__internal:t,autoFocus:v,changesOpen:j,collapsedFieldSets:_,collapsedPaths:k,focusPath:I,focused:E,groups:$,id:A,readOnly:B,renderAnnotation:N,renderBlock:Y,renderField:H,renderInlineBlock:Z,renderInput:U,renderItem:q,renderPreview:J,schemaType:W},y[19]=t,y[20]=v,y[21]=j,y[22]=_,y[23]=k,y[24]=I,y[25]=E,y[26]=$,y[27]=A,y[28]=B,y[29]=N,y[30]=Y,y[31]=H,y[32]=Z,y[33]=U,y[34]=q,y[35]=J,y[36]=W,y[37]=u):u=y[37],d=u,y[38]!==w?(p=(0,a.jsx)(dO,{children:w}),y[38]=w,y[39]=p):p=y[39],y[40]!==p||y[41]!==G?(m=(0,a.jsx)(oz,{validation:G,children:p}),y[40]=p,y[41]=G,y[42]=m):m=y[42],y[43]!==F||y[44]!==m?(h=(0,a.jsx)(oT,{presence:F,children:m}),y[43]=F,y[44]=m,y[45]=h):h=y[45],y[46]!==A||y[47]!==h?(f=(0,a.jsx)(vx,{id:A,children:h}),y[46]=A,y[47]=h,y[48]=f):f=y[48],y[49]!==z||y[50]!==M||y[51]!==P||y[52]!==R||y[53]!==O||y[54]!==V||y[55]!==L||y[56]!==f?(g=(0,a.jsx)(xU,{onChange:z,onFieldGroupSelect:M,onPathBlur:P,onPathFocus:R,onPathOpen:O,onSetPathCollapsed:L,onSetFieldSetCollapsed:V,children:f}),y[49]=z,y[50]=M,y[51]=P,y[52]=R,y[53]=O,y[54]=V,y[55]=L,y[56]=f,y[57]=g):g=y[57],y[58]!==d||y[59]!==g?(C=(0,a.jsx)(c.NU.Provider,{value:d,children:g}),y[58]=d,y[59]=g,y[60]=C):C=y[60],C}function A9(){return!0}function De(e){let t,n,r,i,l,s,d,c,u=(0,o.c)(46),{__internal_fieldActions:p,__internal_patchChannel:m,autoFocus:h,changesOpen:f,children:g,collapsedFieldSets:C,collapsedPaths:y,focusPath:x,focused:b,groups:v,id:j,onChange:w,onPathBlur:_,onPathFocus:k,onPathOpen:S,onFieldGroupSelect:T,onSetPathCollapsed:I,onSetFieldSetCollapsed:E,presence:$,readOnly:A,schemaType:D,validation:z}=e,{file:M,image:P}=co().form,R=DT(),O=DI(),V=DE(),L=D$(),F=DA(),B=DD(),N=Dz();u[0]!==R?(t=e=>(0,a.jsx)(R,{...e}),u[0]=R,u[1]=t):t=u[1];let Y=t;u[2]!==O?(n=e=>(0,a.jsx)(O,{...e}),u[2]=O,u[3]=n):n=u[3];let H=n;u[4]!==L?(r=e=>{let{key:t,...n}=e;return(0,a.jsx)(L,{...n},t)},u[4]=L,u[5]=r):r=u[5];let Z=r;u[6]!==V?(i=e=>(0,a.jsx)(A3,{component:V,...e}),u[6]=V,u[7]=i):i=u[7];let U=i;u[8]!==F?(l=e=>(0,a.jsx)(F,{...e}),u[8]=F,u[9]=l):l=u[9];let q=l;u[10]!==B?(s=e=>(0,a.jsx)(B,{...e}),u[10]=B,u[11]=s):s=u[11];let J=s;u[12]!==N?(d=e=>(0,a.jsx)(N,{...e}),u[12]=N,u[13]=d):d=u[13];let W=d;return u[14]!==h||u[15]!==f||u[16]!==g||u[17]!==C||u[18]!==y||u[19]!==p||u[20]!==M||u[21]!==x||u[22]!==b||u[23]!==v||u[24]!==j||u[25]!==P||u[26]!==w||u[27]!==T||u[28]!==_||u[29]!==k||u[30]!==S||u[31]!==E||u[32]!==I||u[33]!==m||u[34]!==$||u[35]!==A||u[36]!==W||u[37]!==q||u[38]!==H||u[39]!==J||u[40]!==Y||u[41]!==Z||u[42]!==U||u[43]!==D||u[44]!==z?(c=(0,a.jsx)(A6,{__internal_fieldActions:p,__internal_patchChannel:m,autoFocus:h,changesOpen:f,collapsedFieldSets:C,collapsedPaths:y,file:M,focusPath:x,focused:b,groups:v,id:j,image:P,onChange:w,onPathBlur:_,onPathFocus:k,onPathOpen:S,onFieldGroupSelect:T,onSetPathCollapsed:I,onSetFieldSetCollapsed:E,presence:$,readOnly:A,renderAnnotation:W,renderBlock:q,renderField:H,renderInlineBlock:J,renderInput:Y,renderItem:Z,renderPreview:U,schemaType:D,validation:z,children:g}),u[14]=h,u[15]=f,u[16]=g,u[17]=C,u[18]=y,u[19]=p,u[20]=M,u[21]=x,u[22]=b,u[23]=v,u[24]=j,u[25]=P,u[26]=w,u[27]=T,u[28]=_,u[29]=k,u[30]=S,u[31]=E,u[32]=I,u[33]=m,u[34]=$,u[35]=A,u[36]=W,u[37]=q,u[38]=H,u[39]=J,u[40]=Y,u[41]=Z,u[42]=U,u[43]=D,u[44]=z,u[45]=c):c=u[45],c}function Dt(e){let t,n,r,i,l,d,c,u,p,m,h,f,g,C,y,x,b,v,j,w,_,k,S,T,I,E,$=(0,o.c)(104),{__internal_fieldActions:A,__internal_patchChannel:D,autoFocus:z,changesOpen:M,collapsedFieldSets:P,collapsedPaths:R,focused:O,focusPath:V,groups:L,id:F,members:B,onChange:N,onFieldGroupSelect:Y,onPathBlur:H,onPathFocus:Z,onPathOpen:U,onSetFieldSetCollapsed:q,onSetPathCollapsed:J,openPath:W,presence:K,readOnly:G,schemaType:X,validation:Q,value:ee}=e,et=void 0===W?i_:W;$[0]!==J?(t=e=>J([e],!0),$[0]=J,$[1]=t):t=$[1];let en=t;$[2]!==J?(n=e=>J([e],!1),$[2]=J,$[3]=n):n=$[3];let er=n;$[4]!==H?(r=()=>H(i_),$[4]=H,$[5]=r):r=$[5];let ei=r;$[6]!==Z?(i=()=>Z(i_),$[6]=Z,$[7]=i):i=$[7];let ea=i;$[8]!==N?(l=e=>N(s4.from(e)),$[8]=N,$[9]=l):l=$[9];let eo=l,el=(0,s.useRef)(null);
2296$[10]!==Y?(d=e=>Y(i_,e),$[10]=Y,$[11]=d):d=$[11];let es=d;$[12]!==U?(c=e=>U([e]),$[12]=U,$[13]=c):c=$[13];let ed=c;$[14]!==U?(u=()=>U([]),$[14]=U,$[15]=u):u=$[15];let ec=u;$[16]!==q?(p=e=>q([e],!0),$[16]=q,$[17]=p):p=$[17];let eu=p;$[18]!==q?(m=e=>q([e],!1),$[18]=q,$[19]=m):m=$[19];let ep=m,em=DT(),eh=DI(),ef=DE(),eg=D$(),eC=DA(),ey=DD(),ex=Dz();$[20]!==em?(h=e=>(0,a.jsx)(AW,{children:(0,a.jsx)(em,{...e})}),$[20]=em,$[21]=h):h=$[21];let eb=h;$[22]!==eh?(f=e=>(0,a.jsx)(eh,{...e}),$[22]=eh,$[23]=f):f=$[23];let ev=f;$[24]!==eg?(g=e=>{let{key:t,...n}=e;return(0,a.jsx)(eg,{...n},t)},$[24]=eg,$[25]=g):g=$[25];let ej=g;$[26]!==ef?(C=e=>(0,a.jsx)(A3,{component:ef,...e}),$[26]=ef,$[27]=C):C=$[27];let ew=C;$[28]!==eC?(y=e=>(0,a.jsx)(eC,{...e}),$[28]=eC,$[29]=y):y=$[29];let e_=y;$[30]!==ey?(x=e=>(0,a.jsx)(ey,{...e}),$[30]=ey,$[31]=x):x=$[31];let ek=x;$[32]!==ex?(b=e=>(0,a.jsx)(ex,{...e}),$[32]=ex,$[33]=b):b=$[33];let eS=b;return $[34]!==ei||$[35]!==ea||$[36]!==F?(j={ref:el,id:F,onBlur:ei,onFocus:ea,"aria-describedby":void 0},$[34]=ei,$[35]=ea,$[36]=F,$[37]=j):j=$[37],$[38]!==B?(w=B.some(Dn),$[38]=B,$[39]=w):w=$[39],$[40]!==V||$[41]!==O||$[42]!==L||$[43]!==eo||$[44]!==ec||$[45]!==en||$[46]!==eu||$[47]!==er||$[48]!==ep||$[49]!==ed||$[50]!==es||$[51]!==F||$[52]!==B||$[53]!==Z||$[54]!==G||$[55]!==eS||$[56]!==e_||$[57]!==ev||$[58]!==ek||$[59]!==eb||$[60]!==ej||$[61]!==ew||$[62]!==X||$[63]!==j||$[64]!==w||$[65]!==ee?(_={focusPath:V,elementProps:j,changed:w,focused:O,groups:L,id:F,level:0,members:B,onChange:eo,onFieldClose:ec,onFieldCollapse:en,onFieldSetCollapse:eu,onFieldExpand:er,onFieldSetExpand:ep,onPathFocus:Z,onFieldOpen:ed,onFieldGroupSelect:es,path:i_,presence:i_,readOnly:G,renderAnnotation:eS,renderBlock:e_,renderField:ev,renderInlineBlock:ek,renderInput:eb,renderItem:ej,renderPreview:ew,schemaType:X,validation:i_,value:ee},$[40]=V,$[41]=O,$[42]=L,$[43]=eo,$[44]=ec,$[45]=en,$[46]=eu,$[47]=er,$[48]=ep,$[49]=ed,$[50]=es,$[51]=F,$[52]=B,$[53]=Z,$[54]=G,$[55]=eS,$[56]=e_,$[57]=ev,$[58]=ek,$[59]=eb,$[60]=ej,$[61]=ew,$[62]=X,$[63]=j,$[64]=w,$[65]=ee,$[66]=_):_=$[66],v=_,$[67]!==U||$[68]!==et||$[69]!==eb||$[70]!==v?(k=(0,a.jsx)(_p,{children:(0,a.jsx)(Dr,{rootInputProps:v,onPathOpen:U,openPath:et,renderInput:eb})}),$[67]=U,$[68]=et,$[69]=eb,$[70]=v,$[71]=k):k=$[71],$[72]!==A||$[73]!==k?(S=(0,a.jsx)(bl,{actions:A,children:k}),$[72]=A,$[73]=k,$[74]=S):S=$[74],$[75]!==S||$[76]!==ee?(T=(0,a.jsx)(dq,{value:ee,children:S}),$[75]=S,$[76]=ee,$[77]=T):T=$[77],$[78]!==T||$[79]!==ee?(I=(0,a.jsx)(Og,{value:ee,children:T}),$[78]=T,$[79]=ee,$[80]=I):I=$[80],$[81]!==z||$[82]!==M||$[83]!==P||$[84]!==R||$[85]!==A||$[86]!==V||$[87]!==O||$[88]!==L||$[89]!==F||$[90]!==N||$[91]!==Y||$[92]!==H||$[93]!==Z||$[94]!==U||$[95]!==q||$[96]!==J||$[97]!==D||$[98]!==K||$[99]!==G||$[100]!==X||$[101]!==I||$[102]!==Q?(E=(0,a.jsx)(De,{__internal_fieldActions:A,__internal_patchChannel:D,autoFocus:z,changesOpen:M,collapsedFieldSets:P,collapsedPaths:R,focusPath:V,focused:O,groups:L,id:F,onChange:N,onPathBlur:H,onPathFocus:Z,onPathOpen:U,onFieldGroupSelect:Y,onSetPathCollapsed:J,onSetFieldSetCollapsed:q,presence:K,validation:Q,readOnly:G,schemaType:X,children:I}),$[81]=z,$[82]=M,$[83]=P,$[84]=R,$[85]=A,$[86]=V,$[87]=O,$[88]=L,$[89]=F,$[90]=N,$[91]=Y,$[92]=H,$[93]=Z,$[94]=U,$[95]=q,$[96]=J,$[97]=D,$[98]=K,$[99]=G,$[100]=X,$[101]=I,$[102]=Q,$[103]=E):E=$[103],E}function Dn(e){return"field"===e.kind&&e.field.changed}function Dr(e){let t,n,r=(0,o.c)(10),{rootInputProps:i,onPathOpen:l,openPath:s,renderInput:d}=e,c=_u(),u="root"===i.id;r[0]!==u||r[1]!==l||r[2]!==s||r[3]!==i||r[4]!==c.enabled?(t=c.enabled&&u&&(0,a.jsx)(_c,{onPathFocus:i.onPathFocus,onPathOpen:l,openPath:s,rootInputProps:i,schemaType:i.schemaType}),r[0]=u,r[1]=l,r[2]=s,r[3]=i,r[4]=c.enabled,r[5]=t):t=r[5];let p=t;return r[6]!==p||r[7]!==d||r[8]!==i?(n=d({...i,__internal_arrayEditingModal:p}),r[6]=p,r[7]=d,r[8]=i,r[9]=n):n=r[9],n}let Di=(0,g.I4)(u.Zp)(e=>{let{color:t,radius:n,space:r}=e.theme.sanity,i=(0,g.AH)`
2297    pointer-events: none;
2298    content: '';
2299    position: absolute;
2300    top: -${r[1]}px;
2301    bottom: -${r[1]}px;
2302    left: -${r[1]}px;
2303    right: -${r[1]}px;
2304    border-radius: ${n[2]}px;
2305    mix-blend-mode: ${t.dark?"screen":"multiply"};
2306  `;return(0,g.AH)`
2307    box-shadow: 0 0 0 1px var(--card-border-color);
2308    border-radius: ${n[1]}px;
2309    pointer-events: all;
2310    position: relative;
2311
2312    &[data-focused] {
2313      --card-border-color: var(--card-focus-ring-color);
2314    }
2315
2316    &:not([data-focused]):not([data-selected]) {
2317      @media (hover: hover) {
2318        &:hover {
2319          --card-border-color: ${t.input.default.hovered.border};
2320        }
2321      }
2322    }
2323
2324    &[data-markers] {
2325      &:after {
2326        ${i}
2327        background-color: ${t.dark?v.OZ.purple[950].hex:v.OZ.purple[50].hex};
2328      }
2329    }
2330
2331    &[data-warning] {
2332      &:after {
2333        ${i}
2334        background-color: ${t.muted.caution.hovered.bg};
2335      }
2336
2337      @media (hover: hover) {
2338        &:hover {
2339          --card-border-color: ${t.muted.caution.hovered.border};
2340        }
2341      }
2342    }
2343
2344    &[data-invalid] {
2345      &:after {
2346        ${i}
2347        background-color: ${t.input.invalid.enabled.bg};
2348      }
2349
2350      @media (hover: hover) {
2351        &:hover {
2352          --card-border-color: ${t.input.invalid.hovered.border};
2353        }
2354      }
2355    }
2356  `}),Da=(0,g.I4)(u.so)`
2357  display: block;
2358  position: relative;
2359  width: 100%;
2360  user-select: none;
2361  pointer-events: all;
2362`,Do=g.I4.div(({theme:e,$hasChanges:t})=>{let{space:n}=e.sanity;return(0,g.AH)`
2363      position: absolute;
2364      width: ${n[2]}px;
2365      right: 0;
2366      top: 0;
2367      bottom: 0;
2368      padding-left: ${n[1]}px;
2369      padding-right: ${n[2]}px;
2370      user-select: none;
2371      ${!1}
2372
2373      ${!t&&(0,g.AH)`
2374        display: none;
2375      `}
2376
2377      [data-dragged] & {
2378        visibility: hidden;
2379      }
2380    `});(0,g.I4)(u.so)`
2381  position: relative;
2382
2383  [data-dragged] > & {
2384    opacity: 0.5;
2385  }
2386`;let Dl=(0,g.I4)(u.az)`
2387  width: 25px;
2388  position: relative;
2389  flex-shrink: 0;
2390  user-select: none;
2391
2392  [data-dragged] & {
2393    visibility: hidden;
2394  }
2395`,Ds=(0,g.I4)(u.so)`
2396  position: absolute;
2397  right: 0;
2398  [data-dragged] & {
2399    visibility: hidden;
2400  }
2401`,Dd=(0,g.I4)(u.az)`
2402  max-width: 250px;
2403`,Dc={constrainSize:!0,placement:"bottom",portal:"default",tone:"default"};function Du(e){let t,n,r,i,l,d,c,p,m,h,f,g,x,b,v,j,w=(0,o.c)(42),{children:k,focused:S,isOpen:T,onOpen:I,onRemove:E,readOnly:$,value:A}=e,{t:D}=iJ(),z=(0,s.useId)(),M=(0,s.useRef)(null),P=(0,s.useRef)(!1);w[0]!==A?(n=(0,_.A_)(A)?(0,s.forwardRef)(function(e,t){return(0,a.jsx)(tq.RZ,{...e,intent:"edit",params:{id:A._ref},ref:t})}):void 0,w[0]=A,w[1]=n):n=w[1],t=n,w[2]!==T?(r=()=>{T&&(P.current=!1)},i=[T],w[2]=T,w[3]=r,w[4]=i):(r=w[3],i=w[4]),(0,s.useEffect)(r,i),w[5]!==S||w[6]!==T?(l=e=>{S&&"Tab"===e.key&&M.current&&!P.current&&!T&&(e.preventDefault(),e.stopPropagation(),M.current.focus(),P.current=!0)},w[5]=S,w[6]=T,w[7]=l):l=w[7],(0,u.Pm)(l),w[8]!==E?(d=e=>{e.preventDefault(),e.stopPropagation(),E()},w[8]=E,w[9]=d):d=w[9];let R=d;w[10]!==k?(c=(0,a.jsx)(u.az,{flex:1,children:k}),w[10]=k,w[11]=c):c=w[11],w[12]!==D?(p=D("inputs.portable-text.block.open-menu-aria-label"),w[12]=D,w[13]=p):p=w[13];let O=+!S;return w[14]===Symbol.for("react.memo_cache_sentinel")?(m={content:"Open menu"},w[14]=m):m=w[14],w[15]!==p||w[16]!==O?(h=(0,a.jsx)(y.$n,{"aria-label":p,icon:C.riS,mode:"bleed",paddingY:3,tabIndex:O,tooltipProps:m}),w[15]=p,w[16]=O,w[17]=h):h=w[17],w[18]!==t||w[19]!==D||w[20]!==A?(f="_ref"in A&&!!A._ref&&(0,a.jsx)(y.Dr,{as:t,"data-as":"a",icon:C.qYV,text:D("inputs.portable-text.block.open-reference")}),w[18]=t,w[19]=D,w[20]=A,w[21]=f):f=w[21],w[22]!==I||w[23]!==$||w[24]!==D?(g=$&&(0,a.jsx)(y.Dr,{icon:C.N5q,onClick:I,text:D("inputs.portable-text.block.view")}),w[22]=I,w[23]=$,w[24]=D,w[25]=g):g=w[25],w[26]!==R||w[27]!==I||w[28]!==$||w[29]!==D?(x=!$&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.Dr,{icon:C.qUP,onClick:I,text:D("inputs.portable-text.block.edit")}),(0,a.jsx)(y.Dr,{icon:C.ucK,onClick:R,text:D("inputs.portable-text.block.remove"),tone:"critical"})]}),w[26]=R,w[27]=I,w[28]=$,w[29]=D,w[30]=x):x=w[30],w[31]!==f||w[32]!==g||w[33]!==x?(b=(0,a.jsx)(u.W1,{children:(0,a.jsxs)(a.Fragment,{children:[f,g,x]})}),w[31]=f,w[32]=g,w[33]=x,w[34]=b):b=w[34],w[35]!==z||w[36]!==h||w[37]!==b?(v=(0,a.jsx)(u.az,{children:(0,a.jsx)(y.IU,{button:h,ref:M,id:z,menu:b,popover:Dc})}),w[35]=z,w[36]=h,w[37]=b,w[38]=v):v=w[38],w[39]!==v||w[40]!==c?(j=(0,a.jsxs)(u.so,{children:[c,v]}),w[39]=v,w[40]=c,w[41]=j):j=w[41],j}function Dp(e){let{floatingBoundary:t,focused:n,isFullscreen:r,onItemClose:i,onItemOpen:o,onPathF
2403ocus:d,path:c,readOnly:p,referenceBoundary:m,relativePath:h,renderAnnotation:f,renderBlock:g,renderBlockActions:C,renderCustomMarkers:x,renderField:b,renderInlineBlock:v,renderInput:j,renderItem:w,renderPreview:_,schemaType:k,selected:S,setElementRef:T,value:I}=e,{onChange:E}=xq(),{Markers:$}=o$().__internal.components,A=vh(),D=A&&aB(A.path).startsWith(aB(c)),z=oV(c),M=(0,ng.v$)(),[P,R]=(0,s.useState)(null),O=ve(aB(c)),V=(0,s.useRef)(!1),L=(0,s.useMemo)(()=>({anchor:{path:h,offset:0},focus:{path:h,offset:0}}),[h]),F=(0,s.useCallback)(()=>{O&&(ng.Og.blur(M),o(O.node.path))},[M,O,o]),B=(0,s.useCallback)(()=>{i(),ng.Og.select(M,L),ng.Og.focus(M)},[i,M,L]),N=(0,s.useCallback)(()=>{if(!V.current)try{ng.Og.delete(M,L,{mode:"blocks"})}catch(e){console.error(e)}finally{V.current=!0}},[M,L]);(0,s.useEffect)(()=>()=>{V.current&&ng.Og.focus(M)},[M]);let Y=(0,s.useMemo)(()=>r&&!C?{paddingX:5}:r&&C?{paddingLeft:5,paddingRight:2}:C?{paddingLeft:3,paddingRight:2}:{paddingX:3},[r,C]),{validation:H,hasError:Z,hasWarning:U,hasInfo:q}=oO(O?.node),J=M.schemaTypes.portableText,W=z.length>0,K=oE(c,!0),G=(0,s.useMemo)(()=>K.filter(e=>(0,l.n4)(e.path,c)),[c,K]),X=Z||U||q||W,Q=(0,s.useMemo)(()=>X&&(0,a.jsx)(Dd,{children:(0,a.jsx)($,{markers:z,validation:H,renderCustomMarkers:x})})||null,[$,z,x,X,H]),ee=!!O?.member.open,et=O?.input,en=O?.node.path||i_,er=(0,s.useMemo)(()=>({__unstable_floatingBoundary:t,__unstable_referenceBoundary:m,__unstable_referenceElement:P,children:et,focused:n,markers:z,onClose:B,onOpen:F,onPathFocus:d,onRemove:N,open:ee,parentSchemaType:J,path:en,presence:G,readOnly:!!p,renderAnnotation:f,renderBlock:g,renderDefault:Dm,renderField:b,renderInlineBlock:v,renderInput:j,renderItem:w,renderPreview:_,schemaType:k,selected:S,validation:H,value:I}),[t,P,et,n,z,B,F,d,N,ee,J,en,G,p,m,f,g,b,v,j,w,_,k,S,H,I]),ei=C&&I&&!p,ea=r&&O,eo=(0,s.useCallback)(e=>{O&&T({key:O.member.key,elementRef:e}),R(e)},[O,T,R]);return(0,s.useMemo)(()=>(0,a.jsx)(u.az,{ref:eo,contentEditable:!1,children:(0,a.jsx)(u.so,{paddingBottom:1,marginY:3,style:void 0,children:(0,a.jsxs)(Da,{...Y,children:[(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(y.m_,{placement:"top",portal:"editor",disabled:!!ee||!X,content:Q,children:(0,a.jsx)("div",{children:g&&g(er)})})}),ei&&(0,a.jsx)(Dl,{contentEditable:!1,marginRight:3,children:(0,a.jsx)(Ds,{children:n&&(0,a.jsx)(Ec,{block:I,onChange:E,renderBlockActions:C})})}),ea&&(0,a.jsx)(Do,{$hasChanges:O.member.item.changed,contentEditable:!1,children:(0,a.jsx)(Es,{hasFocus:n,isChanged:O.member.item.changed,path:O.member.item.path,withHoverEffect:!1})}),D&&(0,a.jsx)(I9,{$fullScreen:!!r})]})})}),[ei,ea,er,n,Y,O?.member?.item?.changed,O?.member?.item?.path,E,g,C,D,r,eo,Q,X,I,ee])}let Dm=e=>{let t,n,r,i,l,s,d,c=(0,o.c)(41),{__unstable_floatingBoundary:u,__unstable_referenceBoundary:p,__unstable_referenceElement:m,children:h,focused:f,markers:g,onClose:C,onOpen:y,onRemove:x,open:b,readOnly:v,renderPreview:j,schemaType:w,selected:k,value:S,validation:T}=e,{t:I}=iJ(),E=(0,_.wu)(S),$=T.filter(Dh).length>0,A=T.filter(Df).length>0,D=g.length>0,z=k||f?"primary":"default";c[0]!==y?(t=e=>{e.preventDefault(),e.stopPropagation(),y()},c[0]=y,c[1]=t):t=c[1];let M=t;c[2]!==I?(n=I("inputs.portable-text.block.aria-label"),c[2]=I,c[3]=n):n=c[3];let P=f?"":void 0,R=E?"":void 0,O=$?"":void 0,V=D?"":void 0,L=v?"":void 0,F=k?"":void 0,B=A?"":void 0,N=+!E;c[4]!==f||c[5]!==y||c[6]!==x||c[7]!==b||c[8]!==v||c[9]!==S?(r=(0,a.jsx)(Du,{isOpen:b,focused:f,onOpen:y,onRemove:x,readOnly:v,value:S}),c[4]=f,c[5]=y,c[6]=x,c[7]=b,c[8]=v,c[9]=S,c[10]=r):r=c[10];let Y=E?"blockImage":"block";return c[11]!==j||c[12]!==w||c[13]!==r||c[14]!==Y||c[15]!==S?(i=j({actions:r,layout:Y,schemaType:w,skipVisibilityCheck:!0,value:S}),c[11]=j,c[12]=w,c[13]=r,c[14]=Y,c[15]=S,c[16]=i):i=c[16],c[17]!==M||c[18]!==n||c[19]!==i||c[20]!==P||c[21]!==R||c[22]!==O||c[23]!==V||c[24]!==L||c[25]!==F||c[26]!==B||c[27]!==N||c[28]!==z?(l=(0,a.jsx)(Di,{"aria-label":n,"data-focused":P,"data-image-preview":R,"data-invalid":O,"data-markers":V,"data-read-only":L,"data-selected":F,"data-testid":"pte-block-object","data-warning":B,flex:1,onDoubleClick:M,padding:N,tone:z,children:i}),c[17]=M,c[18]=n,c[19]=i,c[20]=P,c[21]=R,c[22]=O,c[23]=V,c[24]=L,c[25]=F,c[26]=B,c[27]=N,c[28]=z,c[29]=l):l=c[29],c[30]!==u||c[31]!==p||c[32]!==m||c[33]!==h||c[34]!==C||
2403c[35]!==b||c[36]!==w?(s=b&&(0,a.jsx)($Z,{floatingBoundary:u,defaultType:"dialog",onClose:C,autoFocus:!0,schemaType:w,referenceBoundary:p,referenceElement:m,children:h}),c[30]=u,c[31]=p,c[32]=m,c[33]=h,c[34]=C,c[35]=b,c[36]=w,c[37]=s):s=c[37],c[38]!==l||c[39]!==s?(d=(0,a.jsxs)(a.Fragment,{children:[l,s]}),c[38]=l,c[39]=s,c[40]=d):d=c[40],d};function Dh(e){return"error"===e.level}function Df(e){return"warning"===e.level}function Dg(e){return e.components?.block?e.components.block:ob(e)?EA:Dm}function DC(e){return e.components?.inlineBlock?e.components.inlineBlock:$q}function Dy(e){return e.components?.annotation?e.components.annotation:vl}function Dx(e){let t,n,r,i=(0,o.c)(9),{componentResolver:l,componentProps:s}=e;if(!s.schemaType)throw Error("the `schemaType` property must be defined");i[0]!==s.schemaType||i[1]!==l?(t=l(s.schemaType),i[0]=s.schemaType,i[1]=l,i[2]=t):t=i[2];let d=t;i[3]!==l?(n=e=>{if(!e.schemaType?.type)throw Error("Attempted to render form component of non-existent parent type");let{components:t,...n}=e.schemaType,r=l(n);return(0,a.jsx)(r,{...e})},i[3]=l,i[4]=n):n=i[4];let c=n;return i[5]!==d||i[6]!==s||i[7]!==c?(r=(0,a.jsx)(d,{...s,renderDefault:c}),i[5]=d,i[6]=s,i[7]=c,i[8]=r):r=i[8],r}function Db(e){let t,n=(0,o.c)(2);return n[0]!==e?(t={componentProps:e,componentResolver:AL},n[0]=e,n[1]=t):t=n[1],Dx(t)}function Dv(e){let t,n=(0,o.c)(2);return n[0]!==e?(t={componentProps:e,componentResolver:vR},n[0]=e,n[1]=t):t=n[1],Dx(t)}function Dj(e){let t,n=(0,o.c)(2);return n[0]!==e?(t={componentProps:e,componentResolver:AJ},n[0]=e,n[1]=t):t=n[1],Dx(t)}function Dw(e){let t,n=(0,o.c)(2);return n[0]!==e?(t={componentProps:e,componentResolver:AF},n[0]=e,n[1]=t):t=n[1],Dx(t)}function D_(e){let t,n=(0,o.c)(2);return n[0]!==e?(t={componentProps:e,componentResolver:Dg},n[0]=e,n[1]=t):t=n[1],Dx(t)}function Dk(e){let t,n=(0,o.c)(2);return n[0]!==e?(t={componentProps:e,componentResolver:DC},n[0]=e,n[1]=t):t=n[1],Dx(t)}function DS(e){let t,n=(0,o.c)(2);return n[0]!==e?(t={componentProps:e,componentResolver:Dy},n[0]=e,n[1]=t):t=n[1],Dx(t)}function DT(){let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={defaultComponent:Db,pick:$5},t[0]=e):e=t[0],aE(e)}function DI(){let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={defaultComponent:Dv,pick:$0},t[0]=e):e=t[0],aE(e)}function DE(){let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={defaultComponent:Dw,pick:$7},t[0]=e):e=t[0],aE(e)}function D$(){let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={defaultComponent:Dj,pick:$3},t[0]=e):e=t[0],aE(e)}function DA(){let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={defaultComponent:D_,pick:$8},t[0]=e):e=t[0],aE(e)}function DD(){let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={defaultComponent:Dk,pick:$4},t[0]=e):e=t[0],aE(e)}function Dz(){let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={defaultComponent:DS,pick:$6},t[0]=e):e=t[0],aE(e)}function DM(e){let t,n=(0,o.c)(3),r=DE();return n[0]!==r||n[1]!==e?(t=(0,a.jsx)(A3,{...e,component:r}),n[0]=r,n[1]=e,n[2]=t):t=n[2],t}let DP=["_id","_rev","_type"],DR=[...DP,"_key"],DO={available:!0,reason:"READABLE"},DV={available:!1,reason:"PERMISSION_DENIED"},DL={available:!1,reason:"NOT_FOUND"},DF={available:!1,reason:"VERSION_DELETED"},DB={title:"Invalid preview config",subtitle:"Check the error log in the console",media:(0,a.jsx)(C.sAQ,{})};function DN(e,t){let n,r={},i=0;return function(...e){return new P.c(o=>{clearTimeout(n),n=setTimeout(a,t);let l={args:e,observer:o,completed:!1};return r[i++]=l,()=>{l.completed=!0}})};function a(){let t=r;r={};let n=Object.keys(t).filter(e=>{let n=t[e];return n&&!n.completed});0!==n.length&&e(n.map(e=>{let n=t[e];return n&&n.args}).filter(io)).subscribe({next(e){e.forEach((r,i)=>{let a=t[n[i]];a&&!a.completed&&a.observer.next(e[i])})},complete(){n.forEach(e=>{let n=t[e];n&&!n.completed&&n.observer.complete()})},error(e){n.forEach(n=>{let r=t[n];r&&!r.completed&&r.observer.error(e)})}})}}let DY=iD({maxSize:1e3});function DH(e,t){return e.push(...t),e}let DZ=[["_createdAt"],["_updatedAt"]];function DU(e){let t=e?.select;return t?(Object.values(t).map(e=>String(e).split("."))||[]).concat(DZ):void 0}let Dq=["_id","_type","_upload","_createdAt","_updatedAt"],DJ=[],DW=(()=>{let e={};return{add:(t,n,r)=>{let i="name"in t?t.name:t.type;e[i]||(e[i]=[]),e[i].push({error:r,type:t,value:n})},getAll:()=>e,clear(){e={}}}})(),DK=tQ(()=>{let e=DW.getAll(),t=e2(Object.keys(e).map(t=>tX(e[t],e=>e.error.message))).length;0!==t&&(console.groupCollapsed(`%cHeads up! Got ${1===t?"error":`${t} errors`} while preparing data for preview. Click for details.`,"color: #ff7e7c"),Object.keys(e).forEach(t=>{let n=e[t];console.group(`Check the preview config for schema type "${t}": %o`,n[0].type.preview),tX(n,e=>
2403e.error.message).forEach(e=>{if("returnValueError"===e.error.type){let t="function"==typeof e.type.preview?.prepare,{value:n,error:r}=e;console.log(`Encountered an invalid ${t?"return value when calling prepare(%o)":"value targeted by preview.select"}:`,n),console.error(r)}if("prepareError"===e.error.type){let{value:t,error:n}=e;console.log("Encountered an error when calling prepare(%o):",t),console.error(n)}}),console.groupEnd()}),console.groupEnd(),DW.clear())},1e3),DG=e=>t=>{let n=typeof t;return null===t||"undefined"===n||"string"===n||"number"===n||"boolean"===n?DJ:[D1("returnValueError",Error(`The "${e}" field should be a string, number, boolean, undefined or null, instead saw ${DQ(t)}`))]},DX={media:()=>DJ,title:DG("title"),subtitle:DG("subtitle"),description:DG("description"),imageUrl:DG("imageUrl"),date:DG("date")};function DQ(e,t=!0){if(iI(e)){let n=Object.keys(e),r=n.length>3?"...":"";return`${t?"object with keys ":""}{${n.slice(0,3).join(", ")}${r}}`}if(Array.isArray(e)){let n=e.length>3?"...":"";return`${t?"array with ":""}[${e.map(e=>DQ(e,!1))}${n}]`}return`the ${typeof e} ${e}`}function D1(e,t){return Object.assign(t,{type:e})}function D2(e,t,n={}){let r=e.preview?.prepare;try{return{returnValue:r?r(t,n):kJ(t).reduce((e,n)=>{let r=t[n];return{...e,[n]:Array.isArray(r)&&(0===r.length||r.some(_.L4))?function(e){let t=Array.isArray(e)&&e.find(_.L4);return t&&t.children?t.children.filter(_.bn).map(e=>e.text).join(""):""}(r):r}},{}),errors:DJ}}catch(e){return{returnValue:null,errors:[D1("prepareError",e)]}}}function D5(e,t,n){return e.errors.forEach(e=>DW.add(t,n,e)),DK(),DB}function D0(e,t,n={}){var r;let i="function"==typeof t.preview?.prepare,a=t.preview?.select||{},o=Object.keys(a).reduce((n,r)=>{var o;let l="fields"in t?t:null,s=a[r],d=l?.fields?.find(e=>e.name===s),c=d&&(!function(e){let t=!!e.options&&"object"==typeof e.options&&e.options;return!!t&&"list"in t&&Array.isArray(t.list)}(o=d.type)?void 0:o.options.list.map(e=>(0,_.uC)(e)?e:{title:e,value:e}));if(!i&&c){let t=c&&c.find(t=>t.value===ni(e,a[r]));n[r]=t?t.value:ni(e,a[r])}else n[r]=ni(e,a[r]);return n},{}),l=D2(t,o,n);if(l.errors.length>0)return D5(l,t,o);let s={...l,errors:[...l.errors||[],...nl(r=l.returnValue)&&null!==r?Object.entries(r).reduce((e,[t,n])=>[...e,...function(e,t){if(typeof t>"u")return DJ;let n=DX[e];return n&&n(t)||DJ}(t,n)],DJ):[D1("returnValueError",Error(`Invalid return value. Expected a plain object with at least a 'title' field, instead saw ${DQ(r)}`))]]};return s.errors.length>0?D5(s,t,o):{...nV(e,Dq),...l.returnValue}}function D7(e){return JSON.stringify(e)}let D3=e=>(e=>!iR.test(e)||iP.includes(e))(e)?`"${e}": @["${e}"]`:e;function D8({ids:e,fields:t}){let n=[...DP,...t];return`*[_id in [${e.map(D7).join(",")}]][0...${e.length}]{${n.map(D3).join(",")}}`}function D4(e,t,n,r){let i=e.observeForPreview({_id:ib(n)},t,{perspective:r}),a=ic(n)?ix(n):"drafts",o=a?e.observeForPreview({_id:ib(n)},t,{perspective:[a]}):(0,k.of)(null);return(0,eo.z)([i,o]).pipe((0,E.T)(([e,t])=>({isLoading:!1,snapshot:e?.snapshot||null,original:t?.snapshot||null})),(0,Z.Z)({isLoading:!0,snapshot:null,original:null}))}let D6={};function D9({snapshot:e,original:t,fallback:n}){var r;return e||t||(r=n||D6,{title:(0,a.jsx)("em",{children:r.title?String(r.title):"Missing document"}),subtitle:(0,a.jsx)("em",{children:r.title?`Missing document ID: ${r._id}`:`Document ID: ${r._id}`}),media:()=>(0,a.jsx)(C.sAQ,{})})}let ze="object"==typeof location?location.search:"",zt={name:"default",metadata:{}},zn={coreUi:{globalUserMenu:!0,globalWorkspaceControl:!0,comlink:!0},default:{}},zr=(0,eQ.g_)({name:"Document Desynced",version:1,description:'Occurs when a "hole" in events from the document pair listener is detected and recovered from.'}),zi=(0,eQ.g_)({name:"High Listener Latency Detected",version:1,description:"Emits when a high listener latency is detected"});function za({grantsStore:e,document:t,permission:n}){let{checkDocumentPermission:r}=e;return r(n,t)}let zo=[void 0,!0];function zl(e,t){let[n,r]=e;switch(t.type){case"loading":return[n,!0];case"value":return!r&&eN(t.value,n)?e:[t.value,!1];case"error":throw t.error;default:throw Error(`Invalid action type: ${t}`)}}function zs(e,t){return eN(e,t)}let zd="_debug_",zc=typeof window>"u"?(0,k.of)({}):(0,V.R)(window,"hashchange"),zu=(0,S.x)((0,k.of)(0),zc).pipe((0,E.T)(()=>typeof document>"u"?"#":document.location.hash),(0,ei.F)(),(0,E.T)(e=>e.slice(1).split(";").filter(e=>e.toLowerCase().startsWith(zd)).map(e=>e.slice(zd.length)))),zp=zu.pipe((0,E.T)(e=>e.find(e=>e.startsWith("roles="))),(0,E.T)(e=>e?.split("roles=")[1].split(",").map(e=>e.trim())||[])),zm=[{filter:'_id in path("**")',permissions:["read","create","history","update"]}],zh=[{filter:'_id in path("**")',permissions:["read","history"]}],zf={administrator:[{filter:'_id in path("**")',permissions:["read","create","history","update"]}],editor:zm,developer:[{filter:'_id in path("**")',permissions:["read","create","history","update"]}],contributor:[{filter:'_id in path("**")',permissions:["read"]},{filter:'_id in path("drafts.**")',permissions:["create","history","update"]}],viewer:zh,restricted:[{filter:'_id in path("drafts.**") && _type in ["stringsTest", "book", "author", "referenceTest"]',permissions:["read","create","history","update"]},{filter:'_id in path("**")',permissions:["read"]}],requiresApproval:[{filter:"!locked",permissions:["read","create","update"]}],read:zh,write:zm},zg=zp.pipe((0,E.T)(e=>e.length?e.filter(e=>!!e&&e in zf).flatMap(e=>zf[e]||[]):null));
2403async function zC(e,t,n){return await e.request({uri:`/projects/${t}/datasets/${n}/acl`,tag:"acl.get"})}let zy=new Map;async function zx(e,t,n){zy.has(t)||zy.set(t,(0,rm.qg)(`*[${t}]`));let r=zy.get(t),i=function(e){let t={};return null!==e&&(t.identity=e),t}(e),{identity:a}=i,o={...i};return(await (await (0,rm._3)(r,{dataset:[n],identity:a,params:o})).get())?.length===1}async function zb(e,t,n,r){if(!r)return{granted:!0,reason:"Null document, nothing to check"};if(!t.length)return{granted:!1,reason:"No document grants"};let i=[];for(let n of t)await zx(e,n.filter,r)&&i.push(n);let a=i.some(e=>e.permissions.some(e=>e===n));return{granted:a,reason:a?"Matching grant":"No matching grants found"}}let zv=ia(function({grantsStore:e,templateItems:t,templates:n,schema:r,context:i}){return t?.length?(0,T.v)(()=>(0,Q.H)(t).pipe((0,$.H)(async e=>{let t=function e(t){return"object"==typeof t&&null!==t&&"serialize"in t?e(t.serialize()):t}(e),a=n.find(e=>e.id===t.templateId);if(!a)throw Error(`template not found: "${t.templateId}"`);let o=await g0(r,a,t.parameters,i,{useCache:!0});return{item:t,template:a,resolvedInitialValue:o}}),(0,E.T)(({item:t,template:n,resolvedInitialValue:i})=>{let a=r.get(n.schemaType);if(!a)throw Error(`schema type not found: "${n.schemaType}"`);let o=a?.liveEdit,{initialDocumentId:l="dummy-id"}=t;return za({grantsStore:e,permission:"create",document:{_id:o?ib(l):im(l),...i}}).pipe((0,E.T)(({granted:e,reason:r})=>({...t,granted:e,reason:r,resolvedInitialValue:i,template:n,i18n:t.i18n||n.i18n,title:t.title||n.title,subtitle:a.title===(t.title||n.title)?void 0:a.title,description:t.description||n.description,icon:t.icon||n.icon})))}),(0,ez.$)(),(0,z.n)(e=>(0,eo.z)(e)))):(0,k.of)([])});function zj(e){let t,n,r,i=(0,o.c)(9);i[0]!==e?({templateItems:n,...t}=e,i[0]=e,i[1]=t,i[2]=n):(t=i[1],n=i[2]);let a=Cm(),l=ets(),s=z3(),d=Cd(),c=t.grantsStore||s,u=t.schema||a,p=t.templates||l;return i[3]!==d||i[4]!==c||i[5]!==u||i[6]!==p||i[7]!==n?(r={templateItems:n,grantsStore:c,schema:u,templates:p,context:d},i[3]=d,i[4]=c,i[5]=u,i[6]=p,i[7]=n,i[8]=r):r=i[8],zv(r)}function zw(e,t){var n,r;if(e.end!==t.start)throw Error("chunks are not next to each other");let i=zS(e.draftState,t.draftState),a=zS(e.publishedState,t.publishedState);if("delete"===e.type&&"editDraft"===t.type)return[e,{...t,type:"create",draftState:i,publishedState:a}];if("delete"===t.type){if("missing"===i&&"present"===a)return[e,{...t,type:"discardDraft",draftState:i,publishedState:a}];if("present"===i&&"missing"===a)return[e,{...t,type:"unpublish",draftState:i,publishedState:a}]}if(("create"===(n=e.type)||"editDraft"===n)&&"editDraft"===t.type&&(r=e.endTimestamp,Date.parse(t.startTimestamp)-Date.parse(r)<3e5)){let n=new Set;for(let t of e.authors)n.add(t);for(let e of t.authors)n.add(e);return{index:0,id:t.id,type:e.type,start:e.start,end:t.end,startTimestamp:e.startTimestamp,endTimestamp:t.endTimestamp,authors:n,draftState:i,publishedState:a}}return[e,{...t,draftState:i,publishedState:a}]}function z_(e){let t=!!e;return e&&zT(e?.apply)?"deleted":t?"upsert":"unedited"}function zk(e){let t=!!e.draftEffect,n=!!e.publishedEffect,r=e.draftEffect&&zT(e.draftEffect.apply),i=e.publishedEffect&&zT(e.publishedEffect.apply),a=function(e){let t=z_(e.draftEffect),n=z_(e.publishedEffect);if("unedited"===n){if("deleted"===t)return"delete";if("upsert"===t)return"editDraft"}if("deleted"===n)return"delete";if("upsert"===n){if("unedited"===t)return"editLive";if("deleted"===t)return"publish"}return"editLive"}(e);return{index:0,id:e.id,type:a,start:e.index,end:e.index+1,startTimestamp:e.timestamp,endTimestamp:e.timestamp,authors:new Set([e.author]),draftState:t?r?"missing":"present":"unknown",publishedState:n?i?"missing":"present":"unknown"}}function zS(e,t){return"unknown"===t?e:t}function zT(e){return 0===e[0]&&null===e[1]}function zI(e){return e.draft||e.published}class zE{type="array";elements=[];constructor(e,t,n,r){this.content=e,this.value=t,this.annotation=n,this.extractor=r,this.length=e.elements.length}at(e){if(e>=this.length)throw Error("out of bounds");return this.elements[e]||(this.elements[e]=zD(this.content.elements[e],this.value[e],this.extractor))}annotationAt(e){let t=this.content.metas[e];return this.extractor.fromMeta(t)}}class z${type="object";fields={};constructor(e,t,n,r){this.content=e,this.value=t,this.annotation=n,this.extractor=r,this.keys=Object.keys(e.fields)}get(e){let t=this.fields[e];if(t)return t;let n=this.content.fields[e];if(n)return this.fields[e]=zD(n,this.value[e],this.extractor)}}class zA{type="string";constructor(e,t,n,r){this.content=e,this.value=t,this.annotation=n,this.extractor=r}sliceAnnotation(e,t){let n=[],r=0;for(let i of this.content.parts){let a=i.value.length,o=Math.max(0,e-r);if(o<a){let e=Math.min(a,t-r);if(e<=0)break;!function(e,t){if(n.length>0){var r;let i=n[n.length-1];if(r=i.annotation,r&&t?r.author===t.author&&r.timestamp===t.timestamp:!r&&!t){i.text+=e;return}}n.push({text:e,annotation:t})}(i.value.slice(o,e),this.extractor.fromValue(i))}r+=a}return n}}function zD(e,t,n){let r=n.fromValue(e);if(e.content)switch(e.content.type){case"array":return new zE(e.content,t,r,n);case"object":return new z$(e.content,t,r,n);case"string":return new zA(e.content,t,r,n)}return(0,r$.L)(t,r)}function zz(e,t,n){return n?zP(e,n.transactionIndex+1,n.chunk.index):t?zP(e,t.start,t.index):null}function zM(e,t){return t?zP(e,t.transactionIndex,t.chunk.index):null}function zP(e,t,n){let r=e.transactionByIndex(t);if(!r)return null;let i=e.chunkByTransactionIndex(t,n);return i?{chunk:i,timestamp:r.timestamp,author:r.author}:null}class zR{_postive=[];_negative=[];addToEnd(e){e.index=this._postive.length,this._postive.push(e)}addToBeginning(e){if(0==this.length)return void this.addToEnd(e);e.index=-(this._negative.length+1),this._negative.push(e)}mergeAtEnd(e,t){if(0===this.length)return void this.addToEnd(e);let n=this.lastIdx,r=t(this.get(n),e);Array.isArray(r)?(this.set(n,r[0]),this.addToEnd(r[1])):this.set(n,r)}mergeAtBeginning(e,t){if(0===this.length)return void this.addToEnd(e);let n=this.firstIdx,r=t(e,this.get(n));Array.isArray(r)?(this.set(n,r[1]),this.addToBeginning(r[0])):this.set(n,r)}removeFromEnd(){0===this._postive.length?this._negative.shift():this._postive.pop()}has(e){return e>=0?e<this._postive.length:-(e+1)<this._negative.length}get(e){return e>=0?this._postive[e]:this._negative[-(e+1)]}set(e,t){e>=0?(t.index=e,this._postive[e]=t):(t.index=e,this._negative[-(e+1)]=t)}get lastIdx(){return this._postive.length-1}get last(){return this.get(this.lastIdx)}get firstIdx(){return-this._negative.length}get first(){return this.get(this.firstIdx)}get length(){return this._postive.length+this._negative.length}}class zO{reachedEarliestEntry=!1;_transactions=new zR;_chunks=new zR;_possiblePendingTransactions=new Map;constructor(e){this.publishedId=e.publishedId,this.draftId=`drafts.${e.publishedId}`,e.enableTrace&&(this._trace=[],this._trace.push({type:"initial",publishedId:e.publishedId}),window.__sanityTimelineTrace=this._trace)}get chunkCount(){return this._chunks.length}mapChunks(e){let t=[],n=this._chunks.firstIdx,r=this._chunks.lastIdx;for(let i=r;i>=n;i--)t.push(e(this._chunks.get(i),i));return t}reset(){this._transactions=new zR,this._chunks=new zR,this._possiblePendingTransactions=new Map,this._recreateTransactionsFrom=void 0,this.reachedEarliestEntry=!1}addRemoteMutation(e){this._trace&&this._trace.push({type:"addRemoteMutation",event:e});let t=this._possiblePendingTransactions.get(e.transactionId),n=t?t.transaction:{index:0,id:e.transactionId,timestamp:e.timestamp.toISOString(),author:e.author};"draft"===e.version?n.draftEffect=e.effects:n.publishedEffect=e.effects,t?(this._possiblePendingTransactions.delete(e.transactionId),this._invalidateTransactionFrom(t.i
2403dx)):(this._transactions.addToEnd(n),this._possiblePendingTransactions.set(e.transactionId,{transaction:n,idx:this._transactions.lastIdx}))}addTranslogEntry(e){this._trace&&this._trace.push({type:"addTranslogEntry",event:e}),this._transactions.addToBeginning({index:0,id:e.id,author:e.author,timestamp:e.timestamp,draftEffect:e.effects[this.draftId],publishedEffect:e.effects[this.publishedId]})}didReachEarliestEntry(){this._trace&&this._trace.push({type:"didReachEarliestEntry"}),this.reachedEarliestEntry=!0}updateChunks(){this._trace&&this._trace.push({type:"updateChunks"}),this._removeInvalidatedChunks(),this._addChunksFromTransactions(),this._createInitialChunk()}_removeInvalidatedChunks(){if(this._recreateTransactionsFrom){for(;this._chunks.length>0;){let e=this._chunks.last;if(this._recreateTransactionsFrom<e.end)this._chunks.removeFromEnd();else break}this._recreateTransactionsFrom=void 0}}_addChunksFromTransactions(){let e=this._transactions.firstIdx,t=this._transactions.lastIdx,n=this._chunks.length>0?this._chunks.last.end:e;for(let e=n;e<=t;e++){let t=this._transactions.get(e);this._chunks.mergeAtEnd(zk(t),zw)}if(0==this._chunks.length)return;let r=this._chunks.first.start;for(let t=r-1;t>=e;t--){let e=this._transactions.get(t);this._chunks.mergeAtBeginning(zk(e),zw)}}_invalidateTransactionFrom(e){(void 0===this._recreateTransactionsFrom||e<this._recreateTransactionsFrom)&&(this._recreateTransactionsFrom=e)}_createInitialChunk(){if(this.reachedEarliestEntry){if(this._chunks.first?.type==="initial")return;let e=this._transactions.first;if(!e)return;let t=zk(e);t.type="initial",t.id="@initial",t.end=t.start,this._chunks.addToBeginning(t)}}parseTimeId(e){if(0===this._chunks.length)return this.reachedEarliestEntry?"invalid":"loading";let t=e.split("/",3),n=t.shift(),r=t.shift(),i=Number(n);for(let e=this._chunks.lastIdx;e>=this._chunks.firstIdx;e--){let t=this._chunks.get(e);if(t.id===r)return t;if(Date.parse(t.endTimestamp)+36e5<i)return"invalid"}return this.reachedEarliestEntry?"invalid":"loading"}findLastPublishedBefore(e){for(let t=e?e.index-1:this._chunks.lastIdx;t>=this._chunks.firstIdx;t--){let e=this._chunks.get(t);if("publish"===e.type||"initial"===e.type)return e}return this.reachedEarliestEntry?this._chunks.first:"loading"}isLatestChunk(e){return e===this._chunks.last}createTimeId(e){return`${e.endTimestamp.valueOf()}/${e.id}`}lastChunk(){return this._chunks.last}transactionByIndex(e){return this._transactions.has(e)?this._transactions.get(e):null}chunkByTransactionIndex(e,t=0){let n=t;for(;;){let t=this._chunks.get(n);if(!t)throw Error("transaction does not belong in any chunk");if(e>=t.end)n++;else{if(!(e<t.start))return t;n--}}}replayBackwardsBetween(e,t,n){let r=n.draft,i=n.published;for(let n=t;n>=e;n--){let e=this._transactions.get(n);e.draftEffect&&(r=(0,rf.X)(r,e.draftEffect.revert)),e.publishedEffect&&(i=(0,rf.X)(i,e.publishedEffect.revert))}return{draft:r,published:i}}replayBackwardsUntil(e,t){return this.replayBackwardsBetween(e,this._transactions.lastIdx,t)}calculateDiff(e,t,n,r){let i=rf.r.wrap(e.draft,null),a=rf.r.wrap(e.published,null),o=(u=i,p=a,"null"===rf.r.getType(u)?p:u),l=zI(e),s=null;for(let e=n;e<=r;e++){let t=this._chunks.get(e);s||(s=t);for(let e=t.start;e<t.end;e++){let n=this._transactions.get(e),r={chunk:t,transactionIndex:e},o=i,l=a;n.draftEffect&&(i=rf.r.applyPatch(i,n.draftEffect.apply,r)),n.publishedEffect&&(a=rf.r.applyPatch(a,n.publishedEffect.apply,r));let s="null"!==rf.r.getType(o),d="null"!==rf.r.getType(i);"null"===rf.r.getType(a)||d||(a=rf.r.rebaseValue(o,a)),d&&!s&&(i=rf.r.rebaseValue(l,i))}}let d="null"===rf.r.getType(i)?a:i,c=zI(t);var u,p,m=this,h=s;let f=zD(o,l,{fromValue:e=>zz(m,h,e.endMeta),fromMeta:e=>zz(m,h,e)}),g=zD(d,c,{fromValue:e=>zM(m,e.startMeta),fromMeta:e=>zM(m,e)});return(0,r$.g)(f,g)}}function zV(e){return{id:e,hasAttrs:!1,attrs:null,rev:null,events:[],aligned:!1}}function zL(e,t){if(e.hasAttrs=!0,t){if(e.attrs={...t},"string"!=typeof e.attrs._rev)throw Error("snapshot has no _rev");e.rev=e.attrs._rev,delete e.attrs._rev}else e.attrs=null,e.rev=null;e.events=[]}class zF{earliestTransactionId=null;constructor(e){this.timeline=e,this._states={draft:zV(e.draftId),published:zV(e.publishedId)}}appendRemoteSnapshotEvent(e){if("version"===e.version)return;let t=this._states[e.version];if("snapshot"===e.type){this._maybeInvalidateHistory(),zL(t,e.document);return}"remoteMutation"===e.type&&(t.aligned?(this._apply(t,e),this.timeline.addRemoteMutation(e)):t.hasAttrs?t.events.push(e):zL(t,e.head)
2403)}prependHistoryEvent(e){if(!this.acceptsHistory)throw Error("cannot prepend history at this point");for(let t of Object.values(this._states))if(!t.aligned){let n=function(e,t){let n=t.events.findIndex(t=>e.id===t.transactionId);return n>=0?n+1:t.rev?t.rev===e.id?0:-1:0}(e,t);n>=0&&this._alignAtIndex(t,n)}this.timeline.addTranslogEntry(e),this.earliestTransactionId=e.id}didReachEarliestEntry(){for(let e of Object.values(this._states))if(!e.aligned){if(null!==e.attrs)throw Error("unable to find translog entry to align to");this._alignAtIndex(e,0)}this.timeline.didReachEarliestEntry()}get isAligned(){return Object.values(this._states).every(e=>e.aligned)}get acceptsHistory(){return this._isComplete}get currentDocument(){return{draft:this._states.draft.attrs,published:this._states.published.attrs}}_alignAtIndex(e,t){for(let n of e.events.slice(0,t))this._apply(e,n);for(let n of e.events.slice(t))this._apply(e,n),this.timeline.addRemoteMutation(n);e.events=[],e.aligned=!0}get _isComplete(){return Object.values(this._states).every(e=>e.hasAttrs)}_apply(e,t){e.attrs=(0,rf.X)(e.attrs,t.effects.apply),e.rev=t.transactionId}_maybeInvalidateHistory(){if(this._isComplete){for(let e of Object.values(this._states))e.aligned=!1;this.earliestTransactionId=null,this.timeline.reset()}}}class zB{constructor(e,t,n,r){this.timeline=e,this.start=n,this.end=r,this.doc=t}same(e,t){return this.start===e&&this.end===t}endAttributes(){return zN(this.endDocument())}endDocument(){return this._endDocument||(this._endDocument=this.timeline.replayBackwardsUntil(this.end.end,this.doc)),this._endDocument}startAttributes(){return zN(this.startDocument())}startDocument(){if(!this.start)throw Error("start required");return this._startDocument||(this._startDocument=this.timeline.replayBackwardsBetween(this.start.end,this.end.end-1,this.endDocument())),this._startDocument}diff(){if(!this._diff){if(!this.start)throw Error("start required");this._diff=this.timeline.calculateDiff(this.startDocument(),this.endDocument(),this.start.index+1,this.end.index)}return this._diff}}function zN(e){return e.draft||e.published}class zY{version=0;selectionState="inactive";constructor(e){this.timeline=e.timeline,this.client=e.client,this.handler=e.handler,this._aligner=new zF(this.timeline),this.markChange()}_fetchMore=!1;_fetchAtLeast=0;_isRunning=!1;_isSuspended=!1;_didErr=!1;_since=null;_sinceTime=null;_rev=null;_revTime=null;clearRange(){this.setRange(null,null)}setRange(e,t){t!==this._rev&&this.setRevTime(t),e!==this._since&&this.setSinceTime(e);let n=10;if("loading"!==this._sinceTime&&"loading"!==this._revTime&&this._aligner.isAligned)if("invalid"===this._sinceTime||"invalid"===this._revTime)this.selectionState="invalid";else if(this._sinceTime){this.selectionState="range";let e=this._revTime||this.timeline.lastChunk();this._sinceTime.index>e.index?(this._revTime="invalid",this.selectionState="invalid"):this.setReconstruction(this._sinceTime,e)}else this._revTime?(this.selectionState="rev",this.setReconstruction(null,this._revTime)):(this.selectionState="inactive",n=0);else this.selectionState="loading";this._fetchAtLeast=n,this.start()}setLoadMore(e){this._fetchMore=e,this.start()}get sinceTime(){return this._sinceTime&&"object"==typeof this._sinceTime?this._sinceTime:null}get revTime(){return this._revTime&&"object"==typeof this._revTime?this._revTime:null}get isLoading(){return this._isRunning}get realRevChunk(){return this.revTime||this.timeline.lastChunk()}onOlderRevision(){return!!this._rev&&("range"===this.selectionState||"rev"===this.selectionState)}findRangeForNewRev(e){let t=this.timeline.isLatestChunk(e)?null:this.timeline.createTimeId(e);if(!this._since)return[null,t];let n=this.sinceTime;return n&&n.index<e.index?[this._since,t]:["@lastPublished",t]}findRangeForNewSince(e){let t=this.revTime;return t&&e.index<t.index?[this.timeline.createTimeId(e),this._rev]:[this.timeline.createTimeId(e),null]}setRevTime(e){this._rev=e,this._revTime=e?this.timeline.parseTimeId(e):null,"@lastPublished"===this._since&&(this._since=null,this._sinceTime=null)}setSinceTime(e){"@lastPublished"===e?"string"==typeof this._revTime?this._sinceTime=this._revTime:this._sinceTime=this.timeline.findLastPublishedBefore(this._revTime):this._sinceTime=e?this.timeline.parseTimeId(e):null,this._since=e}sinceAttributes(){return this._sinceTime&&this._reconstruction?this._reconstruction.startAttributes():null}displayed(){return this._revTime&&this._reconstruction?this._reconstruction.endAttributes():null}setReconstruction(e,t){this._reconstruction&&this._reconstruction.same(e,t)||(this._reconstruction=new zB(this.timeline,this._aligner.currentDocument,e,t))}currentDiff(){return this._reconstruction?this._reconstruction.diff():null}currentObjectDiff(){let e=this.currentDiff();if(e){if("null"===e.type)return null;if("object"!==e.type)throw Error(`ObjectDiff expected, got ${e.type}`)}return e}handleRemoteMutation(e){this._aligner.appendRemoteSnapshotEvent(e),this.markChange(),this._aligner.acceptsHistory&&this.start()}start(){this._didErr||this._isRunning||(this._isRunning=!0,this.tick().then(()=>{this._isRunning=!1}))}resume(){this._isSuspended=!1}suspend(){this._isSuspended=!0}async tick(){if(!(this._aligner.acceptsHistory&&!this.timeline.reachedEarliestEntry&&("loading"===this.selectionState||this._fetchMore||this.timeline.chunkCount<=this._fetchAtLeast)&&!this._isSuspended)){this._isRunning=!1;return}try{await this.fetchMoreTransactions()}catch(e){this._didErr=!0,this.handler?.(e,this);return}await this.tick()}async fetchMoreTransactions(){let e=this.timeline.publishedId,t=this.timeline.draftId,n=this.client.config(),r="tag=sanity.studio.structure.history&effectFormat=mendoza&excludeContent=true&excludeMutations=true&includeIdentifiedDocumentsOnly=true&reverse=true&limit=50",i=this._aligner.earliestTransactionId;i&&(r+=`&toTransaction=${i}`);let a=this.client.getUrl(`/data/history/${n.dataset}/transactions/${e},${t}?${r}`),o=(await ci(a,n.token)).getReader(),l=0;for(;;){let e=await o.read();if(e.done)break;if("error"in e.value)throw Error(e.value.error.description||e.value.error.type);if(l++,e.value.id!==i){if(this._aligner.earliestTransactionId!==i||!this._aligner.acceptsHistory)return;this._aligner.prependHistoryEvent(e.value),i=this._aligner.earliestTransactionId}}this._aligner.earliestTransactionId===i&&this._aligner.acceptsHistory&&(l<50&&this._aligner.didReachEarliestEntry(),this.markChange())}markChange(){this.timeline.updateChunks(),this.setRevTime(this._rev),this.setSinceTime(this._rev),this.version++,this.handler?.(null,this)}}let zH=Object.create(null),zZ=(e,t,n)=>{let r=ib(t),i=im(t),a="lastRevision"===n;if(!a){let e=zH[`${r}@${n}`];
2403if(e)return e}let o=`/data/history/${e.config().dataset}/documents/${r},${i}?${a?"lastRevision=true":`revision=${n}`}`,l=e.request({url:o,tag:"history-revision"}).then(e=>{let t=e.documents||[],n=t.find(e=>e._id===r);return t.find(e=>e._id===i)||n});return a||(zH[`${r}@${n}`]=l),l},zU=({client:e,documentId:t,documentType:n})=>{let r=new zO({enableTrace:ar,publishedId:t});return new zY({client:e,documentId:t,documentType:n,timeline:r})},zq=async(e,t)=>{let n=Array.isArray(t)?t:[t],r=e.config().dataset,i=`/data/history/${r}/transactions/${n.join(",")}`;return(await e.request({url:i,query:{excludeContent:"true",includeIdentifiedDocumentsOnly:"true"}})).toString("utf8").split(`
2404`).filter(Boolean).map(e=>JSON.parse(e))};function zJ(e,t){if(!e)throw Error("Passed timelineStore is undefined, if your are using the events timeline, call useEvents() instead. If you need to use this hook, opt in by setting the beta.eventsAPI.enabled feature flag to false");return(0,rn.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,null,t)}let zW={chunks:[],diff:null,hasMoreChunks:null,isLoading:!1,isPristine:null,lastNonDeletedRevId:null,onOlderRevision:!1,realRevChunk:null,revTime:null,selectionState:"inactive",sinceAttributes:null,sinceTime:null,timelineDisplayed:null,timelineReady:!1};function zK({documentId:e,documentType:t,onError:n,rev:r,since:i}){let a=z8(),o=(0,s.useRef)(null),l=(0,s.useRef)(zW),c=ee7(a7),u=lE(),p=(0,s.useMemo)(()=>a.getTimelineController({client:c,documentId:e,documentType:t}),[c,e,t,a]),m=(0,s.useMemo)(()=>new J.t(p),[p]);(0,s.useEffect)(()=>(p.setRange(i||null,r||null),m.next(p),p.handler=(e,t)=>{e?m.error(e):setTimeout(()=>{t.setRange(i||null,r||null),m.next(t)},0)},p.resume(),()=>p.suspend()),[r,i,p,m]);let h=(0,s.useMemo)(()=>{let e=u.__internal_serverDocumentActions?.enabled;return"boolean"==typeof e?(0,k.of)(e):(0,k.of)(!0)},[u.__internal_serverDocumentActions?.enabled]);return(0,s.useEffect)(()=>(o.current||(o.current=f1(c,{draftId:`drafts.${e}`,publishedId:e},t,h).subscribe(e=>{p.handleRemoteMutation(e)})),()=>{o.current&&(o.current.unsubscribe(),o.current=null)}),[c,p,e,t,h]),(0,s.useMemo)(()=>({findRangeForRev:e=>p.findRangeForNewRev(e),findRangeForSince:e=>p.findRangeForNewSince(e),loadMore:()=>{p.setLoadMore(!0)},getSnapshot:()=>l.current,subscribe:e=>{let t=m.pipe((0,E.T)(e=>{let t=e.timeline.mapChunks(e=>e),n=t.filter(e=>!["delete","initial"].includes(e.type)),r=!e.timeline.reachedEarliestEntry;r&&t.length>16&&e.setLoadMore(!1);let i=!["invalid","loading"].includes(e.selectionState);return{chunks:t,diff:e.sinceTime?e.currentObjectDiff():null,isLoading:e.isLoading,isPristine:i?0===t.length&&!1===r:null,hasMoreChunks:!e.timeline.reachedEarliestEntry,lastNonDeletedRevId:n?.[0]?.id,onOlderRevision:e.onOlderRevision(),realRevChunk:e.realRevChunk,revTime:e.revTime,selectionState:e.selectionState,sinceAttributes:e.sinceAttributes(),sinceTime:e.sinceTime,timelineDisplayed:e.displayed(),timelineReady:i}}),(0,ei.F)(d),(0,M.W)(e=>(n?.(e),(0,k.of)(zW))),(0,W.M)(e=>{l.current=e}),(0,W.M)(e)).subscribe();return()=>t.unsubscribe()}}),[p,n,m])}let zG=e=>{if("rollCall"===e.type)return{type:"rollCall",userId:e.i,sessionId:e.session};if("state"===e.type){let{sessionId:t,locations:n}=e.m;return{type:"state",userId:e.i,sessionId:t,timestamp:new Date().toISOString(),locations:n}}if("disconnect"===e.type)return{type:"disconnect",userId:e.i,sessionId:e.m.session,timestamp:new Date().toISOString()};throw Error(`Got unknown presence event: ${JSON.stringify(e)}`)},zX=[["nested","first"],["nested","second"],["nestedArray",{_key:"565c867c8dac"},"arrayNo1",{_key:"a645548a8f01"},"arrayNo1",{_key:"1685e372c40f"},"fieldNo0"],["nestedArray",{_key:"565c867c8dac"},"fieldNo0"],["nestedArray",{_key:"565c867c8dac"},"arrayNo19",{_key:"a02e7a93e2a2"},"fieldNo0"],["nestedArray",{_key:"565c867c8dac"},"arrayNo19",{_key:"a02e7a93e2a2"},"fieldNo19"],["address","country"],["address","street"],["customInputWithDefaultPresence","row3","cell3"]],zQ=(0,T.v)(()=>(0,F.O)(0,1e4)).pipe((0,e_.C)(["pqSMwf6hH","pnLYqNfv5","priDVVmy8","p0NFOU0j8","pTDl2jw8d","pHMeQnTse","pDQYzJbyS","pZyoPHKUs","p4Tyi2Be5","pb9vii060","pE8yhOisw","p7Fd2C6Cj","p3exSgYCx","pbIQRYViC","p8GJaTEhN","p27ewL8aM","pYg97z75S","pdLr4quHv","pkJXiDgg6","pkl4UAKcA","pNoExists"]),(0,E.T)((e,t)=>
2404({type:"state",userId:e,sessionId:e+t,timestamp:new Date().toISOString(),locations:[{type:"document",documentId:"presence-debug",lastActiveAt:new Date().toISOString(),path:nB(zX)}]})),(0,Y.t)()),z1="presence_session_id",z2=function(){try{return window.sessionStorage.getItem(z1)}catch{}return null}()||function(e){try{window.sessionStorage.setItem(z1,e)}catch{}return e}((0,e4.Ak)(16)),z5=d6(e=>e.observable.request({url:`/projects/${e.config().projectId}`,tag:"get-org-id",query:{includeMembers:"false",includeFeatures:"false",includeOrganization:"true"}}).pipe((0,E.T)(e=>e.organizationId),(0,eC.u)({delay:3e5}),(0,Y.t)(1),(0,M.W)(()=>(0,k.of)(null))),e=>`${e.config().projectId}-${e.config().dataset}`),z0=[{id:"<system>",displayName:"Sanity",imageUrl:"https://public.sanity.io/logos/favicon-192.png"}];function z7(){let{getClient:e,currentUser:t}=co(),n=d4(),r=e(a7);return(0,s.useMemo)(()=>{let e=n.get({namespace:"userStore",dependencies:[r,t]})||function({client:e,currentUser:t}){let n=e.withConfig({apiVersion:"2021-06-07"}),r=new e6(async e=>{let t=await n.request({uri:`/users/${e.join(",")}`,tag:"users.get"}),r=(Array.isArray(t)?t:[t]).reduce((e,t)=>(t?.id&&(e[t.id]=t),e),{});return e.map(e=>r[e]||null)},{batchScheduleFn:e=>rA(e),maxBatchSize:400}),i=t&&{id:t.id,displayName:t.name,imageUrl:t.profileImage};return r.prime("me",i),i?.id&&r.prime(i.id,i),z0.forEach(e=>r.prime(e.id,e)),{getUser:async e=>{if(!e)return Promise.resolve(null);try{return await r.load(e)}catch(e){if(403===e.statusCode)return Promise.resolve(null);throw e}},getUsers:async e=>(await r.loadMany(e)).filter(e=>iI(e)&&"string"==typeof e.id)}}({client:r,currentUser:t});return n.set({namespace:"userStore",dependencies:[r,t],value:e}),e},[r,t,n])}function z3(){let{getClient:e}=co(),t=e(a7),n=Cl(),r=d4();return(0,s.useMemo)(()=>{let e=r.get({namespace:"grantsStore",dependencies:[t,n]})||function(e){let{client:t}=e,n=t.withConfig({apiVersion:"2021-06-07"}),r="userId"in e?e.userId:e?.currentUser?.id||null,i=(0,T.v)(()=>(0,k.of)(n.config())).pipe((0,z.n)(({projectId:e,dataset:t})=>{if(!e||!t)throw Error("Missing projectId or dataset");return zC(n,e,t)})),a=zg.pipe((0,z.n)(e=>e?(0,k.of)(e):i),(0,eS.H)(1),function(e,t=ef.$){return e=>{let n=null,r=null,i=new O.B,a=i.pipe((0,G.S)((e,t)=>e+t,0),(0,z.n)(i=>0===i?(0,F.O)(1e3,t).pipe((0,W.M)(()=>{n&&(n.unsubscribe(),n=null),r&&(r.unsubscribe(),r=null)})):!n&&i>0?(0,F.O)(0,t).pipe((0,W.M)(()=>{n||(n=e.connect())})):B.t));return(0,eg.v)(()=>(r||(r=a.subscribe()),i.next(1),{unsubscribe:()=>i.next(-1)}),()=>e)}}(0));return{checkDocumentPermission:(e,t)=>a.pipe((0,z.n)(n=>zb(r,n,e,t)),(0,ei.F)(nm))}}({client:t,userId:n?.id||null});return r.set({namespace:"grantsStore",dependencies:[t,n],value:e}),e},[t,n,r])}function z8(){let e,t=(0,o.c)(3),n=ee7(a7),r=d4();return t[0]!==n||t[1]!==r?(e=r.get({namespace:"historyStore",dependencies:[n]})||function({client:e}){return{getDocumentAtRevision:(t,n)=>zZ(e,t,n),getHistory:(t,n)=>((e,t,n={})=>{let r=Array.isArray(t)?t:[t],{time:i,revision:a}=n;if(i&&a)throw Error("getHistory can't handle both time and revision parameters");let o=`/data/history/${e.config().dataset}/documents/${r.join(",")}`;if(a)o=`${o}?revision=${a}`;else{let e=i||new Date().toISOString();o=`${o}?time=${e}`}return e.request({url:o})})(e,t,n),getTransactions:t=>zq(e,t),restore:(t,n,r,i)=>(0,Q.H)(zZ(e,t,r)).pipe((0,ew.Z)(n=>{if(!n)throw Error(`Unable to find document with ID ${t} at revision ${r}`);let i=(0,rw.TS)(n,(e,t)=>(0,_.A_)(t)&&!e.includes(t._ref)?[...e,t._ref]:e,[]).map(e=>`"${e}": defined(*[_id=="${e}"]._id)`).join(",");return e.observable.fetch(`{${i}}`).pipe((0,E.T)(e=>{let t;return t=t=>e[t._ref]?t:void 0,function e(t,n){return Array.isArray(t)?n(t.map(t=>e(t,n)).filter(e=>"u">typeof e)):iI(t)?n(Object.keys(t).reduce((r,i)=>{let a=e(t[i],n);return"u">typeof a&&(r[i]=a),r},{})):n(t)}(n,e=>(0,_.A_)(e)?t(e):e)}))}),(0,E.T)(e=>{let{_updatedAt:t,...r}=e;return{...r,_id:n}}),(0,ew.Z)(n=>{if(i?.useServerDocumentActions){let r={actionType:"sanity.action.document.replaceDraft",publishedId:t,attributes:n};return fh(e,iu(t,{version:ix(t)})).observable.action(i.fromDeleted?[{actionType:"sanity.action.document.create",publishedId:t,attributes:n,ifExists:"fail"},r]:r)}return e.observable.createOrReplace(n,{visibility:"async"})}),(0,E.T)(()=>{})),getTimelineController:zU}}({client:n}),r.set({namespace:"historyStore",dependencies:[n],value:e}),t[0]=n,t[1]=r,t[2]=e):e=t[2],e}function z4(){let e,t=(0,o.c)(3),n=ee7(a7),r=d4();return t[0]!==n||t[1]!==r?(e=r.get({namespace:"documentPreviewStore",dependencies:[n]})||function({client:e}){let t=e.withConfig({apiVersion:"2025-02-19"}),n=t.listen("*",{},{events:["welcome","mutation","reconnect"],includeResult:!1,includePreviousRevision:!1,includeMutations:!1,includeAllVersions:!0,visibility:"query",effectFormat:"mendoza",tag:"preview.global"}).pipe(fi({predicate:e=>"welcome"===e.type||"reconnect"===e.type,resetOnRefCountZero:()=>(0,F.O)(1e4)})).pipe((0,q.p)(e=>"mutation"===e.type||"welcome"===e.type)),r=n.pipe((0,E.T)(e=>"welcome"===e.type?{type:"connected"}:e)),i=function({mutationChannel:e,client:t}){let n=eY(function(e){let n=t.withConfig(e);return DN(function(e){return n.observable.fetch("*[_id in $ids]",{ids:nt(e.flat())},{tag:"preview.observe-document"}).pipe((0,E.T)(t=>e.map(([e])=>t.find(t=>t._id===e))))},100)},e=>e.dataset+e.projectId+e.apiVersion),r={};return function(i,a){let o=a?`${i}-${JSON.stringify(a)}`:i;return o in r||(r[o]=(function(r,i){let a=n({dataset:i?.dataset||t.config().dataset,projectId:i?.projectId||t.config().projectId,apiVersion:i?.apiVersion||t.config().apiVersion});return e.pipe((0,$.H)(e=>"welcome"===e.type?a(r).pipe((0,E.T)(e=>({type:"sync",document:e}))):e.documentId===r?(0,k.of)(e):I.w),(0,G.S)((e,t)=>{if("sync"===t.type)return t.document;if("mutation"===t.type){var n=e,r=t;if(r.previousRev!==n?._rev)return console.warn("Document out of sync, skipping mutation"),n;if(!r.effects)throw Error("Mutation event is missing effects. Is the listener set up with effectFormat=mendoza?");if(!r.effects)throw Error("Mutation event is missing effects. Is the listener set up with effectFormat=mendoza?");let i=cu(n,r.effects.apply,r.previousRev);return i?{...i,_rev:r.resultRev}:void 0}throw Error(`Unexpected event type: "${t.type}"`)},void 0))})(i,a).pipe((0,N.j)(()=>delete r[o]),(0,Y.t)({bufferSize:1,refCount:!0}))),r[o]}}({client:e,mutationChannel:n}
2404),a=kW({observeFields:function(e){let{client:t,invalidationChannel:n}=e;function r(e,t){return function(n){let r=rI(n.reduce((e,[t,n],r)=>{let i=tG(n.join(","),rT).join(".");e[i]||(e[i]={fields:n,ids:[],map:[]});let a=e[i].ids.length;return e[i].ids[a]=t,e[i].map[a]=r,e},{}));return a3(e,t&&t.length>0||r.some(e=>e.ids.some(ic))?oX.apiVersion:void 0).observable.fetch(`[${r.map(D8).join(",")}][0...${r.length}]`,{},{tag:"preview.document-paths",perspective:t}).pipe((0,et.L)({delay:(e,t)=>(0,F.O)(Math.min(3e4,1e3*t))}),(0,E.T)(e=>e.reduce((e,t,n)=>(r[n].map.forEach((i,a)=>{let o=r[n].ids[a],l=t.find(e=>e._id===o);e[i]=l||null}),e),[])))}}let i=new Map,a={},o=eY(function(e){return DN(r(t.withConfig(e),["published"]),10)},e=>e.dataset+e.projectId),l=(0,V.R)(document,"visibilitychange").pipe((0,Z.Z)(0),(0,E.T)(()=>"visible"===document.visibilityState),(0,z.n)(e=>e?(0,F.O)(0,1e4):I.w),(0,es.u)());return function(e,s,d,c){let u=d?`${d.projectId}:${d.dataset}:${e}`:`$current$-${e}-${c?.join("-")||"raw"}`;u in a||(a[u]=[]);let p=a[u];nS(s,e2(p.map(e=>e.fields))).length>0&&p.push(function(e,a,s,d){let c,u=(0,R.h)((0,T.v)(()=>void 0===c?I.w:(0,k.of)(c)),s?l.pipe((0,Z.Z)(0)).pipe((0,z.n)(()=>o(s)(e,a))):function(e,a,o){let{fast:l,slow:s}=function(e){let n=e?.join("-")||"raw";if(i.has(n))return i.get(n);let a={fast:DN(r(t,e),100),slow:DN(r(t,e),1e3)};return i.set(n,a),a}(o),d=o&&o.length>0,c=d?ib(e):e;return n.pipe((0,q.p)(t=>"connected"===t.type||(d?!!ip(e)||o.some(t=>"drafts"===t?id(e):ix(e)===t):t.documentId===e)),(0,z.n)(e=>"connected"===e.type||"query"===e.visibility?l(c,a).pipe((0,ew.Z)(e=>(0,S.x)((0,k.of)(e),null===e?s(c,a):[]))):s(c,a)))}(e,a,d)).pipe((0,W.M)(e=>c=e),(0,Y.t)({refCount:!0,bufferSize:1}));return{id:e,fields:a,changes$:u}}(e,s,d,c));let m=p.filter(e=>e.fields.some(e=>s.includes(e))).map(e=>e.changes$);return(0,eo.z)(m).pipe((0,E.T)(e=>e.filter(Boolean)),(0,q.p)(e=>(function(e,t=e=>e){let n,r;for(let i=0;i<e.length;i++){if(0===i){n=t(e[i]);continue}if(n!==(r=t(e[i])))return!1;n=r}return!0})(e,e=>e._rev)),(0,E.T)(e=>{var t;return 0===e.length?null:(t=e,[...DR,...s].reduce((e,n)=>{var r,i;let a,o=(r=t,i=n,r.some(e=>i in e&&(a=e[i],!0)),a);return void 0!==o&&(e[n]=o),e},{}))}),(0,ei.F)((e,t)=>e===t||!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&s.every(n=>e[n]===t[n])))}}({client:t,invalidationChannel:r})});function o(e,t,n){return a({_type:"reference",_ref:e},["_type"],t,n).pipe((0,E.T)(e=>iI(e)&&"string"==typeof e._type?e._type:void 0),(0,ei.F)())}let l=function(e,n,r={}){let{insert:i="sorted",apiVersion:a}=r,o=`*[${e}]._id`;return a3(t,a).observable.listen(`*[${e}]`,n,{visibility:"transaction",events:["welcome","mutation","reconnect"],includeResult:!1,includeMutations:!1,includeAllVersions:!0,tag:"preview.observe-document-set.listen"}).pipe((0,ew.Z)(e=>"welcome"===e.type?a3(t,a).observable.fetch(o,n,{tag:"preview.observe-document-set.fetch"}).pipe((0,W.M)(e=>{if(!Array.isArray(e))throw Error(`Expected query to return array of documents, but got ${typeof e}`)})).pipe((0,E.T)(e=>({type:"fetch",result:e}))):(0,k.of)(e)),(0,G.S)((e,t)=>{if("reconnect"===t.type)return{documentIds:e?.documentIds||[],...e,status:"reconnecting"};if("fetch"===t.type)return{...e,status:"connected",documentIds:t.result};if("mutation"===t.type){if("update"===t.transition)return e;if("appear"===t.transition){var n,r,a;let o;return{status:"connected",documentIds:(n=e?.documentIds||[],r=t.documentId,o="prepend"===(a=i)?0:"append"===a?n.length:rS(n,r),n.toSpliced(o,0,r))}}if("disappear"===t.transition)return{status:"connected",documentIds:e?.documentIds?e.documentIds.filter(e=>e!==t.documentId):[]}}return e},void 0),(0,ei.F)(),(0,q.p)(e=>void 0!==e))},s=function(e){let{observeDocumentTypeFromId:t,observePaths:n}=e;return function e(r,i,a={}){let{viewOptions:o={},apiConfig:l,perspective:s}=a;if((0,_.P3)(i)){if(!(0,_.I0)(r))return(0,k.of)({snapshot:void 0});let n={projectId:r._projectId,dataset:r._dataset};return t(r._ref,n,s).pipe((0,z.n)(t=>{if(t){let a=i.to.find(e=>e.type===t);if(a)return e(r,a,{apiConfig:n,viewOptions:o,perspective:s})}return(0,k.of)({snapshot:void 0})}))}if((0,_.do)(i))return nl(r)?t(r._ref).pipe((0,z.n)(t=>{if(t){let n=i.to.find(e=>e.name===t);if(n)return e(r,n,{perspective:s})}return(0,k.of)({snapshot:void 0})})):(0,k.of)({snapshot:void 0});let d=DU(i.preview);
2404return d?n(r,d,l,s).pipe((0,E.T)(e=>({type:i,snapshot:e?D0(e,i,o):null}))):(0,k.of)({type:i,snapshot:r&&nl(r)?D2(i,r,o).returnValue:null})}}({observeDocumentTypeFromId:o,observePaths:a}),d=function(e,t){function n(e){return t({_ref:e},[["_rev"],["_system"]]).pipe((0,E.T)(e=>({hasRev:iI(e)&&!!("_rev"in e&&e?._rev),isDeleted:iI(e)&&e._system?.delete===!0})),(0,ei.F)(),(0,z.n)(({hasRev:t,isDeleted:n})=>n?(0,k.of)(DF):t?(0,k.of)(DO):r(e)),DY(e),(0,E.T)(e=>e.value))}let r=DN(function(e){let t=[...new Set(e2(e))];return(0,Q.H)(function(e){let t=[],n=0,r=[];for(let i of e)n+i.length+1>=11164&&(r.push(t),t=[],n=0),n+=i.length+1,t.push(i);return r.includes(t)||r.push(t),r}(t)).pipe((0,ew.Z)(i,10),(0,er.T)(DH,[]),(0,E.T)(n=>e.map(([e])=>n[t.indexOf(e)])))},1);function i(t){return(0,T.v)(()=>{let n={uri:e.getDataUrl("doc",t.join(",")),json:!0,query:{excludeContent:"true"},tag:"preview.documents-availability"};return e.observable.request(n).pipe((0,E.T)(e=>{let n=nR(e.omitted||[],e=>e.id);return t.map(e=>{let t=n[e];if(!t)return DO;if("existence"===t.reason)return DL;if("permission"===t.reason)return DV;throw Error(`Unexpected reason for omission: "${t.reason}"`)})}))})}return function(e,{version:t}={}){let r=im(e),i=ib(e),a=t?iy(e,t):void 0;return(0,eo.z)([n(r),n(i),...a?[n(a)]:[]]).pipe((0,ei.F)(nm),(0,E.T)(([e,t,n])=>({draft:e,published:t,...n?{version:n}:{}})))}}(t,a),c=function(e){let{observeDocumentPairAvailability:t,observePaths:n}=e,r=[["_updatedAt"],["_createdAt"],["_type"]];return function(e,i,{version:a}={}){let{draftId:o,publishedId:l,versionId:s}=iu(e,{version:a});return t(o,{version:a}).pipe((0,z.n)(e=>{if(!e.draft.available&&!e.published.available&&!e.version?.available)return(0,k.of)({id:l,type:null,draft:{availability:e.draft,snapshot:void 0},published:{availability:e.published,snapshot:void 0},...e.version?{version:{availability:e.version,snapshot:void 0}}:{}});let t=[...i,...r];return(0,eo.z)([n({_type:"reference",_ref:o},t),n({_type:"reference",_ref:l},t),...a?[n({_type:"reference",_ref:s},t)]:[]]).pipe((0,E.T)(([t,n,r])=>{let i=iI(r)&&"_type"in r&&r._type||iI(t)&&"_type"in t&&t._type||iI(n)&&"_type"in n&&n._type||null;return{id:l,type:"string"==typeof i?i:null,draft:{availability:e.draft,snapshot:t},published:{availability:e.published,snapshot:n},...e.version?{version:{availability:e.version,snapshot:r}}:{}}}))}))}}({observeDocumentPairAvailability:d,observePaths:a});return{observePaths:a,observeForPreview:s,observeDocumentTypeFromId:o,unstable_observeDocumentIdSet:l,unstable_observeDocument:i,unstable_observeDocuments:e=>(0,eo.z)(e.map(e=>i(e))),unstable_observeDocumentPairAvailability:d,unstable_observePathsDocumentPair:c}}({client:n}),r.set({namespace:"documentPreviewStore",dependencies:[n],value:e}),t[0]=n,t[1]=r,t[2]=e):e=t[2],e}function z6(){let{getClient:e,i18n:t}=co(),n=Cm(),r=ets(),i=d4(),a=z8(),o=z4(),l=lE(),d=(0,s.useMemo)(()=>{let e=l.__internal_serverDocumentActions?.enabled;return"boolean"==typeof e?(0,k.of)(e):(0,k.of)(!0)},[l.__internal_serverDocumentActions?.enabled]),c=(0,e5.Jr)(),u=(0,s.useCallback)(e=>{c.log(zr,{errorName:e.name})},[c]),p=(0,s.useCallback)(e=>{e.latencyMs>1e3&&c.log(zi,{latency:e.latencyMs,shard:e.shard,transactionId:e.transactionId})},[c]);return(0,s.useMemo)(()=>{let s=i.get({namespace:"documentStore",dependencies:[e,o,a,n,t,l]})||function({getClient:e,documentPreviewStore:t,historyStore:n,initialValueTemplates:r,schema:i,i18n:a,serverActionsEnabled:o,extraOptions:l={}}){let s=t.unstable_observeDocumentPairAvailability,d=e(a7),{onReportLatency:c,onSyncErrorRecovery:u}=l,p={client:d,getClient:e,observeDocumentPairAvailability:s,historyStore:n,schema:i,i18n:a,serverActionsEnabled:o,extraOptions:l};return{checkoutPair:e=>fx(d,e,o,{onSyncErrorRecovery:u,onReportLatency:c}),initialValue:(e,n)=>(function(e,t,n,r,i){let a=n.observePaths({_type:"reference",_ref:im(r.documentId)},["_type"]),o=n.observePaths({_type:"reference",_ref:ib(r.documentId)},["_type"]);return(0,R.h)(a.pipe((0,E.T)(e=>({draft:e}))),o.pipe((0,E.T)(e=>({published:e})))).pipe((0,G.S)((e,t)=>({...e,...t}),{}),(0,q.p)(e=>"draft"in e&&"published"in e),(0,E.T)(e=>e.draft||e.published),(0,ei.F)((e,t)=>!!e!=!!t),(0,ej.B)(25)).pipe((0,z.n)(n=>{if(n)return(0,k.of)({type:"success",value:null});if(!r.templateName)return(0,k.of)({isResolving:!1,initialValue:void 0,type:"success"});let a=t.find(e=>e.id===r.templateName);if(!a)return console.warn('Template "%s" not defined, using empty initial value',r.templateName),(0,k.of)({isResolving:!1,initialValue:void 0,type:"success"});let o=(0,Q.H)(g0(e,a,r.templateParams,i)).pipe((0,E.T)(e=>({isResolving:!1,initialValue:e}))).pipe((0,M.W)(e=>(console.group("Failed to resolve initial value"),console.error(e),console.error("Template ID: %s",r.templateName),console.error("Parameters: %o",r.templateParams),console.groupEnd(),(0,k.of)({type:"error",error:e}))));return(0,R.h)((0,k.of)({isResolving:!0}),o).pipe((0,z.n)(({isResolving:e,initialValue:t,resolveError:n})=>n?(0,k.of)({type:"error",message:"Failed to resolve initial value"}):e?(0,k.of)(g6):(0,k.of)({type:"success",value:t})))}),(0,Z.Z)(g6),(0,ei.F)())})(i,r,t,e,n),listenQuery:(e,t,n)=>Ce(d,e,t,n),resolveTypeForDocument:(e,t)=>
2404(function(e,t,n="*"){return n&&"*"!==n?(0,k.of)(n):e.observable.fetch("*[sanity::versionOf($publishedId)][0]._type",{publishedId:ib(t)},{tag:"document.resolve-type"})})(d,e,t),pair:{consistencyStatus:(e,t,n)=>f$(p.client,Ct(e,n),t,o,l),documentEvents:(e,t,n)=>gH(p.client,Ct(e,n),t,o,l),editOperations:(e,t,n)=>gW(p,Ct(e,n),t),editState:(e,t,n)=>fE(p,Ct(e,n),t),operationEvents:(e,t)=>fQ({client:d,historyStore:n,schema:i,serverActionsEnabled:o,extraOptions:l}).pipe((0,q.p)(n=>n.args.idPair.publishedId===e&&n.args.typeName===t),(0,E.T)(e=>{let{operationName:t,idPair:n}=e.args;return"success"===e.type?{type:"success",op:t,id:n.publishedId}:{type:"error",op:t,id:n.publishedId,error:e.error}})),validation:(e,t,n)=>gY(p,Ct(e,n),t)}}}({getClient:e,documentPreviewStore:o,historyStore:a,initialValueTemplates:r,schema:n,i18n:t,serverActionsEnabled:d,extraOptions:{onReportLatency:p,onSyncErrorRecovery:u}});return i.set({namespace:"documentStore",dependencies:[e,o,a,n,t,l],value:s}),s},[i,e,o,a,n,t,l,r,d,p,u])}function z9(){let e,t=(0,o.c)(5),{__internal:n}=co(),{bifur:r}=n,i=d4(),a=z7(),l=function(){let e,t=(0,o.c)(3),{bifur:n}=co().__internal,r=d4();return t[0]!==n||t[1]!==r?(e=r.get({namespace:"connectionStatusStore",dependencies:[n]})||function({bifur:e}){return{connectionStatus$:(0,R.h)(e.heartbeats,og.pipe((0,e_.C)((0,L.$)(Error("The browser went offline"))))).pipe((0,E.T)(e=>({type:"connected",lastHeartbeat:e})),ii((e,t,n)=>{let r=Math.min(24e4,100*Math.pow(2,t)),i=new Date(new Date().getTime()+r),a=(0,F.O)(i),o=!navigator.onLine,l=(({error:e,isOffline:t,attemptNo:n,retryAt:r})=>({type:"error",error:e,attemptNo:n,isOffline:t,retryAt:r}))({error:e,retryAt:i,isOffline:o,attemptNo:t}),s=B.t.pipe((0,ek.Q)(o?of:(0,R.h)(a,of,ox)));return(0,S.x)((0,k.of)(l),s.pipe((0,ey.s)(1)),n)}),(0,Z.Z)(oC))}}({bifur:n}),r.set({namespace:"connectionStatusStore",dependencies:[n],value:e}),t[0]=n,t[1]=r,t[2]=e):e=t[2],e}();return t[0]!==r||t[1]!==l||t[2]!==i||t[3]!==a?(e=i.get({namespace:"presenceStore",dependencies:[r,l,a]})||function(e){let{bifur:t,connectionStatusStore:n,userStore:r}=e,[i,a]=[t.listen("presence").pipe((0,E.T)(zG)).pipe((0,es.u)()),e=>"rollCall"===e.type?t.request("presence_rollcall",{session:z2}):"state"===e.type?t.request("presence_announce",{data:{locations:e.locations,sessionId:z2}}):"disconnect"===e.type?t.request("presence_disconnect",{session:z2}):I.w],o=new J.t([]),l=o.pipe((0,ei.F)()),s=e=>a({type:"state",locations:e}),d=i.pipe((0,q.p)(e=>"rollCall"===e.type),(0,q.p)(e=>e.sessionId!==z2)),c=(0,F.O)(0,3e4),u=(0,T.v)(()=>(0,R.h)(l,d)).pipe((0,z.n)(()=>c),(0,eI.E)(o),(0,E.T)(([,e])=>e),(0,eV.Z)(200),(0,z.n)(e=>s(e)),(0,e_.C)(I.w),(0,es.u)()),p=(0,T.v)(()=>a({type:"rollCall"})).pipe((0,e_.C)(I.w)),m=n.connectionStatus$.pipe((0,E.T)(e=>e.type),(0,q.p)(e=>"connected"===e||"error"===e),(0,ei.F)()),h=zu.pipe((0,E.T)(e=>e.find(e=>e.startsWith("presence="))),(0,E.T)(e=>e?.split("presence=")[1].split(",").map(e=>e.trim())||[])),f=h.pipe((0,q.p)(e=>e.includes("fake_others")),(0,W.M)(()=>{console.log('Faking other users present in the studio. They will hang out in the document with _type: "presence" and _id: "presence-debug"')}),(0,eL.K)(zQ)),g=h.pipe((0,E.T)(e=>e.includes("show_own"))),C=(0,R.h)(p,i).pipe((0,q.p)(e=>"state"===e.type||"disconnect"===e.type)),y=(0,R.h)(C,f).pipe((0,G.S)((e,t)=>"disconnect"===t.type?nL(e,t.sessionId):{...e,[t.sessionId]:{lastActiveAt:t.timestamp,locations:t.locations,sessionId:t.sessionId,userId:t.userId}},{})),x=m.pipe((0,z.n)(e=>"connected"===e?(0,R.h)(y,u):B.t),(0,E.T)(e=>Object.values(e)),(0,z.n)(e=>{let t=nt(e.map(e=>e.userId));return(0,Q.H)(r.getUsers(t)).pipe((0,E.T)(t=>e.map(e=>({user:t.find(t=>t.id===e.userId),session:e})).filter(b)))}),(0,ek.Q)((0,V.R)(window,"beforeunload").pipe((0,z.n)(()=>a({type:"disconnect"})))),(0,Y.t)({refCount:!0,bufferSize:1}));function b(e){return!!(e.user&&e.session)}let v=x.pipe((0,E.T)(e=>{let t=t1(e.map(e=>e.session),e=>e.userId);return Object.keys(t).map(n=>({user:e.find(e=>e.user.id===n)?.user,sessions:t[n]}))}),(0,eI.E)(g),(0,E.T)(([e,t])=>e),(0,E.T)(e=>e.map(e=>({user:e.user,status:"online",lastActiveAt:e.sessions.sort()[0]?.lastActiveAt,locations:e2((e.sessions||[]).map(e=>e.locations||[])).map(e=>({type:e.type,documentId:e.documentId,path:e.path,lastActiveAt:e.lastActiveAt})).reduce((e,t)=>
2404e.concat(t),[])})))),j=(0,eo.z)([x,g]).pipe((0,E.T)(([e,t])=>e.flatMap(e=>(e.session.locations||[]).map(t=>({documentId:t.documentId,presence:{user:e.user,lastActiveAt:e.session.lastActiveAt,path:t.path||[],sessionId:e.session.sessionId,selection:t?.selection}}))).filter(e=>t||e.presence.sessionId!==z2)),(0,Y.t)(1));return{setLocation:e=>{o.next(e)},reportLocations:s,debugPresenceParam$:h,globalPresence$:v,documentPresence:(e,t)=>j.pipe((0,E.T)(n=>n.filter(n=>{var r;return t?.excludeVersions?n.documentId===e:(r=n.documentId,ib(r)===ib(e))}).map(e=>({...e.presence,documentId:e.documentId}))),(0,ei.F)((e,t)=>eN(e,t)))}}({bifur:r,connectionStatusStore:l,userStore:a}),i.set({namespace:"presenceStore",dependencies:[r,l,a],value:e}),t[0]=r,t[1]=l,t[2]=i,t[3]=a,t[4]=e):e=t[4],e}function Me(){let e,t=(0,o.c)(3),n=ee7(a7),r=d4();return t[0]!==n||t[1]!==r?(e=r.get({namespace:"projectStore",dependencies:[n]})||function(e){let{client:t}=e,n=t.config().projectId,r=t.withConfig({apiVersion:"2021-12-15"});return{get:function(){return r.observable.request({url:`/projects/${n}`})},getDatasets:function(){return r.observable.request({url:`/projects/${n}/datasets`})},getOrganizationId:()=>z5(r)}}({client:n}),r.set({namespace:"projectStore",dependencies:[n],value:e}),t[0]=n,t[1]=r,t[2]=e):e=t[2],e}function Mt(){var e;let t,n=(0,o.c)(4),r=d4(),i=lE(),a=ee7(a7);return n[0]!==a||n[1]!==r||n[2]!==i?(t=r.get({dependencies:[i],namespace:"KeyValueStore"})||(e=function({client:e}){let t=function({client:e}){let t=e.withConfig(a7),n=new e6(async e=>{let n=(await t.request({uri:`/users/me/keyvalue/${e.join(",")}`}).catch(t=>(console.error("Error fetching data:",t),Array(e.length).fill(null)))||[]).reduce((e,t)=>(t?.key&&(e[t.key]=t.value),e),{});return e.map(e=>n[e]||null)});return{getKey:e=>n.load(e),setKey:(e,r)=>t.request({method:"PUT",uri:"/users/me/keyvalue",body:[{key:e,value:r}]}).then(e=>{let t=e[0];return n.clear(t.key),n.prime(t.key,t.value),t.value},e=>(console.error("Error setting data:",e),null))}}({client:e}),n=new O.B;return{getKey:e=>(0,S.x)(t.getKey(e),n.pipe((0,q.p)(t=>t.key===e),(0,E.T)(e=>e.value),(0,ei.F)(eN))),setKey:function(e,r){return n.next({type:"optimistic",key:e,value:r}),t.setKey(e,r).then(t=>(n.next({type:"commit",key:e,value:t}),t))}}}({client:a}),{getKey:function(t){return(0,R.h)((0,k.of)(a0.getKey(t)),e.getKey(t).pipe((0,W.M)(e=>{a0.setKey(t,e)}))).pipe((0,ei.F)(eN))},setKey:function(t,n){return a0.setKey(t,n),e.setKey(t,n)}}),r.set({dependencies:[i],namespace:"KeyValueStore",value:t}),n[0]=a,n[1]=r,n[2]=i,n[3]=t):t=n[3],t}function Mn(){let e,t=(0,o.c)(2),n=d4();return t[0]!==n?(e=n.get({dependencies:[],namespace:"RenderingContextStore"})||function(){let e=(0,k.of)(void 0).pipe(function(e=ze){return(0,X.F)((0,z.n)(t=>t?(0,k.of)(t):(0,k.of)(e).pipe((0,ei.F)(),(0,E.T)(e=>new URLSearchParams(e).get("_context")),(0,E.T)(e=>{if(null===e)return;let{mode:t,env:n}=JSON.parse(e),r={name:"core-ui"===t?"coreUi":void 0,metadata:{environment:n}};if(null!==r&&"name"in r&&"coreUi"===r.name&&"metadata"in r&&"object"==typeof r.metadata&&null!==r.metadata&&"environment"in r.metadata&&"string"==typeof r.metadata.environment)return r}),(0,M.W)(e=>(console.warn("Error parsing rendering context:",e),(0,k.of)(void 0))))))}(),(0,E.T)(e=>e??zt),(0,Y.t)(1)),t=e.pipe((0,E.T)(e=>zn[e.name]),(0,Y.t)(1));return{renderingContext:e,capabilities:t}}(),n.set({dependencies:[],namespace:"RenderingContextStore",value:e}),t[0]=n,t[1]=e):e=t[1],e}function Mr(){let e,t,n=(0,o.c)(4),r=d4(),i=Mn();n[0]===Symbol.for("react.memo_cache_sentinel")?(e={},n[0]=e):e=n[0];let a=(0,eH.J)(i.capabilities,e);return n[1]!==a||n[2]!==r?(t=r.get({dependencies:[a],namespace:"ComlinkStore"})||function({capabilities:e}){if(!e.comlink)return{};let t=(0,rE.RM)({name:"dashboard/nodes/sdk",connectTo:"dashboard/channels/sdk"});return t.start(),{node:t}}({capabilities:a}),r.set({dependencies:[a],namespace:"ComlinkStore",value:t}),n[1]=a,n[2]=r,n[3]=t):t=n[3],t}let Mi=[],Ma=(0,k.of)(Mi);function Mo(){return!0}function Ml(e){let t,n=(0,o.c)(3),{value:r,children:i}=e;return n[0]!==i||n[1]!==r?(t=(0,a.jsx)(c.Pc.Provider,{value:r,children:i}),n[0]=i,n[1]=r,n[2]=t):t=n[2],t}function Ms(){let e=(0,s.useContext)(c.Pc);if(null===e)throw Error("useEvents must be used within a EventsProvider");return e}let Md=e=>"createDocumentVersion"===e.type,Mc=e=>"deleteDocumentVersion"===e.type,Mu=e=>"publishDocumentVersion"===e.type,Mp=e=>"unpublishDocument"===e.type,Mm=e=>"scheduleDocumentVersion"===e.type,Mh=e=>"unscheduleDocumentVersion"===e.type,Mf=e=>"deleteDocumentGroup"===e.type,Mg=e=>"editDocumentVersion"===e.type;function MC(e,t){return 3e5>Math.abs(Date.parse(e)-Date.parse(t))}let My=Object.create(null);async function Mx({documentId:e,client:t,toTransaction:n,fromTransaction:r}){let i=`${e}-${n}-${r}`;if(My[i]&&"u">typeof n)return My[i];let a=r!==n,o=await cc(t,e,{tag:"sanity.studio.documents.history",effectFormat:"mendoza",excludeContent:!0,includeIdentifiedDocumentsOnly:!0,limit:50,fromTransaction:r,toTransaction:n});if(a&&(o=o.filter(e=>e.id!==r)),(a?49===o.length:50===o.length)&&(n&&o[o.length-1].id!==n||!n)){let r=await Mx({documentId:e,client:t,toTransaction:n,fromTransaction:o[o.length-1].id});return o.concat(r)}return My[i]=o,o}function Mb(e){let t=!!e,n=e&&Mv(e?.apply),r=e&&Mv(e?.revert);return n?"deleted":r?"created":t?"modified":"noop"}function Mv(e){return 0===e[0]&&null===e[1]}let Mj=e=>({type:"editTransaction",author:e.author,timestamp:e.timestamp,revisionId:e.id});function Mw(e,t,n){let r=e.filter(e=>"modified"===Mb(e.effects[t])).sort((e,t)=>
2404Date.parse(t.timestamp)-Date.parse(e.timestamp)),i=[];for(let e of r){let r=n?{id:e.id,timestamp:e.timestamp,type:"updateLiveDocument",documentId:t,revisionId:e.id,author:e.author,documentVariantType:ik(t)}:{type:"editDocumentVersion",documentId:t,id:e.id,timestamp:e.timestamp,author:e.author,contributors:[e.author],releaseId:ix(t),revisionId:e.id,transactions:[Mj(e)],documentVariantType:ik(t)};if(0===i.length){i.push(r);continue}let a=i[i.length-1];MC(a.timestamp,r.timestamp)?Mg(a)&&(a.transactions.push(Mj(e)),a.contributors.includes(r.author)||a.author===r.author||a.contributors.push(r.author)):i.push(r)}return i}let M_="history-cleared",Mk={events:[],nextCursor:"",loading:!0,error:null},MS=e=>{if(!e)return{};let{_id:t,_rev:n,_createdAt:r,_updatedAt:i,_type:a,...o}=JSON.parse(JSON.stringify(e));return o};function MT(e){let{_rev:t,...n}=e;return n}function MI(e,t,n){let r=e[t];return r?{timestamp:r.timestamp,author:r.author,event:n}:null}function ME(e,t){return t?MI(e,t.transactionIndex+1,t.event):null}function M$(e,t){return t?MI(e,t.transactionIndex,t.event):null}class MA extends Error{constructor(e){super(`Missing since document for revision ${e}`),this.name="MissingSinceDocumentError",this.revisionId=e}}let MD=Object.create(null);function Mz({client:e,documentId:t,revisionId:n}){if(n===M_)return(0,k.of)({document:null,loading:!1,revisionId:n});let r=`${t}@${n}`,i=e.config().dataset;return MD[r]||(MD[r]=e.observable.request({url:`/data/history/${i}/documents/${t}?revision=${n}`,tag:"get-document-revision"}).pipe((0,E.T)(e=>({document:e.documents[0],loading:!1,revisionId:n})),(0,M.W)(e=>(console.error("Error fetching document at revision",e),[{document:null,loading:!1,revisionId:n}])),(0,Z.Z)({document:null,loading:!0,revisionId:n}),(0,Y.t)(1))),MD[r]}let MM={events:[],nextCursor:"",loading:!0,error:null};function MP({documentId:e,documentType:t,rev:n,since:r}){let i=ee7(oX),{state$:a}=lu(),o=lE(),l=(0,s.useMemo)(()=>{let e=o.__internal_serverDocumentActions?.enabled;return"boolean"==typeof e?(0,k.of)(e):(0,k.of)(!0)},[o.__internal_serverDocumentActions?.enabled]),d=!!Cm().get(t)?.liveEdit,c=(0,s.useMemo)(()=>(function({client:e,documentId:t,documentType:n,releases$:r,serverActionsEnabled:i,isLiveEdit:a}){let o=function({client:e,documentId:t}){let n=ik(t),r=new J.t({cursor:null,origin:"initial"}),i="";return{events$:r.pipe((0,z.n)(({cursor:r,origin:i})=>(({limit:r,nextCursor:i})=>{let a=new URLSearchParams({limit:r.toString()});return i&&a.append("nextCursor",i),e.observable.request({url:`/data/history/${e.config().dataset}/events/documents/${t}?${a.toString()}`,tag:"get-document-events"}).pipe((0,E.T)(e=>({events:e.events[t]?.map(e=>{var t,r;let i;return t=e,r=n,i="",Md(t)?i="published"===r?t.revisionId||`publishCreation--${t.timestamp}`:t.versionRevisionId:Mc(t)?i="published"===r?`deleteAt-${t.timestamp}`:t.versionRevisionId:Mu(t)?i="published"===r?t.revisionId:t.versionRevisionId||t.revisionId:Mp(t)?i="published"===r?`unpublishAt-${t.timestamp}`:"":Mm(t)||Mh(t)?i="published"===r?"":t.versionRevisionId:Mf(t)?i=`deleted-${t.timestamp}`:("createLiveDocument"===t.type||"updateLiveDocument"===t.type||Mg(t))&&(i=t.revisionId),{...t,id:i}})||[],nextCursor:e.nextCursor,loading:!1,error:null})))})({nextCursor:r,limit:"reload"===i?10:100}).pipe((0,z.n)(r=>"published"===n||"loadMore"===i?(0,k.of)({...r,origin:i}):(r=>{let i="version"===n?r.find(Md):r.find(e=>"versionRevisionId"in e&&e.versionRevisionId),a=i&&"versionRevisionId"in i&&i.versionRevisionId;return(0,Q.H)(Mx({client:e,documentId:t,fromTransaction:a||"",toTransaction:void 0})).pipe((0,E.T)(e=>{let i=Mw(e,t,!1);if(0===r.length&&e.length>0&&i.length>0){let e=new Date(i[i.length-1].timestamp).getTime()-1;i.unshift({type:"historyCleared",documentId:t,id:M_,timestamp:new Date(e).toISOString(),author:"",documentVariantType:n})}return i}))})(r.events).pipe((0,E.T)(e=>({...r,events:[...e,...r.events],origin:i})))),(0,M.W)(e=>(console.error("Error fetching events",e),[{events:[],nextCursor:"",loading:!1,error:e,origin:i}])),(0,Z.Z)({events:[],nextCursor:"",loading:!0,error:null,origin:i}))),(0,G.S)((e,t)=>({events:Array.from([...e.events,...t.events].reduce((e,t)=>
2404{if(e.has(t.id)){let n=e.get(t.id);return Mg(n)&&!Mg(t)&&e.set(t.id,t),n.type!==t.type&&e.set(`${t.id}-${t.type}`,t),e}return e.set(t.id,t)},new Map).values()),nextCursor:"reload"===t.origin?e.nextCursor:t.nextCursor,loading:t.loading,error:t.error}),Mk),(0,W.M)(e=>{i=e.nextCursor}),(0,Y.t)(1)),reloadEvents:()=>r.next({cursor:null,origin:"reload"}),loadMore:()=>{let e=r.getValue().cursor;i&&e!==i&&r.next({origin:"loadMore",cursor:i})}}}({client:e,documentId:t}),{expandedEvents$:l,handleExpandEvent:s}=function({documentId:e,client:t}){let n=new J.t(new Map);return{handleExpandEvent:async r=>{if(!n.getValue().has(r.id))if((Mu(r)||Mc(r))&&r.versionRevisionId&&r.creationEvent){let i=Mw(await Mx({client:t,documentId:e,fromTransaction:r.creationEvent.versionRevisionId,toTransaction:r.versionRevisionId}),e,!1).map(e=>({...e,parentId:r.id})),a=n.getValue();a.set(r.id,i),n.next(a)}else console.error("This event can't be expanded",r)},expandedEvents$:n.pipe((0,E.T)(e=>Array.from(e.values()).flatMap(e=>e)))}}({client:e,documentId:t}),{remoteEdits$:d,remoteTransactions$:c,subscribe:u}=function({client:e,isLiveEdit:t,documentId:n,documentType:r,serverActionsEnabled:i,onRefetch:a}){let o=new J.t([]),l=o.pipe((0,E.T)(e=>Mw(e,n,t))),s=ik(n),d=e=>{if(!e)return;let n=e.version;if(n!==s)return;if("published"===n&&!t)return void a();let r=Mb({apply:e.effects.apply,revert:e.effects.revert});if("created"===r||"deleted"===r){a(),o.next([]);return}o.next([...o.value,{author:e.author,documentIDs:[],id:e.transactionId,timestamp:e.timestamp.toISOString(),effects:{[e.head._id]:{apply:e.effects.apply,revert:e.effects.revert}}}])},c=f1(e,{draftId:im(n),publishedId:ib(n),...ic(n)?{versionId:n}:{}},r,i).pipe((0,q.p)(e=>"remoteMutation"===e.type));return{remoteTransactions$:o,remoteEdits$:l,subscribe:()=>c.subscribe(d)}}({client:e,documentId:t,documentType:n,isLiveEdit:a,serverActionsEnabled:i,onRefetch:o.reloadEvents}),p=function({releases$:e,events$:t,remoteEdits$:n,expandedEvents$:r,documentId:i}){let a=ik(i);return(0,eo.z)([e,t,n,r]).pipe((0,E.T)(([e,{events:t,nextCursor:n,loading:r,error:i},o,l])=>{let s=function({remoteEdits:e,events:t,expandedEvents:n}){return[...e,...t,...n].sort((e,t)=>Mu(e)&&Mg(t)&&e.versionRevisionId===t.revisionId?-1:Mu(t)&&Mg(e)&&t.versionRevisionId===e.revisionId?1:Date.parse(t.timestamp)-Date.parse(e.timestamp))}({remoteEdits:o,events:t,expandedEvents:l});return"published"===a?{events:s.map(t=>{if(Mu(t)){let n=ix(t.versionId);if(n){let r=cl(n),i=e.releases.get(r);return{...t,release:i||{_id:r}}}}return t}),nextCursor:n,loading:r,error:i}:"draft"===a?{events:function(e){let t=JSON.parse(JSON.stringify(e));return t.forEach((e,n)=>{if(Mu(e)||Mc(e)){e.documentId=e.versionId;for(let r=n;r<t.length;r++){let n=t[r];if(Mg(n)&&(n.parentId=e.id),Md(n)){e.creationEvent=n,n.parentId=e.id;break}}}Mg(e)&&e.parentId===e.id&&e.transactions[1]?.revisionId&&(e.id=e.transactions[1].revisionId)}),t}(s),nextCursor:n,loading:r,error:i}:{events:s.map(e=>Mu(e)?{...e,documentId:e.versionId}:e),nextCursor:n,loading:r,error:i}}),(0,E.T)(e=>{let t;return{...e,events:(t=e.events,t.map(e=>({...e,documentVariantType:a})))}}),(0,E.T)(e=>({...e,events:e.events.reduce((e,t)=>{if("updateLiveDocument"===t.type){let n=e[e.length-1];if(n&&"updateLiveDocument"===n.type&&MC(n.timestamp,t.timestamp)&&n.author===t.author)return e}return e.push(t),e},[])})))}({documentId:t,events$:o.events$,remoteEdits$:d,expandedEvents$:l,releases$:r});return{eventsObservable$:p,getDocumentChanges:(n,r)=>(function({eventsObservable$:e,documentId:t,client:n,to$:r,since$:i,remoteTransactions$:a}){let o=null,l=null,s=[];return(0,eo.z)(r,i,e).pipe((0,z.n)(([e,r,{events:i}])=>{let d,c=e?.document;if(r?.document)d=r?.document;else{let e=i.find(e=>e.id===c?._rev);e&&Md(e)&&c&&(d={_type:c._type,_id:c._id,_rev:c._rev})}return d?a.pipe((0,z.n)(e=>{let r=!c?._rev;return(d._rev===M_?(0,k.of)([]):r&&o===d._rev?(0,k.of)(function(e){let t=new Set;return e.filter(e=>!t.has(e.id)&&(t.add(e.id),!0))}(s.concat(e))):o&&o===d._rev&&l&&l===c?._rev?(0,k.of)(s):(0,Q.H)(Mx({documentId:t,client:n,toTransaction:c?._rev,fromTransaction:d._rev}))).pipe((0,W.M)(e=>{o=d._rev,s=e,c?._rev&&(l=c._rev)}),(0,E.T)(e=>({loading:!1,diff:function({initialDoc:e,documentId:t,transactions:n,events:r=[]}){let i=rf.r.wrap(MT(e),null),a=rf.r.wrap(MT(e),null),o=MT(e);
2404return n.forEach((e,n)=>{let i={transactionIndex:n,event:r.find(t=>!Mg(t)&&"revisionId"in t&&t.revisionId===e.id)},l=e.effects[t];l&&(a=rf.r.applyPatch(a,l.apply,i),o=(0,rf.X)(o,l.apply))}),function({transactions:e,fromValue:t,fromRaw:n,toValue:r,toRaw:i}){let a=zD(t,n,{fromValue:t=>ME(e,t.endMeta),fromMeta:t=>ME(e,t)}),o=zD(r,i,{fromValue:t=>M$(e,t.startMeta),fromMeta:t=>M$(e,t)});return(0,r$.g)(a,o)}({transactions:n,fromValue:i,fromRaw:e,toValue:a,toRaw:o})}({documentId:t,initialDoc:d,transactions:e,events:i}),error:null})))}),(0,M.W)(e=>(console.error(e),(0,k.of)({loading:!1,diff:null,error:e}))),(0,Z.Z)({loading:!0,error:null,diff:d&&c?(0,r$.g)((0,r$.L)(MS(d),null),(0,r$.L)(MS(c),null)):null}),(0,Y.t)(1)):(0,k.of)({loading:!1,diff:null,error:r&&!r.loading&&r.revisionId?new MA(r?.revisionId):null})}))})({client:e,eventsObservable$:p,documentId:t,remoteTransactions$:c,to$:n,since$:r}),handleExpandEvent:s,loadMoreEvents:o.loadMore,reloadEvents:o.reloadEvents,remoteTransactionsListener:u}})({client:i,documentId:e,documentType:t,releases$:a,serverActionsEnabled:l,isLiveEdit:d}),[i,e,t,a,l,d]),{events:u,loading:p,error:m,nextCursor:h}=(0,eH.J)(c.eventsObservable$,MM);(0,s.useEffect)(()=>{let e=c.remoteTransactionsListener();return()=>{e.unsubscribe()}},[c]);let f=(0,s.useMemo)(()=>{if("@lastPublished"===n)return u.find(Mu)?.id||null;if("@lastEdited"===n){let e=u.find(Mg);if(e)return e.revisionId}if(n?.startsWith("@release:")){let e=n.split(":")[1],t=u.find(t=>Mu(t)&&t.releaseId===e);if(t)return t.id;u.length>0&&!p&&c.loadMoreEvents()}if(!n){let[e]=u;if(e&&Mu(e))return e.id}return n},[u,n,c,p]),g=(0,s.useMemo)(()=>f?Mz({client:i,documentId:e,revisionId:f}):(0,k.of)(null),[i,e,f]),C=(0,eH.J)(g,null),y=(0,s.useMemo)(()=>{if(r&&"@lastPublished"!==r)return r;if(!u)return null;if("@lastPublished"===r||!r){let e=u.findIndex(e=>e.id===f),t=u.slice(e+1).find(Mu)?.id;if(t)return t;let n=u.find(Md);if(n)return n.id}if(!f)return u[1]?.id;let e=u.findIndex(e=>e.id===f);return -1===e?null:u[e+1]?.id||null},[u,f,r]),x=(0,s.useMemo)(()=>y?Mz({client:i,documentId:e,revisionId:y}):(0,k.of)(null),[y,i,e]),b=(0,s.useCallback)(()=>c.getDocumentChanges(g,x),[c,g,x]),v=(0,eH.J)(x,null),j=ik(e),w=(0,s.useCallback)(e=>{if(!u)return[null,null];let t=u.findIndex(t=>t.id===e);if(0===t)return"version"===j&&Mu(u[0])?[r||null,e]:[r||null,null];if(!r){let n=u.findIndex(e=>e.id===f);return -1===n||-1===t||t>n?[null,e]:[f||null,e]}let n=u.findIndex(e=>e.id===r);return -1===n||-1===t||n<t||n===t?[null,e]:[r,e]},[u,r,j,f]),_=(0,s.useCallback)(e=>{if(!u)return[null,null];if(!n||!f)return[e,null];let t=u.findIndex(e=>e.id===f),r=u.findIndex(t=>t.id===e);return -1===r||-1===t||r<t||r===t?[e,null]:[e,f]},[u,n,f]);return{events:u,nextCursor:h,loading:p,error:m,revision:C,sinceRevision:v,findRangeForRevision:w,findRangeForSince:_,loadMoreEvents:c.loadMoreEvents,expandEvent:c.handleExpandEvent,getChangesList:b}}let MR={historyCleared:C.ln6,createDocumentVersion:C.Hp_,createLiveDocument:C.Hp_,deleteDocumentGroup:C.ucK,deleteDocumentVersion:C.USm,editDocumentVersion:C.qUP,updateLiveDocument:C.qUP,publishDocumentVersion:C.VQ$,unpublishDocument:C.wvk,scheduleDocumentVersion:C.CTc,unscheduleDocumentVersion:C.GQ2},MO={historyCleared:"orange",createDocumentVersion:"green",createLiveDocument:"blue",updateLiveDocument:"green",editDocumentVersion:"yellow",unpublishDocument:"orange",deleteDocumentVersion:"orange",deleteDocumentGroup:"orange",scheduleDocumentVersion:"cyan",unscheduleDocumentVersion:"cyan",publishDocumentVersion:"green"},MV={published:{createDocumentVersion:"timeline.operation.created",historyCleared:"timeline.operation.history-cleared",publishDocumentVersion:"timeline.operation.published",updateLiveDocument:"timeline.operation.edited-live",editDocumentVersion:"timeline.operation.edited-draft",unpublishDocument:"timeline.operation.unpublished",deleteDocumentVersion:"timeline.operation.draft-discarded",deleteDocumentGroup:"timeline.operation.deleted",scheduleDocumentVersion:"timeline.operation.published",unscheduleDocumentVersion:"timeline.operation.published",createLiveDocument:"timeline.operation.created"},draft:{createDocumentVersion:"timeline.operation.draft-created",historyCleared:"timeline.operation.history-cleared",publishDocumentVersion:"timeline.operation.published",updateLiveDocument:"timeline.operation.edited-live",editDocumentVersion:"timeline.operation.edited-draft",unpublishDocument:"timeline.operation.unpublished",deleteDocumentVersion:"timeline.operation.draft-discarded",deleteDocumentGroup:"timeline.operation.deleted",scheduleDocumentVersion:"timeline.operation.published",unscheduleDocumentVersion:"timeline.operation.published",createLiveDocument:"timeline.operation.created"},version:{createDocumentVersion:"timeline.operation.version-created",historyCleared:"timeline.operation.history-cleared",publishDocumentVersion:"timeline.operation.published",updateLiveDocument:"timeline.operation.edited-live",editDocumentVersion:"timeline.operation.edited-draft",unpublishDocument:"timeline.operation.unpublished",deleteDocumentVersion:"timeline.operation.version-discarded",deleteDocumentGroup:"timeline.operation.deleted",scheduleDocumentVersion:"timeline.operation.published",unscheduleDocumentVersion:"timeline.operation.published",createLiveDocument:"timeline.operation.created"}};function ML(e){let t,n,r=(0,o.c)(9),{maxLength:i,userIds:l,size:s,withTooltip:d}=e,c=void 0===d||d;if(r[0]!==l||r[1]!==c){let e;r[3]!==c?(e=e=>(0,a.jsx)(cz,{user:e,withTooltip:c},e),r[3]=c,r[4]=e):e=r[4],t=l.map(e),r[0]=l,r[1]=c,r[2]=t}else t=r[2];return r[5]!==i||r[6]!==s||r[7]!==t?(n=(0,a.jsx)(u.GE,{maxLength:i,size:s,children:t}),r[5]=i,r[6]=s,r[7]=t,r[8]=n):n=r[8],n}let MF=(0,g.I4)(u.so)(e=>{let t=(0,tZ.JW)(e.theme),n=e.$color;return(0,g.AH)`
2405    --card-icon-color: ${t.color.avatar[n].fg};
2406    background-color: ${t.color.avatar[n].bg};
2407    box-shadow: 0 0 0 1px var(--card-bg-color);
2408
2409    position: absolute;
2410    width: ${t.avatar.sizes[0].size}px;
2411    height: ${t.avatar.sizes[0].size}px;
2412    right: -3px;
2413    bottom: -3px;
2414    border-radius: 50%;
2415  `}),MB={minimal:!0,useTemporalPhrase:!0},MN=(0,g.I4)(p.EA)(e=>{let t=(0,tZ.JW)(e.theme);return(0,g.AH)`
2416    border-radius: 50%;
2417    width: ${t.avatar.sizes[1].size}px;
2418    height: ${t.avatar.sizes[1].size}px;
2419  `}),MY=(0,g.I4)(p.EA)(e=>{let t=(0,tZ.JW)(e.theme);return(0,g.AH)`
2420    width: 6ch;
2421    height: ${t.font.text.sizes[0].lineHeight}px;
2422  `}),MH=e=>{let t,n,r,i=(0,o.c)(10),{userId:l}=e,[s,d]=Co(l);return i[0]!==d||i[1]!==s?(t=(0,a.jsx)(u.az,{children:d||!s?(0,a.jsx)(MN,{animated:!0}):(0,a.jsx)(cz,{user:s})}),i[0]=d,i[1]=s,i[2]=t):t=i[2],i[3]!==d||i[4]!==s?(n=(0,a.jsx)(u.az,{children:d||!s?.displayName?(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(MY,{animated:!0})}):(0,a.jsx)(u.EY,{muted:!0,size:1,children:s.displayName})}),i[3]=d,i[4]=s,i[5]=n):n=i[5],i[6]!==t||i[7]!==n||i[8]!==l?(r=(0,a.jsxs)(u.so,{align:"center",gap:2,padding:1,children:[t,n]}
2422,l),i[6]=t,i[7]=n,i[8]=l,i[9]=r):r=i[9],r},MZ=e=>{let t,n,r,i,l=(0,o.c)(9),{collaborators:s}=e,{t:d}=iJ("studio");return l[0]!==d?(t=d("timeline.changes.title"),l[0]=d,l[1]=t):t=l[1],l[2]!==t?(n=(0,a.jsx)(u.az,{padding:1,paddingBottom:2,children:(0,a.jsx)(u.EY,{size:1,weight:"medium",children:t})}),l[2]=t,l[3]=n):n=l[3],l[4]!==s?(r=s.map(Mq),l[4]=s,l[5]=r):r=l[5],l[6]!==n||l[7]!==r?(i=(0,a.jsxs)(u.BJ,{paddingBottom:1,children:[n,r]}),l[6]=n,l[7]=r,l[8]=i):i=l[8],i};function MU(e){let t,n,r,i,l,s,d,c,p,m,h,f,g,C,x,b,v,j,w,_,k,S,T=(0,o.c)(55),{event:I,showChangesBy:E}=e,$=void 0===E?"tooltip":E,{t:A}=iJ("studio"),{type:D,timestamp:z,documentVariantType:M}=I,P=MR[D];T[0]!==I?(t="contributors"in I&&I.contributors||[],T[0]=I,T[1]=t):t=T[1];let R=t;T[2]===Symbol.for("react.memo_cache_sentinel")?(n={dateStyle:"medium",timeStyle:"short"},T[2]=n):n=T[2];let O=cO(n);T[3]!==z?(r=new Date(z),T[3]=z,T[4]=r):r=T[4];let V=ck(r||"",MB);if(T[5]!==O||T[6]!==z){let e=new Date(z);l=O.format(e),T[5]=O,T[6]=z,T[7]=l}else l=T[7];i=l,T[8]!==I?(s=Mg(I)?I.contributors:[I.author],T[8]=I,T[9]=s):s=T[9];let L=s;T[10]===Symbol.for("react.memo_cache_sentinel")?(d={position:"relative"},T[10]=d):d=T[10],T[11]!==L?(c=L.filter(Boolean),T[11]=L,T[12]=c):c=T[12],T[13]!==c?(p=(0,a.jsx)(ML,{maxLength:3,userIds:c,size:2}),T[13]=c,T[14]=p):p=T[14];let F=MO[D];T[15]!==P?(m=P&&(0,a.jsx)(P,{}),T[15]=P,T[16]=m):m=T[16],T[17]!==m?(h=(0,a.jsx)(u.EY,{size:0,children:m}),T[17]=m,T[18]=h):h=T[18],T[19]!==F||T[20]!==h?(f=(0,a.jsx)(MF,{align:"center",justify:"center",$color:F,children:h}),T[19]=F,T[20]=h,T[21]=f):f=T[21],T[22]!==p||T[23]!==f?(g=(0,a.jsxs)("div",{style:d,children:[p,f]}),T[22]=p,T[23]=f,T[24]=g):g=T[24];let B=MV[M][D];return T[25]!==A||T[26]!==B?(C=A(B),T[25]=A,T[26]=B,T[27]=C):C=T[27],T[28]!==M||T[29]!==I||T[30]!==A?(x=Mu(I)&&"published"===M&&(0,a.jsxs)(a.Fragment,{children:[" ",I.release?(0,a.jsx)(yq,{$tone:lC(I.release)?uj(I.release):"default",children:I.release.metadata?.title||A("release.placeholder-untitled-release")}):(0,a.jsx)(yq,{$tone:"caution",children:A("changes.versions.draft")})]}),T[28]=M,T[29]=I,T[30]=A,T[31]=x):x=T[31],T[32]!==C||T[33]!==x?(b=(0,a.jsxs)(u.EY,{size:1,weight:"medium",children:[C,x]}),T[32]=C,T[33]=x,T[34]=b):b=T[34],T[35]!==i||T[36]!==z||T[37]!==V?(v=(0,a.jsx)(u.EY,{as:"time",size:1,muted:!0,dateTime:z,title:i,children:V}),T[35]=i,T[36]=z,T[37]=V,T[38]=v):v=T[38],T[39]!==b||T[40]!==v?(j=(0,a.jsxs)(u.BJ,{space:2,children:[b,v]}),T[39]=b,T[40]=v,T[41]=j):j=T[41],T[42]!==R||T[43]!==$?(w=R.length>0&&"tooltip"==$&&(0,a.jsx)(u.so,{flex:1,justify:"flex-end",align:"center",children:(0,a.jsx)(y.m_,{placement:"top",content:(0,a.jsx)(MZ,{collaborators:R}),portal:!0,children:(0,a.jsx)(u.az,{paddingLeft:2,paddingY:2,children:(0,a.jsx)(ML,{maxLength:3,userIds:R,size:0,withTooltip:!1})})})}),T[42]=R,T[43]=$,T[44]=w):w=T[44],T[45]!==g||T[46]!==j||T[47]!==w?(_=(0,a.jsxs)(u.so,{align:"center",gap:3,children:[g,j,w]}),T[45]=g,T[46]=j,T[47]=w,T[48]=_):_=T[48],T[49]!==R||T[50]!==$?(k=R.length>0&&"inline"===$&&(0,a.jsx)(u.az,{paddingTop:2,children:(0,a.jsx)(MZ,{collaborators:R})}),T[49]=R,T[50]=$,T[51]=k):k=T[51],T[52]!==_||T[53]!==k?(S=(0,a.jsxs)(a.Fragment,{children:[_,k]}),T[52]=_,T[53]=k,T[54]=S):S=T[54],S}function Mq(e){return(0,a.jsx)(MH,{userId:e},e)}function MJ(e){let t,n,r,i,l,s,d,c=(0,o.c)(16);if(!("diff"in e)){let t;return c[0]!==e?(t=(0,a.jsx)(MW,{...e}),c[0]=e,c[1]=t):t=c[1],t}c[2]!==e?({diff:t,path:r,...n}=e,c[2]=e,c[3]=t,c[4]=n,c[5]=r):(t=c[3],n=c[4],r=c[5]),c[6]!==r?(i=void 0===r?[]:r,c[6]=r,c[7]=i):i=c[7];let u=i;c[8]!==t||c[9]!==u?(l=aJ(t,u),c[8]=t,c[9]=u,c[10]=l):l=c[10];let p=l;return c[11]!==p?(s=p?[p]:[],c[11]=p,c[12]=s):s=c[12],c[13]!==n||c[14]!==s?(d=(0,a.jsx)(MW,{...n,annotations:s}),c[13]=n,c[14]=s,c[15]=d):d=c[15],d}function MW(e){let t,n,r,i,l,s,d,c,p,m,h,f=(0,o.c)(22);f[0]!==e?({annotations:t,children:n,description:r,...i}=e,f[0]=e,f[1]=t,f[2]=n,f[3]=r,f[4]=i):(t=f[1],n=f[2],r=f[3],i=f[4]);let{t:g}=iJ();if(!t)return n;f[5]===Symbol.for("react.memo_cache_sentinel")?(l={minWidth:"240px"},f[5]=l):l=f[5],f[6]!==r||f[7]!==g?(s=r||g("changes.changed-label"),f[6]=r,f[7]=g,f[8]=s):s=f[8],f[9]!==s?(d=(0,a.jsx)(u.EY,{muted:!0,size:1,weight:"medium",children:s}),f[9]=s,f[10]=d):d=f[10],f[11]!==t?(c=t.map(MK),f[11]=t,f[12]=c):c=f[12],f[13]!==c?(p=(0,a.jsx)(u.BJ,{space:2,children:c}),f[13]=c,f[14]=p):p=f[14],f[15]!==d||f[16]!==p?(m=(0,a.jsxs)(u.BJ,{space:2,style:l,paddingTop:1,children:[d,p]}),f[15]=d,f[16]=p,f[17]=m):m=f[17];let C=m;return f[18]!==n||f[19]!==C||f[20]!==i?(h=(0,a.jsx)(enh,{zOffset:"paneFooter",children:(0,a.jsx)(y.m_,{content:C,portal:!0,...i,children:n})}),f[18]=n,f[19]=C,f[20]=i,f[21]=h):h=f[21],h}function MK(e,t){return(0,a.jsx)(MG,{annotation:e},t)}function MG(e){let t,n,r=(0,o.c)(9),{annotation:i}=e,{author:l,timestamp:s}=i,[d]=Co(l),c=a2(i);r[0]===Symbol.for("react.memo_cache_sentinel")?(t={minimal:!0},r[0]=t):t=r[0];let p=ck(s,t),{t:m}=iJ();return r[1]!==i.event||r[2]!==l||r[3]!==c||r[4]!==m||r[5]!==p||r[6]!==s||r[7]!==d?(n=(0,a.jsx)(a.Fragment,{children:i.event?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.Zp,{borderBottom:!0,marginBottom:2}),(0,a.jsx)(MU,{event:i.event,showChangesBy:"inline"})]}):(0,a.jsxs)(u.cV,{space:2,children:[(0,a.jsx)(u.so,{align:"center",paddingRight:3,style:{backgroundColor:c.background,color:c.text,borderRadius:"calc(23px / 2)"},children:l&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(cz,{user:l}),(0,a.jsx)(u.cV,{paddingLeft:2,children:(0,a.jsx)(u.EY,{muted:!0,size:1,style:{color:c.text},children:d?d.displayName:m("changes.loading-author")})})]})}),(0,a.jsx)(u.EY,{as:"time",muted:!0,size:1,dateTime:s,children:p})]})}),r[1]=i.event,r[2]=l,r[3]=c,r[4]=m,r[5]=p,r[6]=s,r[7]=d,r[8]=n):n=r[8],n}let MX=(0,g.I4)(u.Zp)`
2423  --diff-card-radius: ${({theme:e})=>(0,u.D0)(e.sanity.radius[2])};
2424  --diff-card-bg-color: ${({theme:e})=>e.sanity.color.card.enabled.bg};
2425
2426  max-width: 100%;
2427  position: relative;
2428  border-radius: var(--diff-card-radius);
2429  background-color: ${({$annotationColor:e})=>e.backgroundColor};
2430  color: ${({$annotationColor:e})=>e.color};
2431
2432  &:not(del) {
2433    text-decoration: none;
2434  }
2435
2436  &[data-hover] {
2437    &::after {
2438      content: '';
2439      display: block;
2440      position: absolute;
2441      left: 0;
2442      right: 0;
2443      bottom: 0;
2444    }
2445
2446    &:hover {
2447      border-bottom-left-radius: 0;
2448      border-bottom-right-radius: 0;
2449
2450      &::after {
2451        bottom: -3px;
2452        border-top: 1px solid var(---diff-card-bg-color);
2453        border-bottom: 2px solid currentColor;
2454        border-bottom-left-radius: var(--diff-card-radius);
2455        border-bottom-right-radius: var(--diff-card-radius);
2456      }
2457    }
2458
2459    [data-from-to-layout]:hover & {
2460      border-bottom-left-radius: 0;
2461      border-bottom-right-radius: 0;
2462
2463      &::after {
2464        bottom: -3px;
2465        border-top: 1px solid var(---diff-card-bg-color);
2466        border-bottom: 2px solid currentColor;
2467        border-bottom-left-radius: var(--diff-card-radius);
2468        border-bottom-right-radius: var(--diff-card-radius);
2469      }
2470    }
2471  }
2472`,MQ=[],M1=(0,s.forwardRef)(function(e,t){let n,r,i,l,s,d,c,u,p,m,h,f,g,C,y,x=(0,o.c)(35);x[0]!==e?({annotation:n,as:c,children:r,className:i,diff:l,disableHoverEffect:s,path:u,style:p,tooltip:m,...d}=e,x[0]=e,x[1]=n,x[2]=r,x[3]=i,x[4]=l,x[5]=s,x[6]=d,x[7]=c,x[8]=u,x[9]=p,x[10]=m):(n=x[1],r=x[2],i=x[3],l=x[4],s=x[5],d=x[6],c=x[7],u=x[8],p=x[9],m=x[10]);let b=void 0===c?"div":c,v=void 0===u?MQ:u;x[11]!==p?(h=void 0===p?{}:p,x[11]=p,x[12]=h):h=x[12];let j=h;x[13]!==n||x[14]!==l||x[15]!==v?(g=n||aJ(l,v),x[13]=n,x[14]=l,x[15]=v,x[16]=g):g=x[16];let w=a2(f=g),_=s||!f?void 0:"";x[17]!==w.background||x[18]!==w.text?(C={backgroundColor:w.background,color:w.text},x[17]=w.background,x[18]=w.text,x[19]=C):C=x[19],x[20]!==b||x[21]!==r||x[22]!==i||x[23]!==t||x[24]!==d||x[25]!==j||x[26]!==_||x[27]!==C?(y=(0,a.jsx)(MX,{...d,as:b,className:i,"data-hover":_,"data-ui":"diff-card",ref:t,radius:1,$annotationColor:C,style:j,children:r}),x[20]=b,x[21]=r,x[22]=i,x[23]=t,x[24]=d,x[25]=j,x[26]=_,x[27]=C,x[28]=y):y=x[28];let k=y;if(m&&f){let e,t;x[29]!==f?(e=[f],x[29]=f,x[30]=e):e=x[30];let n=m&&"object"==typeof m&&m.description;return x[31]!==k||x[32]!==n||x[33]!==e?(t=(0,a.jsx)(MJ,{annotations:e,description:n,children:k}),x[31]=k,x[32]=n,x[33]=e,x[34]=t):t=x[34],t}return k}),M2=g.I4.div`
2473  border-radius: ${({theme:e})=>(0,u.D0)(e.sanity.radius[2])};
2474  padding: ${({theme:e})=>(0,u.D0)(e.sanity.space[1])};
2475`,M5=(0,g.I4)(u.EY)`
2476  &:not([hidden]) {
2477    color: inherit;
2478  }
2479`;function M0(e){let t,n=(0,o.c)(15),{change:r,segment:i}=e;if("string"==typeof i){let e;return n[0]!==i?(e=(0,a.jsx)(u.az,{children:(0,a.jsx)(u.EY,{title:i,size:1,weight:"medium",textOverflow:"ellipsis",children:i})}),n[0]=i,n[1]=e):e=n[1],e}let{hasMoved:l,fromIndex:s,toIndex:d,annotation:c}=i,p=typeof d>"u";if(typeof s>"u"){let e;return n[2]!==c||n[3]!==r||n[4]!==d?(e=(0,a.jsx)(M7,{annotation:c,change:r,toIndex:d}),n[2]=c,n[3]=r,n[4]=d,n[5]=e):e=n[5],e}if(p){let e;return n[6]!==c||n[7]!==s?(e=(0,a.jsx)(M3,{annotation:c,fromIndex:s}),n[6]=c,n[7]=s,n[8]=e):e=n[8],e}if(l&&"u">typeof d&&"u">typeof s){let e;return n[9]!==c||n[10]!==s||n[11]!==d?(e=(0,a.jsx)(M8,{annotation:c,fromIndex:s,toIndex:d}),n[9]=c,n[10]=s,n[11]=d,n[12]=e):e=n[12],e}let m=(d||0)+1;return n[13]!==m?(t=(0,a.jsx)(u.az,{padding:1,children:(0,a.jsxs)(u.EY,{size:1,weight:"medium",children:["#",m]})}),n[13]=m,n[14]=t):t=n[14],t}function M7(e){let t,n,r,i,l=(0,o.c)(18),{annotation:s,change:d,toIndex:c}=e,{t:p}=iJ(),m=(void 0===c?0:c)+1;l[0]!==m||l[1]!==p?(t=p("changes.array.item-added-in-position",{position:m}),l[0]=m,l[1]=p,l[2]=t):t=l[2];let h=t;l[3]!==m?(n=(0,a.jsxs)(a.Fragment,{children:["#",m]}),l[3]=m,l[4]=n):n=l[4];let f=n;l[5]!==d?(r=d?.diff?aJ(d.diff,[]):void 0,l[5]=d,l[6]=r):r=l[6];let g=r||s;if(g){let e,t,n,r;return l[7]!==h?(e={description:h},l[7]=h,l[8]=e):e=l[8],l[9]===Symbol.for("react.memo_cache_sentinel")?(t={textDecoration:"none"},l[9]=t):t=l[9],l[10]!==f?(n=(0,a.jsx)(M5,{size:1,weight:"medium",forwardedAs:"ins",style:t,children:f}),l[10]=f,l[11]=n):n=l[11],l[12]!==g||l[13]!==e||l[14]!==n?(r=(0,a.jsx)(M1,{annotation:g,tooltip:e,as:M2,children:n}),l[12]=g,l[13]=e,l[14]=n,l[15]=r):r=l[15],r}return l[16]!==f?(i=(0,a.jsx)(u.EY,{size:1,weight:"medium",children:f}),l[16]=f,l[17]=i):i=l[17],i}function M3(e){let t,n,r,i,l=(0,o.c)(11),{annotation:s,fromIndex:d}=e,{t:c}=iJ(),u=(void 0===d?0:d)+1;l[0]!==u||l[1]!==c?(t=c("changes.array.item-removed-from-position",{position:u}),l[0]=u,l[1]=c,l[2]=t):t=l[2];let p=t,m=s||null;return l[3]!==p?(n={description:p},l[3]=p,l[4]=n):n=l[4],l[5]!==u?(r=(0,a.jsxs)(M5,{size:1,weight:"medium",forwardedAs:"del",children:["#",u]}),l[5]=u,l[6]=r):r=l[6],l[7]!==m||l[8]!==n||l[9]!==r?(i=(0,a.jsx)(M1,{annotation:m,as:M2,tooltip:n,children:r}),l[7]=m,l[8]=n,l[9]=r,l[10]=i):i=l[10],i}function M8(e){let t,n,r,i,l,s,d,c=(0,o.c)(19),{annotation:p,fromIndex:m,toIndex:h}=e,{t:f}=iJ(),g=h-m,C=g<0?"↑":"↓";c[0]!==g||c[1]!==f?(t=f("changes.array.item-moved",{count:Math.abs(g),context:g<0?"up":"down"}),c[0]=g,c[1]=f,c[2]=t):t=c[2];let y=t,x=h+1;return c[3]!==x?(n=(0,a.jsx)(u.az,{padding:1,children:(0,a.jsxs)(M5,{size:1,weight:"medium",children:["#",x]})}),c[3]=x,c[4]=n):n=c[4],c[5]!==y?(r={description:y},c[5]=y,c[6]=r):r=c[6],c[7]!==g?(i=Math.abs(g),c[7]=g,c[8]=i):i=c[8],c[9]!==C||c[10]!==i?(l=(0,a.jsxs)(M5,{size:1,weight:"medium",children:[C,i]}),c[9]=C,c[10]=i,c[11]=l):l=c[11],c[12]!==p||c[13]!==r||c[14]!==l?(s=(0,a.jsx)(M1,{annotation:p,as:M2,tooltip:r,children:l}),c[12]=p,c[13]=r,c[14]=l,c[15]=s):s=c[15],c[16]!==n||c[17]!==s?(d=(0,a.jsxs)(a.Fragment,{children:[n,s]}),c[16]=n,c[17]=s,c[18]=d):d=c[18],d}function M4(e){let t,n,r,i=(0,o.c)(8),{change:l,titlePath:s}=e;if(i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(C.vKP,{})}),i[0]=t):t=i[0],i[1]!==l||i[2]!==s){let e;i[4]!==l?(e=(e,t)=>"string"==typeof e||!l||l.showIndex?(0,a.jsx)(M0,{change:l,segment:e},t):null,i[4]=l,i[5]=e):e=i[5],n=s.map(e),i[1]=l,i[2]=s,i[3]=n}else n=i[3];return i[6]!==n?(r=(0,a.jsx)(p.BI,{maxLength:4,separator:t,children:n}),i[6]=n,i[7]=r):r=i[7],r}let M6=e=>{let t,n=(0,o.c)(5),{checkProperty:r,checkPropertyKey:i,document:a,parent:l,value:d}=e,c=iY(d),u=Cl();return n[0]!==u||n[1]!==a||n[2]!==l||n[3]!==c?(t={currentUser:u,document:a,parent:l,value:c},n[0]=u,n[1]=a,n[2]=l,n[3]=c,n[4]=t):t=n[4],function(e,t,n){let{currentUser:r,document:i,parent:a,value:o}=n;return(0,s.useMemo)(()=>{var n;let l=!1;if("boolean"==typeof e||void 0===e)return e||!1;try{l=e({document:i,parent:a,value:o,currentUser:r})}catch(e){return console.error(`An error occurred while running the callback from \`${t}\`: ${e.message}`),!1}return iI(n=l)&&"function"==typeof n?.then?(console.warn(`The \`${t}\` option is either a promise or a promise returning function. Async callbacks for \`${t}\` option is not currently supported.`),!1):(typeof l>"u"&&console.warn(`The \`${t}\` option is or returned \`undefined\`. \`${t}\` should return a boolean.`),l)},[e,i,a,o,r,t])}(void 0!==r&&r,i,t)};function M9(e,t){var n;let r=(0,_.Kk)(t)?t._type:Array.isArray(n=t)?"array":null===n?"null":typeof n;return e.of.find(e=>e.name===r)||(1===e.of.length?e.of[0]:void 0)}let Pe=[["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""]],Pt=[["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""],["",""]],Pn=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],Pr=Pt.map(e=>e[0]).concat(Pe.map(e=>e[0])),Pi=Pt.map(e=>e[1]).concat(Pe.map(e=>e[1])),Pa=Pr.concat(Pi).concat(Pn).concat("").concat("⁠"),Po=RegExp(`${Pa.join("|")}`,"g"),Pl=RegExp(`${Pa.join("|")}|
2480`,"g");function Ps(e){return"object"===e.jsonType&&"block"===e.name}function Pd(e,t){return e.fields.children.items.filter(e=>e.diff.isChanged&&(e.diff.toValue===t||e.diff.fromValue===t)).map(e=>e.diff).map(e=>e)[0]}function Pc(e,t){let n=e.find(e=>"children"===e.name);return n&&n.type&&"array"===n.type.jsonType&&n.type.of.find(e=>e.name===t._type)||void 0}function Pu(e){return e.decorators?t2(e.decorators,["value"],["asc"]):[]}function Pp(e,t){return Pu(t).some(t=>t.value===e)}function Pm(e,t,n,r,i){return t?t.children.map(t=>{let a=(0,_.bn)(t)?t.text?.replace(Po,""):"";if((0,_.bn)(t)){let i=Pf(e,t)?.fields.text;i&&i.toValue===t.text&&"string"===i.type&&"unchanged"!==i.action&&(a=i.segments.filter(e=>"removed"!==e.action).map(e=>
2480e.text.replace(Po,"")).join("⁠")),t.marks&&t.marks.forEach(e=>{n[e]?a=`${n[e][0]}${a}${n[e][1]}`:r[e]&&(a=`${r[e][0]}${a}${r[e][1]}`)})}else a=i[t._key];return`\uF0D0${a}`}).join(""):""}function Ph(e){let t=e.toValue?e.toValue.children.filter(e=>"span"!==e._type):[];return(e.fromValue?e.fromValue.children.filter(e=>"span"!==e._type):[]).forEach(e=>{t.some(t=>e._key===t._key)||t.push(e)}),t2(t,["_key"],["asc"])}function Pf(e,t){let n=e.fields.children&&"unchanged"!==e.fields.children.action&&"array"===e.fields.children.type&&e.fields.children.items.find(e=>e.diff&&"object"===e.diff.type&&("removed"===e.diff.action?e.diff.fromValue&&e.diff.fromValue._key===t._key:(e.diff.toValue&&e.diff.toValue._key)===t._key));if(n)return n.diff}function Pg(e){return e&&eN(Object.keys(e),["_key","_type"])||!1}function PC(e){let t=[...e.toValue&&e.toValue.markDefs?e.toValue.markDefs:[]];return(e.fromValue&&e.fromValue.markDefs?e.fromValue.markDefs:[]).forEach(e=>{t.some(t=>e._key===t._key)||t.push(e)}),t2(t,["_key"],["asc"])}function Py(e){let t=typeof e;if("object"===t){if(null===e)return"null";if(Array.isArray(e))return"array";if(e instanceof Object&&"Object"!==e.constructor.name)return e.constructor.name}return t}function Px(e,t){let{jsonType:n}=t,r=Array.isArray(e)?"array":typeof e;if(null!==e&&"undefined"!==r){var i;if(r!==n)return{messageKey:"changes.error.incorrect-type-message",value:e,expectedType:n,actualType:Py(e)};if("object"===t.jsonType&&null!==(i=e)&&!Array.isArray(i)&&"object"==typeof i)for(let n of t.fields){let t=Px(e[n.name],n.type);if(t)return t}}}function Pb(e){return"field"===e.type}let Pv=[];function Pj(e){let t,n,r,i,l=(0,o.c)(11),{checked:s,color:d}=e,c=d?.background;return l[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)("rect",{x:"0",y:"0",width:"17",height:"17",rx:"2.5"}),l[0]=t):t=l[0],l[1]!==s||l[2]!==d?.text?(n=typeof s>"u"&&(0,a.jsx)("path",{d:"M4.07996 8.5H12.92",stroke:d?.text,strokeWidth:"2"}),l[1]=s,l[2]=d?.text,l[3]=n):n=l[3],l[4]!==s||l[5]!==d?.text?(r=s&&(0,a.jsx)("path",{d:"M3.5 8L7 11.5L13.5 5",stroke:d?.text,strokeWidth:"2"}),l[4]=s,l[5]=d?.text,l[6]=r):r=l[6],l[7]!==c||l[8]!==n||l[9]!==r?(i=(0,a.jsxs)("svg",{width:"17",height:"17",viewBox:"0 0 17 17",xmlns:"http://www.w3.org/2000/svg",fill:c,children:[t,n,r]}),l[7]=c,l[8]=n,l[9]=r,l[10]=i):i=l[10],i}function Pw(e){let t,n,r,i,l,s=(0,o.c)(13),{checked:d,color:c}=e,u=d?c?.border:c?.background;return s[0]!==u?(t=(0,a.jsx)("rect",{width:"38",height:"22",rx:"11",fill:u}),s[0]=u,s[1]=t):t=s[1],s[2]!==d?(n=typeof d>"u"&&(0,a.jsx)("rect",{x:"11",y:"3",width:"16",height:"16",rx:"8",fill:"white"}),s[2]=d,s[3]=n):n=s[3],s[4]!==d?(r=d&&(0,a.jsx)("rect",{x:"18",y:"3",width:"16",height:"16",rx:"8",fill:"white"}),s[4]=d,s[5]=r):r=s[5],s[6]!==d?(i="boolean"==typeof d&&!d&&(0,a.jsx)("rect",{x:"4",y:"3",width:"16",height:"16",rx:"8",fill:"white"}),s[6]=d,s[7]=i):i=s[7],s[8]!==t||s[9]!==n||s[10]!==r||s[11]!==i?(l=(0,a.jsxs)("svg",{width:"38",height:"22",viewBox:"0 0 38 22",xmlns:"http://www.w3.org/2000/svg",children:[t,n,r,i]}),s[8]=t,s[9]=n,s[10]=r,s[11]=i,s[12]=l):l=s[12],l}let P_=g.I4.div`
2481  display: inline-block;
2482  word-wrap: break-word;
2483`,Pk=function(e){let t,n,r=(0,o.c)(5),{value:i,schemaType:l}=e;return r[0]!==l||r[1]!==i?(t=function(e,t){let{options:n,name:r}=t,i=n?.dateFormat||e7.D2,a=n?.timeFormat||e7.EN;return e7.GP(new Date(e),"date"===r?i:`${i} ${a}`)}(i,l),r[0]=l,r[1]=i,r[2]=t):t=r[2],r[3]!==t?(n=(0,a.jsx)(u.az,{as:P_,paddingX:2,paddingY:1,children:t}),r[3]=t,r[4]=n):n=r[4],n},PS=e=>{let t,n=(0,o.c)(3),{diff:r,schemaType:i}=e;return n[0]!==r||n[1]!==i?(t=(0,a.jsx)(RQ,{align:"center",diff:r,layout:"grid",previewComponent:Pk,schemaType:i}),n[0]=r,n[1]=i,n[2]=t):t=n[2],t};function PT(){let e=(0,s.useContext)(c.HU);if(!e)throw Error("DocumentChange: missing context value");return e}function PI(e){let t,n,r=(0,o.c)(4),[i,a]=(0,s.useState)(void 0),l=ee7(a7);return r[0]!==l||r[1]!==e?(t=()=>{if(!e)return;let t=l.observable.getDocument(e).subscribe(a);return()=>{t.unsubscribe()}},n=[l,e],r[0]=l,r[1]=e,r[2]=t,r[3]=n):(t=r[2],n=r[3]),(0,s.useEffect)(t,n),e?i:void 0}let PE=g.I4.div`
2484  ${({theme:e})=>`
2485    --size-diff-positive: ${e.sanity.color.solid.positive.enabled.bg};
2486    --size-diff-negative: ${e.sanity.color.solid.critical.enabled.bg};
2487  `}
2488  &:not([hidden]) {
2489    display: inline-block;
2490  }
2491
2492  [data-number='positive'] {
2493    color: var(--size-diff-positive);
2494  }
2495
2496  [data-number='negative'] {
2497    color: var(--size-diff-negative);
2498  }
2499`;function P$(e){let[t]=e;return t}function PA(e){return e.name}function PD(e,t){return`rgba(${(/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e)||[]).slice(1).map(e=>parseInt(e,16)).concat(t).join(", ")})`}function Pz(e){let t,n,r,i,l,s,d,c,u,p,m,h,f=(0,o.c)(40);f[0]!==e?({crop:t,diff:n,hash:r,hotspot:i,width:s,height:d,...l}=e,f[0]=e,f[1]=t,f[2]=n,f[3]=r,f[4]=i,f[5]=l,f[6]=s,f[7]=d):(t=f[1],n=f[2],r=f[3],i=f[4],l=f[5],s=f[6],d=f[7]);let g=void 0===s?100:s,C=void 0===d?100:d,{t:y}=iJ(),x=a5(n,"crop"),b=a5(n,"hotspot"),v=`0 0 ${g} ${C}`;return f[8]!==t||f[9]!==r||f[10]!==C||f[11]!==i||f[12]!==g?(c=t&&i&&(0,a.jsxs)("mask",{id:`mask-hotspot-${r}`,children:[(0,a.jsx)("rect",{x:0,y:0,width:g,height:C,fill:"#fff"}),(0,a.jsx)(PP,{hotspot:i,fill:"#000",offset:1,width:g,height:C,stroke:"#000",strokeWidth:3})]}),f[8]=t,f[9]=r,f[10]=C,f[11]=i,f[12]=g,f[13]=c):c=f[13],f[14]!==c?(u=(0,a.jsx)("defs",{children:c}),f[14]=c,f[15]=u):u=f[15],f[16]!==t||f[17]!==x||f[18]!==n||f[19]!==r||f[20]!==C||f[21]!==i||f[22]!==y||f[23]!==g?(p=t&&(0,a.jsx)(MJ,{diff:n,path:"crop",description:y("changes.image.crop-changed"),children:(0,a.jsx)("g",{children:(0,a.jsx)(PM,{crop:t,fill:PD(x.border,.25),mask:i?`url(#mask-hotspot-${r})`:void 0,stroke:x.border,strokeWidth:1,width:g,height:C})})}),f[16]=t,f[17]=x,f[18]=n,f[19]=r,f[20]=C,f[21]=i,f[22]=y,f[23]=g,f[24]=p):p=f[24],f[25]!==n||f[26]!==C||f[27]!==i||f[28]!==b||f[29]!==y||f[30]!==g?(m=i&&(0,a.jsx)(MJ,{diff:n,path:"hotspot",description:y("changes.image.crop-changed"),children:(0,a.jsx)("g",{children:(0,a.jsx)(PP,{hotspot:i,fill:PD(b.border,.25),stroke:b.border,strokeWidth:1,width:g,height:C})})}),f[25]=n,f[26]=C,f[27]=i,f[28]=b,f[29]=y,f[30]=g,f[31]=m):m=f[31],f[32]!==C||f[33]!==l||f[34]!==v||f[35]!==u||f[36]!==p||f[37]!==m||f[38]!==g?(h=(0,a.jsxs)("svg",{...l,fill:"none",width:g,height:C,viewBox:v,children:[u,p,m]}),f[32]=C,f[33]=l,f[34]=v,f[35]=u,f[36]=p,f[37]=m,f[38]=g,f[39]=h):h=f[39],h}function PM(e){let t,n,r,i,l,s,d,c=(0,o.c)(14);c[0]!==e?({crop:t,width:i,height:n,...r}=e,c[0]=e,c[1]=t,c[2]=n,c[3]=r,c[4]=i):(t=c[1],n=c[2],r=c[3],i=c[4]);let u=t.left*i,p=t.top*n,m=(1-t.right-t.left)*i,h=(1-t.bottom-t.top)*n;
2499c[5]!==u||c[6]!==p||c[7]!==m||c[8]!==h?(l={x:u,y:p,width:m,height:h},c[5]=u,c[6]=p,c[7]=m,c[8]=h,c[9]=l):l=c[9];let f=l;return c[10]===Symbol.for("react.memo_cache_sentinel")?(s={vectorEffect:"non-scaling-stroke"},c[10]=s):s=c[10],c[11]!==f||c[12]!==r?(d=(0,a.jsx)("rect",{...r,...f,style:s}),c[11]=f,c[12]=r,c[13]=d):d=c[13],d}function PP(e){let t,n,r,i,l,s,d,c,u=(0,o.c)(15);u[0]!==e?({hotspot:n,offset:i,width:l,height:t,...r}=e,u[0]=e,u[1]=t,u[2]=n,u[3]=r,u[4]=i,u[5]=l):(t=u[1],n=u[2],r=u[3],i=u[4],l=u[5]);let p=void 0===i?0:i,m=n.x*l,h=n.y*t,f=n.width/2*l+p,g=n.height/2*t+p;u[6]!==m||u[7]!==h||u[8]!==f||u[9]!==g?(s={cx:m,cy:h,rx:f,ry:g},u[6]=m,u[7]=h,u[8]=f,u[9]=g,u[10]=s):s=u[10];let C=s;return u[11]===Symbol.for("react.memo_cache_sentinel")?(d={vectorEffect:"non-scaling-stroke"},u[11]=d):d=u[11],u[12]!==C||u[13]!==r?(c=(0,a.jsx)("ellipse",{...r,...C,style:d}),u[12]=C,u[13]=r,u[14]=c):c=u[14],c}let PR=["originalFilename"],PO=()=>{let e,t,n=(0,o.c)(4),{t:r}=iJ();return n[0]!==r?(e=r("changes.image.no-image-placeholder"),n[0]=r,n[1]=e):e=n[1],n[2]!==e?(t=(0,a.jsx)(u.Zp,{flex:1,tone:"transparent",padding:4,radius:2,height:"stretch",children:(0,a.jsx)(u.so,{align:"center",justify:"center",height:"fill",children:(0,a.jsx)(u.EY,{size:1,muted:!0,children:e})})}),n[2]=e,n[3]=t):t=n[3],t},PV=g.I4.div`
2500  height: 100%;
2501  max-height: 190px;
2502  position: relative;
2503
2504  /* Ideally the checkerboard component currently in the form builder should be made available and used here */
2505  background-color: ${v.OZ.gray[100].hex};
2506  background-image:
2507    linear-gradient(45deg, ${v.OZ.gray[50].hex} 25%, transparent 25%),
2508    linear-gradient(-45deg, ${v.OZ.gray[50].hex} 25%, transparent 25%),
2509    linear-gradient(45deg, transparent 75%, ${v.OZ.gray[50].hex} 75%),
2510    linear-gradient(-45deg, transparent 75%, ${v.OZ.gray[50].hex} 75%);
2511  background-size: 16px 16px;
2512  background-position:
2513    0 0,
2514    0 8px,
2515    8px -8px,
2516    -8px 0;
2517
2518  &::after {
2519    content: '';
2520    display: block;
2521    position: absolute;
2522    top: 0;
2523    left: 0;
2524    right: 0;
2525    bottom: 0;
2526    box-shadow: inset 0 0 0 1px var(--card-border-color);
2527    pointer-events: none;
2528  }
2529
2530  &[data-changed] {
2531    opacity: 0.45;
2532  }
2533`,PL=g.I4.img`
2534  display: block;
2535  flex: 1;
2536  min-height: 0;
2537  object-fit: contain;
2538  width: 100%;
2539  height: 100%;
2540
2541  &[data-action='removed'] {
2542    opacity: 0.45;
2543  }
2544`,PF=g.I4.div`
2545  svg {
2546    display: block;
2547    position: absolute;
2548    top: 0;
2549    left: 0;
2550    width: 100%;
2551    height: 100%;
2552  }
2553`;function PB(e){let t,{id:n,action:r,diff:i,hotspot:l,crop:d,is:c}=e,{t:p}=iJ(),m=ee7(a7),[h,f]=(0,s.useState)(),{value:g}=function(e,t){let n,r=(0,o.c)(4),i=z4();return r[0]!==e||r[1]!==i||r[2]!==t?(n=e?i.observePaths({_type:"reference",_ref:e},t):(0,k.of)(void 0),r[0]=e,r[1]=i,r[2]=t,r[3]=n):n=r[3],iB(n)}(n,PR),y=(0,e3.vX)(n),x=(0,s.useMemo)(()=>e8(m),[m]),b=null===g,v=g&&g.originalFilename,j=x.image(n).height(190).dpr(Math.min(3,Math.max(1,Math.ceil(window.devicePixelRatio||1)))).fit("max"),w=i.fromValue?.asset?._ref!==i.toValue?.asset?._ref;return r&&"changed"!==r&&(t=p("added"===r?"changes.added-label":"changes.removed-label")),(0,a.jsxs)(u.so,{direction:"column",height:"fill",flex:1,children:[(0,a.jsx)(u.az,{flex:1,padding:2,paddingBottom:0,children:(0,a.jsxs)(u.so,{as:PV,direction:"column","data-changed":"from"===c&&w?"":void 0,"data-error":h?"":void 0,children:[!b&&!h&&(0,a.jsx)(PL,{src:j.toString()||"",alt:v,"data-action":"changed"===r?void 0:r,onError:f,width:y.width,height:y.height}),(b||h)&&(0,a.jsx)(u.az,{paddingY:5,children:(0,a.jsx)(u.EY,{size:1,muted:!0,align:"center",children:p(b?"changes.image.deleted":"changes.image.error-loading-image")})}),(0,a.jsx)(PF,{children:(0,a.jsx)(Pz,{crop:d&&!(0,e3.YD)(d)?d:void 0,diff:i,hash:function(e){let t=0;if(0==e.length)return t.toString();for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t&=t;return t.toString()}(`${j.toString()||""}-${c}`),hotspot:l&&!(0,e3.nX)(l)?l:void 0,width:y.width,height:y.height})})]})}),(0,a.jsx)(Of,{title:v||p("changes.image.meta-info-fallback-title"),icon:C.xfq,markRemoved:w&&"from"===c,children:t?(0,a.jsx)("div",{children:t}):(0,a.jsxs)("div",{children:[y.width," \xd7 ",y.height]})})]})}let PN=["asset","media","crop","hotspot"],PY={flex:1};function PH(e){return e.name}let PZ=g.I4.div`
2554  display: inline-block;
2555  word-break: break-all;
2556`,PU=e=>{let t,n=(0,o.c)(2),{value:r}=e;return n[0]!==r?(t=(0,a.jsx)(u.az,{as:PZ,paddingX:2,paddingY:1,children:r}),n[0]=r,n[1]=t):t=n[1],t},Pq=(0,g.I4)(u.az)`
2557  &:not([hidden]) {
2558    display: inline;
2559    align-items: center;
2560
2561    &[data-changed] {
2562      cursor: pointer;
2563    }
2564  }
2565`,PJ=(0,g.I4)(u.EY)`
2566  &:not([hidden]) {
2567    display: inline;
2568    color: inherit;
2569  }
2570`,PW=(0,g.I4)(u.az)`
2571  &:not([hidden]) {
2572    display: inline-flex;
2573    align-items: center;
2574
2575    ${Pq} [data-ui="Text"] {
2576      opacity: 0.5;
2577    }
2578  }
2579`,PK=(0,g.I4)(u.az)`
2580  min-width: 160px;
2581  max-height: 40vh;
2582  overflow-y: auto;
2583`,PG=g.I4.div`
2584  text-decoration: none;
2585  display: inline;
2586  position: relative;
2587  border: 0;
2588  padding: 0;
2589  border-bottom: 2px dotted currentColor;
2590  box-shadow: inset 0 0 0 1px var(--card-border-color);
2591  white-space: nowrap;
2592  align-items: center;
2593  background-color: color(var(--card-fg-color) a(10%));
2594
2595  &[data-changed] {
2596    cursor: pointer;
2597  }
2598
2599  &[data-removed] {
2600    text-decoration: line-through;
2601  }
2602
2603  &:hover ${PW} {
2604    opacity: 1;
2605  }
2606`;function PX(e){let t,n,r,i,l,s,d,c=(0,o.c)(21);c[0]!==e?({children:t,diff:n,object:r,schemaType:s,path:i,...l}=e,c[0]=e,c[1]=t,c[2]=n,c[3]=r,c[4]=i,c[5]=l,c[6]=s):(t=c[1],n=c[2],r=c[3],i=c[4],l=c[5],s=c[6]);let{t:u}=iJ();if(!s){let e,t;return c[7]!==u?(e=u("changes.portable-text.unknown-annotation-schema-type"),c[7]=u,c[8]=e):e=c[8],c[9]!==l||c[10]!==e?(t=(0,a.jsx)(PG,{...l,children:e}),c[9]=l,c[10]=e,c[11]=t):t=c[11],t}if(n&&"unchanged"!==n.action){let e;return c[12]!==t||c[13]!==n||c[14]!==r||c[15]!==i||c[16]!==l||c[17]!==s?(e=(0,a.jsx)(PQ,{...l,diff:n,object:r,schemaType:s,path:i,children:t}),c[12]=t,c[13]=n,c[14]=r,c[15]=i,c[16]=l,c[17]=s,c[18]=e):e=c[18],e}return c[19]!==t?(d=(0,a.jsx)(PG,{children:t}),c[19]=t,c[20]=d):d=c[20],d}function PQ({diff:e,children:t,object:n,schemaType:r,path:i,...o}){let{onSetFocus:d}=(0,s.useContext)(c.HJ),{path:p}=(0,s.useContext)(c.DR),m=(0,s.useRef)(null),{t:h}=iJ(),f=a5(e,[]),g=(0,s.useMemo)(()=>f?{background:f.background,color:f.text}:{},[f]),x="removed"===e.action,[b,v]=(0,s.useState)(!1),j=n&&Pg(n),w=(0,s.useMemo)(()=>[i[0]].concat(["markDefs",{_key:n._key}]),[n._key,i]),k=(0,s.useMemo)(()=>p.slice(0,p.findIndex(e=>(0,_.tA)(e)&&e._key===n._key)),[p,n._key]),S=(0,s.useMemo)(()=>k.concat(i),[i,k]),T=(0,s.useMemo)(()=>k.concat(w),[w,k]),I=`field-${(0,l.dI)(T)}`,E=vp(),$=(0,s.useMemo)(()=>E.filter(([e])=>e.startsWith(I)).length>0,[I,E]);(0,s.useEffect)(()=>{!b&&$&&(v(!0),d(T))},[$,T,d,b]);let A=(0,s.useCallback)(e=>{e.stopPropagation(),v(!0),x||(e.preventDefault(),d(S),setTimeout(()=>d(T),10))},[S,x,T,d]);(0,u.PR)(!$&&(()=>v(!1)),()=>[m.current]);let D="unchanged"!==e.action&&e.annotation||null,z=(0,s.useMemo)(()=>D?[D]:[],[D]),M=(0,s.useMemo)(()=>({path:T}),[T]),P=(0,a.jsx)(c.DR.Provider,{value:M,children:(0,a.jsx)(PK,{padding:3,children:(0,a.jsxs)("div",{children:[j&&(0,a.jsx)(u.EY,{muted:!0,size:1,weight:"medium",children:h("changes.portable-text.empty-object-annotation",{annotationType:r.title||r.name})}),!j&&(0,a.jsx)(Oo,{diff:e,schemaType:r})]})})});return(0,a.jsx)(PG,{...o,onClick:A,style:g,"data-changed":"","data-removed":"removed"===e.action?"":void 0,children:(0,a.jsx)(y.AM,{content:P,open:b,ref:m,portal:!0,children:(0,a.jsx)(PW,{paddingLeft:1,children:(0,a.jsx)(MJ,{annotations:z,description:h("changes.portable-text.annotation",{context:e.action}),children:(0,a.jsxs)(Pq,{style:{display:"inline-flex"},children:[(0,a.jsx)("span",{children:t}),(0,a.jsx)(u.so,{align:"center",paddingX:1,children:(0,a.jsx)(PJ,{size:0,children:(0,a.jsx)(C.D3D,{})})})]})})})})})}let P1=g.I4.blockquote`
2607  margin: 0;
2608`;function P2(e){let t,n=(0,o.c)(2),{children:r}=e;return n[0]!==r?(t=(0,a.jsx)("div",{children:(0,a.jsx)(P1,{children:r})}),n[0]=r,n[1]=t):t=n[1],t}let P5={h1:2,h2:1,h3:0,h4:0,h5:0,h6:0},P0=(0,g.I4)(u.DZ)`
2609  &:not([hidden]) {
2610    display: inline;
2611    text-transform: none;
2612    margin: 0;
2613
2614    &::before,
2615    &::after {
2616      content: unset;
2617    }
2618  }
2619`;function P7(e){let t,n=(0,o.c)(3),{style:r,children:i}=e,l=P5[r];return n[0]!==i||n[1]!==l?(t=(0,a.jsx)(P0,{size:l,children:i}),n[0]=i,n[1]=l,n[2]=t):t=n[2],t}let P3=g.I4.div`
2620  text-transform: none;
2621  white-space: wrap;
2622  overflow-wrap: break-word;
2623  margin: 0;
2624`;function P8(e){let t,n=(0,o.c)(2),{children:r}=e;return n[0]!==r?(t=(0,a.jsx)(P3,{children:r}),n[0]=r,n[1]=t):t=n[1],t}let P4=[];function P6(e){let t,n,r=(0,o.c)(41),{diff:i,block:l,children:d}=e,p=a5(i,P4),{path:m}=(0,s.useContext)(c.DR),{onSetFocus:h}=(0,s.useContext)(c.HJ),{t:f}=iJ(),g="removed"===i.action,C=d,y;r[0]!==m||r[1]!==g||r[2]!==h?(y=e=>{e.stopPropagation(),g||h(m)},r[0]=m,r[1]=g,r[2]=h,r[3]=y):y=r[3];let x=y;
2624if("blockquote"===l.style){let e;r[4]!==C?(e=(0,a.jsx)(P2,{children:C}),r[4]=C,r[5]=e):e=r[5],C=e}else if(l.style&&(0,_.L4)(l)&&l.style&&["h1","h2","h3","h4","h5","h6"].includes(l.style)){let e;r[6]!==l.style||r[7]!==C?(e=(0,a.jsx)(P7,{style:l.style,children:C}),r[6]=l.style,r[7]=C,r[8]=e):e=r[8],C=e}else{let e;r[9]!==C?(e=(0,a.jsx)(P8,{children:C}),r[9]=C,r[10]=e):e=r[10],C=e}if("changed"===i.origin.action&&i.origin.fields.style&&"changed"===i.origin.fields.style.action&&i.origin.fields.style.annotation){let e,n,o,s,d,c,m,h,g;t=i?.origin?.fromValue?.style,r[11]!==p?(e=p?{background:p.background,color:p.text}:{},r[11]=p,r[12]=e):e=r[12];let y=e;r[13]===Symbol.for("react.memo_cache_sentinel")?(n={borderStyle:"dotted"},r[13]=n):n=r[13];let x=i.action,b=`changed_from_style_${t||"undefined"}`,v=i.origin.fields.style?.annotation;r[14]!==v?(o=[v],r[14]=v,r[15]=o):o=r[15];let j=i.origin.fields.style;r[16]!==l.style||r[17]!==t||r[18]!==f?(s=f("changes.portable-text.block-style-changed",{fromStyle:t,toStyle:l.style}),r[16]=l.style,r[17]=t,r[18]=f,r[19]=s):s=r[19],r[20]!==s?(d=(0,a.jsx)(u.EY,{size:0,children:s}),r[20]=s,r[21]=d):d=r[21],r[22]!==i.origin.fields.style||r[23]!==o||r[24]!==d?(c=(0,a.jsx)(MJ,{annotations:o,diff:j,children:d}),r[22]=i.origin.fields.style,r[23]=o,r[24]=d,r[25]=c):c=r[25],r[26]!==C||r[27]!==y?(m=(0,a.jsx)(u.az,{style:y,children:C}),r[26]=C,r[27]=y,r[28]=m):m=r[28],r[29]!==c||r[30]!==m?(h=(0,a.jsxs)(u.BJ,{space:2,children:[c,m]}),r[29]=c,r[30]=m,r[31]=h):h=r[31],r[32]!==i.action||r[33]!==h||r[34]!==b?(g=(0,a.jsx)(u.Zp,{padding:3,border:!0,radius:2,style:n,"diff-block-action":x,"data-block-note":b,children:h}),r[32]=i.action,r[33]=h,r[34]=b,r[35]=g):g=r[35],C=g}let b=`changed_from_style_${t||"undefined"}`;return r[36]!==i.action||r[37]!==x||r[38]!==C||r[39]!==b?(n=(0,a.jsx)("div",{onClick:x,"data-diff-block-action":i.action,"data-block-note":b,children:C}),r[36]=i.action,r[37]=x,r[38]=C,r[39]=b,r[40]=n):n=r[40],n}let P9=g.I4.span`
2625  display: inline;
2626  ${({theme:e,decoration:t})=>{switch(t){case"strong":return"font-weight: bold;";case"em":return"font-style: italic;";case"underline":return"text-decoration: underline;";case"overline":return"text-decoration: overline;";case"strike-through":return"text-decoration: line-through;";case"code":return`
2627          font-family: ${e.sanity.fonts.code.family};
2628          background: ${e.sanity.color.muted.default.enabled.bg};
2629        `;default:return""}}}
2630`;function Re(e){let t,n=(0,o.c)(3),{mark:r,children:i}=e;return n[0]!==i||n[1]!==r?(t=(0,a.jsx)(P9,{decoration:r,children:i}),n[0]=i,n[1]=r,n[2]=t):t=n[2],t}let Rt=(0,g.I4)(u.Zp)`
2631  &:not([hidden]) {
2632    display: inline;
2633    cursor: pointer;
2634    white-space: nowrap;
2635    align-items: center;
2636
2637    &[data-removed] {
2638      text-decoration: line-through;
2639    }
2640
2641    ${Pq} {
2642      display: inline-flex;
2643    }
2644  }
2645`;function Rn(e){let t,n,r,i,l,s=(0,o.c)(19);s[0]!==e?({diff:t,object:n,schemaType:i,...r}=e,s[0]=e,s[1]=t,s[2]=n,s[3]=r,s[4]=i):(t=s[1],n=s[2],r=s[3],i=s[4]);let{t:d}=iJ();if(!i){let e,t;return s[5]!==n._type||s[6]!==d?(e=d("changes.portable-text.unknown-inline-object-schema-type",{schemaType:n._type}),s[5]=n._type,s[6]=d,s[7]=e):e=s[7],s[8]!==r||s[9]!==e?(t=(0,a.jsx)(Rt,{...r,border:!0,radius:1,children:e}),s[8]=r,s[9]=e,s[10]=t):t=s[10],t}if(t){let e;return s[11]!==t||s[12]!==n||s[13]!==r||s[14]!==i?(e=(0,a.jsx)(Rr,{...r,diff:t,object:n,schemaType:i}),s[11]=t,s[12]=n,s[13]=r,s[14]=i,s[15]=e):e=s[15],e}return s[16]!==n||s[17]!==i?(l=(0,a.jsx)(Rt,{children:(0,a.jsx)(DM,{schemaType:i,value:n,layout:"inline"})}),s[16]=n,s[17]=i,s[18]=l):l=s[18],l}function Rr(e){let t,n,r,i,d,p,m,h,f,g,x,b,v,j,w,k,S,T,I,E,$,A,D,z,M,P,R,O,V=(0,o.c)(65);V[0]!==e?({diff:t,object:n,path:r,schemaType:d,...i}=e,V[0]=e,V[1]=t,V[2]=n,V[3]=r,V[4]=i,V[5]=d):(t=V[1],n=V[2],r=V[3],i=V[4],d=V[5]);let{path:L}=(0,s.useContext)(c.DR),{onSetFocus:F}=(0,s.useContext)(c.HJ),{t:B}=iJ();V[6]===Symbol.for("react.memo_cache_sentinel")?(p=[],V[6]=p):p=V[6];let N=a5(t,p);V[7]!==N?(h=N?{background:N.background,color:N.text}:{},V[7]=N,V[8]=h):h=V[8],m=h;
2645let[Y,H]=(0,s.useState)(!1);V[9]!==n?(f=n&&Pg(n),V[9]=n,V[10]=f):f=V[10];let Z=f,U="removed"===t.action;if(V[11]!==L||V[12]!==n||V[13]!==r){let e;V[16]!==n?(e=e=>(0,_.tA)(e)&&e._key===n._key,V[16]=n,V[17]=e):e=V[17],g=L.slice(0,L.findIndex(e)).concat(r),x=(0,l.dI)(g),V[11]=L,V[12]=n,V[13]=r,V[14]=g,V[15]=x}else g=V[14],x=V[15];let q=`field-${x}`,J=vp().filter(e=>{let[t]=e;return t.startsWith(q)}).length>0;V[18]!==L||V[19]!==r?(b=L.slice(0,-1).concat(r).concat([l.nX]),V[18]=L,V[19]=r,V[20]=b):b=V[20];let W=b;V[21]!==W||V[22]!==J||V[23]!==F?(v=()=>{J&&(H(!0),F(W))},j=[W,J,F],V[21]=W,V[22]=J,V[23]=F,V[24]=v,V[25]=j):(v=V[24],j=V[25]),(0,s.useEffect)(v,j),V[26]!==W||V[27]!==U||V[28]!==F?(w=e=>{if(e.stopPropagation(),H(!0),!U)return void F(W);e.preventDefault()},V[26]=W,V[27]=U,V[28]=F,V[29]=w):w=V[29];let K=w;V[30]===Symbol.for("react.memo_cache_sentinel")?(k=()=>{H(!1)},V[30]=k):k=V[30];let G=k;V[31]!==g?(T={path:g},V[31]=g,V[32]=T):T=V[32],S=T,V[33]!==t||V[34]!==Z||V[35]!==d?(I=(0,a.jsx)(Ri,{diff:t,emptyObject:Z,onClose:G,schemaType:d}),V[33]=t,V[34]=Z,V[35]=d,V[36]=I):I=V[36],V[37]!==I||V[38]!==S?(E=(0,a.jsx)(c.DR.Provider,{value:S,children:I}),V[37]=I,V[38]=S,V[39]=E):E=V[39];let X=E,Q="unchanged"!==t.action&&t.annotation||null;V[40]!==Q?($=Q?[Q]:[],V[40]=Q,V[41]=$):$=V[41];let ee=$,et="removed"===t.action?"":void 0;return V[42]!==t.action||V[43]!==B?(A=B("changes.portable-text.inline-object",{context:t.action}),V[42]=t.action,V[43]=B,V[44]=A):A=V[44],V[45]!==n||V[46]!==d?(D=(0,a.jsx)(DM,{schemaType:d,value:n,layout:"inline"}),V[45]=n,V[46]=d,V[47]=D):D=V[47],V[48]===Symbol.for("react.memo_cache_sentinel")?(z=(0,a.jsx)(u.so,{align:"center",paddingX:1,children:(0,a.jsx)(PJ,{size:0,children:(0,a.jsx)(C.D3D,{})})}),V[48]=z):z=V[48],V[49]!==D?(M=(0,a.jsxs)(Pq,{children:[D,z]}),V[49]=D,V[50]=M):M=V[50],V[51]!==ee||V[52]!==A||V[53]!==M?(P=(0,a.jsx)(PW,{children:(0,a.jsx)(MJ,{annotations:ee,description:A,children:M})}),V[51]=ee,V[52]=A,V[53]=M,V[54]=P):P=V[54],V[55]!==Y||V[56]!==X||V[57]!==P?(R=(0,a.jsx)(y.AM,{content:X,open:Y,portal:!0,children:P}),V[55]=Y,V[56]=X,V[57]=P,V[58]=R):R=V[58],V[59]!==K||V[60]!==i||V[61]!==m||V[62]!==et||V[63]!==R?(O=(0,a.jsx)(Rt,{...i,onClick:K,style:m,"data-removed":et,border:!0,radius:2,children:R}),V[59]=K,V[60]=i,V[61]=m,V[62]=et,V[63]=R,V[64]=O):O=V[64],O}function Ri(e){let t,n,r,i,l=(0,o.c)(12),{diff:d,emptyObject:c,onClose:p,schemaType:m}=e,{t:h}=iJ(),f=(0,s.useRef)(null);return l[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>[f.current],l[0]=t):t=l[0],(0,u.PR)(p,t),l[1]!==c||l[2]!==m||l[3]!==h?(n=c&&(0,a.jsx)(u.EY,{muted:!0,size:1,weight:"medium",children:h("changes.portable-text.empty-inline-object",{inlineObjectType:m.title||m.name})}),l[1]=c,l[2]=m,l[3]=h,l[4]=n):n=l[4],l[5]!==d||l[6]!==c||l[7]!==m?(r=!c&&(0,a.jsx)(Oo,{diff:d,schemaType:m}
2645),l[5]=d,l[6]=c,l[7]=m,l[8]=r):r=l[8],l[9]!==n||l[10]!==r?(i=(0,a.jsxs)(PK,{ref:f,padding:3,children:[n,r]}),l[9]=n,l[10]=r,l[11]=i):i=l[11],i}function Ra(e){let t,n,r,i,l,s,d,c=(0,o.c)(16);c[0]!==e?({diff:r,childDiff:t,children:n,path:i,segment:s,...l}=e,c[0]=e,c[1]=t,c[2]=n,c[3]=r,c[4]=i,c[5]=l,c[6]=s):(t=c[1],n=c[2],r=c[3],i=c[4],l=c[5],s=c[6]);let u=r||t;if(u&&"unchanged"!==u.action&&"unchanged"!==s.action){let e;return c[7]!==t||c[8]!==n||c[9]!==r||c[10]!==i||c[11]!==l||c[12]!==s?(e=(0,a.jsx)(Ro,{...l,childDiff:t,diff:r,segment:s,path:i,children:n}),c[7]=t,c[8]=n,c[9]=r,c[10]=i,c[11]=l,c[12]=s,c[13]=e):e=c[13],e}return c[14]!==n?(d=(0,a.jsx)(Pq,{children:n}),c[14]=n,c[15]=d):d=c[15],d}function Ro({diff:e,childDiff:t,children:n,path:r,segment:i,...o}){let{onSetFocus:l}=(0,s.useContext)(c.HJ),{path:d}=(0,s.useContext)(c.DR),u=(0,s.useMemo)(()=>r.slice(-2,1)[0],[r]),{t:p}=iJ(),m=e&&"removed"===e.action,h=d.slice(0,d.findIndex(e=>(0,_.tA)(e)&&(0,_.tA)(u)&&e._key===u._key)).concat(r),f=(0,s.useCallback)(e=>{e.stopPropagation(),m||(e.preventDefault(),l(h))},[h,m,l]),g=e&&e.segments.find(e=>e.text===i.text),C=g||e||t,y=C&&"unchanged"!==C.action&&C.annotation||g&&e&&"unchanged"!==e.action&&"removed"===g.action&&e.annotation||null,x=y&&"unchanged"!==i.action?(0,a.jsx)(M1,{annotation:y,as:"removed"===i.action?"del":"ins",tooltip:{description:p("changes.portable-text.text",{context:i.action})},children:n}):null;return(0,a.jsx)(Pq,{...o,onClick:f,"data-changed":"",children:(0,a.jsx)("span",{children:(0,a.jsx)(a.Fragment,{children:x||n})})})}let Rl=Pt.map(e=>e[0]),Rs=Pt.map(e=>e[1]),Rd=Pe.map(e=>e[0]),Rc=Pe.map(e=>e[1]),Ru=Rl.concat(Rd),Rp=Rs.concat(Rc),Rm=Rl.concat(Rs),Rh=RegExp(`${Rm.concat(Rp).join("|")}`,"g");function Rf(e){let{diff:t,schemaType:n}=e,r=t.origin.toValue||t.origin.fromValue,{t:i}=iJ(),o=(0,s.useMemo)(()=>t.origin.toValue?Ph(t.origin):[],[t.origin]),l=(0,s.useCallback)(e=>{let l=Pc(n.fields,e),s=[];if(l){var d,c;let e;s=Pu(l);let u=t.fields.children,p=u.items[0].diff&&"object"===u.items[0].diff.type&&"string"===u.items[0].diff.fields.text.type&&u.items[0].diff.fields.text.segments||[],m=[],h={};if(d=r,c=t,1===d.children.length&&"span"===d.children[0]._type&&"string"==typeof d.children[0].text&&""===d.children[0].text&&"unchanged"!==c.origin.action&&("added"===t.origin.action||"removed"===t.origin.action)){let e=Pd(t.origin,r.children[0])||t.origin;if(e&&"unchanged"!==e.action)return(0,a.jsx)(M1,{annotation:e.annotation,as:"removed"===e.action?"del":"ins",tooltip:{description:i("changes.portable-text.empty-text",{context:e.action})},children:(0,a.jsx)("span",{children:"↲"})},`empty-block-${r._key}`)}let f=-1,g=-1,C=[],y=PC(t.origin);return p.forEach(d=>{g++;let c=Pn.includes(d.text),u=Ru.includes(d.text),p=Rp.includes(d.text),x=""===d.text,b="removed"===d.action;if(x)b||f++;else if(u||p){if(u&&Rd.includes(d.text)){let e=y[Rd.indexOf(d.text)];e&&C.push({mark:e._key,symbols:[d.text,Rc[Rd.indexOf(d.text)]],object:e})}p&&Rc.includes(d.text)&&(e=C.pop())}else if(c){let e=Pn.findIndex(e=>e===d.text),i=o[e]?._key,l=o[e];if(i){let e=Pc(n.fields,l),i=Pd(t.origin,l);m.push((0,a.jsx)(Rn,{object:l,path:[{_key:r._key},"children",{_key:l._key}],diff:i,schemaType:e},`inline-object-${l._key}`))}}else if(d.text){let n=r.children[f]||t.origin.fromValue?.children.find(e=>e.text&&e.text.match(d.text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"))),o=n&&Pf(t.origin,n);if(!n)throw Error("Could not find child");let c=o?.fields?.text?o?.fields?.text:void 0,u=(0,a.jsx)(Ra,{diff:c,path:[{_key:r._key},"children",{_key:n._key}],childDiff:o,segment:d,children:function({diff:e,child:t,decoratorTypes:n,seg:r,segIndex:i,spanSchemaType:o,t:l}){if(r.text===`
2646`)return(0,a.jsx)("br",{});let s=(0,a.jsx)("span",{children:r.text.replace(/ /g," ")},`text-${i}`),d=t&&Pf(e.origin,t),c=(0,_.bn)(t)&&t.marks||[];return d&&(s=function({activeMarks:e,decoratorTypes:t,diff:n,children:r,seg:i,segIndex:o,spanDiff:l,spanSchemaType:s,t:d}){let c=(0,a.jsx)("span",{children:r},`text-segment-${o}`),u=n.origin.fromValue&&n.fromValue&&n.fromValue.children[0].text||"",p=l&&"unchanged"!==l.action&&l.annotation||void 0,m=l?.fields?.marks,h=m&&"unchanged"!==m.action&&m.annotation||p,f=[],g=u.split("").filter(e=>!!e).join(""),C=g.slice(0,Math.max(0,g.indexOf(i.text)+i.text.length)),y=C.slice(0,Math.max(0,C.indexOf(i.text))),x=[];
2646return[...y.matchAll(Rh)].forEach(e=>{let n=e[0],r=Pt.concat(Pe).find(e=>e.indexOf(n)>-1);if(r){let e=n===r[0],i=t[e?Rl.indexOf(n):Rs.indexOf(n)]?.value||n;y.lastIndexOf(n)>y.lastIndexOf(r[1])&&x.push(i)}}),f=rD(e,nt(x)),h&&f.length>0&&f.some(e=>Pp(e,s))&&(c=(0,a.jsx)(M1,{annotation:h,as:"ins",tooltip:{description:d("changes.portable-text.changed-formatting")},children:c},`diffcard-annotation-${o}-${f.join("-")}`)),c}({activeMarks:c,decoratorTypes:n,diff:e,children:s,seg:r,segIndex:i,spanDiff:d,spanSchemaType:o,t:l})),c&&c.length>0&&c.forEach(e=>{Pp(e,o)&&(s=(0,a.jsx)(Re,{mark:e,children:s},`decorator-${e}-${t._key}-${i}`))}),s}({diff:t,child:n,decoratorTypes:s,seg:d,segIndex:g,spanSchemaType:l,t:i})},`text-${n._key}-${g}`);if(C.length>0&&C.forEach(e=>{h[e.mark]=h[e.mark]||[],h[e.mark].push(u)}),e){let i=`annotation-${e.object._key}`,o=m[m.length-1];if(o&&o.key!==i){var v,j;let o=(v=t.origin,j=e.mark,v.fields.markDefs&&v.fields.markDefs.isChanged&&"array"===v.fields.markDefs.type&&v.fields.markDefs.items.find(e=>e.diff&&"object"===e.diff.type&&(e.diff.toValue&&e.diff.toValue._key&&e.diff.toValue._key===j||e.diff.fromValue&&e.diff.fromValue._key&&e.diff.fromValue._key===j))?.diff||void 0),s=e&&l.annotations&&l.annotations.find(t=>e&&e.object&&t.name===e.object._type);m.push((0,a.jsx)(PX,{object:e.object,diff:o,path:[{_key:r._key},"children",{_key:n._key}],schemaType:s,children:(0,a.jsx)(a.Fragment,{children:h[e.mark]})},i))}e=void 0}0===C.length&&m.push(u)}}),(0,a.jsx)("div",{children:m},r._key)}throw Error("'span' schemaType not found")},[r,t,o,n,i]);return(0,a.jsx)(P6,{block:t.displayValue,diff:t,children:(0,a.jsx)(a.Fragment,{children:(t.displayValue.children||[]).map(e=>l(e))})})}let Rg=g.I4.div`
2647  word-wrap: break-word;
2648`,RC=e=>{let t,n=(0,o.c)(3),{value:r,schemaType:i}=e;return n[0]!==i||n[1]!==r?(t=(0,a.jsx)(u.az,{as:Rg,padding:2,children:(0,a.jsx)(DM,{schemaType:i,value:r,layout:"default"})}),n[0]=i,n[1]=r,n[2]=t):t=n[2],t},Ry=g.I4.div`
2649  display: inline-block;
2650  word-break: break-all;
2651  white-space: pre-wrap;
2652`,Rx=e=>{let t,n=(0,o.c)(2),{value:r}=e;return n[0]!==r?(t=(0,a.jsx)(u.az,{as:Ry,paddingX:2,paddingY:1,children:r}),n[0]=r,n[1]=t):t=n[1],t},Rb=g.I4.div`
2653  white-space: pre-wrap;
2654  word-wrap: break-word;
2655`,Rv={block:e=>{let t,n,r,i,l=(0,o.c)(9),{diff:s,schemaType:d}=e;return l[0]!==s||l[1]!==d?(n=function(e,t){let n="removed"===e.action?e.fromValue:e.toValue,r={...e,origin:e};if(n){let i={},a={},o={},l=Pc(t.fields,{_type:"span"});l&&Pu(l).forEach((e,t)=>{a[e.value]=Pt[t]}),PC(r.origin).forEach((e,t)=>{i[e._key]=Pe[t]}),Ph(r.origin).forEach((e,t)=>{o[e._key]=Pn[t]});let s=Pm(r.origin,r.fromValue,a,i,o),d=Pm(r.origin,r.toValue,a,i,o),c={...n,children:[{_type:"span",_key:"pseudoSpanKey",text:d,marks:[]}]},u={displayValue:n,children:[{_type:"span",_key:"pseudoSpanKey",text:s,marks:[]}]};return{origin:e,action:"changed",type:"object",displayValue:c,fromValue:u,toValue:c,isChanged:!0,fields:{children:{action:"changed",type:"array",isChanged:!0,items:[{diff:{action:"changed",type:"object",isChanged:!0,fields:{text:{type:"string",action:"changed",isChanged:!0,fromValue:s,toValue:d,segments:(function(e,t){let n=[],r=(0,n_.sw)((0,n_.iU)(e,t)),i=0,a=0;for(let[o,l]of r)switch(o){case n_.lw:n.push({type:"stringSegment",action:"unchanged",text:l}),i+=l.length,a+=l.length;break;case n_.Cm:n.push({type:"stringSegment",action:"removed",text:e.slice(i,i+l.length),annotation:null}),i+=l.length;break;case n_.Ug:n.push({type:"stringSegment",action:"added",text:t.slice(a,a+l.length),annotation:null}),a+=l.length}return e2(n.map(e=>{let t=[];if(e.text.length>1){let n=[...e.text.matchAll(Pl)],r=-1;n.forEach(i=>{let a=i.index||0;a>r&&(t.push({...e,text:e.text.slice(r+1,a)}),t.push({...e,text:i[0]})),i===n[n.length-1]&&t.push({...e,text:e.text.slice(Math.max(0,a+1))}),r=a}),0===n.length&&t.push(e)}else t.push(e);return t}))})(s,d).map(e=>({...e,..."unchanged"!==r.action&&r.annotation?{annotation:r.annotation}:{}}))}},fromValue:u.children[0],toValue:c.children[0]},annotation:null,fromIndex:0,toIndex:0,hasMoved:!1}],fromValue:u.children,toValue:c.children}}}}throw Error("Can not display this diff")}(s,d),l[0]=s,l[1]=d,l[2]=n):n=l[2],t=n,l[3]!==t||l[4]!==d?(r=(0,a.jsx)(Rf,{diff:t,schemaType:d}),l[3]=t,l[4]=d,l[5]=r):r=l[5],l[6]!==s.action||l[7]!==r?(i=(0,a.jsx)("div",{"data-diff-action":s.action,children:r}),l[6]=s.action,l[7]=r,l[8]=i):i=l[8],i},boolean:{component:e=>{let t,n,r,i,l,s,d,c=(0,o.c)(24),{diff:p,schemaType:m}=e,{fromValue:h,toValue:f}=p,{title:g,options:C}=m,y=C?.layout==="checkbox"?Pj:Pw;c[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],c[0]=t):t=c[0];let x=a5(p,t),{showFromValue:b}=PT(),v=null!=f;return c[1]!==y||c[2]!==h||c[3]!==b||c[4]!==x?(n=b&&(0,a.jsx)(y,{checked:h,color:x}),c[1]=y,c[2]=h,c[3]=b,c[4]=x,c[5]=n):n=c[5],c[6]!==y||c[7]!==b||c[8]!==v||c[9]!==f||c[10]!==x?(r=v&&(0,a.jsxs)(a.Fragment,{children:[b&&(0,a.jsx)(u.az,{marginX:2,children:(0,a.jsx)(RL,{})}),(0,a.jsx)(y,{checked:f,color:x})]}),c[6]=y,c[7]=b,c[8]=v,c[9]=f,c[10]=x,c[11]=r):r=c[11],c[12]!==n||c[13]!==r?(i=(0,a.jsxs)(u.so,{align:"center",children:[n,r]}),c[12]=n,c[13]=r,c[14]=i):i=c[14],c[15]!==p||c[16]!==i?(l=(0,a.jsx)(MJ,{diff:p,children:i}),c[15]=p,c[16]=i,c[17]=l):l=c[17],c[18]!==v||c[19]!==g?(s=v&&g&&(0,a.jsx)(u.az,{marginLeft:2,children:(0,a.jsx)(u.EY,{size:1,weight:"medium",children:g})}),c[18]=v,c[19]=g,c[20]=s):s=c[20],c[21]!==l||c[22]!==s?(d=(0,a.jsxs)(u.so,{align:"center",children:[l,s]}),c[21]=l,c[22]=s,c[23]=d):d=c[23],d},showHeader:!1},date:PS,datetime:PS,file:e=>{let t,n,r,i,l,s,d,c,p,m,h,f,g,y,x,b,v=(0,o.c)(51),{diff:j,schemaType:w}=e,{fromValue:_,toValue:k,fields:S}=j,T=_?.asset,I=k?.asset,{t:E}=iJ(),$=PI(T?._ref),A=PI(I?._ref);v[0]===Symbol.for("react.memo_cache_sentinel")?(t={unitDisplay:"short",maximumFractionDigits:2},v[0]=t):t=v[0];let D=OQ(t);v[1]===Symbol.for("react.memo_cache_sentinel")?(n=["_type","media"],v[1]=n):n=v[1];let z=n;if(v[2]!==S||v[3]!==w.fields){let e;v[6]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{let[t,n]=e;return n.isChanged&&!z.includes(t)},v[6]=e):e=v[6];let t=Object.entries(S).filter(e).map(P$);r=t.includes("asset"),i=w.fields.filter(e=>"asset"!==e.name&&t.includes(e.name)).map(PA),v[2]=S,v[3]=w.fields,v[4]=r,v[5]=i}else r=v[4],i=v[5];let M=i,P=function(e,t){return e&&t?Math.round((t-e)/e*100):0}
2655($?.size,A?.size);v[7]!==D||v[8]!==$?(l=$?.size&&k9($.size,D),v[7]=D,v[8]=$,v[9]=l):l=v[9];let R=l;v[10]!==D||v[11]!==A?(s=A?.size&&k9(A.size,D),v[10]=D,v[11]=A,v[12]=s):s=v[12];let O=s;v[13]===Symbol.for("react.memo_cache_sentinel")?(c={display:"block",flex:1},v[13]=c):c=v[13],d=c,v[14]!==j||v[15]!==$||v[16]!==R||v[17]!==E?(p=$&&(0,a.jsx)(M1,{as:"del",diff:j,path:"asset._ref",style:d,children:(0,a.jsx)(Of,{title:$.originalFilename||E("changes.file.meta-info-fallback-title"),icon:C.pyG,children:(0,a.jsx)(u.EY,{size:0,style:{color:"inherit"},children:R})})}),v[14]=j,v[15]=$,v[16]=R,v[17]=E,v[18]=p):p=v[18];let V=p;v[19]!==j||v[20]!==A||v[21]!==O||v[22]!==P||v[23]!==E?(m=A&&(0,a.jsx)(M1,{as:"ins",diff:j,path:"asset._ref",style:d,children:(0,a.jsx)(Of,{title:A.originalFilename||E("changes.file.meta-info-fallback-title"),icon:C.pyG,children:(0,a.jsxs)(u.so,{align:"center",children:[(0,a.jsx)(u.EY,{size:0,style:{color:"inherit"},children:O}),0!==P&&(0,a.jsx)(u.Zp,{radius:2,padding:1,as:PE,marginLeft:2,children:(0,a.jsxs)(u.EY,{size:0,"data-number":P>0?"positive":"negative",children:[P>0?"+":"-",P,"%"]})})]})})}),v[19]=j,v[20]=A,v[21]=O,v[22]=P,v[23]=E,v[24]=m):m=v[24];let L=m;v[25]!==j||v[26]!==V||v[27]!==E||v[28]!==L?(h=V&&!L&&(0,a.jsx)(MJ,{diff:j,path:"asset._ref",description:E("changes.removed-label"),children:V}),v[25]=j,v[26]=V,v[27]=E,v[28]=L,v[29]=h):h=v[29],v[30]!==j||v[31]!==V||v[32]!==L?(f=V&&L&&(0,a.jsx)(MJ,{diff:j,path:"asset._ref",children:(0,a.jsx)(RG,{from:V,layout:"grid",to:L})}),v[30]=j,v[31]=V,v[32]=L,v[33]=f):f=v[33],v[34]!==j||v[35]!==V||v[36]!==E||v[37]!==L?(g=!V&&L&&(0,a.jsx)(MJ,{diff:j,path:"asset._ref",description:E("changes.added-label"),children:L}),v[34]=j,v[35]=V,v[36]=E,v[37]=L,v[38]=g):g=v[38],v[39]!==h||v[40]!==f||v[41]!==g?(y=(0,a.jsxs)(a.Fragment,{children:[h,f,g]}),v[39]=h,v[40]=f,v[41]=g,v[42]=y):y=v[42];let F=r&&y;return v[43]!==r||v[44]!==j||v[45]!==M||v[46]!==w?(x=M.length>0&&(0,a.jsx)(u.az,{marginTop:r?4:3,children:(0,a.jsx)(Oo,{diff:j,schemaType:w,fields:M})}),v[43]=r,v[44]=j,v[45]=M,v[46]=w,v[47]=x):x=v[47],v[48]!==F||v[49]!==x?(b=(0,a.jsxs)(a.Fragment,{children:[F,x]}),v[48]=F,v[49]=x,v[50]=b):b=v[50],b},image:e=>{let t,n,r,i,l,s,d,c,p,m,h=(0,o.c)(55),{diff:f,schemaType:g}=e,{t:C}=iJ(),{showFromValue:y}=PT(),{fromValue:x,toValue:b,fields:v,isChanged:j}=f,w=x?.asset?._ref,_=b?.asset?._ref;h[0]!==f?(t=aJ(f,["asset","_ref"]),h[0]=f,h[1]=t):t=h[1];let k=t;h[2]!==v?(n=Object.keys(v),h[2]=v,h[3]=n):n=h[3],h[4]!==v||h[5]!==n?(r=n.filter(e=>v[e].isChanged&&"_type"!==e),h[4]=v,h[5]=n,h[6]=r):r=h[6];let S=r;if(h[7]!==S||h[8]!==g.fields){let e;h[10]!==S?(e=e=>!PN.includes(e.name)&&S.includes(e.name),h[10]=S,h[11]=e):e=h[11],i=g.fields.filter(e).map(PH),h[7]=S,h[8]=g.fields,h[9]=i}else i=h[9];let T=i,I="changed";!w&&_?I="added":!_&&w&&(I="removed");let E=S.includes("asset"),$=S.includes("crop"),A=S.includes("hotspot"),D=$||A,z=E||D,M=D&&!E;h[12]!==I||h[13]!==k||h[14]!==$||h[15]!==A||h[16]!==f||h[17]!==w||h[18]!==x||h[19]!==M?(l=x&&w?(0,a.jsx)(M1,{annotation:k,style:PY,children:(0,a.jsx)(PB,{is:"from",id:w,diff:f,action:I,hotspot:M&&A?x.hotspot:void 0,crop:M&&$?x.crop:void 0})}):(0,a.jsx)(PO,{}),h[12]=I,h[13]=k,h[14]=$,h[15]=A,h[16]=f,h[17]=w,h[18]=x,h[19]=M,h[20]=l):l=h[20];let P=l;h[21]!==k||h[22]!==$||h[23]!==A||h[24]!==f||h[25]!==M||h[26]!==_||h[27]!==b?(s=b&&_?(0,a.jsx)(M1,{annotation:k,style:PY,children:(0,a.jsx)(PB,{is:"to",id:_,diff:f,hotspot:M&&A?b.hotspot:void 0,crop:M&&$?b.crop:void 0})}):(0,a.jsx)(PO,{}),h[21]=k,h[22]=$,h[23]=A,h[24]=f,h[25]=M,h[26]=_,h[27]=b,h[28]=s):s=h[28];let R=s;if(!P&&!R){let e,t;return h[29]!==C?(e=C("changes.image.no-asset-set"),h[29]=C,h[30]=e):e=h[30],h[31]!==e?(t=(0,a.jsx)(u.Zp,{padding:4,radius:2,tone:"transparent",children:(0,a.jsx)(u.EY,{muted:!0,size:1,align:"center",children:e})}),h[31]=e,h[32]=t):t=h[32],t}if(!j){let e;return h[33]!==k||h[34]!==f||h[35]!==_?(e=_?(0,a.jsx)(M1,{annotation:k,style:PY,children:(0,a.jsx)(PB,{id:_,is:"to",diff:f})}):null,h[33]=k,h[34]=f,h[35]=_,h[36]=e):e=h[36],e}let O=y?P:void 0;h[37]!==O||h[38]!==R?(d=(0,a.jsx)(RG,{align:"center",from:O,layout:"grid",to:R}),h[37]=O,h[38]=R,h[39]=d):d=h[39];let V=d;return h[40]!==I||h[41]!==k||h[42]!==E||h[43]!==V||h[44]!==z||h[45]!==C?(c=z&&(E?(0,a.jsx)(MJ,{annotations:k?[k]:[],description:function(e,t){switch(e){case"changed":return t("changes.changed-label");case"added":return t("changes.added-label");case"removed":return t("changes.removed-label");default:return"Unknown change"}}(I,C),children:V}):V),h[40]=I,h[41]=k,h[42]=E,h[43]=V,h[44]=z,h[45]=C,h[46]=c):c=h[46],h[47]!==f||h[48]!==T||h[49]!==g||h[50]!==z?(p=T.length>0&&(0,a.jsx)(u.az,{marginTop:z?4:3,children:(0,a.jsx)(Oo,{diff:f,schemaType:g,fields:T})}),h[47]=f,h[48]=T,h[49]=g,h[50]=z,h[51]=p):p=h[51],h[52]!==p||h[53]!==c?(m=(0,a.jsxs)(a.Fragment,{children:[c,p]}),h[52]=p,h[53]=c,h[54]=m):m=h[54],m},number:e=>{let t,n=(0,o.c)(3),{diff:r,schemaType:i}=e;return n[0]!==r||n[1]!==i?(t=(0,a.jsx)(RQ,{diff:r,schemaType:i,previewComponent:PU,layout:"inline"}),n[0]=r,n[1]=i,n[2]=t):t=n[2],t},reference:e=>{let t,n=(0,o.c)(3),{diff:r,schemaType:i}=e;return n[0]!==r||n[1]!==i?(t=(0,a.jsx)(RQ,{align:"center",diff:r,layout:"grid",path:"_ref",previewComponent:RC,schemaType:i}),n[0]=r,n[1]=i,n[2]=t):t=n[2],t},string:e=>{let t,n=(0,o.c)(5),{diff:r,schemaType:i}=e,{options:l}=i;if(l?.list){let e;return n[0]!==r||n[1]!==i?(e=(0,a.jsx)(RQ,{diff:r,previewComponent:Rx,schemaType:i}),n[0]=r,n[1]=i,n[2]=e):e=n[2],e}return n[3]!==r?(t=(0,a.jsx)(Rb,{children:(0,a.jsx)(Op,{diff:r})}),n[3]=r,n[4]=t):t=n[4],t}};function Rj(e,t){let n=e;for(;n;){let e=n?.components?.diff||function(e,t){let n;for(let r of Pv){if("function"!=typeof r){console.error("Diff component resolver is not a function: ",r);continue}if(n=r({schemaType:e,parentSchemaType:t}))return n}}(n,t)||Rv[n.name];if(e)return e;n=n.type}return Rv[["date","datetime"].includes(e.name)?e.name:e.jsonType]}function Rw(e,t,n=[],r=[],i={}
2655){if(!Rj(e,i.parentSchema)){if("object"===e.jsonType&&"object"===t.type)return R_(e,t,n,r,i);if("array"===e.jsonType&&"array"===t.type)return function(e,t,n=[],r=[]){let i=t.items.filter(e=>e.hasMoved&&e.fromIndex!==e.toIndex||"unchanged"!==e.diff.action);if(0===i.length)return[];let a=e.of.some(Ps),o=i.reduce((i,o)=>{var l;let s=(l=o.diff,"added"===l.action?{toType:M9(e,l.toValue)}:"changed"===l.action?{fromType:M9(e,l.fromValue),toType:M9(e,l.toValue)}:"removed"===l.action?{fromType:M9(e,l.fromValue)}:{toType:M9(e,l.toValue)}),d=s.toType||s.fromType;if(!d)return console.warn("Could not determine schema type for item at %s",aB(n)),i;let c=aU(o.diff.fromValue)||aU(o.diff.toValue)||t.items.indexOf(o),u=n.concat(c),p={itemDiff:o,parentDiff:t,parentSchema:e},m=r.concat({hasMoved:o.hasMoved,toIndex:o.toIndex,fromIndex:o.fromIndex,annotation:"unchanged"===o.diff.action?o.annotation:o.diff.annotation}),h=Rw(d,o.diff,u,m,p).map(e=>("field"===e.type&&aH(u,e.path)&&(e.itemDiff=o),e));return a&&h.filter(Pb).forEach((e,t,n)=>{e.showHeader=1===n.length,e.showIndex=o.fromIndex!==o.toIndex&&o.hasMoved}),0===h.length?i.push(...Rk(d,o.diff,u,m,p)):i.push(...h),i},[]);return o.length>1?[{type:"group",key:aB(n)||"root",path:n,titlePath:r,changes:RS(o,r.length),schemaType:e}]:o}(e,t,n,r)}return Rk(e,t,n,r,i)}function R_(e,t,n=[],r=[],i={}){let a=[],o={...i,parentSchema:e};for(let i of e.fieldsets||e.fields.map(e=>({single:!0,field:e})))i.single?a.push(...function(e,t,n,r,i={}){let{fieldFilter:a,...o}=i,l=t.fields[e.name];if(!l||!l.isChanged||a&&!a.includes(e.name))return[];let s=n.concat([e.name]),d=r.concat([e.type.title||e.name]);return Rw(e.type,l,s,d,o)}(i.field,t,n,r,o)):a.push(...function(e,t,n,r,i={}){let{fields:a,name:o,title:l,readOnly:s,hidden:d}=e,{fieldFilter:c,...u}=i,p=r.concat([l||o]),m=[];for(let e of a){let r=t.fields[e.name];if(!r||!r.isChanged||c&&!c.includes(e.name))continue;let i=n.concat([e.name]),a=p.concat([e.type.title||e.name]);m.push(...Rw({readOnly:s,hidden:d,...e.type},r,i,a,u))}return m.length<2?m:[{type:"group",key:aB(n)||"root",fieldsetName:o,path:n,titlePath:p,changes:RS(m,p.length),readOnly:s,hidden:d}]}(i,t,n,r,o));return a.length<2?a:[{type:"group",key:aB(n)||"root",path:n,titlePath:r,changes:RS(a,r.length),schemaType:e}]}function Rk(e,t,n,r,{itemDiff:i,parentDiff:a,parentSchema:o}={}){let l,{fromValue:s,toValue:d,type:c}=t;if("array"===c&&RT(s)&&RT(d))return[];"u">typeof s&&(l=Px(s,e)),!l&&"u">typeof d&&(l=Px(d,e));let u=!0,p,m=Rj(e,o);return m&&"function"==typeof m?p=m:m&&(p=m.component,u=typeof m.showHeader>"u"?u:m.showHeader),[{type:"field",diff:t,path:n,error:l,itemDiff:i,parentDiff:a,titlePath:r,schemaType:e,showHeader:u,showIndex:!0,key:aB(n)||"root",diffComponent:l?void 0:p,parentSchema:o}]}function RS(e,t=1){return e.map(e=>(e.titlePath=e.titlePath.slice(t),e))}function RT(e){return Array.isArray(e)&&0===e.length||null===e||typeof e>"u"}let RI=e=>"field"===e.type&&"added"===e.diff.action,RE=e=>{if("group"!==e.type)return[e];let t=[];
2655return e.changes.forEach(e=>{t.push(...RE(e))}),t},R$=(e,t)=>{if(t.length>=e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0},RA=(e,t)=>{let n=aZ(e[t]);return n?{_key:n}:Array.isArray(e)?parseInt(t,10):t},RD={diffMatchPatch:{enabled:!1,lengthThresholdAbsolute:30,lengthThresholdRelative:1.2}};function Rz(e,t,n){if(!t)return;let r=[];if("group"===e.type){let i=RE(e),a=i.filter(RI);i.filter(e=>!RI(e)).forEach(e=>Rz(e,t,n)),r.push(...RM(t,a.map(e=>e.path).reverse()))}else"added"===e.diff.action?r.push(...RM(t,[e.path])):"field"===e.type&&e.itemDiff&&e.parentDiff&&"array"===e.parentDiff.type&&e.itemDiff.hasMoved?r.push(...function(e,t,n){let r,i=n.slice(0,-1),{parentValue:a,fromIndex:o,fromValue:l}=function(e,t){if(e.fromValue&&"number"==typeof t.fromIndex){let n=e.fromValue[t.fromIndex];return{parentValue:e.fromValue,fromIndex:t.fromIndex,fromValue:n}}throw Error(`Failed to find item at index ${t.fromIndex}`)}(t,e);if(0===o)r={before:aB([...i,0])};else{let e=o-1;r={after:aB([...i,aU(a[e])||e])}}return[{unset:[aB(n)]},{insert:{...r,items:[l]}}]}(e.itemDiff,e.parentDiff,e.path)):r.push(...function(e,t,n){let r=(0,rz.Jy)(e.toValue,e.fromValue,RD,n),i=r.filter(e=>"insert"===e.op).map(({after:e,items:t})=>({insert:{after:aB(e),items:t}})),a=r.filter(e=>"unset"===e.op).reduce((e,t)=>e.concat(aB(t.path)),[]),o=new Set,l=[],s=!1,d=r.filter(e=>"set"===e.op).reduce((e,n)=>(s=!0,l.push(...function(e,t,n){let r=t.fromValue,i=t.toValue,a=[];for(let t=1;t<=e.length;t++){let o=e.slice(0,t),l=aB(o);if(n.has(l))continue;let s=e[t],d=(0,_.tA)(s)||(0,_.wr)(s),c=aN(r,o),u=RP(c);if(d&&Array.isArray(c)&&!aN(i,e.slice(0,t+1))){let e=function(e,t){return"number"==typeof t||(0,_.tA)(t)?"number"==typeof t?t:e.findIndex(e=>(0,_.o8)(e)&&e._key===t._key):-1}(c,s),n=c[e-1],i=aN(r,o.concat(s)),d=(0,_.o8)(n)?{_key:n._key}:e-1,u=aB(o.concat(e<1?0:d));a.push({setIfMissing:{[l]:[]}}),a.push({insert:{after:u,items:[RP(i)]}}),t++;continue}typeof u>"u"||(n.add(l),a.push({setIfMissing:{[l]:u}}))}return a}(n.path,t,o)),e[aB(n.path)]=n.value,e),{});return[...l,...i,...a.length>0?[{unset:a}]:[],...s?[{set:d}]:[]]}(e.diff,t,e.path));n.patch.execute(r)}function RM(e,t){let n=[];for(let i=0;i<t.length;i++){var r;n.some(e=>R$(t[i],e))||n.push((r=t[i],function e(t,n,r=[],i){if(n.length<=0)throw Error("Root has no ancestor");let a=n.slice(0,-1),o=aN(t,a),l=[a,...r.filter(e=>!R$(e,a))];return function e(t,n,r){let i=r?.some(e=>aB(e)===aB(n)),a=Array.isArray(t)&&t.length<=0;return i||null==t||a||"object"==typeof t&&null!==t&&Object.keys(t).length<=0||function(t,n,r){if(!iI(t)||!Array.isArray(t))return!1;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i)||"_type"===i||"_key"===i)continue;let a=[...n,RA(t,i)];if(!e(t[i],a,r))return!1}return!0}(t,n,r)}(o,a,r)?e(t,a,l):n}(e.toValue,r,t)))}return[{unset:[...new Set(n.map(aB))]}]}function RP(e){if(Array.isArray(e))return[];if("object"!=typeof e||null===e)return;let t={};return(0,_.o8)(e)&&(t._key=e._key),(0,_.Kk)(e)&&(t._type=e._type),t}let RR=g.I4.div`
2656  display: grid;
2657  grid-template-columns: minmax(0, 1fr);
2658`;class RO extends s.Component{static getDerivedStateFromError(e){return{error:e}}state={};componentDidCatch(e){console.error("Error rendering diff component: "),console.error(e)}render(){let{t:e}=this.props,{error:t}=this.state;return t?(0,a.jsx)(u.Zp,{padding:3,radius:2,tone:"critical",children:(0,a.jsxs)(u.so,{children:[(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.YZv,{})}),(0,a.jsxs)(u.az,{paddingLeft:3,children:[(0,a.jsx)(u.EY,{as:"h3",size:1,weight:"medium",children:e("changes.error-boundary.title")}),ar&&(0,a.jsx)(u.az,{marginTop:2,children:(0,a.jsx)(u.EY,{as:"p",size:1,children:e("changes.error-boundary.developer-info")})})]})]})}):this.props.children}}let RV={down:C.ZLN,right:C.flY};function RL(e){let t,n,r,i,l=(0,o.c)(8);l[0]!==e?({direction:n,...t}=e,l[0]=e,l[1]=t,l[2]=n):(t=l[1],n=l[2]);let s=RV[void 0===n?"right":n];return l[3]!==s?(r=(0,a.jsx)(s,{}),l[3]=s,l[4]=r):r=l[4],l[5]!==t||l[6]!==r?(i=(0,a.jsx)(u.EY,{muted:!0,size:1,...t,children:r}),l[5]=t,l[6]=r,l[7]=i):i=l[7],i}let RF=g.I4.pre`
2659  overflow-x: auto;
2660  position: relative;
2661`,RB=g.I4.div`
2662  position: absolute;
2663  top: 0;
2664  right: 0;
2665`;function RN(e){let t,n,r,i,l,d,c,p,m,h,f,g=(0,o.c)(18);g[0]!==e?({children:r,as:t,change:n,...i}=e,g[0]=e,g[1]=t,g[2]=n,g[3]=r,g[4]=i):(t=g[1],n=g[2],r=g[3],i=g[4]);
2665let C=(0,s.useRef)(!1),[y,x]=(0,s.useState)(!1);g[5]===Symbol.for("react.memo_cache_sentinel")?(l=()=>x(RY),g[5]=l):l=g[5];let b=l;g[6]===Symbol.for("react.memo_cache_sentinel")?(d=()=>C.current=!0,g[6]=d):d=g[6];let v=d;g[7]===Symbol.for("react.memo_cache_sentinel")?(c=()=>C.current=!1,g[7]=c):c=g[7];let j=c;return g[8]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{let e=function(e){let{metaKey:t,key:n}=e;t&&"i"===n&&C.current&&b()};return window.addEventListener("keydown",e,!1),()=>window.removeEventListener("keydown",e,!1)},m=[b],g[8]=p,g[9]=m):(p=g[8],m=g[9]),(0,s.useEffect)(p,m),g[10]!==n||g[11]!==r||g[12]!==y?(h=y?(0,a.jsx)(RZ,{change:n}):r,g[10]=n,g[11]=r,g[12]=y,g[13]=h):h=g[13],g[14]!==t||g[15]!==i||g[16]!==h?(f=(0,a.jsx)(u.az,{as:t,onMouseEnter:v,onMouseLeave:j,...i,children:h}),g[14]=t,g[15]=i,g[16]=h,g[17]=f):f=g[17],f}function RY(e){return!e}let RH=e=>{let t,n=(0,o.c)(2),{title:r}=e;return n[0]!==r?(t=(0,a.jsx)(u.az,{padding:3,display:"inline-block",as:RB,children:(0,a.jsx)(u.EY,{muted:!0,size:1,weight:"medium",children:r})}),n[0]=r,n[1]=t):t=n[1],t};function RZ(e){let t,n,r,i,l,s,d,c,p,m,h,f,g,C,y,x,b,v=(0,o.c)(43),{change:j}=e,{t:w}=iJ();return v[0]!==w?(t=w("changes.inspector.meta-label"),v[0]=w,v[1]=t):t=v[1],v[2]!==t?(n=(0,a.jsx)(RH,{title:t}),v[2]=t,v[3]=n):n=v[3],v[4]!==j.diff.action||v[5]!==j.diff.isChanged||v[6]!==j.itemDiff?.fromIndex||v[7]!==j.itemDiff?.hasMoved||v[8]!==j.itemDiff?.toIndex||v[9]!==j.path?(r=function(e){let t=[];return Object.entries(e).forEach(([e,n])=>{"u">typeof n&&null!==n&&t.push(`${e}: ${n}`)}),t.join(`
2666`)}({path:aB(j.path),fromIndex:j.itemDiff?.fromIndex,toIndex:j.itemDiff?.toIndex,hasMoved:j.itemDiff?.hasMoved,action:j.diff.action,isChanged:j.diff.isChanged}),v[4]=j.diff.action,v[5]=j.diff.isChanged,v[6]=j.itemDiff?.fromIndex,v[7]=j.itemDiff?.hasMoved,v[8]=j.itemDiff?.toIndex,v[9]=j.path,v[10]=r):r=v[10],v[11]!==r?(i=(0,a.jsx)(u.Cy,{language:"json",size:1,children:r}),v[11]=r,v[12]=i):i=v[12],v[13]!==n||v[14]!==i?(l=(0,a.jsxs)(u.Zp,{padding:3,tone:"transparent",as:RF,radius:1,children:[n,i]}),v[13]=n,v[14]=i,v[15]=l):l=v[15],v[16]!==w?(s=w("changes.inspector.from-label"),v[16]=w,v[17]=s):s=v[17],v[18]!==s?(d=(0,a.jsx)(RH,{title:s}),v[18]=s,v[19]=d):d=v[19],v[20]!==j.diff.fromValue?(c=RU(j.diff.fromValue),v[20]=j.diff.fromValue,v[21]=c):c=v[21],v[22]!==c?(p=(0,a.jsx)(u.Cy,{language:"json",size:1,children:c}),v[22]=c,v[23]=p):p=v[23],v[24]!==d||v[25]!==p?(m=(0,a.jsxs)(u.Zp,{as:RF,tone:"critical",padding:3,radius:1,children:[d,p]}),v[24]=d,v[25]=p,v[26]=m):m=v[26],v[27]===Symbol.for("react.memo_cache_sentinel")?(h=(0,a.jsx)(u.Zp,{children:(0,a.jsx)(RL,{direction:"down",align:"center"})}),v[27]=h):h=v[27],v[28]!==w?(f=w("changes.inspector.to-label"),v[28]=w,v[29]=f):f=v[29],v[30]!==f?(g=(0,a.jsx)(RH,{title:f}),v[30]=f,v[31]=g):g=v[31],v[32]!==j.diff.toValue?(C=RU(j.diff.toValue),v[32]=j.diff.toValue,v[33]=C):C=v[33],v[34]!==C?(y=(0,a.jsx)(u.Cy,{language:"json",size:1,children:C}),v[34]=C,v[35]=y):y=v[35],v[36]!==g||v[37]!==y?(x=(0,a.jsxs)(u.Zp,{as:RF,tone:"positive",padding:3,radius:1,children:[g,y]}),v[36]=g,v[37]=y,v[38]=x):x=v[38],v[39]!==m||v[40]!==x||v[41]!==l?(b=(0,a.jsxs)(u.BJ,{space:3,children:[l,m,h,x]}),v[39]=m,v[40]=x,v[41]=l,v[42]=b):b=v[42],b}function RU(e){return typeof e>"u"?"undefined":JSON.stringify(e,null,2)}function Rq(e){return null!==e&&"u">typeof e&&""!==e}let RJ={flexShrink:0},RW={alignItems:"stretch"},RK={top:"flex-start",center:"center",bottom:"flex-end",default:"flex-start"},RG=(0,s.forwardRef)(function(e,t){let n,r,i,l,s,d,c,p,m,h,f,g,C=(0,o.c)(28);C[0]!==e?({align:l,layout:s,from:n,to:d,style:i,...r}=e,C[0]=e,C[1]=n,C[2]=r,C[3]=i,C[4]=l,C[5]=s,C[6]=d):(n=C[1],r=C[2],i=C[3],l=C[4],s=C[5],d=C[6]);let y=void 0===l?"top":l,x=void 0===s?"inline":s,b=(0,u.DP)(),v="inline"===x?u.so:u.xA;C[7]!==x||C[8]!==b?(p="inline"===x?{maxWidth:"100%",display:"inline-flex"}:{gridTemplateColumns:`minmax(0, 1fr) ${(0,u.D0)(b.sanity.space[5])} minmax(0, 1fr)`},C[7]=x,C[8]=b,C[9]=p):p=C[9],C[10]!==i||C[11]!==p?(m={...i,...p},C[10]=i,C[11]=p,C[12]=m):m=C[12],c=m;let j="inline"===x?RJ:RW;C[13]!==y||C[14]!==j||C[15]!==n?(h=n&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.so,{align:RK[y],style:j,children:n}),(0,a.jsx)(u.so,{align:"center",justify:"center",padding:2,children:(0,a.jsx)(RL,{})})]}),C[13]=y,C[14]=j,C[15]=n,C[16]=h):h=C[16];let w=RK[y];return C[17]!==j||C[18]!==w||C[19]!==d?(f=(0,a.jsx)(u.so,{align:w,style:j,children:d}),C[17]=j,C[18]=w,C[19]=d,C[20]=f):f=C[20],C[21]!==v||C[22]!==c||C[23]!==t||C[24]!==r||C[25]!==h||C[26]!==f?(g=(0,a.jsxs)(v,{...r,ref:t,style:c,"data-from-to-layout":!0,children:[h,f]}
2666),C[21]=v,C[22]=c,C[23]=t,C[24]=r,C[25]=h,C[26]=f,C[27]=g):g=C[27],g}),RX={flex:1,minWidth:0,display:"block",whiteSpace:"break-spaces"};function RQ(e){let t,n,r,i,l=(0,o.c)(39),{align:s,cardClassName:d,diff:c,layout:u,path:p,previewComponent:m,schemaType:h}=e,{action:f}=c,g=function(e){let t,n=(0,o.c)(6),{t:r}=iJ(),i=Rq(e.fromValue),a=Rq(e.toValue);if(!i&&a){let e;return n[0]!==r?(e=r("changes.added-label"),n[0]=r,n[1]=e):e=n[1],e}if(!a&&i){let e;return n[2]!==r?(e=r("changes.removed-label"),n[2]=r,n[3]=e):e=n[3],e}return n[4]!==r?(t=r("changes.changed-label"),n[4]=r,n[5]=t):t=n[5],t}(c);if("unchanged"===f){let e,t;return l[0]!==m||l[1]!==c.toValue||l[2]!==h?(e=(0,a.jsx)(m,{schemaType:h,value:c.toValue}),l[0]=m,l[1]=c.toValue,l[2]=h,l[3]=e):e=l[3],l[4]!==d||l[5]!==e?(t=(0,a.jsx)(M1,{className:d,style:RX,children:e}),l[4]=d,l[5]=e,l[6]=t):t=l[6],t}l[7]!==m||l[8]!==d||l[9]!==c||l[10]!==p||l[11]!==h?(t=void 0!==c.fromValue&&null!==c.fromValue&&(0,a.jsx)(M1,{as:"del",className:d,diff:c,path:p,style:RX,children:(0,a.jsx)(m,{schemaType:h,value:c.fromValue})}),l[7]=m,l[8]=d,l[9]=c,l[10]=p,l[11]=h,l[12]=t):t=l[12];let C=t;l[13]!==m||l[14]!==d||l[15]!==c||l[16]!==p||l[17]!==h?(n=void 0!==c.toValue&&null!==c.toValue&&(0,a.jsx)(M1,{as:"ins",className:d,diff:c,path:p,style:RX,children:(0,a.jsx)(m,{schemaType:h,value:c.toValue})}),l[13]=m,l[14]=d,l[15]=c,l[16]=p,l[17]=h,l[18]=n):n=l[18];let y=n;if(C&&!y){let e;return l[19]!==g||l[20]!==c||l[21]!==C||l[22]!==p?(e=(0,a.jsx)(MJ,{description:g,diff:c,path:p,children:C}),l[19]=g,l[20]=c,l[21]=C,l[22]=p,l[23]=e):e=l[23],e}if(!C&&y){let e;return l[24]!==g||l[25]!==c||l[26]!==p||l[27]!==y?(e=(0,a.jsx)(MJ,{description:g,diff:c,path:p,children:y}),l[24]=g,l[25]=c,l[26]=p,l[27]=y,l[28]=e):e=l[28],e}return l[29]!==s||l[30]!==C||l[31]!==u||l[32]!==y?(r=(0,a.jsx)(RG,{align:s,from:C,layout:u,to:y}),l[29]=s,l[30]=C,l[31]=u,l[32]=y,l[33]=r):r=l[33],l[34]!==g||l[35]!==c||l[36]!==p||l[37]!==r?(i=(0,a.jsx)(MJ,{description:g,diff:c,path:p,children:r}),l[34]=g,l[35]=c,l[36]=p,l[37]=r,l[38]=i):i=l[38],i}let R1=e=>{let t,n=(0,o.c)(3),{value:r,schemaType:i}=e;return n[0]!==i||n[1]!==r?(t=(0,a.jsx)(u.az,{padding:2,children:(0,a.jsx)(DM,{schemaType:i,value:r,layout:"default"})}),n[0]=i,n[1]=r,n[2]=t):t=n[2],t},R2=e=>{let t,n=(0,o.c)(3),{diff:r,schemaType:i}=e;return n[0]!==r||n[1]!==i?(t=(0,a.jsx)(RQ,{diff:r,schemaType:i,previewComponent:R1,layout:"grid"}),n[0]=r,n[1]=i,n[2]=t):t=n[2],t},R5=g.I4.div`
2667  --field-change-error: ${({theme:e})=>e.sanity.color.solid.critical.enabled.bg};
2668  &[data-revert-all-changes-hover] [data-revert-all-hover]::before {
2669    border-left: 2px solid var(--field-change-error);
2670  }
2671`,R0=g.I4.div`
2672  --field-change-error: ${({theme:e})=>e.sanity.color.solid.critical.enabled.bg};
2673  --diff-inspect-padding-xsmall: ${({theme:e})=>(0,u.D0)(e.sanity.space[1])};
2674  --diff-inspect-padding-small: ${({theme:e})=>(0,u.D0)(e.sanity.space[2])};
2675
2676  position: relative;
2677  padding: var(--diff-inspect-padding-xsmall) 0 var(--diff-inspect-padding-xsmall)
2678    var(--diff-inspect-padding-small);
2679
2680  &::before {
2681    content: '';
2682    display: block;
2683    position: absolute;
2684    top: 0;
2685    left: 0;
2686    bottom: 0;
2687    border-left: 1px solid var(--card-border-color);
2688  }
2689
2690  &[data-error]:hover::before,
2691  &[data-revert-field-hover]:hover::before {
2692    border-left: 2px solid var(--field-change-error);
2693  }
2694`,R7=(0,g.I4)(y.$n)`
2695  [data-ui='Text'] {
2696    font-weight: normal;
2697  }
2698
2699  div[data-ui='Box'] {
2700    display: none;
2701  }
2702
2703  &:not([data-disabled='true']):hover,
2704  &:not([data-disabled='true']):focus {
2705    --card-fg-color: ${({theme:e})=>e.sanity.color.solid.critical.enabled.bg};
2706    --card-bg-color: transparent;
2707    --card-border-color: transparent;
2708
2709    div[data-ui='Box'] {
2710      display: block;
2711    }
2712  }
2713`,R3=(0,s.forwardRef)(function(e,t){let n,r,i,l,s,d=(0,o.c)(12);d[0]!==e?({selected:i,changeCount:n,...r}=e,d[0]=e,d[1]=n,d[2]=r,d[3]=i):(n=d[1],r=d[2],i=d[3]);let{t:c}=iJ();return d[4]!==n||d[5]!==c?(l=c("changes.action.revert-changes-confirm-change",{count:n}),d[4]=n,d[5]=c,d[6]=l):l=d[6],d[7]!==t||d[8]!==r||d[9]!==i||d[10]!==l?(s=(0,a.jsx)(R7,{icon:C.AAk,selected:i,text:l,mode:"bleed",ref:t,tooltipProps:null,...r}),d[7]=t,d[8]=r,d[9]=i,d[10]=l,d[11]=s):s=d[11],s});function R8(e){let t,n,r,i=(0,o.c)(8),{error:l}=e,{t:s}=iJ();return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(u.az,{children:(0,a.jsx)(u.EY,{children:(0,a.jsx)(C.YZv,{})})}),i[0]=t):t=i[0],i[1]!==l.actualType||i[2]!==l.expectedType||i[3]!==l.messageKey||i[4]!==s?(n=s(l.messageKey,{expectedType:l.expectedType,actualType:l.actualType}),i[1]=l.actualType,i[2]=l.expectedType,i[3]=l.messageKey,i[4]=s,i[5]=n):n=i[5],i[6]!==n?(r=(0,a.jsx)(u.Zp,{tone:"critical",padding:3,children:(0,a.jsxs)(u.so,{align:"flex-start",children:[t,(0,a.jsx)(u.az,{flex:1,paddingLeft:3,children:(0,a.jsx)(u.EY,{size:1,as:"p",children:n})})]})}),i[6]=n,i[7]=r):r=i[7],r}let R4=e=>{let t=(0,o.c)(8),{children:n,path:r,hasRevertHover:i,wrap:l}=e,{FieldWrapper:d}=PT(),c=void 0===d?s.Fragment:d;if(l){let e,o,l=0;for(let e=0;e<r.length;e++)"string"!=typeof r[e]&&(l=e);return t[0]!==l||t[1]!==r?(e=r.slice(0,l+1),t[0]=l,t[1]=r,t[2]=e):e=t[2],t[3]!==c||t[4]!==n||t[5]!==i||t[6]!==e?(o=(0,a.jsx)(c,{path:e,hasRevertHover:i,children:n}),t[3]=c,t[4]=n,t[5]=i,t[6]=e,t[7]=o):o=t[7],o}return n};function R6(e){let t,n,r,i,l,d,p,m,h,f,g,C,x,b=(0,o.c)(36),{change:v,hidden:j,readOnly:w,addParentWrapper:_}=e,k=v.diffComponent||R2,{documentId:S,schemaType:T,rootDiff:I,isComparingCurrent:E,FieldWrapper:$}
2713=PT(),A=void 0===$?s.Fragment:$,D=FE(S,T.name),[z,M]=(0,s.useState)(!1),[P,R]=(0,s.useState)(!1),O=(0,s.useRef)(null),{t:V}=iJ();b[0]!==S||b[1]!==T.name?(t={id:S,type:T.name,permission:"update"},b[0]=S,b[1]=T.name,b[2]=t):t=b[2];let[L,F]=Cp(t);b[3]!==v||b[4]!==D||b[5]!==I?(n=()=>{Rz(v,I,D)},b[3]=v,b[4]=D,b[5]=I,b[6]=n):n=b[6];let B=n;b[7]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{M(!0)},b[7]=r):r=b[7];let N=r;b[8]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{M(!1)},b[8]=i):i=b[8];let Y=i;b[9]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{R(!0)},b[9]=l):l=b[9];let H=l;b[10]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{R(!1)},b[10]=d):d=b[10];let Z=d;b[11]===Symbol.for("react.memo_cache_sentinel")?(p=()=>M(!1),m=()=>[O.current],b[11]=p,b[12]=m):(p=b[11],m=b[12]),(0,u.PR)(p,m);let U=v.parentSchema?.jsonType==="array"&&!v.parentSchema.of.some(R9);b[13]!==v.path||b[14]!==U?(h=U?v.path.slice(0,-1):v.path,b[13]=v.path,b[14]=U,b[15]=h):h=b[15];let q=h;return b[16]!==v.path?(g={path:v.path},b[16]=v.path,b[17]=g):g=b[17],f=g,b[18]!==k||b[19]!==A||b[20]!==_||b[21]!==v||b[22]!==z||b[23]!==q||b[24]!==B||b[25]!==j||b[26]!==E||b[27]!==F||b[28]!==L?.granted||b[29]!==w||b[30]!==P||b[31]!==V||b[32]!==f?(C=()=>j?null:(0,a.jsxs)(u.BJ,{space:1,as:R5,children:[v.showHeader&&(0,a.jsx)(M4,{change:v,titlePath:v.titlePath}),(0,a.jsx)(R4,{path:q,hasRevertHover:P,wrap:!!_,children:(0,a.jsx)(A,{path:q,hasRevertHover:P,children:(0,a.jsxs)(RN,{change:v,as:R0,"data-revert-field-hover":P?"":void 0,"data-error":v.error?"":void 0,"data-revert-all-hover":!0,"data-ui":"field-diff-inspect-wrapper",children:[v.error?(0,a.jsx)(R8,{error:v.error}):(0,a.jsx)(RO,{t:V,children:(0,a.jsx)(c.DR.Provider,{value:f,children:(0,a.jsx)(k,{diff:v.diff,schemaType:v.schemaType})})}),E&&!F&&L?.granted&&(0,a.jsx)(y.AM,{content:(0,a.jsxs)(u.BJ,{space:3,children:[(0,a.jsx)(u.az,{paddingY:3,children:(0,a.jsx)(u.EY,{size:1,children:V("changes.action.revert-changes-description",{count:1})})}),(0,a.jsxs)(u.so,{gap:3,justify:"flex-end",children:[(0,a.jsx)(y.$n,{mode:"ghost",onClick:Y,text:V("changes.action.revert-all-cancel")}),(0,a.jsx)(y.$n,{tone:"critical",onClick:B,text:V("changes.action.revert-changes-confirm-change",{count:1})})]})]}),open:z,padding:3,portal:!0,placement:"left",ref:O,children:(0,a.jsx)(R3,{changeCount:1,onClick:N,onMouseEnter:H,onMouseLeave:Z,selected:z,disabled:w,"data-testid":`single-change-revert-button-${v?.key}`})})]})})})]}),b[18]=k,b[19]=A,b[20]=_,b[21]=v,b[22]=z,b[23]=q,b[24]=B,b[25]=j,b[26]=E,b[27]=F,b[28]=L?.granted,b[29]=w,b[30]=P,b[31]=V,b[32]=f,b[33]=C):C=b[33],b[34]!==C?(x=C(),b[34]=C,b[35]=x):x=b[35],x}function R9(e){return e.type?.name==="block"}function Oe(){}let Ot=g.I4.div`
2714  display: grid;
2715  grid-template-columns: minmax(0, 1fr);
2716`,On=g.I4.div`
2717  --field-change-error: ${({theme:e})=>e.sanity.color.solid.critical.enabled.bg};
2718  --diff-inspect-padding-xsmall: ${({theme:e})=>(0,u.D0)(e.sanity.space[1])};
2719  --diff-inspect-padding-small: ${({theme:e})=>(0,u.D0)(e.sanity.space[2])};
2720
2721  position: relative;
2722  padding: var(--diff-inspect-padding-xsmall) var(--diff-inspect-padding-small);
2723
2724  &::before {
2725    content: '';
2726    display: block;
2727    position: absolute;
2728    top: 0;
2729    left: 0;
2730    bottom: 0;
2731    border-left: 1px solid var(--card-border-color);
2732  }
2733
2734  &[data-error]:hover::before,
2735  &[data-revert-group-hover]:hover::before,
2736  &[data-revert-all-groups-hover]::before {
2737    border-left: 2px solid var(--field-change-error);
2738  }
2739`;function Or(e){let{change:t,readOnly:n,hidden:r,...i}=e,{titlePath:l,changes:d,path:p}=t,{path:m}=(0,s.useContext)(c.DR),{documentId:h,schemaType:f,FieldWrapper:g=s.Fragment,rootDiff:C,isComparingCurrent:x}=PT(),{t:b}=iJ(),v=d.every(e=>Pb(e)&&Ps(e.schemaType)),j=aH(m,p),[w,_]=function(){let e,t,n,r=(0,o.c)(4),i=(0,s.useRef)(null),[a,l]=(0,s.useState)(!1);return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{let e=i.current;if(!e)return Oe;let t=()=>l(!0),n=()=>l(!1);return e.addEventListener("mouseover",t),e.addEventListener("mouseout",n),()=>{e.removeEventListener("mouseover",t),e.removeEventListener("mouseout",n)}},t=[],r[0]=e,r[1]=t):(e=r[0],t=r[1]),(0,s.useEffect)(e,t),r[2]!==a?(n=[i,a],r[2]=a,r[3]=n):n=r[3],n}
2739(),k=FE(h,f.name),[S,T]=(0,s.useState)(!1),I=(0,s.useRef)(null),[E,$]=Cp({id:h,type:f.name,permission:"update"}),A=(0,s.useCallback)(()=>Rz(t,C,k),[t,C,k]),D=(0,s.useCallback)(()=>{T(!0)},[]),z=(0,s.useCallback)(()=>{T(!1)},[]);(0,u.PR)(()=>T(!1),()=>[I.current]);let M=(0,s.useMemo)(()=>r?null:(0,a.jsxs)(u.BJ,{space:1,as:On,"data-ui":"group-change-content","data-revert-group-hover":_?"":void 0,"data-portable-text":v?"":void 0,children:[(0,a.jsx)(u.BJ,{as:Ot,space:5,"data-ui":"group-change-list",children:d.map(e=>(0,a.jsx)(Oi,{change:e,readOnly:n,hidden:r,addParentWrapper:e.path.length-t.path.length>1},e.key))}),x&&!$&&E?.granted&&(0,a.jsx)(y.AM,{content:(0,a.jsxs)(u.BJ,{space:3,children:[(0,a.jsx)(u.az,{paddingY:3,children:(0,a.jsx)(u.EY,{size:1,children:b("changes.action.revert-changes-description",{count:d.length})})}),(0,a.jsxs)(u.so,{gap:3,justify:"flex-end",children:[(0,a.jsx)(y.$n,{mode:"ghost",onClick:z,text:b("changes.action.revert-all-cancel")}),(0,a.jsx)(y.$n,{tone:"critical",onClick:A,text:b("changes.action.revert-changes-confirm-change",{count:1})})]})]}),padding:3,portal:!0,placement:"left",open:S,ref:I,children:(0,a.jsx)(u.az,{children:(0,a.jsx)(R3,{changeCount:d.length,onClick:D,ref:w,selected:S,disabled:n,"data-testid":`group-change-revert-button-${t.fieldsetName}`})})})]}),[d,z,S,t.fieldsetName,t.path.length,A,D,r,x,$,v,_,E?.granted,n,w,b]),P=t.schemaType?.jsonType==="array"&&t.schemaType.of.some(e=>"block"===e.name);return r?null:(0,a.jsxs)(u.BJ,{space:1,...i,children:[(0,a.jsx)(M4,{titlePath:l}),j||P?M:(0,a.jsx)(g,{hasRevertHover:_,path:p,children:M})]})}function Oi(e){let t,n,r,i=(0,o.c)(18),{change:l,hidden:d,readOnly:c}=e,{value:p}=PT(),m=void 0===p?s.Fragment:p,h=d||l.schemaType?.hidden,f="field"===l.type?l.diff.toValue:void 0;i[0]!==m||i[1]!==h||i[2]!==f?(t={document:m,checkProperty:h,checkPropertyKey:"hidden",value:f},i[0]=m,i[1]=h,i[2]=f,i[3]=t):t=i[3];let g=M6(t),C=c||l.schemaType?.readOnly,y="field"===l.type?l.diff.toValue:void 0;i[4]!==m||i[5]!==C||i[6]!==y?(n={document:m,checkProperty:C,checkPropertyKey:"readOnly",value:y},i[4]=m,i[5]=C,i[6]=y,i[7]=n):n=i[7];let x=M6(n);if(g)return null;if("field"===l.type){let t;return i[8]!==l||i[9]!==x||i[10]!==e.addParentWrapper?(t=(0,a.jsx)(R6,{change:l,readOnly:x,addParentWrapper:e.addParentWrapper}),i[8]=l,i[9]=x,i[10]=e.addParentWrapper,i[11]=t):t=i[11],t}if("group"===l.type){let e,t=`group-change-${l.fieldsetName}`;return i[12]!==l||i[13]!==x||i[14]!==t?(e=(0,a.jsx)(Or,{change:l,"data-testid":t,readOnly:x}),i[12]=l,i[13]=x,i[14]=t,i[15]=e):e=i[15],e}let b=l.type||"undefined";return i[16]!==b?(r=(0,a.jsxs)(u.EY,{children:["Unknown change type: ",(0,a.jsx)("code",{children:b})]}),i[16]=b,i[17]=r):r=i[17],r}function Oa(){let e,t,n,r,i,l=(0,o.c)(11),{t:s}=iJ();return l[0]!==s?(e=s("changes.no-changes-title"),l[0]=s,l[1]=e):e=l[1],l[2]!==e?(t=(0,a.jsx)(u.EY,{size:1,weight:"medium",as:"h3",children:e}),l[2]=e,l[3]=t):t=l[3],l[4]!==s?(n=s("changes.no-changes-description"),l[4]=s,l[5]=n):n=l[5],l[6]!==n?(r=(0,a.jsx)(u.EY,{as:"p",size:1,muted:!0,children:n}),l[6]=n,l[7]=r):r=l[7],l[8]!==t||l[9]!==r?(i=(0,a.jsxs)(u.BJ,{space:3,paddingTop:2,children:[t,r]}),l[8]=t,l[9]=r,l[10]=i):i=l[10],i}function Oo({diff:e,fields:t,schemaType:n}){let{documentId:r,isComparingCurrent:i,value:o}=PT(),l=FE(r,n.name),{path:d}=(0,s.useContext)(c.DR),p=0===d.length,[m,h]=(0,s.useState)(!1),[f,g]=(0,s.useState)(!1),{t:x}=iJ(),b=M6({document:o,value:void 0,checkProperty:n.readOnly,checkPropertyKey:"readOnly"});if("object"!==n.jsonType)throw Error("Only object schema types are allowed in ChangeList");let[v,j]=Cp({id:r,type:n.name,permission:"update"}),w=(0,s.useMemo)(()=>R_(n,e,d,[],{fieldFilter:t}),[n,t,d,e]),_=(0,s.useMemo)(()=>{var e;return t&&0===t.length?[]:1===(e=w).length&&"group"===e[0].type&&0===e[0].path.length?e[0].changes:e},[w,t]),k=w[0],S=(0,s.useCallback)(()=>{Rz(k,e,l),h(!1)},[k,e,l]),T=(0,s.useCallback)(()=>{h(!0)},[]),I=(0,s.useCallback)(()=>{g(!0)},[]),E=(0,s.useCallback)(()=>{g(!1)},[]),$=(0,s.useCallback)(()=>{h(!1)},[]),A=(0,s.useRef)(null);if((0,u.PR)(()=>h(!1),()=>[A.current]),0===_.length)return p?(0,a.jsx)(Oa,{}):null;let D=p&&_.length>1;return(0,a.jsx)(u.Zp,{children:(0,a.jsxs)(u.BJ,{space:5,children:[(0,a.jsx)(u.BJ,{as:RR,space:5,children:_.map(e=>(0,a.jsx)("div",{children:(0,a.jsx)(Oi,{change:e,"data-revert-all-changes-hover":f?"":void 0,readOnly:b||e?.readOnly,hidden:e?.hidden,addParentWrapper:e.path.length>1},e.key)},e.key))}),D&&i&&!j&&v?.granted&&(0,a.jsx)(y.AM,{content:(0,a.jsxs)(u.BJ,{space:3,children:[(0,a.jsx)(u.az,{paddingY:3,children:(0,a.jsx)(u.EY,{size:1,children:x("changes.action.revert-all-description",{count:_.length})})}),(0,a.jsxs)(u.so,{gap:3,justify:"flex-end",children:[(0,a.jsx)(y.$n,{mode:"ghost",text:x("changes.action.revert-all-cancel"),onClick:$}),(0,a.jsx)(y.$n,{tone:"critical",text:x("changes.action.revert-all-confirm"),onClick:S})]})]}),open:m,padding:3,placement:"left",portal:!0,ref:A,children:(0,a.jsx)(u.BJ,{children:(0,a.jsx)(y.$n,{tone:"critical",mode:"ghost",text:x("changes.action.revert-all-confirm"),icon:C.AAk,onClick:T,onMouseEnter:I,onMouseLeave:E,disabled:b,size:"large"})})})]})})}function Ol(e){let t,n,r,i,l,s,d=(0,o.c)(16),{error:c}=e,{t:p}=iJ(),m=c instanceof MA;return d[0]!==p?(t=p("changes.error-title"),d[0]=p,d[1]=t):t=d[1],d[2]!==t?(n=(0,a.jsx)(u.EY,{size:1,weight:"medium",as:"h3",children:t}),d[2]=t,d[3]=n):n=d[3],d[4]!==p?(r=p("changes.error-description"),d[4]=p,d[5]=r):r=d[5],d[6]!==r?(i=(0,a.jsx)(u.EY,{as:"p",size:1,muted:!0,children:r}),d[6]=r,d[7]=i):i=d[7],d[8]!==c||d[9]!==m||d[10]!==p?(l=m&&(0,a.jsx)(u.az,{paddingTop:2,children:(0,a.jsx)(u.EY,{as:"p",size:1,muted:!0,children:(0,a.jsx)(an,{i18nKey:"changes.missing-since-document-error",t:p,values:{revisionId:c.revisionId},components:{Break:Os}})})}),d[8]=c,d[9]=m,d[10]=p,d[11]=l):l=d[11],d[12]!==n||d[13]!==i||d[14]!==l?(s=(0,a.jsx)(u.Zp,{tone:"caution",padding:3,children:(0,a.jsxs)(u.BJ,{space:3,children:[n,i,l]})}),d[12]=n,d[13]=i,d[14]=l,d[15]=s):s=d[15],s}function Os(){return(0,a.jsx)("br",{})}let Od=g.I4.span`
2740  border-radius: ${({theme:e})=>(0,u.D0)(e.sanity.radius[1])};
2741`,Oc=(0,g.I4)(u.EY)`
2742  &:not([hidden]) {
2743    display: inline;
2744    line-height: calc(1.25em + 2px);
2745  }
2746
2747  &:hover {
2748    background-color: none !important;
2749    background-image: linear-gradient(
2750      to bottom,
2751      var(--card-bg-color) 0,
2752      var(--card-bg-color) 33.333%,
2753      currentColor 33.333%,
2754      currentColor 100%
2755    );
2756    background-size: 1px 3px;
2757    background-repeat: repeat-x;
2758    background-position-y: bottom;
2759    padding-bottom: 3px;
2760    box-shadow: 0 0 0 1px var(--card-bg-color);
2761    z-index: 1;
2762  }
2763`;function Ou(e){let t,n,r=(0,o.c)(24),{segment:i}=e,{text:l}=i,{t:s}=iJ();if("added"===i.action){let e,t,n,o,d,c=i.annotation;return r[0]!==s?(e=s("changes.added-label"),r[0]=s,r[1]=e):e=r[1],r[2]!==e?(t={description:e},r[2]=e,r[3]=t):t=r[3],r[4]===Symbol.for("react.memo_cache_sentinel")?(n={textDecoration:"none"},r[4]=n):n=r[4],r[5]!==l?(o=(0,a.jsx)(Oc,{as:"ins",style:n,children:l}),r[5]=l,r[6]=o):o=r[6],r[7]!==i.annotation||r[8]!==t||r[9]!==o?(d=(0,a.jsx)(M1,{annotation:c,disableHoverEffect:!0,tooltip:t,as:Od,children:o}),r[7]=i.annotation,r[8]=t,r[9]=o,r[10]=d):d=r[10],d}if("removed"===i.action){let e,t,n,o,d=i.annotation;return r[11]!==s?(e=s("changes.removed-label"),r[11]=s,r[12]=e):e=r[12],r[13]!==e?(t={description:e},r[13]=e,r[14]=t):t=r[14],r[15]!==l?(n=(0,a.jsx)(Oc,{as:"del",children:l}),r[15]=l,r[16]=n):n=r[16],r[17]!==i.annotation||r[18]!==t||r[19]!==n?(o=(0,a.jsx)(M1,{annotation:d,as:Od,disableHoverEffect:!0,tooltip:t,children:n}),r[17]=i.annotation,r[18]=t,r[19]=n,r[20]=o):o=r[20],o}return r[21]===Symbol.for("react.memo_cache_sentinel")?(t={display:"inline"},r[21]=t):t=r[21],r[22]!==l?(n=(0,a.jsx)(u.Zp,{as:"span",radius:2,style:t,children:l}),r[22]=l,r[23]=n):n=r[23],n}function Op(e){let t,n,r,i=(0,o.c)(6),{diff:l}=e;return i[0]!==l.segments?(t=l.segments||[],i[0]=l.segments,i[1]=t):t=i[1],i[2]!==t?(n=t.map(Om),i[2]=t,i[3]=n):n=i[3],i[4]!==n?(r=(0,a.jsx)(a.Fragment,{children:n}),i[4]=n,i[5]=r):r=i[5],r}
2763function Om(e,t){return(0,a.jsx)(Ou,{segment:e},t)}let Oh=(0,g.I4)(u.EY)`
2764  color: inherit;
2765`;function Of(e){let t,n,r,i,l,s,d=(0,o.c)(17),{title:c,action:p,icon:m,children:h,markRemoved:f}=e;d[0]!==m||d[1]!==f?(t=m&&(0,a.jsx)(u.az,{padding:2,children:(0,a.jsx)(Oh,{size:4,forwardedAs:f?"del":"div",children:(0,a.jsx)(m,{})})}),d[0]=m,d[1]=f,d[2]=t):t=d[2];let g=f?"del":"h3";return d[3]!==g||d[4]!==c?(n=(0,a.jsx)(Oh,{size:1,weight:"medium",forwardedAs:g,textOverflow:"ellipsis",children:c}),d[3]=g,d[4]=c,d[5]=n):n=d[5],d[6]!==p?(r=p&&(0,a.jsx)("div",{children:p}),d[6]=p,d[7]=r):r=d[7],d[8]!==h?(i=(0,a.jsx)(Oh,{size:0,textOverflow:"ellipsis",children:h}),d[8]=h,d[9]=i):i=d[9],d[10]!==n||d[11]!==r||d[12]!==i?(l=(0,a.jsxs)(u.BJ,{space:2,paddingLeft:2,children:[n,r,i]}),d[10]=n,d[11]=r,d[12]=i,d[13]=l):l=d[13],d[14]!==t||d[15]!==l?(s=(0,a.jsxs)(u.so,{padding:2,align:"center",children:[t,l]}),d[14]=t,d[15]=l,d[16]=s):s=d[16],s}g.I4.div`
2766  display: inline-block;
2767  word-break: break-all;
2768  white-space: pre-wrap;
2769`;let Og=function(e){let t,n,r,i,l=(0,o.c)(6),d=(0,s.useRef)(e.value);l[0]!==e.value?(t=()=>{d.current=e.value},n=[e.value],l[0]=e.value,l[1]=t,l[2]=n):(t=l[1],n=l[2]),(0,s.useEffect)(t,n),l[3]===Symbol.for("react.memo_cache_sentinel")?(r=e=>aN(d.current,e),l[3]=r):r=l[3];let u=r;return l[4]!==e.children?(i=(0,a.jsx)(c.RA.Provider,{value:u,children:e.children}),l[4]=e.children,l[5]=i):i=l[5],i};function OC(){let e=(0,s.useContext)(c.RA);if(!e)throw Error("useGetFormValue must be used within a GetFormValueProvider");return e}Og.displayName="GetFormValueProvider";let Oy=(e,{document:t},n)=>{let r=t?.unstable_fieldActions;if(!r)return e;if("function"==typeof r)return r(e,n);if(Array.isArray(r))return[...e,...r];throw Error(`Expected \`document.unstable_fieldActions\` to be an array or a function, but received ${typeof r}`)},Ox=[{name:"copyField",useAction({path:e}){let t=OC(),{onCopy:n}=Q2(),{t:r}=iJ("copy-paste"),i=0===e.length,a=r("copy-paste.field-action-copy-button.document.title"),o=r("copy-paste.field-action-copy-button.field.title"),l=i?a:o,d=(0,s.useCallback)(()=>{n(e,t([]),{context:{source:i?"documentFieldAction":"fieldAction"}})},[e,i,n,t]);return{type:"action",icon:C.TdU,onAction:d,title:l}}},{name:"pasteField",useAction({path:e}){let{t}=iJ("copy-paste"),n=OC(),r=0===e.length,i=t("copy-paste.field-action-paste-button.document.title"),a=t("copy-paste.field-action-paste-button.field.title"),o=r?i:a,{onPaste:l}=Q2(),d=(0,s.useCallback)(()=>{l(e,n([]),{context:{source:r?"documentFieldAction":"fieldAction"}})},[n,l,e,r]);return{type:"action",icon:C.uiJ,onAction:d,title:o}}}],Ob=aR({name:"sanity/deprecated/scheduled-publishing",studio:{components:{layout:function(e){let t,n,r,i=(0,o.c)(5),a=(0,p.dj)();return i[0]!==a?(t=()=>{console.error(`Scheduled publishing plugin is added by default, please remove this plugin from your config. 
2770        
2771If you have a custom date config, you can use the scheduledPublishing API to customize the date input.
2772        
2773See: https://www.sanity.io/docs/scheduled-publishing.
2774        `),a.push({id:"scheduled-publishing-deprecated",closable:!0,duration:6e4,status:"error",title:"Scheduled publishing plugin is deprecated",description:"The scheduled publishing plugin is now deprecated, you should remove the plugin from your configuration. If you have a custom date config, you can use the scheduledPublishing API to customize the date input. See: https://www.sanity.io/docs/scheduled-publishing."})},n=[a],i[0]=a,i[1]=t,i[2]=n):(t=i[1],n=i[2]),(0,s.useEffect)(t,n),i[3]!==e?(r=e.renderDefault(e),i[3]=e,i[4]=r):r=i[4],r}}}}),Ov=["scheduled-publishing"],Oj=({plugins:e=[],...t},n)=>{let r={config:t,path:[...n,t.name]},i=e.flatMap(e=>Oj(e,[...n,t.name])),a=i.find(e=>"scheduled-publishing"===e.config.name);return a&&i.push({path:a.path,config:Ob()}),[...i.filter(e=>!Ov.includes(e.config.name)),r]},Ow=[],O_=[],Ok=[],OS=(e,{schema:t},n)=>{let r=t?.types;if(!r)return e;if("function"==typeof r)return r(e,n);if(Array.isArray(r))return[...e,...r];throw Error(`Expected \`schema.types\` to be an array or a function, but received ${Py(r)}`)},OT=async(e,{document:t},n)=>{let r=t?.productionUrl;return r?await r(e,n):e},OI=(e,{tools:t},n)=>{if(!t)return e;if("function"==typeof t)return t(e,n);if(Array.isArray(t))return[...e,...t];throw Error(`Expected \`tools\` to be an array or a function, but received ${Py(t)}`)},OE=(e,{schema:t},n)=>{let r=t?.templates;if(!r)return e;if("function"==typeof r)return r(e,n);if(Array.isArray(r))return[...e,...r];throw Error(`Expected \`schema.templates\` to be an array or a function, but received ${Py(r)}`)},O$=(e,{i18n:t},n)=>{let r=t?.locales;if(!r)return e;if("function"==typeof r)return r(e,n);if(Array.isArray(r))return[...e,...r];throw Error(`Expected \`i18n.locales\` to be an array or a function, but received ${Py(r)}`)},OA=(e,{i18n:t},n)=>{let r=t?.bundles;if(!r)return e;if(Array.isArray(r))return[...e,...r];if("function"==typeof r)return r(e,n);throw Error(`Expected \`i18n.bundles\` to be an array or a function, but received ${typeof r}`)},OD=(e,{document:t},n)=>{let r=t?.badges;if(!r)return e;if("function"==typeof r)return r(e,n);if(Array.isArray(r))return[...e,...r];throw Error(`Expected \`document.badges\` to be an array or a function, but received ${Py(r)}`)},Oz=(e,{document:t},n)=>{let r=t?.actions;if(!r)return e;if("function"==typeof r)return r(e,n);if(Array.isArray(r))return[...e,...r];throw Error(`Expected \`document.actions\` to be an array or a function, but received ${Py(r)}`)},OM=(e,{document:t},n)=>{let r=t?.newDocumentOptions;if(!r)return e;if("function"!=typeof r)throw Error(`Expected \`document.resolveNewDocumentOptions\` to be a function, but received ${Py(r)}`);return r(e,n)},OP=(e,{form:t},n)=>{let r=t?.file?.assetSources;if(!r)return e;if("function"==typeof r)return r(e,n);if(Array.isArray(r))return[...e,...r];throw Error(`Expected \`form.file.assetSources\` to be an array or a function, but received ${Py(r)}`)},OR=e=>{let{config:t,schemaTypeName:n}=e;return Oj(t,[]).reduce((e,{config:t})=>{let r=t.form?.[n]?.directUploads;if(!r&&"boolean"!=typeof r)return e;if("boolean"==typeof r)return r;throw Error(`Expected \`form.${n}.directUploads\` to be a boolean, but received ${Py(r)}`)},!0)},OO=(e,{form:t},n)=>{let r=t?.image?.assetSources;if(!r)return e;if("function"==typeof r)return r(e,n);if(Array.isArray(r))return[...e,...r];throw Error(`Expected \`form.image.assetSources\` to be an array or a function, but received ${Py(r)}`)},OV=(e,{document:t},n)=>{let r=t?.unstable_languageFilter;if(!r)return e;if("function"==typeof r)return r(e,n);if(Array.isArray(r))return[...e,...r];throw Error(`Expected \`document.unstable_languageFilter\` to be an array or a function, but received ${Py(r)}`)},OL=(e,{document:t},n)=>{let r=t?.inspectors;if(!r)return e;if("function"==typeof r)return r(e,n);if(Array.isArray(r))return[...e,...r];throw Error(`Expected \`document.inspectors\` to be an array or a function, but received ${Py(r)}`)},OF=e=>{let{config:t,context:n,initialValue:r}=e;return Oj(t,[]).reduce((e,{config:t})=>{let r=t.document?.comments?.enabled??t.document?.unstable_comments?.enabled;if(!r&&"boolean"!=typeof r)return e;if("function"==typeof r)return r(n);if("boolean"==typeof r)return r;throw Error(`Expected \`document.comments.enabled\` to be a boolean or a function, but received ${Py(r)}`)},r)},OB=e=>{let{config:t,initialValue:n}=e;return Oj(t,[]).reduce((t,{config:n})=>{if(n.beta?.eventsAPI?.enabled)throw Error(`The \`beta.eventsAPI.enabled\` option has been removed. Use \`beta.eventsAPI.${e.key}\` instead.`);let r=n.beta?.eventsAPI?.[e.key];if(typeof r>"u")return t;if("boolean"==typeof r)return r;throw Error(`Expected \`beta.eventsAPI.${e.key}\` to be a boolean, but received ${Py(r)}`)},n)},ON=e=>{let{config:t,initialValue:n}=e;return Oj(t,[]).reduce((e,{config:t})=>{let n=t.mediaLibrary?.enabled;if(!n&&"boolean"!=typeof n)return e;if("boolean"==typeof n)return n;throw Error(`Expected \`mediaLibrary.enabled\` to be a boolean, but received ${Py(n)}`)},n)},OY=e=>{let{config:t,initialValue:n}=e;return Oj(t,[]).reduce((e,{config:t})=>{let n=t.mediaLibrary?.libraryId;if(!n&&"string"!=typeof n)return e;if("string"==typeof n)return n;
2774throw Error(`Expected \`mediaLibrary.libraryId\` to be a string, but received ${Py(n)}`)},n)},OH=(e,{search:t})=>"u">typeof t?.enableLegacySearch?t.enableLegacySearch:e,OZ=(e,{document:t})=>{if("boolean"==typeof t?.drafts?.enabled)return t?.drafts?.enabled;if("u">typeof t?.drafts?.enabled)throw Error(`Expected boolean, but received ${Py(t?.drafts?.enabled)}`);return e};function OU({config:e,context:t,initialValue:n,propertyName:r,...i}){let a=Oj(e,[]);if("reducer"in i)return a.reduce((e,{config:n,path:a})=>{try{return i.reducer(e,n,t)}catch(e){throw new a$({propertyName:r,path:a,cause:e})}},n);let o=i.asyncReducer;return(async()=>{let e=n;for(let{config:n,path:i}of a)try{e=await o(e,n,t)}catch(e){throw new a$({propertyName:r,path:i,cause:e})}return e})()}async function Oq(e){let t=await Promise.all(e.map(async e=>({...e,resources:await OJ(e)}))),n={};for(let e of t){let t=e.deep??!0,r=e.overwrite??!0;t?function e(t,n,r=!1){for(let i in n){if("__proto__"===i||"constructor"===i)continue;if(!(i in t)){t[i]=n[i];continue}let a=t[i],o=n[i],l=OW(a),s=OW(o);if((l||s)&&r){t[i]=n[i];continue}if(l||s)continue;let d=Array.isArray(o),c=Array.isArray(a);if(d||c){r&&(t[i]=o);continue}e(a,o,r)}return t}(n,e.resources,r):r?Object.assign(n,e.resources):Object.assign({},e.resources,n)}return n}async function OJ(e){var t,n;return"function"!=typeof e.resources?e.resources:"default"in(n=t=await e.resources())&&"object"==typeof n.default&&nl(n.default)?t.default:t}function OW(e){return"string"==typeof e||e instanceof String}let OK={ns:[r4],defaultNS:r4,partialBundledLanguages:!0,fallbackLng:r6.id,lng:r6.id,debug:!!iH,load:"currentOnly",initImmediate:!0,interpolation:{escapeValue:!1},react:{bindI18nStore:"added"}};function OG(e){let{bundles:t,...n}=e;return n}let OX=[{fieldPath:"_updatedAt",icon:C.CTc,operators:[{name:"dateTimeLast",type:"item"},{type:"divider"},{name:"dateTimeRange",type:"item"},{name:"dateTimeAfter",type:"item"},{name:"dateTimeBefore",type:"item"},{type:"divider"},{name:"dateTimeEqual",type:"item"},{name:"dateTimeNotEqual",type:"item"}],title:"Edited at",name:"updatedAt",type:"pinned"},{fieldPath:"_createdAt",icon:C.CTc,operators:[{name:"dateTimeLast",type:"item"},{type:"divider"},{name:"dateTimeRange",type:"item"},{name:"dateTimeAfter",type:"item"},{name:"dateTimeBefore",type:"item"},{type:"divider"},{name:"dateTimeEqual",type:"item"},{name:"dateTimeNotEqual",type:"item"}],title:"Created at",name:"createdAt",type:"pinned"},{icon:C.qYV,operators:[{name:"referencesDocument",type:"item"},{name:"referencesAssetImage",type:"item"},{name:"referencesAssetFile",type:"item"}],title:"Contains document, image or file",name:"references",type:"pinned"},{fieldType:"array",icon:C.r$9,name:"array",operators:[{name:"defined",type:"item"},{name:"notDefined",type:"item"},{type:"divider"},{name:"arrayCountEqual",type:"item"},{name:"arrayCountNotEqual",type:"item"},{type:"divider"},{name:"arrayCountGt",type:"item"},{name:"arrayCountGte",type:"item"},{name:"arrayCountLt",type:"item"},{name:"arrayCountLte",type:"item"},{type:"divider"},{name:"arrayCountRange",type:"item"}],type:"field"},{fieldType:"array",icon:C.r$9,name:"arrayList",operators:[{name:"arrayListIncludes",type:"item"},{name:"arrayListNotIncludes",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"},{type:"divider"},{name:"arrayCountEqual",type:"item"},{name:"arrayCountNotEqual",type:"item"},{type:"divider"},{name:"arrayCountGt",type:"item"},{name:"arrayCountGte",type:"item"},{name:"arrayCountLt",type:"item"},{name:"arrayCountLte",type:"item"},{type:"divider"},{name:"arrayCountRange",type:"item"}],type:"field"},{fieldType:"array",icon:C.r$9,name:"arrayReferences",operators:[{name:"arrayReferenceIncludes",type:"item"},{name:"arrayReferenceNotIncludes",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"},{type:"divider"},{name:"arrayCountEqual",type:"item"},{name:"arrayCountNotEqual",type:"item"},{type:"divider"},{name:"arrayCountGt",type:"item"},{name:"arrayCountGte",type:"item"},{name:"arrayCountLt",type:"item"},{name:"arrayCountLte",type:"item"},{type:"divider"},{name:"arrayCountRange",type:"item"}],type:"field"},{fieldType:"boolean",icon:C.Dee,name:"boolean",operators:[{name:"booleanEqual",type:"item"},{type:"divider"},{name:"notDefined",type:"item"}],type:"field"},{fieldType:"date",icon:C.CTc,name:"date",operators:[{name:"dateLast",type:"item"},{type:"divider"},{name:"dateRange",type:"item"},{name:"dateAfter",type:"item"},{name:"dateBefore",type:"item"},{type:"divider"},{name:"dateEqual",type:"item"},{name:"dateNotEqual",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"}],type:"field"},{fieldType:"datetime",icon:C.CTc,name:"datetime",operators:[{name:"dateTimeLast",type:"item"},{type:"divider"},{name:"dateTimeRange",type:"item"},{name:"dateTimeAfter",type:"item"},{name:"dateTimeBefore",type:"item"},{type:"divider"},{name:"dateTimeEqual",type:"item"},{name:"dateTimeNotEqual",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"}],type:"field"},{fieldType:"email",icon:C.H3M,name:"email",operators:[{name:"stringMatches",type:"item"},{name:"stringNotMatches",type:"item"},{type:"divider"},{name:"stringEqual",type:"item"},{name:"stringNotEqual",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"}],type:"field"}
2774,{fieldType:"file",icon:C.pyG,name:"file",operators:[{name:"assetFileEqual",type:"item"},{name:"assetFileNotEqual",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"}],type:"field"},{fieldType:"image",icon:C.xfq,name:"image",operators:[{name:"assetImageEqual",type:"item"},{name:"assetImageNotEqual",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"}],type:"field"},{fieldType:"number",icon:C.bZn,name:"number",operators:[{name:"numberEqual",type:"item"},{name:"numberNotEqual",type:"item"},{type:"divider"},{name:"numberGt",type:"item"},{name:"numberGte",type:"item"},{name:"numberLt",type:"item"},{name:"numberLte",type:"item"},{type:"divider"},{name:"numberRange",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"}],type:"field"},{fieldType:"array",icon:C.a1,name:"portableText",operators:[{name:"portableTextMatches",type:"item"},{name:"portableTextNotMatches",type:"item"},{type:"divider"},{name:"portableTextEqual",type:"item"},{name:"portableTextNotEqual",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"}],type:"field"},{fieldType:"reference",icon:C.qYV,name:"reference",operators:[{name:"referenceEqual",type:"item"},{name:"referenceNotEqual",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"}],type:"field"},{fieldType:"slug",icon:C.H3M,name:"slug",operators:[{name:"slugMatches",type:"item"},{name:"slugNotMatches",type:"item"},{type:"divider"},{name:"slugEqual",type:"item"},{name:"slugNotEqual",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"}],type:"field"},{fieldType:"string",icon:C.H3M,name:"string",operators:[{name:"stringMatches",type:"item"},{name:"stringNotMatches",type:"item"},{type:"divider"},{name:"stringEqual",type:"item"},{name:"stringNotEqual",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"}],type:"field"},{fieldType:"string",icon:C.D3D,name:"stringList",operators:[{name:"stringListEqual",type:"item"},{name:"stringListNotEqual",type:"item"},{type:"divider"},{name:"stringMatches",type:"item"},{name:"stringNotMatches",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"}],type:"field"},{fieldType:"text",icon:C.H3M,name:"text",operators:[{name:"stringMatches",type:"item"},{name:"stringNotMatches",type:"item"},{type:"divider"},{name:"stringEqual",type:"item"},{name:"stringNotEqual",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"}],type:"field"},{fieldType:"url",icon:C.H3M,name:"url",operators:[{name:"stringMatches",type:"item"},{name:"stringNotMatches",type:"item"},{type:"divider"},{name:"stringEqual",type:"item"},{name:"stringNotEqual",type:"item"},{type:"divider"},{name:"defined",type:"item"},{name:"notDefined",type:"item"}],type:"field"}];function OQ(e){let t,n,r,i=(0,o.c)(7);i[0]!==e?(t=void 0===e?{}:e,i[0]=e,i[1]=t):t=i[1];let a=t,l=iG().id;i[2]!==a?(n={unitDisplay:"long",...a,style:"unit"},i[2]=a,i[3]=n):n=i[3];let s=n;return i[4]!==l||i[5]!==s?(r=function(e,t){return iQ.numberFormat(l,{...s,unit:t}).format(e)},i[4]=l,i[5]=s,i[6]=r):r=i[6],r}function O1(e){let t,n,r,i,l,s=(0,o.c)(12),{documentId:d,schemaType:c}=e,u=z4();s[0]!==d||s[1]!==u||s[2]!==c?(n=D4(u,c,d),s[0]=d,s[1]=u,s[2]=c,s[3]=n):n=s[3],t=n,s[4]===Symbol.for("react.memo_cache_sentinel")?(r={isLoading:!0,snapshot:null,original:null},s[4]=r):r=s[4];let{snapshot:m,original:h,isLoading:f}=(0,eH.J)(t,r);if(f){let e;return s[5]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(p.EA,{animated:!0,marginLeft:1,radius:2,style:{width:"10ch",height:"1em"}}),s[5]=e):e=s[5],e}return s[6]!==d||s[7]!==h?.title||s[8]!==m?.title?(i=m?.title||h?.title||d.slice(0,8),s[6]=d,s[7]=h?.title,s[8]=m?.title,s[9]=i):i=s[9],s[10]!==i?(l=(0,a.jsx)(a.Fragment,{children:i}),s[10]=i,s[11]=l):l=s[11],l}function O2(e){let t,n,r,i,l=(0,o.c)(8),{value:s}=e,d=s.includeTime?"short":void 0;l[0]!==d?(t={dateStyle:"medium",timeStyle:d},l[0]=d,l[1]=t):t=l[1];let c=cO(t);if(l[2]!==c||l[3]!==s.date){r=Symbol.for("react.early_return_sentinel");e:{let e=s?.date?new Date(s.date):null;if(!e||!(0,te.A)(e)){r=null;break e}n=c.format(e)}l[2]=c,l[3]=s.date,l[4]=n,l[5]=r}else n=l[4],r=l[5];return r!==Symbol.for("react.early_return_sentinel")?r:(l[6]!==n?(i=(0,a.jsx)(a.Fragment,{children:n}),l[6]=n,l[7]=i):i=l[7],i)}function O5(e){let t,n,r=(0,o.c)(4),{value:i}=e,l=i.includeTime?"short":void 0;r[0]!==l?(t={dateStyle:"medium",timeStyle:l},r[0]=l,r[1]=t):t=r[1];let s=cO(t),d=i?.from?new Date(i.from):null,c=i?.to?new Date(i.to):null;if(!c||!d||!(0,te.A)(c)||!(0,te.A)(d))return null;let u=s.format(d),p=s.format(c),m=`${u} \u2192 ${p}`;return r[2]!==m?(n=(0,a.jsx)(a.Fragment,{children:m}),r[2]=m,r[3]=n):n=r[3],n}function O0(e){let t,n,r=(0,o.c)(6),{value:i}=e,l=Cm(),s=i._ref;r[0]!==l||r[1]!==i._type?(t=l.get(i._type),r[0]=l,r[1]=i._type,r[2]=t):t=r[2];let d=t;return d?(r[3]!==s||r[4]!==d?(n=(0,a.jsx)(O1,{documentId:s,schemaType:d}),r[3]=s,r[4]=d,r[5]=n):n=r[5],n):null}
2774function O7(e){let t,n,r,i=(0,o.c)(9),{value:l,onChange:d}=e,[c,p]=(0,s.useState)(l??""),{state:m}=pd(),{fullscreen:h}=m,{t:f}=iJ();i[0]!==d?(t=e=>{p(e.currentTarget.value);let t=parseFloat(e.currentTarget.value);d(Number.isFinite(t)?t:null)},i[0]=d,i[1]=t):t=i[1];let g=t,C=h?2:1;return i[2]!==f?(n=f("search.filter-number-value-placeholder"),i[2]=f,i[3]=n):n=i[3],i[4]!==g||i[5]!==C||i[6]!==n||i[7]!==c?(r=(0,a.jsx)(u.ks,{fontSize:C,onChange:g,placeholder:n,radius:2,step:"any",type:"number",value:c}),i[4]=g,i[5]=C,i[6]=n,i[7]=c,i[8]=r):r=i[8],r}function O3(e){let t,n,r,i,l,d,c,p=(0,o.c)(23),{onChange:m,value:h}=e,[f,g]=(0,s.useState)(h?.to??""),[C,y]=(0,s.useState)(h?.from??""),{state:x}=pd(),{fullscreen:b}=x,{t:v}=iJ();p[0]!==m||p[1]!==h?.from?(t=e=>{g(e.currentTarget.value);let t=parseFloat(e.currentTarget.value);m({to:Number.isFinite(t)?t:null,from:h?.from??null})},p[0]=m,p[1]=h?.from,p[2]=t):t=p[2];let j=t;p[3]!==m||p[4]!==h?.to?(n=e=>{y(e.currentTarget.value);let t=parseFloat(e.currentTarget.value);m({to:h?.to??null,from:Number.isFinite(t)?t:null})},p[3]=m,p[4]=h?.to,p[5]=n):n=p[5];let w=n,_=b?2:1;p[6]!==v?(r=v("search.filter-number-min-value-placeholder"),p[6]=v,p[7]=r):r=p[7],p[8]!==C||p[9]!==w||p[10]!==_||p[11]!==r?(i=(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(u.ks,{fontSize:_,onChange:w,placeholder:r,radius:2,step:"any",type:"number",value:C})}),p[8]=C,p[9]=w,p[10]=_,p[11]=r,p[12]=i):i=p[12];let k=b?2:1;return p[13]!==v?(l=v("search.filter-number-max-value-placeholder"),p[13]=v,p[14]=l):l=p[14],p[15]!==j||p[16]!==k||p[17]!==l||p[18]!==f?(d=(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(u.ks,{fontSize:k,onChange:j,placeholder:l,radius:2,step:"any",type:"number",value:f})}),p[15]=j,p[16]=k,p[17]=l,p[18]=f,p[19]=d):d=p[19],p[20]!==i||p[21]!==d?(c=(0,a.jsxs)(u.so,{gap:2,children:[i,d]}),p[20]=i,p[21]=d,p[22]=c):c=p[22],c}let O8=()=>!0,O4=(0,g.I4)(u.EY)`
2775  word-break: break-word;
2776`,O6=(0,s.forwardRef)(function({onSelect:e,types:t=[],value:n},r){let i=(0,s.useRef)(null),o=Cm(),{state:{fullscreen:l}}=pd(),{t:d}=iJ(),c=(0,s.useId)(),[m,h]=(0,s.useState)([]),{handleSearch:f,searchState:g}=h1({allowEmptyQueries:!0,initialState:{hits:[],loading:!1,error:null,terms:{query:"",types:t}},onComplete:e=>{h(e.hits.map(({hit:e})=>({value:e._id,hit:e})))},schema:o}),C=(0,s.useCallback)(()=>{f({debounceTime:0,options:{limit:100},terms:{query:"",types:t}}
2776)},[f,t]),x=(0,s.useCallback)(e=>{f(e?{options:{limit:100},terms:{query:e||"",types:t}}:{debounceTime:0,options:{limit:0},terms:{query:"",types:t}})},[f,t]),b=(0,s.useCallback)(t=>{let n=m.find(e=>e.value===t)?.hit;n&&e?.({_ref:ib(n._id),_type:n._type})},[m,e]),v=(0,s.useMemo)(()=>{if(0===t.length)return d("search.action.search-all-types");let{remainingCount:e,types:n}=pq({types:t});return d(e>0?"search.action.search-specific-types-truncated":"search.action.search-specific-types",{count:e,types:n,formatParams:{types:{style:"short",type:"unit"}}})},[t,d]),j=(0,s.useCallback)(e=>(0,a.jsx)(hL,{disableIntentLink:!0,documentId:e.value,documentType:e.hit._type,layout:"compact"}),[]),w=(0,s.useCallback)((e,t)=>{let{content:n,hidden:r,onMouseEnter:o,onMouseLeave:l}=e,s=m&&m.length>0;return(0,a.jsx)(y.AM,{constrainSize:!0,content:(0,a.jsx)("div",{ref:t,children:s?n:g.terms.query&&(0,a.jsx)(u.az,{padding:4,children:(0,a.jsx)(u.so,{align:"center",height:"fill",justify:"center",children:(0,a.jsx)(O4,{align:"center",muted:!0,children:(0,a.jsx)(an,{t:d,i18nKey:"new-document.no-results",values:{searchQuery:g.terms.query}})})})})}),fallbackPlacements:["bottom","bottom-end"],matchReferenceWidth:!0,onMouseEnter:o,onMouseLeave:l,open:!g.loading&&!r,overflow:"auto",placement:"bottom-start",radius:3,referenceElement:i.current})},[m,g.loading,g.terms.query,d]);return(0,a.jsx)("div",{ref:i,children:(0,a.jsx)(p.jT,{"aria-label":v,filterOption:O8,fontSize:l?2:1,id:c,loading:g.loading,openButton:{onClick:C},options:m,onQueryChange:x,onSelect:b,placeholder:v,radius:2,ref:r,renderOption:j,renderPopover:w,value:n?._ref})})});function O9(e){let t,n,r,i,l,s,d=(0,o.c)(25),{fieldDefinition:c,onChange:p,value:m}=e,{onClose:h,state:f}=pd(),{documentTypesNarrowed:g}=f,C=Cm(),{t:x}=iJ();d[0]!==p?(t=e=>p(e),d[0]=p,d[1]=t):t=d[1];let b=t;e:{let e;if(!c){let e;d[2]===Symbol.for("react.memo_cache_sentinel")?(e=[],d[2]=e):e=d[2],n=e;break e}if(d[3]!==g||d[4]!==c.documentTypes||d[5]!==c.fieldPath||d[6]!==C){let t,n;d[8]!==g?(t=e=>g.includes(e),d[8]=g,d[9]=t):t=d[9],d[10]!==c.fieldPath||d[11]!==C?(n=e=>{let t=C.get(e);if(t){let e=pL(t,c.fieldPath);if((0,_.zR)(e?.type))return e?.type.of.filter(_.do).flatMap(Vt);if((0,_.do)(e?.type))return e?.type.to}return[]},d[10]=c.fieldPath,d[11]=C,d[12]=n):n=d[12],e=c.documentTypes.filter(t).flatMap(n).reduce(Ve,[]),d[3]=g,d[4]=c.documentTypes,d[5]=c.fieldPath,d[6]=C,d[7]=e}else e=d[7];n=e}let v=n;d[13]!==b?(r=()=>b(null),d[13]=b,d[14]=r):r=d[14];let j=r;d[15]!==h?(i=()=>{h?.()},d[15]=h,d[16]=i):i=d[16];let w=i;return d[17]===Symbol.for("react.memo_cache_sentinel")?(l={width:"min(calc(100vw - 40px), 420px)"},d[17]=l):l=d[17],d[18]!==b||d[19]!==j||d[20]!==w||d[21]!==v||d[22]!==x||d[23]!==m?(s=(0,a.jsx)(u.az,{style:l,children:m?._ref&&m?._type?(0,a.jsxs)(u.BJ,{space:3,children:[(0,a.jsx)(u.Zp,{padding:1,radius:1,shadow:1,children:(0,a.jsx)(hL,{documentId:m._ref,documentType:m._type,layout:"compact",onClick:w})}),(0,a.jsx)(y.$n,{mode:"ghost",onClick:j,text:x("search.filter-reference-clear"),tone:"critical"})]}):(0,a.jsx)(O6,{onSelect:b,types:v,value:m})}),d[18]=b,d[19]=j,d[20]=w,d[21]=v,d[22]=x,d[23]=m,d[24]=s):s=d[24],s}function Ve(e,t){return 0>e.findIndex(e=>e.name===t?.name)&&e.push(t),e}function Vt(e){return e.to}function Vn(e){let t,n,r=(0,o.c)(7),{onClick:i,selected:l,title:s,value:d}=e;r[0]!==i||r[1]!==d?(t=()=>i(d),r[0]=i,r[1]=d,r[2]=t):t=r[2];let c=t,u=`${s}`;return"u">typeof d&&s!==d&&(u+=` (${d})`),r[3]!==c||r[4]!==u||r[5]!==l?(n=(0,a.jsx)(y.Dr,{onClick:c,pressed:l,tone:"default",text:u}),r[3]=c,r[4]=u,r[5]=l,r[6]=n):n=r[6],n}function Vr({fieldDefinition:e,onChange:t,value:n}){let r=(0,s.useId)(),{state:{documentTypesNarrowed:i}}=pd(),{t:o}=iJ(),l=Cm(),d=(0,s.useMemo)(()=>e?e.documentTypes.filter(e=>i.includes(e)).map(t=>{let n=l.get(t);return n?pL(n,e.fieldPath)?.type.options:null}).filter(io).map(e=>e.list).flatMap(e=>e?.map(e=>{var t;return t=e,(0,_.uC)(t)?t:{title:ns(`${t}`),value:t}})).filter(io).reduce((e,t)=>{let n=e.findIndex(e=>e.value===t?.value);if(n>-1){let r=e[n];e[n]={...e[n],title:nt([...r.title,t.title]).sort()}}else e.push({...t,title:[t.title]});return e},[]):[],[i,e,l]),c=(0,s.useCallback)(e=>{t(e)},[t]);return(0,a.jsx)(y.IU,{button:(0,a.jsx)(y.$n,{mode:"ghost",iconRight:C.D3D,text:n?String(n):o("search.filter-string-value-select-predefined-value")}),id:r||"",menu:(0,a.jsx)(u.W1,{children:d.map((e,t)=>(0,a.jsx)(Vn,{onClick:c,selected:e.value===n,title:e.title.join(", "),value:e.value||""},t))}),popover:{constrainSize:!0,placement:"bottom-start",portal:!1,radius:2}})}let Vi=()=>{let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M7.04 19V17.512H17.36V19H7.04ZM7.04 15.328V13.624L12.08 11.872L15.32 10.816V10.72L12.08 9.664L7.04 7.912V6.208L17.36 9.88V11.656L7.04 15.328Z",fill:"currentColor"})}),t[0]=e):e=t[0],e},Va=()=>{let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M7.568 18.848V16.952L14.792 12.08V11.984L7.568 7.112V5.216L16.52 11.288V12.776L7.568 18.848Z",fill:"currentColor"})}),t[0]=e):e=t[0],e},Vo=()=>{let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M7.04 19V17.512H17.36V19H7.04ZM17.36 15.328L7.04 11.656V9.88L17.36 6.208V7.912L12.32 9.664L9.08 10.72V10.816L12.32 11.872L17.36 13.624V15.328Z",fill:"currentColor"})}),t[0]=e):e=t[0],e},Vl=()=>{let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M16.952 19.632L8 13.56V12.072L16.952 6V7.896L9.728 12.768V12.864L16.952 17.736V19.632Z",fill:"currentColor"})}),t[0]=e):e=t[0],e};function Vs(e){return JSON.stringify(e)}function Vd(e){let t,n,r,i,l,s,d,c,p,m=(0,o.c)(20),{t:h}=iJ();return m[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(ut,{tone:"caution",children:(0,a.jsx)(C.sAQ,{})}
2776),m[0]=t):t=m[0],m[1]!==h?(n=h("search.error.no-valid-asset-source-title"),m[1]=h,m[2]=n):n=m[2],m[3]!==n?(r=(0,a.jsx)(ut,{size:1,tone:"caution",weight:"medium",children:n}),m[3]=n,m[4]=r):r=m[4],m[5]!==h?(i=h("search.error.no-valid-asset-source-only-default-description"),m[5]=h,m[6]=i):i=m[6],m[7]!==i?(l=(0,a.jsx)(ut,{size:1,tone:"caution",children:i}),m[7]=i,m[8]=l):l=m[8],m[9]!==h?(s=h("search.error.no-valid-asset-source-check-config-description"),m[9]=h,m[10]=s):s=m[10],m[11]!==s?(d=(0,a.jsx)(ut,{size:1,tone:"caution",children:s}),m[11]=s,m[12]=d):d=m[12],m[13]!==r||m[14]!==l||m[15]!==d?(c=(0,a.jsxs)(u.so,{align:"flex-start",gap:3,children:[t,(0,a.jsxs)(u.BJ,{space:4,children:[r,l,d]})]}),m[13]=r,m[14]=l,m[15]=d,m[16]=c):c=m[16],m[17]!==e||m[18]!==c?(p=(0,a.jsx)(u.az,{...e,children:c}),m[17]=e,m[18]=c,m[19]=p):p=m[19],p}function Vc(e){let t,n,r,i=(0,o.c)(6),{reference:l}=e,s=z4();i[0]!==s?(t=e=>bm(s,e),i[0]=s,i[1]=t):t=i[1];let d=t;return i[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(Vm,{}),i[2]=n):n=i[2],i[3]!==d||i[4]!==l?(r=(0,a.jsx)(Tl,{observeAsset:d,reference:l,waitPlaceholder:n,children:Vu}),i[3]=d,i[4]=l,i[5]=r):r=i[5],r}function Vu(e){return(0,a.jsx)(Vp,{asset:e})}function Vp(e){let t,n,r,i,l,s=(0,o.c)(10),{asset:d}=e;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(u.Zp,{padding:3,radius:1,shadow:1,tone:"transparent",children:(0,a.jsx)(u.EY,{children:(0,a.jsx)(C.A1A,{})})}),s[0]=t):t=s[0];let c=d?.originalFilename||d._id;return s[1]!==c?(n=(0,a.jsx)(u.EY,{muted:!0,size:1,textOverflow:"ellipsis",weight:"medium",children:c}),s[1]=c,s[2]=n):n=s[2],s[3]!==d.size?(r=Tu(d.size),s[3]=d.size,s[4]=r):r=s[4],s[5]!==r?(i=(0,a.jsx)(u.EY,{size:1,muted:!0,children:r}),s[5]=r,s[6]=i):i=s[6],s[7]!==n||s[8]!==i?(l=(0,a.jsx)(u.Zp,{padding:2,shadow:1,children:(0,a.jsxs)(u.so,{align:"center",justify:"space-between",wrap:"nowrap",children:[t,(0,a.jsxs)(u.BJ,{flex:1,space:2,marginLeft:3,children:[n,i]})]})}),s[7]=n,s[8]=i,s[9]=l):l=s[9],l}function Vm(){let e,t,n,r=(0,o.c)(3);return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(u.Zp,{padding:3,radius:1,shadow:1,tone:"transparent",children:(0,a.jsx)(u.EY,{children:(0,a.jsx)(C.A1A,{})})}),r[0]=e):e=r[0],r[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(p.r5,{animated:!0,style:{width:"100%"},radius:1}),r[1]=t):t=r[1],r[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(u.Zp,{padding:2,shadow:1,children:(0,a.jsxs)(u.so,{align:"center",justify:"flex-start",children:[e,(0,a.jsxs)(u.BJ,{flex:1,space:2,marginLeft:3,children:[t,(0,a.jsx)(p.r5,{animated:!0,style:{width:"100%"},radius:1})]})]})}),r[2]=n):n=r[2],n}let Vh=(0,g.I4)(u.Zp)`
2777  position: relative;
2778  padding-bottom: 100%;
2779`,Vf=g.I4.img`
2780  position: absolute;
2781  top: 0;
2782  left: 0;
2783  width: 100%;
2784  height: 100%;
2785  display: block;
2786  object-fit: contain;
2787`;function Vg(e){let t,n,r=(0,o.c)(5),{reference:i}=e,l=z4();r[0]!==l?(t=e=>bm(l,e),r[0]=l,r[1]=t):t=r[1];let s=t;return r[2]!==s||r[3]!==i?(n=(0,a.jsx)(Tl,{observeAsset:s,reference:i,children:VC}),r[2]=s,r[3]=i,r[4]=n):n=r[4],n}function VC(e){return(0,a.jsx)(Vy,{asset:e})}function Vy(e){let t,n,r,i,l=(0,o.c)(8),{asset:d}=e,[c,u]=(0,s.useState)(!1),p=`${d.url}?h=800&fit=max`;l[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>u(!0),l[0]=t):t=l[0];let m=t;return l[1]!==c?(n=!c&&(0,a.jsx)(r5,{fill:!0,showText:!0}),l[1]=c,l[2]=n):n=l[2],l[3]!==p?(r=(0,a.jsx)(Vf,{onLoad:m,src:p}),l[3]=p,l[4]=r):r=l[4],l[5]!==n||l[6]!==r?(i=(0,a.jsxs)(Vh,{__unstable_checkered:!0,border:!0,children:[n,r]}),l[5]=n,l[6]=r,l[7]=i):i=l[7],i}function Vx(e){let t=(0,o.c)(4),{reference:n}=e;if(!n)return null;if(n._type.startsWith("sanity.fileAsset")){let e;return t[0]!==n?(e=(0,a.jsx)(Vc,{reference:n}),t[0]=n,t[1]=e):e=t[1],e}if(n._type.startsWith("sanity.imageAsset")){let e;return t[2]!==n?(e=(0,a.jsx)(Vg,{reference:n}),t[2]=n,t[3]=e):e=t[3],e}return null}let Vb={file:"sanity.fileAsset",image:"sanity.imageAsset"},Vv=(0,g.I4)(u.az)`
2788  width: min(calc(100vw - 40px), 320px);
2789`;function Vj(e){return function({onChange:t,value:n}
2789){let[r,i]=(0,s.useState)(null),[o,l]=(0,s.useState)(null);pd();let{file:d,image:c}=co().form,{t:p}=iJ(),m=(0,s.useMemo)(()=>{switch(e){case"file":return d.assetSources.filter(e=>e.name===SK);case"image":return c.assetSources.filter(e=>e.name===SK);default:throw Error("Unknown asset source found")}},[d.assetSources,c.assetSources]),h=(0,s.useId)(),f=ee7(a7),g=(0,s.useCallback)(()=>{l(null),t(null)},[t]),x=(0,s.useCallback)(()=>{i(null)},[]),b=(0,s.useCallback)(e=>{l(e[0]),x()},[x]),v=(0,s.useCallback)(e=>i(e),[]);(0,s.useEffect)(()=>{o?.kind==="assetDocumentId"&&"string"==typeof o?.value&&e&&t({_ref:o.value,_type:Vb[e]})},[f,t,o]);let j=r?.component,w=p(n?"search.filter-asset-change":"search.filter-asset-select",{context:e}),_=ni(e,"options.accept","image"===e?"image/*":"");return(0,a.jsx)(Vv,{children:(0,a.jsxs)(u.BJ,{space:3,children:[r&&j&&(0,a.jsx)(u.ZL,{children:(0,a.jsx)(j,{assetType:e,assetSource:r,dialogHeaderTitle:p("search.action.select-asset",{context:e}),onClose:x,onSelect:b,selectedAssets:[],selectionType:"single",accept:_})}),n&&(0,a.jsx)(Vx,{reference:n}),(0,a.jsxs)(u.so,{gap:2,children:[0===m.length&&(0,a.jsx)(Vd,{padding:2}),m.length>0&&(0,a.jsx)(a.Fragment,{children:m.length>1?(0,a.jsx)(y.IU,{button:(0,a.jsx)(y.$n,{icon:n?C.ejX:C.WIv,iconRight:C.D3D,mode:"ghost",width:n?"fill":void 0,text:w}),id:h,menu:(0,a.jsx)(u.W1,{children:m.map(e=>(0,a.jsx)(y.Dr,{icon:e.icon||C.xfq,onClick:()=>v(e),text:(e.i18nKey?p(e.i18nKey):e.title)||eJ(e.name)},e.name))}),popover:{constrainSize:!0,portal:!1,radius:2}}):(0,a.jsx)(y.$n,{icon:n?C.ejX:C.WIv,mode:"ghost",onClick:()=>v(m[0]),width:n?"fill":void 0,text:w})}),n&&(0,a.jsx)(y.$n,{mode:"ghost",onClick:g,width:"fill",text:p("search.filter-asset-clear"),tone:"critical"})]})]})})}}let Vw={assetFileEqual:{nameKey:"search.operator.asset-file-equal.name",descriptionKey:"search.operator.asset-file-equal.description",buttonValueComponent:O0,groqFilter:({fieldPath:e,value:t})=>t?._ref&&e?`${e}.asset._ref == ${Vs(t._ref)}`:null,initialValue:null,inputComponent:Vj("file"),label:"is",type:"assetFileEqual"},assetFileNotEqual:{nameKey:"search.operator.asset-file-not-equal.name",descriptionKey:"search.operator.asset-file-not-equal.description",buttonValueComponent:O0,groqFilter:({fieldPath:e,value:t})=>t?._ref&&e?`${e}.asset._ref != ${Vs(t._ref)}`:null,initialValue:null,inputComponent:Vj("file"),label:"is not",type:"assetFileNotEqual"},assetImageEqual:{nameKey:"search.operator.asset-image-equal.name",descriptionKey:"search.operator.asset-image-equal.description",buttonValueComponent:O0,groqFilter:({fieldPath:e,value:t})=>t?._ref&&e?`${e}.asset._ref == ${Vs(t._ref)}`:null,initialValue:null,inputComponent:Vj("image"),label:"is",type:"assetImageEqual"},assetImageNotEqual:{nameKey:"search.operator.asset-image-not-equal.name",descriptionKey:"search.operator.asset-image-not-equal.description",buttonValueComponent:O0,groqFilter:({fieldPath:e,value:t})=>t?._ref&&e?`${e}.asset._ref != ${Vs(t._ref)}`:null,initialValue:null,inputComponent:Vj("image"),label:"is not",type:"assetImageNotEqual"}},V_=(0,g.I4)(u.EY)`
2790  cursor: default;
2791`;function Vk(e){let t,n,r,i,l,s=(0,o.c)(14),{onChange:d,value:c}=e,{t:p}=iJ();return s[0]!==p?(t=p("calendar.action.include-time-label"),s[0]=p,s[1]=t):t=s[1],s[2]!==d||s[3]!==t?(n=(0,a.jsx)(u.BJ,{children:(0,a.jsx)(V_,{muted:!0,onClick:d,size:1,weight:"medium",children:t})}),s[2]=d,s[3]=t,s[4]=n):n=s[4],s[5]!==p?(r=p("calendar.action.include-time-label"),s[5]=p,s[6]=r):r=s[6],s[7]!==d||s[8]!==r||s[9]!==c?(i=(0,a.jsx)(u.dO,{checked:c,label:r,onChange:d}),s[7]=d,s[8]=r,s[9]=c,s[10]=i):i=s[10],s[11]!==n||s[12]!==i?(l=(0,a.jsxs)(u.so,{align:"center",gap:2,justify:"flex-end",marginTop:1,children:[n,i]}),s[11]=n,s[12]=i,s[13]=l):l=s[13],l}function VS(){let e=(0,s.useContext)(c.Yi);if(void 0===e)throw Error("useCalendar must be used within an CalendarContext.Provider");return e}function VT(e){let t,n,r,i,l,s,d,c,p,m,h,f,g,x,b,v,j=(0,o.c)(39),{t:w}=iJ();j[0]===Symbol.for("react.memo_cache_sentinel")?(t={month:"long",year:"numeric"},j[0]=t):t=j[0];let _=cO(t),{focusedDate:k}=VS(),{moveFocusedDate:S,onNowClick:T}=e;j[1]!==S?(n=()=>S(-1),j[1]=S,j[2]=n):n=j[2];let I=n;j[3]!==S?(r=()=>S(1),j[3]=S,j[4]=r):r=j[4];let E=r;return j[5]!==k||j[6]!==_?(i=rc(_.format(k)),j[5]=k,j[6]=_,j[7]=i):i=j[7],j[8]!==i?(l=(0,a.jsx)(u.cV,{paddingLeft:2,space:1,children:(0,a.jsx)(u.EY,{size:1,weight:"medium",children:i})}),j[8]=i,j[9]=l):l=j[9],j[10]!==w?(s=w("calendar.action.go-to-today-aria-label"),j[10]=w,j[11]=s):s=j[11],j[12]!==w?(d=w("calendar.action.go-to-today"),j[12]=w,j[13]=d):d=j[13],j[14]!==T||j[15]!==s||j[16]!==d?(c=(0,a.jsx)(y.$n,{"aria-label":s,mode:"bleed",onClick:T,text:d}),j[14]=T,j[15]=s,j[16]=d,j[17]=c):c=j[17],j[18]!==w?(p=w("calendar.action.go-to-previous-month"),j[18]=w,j[19]=p):p=j[19],j[20]!==p?(m={content:p},j[20]=p,j[21]=m):m=j[21],j[22]!==I||j[23]!==m?(h=(0,a.jsx)(y.$n,{icon:C.YJP,mode:"bleed",onClick:I,tooltipProps:m}),j[22]=I,j[23]=m,j[24]=h):h=j[24],j[25]!==w?(f=w("calendar.action.go-to-next-month"),j[25]=w,j[26]=f):f=j[26],j[27]!==f?(g={content:f},j[27]=f,j[28]=g):g=j[28],j[29]!==E||j[30]!==g?(x=(0,a.jsx)(y.$n,{icon:C.vKP,mode:"bleed",onClick:E,tooltipProps:g}),j[29]=E,j[30]=g,j[31]=x):x=j[31],j[32]!==h||j[33]!==x||j[34]!==c?(b=(0,a.jsxs)(u.so,{align:"center",children:[c,h,x]}),j[32]=h,j[33]=x,j[34]=c,j[35]=b):b=j[35],j[36]!==b||j[37]!==l?(v=(0,a.jsxs)(u.so,{align:"center",flex:1,justify:"space-between",children:[l,b]}
2791),j[36]=b,j[37]=l,j[38]=v):v=j[38],v}let VI=g.I4.svg(({theme:e})=>(0,g.AH)`
2792    bottom: 0;
2793    left: 0;
2794    position: absolute;
2795    right: 0;
2796    top: 0;
2797
2798    circle {
2799      stroke: ${e.sanity.color.card.enabled.border};
2800      stroke-width: 3;
2801      fill: none;
2802    }
2803  `),VE=(0,g.I4)(u.Zp)`
2804  position: relative;
2805
2806  &[data-focused='true'] {
2807    z-index: 1;
2808  }
2809
2810  &[data-start-date='true'] {
2811    border-top-right-radius: 0;
2812    border-bottom-right-radius: 0;
2813  }
2814
2815  &[data-end-date='true'] {
2816    border-top-left-radius: 0;
2817    border-bottom-left-radius: 0;
2818  }
2819
2820  &[data-within-range='true'] {
2821    border-radius: 0;
2822  }
2823`;function V$(e){let t,n,r,i,l,s,d,c,p,m,h=(0,o.c)(38),{date:f,onSelect:g}=e;h[0]!==f||h[1]!==g?(t=()=>{g(f)},h[0]=f,h[1]=g,h[2]=t):t=h[2];let C=t,{date:y,endDate:x,focusedDate:b,selectRange:v}=VS();h[3]!==f||h[4]!==y?(n=y&&(0,ts.A)(f,y),h[3]=f,h[4]=y,h[5]=n):n=h[5];let j=n;h[6]!==f||h[7]!==v||h[8]!==y?(r=v&&y&&(0,ts.A)(f,y),h[6]=f,h[7]=v,h[8]=y,h[9]=r):r=h[9];let w=r;h[10]!==f||h[11]!==v||h[12]!==x?(i=v&&x&&(0,ts.A)(f,x),h[10]=f,h[11]=v,h[12]=x,h[13]=i):i=h[13];let _=i,k=(0,td.A)(f,b),S=b&&(0,ts.A)(f,b);h[14]!==f?(l=(0,ts.A)(f,new Date),h[14]=f,h[15]=l):l=h[15];let T=l,I=y&&x&&!w&&!_&&(0,tz.A)(f,y)&&(0,tI.A)(f,x);h[16]!==f?(s=f.toDateString(),h[16]=f,h[17]=s):s=h[17];let E=!!_||void 0,$=S?"true":"",A=!!w||void 0,D=!!I||void 0,z=j||w||_,M=I?"primary":"default";h[18]!==T?(d=T&&(0,a.jsx)(VI,{height:"100%",preserveAspectRatio:"xMidYMid meet",vectorEffect:"non-scaling-stroke",viewBox:"0 0 100 100",width:"100%",children:(0,a.jsx)("circle",{cx:"50",cy:"50",r:"40%"})}),h[18]=T,h[19]=d):d=h[19];let P=!j&&!k,R=k?"medium":"regular";return h[20]!==f?(c=f.getDate(),h[20]=f,h[21]=c):c=h[21],h[22]!==P||h[23]!==R||h[24]!==c?(p=(0,a.jsx)(u.EY,{align:"center",muted:P,size:1,weight:R,children:c}),h[22]=P,h[23]=R,h[24]=c,h[25]=p):p=h[25],h[26]!==C||h[27]!==j||h[28]!==D||h[29]!==z||h[30]!==M||h[31]!==d||h[32]!==p||h[33]!==s||h[34]!==E||h[35]!==$||h[36]!==A?(m=(0,a.jsxs)(VE,{__unstable_focusRing:!0,"aria-label":s,"aria-pressed":j,"data-end-date":E,"data-focused":$,"data-ui":"CalendarDay","aria-selected":j,"data-start-date":A,"data-within-range":D,forwardedAs:"button",onClick:C,paddingX:3,paddingY:2,radius:2,role:"button",selected:z,tabIndex:-1,tone:M,children:[d,p]}),h[26]=C,h[27]=j,h[28]=D,h[29]=z,h[30]=M,h[31]=d,h[32]=p,h[33]=s,h[34]=E,h[35]=$,h[36]=A,h[37]=m):m=h[37],m}let VA=["calendar.weekday-names.short.monday","calendar.weekday-names.short.tuesday","calendar.weekday-names.short.wednesday","calendar.weekday-names.short.thursday","calendar.weekday-names.short.friday","calendar.weekday-names.short.saturday","calendar.weekday-names.short.sunday"];nT(0,24);let VD=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Vz=[1,2,3,4,5,6];function VM(e){return{number:(0,tl.A)(e[0]),days:e}}let VP={1:VA,6:[...VA.slice(5),...VA.slice(0,5)],7:[VA[6],...VA.slice(0,6)]},VR=(0,g.I4)(u.xA)`
2824  grid-template-columns: repeat(7, minmax(44px, auto));
2825`;function VO(e){let t,n,r,i,l=(0,o.c)(16),{hidden:s,onSelect:d}=e,{focusedDate:c,firstWeekDay:p}=VS(),{t:m}=iJ(),h=s||!1,f=VP[p];if(l[0]!==m||l[1]!==f){let e;l[3]!==m?(e=e=>(0,a.jsx)(u.az,{paddingBottom:3,paddingTop:2,children:(0,a.jsx)(u.EY,{align:"center",size:1,weight:"medium",children:m(e)})},e),l[3]=m,l[4]=e):e=l[4],t=f.map(e),l[0]=m,l[1]=f,l[2]=t}else t=l[2];let g=(e=>{let t,n=(0,o.c)(3),{weekInfo:r}=iG();return n[0]!==e||n[1]!==r.firstDay?(t=((e,t)=>{let n=(0,tr.A)(e);return(0,ti.A)({start:n,end:(0,ta.A)(n)},{weekStartsOn:7===t?0:t})})(e,r.firstDay).map(e=>[e,...Vz.map(t=>(0,to.A)(e,t))]).map(VM),n[0]=e,n[1]=r.firstDay,n[2]=t):t=n[2],t})(c);if(l[5]!==d||l[6]!==g){let e;l[8]!==d?(e=(e,t)=>e.days.map((e,n)=>(0,a.jsx)(V$,{date:e,onSelect:d},`${t}-${n}`)),l[8]=d,l[9]=e):e=l[9],n=g.map(e),l[5]=d,l[6]=g,l[7]=n}else n=l[7];return l[10]!==t||l[11]!==n?(r=(0,a.jsxs)(VR,{gapY:1,children:[t,n]}),l[10]=t,l[11]=n,l[12]=r):r=l[12],l[13]!==h||l[14]!==r?(i=(0,a.jsx)(u.az,{"aria-hidden":h,"data-ui":"CalendarMonth",children:r}),l[13]=h,l[14]=r,l[15]=i):i=l[15],i}let VV=(0,a.jsx)("span",{"data-preserve-focus":!0,style:{overflow:"hidden",position:"absolute",outline:"none"},tabIndex:-1});function VL(e){let t,n,r,i,l,d,p,m,h,f,g,C,y,x,b,v,j,w,_,k=(0,o.c)(53),{date:S,endDate:T,onSelect:I,selectRange:E,selectTime:$}
2825=e,[A,D]=(0,s.useState)(null),[z,M]=(0,s.useState)(!1);k[0]!==S?(t=S||new Date,k[0]=S,k[1]=t):t=k[1];let[P,R]=(0,s.useState)(t),O=(0,s.useRef)(S||null),V=(0,s.useRef)(T||null),{weekInfo:L}=iG(),{firstDay:F}=L;k[2]!==A?(n=()=>{A?.querySelector('[data-focused="true"]')?.focus()},k[2]=A,k[3]=n):n=k[3];let B=n;k[4]!==S||k[5]!==T||k[6]!==I||k[7]!==z||k[8]!==E?(r=e=>{let t=(0,tM.A)(e,{hours:e.getHours(),minutes:e.getMinutes(),seconds:0,milliseconds:0}),n=S&&(0,tI.A)(t,S),r=T&&(0,tz.A)(t,T);if(E){if(n||r)return void I({date:t,endDate:null});I(z?{date:S||null,endDate:t}:{date:t,endDate:S?null:T||null})}else I({date:t})},k[4]=S,k[5]=T,k[6]=I,k[7]=z,k[8]=E,k[9]=r):r=k[9];let N=r;k[10]!==I||k[11]!==E?(i=()=>{let e=new Date;E?R(e):I({date:e})},k[10]=I,k[11]=E,k[12]=i):i=k[12];let Y=i;k[13]!==A||k[14]!==B||k[15]!==P?(l=e=>{if(VD.includes(e.key)){if(e.preventDefault(),e.target.hasAttribute("data-calendar-grid"))return void B();"ArrowUp"===e.key&&R((0,to.A)(P,-7)),"ArrowDown"===e.key&&R((0,to.A)(P,7)),"ArrowLeft"===e.key&&R((0,to.A)(P,-1)),"ArrowRight"===e.key&&R((0,to.A)(P,1)),A?.querySelector("[data-preserve-focus]")?.focus()}},k[13]=A,k[14]=B,k[15]=P,k[16]=l):l=k[16];let H=l;k[17]!==P?(d=e=>R((0,tp.A)(P,e)),k[17]=P,k[18]=d):d=k[18];let Z=d;return k[19]!==B?(p=()=>{B()},m=[B],k[19]=B,k[20]=p,k[21]=m):(p=k[20],m=k[21]),(0,s.useEffect)(p,m),k[22]!==B?(h=()=>{document.activeElement?.matches("[data-calendar-grid], [data-calendar-grid] [data-preserve-focus]")&&B()},k[22]=B,k[23]=h):h=k[23],k[24]!==B||k[25]!==P?(f=[B,P],k[24]=B,k[25]=P,k[26]=f):f=k[26],(0,s.useEffect)(h,f),k[27]!==S||k[28]!==T||k[29]!==I?(g=()=>{let e=S?.getTime()!==O.current?.getTime(),t=T?.getTime()!==V.current?.getTime(),n=S&&T&&(0,tz.A)(S,T);e&&!t&&(n&&(M(!0),I({date:S,endDate:null})),M(!!S),S&&R(S)),!e&&t&&(n&&(M(!0),I({date:T,endDate:null})),M(!!S&&!T),T&&R(T)),e&&t&&(M(!0),S&&R(S)),O.current=S||null,V.current=T||null},C=[S,T,I],k[27]=S,k[28]=T,k[29]=I,k[30]=g,k[31]=C):(g=k[30],C=k[31]),(0,s.useEffect)(g,C),k[32]!==S||k[33]!==T||k[34]!==F||k[35]!==P||k[36]!==E||k[37]!==$?(x={date:S,endDate:T,focusedDate:P,selectRange:E,selectTime:$,firstWeekDay:F},k[32]=S,k[33]=T,k[34]=F,k[35]=P,k[36]=E,k[37]=$,k[38]=x):x=k[38],y=x,k[39]!==Y||k[40]!==Z?(b=(0,a.jsx)(u.so,{children:(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(VT,{moveFocusedDate:Z,onNowClick:Y})})}),k[39]=Y,k[40]=Z,k[41]=b):b=k[41],k[42]!==N?(v=(0,a.jsx)(VO,{onSelect:N}),k[42]=N,k[43]=v):v=k[43],k[44]!==H||k[45]!==v?(j=(0,a.jsxs)(u.az,{"data-calendar-grid":!0,onKeyDown:H,marginTop:2,overflow:"hidden",tabIndex:0,children:[v,VV]}),k[44]=H,k[45]=v,k[46]=j):j=k[46],k[47]!==b||k[48]!==j?(w=(0,a.jsxs)(u.az,{"data-ui":"Calendar",ref:D,children:[b,j]}),k[47]=b,k[48]=j,k[49]=w):w=k[49],k[50]!==w||k[51]!==y?(_=(0,a.jsx)(c.Yi.Provider,{value:y,children:w}),k[50]=w,k[51]=y,k[52]=_):_=k[52],_}function VF(e){let t,n,r=(0,o.c)(8),{date:i,endDate:l,onChange:s,selectRange:d,selectTime:c}=e;r[0]!==s?(t=e=>{s(e)},r[0]=s,r[1]=t):t=r[1];let u=t;return r[2]!==i||r[3]!==l||r[4]!==u||r[5]!==d||r[6]!==c?(n=(0,a.jsx)(VL,{date:i,endDate:l,onSelect:u,selectRange:d,selectTime:c}),r[2]=i,r[3]=l,r[4]=u,r[5]=d,r[6]=c,r[7]=n):n=r[7],n}function VB({date:e,dateOnly:t,roundDay:n}){let r;switch(n){case"end":r=(0,tD.A)(e);break;case"start":r=(0,tA.A)(e);break;default:r=e}return t?r.toISOString().split("T")[0]:r.toISOString()}
2825let VN={date:{exampleDate:"Jan 1, 2000",pattern:"MMM d, yyyy"},datetime:{exampleDate:"Jan 1, 2000 12:00 AM",pattern:"MMM d, yyyy p"}};function VY(e){let t,n,r,i,l,d,c,u,p,m,h,f,g,C,x,b,v,j,w,_,k=(0,o.c)(53);k[0]!==e?({isDateTime:t,onChange:r,placeholderDate:i,isDateTimeFormat:n,value:d,...l}=e,k[0]=e,k[1]=t,k[2]=n,k[3]=r,k[4]=i,k[5]=l,k[6]=d):(t=k[1],n=k[2],r=k[3],i=k[4],l=k[5],d=k[6]);let{t:S}=iJ(),T=n?VN.datetime.pattern:VN.date.pattern,[I,E]=(0,s.useState)(void 0);k[7]!==T||k[8]!==d?(c=()=>{if(!d)return"";let e=new Date(d);return(0,ty.A)(e,T)},k[7]=T,k[8]=d,k[9]=c):c=k[9];let[$,A]=(0,s.useState)(c);k[10]!==i?(p=i||new Date,k[10]=i,k[11]=p):p=k[11];let D=p;k[12]!==D||k[13]!==T?(m=(0,ty.A)(D,T),k[12]=D,k[13]=T,k[14]=m):m=k[14],u=m,k[15]!==T||k[16]!==t||k[17]!==r?(h=e=>{let{dateString:n,triggerOnChange:i}=e;if(!n)return;let a=(0,tt.A)(n,T,new Date),o=(0,te.A)(a);o&&(i&&r(VB({date:a,dateOnly:!t})),A((0,ty.A)(a,T))),E(o?void 0:`Invalid ${t?"datetime":"date"}`)},k[15]=T,k[16]=t,k[17]=r,k[18]=h):h=k[18];let z=h;k[19]!==$||k[20]!==z?(f=()=>{z({dateString:$,triggerOnChange:!0})},k[19]=$,k[20]=z,k[21]=f):f=k[21];let M=f;k[22]===Symbol.for("react.memo_cache_sentinel")?(g=e=>{A(e.currentTarget.value)},k[22]=g):g=k[22];let P=g;k[23]!==r?(C=()=>{r(null),E(void 0),A("")},k[23]=r,k[24]=C):C=k[24];let R=C;k[25]!==$||k[26]!==z?(x=e=>{"Enter"===e.key&&z({dateString:$,triggerOnChange:!0})},k[25]=$,k[26]=z,k[27]=x):x=k[27];let O=x;k[28]!==T||k[29]!==z||k[30]!==d?(b=()=>{let e=d&&new Date(d);e&&z({dateString:(0,ty.A)(e,T),triggerOnChange:!1})},k[28]=T,k[29]=z,k[30]=d,k[31]=b):b=k[31],k[32]!==T||k[33]!==n||k[34]!==z||k[35]!==d?(v=[T,z,n,d],k[32]=T,k[33]=n,k[34]=z,k[35]=d,k[36]=v):v=k[36],(0,s.useEffect)(b,v);let V=n?VN.datetime.exampleDate:VN.date.exampleDate;k[37]!==S||k[38]!==V?(j=S("calendar.error.must-be-in-format",{exampleDate:V}),k[37]=S,k[38]=V,k[39]=j):j=k[39];let L=!I,F=!!$;return k[40]!==I||k[41]!==u||k[42]!==M||k[43]!==R||k[44]!==O||k[45]!==$||k[46]!==l||k[47]!==F?(w=(0,a.jsx)(pI,{...l,clearButton:F,customValidity:I,onBlur:M,onChange:P,onClear:R,onKeyDown:O,placeholder:u,value:$}),k[40]=I,k[41]=u,k[42]=M,k[43]=R,k[44]=O,k[45]=$,k[46]=l,k[47]=F,k[48]=w):w=k[48],k[49]!==j||k[50]!==L||k[51]!==w?(_=(0,a.jsx)(y.m_,{content:j,disabled:L,placement:"top",portal:!0,children:w}),k[49]=j,k[50]=L,k[51]=w,k[52]=_):_=k[52],_}function VH(e){let t,n,r,i,l,s,d,c,p,m,h=(0,o.c)(36),{direction:f,isDateTime:g,onChange:C,value:y}=e,{state:x}=pd(),{fullscreen:b}=x,{t:v}=iJ();switch(f){case"after":t="end";break;case"before":t="start";break;default:t=void 0}let j=t;h[0]!==g||h[1]!==C||h[2]!==j||h[3]!==y?.includeTime?(n=e=>{let{date:t}=e,n=null;t&&(n=VB({date:t,dateOnly:!g,roundDay:y?.includeTime?void 0:j})),C({includeTime:y?.includeTime,date:n})},h[0]=g,h[1]=C,h[2]=j,h[3]=y?.includeTime,h[4]=n):n=h[4];let w=n;h[5]!==g||h[6]!==C||h[7]!==j||h[8]!==y?(r=()=>{let e=!y?.includeTime,t=y?.date?new Date(y.date):null,n=null;t&&(n=VB({date:t,dateOnly:!g,roundDay:e?"start":j})),C({includeTime:e,date:n})},h[5]=g,h[6]=C,h[7]=j,h[8]=y,h[9]=r):r=h[9];let _=r;h[10]!==C||h[11]!==y?.includeTime?(i=e=>{C({includeTime:y?.includeTime,date:e||null})},h[10]=C,h[11]=y?.includeTime,h[12]=i):i=h[12];let k=i;h[13]!==v?(l=v("search.filter-date-aria-label"),h[13]=v,h[14]=l):l=h[14];let S=b?2:1,T=g&&y?.includeTime,I=y?.date;return h[15]!==k||h[16]!==g||h[17]!==l||h[18]!==S||h[19]!==T||h[20]!==I?(s=(0,a.jsx)(VY,{"aria-label":l,fontSize:S,isDateTime:g,isDateTimeFormat:T,onChange:k,radius:2,value:I}),h[15]=k,h[16]=g,h[17]=l,h[18]=S,h[19]=T,h[20]=I,h[21]=s):s=h[21],h[22]!==y?(d=y?.date?new Date(y.date):void 0,h[22]=y,h[23]=d):d=h[23],h[24]!==w||h[25]!==g||h[26]!==d?(c=(0,a.jsx)(VF,{date:d,onChange:w,selectTime:g}),h[24]=w,h[25]=g,h[26]=d,h[27]=c):c=h[27],h[28]!==_||h[29]!==g||h[30]!==y?.includeTime?(p=g&&(0,a.jsx)(Vk,{onChange:_,value:!!y?.includeTime}),h[28]=_,h[29]=g,h[30]=y?.includeTime,h[31]=p):p=h[31],h[32]!==s||h[33]!==c||h[34]!==p?(m=(0,a.jsxs)(u.BJ,{space:3,children:[s,c,p]}),h[32]=s,h[33]=c,h[34]=p,h[35]=m):m=h[35],m}function VZ(e){let t,n,r,i,l,s,d,c,p,m=(0,o.c)(34),{isDateTime:h,onChange:f,value:g}=e,{state:C}=pd(),{fullscreen:y}=C,{t:x}=iJ();m[0]!==h||m[1]!==f||m[2]!==g?.includeTime?(t=e=>{let{date:t}=e;if(t){let e=VB({date:t,dateOnly:!h});f({includeTime:g?.includeTime,date:e})}else f(null)},m[0]=h,m[1]=f,m[2]=g?.includeTime,m[3]=t):t=m[3];let b=t;m[4]!==h||m[5]!==f||m[6]!==g?(n=()=>{let e=!g?.includeTime,t=g?.date?new Date(g.date):null,n=null;t&&(n=VB({date:t,dateOnly:!h})),f({includeTime:e,date:n})},m[4]=h,m[5]=f,m[6]=g,m[7]=n):n=m[7];let v=n;m[8]!==f||m[9]!==g?.includeTime?(r=e=>{f({includeTime:g?.includeTime,date:e||null})},m[8]=f,m[9]=g?.includeTime,m[10]=r):r=m[10];let j=r;m[11]!==x?(i=x("search.filter-date-aria-label"),m[11]=x,m[12]=i):i=m[12];let w=y?2:1,_=h&&g?.includeTime,k=g?.date;return m[13]!==j||m[14]!==h||m[15]!==i||m[16]!==w||m[17]!==_||m[18]!==k?(l=(0,a.jsx)(VY,{"aria-label":i,fontSize:w,isDateTime:h,isDateTimeFormat:_,onCh
2825ange:j,radius:2,value:k}),m[13]=j,m[14]=h,m[15]=i,m[16]=w,m[17]=_,m[18]=k,m[19]=l):l=m[19],m[20]!==g?(s=g?.date?new Date(g.date):void 0,m[20]=g,m[21]=s):s=m[21],m[22]!==b||m[23]!==h||m[24]!==s?(d=(0,a.jsx)(VF,{date:s,onChange:b,selectTime:h}),m[22]=b,m[23]=h,m[24]=s,m[25]=d):d=m[25],m[26]!==v||m[27]!==h||m[28]!==g?.includeTime?(c=h&&(0,a.jsx)(Vk,{onChange:v,value:!!g?.includeTime}),m[26]=v,m[27]=h,m[28]=g?.includeTime,m[29]=c):c=m[29],m[30]!==d||m[31]!==c||m[32]!==l?(p=(0,a.jsxs)(u.BJ,{space:3,children:[l,d,c]}),m[30]=d,m[31]=c,m[32]=l,m[33]=p):p=m[33],p}function VU(e){let t,n=(0,o.c)(2);return n[0]!==e?(t=(0,a.jsx)(VZ,{...e,isDateTime:!1}),n[0]=e,n[1]=t):t=n[1],t}let Vq=[{unit:"day",key:"search.filter-date-unit_days"},{unit:"month",key:"search.filter-date-unit_months"},{unit:"year",key:"search.filter-date-unit_years"}];function VJ(e){let t,n,r,i,l,d,c,p,m,h=(0,o.c)(26),{onChange:f,value:g}=e,[C,y]=(0,s.useState)(g?.unitValue||""),x=(0,s.useRef)("day"),b=(0,s.useRef)(g?.unitValue||null),{t:v}=iJ(),{state:j}=pd(),{fullscreen:w}=j;h[0]!==f?(t=()=>{f({unit:x?.current,unitValue:b?.current})},h[0]=f,h[1]=t):t=h[1];let _=t;h[2]!==_?(n=e=>{x.current=e.currentTarget.value,_()},h[2]=_,h[3]=n):n=h[3];let k=n;h[4]!==_?(r=e=>{y(e.currentTarget.value);let t=parseFloat(e.currentTarget.value);b.current=Number.isFinite(t)?t:null,_()},h[4]=_,h[5]=r):r=h[5];let S=r;h[6]!==v?(i=v("search.filter-date-value-aria-label"),h[6]=v,h[7]=i):i=h[7];let T=w?2:1;h[8]!==S||h[9]!==i||h[10]!==T||h[11]!==C?(l=(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(u.ks,{"aria-label":i,fontSize:T,onChange:S,pattern:"\\d*",radius:2,step:"1",type:"number",value:C})}),h[8]=S,h[9]=i,h[10]=T,h[11]=C,h[12]=l):l=h[12],h[13]!==v?(d=v("search.filter-date-unit-aria-label"),h[13]=v,h[14]=d):d=h[14];let I=w?2:1,E=g?.unit;return h[15]!==v?(c=Vq.map(e=>(0,a.jsx)("option",{value:e.unit,children:v(e.key)},e.key)),h[15]=v,h[16]=c):c=h[16],h[17]!==k||h[18]!==E||h[19]!==c||h[20]!==d||h[21]!==I?(p=(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(u.l6,{"aria-label":d,fontSize:I,onChange:k,radius:2,value:E,children:c})}),h[17]=k,h[18]=E,h[19]=c,h[20]=d,h[21]=I,h[22]=p):p=h[22],h[23]!==p||h[24]!==l?(m=(0,a.jsxs)(u.so,{gap:2,children:[l,p]}),h[23]=p,h[24]=l,h[25]=m):m=h[25],m}function VW(e){let t,n,r,i,l,d,c,p,m,h,f,g,C,y,x=(0,o.c)(56),{isDateTime:b,onChange:v,value:j}=e,{t:w}=iJ(),{state:_}=pd(),{fullscreen:k}=_,[S]=(0,s.useState)(VG),[T]=(0,s.useState)(VK);x[0]!==b||x[1]!==v||x[2]!==j?.includeTime?(t=e=>{let{date:t,endDate:n}=e;v(VX({date:t,endDate:n,includeTime:j?.includeTime,isDateTime:b}))},x[0]=b,x[1]=v,x[2]=j?.includeTime,x[3]=t):t=x[3];let I=t;x[4]!==b||x[5]!==v||x[6]!==j?(n=()=>{let e=!j?.includeTime;v(VX({date:j?.from?new Date(j.from):null,endDate:j?.to?new Date(j.to):null,includeTime:e,isDateTime:b}))},x[4]=b,x[5]=v,x[6]=j,x[7]=n):n=x[7];let E=n;x[8]!==v||x[9]!==j?.from||x[10]!==j?.includeTime?(r=e=>{v({includeTime:j?.includeTime,to:e||null,from:j?.from||null})},x[8]=v,x[9]=j?.from,x[10]=j?.includeTime,x[11]=r):r=x[11];let $=r;x[12]!==v||x[13]!==j?.includeTime||x[14]!==j?.to?(i=e=>{v({includeTime:j?.includeTime,to:j?.to||null,from:e||null})},x[12]=v,x[13]=j?.includeTime,x[14]=j?.to,x[15]=i):i=x[15];let A=i;x[16]!==w?(l=w("search.filter-date-range-start-date-aria-label"),x[16]=w,x[17]=l):l=x[17];let D=k?2:1,z=b&&j?.includeTime,M=j?.from;x[18]!==A||x[19]!==b||x[20]!==S||x[21]!==l||x[22]!==D||x[23]!==z||x[24]!==M?(d=(0,a.jsx)(VY,{"aria-label":l,fontSize:D,isDateTime:b,isDateTimeFormat:z,onChange:A,placeholderDate:S,radius:2,value:M}),x[18]=A,x[19]=b,x[20]=S,x[21]=l,x[22]=D,x[23]=z,x[24]=M,x[25]=d):d=x[25],x[26]!==w?(c=w("search.filter-date-range-end-date-aria-label"),x[26]=w,x[27]=c):c=x[27];let P=k?2:1,R=b&&j?.includeTime,O=j?.to;return x[28]!==$||x[29]!==b||x[30]!==T||x[31]!==c||x[32]!==P||x[33]!==R||x[34]!==O?(p=(0,a.jsx)(VY,{"aria-label":c,fontSize:P,isDateTime:b,isDateTimeFormat:R,onChange:$,placeholderDate:T,radius:2,value:O}),x[28]=$,x[29]=b,x[30]=T,x[31]=c,x[32]=P,x[33]=R,x[34]=O,x[35]=p):p=x[35],x[36]!==d||x[37]!==p?(m=(0,a.jsxs)(u.so,{direction:"column",gap:3,children:[d,p]}),x[36]=d,x[37]=p,x[38]=m):m=x[38],x[39]!==j?(h=j?.from?new Date(j.from):void 0,x[39]=j,x[40]=h):h=x[40],x[41]!==j?(f=j?.to?new Date(j.to):void 0,x[41]=j,x[42]=f):f=x[42],x[43]!==I||x[44]!==b||x[45]!==h||x[46]!==f?(g=(0,a.jsx)(VF,{date:h,endDate:f,onChange:I,selectRange:!0,selectTime:b}),x[43]=I,x[44]=b,x[45]=h,x[46]=f,x[47]=g):g=x[47],x[48]!==E||x[49]!==b||x[50]!==j?.includeTime?(C=b&&(0,a.jsx)(Vk,{onChange:E,value:!!j?.includeTime}),x[48]=E,x[49]=b,x[50]=j?.includeTime,x[51]=C):C=x[51],x[52]!==m||x[53]!==g||x[54]!==C?(y=(0,a.jsx)("div",{children:(0,a.jsxs)(u.BJ,{space:3,children:[m,g,C]})}),x[52]=m,x[53]=g,x[54]=C,x[55]=y):y=x[55],y}function VK(){return new Date}function VG(){return(0,to.A)(new Date,-7)}function VX({date:e,endDate:t,includeTime:n,isDateTime:r}){return n?{includeTime:n,to:t?VB({date:t,dateOnly:!r,roundDay:"start"}):null,from:e?VB({date:e,dateOnly:!r,roundDay:"start"}):null}:{includeTime:n,to:t?VB({date:t,dateOnly:!r,roundDay:"end"}):null,from:e?VB({date:e,dateOnly:!r,roundDay:"start"}):null}}function VQ(e){let t,n=(0,o.c)(2);return n[0]!==e?(t=(0,a.jsx)(VZ,{...e,isDateTime:!0}),n[0]=e,n[1]=t):t=n[1],t}let V1={dateAfter:{buttonValueComponent:O2,initialValue:null},dateBefore:{buttonValueComponent:O2,initialValue:null},dateEqual:{buttonValueComponent:O2,initialValue:{date:null,includeTime:!1}},dateLast:{buttonValueComponent:function(e){let t,n,r=(0,o.c)(6),{value:i}=e,l=OQ(),s=Math.floor(i?.unitValue??0);return r[0]!==l||r[1]!==s||r[2]!==i.unit?(t=l(s,i.unit),r[0]=l,r[1]=s,r[2]=i.unit,r[3]=t):t=r[3],r[4]!==t?(n=(0,a.jsx)(a.Fragment,{children:t}),r[4]=t,r[5]=n):n=r[5],n}},dateNotEqual:{buttonValueComponent:O2,initialValue:{date:null,includeTime:!1}},dateRange:{initialValue:null}},V2={dateAfter:{...V1.dateAfter,nameKey:"search.operator.date-after.name",descriptionKey:"search.operator.date-after.description",groqFilter:({fieldPath:e,value:t})=>t?.date&&e?`${e} > ${Vs(t?.date)}`:null,inputComponent:function(e){let t,n=(0,o.c)(2);return n[0]!==e?(t=(0,a.jsx)(VH,{...e,direction:"after",isDateTime:!1}),n[0]=e,n[1]=t):t=n[1],t},type:"dateAfter"},dateBefore:{...V1.dateBefore,nameKey:"search.operator.date-before.name",descriptionKey:"search.operator.date-before.description",groqFilter:({fieldPath:e,value:t})=>t?.date&&e?`${e} < ${Vs(t?.date)}`:null,inputComponent:function(e){let t,n=(0,o.c)(2);return n[0]!==e?(t=(0,a.jsx)(VH,{...e,direction:"before",isDateTime:!1}),n[0]=e,n[1]=t):t=n[1],t},type:"dateBefore"},dateEqual:{...V1.dateEqual,nameKey:"search.operator.date-equal.name",descriptionKey:"search.operator.date-equal.description",groqFilter:({fieldPath:e,value:t})=>t?.date&&e?`${e} == ${Vs(t.date)}`:null,inputComponent:VU,type:"dateEqual"},dateLast:{...V1.dateLast,nameKey:"search.operator.date-last.name",descriptionKey:"search.operator.date-last.description",groqFilter:({fieldPath:e,value:t})=>{let n="number"==typeof t?.unitValue?Math.floor(t.unitValue):void 0,r=Number.isFinite(n)?(0,tP.A)(new Date,{days:t?.unit==="day"?n:0,months:t?.unit==="month"?n:0,years:t?.unit==="year"?n:0}
2825).toISOString().split("T")[0]:null;return r&&e?`${e} > ${Vs(r)}`:null},inputComponent:VJ,initialValue:{unit:"day",unitValue:7},type:"dateLast"},dateNotEqual:{...V1.dateNotEqual,nameKey:"search.operator.date-not-equal.name",descriptionKey:"search.operator.date-not-equal.description",groqFilter:({fieldPath:e,value:t})=>t?.date&&e?`${e} != ${Vs(t.date)}`:null,inputComponent:VU,type:"dateNotEqual"},dateRange:{...V1.dateRange,nameKey:"search.operator.date-range.name",descriptionKey:"search.operator.date-range.description",buttonValueComponent:O5,groqFilter:({fieldPath:e,value:t})=>t?.to&&t?.from&&e?`${e} >= ${Vs(t.from)} && ${e} <= ${Vs(t.to)}`:null,initialValue:{includeTime:!1,to:(0,tR.A)().toISOString(),from:null},inputComponent:function(e){let t,n=(0,o.c)(2);return n[0]!==e?(t=(0,a.jsx)(VW,{...e,isDateTime:!1}),n[0]=e,n[1]=t):t=n[1],t},type:"dateRange"},dateTimeAfter:{...V1.dateAfter,nameKey:"search.operator.date-time-after.name",descriptionKey:"search.operator.date-time-after.description",groqFilter:({fieldPath:e,value:t})=>t?.date&&e?`dateTime(${e}) > dateTime(${Vs(t.date)})`:null,inputComponent:function(e){let t,n=(0,o.c)(2);return n[0]!==e?(t=(0,a.jsx)(VH,{...e,direction:"after",isDateTime:!0}),n[0]=e,n[1]=t):t=n[1],t},type:"dateTimeAfter"},dateTimeBefore:{...V1.dateBefore,nameKey:"search.operator.date-time-before.name",descriptionKey:"search.operator.date-time-before.description",groqFilter:({fieldPath:e,value:t})=>t?.date&&e?`dateTime(${e}) < dateTime(${Vs(t.date)})`:null,inputComponent:function(e){let t,n=(0,o.c)(2);return n[0]!==e?(t=(0,a.jsx)(VH,{...e,direction:"before",isDateTime:!0}),n[0]=e,n[1]=t):t=n[1],t},type:"dateTimeBefore"},dateTimeEqual:{...V1.dateEqual,nameKey:"search.operator.date-time-equal.name",descriptionKey:"search.operator.date-time-equal.description",groqFilter:({fieldPath:e,value:t})=>{let n=t?.date&&new Date(t.date);if(!n||!(0,te.A)(n)||!e)return null;let r=(t?.includeTime?(0,tE.A)(n):(0,tA.A)(n)).toISOString(),i=(t?.includeTime?(0,tO.A)(n):(0,tD.A)(n)).toISOString();return`dateTime(${e}) > dateTime(${Vs(r)}) && dateTime(${e}) < dateTime(${Vs(i)})`},inputComponent:VQ,type:"dateTimeEqual"},dateTimeLast:{...V1.dateLast,nameKey:"search.operator.date-time-last.name",descriptionKey:"search.operator.date-time-last.description",groqFilter:({fieldPath:e,value:t})=>{let n="number"==typeof t?.unitValue?Math.floor(t.unitValue):void 0,r=Number.isFinite(n)?(0,tP.A)(new Date,{days:t?.unit==="day"?n:0,months:t?.unit==="month"?n:0,years:t?.unit==="year"?n:0}).toISOString():null;return r&&e?`dateTime(${e}) > dateTime(${Vs(r)})`:null},initialValue:{unit:"day",unitValue:7},inputComponent:VJ,type:"dateTimeLast"},dateTimeNotEqual:{...V1.dateNotEqual,nameKey:"search.operator.date-time-not-equal.name",descriptionKey:"search.operator.date-time-not-equal.description",groqFilter:({fieldPath:e,value:t})=>{let n=t?.date&&new Date(t.date);if(!n||!(0,te.A)(n)||!e)return null;let r=(t?.includeTime?(0,tE.A)(n):(0,tA.A)(n)).toISOString(),i=(t?.includeTime?(0,tO.A)(n):(0,tD.A)(n)).toISOString();return`dateTime(${e}) < dateTime(${Vs(r)}) || dateTime(${e}) > dateTime(${Vs(i)})`},inputComponent:VQ,type:"dateTimeNotEqual"},dateTimeRange:{...V1.dateRange,nameKey:"search.operator.date-time-range.name",descriptionKey:"search.operator.date-time-range.description",buttonValueComponent:O5,groqFilter:({fieldPath:e,value:t})=>t?.to&&t?.from&&e?`dateTime(${e}) >= dateTime(${Vs(t.from)}) && dateTime(${e}) <= dateTime(${Vs(t.to)})`:null,initialValue:{includeTime:!1,to:(0,tR.A)().toISOString(),from:null},inputComponent:function(e){let t,n=(0,o.c)(2);return n[0]!==e?(t=(0,a.jsx)(VW,{...e,isDateTime:!0}),n[0]=e,n[1]=t):t=n[1],t},type:"dateTimeRange"}};function V5(e){let t,n,r,i=(0,o.c)(9),{onChange:l,value:s}=e,{state:d}=pd(),{fullscreen:c}=d,{t:p}=iJ();i[0]!==l?(t=e=>l(e.currentTarget.value||null),i[0]=l,i[1]=t):t=i[1];let m=t,h=c?2:1;i[2]!==p?(n=p("search.filter-string-value-placeholder"),i[2]=p,i[3]=n):n=i[3];let f=s||"";return i[4]!==m||i[5]!==h||i[6]!==n||i[7]!==f?(r=(0,a.jsx)(u.ks,{fontSize:h,onChange:m,placeholder:n,radius:2,value:f}),i[4]=m,i[5]=h,i[6]=n,i[7]=f,i[8]=r):r=i[8],r}let V0={referenceEqual:{nameKey:"search.operator.reference-equal.name",descriptionKey:"search.operator.reference-equal.description",buttonValueComponent:O0,groqFilter:({fieldPath:e,value:t})=>t?._ref&&e?`${e}._ref == ${Vs(t._ref)}`:null,initialValue:null,inputComponent:O9,type:"referenceEqual"},referenceNotEqual:{nameKey:"search.operator.reference-not-equal.name",descriptionKey:"search.operator.reference-not-equal.description",buttonValueComponent:O0,groqFilter:({fieldPath:e,value:t})=>t?._ref&&e?`${e}._ref != ${Vs(t._ref)}`:null,initialValue:null,inputComponent:O9,type:"referenceNotEqual"},referencesAssetFile:{nameKey:"search.operator.reference-asset-file.name",descriptionKey:"search.operator.reference-asset-file.de
2825scription",buttonValueComponent:O0,groqFilter:({value:e})=>e?._ref?`references(${Vs(e._ref)})`:null,initialValue:null,inputComponent:Vj("file"),type:"referencesAssetFile"},referencesAssetImage:{nameKey:"search.operator.reference-asset-image.name",descriptionKey:"search.operator.reference-asset-image.description",buttonValueComponent:O0,groqFilter:({value:e})=>e?._ref?`references(${Vs(e._ref)})`:null,initialValue:null,inputComponent:Vj("image"),type:"referencesAssetImage"},referencesDocument:{nameKey:"search.operator.reference-document.name",descriptionKey:"search.operator.reference-document.description",buttonValueComponent:O0,groqFilter:({value:e})=>e?._ref?`references(${Vs(e._ref)})`:null,initialValue:null,inputComponent:O9,type:"referencesDocument"}},V7=Object.values({arrayCountEqual:{nameKey:"search.operator.array-count-equal.name",descriptionKey:"search.operator.array-count-equal.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t)&&e?`count(${e}) == ${Vs(t)}`:null,initialValue:null,inputComponent:O7,type:"arrayCountEqual"},arrayCountGt:{nameKey:"search.operator.array-count-gt.name",descriptionKey:"search.operator.array-count-gt.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t)&&e?`count(${e}) > ${Vs(t)}`:null,icon:Va,initialValue:null,inputComponent:O7,type:"arrayCountGt"},arrayCountGte:{nameKey:"search.operator.array-count-gte.name",descriptionKey:"search.operator.array-count-gte.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t)&&e?`count(${e}) >= ${Vs(t)}`:null,icon:Vi,initialValue:null,inputComponent:O7,type:"arrayCountGte"},arrayCountLt:{nameKey:"search.operator.array-count-lt.name",descriptionKey:"search.operator.array-count-lt.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t)&&e?`count(${e}) < ${Vs(t)}`:null,icon:Vl,initialValue:null,inputComponent:O7,type:"arrayCountLt"},arrayCountLte:{nameKey:"search.operator.array-count-lte.name",descriptionKey:"search.operator.array-count-lte.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t)&&e?`count(${e}) <= ${Vs(t)}`:null,icon:Vo,initialValue:null,inputComponent:O7,type:"arrayCountLte"},arrayCountNotEqual:{nameKey:"search.operator.array-count-not-equal.name",descriptionKey:"search.operator.array-count-not-equal.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t)&&e?`count(${e}) != ${Vs(t)}`:null,initialValue:null,inputComponent:O7,type:"arrayCountNotEqual"},arrayCountRange:{nameKey:"search.operator.array-count-range.name",descriptionKey:"search.operator.array-count-range.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t?.to)&&Number.isFinite(t?.from)&&e?`count(${e}) > ${Vs(t?.from)} && count(${e}) < ${Vs(t?.to)}`:"",initialValue:null,inputComponent:O3,type:"arrayCountRange"},arrayListIncludes:{nameKey:"search.operator.array-list-includes.name",descriptionKey:"search.operator.array-list-includes.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`${Vs(t)} in ${e}`:null,initialValue:null,inputComponent:Vr,type:"arrayListIncludes"},arrayListNotIncludes:{nameKey:"search.operator.array-list-not-includes.name",descriptionKey:"search.operator.array-list-not-includes.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`!(${Vs(t)} in ${e})`:null,initialValue:null,inputComponent:Vr,type:"arrayListNotIncludes"},arrayReferenceIncludes:{nameKey:"search.operator.array-reference-includes.name",descriptionKey:"search.operator.array-reference-includes.description",buttonValueComponent:O0,groqFilter:({fieldPath:e,value:t})=>t?._ref&&e?`${Vs(t._ref)} in ${e}[]._ref`:null,initialValue:null,inputComponent:O9,type:"arrayReferenceIncludes"},arrayReferenceNotIncludes:{nameKey:"search.operator.array-reference-not-includes.name",descriptionKey:"search.operator.array-reference-not-includes.description",buttonValueComponent:O0,groqFilter:({fieldPath:e,value:t})=>t?._ref&&e?`!(${Vs(t._ref)} in ${e}[]._ref)`:null,initialValue:null,inputComponent:O9,type:"arrayReferenceNotIncludes"},...Vw,booleanEqual:{nameKey:"search.operator.boolean-equal.name",descriptionKey:"search.operator.boolean-equal.description",groqFilter:({fieldPath:e,value:t})=>"u">typeof t&&e?`${e} == ${Vs(t)}`:null,initialValue:!0,inputComponent:function(e){let t,n,r,i,l,s,d=(0,o.c)(16),{onChange:c,value:p}=e,{state:m}=pd(),{fullscreen:h}=m,{t:f}=iJ();d[0]!==c?(t=e=>{c("true"===e.currentTarget.value)},d[0]=c,d[1]=t):t=d[1];let g=t,C=h?2:1,y=String(p??!0);return d[2]!==f?(n=f("search.filter-boolean-true"),d[2]=f,d[3]=n):n=d[3],d[4]!==n?(r=(0,a.jsx)("option",{value:"true",children:n}),d[4]=n,d[5]=r):r=d[5],d[6]!==f?(i=f("search.filter-boolean-false"),d[6]=f,d[7]=i):i=d[7],d[8]!==i?(l=(0,a.jsx)("option",{value:"false",children:i}),d[8]=i,d[9]=l):l=d[9],d[10]!==g||d[11]!==C||d[12]!==y||d[13]!==r||d[14]!==l?(s=(0,a.jsxs)(u.l6,{fontSize:C,onChange:g,radius:2,value:y,children:[r,l]}),d[10]=g,d[11]=C,d[12]=y,d[13]=r,d[14]=l,d[15]=s):s=d[15],s},type:"booleanEqual"},...V2,defined:{nameKey:"search.operator.defined.name",descriptionKey:"search.operator.defined.description",groqFilter:({fieldPath:e})=>e?`defined(${e})`:null,type:"defined"},notDefined:{nameKey:"search.operator.not-defined.name",descriptionKey:"search.operator.not-defined.description",i18nKey:"search.operator.not-defined",groqFilter:({fieldPath:e})=>e?`!defined(${e})`:null,type:"notDefined"},numberEqual:{nameKey:"search.operator.number-equal.name",descriptionKey:"search.operator.number-equal.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t)&&e?`${e} == ${Vs(t)}`:null,initialValue:null,inputComponent:O7,type:"numberEqual"}
2825,numberGt:{nameKey:"search.operator.number-gt.name",descriptionKey:"search.operator.number-gt.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t)&&e?`${e} > ${Vs(t)}`:null,icon:Va,initialValue:null,inputComponent:O7,type:"numberGt"},numberGte:{nameKey:"search.operator.number-gte.name",descriptionKey:"search.operator.number-gte.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t)&&e?`${e} >= ${Vs(t)}`:null,icon:Vi,initialValue:null,inputComponent:O7,type:"numberGte"},numberLt:{nameKey:"search.operator.number-lt.name",descriptionKey:"search.operator.number-lt.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t)&&e?`${e} < ${Vs(t)}`:null,icon:Vl,initialValue:null,inputComponent:O7,type:"numberLt"},numberLte:{nameKey:"search.operator.number-lte.name",descriptionKey:"search.operator.number-lte.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t)&&e?`${e} <= ${Vs(t)}`:null,icon:Vo,initialValue:null,inputComponent:O7,type:"numberLte"},numberNotEqual:{nameKey:"search.operator.number-not-equal.name",descriptionKey:"search.operator.number-not-equal.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t)&&e?`${e} != ${Vs(t)}`:null,initialValue:null,inputComponent:O7,type:"numberNotEqual"},numberRange:{nameKey:"search.operator.number-range.name",descriptionKey:"search.operator.number-range.description",groqFilter:({fieldPath:e,value:t})=>Number.isFinite(t?.to)&&Number.isFinite(t?.from)&&e?`${e} > ${Vs(t?.from)} && ${e} < ${Vs(t?.to)}`:"",initialValue:null,inputComponent:O3,type:"numberRange"},portableTextEqual:{nameKey:"search.operator.portable-text-equal.name",descriptionKey:"search.operator.portable-text-equal.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`pt::text(${e}) == ${Vs(t)}`:null,initialValue:null,inputComponent:V5,type:"portableTextEqual"},portableTextMatches:{nameKey:"search.operator.portable-text-contains.name",descriptionKey:"search.operator.portable-text-contains.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`pt::text(${e}) match ${Vs(t)}`:null,initialValue:null,inputComponent:V5,type:"portableTextMatches"},portableTextNotEqual:{nameKey:"search.operator.portable-text-not-equal.name",descriptionKey:"search.operator.portable-text-not-equal.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`pt::text(${e}) != ${Vs(t)}`:null,initialValue:null,inputComponent:V5,type:"portableTextNotEqual"},portableTextNotMatches:{nameKey:"search.operator.portable-text-not-contains.name",descriptionKey:"search.operator.portable-text-not-contains.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`!(pt::text(${e}) match ${Vs(t)})`:null,initialValue:null,inputComponent:V5,type:"portableTextNotMatches"},...V0,slugEqual:{nameKey:"search.operator.slug-equal.name",descriptionKey:"search.operator.slug-equal.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`${e}.current == ${Vs(t)}`:null,initialValue:null,inputComponent:V5,type:"slugEqual"},slugMatches:{nameKey:"search.operator.slug-contains.name",descriptionKey:"search.operator.slug-contains.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`${e}.current match ${Vs(t)}`:null,initialValue:null,inputComponent:V5,label:"contains",type:"slugMatches"},slugNotEqual:{nameKey:"search.operator.slug-not-equal.name",descriptionKey:"search.operator.slug-not-equal.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`${e}.current != ${Vs(t)}`:null,initialValue:null,inputComponent:V5,type:"slugNotEqual"},slugNotMatches:{nameKey:"search.operator.slug-not-contains.name",descriptionKey:"search.operator.slug-not-contains.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`!(${e}.current match ${Vs(t)})`:null,initialValue:null,inputComponent:V5,type:"slugNotMatches"},stringEqual:{nameKey:"search.operator.string-equal.name",descriptionKey:"search.operator.string-equal.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`${e} == ${Vs(t)}`:null,initialValue:null,inputComponent:V5,type:"stringEqual"},stringListEqual:{nameKey:"search.operator.string-list-equal.name",descriptionKey:"search.operator.string-list-equal.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`${e} == ${Vs(t)}`:null,initialValue:null,inputComponent:Vr,type:"stringListEqual"},stringListNotEqual:{nameKey:"search.operator.string-list-not-equal.name",descriptionKey:"search.operator.string-list-not-equal.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`${e} != ${Vs(t)}`:null,initialValue:null,inputComponent:Vr,type:"stringListNotEqual"},stringMatches:{nameKey:"search.operator.string-contains.name",descriptionKey:"search.operator.string-contains.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`${e} match "*${t}*"`:null,initialValue:null,inputComponent:V5,type:"stringMatches"},stringNotEqual:{nameKey:"search.operator.string-not-equal.name",descriptionKey:"search.operator.string-not-equal.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`${e} != ${Vs(t)}`:null,initialValue:null,inputComponent:V5,type:"stringNotEqual"},stringNotMatches:{nameKey:"search.operator.string-not-contains.name",descriptionKey:"search.operator.string-not-contains.description",groqFilter:({fieldPath:e,value:t})=>t&&e?`!(${e} match "*${t}*")`:null,initialValue:null,inputComponent:V5,type:"stringNotMatches"}});function V3(e){let t,n,r,i,l=(0,o.c)(32),{assetSources:s,readOnly:d,id:c,browseButtonElementRef:p,schemaType:m,setIsBrowseMenuOpen:h,setSelectedAssetSource:f}=e,g=m.options?.sources,{t:x}=iJ();l[0]!==h||l[1]!==f?(t=e=>{h(!1),f(e)},l[0]=h,l[1]=f,l[2]=t):t=l[2];let b=t;if(g?.length===0||0===s.length)return null;if(s.length>1&&!d){let e,t,n,r,i,o=`${c}_assetFileButton`;if(l[3]!==x?(e=x("inputs.file.multi-browse-button.text"),l[3]=x,l[4]=e):e=l[4],l[5]!==e?
2825(t=(0,a.jsx)(y.$n,{mode:"bleed",text:e,"data-testid":"video-input-multi-browse-button",icon:C.WIv,iconRight:C.D3D}),l[5]=e,l[6]=t):t=l[6],l[7]!==s||l[8]!==b||l[9]!==x){let e;l[11]!==b||l[12]!==x?(e=e=>(0,a.jsx)(y.Dr,{text:(e.i18nKey?x(e.i18nKey):e.title)||eJ(e.name),onClick:()=>b(e),icon:e.icon||C.xfq,"data-testid":`video-input-browse-button-${e.name}`},e.name),l[11]=b,l[12]=x,l[13]=e):e=l[13],n=s.map(e),l[7]=s,l[8]=b,l[9]=x,l[10]=n}else n=l[10];return l[14]!==n?(r=(0,a.jsx)(u.W1,{children:n}),l[14]=n,l[15]=r):r=l[15],l[16]!==p||l[17]!==o||l[18]!==t||l[19]!==r?(i=(0,a.jsx)(y.IU,{id:o,ref:p,button:t,"data-testid":"input-select-button",menu:r}),l[16]=p,l[17]=o,l[18]=t,l[19]=r,l[20]=i):i=l[20],i}l[21]!==x?(n=x("inputs.file.browse-button.text"),l[21]=x,l[22]=n):n=l[22],l[23]!==s[0]||l[24]!==b?(r=()=>b(s[0]),l[23]=s[0],l[24]=b,l[25]=r):r=l[25];let v=`video-input-browse-button-${s[0].name}`;return l[26]!==p||l[27]!==d||l[28]!==n||l[29]!==r||l[30]!==v?(i=(0,a.jsx)(y.$n,{text:n,icon:C.WIv,mode:"bleed",onClick:r,"data-testid":v,disabled:d,ref:p}),l[26]=p,l[27]=d,l[28]=n,l[29]=r,l[30]=v,l[31]=i):i=l[31],i}function V8(e){let t,n,r,i,l,s,d,c,p,m=(0,o.c)(20),{onClearValue:h}=e,{t:f}=iJ();return m[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(u.az,{children:(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.sAQ,{})})}),m[0]=t):t=m[0],m[1]!==f?(n=f("inputs.file.invalid-file-warning.title"),m[1]=f,m[2]=n):n=m[2],m[3]!==n?(r=(0,a.jsx)(u.EY,{size:1,weight:"medium",children:n}),m[3]=n,m[4]=r):r=m[4],m[5]!==f?(i=f("inputs.file.invalid-file-warning.description"),m[5]=f,m[6]=i):i=m[6],m[7]!==i?(l=(0,a.jsx)(u.EY,{size:1,children:i}),m[7]=i,m[8]=l):l=m[8],m[9]!==r||m[10]!==l?(s=(0,a.jsxs)(u.so,{gap:4,marginBottom:4,children:[t,(0,a.jsxs)(u.BJ,{space:3,children:[r,l]})]}),m[9]=r,m[10]=l,m[11]=s):s=m[11],m[12]!==f?(d=f("inputs.file.invalid-file-warning.reset-button.text"),m[12]=f,m[13]=d):d=m[13],m[14]!==h||m[15]!==d?(c=(0,a.jsx)(y.$n,{icon:C.NAP,mode:"ghost",onClick:h,text:d,width:"fill"}),m[14]=h,m[15]=d,m[16]=c):c=m[16],m[17]!==s||m[18]!==c?(p=(0,a.jsxs)(u.Zp,{tone:"caution",padding:4,border:!0,radius:2,children:[s,c]}),m[17]=s,m[18]=c,m[19]=p):p=m[19],p}let V4=(0,g.I4)(u.Zp)`
2826  position: absolute;
2827  top: 0;
2828  left: 0;
2829  width: 100%;
2830  height: 100%;
2831`,V6=(0,g.I4)(u.so)`
2832  height: 100%;
2833`,V9=(0,g.I4)(u.Zp)`
2834  position: relative;
2835  display: flex;
2836  justify-content: center;
2837  align-items: center;
2838  width: 100%;
2839  min-height: 3.75rem;
2840  max-height: 30dvh;
2841  aspect-ratio: var(--aspect-ratio);
2842`,Le=(0,s.lazy)(()=>Promise.all([n.e(7529),n.e(3933)]).then(n.bind(n,23933)).then(e=>({default:e.VideoPlayer}))),Lt=(0,g.I4)(u.cV)`
2843  position: absolute;
2844  top: 0;
2845  right: 0;
2846`;function Ln(e){let t,n,r,i,l,d,c,p,m,h,f,g,C,x,b,v,j=(0,o.c)(46),{playbackId:w,children:_,aspectRatio:k,muted:S,disabled:T,onClick:I,isMenuOpen:E,onMenuOpen:$,setMenuButtonElement:A}=e,[D,z]=(0,s.useState)(null),[M,P]=(0,s.useState)(null);j[0]!==$?(t=()=>$(!0),j[0]=$,j[1]=t):t=j[1];let R=t;j[2]!==M||j[3]!==E||j[4]!==$?(n=e=>{E&&("Escape"===e.key||"Tab"===e.key)&&($(!1),M?.focus())},j[2]=M,j[3]=E,j[4]=$,j[5]=n):n=j[5],(0,u.Pm)(n),j[6]!==M||j[7]!==$?(r=e=>{M?.contains(e.target)||$(!1)},j[6]=M,j[7]=$,j[8]=r):r=j[8],j[9]!==D?(i=()=>[D],j[9]=D,j[10]=i):i=j[10],(0,u.PR)(r,i),j[11]!==A?(l=e=>{A(e),P(e)},j[11]=A,j[12]=l):l=j[12];let O=l;j[13]!==E||j[14]!==D?(d=()=>{E&&D?.focus()},c=[E,D],j[13]=E,j[14]=D,j[15]=d,j[16]=c):(d=j[15],c=j[16]),(0,s.useEffect)(d,c);let{t:V}=iJ(),L=S||T?void 0:"button";j[17]!==k?(p={"--aspect-ratio":k},j[17]=k,j[18]=p):p=j[18];let F=p;return j[19]!==k||j[20]!==T||j[21]!==S||j[22]!==w?(m=w&&(0,a.jsx)(s.Suspense,{fallback:(0,a.jsx)(u.y$,{}),children:(0,a.jsx)(Le,{playbackId:w,aspectRatio:k,muted:S,disabled:T})}),j[19]=k,j[20]=T,j[21]=S,j[22]=w,j[23]=m):m=j[23],j[24]!==m||j[25]!==F?(h=(0,a.jsx)(V9,{tone:"transparent",style:F,children:m}),j[24]=m,j[25]=F,j[26]=h):h=j[26],j[27]!==I||j[28]!==h||j[29]!==L?(f=(0,a.jsx)(u.Zp,{as:L,tone:"inherit",onClick:I,flex:1,children:h}),j[27]=I,j[28]=h,j[29]=L,j[30]=f):f=j[30],j[31]!==_?(g=(0,a.jsx)(u.W1,{ref:z,children:_}),j[31]=_,j[32]=g):g=j[32],j[33]!==V?(C=V("inputs.file.actions-menu.video-options.aria-label"),j[33]=V,j[34]=C):C=j[34],j[35]!==R||j[36]!==O||j[37]!==C?(x=(0,a.jsx)(rU,{"aria-label":C,"data-testid":"options-menu-button",onClick:R,ref:O}),j[35]=R,j[36]=O,j[37]=C,j[38]=x):x=j[38],j[39]!==E||j[40]!==g||j[41]!==x?(b=(0,a.jsx)(Lt,{padding:2,children:(0,a.jsx)(y.AM,{content:g,id:"video-actions-menu",portal:!0,open:E,constrainSize:!0,children:x})}),j[39]=E,j[40]=g,j[41]=x,j[42]=b):b=j[42],j[43]!==f||j[44]!==b?(v=(0,a.jsxs)(u.az,{children:[f,b]}),j[43]=f,j[44]=b,j[45]=v):v=j[45],v}function Lr(){let e,t,n,r=(0,o.c)(3);return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(p.EA,{padding:3,radius:1,animated:!0}),r[0]=e):e=r[0],r[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(p.r5,{style:{width:"100%"},radius:1,animated:!0}),r[1]=t):t=r[1],r[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsxs)(u.so,{align:"center",justify:"flex-start",padding:2,children:[e,(0,a.jsxs)(u.BJ,{flex:1,space:2,marginLeft:3,children:[t,(0,a.jsx)(p.r5,{style:{width:"100%"},radius:1,animated:!0})]})]}),r[2]=n):n=r[2],n}function Li(e){let t,n,r,i,l,d,c,u,p,m,h=(0,o.c)(56),{assetSources:f,clearField:g,directUploads:x,onSelectFiles:b,observeAsset:v,readOnly:j,schemaType:w,setBrowseButtonElement:_,setSelectedAssetSource:k,value:S}=e,{t:T}
2846=iJ(),[I,E]=(0,s.useState)(!1),$=S?.asset,A=w.options?.sources;h[0]!==w?(t=ni(w,"options.accept",""),h[0]=w,h[1]=t):t=h[1];let D=t;h[2]!==f?(n=f.filter(La),h[2]=f,h[3]=n):n=h[3];let z=n;h[4]!==f||h[5]!==k?(r=e=>{E(!1);let t=e.currentTarget.getAttribute("data-asset-source-name"),n=f.find(e=>e.name===t);n?k(n):console.warn(`No asset source found for the selected asset source name '${t}'`)},h[4]=f,h[5]=k,h[6]=r):r=h[6];let M=r;h[7]!==b?(i=(e,t)=>{E(!1),b(e,t)},h[7]=b,h[8]=i):i=h[8];let P=i;h[9]!==z[0]||h[10]!==P?(l=e=>{P(z[0],e)},h[9]=z[0],h[10]=P,h[11]=l):l=h[11];let R=l;e:{let e;if(A?.length===0||0===f.length){d=null;break e}if(1===f.length){let e,t;h[12]!==T?(e=T("inputs.file.browse-button.text"),h[12]=T,h[13]=e):e=h[13];let n=`video-input-browse-button-${f[0].name}`;h[14]!==f[0].name||h[15]!==M||h[16]!==j||h[17]!==e||h[18]!==n?(t=(0,a.jsx)(y.Dr,{icon:C.WIv,text:e,onClick:M,disabled:j,"data-testid":n,"data-asset-source-name":f[0].name}),h[14]=f[0].name,h[15]=M,h[16]=j,h[17]=e,h[18]=n,h[19]=t):t=h[19],d=t;break e}if(h[20]!==f||h[21]!==M||h[22]!==j||h[23]!==T){let t;h[25]!==M||h[26]!==j||h[27]!==T?(t=e=>(0,a.jsx)(y.Dr,{text:(e.i18nKey?T(e.i18nKey):e.title)||eJ(e.name),onClick:M,icon:e.icon||C.xfq,disabled:j,"data-testid":`video-input-browse-button-${e.name}`,"data-asset-source-name":e.name},e.name),h[25]=M,h[26]=j,h[27]=T,h[28]=t):t=h[28],e=f.map(t),h[20]=f,h[21]=M,h[22]=j,h[23]=T,h[24]=e}else e=h[24];d=e}let O=d;switch(z.length){case 0:c=null;break;case 1:{let e,t,n=z[0].name;h[29]!==T?(e=T("inputs.files.common.actions-menu.upload.label"),h[29]=T,h[30]=e):e=h[30];let r=`video-input-upload-button-${z[0].name}`,i=j||!1===x;h[31]!==D||h[32]!==z[0].name||h[33]!==R||h[34]!==i||h[35]!==e||h[36]!==r?(t=(0,a.jsx)(Tc,{icon:C.JMY,onSelect:R,accept:D,"data-asset-source-name":n,text:e,"data-testid":r,disabled:i}),h[31]=D,h[32]=z[0].name,h[33]=R,h[34]=i,h[35]=e,h[36]=r,h[37]=t):t=h[37],c=t;break}default:{let e;h[38]!==D||h[39]!==z||h[40]!==x||h[41]!==P||h[42]!==j?(e=(0,a.jsx)(S7,{accept:D,assetSources:z,directUploads:x,onSelectFiles:P,readOnly:j,"data-testid":"video-input-upload-drop-down-menu-button",renderAsMenuGroup:!0}),h[38]=D,h[39]=z,h[40]=x,h[41]=P,h[42]=j,h[43]=e):e=h[43],c=e}}let V=c;return $?(h[44]===Symbol.for("react.memo_cache_sentinel")?(u=(0,a.jsx)(Lr,{}),h[44]=u):u=h[44],h[45]!==O||h[46]!==g||h[47]!==I||h[48]!==j||h[49]!==_||h[50]!==V?(p=e=>{let{metadata:t}=e,n=t?.playbacks?.[0]?._id,r=t?.aspectRatio;return(0,a.jsx)(Ln,{aspectRatio:r,playbackId:n,muted:!j,onMenuOpen:E,isMenuOpen:I,setMenuButtonElement:_,children:(0,a.jsx)(Ts,{browse:O,upload:V,onReset:g,readOnly:j})})},h[45]=O,h[46]=g,h[47]=I,h[48]=j,h[49]=_,h[50]=V,h[51]=p):p=h[51],h[52]!==$||h[53]!==v||h[54]!==p?(m=(0,a.jsx)(Tl,{reference:$,observeAsset:v,waitPlaceholder:u,children:p}),h[52]=$,h[53]=v,h[54]=p,h[55]=m):m=h[55],m):null}function La(e){return!!e.Uploader}let Lo=["asset"];function Ll(e){let t,n,r,i,l,d,c,p,m,h,f,g,C,y,x,b=(0,o.c)(76),{assetSources:v,changed:j,clearField:w,directUploads:_,elementProps:k,hoveringFiles:S,isStale:T,isUploading:I,onCancelUpload:E,onClearUploadStatus:$,onSelectAssets:A,onSelectFiles:D,onStale:z,path:M,readOnly:P,resolveUploader:R,schemaType:O,setHoveringFiles:V,value:L}=e,{t:F}=iJ();b[0]!==M?(n=M.concat(Lo),b[0]=M,b[1]=n):n=b[1],t=n;let[B,N]=(0,s.useState)(null),[Y,H]=(0,s.useState)(!1);b[2]===Symbol.for("react.memo_cache_sentinel")?(r=[],b[2]=r):r=b[2];let[Z,U]=(0,s.useState)(r),q=k.ref?.current,J=v.filter(Lc).length>1;b[3]!==k?(i=e=>{e.currentTarget===e.target&&e.currentTarget===k.ref?.current&&k.onFocus(e)},b[3]=k,b[4]=i):i=b[4];let W=i;b[5]!==_||b[6]!==J||b[7]!==R||b[8]!==O||b[9]!==V?(l=e=>{V(e.filter(Ld));let t=!0,n=e.filter(e=>R?.(O,e)),r=e.length-n.length;e.length>0&&(r>0||!1===_)&&(t=!1),J&&t&&H(!0)},b[5]=_,b[6]=J,b[7]=R,b[8]=O,b[9]=V,b[10]=l):l=b[10];let K=l;b[11]!==V?(d=()=>{V([]),H(!1)},b[11]=V,b[12]=d):d=b[12];let G=d;b[13]!==_||b[14]!==G||b[15]!==S.length||b[16]!==D||b[17]!==P||b[18]!==V?(c=(e,t)=>{_&&!P?(V([]),D(e,t)):S.length>0&&G()},b[13]=_,b[14]=G,b[15]=S.length,b[16]=D,b[17]=P,b[18]=V,b[19]=c):c=b[19];let X=c;b[20]!==_||b[21]!==S||b[22]!==P||b[23]!==R||b[24]!==O||b[25]!==L?._upload||b[26]!==L?.asset?(p=()=>{let e=S.filter(e=>R?.(O,e)),t=S.length-e.length;return S.length>0&&(t>0||!1===_)?"critical":L?._upload||P||!(S.length>0)?L?._upload&&L?.asset&&P?"transparent":"default":"primary"},b[20]=_,b[21]=S,b[22]=P,b[23]=R,b[24]=O,b[25]=L?._upload,b[26]=L?.asset,b[27]=p):p=b[27];let Q=p,ee=!!(L?._upload||L?.asset);b[28]!==Z||b[29]!==D?(m=e=>{N(e),e&&Z.length>0&&(H(!1),D(e,Z),U([]),N(null))},b[28]=Z,b[29]=D,b[30]=m):m=b[30];let et=m;b[31]!==B||b[32]!==v||b[33]!==_||b[34]!==J||b[35]!==D||b[36]!==R||b[37]!==O?(h=e=>{let t=e.filter(e=>R?.(O,e));if(!(e.length-t.length>0||!1===_)&&0!==e.length)if(J){if(B){D(B,e),H(!1),N(null);return}H(!0),U(e)}else{let t=v.filter(Ls)[0];t&&D(t,e),H(!1),N(null)}},b[31]=B,b[32]=v,b[33]=_,b[34]=J,b[35]=D,b[36]=R,b[37]=O,b[38]=h):h=b[38];let en=h;b[39]===Symbol.for("react.memo_cache_sentinel")?(f=()=>{H(!1),N(null)},b[39]=f):f=b[39];let er=f;if(L&&"u">typeof L.asset&&!L?._upload&&!L?.asset?._ref?.startsWith("video-")){let e;return b[40]!==w?(e=(0,a.jsx)(V8,{onClearValue:w}),b[40]=w,b[41]=e):e=b[41],e}b[42]!==T||b[43]!==$?(g=T&&(0,a.jsx)(u.az,{marginBottom:2,children:(0,a.jsx)(Ta,{onClearStale:$})}),b[42]=T,b[43]=$,b[44]=g):g=b[44];let ei=!!e.focused;return b[45]!==v||b[46]!==_||b[47]!==k||b[48]!==q||b[49]!==Q||b[50]!==W||b[51]!==G||b[52]!==K||b[53]!==en||b[54]!==X||b[55]!==et||b[56]!==ee||b[57]!==S.length||b[58]!==I||b[59]!==E||b[60]!==A||b[61]!==z||b[62]!==e||b[63]!==P||b[64]!==Y||b[65]!==F||b[66]!==L?(C=L?._upload?(0,a.jsx)(Ti,{uploadState:L._upload,onCancel:I&&E?E:void 0,onStale:z}):(0,a.jsx)(k7,{...k,onFocus:W,tabIndex:0,disabled:P||!1===_,onFiles:en,onFilesOver:K,onFilesOut:G,tone:Q(),$border:ee||S.length>0,style:{padding:1}
2846,sizing:"border",radius:2,children:(0,a.jsxs)("div",{style:{position:"relative"},children:[Y&&(0,a.jsx)(k8,{assetSources:v,onSelectAssetSource:et,referenceElement:q,onClose:er,text:F("inputs.files.common.placeholder.select-asset-source-upload-destination",{context:"file"})}),!L?.asset&&(0,a.jsx)(Lu,{...e,onSelectFiles:X}),L?.asset&&S.length>0?(0,a.jsx)(Lp,{...e,tone:Q(),onSelectFiles:X}):null,!L?._upload&&L?.asset&&(0,a.jsx)(Li,{...e,onSelectAssets:A})]})}),b[45]=v,b[46]=_,b[47]=k,b[48]=q,b[49]=Q,b[50]=W,b[51]=G,b[52]=K,b[53]=en,b[54]=X,b[55]=et,b[56]=ee,b[57]=S.length,b[58]=I,b[59]=E,b[60]=A,b[61]=z,b[62]=e,b[63]=P,b[64]=Y,b[65]=F,b[66]=L,b[67]=C):C=b[67],b[68]!==t||b[69]!==j||b[70]!==ei||b[71]!==C?(y=(0,a.jsx)(El,{path:t,hasFocus:ei,isChanged:j,children:C}),b[68]=t,b[69]=j,b[70]=ei,b[71]=C,b[72]=y):y=b[72],b[73]!==g||b[74]!==y?(x=(0,a.jsxs)(a.Fragment,{children:[g,y]}),b[73]=g,b[74]=y,b[75]=x):x=b[75],x}function Ls(e){return e.Uploader}function Ld(e){return"string"!==e.kind}function Lc(e){return!!e.Uploader}function Lu(e){let t,n,r,i,l,s,d=(0,o.c)(27),{assetSources:c,directUploads:p,hoveringFiles:m,onSelectFiles:h,readOnly:f,resolveUploader:g,schemaType:C}=e;if(d[0]!==m||d[1]!==g||d[2]!==C){let e;d[4]!==g||d[5]!==C?(e=e=>g?.(C,e),d[4]=g,d[5]=C,d[6]=e):e=d[6],t=m.filter(e),d[0]=m,d[1]=g,d[2]=C,d[3]=t}else t=d[3];let y=t,x=m.length-y.length;d[7]!==C?(n=ni(C,"options.accept",""),d[7]=C,d[8]=n):n=d[8];let b=n,v=f?"transparent":"inherit";return d[9]!==m.length?(r=0===m.length?{borderStyle:"dashed"}:{borderStyle:"dashed",borderColor:"transparent"},d[9]=m.length,d[10]=r):r=d[10],d[11]!==e?(i=(0,a.jsx)(V3,{...e}),d[11]=e,d[12]=i):i=d[12],d[13]!==b||d[14]!==y||d[15]!==c||d[16]!==p||d[17]!==m||d[18]!==h||d[19]!==f||d[20]!==x||d[21]!==i?(l=(0,a.jsx)(S8,{accept:b,acceptedFiles:y,assetSources:c,browse:i,directUploads:p,hoveringFiles:m,onUpload:h,readOnly:f,rejectedFilesCount:x,type:"file"}),d[13]=b,d[14]=y,d[15]=c,d[16]=p,d[17]=m,d[18]=h,d[19]=f,d[20]=x,d[21]=i,d[22]=l):l=d[22],d[23]!==v||d[24]!==r||d[25]!==l?(s=(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(u.Zp,{tone:v,border:!0,paddingX:3,paddingY:2,radius:2,style:r,children:l})}),d[23]=v,d[24]=r,d[25]=l,d[26]=s):s=d[26],s}function Lp(e){let t,n,r,i=(0,o.c)(16),{directUploads:l,schemaType:s,readOnly:d,resolveUploader:c,hoveringFiles:u,tone
2846:p}=e;if(i[0]!==u||i[1]!==c||i[2]!==s){let e;i[4]!==c||i[5]!==s?(e=e=>c?.(s,e),i[4]=c,i[5]=s,i[6]=e):e=i[6],t=u.filter(e),i[0]=u,i[1]=c,i[2]=s,i[3]=t}else t=i[3];let m=t,h=u.length-m.length;return i[7]!==m||i[8]!==l||i[9]!==u||i[10]!==d||i[11]!==h?(n=(0,a.jsx)(V6,{align:"center",justify:"center",gap:2,flex:1,children:(0,a.jsx)(k0,{directUploads:l,readOnly:d,hoveringFiles:u,acceptedFiles:m,rejectedFilesCount:h,type:"file"})}),i[7]=m,i[8]=l,i[9]=u,i[10]=d,i[11]=h,i[12]=n):n=i[12],i[13]!==n||i[14]!==p?(r=(0,a.jsx)(V4,{radius:2,tone:p,children:n}),i[13]=n,i[14]=p,i[15]=r):r=i[15],r}function Lm(e){let t,n,r,i,l,s=(0,o.c)(32),{isUploading:d,observeAsset:c,schemaType:u,selectedAssetSource:p,setSelectedAssetSource:m,onSelectAssets:h,value:f,uploader:g}=e,C="sanity.video",{t:y}=iJ();s[0]!==u?(t=ni(u,"options.accept",""),s[0]=u,s[1]=t):t=s[1];let x=t;s[2]!==m?(n=()=>{m(null)},s[2]=m,s[3]=n):n=s[3];let b=n;if(!p)return null;let v=p.component;if(f&&f.asset){let e,t,n;return s[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(Lr,{}),s[4]=e):e=s[4],s[5]!==v||s[6]!==x||s[7]!==b||s[8]!==d||s[9]!==h||s[10]!==u||s[11]!==p||s[12]!==y||s[13]!==g?(t=e=>(0,a.jsx)(v,{accept:x,action:d?"upload":"select",assetSource:p,assetType:C,dialogHeaderTitle:y("inputs.file.dialog.title"),onClose:b,onSelect:h,schemaType:u,selectedAssets:[e],selectionType:"single",uploader:g}),s[5]=v,s[6]=x,s[7]=b,s[8]=d,s[9]=h,s[10]=u,s[11]=p,s[12]=y,s[13]=g,s[14]=t):t=s[14],s[15]!==c||s[16]!==t||s[17]!==f.asset?(n=(0,a.jsx)(Tl,{observeAsset:c,reference:f.asset,waitPlaceholder:e,children:t}),s[15]=c,s[16]=t,s[17]=f.asset,s[18]=n):n=s[18],n}let j=d?"upload":"select";return s[19]!==y?(r=y("inputs.file.dialog.title"),s[19]=y,s[20]=r):r=s[20],s[21]===Symbol.for("react.memo_cache_sentinel")?(i=[],s[21]=i):i=s[21],s[22]!==v||s[23]!==x||s[24]!==b||s[25]!==h||s[26]!==u||s[27]!==p||s[28]!==j||s[29]!==r||s[30]!==g?(l=(0,a.jsx)(v,{accept:x,action:j,assetSource:p,assetType:C,dialogHeaderTitle:r,onClose:b,onSelect:h,schemaType:u,selectedAssets:i,selectionType:"single",uploader:g}),s[22]=v,s[23]=x,s[24]=b,s[25]=h,s[26]=u,s[27]=p,s[28]=j,s[29]=r,s[30]=g,s[31]=l):l=s[31],l}function Lh({children:e}){return e}function Lf(e){let{client:t,members:n,onChange:r,renderAnnotation:i,renderBlock:o,renderField:l,renderInlineBlock:d,renderInput:c,renderItem:u,renderPreview:m,schemaType:h,value:f}=e,{push:g}=(0,p.dj)(),{t:C}=iJ(),[y,x]=(0,s.useState)([]),[b,v]=(0,s.useState)(!1),[j,w]=(0,s.useState)(!1),[_,k]=(0,s.useState)(!1),[S,T]=(0,s.useState)(null),I=(0,s.useRef)(null),E=(0,s.useRef)(null),$=(0,s.useCallback)(e=>{e&&(I.current=e)},[I]),A=(0,s.useRef)(null),D=(0,s.useCallback)(()=>{r([s3(["asset"]),s3(["media"])])},[r]),z=(0,s.useCallback)(()=>{f?._upload&&r(s4.from([s3(["_upload"])]))},[r,f?._upload]),M=(0,s.useCallback)(()=>{v(!0)},[]),P=(0,s.useCallback)(()=>{A.current&&(A.current?.unsubscribe(),z())},[z]),R=(0,s.useCallback)((e,n,i={})=>{let{source:a}=i,o={metadata:ni(h,"options.metadata"),storeOriginalFilename:ni(h,"options.storeOriginalFilename"),source:a};P(),w(!0),r(s4.from([s5({_type:h.name})])),A.current=e.upload(t,n,h,o).subscribe({next:e=>{e.patches&&r(s4.from(e.patches))},error:e=>{console.error(e),g({status:"error",description:C("inputs.file.upload-failed.description"),title:C("inputs.file.upload-failed.title")}),z()},complete:()=>{w(!1)}})},[P,z,t,r,g,h,C]),O=(0,s.useCallback)(e=>{k2({assetsFromSource:e,onChange:r,type:h,resolveUploader:bS,uploadWith:R}),T(null),w(!1)},[r,h,R]),V=(0,s.useCallback)((e,t)=>{if(0!==t.length&&(T(e),e.Uploader)){let n=new e.Uploader;E.current?.unsubscribe();try{E.current={unsubscribe:n.subscribe(e=>{switch(e.type){case"progress":r(s4.from([s7(Math.max(2,e.progress),[bf,"progress"]),s7(new Date().toISOString(),[bf,"updatedAt"])]));break;case"error":e.files.forEach(e=>{console.error(e.error)}),g({status:"error",description:C("asset-sources.common.uploader.upload-failed.description"),title:C("asset-sources.common.uploader.upload-failed.title")});break;case"all-complete":r(s4.from([s3([bf])]))}}),uploader:n},w(!0),r(s4.from(by(t[0]))),n.upload(t,{schemaType:h,onChange:r})}catch(e){r(s4.from([s3([bf])])),w(!1),E.current?.unsubscribe(),T(null),E.current=null,g({status:"error",description:C("asset-sources.common.uploader.upload-failed.description"),title:C("asset-sources.common.uploader.upload-failed.title")}),console.error(e)}}},[r,g,h,C]);(0,s.useEffect)(()=>()=>{E.current?.uploader?.abort(),E.current?.unsubscribe()},[]);let L=(0,s.useCallback)(()=>{E.current?.uploader?.abort()},[]),F=(0,s.useCallback)(()=>(0,a.jsx)(Ll,{...e,browseButtonElementRef:I,clearField:D,hoveringFiles:y,isBrowseMenuOpen:_,isStale:b,isUploading:j,onCancelUpload:L,onClearUploadStatus:z,onSelectAssets:O,onSelectFiles:V,onStale:M,selectedAssetSource:S,setBrowseButtonElement:$,setHoveringFiles:x,setIsBrowseMenuOpen:k,setIsUploading:w,setSelectedAssetSource:T}),[L,D,z,O,V,M,y,_,b,j,e,S,I,$]);return(0,a.jsxs)(a.Fragment,{children:[n.map(e=>"field"===e.kind?(0,a.jsx)(bz,{member:e,renderAnnotation:i,renderBlock:o,renderField:"asset"===e.name?Lh:l,renderInlineBlock:d,renderInput:"asset"===e.name?F:c,renderItem:u,renderPreview:m},e.key):"fieldSet"===e.kind?(0,a.jsx)(b5,{member:e,renderAnnotation:i,renderBlock:o,renderField:l,renderInlineBlock:d,renderInput:c,renderItem:u,renderPreview:m},e.key):"error"===e.kind?(0,a.jsx)(b2,{member:e},e.key):(0,a.jsx)(a.Fragment,{children:C("inputs.file.error.unknown-member-kind",{kind:e.kind})})),S&&(0,a.jsx)(Lm,{...e,browseButtonElementRef:I,clearField:D,hoveringFiles:y,isBrowseMenuOpen:_,isStale:b,isUploading:j,onClearUploadStatus:z,onStale:M,onSelectAssets:O,onSelectFiles:V,selectedAssetSource:S,setBrowseButtonElement:$,setHoveringFiles:x,setIsBrowseMenuOpen:k,setIsUploading:w,setSelectedAssetSource:T,uploader:E.current?.uploader})]})}function Lg(e){return"sanity-media-library"===e.name}let LC=(0,_.U8)({name:"sanity.video",title:"Video",type:"object",components:{input:function(e){let t,n,r,i,l=(0,o.c)(13),s=e.sc
2846hemaType.options?.sources,d=z4(),{file:c}=o$().__internal,u=ee7(a7);l[0]!==c.directUploads?(t=(e,t)=>c.directUploads?bS(e,t):null,l[0]=c.directUploads,l[1]=t):t=l[1];let p=t,m=s||c.assetSources;l[2]!==m?(n=m.filter(Lg),l[2]=m,l[3]=n):n=l[3];let h=n;l[4]!==d?(r=e=>bm(d,e),l[4]=d,l[5]=r):r=l[5];let f=r;return l[6]!==u||l[7]!==c.directUploads||l[8]!==h||l[9]!==f||l[10]!==e||l[11]!==p?(i=(0,a.jsx)(Lf,{...e,client:u,assetSources:h,directUploads:c.directUploads,observeAsset:f,resolveUploader:p}),l[6]=u,l[7]=c.directUploads,l[8]=h,l[9]=f,l[10]=e,l[11]=p,l[12]=i):i=l[12],i},field:e=>e.renderDefault({...e,level:e.level-1})},fields:[{name:"asset",type:"reference",to:{type:"sanity.videoAsset"}},{name:"media",type:"globalDocumentReference",hidden:!0,to:[{type:"sanity.asset",preview:{}}],resourceType:"media-library",resourceId:"_"}]}),Ly=(0,_.U8)({name:"sanity.videoAsset",title:"Video",type:"document",fieldsets:[{name:"system",title:"System fields",description:"These fields are managed by the system and not editable"}],fields:[{name:"originalFilename",type:"string",title:"Original file name",readOnly:!0},{name:"label",type:"string",title:"Label"},{name:"title",type:"string",title:"Title"},{name:"description",type:"string",title:"Description"},{name:"altText",type:"string",title:"Alternative text"},{name:"creditLine",type:"string",title:"Credit line"},{name:"metadata",type:"sanity.videoMetadata",title:"Video metadata",readOnly:!0,fieldset:"system"},{name:"sha1hash",type:"string",title:"SHA1 hash",readOnly:!0,fieldset:"system"},{name:"extension",type:"string",title:"File extension",readOnly:!0,fieldset:"system"},{name:"mimeType",type:"string",title:"Mime type",readOnly:!0,fieldset:"system"},{name:"size",type:"number",title:"File size in bytes",readOnly:!0,fieldset:"system"},{name:"assetId",type:"string",title:"Asset ID",readOnly:!0,fieldset:"system"},{name:"uploadId",type:"string",readOnly:!0,hidden:!0,fieldset:"system"},{name:"path",type:"string",title:"Path",readOnly:!0,fieldset:"system"},{name:"url",type:"string",title:"Url",readOnly:!0,fieldset:"system"}],preview:{select:{title:"originalFilename",path:"path",mimeType:"mimeType",size:"size",duration:"metadata.duration"},prepare(e){let t=e.duration?`${Math.floor(e.duration/60)}:${String(Math.floor(e.duration%60)).padStart(2,"0")}`:"";return{title:e.title||e.path.split("/").slice(-1)[0],subtitle:`${e.mimeType} (${(e.size/1024/1024).toFixed(2)} MB)${t?` - ${t}`:""}`}}},orderings:[{title:"File size",name:"fileSizeDesc",by:[{field:"size",direction:"desc"}]},{title:"Duration",name:"durationDesc",by:[{field:"metadata.duration",direction:"desc"}]}]}),Lx=(0,_.U8)({name:"sanity.videoMetadata",title:"Video metadata",type:"object",fieldsets:[{name:"extra",title:"Extra metadata…",options:{collapsible:!0}}],fields:[{name:"duration",title:"Duration (seconds)",type:"number",readOnly:!0},{name:"framerate",title:"Frame Rate",type:"number",readOnly:!0},{name:"aspectRatio",title:"Aspect Ratio",type:"number",readOnly:!0},{name:"hasAudio",title:"Has audio",type:"boolean",readOnly:!0},{name:"codec",title:"Codec",type:"string",readOnly:!0,fieldset:"extra"},{name:"bitrate",title:"Bitrate",type:"number",readOnly:!0,fieldset:"extra"}]}),Lb="sanity/media-library",Lv=aR({name:Lb,schema:{types:[LC,Ly,Lx]}}),Lj="canvas",Lw={locale:"en-US",namespace:Lj,resources:()=>n.e(64).then(n.bind(n,70064))},L_={value:null,loading:!0};function Lk(){let e,t,n=(0,o.c)(2),r=Me();return n[0]!==r?(t=r.getOrganizationId().pipe((0,E.T)(LS),(0,Z.Z)({value:null,loading:!0})),n[0]=r,n[1]=t):t=n[1],e=t,(0,eH.J)(e,L_)}function LS(e){return{value:e,loading:!1}}function LT(){let e=Mn();return(0,eH.J)(e.renderingContext)}let LI=(0,eQ.g_)({name:"Canvas Link CTA Clicked",version:1,description:'The "Link to Canvas" button is clicked.'}),LE=(0,eQ.g_)({name:"Canvas Link Redirected",version:1,description:"The user is redirected to the canvas studio-import page"}),L$=(0,eQ.g_)({name:"Canvas Link Dialog Diffs Shown",version:1,description:"The diffs dialog is shown"}),LA=(0,eQ.g_)({name:"Canvas Link Dialog Rejected",version:1,description:'User clicked "Cancel" in the "Link to Canvas" dialog after seeing the diffs'}),LD=(0,eQ.g_)({name:"Canvas Unlink CTA Clicked",version:1,description:'User clicked "Unlink" action'}),Lz=(0,eQ.g_)({name:"Canvas Unlink Approved",version:1,description:"User confirmed that they want the Studio document unlinked"}),LM=(0,eQ.g_)({name:"Canvas Opened from studio",version:1,description:'User clicked "Edit in Canvas"'}),LP=e=>e.reduce((e,t)=>
2846(e[t.type]=(e[t.type]||0)+1,e),{});function LR(){let e,t=(0,o.c)(2),n=(0,e5.Jr)();return t[0]!==n?(e={linkCtaClicked:()=>n.log(LI),linkRedirected:(e,t)=>n.log(LE,{origin:e,diffs:t?LP(t):void 0}),linkDialogDiffsShown:()=>n.log(L$),linkDialogRejected:e=>n.log(LA,{diffs:LP(e)}),unlinkCtaClicked:()=>n.log(LD),unlinkApproved:()=>n.log(Lz),canvasOpened:e=>n.log(LM,{origin:e})},t[0]=n,t[1]=e):e=t[1],e}let LO=(e,t)=>{let n,r=(0,o.c)(10),{value:i}=Lk(),a=ee7(a7),{node:l}=Mr(),s=LT()?.name==="coreUi",{canvasOpened:d}=LR(),c=(0,p.dj)(),{t:u}=iJ(Lj);return r[0]!==e||r[1]!==d||r[2]!==a||r[3]!==s||r[4]!==l||r[5]!==i||r[6]!==t||r[7]!==u||r[8]!==c?(n=()=>{if(e)if(d(t),s&&l){let t={type:"dashboard/v1/bridge/navigate-to-resource",data:{resourceId:"",resourceType:"canvas",path:`doc/${e}`}};l.post(t.type,t.data)}else{if(!i)return void c.push({status:"error",title:u("navigate-to-canvas-doc.error.missing-permissions")});let t="https://api.sanity.work"===a.config().apiHost;window.open(`https://www.sanity.${t?"work":"io"}/@${i}/canvas/doc/${e}`,"_blank")}},r[0]=e,r[1]=d,r[2]=a,r[3]=s,r[4]=l,r[5]=i,r[6]=t,r[7]=u,r[8]=c,r[9]=n):n=r[9],n},LV=e=>{let t=ct(),n=ib(e),r=(0,s.useMemo)(()=>t.getCompanionDocs(n),[n,t]),i=(0,eH.J)(r),a=(0,s.useMemo)(()=>i?.data.find(t=>t?.studioDocumentId===e),[i,e]);return{isLinked:!!a,companionDoc:a,loading:i?.loading}},LL=e=>{let{t}=iJ(Lj),{isLinked:n,companionDoc:r,loading:i}=LV(e.liveEditSchemaType?ib(e.id):im(e.id)),a=LO(r?.canvasDocumentId,"action");return!n||i?null:{icon:C.v5M,label:t("action.edit-document"),onHandle:a}};LL.action="editInCanvas",LL.displayName="EditInCanvasAction";let LF=e=>{let{_id:t,_rev:n,_createdAt:r,_updatedAt:i,...a}=JSON.parse(JSON.stringify(e));return a};function LB(e){let t,n,r,i,l,s,d,u,p=(0,o.c)(22),{baseDocument:m,document:h}=e,f=Cm();p[0]!==h._type||p[1]!==f?(t=f.get(h._type),p[0]=h._type,p[1]=f,p[2]=t):t=p[2];let g=t,{currentUser:C}=co();return p[3]!==m?(r=m??{},p[3]=m,p[4]=r):r=p[4],p[5]!==C?.id||p[6]!==h||p[7]!==r?(i=(0,r$.g)((0,r$.L)(LF(r),{author:C?.id}),(0,r$.L)(LF(h),{author:C?.id})),p[5]=C?.id,p[6]=h,p[7]=r,p[8]=i):i=p[8],n=i,p[9]!==h._id?(l=ib(h._id),p[9]=h._id,p[10]=l):l=p[10],p[11]!==h||p[12]!==n||p[13]!==g||p[14]!==l?(s={documentId:l,schemaType:g,rootDiff:n,isComparingCurrent:!1,FieldWrapper:LN,value:h,showFromValue:!0},p[11]=h,p[12]=n,p[13]=g,p[14]=l,p[15]=s):s=p[15],p[16]!==n||p[17]!==g?(d=(0,a.jsx)(Oo,{diff:n,schemaType:g}),p[16]=n,p[17]=g,p[18]=d):d=p[18],p[19]!==s||p[20]!==d?(u=(0,a.jsx)(c.HU.Provider,{value:s,children:d}),p[19]=s,p[20]=d,p[21]=u):u=p[21],u}function LN(e){return e.children}let LY=(0,g.I4)(u.Zp)(e=>{let{color:t}=(0,tZ.JW)(e.theme);return(0,g.AH)`
2847    --card-fg-color: ${t.button.ghost[e.tone].enabled.fg};
2848  `}),LH=e=>{let t,n,r,i,l,s=(0,o.c)(13),{id:d,showSparkles:c}=e,p=ik(d),m="published"===p?"Published":"Draft",h="published"===p?"positive":"caution",f="published"===p?"positive":"caution";return s[0]!==f?(t=(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(sw,{tone:f})}),s[0]=f,s[1]=t):t=s[1],s[2]!==m?(n=(0,a.jsx)(u.EY,{size:1,weight:"medium",children:m}),s[2]=m,s[3]=n):n=s[3],s[4]!==c?(r=c&&(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.v5M,{})}),s[4]=c,s[5]=r):r=s[5],s[6]!==t||s[7]!==n||s[8]!==r?(i=(0,a.jsxs)(u.so,{gap:2,align:"center",children:[t,n,r]}),s[6]=t,s[7]=n,s[8]=r,s[9]=i):i=s[9],s[10]!==h||s[11]!==i?(l=(0,a.jsx)(LY,{tone:h,padding:2,paddingRight:3,radius:"full",children:i}),s[10]=h,s[11]=i,s[12]=l):l=s[12],l};function LZ(e){let t,n,r,i,l,s,d,c,p,m,h,f,g,y,x,b,v,j,w=(0,o.c)(34),{originalDocument:_,mappedDocument:k}=e,{t:S}=iJ(Lj);w[0]===Symbol.for("react.memo_cache_sentinel")?(t={opacity:0},n={opacity:1},r={opacity:0}
2848,i={duration:.3},w[0]=t,w[1]=n,w[2]=r,w[3]=i):(t=w[0],n=w[1],r=w[2],i=w[3]),w[4]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsx)(u.az,{padding:1,children:(0,a.jsx)(u.EY,{size:2,children:(0,a.jsx)(C.sAQ,{})})}),w[4]=l):l=w[4],w[5]!==S?(s=S("dialog.confirm-document-changes.title"),w[5]=S,w[6]=s):s=w[6],w[7]!==s?(d=(0,a.jsx)(u.az,{padding:1,children:(0,a.jsx)(u.EY,{size:1,weight:"semibold",children:s})}),w[7]=s,w[8]=d):d=w[8],w[9]!==S?(c=S("dialog.confirm-document-changes.description"),w[9]=S,w[10]=c):c=w[10],w[11]!==c?(p=(0,a.jsx)(u.az,{padding:1,children:(0,a.jsx)(u.EY,{size:1,weight:"medium",children:c})}),w[11]=c,w[12]=p):p=w[12],w[13]!==d||w[14]!==p?(m=(0,a.jsx)(u.Zp,{tone:"critical",padding:2,radius:3,children:(0,a.jsxs)(u.so,{gap:2,align:"flex-start",children:[l,(0,a.jsxs)(u.BJ,{space:2,children:[d,p]})]})}),w[13]=d,w[14]=p,w[15]=m):m=w[15];let T=_?._id||"";w[16]!==T?(h=(0,a.jsx)(LH,{id:T}),w[16]=T,w[17]=h):h=w[17],w[18]===Symbol.for("react.memo_cache_sentinel")?(f=(0,a.jsx)(u.EY,{size:2,children:(0,a.jsx)(C.flY,{})}),w[18]=f):f=w[18];let I=k?._id||"";return w[19]!==I?(g=(0,a.jsx)(LH,{id:I,showSparkles:!0}),w[19]=I,w[20]=g):g=w[20],w[21]!==h||w[22]!==g?(y=(0,a.jsx)(u.az,{padding:3,children:(0,a.jsxs)(u.so,{gap:2,align:"center",children:[h,f,g]})}),w[21]=h,w[22]=g,w[23]=y):y=w[23],w[24]===Symbol.for("react.memo_cache_sentinel")?(x=(0,a.jsx)(u.Zp,{borderBottom:!0}),w[24]=x):x=w[24],w[25]!==k||w[26]!==_?(b=_&&k&&(0,a.jsx)(u.az,{padding:3,children:(0,a.jsx)(LB,{baseDocument:_,document:k})}),w[25]=k,w[26]=_,w[27]=b):b=w[27],w[28]!==y||w[29]!==b?(v=(0,a.jsxs)(u.Zp,{radius:3,border:!0,marginTop:3,children:[y,x,b]}),w[28]=y,w[29]=b,w[30]=v):v=w[30],w[31]!==m||w[32]!==v?(j=(0,a.jsxs)(tW.P.div,{initial:t,animate:n,exit:r,transition:i,children:[m,v]}),w[31]=m,w[32]=v,w[33]=j):j=w[33],j}function LU(e){let t,n,r,i=(0,o.c)(5),{children:l}=e,d=(0,s.useContext)(c.qm);return i[0]!==d?(n=d||function(){let e={};return{get:async t=>{let{projectId:n,appIdFetcher:r}=t,i=e[n];return i||(i=(async()=>{try{return await r(n)}catch(t){console.error(t),e[n]=void 0;return}})(),e[n]=i,i)}}}(),i[0]=d,i[1]=n):n=i[1],t=n,i[2]!==t||i[3]!==l?(r=(0,a.jsx)(c.qm.Provider,{value:t,children:l}),i[2]=t,i[3]=l,i[4]=r):r=i[4],r}function Lq(){let e=(0,s.useContext)(c.qm);if(!e)throw Error("AppIdCache: missing context value. Ensure the component is wrapped in a AppIdCacheProvider.");return e}async function LJ(e){let t=`${e}/static/create-manifest.json`;try{let e=await fetch(t,{method:"HEAD"});return 404!=e.status&&(!(e.status>299)||(console.error(`Failed to get manifest from ${t}`,e),!1))}catch(e){return console.error(`Failed to fetch from ${t}`,e),!1}}let LW="u">typeof __SANITY_STAGING__&&!0===__SANITY_STAGING__?"studio.sanity.work":"sanity.studio";async function LK(e,t,n){return(await e.request({method:"GET",url:`/projects/${t}/user-applications`})).map(e=>({...e,studioUrl:LX(e,n)}))}async function LG(e){let{projectId:t,client:n,fallbackOrigin:r,internalSuffix:i=LW,checkStudioManifest:a=LJ,origin:o=window.location?.origin}=e,l=await LK(n,t,i),s=l.find(e=>e&&o&&e.studioUrl?.startsWith(o));return s?.appHost&&await a(LX(s,i))?{appId:s.id,studioApps:l}:{appId:l.find(e=>e&&r&&e.studioUrl?.startsWith(`https://${r}`))?.id,studioApps:l}}function LX(e,t){return"internal"===e.urlType?`https://${e.appHost}.${t}`:e.appHost}function LQ(e){let t,n,r,i,a=(0,o.c)(9);a[0]===Symbol.for("react.memo_cache_sentinel")?(t={apiVersion:"2024-09-01"},a[0]=t):t=a[0];let l=ee7(t),d=Lq(),{projectId:c}=co();return a[1]!==l||a[2]!==e.fallbackStudioOrigin?(r=t=>LG({projectId:t,client:l,fallbackOrigin:e.fallbackStudioOrigin}),a[1]=l,a[2]=e.fallbackStudioOrigin,a[3]=r):r=a[3],n=r,a[4]!==n||a[5]!==d||a[6]!==e.enabled||a[7]!==c?(i={projectId:c,cache:d,appIdFetcher:n,enabled:e.enabled},a[4]=n,a[5]=d,a[6]=e.enabled,a[7]=c,a[8]=i):i=a[8],function(e){let{cache:t,enabled:n,appIdFetcher:r,projectId:i}
2848=e,[a,o]=(0,s.useState)(!1),[l,d]=(0,s.useState)();return(0,s.useEffect)(()=>{let e=!0;async function a(){if(i){o(!0);try{let n=await t.get({projectId:i,appIdFetcher:r});e&&d(n)}catch{e&&d(void 0)}finally{e&&o(!1)}}}return n&&a().catch(console.error),()=>{e=!1,o(!1)}},[o,r,t,n,i]),{loading:a,studioApp:l}}(i)}let L1=Intl.DateTimeFormat().resolvedOptions(),L2={status:"validating"},L5={apiVersion:"v2025-04-29"};function L0(e){return(0,k.of)({status:"error",error:e.message})}function L7(){}let L3=e=>{let t,n,r,i,l,d,c,p,m,h=(0,o.c)(35),{document:f,onClose:g}=e,{t:x}=iJ(Lj),b=(0,s.useId)();h[0]!==f?(t={document:f},h[0]=f,h[1]=t):t=h[1];let{status:v,error:j,navigateToCanvas:w,response:_}=function(e){let t,n,r=(0,o.c)(25),{document:i}=e,a=lE(),l=Me(),s=LT(),{node:d}=Mr(),c=s?.name==="coreUi",{linkRedirected:u,linkDialogDiffsShown:p}=LR(),m=a.apps?.canvas?.fallbackStudioOrigin;r[0]!==m?(t={enabled:!0,fallbackStudioOrigin:m},r[0]=m,r[1]=t):t=r[1];let{studioApp:h,loading:f}=LQ(t),g=`_.schemas.${lE().name||"default"}`,C=ee7(L5);e:{let e,t;if(f){let e;r[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,k.of)({status:"validating"}),r[2]=e):e=r[2],n=e;break e}if(!h?.appId){let e;r[3]===Symbol.for("react.memo_cache_sentinel")?(e=(0,k.of)({status:"error",error:"Studio app not found, try deploying it or set the fallbackStudioOrigin"}),r[3]=e):e=r[3],n=e;break e}if(!i?._id){let e;r[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,k.of)({status:"missing-document-id",error:"Missing document ID"}),r[4]=e):e=r[4],n=e;break e}r[5]!==C||r[6]!==i._id||r[7]!==i._type||r[8]!==c||r[9]!==d||r[10]!==l||r[11]!==h?.appId||r[12]!==a.name?(e=()=>{let e=C.config().dataset||"",t=C.config().projectId||"",n=`studio-import?${new URLSearchParams({projectId:t,dataset:e,documentType:i._type,documentId:i._id,workspaceName:a.name,applicationId:h?.appId||""}).toString()}`;if(c&&d){let e={resourceId:"",resourceType:"canvas",path:n};return(0,k.of)(()=>d.post("dashboard/v1/bridge/navigate-to-resource",e))}return l.getOrganizationId().pipe((0,E.T)(e=>{if(!e)return L7;let t=`https://www.sanity.${"https://api.sanity.work"===C.config().apiHost?"work":"io"}/@${e}/canvas/${n}`;return()=>window.open(t,"_blank")}))},r[5]=C,r[6]=i._id,r[7]=i._type,r[8]=c,r[9]=d,r[10]=l,r[11]=h?.appId,r[12]=a.name,r[13]=e):e=r[13];let o=e;if(r[14]!==C||r[15]!==i||r[16]!==o||r[17]!==p||r[18]!==u||r[19]!==g){let e,n;r[21]!==u?(e=e=>{let[t,n]=e;if(!t.error){let e=t.diff?.length?"diff":"redirecting";return{status:e,error:null,response:t,navigateToCanvas:()=>{u("diff"===e?"diff-dialog":"redirect",t.diff),n()}}}return{status:"error",error:t.error,response:t,redirectUrl:void 0}},r[21]=u,r[22]=e):e=r[22],r[23]!==p?(n=e=>{let{status:t,navigateToCanvas:n}=e;"redirecting"===t&&setTimeout(()=>{n()},1e3),"diff"===t&&p()},r[23]=p,r[24]=n):n=r[24],t=(0,eo.z)([(({client:e,document:t,schemaId:n})=>{let r=e.config().dataset;return e.observable.request({url:`/assist/studio-to-canvas/${r}`,tag:"sanity.canvas",method:"POST",body:{document:t,schemaId:n,localeSettings:{locale:L1.locale,timeZone:L1.timeZone}}})})({client:C,document:i,schemaId:g}),o()]).pipe((0,E.T)(e),(0,W.M)(n),(0,M.W)(L0)),r[14]=C,r[15]=i,r[16]=o,r[17]=p,r[18]=u,r[19]=g,r[20]=t}else t=r[20];n=t}return(0,eH.J)(n,L2)}(t),{linkDialogRejected:S}=LR();h[2]!==S||h[3]!==g||h[4]!==_?.diff||h[5]!==v?(n=()=>{g(),"diff"===v&&S(_?.diff||[])},h[2]=S,h[3]=g,h[4]=_?.diff,h[5]=v,h[6]=n):n=h[6];let T=n,I=`dialog-link-to-canvas-${b}`;return h[7]!==x?(r=x("dialog.link-to-canvas.title"),h[7]=x,h[8]=r):r=h[8],h[9]!==w||h[10]!==g||h[11]!==v||h[12]!==x?(i="diff"===v?{description:x("dialog.confirm-document-changes.footer-description"),confirmButton:{text:x("dialog.confirm-document-changes.confirm"),icon:C.v5M,tone:"default",onClick:w,space:2},cancelButton:{text:x("dialog.confirm-document-changes.cancel"),onClick:g}}:void 0,h[9]=w,h[10]=g,h[11]=v,h[12]=x,h[13]=i):i=h[13],h[14]!==v||h[15]!==x?(l=("validating"===v||"redirecting"===v)&&(0,a.jsx)(u.az,{paddingY:5,children:(0,a.jsx)(r5,{title:x("validating"===v?"dialog.link-to-canvas.validating":"dialog.link-to-canvas.redirecting"),showText:!0})}),h[14]=v,h[15]=x,h[16]=l):l=h[16],h[17]!==j||h[18]!==v||h[19]!==x?(d=("error"===v||"missing-document-id"===v)&&(0,a.jsx)(tW.P.div,{initial:{opacity:0}
2848,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:(0,a.jsx)(u.Zp,{border:!0,tone:"critical",padding:4,radius:3,children:(0,a.jsx)(u.EY,{size:1,weight:"medium",children:j||x("dialog.link-to-canvas.error")})})}),h[17]=j,h[18]=v,h[19]=x,h[20]=d):d=h[20],h[21]!==f||h[22]!==_||h[23]!==v?(c="diff"===v&&_&&(0,a.jsx)(LZ,{originalDocument:f,mappedDocument:_.mappedDocument}),h[21]=f,h[22]=_,h[23]=v,h[24]=c):c=h[24],h[25]!==l||h[26]!==d||h[27]!==c?(p=(0,a.jsxs)(u.az,{padding:3,children:[l,d,c]}),h[25]=l,h[26]=d,h[27]=c,h[28]=p):p=h[28],h[29]!==T||h[30]!==I||h[31]!==r||h[32]!==i||h[33]!==p?(m=(0,a.jsx)(y.lG,{id:I,header:r,onClose:T,width:1,bodyHeight:"stretch",padding:!1,footer:i,children:p}),h[29]=T,h[30]=I,h[31]=r,h[32]=i,h[33]=p,h[34]=m):m=h[34],m},L8=e=>{let{t}=iJ(Lj),[n,r]=(0,s.useState)(!1),{selectedPerspective:i}=oW(),{isLinked:l,loading:d}=LV(e.liveEditSchemaType?ib(e.id):im(e.id)),{value:c}=Lk(),{linkCtaClicked:u}=LR(),p=(e=>{let t,n=(0,o.c)(3),r=Cm();return n[0]!==r||n[1]!==e?(t=r.get(e)?.options?.sanityCreate?.exclude,n[0]=r,n[1]=e,n[2]=t):t=n[2],t})(e.type),m=(0,s.useCallback)(()=>r(!1),[]),h=LT()?.name==="coreUi",f=!!e.release,g=OC(),[y,x]=(0,s.useState)(),b=(0,s.useCallback)(()=>{u();let t=g([]);x({...t,_id:e.liveEditSchemaType?ib(t._id):im(t._id)}),r(!0)},[g,e.liveEditSchemaType,u]),v=(0,s.useMemo)(()=>c?h?f?{disabled:!0,reason:t("action.link-document-disabled.version-document")}:e.initialValueResolved?{disabled:!1,reason:void 0}:{disabled:!0,reason:t("action.link-document-disabled.initial-value-not-resolved")}:{disabled:!0,reason:t("action.link-document-disabled.not-in-dashboard")}:{disabled:!0,reason:t("action.link-document-disabled.missing-permissions")},[f,t,e.initialValueResolved,h,c]);return(0,s.useEffect)(()=>{l&&m()},[l,m]),l||d||p||"published"===i&&!e.liveEditSchemaType||lC(i)||!h?null:{disabled:v.disabled,icon:C.v5M,dialog:n&&y?{type:"custom",component:(0,a.jsx)(L3,{onClose:m,document:y})}:void 0,label:t("action.link-document"),title:v.reason,onHandle:b}};L8.action="linkToCanvas",L8.displayName="LinkToCanvasAction";let L4=e=>{let t,n,r,i,l,d,c,p,m,h,f,g,C,x,b,v,j,w=(0,o.c)(50),{document:_,onClose:k,status:S,error:T,handleUnlink:I}=e,{t:E}=iJ(Lj),{t:$}=iJ();w[0]!==_?(t={document:_},w[0]=_,w[1]=t):t=w[1];let{title:A}=(e=>{let t,n,r,i=(0,o.c)(11),{document:a}=e,l=Cm();i[0]!==a._type||i[1]!==l?(t=l.get(a._type),i[0]=a._type,i[1]=l,i[2]=t):t=i[2];let s=t,d=!!a;i[3]!==a||i[4]!==s||i[5]!==d?(n={enabled:d,schemaType:s,value:a},i[3]=a,i[4]=s,i[5]=d,i[6]=n):n=i[6];let{error:c,value:u}=hD(n);if(!s){let e;return i[7]===Symbol.for("react.memo_cache_sentinel")?(e={error:"Schema type not found"},i[7]=e):e=i[7],e}let p=u?.title;return i[8]!==c||i[9]!==p?(r={error:c,title:p},i[8]=c,i[9]=p,i[10]=r):r=i[10],r})(t),D=`dialog-unlink-from-canvas-${(0,s.useId)()}`;w[2]!==E?(n=E("dialog.unlink-from-canvas.title"),w[2]=E,w[3]=n):n=w[3];let z="loading"===S?void 0:k;w[4]!==E?(r=E("dialog.unlink-from-canvas.cancel"),w[4]=E,w[5]=r):r=w[5];let M="idle"!=S;w[6]!==k||w[7]!==r||w[8]!==M?(i={text:r,onClick:k,disabled:M},w[6]=k,w[7]=r,w[8]=M,w[9]=i):i=w[9],w[10]!==E?(l=E("dialog.unlink-from-canvas.unlink-action"),w[10]=E,w[11]=l):l=w[11];let P="loading"===S,R="idle"!=S;return w[12]!==I||w[13]!==R||w[14]!==l||w[15]!==P?(d={text:l,onClick:I,tone:"default",loading:P,disabled:R},w[12]=I,w[13]=R,w[14]=l,w[15]=P,w[16]=d):d=w[16],w[17]!==d||w[18]!==i?(c={cancelButton:i,confirmButton:d},w[17]=d,w[18]=i,w[19]=c):c=w[19],w[20]!==$||w[21]!==A?(p=A||$("preview.default.title-fallback"),w[20]=$,w[21]=A,w[22]=p):p=w[22],w[23]!==p?(m={documentTitle:p},w[23]=p,w[24]=m):m=w[24],w[25]!==E||w[26]!==m?(h=(0,a.jsx)(u.az,{paddingBottom:2,children:(0,a.jsx)(u.EY,{size:1,muted:!0,children:(0,a.jsx)(an,{t:E,i18nKey:"dialog.unlink-from-canvas.unlinking",values:m})})}),w[25]=E,w[26]=m,w[27]=h):h=w[27],w[28]!==E?(f=E("dialog.unlink-from-canvas.description"),w[28]=E,w[29]=f):f=w[29],w[30]!==f?(g=(0,a.jsx)(u.az,{children:(0,a.jsx)(u.EY,{size:1,muted:!0,children:f})}),w[30]=f,w[31]=g):g=w[31],w[32]!==h||w[33]!==g?(C=(0,a.jsxs)(u.BJ,{space:3,children:[h,g]}),w[32]=h,w[33]=g,w[34]=C):C=w[34],w[35]!==T||w[36]!==S||w[37]!==E?(x="error"===S&&(0,a.jsx)(tW.P.div,{initial:{opacity:0,scale:.9}
2848,animate:{opacity:1,scale:1},children:(0,a.jsx)(u.Zp,{tone:"critical",padding:2,radius:3,children:(0,a.jsx)(u.EY,{size:1,weight:"medium",children:T||E("dialog.unlink-from-canvas.error")})})},"error"),w[35]=T,w[36]=S,w[37]=E,w[38]=x):x=w[38],w[39]!==x?(b=(0,a.jsx)(tK.N,{children:x}),w[39]=x,w[40]=b):b=w[40],w[41]!==C||w[42]!==b?(v=(0,a.jsxs)(u.BJ,{space:3,children:[C,b]}),w[41]=C,w[42]=b,w[43]=v):v=w[43],w[44]!==c||w[45]!==D||w[46]!==v||w[47]!==n||w[48]!==z?(j=(0,a.jsx)(y.lG,{id:D,header:n,onClose:z,bodyHeight:"stretch",footer:c,children:v}),w[44]=c,w[45]=D,w[46]=v,w[47]=n,w[48]=z,w[49]=j):j=w[49],j},L6=e=>{let{t}=iJ(Lj),{isLinked:n,companionDoc:r,loading:i}=LV(e.liveEditSchemaType?ib(e.id):im(e.id)),o=ee7(a7),{unlinkCtaClicked:l,unlinkApproved:d}=LR(),c=(0,p.dj)(),[u,m]=(0,s.useState)(!1),[h,f]=(0,s.useState)("idle"),[g,y]=(0,s.useState)(null),x=(0,s.useCallback)(()=>m(!1),[]),b=(0,s.useCallback)(()=>{l(),m(!0)},[l]),v=(0,s.useCallback)(async()=>{try{if(!r?._id)throw Error("Companion doc not found");f("loading"),d(),await o.delete(r?._id),f("idle"),x(),c.push({status:"success",title:t("dialog.unlink-from-canvas.success")})}catch(e){console.error(e),y(e.message),f("error")}},[o,r?._id,x,d,c,t]),j=e.version||e.draft||e.published;return j&&n&&!i?{icon:C.xPL,dialog:u?{type:"custom",component:(0,a.jsx)(L4,{onClose:x,document:j,status:h,error:g,handleUnlink:v})}:void 0,label:t("action.unlink-document"),onHandle:b}:null};L6.action="unlinkFromCanvas",L6.displayName="UnlinkFromCanvasAction";let L9="sanity/canvas-integration",Fe=aR(()=>({name:L9,i18n:{bundles:[Lw]},document:{actions:e=>e.flatMap(e=>"publish"===e.action?[e,L8,L6,LL]:e)}})),Ft="comments";function Fn(e){let t,n,r,i,l=(0,o.c)(6),{children:d}=e,[u,p]=(0,s.useState)(null);l[0]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{p(e)},l[0]=t):t=l[0];let m=t;return l[1]!==u?(r={authoringPath:u,setAuthoringPath:m},l[1]=u,l[2]=r):r=l[2],n=r,l[3]!==d||l[4]!==n?(i=(0,a.jsx)(c.ki.Provider,{value:n,children:d}),l[3]=d,l[4]=n,l[5]=i):i=l[5],i}function Fr(e,t){let{currentUser:n,document:r,parent:i,value:a}=t;return"boolean"==typeof e||void 0===e?!!e:!0===e({document:r,parent:i,value:a,currentUser:n})}function Fi(e,t,n){if(0===t.length)return{...e,value:n};let[r,...i]=t,a=(0,_.tA)(r)?r._key:String(r),o=e?.children??{};return{value:e?.value,children:{...o,[a]:Fi(o[a]||{},i,n)}}}let Fa={name:"all-fields",title:"All fields",hidden:!1,i18n:{title:{key:"inputs.object.field-group-tabs.all-fields-title",ns:r4}}},Fo=new WeakMap,Fl={key:"GetIdUndefined"},Fs={key:"GetIdNull"};function Fd(e){switch(typeof e){case"undefined":return Fd(Fl);case"function":case"object":case"symbol":{if(null===e)return Fd(Fs);let t=Fo.get(e);if(t)return t;let n=(0,e4.Ak)();return Fo.set(e,n),n}default:return`${e}`}}function Fc({property:e}){let t={value:!0},n=null;return function({currentUser:r,documentValue:i,schemaType:a,...o}){let l=JSON.stringify({currentUser:Fd(r),schemaType:Fd(a),document:Fd(i)});if(e in o&&!0===o[e])return t;if(n?.serializedHash===l)return n.result;let s=oS(n?.result??null,function e({value:t,parent:n,document:r,currentUser:i,schemaType:a,level:o,property:l}){let s={value:t,parent:n,document:r,currentUser:i},d=Fr(a[l],s);if(d||20===o)return{value:d};let c={};if("object"===a.jsonType){for(let n of a.fieldsets?a.fieldsets:a.fields.map(e=>({single:!0,field:e}))){if(n.single){let a=e({currentUser:i,document:r,parent:t,value:t?.[n.field.name],schemaType:n.field.type,level:o+1,property:l});if(!a)continue;c[n.field.name]=a;continue}let a=Fr(n.hidden,s);for(let s of(a&&(c[`fieldset:${n.name}`]={value:a}),n.fields)){let n=e({currentUser:i,document:r,parent:t,value:t?.[s.name],schemaType:s.type,level:o+1,property:l});n&&(c[s.name]=n)}}for(let e of a.groups??i_)if(l in e){let t=Fr(e[l],s);if(!t)continue;c[`group:${e.name}`]={value:t}}}if("array"===a.jsonType&&Array.isArray(t)&&t.every(_.o8))for(let n of t){let s=_e(a,n);if(!s)continue;let d=e({currentUser:i,document:r,level:o+1,value:n,parent:t,schemaType:s,property:l});d&&(c[n._key]=d)}if(Object.keys(c).length)return{children:c}}({currentUser:r,document:i,level:0,parent:null,schemaType:a,value:i,property:e}));return n={result:s,serializedHash:l},s}}function Fu(e){return e}function Fp({getPath:e,hashInput:t,decorator:n=Fu}){let r=new Map;return function(i){return n(function(...n){let a=(0,l.dI)(e(...n)),o=JSON.stringify(t(...n)),s=r.get(a);if(o===s?.serializedHash)return s.result;let d=i(...n);return r.set(a,{serializedHash:o,result:d}),d})}}function Fm(e={},t){if(e?.collapsible===!1||e?.collapsable===!1)return{collapsible:!1,
2848collapsed:!1};let n="boolean"==typeof e?.collapsed?e.collapsed:t>=3||void 0;return{collapsible:e?.collapsible===!0||e?.collapsable===!0||!0===n||void 0,collapsed:n}}function Fh(e,t,n){return!!n&&(n.name===Fa.name||void 0!==t&&(0===e.length&&n.name===Fa.name||nD(t).includes(n.name)))}function Ff(e){return typeof e>"u"||iI(e)}function Fg(e,t){return!(Array.isArray(e)&&typeof t>"u"||Array.isArray(t)&&typeof e>"u")&&(!!e&&!t||!eN(e,t))}function FC(e){return"_allMembers"in e&&Array.isArray(e._allMembers)}function Fy(e,t){return 0===t.length?[]:(0,_.$d)(e.schemaType)&&FC(e)?function e(t,n){if(0===n.length)return[];let[r,...i]=n,a=t._allMembers.find(e=>"fieldSet"===e.kind&&e.fieldSet.members.some(e=>"field"===e.kind&&e.name===r)),o=(a?a.fieldSet.members:t._allMembers).find(e=>null!==e&&"field"===e.kind&&e.name===r),l=t.schemaType.fields.find(e=>e.name===r),s=t.groups.find(e=>e.selected)?.name,d=l&&nD(l.group)||[],c=s&&(s===Fa.name||d.includes(s)),u=[];if(!c){let e=t.groups.find(e=>d.includes(e.name))?.name||Fa.name;u.push({type:"setSelectedGroup",path:t.path,groupName:e})}return a&&u.push({type:"expandFieldSet",path:a.fieldSet.path}),o&&FC(o.field)&&(b$(o)?u.push(...Fx(o.field,i)):bE(o)&&u.push(...e(o.field,i))),u}(e,t):(0,_.m5)(e.schemaType)?Fx(e,t):[]}function Fx(e,t){if(0===t.length)return[];let[n,...r]=t;if(!(0,_.tA)(n))throw Error("Expected path segment to be an object with a _key property");let i=e.members.find(e=>e.key===n._key);return i?Fy(i.item,r):[]}function Fb(e){return e?._create}function Fv(e){return e?.ejected===!1}let Fj="connecting";function Fw(e){return e?(0,k.of)("connected"):(0,F.O)(200).pipe((0,eF.u)("reconnecting"))}function F_(e){return"reconnect"!==e}function Fk(e){return e.type}function FS(){let e=(0,s.useContext)(c.ZC);if(!e)throw Error("Could not find `ActiveWorkspaceMatcher` context");return e}function FT({documentId:e,documentType:t,resourceType:n,resourceId:r,schemaName:i}){let{node:a}=Mr();if("studio"!==n&&!r)throw Error("resourceId is required for media-library and canvas resources");return{recordEvent:(0,s.useCallback)(o=>{try{a?.post?.("dashboard/v1/events/history",{eventType:o,document:{id:e,type:t,resource:{id:r,type:n,schemaName:i}}})}catch(e){throw console.error("Failed to record history event:",e),e}},[e,t,r,n,i,a])}}function FI({operationName:e,comlinkEventType:t,hasComlink:n,recordEvent:r,preRecordEvent:i=e=>e()}){return function(a){return n?{...a,[e]:{...a[e],execute:(...n)=>{i(()=>r(t)),a[e].execute(...n)}}}:a}}function FE(e,t,n){let r,i,a,l=(0,o.c)(9),d=z6();l[0]!==t||l[1]!==d.pair||l[2]!==e||l[3]!==n?(i=d.pair.editOperations(e,t,n),l[0]=t,l[1]=d.pair,l[2]=e,l[3]=n,l[4]=i):i=l[4],r=i;let c=(0,eH.J)(r);return l[5]!==c||l[6]!==t||l[7]!==e?(a={api:c,docTypeName:t,publishedDocId:e},l[5]=c,l[6]=t,l[7]=e,l[8]=a):a=l[8],function({api:e,publishedDocId:t,docTypeName:n,version:r}){let{activeWorkspace:i}=FS(),{recordEvent:a}=FT({resourceType:"studio",documentId:r?iy(t,r):t,documentType:n,resourceId:[i.projectId,i.dataset].join("."),schemaName:i.name}),o=Mn(),l=(0,eH.J)(o.capabilities),[d,c]=(0,s.useState)(!1),u=(0,s.useCallback)(e=>{d||(e(),c(!0))},[d]),p=(0,s.useMemo)(()=>({hasComlink:l?.comlink,recordEvent:a}),[l?.comlink,a]),m=(0,s.useMemo)(()=>FI({...p,operationName:"delete",comlinkEventType:"deleted"}),[p]);return m((0,s.useMemo)(()=>FI({...p,operationName:"del",comlinkEventType:"deleted"}),[p])((0,s.useMemo)(()=>FI({...p,operationName:"patch",comlinkEventType:"edited",preRecordEvent:u}),[p,u])(e)))}(a)}function F$(e,t,n,r){let i,a=(0,o.c)(10);if("published"===r||"draft"===r)throw Error("Version cannot be published or draft");let l=z6();e:{let o;if("low"===(void 0===n?"default":n)){let n;if(a[0]!==t||a[1]!==l.pair||a[2]!==e||a[3]!==r){let i=l.pair.editState(e,t,r).pipe((0,es.u)());n=(0,R.h)(i.pipe((0,ey.s)(1)),i.pipe((0,ea.i)(1),(0,ex.s)(FA))),a[0]=t,a[1]=l.pair,a[2]=e,a[3]=r,a[4]=n}else n=a[4];i=n;break e}a[5]!==t||a[6]!==l.pair||a[7]!==e||a[8]!==r?(o=l.pair.editState(e,t,r),a[5]=t,a[6]=l.pair,a[7]=e,a[8]=r,a[9]=o):o=a[9],i=o}return(0,eH.J)(i)}function FA(){return(0,F.O)(1e3)}let FD={validation:[],isValidating:!1};function Fz(e,t,n){let r,i,a=(0,o.c)(5),l=z6();return a[0]!==t||a[1]!==l.pair||a[2]!==e||a[3]!==n?(i=l.pair.validation(e,t,n),a[0]=t,a[1]=l.pair,a[2]=e,a[3]=n,a[4]=i):i=a[4],r=i,(0,eH.J)(r,FD)}function FM(e,t){return e?"published"===e?"published":t.find(t=>o4(t._id)===e)||"drafts":"drafts"}function FP(e){let{documentType:t,getFormDocumentValue:n,documentId:r,initialValue:i,changesOpen:a=!1,comparisonValue:c,releaseId:u,initialFocusPath:p,selectedPerspectiveName:m,readOnly:h,onFocusPath:g}=e,C=Cm(),y=z9(),{data:x}=lp(),{data:b}=o0({documentId:r}),{selectedReleaseId:v}=oW(),j=C.get(t);if(!j)throw Error(`Schema type for '${t}' not found`);let w=!!j.liveEdit,k=ib(r),S=(0,e5.Jr)(),{validation:T}=Fz(r,t,u),I=iY(T),{sortedDocumentList:$}=(e=>{let t,n,r,i=(0,o.c)(9),{documentId:a}=e,{data:l}=lp();i[0]!==a?(t={documentId:a},i[0]=a,i[1]=t):t=i[1];let{data:s}=o0(t);if(i[2]!==s||i[3]!==l){let e;i[5]!==s?(e=e=>{let{_id:t}=e;return s.some(e=>ix(e)===o4(t))},i[5]=s,i[6]=e):e=i[6],n=l.filter(e).sort(lf),i[2]=s,i[3]=l,i[4]=n}else n=i[4];let d=n;return i[7]!==d?(r={sortedDocumentList:d},i[7]=d,i[8]=r):r=i[8],r})({documentId:r}),A=lS({documentId:r}),D=$.length>0?b.find(e=>ix(e)===o4($[0]._id)):void 0,M=F$(r,t,"default",(0,s.useMemo)(()=>b.some(e=>ix(e)===v)||v&&(!b||!A)?v:ix(D??""),[b,A,v,D])),P=function(e,t,n){let r,i,a=(0,o.c)(5),l=z6();return a[0]!==t||a[1]!==l.pair||a[2]!==e||a[3]!==n?(i=l.pair.documentEvents(e,t,n
2848).pipe((0,E.T)(Fk),(0,E.T)(F_),(0,z.n)(Fw),(0,Z.Z)(Fj),(0,ei.F)()),a[0]=t,a[1]=l.pair,a[2]=e,a[3]=n,a[4]=i):i=a[4],r=i,(0,eH.J)(r,Fj)}(r,t,u);etn("reconnecting"===P);let[R,O]=(0,s.useState)(p||i_),V=(0,s.useMemo)(()=>"function"==typeof c?c(M):c,[c,M]),L=(0,s.useMemo)(()=>{let e=i?.value||{_id:r,_type:t};return u?M.version||M.draft||M.published||e:m&&lj(m)?M.published||(w?e:{_id:r,_type:t}):!m&&A?M.version||M.draft||M.published||e:M?.draft||M?.published||e},[r,t,M.draft,M.published,M.version,i,w,u,m,A]),[F,B]=(0,s.useState)([]);(0,s.useEffect)(()=>{let e=y.documentPresence(L._id,{excludeVersions:!0}).subscribe(e=>{B(e)});return()=>{e.unsubscribe()}},[y,L._id]);let[N,Y]=(0,s.useState)(i_),[H,U]=(0,s.useState)(),[q,J]=(0,s.useState)(),[W,K]=(0,s.useState)(),G=(0,s.useCallback)((e,t)=>{J(n=>Fi(n,e,t))},[]),X=(0,s.useCallback)((e,t)=>{K(n=>Fi(n,e,t))},[]),Q=(0,s.useCallback)((e,t)=>U(n=>Fi(n,e,t)),[]),ee=L._createdAt?"update":"create",et=(0,s.useMemo)(()=>u?iy(k,u):w?M?.draft?._id||k:im(r),[r,M?.draft?._id,w,k,u]),[en,er]=function(e){let t,n,r=(0,o.c)(5),{document:i,permission:a,grantsStore:l}=e,d=z3(),c=l||d,[u,p]=(0,s.useReducer)(zl,zo),m=(0,s.useRef)(null);return r[0]!==i||r[1]!==c||r[2]!==a?(t=()=>(p({type:"loading"}),m.current&&m.current.unsubscribe(),m.current=za({grantsStore:c,document:i,permission:a}).pipe((0,ei.F)(zs)).subscribe({next:e=>p({type:"value",value:e}),error:e=>p({type:"error",error:e})}),()=>{m.current&&(m.current.unsubscribe(),m.current=null)}),n=[c,i,a],r[0]=i,r[1]=c,r[2]=a,r[3]=t,r[4]=n):(t=r[3],n=r[4]),(0,s.useEffect)(t,n),u}({document:(0,s.useMemo)(()=>({...L,_id:et}),[L,et]),permission:ee}),ea=!L?._id,eo=Fv(Fb(L)),el="connected"===P&&M.ready&&!i?.loading,es=(0,s.useMemo)(()=>FM(m,x),[m,x]),ed=(0,s.useMemo)(()=>!!lC(es)&&l_(es),[es]),{isLinked:ec}=LV(L._id),eu=(0,s.useMemo)(()=>{let e=!er&&!en?.granted,t=!(0,t3.Yh)(j,"update"),n=ea&&!(0,t3.Yh)(j,"create"),r="reconnecting"===P,i=M.transactionSyncLock?.enabled,a=!!L&&hE(L);return!!(M.version&&!M.draft&&!M.published&&A&&m!==ix(M.version._id)&&!1===Ci(M)||w&&M.draft?._id)||!w&&"published"===m||!!u&&ix(L._id)!==u&&!1===Ci(M)||!el||!!ec||!!e||!!t||!!n||!!r||!!i||!!eo||!!a||!!ed||("function"==typeof h?h(M):!!h)},[er,ec,en?.granted,j,ea,P,M,L,A,m,w,u,el,eo,ed,h]),{patch:ep}=FE(r,t,u),em=(0,s.useRef)(()=>{throw Error("Attempted to patch the Sanity document during initial render or in an `useInsertionEffect`. Input components should only call `onChange()` in a useEffect or an event handler.")}),eh=(0,s.useCallback)(e=>em.current(e),[]);(0,s.useInsertionEffect)(()=>{eu&&!eo?em.current=()=>{throw Error("Attempted to patch a read-only document")}:em.current=e=>{M.draft||M.published||S.log(IY),ep.execute(e.patches.map(FL),i?.value)}},[M.draft,M.published,i,ep,S,eu,eo]);let ef=function({comparisonValue:e,documentValue:t,fieldGroupState:n,collapsedFieldSets:r,collapsedPaths:i,focusPath:a,openPath:o,presence:d,validation:c,readOnly:u,changesOpen:p,schemaType:m}){let h=Cl(),[f]=(0,s.useState)(()=>Fc({property:"hidden"})),[g]=(0,s.useState)(()=>Fc({property:"readOnly"})),[C]=(0,s.useState)(()=>(function({decorators:e={}}={}){let t=Fp({decorator:e.prepareFieldMember,getPath:({parent:e,field:t})=>[...e.path,t.name],hashInput:({parent:e,field:t})=>{let n=[...e.path,t.name];return{changesOpen:e.changesOpen,presence:e.presence.filter(e=>(0,l.w1)(n,e.path)),validation:e.validation.filter(e=>(0,l.w1)(n,e.path)),focusPath:(0,l.w1)(n,e.focusPath)?e.focusPath:[],openPath:(0,l.w1)(n,e.openPath)?e.openPath:[],value:Fd(e.value?.[t.name]),comparisonValue:Fd(e.comparisonValue?.[t.name]),collapsedFieldSets:Fd(e.collapsedFieldSets?.children?.[t.name]),collapsedPaths:Fd(e.collapsedPaths?.children?.[t.name]),currentUser:Fd(e.currentUser),fieldGroupState:Fd(e.fieldGroupState),hidden:!0===e.hidden||e.hidden?.value||Fd(e.hidden?.children?.[t.name]),readOnly:!0===e.readOnly||e.readOnly?.value||Fd(e.readOnly?.children?.[t.name]),schemaType:Fd(e.schemaType)}}}),n=Fp({decorator:e.prepareObjectInputState,getPath:({path:e})=>e,hashInput:e=>({changesOpen:e.changesOpen,presence:e.presence.filter(t=>(0,l.w1)(e.path,t.path)),validation:e.validation.filter(t=>(0,l.w1)(e.path,t.path)),focusPath:(0,l.w1)(e.path,e.focusPath)?e.focusPath:[],openPath:(0,l.w1)(e.path,e.openPath)?e.openPath:[],value:Fd(e.value),comparisonValue:Fd(e.comparisonValue),collapsedFieldSets:Fd(e.collapsedFieldSets),collapsedPaths:e.collapsedPaths,currentUser:Fd(e.currentUser),fieldGroupState:Fd(e.fieldGroupState),hidden:!0===e.hidden||e.hidden?.value||Fd(e.hidden),readOnly:!0===e.readOnly||e.readOnly?.value||Fd(e.readOnly),schemaType:Fd(e.schemaType)})}),r=Fp({decorator:e.prepareArrayOfPrimitivesInputState,getPath:({path:e})=>e,hashInput:e=>({changesOpen:e.changesOpen,presence:e.presence.filter(t=>(0,l.w1)(e.path,t.path)),validation:e.validation.filter(t=>(0,l.w1)(e.path,t.path)),focusPath:(0,l.w1)(e.path,e.focusPath)?e.focusPath:[],openPath:(0,l.w1)(e.path,e.openPath)?e.openPath:[],value:Fd(e.value),comparisonValue:Fd(e.comparisonValue),collapsedFieldSets:Fd(e.collapsedFieldSets),collapsedPaths:e.collapsedPaths,currentUser:Fd(e.currentUser),fieldGroupState:Fd(e.fieldGroupState),hidden:!0===e.hidden||e.hidden?.value||Fd(e.hidden),readOnly:!0===e.readOnly||e.readOnly?.value||Fd(e.readOnly),schemaType:Fd(e.schemaType)})}),i=Fp({decorator:e.prepareArrayOfObjectsInputState,getPath:({path:e})=>e,hashInput:e=>({changesOpen:e.changesOpen,presence:e.presence.filter(t=>(0,l.w1)(e.path,t.path)),validation:e.validation.filter(t=>(0,l.w1)(e.path,t.path)),focusPath:(0,l.w1)(e.path,e.focusPath)?e.focusPath:[],openPath:(0,l.w1)(e.path,e.openPath)?e.openPath:[],value:Fd(e.value),comparisonValue:Fd(e.comparisonValue),collapsedFieldSets:Fd(e.collapsedFieldSets),collapsedPaths:e.collapsedPaths,currentUser:Fd(e.currentUser),fieldGroupState:Fd(e.fieldGroupState),hidden:!0===e.hidden||e.hidden?.value||Fd(e.hidden),readOnly:!0===e.readOnly||e.readOnly?.value||Fd(e.readOnly),schemaType:Fd(e.schemaType)})}),a=Fp({decorator:e.prepareArrayOfObjectsMember,getPath:({parent:e,arrayItem:t})=>[...e.path,{_key:t._key}],hashInput:({parent:e,arrayItem:t})=>{let n=Array.isArray(e.comparisonValue)?e.comparisonValue.find(e=>(0,_.o8)(e)&&e._key===t._key):void 0,r=t._key,i=[...e.path,{_key:r}];return{changesOpen:e.changesOpen,presence:e.presence.filter(e=>(0,l.w1)(i,e.path)),validation:e.validation.filter(e=>(0,l.w1)(i,e.path)),focusPath:(0,l.w1)(i,e.focusPath)?e.focusPath:[],openPath:(0,l.w1)(i,e.openPath)?e.openPath:[],value:Fd(t),comparisonValue:Fd(n),collapsedFieldSets:Fd(e.collapsedFieldSets?.children?.[r]),collapsedPaths:Fd(e.collapsedPaths?.children?.[r]),currentUser:Fd(e.currentUser),fieldGroupState:Fd(e.fieldGroupState?.children?.[r]),hidden:!0===e.hidden||e.hidden?.value||Fd(e.hidden?.children?.[r]),readOnly:!0===e.readOnly||e.readOnly?.value||Fd(e.readOnly?.children?.[r]),schemaType:Fd(e.schemaType)}}}),o=Fp({decorator:e.prepareArrayOfPrimitivesMember,getPath:({parent:e,index:t})=>[...e.path,t],hashInput:({parent:e,index:t,arrayItem:n})=>{let r=Array.isArray(e.comparisonValue)?e.comparisonValue[t]:void 0,i=[...e.path,t];return{changesOpen:e.changesOpen,presence:e.presence.filter(e=>(0,l.w1)(i,e.path)),validation:e.validation.filter(e=>(0,l.w1)(i,e.path)),focusPath:(0,l.w1)(i,e.focusPath)?e.focusPath:[],openPath:(0,l.w1)(i,e.openPath)?e.openPath:[],collapsedFieldSets:Fd(e.collapsedFieldSets?.children?.[t]),collapsedPaths:Fd(e.collapsedPaths?.children?.[t]),currentUser:Fd(e.currentUser),fieldGroupState:Fd(e.fieldGroupState?.children?.[t]),hidden:!0===e.hidden||e.hidden?.value||Fd(e.hidden?.children?.[t]),readOnly:!0===e.readOnly||e.readOnly?.value||Fd(e.readOnly?.children?.[t]),schemaType:Fd(e.schemaType),value:`${n}`,comparisonValue:`${r}`}}}),s=Fp({decorator:e.preparePrimitiveInputState,getPath:({path:e})=>e,hashInput:e=>({changesOpen:e.changesOpen,presence:e.presence.filter(t=>(0,l.w1)(e.path,t.path)),validation:e.validation.filter(t=>(0,l.w1)(e.path,t.path)),focusPath:(0,l.w1)(e.path,e.focusPath)?e.focusPath:[],openPath:(0,l.w1)(e.path,e.openPath)?e.openPath:[],value:Fd(e.value),comparisonValue:Fd(e.comparisonValue),collapsedFieldSets:Fd(e.collapsedFieldSets),collapsedPaths:e.collapsedPaths,currentUser:Fd(e.currentUser),fieldGroupState:Fd(e.fieldGroupState),hidden:!0===e.hidden||e.hidden?.value||Fd(e.hidden),readOnly:!0===e.readOnly||e.readOnly?.value||Fd(e.readOnly),schemaType:Fd(e.schemaType)})}),d=t(function(e){var t,n;let{field:r,index:i,parent:a}=e,o=(0,l.p0)([...a.path,r.name]),s=(t=r.type,n=a.level+1,(0,_.zR)(t)?function(e,t){let{options:n}=e,r=(n?.list||[])?.length>0,i=vS.includes(n?.layout||"");return r&&!i?t:0}(t,n):function(e,t){let{type:n,options:r}=e,i=function e(t,n){return t?.name&&n.includes(t?.name)?t:t?e(t.type,n):void 0}(n,v_),a=e?.jsonType==="object"?e.fields:void 0,o=i?.name||"";if(vT.includes(o))return 0;let l=v_.includes(o),s=(a?.filter(e=>!vk.includes(e.name)).length??0)>0,d=(r?.list?.length??0)>0;return s||d||!l?t:0}(t,n)),d=a.value,m=a.comparisonValue;if(!Ff(d))throw Error("Unexpected non-object value");let h=r.group?nD(r.group):[],g=Fh(a.groups,r.group,a.selectedGroup);if((0,_.$d)(r.type)){let e=d?.[r.name],t=iI(m)?m?.[r.name]:void 0;if(!Ff(e))return{kind:"error",key:r.name,fieldName:r.name,error:{type:"INCOMPATIBLE_TYPE",expectedSchemaType:r.type,resolvedValueType:(0,nr.yu)(e),value:e}};if(!0===a.hidden||a?.hidden?.value||a.hidden?.children?.[r.name]?.value)return{kind:"hidden",key:`field-${r.name}`,name:r.name,index:i};let n=a.fieldGroupState?.children?.[r.name],u=a.collapsedPaths?.children?.[r.name],p=a.collapsedFieldSets?.children?.[r.name],f=!0===a.hidden||a.hidden?.value||a.hidden?.children?.[r.name],C=!0===a.readOnly||a.readOnly?.value||a.readOnly?.children?.[r.name],y=c({schemaType:r.type,currentUser:a.currentUser,value:e,changed:Fg(e,t),comparisonValue:t,presence:a.presence,validation:a.validation,fieldGroupState:n,path:o,level:s,focusPath:a.focusPath,openPath:a.openPath,collapsedPaths:u,collapsedFieldSets:p,hidden:f,readOnly:C,changesOpen:a.changesOpen});if(null===y)return null;let x=Fm(r.type.options,s),b=u?u.value:x.collapsed;return{kind:"field",key:`field-${r.name}`,name:r.name,index:i,inSelectedGroup:g,groups:h,open:(0,l.w1)(o,a.openPath),field:y,collapsed:b,collapsible:
2848x.collapsible}}if((0,_.zR)(r.type)){let e=d?.[r.name],t=iI(m)?m?.[r.name]:void 0;if((0,_.m5)(r.type)){let n="u">typeof e;if(n&&!(typeof e>"u"||Array.isArray(e))){let t=(0,nr.yu)(e);return{kind:"error",key:r.name,fieldName:r.name,error:{type:"INCOMPATIBLE_TYPE",expectedSchemaType:r.type,resolvedValueType:t,value:e}}}if(n&&!(0===e.length||e.every(e=>iI(e))))return{kind:"error",key:r.name,fieldName:r.name,error:{type:"MIXED_ARRAY",schemaType:r.type,value:e}};if(n&&!e?.every(e=>iI(e)&&"_key"in e))return{kind:"error",key:r.name,fieldName:r.name,error:{type:"MISSING_KEYS",value:e,schemaType:r.type}};let d=n?function(e){let t=new Set;return e.reduce((e,n,r)=>(t.has(n._key)&&e.push([r,n._key]),t.add(n._key),e),[])}(e):[];if(d.length>0)return{kind:"error",key:r.name,fieldName:r.name,error:{type:"DUPLICATE_KEYS",duplicates:d,schemaType:r.type}};let c=a.fieldGroupState?.children?.[r.name],u=a.collapsedPaths?.children?.[r.name],m=a.collapsedFieldSets?.children?.[r.name],f=!0===a.hidden||a.hidden?.value||a.hidden?.children?.[r.name],C=!0===a.readOnly||a.readOnly?.value||a.readOnly?.children?.[r.name],y=p({schemaType:r.type,currentUser:a.currentUser,value:e,changed:Fg(e,t),comparisonValue:t,fieldGroupState:c,focusPath:a.focusPath,openPath:a.openPath,presence:a.presence,validation:a.validation,collapsedPaths:u,collapsedFieldSets:m,level:s,path:o,readOnly:C,hidden:f,changesOpen:a.changesOpen});return null===y?null:{kind:"field",key:`field-${r.name}`,name:r.name,index:i,open:(0,l.w1)(o,a.openPath),inSelectedGroup:g,groups:h,collapsible:!1,collapsed:!1,field:y}}{if(!(typeof e>"u"||Array.isArray(e))){let t=(0,nr.yu)(e);return{kind:"error",key:r.name,fieldName:r.name,error:{type:"INCOMPATIBLE_TYPE",expectedSchemaType:r.type,resolvedValueType:t,value:e}}}let n=a.fieldGroupState?.children?.[r.name],d=a.collapsedPaths?.children?.[r.name],c=a.collapsedFieldSets?.children?.[r.name],p=!0===a.hidden||a.hidden?.value||a.hidden?.children?.[r.name],m=!0===a.readOnly||a.readOnly?.value||a.readOnly?.children?.[r.name],f=u({changed:Fg(e,t),comparisonValue:t,schemaType:r.type,currentUser:a.currentUser,value:e,fieldGroupState:n,focusPath:a.focusPath,openPath:a.openPath,presence:a.presence,validation:a.validation,collapsedPaths:d,collapsedFieldSets:c,level:s,path:o,readOnly:m,hidden:p,changesOpen:a.changesOpen});return null===f?null:{kind:"field",key:`field-${r.name}`,name:r.name,index:i,inSelectedGroup:g,groups:h,open:(0,l.w1)(o,a.openPath),collapsible:!1,collapsed:!1,field:f}}}{let e=d?.[r.name],t=iI(m)?m?.[r.name]:void 0;if(!0===a.hidden||a.hidden?.value||a.hidden?.children?.[r.name]?.value)return null;let n=!0===a.hidden||a.hidden?.value||a.hidden?.children?.[r.name],s=!0===a.readOnly||a.readOnly?.value||a.readOnly?.children?.[r.name],c=f({...a,comparisonValue:t,value:e,schemaType:r.type,path:o,readOnly:s,hidden:n});return{kind:"field",key:`field-${r.name}`,name:r.name,index:i,open:(0,l.w1)(o,a.openPath),inSelectedGroup:g,groups:h,collapsible:!1,collapsed:!1,field:c}}}),c=n(function(e,t=!0){if(20===e.level)return null;let n=!0===e.readOnly||e.readOnly?.value,r=e.schemaType.groups||[],i=(r.find(e=>e.default)||Fa)?.name,a=[Fa,...r].flatMap(t=>{let n=!0===e.hidden||e.hidden?.value||e.hidden?.children?.[`group:${t.name}`]?.value,r=t.name===(e.fieldGroupState?.value||i),a=e.changesOpen?t.name===Fa.name:r,o=!!e.changesOpen&&!a;return n?[]:[{disabled:o,icon:t?.icon,name:t.name,selected:a,title:t.title,i18n:t.i18n}]}),o=a.find(e=>e.selected),s=(e.schemaType.fieldsets?e.schemaType.fieldsets:e.schemaType.fields.map(e=>({single:!0,field:e}))).flatMap((t,n)=>{if(t.single){let r=d({field:t.field,parent:{...e,groups:a,selectedGroup:o},index:n});return r?[r]:[]}let r=!0===e.hidden||e.hidden?.value||e.hidden?.children?.[`fieldset:${t.name}`]?.value,i=t.fields.flatMap(t=>{if(r)return[{kind:"hidden",key:`field-${t.name}`,name:t.name,index:n}];let i=d({field:t,parent:{...e,groups:a,selectedGroup:o},index:n});return i?[i]:[]}),s=Fm(t.options,e.level),c=(e.collapsedFieldSets?.children||{})[t.name]?.value??s.collapsed;return[{kind:"fieldSet",key:`fieldset-${t.name}`,_inSelectedGroup:Fh(a,t.group,o),groups:t.group?nD(t.group):[],fieldSet:{path:(0,l.p0)(e.path.concat(t.name)),name:t.name,title:t.title,de
2848scription:t.description,hidden:!1,level:e.level+1,members:i.filter(e=>"hidden"!==e.kind),collapsible:s?.collapsible,collapsed:c,columns:t?.options?.columns}}]}),c=r.length>0,u=e.presence.filter(t=>(0,l.n4)(t.path,e.path)),p=u.length?u:i_,m=e.validation.filter(t=>(0,l.n4)(t.path,e.path)).map(e=>({level:e.level,message:e.message,path:e.path})),h=s.filter(e=>"hidden"!==e.kind);if(0===h.length&&t)return null;let f=c?a.flatMap(e=>e.name===Fa.name||h.some(t=>"error"!==t.kind&&("field"===t.kind?t.groups.includes(e.name):t.groups.includes(e.name)||t.fieldSet.members.some(t=>"error"!==t.kind&&t.groups.includes(e.name))))?e:[]):[],g=h.flatMap(e=>{if("error"===e.kind)return[e];if("field"===e.kind)return e.inSelectedGroup?[e]:[];let t=e.fieldSet.members.filter(e=>"field"!==e.kind||e.inSelectedGroup);return t.length>0?[{...e,fieldSet:{...e.fieldSet,members:t}}]:[]}),C={value:e.value,changed:Fg(e.value,e.comparisonValue),schemaType:e.schemaType,readOnly:n,path:e.path,id:(0,l.dI)(e.path),level:e.level,focused:(0,l.n4)(e.path,e.focusPath),focusPath:(0,l.om)(e.path,e.focusPath),presence:p,validation:m,members:g,groups:f};return Object.defineProperty(C,"_allMembers",{value:s,enumerable:!1}),C}),u=r(function(e){if(20===e.level||!0===e.hidden||e.hidden?.value)return null;let t=Array.isArray(e.value)?e.value:[],n=e.presence.filter(t=>(0,l.n4)(t.path,e.path)),r=n.length?n:i_,i=e.validation.filter(t=>(0,l.n4)(t.path,e.path)).map(e=>({level:e.level,message:e.message,path:e.path})),a=t.flatMap((t,n)=>h({arrayItem:t,parent:e,index:n}));return{changed:e.changed||a.some(e=>"item"===e.kind&&e.item.changed),value:e.value,readOnly:!0===e.readOnly||e.readOnly?.value,schemaType:e.schemaType,focused:(0,l.n4)(e.path,e.focusPath),focusPath:(0,l.om)(e.path,e.focusPath),path:e.path,id:(0,l.dI)(e.path),level:e.level,validation:i,presence:r,members:a}}),p=i(function(e){if(20===e.level||!0===e.hidden||e.hidden?.value)return null;let t=Array.isArray(e.value)?e.value:[],n=e.presence.filter(t=>(0,l.n4)(t.path,e.path)),r=n.length?n:i_,i=e.validation.filter(t=>(0,l.n4)(t.path,e.path)).map(e=>({level:e.level,message:e.message,path:e.path})),a=t.flatMap((t,n)=>m({arrayItem:t,parent:e,index:n}));return{changed:e.changed||a.some(e=>"item"===e.kind&&e.item.changed),value:e.value,readOnly:!0===e.readOnly||e.readOnly?.value,schemaType:e.schemaType,focused:(0,l.n4)(e.path,e.focusPath),focusPath:(0,l.om)(e.path,e.focusPath),path:e.path,id:(0,l.dI)(e.path),level:e.level,validation:i,presence:r,members:a}}),m=a(function(e){let{arrayItem:t,parent:n,index:r}=e,i=_e(n.schemaType,t),a=t._key;if(!i)return{kind:"error",key:a,index:r,error:{type:"INVALID_ITEM_TYPE",resolvedValueType:(0,nr.yu)(t),value:t,validTypes:n.schemaType.of}};let o=(0,l.p0)([...n.path,{_key:a}]),s=n.level+1,d=n.fieldGroupState?.children?.[a],u=n.collapsedPaths?.children?.[a],p=n.collapsedFieldSets?.children?.[a],m=!0===n.hidden||n.hidden?.value||n.hidden?.children?.[a],h=!0===n.readOnly||n.readOnly?.value||n.readOnly?.children?.[a],f=Array.isArray(n.comparisonValue)&&n.comparisonValue.find(e=>e._key===t._key)||void 0,g=c({schemaType:i,level:s,value:t,comparisonValue:f,changed:Fg(t,f),path:o,focusPath:n.focusPath,openPath:n.openPath,currentUser:n.currentUser,collapsedPaths:u,collapsedFieldSets:p,presence:n.presence,validation:n.validation,fieldGroupState:d,readOnly:h,hidden:m},!1),C=Fm(i.options,s),y=u?.value??C.collapsed;return{kind:"item",key:a,index:r,open:(0,l.w1)(o,n.openPath),collapsed:y,collapsible:!0,parentSchemaType:n.schemaType,item:g}}),h=o(function(e){let{arrayItem:t,parent:n,index:r}=e,i=function(e,t){let n=(0,nr.yu)(t);return e?.of.find(e=>e.name===n||e.jsonType===n)}(n.schemaType,t),a=(0,l.p0)([...n.path,r]),o=n.value?.[r],s=n.comparisonValue?.[r],d=n.level+1,c=`${i?.name||"invalid-type"}-${String(r)}`;if(!i)return{kind:"error",key:c,index:r,error:{type:"INVALID_ITEM_TYPE",validTypes:n.schemaType.of,resolvedValueType:(0,nr.yu)(i),value:o}};let u=!0===n.readOnly||n.readOnly?.value||n.readOnly?.children?.[r],p=f({...n,path:a,schemaType:i,level:d,value:o,comparisonValue:s,readOnly:u});return{kind:"item",key:c,index:r,parentSchemaType:n.schemaType,open:(0,l.n4)(a,n.openPath),item:p}}),f=s(function(e){let t=e.presence.filter(t=>(0,l.n4)(t.path,e.path)),n=t.length?t:i_,r=e.validation.filter(t=>(0,l.n4)(t.path,e.path)).map(e=>({level:e.level,message:e.message,path:e.path}));return{schemaType:e.schemaType,changed:Fg(e.value,e.comparisonValue),value:e.value,level:e.level,id:(0,l.dI)(e.path),readOnly:!0===e.readOnly||e.readOnly?.value,focused:(0,l.n4)(e.path,e.focusPath),path:e.path,presence:n,validation:r}});function g({collapsedFieldSets:e,collapsedPaths:t,comparisonValue:n,currentUser:r,documentValue:i,fieldGroupState:a,focusPath:o,hidden:l,openPath:s,presence:d,readOnly:u,schemaType:p,validation:m,changesOpen:h}){return c({collapsedFieldSets:e,collapsedPaths:t,comparisonValue:n,currentUser:r,value:i,fieldGroupState:a,focusPath:o,hidden:!1===l?iw:l,openPath:s,presence:d,readOnly:!1===u?iw:u,schemaType:p,validation:m,changesOpen:h,level:0,path:[]})}return g._prepareFieldMember=d,g._prepareFieldMember=d,g._prepareObjectInputState=c,g._prepareArrayOfPrimitivesInputState=u,g._prepareArrayOfObjectsInputState=p,g._prepareArrayOfObjectsMember=m,g._prepareArrayOfPrimitivesMember=h,g._preparePrimitiveInputState=f,g}
2848)()),[y]=(0,s.useState)(()=>{let e;return t=>{let n=oS(e??null,t);return e=n,n}}),x=(0,s.useMemo)(()=>y(n),[n,y]),[b]=(0,s.useState)(()=>{let e;return t=>{let n=oS(e??null,t);return e=n,n}}),v=(0,s.useMemo)(()=>b(i),[i,b]),[j]=(0,s.useState)(()=>{let e;return t=>{let n=oS(e??null,t);return e=n,n}}),w=(0,s.useMemo)(()=>j(r),[r,j]),{hidden:k,readOnly:S}=(0,s.useMemo)(()=>({hidden:f({currentUser:h,documentValue:t,schemaType:m}),readOnly:g({currentUser:h,documentValue:t,schemaType:m,readOnly:u})}),[f,h,t,m,g,u]),T=t&&hE(t);return(0,s.useMemo)(()=>C({schemaType:m,fieldGroupState:x,collapsedFieldSets:w,collapsedPaths:v,documentValue:t,comparisonValue:e,focusPath:a,openPath:o,readOnly:S,hidden:k,currentUser:h,presence:d,validation:T?i_:c,changesOpen:p}),[C,m,x,w,v,t,e,a,o,S,k,h,d,T,c,p])}({schemaType:j,documentValue:(0,s.useMemo)(()=>n?n(L):L,[n,L]),readOnly:eu,comparisonValue:V||L,focusPath:R,openPath:N,collapsedPaths:q,presence:F,validation:I,collapsedFieldSets:W,fieldGroupState:H,changesOpen:a}),eg=(0,s.useRef)(ef);(0,s.useEffect)(()=>{eg.current=ef},[ef]),function(e){let t,n,r,i,a=(0,o.c)(18),{editState:l}=e,d=Mn(),c=(0,eH.J)(d.capabilities),{activeWorkspace:u}=FS(),p=l.version??l.draft??l.published,m=p?._id??l.id,h=l.type;a[0]!==u.dataset||a[1]!==u.projectId?(t=[u.projectId,u.dataset],a[0]=u.dataset,a[1]=u.projectId,a[2]=t):t=a[2];let f=t.join(".");a[3]!==u.name||a[4]!==l.type||a[5]!==m||a[6]!==f?(n={resourceType:"studio",documentId:m,documentType:h,resourceId:f,schemaName:u.name},a[3]=u.name,a[4]=l.type,a[5]=m,a[6]=f,a[7]=n):n=a[7];let{recordEvent:g}=FT(n),C=(0,s.useRef)(!1);a[8]!==c?.comlink||a[9]!==p||a[10]!==l.ready||a[11]!==g?(r=()=>{let e=l.ready&&null!==p;c?.comlink&&e&&!C.current&&(C.current=!0,g("viewed"))},a[8]=c?.comlink,a[9]=p,a[10]=l.ready,a[11]=g,a[12]=r):r=a[12];let y=c?.comlink;a[13]!==p||a[14]!==l.ready||a[15]!==g||a[16]!==y?(i=[y,p,l.ready,g],a[13]=p,a[14]=l.ready,a[15]=g,a[16]=y,a[17]=i):i=a[17],(0,s.useEffect)(r,i)}({editState:M});let eC=(0,s.useCallback)(e=>{var t;(t=eg.current,[...e.map((t,n)=>({type:"expandPath",path:e.slice(0,n+1)})),...Fy(t,e)]).forEach(e=>{"expandPath"===e.type&&J(t=>Fi(t,e.path,!1)),"expandFieldSet"===e.type&&K(t=>Fi(t,e.path,!1)),"setSelectedGroup"===e.type&&U(t=>Fi(t,e.path,e.groupName))}),Y(e)},[eg]),ey=(0,s.useCallback)((e,t)=>{y.setLocation([{type:"document",documentId:L._id,path:e,lastActiveAt:new Date().toISOString(),selection:t?.selection}])},[y,L._id]),ex=(0,s.useMemo)(()=>f(ey,1e3,{leading:!0,trailing:!0}),[ey]),eb=(0,s.useRef)([]),ev=(0,s.useCallback)((e,t)=>{let n=(0,l.p0)(e);n!==eb.current&&(O((0,l.p0)(n)),eC((0,l.p0)(n.slice(0,-1))),eb.current=n,g?.(n)),ex(n,t)},[g,O,eC,ex]),ej=(0,s.useRef)(!1),ew=(0,s.useCallback)(e=>{ej.current||(O(i_),eb.current!==i_&&(eb.current=i_,g?.(i_)))},[g,O]),e_=(0,s.useCallback)(e=>{ej.current=!0,d(eb.current,e)||(O(e),eC(e),g?.(e),eb.current=e);let t=setTimeout(()=>{ej.current=!1},0);return()=>clearTimeout(t)},[g,eC]);return{editState:M,connectionState:P,focusPath:R,validation:I,ready:el,value:L,formState:ef,permissions:en,isPermissionsLoading:er,formStateRef:eg,collapsedFieldSets:W,collapsedPaths:q,openPath:N,schemaType:j,onChange:eh,onPathOpen:eC,onProgrammaticFocus:e_,onBlur:ew,onFocus:ev,onSetActiveFieldGroup:Q,onSetCollapsedPath:G,onSetCollapsedFieldSet:X}}let FR=/^\d+$/;function FO(e){return e.split(/[[.\]]/g).filter(Boolean).map(e=>e.includes("==")?function(e){let[t,n]=e.split("==");return{[t]:n.replace(/^['"]/,"").replace(/['"]$/,"")}}(e):FR.test(e)?Number(e):e)}function FV(e,t){return e2(t.map(t=>{var n,r;let i;return n=e,e2(Object.keys(r=t).filter((i=["id","ifRevisionID","query"],e=>!i.includes(e))).map(e=>{if("unset"===e)return r.unset.map(e=>({type:"unset",path:FO(e),origin:n}));if("insert"===e){let e="before"in r.insert?"before":"after";return{type:"insert",position:e,path:FO(r.insert[e]),items:r.insert.items,origin:n}}return Object.keys(r[e]).map(t=>"set"===e?{type:"set",path:FO(t),value:r[e][t],origin:n}:"inc"===e||"dec"===e?{type:e,path:FO(t),value:r[e][t],origin:n}:"setIfMissing"===e?{type:"setIfMissing",path:FO(t),value:r[e][t],origin:n}:"diffMatchPatch"===e?{type:e,path:FO(t),value:r[e][t],origin:n}:(console.warn(Error(`Unsupported patch type: ${e}
2848`)),null)).filter(Boolean)}))}))}function FL(e){if(e.patchType!==s2&&e.type)throw Error(`Patch is missing "patchType" - import and use "${e.type}()" from "sanity/form"`);if(e.patchType!==s2)throw Error('Patch is missing "patchType" - import and use the patch method helpers from "sanity/form"');let t=(0,nF.jN)(e.path||[]);if("insert"===e.type){let{position:n,items:r}=e;return{insert:{[n]:t,items:r}}}if("unset"===e.type)return{unset:[t]};if(!e.type)throw Error(`Missing patch type in patch ${JSON.stringify(e)}`);return t?{[e.type]:{[t]:e.value}}:{[e.type]:e.value}}let FF=(0,s.memo)(function(e){let t,n,r,i,l=(0,o.c)(9),{transform:s}=e,d=xq();l[0]!==d||l[1]!==s?(t=e=>{let t=s(e.patches);d.onChange(s4.from(t))},l[0]=d,l[1]=s,l[2]=t):t=l[2];let u=t;return l[3]!==d||l[4]!==u?(r={...d,onChange:u},l[3]=d,l[4]=u,l[5]=r):r=l[5],n=r,l[6]!==n||l[7]!==e.children?(i=(0,a.jsx)(c.q4.Provider,{value:n,children:e.children}),l[6]=n,l[7]=e.children,l[8]=i):i=l[8],i});function FB(e){let[t]=(0,s.useState)(e);return!eN(t,e)}function FN(e){return!!e&&e?.some(e=>(0,_.L4)(e)&&(e?.children||[])?.some(e=>(0,_.bn)(e)?e.text:e.userId))}function FY(e){return!!e&&!!(e?.target?.path?.selection?.type==="text"&&e?.target?.path?.selection?.value)}let FH=[],FZ=(0,a.jsx)(u.EY,{muted:!0,children:(0,a.jsx)(C.vKP,{})}),FU=(e,t)=>(0,a.jsx)(u.az,{as:"li",children:(0,a.jsx)(u.EY,{textOverflow:"ellipsis",size:1,weight:"medium",children:e})},`${e}-${t}`);function Fq(e){let t,n,r,i,l=(0,o.c)(11),{titlePath:d,maxLength:c}=e;e:{let e=d.length,n=Math.ceil(c/2),r=Math.floor(c/2);if(c&&e>c){let i;l[0]!==r||l[1]!==n||l[2]!==e||l[3]!==d?(i=[...d.slice(0,n-1),d.slice(n-1,e-r),...d.slice(e-r)],l[0]=r,l[1]=n,l[2]=e,l[3]=d,l[4]=i):i=l[4],t=i;break e}t=d}let p=t;if(l[5]!==p){let e;l[7]!==p.length?(e=(e,t)=>{let n=`${e}-${t}`,r=t<p.length-1;return Array.isArray(e)?(0,a.jsxs)(s.Fragment,{children:[(0,a.jsx)(y.m_,{content:(0,a.jsx)(u.BJ,{space:2,padding:2,children:e.map(FU)}),children:(0,a.jsx)(u.az,{children:FU("...",t)})}),r&&FZ]},n):(0,a.jsxs)(s.Fragment,{children:[FU(e,t),r&&FZ]},n)},l[7]=p.length,l[8]=e):e=l[8],r=p.map(e),l[5]=p,l[6]=r}else r=l[6];return n=r,l[9]!==n?(i=(0,a.jsx)(u.so,{align:"center",as:"ol",gap:2,children:n}),l[9]=n,l[10]=i):i=l[10],i}function FJ(e){let t,n,r,i,l,s,d,c,p,m=(0,o.c)(27),{isParent:h,onClose:f,commentId:g,onConfirm:C,loading:x,error:b}=e,{t:v}=iJ(Ft);m[0]!==v?(t={thread:{title:v("delete-thread.title"),body:v("delete-thread.body"),confirmButtonText:v("delete-thread.confirm")},comment:{title:v("delete-comment.title"),body:v("delete-comment.body"),confirmButtonText:v("delete-comment.confirm")}},m[0]=v,m[1]=t):t=m[1];let{title:j,body:w,confirmButtonText:_}=t[h?"thread":"comment"];m[2]!==g||m[3]!==C?(n=()=>{C(g)},m[2]=g,m[3]=C,m[4]=n):n=m[4];let k=n;return m[5]!==f?(r={onClick:f},m[5]=f,m[6]=r):r=m[6],m[7]!==_||m[8]!==k||m[9]!==x?(i={loading:x,onClick:k,text:_,tone:"critical"},m[7]=_,m[8]=k,m[9]=x,m[10]=i):i=m[10],m[11]!==r||m[12]!==i?(l={cancelButton:r,confirmButton:i},m[11]=r,m[12]=i,m[13]=l):l=m[13],m[14]!==w?(s=(0,a.jsx)(u.EY,{size:1,children:w}),m[14]=w,m[15]=s):s=m[15],m[16]!==b||m[17]!==v?(d=b&&(0,a.jsx)(ut,{tone:"critical",children:v("delete-dialog.error")}),m[16]=b,m[17]=v,m[18]=d):d=m[18],m[19]!==s||m[20]!==d?(c=(0,a.jsxs)(u.BJ,{space:4,children:[s,d]}),m[19]=s,m[20]=d,m[21]=c):c=m[21],m[22]!==f||m[23]!==l||m[24]!==c||m[25]!==j?(p=(0,a.jsx)(y.lG,{footer:l,header:j,id:"delete-comment-dialog",onClose:f,width:0,children:c}),m[22]=f,m[23]=l,m[24]=c,m[25]=j,m[26]=p):p=m[26],p}let FW=(0,s.forwardRef)(function(e,t){let n,r,i,l=(0,o.c)(5);return l[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)("path",{d:"M5.92627 14.5381H7.92627V18.5381L11.9263 14.5381H15.9263C17.0308 14.5381 17.9263 13.6427 17.9263 12.5381V6.53809C17.9263 5.43352 17.0308 4.53809 15.9263 4.53809H5.92627C4.8217 4.53809 3.92627 5.43352 3.92627 6.53809V12.5381C3.92627 13.6427 4.8217 14.5381 5.92627 14.5381Z",stroke:"currentColor",strokeWidth:"1.2",strokeLinejoin:"round"}),r=(0,a.jsx)("path",{d:"M2.77256 2.66835C2.54413 2.51319 2.23317 2.57259 2.07802 2.80103L1.40378 3.7937C1.32927 3.9034 1.30139 4.0382 1.32627 4.16845C1.35115 4.29871 1.42676 4.41374 1.53646 4.48825L19.5861 16.7479C19.8146 16.903 20.1255 16.8436 20.2807 16.6152L20.9549 15.6225C21.0294 15.5128 21.0573 15.378 21.0324 15.2478C21.0076 15.1175 20.9319 15.0025 20.8222 14.928L2.77256 2.66835Z",fill:"currentColor",strokeLinejoin:"round"}),l[0]=n,l[1]=r):(n=l[0],r=l[1]),l[2]!==e||l[3]!==t?(i=(0,a.jsxs)("svg",{"data-sanity-icon":"comment-disabled",width:"1em",height:"1em",ref:t,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[n,r]}),l[2]=e,l[3]=t,l[4]=i):i=l[4],i});(0,s.forwardRef)(function(e,t){let n,r,i=(0,o.c)(4);return i[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)("path",{d:"M7.5 15.5H9.5V19.5L13.5 15.5H17.5C18.6046 15.5 19.5 14.6046 19.5 13.5V7.5C19.5 6.39543 18.6046 5.5 17.5 5.5H7.5C6.39543 5.5 5.5 6.39543 5.5 7.5V13.5C5.5 14.6046 6.39543 15.5 7.5 15.5Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.2"}),i[0]=n):n=i[0],i[1]!==e||i[2]!==t?(r=(0,a.jsx)("svg",{"data-sanity-icon":"comment",width:"1em",height:"1em",ref:t,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:n}),i[1]=e,i[2]=t,i[3]=r):r=i[3],r});let FK=(0,s.forwardRef)(function(e,t){let n,r,i,l=(0,o.c)(5);return l[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)("path",{d:"M16.6633 18.9383C15.539 19.6562 14.2034 20.0723 12.7705 20.0723C8.77022 20.0723 5.52734 16.8294 5.52734 12.8291C5.52734 8.82881 8.77022 5.58594 12.7705 5.58594C16.7708 5.58594 20.0137 8.82881 20.0137 12.8291C20.0137 13.6623 19.8249 14.7093 19.6141 15.2077C19.5578 15.3408 19.479 15.4845 19.3936 15.6238C19.0955 16.1106 18.5507 16.3721 17.9807 16.4018V16.4018C16.8271 16.462 15.8588 15.5428 15.8588 14.3877V9.27302",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),r=(0,a.jsx)("circle",{cx:"12.5732",cy:"12.8291",r:"3.08691",stroke:"currentColor",strokeWidth:1.2}),l[0]=n,l[1]=r):(n=l[0],r=l[1]),l[2]!==e||l[3]!==t?(i=(0,a.jsxs)("svg",{"data-sanity-icon":"mention",fill:"none",height:"1em",ref:t,viewBox:"0 0 25 25",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e,children:[n,r]}),l[2]=e,l[3]=t,l[4]=i):i=l[4],i}),FG=(0,s.forwardRef)(function(e,t){let n,r,i,l,s,d,c=(0,o.c)(8);return c[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)("path",{d:"M10.1044 10.4011L10.1044 10.9972",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"square"}),r=(0,a.jsx)("path",{d:"M14.2393 10.4011L14.2393 10.9972",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"square"}),i=(0,a.jsx)("path",{d:"M7.12128 14.1151C7.70803 15.0226 9.66113 16.8377 11.7735 16.837
28487C13.8859 16.8377 15.6713 15.0226 16.4257 14.1151",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"square"}),l=(0,a.jsx)("path",{d:"M16.703 6.43905C15.3486 5.36511 13.6357 4.72374 11.773 4.72374C7.38731 4.72374 3.83203 8.27902 3.83203 12.6647C3.83203 17.0503 7.38731 20.6056 11.773 20.6056C16.0995 20.6056 19.618 17.1455 19.712 12.8415",stroke:"currentColor",strokeWidth:1.2}),s=(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.1135 9.03425L19.1135 11.4903L20.3135 11.4903L20.3135 9.03425L22.7693 9.03425L22.7693 7.83425L20.3135 7.83425L20.3135 5.37941L19.1135 5.37941L19.1135 7.83425L16.6584 7.83425L16.6584 9.03425L19.1135 9.03425Z",fill:"currentColor"}),c[0]=n,c[1]=r,c[2]=i,c[3]=l,c[4]=s):(n=c[0],r=c[1],i=c[2],l=c[3],s=c[4]),c[5]!==e||c[6]!==t?(d=(0,a.jsxs)("svg",{"data-sanity-icon":"add-reaction",fill:"none",height:"1em",ref:t,viewBox:"0 0 25 25",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e,children:[n,r,i,l,s]}),c[5]=e,c[6]=t,c[7]=d):d=c[7],d}),FX=(0,s.forwardRef)(function(e,t){let n,r,i=(0,o.c)(4);return i[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)("path",{clipRule:"evenodd",d:"M21.1602 12.5L7.16016 19.5V14.8765L13.6656 12.4989L7.16016 9.97149L7.16016 5.5L21.1602 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),i[0]=n):n=i[0],i[1]!==e||i[2]!==t?(r=(0,a.jsx)("svg",{"data-sanity-icon":"send",fill:"none",height:"1em",ref:t,viewBox:"0 0 25 25",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e,children:n}),i[1]=e,i[2]=t,i[3]=r):r=i[3],r}),FQ=(0,g.I4)(u.eu)`
2849  svg > ellipse {
2850    stroke: transparent;
2851  }
2852`,F1=/[^\p{Alpha}\p{White_Space}]/gu,F2=RegExp("\\p{White_Space}+","u");function F5(e){let t,n,r,i,l,s=(0,o.c)(12);s[0]!==e?({user:n,...t}=e,s[0]=e,s[1]=t,s[2]=n):(t=s[1],n=s[2]);let d=n,c=d?.displayName||"";if(s[3]!==c?(i=function(e){let t=e.replace(F1,"").split(F2);return 1===t.length?`${t[0].charAt(0)}`.toUpperCase():`${t[0].charAt(0)}${t[t.length-1].charAt(0)}`}(c),s[3]=c,s[4]=i):i=s[4],r=i,!d){let e;return s[5]!==t?(e=(0,a.jsx)(FQ,{...t}),s[5]=t,s[6]=e):e=s[6],e}let u=d?.imageUrl,p=d?.displayName;return s[7]!==r||s[8]!==t||s[9]!==u||s[10]!==p?(l=(0,a.jsx)(FQ,{initials:r,src:u,title:p,...t}),s[7]=r,s[8]=t,s[9]=u,s[10]=p,s[11]=l):l=s[11],l}let F0=g.I4.div(e=>{let t=(0,tZ.JW)(e.theme),{$size:n=1}=e;return(0,g.AH)`
2853    min-width: ${t.avatar.sizes[n]?.size}px;
2854  `}),F7=(0,_.MI)({name:"mention",type:"object",fields:[{name:"userId",type:"string"}]}),F3=(0,_.MI)({type:"block",name:"block",of:[F7],marks:{annotations:[]},styles:[{title:"Normal",value:"normal"}],lists:[]}),F8=(0,_.dO)({type:"array",name:"body",of:[F3]}),F4=ny.S.compile({name:"comments",types:[F8]}).get("body"),F6=g.I4.span(({theme:e})=>{let{regular:t}=e.sanity.fonts?.text.weights||{},{hovered:n}=e.sanity.color?.card||{},{bg:r}=e.sanity.color.selectable?.caution.pressed||{};return(0,g.AH)`
2855    font-weight: ${t};
2856    color: var(--card-link-fg-color);
2857    border-radius: 2px;
2858    background-color: ${n.bg};
2859    padding: 1px;
2860    box-sizing: border-box;
2861
2862    &[data-active='true'] {
2863      background-color: ${r};
2864    }
2865  `});function F9(e){let t,n,r,i,l,s=(0,o.c)(15),{selected:d,userId:c}=e,[m,h]=Co(c),f=Cl();if(!m||h){let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(p.r5,{"data-testid":"comment-mentions-loading-skeleton",style:{width:"10ch"},size:0,muted:!0,radius:1,animated:!0}),s[0]=e):e=s[0],e}s[1]!==m?(t=(0,a.jsx)(u.so,{children:(0,a.jsx)(F5,{user:m})}),s[1]=m,s[2]=t):t=s[2],s[3]!==m.displayName?(n=(0,a.jsx)(u.EY,{size:1,children:m.displayName}),s[3]=m.displayName,s[4]=n):n=s[4],s[5]!==t||s[6]!==n?(r=(0,a.jsxs)(u.so,{align:"center",gap:2,children:[t,n]}),s[5]=t,s[6]=n,s[7]=r):r=s[7];let g=f?.id===c;return s[8]!==d||s[9]!==g||s[10]!==m.displayName?(i=(0,a.jsxs)(F6,{"data-selected":d,"data-active":g,children:["@",m.displayName]}),s[8]=d,s[9]=g,s[10]=m.displayName,s[11]=i):i=s[11],s[12]!==r||s[13]!==i?(l=(0,a.jsx)(y.m_,{portal:!0,content:r,children:i}),s[12]=r,s[13]=i,s[14]=l):l=s[14],l}let Be=(0,g.I4)(u.EY)`
2866  word-break: break-word;
2867`;function Bt(e){let t,n=(0,o.c)(2),{children:r}=e;return n[0]!==r?(t=(0,a.jsx)(Be,{size:1,children:r}),n[0]=r,n[1]=t):t=n[1],t}let Bn=e=>{let{children:t}=e;return(0,a.jsx)(Bt,{children:t})},Br=e=>{let{children:t,value:n,selected:r}=e;return"mention"===n._type&&n.userId?(0,a.jsx)(F9,{selected:r,userId:n?.userId}):t};function Bi(e){let t,n,r,i,l,s,d,c,m,h,f=(0,o.c)(25),{t:g}=iJ(Ft),{onClose:C,onConfirm:x}=e;f[0]!==C?(t=e=>{e.stopPropagation(),C()},f[0]=C,f[1]=t):t=f[1];let b=t;f[2]!==x?(n=e=>{e.stopPropagation(),x()},f[2]=x,f[3]=n):n=f[3];let v=n;return f[4]!==g?(r=g("discard.header"),f[4]=g,f[5]=r):r=f[5],f[6]!==b?(i={onClick:b},f[6]=b,f[7]=i):i=f[7],f[8]!==g?(l=g("discard.button-confirm"),f[8]=g,f[9]=l):l=f[9],f[10]!==v||f[11]!==l?(s={onClick:v,text:l,tone:"critical"},f[10]=v,f[11]=l,f[12]=s):s=f[12],f[13]!==i||f[14]!==s?(d={cancelButton:i,confirmButton:s},f[13]=i,f[14]=s,f[15]=d):d=f[15],f[16]!==g?(c=g("discard.text"),f[16]=g,f[17]=c):c=f[17],f[18]!==c?(m=(0,a.jsx)(u.EY,{size:1,children:c}),f[18]=c,f[19]=m):m=f[19],f[20]!==C||f[21]!==r||f[22]!==d||f[23]!==m?(h=(0,a.jsx)(u.cZ,{tone:"default",children:(0,a.jsx)(p.Co,{zOffset:9999999,children:(0,a.jsx)(y.lG,{header:r,id:"discard-comment-dialog",onClose:C,width:0,onClickOutside:C,footer:d,children:m})})}),f[20]=C,f[21]=r,f[22]=d,f[23]=m,f[24]=h):h=f[24],h}let Ba=(0,g.I4)(u.so)``,Bo={width:"50%"};function Bl(e){let t,n,r,i,l,s,d,c,m=(0,o.c)(23),{user:h,onSelect:f}=e,[g]=Co(h.id),{t:C}=iJ(Ft),y=h.granted?void 0:"inactive";m[0]!==g||m[1]!==y?(t=(0,a.jsx)(F5,{user:g,status:y}),m[0]=g,m[1]=y,m[2]=t):t=m[2];let x=t;m[3]!==g?(n=g?(0,a.jsx)(u.EY,{size:1,textOverflow:"ellipsis",title:g.displayName,children:g.displayName}):(0,a.jsx)(p.r5,{size:1,style:Bo}),m[3]=g,m[4]=n):n=m[4];let b=n;m[5]!==f||m[6]!==h.id?(r=()=>{f(h.id)},m[5]=f,m[6]=h.id,m[7]=r):r=m[7];let v=r,j=!h.granted;return m[8]!==b?(i=(0,a.jsx)(u.az,{children:b}),m[8]=b,m[9]=i):i=m[9],m[10]!==x||m[11]!==i?(l=(0,a.jsxs)(Ba,{align:"center",gap:2,flex:1,children:[x,i]}),m[10]=x,m[11]=i,m[12]=l):l=m[12],m[13]!==C||m[14]!==h.granted?(s=!h.granted&&(0,a.jsx)(u.Ex,{fontSize:1,mode:"outline",children:C("mentions.unauthorized-user")}),m[13]=C,m[14]=h.granted,m[15]=s):s=m[15],m[16]!==l||m[17]!==s?(d=(0,a.jsxs)(u.so,{align:"center",gap:3,children:[l,s]}),m[16]=l,m[17]=s,m[18]=d):d=m[18],m[19]!==v||m[20]!==j||m[21]!==d?(c=(0,a.jsx)(u.Zp,{as:"button",disabled:j,onClick:v,padding:2,radius:2,children:d}),m[19]=v,m[20]=j,m[21]=d,m[22]=c):c=m[22],c}let Bs=[],Bd=(0,g.I4)(u.BJ)({maxWidth:"220px"}),Bc=(0,g.I4)(u.so)({maxHeight:315.5}
2867),Bu=(0,s.forwardRef)(function(e,t){let n,r,i,l,d,c,p,m,h,f=(0,o.c)(24),{t:g}=iJ(Ft),{loading:C,onSelect:y,options:x,inputElement:b}=e;f[0]!==x?(n=void 0===x?[]:x,f[0]=x,f[1]=n):n=f[1];let v=n,[j,w]=(0,s.useState)(""),_=(0,s.useRef)(null);f[2]===Symbol.for("react.memo_cache_sentinel")?(r=()=>({setSearchTerm(e){w(e)}}),i=[],f[2]=r,f[3]=i):(r=f[2],i=f[3]),(0,s.useImperativeHandle)(t,r,i),f[4]!==y?(l=e=>(0,a.jsx)(Bl,{user:e,onSelect:y}),f[4]=y,f[5]=l):l=f[5];let k=l;f[6]!==v?(d=e=>!v?.[e]?.granted,f[6]=v,f[7]=d):d=f[7];let S=d;e:{let e;if(!j){c=v||Bs;break e}if(f[8]!==v||f[9]!==j){let t=nM(j).toLocaleLowerCase();e=v?.map(Bp)?.filter(e=>e?.displayName?.includes(t))?.sort((e,n)=>{let r=e.displayName?.startsWith(t),i=n.displayName?.startsWith(t);return r&&!i?-1:!r&&i?1:0}),f[8]=v,f[9]=j,f[10]=e}else e=f[10];c=e||Bs}let T=c;if(C){let e;return f[11]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(Bd,{children:(0,a.jsx)(r5,{showText:!0})}),f[11]=e):e=f[11],e}let I=b||void 0;return f[12]!==T.length||f[13]!==g?(p=0===T.length&&(0,a.jsx)(u.az,{padding:5,children:(0,a.jsx)(u.EY,{align:"center",size:1,muted:!0,children:g("mentions.no-users-found")})}),f[12]=T.length,f[13]=g,f[14]=p):p=f[14],f[15]!==I||f[16]!==T||f[17]!==S||f[18]!==k||f[19]!==g?(m=T.length>0&&(0,a.jsx)(Bc,{direction:"column",flex:1,overflow:"hidden",children:(0,a.jsx)(rY,{activeItemDataAttr:"data-hovered",ariaLabel:g("mentions.user-list-aria-label"),fixedHeight:!0,getItemDisabled:S,inputElement:I,itemHeight:41,items:T,padding:1,ref:_,renderItem:k})}),f[15]=I,f[16]=T,f[17]=S,f[18]=k,f[19]=g,f[20]=m):m=f[20],f[21]!==p||f[22]!==m?(h=(0,a.jsxs)(u.so,{direction:"column",height:"fill","data-testid":"comments-mentions-menu",children:[p,m]}),f[21]=p,f[22]=m,f[23]=h):h=f[23],h});function Bp(e){return{...e,displayName:nM(e.displayName||"").toLocaleLowerCase()}}function Bm(){let e=(0,s.useContext)(c.ZU);if(!e)throw Error("useCommentInputContext must be used within a CommentInputProvider");return e}let Bh={passive:!0},Bf=["bottom","top"],Bg={outline:"none"},BC=[],By=g.I4.span(e=>{let{color:t}=(0,tZ.JW)(e.theme);return(0,g.AH)`
2868    color: ${t.input.default.enabled.placeholder};
2869    overflow: hidden;
2870    text-overflow: ellipsis;
2871    text-wrap: nowrap;
2872    display: block;
2873  `}),Bx=(0,g.I4)(y.AM)(({theme:e})=>{let{space:t,radius:n}=e.sanity;return(0,g.AH)`
2874    &[data-placement='bottom'] {
2875      transform: translateY(${t[1]}px);
2876    }
2877
2878    &[data-placement='top'] {
2879      transform: translateY(-${t[1]}px);
2880    }
2881
2882    [data-ui='Popover__wrapper'] {
2883      border-radius: ${n[3]}px;
2884      display: flex;
2885      flex-direction: column;
2886      overflow: clip;
2887      overflow: hidden;
2888      position: relative;
2889      width: 300px; // todo: improve
2890    }
2891  `});function Bb(e){let t,n,r,i,l,d,c,p,m,h,f,g,C,y,x=(0,o.c)(54),{t:b}=iJ(Ft),{focusLock:v,onFocus:j,onBlur:w,onKeyDown:k,onSubmit:S,placeholder:T,renderBlock:I}=e;x[0]!==b||x[1]!==T?(t=void 0===T?b("compose.create-comment-placeholder"):T,x[0]=b,x[1]=T,x[2]=t):t=x[2];
2891let E=t,$=(0,s.useRef)(null),[A,D]=(0,s.useState)(null),[z,M]=(0,s.useState)(null),P=(0,s.useRef)(null),R=(0,ng.pq)(),{canSubmit:O,closeMentions:V,insertMention:L,mentionOptions:F,mentionsMenuOpen:B,mentionsSearchTerm:N,onBeforeInput:Y,value:H}=Bm(),Z=!B;x[3]!==A||x[4]!==Z?(n={disabled:Z,rootElement:A},x[3]=A,x[4]=Z,x[5]=n):n=x[5];let U=function(e){let t,n,r,i,a=(0,o.c)(8),{disabled:l,rootElement:d}=e,[c,u]=(0,s.useState)(null);e:{let e;if(!c){t=null;break e}a[0]!==c?(e={getBoundingClientRect:()=>c},a[0]=c,a[1]=e):e=a[1],t=e}let p=t;a[2]!==l||a[3]!==d?(n=()=>{if(l)return void u(null);let e=window.getSelection();if(!e||!e.isCollapsed||0===e.rangeCount)return;let t=e.getRangeAt(0);if(!d?.contains(t.commonAncestorContainer))return void u(null);let n=t?.getBoundingClientRect();n&&u(n)},a[2]=l,a[3]=d,a[4]=n):n=a[4];let m=n;return a[5]!==m?(r=()=>(document.addEventListener("selectionchange",m,Bh),()=>{document.removeEventListener("selectionchange",m)}),i=[m],a[5]=m,a[6]=r,a[7]=i):(r=a[6],i=a[7]),(0,s.useEffect)(r,i),p}(n);x[6]!==E?(r=()=>(0,a.jsx)(By,{children:E}),x[6]=E,x[7]=r):r=x[7];let q=r;x[8]===Symbol.for("react.memo_cache_sentinel")?(i=()=>[$.current],x[8]=i):i=x[8],(0,u.PR)(B&&V,i),x[9]!==O||x[10]!==V||x[11]!==B||x[12]!==k||x[13]!==S?(l=e=>{switch(e.key){case"Enter":if(e.shiftKey)break;if(B){e.preventDefault(),e.stopPropagation(),V();break}S&&O&&(e.preventDefault(),e.stopPropagation(),S());break;case"Escape":case"ArrowLeft":case"ArrowRight":B&&(e.preventDefault(),e.stopPropagation(),V())}k&&k(e)},x[9]=O,x[10]=V,x[11]=B,x[12]=k,x[13]=S,x[14]=l):l=x[14];let J=l;e:{let e,t,n,r;if(R){d=void 0;break e}let i=H||BC;if(x[15]!==i){let n=i.slice(-1)[0],r=(0,_.L4)(n)?n.children.slice(-1)[0]:void 0;if(!r){d=void 0;break e}t=[{_key:n._key},"children",{_key:r._key}],e=(0,_.bn)(r)?r.text.length:0,x[15]=i,x[16]=e,x[17]=t,x[18]=d}else e=x[16],t=x[17],d=x[18];x[19]!==e||x[20]!==t?(n={path:t,offset:e},x[19]=e,x[20]=t,x[21]=n):n=x[21];let a=n;x[22]!==a?(r={focus:a,anchor:a},x[22]=a,x[23]=r):r=x[23],d=r}let W=d;x[24]!==N?(c=()=>{P.current?.setSearchTerm(N)},p=[N],x[24]=N,x[25]=c,x[26]=p):(c=x[25],p=x[26]),(0,s.useEffect)(c,p),x[27]!==V||x[28]!==B||x[29]!==R?(m=()=>{B&&R&&!eN(R.anchor,R.focus)&&V()},h=[B,V,R],x[27]=V,x[28]=B,x[29]=R,x[30]=m,x[31]=h):(m=x[30],h=x[31]),(0,s.useEffect)(m,h);let K=F.data||BC;x[32]!==z||x[33]!==L||x[34]!==F.loading||x[35]!==K?(f=(0,a.jsx)(Bu,{inputElement:z,loading:F.loading,onSelect:L,options:K,ref:P}),x[32]=z,x[33]=L,x[34]=F.loading,x[35]=K,x[36]=f):f=x[36];let G=f,X=!B;x[37]!==U||x[38]!==B||x[39]!==G||x[40]!==X?(g=(0,a.jsx)(Bx,{arrow:!1,constrainSize:!0,content:G,disabled:X,fallbackPlacements:Bf,open:B,placement:"bottom",ref:$,referenceElement:U}),x[37]=U,x[38]=B,x[39]=G,x[40]=X,x[41]=g):g=x[41];let Q=v?0:void 0;return x[42]!==J||x[43]!==W||x[44]!==Y||x[45]!==w||x[46]!==j||x[47]!==I||x[48]!==q||x[49]!==Q?(C=(0,a.jsx)(ng.LF,{"data-testid":"comment-input-editable","data-ui":"EditableElement",onBeforeInput:Y,onBlur:w,onFocus:j,onKeyDown:J,ref:M,renderBlock:I,renderChild:Br,renderPlaceholder:q,selection:W,style:Bg,tabIndex:Q}),x[42]=J,x[43]=W,x[44]=Y,x[45]=w,x[46]=j,x[47]=I,x[48]=q,x[49]=Q,x[50]=C):C=x[50],x[51]!==g||x[52]!==C?(y=(0,a.jsxs)("div",{ref:D,children:[g,C]}),x[51]=g,x[52]=C,x[53]=y):y=x[53],y}Bb.displayName="Editable";let Bv=(0,g.I4)(u.az)`
2892  max-height: 20vh;
2893  overflow-y: auto;
2894`,Bj=(0,g.I4)(u.Nj)({height:20,width:1});function Bw(e){return`inset 0 0 0 ${e.width}px ${e.color}`}let B_=(0,g.I4)(u.Zp)(({theme:e})=>{let{color:t,input:n,radius:r}=(0,tZ.JW)(e),i=r[2];return(0,g.AH)`
2895    border-radius: ${i}px;
2896    box-shadow: var(--input-box-shadow);
2897
2898    --input-box-shadow: ${Bw({color:t.input.default.enabled.border,width:n.border.width})};
2899
2900    &:not([data-expand-on-focus='false'], :focus-within) {
2901      background: transparent;
2902      box-shadow: unset;
2903    }
2904
2905    &[data-focused='true']:focus-within {
2906      ${Bv} {
2907        min-height: 1em;
2908      }
2909
2910      /* box-shadow: inset 0 0 0 1px var(--card-focus-ring-color); */
2911      --input-box-shadow: ${Bw({color:"var(--card-focus-ring-color)",width:n.border.width})};
2912    }
2913
2914    &:focus-within {
2915      ${Bv} {
2916        min-height: 1em;
2917      }
2918    }
2919
2920    &[data-expand-on-focus='false'] {
2921      ${Bv} {
2922        min-height: 1em;
2923      }
2924    }
2925
2926    &[data-expand-on-focus='true'] {
2927      [data-ui='CommentInputActions']:not([hidden]) {
2928        display: none;
2929      }
2930
2931      &:focus-within {
2932        [data-ui='CommentInputActions'] {
2933          display: flex;
2934        }
2935      }
2936    }
2937    &:hover {
2938      --input-box-shadow: ${Bw({color:t.input.default.hovered.border,width:n.border.width})};
2939    }
2940  `}),Bk=g.I4.div(e=>`
2941    min-height: ${(0,tZ.JW)(e.theme).avatar.sizes[1]?.size}px;
2942    display: flex;
2943    align-items: center;
2944  `);function BS(e){let t,n,r,i,l,s,d,c,p,m=(0,o.c)(41),{avatarSize:h,currentUser:f,focusLock:g,onBlur:C,onFocus:x,onKeyDown:b,onSubmit:v,placeholder:j,renderBlock:w,withAvatar:_}=e,k=void 0===h?1:h,[S]=Co(f.id),{canSubmit:T,expandOnFocus:I,focused:E,hasChanges:$,insertAtChar:A,openMentions:D,readOnly:z,mentionOptions:M}=Bm(),{t:P}=iJ(Ft);m[0]!==k||m[1]!==S||m[2]!==_?(t=_?(0,a.jsx)(Bk,{children:(0,a.jsx)(F5,{user:S,size:k})}):null,m[0]=k,m[1]=S,m[2]=_,m[3]=t):t=m[3];let R=t;m[4]!==A||m[5]!==D?(n=e=>{e.stopPropagation(),A(),D()},m[4]=A,m[5]=D,m[6]=n):n=m[6];let O=n,V=I&&!T?"true":"false",L=E?"true":"false",F=z?"transparent":"default";return m[7]!==g||m[8]!==C||m[9]!==x||m[10]!==b||m[11]!==v||m[12]!==j||m[13]!==w?(r=(0,a.jsx)(Bv,{"data-ui":"CommentInputEditableWrap",paddingX:1,paddingY:2,sizing:"border",children:(0,a.jsx)(Bb,{focusLock:g,onBlur:C,onFocus:x,onKeyDown:b,onSubmit:v,placeholder:j,renderBlock:w})}
2944),m[7]=g,m[8]=C,m[9]=x,m[10]=b,m[11]=v,m[12]=j,m[13]=w,m[14]=r):r=m[14],m[15]!==O||m[16]!==M.disabled||m[17]!==z||m[18]!==P?(i=!M.disabled&&(0,a.jsx)(y.$n,{"aria-label":P("compose.mention-user-aria-label"),"data-testid":"comment-input-mention-button",disabled:z,icon:FK,mode:"bleed",type:"button",onClick:O,tooltipProps:{content:P("compose.mention-user-tooltip")}}),m[15]=O,m[16]=M.disabled,m[17]=z,m[18]=P,m[19]=i):i=m[19],m[20]!==T||m[21]!==$||m[22]!==M.disabled||m[23]!==v||m[24]!==z||m[25]!==P?(l=v&&(0,a.jsxs)(a.Fragment,{children:[!M.disabled&&(0,a.jsx)(Bj,{}),(0,a.jsx)(y.$n,{"aria-label":P("compose.send-comment-aria-label"),"data-testid":"comment-input-send-button",disabled:!T||!$||z,icon:FX,mode:$&&T?"default":"bleed",onClick:v,tone:$&&T?"primary":"default",tooltipProps:{content:P("compose.send-comment-tooltip")}})]}),m[20]=T,m[21]=$,m[22]=M.disabled,m[23]=v,m[24]=z,m[25]=P,m[26]=l):l=m[26],m[27]!==i||m[28]!==l?(s=(0,a.jsx)(u.so,{align:"center","data-ui":"CommentInputActions",gap:1,justify:"flex-end",padding:1,children:(0,a.jsxs)(y.vE,{children:[i,l]})}),m[27]=i,m[28]=l,m[29]=s):s=m[29],m[30]!==r||m[31]!==s?(d=(0,a.jsxs)(u.BJ,{children:[r,s]}),m[30]=r,m[31]=s,m[32]=d):d=m[32],m[33]!==d||m[34]!==V||m[35]!==L||m[36]!==F?(c=(0,a.jsx)(B_,{id:"comment-input-root","data-expand-on-focus":V,"data-focused":L,flex:1,sizing:"border",tone:F,children:d}),m[33]=d,m[34]=V,m[35]=L,m[36]=F,m[37]=c):c=m[37],m[38]!==R||m[39]!==c?(p=(0,a.jsxs)(u.so,{align:"flex-start",gap:2,children:[R,c]}),m[38]=R,m[39]=c,m[40]=p):p=m[40],p}function BT(e){let t,n,r,i,l,d,u,p,m,h,f,g,C=(0,o.c)(42),{children:y,expandOnFocus:x,focused:b,focusOnMount:v,mentionOptions:j,onMentionMenuOpenChange:w,value:k,readOnly:S}=e,T=void 0!==x&&x,I=void 0!==v&&v,E=(0,ng.v$)(),[$,A]=(0,s.useState)(!1),[D,z]=(0,s.useState)(""),[M,P]=(0,s.useState)(null);C[0]!==k?(n=FN(k),C[0]=k,C[1]=n):n=C[1],t=n;let R=FB(k);C[2]!==E||C[3]!==S?(r=()=>{S||ng.Og.focus(E)},C[2]=E,C[3]=S,C[4]=r):r=C[4];let O=r;C[5]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{A(!1),z(""),P(null)},C[5]=i):i=C[5];let V=i;C[6]!==E||C[7]!==j?.disabled?(l=()=>{j?.disabled||(A(!0),z(""),A(!0),P(ng.Og.getSelection(E)))},C[6]=E,C[7]=j?.disabled,C[8]=l):l=C[8];let L=l;C[9]!==E||C[10]!==j?.disabled||C[11]!==D||C[12]!==L?(d=e=>{if(j?.disabled)return;let t=ng.Og.getSelection(E),n=t?t.focus.offset:0,r=ng.Og.focusChild(E),i=(0,_.bn)(r)&&r||void 0,a="insertText"===e.inputType,o="deleteContentBackward"===e.inputType,l=a&&"@"===e.data,s=i?.text.slice(0,Math.max(0,n)).lastIndexOf("@")||0,d=i?.text.slice(n-1,n)===" ",c=a&&" "===e.data&&!D;if(l&&(n<1||d))return void L();if(c||o&&(i?.text.length===1||s===(i?.text.length||0)-1))return void V();if((0,_.bn)(r)){let t=r.text.slice(s+1,n);a&&(t+=e.data),o&&(t=t.slice(0,Math.max(0,t.length-1))),z(t)}},C[9]=E,C[10]=j?.disabled,C[11]=D,C[12]=L,C[13]=d):d=C[13];let F=d;C[14]!==E?(u=()=>{A(!0),ng.Og.focus(E),ng.Og.insertChild(E,E.schemaTypes.span,{text:"@"}),P(ng.Og.getSelection(E))},C[14]=E,C[15]=u):u=C[15];let B=u;C[16]!==$||C[17]!==w?(p=()=>w?.($),C[16]=$,C[17]=w,C[18]=p):p=C[18],xZ($,p),C[19]!==E||C[20]!==M?(m=e=>{let t=E.schemaTypes.inlineObjects.find(BI),[n,r]=M&&ng.Og.findByPath(E,M.focus.path)||[];if(n&&(0,_.bn)(n)&&r&&t){ng.Og.focus(E);let i=ng.Og.getSelection(E)?.focus.offset;"u">typeof i&&(ng.Og.delete(E,{anchor:{path:r,offset:n.text.lastIndexOf("@")},focus:{path:r,offset:i}},{mode:"selected"}),ng.Og.insertChild(E,t,{userId:e}),ng.Og.insertChild(E,E.schemaTypes.span,{text:" "}))}},C[19]=E,C[20]=M,C[21]=m):m=C[21];let N=m,Y=!!S;return C[22]!==t||C[23]!==E||C[24]!==T||C[25]!==O||C[26]!==I||C[27]!==b||C[28]!==R||C[29]!==B||C[30]!==N||C[31]!==j||C[32]!==$||C[33]!==D||C[34]!==F||C[35]!==L||C[36]!==Y||C[37]!==k?(f={canSubmit:t,closeMentions:V,editor:E,expandOnFocus:T,focused:b,focusEditor:O,focusOnMount:I,hasChanges:R,insertAtChar:B,insertMention:N,mentionOptions:j,mentionsMenuOpen:$,mentionsSearchTerm:D,onBeforeInput:F,openMentions:L,readOnly:Y,value:k},C[22]=t,C[23]=E,C[24]=T,C[25]=O,C[26]=I,C[27]=b,C[28]=R,C[29]=B,C[30]=N,C[31]=j,C[32]=$,C[33]=D,C[34]=F,C[35]=L,C[36]=Y,C[37]=k,C[38]=f):f=C[38],h=f,C[39]!==y||C[40]!==h?(g=(0,a.jsx)(c.ZU.Provider,{value:h,children:y}),C[39]=y,C[40]=h,C[41]=g):g=C[41],g}function BI(e){return"mention"===e.name}let BE=[],B$={behavior:"smooth",block:"center",inline:"center"},BA=(0,s.forwardRef)(function(e,t){let n,r,i,l,d,c,m,h,f,g,C,y,x,b,v,j,w,_,k,S,T=(0,o.c)(58),{avatarSize:I,currentUser:E,expandOnFocus:$,focusLock:A,focusOnMount:D,mentionOptions:z,onBlur:M,onChange:P,onDiscardCancel:R,onDiscardConfirm:O,onFocus:V,onKeyDown:L,onMentionMenuOpenChange:F,onSubmit:B,placeholder:N,readOnly:Y,renderBlock:H,value:Z,withAvatar:U}=e,q=void 0!==A&&A,J=void 0===H?Bn:H,W=void 0===Z?BE:Z,K=void 0===U||U,[G,X]=(0,s.use
2944State)(!1),Q=(0,s.useRef)(null),ee=(0,s.useRef)(null),[et,en]=(0,s.useState)(!1),er=(0,s.useRef)(null),ei=(0,s.useRef)(null),ea=(0,s.useRef)(null);T[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,ng.l0)(),T[0]=n):n=T[0];let[eo,el]=(0,s.useState)(n);T[1]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{requestAnimationFrame(()=>{Q.current&&ng.Og.focus(Q.current)})},T[1]=r):r=T[1];let es=r;T[2]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{el((0,ng.l0)())},T[2]=i):i=T[2];let ed=i;T[3]!==D||T[4]!==P?(l=e=>{"ready"===e.type&&D&&es(),"focus"===e.type&&X(!0),"blur"===e.type&&X(!1),"patch"===e.type&&Q.current&&P(ng.Og.getValue(Q.current)||BE)},T[3]=D,T[4]=P,T[5]=l):l=T[5];let ec=l;T[6]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{ee.current?.scrollIntoView(B$)},T[6]=d):d=T[6];let eu=d;T[7]!==B?(c=()=>{B?.(),ed(),es(),eu()},T[7]=B,T[8]=c):c=T[8];let ep=c;T[9]!==O?(m=()=>{O(),ed()},T[9]=O,T[10]=m):m=T[10];let em=m;T[11]===Symbol.for("react.memo_cache_sentinel")?(f={open:()=>{en(!0)},close:()=>{en(!1),es()}},T[11]=f):f=T[11],h=f,T[12]===Symbol.for("react.memo_cache_sentinel")?(g=()=>({focus:es,blur(){Q.current&&ng.Og.blur(Q.current)},scrollTo:eu,reset:ed,discardDialogController:h}),C=[h,es,ed,eu],T[12]=g,T[13]=C):(g=T[12],C=T[13]),(0,s.useImperativeHandle)(t,g,C),T[14]!==q?(y=e=>{if(!q)return;let t=e.target,n=ea.current;if(n&&t===er.current)return void(0,p.Ki)(n);n&&t===ei.current&&(0,p.s5)(n)},T[14]=q,T[15]=y):y=T[15];let eh=y;T[16]!==em||T[17]!==R||T[18]!==et?(x=et&&R&&(0,a.jsx)(Bi,{onClose:R,onConfirm:em}),T[16]=em,T[17]=R,T[18]=et,T[19]=x):x=T[19];let ef=W||BE;T[20]!==q?(b=q&&(0,a.jsx)("div",{ref:er,tabIndex:0}),T[20]=q,T[21]=b):b=T[21];let eg=B&&ep;return T[22]!==I||T[23]!==E||T[24]!==q||T[25]!==M||T[26]!==V||T[27]!==L||T[28]!==N||T[29]!==J||T[30]!==eg||T[31]!==K?(v=(0,a.jsx)(u.BJ,{ref:ea,children:(0,a.jsx)(BS,{avatarSize:I,currentUser:E,focusLock:q,onBlur:M,onFocus:V,onKeyDown:L,onSubmit:eg,placeholder:N,renderBlock:J,withAvatar:K})}),T[22]=I,T[23]=E,T[24]=q,T[25]=M,T[26]=V,T[27]=L,T[28]=N,T[29]=J,T[30]=eg,T[31]=K,T[32]=v):v=T[32],T[33]!==q?(j=q&&(0,a.jsx)("div",{ref:ei,tabIndex:0}),T[33]=q,T[34]=j):j=T[34],T[35]!==$||T[36]!==D||T[37]!==G||T[38]!==z||T[39]!==F||T[40]!==Y||T[41]!==b||T[42]!==v||T[43]!==j||T[44]!==W?(w=(0,a.jsxs)(BT,{expandOnFocus:$,focused:G,focusOnMount:D,mentionOptions:z,onMentionMenuOpenChange:F,readOnly:Y,value:W,children:[b,v,j]}),T[35]=$,T[36]=D,T[37]=G,T[38]=z,T[39]=F,T[40]=Y,T[41]=b,T[42]=v,T[43]=j,T[44]=W,T[45]=w):w=T[45],T[46]!==eo||T[47]!==ec||T[48]!==Y||T[49]!==ef||T[50]!==w?(_=(0,a.jsx)(ng.Og,{onChange:ec,readOnly:Y,ref:Q,schemaType:F4,value:ef,children:w},eo),T[46]=eo,T[47]=ec,T[48]=Y,T[49]=ef,T[50]=w,T[51]=_):_=T[51],T[52]!==eh||T[53]!==_?(k=(0,a.jsx)(u.BJ,{ref:ee,"data-testid":"comment-input",onFocus:eh,children:_}),T[52]=eh,T[53]=_,T[54]=k):k=T[54],T[55]!==x||T[56]!==k?(S=(0,a.jsxs)(a.Fragment,{children:[x,k]}),T[55]=x,T[56]=k,T[57]=S):S=T[57],S}),BD="sanity/comments",Bz="yellow",BM=[{shortName:":+1:",title:"Thumbs up"},{shortName:":-1:",title:"Thumbs down"},{shortName:":heart:",title:"Heart"},{shortName:":rocket:",title:"Rocket"},{shortName:":heavy_plus_sign:",title:"Heavy plus sign"},{shortName:":eyes:",title:"Eyes"}],BP={":-1:":"\uD83D\uDC4E",":+1:":"\uD83D\uDC4D",":eyes:":"\uD83D\uDC40",":heart:":"❤️",":heavy_plus_sign:":"➕",":rocket:":"\uD83D\uDE80"},BR=g.I4.span(({theme:e})=>{let t=e.sanity.v2?.color._dark,n=v.OZ[Bz][t?800:100].hex,r=v.OZ[Bz][t?700:300].hex,i=v.OZ[Bz][t?700:200].hex,a=v.OZ[Bz][t?600:400].hex,o=v.OZ[Bz][t?700:200].hex,l=v.OZ[Bz][t?600:400].hex;return(0,g.AH)`
2945    box-sizing: border-box;
2946    transition:
2947      background-color 100ms ease,
2948      border-color 100ms ease;
2949
2950    // Make sure that child elements appropriately blend with the
2951    // background of the highlight span
2952    * {
2953      mix-blend-mode: ${t?"screen":"multiply"};
2954    }
2955
2956    &[data-inline-comment-state='added'][data-inline-comment-nested='false'] {
2957      background-color: ${n};
2958      border-bottom: 2px solid ${r};
2959    }
2960
2961    &[data-inline-comment-state='added'][data-inline-comment-nested='true'] {
2962      background-color: ${o};
2963      border-bottom: 2px solid ${l};
2964    }
2965
2966    &[data-inline-comment-state='added'][data-inline-comment-nested='false'][data-hovered='true'] {
2967      background-color: ${i};
2968      border-bottom: 2px solid ${a};
2969    }
2970
2971    &[data-inline-comment-state='authoring'] {
2972      background-color: ${n};
2973      border-bottom: 2px solid ${r};
2974    }
2975  `}),BO=(0,s.forwardRef)(function(e,t){let n,r,i,l,s,d,c,u=(0,o.c)(14);u[0]!==e?({children:n,isAdded:r,isAuthoring:i,isHovered:l,isNested:s,...d}=e,u[0]=e,u[1]=n,u[2]=r,u[3]=i,u[4]=l,u[5]=s,u[6]=d):(n=u[1],r=u[2],i=u[3],l=u[4],s=u[5],d=u[6]);let p=r?"added":i?"authoring":void 0,m=l?"true":"false",h=s?"true":"false";return u[7]!==n||u[8]!==t||u[9]!==d||u[10]!==p||u[11]!==m||u[12]!==h?(c=(0,a.jsx)(BR,{...d,"data-hovered":m,"data-inline-comment-nested":h,"data-inline-comment-state":p,ref:t,children:n}),u[7]=n,u[8]=t,u[9]=d,u[10]=p,u[11]=m,u[12]=h,u[13]=c):c=u[13],c}),BV=(0,g.I4)(u.BJ)(()=>(0,g.AH)`
2976    & > [data-ui='Text']:not(:first-child) {
2977      margin-top: 1em; // todo: improve
2978    }
2979
2980    & > [data-ui='Text']:has(> span:empty) {
2981      display: none;
2982    }
2983  `),BL=[];function BF(e){var t;let n,r,i,l=(0,o.c)(4);return l[0]!==e.children?(r=Array.isArray(t=e.children)?t.flatMap(e=>{let t=[e];for(let e of NJ)t=t.flatMap(e);return t}):t,l[0]=e.children,l[1]=r):r=l[1],n=r,l[2]!==n?(i=(0,a.jsx)(Bt,{children:n}),l[2]=n,l[3]=i):i=l[3],i}let BB={block:{normal:BF,h1:BF,h2:BF,h3:BF,h4:BF,h5:BF,h6:BF,blockquote:BF,code:BF},list:{bullet:s.Fragment,number:s.Fragment,checkmarks:s.Fragment},listItem:{bullet:BF,number:BF,checkmarks:BF},marks:{strong:s.Fragment,em:s.Fragment,code:s.Fragment,underline:s.Fragment,strikeThrough:s.Fragment,link:s.Fragment},types:{mention:e=>(0,a.jsx)(F9,{userId:e?.value?.userId,selected:!1})}};function BN(e){let t,n=(0,o.c)(2),{blocks:r}=e,i=r||BL;return n[0]!==i?(t=(0,a.jsx)(BV,{children:(0,a.jsx)(nh.RK,{value:i,components:BB})}),n[0]=i,n[1]=t):t=n[1],t}let BY=(0,g.I4)(u.EY)`
2984  font-family:
2985    'Twemoji Mozilla', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji',
2986    'EmojiOne Color', 'Android Emoji', sans-serif;
2987`;function BH(e){let t,n,r,i,l,d,c,p,m,h=(0,o.c)(24),{options:f,onSelect:g}=e,{t:C}=iJ(Ft);h[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],h[0]=t):t=h[0];
2987let[y,x]=(0,s.useState)(t),[b,v]=(0,s.useState)(null),[j,w]=(0,s.useState)(0);h[1]!==y.length?(n=e=>{let t=y.length;"ArrowRight"===e.key&&w(e=>(e+1)%t),"ArrowLeft"===e.key&&w(e=>(e-1+t)%t)},h[1]=y.length,h[2]=n):n=h[2];let _=n;h[3]!==y||h[4]!==g||h[5]!==f?(r=e=>{let t=y.indexOf(e.currentTarget);w(t),g(f[t])},h[3]=y,h[4]=g,h[5]=f,h[6]=r):r=h[6];let k=r;if(h[7]!==b?(i=()=>{b&&x(Array.from(b.querySelectorAll("button")))},l=[b],h[7]=b,h[8]=i,h[9]=l):(i=h[8],l=h[9]),(0,s.useEffect)(i,l),h[10]!==y||h[11]!==j?(d=()=>{y.length>0&&y[j].focus()},c=[y,j],h[10]=y,h[11]=j,h[12]=d,h[13]=c):(d=h[12],c=h[13]),(0,s.useEffect)(d,c),h[14]!==k||h[15]!==f||h[16]!==C){let e;h[18]!==k||h[19]!==C?(e=e=>{let t=BP[e.shortName];return(0,a.jsx)(u.$n,{"aria-label":C("reactions.react-with-aria-label",{reactionName:e.title||e.shortName}),mode:"bleed",onClick:k,padding:2,role:"menuitem",tabIndex:-1,children:(0,a.jsx)(BY,{align:"center",size:2,children:t})},e.shortName)},h[18]=k,h[19]=C,h[20]=e):e=h[20],p=f.map(e),h[14]=k,h[15]=f,h[16]=C,h[17]=p}else p=h[17];return h[21]!==_||h[22]!==p?(m=(0,a.jsx)(u.xA,{columns:6,gap:1,onKeyDown:_,ref:v,role:"menu",children:p}),h[21]=_,h[22]=p,h[23]=m):m=h[23],m}let BZ=["top","bottom"];function BU(e){let t,n,r,i,l,d,c,p,m,h,f,g=(0,o.c)(35),{onMenuClose:C,onMenuOpen:x,onSelect:b,options:v,readOnly:j,renderMenuButton:w,mode:_}=e,[k,S]=(0,s.useState)(null),T=(0,s.useRef)(null),[I,E]=(0,s.useState)(!1),{t:$}=iJ(Ft);g[0]!==C||g[1]!==x||g[2]!==I?(t=()=>{let e=!I;E(e),e?x?.():C?.()},g[0]=C,g[1]=x,g[2]=I,g[3]=t):t=g[3];let A=t;g[4]!==C||g[5]!==I?(n=()=>{I&&(E(!1),C?.())},g[4]=C,g[5]=I,g[6]=n):n=g[6];let D=n;g[7]!==k||g[8]!==D||g[9]!==I?(r=()=>{I&&(D(),k?.focus())},g[7]=k,g[8]=D,g[9]=I,g[10]=r):r=g[10];let z=r;g[11]!==z?(i=e=>{let{key:t,shiftKey:n}=e;(n&&"Tab"===t||"Escape"===t||"Tab"===t)&&z()},g[11]=z,g[12]=i):i=g[12];let M=i;g[13]!==k?(l=()=>[T.current,k],g[13]=k,g[14]=l):l=g[14],(0,u.PR)(D,l),g[15]!==D||g[16]!==b?(d=e=>{b(e),D()},g[15]=D,g[16]=b,g[17]=d):d=g[17];let P=d;if(g[18]!==A||g[19]!==_||g[20]!==I||g[21]!==j||g[22]!==w||g[23]!==$){let e=w({open:I,tooltipContent:$("upsell"===_?"list-item.context-menu-add-reaction-upsell":"list-item.context-menu-add-reaction"),t:$});p=(0,s.cloneElement)(e,{"aria-expanded":I,"aria-haspopup":"true",disabled:j||"upsell"===_,id:"reactions-menu-button",onClick:A,ref:S}),g[18]=A,g[19]=_,g[20]=I,g[21]=j,g[22]=w,g[23]=$,g[24]=p}else p=g[24];c=p,g[25]!==P||g[26]!==v?(m=(0,a.jsx)(BH,{onSelect:P,options:v}),g[25]=P,g[26]=v,g[27]=m):m=g[27],g[28]!==M||g[29]!==m?(h=(0,a.jsx)(u.Zp,{"aria-labelledby":"reactions-menu-button",onKeyDown:M,padding:1,radius:3,tone:"default",children:m}),g[28]=M,g[29]=m,g[30]=h):h=g[30];let R=h;return g[31]!==c||g[32]!==I||g[33]!==R?(f=(0,a.jsx)(y.AM,{constrainSize:!0,content:R,fallbackPlacements:BZ,open:I,placement:"bottom",portal:!0,ref:T,tone:"default",children:c}),g[31]=c,g[32]=I,g[33]=R,g[34]=f):f=g[34],f}let Bq=(0,g.I4)(u.BJ)`
2988  max-width: 180px;
2989`,BJ=g.I4.div`
2990  display: inline-block;
2991`,BW=(0,g.I4)(u.EY).attrs({size:1})`
2992  display: inline-block !important;
2993
2994  & > span {
2995    white-space: break-spaces;
2996  }
2997`,BK=(0,g.I4)(u.az)`
2998  line-height: 1;
2999  text-align: center;
3000`,BG=/^\S+/;function BX(e){let t,n=(0,o.c)(7),{currentUserId:r,isFirst:i,userId:a}=e,[l]=Co(a),{t:s}=iJ(Ft);if(r===a){let e,t=i?"leading":void 0,r=l?.displayName;return n[0]!==t||n[1]!==s||n[2]!==r?(e=s("reactions.user-list.you",{context:t,replace:{name:r}}),n[0]=t,n[1]=s,n[2]=r,n[3]=e):e=n[3],e}return n[4]!==s||n[5]!==l?.displayName?(t=l?.displayName||s("reactions.user-list.unknown-user-fallback-name"),n[4]=s,n[5]=l?.displayName,n[6]=t):t=n[6],t}function BQ(e){let t,n,r,i,l,s=(0,o.c)(10);return s[0]!==e?({children:t,...n}=e,s[0]=e,s[1]=t,s[2]=n):(t=s[1],n=s[2]),s[3]!==n?(r=(0,a.jsx)(B2,{...n}),s[3]=n,s[4]=r):r=s[4],s[5]!==t?(i=(0,a.jsx)("div",{children:t}),s[5]=t,s[6]=i):i=s[6],s[7]!==r||s[8]!==i?(l=(0,a.jsx)(y.m_,{content:r,placement:"bottom",portal:!0,children:i}),s[7]=r,s[8]=i,s[9]=l):l=s[9],l}function B1(e){let t,n,r=(0,o.c)(5),{currentUserId:i,userIds:l}=e;r[0]===Symbol.for("react.memo_cache_sentinel")?(t={style:"long",type:"conjunction"},r[0]=t):t=r[0];let s=i5(t);if(0===l.length)return null;if(r[1]!==i||r[2]!==s||r[3]!==l){let e=s.formatToParts(l);n=[];for(let t=0;t<e.length;t++){let r=e[t];
3000if("literal"===r.type){n.push((0,a.jsx)(BW,{children:r.value},`literal-${t}`));continue}let o=e[t+1];if(o&&"literal"===o.type&&BG.test(o.value)){let[e]=o.value.match(BG)||[],l=void 0===e?"":e;n.push((0,a.jsxs)(BJ,{children:[(0,a.jsx)(BW,{weight:"medium",children:(0,a.jsx)(BX,{currentUserId:i,isFirst:0===t,userId:r.value})}),(0,a.jsx)(BW,{children:l})]},r.value)),o.value=o.value.slice(l.length);continue}n.push((0,a.jsx)(BW,{weight:"medium",children:(0,a.jsx)(BX,{currentUserId:i,isFirst:0===t,userId:r.value})},r.value))}r[1]=i,r[2]=s,r[3]=l,r[4]=n}else n=r[4];return n}function B2(e){let t,n,r,i,l,s,d,c=(0,o.c)(19),{currentUser:p,reactionName:m,userIds:h}=e,{t:f}=iJ(Ft);c[0]!==p||c[1]!==h?(t=()=>p?(0,a.jsx)(B1,{currentUserId:p.id,userIds:h}):null,c[0]=p,c[1]=h,c[2]=t):t=c[2];let g=t,C=BP[m];return c[3]!==C?(n=(0,a.jsx)(u.so,{justify:"center",paddingBottom:2,paddingTop:1,children:(0,a.jsx)(BY,{size:4,children:C})}),c[3]=C,c[4]=n):n=c[4],c[5]!==m?(r={reactionName:m},c[5]=m,c[6]=r):r=c[6],c[7]!==m?(i=()=>(0,a.jsx)(BW,{muted:!0,children:m}),c[7]=m,c[8]=i):i=c[8],c[9]!==g||c[10]!==i?(l={UserList:g,ReactionName:i,Text:B5},c[9]=g,c[10]=i,c[11]=l):l=c[11],c[12]!==f||c[13]!==r||c[14]!==l?(s=(0,a.jsx)(BK,{children:(0,a.jsx)(an,{t:f,i18nKey:"reactions.users-reacted-with-reaction",values:r,components:l})}),c[12]=f,c[13]=r,c[14]=l,c[15]=s):s=c[15],c[16]!==n||c[17]!==s?(d=(0,a.jsxs)(Bq,{padding:1,children:[n,s]}),c[16]=n,c[17]=s,c[18]=d):d=c[18],d}function B5(e){let{children:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(BW,{muted:!0,children:t})," ",(0,a.jsx)("wbr",{})," "]})}let B0=(0,g.I4)(u.Zp)`
3001  background: none;
3002`,B7=({open:e,tooltipContent:t})=>(0,a.jsx)(u.$n,{fontSize:1,mode:"ghost",padding:0,radius:"full",selected:e,children:(0,a.jsx)(u.so,{paddingX:3,paddingY:2,children:(0,a.jsx)(y.m_,{animate:!0,content:t,disabled:e,children:(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(FG,{})})})})}),B3=(0,s.memo)(function(e){let{currentUser:t,onSelect:n,reactions:r,readOnly:i,mode:o}=e,l=(0,s.useCallback)(e=>{let t=BM.find(t=>t.shortName===e);t&&n(t)},[n]),d=(0,s.useMemo)(()=>r.filter(e=>e.userId===t?.id).map(e=>e.shortName),[t?.id,r]),c=(0,s.useMemo)(()=>Object.entries(r.reduce((e,t)=>{let{shortName:n}=t;return e[n]||(e[n]=[]),e[n].push(t),e},{})).sort(([e],[t])=>r.findIndex(t=>t.shortName===e)-r.findIndex(e=>e.shortName===t)).filter(([e])=>BP[e]),[r]),[p,m]=(0,s.useState)(()=>({sortOrder:Object.keys(Object.fromEntries(c)),groupedReactions:[],sortedReactions:[]})),{sortedReactions:h}=p;if(p.groupedReactions!==c){let{sortOrder:e}=p;h=c.sort(([t],[n])=>{let r=e.indexOf(t),i=e.indexOf(n);return -1===r?1:-1===i?-1:r-i}),m({groupedReactions:c,sortOrder:h.map(([e])=>e),sortedReactions:h})}return(0,a.jsx)(u.so,{align:"center",gap:1,wrap:"wrap",children:(0,a.jsxs)(y.vE,{children:[h.map(([e,n])=>{let r=d.includes(e),s=n.map(e=>e.userId),c=BP[e];return(0,a.jsx)(BQ,{currentUser:t,reactionName:e,userIds:s,children:(0,a.jsx)(B0,{tone:"default",children:(0,a.jsx)(u.$n,{disabled:i||"upsell"===o,mode:"ghost",onClick:()=>l(e),padding:2,radius:"full",selected:r,tone:r?"primary":"default",children:(0,a.jsxs)(u.so,{align:"center",gap:1,children:[(0,a.jsx)(BY,{size:1,children:c}),(0,a.jsx)(u.EY,{size:0,weight:r?"semibold":"medium",children:n?.length})]})})})},e)}),(0,a.jsx)(B0,{tone:"default",children:(0,a.jsx)(BU,{mode:o,onSelect:e=>l(e.shortName),options:BM,readOnly:i,renderMenuButton:B7})})]})})});B3.displayName="Memo(CommentReactionsBar)";let B8=({open:e,tooltipContent:t,t:n})=>(0,a.jsx)(y.$n,{"aria-label":n("list-item.context-menu-add-reaction-aria-label"),icon:FG,mode:"bleed",selected:e,tooltipProps:{content:t}}),B4={placement:"bottom-end"},B6=(0,g.I4)(u.Zp)`
3003  &:empty {
3004    display: none;
3005  }
3006`;function B9(e){let t,n,r,i,l=(0,o.c)(29),{canDelete:s,canEdit:d,isParent:c,mode:p,onCopyLink:m,onDeleteStart:h,onEditStart:f,onMenuClose:g,onMenuOpen:x,onReactionSelect:b,onStatusChange:v,readOnly:j,status:w}=e,_=!!(m||h||f),{t:k}=iJ(Ft),S=!!(s||d||m);return l[0]!==p||l[1]!==g||l[2]!==x||l[3]!==b||l[4]!==j?(t=b&&(0,a.jsx)(BU,{mode:p,onMenuClose:g,onMenuOpen:x,onSelect:b,options:BM,readOnly:j,renderMenuButton:B8}),l[0]=p,l[1]=g,l[2]=x,l[3]=b,l[4]=j,l[5]=t):t=l[5],l[6]!==c||l[7]!==v||l[8]!==j||l[9]!==w||l[10
3006]!==k?(n=c&&v&&(0,a.jsx)(y.$n,{"aria-label":k("open"===w?"list-item.resolved-tooltip-aria-label":"list-item.re-open-resolved-aria-label"),"data-testid":"comments-list-item-status-button",disabled:j,icon:"open"===w?C.Dee:C.ejX,mode:"bleed",onClick:v,tooltipProps:{content:k("open"===w?"list-item.resolved-tooltip-content":"list-item.re-open-resolved")}}),l[6]=c,l[7]=v,l[8]=j,l[9]=w,l[10]=k,l[11]=n):n=l[11],l[12]!==s||l[13]!==d||l[14]!==S||l[15]!==p||l[16]!==m||l[17]!==h||l[18]!==f||l[19]!==g||l[20]!==x||l[21]!==j||l[22]!==_||l[23]!==k?(r=S&&(0,a.jsx)(y.IU,{id:"comment-actions-menu",button:(0,a.jsx)(rU,{"aria-label":k("list-item.open-menu-aria-label"),disabled:j,hidden:!_}),onOpen:x,onClose:g,menu:(0,a.jsxs)(u.W1,{children:[(0,a.jsx)(y.Dr,{hidden:!d,icon:C.qUP,onClick:f,text:k("list-item.edit-comment"),tooltipProps:"upsell"===p?{content:k("list-item.edit-comment-upsell")}:void 0,disabled:"upsell"===p}),(0,a.jsx)(y.Dr,{hidden:!s,icon:C.ucK,onClick:h,text:k("list-item.delete-comment"),tone:"critical"}),m&&(0,a.jsx)(u.Nj,{hidden:!s&&!d}),(0,a.jsx)(y.Dr,{hidden:!m,icon:C.qYV,onClick:m,text:k("list-item.copy-link")})]}),popover:B4}),l[12]=s,l[13]=d,l[14]=S,l[15]=p,l[16]=m,l[17]=h,l[18]=f,l[19]=g,l[20]=x,l[21]=j,l[22]=_,l[23]=k,l[24]=r):r=l[24],l[25]!==t||l[26]!==n||l[27]!==r?(i=(0,a.jsx)(y.vE,{children:(0,a.jsx)(u.so,{children:(0,a.jsxs)(B6,{display:"flex",shadow:2,padding:1,radius:2,sizing:"border",children:[t,n,r]})})}),l[25]=t,l[26]=n,l[27]=r,l[28]=i):i=l[28],i}let Ne=(0,g.I4)(u.az).attrs({marginLeft:1,marginRight:2})`
3007  &:not([data-hidden]) {
3008    display: inline;
3009  }
3010`,Nt=(0,g.I4)(u.BJ)(({theme:e,$hasReferencedValue:t})=>{let n=e.sanity.v2?.color._dark,r=t?Bz:"gray",i=n?v.OZ[r][700].hex:v.OZ[r][300].hex;return(0,g.AH)`
3011    border-left: 2px solid ${i};
3012    word-break: break-word;
3013  `});function Nn(e){let t,n,r,i,l,s=(0,o.c)(13),{hasReferencedValue:d,value:c}=e,{t:p}=iJ(Ft);s[0]!==p?(t=p("list-item.missing-referenced-value-tooltip-content"),s[0]=p,s[1]=t):t=s[1];let m=t;e:{if(Array.isArray(c)&&c?.filter(_.L4).length>0){let e;s[2]!==c?(e=function(e,t=250){return e.length<=t?e:`${e.slice(0,t)}...`}(c?.map(nf.bo).join(" ")),s[2]=c,s[3]=e):e=s[3],n=e;break e}n=null}let h=n;if(!h)return null;let f=!!d;return s[4]!==d||s[5]!==m?(r=!d&&(0,a.jsx)(y.m_,{content:m,children:(0,a.jsx)(Ne,{children:(0,a.jsx)(C.eTO,{})})}),s[4]=d,s[5]=m,s[6]=r):r=s[6],s[7]!==h||s[8]!==r?(i=(0,a.jsx)(u.so,{align:"flex-start",children:(0,a.jsxs)(u.EY,{size:1,muted:!0,children:[r,h]})}),s[7]=h,s[8]=r,s[9]=i):i=s[9],s[10]!==f||s[11]!==i?(l=(0,a.jsx)(Nt,{$hasReferencedValue:f,"data-testid":"comments-list-item-referenced-value",flex:1,forwardedAs:"blockquote",padding:1,paddingLeft:2,sizing:"border",children:i}),s[10]=f,s[11]=i,s[12]=l):l=s[12],l}let Nr=e=>e.stopPropagation(),Ni=(0,g.I4)(u.az)``,Na={width:"50%"},No=[],Nl=(0,g.I4)(u.EY)(({theme:e})=>{let t=e.sanity.color.dark,n=v.OZ.gray[t?200:800].hex;return(0,g.AH)`
3014    min-width: max-content;
3015    --card-fg-color: ${n};
3016    color: var(--card-fg-color);
3017  `}),Ns=(0,g.I4)(u.so)(e=>{let t=(0,tZ.JW)(e.theme);return(0,g.AH)`
3018    min-height: ${t.avatar.sizes[e.$size]?.size}px;
3019  `}),Nd=(0,g.I4)(u.EY)(({theme:e})=>{let t=e.sanity.color.dark,n=v.OZ.gray[t?200:800].hex;return(0,g.AH)`
3020    --card-fg-color: ${n};
3021    color: var(--card-fg-color);
3022  `}),Nc=(0,g.I4)(u.BJ)`
3023  transition: opacity 200ms ease;
3024
3025  &[data-muted='true'] {
3026    transition: unset;
3027    opacity: 0.5;
3028  }
3029`,Nu=(0,g.I4)(u.so)(e=>{let t=(0,tZ.JW)(e.theme);return(0,g.AH)`
3030    min-height: ${t.avatar.sizes[e.$size]?.size}px;
3031  `}),Np=(0,g.I4)(u.Zp)`
3032  // Add not on hover
3033  &:not(:hover) {
3034    background-color: transparent;
3035  }
3036`,Nm=(0,g.I4)(u.BJ)(({theme:e})=>{let{space:t}=e.sanity;return(0,g.AH)`
3037    position: relative;
3038
3039    // Only show the floating layer on hover when hover is supported.
3040    // Else, the layer is always visible.
3041    @media (hover: hover) {
3042      ${Ni} {
3043        opacity: 0;
3044        position: absolute;
3045        right: 0;
3046        top: 0;
3047        transform: translate(${t[1]}px, -${t[1]}px);
3048      }
3049
3050      ${Ni} {
3051        &:focus-within {
3052          opacity: 1;
3053        }
3054      }
3055
3056      &:hover {
3057        ${Ni} {
3058          opacity: 1;
3059        }
3060      }
3061    }
3062
3063    &[data-menu-open='true'] {
3064      ${Ni} {
3065        opacity: 1;
3066      }
3067    }
3068  `}),Nh={useTemporalPhrase:!0};function Nf(e){let{avatarSize:t=1,canDelete:n,canEdit:r,comment:i,currentUser:o,hasError:l,hasReferencedValue:d,intent:c,isParent:m,isRetrying:h,mentionOptions:f,mode:g,onCopyLink:C,onCreateRetry:y,onDelete:x,onEdit:b,onInputKeyDown:v,onReactionSelect:j,onStatusChange:w,readOnly:_,withAvatar:k=!0}=e,{_createdAt:S,authorId:T,message:I,_id:E,lastEditedAt:$}=i,[A]=Co(T),{t:D}
3068=iJ(Ft),[z,M]=(0,s.useState)(I),[P,R]=(0,s.useState)(!1),O=(0,s.useRef)(null),V=(0,s.useRef)(I),[L,F]=(0,s.useState)(!1),B=(0,s.useRef)(null),N=FB(z),Y=(0,s.useMemo)(()=>FN(z),[z]),H=(0,s.useMemo)(()=>(i?.reactions?.filter(e=>e?._optimisticState!=="removed")||No).filter(e=>"userId"in e&&"shortName"in e),[i?.reactions]),Z=!!H?.length,U=S?new Date(S):new Date,q=$?new Date($):null,J=ck(U,Nh),W=cO({dateStyle:"full",timeStyle:"medium"}),K=W.format(U),G=q?W.format(q):null,X=l||h;(0,s.useEffect)(()=>{P||(V.current=I,M(I))},[P,I]);let Q=(0,s.useCallback)(()=>F(!0),[]),ee=(0,s.useCallback)(()=>F(!1),[]),et=(0,s.useCallback)(()=>C?.(E),[E,C]),en=(0,s.useCallback)(e=>{e.stopPropagation(),y?.(E)},[E,y]),er=(0,s.useCallback)(()=>x(E),[E,x]),ei=(0,s.useCallback)(()=>{R(!1),M(V.current)},[]),ea=(0,s.useCallback)(()=>{if(!Y||!N)return void ei();B.current?.discardDialogController.open()},[ei,N,Y]),eo=(0,s.useCallback)(e=>{e.isDefaultPrevented()||("Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),ea()),v&&v(e))},[v,ea]),el=(0,s.useCallback)(()=>{B.current?.discardDialogController.close()},[]),es=(0,s.useCallback)(()=>{B.current?.discardDialogController.close(),ei()},[ei]),ed=(0,s.useCallback)(e=>{j?.(E,e)},[E,j]),ec=(0,s.useCallback)(()=>{b(E,{message:z}),R(!1)},[E,b,z]),eu=(0,s.useCallback)(()=>{w?.(E,"open"===i.status?"resolved":"open")},[E,i.status,w]),ep=(0,s.useCallback)(()=>{R(e=>!e)},[]),em=(0,s.useCallback)(()=>F(!1),[]),eh=(0,s.useCallback)(e=>{"Escape"!==e.key||N||ei()},[ei,N]);xZ(P,em),(0,u.PR)(!N&&ei,()=>[O.current]);let ef=A?.displayName?(0,a.jsx)(u.EY,{size:1,weight:"medium",textOverflow:"ellipsis",title:A.displayName,children:A.displayName}):(0,a.jsx)(p.r5,{size:1,style:Na});return(0,a.jsxs)(Nm,{"data-menu-open":L?"true":"false","data-testid":"comments-list-item-layout",onKeyDown:eh,ref:O,space:4,children:[(0,a.jsxs)(Nc,{space:1,"data-muted":X,children:[(0,a.jsxs)(Ns,{align:"center",gap:3,flex:1,$size:t,children:[k&&(0,a.jsx)(F5,{user:A,size:t}),(0,a.jsxs)(u.so,{direction:"column",gap:2,paddingY:2*!!c,children:[(0,a.jsx)(u.so,{align:"center",paddingBottom:+!i.context?.intent,sizing:"border",flex:1,children:(0,a.jsxs)(u.so,{align:"flex-end",gap:2,children:[(0,a.jsx)(u.az,{flex:1,children:ef}),!X&&(0,a.jsxs)(u.so,{align:"center",gap:1,children:[(0,a.jsx)(Nl,{muted:!0,size:0,children:(0,a.jsx)("time",{dateTime:U.toISOString(),title:K,children:J})}),G&&q&&(0,a.jsx)(Nl,{muted:!0,size:0,title:G,children:(0,a.jsxs)("time",{dateTime:q.toISOString(),title:G,children:["(",D("list-item.layout-edited"),")"]})})]})]})}),c&&(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(Nd,{muted:!0,size:0,textOverflow:"ellipsis",children:(0,a.jsx)(an,{t:D,i18nKey:"list-item.layout-context",values:{title:c.title,intent:"edit"},components:{IntentLink:({children:e})=>c?(0,a.jsx)(tq.RZ,{params:c.params,intent:c.name,children:e}):void 0}})})})]}),!P&&!X&&(0,a.jsx)(Ni,{"data-root-menu":m?"true":"false",onClick:Nr,children:(0,a.jsx)(B9,{canDelete:n,canEdit:r,isParent:m,mode:g,onCopyLink:C?et:void 0,onDeleteStart:er,onEditStart:ep,onMenuClose:ee,onMenuOpen:Q,onReactionSelect:ed,onStatusChange:w?eu:void 0,readOnly:_,status:i.status})})]}),FY(i)&&!!i?.contentSnapshot&&(0,a.jsxs)(u.so,{gap:3,marginBottom:3,children:[k&&(0,a.jsx)(F0,{$size:t}),(0,a.jsx)(Nn,{hasReferencedValue:d,value:i?.contentSnapshot})]}),P&&(0,a.jsxs)(u.so,{align:"flex-start",gap:2,children:[k&&(0,a.jsx)(F0,{$size:t}),(0,a.jsx)(u.BJ,{flex:1,children:(0,a.jsx)(BA,{currentUser:o,focusOnMount:!0,mentionOptions:f,onChange:M,onDiscardCancel:el,onDiscardConfirm:es,onKeyDown:eo,onSubmit:ec,readOnly:_,ref:B,value:z,withAvatar:!1})})]}),!P&&(0,a.jsxs)(u.so,{gap:3,children:[k&&(0,a.jsx)(F0,{$size:t}),(0,a.jsx)(BN,{blocks:I})]}),Z&&(0,a.jsxs)(u.so,{gap:3,marginTop:2,children:[k&&(0,a.jsx)(F0,{$size:t}),(0,a.jsx)(u.az,{onClick:Nr,children:(0,a.jsx)(B3,{currentUser:o,mode:g,onSelect:ed,reactions:H,readOnly:_})})]})]}),X&&(0,a.jsxs)(Nu,{gap:3,$size:t,children:[k&&(0,a.jsx)(F0,{$size:t}),(0,a.jsxs)(u.so,{align:"center",gap:1,flex:1,children:[(0,a.jsxs)(u.EY,{muted:!0,size:1,children:[l&&D("list-item.layout-failed-sent"),h&&D("list-item.layout-posting")]}),(0,a.jsx)(u.so,{hidden:h,children:(0,a.jsx)(Np,{__unstable_focusRing:!0,display:"flex",forwardedAs:"button",onClick:en,padding:1,radius:2,tone:"primary",children:(0,a.jsx)(u.EY,{size:1,muted:!0,children:D("list-item.layout-retry")})})})]})]})]})}let Ng=(0,g.I4)(u.Zp).attrs({padding:3,radius:3,sizing:"border"})(e=>{let{theme:t}=e,n=t.sanity.color.dark,r=v.OZ[Bz][n?900:50].hex,i=v.OZ.gray[n?900:50].hex;return(0,g.AH)`
3069      background-color: ${i};
3070
3071      &[data-active='true'] {
3072        background-color: ${r};
3073      }
3074    `}),NC=[],Ny={avatarSize:1,parentCommentAvatar:!0,replyAvatar:!0,threadCommentsAvatar:!0},Nx=(0,g.I4)(Ng)(()=>(0,g.AH)`
3075    position: relative;
3076
3077    &:has(> [data-ui='GhostButton']:focus:focus-visible) {
3078      box-shadow:
3079        inset 0 0 0 1px var(--card-border-color),
3080        0 0 0 1px var(--card-bg-color),
3081        0 0 0 2px var(--card-focus-ring-color);
3082    }
3083
3084    // The hover styles is managed with the [data-hovered] attribute instead of the :hover pseudo class
3085    // since we want to show the hover styles when hovering over the menu items in the context menu as well.
3086    // The context menu is rendered using a portal, so the :hover pseudo class won't work when hovering over
3087    // the menu items.
3088    &:not([data-active='true']) {
3089      @media (hover: hover) {
3090        &[data-hovered='true'] {
3091          [data-root-menu='true'] {
3092            opacity: 1;
3093          }
3094        }
3095      }
3096    }
3097  `),Nb=(0,g.I4)(y.$n)(({theme:e})=>{let{medium:t}
3097=e.sanity.fonts.text.weights;return(0,g.AH)`
3098    font-weight: ${t};
3099  `}),Nv=g.I4.button`
3100  opacity: 0;
3101  position: absolute;
3102  right: 0;
3103  top: 0;
3104  bottom: 0;
3105  left: 0;
3106`,Nj=(0,s.memo)(function(e){let{avatarConfig:t=Ny,canReply:n,currentUser:r,hasReferencedValue:i,innerPadding:o,isSelected:l,mentionOptions:d,mode:c,onCopyLink:p,onCreateRetry:m,onDelete:h,onEdit:f,onKeyDown:g,onPathSelect:y,onReactionSelect:x,onReply:b,onStatusChange:v,parentComment:j,readOnly:w,replies:_=NC}=e,{t:k}=iJ(Ft),[S,T]=(0,s.useState)(NC),[I,E]=(0,s.useState)(!0),[$,A]=(0,s.useState)(!1),D=(0,s.useRef)(null),{isTopLayer:z}=(0,u.Z4)(),M=(0,s.useMemo)(()=>FN(S),[S]),[P,R]=(0,s.useState)(!1),O=(0,s.useCallback)(()=>R(!0),[]),V=(0,s.useCallback)(()=>R(!1),[]),L=(0,s.useCallback)(()=>{let e={message:S,parentCommentId:j._id,status:j?.status||"open",threadId:j.threadId,reactions:NC,payload:{fieldPath:j.target.path?.field||""}};b?.(e),T(NC)},[b,j._id,j?.status,j.target.path?.field,j.threadId,S]),F=(0,s.useCallback)(()=>{if(!M)return void T(NC);D.current?.discardDialogController.open()},[M]),B=(0,s.useCallback)(e=>{e.isDefaultPrevented()||"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),F())},[F]),N=(0,s.useCallback)(()=>{D.current?.discardDialogController.close()},[]),Y=(0,s.useCallback)(()=>{T(NC),D.current?.discardDialogController.close(),D.current?.focus()},[]),H=(0,s.useCallback)(e=>{e.stopPropagation(),z&&y?.({fieldPath:j.target.path?.field||"",origin:"inspector",threadId:j.threadId})},[z,y,j.target.path?.field,j.threadId]),Z=(0,s.useCallback)(e=>{e.stopPropagation(),E(!1),A(!0)},[]),U=(0,s.useMemo)(()=>I?_?.slice(-5):_,[_,I]),q=(0,s.useMemo)(()=>!!_&&_.length>5,[_]),J=(0,s.useMemo)(()=>`${_?.length-5} more ${_?.length-5==1?"comment":"comments"}`,[_?.length]);(0,s.useEffect)(()=>{_.length>5&&!$&&E(!0)},[$,_]);let W=(0,s.useMemo)(()=>U.map(e=>(0,a.jsx)(u.BJ,{as:"li",...Yt(e._id),children:(0,a.jsx)(Nf,{avatarSize:t.avatarSize,canDelete:e.authorId===r.id,canEdit:e.authorId===r.id,comment:e,currentUser:r,hasError:e._state?.type==="createError",isRetrying:e._state?.type==="createRetrying",intent:function(e,t){let n=e?.context?.intent,r=t?.context?.intent;if(r&&(!n||"preview"in r.params&&"preview"in n.params&&r.params.preview!==n.params.preview))return r}(j,e),mentionOptions:d,mode:c,onCopyLink:p,onCreateRetry:m,onDelete:h,onEdit:f,onInputKeyDown:B,onReactionSelect:x,readOnly:w,withAvatar:t.threadCommentsAvatar})},e._id)),[t.threadCommentsAvatar,t.avatarSize,r,B,d,p,m,h,f,x,j,w,U,c]);return(0,a.jsxs)(Nx,{"data-active":l?"true":"false","data-hovered":P?"true":"false","data-testid":"comments-list-item","data-ui":"CommentsListItem",onClick:H,onMouseEnter:O,onMouseLeave:V,children:[(0,a.jsx)(Nv,{"data-ui":"GhostButton","aria-label":k("list-item.go-to-field-button.aria-label")}),(0,a.jsxs)(u.BJ,{as:"ul",padding:o,paddingBottom:n?void 0:1,space:4,children:[(0,a.jsx)(u.BJ,{as:"li",...Yt(j._id),children:(0,a.jsx)(Nf,{avatarSize:t.avatarSize,canDelete:j.authorId===r.id,canEdit:j.authorId===r.id,comment:j,currentUser:r,hasError:j._state?.type==="createError",hasReferencedValue:i,intent:j.context?.intent,isParent:!0,isRetrying:j._state?.type==="createRetrying",mentionOptions:d,mode:c,onCopyLink:p,onCreateRetry:m,onDelete:h,onEdit:f,onInputKeyDown:g,onReactionSelect:x,onStatusChange:v,readOnly:w,withAvatar:t.parentCommentAvatar})}),q&&!$&&(0,a.jsxs)(u.so,{gap:1,paddingY:1,sizing:"border",children:[(0,a.jsx)(F0,{}),(0,a.jsx)(Nb,{iconRight:C.D3D,mode:"bleed",onClick:Z,text:J})]}),W,n&&(0,a.jsx)(BA,{avatarSize:t.avatarSize,currentUser:r,expandOnFocus:!0,mentionOptions:d,onChange:T,onDiscardCancel:N,onDiscardConfirm:Y,onKeyDown:B,onSubmit:L,placeholder:k("upsell"===c?"compose.reply-placeholder-upsell":"compose.reply-placeholder"),readOnly:w||"upsell"===c,ref:D,value:S,withAvatar:t.replyAvatar})]})]})});function Nw(e){let t,n=(0,o.c)(17),{status:r,error:i,loading:l,hasNoComments:s}=e,{t:d}=iJ(Ft);n[0]!==d?(t={open:{title:d("list-status.empty-state-open-title"),message:d("list-status.empty-state-open-text")},resolved:{title:d("list-status.empty-state-resolved-title"),message:d("list-status.empty-state-resolved-text")}},n[0]=d,n[1]=t):t=n[1];let c=t;if(i){let e,t;return n[2]!==d?(e=d("list-status.error"),n[2]=d,n[3]=e):e=n[3],n[4]!==e?(t=(0,a.jsx)(u.so,{align:"center",justify:"center",flex:1,padding:4,children:(0,a.jsx)(u.so,{align:"center",children:(0,a.jsx)(u.EY,{size:1,muted:!0,children:e})})}),n[4]=e,n[5]=t):t=n[5],t}if(l){let e,t;return n[6]!==d?(e=d("list-status.loading"),n[6]=d,n[7]=e):e=n[7],n[8]!==e?(t=(0,a.jsx)(r5,{showText:!0,title:e}),n[8]=e,n[9]=t):t=n[9],t}if(s){let e,t,i,o=c[r];n[10]!==o.title?(e=(0,a.jsx)(u.EY,{align:"center",size:1,muted:!0,weight:"medium",children:o.title}),n[10]=o.title,n[11]=e):e=n[11];let l=c[r];return n[12]!==l.message?(t=(0,a.jsx)(u.EY,{align:"center",size:1,muted:!0,children:l.message}),n[12]=l.message,n[13]=t):t=n[13],n[14]!==e||n[15]!==t?(i=(0,a.jsx)(u.so,{align:"center",justify:"center",flex:1,sizing:"border",children:(0,a.jsx)(u.mc,{width:0,padding:4,children:(0,a.jsxs)(u.BJ,{space:3,children:[e,t]})})}),n[14]=e,n[15]=t,n[16]=i):i=n[16],i}return null}Nj.displayName="Memo(CommentsListItem)";let N_=[];function Nk(e){let t,n,r,i,l,d,c,u,p,m=(0,o.c)(26),{currentUser:h,fieldTitle:f,mentionOptions:g,mode:C,onBlur:y,onFocus:x,onKeyDown:b,onNewThreadCreate:v,readOnly:j}=e,{t:w}
3106=iJ(Ft),[_,k]=(0,s.useState)(N_),S=(0,s.useRef)(null);m[0]!==v||m[1]!==_?(t=()=>{v?.(_),k(N_)},m[0]=v,m[1]=_,m[2]=t):t=m[2];let T=t;m[3]!==_?(r=FN(_),m[3]=_,m[4]=r):r=m[4],n=r,m[5]!==n?(i=()=>{n&&S.current?.discardDialogController.open()},m[5]=n,m[6]=i):i=m[6];let I=i;m[7]!==b||m[8]!==I?(l=e=>{e.isDefaultPrevented()||("Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),I()),b&&b(e))},m[7]=b,m[8]=I,m[9]=l):l=m[9];let E=l;m[10]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{k(N_),S.current?.discardDialogController.close(),S.current?.focus()},m[10]=d):d=m[10];let $=d;m[11]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{S.current?.discardDialogController.close()},m[11]=c):c=m[11];let A=c;m[12]!==f||m[13]!==C||m[14]!==w?(u="upsell"===C?w("compose.add-comment-input-placeholder-upsell"):(0,a.jsx)(an,{t:w,i18nKey:"compose.add-comment-input-placeholder",values:{field:f}}),m[12]=f,m[13]=C,m[14]=w,m[15]=u):u=m[15];let D=u,z=j||"upsell"===C;return m[16]!==h||m[17]!==E||m[18]!==T||m[19]!==g||m[20]!==y||m[21]!==x||m[22]!==D||m[23]!==z||m[24]!==_?(p=(0,a.jsx)(BA,{currentUser:h,expandOnFocus:!0,mentionOptions:g,onBlur:y,onChange:k,onDiscardCancel:A,onDiscardConfirm:$,onKeyDown:E,onFocus:x,onSubmit:T,placeholder:D,readOnly:z,ref:S,value:_}),m[16]=h,m[17]=E,m[18]=T,m[19]=g,m[20]=y,m[21]=x,m[22]=D,m[23]=z,m[24]=_,m[25]=p):p=m[25],p}let NS=(0,g.I4)(u.so)`
3107  min-height: 25px;
3108`,NT=(0,g.I4)(u.$n)(({theme:e})=>{let t=e.sanity.color.base.fg;return(0,g.AH)`
3109    --card-fg-color: ${t};
3110
3111    // The width is needed to make the text ellipsis work
3112    // in the breadcrumbs component
3113    max-width: 100%;
3114  `});function NI(e){let{breadcrumbs:t,canCreateNewThread:n,children:r,currentUser:i,fieldPath:o,isSelected:l,mentionOptions:d,mode:c,onNewThreadCreate:p,onPathSelect:m,readOnly:h}=e,{t:f}=iJ(Ft),g=(0,s.useCallback)(e=>{let t={message:e,parentCommentId:void 0,status:"open",threadId:(0,nA.A)(),reactions:[],payload:{fieldPath:o}};p?.(t)},[p,o]),C=(0,s.useCallback)(e=>{e.stopPropagation(),m?.({fieldPath:o,origin:"inspector",threadId:null})},[o,m]),y=(0,s.useCallback)(e=>{e.stopPropagation(),0!==e.detail&&m?.({fieldPath:o,origin:"inspector",threadId:null})},[o,m]),x=(0,s.useMemo)(()=>t?.map(e=>e.title)||[],[t]),b=x[x.length-1];return(0,a.jsxs)(u.BJ,{space:2,children:[(0,a.jsx)(NS,{align:"center",gap:2,paddingRight:1,sizing:"border",children:(0,a.jsx)(u.BJ,{flex:1,children:(0,a.jsx)(u.so,{align:"center",children:(0,a.jsx)(NT,{"aria-label":f("list-item.breadcrumb-button-go-to-field-aria-label",{field:b}),mode:"bleed",onClick:C,padding:2,space:2,children:(0,a.jsx)(Fq,{maxLength:3,titlePath:x})})})})}),n&&(0,a.jsx)(Ng,{onClick:y,"data-active":l,children:(0,a.jsx)(Nk,{currentUser:i,fieldTitle:b,mentionOptions:d,mode:c,onNewThreadCreate:g,readOnly:h})}),(0,a.jsx)(u.BJ,{space:2,children:r})]})}let NE=(0,s.forwardRef)(function(e,t){let{beforeListNode:n,comments:r,currentUser:i,error:o,loading:l,mentionOptions:d,mode:c,onCopyLink:p,onCreateRetry:m,onDelete:h,onEdit:f,onNewThreadCreate:g,onPathSelect:C,onReactionSelect:y,onReply:x,onStatusChange:b,readOnly:v,selectedPath:j,status:w}=e,[_,k]=(0,s.useState)(null),S=(0,s.useMemo)(()=>Object.entries(r.reduce((e,t)=>{let n=t.fieldPath;return e[n]||(e[n]=[]),e[n].push(t),e},{})),[r]),T=!l&&!o&&S.length>0;return(0,a.jsxs)(u.so,{"data-testid":"comments-list",direction:"column",flex:1,height:"fill",overflow:"hidden",ref:k,sizing:"border",children:["upsell"!==c&&(0,a.jsx)(Nw,{error:o,hasNoComments:0===S.length,loading:l,status:w}),(T||n)&&(0,a.jsxs)(u.BJ,{as:"ul",flex:1,overflow:"auto",padding:3,paddingTop:1,paddingBottom:6,sizing:"border",space:1,ref:t,children:[n,(0,a.jsx)(u.EZ,{element:_,children:S?.map(([e,t])=>{let n=t[0].breadcrumbs,r=t[0].threadId,o=j?.fieldPath===e&&!j.threadId;return(0,a.jsx)(u.BJ,{as:"li",paddingTop:3,...{"data-comments-group-id":Ye(r)},children:(0,a.jsx)(NI,{breadcrumbs:n,canCreateNewThread:"open"===w,currentUser:i,fieldPath:e,isSelected:o,mentionOptions:d,mode:c,onNewThreadCreate:g,onPathSelect:C,readOnly:v,children:t.map(e=>{let t=e.replies.slice().reverse(),n="open"===w&&e.parentComment._state?.type!=="createError"&&e.parentComment._state?.type!=="createRetrying",r=j?.threadId===e.parentComment.threadId&&j?.fieldPath===e.parentComment.target.path?.field;return(0,a.jsx)(Nj,{canReply:n,currentUser:i,hasReferencedValue:e.hasReferencedValue,isSelected:r,mentionOptions:d,mode:c,onCopyLink:p,onCreateRetry:m,onDelete:h,onEdit:f,onPathSelect:C,onReactionSelect:y,onReply:x,onStatusChange:b,parentComment:e.parentComment,readOnly:v,replies:t},e.parentComment._id)})},e)},e)})})]})]})}),N$=(0,s.memo)(NE),NA=(0,g.I4)(u.az)`
3115  max-width: 280px;
3116`,ND=(0,g.i7)`
3117  from {
3118    opacity: 0;
3119  }
3120  to {
3121    opacity: 1;
3122  }
3123`,Nz=(0,g.I4)(y.AM)`
3124  opacity: 0;
3125  // Fade in the popover after 500ms
3126  animation: ${ND} 200ms 500ms forwards;
3127`;function NM(e){let t,n,r,i,l,s,d,c,p,m,h=(0,o.c)(23);h[0]!==e?({onDismiss:t,...n}=e,h[0]=e,h[1]=t,h[2]=n):(t=h[1],n=h[2]);let{t:f}=iJ(Ft);return h[3]!==f?(r=f("onboarding.header"),h[3]=f,h[4]=r):r=h[4],h[5]!==r?(i=(0,a.jsx)(u.EY,{weight:"medium",size:1,children:r}),h[5]=r,h[6]=i):i=h[6],h[7]!==f?(l=f("onboarding.body"),h[7]=f,h[8]=l):l=h[8],h[9]!==l?
3127(s=(0,a.jsx)(u.EY,{size:1,children:l}),h[9]=l,h[10]=s):s=h[10],h[11]!==f?(d=f("onboarding.dismiss"),h[11]=f,h[12]=d):d=h[12],h[13]!==t||h[14]!==d?(c=(0,a.jsx)(u.so,{justify:"flex-end",marginTop:2,children:(0,a.jsx)(y.$n,{text:d,tone:"primary",onClick:t})}),h[13]=t,h[14]=d,h[15]=c):c=h[15],h[16]!==i||h[17]!==s||h[18]!==c?(p=(0,a.jsx)(NA,{padding:4,children:(0,a.jsxs)(u.BJ,{space:3,children:[i,s,c]})}),h[16]=i,h[17]=s,h[18]=c,h[19]=p):p=h[19],h[20]!==n||h[21]!==p?(m=(0,a.jsx)(Nz,{content:p,open:!0,portal:!0,...n}),h[20]=n,h[21]=p,h[22]=m):m=h[22],m}let NP=g.I4.img(e=>{let{media:t}=(0,tZ.JW)(e.theme),n=(0,u.U1)(t,e.$direction,e=>({width:"row"===e?"50%":"100%",height:"row"===e?"auto":"180px"}));return(0,g.AH)`
3128    object-fit: cover;
3129    ${n}
3130  `}),NR=(0,g.I4)(u.az)`
3131  margin: auto 0;
3132`,NO=[3,3,5];function NV(e){let t,n,r,i,l,s,d,c,p,m=(0,o.c)(28),{data:h,onPrimaryClick:f,onSecondaryClick:g,layout:x}=e,b=void 0===x?"vertical":x,v="horizontal"===b?"row":"column";m[0]!==v?(t=["column","column",v],m[0]=v,m[1]=t):t=m[1];let j=t;m[2]!==h.image||m[3]!==j?(n=h.image&&(0,a.jsx)(NP,{src:h.image.asset.url,alt:h.image.asset.altText??"",$direction:j}),m[2]=h.image,m[3]=j,m[4]=n):n=m[4];let w="horizontal"===b?NO:3;return m[5]!==h.descriptionText?(r=(0,a.jsx)(u.BJ,{space:4,children:(0,a.jsx)(yb,{blocks:h.descriptionText})}),m[5]=h.descriptionText,m[6]=r):r=m[6],m[7]!==h.secondaryButton.text||m[8]!==h.secondaryButton.url||m[9]!==g?(i=h.secondaryButton.text&&(0,a.jsx)(y.$n,{mode:"bleed",text:h.secondaryButton.text,tone:"primary",iconRight:C.ZPM,...h.secondaryButton.url&&{target:"_blank",rel:"noopener noreferrer",as:"a",href:h.secondaryButton.url},onClick:g}),m[7]=h.secondaryButton.text,m[8]=h.secondaryButton.url,m[9]=g,m[10]=i):i=m[10],m[11]!==h.ctaButton.url?(l=h.ctaButton.url&&{target:"_blank",rel:"noopener noreferrer",as:"a",href:h.ctaButton.url},m[11]=h.ctaButton.url,m[12]=l):l=m[12],m[13]!==h.ctaButton.text||m[14]!==f||m[15]!==l?(s=(0,a.jsx)(y.$n,{text:h.ctaButton.text,tone:"primary",...l,onClick:f}),m[13]=h.ctaButton.text,m[14]=f,m[15]=l,m[16]=s):s=m[16],m[17]!==i||m[18]!==s?(d=(0,a.jsxs)(u.so,{gap:2,justify:"flex-end",marginTop:5,children:[i,s]}),m[17]=i,m[18]=s,m[19]=d):d=m[19],m[20]!==w||m[21]!==r||m[22]!==d?(c=(0,a.jsxs)(NR,{paddingX:3,paddingY:w,children:[r,d]}),m[20]=w,m[21]=r,m[22]=d,m[23]=c):c=m[23],m[24]!==j||m[25]!==c||m[26]!==n?(p=(0,a.jsx)(u.Zp,{radius:3,overflow:"hidden",border:!0,children:(0,a.jsxs)(u.so,{direction:j,gap:2,children:[n,c]})}),m[24]=j,m[25]=c,m[26]=n,m[27]=p):p=m[27],p}function NL(e){let t,n=(0,o.c)(4),{data:r,onPrimaryClick:i,onSecondaryClick:l}=e;return n[0]!==r||n[1]!==i||n[2]!==l?(t=(0,a.jsx)(u.mc,{width:1,children:(0,a.jsx)(u.az,{marginBottom:6,children:(0,a.jsx)(NV,{data:r,onPrimaryClick:i,onSecondaryClick:l})})}),n[0]=r,n[1]=i,n[2]=l,n[3]=t):t=n[3],t}function NF(e,t){let n=(0,n_.iU)(e,t),r=(0,n_.sw)(n),i=function(e){let t=0,n=0,r=0;for(let i=0;i<e.length;i++){let a=e[i][0],o=e[i][1];switch(a){case n_.Ug:n+=o.length;break;case n_.Cm:r+=o.length;break;case n_.lw:t+=Math.max(n,r),n=0,r=0}}return t+Math.max(n,r)}(r);return{patches:(0,n_.jW)(e,r,{margin:15}),levenshtein:i}}let NB=["",""],NN=RegExp(`[${NB.join("")}]`,"g"),NY=[];function NH(e){let{value:t,comments:n}=e;if(!t||0===t.length)return NY;let r=n.filter(FY),i=[];return r.forEach(e=>{e.target.path?.selection?.value.forEach(n=>{let r=t.find(e=>e._key===n._key);if(!r||!(0,_.L4)(r))return;let a=n.text.replaceAll(NN,""),o=r.children.map(e=>(0,_.bn)(e)?e.text.replaceAll(""," "):"").join(""),{patches:l}=NF(a,n.text),s=(0,n_.$i)(l,o,{allowExceedingIndices:!0,margin:15})[0],d=s.indexOf(NB[0]),c=s.replaceAll(NB[0],"").indexOf(NB[1]),u=s.replaceAll(NN,""),p=n.text.slice(n.text.indexOf(NB[0])+1,n.text.indexOf(NB[1])),m=u.slice(d,c),{levenshtein:h}=NF(m,p),f=Math.round(m.length+p.length/2),g=!1;if(0===m.length&&(g=!0),h>f&&(g=!0),d+1===c&&(g=!0),-1!==d&&-1!==c){let t=0,n=0,a=0,o=0;for(let e=0;e<u.length&&(""===u[e]&&(e<=d&&(n=-1,t++),o=-1,a++),e<d&&n++,e<d+m.length&&o++,e!==d+m.length);e++);i.push({selection:{anchor:{path:[{_key:r._key},"children",{_key:r.children[t]._key}],offset:n},focus:{path:[{_key:r._key},"children",{_key:r.children[a]._key}],offset:o}},comment:e,range:{_key:r._key,text:g?"":s}})}})}),0===i.length?NY:i}let NZ=(0,s.memo)(function(e){let t,n,r,i,l,d,c,u=(0,o.c)(20),{children:p,commentId:m,currentHoveredCommentId:h,onClick:f,onHoverEnd:g,onHoverStart:C,selectedThreadId:y,threadId:x}
3132=e,b=(0,s.useRef)(null),[v,j]=(0,s.useState)(!1),[w,_]=(0,s.useState)(null);u[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{let e=b.current?.previousSibling,t=b.current?.nextSibling;if(!e||!t)return void j(!1);let[n]=Object.keys(Yn("")),r=e.getAttribute(n),i=t.getAttribute(n),a=!!(r&&i&&r===i);_(a?r:null),j(a)},n=[],u[0]=t,u[1]=n):(t=u[0],n=u[1]),(0,s.useEffect)(t,n),u[2]!==m||u[3]!==C?(r=()=>C(m),u[2]=m,u[3]=C,u[4]=r):r=u[4];let k=r;u[5]!==g?(i=()=>g(null),u[5]=g,u[6]=i):i=u[6];let S=i;u[7]!==m||u[8]!==f?(l=()=>f(m),u[7]=m,u[8]=f,u[9]=l):l=u[9];let T=l,I=h===m||h===w&&v||y===x;return u[10]!==x?(d=Yn(x),u[10]=x,u[11]=d):d=u[11],u[12]!==p||u[13]!==T||u[14]!==k||u[15]!==S||u[16]!==v||u[17]!==I||u[18]!==d?(c=(0,a.jsx)(BO,{isAdded:!0,isHovered:I,isNested:v,onClick:T,onMouseEnter:k,onMouseLeave:S,ref:b,...d,children:p}),u[12]=p,u[13]=T,u[14]=k,u[15]=S,u[16]=v,u[17]=I,u[18]=d,u[19]=c):c=u[19],c});NZ.displayName="Memo(CommentRangeDecoration)";let NU=/\b(https?:\/\/[^\s,()]+(?:\.[^\s,()]+)*|www\.[^\s,()]+\.[^\s,()]{2,})\b/g;function Nq(e){e.stopPropagation()}let NJ=[e=>"string"==typeof e?e.split(NU).flatMap(e=>e.match(NU)?function(e){let t=e.startsWith("http")?e:`https://${e}`;return(0,a.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",onClick:Nq,children:e},e)}(e):e):e];async function NW(e){let t,{activeTool:n,client:r,comment:i,currentUser:a,dataset:o,documentId:l,documentRevisionId:s,documentType:d,documentVersionId:c,getIntent:u,getNotificationValue:p,getThreadLength:m,onCreate:h,onCreateError:f,projectId:g,createAddonDataset:C,workspace:y}=e,x=i?.id||(0,nA.A)(),b=a.id,v=(m?.(i.threadId)||0)+1;if("task"===i.type&&(t={_id:x,_type:"comment",authorId:b,message:i.message,lastEditedAt:void 0,parentCommentId:i.parentCommentId,status:i.status,threadId:i.threadId,reactions:i.reactions,context:{payload:{workspace:y},notification:i.context.notification,tool:n?.name||""},target:{document:{_ref:l,_type:"reference",_weak:!0},documentVersionId:c,documentType:d}}),"field"===i.type){let{documentTitle:e="",url:r="",workspaceTitle:a=""}=p({commentId:x})||{},m=u?.({id:l,type:d,path:i.fieldPath}),h=function e(t){if(t&&"object"==typeof t&&t.hasOwnProperty("_ref"))return{...t,_weak:!0};if(Array.isArray(t))return t.map(t=>e(t));if(t&&"object"==typeof t){let n={};return Object.keys(t).forEach(r=>{let i=t[r];"object"==typeof i&&null!==i?n[r]=e(i):n[r]=i}),n}return t}(i.contentSnapshot);t={_id:x,_type:"comment",authorId:b,message:i.message,lastEditedAt:void 0,parentCommentId:i.parentCommentId,status:i.status,threadId:i.threadId,reactions:i.reactions,context:{payload:{workspace:y},intent:m,notification:{currentThreadLength:v,documentTitle:e,url:r,workspaceTitle:a},tool:n?.name||""},contentSnapshot:h,target:{documentRevisionId:s||"",path:{field:i.fieldPath,selection:i.selection},document:{_dataset:o,_projectId:g,_ref:l,_type:"crossDatasetReference",_weak:!0},documentType:d,documentVersionId:c}}}if(t){if(h?.(t),!r){try{let e=await C();if(!e)throw Error("Failed to create addon dataset client");await e.create(t)}catch(e){throw f?.(t._id,e),e}return}try{await r.create(t)}catch(e){throw f?.(t._id,e),e}}}async function NK(e){var t,n;let{client:r,currentUser:i,id:a,reaction:o,getComment:l,onUpdate:s}=e,d=l?.(a)?.reactions||[],c=d.filter(e=>e.userId===i.id),u=(t=i.id,n=o.shortName,`${t}-${n}`),p=c.find(e=>e._key===u&&"removed"!==e._optimisticState);if(p){let e=d.map(e=>e._key===p._key?{...e,_optimisticState:"removed"}:e);s?.(a,{reactions:e}),await r.patch(a).unset([`reactions[_key=="${u}"]`]).commit();return}if(!p){let e={_key:u,addedAt:new Date().toISOString(),shortName:o.shortName,userId:i.id},t={...e,_optimisticState:"added"},n=d.concat(t).filter(t=>t._key!==e._key||"removed"!==t._optimisticState);s?.(a,{reactions:n}),await r.patch(a).setIfMissing({reactions:[]}).append("reactions",[e]).commit()}}async function NG(e){let{client:t,id:n,onRemove:r}=e;r?.(n),await Promise.all([t.delete({query:`*[_type == "comment" && parentCommentId == "${n}"]`}),t.delete(n)])}let NX={trailing:!0,leading:!1},NQ=new Map;async function N1(e){let{client:t,id:n,comment:r,transactionId:i,onUpdate:a}=e,o=i||(0,nA.A)(),l=t?.patch(n).set(r),s=t.transaction().transactionId(o).patch(l);a?.(n,r),r.status?(await s.commit(),await t.patch({query:`*[_type == "comment" && parentCommentId == "${n}"]`}).set({status:r.status}).commit()):await s.commit(),NQ.delete(n)}async function N2(e){let{id:t,comment:n,throttled:r}=e,i="message"in n,a={...n,lastEditedAt:new Date().toISOString()},o=i?a:n;if(!r)return void await N1({...e,comment:o});await (function(e){if(!NQ.has(e)){let t=f(N1,1e3,NX);return NQ.set(e,t),t}return NQ.get(e)})(t)({...e,comment:o})}function N5(e){return"string"==typeof e.tool?e.tool:void 0}function N0(){let e=(0,s.useContext)(c.eP);
3132if(!e)throw Error("useComments must be used within a CommentsProvider");return e}function N7(){return(0,s.useContext)(c.pn)}let N3={behavior:"smooth",inline:"center",scrollMode:"if-needed"},N8={...N3,block:"start"},N4={...N3,block:"center"},N6={...N3,block:"center"},N9={comment:{...N3,block:"center"},field:N6,group:N8,"inline-comment":N4};function Ye(e){return e.replace(/[[\]_"_=.]/g,"")}function Yt(e){return{"data-comments-comment-id":Ye(e)}}function Yn(e){return{"data-comments-inline-comment-id":Ye(e)}}function Yr(e){let t,n,r,i,a,l,d,c,u,p,m=(0,o.c)(14);m[0]!==e?(t=e||{},m[0]=e,m[1]=t):t=m[1];let{boundaryElement:h}=t,[f,g]=(0,s.useState)(null),C=N9[f?.type||"comment"];m[2]!==h||m[3]!==C?(r={...C,boundary:h},m[2]=h,m[3]=C,m[4]=r):r=m[4],n=r,m[5]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{g({type:"comment",id:e})},m[5]=i):i=m[5];let y=i;m[6]===Symbol.for("react.memo_cache_sentinel")?(a=e=>{g({type:"group",id:e})},m[6]=a):a=m[6];let x=a;m[7]===Symbol.for("react.memo_cache_sentinel")?(l=e=>{g({type:"field",id:e})},m[7]=l):l=m[7];let b=l;m[8]===Symbol.for("react.memo_cache_sentinel")?(d=e=>{g({type:"inline-comment",id:e})},m[8]=d):d=m[8];let v=d;return m[9]!==n||m[10]!==f?(c=()=>{let e=requestAnimationFrame(()=>{if(!f)return;let{type:e,id:t}=f,r=document?.querySelector(`[data-comments-${e}-id="${Ye(t)}"]`);r&&(0,nk.A)(r,n)});return()=>{cancelAnimationFrame(e)}},u=[n,f],m[9]=n,m[10]=f,m[11]=c,m[12]=u):(c=m[11],u=m[12]),(0,s.useEffect)(c,u),m[13]===Symbol.for("react.memo_cache_sentinel")?(p={scrollToComment:y,scrollToField:b,scrollToGroup:x,scrollToInlineComment:v},m[13]=p):p=m[13],p}function Yi(){let e=(0,s.useContext)(c.AR);if(!e)throw Error("useCommentsSelectedPath: missing context value");return e}let Ya=(0,eQ.g_)({name:"Comment Link Copied",version:1,description:"The link to a comment is copied"}),Yo=(0,eQ.g_)({name:"Comment Viewed From Link",version:1,description:"A comment is viewed from a link"}),Yl=(0,eQ.g_)({name:"Comment List View Changed",version:1,description:"The view of the comment list is changed"});function Ys(){let e=(0,o.c)(1),t=(0,s.useContext)(c.F8);if(!t){let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={upsellData:null,handleOpenDialog:Yf,upsellDialogOpen:!1,telemetryLogs:{dialogSecondaryClicked:Yh,dialogPrimaryClicked:Ym,panelViewed:Yp,panelDismissed:Yu,panelPrimaryClicked:Yc,panelSecondaryClicked:Yd}},e[0]=t):t=e[0],t}return t}function Yd(){return null}function Yc(){return null}function Yu(){return null}function Yp(){return null}function Ym(){return null}function Yh(){return null}function Yf(){return null}function Yg(e,t){switch(t.type){case"COMMENTS_SET":{let n=t.comments.reduce((e,t)=>({...e,[t._id]:t}),{});return{...e,comments:n}}case"COMMENT_ADDED":{let n=t.payload,r={[n._id]:{...e.comments[n._id],...n,_state:n._state||void 0,_createdAt:n._createdAt||new Date().toISOString()}};return{...e,comments:{...e.comments,...r}}}case"COMMENT_RECEIVED":{let n=t.payload;return{...e,comments:{...e.comments,[n._id]:n}}}case"COMMENT_DELETED":{let{[t.id]:n,...r}=e.comments;return Object.keys(r).forEach(e=>{r[e].parentCommentId===t.id&&delete r[e]}),{...e,comments:r}}case"COMMENT_UPDATED":{let n=t.payload,r=n._id,i=e.comments[r],a=function(e,t){let n={};for(let t of e)n[t._key]={...t};for(let e of t)n[e._key]={...n[e._key],...e};return Object.values(n)}(i?.reactions?.filter(e=>e?._optimisticState)||[],n.reactions||[]),o={...i,...n,reactions:a};return{...e,comments:{...e.comments,[r]:o}}}default:return e}}let YC={comments:{}},Yy={events:["welcome","mutation","reconnect"],includeResult:!0,includeAllVersions:!0,visibility:"query",tag:"comments-store"},Yx=['_type == "comment"',"target.document._ref == $documentId"],Yb=`{
3133  _createdAt,
3134  _id,
3135  authorId,
3136  contentSnapshot,
3137  context,
3138  lastEditedAt,
3139  message,
3140  parentCommentId,
3141  reactions,
3142  status,
3143  target,
3144  threadId
3145}`,Yv=[],Yj={open:Yv,resolved:Yv},Yw=(0,s.memo)(function(e){let{children:t,documentId:n,documentType:r,isCommentsOpen:i,onCommentsOpen:d,sortOrder:u,type:p,getCommentLink:m,onClearSelectedComment:h,selectedCommentId:f,isConnecting:g,onPathOpen:C,releaseId:y,mentionsDisabled:x}
3145=e,b=N7(),[v,j]=(0,s.useState)("open"),{client:w,createAddonDataset:S,isCreatingDataset:T}=Ks(),I=ib(n),E=F$(I,r,"low",y),$=Cm().get(r),A=Cl(),{name:D,dataset:z,projectId:P}=lE(),R=(0,s.useMemo)(()=>y?E.version:E.draft||E.published,[E.version,E.draft,E.published,y]),O=(0,s.useMemo)(()=>R?._rev,[R]),V=(0,s.useMemo)(()=>new Map,[]),L=(0,s.useCallback)(e=>{V.delete(e)},[V]),{dispatch:F,data:B=Yv,error:N,loading:Y}=function(e){let{client:t,documentId:n,onLatestTransactionIdReceived:r,transactionsIdMap:i,releaseId:a}=e,o=[...Yx,a?"target.documentVersionId==$documentVersionId":"!defined(target.documentVersionId)"].join(" && "),l=(0,s.useMemo)(()=>`*[${o}] ${Yb} | order(_createdAt desc)`,[o]),[d,c]=(0,s.useReducer)(Yg,YC),[u,p]=(0,s.useState)(null!==t),[m,h]=(0,s.useState)(null),f=(0,s.useRef)(!1),g=(0,s.useMemo)(()=>({documentId:ib(n),...a?{documentVersionId:a}:{}}),[n,a]),C=(0,s.useCallback)(async()=>{if(!t)return void p(!1);try{let e=await t.fetch(l,g);c({type:"COMMENTS_SET",comments:e}),p(!1)}catch(e){h(e)}},[t,g,l]),y=(0,s.useCallback)(async e=>{if("welcome"!==e.type||f.current||(p(!0),await C(),p(!1),f.current=!0),"reconnect"===e.type&&(p(!0),f.current=!1),"mutation"===e.type){if("appear"===e.transition){let t=e.result;t&&c({type:"COMMENT_RECEIVED",payload:t})}if("disappear"===e.transition&&c({type:"COMMENT_DELETED",id:e.documentId}),"update"===e.transition){let t=e.result,n=e.result?._id||"",a=e.transactionId,o=i.get(n),l=a===o;if(!l&&o)return;t&&(c({type:"COMMENT_UPDATED",payload:t}),l&&r(n))}}},[C,r,i]),x=(0,s.useMemo)(()=>t?t.observable.listen(`*[${o}]`,g,Yy).pipe((0,M.W)(e=>(h(e),(0,k.of)(e)))):(0,k.of)(),[t,o,g]);return(0,s.useEffect)(()=>{let e=x.subscribe(y);return()=>{e?.unsubscribe()}},[y,x]),{data:(0,s.useMemo)(()=>Object.values(d.comments),[d.comments]),dispatch:c,error:m,loading:u}}({documentId:n,releaseId:y,client:w,transactionsIdMap:V,onLatestTransactionIdReceived:L}),H=(0,s.useCallback)((e,t)=>{V.set(e,t)},[V]),Z=(0,s.useCallback)(e=>"upsell"===b.mode&&"resolved"===e?null:j(e),[j,b]),U=etc((0,s.useMemo)(()=>({documentValue:R,permission:"read"}),[R])),q=(0,s.useMemo)(()=>{if(!$||!A)return Yj;let e=function(e){let{comments:t,currentUser:n,documentValue:r,schemaType:i,type:a}=e,o=t?.filter(e=>!e.parentCommentId);return"task"===a?o.map(e=>{let n=t?.filter(t=>t.parentCommentId===e._id);return{commentsCount:[e,...n].length,parentComment:e,replies:n,threadId:e.threadId,hasReferencedValue:!1,breadcrumbs:FH,fieldPath:""}}):"field"===a?o.map(e=>{let a=function(e){let{currentUser:t,schemaType:n,fieldPath:r,documentValue:i}=e,a=l.sH(r),o=[],s=n;return a.forEach((e,n)=>{let r=a.slice(0,n+1),d=a.slice(0,n),c=function e(t,n){let r=l.sH(n),i=r[0];if(i&&(0,_.$d)(t)){let n=t?.fields?.find(e=>e.name===i);if(n){let t=l.dI(r.slice(1));return t?e(n.type,t):n}}}(s,l.dI([e])),u=e.hasOwnProperty("_key"),p=aN(i,d),m=aN(i,r),h={document:i,currentUser:t,parent:p,value:m};if(u&&Array.isArray(p)){let t=function(e,t){if("number"==typeof t)return t;let n=ry(e,t);return -1!==n&&n}(p,e);o.push({invalid:!1===t,isArrayItem:!0,title:"number"==typeof t?`#${Number(t)+1}`:"Unknown array item"});return}if(c?.type){let e=Fr(c.type.hidden,h);o.push({invalid:e,isArrayItem:!1,title:wg(c.type)}),s=c.type;return}if((0,_.zR)(s)){let t=aN(i,d)?._type,n=s?.of?.find(e=>e.name===t),r=n?.fields?.find(t=>t.name===e);if(!t&&m){let t=s?.of?.map(e=>e?.fields).filter(Boolean).flat()?.find(t=>t?.name===e),n=Fr(t?.type?.hidden,h);t&&(o.push({invalid:n,isArrayItem:!1,title:wg(t?.type)}),s=t?.type);return}if(!r)return void o.push({invalid:!0,isArrayItem:!1,title:"Unknown field"});let a=wg(r?.type),l=Fr(n?.type?.hidden,h),c=Fr(r?.type.hidden,h);return o.push({invalid:l||c,isArrayItem:!1,title:a}),void(s=r?.type)}o.push({invalid:!0,isArrayItem:!1,title:"Unknown field"})}),o}({currentUser:n,documentValue:r,fieldPath:e.target.path?.field||"",schemaType:i}),o=!1;if(FY(e)&&(o=!!(e.target.path?.selection&&e.target.path.selection.value.some(e=>e.text))),a.some(e=>e.invalid))return;let s=t?.filter(t=>t.parentCommentId===e._id),d=o;return{breadcrumbs:a,commentsCount:[e,...s].length,fieldPath:e.target.path?.field||"",parentComment:e,replies:s,threadId:e.threadId,hasReferencedValue:d}}
3145).filter(Boolean):FH}({comments:t2(B,["_createdAt"],[u]),currentUser:A,documentValue:R,schemaType:$,type:p});return{open:e.filter(e=>"open"===e.parentComment.status),resolved:e.filter(e=>"resolved"===e.parentComment.status)}},[A,B,R,$,u,p]),J=(0,s.useCallback)(e=>q.open.filter(t=>t.threadId===e).length,[q.open]),W=(0,s.useCallback)(e=>B?.find(t=>t._id===e),[B]),K=(0,s.useCallback)(e=>{let t=B?.find(t=>t._id===e._id)?._state?.type==="createError";F({type:"COMMENT_ADDED",payload:{...e,_state:t?{type:"createRetrying"}:void 0}})},[B,F]),G=(0,s.useCallback)((e,t)=>{F({type:"COMMENT_UPDATED",payload:{_id:e,...t}})},[F]),X=(0,s.useCallback)((e,t)=>{F({type:"COMMENT_UPDATED",payload:{_id:e,_state:{error:t,type:"createError"}}})},[F]),{operation:Q}=function(e){let t,n,r,i,a,l,d,u,p,m=(0,o.c)(46),{client:h,currentUser:f,dataset:g,documentId:C,documentRevisionId:y,documentType:x,documentVersionId:b,getComment:v,getThreadLength:j,onCreate:w,onCreateError:_,onRemove:S,onTransactionStart:T,onUpdate:I,projectId:E,createAddonDataset:$,workspace:A,getCommentLink:D}=e,z=(0,s.useContext)(c.io),M=(0,tq.ks)(N5),P=co().tools;if(m[0]!==M||m[1]!==P){let e;m[3]!==M?(e=e=>
3145e.name===M,m[3]=M,m[4]=e):e=m[4],n=P.find(e),m[0]=M,m[1]=P,m[2]=n}else n=m[2];t=n,m[5]!==C||m[6]!==x||m[7]!==b||m[8]!==D?(r={documentId:C,documentType:x,getCommentLink:D,documentVersionId:b},m[5]=C,m[6]=x,m[7]=b,m[8]=D,m[9]=r):r=m[9];let{getNotificationValue:R}=function(e){let{documentId:t,documentType:n,getCommentLink:r,documentVersionId:i}=e||{},a=Cm().get(n),{title:o}=lE(),l=z4(),d=(0,s.useMemo)(()=>t&&a?D4(l,a,t,i?[i,"drafts"]:["drafts"]):(0,k.of)(null),[t,l,a,i]),{snapshot:c,original:u}=(0,eH.J)(d)||{},p=c?.title||u?.title||"Sanity document";return{getNotificationValue:(0,s.useCallback)(({commentId:e})=>({documentTitle:p,url:r?.(e),workspaceTitle:o}),[p,r,o])}}(r);m[10]!==t||m[11]!==h||m[12]!==$||m[13]!==f||m[14]!==g||m[15]!==C||m[16]!==y||m[17]!==x||m[18]!==b||m[19]!==z||m[20]!==R||m[21]!==j||m[22]!==w||m[23]!==_||m[24]!==E||m[25]!==A?(i=async e=>{f?.id&&await NW({activeTool:t,client:h,comment:e,currentUser:f,dataset:g,documentId:C,documentRevisionId:y,documentType:x,documentVersionId:b,getIntent:z,getNotificationValue:R,getThreadLength:j,onCreate:w,onCreateError:_,projectId:E,createAddonDataset:$,workspace:A})},m[10]=t,m[11]=h,m[12]=$,m[13]=f,m[14]=g,m[15]=C,m[16]=y,m[17]=x,m[18]=b,m[19]=z,m[20]=R,m[21]=j,m[22]=w,m[23]=_,m[24]=E,m[25]=A,m[26]=i):i=m[26];let O=i;m[27]!==h||m[28]!==S?(a=async e=>{h&&await NG({client:h,id:e,onRemove:S})},m[27]=h,m[28]=S,m[29]=a):a=m[29];let V=a;m[30]!==h||m[31]!==T||m[32]!==I?(l=async(e,t,n)=>{if(!h)return;let{throttled:r}=n||{},i=(0,nA.A)();T(e,i),await N2({client:h,comment:t,throttled:r,id:e,onUpdate:I,transactionId:i})},m[30]=h,m[31]=T,m[32]=I,m[33]=l):l=m[33];let L=l;m[34]!==h||m[35]!==f||m[36]!==v||m[37]!==I?(d=async(e,t)=>{h&&f?.id&&await NK({client:h,currentUser:f,id:e,reaction:t,getComment:v,onUpdate:I})},m[34]=h,m[35]=f,m[36]=v,m[37]=I,m[38]=d):d=m[38];let F=d;m[39]!==O||m[40]!==F||m[41]!==V||m[42]!==L?(u={create:O,react:F,remove:V,update:L},m[39]=O,m[40]=F,m[41]=V,m[42]=L,m[43]=u):u=m[43];let B=u;return m[44]!==B?(p={operation:B},m[44]=B,m[45]=p):p=m[45],p}((0,s.useMemo)(()=>({client:w,currentUser:A,dataset:z,documentId:I,documentVersionId:y,documentRevisionId:O,documentType:r,getComment:W,getThreadLength:J,projectId:P,schemaType:$,workspace:D,createAddonDataset:S,onCreate:K,onCreateError:X,onUpdate:G,onTransactionStart:H,getCommentLink:m}),[w,A,z,I,y,O,r,W,J,P,$,D,S,K,X,G,H,m])),ee=(0,s.useMemo)(()=>({documentId:n,documentType:r,isCreatingDataset:T,status:v,setStatus:Z,getComment:W,getCommentLink:m,onClearSelectedComment:h,selectedCommentId:f,isCommentsOpen:i,onCommentsOpen:d,isConnecting:g,onPathOpen:C,comments:{data:q,error:N,loading:Y||T||g||!1},operation:{create:Q.create,react:Q.react,remove:Q.remove,update:Q.update},mentionOptions:{...U,disabled:x}}),[n,r,T,v,Z,W,m,h,f,i,d,g,C,q,N,Y,Q.create,Q.react,Q.remove,Q.update,U,x]);return(0,a.jsx)(c.eP.Provider,{value:ee,children:t})}),Y_=(0,s.memo)(function(e){let t,n=(0,o.c)(3),{children:r,documentId:i,documentType:l}=e,s=function(e,t){let n,r,i=(0,o.c)(3),{enabled:a,isLoading:l,error:s}=ug("studioComments"),{enabled:d}=co().document.comments;n=d({documentType:t,documentId:ib(e)});e:{let e;if(l||!n||s){let e;i[0]===Symbol.for("react.memo_cache_sentinel")?(e={enabled:!1,mode:null},i[0]=e):e=i[0],r=e;break e}let t=a?"default":"upsell";i[1]!==t?(e={enabled:!0,mode:t},i[1]=t,i[2]=e):e=i[2],r=e}return r}(i,l);return n[0]!==r||n[1]!==s?(t=(0,a.jsx)(c.pn.Provider,{value:s,children:r}),n[0]=r,n[1]=s,n[2]=t):t=n[2],t}),Yk=((0,s.memo)(function(e){let t,n=(0,o.c)(3),{children:r,getIntent:i}=e;return n[0]!==r||n[1]!==i?(t=(0,a.jsx)(c.io.Provider,{value:i,children:r}),n[0]=r,n[1]=i,n[2]=t):t=n[2],t}),"sanityStudio:comments:inspector:onboarding:dismissed:v1");function YS(e){let t,n,r,i,l,d=(0,o.c)(7),{children:u}=e;d[0]===Symbol.for("react.memo_cache_sentinel")?(t=(()=>{try{let e=window.localStorage.getItem(Yk);return!!e&&JSON.parse(e)}catch{return!1}})(),d[0]=t):t=d[0];let[p,m]=(0,s.useState)(t);d[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{m(!0),(e=>{try{window.localStorage.setItem(Yk,JSON.stringify(e))}catch{}})(!0)},d[1]=n):n=d[1];let h=n;return d[2]!==p?(i={setDismissed:h,isDismissed:p},d[2]=p,d[3]=i):i=d[3],r=i,d[4]!==u||d[5]!==r?(l=(0,a.jsx)(c.lG.Provider,{value:r,children:u}),d[4]=u,d[5]=r,d[6]=l):l=d[6],l}let YT=(0,s.memo)(function(e){let t,n,r,i,l=(0,o.c)(8),{children:d}
3145=e,[u,p]=(0,s.useState)(null);l[0]!==u?(t=e=>{eN(u,e)||p(e)},l[0]=u,l[1]=t):t=l[1];let m=t;return l[2]!==m||l[3]!==u?(r={selectedPath:u,setSelectedPath:m},l[2]=m,l[3]=u,l[4]=r):r=l[4],n=r,l[5]!==d||l[6]!==n?(i=(0,a.jsx)(c.AR.Provider,{value:n,children:d}),l[5]=d,l[6]=n,l[7]=i):i=l[7],i}),YI="comments",YE={interpolate:/{{([\s\S]+?)}}/g},Y$="www.sanity.io";function YA(e){let t,n,r,i,l,d,u,p,m,h,f,g,C=(0,o.c)(31),[y,x]=(0,s.useState)(!1),[b,v]=(0,s.useState)(null),j=oG(),w=(0,e5.Jr)(),_=ee7(a7);C[0]!==w?(n={dialogSecondaryClicked:()=>w.log(Z$,{feature:YI,type:"modal"}),dialogPrimaryClicked:()=>w.log(ZE,{feature:YI,type:"modal"}),panelViewed:e=>w.log(ZT,{feature:YI,type:"inspector",source:e}),panelDismissed:()=>w.log(ZI,{feature:YI,type:"inspector"}),panelPrimaryClicked:()=>w.log(ZE,{feature:YI,type:"inspector"}),panelSecondaryClicked:()=>w.log(Z$,{feature:YI,type:"inspector"})},C[0]=w,C[1]=n):n=C[1],t=n,C[2]!==t?(r=()=>{t.dialogPrimaryClicked()},C[2]=t,C[3]=r):r=C[3];let k=r;C[4]!==t?(i=()=>{t.dialogSecondaryClicked()},C[4]=t,C[5]=i):i=C[5];let S=i;C[6]!==w?(l=()=>{x(!1),w.log(ZI,{feature:YI,type:"modal"})},C[6]=w,C[7]=l):l=C[7];let T=l;C[8]!==_.observable||C[9]!==j?(d=()=>{let e=_.observable.request({uri:"/journey/comments"}).subscribe({next:e=>{if(e)try{let t=nv(e.ctaButton.url,YE);e.ctaButton.url=t({baseUrl:Y$,projectId:j});let n=nv(e.secondaryButton.url,YE);e.secondaryButton.url=n({baseUrl:Y$,projectId:j}),v(e)}catch{}},error:YD});return()=>{e.unsubscribe()}},C[8]=_.observable,C[9]=j,C[10]=d):d=C[10],C[11]!==_||C[12]!==j?(u=[_,j],C[11]=_,C[12]=j,C[13]=u):u=C[13],(0,s.useEffect)(d,u),C[14]!==w?(p=e=>{x(!0),w.log(ZT,{feature:YI,type:"modal",source:e})},C[14]=w,C[15]=p):p=C[15];let I=p;return C[16]!==I||C[17]!==t||C[18]!==b||C[19]!==y?(h={upsellDialogOpen:y,handleOpenDialog:I,upsellData:b,telemetryLogs:t},C[16]=I,C[17]=t,C[18]=b,C[19]=y,C[20]=h):h=C[20],m=h,C[21]!==T||C[22]!==k||C[23]!==S||C[24]!==b||C[25]!==y?(f=b&&y&&(0,a.jsx)(yk,{data:b,onClose:T,onPrimaryClick:k,onSecondaryClick:S}),C[21]=T,C[22]=k,C[23]=S,C[24]=b,C[25]=y,C[26]=f):f=C[26],C[27]!==m||C[28]!==e.children||C[29]!==f?(g=(0,a.jsxs)(c.F8.Provider,{value:m,children:[e.children,f]}),C[27]=m,C[28]=e.children,C[29]=f,C[30]=g):g=C[30],g}function YD(){}function Yz(e){let t,n,r=(0,o.c)(6);if(!N7().enabled){let t;return r[0]!==e?(t=e.renderDefault(e),r[0]=e,r[1]=t):t=r[1],t}return r[2]!==e?(t=e.renderDefault(e),r[2]=e,r[3]=t):t=r[3],r[4]!==t?(n=(0,a.jsx)(YT,{children:(0,a.jsx)(Fn,{children:t})}),r[4]=t,r[5]=n):n=r[5],n}let YM=(0,g.I4)(u.BJ)`
3146  width: 320px;
3147`;function YP(e){let t,n,r,i,l,d,c,p,m,h,f,g,x,b,v,j,w=(0,o.c)(69),{count:_,currentUser:k,fieldTitle:S,isCreatingDataset:T,mentionOptions:I,onChange:E,onClick:$,onClose:A,onCommentAdd:D,onDiscard:z,onInputKeyDown:M,open:P,value:R}=e,{t:O}
3147=iJ(Ft),V=(0,s.useRef)(null),[L,F]=(0,s.useState)(null),B=(0,s.useRef)(null),N=_>0;w[0]!==L||w[1]!==A||w[2]!==P?(t=()=>{P&&(A(),L?.focus())},w[0]=L,w[1]=A,w[2]=P,w[3]=t):t=w[3];let Y=t;w[4]!==Y||w[5]!==D?(n=()=>{D(),Y()},w[4]=Y,w[5]=D,w[6]=n):n=w[6];let H=n;w[7]!==R?(i=FN(R),w[7]=R,w[8]=i):i=w[8],r=i,w[9]!==Y||w[10]!==r?(l=()=>{if(!r)return void Y();B.current?.discardDialogController.open()},w[9]=Y,w[10]=r,w[11]=l):l=w[11];let Z=l;w[12]!==M?(d=e=>{e.isDefaultPrevented()||M&&M(e)},w[12]=M,w[13]=d):d=w[13];let U=d;w[14]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{B.current?.discardDialogController.close()},w[14]=c):c=w[14];let q=c;w[15]!==Y||w[16]!==z?(p=()=>{B.current?.discardDialogController.close(),Y(),z()},w[15]=Y,w[16]=z,w[17]=p):p=w[17];let J=p;w[18]!==Z?(m=e=>{"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),Z())},w[18]=Z,w[19]=m):m=w[19];let W=m;if(w[20]===Symbol.for("react.memo_cache_sentinel")?(h=()=>[V.current],w[20]=h):h=w[20],(0,u.PR)(!P&&Z,h),!N){let e,t,n,r,i,o,l,s,d;w[21]!==S?(e={field:S},w[21]=S,w[22]=e):e=w[22],w[23]!==O||w[24]!==e?(t=(0,a.jsx)(an,{t:O,i18nKey:"compose.add-comment-input-placeholder",values:e}),w[23]=O,w[24]=e,w[25]=t):t=w[25];let c=t;w[26]!==k||w[27]!==J||w[28]!==U||w[29]!==H||w[30]!==T||w[31]!==I||w[32]!==E||w[33]!==c||w[34]!==R?(n=(0,a.jsx)(YM,{padding:2,space:4,children:(0,a.jsx)(BA,{currentUser:k,focusLock:!0,focusOnMount:!0,mentionOptions:I,onChange:E,onDiscardCancel:q,onDiscardConfirm:J,onKeyDown:U,onSubmit:H,placeholder:c,readOnly:T,ref:B,value:R})}),w[26]=k,w[27]=J,w[28]=U,w[29]=H,w[30]=T,w[31]=I,w[32]=E,w[33]=c,w[34]=R,w[35]=n):n=w[35];let u=n;return w[36]===Symbol.for("react.memo_cache_sentinel")?(r=["bottom-end"],w[36]=r):r=w[36],w[37]!==O?(i=O("field-button.aria-label-add"),w[37]=O,w[38]=i):i=w[38],w[39]!==O?(o=O("field-button.title"),w[39]=O,w[40]=o):o=w[40],w[41]!==o?(l={content:o,placement:"top"},w[41]=o,w[42]=l):l=w[42],w[43]!==T||w[44]!==$||w[45]!==P||w[46]!==i||w[47]!==l?(s=(0,a.jsx)("div",{children:(0,a.jsx)(y.$n,{"aria-label":i,disabled:T,icon:C.I7I,mode:"bleed",onClick:$,ref:F,selected:P,tooltipProps:l})}),w[43]=T,w[44]=$,w[45]=P,w[46]=i,w[47]=l,w[48]=s):s=w[48],w[49]!==u||w[50]!==W||w[51]!==P||w[52]!==s?(d=(0,a.jsx)(y.AM,{constrainSize:!0,content:u,fallbackPlacements:r,open:P,placement:"right-start",portal:!0,ref:V,onKeyDown:W,children:s}),w[49]=u,w[50]=W,w[51]=P,w[52]=s,w[53]=d):d=w[53],d}w[54]!==_||w[55]!==O?(f=O("field-button.content",{count:_}),w[54]=_,w[55]=O,w[56]=f):f=w[56],w[57]!==O?(g=O("field-button.aria-label-open"),w[57]=O,w[58]=g):g=w[58],w[59]===Symbol.for("react.memo_cache_sentinel")?(x=(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.Twg,{})}),w[59]=x):x=w[59];let K=_>9?"9+":_;return w[60]!==K?(b=(0,a.jsxs)(u.so,{align:"center",gap:2,children:[x,(0,a.jsx)(u.EY,{size:0,children:K})]}),w[60]=K,w[61]=b):b=w[61],w[62]!==$||w[63]!==g||w[64]!==b?(v=(0,a.jsx)(u.$n,{"aria-label":g,mode:"bleed",onClick:$,padding:2,space:2,children:b}),w[62]=$,w[63]=g,w[64]=b,w[65]=v):v=w[65],w[66]!==f||w[67]!==v?(j=(0,a.jsx)(y.m_,{portal:!0,placement:"top",content:f,children:v}),w[66]=f,w[67]=v,w[68]=j):j=w[68],j}let YR=new Map,YO=[],YV={initial:{opacity:0}
3147,animate:{opacity:1},exit:{opacity:0}},YL=(0,g.I4)(tW.P.div)(({theme:e})=>{let{radius:t,space:n,color:r}=e.sanity,i=v.OZ[Bz][r.dark?900:50].hex;return(0,g.AH)`
3148    mix-blend-mode: ${r.dark?"screen":"multiply"};
3149    border-radius: ${t[3]}px;
3150    top: -${n[2]}px;
3151    left: -${n[2]}px;
3152    bottom: -${n[2]}px;
3153    right: -${n[2]}px;
3154    pointer-events: none;
3155    position: absolute;
3156    z-index: 1;
3157    width: calc(100% + ${2*n[2]}px);
3158    height: calc(100% + ${2*n[2]}px);
3159    background-color: ${i};
3160  `}),YF=(0,g.I4)(u.BJ)`
3161  position: relative;
3162`;function YB(e){let{mode:t}=e,n=Cl(),{element:r}=(0,u.$w)(),i=(0,s.useRef)(null),{comments:o,isCommentsOpen:d,isCreatingDataset:p,mentionOptions:m,onCommentsOpen:h,operation:f,setStatus:g,status:C}=N0(),{upsellData:y,handleOpenDialog:x}=Ys(),{selectedPath:b,setSelectedPath:v}=Yi(),{authoringPath:j,setAuthoringPath:w}=function(){let e=(0,s.useContext)(c.ki);if(!e)throw Error("useCommentsAuthoringPath: missing context value");return e}(),{scrollToGroup:_}=Yr({boundaryElement:r}),k=(0,s.useMemo)(()=>wg(e.schemaType),[e.schemaType]),S=(0,s.useMemo)(()=>l.dI(e.path),[e.path]),T=YR.get(S)||null,[I,E]=(0,s.useState)(T),$=(0,s.useMemo)(()=>j===S,[j,S]),A=(0,s.useMemo)(()=>!!d&&b?.origin!=="form"&&b?.origin!=="url"&&b?.fieldPath===S,[d,b?.fieldPath,b?.origin,S]),D=(0,s.useMemo)(()=>o.data.open.filter(e=>e.threadId===b?.threadId).some(e=>FY(e.parentComment)),[o.data.open,b?.threadId]),z=(0,s.useMemo)(()=>o.data.open.map(e=>e.fieldPath===S?e.commentsCount:0).reduce((e,t)=>e+t,0)||0,[o.data.open,S]),M=z>0,P=(0,s.useCallback)(()=>{E(null),YR.delete(S)},[S]),R=(0,s.useCallback)(()=>{if(M){"resolved"===C&&g("open"),w(null),h?.();let t=o.data.open.find(t=>t.fieldPath===l.dI(e.path))?.threadId;t&&(v({threadId:t,origin:"form",fieldPath:l.dI(e.path)}),_(t));return}if("upsell"===t)return void(y?x("field_action"):h?.());w($?null:S)},[o.data.open,x,M,$,t,h,e.path,_,w,v,g,C,S,y]),O=(0,s.useCallback)(()=>{if(I){let t=(0,nA.A)(),n={type:"field",fieldPath:l.dI(e.path),message:I,parentCommentId:void 0,status:"open",threadId:t,reactions:YO};f.create(n),h?.(),"resolved"===C&&g("open"),P(),v({threadId:t,origin:"form",fieldPath:l.dI(e.path)}),_(t)}},[h,f,e.path,P,_,v,g,C,I]),V=(0,s.useCallback)(()=>w(null),[w]),L=(0,s.useCallback)(e=>{E(e),YR.set(S,e)},[S]),F=(0,s.useMemo)(()=>({button:n&&(0,a.jsx)(YP,{count:Number(z),currentUser:n,fieldTitle:k,isCreatingDataset:p,mentionOptions:m,onChange:L,onClick:R,onClose:V,onCommentAdd:O,onDiscard:P,open:$,value:I}),hasComments:M,isAddingComment:$}),[n,z,k,p,m,L,R,V,O,P,$,I,M]);return(0,a.jsxs)(YF,{...{"data-comments-field-id":Ye(l.dI(e.path))},ref:i,children:[e.renderDefault({...e,__internal_comments:F}),(0,a.jsx)(tK.N,{children:A&&!D&&(0,a.jsx)(YL,{animate:"animate",exit:"exit",initial:"initial",variants:YV})})]})}let YN=(0,g.I4)(tW.P.create(y.AM))`
3163  user-select: none;
3164`,YY=["bottom","top"],YH={hidden:{opacity:0,y:-4},visible:{opacity:1,y:0}};function YZ(e){let t,n,r,i,l,d=(0,o.c)(13),{disabled:c,onClick:p,onClickOutside:m,referenceElement:h}=e,f=(0,s.useRef)(null),{t:g}=iJ(Ft);d[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>[f.current],d[0]=t):t=d[0],(0,u.PR)(m,t),d[1]!==g?(n=g("inline-add-comment-button.disabled-overlap-title"),d[1]=g,d[2]=n):n=d[2];let x=n;d[3]!==g?(r=g("inline-add-comment-button.title"),d[3]=g,d[4]=r):r=d[4];let b=c?x:r,v=c?FW:C.I7I;d[5]!==c||d[6]!==p||d[7]!==v||d[8]!==b?(i=(0,a.jsx)(y.$n,{"data-testid":"inline-comment-button",disabled:c,icon:v,mode:"bleed",onClick:p,ref:f,text:b}),d[5]=c,d[6]=p,d[7]=v,d[8]=b,d[9]=i):i=d[9];let j=i;return d[10]!==j||d[11]!==h?(l=(0,a.jsx)(YN,{animate:"visible",content:j,contentEditable:!1,fallbackPlacements:YY,initial:"hidden",open:!0,padding:1,placement:"bottom",portal:!0,referenceElement:h,variants:YH}),d[10]=j,d[11]=h,d[12]=l):l=d[12],l}let YU=["bottom","top"],Yq=tW.P.create(y.AM),YJ=(0,g.I4)(u.BJ)`
3165  width: 250px;
3166`,YW={hidden:{opacity:0},visible:{opacity:1}};function YK(e){let t,n,r,i,l,d,c=(0,o.c)(17),{currentUser:p,mentionOptions:m,onChange:h,onClickOutside:f,onDiscardConfirm:g,onSubmit:C,referenceElement:y,value:x}=e,b=(0,s.useRef)(null),v=(0,s.useRef)(null);c[0]!==g?(t=()=>{b.current?.discardDialogController.close(),g()},c[0]=g,c[1]=t):t=c[1];let j=t;c[2]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{b.current?.discardDialogController.close()},c[2]=n):n=c[2];let w=n;c[3]!==f||c[4]!==x?(r=()=>{if(FN(x))return void b.current?.discardDialogController.open();f()},c[3]=f,c[4]=x,c[5]=r):r=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(i=()=>[v.current],c[6]=i):i=c[6],(0,u.PR)(r,i),c[7]!==p||c[8]!==j||c[9]!==m||c[10]!==h||c[11]!==C||c[12]!==x?(l=(0,a.jsx)(YJ,{padding:2,ref:v,children:(0,a.jsx)(BA,{currentUser:p,focusLock:!0,focusOnMount:!0,mentionOptions:m,onChange:h,onDiscardCancel:w,onDiscardConfirm:j,onSubmit:C,ref:b,value:x})}
3166),c[7]=p,c[8]=j,c[9]=m,c[10]=h,c[11]=C,c[12]=x,c[13]=l):l=c[13];let _=l;return c[14]!==_||c[15]!==y?(d=(0,a.jsx)(Yq,{animate:"visible",content:_,"data-ui":"InlineCommentInputPopover",fallbackPlacements:YU,initial:"hidden",open:!0,placement:"bottom",portal:!0,referenceElement:y,variants:YW}),c[14]=_,c[15]=y,c[16]=d):d=c[16],d}let YG=[];function YX(e){let t,n=(0,o.c)(5),{enabled:r,mode:i}=N7(),l="sanity.assist.instruction.prompt"===e.schemaType.name;if(!r||l){let t;return n[0]!==e?(t=e.renderDefault(e),n[0]=e,n[1]=t):t=n[1],t}return n[2]!==i||n[3]!==e?(t=(0,a.jsx)(YQ,{...e,mode:i}),n[2]=i,n[3]=e,n[4]=t):t=n[4],t}let YQ=(0,s.memo)(function(e){let{mode:t}=e,n=Cl(),r=(0,u.WP)(),{comments:i,getComment:d,mentionOptions:c,onCommentsOpen:p,operation:m,setStatus:h,status:f}=N0(),{setSelectedPath:g,selectedPath:C}=Yi(),{scrollToComment:y,scrollToGroup:x}=Yr(),{handleOpenDialog:b}=Ys(),v=(0,s.useRef)(null),j=(0,s.useRef)(!1),[w,k]=(0,s.useState)(null),[S,T]=(0,s.useState)(null),[I,E]=(0,s.useState)(null),[$,A]=(0,s.useState)(null),[D,z]=(0,s.useState)(null),[M,P]=(0,s.useState)(null),[R,O]=(0,s.useState)(!1),[V,L]=(0,s.useState)(null),[F,B]=(0,s.useState)(!1),[N,Y]=(0,s.useState)(YG),H=(0,s.useMemo)(()=>l.dI(e.path),[e.path]),Z=(0,s.useCallback)(()=>{z(function(){let e=window.getSelection(),t=null;return e&&e.rangeCount>0&&(t=e.getRangeAt(0)),t?.getBoundingClientRect()||null}())},[]),U=(0,s.useCallback)(()=>{A(null),z(null),E(null),T(null),O(!1),k(null)},[]),q=(0,s.useCallback)(()=>{if("upsell"===t)return void b("pte");E($)},[$,b,t]),J=(0,s.useCallback)(()=>{U()},[U]),W=(0,s.useMemo)(()=>i.data.open.filter(e=>e.fieldPath===H).filter(e=>FY(e.parentComment)).map(e=>e.parentComment),[i.data.open,H]),K=(0,s.useCallback)(()=>v.current?ng.Og.getFragment(v.current):YG,[]),G=(0,s.useCallback)(()=>{if(!I||!v.current)return;let e=K()||YG,t=ng.Og.getValue(v.current);if(!t)return;let n=function(e){let{fragment:t,value:n,selection:r}=e;if(!r)throw Error("Selection is required");let i=r.backward?{anchor:r.focus,focus:r.anchor}:r;return{type:"text",value:t.map(e=>{let t=n.find(t=>t._key===e._key);if(!(0,_.L4)(t))return{_key:e._key,text:""};let r=(0,_.tA)(i.anchor.path[0])&&i.anchor.path[0]._key,a=(0,_.tA)(i.focus.path[0])&&i.focus.path[0]._key,o=(0,nf.bo)([e]),l=(0,_.L4)(e)?e.children[0]:void 0,s=(0,_.L4)(e)?e.children[e.children.length-1]:void 0,d="",c=-1;if(r===t._key)for(let e of t.children){if(c++,e._key===l?._key){d+=(0,_.bn)(e)&&e.text.slice(0,Math.max(0,i.anchor.offset))||"";break}d+=e.text}let u="";if(a===t._key)for(let e of t.children.slice(c).reverse()){if(e._key===s?._key){u=((0,_.bn)(e)&&e.text.slice(i.focus.offset,e.text.length)||"")+u;break}u=e.text+u}return{_key:t._key,text:`${d}${NB[0]}${o}${NB[1]}${u}`}})}}({fragment:e,selection:I,value:t}),r=(0,nA.A)();m.create({type:"field",contentSnapshot:e,fieldPath:H,message:S,parentCommentId:void 0,reactions:YG,selection:n,status:"open",threadId:r}),p?.(),"resolved"===f&&h("open"),g({fieldPath:H,threadId:r,origin:"form"}),x(r),U()},[I,K,m,H,S,p,f,g,x,U,h]),X=(0,s.useCallback)(e=>{let t=d(e);t&&(g({fieldPath:t.target.path?.field||"",threadId:t.threadId,origin:"form"}),p?.(),y(t._id))},[d,p,y,g]),Q=(0,s.useRef)(!1),ee=(0,s.useCallback)(e=>{let t=e?.anchor.offset!==e?.focus.offset;if(!K()?.every(_.L4)||!t)return void O(!1);if(Q.current){Q.current=!1;return}j.current||Z(),A(e),O(!0)},[K,Z]),et=(0,s.useMemo)(()=>tQ(ee,200),[ee]),en=(0,s.useCallback)(()=>{j.current=!0},[]),er=(0,s.useCallback)(()=>{j.current=!1,Z()},[Z]),ei=(0,s.useCallback)(e=>{let{rangeDecoration:t,newSelection:n}=e,r=t.payload?.commentId;Y(e=>e.map(e=>e.payload?.commentId===r?{...t,selection:n,payload:{...t.payload,dirty:!0}}:e))},[]),ea=(0,s.useCallback)(()=>{let e=N.filter(e=>e.payload?.dirty);0!==e.length&&(e.forEach(e=>{let t=d(e.payload?.commentId||"");if(!t||!v.current)return;let[n]=NH({comments:[t],value:ng.Og.getValue(v.current)||YG}),r=n?.range?[n.range]:YG,i=n?[...t.target.path?.selection?.value.filter(e=>e._key!==r[0]?._key).concat(r).flat()||YG]:YG,a={target:{...t.target,path:{...t.target?.path,field:t.target.path?.field||"",selection:{type:"text",value:i}}}};m.update(t._id,a)}),Y(t=>t.map(t=>e.find(e=>e.payload?.commentId===t.payload?.commentId)?.payload?.dirty?{...t,payload:{...t.payload,dirty:!1}}:t).filter(e=>null!==e.selection)))},[N,d,m]),eo=(0,s.useCallback)(e=>{if(!v.current)return YG;let t=ng.Og.getValue(v.current)||YG,{comments:n,currentHoveredCommentId:r,onDecorationClick:i,onDecorationHoverEnd:o,onDecorationHoverStart:l,onDecorationMoved:s,selectedThreadId:d,value:c}={comments:e,currentHoveredCommentId:M,onDecorationClick:X,onDecorationHoverEnd:P,onDecorationHoverStart:P,onDecorationMoved:ei,selectedThreadId:C?.threadId||null,value:t};return NH({comments:n,value:c}).map(({selection:e,comment:t,range:n})=>({component:({children:e})=>(0,a.jsx)(NZ,{commentId:t._id,currentHoveredCommentId:r,onClick:i,onHoverEnd:o,onHoverStart:l,selectedThreadId:d,threadId:t.threadId,children:e}),onMoved:s,selection:e,payload:{commentId:t._id,range:n}}))},[M,X,ei,C?.threadId]),el=(0,s.useCallback)(e=>{"mutation"===e.type&&ea(),"blur"===e.type&&(Q.current=!0),"selection"===e.type&&et(e.selection)},[et,ea]),es=(0,s.useMemo)(()=>
3166I?{component:({children:e})=>(0,a.jsx)(BO,{isAuthoring:!0,ref:k,children:e}),selection:I}:null,[I]),ed=(0,s.useMemo)(()=>[...e?.rangeDecorations||YG,...es?[es]:YG,...N],[N,es,e?.rangeDecorations]),ec=(0,s.useMemo)(()=>!!$&&0!==N.length&&N.some(e=>{if(!v.current)return!1;let t=ng.Og.isSelectionsOverlapping(v.current,$,e.selection),n=ng.Og.isSelectionsOverlapping(v.current,e.selection,$);return t||n}),[N,$]),eu=F?document.body:r.elements?.documentScrollElement||document.body,ep=F?r.elements?.documentScrollElement||document.body:V,em=function(e){let t,n,r=(0,o.c)(6),{scrollElement:i,disabled:a,selector:l}=e;r[0]!==a||r[1]!==i||r[2]!==l?(t={scrollElement:i,disabled:a,selector:l},r[0]=a,r[1]=i,r[2]=l,r[3]=t):t=r[3];let d=function(e){let t,n,r,i,a=(0,o.c)(10),{scrollElement:l,disabled:d,selector:c}=e,[u,p]=(0,s.useState)(null);a[0]!==d||a[1]!==c?(t=()=>{if(d)return;let e=document?.querySelectorAll(c);e&&p(function(e){if(!e||!e.length)return null;let t=e.map(e=>e.getBoundingClientRect()),n=Math.min(...t.map(e=>e.x))||0,r=Math.min(...t.map(e=>e.y))||0,i=Math.max(...t.map(e=>e.right))||0,a=Math.max(...t.map(e=>e.bottom))||0;return{x:n,y:r,width:i-n,height:a-r,top:r,right:i,bottom:a,left:n}}(Array.from(e)))},a[0]=d,a[1]=c,a[2]=t):t=a[2];let m=t;return a[3]!==m?(n=[m],a[3]=m,a[4]=n):n=a[4],(0,s.useEffect)(m,n),a[5]!==d||a[6]!==m||a[7]!==l?(r=()=>{if(!(d||!l))return l.addEventListener("wheel",m),()=>{l.removeEventListener("wheel",m)}},i=[m,d,l],a[5]=d,a[6]=m,a[7]=l,a[8]=r,a[9]=i):(r=a[8],i=a[9]),(0,s.useEffect)(r,i),u}(t);e:{let e;if(!d){n=null;break e}r[4]!==d?(e={getBoundingClientRect:()=>d},r[4]=d,r[5]=e):e=r[5],n=e}return n}({scrollElement:eu,disabled:!I||!w,selector:'[data-inline-comment-state="authoring"]'}),eh=(0,s.useMemo)(()=>D?{getBoundingClientRect:()=>D}:null,[D]);(0,s.useEffect)(()=>{if($)return eu?.addEventListener("wheel",Z),()=>{eu?.removeEventListener("wheel",Z)}},[$,eu,Z]),(0,s.useEffect)(()=>{let e=eo(W);Y(t=>e.map(e=>{let n=t.find(t=>t.payload?.commentId===e.payload?.commentId);return n?.payload?.dirty?{...e,payload:{...e.payload,dirty:n.payload.dirty}}:e}))},[eo,W]);let ef=!!($&&R&&eh&&!j.current),eg=!!(I&&em);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.EZ,{element:ep,children:(0,a.jsxs)(tK.N,{children:[eg&&n&&(0,a.jsx)(YK,{currentUser:n,mentionOptions:c,onChange:T,onClickOutside:U,onDiscardConfirm:J,onSubmit:G,referenceElement:em,value:S}),ef&&!eg&&(0,a.jsx)(YZ,{disabled:ec,onClick:q,onClickOutside:U,referenceElement:eh})]})}),(0,a.jsx)(u.BJ,{ref:L,onMouseDown:en,onMouseUp:er,children:e.renderDefault({...e,onEditorChange:el,editorRef:v,rangeDecorations:ed,onFullScreenChange:B})})]})}),Y1=g.I4.span`
3167  margin-right: 0.2em;
3168`,Y2=g.I4.a`
3169  white-space: nowrap;
3170`,Y5=(0,g.I4)(u.Zp)({position:"relative",zIndex:1});function Y0(){let e,t,n,r,i,l,s=(0,o.c)(12),{t:d}=iJ(Ft);return s[0]!==d?(e=d("feature-feedback.title"),s[0]=d,s[1]=e):e=s[1],s[2]!==d?(t=d("feature-feedback.link"),s[2]=d,s[3]=t):t=s[3],s[4]!==t?(n=(0,a.jsxs)(Y1,{children:[t," "]}),s[4]=t,s[5]=n):n=s[5],s[6]===Symbol.for("react.memo_cache_sentinel")?(r=(0,a.jsx)(C.ZPM,{}),s[6]=r):r=s[6],s[7]!==n?(i=(0,a.jsxs)(Y2,{href:"https://snty.link/comments-beta-feedback",target:"_blank",rel:"noreferrer",children:[n," ",r]}),s[7]=n,s[8]=i):i=s[8],s[9]!==e||s[10]!==i?(l=(0,a.jsx)(Y5,{padding:4,children:(0,a.jsxs)(u.EY,{muted:!0,size:1,children:[e," ",i]})}),s[9]=e,s[10]=i,s[11]=l):l=s[11],l}let Y7=(0,g.I4)(u.Zp)({position:"relative",zIndex:1,lineHeight:0}),Y3=(0,s.forwardRef)(function(e,t){let n,r,i,l,s,d,c,p,m,h,f,g,x,b,v,j,w,_,k,S,T,I,E=(0,o.c)(57),{t:$}=iJ(Ft),{onClose:A,onViewChange:D,view:z,mode:M}=e;E[0]!==D?(n=()=>D("open"),E[0]=D,E[1]=n):n=E[1];let P=n;E[2]!==D?(r=()=>D("resolved"),E[2]=D,E[3]=r):r=E[3];let R=r;E[4]!==$?(i=$("feature-name"),E[4]=$,E[5]=i):i=E[5],E[6]!==i?(l=(0,a.jsx)(u.so,{align:"center",flex:1,gap:2,paddingY:2,padding:3,children:(0,a.jsx)(u.EY,{as:"h1",size:1,weight:"medium",children:i})}),E[6]=i,E[7]=l):l=E[7],E[8]!==$||E[9]!==z?(s=$("open"===z?"status-filter.status-open":"status-filter.status-resolved"),E[8]=$,E[9]=z,E[10]=s):s=E[10],E[11]!==s?(d=(0,a.jsx)(y.$n,{text:s,mode:"bleed",iconRight:C.D3D}),E[11]=s,E[12]=d):d=E[12],E[13]===Symbol.for("react.memo_cache_sentinel")?(c={width:"180px"},E[13]=c):c=E[13];let O="open"===z?C.Nrt:void 0;E[14]!==$?(p=$("status-filter.status-open-full"),E[14]=$,E[15]=p):p=E[15],E[16]!==P||E[17]!==O||E[18]!==p?(m=(0,a.jsx)(y.Dr,{iconRight:O,onClick:P,text:p}),E[16]=P,E[17]=O,E[18]=p,E[19]=m):m=E[19];let V="resolved"===z?C.Nrt:void 0;E[20]!==$?(h=$("status-filter.status-resolved-full"),E[20]=$,E[21]=h):h=E[21],E[22]!==M||E[23]!==$?(f="upsell"===M?{content:$("status-filter.status-resolved-full-upsell")}:void 0,E[22]=M,E[23]=$,E[24]=f):f=E[24];let L="upsell"===M;return E[25]!==R||E[26]!==V||E[27]!==h||E[28]!==f||E[29]!==L?(g=(0,a.jsx)(y.Dr,{iconRight:V,onClick:R,text:h,tooltipProps:f,disabled:L}),E[25]=R,E[26]=V,E[27]=h,E[28]=f,E[29]=L,E[30]=g):g=E[30],E[31]!==g||E[32]!==m?(x=(0,a.jsxs)(u.W1,{style:c,children:[m,g]}),E[31]=g,E[32]=m,E[33]=x):x=E[33],E[34]===Symbol.for("react.memo_cache_sentinel")?(b={placement:"bottom-end"},E[34]=b):b=E[34],E[35]!==x||E[36]!==d?(v=(0,a.jsx)(y.IU,{id:"comment-status-menu-button",button:d,menu:x,popover:b}),E[35]=x,E[36]=d,E[37]=v):v=E[37],E[38]!==$?(j=$("close-pane-button-text-aria-label"),E[38]=$,E[39]=j):j=E[39],E[40]!==$?(w=$("close-pane-button-text"),E[40]=$,E[41]=w):w=E[41],E[42]!==w?(_={content:w}
3170,E[42]=w,E[43]=_):_=E[43],E[44]!==A||E[45]!==j||E[46]!==_?(k=(0,a.jsx)(y.$n,{"aria-label":j,icon:C.USm,mode:"bleed",onClick:A,tooltipProps:_}),E[44]=A,E[45]=j,E[46]=_,E[47]=k):k=E[47],E[48]!==v||E[49]!==k?(S=(0,a.jsxs)(u.so,{flex:"none",padding:1,gap:2,children:[v,k]}),E[48]=v,E[49]=k,E[50]=S):S=E[50],E[51]!==S||E[52]!==l?(T=(0,a.jsxs)(u.so,{padding:2,children:[l,S]}),E[51]=S,E[52]=l,E[53]=T):T=E[53],E[54]!==t||E[55]!==T?(I=(0,a.jsx)(Y7,{ref:t,children:T}),E[54]=t,E[55]=T,E[56]=I):I=E[56],I}),Y8=(0,g.I4)(u.Wd)`
3171  display: flex;
3172  flex-direction: column;
3173  height: 100%;
3174  overflow: hidden;
3175`;function Y4(e){let{t}=iJ(Ft),{onClose:n,mode:r}=e,[i,d]=(0,s.useState)(!1),[m,h]=(0,s.useState)(null),[f,g]=(0,s.useState)(!1),[C,y]=(0,s.useState)(null),x=(0,s.useRef)(null),b=Cl(),{comments:v,getComment:j,isCreatingDataset:w,mentionOptions:_,setStatus:k,status:S,operation:T,selectedCommentId:I,getCommentLink:E,onClearSelectedComment:$,onPathOpen:A}=N0(),D=(0,s.useRef)(I),z=(0,s.useRef)(!1),M=(0,p.dj)().push,{isTopLayer:P}=(0,u.Z4)(),{scrollToComment:R,scrollToField:O,scrollToInlineComment:V}=Yr(),{selectedPath:L,setSelectedPath:F}=Yi(),{isDismissed:B,setDismissed:N}=function(){let e=(0,s.useContext)(c.lG);if(!e)throw Error("useCommentsOnboarding: missing context value");return e}(),Y=function(){let e,t,n,r,i=(0,o.c)(10),a=(0,e5.Jr)();i[0]!==a?(e=()=>{a.log(Ya)},i[0]=a,i[1]=e):e=i[1];let l=e;i[2]!==a?(t=()=>{a.log(Yo)},i[2]=a,i[3]=t):t=i[3];let s=t;i[4]!==a?(n=e=>{a.log(Yl,{view:e})},i[4]=a,i[5]=n):n=i[5];let d=n;return i[6]!==l||i[7]!==d||i[8]!==s?(r={commentLinkCopied:l,commentListViewChanged:d,commentViewedFromLink:s},i[6]=l,i[7]=d,i[8]=s,i[9]=r):r=i[9],r}(),{upsellData:H,telemetryLogs:Z}=Ys(),U=(0,s.useMemo)(()=>v.data[S],[v,S]),{loading:q}=v,J=(0,s.useCallback)(e=>{k(e),F(null),Y.commentListViewChanged(e)},[F,k,Y]),W=(0,s.useCallback)(()=>{n(),F(null)},[n,F]),K=(0,s.useMemo)(()=>E?e=>{navigator.clipboard.writeText(E(e)).catch(()=>{M({closable:!0,status:"error",title:t("copy-link-error-message")})}),Y.commentLinkCopied()}:void 0,[E,M,t,Y]),G=(0,s.useCallback)(e=>{let t=j(e);t&&T.create({type:"field",fieldPath:t.target.path?.field||"",id:t._id,message:t.message,parentCommentId:t.parentCommentId,reactions:t.reactions||[],status:t.status,threadId:t.threadId})},[j,T]),X=(0,s.useCallback)(()=>{f||(d(!1),h(null))},[f]),Q=(0,s.useCallback)(e=>{if(F(e),e?.fieldPath){let t=l.sH(e.fieldPath);A?.(t),O(e.fieldPath),v.data.open.filter(t=>t.threadId===e?.threadId).some(e=>FY(e.parentComment))&&e.threadId&&V(e.threadId)}},[v.data.open,A,O,V,F]),ee=(0,s.useCallback)(e=>{let t=e?.payload?.fieldPath||"";T.create({type:"field",fieldPath:t,message:e.message,parentCommentId:e.parentCommentId,reactions:e.reactions,status:e.status,threadId:e.threadId}),F({fieldPath:t,origin:"inspector",threadId:e.threadId})},[T,F]),et=(0,s.useCallback)(e=>{T.create({...e,type:"field",fieldPath:e?.payload?.fieldPath||""})},[T]),en=(0,s.useCallback)((e,t)=>{T.update(e,t)},[T]),er=(0,s.useCallback)(e=>{let t=U.find(t=>t.parentComment?._id===e),n=!!(t&&t?.replies?.length>0);d(!0),h({commentId:e,isParent:n})},[U]),ei=(0,s.useCallback)(async e=>{try{g(!0),await T.remove(e),X()}catch(e){y(e)}finally{g(!1)}},[X,T]),ea=(0,s.useCallback)((e,t)=>{if(T.update(e,{status:t}),"open"===t){k("open");let t=j(e);t&&(F({fieldPath:t.target.path?.field||null,origin:"inspector",threadId:t.threadId||null}),R(e))}},[j,T,R,F,k]),eo=(0,s.useCallback)((e,t)=>{T.react(e,t)},[T]),el=(0,s.useCallback)(()=>{L&&P&&F(null)},[P,L,F]);(0,u.PR)(e=>{e.target instanceof HTMLElement&&e.target?.hasAttribute("data-slate-string")||el()},()=>[x.current]);let[es,ed]=(0,s.useState)(!1);(0,s.useEffect)(()=>{if(!(es||"upsell"!==r))return ed(!0),L?.origin==="form"?Z.panelViewed("field_action"):D.current?Z.panelViewed("link"):Z.panelViewed("document_action"),()=>{Z.panelDismissed()}},[es,r,L?.origin,Z]),(0,s.useEffect)(()=>{let e=j(D.current||"");!q&&e&&!1===z.current&&(k(e.status||"open"),F({fieldPath:e.target.path?.field||null,origin:"url",threadId:e.threadId||null}),R(e._id),z.current=!0,D.current=void 0,$?.(),Y.commentViewedFromLink())},[j,q,$,R,F,k,Y]);let ec=(0,s.useMemo)(()=>"upsell"===r&&H?(0,a.jsx)(NL,{data:H,onPrimaryClick:Z.panelPrimaryClicked,onSecondaryClick:Z.panelSecondaryClicked}):null,[r,Z.panelPrimaryClicked,Z.panelSecondaryClicked,H]);return(0,a.jsxs)(s.Fragment,{children:[m&&i&&(0,a.jsx)(FJ,{...m,error:C,loading:f,onClose:X,onConfirm:ei}),(0,a.jsxs)(u.so,{direction:"column",flex:1,height:"fill",onClick:el,overflow:"hidden",ref:x,children:[(0,a.jsx)(NM,{onDismiss:N,open:!B,placement:"left-start",children:(0,a.jsx)(Y3,{onClose:W,onViewChange:J,view:S,mode:r})}),b&&(0,a.jsx)(N$,{beforeListNode:ec,comments:U,currentUser:b,error:v.error,loading:q,mentionOptions:_,mode:r,onCopyLink:K,onCreateRetry:G,onDelete:er,onEdit:en,onNewThreadCreate:ee,onPathSelect:Q,onReactionSelect:eo,onReply:et,onStatusChange:ea,readOnly:w,selectedPath:L,status:S}),"default"===r&&(0,a.jsx)(Y0,{})]})]})}function Y6(e){return(0,a.jsx)(YA,{children:e})}let Y9=aR({name:"sanity/comments",document:{inspectors:[{name:BD,component:function(e){let t,n=(0,o.c)(3),{enabled:r,mode:i}=N7();return r?(n[0]!==i||n[1]!==e?(t=(0,a.jsx)(Y8,{children:(0,a.jsx)(Y4,{...e,mode:i})}),n[0]=i,n[1]=e,n[2]=t):t=n[2],t):null},useMenuItem:function(){let e,t,n=(0,o.c)(5),{t:r}=iJ(Ft),{enabled:i}=N7(),a=!i;return n[0]!==r?(e=r("feature-name"),n[0]=r,n[1]=e):e=n[1],n[2]!==a||n[3]!==e?(t={hidden:a,icon:C.Twg,showAsAction:!0,title:e},n[2]=a,n[3]=e,n[4]=t):t=n[4],t}}],components:{unstable_layout:function(e){let t,n,r=(0,o.c)(8),{documentId:i,documentType:l}=e;if(null!==N7().mode){let t;return r[0]!==e?(t=(0,a.jsx)(Yz,{...e}),r[0]=e,r[1]=t):t=r[1],t}return r[2]!==e?(t=(0,a.jsx)(Yz,{...e}),r[2]=e,r[3]=t):t=r[3],r[4]!==i||r[5]!==l||r[6]!==t?(n=(0,a.jsx)(Y_,{documentId:i,documentType:l,children:t}),r[4]=i,r[5]=l,r[6]=t,r[7]=n):n=r[7],n}}},form:{components:{field:function(e){let t,n=(0,o.c)(5),{enabled:r,mode:i}=N7();if(!r){let t;return n[0]!==e?(t=e.renderDefault(e),n[0]=e,n[1]=t):t=n[1],t}return n[2]!==i||n[3]!==e?(t=(0,a.jsx)(YB,{...e,mode:i}),n[2]=i,n[3]=e,n[4]=t):t=n[4],t},input:function(e){let t,n=(0,o.c)(4);if((0,_.GX)(e.schemaType)){let t;return n[0]!==e?(t=(0,a.jsx)(YX,{...e}),n[0]=e,n[1]=t):t=n[1],t}return n[2]!==e?(t=e.renderDefault(e),n[2]=e,n[3]=t):t=n[3],t}}},studio:{components:{layout:function(e){let t,n,r=(0,o.c)(5),{enabled:i,isLoading:l}=ug("studioComments"),s=!i&&!l;return r[0]!==e?(t=e.renderDefault(e),r[0]=e,r[1]=t):t=r[1],r[2]!==s||r[3]!==t?(n=(0,a.jsx)(Kl,{children:(0,a.jsx)(YS,{children:(0,a.jsx)(y.e7,{condition:s,wrapper:Y6,children:t})})}),r[2]=s,r[3]=t,r[4]=n):n=r[4],n}}},i18n:{bundles:[{locale:"en-US",namespace:Ft,resources:()=>n.e(8758).then(n.bind(n,68758))}]}}),He="u">typeof __SANITY_STAGING__&&!0===__SANITY_STAGING__,Ht="create",Hn={locale:"en-US",namespace:Ht,resources:()=>n.e(1745).then(n.bind(n,91745))},Hr=(0,eQ.g_)({name:"Create Document Link CTA Clicked",version:1,description:'The "Start in Sanity Create" button is clicked.'}),Hi=(0,eQ.g_)({name:"Create Document Link Accepted",version:1,description:'Continue in the "Start in Sanity Create" dialog was pressed, or auto-confirm was enabled.'}),Ha=(0,eQ.g_)({name:"Create Document Unlink CTA Clicked",version:1,description:"The Unlink action was clicked"}),Ho=(0,eQ.g_)({name:"Create Document Unlink Approved",version:1,description:"User confirmed that they want the Studio document unlinked"}),Hl=(0,eQ.g_)({name:"Create Document Opened",version:1,description:'User clicked "Edit in Create"'});function Hs(){let e,t,n,r,i,a,l=(0,o.c)(16),s=(0,e5.Jr)();l[0]!==s?(e=()=>s.log(Hr),l[0]=s,l[1]=e):e=l[1];let d=e;l[2]!==s?(t=()=>s.log(Hi),l[2]=s,l[3]=t):t=l[3];let c=t;l[4]!==s?(n=()=>s.log(Ha),l[4]=s,l[5]=n):n=l[5];let u=n;l[6]!==s?(r=()=>s.log(Ho),l[6]=s,l[7]=r):r=l[7];let p=r;l[8]!==s?(i=()=>s.log(Hl),l[8]=s,l[9]=i):i=l[9];let m=i;return l[10]!==m||l[11]!==c||l[12]!==d||l[13]!==p||l[14]!==u?(a={linkCtaClicked:d,linkAccepted:c,unlinkCtaClicked:u,unlinkApproved:p,documentOpened:m},l[10]=m,l[11]=c,l[12]=d,l[13]=p,l[14]=u,l[15]=a):a=l[15],a}function Hd(e){let t,n,r,i,l,d,c,p,m,h,f,g,C,x,b=(0,o.c)(40),{onClose:v,onDocumentChange:j,documentTitle:w}
3175=e,_=(0,s.useId)(),[k,S]=(0,s.useState)(!1),{t:T}=iJ(Ht),I=Hs();b[0]!==j||b[1]!==I?(t=()=>{S(!0),j(s4.from(s3(["_create"]))),I.unlinkApproved()},b[0]=j,b[1]=I,b[2]=t):t=b[2];let E=t;return b[3]!==T?(n=T("unlink-from-create-dialog.cancel.text"),b[3]=T,b[4]=n):n=b[4],b[5]!==v||b[6]!==n?(r={onClick:v,text:n},b[5]=v,b[6]=n,b[7]=r):r=b[7],b[8]!==T?(i=T("unlink-from-create-dialog.unlink.text"),b[8]=T,b[9]=i):i=b[9],b[10]!==i||b[11]!==E||b[12]!==k?(l={disabled:k,onClick:E,text:i,tone:"primary"},b[10]=i,b[11]=E,b[12]=k,b[13]=l):l=b[13],b[14]!==r||b[15]!==l?(d={cancelButton:r,confirmButton:l},b[14]=r,b[15]=l,b[16]=d):d=b[16],b[17]!==T?(c=T("unlink-from-create-dialog.header"),b[17]=T,b[18]=c):c=b[18],b[19]!==w||b[20]!==T?(p=w||T("unlink-from-create-dialog.document.untitled.text"),b[19]=w,b[20]=T,b[21]=p):p=b[21],b[22]!==p?(m={title:p},b[22]=p,b[23]=m):m=b[23],b[24]!==T||b[25]!==m?(h=(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(an,{t:T,i18nKey:"unlink-from-create-dialog.first-paragraph",values:m})}),b[24]=T,b[25]=m,b[26]=h):h=b[26],b[27]!==T?(f=T("unlink-from-create-dialog.second-paragraph"),b[27]=T,b[28]=f):f=b[28],b[29]!==f?(g=(0,a.jsx)(u.EY,{size:1,children:f}),b[29]=f,b[30]=g):g=b[30],b[31]!==g||b[32]!==h?(C=(0,a.jsxs)(u.BJ,{space:4,children:[h,g]}),b[31]=g,b[32]=h,b[33]=C):C=b[33],b[34]!==_||b[35]!==v||b[36]!==C||b[37]!==d||b[38]!==c?(x=(0,a.jsx)(y.lG,{footer:d,id:_,header:c,onClose:v,children:C}),b[34]=_,b[35]=v,b[36]=C,b[37]=d,b[38]=c,b[39]=x):x=b[39],x}function Hc(e){let t,n=(0,o.c)(3),{children:r,portalElementId:i}=e,{element:l,elements:s}=(0,u.WP)(),d=s?.[i]||l;return n[0]!==r||n[1]!==d?(t=(0,a.jsx)(u.GD,{element:d,children:r}),n[0]=r,n[1]=d,n[2]=t):t=n[2],t}function Hu(e){var t;let n,r,i,l,d,c,p,m,h,f,g=(0,o.c)(27),{metadata:x,panelPortalElementId:b,onDocumentChange:v,documentTitle:j}=e,{t:w}=iJ(Ht);g[0]!==x?(n=`${t=x.host,`https://${t??He?"create-staging.sanity.build":"www.sanity.io"}/app/create`}/${x.dataset}/${x._id}`,g[0]=x,g[1]=n):n=g[1];let _=n,k=Hs();g[2]!==k?(r=()=>k.documentOpened(),g[2]=k,g[3]=r):r=g[3];
3175let S=r,[T,I]=(0,s.useState)(!1);g[4]!==k?(i=()=>{I(!0),k.unlinkCtaClicked()},g[4]=k,g[5]=i):i=g[5];let E=i;g[6]===Symbol.for("react.memo_cache_sentinel")?(l=()=>I(!1),g[6]=l):l=g[6];let $=l;return g[7]!==w?(d=w("edit-in-create-button.text"),g[7]=w,g[8]=d):d=g[8],g[9]!==_||g[10]!==S||g[11]!==d?(c=(0,a.jsx)(y.$n,{as:"a",text:d,iconRight:C.ZPM,mode:"ghost",href:_,target:"_blank",onClick:S}),g[9]=_,g[10]=S,g[11]=d,g[12]=c):c=g[12],g[13]!==w?(p=w("unlink-from-create-button.text"),g[13]=w,g[14]=p):p=g[14],g[15]!==E||g[16]!==p?(m=(0,a.jsx)(y.$n,{text:p,onClick:E}),g[15]=E,g[16]=p,g[17]=m):m=g[17],g[18]!==j||g[19]!==v||g[20]!==b||g[21]!==T?(h=T&&(0,a.jsx)(Hc,{portalElementId:b,children:(0,a.jsx)(Hd,{onClose:$,onDocumentChange:v,documentTitle:j})}),g[18]=j,g[19]=v,g[20]=b,g[21]=T,g[22]=h):h=g[22],g[23]!==c||g[24]!==m||g[25]!==h?(f=(0,a.jsxs)(u.so,{gap:2,children:[c,m,h]}),g[23]=c,g[24]=m,g[25]=h,g[26]=f):f=g[26],f}let Hp=(0,s.forwardRef)(function(e,t){let n,r,i=(0,o.c)(5),{t:l}=iJ(Ht);return i[0]!==l?(n=l("start-in-create-dialog.cta.learn-more"),i[0]=l,i[1]=n):n=i[1],i[2]!==t||i[3]!==n?(r=(0,a.jsx)(y.$n,{as:"a",href:"https://snty.link/create-docs?ref=studio",target:"_blank",ref:t,text:n,mode:"bleed",tone:"primary",iconRight:C.ZPM}),i[2]=t,i[3]=n,i[4]=r):r=i[4],r});function Hm(){let e,t,n,r,i,l,s,d=(0,o.c)(7);return d[0]===Symbol.for("react.memo_cache_sentinel")?(e={display:"block"},t=(0,a.jsxs)("g",{children:[(0,a.jsx)("rect",{width:"307",height:"201",fill:"url(#paint0_radial_38_7016)"}),(0,a.jsx)("path",{d:"M168.5 -0.5V-1H167.5V-0.5H168.5ZM167.646 174.854C167.842 175.049 168.158 175.049 168.354 174.854L171.536 171.672C171.731 171.476 171.731 171.16 171.536 170.964C171.34 170.769 171.024 170.769 170.828 170.964L168 173.793L165.172 170.964C164.976 170.769 164.66 170.769 164.464 170.964C164.269 171.16 164.269 171.476 164.464 171.672L167.646 174.854ZM167.5 -0.5V174.5H168.5V-0.5H167.5Z",fill:"url(#paint1_linear_38_7016)"}),(0,a.jsx)("path",{d:"M251 37.5H352C353.381 37.5 354.5 38.6193 354.5 40V64C354.5 65.3807 353.381 66.5 352 66.5H251C249.619 66.5 248.5 65.3807 248.5 64V40C248.5 38.6193 249.619 37.5 251 37.5Z",fill:"#181410",stroke:"#F9BC15"}),(0,a.jsx)("path",{d:"M251 104.5H352C353.381 104.5 354.5 105.619 354.5 107V210C354.5 211.381 353.381 212.5 352 212.5H251C249.619 212.5 248.5 211.381 248.5 210V107C248.5 105.619 249.619 104.5 251 104.5Z",fill:"#071715",stroke:"#0FF0A1"}),(0,a.jsx)("path",{d:"M58.7803 20C58.7803 16.6863 61.4666 14 64.7803 14H135.484C138.797 14 141.484 16.6863 141.484 20V23.1429C141.484 26.4566 138.797 29.1429 135.484 29.1429H64.7803C61.4666 29.1429 58.7803 26.4566 58.7803 23.1429V20Z",fill:"#0FF0A1"}),(0,a.jsx)("path",{d:"M25 50.2857C25 46.972 27.6863 44.2857 31 44.2857H148.297C151.61 44.2857 154.297 46.972 154.297 50.2857V53.4286C154.297 56.7423 151.61 59.4286 148.297 59.4286H31C27.6863 59.4286 25 56.7423 25 53.4286V50.2857Z",fill:"#F9BC15"}),(0,a.jsx)("path",{d:"M25 80.5714C25 77.2577 27.6863 74.5714 31 74.5714H141.308C144.621 74.5714 147.308 77.2577 147.308 80.5714V114C147.308 117.314 144.621 120 141.308 120H31C27.6863 120 25 117.314 25 114V80.5714Z",fill:"#0FF0A1"}),(0,a.jsx)("path",{d:"M28.4941 21.5714C28.4941 19.3198 30.3194 17.4945 32.5711 17.4945H51.2084C53.46 17.4945 55.2853 19.3198 55.2853 21.5714V21.5714C55.2853 23.8231 53.46 25.6484 51.2084 25.6484H32.5711C30.3194 25.6484 28.4941 23.8231 28.4941 21.5714V21.5714Z",fill:"#383D51"}),(0,a.jsx)("path",{d:"M28.4941 82.1429C28.4941 79.8912 30.3194 78.0659 32.5711 78.0659H46.5491C48.8007 78.0659 50.626 79.8912 50.626 82.1429V82.1429C50.626 84.3945 48.8007 86.2198 46.5491 86.2198H32.5711C30.3194 86.2198 28.4941 84.3945 28.4941 82.1429V82.1429Z",fill:"#015133"}),(0,a.jsx)("path",{d:"M62.2744 21.5714C62.2744 19.3198 64.0997 17.4945 66.3513 17.4945H100.132C102.383 17.4945 104.208 19.3198 104.208 21.5714V21.5714C104.208 23.8231 102.383 25.6484 100.132 25.6484H66.3513C64.0997 25.6484 62.2744 23.8231 62.2744 21.5714V21.5714Z",fill:"#015133"}),(0,a.jsx)("path",{d:"M111.198 21.5714C111.198 19.3198 113.024 17.4945 115.275 17.4945H133.913C136.164 17.4945 137.989 19.3198 137.989 21.5714V21.5714C137.989 23.8231 136.164 25.6484 133.913 25.6484H115.275C113.024 25.6484 111.198 23.8231 111.198 21.5714V21.5714Z",fill:"#015133"}),(0,a.jsx)("path",{d:"M28.4941 36.7143C28.4941 34.4627 30.3194 32.6374 32.5711 32.6374H86.1535C88.4051 32.6374 90.2304 34.4627 90.2304 36.7143V36.7143C90.2304 38.9659 88.4051 40.7912 86.1535 40.7912H32.5711C30.3194 40.7912 28.4941 38.9659 28.4941 36.7143V36.7143Z",fill:"#383D51"}),(0,a.jsx)("path",{d:"M97.2197 36.7143C97.2197 34.4627 99.045 32.6374 101.297 32.6374H131.582C133.834 32.6374 135.659 34.4627 135.659 36.7143V36.7143C135.659 38.9659 133.834 40.7912 131.582 40.7912H101.297C99.045 40.7912 97.2197 38.9659 97.2197 36.7143V36.7143Z",fill:"#383D51"}),(0,a.jsx)("path",{d:"M28.4941 51.8571C28.4941 49.6055 30.3194 47.7802 32.5711 47.7802H66.3513C68.6029 47.7802 70.4282 49.6055 70.4282 51.8571V51.8571C70.4282 54.1088 68.6029 55.9341 66.3513 55.9341H32.5711C30.3194 55.9341 28.4941 54.1088 28.4941 51.8571V51.8571Z",fill:"#965908"}),(0,a.jsx)("path",{d:"M77.418 51.8571C77.418 49.6055 79.2433 47.7802 81.4949 47.7802H146.726C148.977 47.7802 150.803 49.6055 150.803 51.8571V51.8571C150.803 54.1088 148.977 55.9341 146.726 55.9341H81.4949C79.2433 55.9341 77.418 54.1088 77.418 51.8571V51.8571Z",fill:"#965908"}),(0,a.jsx)("path",{d:"M57.6152 82.1429C57.6152 79.8912 59.4405 78.0659 61.6922 78.0659H126.923C129.175 78.0659 131 79.89
317512 131 82.1429V82.1429C131 84.3945 129.175 86.2198 126.923 86.2198H61.6922C59.4405 86.2198 57.6152 84.3945 57.6152 82.1429V82.1429Z",fill:"#015133"}),(0,a.jsx)("path",{d:"M28.4941 67C28.4941 64.7484 30.3194 62.9231 32.5711 62.9231H57.0326C59.2842 62.9231 61.1095 64.7484 61.1095 67V67C61.1095 69.2516 59.2842 71.0769 57.0326 71.0769H32.5711C30.3194 71.0769 28.4941 69.2516 28.4941 67V67Z",fill:"#383D51"}),(0,a.jsx)("path",{d:"M28.4941 97.2857C28.4941 95.0341 30.3194 93.2088 32.5711 93.2088H93.1425C95.3941 93.2088 97.2194 95.0341 97.2194 97.2857V97.2857C97.2194 99.5373 95.3941 101.363 93.1425 101.363H32.5711C30.3194 101.363 28.4941 99.5373 28.4941 97.2857V97.2857Z",fill:"#015133"}),(0,a.jsx)("path",{d:"M28.4941 112.429C28.4941 110.177 30.3194 108.352 32.5711 108.352H135.077C137.328 108.352 139.153 110.177 139.153 112.429V112.429C139.153 114.68 137.328 116.505 135.077 116.505H32.5711C30.3194 116.505 28.4941 114.68 28.4941 112.429V112.429Z",fill:"#015133"}),(0,a.jsx)("path",{d:"M68.0986 67C68.0986 64.7484 69.9239 62.9231 72.1756 62.9231H109.45C111.702 62.9231 113.527 64.7484 113.527 67V67C113.527 69.2516 111.702 71.0769 109.45 71.0769H72.1756C69.9239 71.0769 68.0986 69.2516 68.0986 67V67Z",fill:"#383D51"}),(0,a.jsx)("path",{d:"M104.209 97.2857C104.209 95.0341 106.034 93.2088 108.286 93.2088H139.736C141.988 93.2088 143.813 95.0341 143.813 97.2857V97.2857C143.813 99.5373 141.988 101.363 139.736 101.363H108.286C106.034 101.363 104.209 99.5373 104.209 97.2857V97.2857Z",fill:"#015133"}),(0,a.jsx)("path",{d:"M120.517 67C120.517 64.7484 122.342 62.9231 124.594 62.9231H140.901C143.153 62.9231 144.978 64.7484 144.978 67V67C144.978 69.2516 143.153 71.0769 140.901 71.0769H124.594C122.342 71.0769 120.517 69.2516 120.517 67V67Z",fill:"#383D51"}),(0,a.jsx)("path",{d:"M28.4941 203.143C28.4941 200.891 30.3194 199.066 32.5711 199.066H46.5491C48.8007 199.066 50.626 200.891 50.626 203.143V203.143C50.626 205.394 48.8007 207.22 46.5491 207.22H32.5711C30.3194 207.22 28.4941 205.394 28.4941 203.143V203.143Z",fill:"#383D51"}),(0,a.jsx)("path",{d:"M28.4941 142.571C28.4941 140.32 30.3194 138.495 32.5711 138.495H133.912C136.163 138.495 137.988 140.32 137.988 142.571V142.571C137.988 144.823 136.163 146.648 133.912 146.648H32.5711C30.3194 146.648 28.4941 144.823 28.4941 142.571V142.571Z",fill:"#383D51"}),(0,a.jsx)("path",{d:"M28.4941 157.714C28.4941 155.463 30.3194 153.637 32.5711 153.637H51.2082C53.4599 153.637 55.2852 155.463 55.2852 157.714V157.714C55.2852 159.966 53.4599 161.791 51.2082 161.791H32.5711C30.3194 161.791 28.4941 159.966 28.4941 157.714V157.714Z",fill:"#383D51"}),(0,a.jsx)("path",{d:"M63.1094 157.714C63.1094 155.463 64.9347 153.637 67.1863 153.637H140.902C143.153 153.637 144.979 155.463 144.979 157.714V157.714C144.979 159.966 143.153 161.791 140.902 161.791H67.1863C64.9347 161.791 63.1094 159.966 63.1094 157.714V157.714Z",fill:"#383D51"}),(0,a.jsx)("path",{d:"M28.4941 172.857C28.4941 170.606 30.3194 168.78 32.5711 168.78H41.4231C43.6747 168.78 45.5 170.606 45.5 172.857V172.857C45.5 175.109 43.6747 176.934 41.4231 176.934H32.5711C30.3194 176.934 28.4941 175.109 28.4941 172.857V172.857Z",fill:"#383D51"}),(0,a.jsx)("path",{d:"M52.875 172.857C52.875 170.606 54.7003 168.78 56.9519 168.78H146.725C148.976 168.78 150.802 170.606 150.802 172.857V172.857C150.802 175.109 148.976 176.934 146.725 176.934H56.9519C54.7003 176.934 52.875 175.109 52.875 172.857V172.857Z",fill:"#383D51"}),(0,a.jsx)("path",{d:"M57.6152 203.143C57.6152 200.891 59.4405 199.066 61.6922 199.066H126.923C129.175 199.066 131 200.891 131 203.143V203.143C131 205.394 129.175 207.22 126.923 207.22H61.6922C59.4405 207.22 57.6152 205.394 57.6152 203.143V203.143Z",fill:"#383D51"}),(0,a.jsx)("path",{d:"M28.4941 188C28.4941 185.748 30.3194 183.923 32.5711 183.923H86.1537C88.4053 183.923 90.2306 185.748 90.2306 188V188C90.2306 190.252 88.4053 192.077 86.1537 192.077H32.5711C30.3194 192.077 28.4941 190.252 28.4941 188V188Z",fill:"#383D51"}),(0,a.jsx)("path",{d:"M97.2197 188C97.2197 185.748 99.045 183.923 101.297 183.923H138.571C140.823 183.923 142.648 185.748 142.648 188V188C142.648 190.252 140.823 192.077 138.571 192.077H101.297C99.045 192.077 97.2197 190.252 97.2197 188V188Z",fill:"#383D51"}),(0,a.jsx)("path",{d:"M254.062 29H251.145V19.5455H254.192C255.109 19.5455 255.894 19.7347 256.546 20.1133C257.199 20.4888 257.699 21.0289 258.047 21.7337C258.394 22.4354 258.568 23.2756 258.568 24.2543C258.568 25.2391 258.393 26.087 258.042 26.7979C257.691 27.5058 257.18 28.0505 256.509 28.4322C255.838 28.8107 255.023 29 254.062 29ZM252.29 27.9844H253.989C254.77 27.9844 255.418 27.8336 255.932 27.532C256.446 27.2304 256.829 26.801 257.082 26.244C257.334 25.6869 257.46 25.0237 257.46 24.2543C257.46 23.491 257.336 22.8339 257.086 22.283C256.837 21.729 256.465 21.3043 255.969 21.0089C255.474 20.7103 254.857 20.5611 254.118 20.5611H252.29V27.9844ZM263.314 29.1477C262.631 29.1477 262.041 28.9969 261.546 28.6953C261.053 28.3906 260.673 27.9659 260.406 27.4212C260.141 26.8733 260.009 26.2363 260.009 25.5099C260.009 24.7836 260.141 24.1435 260.406 23.5895C260.673 23.0324 261.046 22.5985 261.523 22.2876C262.003 21.9737 262.563 21.8168 263.203 21.8168C263.572 21.8168 263.937 21.8783 264.297 22.0014C264.657 22.1245 264.985 22.3246 265.281 22.6016C265.576 22.8755 265.811 23.2386 265.987 23.6911C266.162 24.1435 266.25 24.7005 266.25 25.3622V25.8239H260.784V24.8821H265.142C2
317565.142 24.482 265.062 24.125 264.902 23.8111C264.745 23.4972 264.52 23.2494 264.228 23.0678C263.939 22.8862 263.597 22.7955 263.203 22.7955C262.769 22.7955 262.394 22.9032 262.077 23.1186C261.763 23.331 261.521 23.608 261.352 23.9496C261.183 24.2912 261.098 24.6574 261.098 25.0483V25.6761C261.098 26.2116 261.19 26.6656 261.375 27.038C261.563 27.4073 261.823 27.6889 262.155 27.8828C262.488 28.0736 262.874 28.169 263.314 28.169C263.6 28.169 263.859 28.129 264.089 28.049C264.323 27.9659 264.525 27.8428 264.694 27.6797C264.864 27.5135 264.994 27.3073 265.087 27.0611L266.139 27.3565C266.028 27.7135 265.842 28.0275 265.581 28.2983C265.319 28.5661 264.996 28.7753 264.611 28.9261C264.226 29.0739 263.794 29.1477 263.314 29.1477ZM272.93 23.4972L271.951 23.7741C271.89 23.611 271.799 23.4525 271.679 23.2987C271.562 23.1417 271.402 23.0124 271.199 22.9109C270.996 22.8093 270.736 22.7585 270.419 22.7585C269.985 22.7585 269.623 22.8585 269.334 23.0586C269.048 23.2556 268.904 23.5064 268.904 23.8111C268.904 24.0819 269.003 24.2958 269.2 24.4528C269.397 24.6097 269.705 24.7405 270.123 24.8452L271.176 25.1037C271.81 25.2576 272.282 25.493 272.593 25.81C272.904 26.1239 273.059 26.5286 273.059 27.0241C273.059 27.4304 272.942 27.7936 272.708 28.1136C272.478 28.4337 272.154 28.6861 271.739 28.8707C271.324 29.0554 270.84 29.1477 270.289 29.1477C269.566 29.1477 268.968 28.9908 268.494 28.6768C268.02 28.3629 267.72 27.9044 267.593 27.3011L268.627 27.0426C268.726 27.4242 268.912 27.7105 269.186 27.9013C269.463 28.0921 269.825 28.1875 270.271 28.1875C270.779 28.1875 271.182 28.0798 271.48 27.8643C271.782 27.6458 271.933 27.3842 271.933 27.0795C271.933 26.8333 271.847 26.6271 271.674 26.4609C271.502 26.2917 271.237 26.1655 270.88 26.0824L269.699 25.8054C269.049 25.6515 268.572 25.413 268.267 25.0898C267.966 24.7636 267.815 24.3558 267.815 23.8665C267.815 23.4664 267.927 23.1125 268.152 22.8047C268.38 22.4969 268.689 22.2553 269.08 22.0799C269.474 21.9045 269.92 21.8168 270.419 21.8168C271.12 21.8168 271.671 21.9706 272.071 22.2784C272.475 22.5862 272.761 22.9924 272.93 23.4972ZM277.58 29.1477C276.915 29.1477 276.343 28.9908 275.863 28.6768C275.383 28.3629 275.013 27.9305 274.755 27.3796C274.496 26.8287 274.367 26.1993 274.367 25.4915C274.367 24.7713 274.499 24.1358 274.764 23.5849C275.032 23.0309 275.404 22.5985 275.881 22.2876C276.361 21.9737 276.921 21.8168 277.562 21.8168C278.06 21.8168 278.509 21.9091 278.91 22.0938C279.31 22.2784 279.637 22.5369 279.893 22.8693C280.148 23.2017 280.307 23.5895 280.368 24.0327H279.279C279.196 23.7095 279.011 23.4233 278.725 23.174C278.442 22.9216 278.06 22.7955 277.58 22.7955C277.155 22.7955 276.783 22.9062 276.463 23.1278C276.146 23.3464 275.898 23.6557 275.72 24.0558C275.544 24.4528 275.456 24.919 275.456 25.4545C275.456 26.0024 275.543 26.4794 275.715 26.8857C275.89 27.2919 276.137 27.6074 276.454 27.832C276.774 28.0567 277.149 28.169 277.58 28.169C277.863 28.169 278.12 28.1198 278.351 28.0213C278.582 27.9228 278.777 27.7812 278.937 27.5966C279.097 27.4119 279.211 27.1903 279.279 26.9318H280.368C280.307 27.3504 280.154 27.7274 279.911 28.0629C279.671 28.3952 279.353 28.6599 278.956 28.8569C278.562 29.0508 278.103 29.1477 277.58 29.1477ZM281.961 29V21.9091H283.014V22.9801H283.087C283.217 22.6293 283.451 22.3446 283.789 22.1261C284.128 21.9076 284.509 21.7983 284.934 21.7983C285.014 21.7983 285.114 21.7998 285.234 21.8029C285.354 21.806 285.445 21.8106 285.506 21.8168V22.9247C285.47 22.9155 285.385 22.9016 285.253 22.8832C285.123 22.8616 284.986 22.8509 284.842 22.8509C284.497 22.8509 284.189 22.9232 283.918 23.0678C283.651 23.2094 283.438 23.4064 283.281 23.6587C283.127 23.908 283.051 24.1927 283.051 24.5128V29H281.961ZM286.798 29V21.9091H287.887V29H286.798ZM287.352 20.7273C287.14 20.7273 286.956 20.6549 286.803 20.5103C286.652 20.3656 286.576 20.1918 286.576 19.9886C286.576 19.7855 286.652 19.6116 286.803 19.467C286.956 19.3223 287.14 19.25 287.352 19.25C287.564 19.25 287.746 19.3223 287.897 19.467C288.051 19.6116 288.127 19.7855 288.127 19.9886C288.127 20.1918 288.051 20.3656 287.897 20.5103C287.746 20.6549 287.564 20.7273 287.352 20.7273ZM289.883 31.6591V21.9091H290.935V23.0355H291.065C291.145 22.9124 291.256 22.7554 291.397 22.5646C291.542 22.3707 291.748 22.1984 292.016 22.0476C292.287 21.8937 292.653 21.8168 293.114 21.8168C293.711 21.8168 294.238 21.9
317566 294.693 22.2646C295.149 22.5631 295.504 22.9863 295.76 23.5341C296.015 24.0819 296.143 24.7282 296.143 25.473C296.143 26.224 296.015 26.8749 295.76 27.4258C295.504 27.9736 295.15 28.3983 294.698 28.6999C294.245 28.9985 293.724 29.1477 293.133 29.1477C292.677 29.1477 292.313 29.0723 292.039 28.9215C291.765 28.7676 291.554 28.5937 291.406 28.3999C291.259 28.2029 291.145 28.0398 291.065 27.9105H290.972V31.6591H289.883ZM290.954 25.4545C290.954 25.9901 291.032 26.4625 291.189 26.8718C291.346 27.2781 291.576 27.5966 291.877 27.8274C292.179 28.0552 292.548 28.169 292.985 28.169C293.441 28.169 293.821 28.049 294.125 27.8089C294.433 27.5658 294.664 27.2396 294.818 26.8303C294.975 26.4179 295.053 25.9593 295.053 25.4545C295.053 24.956 294.976 24.5066 294.823 24.1065C294.672 23.7034 294.442 23.3848 294.135 23.1509C293.83 22.9139 293.447 22.7955 292.985 22.7955C292.542 22.7955 292.17 22.9078 291.868 23.1325C291.566 23.354 291.339 23.6649 291.185 24.065C291.031 24.462 290.954 24.9252 290.954 25.4545ZM300.889 21.9091V22.8324H297.214V21.9091H300.889ZM298.285 20.2102H299.374V26.9688C299.374 27.2765 299.419 27.5073 299.508 27.6612C299.601 27.812 299.718 27.9136 299.859 27.9659C300.004 28.0152 300.156 28.0398 300.316 28.0398C300.436 28.0398 300.535 28.0336 300.612 28.0213C300.689 28.0059 300.75 27.9936 300.796 27.9844L301.018 28.9631C300.944 28.9908 300.841 29.0185 300.709 29.0462C300.576 29.0769 300.408 29.0923 300.205 29.0923C299.898 29.0923 299.596 29.0262 299.301 28.8938C299.008 28.7615 298.765 28.5599 298.571 28.2891C298.38 28.0182 298.285 27.6766 298.285 27.2642V20.2102ZM302.527 29V21.9091H303.617V29H302.527ZM303.081 20.7273C302.869 20.7273 302.686 20.6549 302.532 20.5103C302.381 20.3656 302.306 20.1918 302.306 19.9886C302.306 19.7855 302.381 19.6116 302.532 19.467C302.686 19.3223 302.869 19.25 303.081 19.25C303.294 19.25 303.475 19.3223 303.626 19.467C303.78 19.6116 303.857 19.7855 303.857 19.9886C303.857 20.1918 303.78 20.3656 303.626 20.5103C303.475 20.6549 303.294 20.7273 303.081 20.7273ZM308.493 29.1477C307.853 29.1477 307.291 28.9954 306.808 28.6907C306.328 28.386 305.952 27.9598 305.682 27.4119C305.414 26.8641 305.28 26.224 305.28 25.4915C305.28 24.7528 305.414 24.1081 305.682 23.5572C305.952 23.0063 306.328 22.5785 306.808 22.2738C307.291 21.9691 307.853 21.8168 308.493 21.8168C309.133 21.8168 309.693 21.9691 310.173 22.2738C310.657 22.5785 311.032 23.0063 311.3 23.5572C311.571 24.1081 311.706 24.7528 311.706 25.4915C311.706 26.224 311.5
317571 26.8641 311.3 27.4119C311.032 27.9598 310.657 28.386 310.173 28.6907C309.693 28.9954 309.133 29.1477 308.493 29.1477ZM308.493 28.169C308.979 28.169 309.379 28.0444 309.693 27.7951C310.007 27.5458 310.24 27.218 310.39 26.8118C310.541 26.4055 310.617 25.9654 310.617 25.4915C310.617 25.0175 310.541 24.5759 310.39 24.1665C310.24 23.7572 310.007 23.4264 309.693 23.174C309.379 22.9216 308.979 22.7955 308.493 22.7955C308.007 22.7955 307.607 22.9216 307.293 23.174C306.979 23.4264 306.747 23.7572 306.596 24.1665C306.445 24.5759 306.369 25.0175 306.369 25.4915C306.369 25.9654 306.445 26.4055 306.596 26.8118C306.747 27.218 306.979 27.5458 307.293 27.7951C307.607 28.0444 308.007 28.169 308.493 28.169ZM314.459 24.7344V29H313.369V21.9091H314.422V23.017H314.514C314.68 22.657 314.933 22.3677 315.271 22.1491C315.61 21.9276 316.047 21.8168 316.582 21.8168C317.062 21.8168 317.483 21.9152 317.843 22.1122C318.203 22.3061 318.483 22.6016 318.683 22.9986C318.883 23.3925 318.983 23.8911 318.983 24.4943V29H317.893V24.5682C317.893 24.0111 317.749 23.5772 317.459 23.2663C317.17 22.9524 316.773 22.7955 316.268 22.7955C315.921 22.7955 315.61 22.8709 315.336 23.0217C315.065 23.1725 314.851 23.3925 314.694 23.6818C314.537 23.9711 314.459 24.322 314.459 24.7344Z",fill:"#F9BC15"}),(0,a.jsx)("path",{d:"M251.145 96V86.5455H254.45C255.109 86.5455 255.652 86.6593 256.08 86.8871C256.508 87.1117 256.826 87.4149 257.036 87.7965C257.245 88.1751 257.349 88.5952 257.349 89.0568C257.349 89.4631 257.277 89.7985 257.132 90.0632C256.991 90.3279 256.803 90.5372 256.569 90.6911C256.338 90.8449 256.088 90.9588 255.817 91.0327V91.125C256.106 91.1435 256.397 91.245 256.689 91.4297C256.982 91.6143 257.226 91.879 257.423 92.2237C257.62 92.5684 257.719 92.9901 257.719 93.4886C257.719 93.9626 257.611 94.3888 257.396 94.7674C257.18 95.146 256.84 95.446 256.375 95.6676C255.911 95.8892 255.306 96 254.561 96H251.145ZM252.29 94.9844H254.561C255.309 94.9844 255.84 94.8397 256.154 94.5504C256.471 94.258 256.629 93.9041 256.629 93.4886C256.629 93.1686 256.548 92.8731 256.385 92.6023C256.221 92.3284 255.989 92.1098 255.688 91.9467C255.386 91.7805 255.029 91.6974 254.616 91.6974H252.29V94.9844ZM252.29 90.7003H254.413C254.758 90.7003 255.069 90.6326 255.346 90.4972C255.626 90.3617 255.848 90.1709 256.011 89.9247C256.177 89.6785 256.26 89.3892 256.26 89.0568C256.26 88.6413 256.115 88.2889 255.826 87.9996C255.537 87.7073 255.078 87.5611 254.45 87.5611H252.29V90.7003ZM262.333 96.1477C261.693 96.1477 261.131 95.9954 260.648 95.6907C260.168 95.386 259.792 94.9598 259.521 94.4119C259.254 93.8641 259.12 93.224 259.12 92.4915C259.12 91.7528 259.254 91.1081 259.521 90.5572C259.792 90.0063 260.168 89.5785 260.648 89.2738C261.131 88.9691 261.693 88.8168 262.333 88.8168C262.973 88.8168 263.533 88.9691 264.013 89.2738C264.497 89.5785 264.872 90.0063 265.14 90.5572C265.411 91.1081 265.546 91.7528 265.546 92.4915C265.546 93.224 265.411 93.8641 265.14 94.4119C264.872 94.9598 264.497 95.386 264.013 95.6907C263.533 95.9954 262.973 96.1477 262.333 96.1477ZM262.333 95.169C262.819 95.169 263.219 95.0444 263.533 94.7951C263.847 94.5458 264.079 94.218 264.23 93.8118C264.381 93.4055 264.456 92.9654 264.456 92.4915C264.456 92.0175 264.381 91.5759 264.23 91.1665C264.079 90.7572 263.847 90.4264 263.533 90.174C263.219 89.9216 262.819 89.7955 262.333 89.7955C261.847 89.7955 261.447 89.9216 261.133 90.174C260.819 90.4264 260.586 90.7572 260.436 91.1665C260.285 91.5759 260.209 92.0175 260.209 92.4915C260.209 92.9654 260.285 93.4055 260.436 93.8118C260.586 94.218 260.819 94.5458 261.133 94.7951C261.447 95.0444 261.847 95.169 262.333 95.169ZM269.887 96.1477C269.296 96.1477 268.774 95.9985 268.322 95.6999C267.869 95.3983 267.515 94.9736 267.26 94.4258C267.004 93.8749 266.877 93.224 266.877 92.473C266.877 91.7282 267.004 91.0819 267.26 90.5341C267.515 89.9863 267.871 89.5631 268.326 89.2646C268.782 88.966 269.308 88.8168 269.905 88.8168C270.367 88.8168 270.731 88.8937 270.999 89.0476C271.27 89.1984 271.476 89.3707 271.618 89.5646C271.762 89.7554 271.875 89.9124 271.955 90.0355H272.047V86.5455H273.137V96H272.084V94.9105H271.955C271.875 95.0398 271.761 95.2029 271.613 95.3999C271.465 95.5937 271.255 95.7676 270.981 95.9215C270.707 96.0723 270.342 96.1477 269.887 96.1477ZM270.034 95.169C270.471 95.169 270.841 95.0552 271.142 94.8274C271.444 94.5966 271.673 94.2781 271.83 93.8718C271.987 93.4625 272.066 92.9901 272.066 92.4545C272.066 91.9252 271.989 91.462 271.835 91.065C271.681 90.6649 271.453 90.354 271.152 90.1325C270.85 89.9078 270.478 89.7955 270.034 89.7955C269.573 89.7955 269.188 89.9139 268.88 90.1509C268.576 90.3848 268.346 90.7034 268.192 91.1065C268.042 91.5066 267.966 91.956 267.966 92.4545C267.966 92.9593 268.043 93.4179 268.197 93.8303C268.354 94.2396 268.585 94.5658 268.889 94.8089C269.197 95.049 269.579 95.169 270.034 95.169ZM275.985 98.6591C275.8 98.6591 275.636 98.6437 275.491 98.6129C275.346 98.5852 275.246 98.5575 275.191 98.5298L275.468 97.5696C275.733 97.6373 275.967 97.6619 276.17 97.6435C276.373 97.625 276.553 97.5342 276.71 97.3711C276.87 97.2111 277.016 96.951 277.148 96.5909L277.351 96.0369L274.729 88.9091H275.911L277.869 94.5597H277.942L279.9 88.9091H281.082L278.072 97.0341C277.936 97.4003 277.768 97.7035 277.568 97.9435C277.368 98.1867 277.136 98.3667 276.871 98.4837C276.61 98.6006 276.314 98.6591 275.985 98.6591Z",fill:"#04B97A"}),(0,a.jsx)("path",{d:"M164 22C164 24.2091 165.791 26 168 26C170.209 26 172 24.2091 172 22C172 19.7909 170.209 18 168 18C165.791 18 164 19.7909 164 22ZM238.53 -14.9697C238.823 -15.2626 238.823 -15.7374 238.53 -16.0303L233.757 -20.8033C233.464 -21.0962 232.99 -21.0962 232.697 -20.8033C232.404 -20.5104 232.404 -20.0355 232.697 -19.7426L236.939 -15.5L232.697 -11.2574C232.404 -10.9645 232.404 -10.4896 232.697 -10.1967C232.99 -9.90381 233.464 -9.90381 233.757 -10.1967L238.53 -14.9697ZM168 22.7
31755C168.007 22.75 168.013 22.75 168.02 22.75C168.026 22.75 168.033 22.75 168.039 22.75C168.046 22.75 168.052 22.75 168.059 22.75C168.066 22.75 168.072 22.75 168.079 22.75C168.086 22.75 168.092 22.75 168.099 22.75C168.106 22.75 168.112 22.75 168.119 22.75C168.126 22.75 168.133 22.75 168.139 22.75C168.146 22.75 168.153 22.75 168.16 22.75C168.167 22.75 168.173 22.75 168.18 22.75C168.187 22.75 168.194 22.75 168.201 22.75C168.208 22.75 168.215 22.75 168.222 22.75C168.229 22.75 168.235 22.75 168.242 22.75C168.249 22.75 168.256 22.75 168.263 22.75C168.27 22.75 168.277 22.75 168.284 22.75C168.291 22.75 168.298 22.75 168.306 22.75C168.313 22.75 168.32 22.75 168.327 22.75C168.334 22.75 168.341 22.75 168.348 22.75C168.355 22.75 168.362 22.75 168.37 22.75C168.377 22.75 168.384 22.75 168.391 22.75C168.398 22.75 168.406 22.75 168.413 22.75C168.42 22.75 168.427 22.75 168.435 22.75C168.442 22.75 168.449 22.75 168.457 22.75C168.464 22.75 168.471 22.75 168.479 22.75C168.486 22.75 168.493 22.75 168.501 22.75C168.508 22.75 168.516 22.75 168.523 22.75C168.53 22.75 168.538 22.75 168.545 22.75C168.553 22.75 168.56 22.75 168.568 22.75C168.575 22.75 168.583 22.75 168.59 22.75C168.598 22.75 168.605 22.75 168.613 22.75C168.621 22.75 168.628 22.75 168.636 22.75C168.643 22.75 168.651 22.75 168.659 22.75C168.666 22.75 168.674 22.75 168.682 22.75C168.689 22.75 168.697 22.75 168.705 22.75C168.712 22.75 168.72 22.75 168.728 22.75C168.736 22.75 168.743 22.75 168.751 22.75C168.759 22.75 168.767 22.75 168.775 22.75C168.782 22.75 168.79 22.75 168.798 22.75C168.806 22.75 168.814 22.75 168.822 22.75C168.83 22.75 168.838 22.75 168.845 22.75C168.853 22.75 168.861 22.75 168.869 22.75C168.877 22.75 168.885 22.75 168.893 22.75C168.901 22.75 168.909 22.75 168.917 22.75C168.925 22.75 168.933 22.75 168.941 22.75C168.949 22.75 168.958 22.75 168.966 22.75C168.974 22.75 168.982 22.75 168.99 22.75C168.998 22.75 169.006 22.75 169.014 22.75C169.023 22.75 169.031 22.75 169.039 22.75C169.047 22.75 169.055 22.75 169.064 22.75C169.072 22.75 169.08 22.75 169.088 22.75C169.097 22.75 169.105 22.75 169.113 22.75C169.122 22.75 169.13 22.75 169.138 22.75C169.147 22.75 169.155 22.75 169.163 22.75C169.172 22.75 169.18 22.75 169.188 22.75C169.197 22.75 169.205 22.75 169.214 22.75C169.222 22.75 169.231 22.75 169.239 22.75C169.248 22.75 169.256 22.75 169.265 22.75C169.273 22.75 169.282 22.75 169.29 22.75C169.299 22.75 169.307 22.75 169.316 22.75C169.324 22.75 169.333 22.75 169.342 22.75C169.35 22.75 169.359 22.75 169.367 22.75C169.376 22.75 169.385 22.75 169.393 22.75C169.402 22.75 169.411 22.75 169.419 22.75C169.428 22.75 169.437 22.75 169.446 22.75C169.454 22.75 169.463 22.75 169.472 22.75C169.481 22.75 169.489 22.75 169.498 22.75C169.507 22.75 169.516 22.75 169.525 22.75C169.534 22.75 169.542 22.75 169.551 22.75C169.56 22.75 169.569 22.75 169.578 22.75C169.587 22.75 169.596 22.75 169.605 22.75C169.614 22.75 169.623 22.75 169.632 22.7
31755C169.641 22.75 169.65 22.75 169.659 22.75C169.668 22.75 169.677 22.75 169.686 22.75C169.695 22.75 169.704 22.75 169.713 22.75C169.722 22.75 169.731 22.75 169.74 22.75C169.749 22.75 169.758 22.75 169.767 22.75C169.776 22.75 169.786 22.75 169.795 22.75C169.804 22.75 169.813 22.75 169.822 22.75C169.832 22.75 169.841 22.75 169.85 22.75C169.859 22.75 169.868 22.75 169.878 22.75C169.887 22.75 169.896 22.75 169.906 22.75C169.915 22.75 169.924 22.75 169.933 22.75C169.943 22.75 169.952 22.75 169.961 22.75C169.971 22.75 169.98 22.75 169.99 22.75C169.999 22.75 170.008 22.75 170.018 22.75C170.027 22.75 170.037 22.75 170.046 22.75C170.056 22.75 170.065 22.75 170.075 22.75C170.084 22.75 170.093 22.75 170.103 22.75C170.113 22.75 170.122 22.75 170.132 22.75C170.141 22.75 170.151 22.75 170.16 22.75C170.17 22.75 170.179 22.75 170.189 22.75C170.199 22.75 170.208 22.75 170.218 22.75C170.228 22.75 170.237 22.75 170.247 22.75C170.257 22.75 170.266 22.75 170.276 22.75C170.286 22.75 170.295 22.75 170.305 22.75C170.315 22.75 170.325 22.75 170.334 22.75C170.344 22.75 170.354 22.75 170.364 22.75C170.373 22.75 170.383 22.75 170.393 22.75C170.403 22.75 170.413 22.75 170.423 22.75C170.432 22.75 170.442 22.75 170.452 22.75C170.462 22.75 170.472 22.75 170.482 22.75C170.492 22.75 170.502 22.75 170.512 22.75C170.522 22.75 170.532 22.75 170.542 22.75C170.552 22.75 170.562 22.75 170.572 22.75C170.582 22.75 170.592 22.75 170.602 22.75C170.612 22.75 170.622 22.75 170.632 22.75C170.642 22.75 170.652 22.75 170.662 22.75C170.672 22.75 170.682 22.75 170.692 22.75C170.703 22.75 170.713 22.75 170.723 22.75C170.733 22.75 170.743 22.75 170.753 22.75C170.764 22.75 170.774 22.75 170.784 22.75C170.794 22.75 170.804 22.75 170.815 22.75C170.825 22.75 170.835 22.75 170.845 22.75C170.856 22.75 170.866 22.75 170.876 22.75C170.887 22.75 170.897 22.75 170.907 22.75C170.918 22.75 170.928 22.75 170.938 22.75C170.949 22.75 170.959 22.75 170.969 22.75C170.98 22.75 170.99 22.75 171.001 22.75C171.011 22.75 171.022 22.75 171.032 22.75C171.042 22.75 171.053 22.75 171.063 22.75C171.074 22.75 171.084 22.75 171.095 22.75C171.105 22.75 171.116 22.75 171.127 22.75C171.137 22.75 171.148 22.75 171.158 22.75C171.169 22.75 171.179 22.75 171.19 22.75C171.201 22.75 171.211 22.75 171.222 22.75C171.232 22.75 171.243 22.75 171.254 22.75C171.264 22.75 171.275 22.75 171.286 22.75C171.296 22.75 171.307 22.75 171.318 22.75C171.329 22.75 171.339 22.75 171.35 22.75C171.361 22.75 171.371 22.75 171.382 22.75C171.393 22.75 171.404 22.75 171.415 22.75C171.425 22.75 171.436 22.75 171.447 22.75C171.458 22.75 171.469 22.75 171.48 22.75C171.49 22.75 171.501 22.75 171.512 22.75C171.523 22.75 171.534 22.75 171.545 22.75C171.556 22.75 171.567 22.75 171.578 22.75C171.589 22.75 171.6 22.75 171.611 22.75C171.621 22.75 171.632 22.75 171.643 22.75C171.654 22.75 171.665 22.75 171.677 22.75C171.688 22.75 171.699 22.75 171.71 22.75C171.721 22.75 171.732 22.75 171.743 22.75C171.754 22.75 171.765 22.75 171.776 22.75C171.787 22.75 171.798 22.75 171.809 22.75C171.821 22.75 171.832 22.75 171.843 22.75C171.854 22.75 171.865 22.75 171.876 22.75C171.888 22.75 171.899 22.75 171.91 22.75C171.921 22.75 171.932 22.75 171.944 22.75C171.955 22.75 171.966 22.75 171.977 22.75C171.989 22.75 172 22.75 172.011 22.75C172.023 22.75 172.034 22.75 172.045 22.75C172.057 22.75 172.068 22.75 172.079 22.75C172.091 22.75 172.102 22.75 172.113 22.75C172.125 22.75 172.136 22.75 172.148 22.75C172.159 22.75 172.17 22.75 172.182 22.75C172.193 22.75 172.205 22.75 172.216 22.75C172.228 22.75 172.239 22.75 172.251 22.75C172.262 22.75 172.274 22.75 172.285 22.75C172.297 22.75 172.308 22.75 172.32 22.75C172.331 22.75 172.343 22.75 172.354 22.75C172.366 22.75 172.377 22.75 172.389 22.75C172.401 22.75 172.412 22.75 172.424 22.75C172.435 22.75 172.447 22.75 172.459 22.75C172.47 22.75 172.482 22.75 172.494 22.75C172.505 22.75 172.517 22.75 172.529 22.75C172.54 22.75 172.552 22.75 172.564 22.75C172.576 22.75 172.587 22.75 172.599 22.75C172.611 22.75 172.623 22.75 172.634 22.75C172.646 22.75 172.658 22.75 172.67 22.75C172.681 22.75 172.693 22.75 172.705 22.75C172.717 22.75 172.729 22.75 172.741 22.75C172.752 22.75 172.764 22.75 172.776 22.75C172.788 22.75 172.8 22.75 172.812 22.75C172.824 22.75 172.836 22.75 172.848 22.75C172.86 22.75 172.872 22.75 172.883 22.75C172.895 22.75 172.907 22.75 172.919 22.75C172.931 22.75 172.943 22.75 172.955 22.75C172.967 22.75 172.979 22.75 172.991 22.75C173.003 22.7
31755 173.015 22.75 173.027 22.75C173.04 22.75 173.052 22.75 173.064 22.75C173.076 22.75 173.088 22.75 173.1 22.75C173.112 22.75 173.124 22.75 173.136 22.75C173.148 22.75 173.161 22.75 173.173 22.75C173.185 22.75 173.197 22.75 173.209 22.75C173.221 22.75 173.234 22.75 173.246 22.75C173.258 22.75 173.27 22.75 173.282 22.75C173.295 22.75 173.307 22.75 173.319 22.75C173.331 22.75 173.344 22.75 173.356 22.75C173.368 22.75 173.38 22.75 173.393 22.75C173.405 22.75 173.417 22.75 173.43 22.75C173.442 22.75 173.454 22.75 173.467 22.75C173.479 22.75 173.491 22.75 173.504 22.75C173.516 22.75 173.529 22.75 173.541 22.75C173.553 22.75 173.566 22.75 173.578 22.75C173.591 22.75 173.603 22.75 173.615 22.75C173.628 22.75 173.64 22.75 173.653 22.75C173.665 22.75 173.678 22.75 173.69 22.75C173.703 22.75 173.715 22.75 173.728 22.75C173.74 22.75 173.753 22.75 173.765 22.75C173.778 22.75 173.79 22.75 173.803 22.75C173.816 22.75 173.828 22.75 173.841 22.75C173.853 22.75 173.866 22.75 173.878 22.75C173.891 22.75 173.904 22.75 173.916 22.75C173.929 22.75 173.942 22.75 173.954 22.75C173.967 22.75 173.98 22.75 173.992 22.75C174.005 22.75 174.018 22.75 174.03 22.75C174.043 22.75 174.056 22.75 174.068 22.75C174.081 22.75 174.094 22.75 174.107 22.75C174.119 22.75 174.132 22.75 174.145 22.75C174.158 22.75 174.17 22.75 174.183 22.75C174.196 22.75 174.209 22.75 174.222 22.75C174.234 22.75 174.247 22.75 174.26 22.75C174.273 22.75 174.286 22.75 174.299 22.75C174.312 22.75 174.324 22.75 174.337 22.75C174.35 22.75 174.3
317563 22.75 174.376 22.75C174.389 22.75 174.402 22.75 174.415 22.75C174.428 22.75 174.441 22.75 174.454 22.75C174.466 22.75 174.479 22.75 174.492 22.75C174.505 22.75 174.518 22.75 174.531 22.75C174.544 22.75 174.557 22.75 174.57 22.75C174.583 22.75 174.596 22.75 174.609 22.75C174.623 22.75 174.636 22.75 174.649 22.75C174.662 22.75 174.675 22.75 174.688 22.75C174.701 22.75 174.714 22.75 174.727 22.75C174.74 22.75 174.753 22.75 174.766 22.75C174.78 22.75 174.793 22.75 174.806 22.75C174.819 22.75 174.832 22.75 174.845 22.75C174.859 22.75 174.872 22.75 174.885 22.75C174.898 22.75 174.911 22.75 174.924 22.75C174.938 22.75 174.951 22.75 174.964 22.75C174.977 22.75 174.991 22.75 175.004 22.75C175.017 22.75 175.03 22.75 175.044 22.75C175.057 22.75 175.07 22.75 175.084 22.75C175.097 22.75 175.11 22.75 175.123 22.75C175.137 22.75 175.15 22.75 175.163 22.75C175.177 22.75 175.19 22.75 175.203 22.75C175.217 22.75 175.23 22.75 175.244 22.75C175.257 22.75 175.27 22.75 175.284 22.75C175.297 22.75 175.311 22.75 175.324 22.75C175.337 22.75 175.351 22.75 175.364 22.75C175.378 22.75 175.391 22.75 175.405 22.75C175.418 22.75 175.432 22.75 175.445 22.75C175.459 22.75 175.472 22.75 175.486 22.75C175.499 22.75 175.513 22.75 175.526 22.75C175.54 22.75 175.553 22.75 175.567 22.75C175.58 22.75 175.594 22.75 175.607 22.75C175.621 22.75 175.635 22.75 175.648 22.75C175.662 22.75 175.675 22.75 175.689 22.75C175.702 22.75 175.716 22.75 175.73 22.75C175.743 22.75 175.757 22.75 175.771 22.75C175.784 22.75 175.798 22.75 175.812 22.75C175.825 22.75 175.839 22.75 175.853 22.75C175.866 22.75 175.88 22.75 175.894 22.75C175.907 22.75 175.921 22.75 175.935 22.75C175.949 22.75 175.962 22.75 175.976 22.75C175.99 22.75 176.004 22.75 176.017 22.75C176.031 22.75 176.045 22.75 176.059 22.75C176.072 22.75 176.086 22.75 176.1 22.75C176.114 22.75 176.128 22.75 176.141 22.75C176.155 22.75 176.169 22.75 176.183 22.75C176.197 22.75 176.211 22.75 176.224 22.75C176.238 22.75 176.252 22.75 176.266 22.75C176.28 22.75 176.294 22.75 176.308 22.75C176.322 22.75 176.336 22.75 176.349 22.75C176.363 22.75 176.377 22.75 176.391 22.75C176.405 22.75 176.419 22.75 176.433 22.75C176.447 22.75 176.461 22.75 176.475 22.75C176.489 22.75 176.503 22.75 176.517 22.75C176.531 22.75 176.545 22.75 176.559 22.75C176.573 22.75 176.587 22.75 176.601 22.75C176.615 22.75 176.629 22.75 176.643 22.75C176.657 22.75 176.671 22.75 176.685 22.75C176.699 22.75 176.713 22.75 176.727 22.75C176.742 22.75 176.756 22.75 176.77 22.75C176.784 22.75 176.798 22.75 176.812 22.75C176.826 22.75 176.84 22.75 176.854 22.75C176.869 22.75 176.883 22.75 176.897 22.75C176.911 22.75 176.925 22.75 176.939 22.75C176.954 22.75 176.968 22.75 176.982 22.75C176.996 22.75 177.01 22.75 177.025 22.75C177.039 22.75 177.053 22.75 177.067 22.75C177.081 22.75 177.096 22.75 177.11 22.75C177.124 22.75 177.138 22.75 177.153 22.75C177.167 22.75 177.181 22.75 177.196 22.75C177.21 22.75 177.224 22.75 177.238 22.75C177.253 22.75 177.267 22.75 177.281 22.75C177.296 22.75 177.31 22.75 177.324 22.75C177.339 22.75 177.353 22.75 177.367 22.75C177.382 22.75 177.396 22.75 177.41 22.75C177.425 22.75 177.439 22.75 177.454 22.75C177.468 22.75 177.482 22.75 177.497 22.75C177.511 22.75 177.526 22.75 177.54 22.75C177.554 22.75 177.569 22.75 177.583 22.75C177.598 22.75 177.612 22.75 177.627 22.75C177.641 22.75 177.655 22.75 177.67 22.75C177.684 22.75 177.699 22.75 177.713 22.75C177.728 22.75 177.742 22.75 177.757 22.75C177.771 22.75 177.786 22.75 177.8 22.75C177.815 22.75 177.829 22.75 177.844 22.75C177.858 22.75 177.873 22.75 177.888 22.75C177.902 22.75 177.917 22.75 177.931 22.75C177.946 22.75 177.96 22.75 177.975 22.75C177.99 22.75 178.004 22.75 178.019 22.75C178.033 22.75 178.048 22.75 178.063 22.75C178.077 22.75 178.092 22.75 178.106 22.75C178.121 22.75 178.136 22.75 178.15 22.75C178.165 22.75 178.18 22.75 178.194 22.75C178.209 22.75 178.224 22.75 178.238 22.75C178.253 22.75 178.268 22.75 178.282 22.75C178.297 22.75 178.312 22.75 178.326 22.75C178.341 22.75 178.356 22.75 178.371 22.75C178.385 22.75 178.4 22.75 178.415 22.75C178.43 22.75 178.444 22.75 178.459 22.75C178.474 22.75 178.489 22.75 178.503 22.75C178.518 22.7
31755 178.533 22.75 178.548 22.75C178.563 22.75 178.577 22.75 178.592 22.75C178.607 22.75 178.622 22.75 178.637 22.75C178.651 22.75 178.666 22.75 178.681 22.75C178.696 22.75 178.711 22.75 178.726 22.75C178.74 22.75 178.755 22.75 178.77 22.75C178.785 22.75 178.8 22.75 178.815 22.75C178.83 22.75 178.844 22.75 178.859 22.75C178.874 22.75 178.889 22.75 178.904 22.75C178.919 22.75 178.934 22.75 178.949 22.75C178.964 22.75 178.979 22.75 178.994 22.75C179.009 22.75 179.023 22.75 179.038 22.75C179.053 22.75 179.068 22.75 179.083 22.75C179.098 22.75 179.113 22.75 179.128 22.75C179.143 22.75 179.158 22.75 179.173 22.75C179.188 22.75 179.203 22.75 179.218 22.75C179.233 22.75 179.248 22.75 179.263 22.75C179.278 22.75 179.293 22.75 179.308 22.75C179.323 22.75 179.338 22.75 179.353 22.75C179.369 22.75 179.384 22.75 179.399 22.75C179.414 22.75 179.429 22.75 179.444 22.75C179.459 22.75 179.474 22.75 179.489 22.75C179.504 22.75 179.519 22.75 179.534 22.75C179.55 22.75 179.565 22.75 179.58 22.75C179.595 22.75 179.61 22.75 179.625 22.75C179.64 22.75 179.655 22.75 179.671 22.75C179.686 22.75 179.701 22.75 179.716 22.75C179.731 22.75 179.746 22.75 179.761 22.75C179.777 22.75 179.792 22.75 179.807 22.75C179.822 22.75 179.837 22.75 179.853 22.75C179.868 22.75 179.883 22.75 179.898 22.75C179.913 22.75 179.929 22.75 179.944 22.75C179.959 22.75 179.974 22.75 179.99 22.75C180.005 22.75 180.02 22.75 180.035 22.75C180.051 22.75 180.066 22.75 180.081 22.75C180.096 22.75 180.112 22.75 180.127 22.75C180.142 22.75 180.157 22.75 180.173 22.75C180.188 22.75 180.203 22.75 180.219 22.75C180.234 22.75 180.249 22.75 180.265 22.75C180.28 22.75 180.295 22.75 180.311 22.75C180.326 22.75 180.341 22.75 180.357 22.75C180.372 22.75 180.387 22.75 180.403 22.75C180.418 22.75 180.433 22.75 180.449 22.75C180.464 22.75 180.479 22.75 180.495 22.75C180.51 22.75 180.526 22.75 180.541 22.75C180.556 22.75 180.572 22.75 180.587 22.75C180.603 22.75 180.618 22.75 180.633 22.75C180.649 22.75 180.664 22.75 180.68 22.75C180.695 22.75 180.71 22.75 180.726 22.75C180.741 22.75 180.757 22.75 180.772 22.75C180.788 22.75 180.803 22.75 180.819 22.75C180.834 22.75 180.85 22.75 180.865 22.75C180.88 22.75 180.896 22.75 180.911 22.75C180.927 22.75 180.942 22.75 180.958 22.75C180.973 22.75 180.989 22.75 181.004 22.75C181.02 22.75 181.035 22.75 181.051 22.75C181.066 22.75 181.082 22.75 181.097 22.75C181.113 22.75 181.129 22.75 181.144 22.75C181.16 22.75 181.175 22.75 181.191 22.75C181.206 22.75 181.222 22.75 181.237 22.75C181.253 22.75 181.269 22.75 181.284 22.75C181.3 22.75 181.315 22.75 181.331 22.75C181.346 22.75 181.362 22.75 181.378 22.75C181.393 22.75 181.409 22.75 181.424 22.75C181.44 22.75 181.456 22.75 181.471 22.75C181.487 22.75 181.503 22.75 181.518 22.75C181.534 22.75 181.549 22.75 181.565 22.75C181.581 22.75 181.596 22.75 181.612 22.75C181.628 22.75 181.643 22.75 181.659 22.75C181.675 22.75 181.69 22.75 181.706 22.75C181.722 22.75 181.737 22.75 181.753 22.75C181.769 22.75 181.784 22.75 181.8 22.75C181.816 22.75 181.831 22.75 181.847 22.75C181.863 22.75 181.878 22.75 181.894 22.75C181.91 22.75 181.926 22.75 181.941 22.75C181.957 22.75 181.973 22.75 181.989 22.75C182.004 22.75 182.02 22.75 182.036 22.75C182.051 22.75 182.067 22.75 182.083 22.75C182.099 22.75 182.114 22.75 182.13 22.75C182.146 22.75 182.162 22.75 182.178 22.75C182.193 22.75 182.209 22.75 182.225 22.75C182.241 22.75 182.256 22.75 182.272 22.75C182.288 22.75 182.304 22.75 182.32 22.75C182.335 22.75 182.351 22.75 182.367 22.75C182.383 22.75 182.399 22.75 182.414 22.75C182.43 22.75 182.446 22.75 182.462 22.75C182.478 22.75 182.494 22.75 182.509 22.75C182.525 22.75 182.541 22.75 182.557 22.75C182.573 22.75 182.589 22.75 182.604 22.75C182.62 22.75 182.636 22.75 182.652 22.75C182.668 22.75 182.684 22.75 182.7 22.75C182.715 22.75 182.731 22.75 182.747 22.75C182.763 22.75 182.779 22.75 182.795 22.75C182.811 22.75 182.827 22.75 182.843 22.75C182.858 22.75 182.874 22.75 182.89 22.75C182.906 22.75 182.922 22.75 182.938 22.75C182.954 22.75 182.97 22.75 182.986 22.75C183.002 22.75 183.018 22.75 183.034 22.75C183.049 22.75 183.065 22.75 183.081 22.75C183.097 22.75 183.113 22.7
31755 183.129 22.75C183.145 22.75 183.161 22.75 183.177 22.75C183.193 22.75 183.209 22.75 183.225 22.75C183.241 22.75 183.257 22.75 183.273 22.75C183.289 22.75 183.305 22.75 183.321 22.75C183.337 22.75 183.353 22.75 183.369 22.75C183.385 22.75 183.401 22.75 183.417 22.75C183.433 22.75 183.449 22.75 183.465 22.75C183.481 22.75 183.497 22.75 183.513 22.75C183.529 22.75 183.545 22.75 183.561 22.75C183.577 22.75 183.593 22.75 183.609 22.75C183.625 22.75 183.641 22.75 183.657 22.75C183.673 22.75 183.689 22.75 183.705 22.75C183.721 22.75 183.737 22.75 183.753 22.75C183.769 22.75 183.785 22.75 183.801 22.75C183.817 22.75 183.833 22.75 183.849 22.75C183.865 22.75 183.882 22.75 183.898 22.75C183.914 22.75 183.93 22.75 183.946 22.75C183.962 22.75 183.978 22.75 183.994 22.75C184.01 22.75 184.026 22.75 184.042 22.75C184.058 22.75 184.074 22.75 184.091 22.75C184.107 22.75 184.123 22.75 184.139 22.75C184.155 22.75 184.171 22.75 184.187 22.75C184.203 22.75 184.219 22.75 184.236 22.75C184.252 22.75 184.268 22.75 184.284 22.75C184.3 22.75 184.316 22.75 184.332 22.75C184.348 22.75 184.365 22.75 184.381 22.75C184.397 22.75 184.413 22.75 184.429 22.75C184.445 22.75 184.461 22.75 184.478 22.75C184.494 22.75 184.51 22.75 184.526 22.75C184.542 22.75 184.558 22.75 184.574 22.75C184.591 22.75 184.607 22.75 184.623 22.75C184.639 22.75 184.655 22.75 184.671 22.75C184.688 22.75 184.704 22.75 184.72 22.75C184.736 22.75 184.752 22.75 184.768 22.75C184.785 22.75 184.801 22.75 184.817 22.75C184.833 22.75 184.849 22.75 184.866 22.75C184.882 22.75 184.898 22.75 184.914 22.75C184.93 22.75 184.947 22.75 184.963 22.75C184.979 22.75 184.995 22.75 185.011 22.75C185.028 22.75 185.044 22.75 185.06 22.75C185.076 22.75 185.093 22.75 185.109 22.75C185.125 22.75 185.141 22.75 185.157 22.75C185.174 22.75 185.19 22.75 185.206 22.75C185.222 22.75 185.239 22.75 185.255 22.75C185.271 22.75 185.287 22.75 185.304 22.75C185.32 22.75 185.336 22.75 185.352 22.75C185.369 22.75 185.385 22.75 185.401 22.75C185.417 22.75 185.434 22.7
31755 185.45 22.75C185.466 22.75 185.482 22.75 185.499 22.75C185.515 22.75 185.531 22.75 185.547 22.75C185.564 22.75 185.58 22.75 185.596 22.75C185.612 22.75 185.629 22.75 185.645 22.75C185.661 22.75 185.678 22.75 185.694 22.75C185.71 22.75 185.726 22.75 185.743 22.75C185.759 22.75 185.775 22.75 185.792 22.75C185.808 22.75 185.824 22.75 185.84 22.75C185.857 22.75 185.873 22.75 185.889 22.75C185.906 22.75 185.922 22.75 185.938 22.75C185.954 22.75 185.971 22.75 185.987 22.75C186.003 22.75 186.02 22.75 186.036 22.75C186.052 22.75 186.069 22.75 186.085 22.75C186.101 22.75 186.118 22.75 186.134 22.75C186.15 22.75 186.166 22.75 186.183 22.75C186.199 22.75 186.215 22.75 186.232 22.75C186.248 22.75 186.264 22.75 186.281 22.75C186.297 22.75 186.313 22.75 186.33 22.75C186.346 22.75 186.362 22.75 186.379 22.75C186.395 22.75 186.411 22.75 186.428 22.75C186.444 22.75 186.46 22.75 186.477 22.75C186.493 22.75 186.509 22.75 186.526 22.75C186.542 22.75 186.558 22.75 186.575 22.75C186.591 22.75 186.608 22.75 186.624 22.75C186.64 22.75 186.657 22.75 186.673 22.75C186.689 22.75 186.706 22.75 186.722 22.75C186.738 22.75 186.755 22.75 186.771 22.75C186.787 22.75 186.804 22.75 186.82 22.75C186.836 22.75 186.853 22.75 186.869 22.75C186.886 22.75 186.902 22.75 186.918 22.75C186.935 22.75 186.951 22.75 186.967 22.75C186.984 22.75 187 22.75 187.017 22.75C187.033 22.75 187.049 22.75 187.066 22.75C187.082 22.75 187.098 22.75 187.115 22.75C187.131 22.75 187.148 22.75 187.164 22.75C187.18 22.75 187.197 22.75 187.213 22.75C187.229 22.75 187.246 22.75 187.262 22.75C187.279 22.75 187.295 22.75 187.311 22.75C187.328 22.75 187.344 22.75 187.36 22.75C187.377 22.75 187.393 22.75 187.41 22.75C187.426 22.75 187.442 22.7
31755 187.459 22.75C187.475 22.75 187.492 22.75 187.508 22.75C187.524 22.75 187.541 22.75 187.557 22.75C187.574 22.75 187.59 22.75 187.606 22.75C187.623 22.75 187.639 22.75 187.656 22.75C187.672 22.75 187.688 22.75 187.705 22.75C187.721 22.75 187.738 22.75 187.754 22.75C187.77 22.75 187.787 22.75 187.803 22.75C187.82 22.75 187.836 22.75 187.852 22.75C187.869 22.75 187.885 22.75 187.902 22.75C187.918 22.75 187.934 22.75 187.951 22.75C187.967 22.75 187.984 22.75 188 22.75V21.25C187.984 21.25 187.967 21.25 187.951 21.25C187.934 21.25 187.918 21.25 187.902 21.25C187.885 21.25 187.869 21.25 187.852 21.25C187.836 21.25 187.82 21.25 187.803 21.25C187.787 21.25 187.77 21.25 187.754 21.25C187.738 21.25 187.721 21.25 187.705 21.25C187.688 21.25 187.672 21.25 187.656 21.25C187.639 21.25 187.623 21.25 187.606 21.25C187.59 21.25 187.574 21.25 187.557 21.25C187.541 21.25 187.524 21.25 187.508 21.25C187.492 21.25 187.475 21.25 187.459 21.25C187.442 21.25 187.426 21.25 187.41 21.25C187.393 21.25 187.377 21.25 187.36 21.25C187.344 21.25 187.328 21.25 187.311 21.25C187.295 21.25 187.279 21.25 187.262 21.25C187.246 21.25 187.229 21.25 187.213 21.25C187.197 21.25 187.18 21.25 187.164 21.25C187.148 21.25 187.131 21.25 187.115 21.25C187.098 21.25 187.082 21.25 187.066 21.25C187.049 21.25 187.033 21.25 187.017 21.25C187 21.25 186.984 21.25 186.967 21.25C186.951 21.25 186.935 21.25 186.918 21.25C186.902 21.25 186.886 21.25 186.869 21.25C186.853 21.25 186.836 21.25 186.82 21.25C186.804 21.25 186.787 21.25 186.771 21.25C186.755 21.25 186.738 21.25 186.722 21.25C186.706 21.25 186.689 21.25 186.673 21.25C186.657 21.25 186.64 21.25 186.624 21.25C186.608 21.25 186.591 21.25 186.575 21.25C186.558 21.25 186.542 21.25 186.526 21.25C186.509 21.25 186.493 21.25 186.477 21.25C186.46 21.25 186.444 21.25 186.428 21.25C186.411 21.25 186.395 21.25 186.379 21.25C186.362 21.25 186.346 21.25 186.33 21.25C186.313 21.25 186.297 21.25 186.281 21.25C186.264 21.25 186.248 21.25 186.232 21.25C186.215 21.25 186.199 21.25 186.183 21.25C186.166 21.25 186.15 21.25 186.134 21.25C186.118 21.25 186.101 21.25 186.085 21.25C186.069 21.25 186.052 21.25 186.036 21.25C186.02 21.25 186.003 21.25 185.987 21.25C185.971 21.25 185.954 21.25 185.938 21.25C185.922 21.25 185.906 21.25 185.889 21.25C185.873 21.25 185.857 21.25 185.84 21.25C185.824 21.25 185.808 21.25 185.792 21.25C185.775 21.25 185.759 21.25 185.743 21.25C185.726 21.25 185.71 21.25 185.694 21.25C185.678 21.25 185.661 21.25 185.645 21.25C185.629 21.25 185.612 21.25 185.596 21.25C185.58 21.25 185.564 21.25 185.547 21.25C185.531 21.25 185.515 21.25 185.499 21.25C185.482 21.25 185.466 21.25 185.45 21.25C185.434 21.25 185.417 21.25 185.401 21.25C185.385 21.25 185.369 21.25 185.352 21.25C185.336 21.25 185.32 21.25 185.304 21.25C185.287 21.25 185.271 21.25 185.255 21.25C185.239 21.25 185.222 21.25 185.206 21.25C185.19 21.25 185.174 21.25 185.157 21.25C185.141 21.25 185.125 21.25 185.109 21.25C185.093 21.25 185.076 21.25 185.06 21.25C185.044 21.25 185.028 21.25 185.011 21.25C184.995 21.25 184.979 21.25 184.963 21.25C184.947 21.25 184.93 21.25 184.914 21.25C184.898 21.25 184.882 21.25 184.866 21.25C184.849 21.25 184.833 21.25 184.817 21.25C184.801 21.25 184.785 21.25 184.768 21.25C184.752 21.25 184.736 21.25 184.72 21.25C184.704 21.25 184.688 21.25 184.671 21.25C184.655 21.25 184.639 21.25 184.623 21.25C184.607 21.25 184.591 21.25 184.574 21.25C184.558 21.25 184.542 21.25 184.526 21.25C184.51 21.25 184.494 21.25 184.478 21.25C184.461 21.25 184.445 21.25 184.429 21.25C184.413 21.25 184.397 21.25 184.381 21.25C184.365 21.25 184.348 21.25 184.332 21.25C184.316 21.25 184.3 21.25 184.284 21.25C184.268 21.25 184.252 21.25 184.236 21.25C184.219 21.25 184.203 21.25 184.187 21.25C184.171 21.25 184.155 21.25 184.139 21.25C184.123 21.25 184.107 21.25 184.091 21.25C184.074 21.25 184.058 21.25 184.042 21.25C184.026 21.25 184.01 21.25 183.994 21.25C183.978 21.25 183.962 21.25 183.946 21.25C183.93 21.25 183.914 21.25 183.898 21.25C183.882 21.25 183.865 21.25 183.849 21.25C183.833 21.25 183.817 21.25 183.801 21.25C183.785 21.25 183.769 21.25 183.753 21.25C183.737 21.25 183.721 21.25 183.705 21.25C183.689 21.25 183.673 21.25 183.657 21.25C183.641 21.25 183.625 21.25 183.609 21.25C183.593 21.25 183.577 21.25 183.561 21.25C183.545 21.25 183.529 21.25 183.513 21.25C183.497 21.25 183.481 21.25 183.465 21.25C183.449 21.25 183.433 21.25 183.417 21.25C183.401 21.25 183.385 21.25 183.369 21.25C183.353 21.25 183.337 21.25 183.321 21.25C183.305 21.25 183.289 21.25 183.273 21.25C183.257 21.25 183.241 21.25 183.225 21.25C183.209 21.25 183.193 21.25 183.177 21.25C183.161 21.25 183.145 21.25 183.129 21.25C183.113 21.25 183.097 21.25 183.081 21.25C183.065 21.25 183.049 21.25 183.034 21.25C183.018 21.25 183.002 21.25 182.986 21.25C182.97 21.25 182.954 21.25 182.938 21.25C182.922 21.25 182.906 21.25 182.89 21.25C182.874 21.25 182.858 21.25 182.843 21.25C182.827 21.25 182.811 21.25 182.795 21.25C182.779 21.25 182.763 21.25 182.747 21.25C182.731 21.25 182.715 21.25 182.7 21.25C182.684 21.25 182.668 21.25 182.652 21.25C182.636 21.25 182.62 21.25 182.604 21.25C182.589 21.25 182.573 21.25 182.557 21.25C182.541 21.25 182.525 21.25 182.509 21.25C182.494 21.25 182.478 21.25 182.462 21.25C182.446 21.25 182.43 21.25 182.414 21.25C182.399 21.25 182.383 21.25 182.367 21.25C182.351 21.25 182.335 21.25 182.32 21.25C182.304 21.25 182.288 21.25 182.272 21.25C182.256 21.25 182.241 21.25 182.225 21.25C182.209 21.25 182.193 21.25 182.178 21.25C182.162 21.25 182.146 21.25 182.13 21.25C182.114 21.25 182.099 21.25 182.083 21.25C182.067 21.25 182.051 21.25 182.036 21.25C182.02 21.25 182.004 21.25 181.989 21.25C181.973 21.25 181.957 21.25 181.941 21.25C181.926 21.25 181.91 21.25 181.894 21.25C181.878 21.25 181.863 21.25 181.847 21.25C181.831 21.25 181.816 21.25 181.8 21.25C181.784 21.25 181.769 21.25 181.753 21.25C181.737 21.25 181.722 21.25 181.706 21.25C181.69 21.25 181.675 21.25 181.659 21.25C181.643 21.25 181.628 21.25 181.612 21.25C181.596 21.25 181.581 21.25 181.565 21.25C181.549 21.25 181.534 21.25 181.518 21.25C181.503 21.25 181.487 21.25 181.471 21.25C181.456 21.25 181.44 21.25 181.424 21.25C181.409 21.25 181.393 21.25 181.378 21.25C181.362 21.25 181.346 21.25 181.331 21.25C181.315 21.25 181.3 21.25 181.284 21.25C181.269 21.25 181.253 21.25 181.237 21.25C181.222 21.25 181.206 21.25 181.191 21.25C181.175 21.25 181.16 21.25 181.144 21.25C181.129 21.25 181.113 21.25 181.097 21.25C181.082 21.25 181.066 21.25 181.051 21.25C181.035 21.25 181.02 21.25 181.004 21.25C180.989 21.25 180.973 21.25 180.958 21.25C180.942 21.25 180.927 21.25 180.911 21.25C180.896 21.25 180.88 21.25 180.865 21.25C180.85 21.25 180.834 21.25 180.819 21.25C180.803 21.25 180.788 21.25 180.772 21.25C180.757 21.25 180.741 21.25 180.726 21.25C180.71 21.25 180.695 21.25 180.68 21.25C180.664 21.25 180.649 21.25 180.633 21.25C180.618 21.25 180.603 21.25 180.587 21.25C180.572 21.25 180.556 21.25 180.541 21.25C180.526 21.25 180.51 21.25 180.495 21.25C180.479 21.25 180.464 21.25 180.449 21.25C180.433 21.25 180.418 21.25 180.403 21.25C180.387 21.25 180.372 21.25 180.357 21.25C180.341 21.25 180.326 21.25 180.311 21.25C180.295 21.25 180.28 21.25 180.265 21.25C180.249 21.25 180.234 21.25 180.219 21.25C180.203 21.25 180.188 21.25 180.173 21.25C180.157 21.25 180.142 21.25 180.127 21.25C180.112 21.25 180.096 21.25 180.081 21.25C180.066 21.25 180.051 21.25 180.035 21.25C180.02 21.25 180.005 21.25 179.99 21.25C179.974 21.25 179.959 21.25 179.944 21.25C179.929 21.25 179.913 21.25 179.898 21.25C179.883 21.25 179.868 21.25 179.853 21.25C179.837 21.25 179.822 21.25 179.807 21.25C179.792 21.25 179.777 21.25 179.761 21.25C179.746 21.25 179.731 21.25 179.716 21.25C179.701 21.25 179.686 21.25 179.671 21.25C179.655 21.25 179.64 21.25 179.625 21.25C179.61 21.25 179.595 21.25 179.58 21.25C179.565 21.25 179.55 21.25 179.534 21.25C179.519 21.25 179.504 21.25 179.489 21.25C179.474 21.25 179.459 21.25 179.444 21.25C179.429 21.25 179.414 21.25 179.399 21.25C179.384 21.25 179.369 21.25 179.353 21.25C179.338 21.25 179.323 21.25 179.308 21.25C179.293 21.25 179.278 21.25 179.263 21.25C179.248 21.25 179.233 21.25 179.218 21.25C179.203 21.25 179.188 21.25 179.173 21.25C179.158 21.25 179.143 21.25 179.128 21.25C179.113 21.25 179.098 21.25 179.083 21.25C179.068 21.25 179.053 21.25 179.038 21.25C179.023 21.25 179.009 21.25 178.994 21.25C178.979 21.25 178.964 21.25 178.949 21.25C178.934 21.25 178.919 21.25 178.904 21.25C178.889 21.25 178.874 21.25 178.859 21.25C178.844 21.25 178.83 21.25 178.815 21.25C178.8 21.25 178.785 21.25 178.77 21.25C178.755 21.25 178.74 21.25 178.726 21.25C178.711 21.25 178.696 21.25 178.681 21.25C178.666 21.25 178.651 21.25 178.637 21.25C178.622 21.25 178.607 21.25 178.592 21.25C178.577 21.25 178.563 21.25 178.548 21.25C178.533 21.25 178.518 21.25 178.503 21.25C178.489 21.25 178.474 21.25 178.459 21.25C178.444 21.25 178.43 21.25 178.415 21.25C178.4 21.25 178.385 21.25 178.371 21.25C178.356 21.25 178.341 21.25 178.326 21.25C178.312 21.25 178.297 21.25 178.282 21.25C178.268 21.25 178.253 21.25 178.238 21.25C178.224 21.25 178.209 21.25 178.194 21.25C178.18 21.25 178.165 21.25 178.15 21.25C178.136 21.25 178.121 21.25 178.106 21.25C178.092 21.25 178.077 21.25 178.063 21.25C178.048 21.25 178.033 21.25 178.019 21.25C178.004 21.25 177.99 21.25 177.975 21.25C177.9
31756 21.25 177.946 21.25 177.931 21.25C177.917 21.25 177.902 21.25 177.888 21.25C177.873 21.25 177.858 21.25 177.844 21.25C177.829 21.25 177.815 21.25 177.8 21.25C177.786 21.25 177.771 21.25 177.757 21.25C177.742 21.25 177.728 21.25 177.713 21.25C177.699 21.25 177.684 21.25 177.67 21.25C177.655 21.25 177.641 21.25 177.627 21.25C177.612 21.25 177.598 21.25 177.583 21.25C177.569 21.25 177.554 21.25 177.54 21.25C177.526 21.25 177.511 21.25 177.497 21.25C177.482 21.25 177.468 21.25 177.454 21.25C177.439 21.25 177.425 21.25 177.41 21.25C177.396 21.25 177.382 21.25 177.367 21.25C177.353 21.25 177.339 21.25 177.324 21.25C177.31 21.25 177.296 21.25 177.281 21.25C177.267 21.25 177.253 21.25 177.238 21.25C177.224 21.25 177.21 21.25 177.196 21.25C177.181 21.25 177.167 21.25 177.153 21.25C177.138 21.25 177.124 21.25 177.11 21.25C177.096 21.25 177.081 21.25 177.067 21.25C177.053 21.25 177.039 21.25 177.025 21.25C177.01 21.25 176.996 21.25 176.982 21.25C176.968 21.25 176.954 21.25 176.939 21.25C176.925 21.25 176.911 21.25 176.897 21.25C176.883 21.25 176.869 21.25 176.854 21.25C176.84 21.25 176.826 21.25 176.812 21.25C176.798 21.25 176.784 21.25 176.77 21.25C176.756 21.25 176.742 21.25 176.727 21.25C176.713 21.25 176.699 21.25 176.685 21.25C176.671 21.25 176.657 21.25 176.643 21.25C176.629 21.25 176.615 21.25 176.601 21.25C176.587 21.25 176.573 21.25 176.559 21.25C176.545 21.25 176.531 21.25 176.517 21.25C176.503 21.25 176.489 21.25 176.475 21.25C176.461 21.25 176.447 21.25 176.433 21.25C176.419 21.25 176.405 21.25 176.391 21.25C176.377 21.25 176.363 21.25 176.349 21.25C176.336 21.25 176.322 21.25 176.308 21.25C176.294 21.25 176.28 21.25 176.266 21.25C176.252 21.25 176.238 21.25 176.224 21.25C176.211 21.25 176.197 21.25 176.183 21.25C176.169 21.25 176.155 21.25 176.141 21.25C176.128 21.25 176.114 21.25 176.1 21.25C176.086 21.25 176.072 21.25 176.059 21.25C176.045 21.25 176.031 21.25 176.017 21.25C176.004 21.25 175.99 21.25 175.976 21.25C175.962 21.25 175.949 21.25 175.935 21.25C175.921 21.25 175.907 21.25 175.894 21.25C175.88 21.25 175.866 21.25 175.853 21.25C175.839 21.25 175.825 21.25 175.812 21.25C175.798 21.25 175.784 21.25 175.771 21.25C175.757 21.25 175.743 21.25 175.73 21.25C175.716 21.25 175.702 21.25 175.689 21.25C175.675 21.25 175.662 21.25 175.648 21.25C175.635 21.25 175.621 21.25 175.607 21.25C175.594 21.25 175.58 21.25 175.567 21.25C175.553 21.25 175.54 21.25 175.526 21.25C175.513 21.25 175.499 21.25 175.486 21.25C175.472 21.25 175.459 21.25 175.445 21.25C175.432 21.25 175.418 21.25 175.405 21.25C175.391 21.25 175.378 21.25 175.364 21.25C175.351 21.25 175.337 21.25 175.324 21.25C175.311 21.25 175.297 21.25 175.284 21.25C175.27 21.25 175.257 21.25 175.244 21.25C175.23 21.25 175.217 21.25 175.203 21.25C175.19 21.25 175.177 21.25 175.163 21.25C175.15 21.25 175.137 21.25 175.123 21.25C175.11 21.25 175.097 21.25 175.084 21.25C175.07 21.25 175.057 21.25 175.044 21.25C175.03 21.25 175.017 21.25 175.004 21.25C174.991 21.25 174.977 21.25 174.964 21.25C174.951 21.25 174.938 21.25 174.924 21.25C174.911 21.25 174.898 21.25 174.885 21.25C174.872 21.25 174.859 21.25 174.845 21.25C174.832 21.25 174.819 21.25 174.806 21.25C174.793 21.25 174.78 21.25 174.766 21.25C174.753 21.25 174.74 21.25 174.727 21.25C174.714 21.25 174.701 21.25 174.688 21.25C174.675 21.25 174.662 21.25 174.649 21.25C174.636 21.25 174.623 21.25 174.609 21.25C174.596 21.25 174.583 21.25 174.57 21.25C174.557 21.25 174.544 21.25 174.531 21.25C174.518 21.25 174.505 21.25 174.492 21.25C174.479 21.25 174.466 21.25 174.454 21.25C174.441 21.25 174.428 21.25 174.415 21.25C174.402 21.25 174.389 21.25 174.376 21.25C174.363 21.25 174.35 21.25 174.337 21.25C174.324 21.25 174.312 21.25 174.299 21.25C174.286 21.25 174.273 21.25 174.26 21.25C174.247 21.25 174.234 21.25 174.222 21.25C174.209 21.25 174.196 21.25 174.183 21.25C174.17 21.25 174.158 21.25 174.145 21.25C174.132 21.25 174.119 21.25 174.107 21.25C174.094 21.25 174.081 21.25 174.068 21.25C174.056 21.25 174.043 21.25 174.03 21.25C174.018 21.25 174.005 21.25 173.992 21.25C173.98 21.25 173.967 21.25 173.954 21.25C173.942 21.25 173.929 21.25 173.916 21.25C173.904 21.25 173.89
31751 21.25 173.878 21.25C173.866 21.25 173.853 21.25 173.841 21.25C173.828 21.25 173.816 21.25 173.803 21.25C173.79 21.25 173.778 21.25 173.765 21.25C173.753 21.25 173.74 21.25 173.728 21.25C173.715 21.25 173.703 21.25 173.69 21.25C173.678 21.25 173.665 21.25 173.653 21.25C173.64 21.25 173.628 21.25 173.615 21.25C173.603 21.25 173.591 21.25 173.578 21.25C173.566 21.25 173.553 21.25 173.541 21.25C173.529 21.25 173.516 21.25 173.504 21.25C173.491 21.25 173.479 21.25 173.467 21.25C173.454 21.25 173.442 21.25 173.43 21.25C173.417 21.25 173.405 21.25 173.393 21.25C173.38 21.25 173.368 21.25 173.356 21.25C173.344 21.25 173.331 21.25 173.319 21.25C173.307 21.25 173.295 21.25 173.282 21.25C173.27 21.25 173.258 21.25 173.246 21.25C173.234 21.25 173.221 21.25 173.209 21.25C173.197 21.25 173.185 21.25 173.173 21.25C173.161 21.25 173.148 21.25 173.136 21.25C173.124 21.25 173.112 21.25 173.1 21.25C173.088 21.25 173.076 21.25 173.064 21.25C173.052 21.25 173.04 21.25 173.027 21.25C173.015 21.25 173.003 21.25 172.991 21.25C172.979 21.25 172.967 21.25 172.955 21.25C172.943 21.25 172.931 21.25 172.919 21.25C172.907 21.25 172.895 21.25 172.883 21.25C172.872 21.25 172.86 21.25 172.848 21.25C172.836 21.25 172.824 21.25 172.812 21.25C172.8 21.25 172.788 21.25 172.776 21.25C172.764 21.25 172.752 21.25 172.741 21.25C172.729 21.25 172.717 21.25 172.705 21.25C172.693 21.25 172.681 21.25 172.67 21.25C172.658 21.25 172.646 21.25 172.634 21.25C172.623 21.25 172.611 21.25 172.599 21.25C172.587 21.25 172.576 21.25 172.564 21.25C172.552 21.25 172.54 21.25 172.529 21.25C172.517 21.25 172.505 21.25 172.494 21.25C172.482 21.25 172.47 21.25 172.459 21.25C172.447 21.25 172.435 21.25 172.424 21.25C172.412 21.25 172.401 21.25 172.389 21.25C172.377 21.25 172.366 21.25 172.354 21.25C172.343 21.25 172.331 21.25 172.32 21.25C172.308 21.25 172.297 21.25 172.285 21.25C172.274 21.25 172.262 21.25 172.251 21.25C172.239 21.25 172.228 21.25 172.216 21.25C172.205 21.25 172.193 21.25 172.182 21.25C172.17 21.25 172.159 21.25 172.148 21.25C172.136 21.25 172.125 21.25 172.113 21.25C172.102 21.25 172.091 21.25 172.079 21.25C172.068 21.25 172.057 21.25 172.045 21.25C172.034 21.25 172.023 21.25 172.011 21.25C172 21.25 171.989 21.25 171.977 21.25C171.966 21.25 171.955 21.25 171.944 21.25C171.932 21.25 171.921 21.25 171.91 21.25C171.899 21.25 171.888 21.25 171.876 21.25C171.865 21.25 171.854 21.25 171.843 21.25C171.832 21.25 171.821 21.25 171.809 21.25C171.798 21.25 171.787 21.25 171.776 21.25C171.765 21.25 171.754 21.25 171.743 21.25C171.732 21.25 171.721 21.25 171.71 21.25C171.699 21.25 171.688 21.25 171.677 21.25C171.665 21.25 171.654 21.25 171.643 21.25C171.632 21.25 171.621 21.25 171.611 21.25C171.6 21.25 171.589 21.25 171.578 21.25C171.567 21.25 171.556 21.25 171.545 21.25C171.534 21.25 171.523 21.25 171.512 21.25C171.501 21.25 171.49 21.25 171.48 21.25C171.469 21.25 171.458 21.25 171.447 21.25C171.436 21.25 171.425 21.25 171.415 21.25C171.404 21.25 171.393 21.25 171.382 21.25C171.371 21.25 171.361 21.25 171.35 21.25C171.339 21.25 171.329 21.25 171.318 21.25C171.307 21.25 171.296 21.25 171.286 21.25C171.275 21.25 171.264 21.25 171.254 21.25C171.243 21.25 171.232 21.25 171.222 21.25C171.211 21.25 171.201 21.25 171.19 21.25C171.179 21.25 171.169 21.25 171.158 21.25C171.148 21.25 171.137 21.25 171.127 21.25C171.116 21.25 171.105 21.25 171.095 21.25C171.084 21.25 171.074 21.25 171.063 21.25C171.053 21.25 171.042 21.25 171.032 21.25C171.022 21.25 171.011 21.25 171.001 21.25C170.99 21.25 170.98 21.25 170.969 21.25C170.959 21.25 170.949 21.25 170.938 21.25C170.928 21.25 170.918 21.25 170.907 21.25C170.897 21.25 170.887 21.25 170.876 21.25C170.866 21.25 170.856 21.25 170.845 21.25C170.835 21.25 170.825 21.25 170.815 21.25C170.804 21.25 170.794 21.25 170.784 21.25C170.774 21.25 170.764 21.25 170.753 21.25C170.743 21.25 170.733 21.25 170.723 21.25C170.713 21.25 170.703 21.25 170.692 21.25C170.682 21.25 170.672 21.25 170.662 21.25C170.652 21.25 170.642 21.25 170.632 21.25C170.622 21.25 170.612 21.25 170.602 21.25C170.592 21.25 170.582 21.25 170.572 21.25C170.562 21.25 170.552 21.25 170.542 21.25C170.532 21.25 170.522 21.25 170.512 21.25C170.502 21.25 170.492 21.25 170.482 21.25C170.472 21.25 170.462 21.25 170.452 21.25C170.442 21.25 170.432 21.25 170.423 21.25C170.413 21.25 170.403 21.25 170.393 21.25C170.383 21.25 170.373 21.25 170.364 21.25C170.354 21.25 170.344 21.25 170.334 21.25C170.325 21.25 170.315 21.25 170.305 21.25C170.295 21.25 170.286 21.25 170.276 21.25C170.266 21.25 170.257 21.25 170.247 21.25C170.237 21.25 170.228 21.25 170.218 21.25C170.208 21.25 170.199 21.25 170.189 21.25C170.179 21.25 170.17 21.25 170.16 21.25C170.151 21.25 170.141 21.25 170.132 21.25C170.122 21.25 170.113 21.25 170.103 21.25C170.093 21.25 170.084 21.25 170.075 21.25C170.065 21.25 170.056 21.25 170.046 21.25C170.037 21.25 170.027 21.25 170.018 21.25C170.008 21.25 169.999 21.25 169.99 21.25C169.98 21.25 169.971 21.25 169.961 21.25C169.952 21.25 169.943 21.25 169.933 21.25C169.924 21.25 169.915 21.25 169.906 21.25C169.896 21.25 169.887 21.25 169.878 21.25C169.868 21.25 169.859 21.25 169.85 21.25C169.841 21.25 169.832 21.25 169.822 21.25C169.813 21.25 169.804 21.25 169.795 21.25C169.786 21.25 169.776 21.25 169.767 21.25C169.758 21.25 169.749 21.25 169.74 21.25C169.731 21.25 169.722 21.25 169.713 21.25C169.704 21.25 169.695 21.25 169.686 21.25C169.677 21.25 169.668 21.25 169.659 21.25C169.65 21.25 169.641 21.25 169.632 21.25C169.623 21.25 169.614 21.25 169.605 21.25C169.596 21.25 169.587 21.25 169.578 21.25C169.569 21.25 169.56 21.25 169.551 21.25C169.542 21.25 169.534 21.25 169.525 21.25C169.516 21.25 169.507 21.25 169.498 21.25C169.489 21.25 169.481 21.25 169.472 21.25C169.463 21.25 169.454 21.25 169.446 21.25C169.437 21.25 169.428 21.25 169.419 21.25C169.411 21.25 169.402 21.25 169.393 21.25C169.385 21.25 169.376 21.25 169.367 21.25C169.359 21.25 169.35 21.25 169.342 21.25C169.333 21.25 169.324 21.25 169.316 21.25C169.307 21.25 169.299 21.25 169.29 21.25C169.282 21.25 169.273 21.25 169.265 21.25C169.256 21.25 169.248 21.25 169.239 21.25C169.231 21.25 169.222 21.25 169.214 21.25C169.205 21.25 169.197 21.25 169.188 21.25C169.18 21.25 169.172 21.25 169.163 21.25C169.155 21.25 169.147 21.25 169.138 21.25C169.13 21.25 169.122 21.25 169.113 21.25C169.105 21.25 169.097 21.25 169.088 21.25C169.08 21.25 169.072 21.25 169.064 21.25C169.055 21.25 169.047 21.25 169.039 21.25C169.031 21.25 169.023 21.25 169.014 21.25C169.006 21.25 168.998 21.25 168.99 21.25C168.982 21.25 168.974 21.25 168.966 21.25C168.958 21.25 168.949 21.25 168.941 21.25C168.933 21.25 168.925 21.25 168.917 21.25C168.909 21.25 168.901 21.25 168.893 21.25C168.885 21.25 168.877 21.25 168.8
317569 21.25C168.861 21.25 168.853 21.25 168.845 21.25C168.838 21.25 168.83 21.25 168.822 21.25C168.814 21.25 168.806 21.25 168.798 21.25C168.79 21.25 168.782 21.25 168.775 21.25C168.767 21.25 168.759 21.25 168.751 21.25C168.743 21.25 168.736 21.25 168.728 21.25C168.72 21.25 168.712 21.25 168.705 21.25C168.697 21.25 168.689 21.25 168.682 21.25C168.674 21.25 168.666 21.25 168.659 21.25C168.651 21.25 168.643 21.25 168.636 21.25C168.628 21.25 168.621 21.25 168.613 21.25C168.605 21.25 168.598 21.25 168.59 21.25C168.583 21.25 168.575 21.25 168.568 21.25C168.56 21.25 168.553 21.25 168.545 21.25C168.538 21.25 168.53 21.25 168.523 21.25C168.516 21.25 168.508 21.25 168.501 21.25C168.493 21.25 168.486 21.25 168.479 21.25C168.471 21.25 168.464 21.25 168.457 21.25C168.449 21.25 168.442 21.25 168.435 21.25C168.427 21.25 168.42 21.25 168.413 21.25C168.406 21.25 168.398 21.25 168.391 21.25C168.384 21.25 168.377 21.25 168.37 21.25C168.362 21.25 168.355 21.25 168.348 21.25C168.341 21.25 168.334 21.25 168.327 21.25C168.32 21.25 168.313 21.25 168.306 21.25C168.298 21.25 168.291 21.25 168.284 21.25C168.277 21.25 168.27 21.25 168.263 21.25C168.256 21.25 168.249 21.25 168.242 21.25C168.235 21.25 168.229 21.25 168.222 21.25C168.215 21.25 168.208 21.25 168.201 21.25C168.194 21.25 168.187 21.25 168.18 21.25C168.173 21.25 168.167 21.25 168.16 21.25C168.153 21.25 168.146 21.25 168.139 21.25C168.133 21.25 168.126 21.25 168.119 21.25C168.112 21.25 168.106 21.25 168.099 21.25C168.092 21.25 168.086 21.25 168.079 21.25C168.072 21.25 168.066 21.25 168.059 21.25C168.052 21.25 168.046 21.25 168.039 21.25C168.033 21.25 168.026 21.25 168.02 21.25C168.013 21.25 168.007 21.25 168 21.25V22.75ZM188 22.75C190.117 22.75 191.864 22.2192 193.061 20.8733C194.239 19.5478 194.75 17.5766 194.75 15H193.25C193.25 17.4234 192.761 18.9522 191.939 19.8767C191.136 20.7808 189.883 21.25 188 21.25V22.75ZM194.75 15C194.75 14.9902 194.75 14.9804 194.75 14.9706C194.75 14.9608 194.75 14.9509 194.75 14.941C194.75 14.9312 194.75 14.9213 194.75 14.9113C194.75 14.9014 194.75 14.8914 194.75 14.8814C194.75 14.8714 194.75 14.8614 194.75 14.8514C194.75 14.8413 194.75 14.8312 194.75 14.8211C194.75 14.811 194.75 14.8009 194.75 14.7907C194.75 14.7806 194.75 14.7704 194.75 14.7602C194.75 14.7499 194.75 14.7397 194.75 14.7294C194.75 14.7192 194.75 14.7089 194.75 14.6985C194.75 14.6882 194.75 14.6778 194.75 14.6675C194.75 14.6571 194.75 14.6467 194.75 14.6362C194.75 14.6258 194.75 14.6153 194.75 14.6048C194.75 14.5943 194.75 14.5838 194.75 14.5733C194.75 14.5627 194.75 14.5521 194.75 14.5415C194.75 14.5309 194.75 14.5203 194.75 14.5097C194.75 14.499 194.75 14.4883 194.75 14.4776C194.75 14.4669 194.75 14.4562 194.75 14.4454C194.75 14.4346 194.75 14.4238 194.75 14.413C194.75 14.4022 194.75 14.3914 194.75 14.3805C194.75 14.3696 194.75 14.3587 194.75 14.3478C194.75 14.3369 194.75 14.3259 194.75 14.3149C194.75 14.304 194.75 14.293 194.75 14.2819C194.75 14.2709 194.75 14.2598 194.75 14.2488C194.75 14.2377 194.75 14.2266 194.75 14.2154C194.75 14.2043 194.75 14.1931 194.75 14.1819C194.75 14.1708 194.75 14.1595 194.75 14.1483C194.75 14.1371 194.75 14.1258 194.75 14.1145C194.75 14.1032 194.75 14.0919 194.75 14.0806C194.75 14.0692 194.75 14.0578 194.75 14.0464C194.75 14.0351 194.75 14.0236 194.75 14.0122C194.75 14.0007 194.75 13.9893 194.75 13.9778C194.75 13.9663 194.75 13.9547 194.75 13.9432C194.75 13.9317 194.75 13.9201 194.75 13.9085C194.75 13.8969 194.75 13.8853 194.75 13.8736C194.75 13.862 194.75 13.8503 194.75 13.8386C194.75 13.8269 194.75 13.8152 194.75 13.8034C194.75 13.7917 194.75 13.7799 194.75 13.7681C194.75 13.7563 194.75 13.7445 194.75 13.7326C194.75 13.7208 194.75 13.7089 194.75 13.697C194.75 13.6851 194.75 13.6732 194.75 13.6612C194.75 13.6493 194.75 13.6373 194.75 13.6253C194.75 13.6133 194.75 13.6013 194.75 13.5892C194.75 13.5772 194.75 13.5651 194.75 13.553C194.75 13.5409 194.75 13.5288 194.75 13.5166C194.75 13.5045 194.75 13.4923 194.75 13.4801C194.75 13.4679 194.75 13.4557 194.75 13.4435C194.75 13.4312 194.75 13.419 194.75 13.4067C194.75 13.3944 194.75 13.3821 194.75 13.3698C194.75 13.3574 194.75 13.3451 194.75 13.3327C194.75 13.3203 194.75 13.3079 194.75 13.2954C194.75 13.283 194.75 13.2706 194.75 13.2581C194.75 13.2456 194.75 13.2331 194.75 13.2206C194.75 13.208 194.75 13.1955 194.75 13.1829C194.75 13.1704 194.75 13.1578 194.75 13.1451C194.75 13.1325 194.75 13.1199 194.75 13.1072C194.75 13.0945 194.75 13.0818 194.75 13.0691C194.75 13.0564 194.75 13.0437 194.75 13.0309C194.75 13.0182 194.75 13.0054 194.75 12.9926C194.75 12.9798 194.75 12.967 194.75 12.9541C194.75 12.9413 194.75 12.9284 194.75 12.9155C194.75 12.9026 194.75 12.8897 194.75 12.8767C194.75 12.8638 194.75 12.8508 194.75 12.8378C194.75 12.8249 194.75 12.8118 194.75 12.7988C194.75 12.7858 194.75 12.7727 194.75 12.7597C194.75 12.7466 194.75 12.7335 194.75 12.7204C194.75 12.7072 194.75 12.6941 194.75 12.6809C194.75 12.6678 194.75 12.6546 194.75 12.6414C194.75 12.6282 194.75 12.6149 194.75 12.6017C194.75 12.5884 194.75 12.5752 194.75 12.5619C194.75 12.5486 194.75 12.5352 194.75 12.5219C194.75 12.5086 194.75 12.4952 194.75 12.4818C194.75 12.4684 
3175194.75 12.455 194.75 12.4416C194.75 12.4282 194.75 12.4147 194.75 12.4013C194.75 12.3878 194.75 12.3743 194.75 12.3608C194.75 12.3473 194.75 12.3337 194.75 12.3202C194.75 12.3066 194.75 12.2931 194.75 12.2795C194.75 12.2659 194.75 12.2522 194.75 12.2386C194.75 12.225 194.75 12.2113 194.75 12.1976C194.75 12.1839 194.75 12.1702 194.75 12.1565C194.75 12.1428 194.75 12.129 194.75 12.1153C194.75 12.1015 194.75 12.0877 194.75 12.0739C194.75 12.0601 194.75 12.0463 194.75 12.0324C194.75 12.0186 194.75 12.0047 194.75 11.9908C194.75 11.9769 194.75 11.963 194.75 11.9491C194.75 11.9352 194.75 11.9212 194.75 11.9073C194.75 11.8933 194.75 11.8793 194.75 11.8653C194.75 11.8513 194.75 11.8372 194.75 11.8232C194.75 11.8091 194.75 11.7951 194.75 11.781C194.75 11.7669 194.75 11.7528 194.75 11.7386C194.75 11.7245 194.75 11.7104 194.75 11.6962C194.75 11.682 194.75 11.6678 194.75 11.6536C194.75 11.6394 194.75 11.6252 194.75 11.6109C194.75 11.5967 194.75 11.5824 194.75 11.5681C194.75 11.5538 194.75 11.5395 194.75 11.5252C194.75 11.5109 194.75 11.4965 194.75 11.4822C194.75 11.4678 194.75 11.4534 194.75 11.439C194.75 11.4246 194.75 11.4102 194.75 11.3957C194.75 11.3813 194.75 11.3668 194.75 11.3523C194.75 11.3379 194.75 11.3234 194.75 11.3088C194.75 11.2943 194.75 11.2798 194.75 11.2652C194.75 11.2507 194.75 11.2361 194.75 11.2215C194.75 11.2069 194.75 11.1923 194.75 11.1777C194.75 11.163 194.75 11.1484 194.75 11.1337C194.75 11.119 194.75 11.1044 194.75 11.0897C194.75 11.0749 194.75 11.0602 194.75 11.0455C194.75 11.0307 194.75 11.016 194.75 11.0012C194.75 10.9864 194.75 10.9716 194.75 10.9568C194.75 10.942 194.75 10.9272 194.75 10.9123C194.75 10.8975 194.75 10.8826 194.75 10.8677C194.75 10.8528 194.75 10.8379 194.75 10.823C194.75 10.8081 194.75 10.7931 194.75 10.7782C194.75 10.7632 194.75 10.7482 194.75 10.7332C194.75 10.7182 194.75 10.7032 194.75 10.6882C194.75 10.6732 194.75 10.6581 194.75 10.643C194.75 10.628 194.75 10.6129 194.75 10.5978C194.75 10.5827 194.75 10.5676 194.75 10.5524C194.75 10.5373 194.75 10.5222 194.75 10.507C194.75 10.4918 194.75 10.4766 194.75 10.4614C194.75 10.4462 194.75 10.431 194.75 10.4158C194.75 10.4005 194.75 10.3853 194.75 10.37C194.75 10.3547 194.75 10.3394 194.75 10.3241C194.75 10.3088 194.75 10.2935 194.75 10.2782C194.75 10.2628 194.75 10.2475 194.75 10.2321C194.75 10.2167 194.75 10.2014 194.75 10.1859C194.75 10.1705 194.75 10.1551 194.75 10.1397C194.75 10.1242 194.75 10.1088 194.75 10.0933C194.75 10.0779 194.75 10.0624 194.75 10.0469C194.75 10.0314 194.75 10.0158 194.75 10.0003C194.75 9.98477 194.75 9.96922 194.75 9.95365C194.75 9.93808 194.75 9.9225 194.75 9.9069C194.75 9.8913 194.75 9.87569 194.75 9.86005C194.75 9.84442 194.75 9.82878 194.75 9.81311C194.75 9.79745 194.75 9.78177 194.75 9.76608C194.75 9.75038 194.75 9.73468 194.75 9.71895C194.75 9.70322 194.75 9.68748 194.75 9.67173C194.75 9.65597 194.75 9.6402 194.75 9.62441C194.75 9.60863 194.75 9.59282 194.75 9.57701C194.75 9.56119 194.75 9.54536 194.75 9.52951C194.75 9.51366 194.75 9.4978 194.75 9.48192C194.75 9.46604 194.75 9.45015 194.75 9.43424C194.75 9.41833 194.75 9.40241 194.75 9.38647C194.75 9.37053 194.75 9.35458 194.75 9.33861C194.75 9.32265 194.75 9.30666 194.75 9.29067C194.75 9.27467 194.75 9.25866 194.75 9.24263C194.75 9.22661 194.75 9.21057 194.75 9.19451C194.75 9.17845 194.75 9.16239 194.75 9.1463C194.75 9.13022 194.75 9.11412 194.75 9.09801C194.75 9.08189 194.75 9.06577 194.75 9.04963C194.75 9.03348 194.75 9.01733 194.75 9.00116C194.75 8.98499 194.75 8.96881 194.75 8.95261C194.75 8.93641 194.75 8.9202 194.75 8.90397C194.75 8.88775 194.75 8.87151 194.75 8.85526C194.75 8.839 194.75 8.82274 194.75 8.80646C194.75 8.79018 194.75 8.77388 194.75 8.75757C194.75 8.74127 194.75 8.72495 194.75 8.70861C194.75 8.69228 194.75 8.67593 194.75 8.65957C194.75 8.6432 194.75 8.62683 194.75 8.61044C194.75 8.59405 194.75 8.57765 194.75 8.56123C194.75 8.54482 194.75 8.52839 194.75 8.51195C194.75 8.49551 194.75 8.47905 194.75 8.46259C194.75 8.44612 194.75 8.42964 194.75 8.41315C194.75 8.39665 194.75 8.38015 194.75 8.36363C194.75 8.34711 194.75 8.33058 194.75 8.31403C194.75 8.29749 194.75 8.28093 194.75 8.26436C194.75 8.24779 194.75 8.23121 194.75 8.21461C194.75 8.19802 194.75 8.18141 194.75 8.16479C194.75 8.14817 194.75 8.13153 194.75 8.11489C194.75 8.09824 194.75 8.08159 194.75 8.06492C194.75 8.04825 194.75 8.03157 194.75 8.01487C194.75 7.99818 194.75 7.98147 194.75 7.96475C194.75 7.94804 194.75 7.93131 194.75 7.91456C194.75 7.89782 194.75 7.88107 194.75 7.8643C194.75 7.84754 194.75 7.83076 194.75 7.81397C194.75 7.79718 194.75 7.78038 194.75 7.76357C194.75 7.74675 194.75 7.72993 194.75 7.71309C194.75 7.69626 194.75 7.67941 194.75 7.66255C194.75 7.64569 194.75 7.62882 194.75 7.61194C194.75 7.59505 194.75 7.57816 194.75 7.56126C194.75 7.54435 194.75 7.52744 194.75 7.51051C194.75 7.49358 194.75 7.47664 194.75 7.45969C194.75 7.44274 194.75 7.42578 194.75 7.40881C194.75 7.39184 194.75 7.37486 194.75 7.35787C194.75 7.34087 194.75 7.32387 194.75 7.30685C194.75 7.28984 194.75 7.27281 194.75 7.25578C194.75 7.23874 194.75 7.22169 194.75 7.20463C194.75 7.18758 194.75 7.17051 194.75 7.15343C194.75 7.13635 194.75 7.11926 194.75 7.10216C194.75 7.08506 194.75 7.06
3175795 194.75 7.05083C194.75 7.03371 194.75 7.01658 194.75 6.99944C194.75 6.9823 194.75 6.96515 194.75 6.94799C194.75 6.93083 194.75 6.91365 194.75 6.89647C194.75 6.87929 194.75 6.8621 194.75 6.8449C194.75 6.8277 194.75 6.81049 194.75 6.79326C194.75 6.77604 194.75 6.75881 194.75 6.74157C194.75 6.72433 194.75 6.70708 194.75 6.68982C194.75 6.67256 194.75 6.65529 194.75 6.63801C194.75 6.62073 194.75 6.60344 194.75 6.58615C194.75 6.56885 194.75 6.55154 194.75 6.53422C194.75 6.51691 194.75 6.49958 194.75 6.48225C194.75 6.46491 194.75 6.44757 194.75 6.43021C194.75 6.41286 194.75 6.3955 194.75 6.37812C194.75 6.36075 194.75 6.34337 194.75 6.32598C194.75 6.30859 194.75 6.29119 194.75 6.27378C194.75 6.25638 194.75 6.23896 194.75 6.22153C194.75 6.20411 194.75 6.18667 194.75 6.16923C194.75 6.15179 194.75 6.13434 194.75 6.11688C194.75 6.09942 194.75 6.08195 194.75 6.06447C194.75 6.04699 194.75 6.02951 194.75 6.01202C194.75 5.99452 194.75 5.97702 194.75 5.95951C194.75 5.942 194.75 5.92448 194.75 5.90695C194.75 5.88943 194.75 5.87189 194.75 5.85435C194.75 5.8368 194.75 5.81925 194.75 5.80169C194.75 5.78413 194.75 5.76657 194.75 5.74899C194.75 5.73142 194.75 5.71383 194.75 5.69624C194.75 5.67865 194.75 5.66105 194.75 5.64345C194.75 5.62584 194.75 5.60823 194.75 5.59061C194.75 5.57298 194.75 5.55536 194.75 5.53772C194.75 5.52008 194.75 5.50244 194.75 5.48479C194.75 5.46714 194.75 5.44948 194.75 5.43181C194.75 5.41414 194.75 5.39647 194.75 5.37879C194.75 5.36111 194.75 5.34342 194.75 5.32573C194.75 5.30803 194.75 5.29033 194.75 5.27262C194.75 5.25491 194.75 5.23719 194.75 5.21947C194.75 5.20175 194.75 5.18402 194.75 5.16628C194.75 5.14854 194.75 5.1308 194.75 5.11305C194.75 5.0953 194.75 5.07754 194.75 5.05978C194.75 5.04202 194.75 5.02425 194.75 5.00647C194.75 4.98869 194.75 4.97091 194.75 4.95312C194.75 4.93533 194.75 4.91753 194.75 4.89973C194.75 4.88193 194.75 4.86412 194.75 4.8463C194.75 4.82849 194.75 4.81067 194.75 4.79284C194.75 4.77501 194.75 4.75718 194.75 4.73934C194.75 4.7215 194.75 4.70365 194.75 4.6858C194.75 4.66795 194.75 4.65009 194.75 4.63223C194.75 4.61437 194.75 4.5965 194.75 4.57862C194.75 4.56075 194.75 4.54287 194.75 4.52498C194.75 4.50709 194.75 4.4892 194.75 4.4713C194.75 4.4534 194.75 4.4355 194.75 4.41759C194.75 4.39968 194.75 4.38177 194.75 4.36385C194.75 4.34593 194.75 4.32801 194.75 4.31008C194.75 4.29215 194.75 4.27421 194.75 4.25627C194.75 4.23833 194.75 4.22038 194.75 4.20243C194.75 4.18448 194.75 4.16653 194.75 4.14856C194.75 4.1306 194.75 4.11264 194.75 4.09467C194.75 4.0767 194.75 4.05872 194.75 4.04074C194.75 4.02276 194.75 4.00477 194.75 3.98678C194.75 3.96879 194.75 3.9508 194.75 3.9328C194.75 3.9148 194.75 3.8968 194.75 3.87879C194.75 3.86078 194.75 3.84277 194.75 3.82475C194.75 3.80673 194.75 3.78871 194.75 3.77069C194.75 3.75266 194.75 3.73463 194.75 3.7166C194.75 3.69856 194.75 3.68052 194.75 3.66248C194.75 3.64444 194.75 3.62639 194.75 3.60834C194.75 3.59029 194.75 3.57224 194.75 3.55418C194.75 3.53612 194.75 3.51806 194.75 3.49999C194.75 3.48192 194.75 3.46385 194.75 3.44578C194.75 3.42771 194.75 3.40963 194.75 3.39155C194.75 3.37347 194.75 3.35538 194.75 3.33729C194.75 3.3192 194.75 3.30111 194.75 3.28302C194.75 3.26492 194.75 3.24682 194.75 3.22872C194.75 3.21062 194.75 3.19251 194.75 3.1744C194.75 3.15629 194.75 3.13818 194.75 3.12007C194.75 3.10195 194.75 3.08383 194.75 3.06571C194.75 3.04759 194.75 3.02947 194.75 3.01134C194.75 2.99321 194.75 2.97508 194.75 2.95695C194.75 2.93882 194.75 2.92068 194.75 2.90254C194.75 2.8844 194.75 2.86626 194.75 2.84812C194.75 2.82997 194.75 2.81183 194.75 2.79368C194.75 2.77553 194.75 2.75738 194.75 2.73922C194.75 2.72107 194.75 2.70291 194.75 2.68475C194.75 2.66659 194.75 2.64843 194.75 2.63027C194.75 2.61211 194.75 2.59394 194.75 2.57577C194.75 2.5576 194.75 2.53943 194.75 2.52126C194.75 2.50309 194.75 2.48491 194.75 2.46674C194.75 2.44856 194.75 2.43038 194.75 2.4122C194.75 2.39402 194.75 2.37584 194.75 2.35766C194.75 2.33947 194.75 2.32129 194.75 2.3031C194.75 2.28491 194.75 2.26672 194.75 2.24853C194.75 2.23034 194.75 2.21215 194.75 2.19396C194.75 2.17576 194.75 2.15757 194.75 2.13937C194.75 2.12117 194.75 2.10298 194.75 2.08478C194.75 2.06658 194.75 2.04838 194.75 2.03018C194.75 2.01197 194.75 1.99377 194.75 1.97557C194.75 1.95736 194.75 1.93916 194.75 1.92095C194.75 1.90274 194.75 1.88454 194.75 1.86633C194.75 1.84812 194.75 1.82991 194.75 1.8117C194.75 1.79349 194.75 1.77528 194.75 1.75707C194.75 1.73886 194.75 1.72065 194.75 1.70243C194.75 1.68422 194.75 1.66601 194.75 1.64779C194.75 1.62958 194.75 1.61137 194.75 1.59315C194.75 1.57494 194.75 1.55672 194.75 1.53851C194.75 1.52029 194.75 1.50207 194.75 1.48386C194.75 1.46564 194.75 1.44743 194.75 1.42921C194.75 1.41099 194.75 1.39278 194.75 1.37456C194.75 1.35634 194.75 1.33813 194.75 1.31991C194.75 1.30169 194.75 1.28348 194.75 1.26526C194.75 1.24704 194.75 1.22883 194.75 1.21061C194.75 1.1924 194.75 1.17418 194.75 1.15597C194.75 1.13775 194.75 1.11953 194.75 1.10132C194.75 1.08311 194.75 1.06489 194.75 1.04668C194.75 1.02846 194.75 1.01025 194.75 0.992039C194.75 0.973827 194.75 0.955615 194.75 0.937404C194.75 0.919193 194.75 0.900983 194.75 0.882773C194.75 0.864564 194.75 0.846355 194.75 0.828147C194.75 0.80994 194.75 0.791733 194.75 0.773527C194.75 0.755321 194.75 0.737117 194.75 0.718913C194.75 0.70071 194.75 0.682507 194.75 0.664306C194.75 0.646105 194.75 0.627905 194.75 0.609706C194.75 0.591507 194.75 0.57331 194.75 0.555114C194.75 0.536918 194.75 0.518724 194.75 0.500531C194.75 0.482338 194.75 0.464146 194.75 0.445956C194.75 0.427766 194.75 0.409578 194.75 0.391391C194.75 0.373205 194.75 0.35502 194.75 0.336837C194.75 0.318654 194.75 0.300473 194.75 0.282293C194.75 0.264114 194.75 0.245936 194.75 0.227761C194.75 0.209585 194.75 0.191412 194.75 0.173241C194.75 0.155069 194.75 0.1369 194.75 0.118733C194.75 0.100566 194.75 0.0824007 194.75 0.0642381C194.75 0.0460755 194.75 0.0279152 194.75 0.00975721C194.75 -0.00840074 194.75 -0.0265563 194.75 -0.0447094C194.75 -0.0628625 194.75 -0.0810131 194.75 -0.0991611C194.75 -0.117309 194.75 -0.135455 194.75 -0.153597C194.75 -0.17174 194.75 -0.18988 194.75 -0.208018C194.75 -0.226155 194.75 -0.244289 194.75 -0.262421C194.75 -0.280553 194.75 -0.298682 194.75 -0.316807C194.75 -0.334933 194.75 -0.353056 194.75 -0.371176C194.75 -0.389296 194.75 -0.407413 194.75 -0.425526C194.75 -0.44364 194.75 -0.46175 194.75 -0.479857C194.75 -0.497965 194.75 -0.516069 194.75 -0.534169C194.75 -0.55227 194.75 -0.570367 194.75 -0.588461C194.75 -0.606555 194.75 -0.624645 194.75 -0.642732C194.75 -0.660818 194.75 -0.678902 194.75 -0.696981C194.75 -0.715061 194.75 -0.733137 194.75 -0.751209C194.75 -0.769281 194.75 -0.78735 194.75 -0.805414C194.75 -0.823479 194.75 -0.84154 194.75 -0.859597C194.75 -0.877653 194.75 -0.895706 194.75 -0.913755C194.75 -0.931804 194.75 -0.949849 194.75 -0.96789C194.75 -0.985931 194.75 -1.00397 194.75 -1.022C194.75 -1.04003 194.75 -1.05806 194.75 -1.07608C194.75 -1.09411 194.75 -1.11213 194.75 -1.13014C194.75 -1.14816 194.75 -1.16617 194.75 -1.18417C194.75 -1.20218 194.75 -1.22018 194.75 -1.23818C194.75 -1.25618 194.75 -1.27417 194.75 -1.29216C194.75 -1.31014 194.75 -1.32813 194.75 -1.34611C194.75 -1.36408 194.75 -1.38206 194.75 -1.40003C194.75 -1.41799 194.75 -1.43596 194.75 -1.45392C194.75 -1.47187 194.75 -1.48983 194.75 -1.50778C194.75 -1.52573 194.75 -1.54367 194.75 -1.56161C194.75 -1.57955 194.75 -1.59748 194.75 -1.61541C194.75 -1.63333 194.75 -1.65126 194.75 -1.66917C194.75 -1.68709 194.75 -1.705 194.75 -1.72291C194.75 -1.74081 194.75 -1.75871 194.75 -1.77661C194.75 -1.79451 194.75 -1.81239 194.75 -1.83028C194.75 -1.84816 194.75 -1.86604 194.75 -1.88391C194.75 -1.90179 194.75 -1.91965 194.75 -1.93751C194.75 -1.95537 194.75 -1.97323 194.75 -1.99108C194.75 -2.00893 194.75 -2.02677 194.75 -2.04461C194.75 -2.06244 194.75 -2.08027 194.75 -2.0981C194.75 -2.11592 194.75 -2.13374 194.75 -2.15155C194.75 -2.16937 194.75 -2.18717 194.75 -2.20497C194.75 -2.22277 194.75 -2.24056 194.75 -2.25835C194.75 -2.27614 194.75 -2.29392 194.75 -2.31169C194.75 -2.32947 194.75 -2.34723 194.75 -2.36499C194.75 -2.38275 194.75 -2.40051 194.75 -2.41826C194.75 -2.436 194.75 -2.45374 194.75 -2.47148C194.75 -2.48921 194.75 -2.50694 194.75 -2.52466C194.75 -2.54238 194.75 -2.56009 194.75 -2.5778C194.75 -2.5955 194.75 -2.6132 194.75 -2.63089C194.75 -2.64858 194.75 -2.66627 194.75 -2.68395C194.75 -2.70162 194.75 -2.71929 194.75 -2.73696C194.75 -2.75462 194.75 -2.77228 194.75 -2.78992C194.75 -2.80757 194.75 -2.82521 194.75 -2.84285C194.75 -2.86048 194.75 -2.8781 194.75 -2.89572C194.75 -2.91334 194.75 -2.93095 194.75 -2.94855C194.75 -2.96616 194.75 -2.98375 194.75 -3.00134C194.75 -3.01893 194.75 -3.0365 194.75 -3.05408C194.75 -3.07165 194.75 -3.08921 194.75 -3.10677C194.75 -3.12432 194.75 -3.14187 194.75 -3.15941C194.75 -3.17695 194.75 -3.19448 194.75 -3.212C194.75 -3.22953 194.75 -3.24704 194.75 -3.26455C194.75 -3.28205 194.75 -3.29955 194.75 -3.31704C194.75 -3.33453 194.75 -3.35201 194.75 -3.36949C194.75 -3.38696 194.75 -3.40443 194.75 -3.42188C194.75 -3.43934 194.75 -3.45679 194.75 -3.47422C194.75 -3.49166 194.75 -3.50909 194.75 -3.52651C194.75 -3.54394 194.75 -3.56135 194.75 -3.57875C194.75 -3.59616 194.75 -3.61355 194.75 -3.63094C194.75 -3.64832 
3175194.75 -3.6657 194.75 -3.68307C194.75 -3.70043 194.75 -3.71779 194.75 -3.73514C194.75 -3.75249 194.75 -3.76983 194.75 -3.78716C194.75 -3.8045 194.75 -3.82182 194.75 -3.83913C194.75 -3.85644 194.75 -3.87375 194.75 -3.89104C194.75 -3.90833 194.75 -3.92562 194.75 -3.94289C194.75 -3.96017 194.75 -3.97743 194.75 -3.99469C194.75 -4.01194 194.75 -4.02919 194.75 -4.04642C194.75 -4.06366 194.75 -4.08089 194.75 -4.0981C194.75 -4.11532 194.75 -4.13253 194.75 -4.14972C194.75 -4.16692 194.75 -4.18411 194.75 -4.20128C194.75 -4.21846 194.75 -4.23563 194.75 -4.25278C194.75 -4.26994 194.75 -4.28709 194.75 -4.30422C194.75 -4.32136 194.75 -4.33849 194.75 -4.3556C194.75 -4.37272 194.75 -4.38982 194.75 -4.40692C194.75 -4.42401 194.75 -4.4411 194.75 -4.45817C194.75 -4.47524 194.75 -4.49231 194.75 -4.50936C194.75 -4.52641 194.75 -4.54346 194.75 -4.56049C194.75 -4.57752 194.75 -4.59454 194.75 -4.61155C194.75 -4.62856 194.75 -4.64556 194.75 -4.66255C194.75 -4.67954 194.75 -4.69651 194.75 -4.71348C194.75 -4.73045 194.75 -4.7474 194.75 -4.76434C194.75 -4.78129 194.75 -4.79822 194.75 -4.81514C194.75 -4.83207 194.75 -4.84898 194.75 -4.86588C194.75 -4.88278 194.75 -4.89966 194.75 -4.91654C194.75 -4.93342 194.75 -4.95028 194.75 -4.96714C194.75 -4.98399 194.75 -5.00083 194.75 -5.01766C194.75 -5.03449 194.75 -5.05131 194.75 -5.06812C194.75 -5.08493 194.75 -5.10172 194.75 -5.11851C194.75 -5.13529 194.75 -5.15207 194.75 -5.16883C194.75 -5.18559 194.75 -5.20233 194.75 -5.21907C194.75 -5.23581 194.75 -5.25253 194.75 -5.26925C194.75 -5.28596 194.75 -5.30266 194.75 -5.31935C194.75 -5.33603 194.75 -5.35271 194.75 -5.36937C194.75 -5.38604 194.75 -5.40269 194.75 -5.41933C194.75 -5.43597 194.75 -5.4526 194.75 -5.46921C194.75 -5.48582 194.75 -5.50243 194.75 -5.51902C194.75 -5.53561 194.75 -5.55218 194.75 -5.56875C194.75 -5.58531 194.75 -5.60186 194.75 -5.6184C194.75 -5.63494 194.75 -5.65147 194.75 -5.66798C194.75 -5.68449 194.75 -5.70099 194.75 -5.71748C194.75 -5.73397 194.75 -5.75044 194.75 -5.7669C194.75 -5.78336 194.75 -5.79981 194.75 -5.81625C194.75 -5.83268 194.75 -5.84911 194.75 -5.86551C194.75 -5.88192 194.75 -5.89832 194.75 -5.9147C194.75 -5.93108 194.75 -5.94745 194.75 -5.96381C194.75 -5.98016 194.75 -5.99651 194.75 -6.01284C194.75 -6.02916 194.75 -6.04548 194.75 -6.06178C194.75 -6.07808 194.75 -6.09437 194.75 -6.11064C194.75 -6.12692 194.75 -6.14318 194.75 -6.15943C194.75 -6.17567 194.75 -6.1919 194.75 -6.20812C194.75 -6.22434 194.75 -6.24055 194.75 -6.25674C194.75 -6.27293 194.75 -6.28911 194.75 -6.30527C194.75 -6.32143 194.75 -6.33758 194.75 -6.35372C194.75 -6.36985 194.75 -6.38597 194.75 -6.40208C194.75 -6.41818 194.75 -6.43427 194.75 -6.45035C194.75 -6.46643 194.75 -6.48249 194.75 -6.49854C194.75 -6.51459 194.75 -6.53062 194.75 -6.54664C194.75 -6.56266 194.75 -6.57867 194.75 -6.59466C194.75 -6.61065 194.75 -6.62662 194.75 -6.64258C194.75 -6.65854 194.75 -6.67449 194.75 -6.69042C194.75 -6.70635 194.75 -6.72227 194.75 -6.73817C194.75 -6.75407 194.75 -6.76996 194.75 -6.78583C194.75 -6.8017 194.75 -6.81756 194.75 -6.8334C194.75 -6.84924 194.75 -6.86506 194.75 -6.88087C194.75 -6.89668 194.75 -6.91248 194.75 -6.92826C194.75 -6.94404 194.75 -6.9598 194.75 -6.97555C194.75 -6.9913 194.75 -7.00703 194.75 -7.02275C194.75 -7.03847 194.75 -7.05417 194.75 -7.06986C194.75 -7.08555 194.75 -7.10122 194.75 -7.11687C194.75 -7.13253 194.75 -7.14817 194.75 -7.16379C194.75 -7.17942 194.75 -7.19502 194.75 -7.21062C194.75 -7.22621 194.75 -7.24178 194.75 -7.25734C194.75 -7.2729 194.75 -7.28845 194.75 -7.30398C194.75 -7.3195 194.75 -7.33501 194.75 -7.35051C194.75 -7.36601 194.75 -7.38148 194.75 -7.39695C194.75 -7.41241 194.75 -7.42786 194.75 -7.44329C194.75 -7.45872 194.75 -7.47413 194.75 -7.48953C194.75 -7.50493 194.75 -7.52031 194.75 -7.53567C194.75 -7.55103 194.75 -7.56638 194.75 -7.58171C194.75 -7.59704 194.75 -7.61236 194.75 -7.62765C194.75 -7.64295 194.75 -7.65823 194.75 -7.67349C194.75 -7.68876 194.75 -7.704 194.75 -7.71923C194.75 -7.73446 194.75 -7.74968 194.75 -7.76487C194.75 -7.78007 194.75 -7.79524 194.75 -7.81041C194.75 -7.82557 194.75 -7.84071 194.75 -7.85584C194.75 -7.87096 194.75 -7.88607 194.75 -7.90117C194.75 -7.91626 194.75 -7.93133 194.75 -7.94639C194.75 -7.96145 194.75 -7.97648 194.75 -7.99151C194.75 -8.00653 194.75 -8.02153 194.75 -8.03652C194.75 -8.05151 194.75 -8.06647 194.75 -8.08143C194.75 -8.09638 194.75 -8.11131 194.75 -8.12623C194.75 -8.14114 194.75 -8.15604 194.75 -8.17092C194.75 -8.1858 194.75 -8.20066 194.75 -8.2155C194.75 -8.23035 194.75 -8.24517 194.75 -8.25998C194.75 -8.27479 194.75 -8.28958 194.75 -8.30435C194.75 -8.31912 194.75 -8.33387 194.75 -8.3486C194.75 -8.36334 194.75 -8.37805 194.75 -8.39275C194.75 -8.40745 194.75 -8.42213 194.75 -8.43679C194.75 -8.45145 194.75 -8.46609 194.75 -8.48071C194.75 -8.49534 194.75 -8.50994 194.75 -8.52453C194.75 -8.53911 194.75 -8.55368 194.75 -8.56823C194.75 -8.58278 194.75 -8.59731 194.75 -8.61182C194.75 -8.62633 194.75 -8.64082 194.75 -8.65529C194.75 -8.66976 194.75 -8.68422 194.75 -8.69865C194.75 -8.71308 194.75 -8.7275 194.75 -8.7419C194.75 -8.75629 194.75 -8.77067 194.75 -8.78503C194.75 -8.79938 194.75 -8.81372 194.75 -8.82804C194.75 -8.84236 194.75 -8.85666 194.75 -8.87094C194.75 -8.88522 194.75 -8.89948 194.75 -8.91372C194.75 -8.92796 194.75 -8.94218 
3175194.75 -8.95638C194.75 -8.97058 194.75 -8.98476 194.75 -8.99892C194.75 -9.01308 194.75 -9.02722 194.75 -9.04135C194.75 -9.05547 194.75 -9.06957 194.75 -9.08365C194.75 -9.09773 194.75 -9.1118 194.75 -9.12584C194.75 -9.13988 194.75 -9.1539 194.75 -9.1679C194.75 -9.1819 194.75 -9.19588 194.75 -9.20984C194.75 -9.22381 194.75 -9.23775 194.75 -9.25167C194.75 -9.26559 194.75 -9.27949 194.75 -9.29337C194.75 -9.30724 194.75 -9.3211 194.75 -9.33494C194.75 -9.34878 194.75 -9.3626 194.75 -9.37639C194.75 -9.39019 194.75 -9.40397 194.75 -9.41772C194.75 -9.43148 194.75 -9.44521 194.75 -9.45893C194.75 -9.47264 194.75 -9.48633 194.75 -9.50001H193.25C193.25 -9.48633 193.25 -9.47264 193.25 -9.45893C193.25 -9.44521 193.25 -9.43148 193.25 -9.41772C193.25 -9.40397 193.25 -9.39019 193.25 -9.37639C193.25 -9.3626 193.25 -9.34878 193.25 -9.33494C193.25 -9.3211 193.25 -9.30724 193.25 -9.29337C193.25 -9.27949 193.25 -9.26559 193.25 -9.25167C193.25 -9.23775 193.25 -9.22381 193.25 -9.20984C193.25 -9.19588 193.25 -9.1819 193.25 -9.1679C193.25 -9.1539 193.25 -9.13988 193.25 -9.12584C193.25 -9.1118 193.25 -9.09773 193.25 -9.08365C193.25 -9.06957 193.25 -9.05547 193.25 -9.04135C193.25 -9.02722 193.25 -9.01308 193.25 -8.99892C193.25 -8.98476 193.25 -8.97058 193.25 -8.95638C193.25 -8.94218 193.25 -8.92796 193.25 -8.91372C193.25 -8.89948 193.25 -8.88522 193.25 -8.87094C193.25 -8.85666 193.25 -8.84236 193.25 -8.82804C193.25 -8.81372 193.25 -8.79938 193.25 -8.78503C193.25 -8.77067 193.25 -8.75629 193.25 -8.7419C193.25 -8.7275 193.25 -8.71308 193.25 -8.69865C193.25 -8.68422 193.25 -8.66976 193.25 -8.65529C193.25 -8.64082 193.25 -8.62633 193.25 -8.61182C193.25 -8.59731 193.25 -8.58278 193.25 -8.56823C193.25 -8.55368 193.25 -8.53911 193.25 -8.52453C193.25 -8.50994 193.25 -8.49534 193.25 -8.48071C193.25 -8.46609 193.25 -8.45145 193.25 -8.43679C193.25 -8.42213 193.25 -8.40745 193.25 -8.39275C193.25 -8.37805 193.25 -8.36334 193.25 -8.3486C193.25 -8.33387 193.25 -8.31912 193.25 -8.30435C193.25 -8.28958 193.25 -8.27479 193.25 -8.25998C193.25 -8.24517 193.25 -8.23035 193.25 -8.2155C193.25 -8.20066 193.25 -8.1858 193.25 -8.17092C193.25 -8.15604 193.25 -8.14114 193.25 -8.12623C193.25 -8.11131 193.25 -8.09638 193.25 -8.08143C193.25 -8.06647 193.25 -8.05151 193.25 -8.03652C193.25 -8.02153 193.25 -8.00653 193.25 -7.99151C193.25 -7.97648 193.25 -7.96145 193.25 -7.94639C193.25 -7.93133 193.25 -7.91626 193.25 -7.90117C193.25 -7.88607 193.25 -7.87096 193.25 -7.85584C193.25 -7.84071 193.25 -7.82557 193.25 -7.81041C193.25 -7.79524 193.25 -7.78007 193.25 -7.76487C193.25 -7.74968 193.25 -7.73446 193.25 -7.71923C193.25 -7.704 193.25 -7.68876 193.25 -7.67349C193.25 -7.65823 193.25 -7.64295 193.25 -7.62765C193.25 -7.61236 193.25 -7.59704 193.25 -7.58171C193.25 -7.56638 193.25 -7.55103 193.25 -7.53567C193.25 -7.52031 193.25 -7.50493 193.25 -7.48953C193.25 -7.47413 193.25 -7.45872 193.25 -7.44329C193.25 -7.42786 193.25 -7.41241 193.25 -7.39695C193.25 -7.38148 193.25 -7.36601 193.25 -7.35051C193.25 -7.33501 193.25 -7.3195 193.25 -7.30398C193.25 -7.28845 193.25 -7.2729 193.25 -7.25734C193.25 -7.24178 193.25 -7.22621 193.25 -7.21062C193.25 -7.19502 193.25 -7.17942 193.25 -7.16379C193.25 -7.14817 193.25 -7.13253 193.25 -7.11687C193.25 -7.10122 193.25 -7.08555 193.25 -7.06986C193.25 -7.05417 193.25 -7.03847 193.25 -7.02275C193.25 -7.00703 193.25 -6.9913 193.25 -6.97555C193.25 -6.9598 193.25 -6.94404 193.25 -6.92826C193.25 -6.91248 193.25 -6.89668 193.25 -6.88087C193.25 -6.86506 193.25 -6.84924 193.25 -6.8334C193.25 -6.81756 193.25 -6.8017 193.25 -6.78583C193.25 -6.76996 193.25 -6.75407 193.25 -6.73817C193.25 -6.72227 193.25 -6.70635 193.25 -6.69042C193.25 -6.67449 193.25 -6.65854 193.25 -6.64258C193.25 -6.62662 193.25 -6.61065 193.25 -6.59466C193.25 -6.57867 193.25 -6.56266 193.25 -6.54664C193.25 -6.53062 193.25 -6.51459 193.25 -6.49854C193.25 -6.48249 193.25 -6.46643 193.25 -6.45035C193.25 -6.43427 193.25 -6.41818 193.25 -6.40208C193.25 -6.38597 193.25 -6.36985 193.25 -6.35372C193.25 -6.33758 193.25 -6.32143 193.25 -6.30527C193.25 -6.28911 193.25 -6.27293 193.25 -6.25674C193.25 -6.24055 193.25 -6.22434 193.25 -6.20812C193.25 -6.1919 193.25 -6.17567 193.25 -6.15943C193.25 -6.14318 193.25 -6.12692 193.25 -6.11064C193.25 -6.09437 193.25 -6.07808 193.25 -6.06178C193.25 -6.04548 193.25 -6.02916 193.25 -6.01284C193.25 -5.99651 193.25 -5.98016 193.25 -5.96381C193.25 -5.94745 193.25 -5.93108 193.25 -5.9147C193.25 -5.89832 193.25 -5.88192 193.25 -5.86551C193.25 -5.84911 193.25 -5.83268 193.25 -5.81625C193.25 -5.79981 193.25 -5.78336 193.25 -5.7669C193.25 -5.75044 193.25 -5.73397 193.25 -5.71748C193.25 -5.70099 193.25 -5.68449 193.25 -5.66798C193.25 -5.65147 193.25 -5.63494 193.25 -5.6184C193.25 -5.60186 193.25 -5.58531 193.25 -5.56875C193.25 -5.55218 193.25 -5.53561 193.25 -5.51902C193.25 -5.50243 193.25 -5.48582 193.25 -5.46921C193.25 -5.4526 193.25 -5.43597 193.25 -5.41933C193.25 -5.402
317569 193.25 -5.38604 193.25 -5.36937C193.25 -5.35271 193.25 -5.33603 193.25 -5.31935C193.25 -5.30266 193.25 -5.28596 193.25 -5.26925C193.25 -5.25253 193.25 -5.23581 193.25 -5.21907C193.25 -5.20233 193.25 -5.18559 193.25 -5.16883C193.25 -5.15207 193.25 -5.13529 193.25 -5.11851C193.25 -5.10172 193.25 -5.08493 193.25 -5.06812C193.25 -5.05131 193.25 -5.03449 193.25 -5.01766C193.25 -5.00083 193.25 -4.98399 193.25 -4.96714C193.25 -4.95028 193.25 -4.93342 193.25 -4.91654C193.25 -4.89966 193.25 -4.88278 193.25 -4.86588C193.25 -4.84898 193.25 -4.83207 193.25 -4.81514C193.25 -4.79822 193.25 -4.78129 193.25 -4.76434C193.25 -4.7474 193.25 -4.73045 193.25 -4.71348C193.25 -4.69651 193.25 -4.67954 193.25 -4.66255C193.25 -4.64556 193.25 -4.62856 193.25 -4.61155C193.25 -4.59454 193.25 -4.57752 193.25 -4.56049C193.25 -4.54346 193.25 -4.52641 193.25 -4.50936C193.25 -4.49231 193.25 -4.47524 193.25 -4.45817C193.25 -4.4411 193.25 -4.42401 193.25 -4.40692C193.25 -4.38982 193.25 -4.37272 193.25 -4.3556C193.25 -4.33849 193.25 -4.32136 193.25 -4.30422C193.25 -4.28709 193.25 -4.26994 193.25 -4.25278C193.25 -4.23563 193.25 -4.21846 193.25 -4.20128C193.25 -4.18411 193.25 -4.16692 193.25 -4.14972C193.25 -4.13253 193.25 -4.11532 193.25 -4.0981C193.25 -4.08089 193.25 -4.06366 193.25 -4.04642C193.25 -4.02919 193.25 -4.01194 193.25 -3.99469C193.25 -3.97743 193.25 -3.96017 193.25 -3.94289C193.25 -3.92562 193.25 -3.90833 193.25 -3.89104C193.25 -3.87375 193.25 -3.85644 193.25 -3.83913C193.25 -3.82182 193.25 -3.8045 193.25 -3.78716C193.25 -3.76983 193.25 -3.75249 193.25 -3.73514C193.25 -3.71779 193.25 -3.70043 193.25 -3.68307C193.25 -3.6657 193.25 -3.64832 193.25 -3.63094C193.25 -3.61355 193.25 -3.59616 193.25 -3.57875C193.25 -3.56135 193.25 -3.54394 193.25 -3.52651C193.25 -3.50909 193.25 -3.49166 193.25 -3.47422C193.25 -3.45679 193.25 -3.43934 193.25 -3.42188C193.25 -3.40443 193.25 -3.38696 193.25 -3.36949C193.25 -3.35201 193.25 -3.33453 193.25 -3.31704C193.25 -3.29955 193.25 -3.28205 193.25 -3.26455C193.25 -3.24704 193.25 -3.22953 193.25 -3.212C193.25 -3.19448 193.25 -3.17695 193.25 -3.15941C193.25 -3.14187 193.25 -3.12432 193.25 -3.10677C193.25 -3.08921 193.25 -3.07165 193.25 -3.05408C193.25 -3.0365 193.25 -3.01893 193.25 -3.00134C193.25 -2.98375 193.25 -2.96616 193.25 -2.94855C193.25 -2.93095 193.25 -2.91334 193.25 -2.89572C193.25 -2.8781 193.25 -2.86048 193.25 -2.84285C193.25 -2.82521 193.25 -2.80757 193.25 -2.78992C193.25 -2.77228 193.25 -2.75462 193.25 -2.73696C193.25 -2.71929 193.25 -2.70162 193.25 -2.68395C193.25 -2.66627 193.25 -2.64858 193.25 -2.63089C193.25 -2.6132 193.25 -2.5955 193.25 -2.5778C193.25 -2.56009 193.25 -2.54238 193.25 -2.52466C193.25 -2.50694 193.25 -2.48921 193.25 -2.47148C193.25 -2.45374 193.25 -2.436 193.25 -2.41826C193.25 -2.40051 193.25 -2.38275 193.25 -2.36499C193.25 -2.34723 193.25 -2.32947 193.25 -2.31169C193.25 -2.29392 193.25 -2.27614 193.25 -2.25835C193.25 -2.24056 193.25 -2.22277 193.25 -2.20497C193.25 -2.18717 193.25 -2.16937 193.25 -2.15155C193.25 -2.13374 193.25 -2.11592 193.25 -2.0981C193.25 -2.08027 193.25 -2.06244 193.25 -2.04461C193.25 -2.02677 193.25 -2.00893 193.25 -1.99108C193.25 -1.97323 193.25 -1.95537 193.25 -1.93751C193.25 -1.91965 193.25 -1.90179 193.25 -1.88391C193.25 -1.86604 193.25 -1.84816 193.25 -1.83028C193.25 -1.81239 193.25 -1.79451 193.25 -1.77661C193.25 -1.75871 193.25 -1.74081 193.25 -1.72291C193.25 -1.705 193.25 -1.68709 193.25 -1.66917C193.25 -1.65126 193.25 -1.63333 193.25 -1.61541C193.25 -1.59748 193.25 -1.57955 193.25 -1.56161C193.25 -1.54367 193.25 -1.52573 193.25 -1.50778C193.25 -1.48983 193.25 -1.47187 193.25 -1.45392C193.25 -1.43596 193.25 -1.41799 193.25 -1.40003C193.25 -1.38206 193.25 -1.36408 193.25 -1.34611C193.25 -1.32813 193.25 -1.31014 193.25 -1.29216C193.25 -1.27417 193.25 -1.25618 193.25 -1.23818C193.25 -1.22018 193.25 -1.20218 193.25 -1.18417C193.25 -1.16617 193.25 -1.14816 193.25 -1.13014C193.25 -1.11213 193.25 -1.09411 193.25 -1.07608C193.25 -1.05806 193.25 -1.04003 193.25 -1.022C193.25 -1.00397 193.25 -0.985931 193.25 -0.96789C193.25 -0.949849 193.25 -0.931804 193.25 -0.913755C193.25 -0.895706 193.25 -0.877653 193.25 -0.859597C193.25 -0.84154 193.25 -0.823479 193.25 -0.805414C193.25 -0.78735 193.25 -0.769281 193.25 -0.751209C193.25 -0.733137 193.25 -0.715061 193.25 -0.696981C193.25 -0.678902 193.25 -0.660818 193.25 -0.642732C193.25 -0.624645 193.25 -0.606555 193.25 -0.588461C193.25 -0.570367 193.25 -0.55227 193.25 -0.534169C193.25 -0.516069 193.25 -0.497965 193.25 -0.479857C193.25 -0.46175 193.25 -0.44364 193.25 -0.425526C193.25 -0.407413 193.25 -0.389296 193.25 -0.371176C193.25 -0.353056 193.25 -0.334933 193.25 -0.316807C193.25 -0.298682 193.25 -0.280553 193.25 -0.262421C193.25 -0.244289 193.25 -0.226155 193.25 -0.208018C193.25 -0.18988 193.25 -0.17174 193.25 -0.153597C193.25 -0.135455 193.25 -0.117309 193.25 -0.0991611C193.25 -0.0810131 193.25 -0.0628625 193.25 -0.0447094C193.25 -0.0265563 193.25 -0.00840074 193.25 0.00975721C193.25 0.0279152 193.25 0.0460755 193.25 0.0642381C193.25 0.0824007 193.25 0.100566 193.25 0.118733C193.25 0.1369 193.25 0.155069 193.25 0.173241C193.25 0.191412 193.25 0.209585 193.25 0.227761C193.25 0.245936 193.25 0.264114 193.25 0.282293C193.25 0.300473 193.25 0.318654 193.25 0.336837C193.25 0.35502 193.25 0.373205 193.25 0.391391C193.25 0.409578 193.25 0.427766 193.25 0.445956C193.25 0.464146 193.25 0.482338 193.25 0.500531C193.25 0.518724 193.25 0.536918 193.25 0.555114C193.25 0.57331 193.25 0.591507 193.25 0.609706C193.25 0.627905 193.25 0.646105 193.25 0.664306C193.25 0.682507 193.25 0.70071 193.25 0.718913C193.25 0.737117 193.25 0.755321 193.25 0.773527C193.25 0.791733 193.25 0.80994 193.25 0.828147C193.25 0.846355 193.25 0.864564 193.25 0.882773C193.25 0.900983 193.25 0.919193 193.25 0.937404C193.25 0.955615 193.25 0.973827 193.25 0.992039C193.25 1.01025 193.25 1.02846 193.25 1.04668C193.25 1.06489 193.25 1.08311 193.25 1.10132C193.25 1.11953 193.25 1.13775 193.25 1.15597C193.25 1.17418 193.25 1.1924 193.25 1.21061C193.25 1.22883 193.25 1.24704 193.25 1.26526C193.25 1.28348 193.25 1.30169 193.25 1.31991C193.25 1.33813 193.25 1.35634 193.25 1.37456C193.25 1.39278 193.25 1.41099 193.25 1.42921C193.25 1.44743 193.25 1.46564 193.25 1.48386C193.25 1.50207 193.25 1.52029 193.25 1.53851C193.25 1.55672 193.25 1.57494 193.25 1.59315C193.25 1.61137 193.25 1.62958 193.25 1.64779C193.25 1.66601 193.25 1.68422 193.25 1.70243C193.25 1.72065 193.25 1.73886 193.25 1.75707C193.25 1.77528 193.25 1.79349 193.25 1.8117C193.25 1.82991 193.25 1.84812 193.25 1.86633C193.25 1.88454 193.25 1.90274 193.25 1.92095C193.25 1.93916 193.25 1.95736 193.25 1.97557C193.25 1.99377 193.25 2.01197 193.25 2.03018C193.25 2.04838 193.25 2.06658 193.25 2.08478C193.25 2.10298 193.25 2.12117 193.25 2.13937C193.25 2.15757 193.25 2.17576 193.25 2.19396C193.25 2.21215 193.25 2.23034 193.25 2.24853C193.25 2.26672 193.25 2.28491 193.25 2.3
3175031C193.25 2.32129 193.25 2.33947 193.25 2.35766C193.25 2.37584 193.25 2.39402 193.25 2.4122C193.25 2.43038 193.25 2.44856 193.25 2.46674C193.25 2.48491 193.25 2.50309 193.25 2.52126C193.25 2.53943 193.25 2.5576 193.25 2.57577C193.25 2.59394 193.25 2.61211 193.25 2.63027C193.25 2.64843 193.25 2.66659 193.25 2.68475C193.25 2.70291 193.25 2.72107 193.25 2.73922C193.25 2.75738 193.25 2.77553 193.25 2.79368C193.25 2.81183 193.25 2.82997 193.25 2.84812C193.25 2.86626 193.25 2.8844 193.25 2.90254C193.25 2.92068 193.25 2.93882 193.25 2.95695C193.25 2.97508 193.25 2.99321 193.25 3.01134C193.25 3.02947 193.25 3.04759 193.25 3.06571C193.25 3.08383 193.25 3.10195 193.25 3.12007C193.25 3.13818 193.25 3.15629 193.25 3.1744C193.25 3.19251 193.25 3.21062 193.25 3.22872C193.25 3.24682 193.25 3.26492 193.25 3.28302C193.25 3.30111 193.25 3.3192 193.25 3.33729C193.25 3.35538 193.25 3.37347 193.25 3.39155C193.25 3.40963 193.25 3.42771 193.25 3.44578C193.25 3.46385 193.25 3.48192 193.25 3.49999C193.25 3.51806 193.25 3.53612 193.25 3.55418C193.25 3.57224 193.25 3.59029 193.25 3.60834C193.25 3.62639 193.25 3.64444 193.25 3.66248C193.25 3.68052 193.25 3.69856 193.25 3.7166C193.25 3.73463 193.25 3.75266 193.25 3.77069C193.25 3.78871 193.25 3.80673 193.25 3.82475C193.25 3.84277 193.25 3.86078 193.25 3.87879C193.25 3.8968 193.25 3.9148 193.25 3.9328C193.25 3.9508 193.25 3.96879 193.25 3.98678C193.25 4.00477 193.25 4.02276 193.25 4.04074C193.25 4.05872 193.25 4.0767 193.25 4.09467C193.25 4.11264 193.25 4.1306 193.25 4.14856C193.25 4.16653 193.25 4.18448 193.25 4.20243C193.25 4.22038 193.25 4.23833 193.25 4.25627C193.25 4.27421 193.25 4.29215 193.25 4.31008C193.25 4.32801 193.25 4.34593 193.25 4.36385C193.25 4.38177 193.25 4.39968 193.25 4.41759C193.25 4.4355 193.25 4.4534 193.25 4.4713C193.25 4.4892 193.25 4.50709 193.25 4.52498C193.25 4.54287 193.25 4.56075 193.25 4.57862C193.25 4.5965 193.25 4.61437 193.25 4.63223C193.25 4.65009 193.25 4.66795 193.25 4.6858C193.25 4.70365 193.25 4.7215 193.25 4.73934C193.25 4.75718 193.25 4.77501 193.25 4.79284C193.25 4.81067 193.25 4.82849 193.25 4.8463C193.25 4.86412 193.25 4.88193 193.25 4.89973C193.25 4.91753 193.25 4.93533 193.25 4.95312C193.25 4.97091 193.25 4.98869 193.25 5.00647C193.25 5.02425 193.25 5.04202 193.25 5.05978C193.25 5.07754 193.25 5.0953 193.25 5.11305C193.25 5.1308 193.25 5.14854 193.25 5.16628C193.25 5.18402 193.25 5.20175 193.25 5.21947C193.25 5.23719 193.25 5.25491 193.25 5.27262C193.25 5.29033 193.25 5.30803 193.25 5.32573C193.25 5.34342 193.25 5.36111 193.25 5.37879C193.25 5.39647 193.25 5.41414 193.25 5.43181C193.25 5.44948 193.25 5.46714 193.25 5.48479C193.25 5.50244 193.25 5.52008 193.25 5.53772C193.25 5.55536 193.25 5.57298 193.25 5.59061C193.25 5.60823 193.25 5.62584 193.25 5.64345C193.25 5.66105 193.25 5.67865 193.25 5.69624C193.25 5.71383 193.25 5.73142 193.25 5.74899C193.25 5.76657 193.25 5.78413 193.25 5.80169C193.25 5.81925 193.25 5.8368 193.25 5.85435C193.25 5.87189 193.25 5.88943 193.25 5.90695C193.25 5.92448 193.25 5.942 193.25 5.95951C193.25 5.97702 193.25 5.99452 193.25 6.01202C193.25 6.02951 193.25 6.04699 193.25 6.06447C193.25 6.08195 193.25 6.09942 193.25 6.11688C193.25 6.13434 193.25 6.15179 193.25 6.16923C193.25 6.18667 193.25 6.20411 193.25 6.22153C193.25 6.23896 193.25 6.25638 193.25 6.27378C193.25 6.29119 193.25 6.30859 193.25 6.32598C193.25 6.34337 193.25 6.36075 193.25 6.37812C193.25 6.3955 193.25 6.41286 193.25 6.43021C193.25 6.44757 193.25 6.46491 193.25 6.48225C193.25 6.49958 193.25 6.51691 193.25 6.53422C193.25 6.55154 193.25 6.56885 193.25 6.58615C193.25 6.60344 193.25 6.62073 193.25 6.63801C193.25 6.65529 193.25 6.67256 193.25 6.68982C193.25 6.70708 193.25 6.72433 193.25 6.74157C193.25 6.75881 193.25 6.77604 193.25 6.79326C193.25 6.81049 193.25 6.8277 193.25 6.8449C193.25 6.8621 193.25 6.87929 193.25 6.89647C193.25 6.91365 193.25 6.93083 193.25 6.94799C193.25 6.96515 193.25 6.9823 193.25 6.99944C193.25 7.01658 193.25 7.03371 193.25 7.05083C193.25 7.06795 193.25 7.08506 193.25 7.10216C193.25 7.11926 193.25 7.13635 193.25 7.15343C193.25 7.17051 193.25 7.18758 193.25 7.20463C193.25 7.22169 193.25 7.23874 193.25 7.25578C193.25 7.27281 193.25 7.28984 193.25 7.30685C193.25 7.32387 193.25 7.34087 193.25 7.35787C193.25 7.37486 193.25 7.39184 193.25 7.40881C193.25 7.42578 193.25 7.44274 193.25 7.45969C193.25 7.47664 193.25 7.49358 193.25 7.51051C193.25 7.52744 193.25 7.54435 193.25 7.56126C193.25 7.57816 193.25 7.59505 193.25 7.61194C193.25 7.62882 193.25 7.64569 193.25 7.66255C193.25 7.67941 193.25 7.69626 193.25 7.71309C193.25 7.72993 193.25 7.74675 193.25 7.76357C193.25 7.78038 193.25 7.79718 193.25 7.81397C193.25 7.83076 193.25 7.84754 193.25 7.8643C193.25 7.88107 193.25 7.89782 193.25 7.91456C193.25 7.93131 193.25 7.94804 193.25 7.96475C193.25 7.98147 193.25 7.99818 193.25 8.01487C193.25 8.03157 193.25 8.04825 193.25 8.06492C193.25 8.08159 193.25 8.09824 193.25 8.11489C193.25 8.13153 193.25 8.14817 193.25 8.16479C193.25 8.18141 193.25 8.19802 193.25 8.21461C193.25 8.23121 193.25 8.24779 193.25 8.26436C193.25 8.28093 193.25 8.29749 193.25 8.31403C193.25 8.33058 
3175193.25 8.34711 193.25 8.36363C193.25 8.38015 193.25 8.39665 193.25 8.41315C193.25 8.42964 193.25 8.44612 193.25 8.46259C193.25 8.47905 193.25 8.49551 193.25 8.51195C193.25 8.52839 193.25 8.54482 193.25 8.56123C193.25 8.57765 193.25 8.59405 193.25 8.61044C193.25 8.62683 193.25 8.6432 193.25 8.65957C193.25 8.67593 193.25 8.69228 193.25 8.70861C193.25 8.72495 193.25 8.74127 193.25 8.75757C193.25 8.77388 193.25 8.79018 193.25 8.80646C193.25 8.82274 193.25 8.839 193.25 8.85526C193.25 8.87151 193.25 8.88775 193.25 8.90397C193.25 8.9202 193.25 8.93641 193.25 8.95261C193.25 8.96881 193.25 8.98499 193.25 9.00116C193.25 9.01733 193.25 9.03348 193.25 9.04963C193.25 9.06577 193.25 9.08189 193.25 9.09801C193.25 9.11412 193.25 9.13022 193.25 9.1463C193.25 9.16239 193.25 9.17845 193.25 9.19451C193.25 9.21057 193.25 9.22661 193.25 9.24263C193.25 9.25866 193.25 9.27467 193.25 9.29067C193.25 9.30666 193.25 9.32265 193.25 9.33861C193.25 9.35458 193.25 9.37053 193.25 9.38647C193.25 9.40241 193.25 9.41833 193.25 9.43424C193.25 9.45015 193.25 9.46604 193.25 9.48192C193.25 9.4978 193.25 9.51366 193.25 9.52951C193.25 9.54536 193.25 9.56119 193.25 9.57701C193.25 9.59282 193.25 9.60863 193.25 9.62441C193.25 9.6402 193.25 9.65597 193.25 9.67173C193.25 9.68748 193.25 9.70322 193.25 9.71895C193.25 9.73468 193.25 9.75038 193.25 9.76608C193.25 9.78177 193.25 9.79745 193.25 9.81311C193.25 9.82878 193.25 9.84442 193.25 9.86005C193.25 9.87569 193.25 9.8913 193.25 9.9069C193.25 9.9225 193.25 9.93808 193.25 9.95365C193.25 9.96922 193.25 9.98477 193.25 10.0003C193.25 10.0158 193.25 10.0314 193.25 10.0469C193.25 10.0624 193.25 10.0779 193.25 10.0933C193.25 10.1088 193.25 10.1242 193.25 10.1397C193.25 10.1551 193.25 10.1705 193.25 10.1859C193.25 10.2014 193.25 10.2167 193.25 10.2321C193.25 10.2475 193.25 10.2628 193.25 10.2782C193.25 10.2935 193.25 10.3088 193.25 10.3241C193.25 10.3394 193.25 10.3547 193.25 10.37C193.25 10.3853 193.25 10.4005 193.25 10.4158C193.25 10.431 193.25 10.4462 193.25 10.4614C193.25 10.4766 193.25 10.4918 193.25 10.507C193.25 10.5222 193.25 10.5373 193.25 10.5524C193.25 10.5676 193.25 10.5827 193.25 10.5978C193.25 10.6129 193.25 10.628 193.25 10.643C193.25 10.6581 193.25 10.6732 193.25 10.6882C193.25 10.7032 193.25 10.7182 193.25 10.7332C193.25 10.7482 193.25 10.7632 193.25 10.7782C193.25 10.7931 193.25 10.8081 193.25 10.823C193.25 10.8379 193.25 10.8528 193.25 10.8677C193.25 10.8826 193.25 10.8975 193.25 10.9123C193.25 10.9272 193.25 10.942 193.25 10.9568C193.25 10.9716 193.25 10.9864 193.25 11.0012C193.25 11.016 193.25 11.0307 193.25 11.0455C193.25 11.0602 193.25 11.0749 193.25 11.0897C193.25 11.1044 193.25 11.119 193.25 11.1337C193.25 11.1484 193.25 11.163 193.25 11.1777C193.25 11.1923 193.25 11.2069 193.25 11.2215C193.25 11.2361 193.25 11.2507 193.25 11.2652C193.25 11.2798 193.25 11.2943 193.25 11.3088C193.25 11.3234 193.25 11.3379 193.25 11.3523C193.25 11.3668 193.25 11.3813 193.25 11.3957C193.25 11.4102 193.25 11.4246 193.25 11.439C193.25 11.4534 193.25 11.4678 193.25 11.4822C193.25 11.4965 193.25 11.5109 193.25 11.5252C193.25 11.5395 193.25 11.5538 193.25 11.5681C193.25 11.5824 193.25 11.5967 193.25 11.6109C193.25 11.6252 193.25 11.6394 193.25 11.6536C193.25 11.6678 193.25 11.682 193.25 11.6962C193.25 11.7104 193.25 11.7245 193.25 11.7386C193.25 11.7528 193.25 11.7669 193.25 11.781C193.25 11.7951 193.25 11.8091 193.25 11.8232C193.25 11.8372 193.25 11.8513 193.25 11.8653C193.25 11.8793 193.25 11.8933 193.25 11.9073C193.25 11.9212 193.25 11.9352 193.25 11.9491C193.25 11.963 193.25 11.9769 193.25 11.9908C193.25 12.0047 193.25 12.0186 193.25 12.0324C193.25 12.0463 193.25 12.0601 193.25 12.0739C193.25 12.0877 193.25 12.1015 193.25 12.1153C193.25 12.129 193.25 12.1428 193.25 12.1565C193.25 12.1702 193.25 12.1839 193.25 12.1976C193.25 12.2113 193.25 12.225 193.25 12.2386C193.25 12.2522 193.25 12.2659 193.25 12.2795C193.25 12.2931 193.25 12.3066 193.25 12.3202C193.25 12.3337 193.25 12.3473 193.25 12.3608C193.25 12.3743 193.25 12.3878 193.25 12.4013C193.25 12.4147 193.25 12.4282 193.25 12.4416C193.25 12.455 193.25 12.4684 193.25 12.4818C193.25 12.4952 193.25 12.5086 193.25 12.5219C193.25 12.5352 193.25 12.5486 193.25 12.5619C193.25 12.5752 193.25 12.5884 193.25 12.6017C193.25 12.6149 193.25 12.6282 193.25 12.6414C193.25 12.6546 193.25 12.6678 193.25 12.6809C193.25 12.6941 193.25 12.7072 193.25 12.7204C193.25 12.7335 193.25 12.7466 193.25 12.7597C193.25 12.7727 193.25 12.7858 193.25 12.7988C193.25 12.8118 193.25 12.8249 193.25 12.8378C193.25 12.8508 193.25 12.8638 193.25 12.8767C193.25 12.8897 193.25 12.9026 193.25 12.9155C193.25 12.9284 193.25 12.9413 193.25 12.9541C193.25 12.967 193.25 12.9798 193.25 12.9926C193.25 13.0054 193.25 13.0182 193.25 13.0309C193.25 13.0437 193.25 13.0564 193.25 13.0691C193.25 13.0818 193.25 13.0945 193.25 13.1072C193.25 13.1199 193.25 13.1325 193.25 13.1451C193.25 13.1578 193.25 13.1704 193.25 13.1829C193.25 13.1955 193.25 13.208 193.25 13.2206C193.25 13.2331 193.25 13.2456 193.25 13.2581C193.25 13.2706 193.25 13.283 193.25 13.2954C193.25 13.3079 193.25 13.3203 193.25 13.3327C193.25 13.3451 193.25 13.3574 193.25 13.3698C193.25 13.3821 193.25 13.3944 193.25 13.4067C193.25 13.419 193.25 13.4312 193.25 13.4435C193.25 13.4557 193.25 13.4679 193.25 13.4801C193.25 13.4923 193.25 13.5045 193.25 13.5166C193.25 13.5288 193.25 13.5409 193.25 13.553C193.25 13.5651 193.25 13.5772 193.25 13.5892C193.25 13.6013 193.25 13.6133 193.25 13.6253C193.25 13.6373 193.25 13.6493 193.25 13.6612C193.25 13.6732 193.25 13.6851 193.25 13.697C193.25 13.7089 193.25 13.7208 193.25 13.7326C193.25 13.7445 193.25 13.7563 193.25 13.7681C193.25 13.7799 193.25 13.7917 193.25 13.8034C193.25 13.8152 193.25 13.8269 193.25 13.8386C193.25 13.8503 193.25 13.862 193.25 13.8736C193.25 13.8853 193.25 13.8969 193.25 13.9085C193.25 13.9201 193.25 13.9317 193.25 13.9432C193.25 13.9547 193.25 13.9663 193.25 13.9778C193.25 13.9893 193.25 14.0007 193.25 14.0122C193.25 14.0236 193.25 14.0351 193.25 14.0464C193.25 14.0578 193.25 14.0692 193.25 14.0806C193.25 14.0919 193.25 14.1032 193.25 14.1145C193.25 14.1258 193.25 14.1371 193.25 14.1483C193.25 14.1595 193.25 14.1708 193.25 14.1819C193.25 14.1931 193.25 14.2043 193.25 14.2154C193.25 14.2266 193.25 14.2377 193.25 14.2488C193.25 14.2598 193.25 14.2709 193.25 14.2819C193.25 14.293 193.25 14.304 193.25 14.3149C193.25 14.3259 193.25 14.3369 193.25 14.3478C193.25 14.3587 193.25 14.3696 193.25 14.3805C193.25 14.3914 193.25 14.4022 193.25 14.413C193.25 14.4238 193.25 14.4346 193.25 14.4454C193.25 14.4562 193.25 14.4669 193.25 14.4776C193.25 14.4883 193.25 14.499 193.25 14.5097C193.25 14.5203 193.25 14.5309 193.25 14.5415C193.25 14.5521 193.25 14.5627 193.25 14.5733C193.25 14.5838 193.25 14.5943 193.25 14.6048C193.25 14.6153 193.25 14.6258 193.25 14.6362C193.25 14.6467 193.25 14.6571 193.25 14.6675C193.25 14.6778 
3175193.25 14.6882 193.25 14.6985C193.25 14.7089 193.25 14.7192 193.25 14.7294C193.25 14.7397 193.25 14.7499 193.25 14.7602C193.25 14.7704 193.25 14.7806 193.25 14.7907C193.25 14.8009 193.25 14.811 193.25 14.8211C193.25 14.8312 193.25 14.8413 193.25 14.8514C193.25 14.8614 193.25 14.8714 193.25 14.8814C193.25 14.8914 193.25 14.9014 193.25 14.9113C193.25 14.9213 193.25 14.9312 193.25 14.941C193.25 14.9509 193.25 14.9608 193.25 14.9706C193.25 14.9804 193.25 14.9902 193.25 15H194.75ZM194.75 -9.50001C194.75 -11.1105 195.208 -12.3974 196.093 -13.2822C196.976 -14.1655 198.387 -14.75 200.5 -14.75V-16.25C198.113 -16.25 196.274 -15.5845 195.032 -14.3428C193.792 -13.1026 193.25 -11.3895 193.25 -9.50001H194.75ZM200.5 -14.75C200.511 -14.75 200.522 -14.75 200.533 -14.75C200.544 -14.75 200.555 -14.75 200.566 -14.75C200.578 -14.75 200.589 -14.75 200.6 -14.75C200.611 -14.75 200.623 -14.75 200.634 -14.75C200.646 -14.75 200.657 -14.75 200.669 -14.75C200.68 -14.75 200.692 -14.75 200.703 -14.75C200.715 -14.75 200.727 -14.75 200.739 -14.75C200.75 -14.75 200.762 -14.75 200.774 -14.75C200.786 -14.75 200.798 -14.75 200.81 -14.75C200.822 -14.75 200.834 -14.75 200.846 -14.75C200.859 -14.75 200.871 -14.75 200.883 -14.75C200.895 -14.75 200.908 -14.75 200.92 -14.75C200.932 -14.75 200.945 -14.75 200.957 -14.75C200.97 -14.75 200.982 -14.75 200.995 -14.75C201.008 -14.75 201.02 -14.75 201.033 -14.75C201.046 -14.75 201.059 -14.75 201.071 -14.75C201.084 -14.75 201.097 -14.75 201.11 -14.75C201.123 -14.75 201.136 -14.75 201.149 -14.75C201.162 -14.75 201.175 -14.75 201.189 -14.75C201.202 -14.75 201.215 -14.75 201.228 -14.75C201.242 -14.75 201.255 -14.75 201.269 -14.75C201.282 -14.75 201.295 -14.75 201.309 -14.75C201.323 -14.75 201.336 -14.75 201.35 -14.75C201.364 -14.75 201.377 -14.75 201.391 -14.75C201.405 -14.75 201.419 -14.75 201.432 -14.75C201.446 -14.75 201.46 -14.75 201.474 -14.75C201.488 -14.75 201.502 -14.75 201.516 -14.75C201.531 -14.75 201.545 -14.75 201.559 -14.75C201.5
317573 -14.75 201.587 -14.75 201.602 -14.75C201.616 -14.75 201.631 -14.75 201.645 -14.75C201.659 -14.75 201.674 -14.75 201.688 -14.75C201.703 -14.75 201.718 -14.75 201.732 -14.75C201.747 -14.75 201.762 -14.75 201.776 -14.75C201.791 -14.75 201.806 -14.75 201.821 -14.75C201.836 -14.75 201.851 -14.75 201.866 -14.75C201.881 -14.75 201.896 -14.75 201.911 -14.75C201.926 -14.75 201.941 -14.75 201.956 -14.75C201.972 -14.75 201.987 -14.75 202.002 -14.75C202.017 -14.75 202.033 -14.75 202.048 -14.75C202.064 -14.75 202.079 -14.75 202.095 -14.75C202.11 -14.75 202.126 -14.75 202.141 -14.75C202.157 -14.75 202.173 -14.75 202.189 -14.75C202.204 -14.75 202.22 -14.75 202.236 -14.75C202.252 -14.75 202.268 -14.75 202.284 -14.75C202.3 -14.75 202.316 -14.75 202.332 -14.75C202.348 -14.75 202.364 -14.75 202.38 -14.75C202.396 -14.75 202.412 -14.75 202.429 -14.75C202.445 -14.75 202.461 -14.75 202.478 -14.75C202.494 -14.75 202.51 -14.75 202.527 -14.75C202.543 -14.75 202.56 -14.75 202.576 -14.75C202.593 -14.75 202.61 -14.75 202.626 -14.75C202.643 -14.75 202.66 -14.75 202.676 -14.75C202.693 -14.75 202.71 -14.75 202.727 -14.75C202.744 -14.75 202.761 -14.75 202.778 -14.75C202.795 -14.75 202.812 -14.75 202.829 -14.75C202.846 -14.75 202.863 -14.75 202.88 -14.75C202.897 -14.75 202.915 -14.75 202.932 -14.75C202.949 -14.75 202.967 -14.75 202.984 -14.75C203.001 -14.75 203.019 -14.75 203.036 -14.75C203.054 -14.75 203.071 -14.75 203.089 -14.75C203.106 -14.75 203.124 -14.75 203.142 -14.75C203.159 -14.75 203.177 -14.75 203.195 -14.75C203.213 -14.75 203.231 -14.75 203.248 -14.75C203.266 -14.75 203.284 -14.75 203.302 -14.75C203.32 -14.75 203.338 -14.75 203.356 -14.75C203.374 -14.75 203.392 -14.75 203.411 -14.75C203.429 -14.75 203.447 -14.75 203.465 -14.75C203.483 -14.75 203.502 -14.75 203.52 -14.75C203.538 -14.75 203.557 -14.75 203.575 -14.75C203.594 -14.75 203.612 -14.75 203.631 -14.75C203.649 -14.75 203.668 -14.75 203.687 -14.75C203.705 -14.75 203.724 -14.75 203.743 -14.75C203.761 -14.75 203.78 -14.75 203.799 -14.75C203.818 -14.75 203.837 -14.75 203.856 -14.75C203.874 -14.75 203.893 -14.75 203.912 -14.75C203.931 -14.75 203.95 -14.75 203.97 -14.75C203.989 -14.75 204.008 -14.75 204.027 -14.75C204.046 -14.75 204.065 -14.75 204.085 -14.75C204.104 -14.75 204.123 -14.75 204.143 -14.75C204.162 -14.75 204.182 -14.75 204.201 -14.75C204.22 -14.75 204.24 -14.75 204.259 -14.75C204.279 -14.75 204.299 -14.75 204.318 -14.75C204.338 -14.75 204.358 -14.75 204.377 -14.75C204.397 -14.75 204.417 -14.75 204.437 -14.75C204.457 -14.75 204.476 -14.75 204.496 -14.75C204.516 -14.75 204.536 -14.75 204.556 -14.75C204.576 -14.75 204.596 -14.75 204.616 -14.75C204.636 -14.75 204.656 -14.75 204.677 -14.75C204.697 -14.75 204.717 -14.75 204.737 -14.75C204.758 -14.75 204.778 -14.75 204.798 -14.75C204.819 -14.75 204.839 -14.75 204.859 -14.75C204.88 -14.75 204.9 -14.75 204.921 -14.75C204.941 -14.75 204.962 -14.75 204.982 -14.75C205.003 -14.75 205.024 -14.75 205.044 -14.75C205.065 -14.75 205.086 -14.75 205.107 -14.75C205.127 -14.75 205.148 -14.75 205.169 -14.75C205.19 -14.75 205.211 -14.75 205.232 -14.75C205.253 -14.75 205.274 -14.75 205.295 -14.75C205.316 -14.75 205.337 -14.75 205.358 -14.75C205.379 -14.75 205.4 -14.75 205.421 -14.75C205.442 -14.75 205.464 -14.75 205.485 -14.75C205.506 -14.75 205.527 -14.75 205.549 -14.75C205.57 -14.75 205.591 -14.75 205.613 -14.75C205.634 -14.75 205.656 -14.75 205.677 -14.75C205.699 -14.75 205.72 -14.75 205.742 -14.75C205.764 -14.75 205.785 -14.75 205.807 -14.75C205.829 -14.75 205.85 -14.75 205.872 -14.75C205.894 -14.75 205.915 -14.75 205.937 -14.75C205.959 -14.75 205.981 -14.75 206.003 -14.75C206.025 -14.75 206.047 -14.75 206.069 -14.75C206.091 -14.75 206.113 -14.75 206.135 -14.75C206.157 -14.75 206.179 -14.75 206.201 -14.75C206.223 -14.75 206.245 -14.75 206.268 -14.75C206.29 -14.75 206.312 -14.75 206.334 -14.75C206.357 -14.75 206.379 -14.75 206.401 -14.75C206.424 -14.75 206.446 -14.75 206.469 -14.75C206.491 -14.75 206.513 -14.75 206.536 -14.75C206.558 -14.75 206.581 -14.75 206.604 -14.75C206.626 -14.75 206.649 -14.75 206.671 -14.75C206.694 -14.75 206.717 -14.75 206.74 -14.75C206.762 -14.75 206.785 -14.75 206.808 -14.75C206.831 -14.75 206.854 -14.75 206.876 -14.75C206.899 -14.75 206.922 -14.75 206.945 -14.75C206.968 -14.75 206.991 -14.75 207.014 -14.75C207.037 -14.75 207.06 -14.75 207.083 -14.75C207.106 -14.75 207.13 -14.75 207.153 -14.75C207.176 -14.75 207.199 -14.75 207.222 -14.75C207.246 -14.75 207.269 -14.75 207.292 -14.75C207.315 -14.75 207.339 -14.75 207.362 -14.75C207.386 -14.75 207.409 -14.75 207.432 -14.75C207.456 -14.75 207.479 -14.75 207.503 -14.75C207.526 -14.75 207.55 -14.75 207.574 -14.75C207.597 -14.75 207.621 -14.75 207.644 -14.75C207.668 -14.75 207.692 -14.75 207.716 -14.75C207.739 -14.75 207.763 -14.75 207.787 -14.75C207.811 -14.75 207.834 -14.75 207.858 -14.75C207.882 -14.75 207.906 -14.75 207.93 -14.75C207.954 -14.75 207.978 -14.75 208.002 -14.75C208.026 -14.75 208.05 -14.75 208.074 -14.75C208.098 -14.75 208.122 -14.75 208.146 -14.75C208.17 -14.75 208.194 -14.75 208.219 -14.75C208.243 -14.75 208.267 -14.75 208.291 -14.75C208.316 -14.75 208.34 -14.75 208.364 -14.75C208.389 -14.75 208.413 -14.75 208.437 -14.75C208.462 -14.75 208.486 -14.75 208.511 -14.75C208.535 -14.75 208.559 -14.75 208.584 -14.75C208.608 -14.75 208.633 -14.75 208.658 -14.75C208.682 -14.75 208.707 -14.75 208.731 -14.75C208.756 -14.75 208.781 -14.75 208.805 -14.75C208.83 -14.75 208.855 -14.75 208.88 -14.75C208.904 -14.75 208.929 -14.75 208.954 -14.75C208.979 -14.75 209.004 -14.75 209.028 -14.75C209.053 -14.75 209.078 -14.75 209.103 -14.75C209.128 -14.75 209.153 -14.75 209.178 -14.75C209.203 -14.75 209.228 -14.75 209.253 -14.75C209.278 -14.75 209.303 -14.75 209.328 -14.75C209.354 -14.75 209.379 -14.75 209.404 -14.75C209.429 -14.75 209.454 -14.75 209.479 -14.75C209.505 -14.75 209.53 -14.75 209.555 -14.75C209.581 -14.75 209.606 -14.75 209.631 -14.75C209.657 -14.75 209.682 -14.75 209.707 -14.75C209.733 -14.75 209.758 -14.75 209.784 -14.75C209.809 -14.75 209.835 -14.75 209.86 -14.75C209.886 -14.75 209.911 -14.75 209.937 -14.75C209.962 -14.75 209.988 -14.75 210.014 -14.75C210.039 -14.75 210.065 -14.75 210.091 -14.75C210.116 -14.75 210.142 -14.75 210.168 -14.75C210.193 -14.75 210.219 -14.75 210.245 -14.75C210.271 -14.75 210.297 -14.75 210.322 -14.75C210.348 -14.75 210.374 -14.75 210.4 -14.75C210.426 -14.75 210.452 -14.75 210.478 -14.75C210.504 -14.75 210.53 -14.75 210.556 -14.75C210.582 -14.75 210.608 -14.75 210.634 -14.75C210.66 -14.75 210.686 -14.75 210.712 -14.75C210.738 -14.75 210.764 -14.75 210.79 -14.75C210.817 -14.75 210.843 -14.75 210.869 -14.75C210.895 -14.75 210.921 -14.75 210.948 -14.75C210.974 -14.75 211 -14.75 211.027 -14.75C211.053 -14.75 211.079 -14.75 211.106 -14.75C211.132 -14.75 211.158 -14.75 211.185 -14.75C211.211 -14.75 211.238 -14.75 211.264 -14.75C211.29 -14.75 211.317 -14.75 211.343 -14.75C211.37 -14.75 211.396 -14.75 211.423 -14.75C211.45 -14.75 211.476 -14.75 211.503 -14.75C211.529 -14.75 211.556 -14.75 211.583 -14.75C211.609 -14.75 211.636 -14.75 211.663 -14.75C211.689 -14.75 211.716 -14.75 211.743 -14.75C211.769 -14.75 211.796 -14.75 211.823 -14.75C211.85 -14.75 211.877 -14.75 211.903 -14.75C211.93 -14.75 211.957 -14.75 211.984 -14.75C212.011 -14.75 212.038 -14.75 212.065 -14.75C212.092 -14.75 212.119 -14.75 212.146 -14.75C212.172 -14.75 212.199 -14.75 212.226 -14.75C212.253 -14.75 212.28 -14.75 212.308 -14.75C212.335 -14.75 212.362 -14.75 212.389 -14.75C212.416 -14.75 212.443 -14.75 212.47 -14.75C212.497 -14.75 212.524 -14.75 212.552 -14.75C212.579 -14.75 212.606 -14.75 212.633 -14.75C212.66 -14.75 212.688 -14.75 212.715 -14.75C212.742 -14.75 212.769 -14.75 212.797 -14.75C212.824 -14.75 212.851 -14.75 212.879 -14.75C212.906 -14.75 212.933 -14.75 212.961 -14.75C212.988 -14.75 213.016 -14.75 213.043 -14.75C213.07 -14.75 213.098 -14.75 213.125 -14.75C213.153 -14.75 213.18 -14.75 213.208 -14.75C213.235 -14.75 213.263 -14.75 213.29 -14.75C213.318 -14.75 213.345 -14.75 213.373 -14.75C213.4 -14.75 213.428 -14.75 213.456 -14.75C213.483 -14.75 213.511 -14.75 213.539 -14.75C213.566 -14.75 213.594 -14.75 213.622 -14.75C213.649 -14.75 213.677 -14.75 213.705 -14.75C213.732 -14.75 213.76 -14.75 213.788 -14.75C213.816 -14.75 213.843 -14.75 213.871 -14.75C213.899 -14.75 213.927 -14.75 213.955 -14.75C213.982 -14.75 214.01 -14.75 214.038 -14.75C214.066 -14.75 214.094 -14.75 214.122 -14.75C214.15 -14.75 214.178 -14.75 214.206 -14.75C214.233 -14.75 214.261 -14.75 214.289 -14.75C214.317 -14.75 214.345 -14.75 214.373 -14.75C214.401 -14.75 214.429 -14.75 214.457 -14.75C214.485 -14.75 214.513 -14.75 214.541 -14.75C214.57 -14.75 214.598 -14.75 214.626 -14.75C214.654 -14.75 214.682 -14.75 214.71 -14.75C214.738 -14.75 214.766 -14.75 214.794 -14.75C214.823 -14.75 214.851 -14.75 214.879 -14.75C214.907 -14.75 214.935 -14.75 214.964 -14.75C214.992 -14.75 215.02 -14.75 215.048 -14.75C215.076 -14.75 215.105 -14.75 215.133 -14.75C215.161 -14.75 215.19 -14.75 215.218 -14.75C215.246 -14.75 215.275 -14.75 215.303 -14.75C215.331 -14.75 215.36 -14.75 215.388 -14.75C215.416 -14.75 215.445 -14.75 215.473 -14.75C215.501 -14.75 215.53 -14.75 215.558 -14.75C215.587 -14.75 215.615 -14.75 215.643 -14.75C215.672 -14.75 215.7 -14.75 215.729 -14.75C215.757 -14.75 215.786 -14.75 215.814 -14.75C215.843 -14.75 215.871 -14.75 215.9 -14.75C215.928 -14.75 215.957 -14.75 215.985 -14.75C216.014 -14.75 216.042 -14.75 216.071 -14.75C216.1 -14.75 216.128 -14.75 216.157 -14.75C216.185 -14.75 216.214 -14.75 216.243 -14.75C216.271 -14.75 216.3 -14.75 216.328 -14.75C216.357 -14.75 216.386 -14.75 216.414 -14.75C216.443 -14.75 216.472 -14.75 216.5 -14.75C216.529 -14.75 216.558 -14.75 216.586 -14.75C216.615 -14.75 216.644 -14.75 216.673 -14.75C216.701 -14.75 216.73 -14.75 216.759 -14.75C216.788 -14.75 216.816 -14.75 216.845 -14.75C216.874 -14.75 216.903 -14.75 216.931 -14.75C216.96 -14.75 216.989 -14.75 217.018 -14.75C217.047 -14.75 217.076 -14.75 217.104 -14.75C217.133 -14.75 217.162 -14.75 217.191 -14.75C217.22 -14.75 217.249 -14.75 217.277 -14.75C217.306 -14.75 217.335 -14.75 217.364 -14.75C217.393 -14.75 217.422 -14.75 217.451 -14.75C217.48 -14.75 217.509 -14.75 217.537 -14.75C217.566 -14.75 217.595 -14.75 217.624 -14.75C217.653 -14.75 217.682 -14.75 217.711 -14.75C217.74 -14.75 217.769 -14.75 217.798 -14.75C217.827 -14.75 217.856 -14.75 217.885 -14.75C217.914 -14.75 217.943 -14.75 217.972 -14.75C218.001 -14.75 218.03 -14.75 218.059 -14.75C218.088 -14.75 218.117 -14.75 218.146 -14.75C218.175 -14.75 218.204 -14.75 218.233 -14.75C218.262 -14.75 218.291 -14.75 218.32 -14.75C218.349 -14.75 218.379 -14.75 218.408 -14.75C218.437 -14.75 218.466 -14.75 218.495 -14.75C218.524 -14.75 218.553 -14.75 218.582 -14.75C218.611 -14.75 218.64 -14.75 218.669 -14.75C218.699 -14.75 218.728 -14.75 218.757 -14.75C218.786 -14.75 218.815 -14.75 218.844 -14.75C218.873 -14.75 218.902 -14.75 218.932 -14.75C218.961 -14.75 218.99 -14.75 219.019 -14.75C219.048 -14.75 219.077 -14.75 219.107 -14.75C219.136 -14.75 219.165 -14.75 219.194 -14.75C219.223 -14.75 219.252 -14.75 219.282 -14.75C219.311 -14.75 219.34 -14.75 219.369 -14.75C219.398 -14.75 219.428 -14.75 219.457 -14.75C219.486 -14.75 219.515 -14.75 219.544 -14.75C219.574 -14.75 219.603 -14.75 219.632 -14.75C219.661 -14.75 219.691 -14.75 219.72 -14.75C219.749 -14.75 219.778 -14.75 219.807 -14.75C219.837 -14.75 219.866 -14.75 219.895 -14.75C219.924 -14.75 219.954 -14.75 219.983 -14.75C220.012 -14.75 220.041 -14.75 220.071 -14.75C220.1 -14.75 220.129 -14.75 220.158 -14.75C220.188 -14.75 220.217 -14.75 220.246 -14.75C220.276 -14.75 220.305 -14.75 220.334 -14.75C220.363 -14.75 220.393 -14.75 220.422 -14.75C220.451 -14.75 220.48 -14.75 220.51 -14.75C220.539 -14.75 220.568 -14.75 220.598 -14.75C220.627 -14.75 220.656 -14.75 220.685 -14.75C220.715 -14.75 220.744 -14.75 220.773 -14.75C220.803 -14.75 220.832 -14.75 220.861 -14.75C220.89 -14.75 220.92 -14.75 220.949 -14.75C220.978 -14.75 221.008 -14.75 221.037 -14.75C221.066 -14.75 221.095 -14.75 221.125 -14.75C221.154 -14.75 221.183 -14.75 221.213 -14.75C221.242 -14.75 221.271 -14.75 221.3 -14.75C221.33 -14.75 221.359 -14.75 221.388 -14.75C221.418 -14.75 221.447 -14.75 221.476 -14.75C221.505 -14.75 221.535 -14.75 221.564 -14.75C221.593 -14.75 221.623 -14.75 221.652 -14.75C221.681 -14.75 221.71 -14.75 221.74 -14.75C221.769 -14.75 221.798 -14.75 221.828 -14.75C221.857 -14.75 221.886 -14.75 221.915 -14.75C221.945 -14.75 221.974 -14.75 222.003 -14.75C222.033 -14.75 222.062 -14.75 222.091 -14.75C222.12 -14.75 222.15 -14.75 222.179 -14.75C222.208 -14.75 222.237 -14.75 222.267 -14.75C222.296 -14.75 222.325 -14.75 222.354 -14.75C222.384 -14.75 222.413 -14.75 222.442 -14.75C222.471 -14.75 222.501 -14.75 222.53 -14.75C222.559 -14.75 222.588 -14.75 222.618 -14.75C222.647 -14.75 222.676 -14.75 222.705 -14.75C222.735 -14.75 222.764 -14.75 222.793 -14.75C222.822 -14.75 222.851 -14.75 222.881 -14.75C222.91 -14.75 222.939 -14.75 222.968 -14.75C222.998 -14.75 223.027 -14.75 223.056 -14.75C223.085 -14.75 223.114 -14.75 223.144 -14.75C223.173 -14.75 223.202 -14.75 223.231 -14.75C223.26 -14.75 223.289 -14.75 223.319 -14.75C223.348 -14.75 223.377 -14.75 223.406 -14.75C223.435 -14.75 223.464 -14.75 223.494 -14.75C223.523 -14.75 223.552 -14.75 223.581 -14.75C223.61 -14.75 223.639 -14.75 223.668 -14.75C223.698 -14.75 223.727 -14.75 223.756 -14.75C223.785 -14.75 223.814 -14.75 223.843 -14.75C223.872 -14.75 223.901 -14.75 223.93 -14.75C223.96 -14.75 223.989 -14.75 224.018 -14.75C224.047 -14.75 224.076 -14.75 224.105 -14.75C224.134 -14.75 224.163 -14.75 224.192 -14.75C224.221 -14.75 224.25 -14.75 224.279 -14.75C224.308 -14.75 224.337 -14.75 224.366 -14.75C224.395 -14.75 224.424 -14.75 224.453 -14.75C224.482 -14.75 224.511 -14.75 224.54 -14.75C224.569 -14.75 224.598 -14.75 224.627 -14.75C224.656 -14.75 224.685 -14.75 224.714 -14.75C224.743 -14.75 224.772 -14.75 224.801 -14.75C224.83 -14.75 224.859 -14.75 224.888 -14.75C224.917 -14.75 224.946 -14.75 224.975 -14.75C225.004 -14.75 225.033 -14.75 225.062 -14.75C225.09 -14.75 225.119 -14.75 225.148 -14.75C225.177 -14.75 225.206 -14.75 225.235 -14.75C225.264 -14.75 225.292 -14.75 225.321 -14.75C225.35 -14.75 225.379 -14.75 225.408 -14.75C225.437 -14.75 225.465 -14.75 225.494 -14.75C225.523 -14.75 225.552 -14.75 225.581 -14.75C225.609 -14.75 225.638 -14.75 225.667 -14.75C225.696 -14.75 225.724 -14.75 225.753 -14.75C225.782 -14.75 225.811 -14.75 225.839 -14.75C225.868 -14.75 225.897 -14.75 225.925 -14.75C225.954 -14.75 225.983 -14.75 226.011 -14.75C226.04 -14.75 226.069 -14.75 226.097 -14.75C226.126 -14.75 226.155 -14.75 226.183 -14.75C226.212 -14.75 226.241 -14.75 226.269 -14.75C226.298 -14.75 226.326 -14.75 226.355 -14.75C226.384 -14.75 226.412 -14.75 226.441 -14.75C226.469 -14.75 226.498 -14.75 226.526 -14.75C226.555 -14.75 226.583 -14.75 226.612 -14.75C226.64 -14.75 226.669 -14.75 226.697 -14.75C226.726 -14.75 226.754 -14.75 226.783 -14.75C226.811 -14.75 226.84 -14.75 226.868 -14.75C226.89
31756 -14.75 226.925 -14.75 226.953 -14.75C226.982 -14.75 227.01 -14.75 227.038 -14.75C227.067 -14.75 227.095 -14.75 227.123 -14.75C227.152 -14.75 227.18 -14.75 227.208 -14.75C227.237 -14.75 227.265 -14.75 227.293 -14.75C227.322 -14.75 227.35 -14.75 227.378 -14.75C227.406 -14.75 227.435 -14.75 227.463 -14.75C227.491 -14.75 227.519 -14.75 227.547 -14.75C227.576 -14.75 227.604 -14.75 227.632 -14.75C227.66 -14.75 227.688 -14.75 227.716 -14.75C227.745 -14.75 227.773 -14.75 227.801 -14.75C227.829 -14.75 227.857 -14.75 227.885 -14.75C227.913 -14.75 227.941 -14.75 227.969 -14.75C227.997 -14.75 228.025 -14.75 228.053 -14.75C228.081 -14.75 228.109 -14.75 228.137 -14.75C228.165 -14.75 228.193 -14.75 228.221 -14.75C228.249 -14.75 228.277 -14.75 228.305 -14.75C228.333 -14.75 228.361 -14.75 228.389 -14.75C228.417 -14.75 228.444 -14.75 228.472 -14.75C228.5 -14.75 228.528 -14.75 228.556 -14.75C228.584 -14.75 228.611 -14.75 228.639 -14.75C228.667 -14.75 228.695 -14.75 228.722 -14.75C228.75 -14.75 228.778 -14.75 228.805 -14.75C228.833 -14.75 228.861 -14.75 228.889 -14.75C228.916 -14.75 228.944 -14.75 228.971 -14.75C228.999 -14.75 229.027 -14.75 229.054 -14.75C229.082 -14.75 229.109 -14.75 229.137 -14.75C229.165 -14.75 229.192 -14.75 229.22 -14.75C229.247 -14.75 229.275 -14.75 229.302 -14.75C229.33 -14.75 229.357 -14.75 229.384 -14.75C229.412 -14.75 229.439 -14.75 229.467 -14.75C229.494 -14.75 229.521 -14.75 229.549 -14.75C229.576 -14.75 229.603 -14.75 229.631 -14.75C229.658 -14.75 229.685 -14.75 229.713 -14.75C229.74 -14.75 229.767 -14.75 229.794 -14.75C229.822 -14.75 229.849 -14.75 229.876 -14.75C229.903 -14.75 229.93 -14.75 229.958 -14.75C229.985 -14.75 230.012 -14.75 230.039 -14.75C230.066 -14.75 230.093 -14.75 230.12 -14.75C230.147 -14.75 230.174 -14.75 230.201 -14.75C230.228 -14.75 230.255 -14.75 230.282 -14.75C230.309 -14.75 230.336 -14.75 230.363 -14.75C230.39 -14.75 230.417 -14.75 230.444 -14.75C230.471 -14.75 230.498 -14.75 230.525 -14.75C230.551 -14.75 230.578 -14.75 230.605 -14.75C230.632 -14.75 230.659 -14.75 230.685 -14.75C230.712 -14.75 230.739 -14.75 230.766 -14.75C230.792 -14.75 230.819 -14.75 230.846 -14.75C230.872 -14.75 230.899 -14.75 230.926 -14.75C230.952 -14.75 230.979 -14.75 231.005 -14.75C231.032 -14.75 231.059 -14.75 231.085 -14.75C231.112 -14.75 231.138 -14.75 231.165 -14.75C231.191 -14.75 231.217 -14.75 231.244 -14.75C231.27 -14.75 231.297 -14.75 231.323 -14.75C231.35 -14.75 231.376 -14.75 231.402 -14.75C231.429 -14.75 231.455 -14.75 231.481 -14.75C231.507 -14.75 231.534 -14.75 231.56 -14.75C231.586 -14.75 231.612 -14.75 231.638 -14.75C231.665 -14.75 231.691 -14.75 231.717 -14.75C231.743 -14.75 231.769 -14.75 231.795 -14.75C231.821 -14.75 231.847 -14.75 231.873 -14.75C231.899 -14.75 231.925 -14.75 231.951 -14.75C231.977 -14.75 232.003 -14.75 232.029 -14.75C232.055 -14.75 232.081 -14.75 232.107 -14.75C232.133 -14.75 232.159 -14.75 232.184 -14.75C232.21 -14.75 232.236 -14.75 232.262 -14.75C232.288 -14.75 232.313 -14.75 232.339 -14.75C232.365 -14.75 232.39 -14.75 232.416 -14.75C232.442 -14.75 232.467 -14.75 232.493 -14.75C232.518 -14.75 232.544 -14.75 232.57 -14.75C232.595 -14.75 232.621 -14.75 232.646 -14.75C232.672 -14.75 232.697 -14.75 232.722 -14.75C232.748 -14.75 232.773 -14.75 232.799 -14.75C232.824 -14.75 232.849 -14.75 232.875 -14.75C232.9 -14.75 232.925 -14.75 232.951 -14.75C232.976 -14.75 233.001 -14.75 233.026 -14.75C233.051 -14.75 233.077 -14.75 233.102 -14.75C233.127 -14.75 233.152 -14.75 233.177 -14.75C233.202 -14.75 233.227 -14.75 233.252 -14.75C233.277 -14.75 233.302 -14.75 233.327 -14.75C233.352 -14.75 233.377 -14.75 233.402 -14.75C233.427 -14.75 233.452 -14.75 233.477 -14.75C233.501 -14.75 233.526 -14.75 233.551 -14.75C233.576 -14.75 233.601 -14.75 233.625 -14.75C233.65 -14.75 233.675 -14.75 233.699 -14.75C233.724 -14.75 233.749 -14.75 233.773 -14.75C233.798 -14.75 233.822 -14.75 233.847 -14.75C233.872 -14.75 233.896 -14.75 233.921 -14.75C233.945 -14.75 233.969 -14.75 233.994 -14.75C234.018 -14.75 234.043 -14.75 234.067 -14.75C234.091 -14.75 234.116 -14.75 234.14 -14.75C234.164 -14.75 234.188 -14.75 234.213 -14.75C234.237 -14.75 234.261 -14.75 234.285 -14.75C234.309 -14.75 234.333 -14.75 234.358 -14.75C234.382 -14.75 234.406 -14.75 234.43 -14.75C234.454 -14.75 234.478 -14.75 234.502 -14.75C234.526 -14.75 234.55 -14.75 234.573 -14.75C234.597 -14.75 234.621 -14.75 234.645 -14.75C234.669 -14.75 234.693 -14.75 234.716 -14.75C234.74 -14.75 234.764 -14.75 234.788 -14.75C234.811 -14.75 234.835 -14.75 234.858 -14.75C234.882 -14.75 234.906 -14.75 234.929 -14.75C234.953 -14.75 234.976 -14.75 235 -14.75C235.023 -14.75 235.047 -14.75 235.07 -14.75C235.094 -14.75 235.117 -14.75 235.14 -14.75C235.164 -14.75 235.187 -14.75 235.21 -14.75C235.233 -14.75 235.257 -14.75 235.28 -14.75C235.303 -14.75 235.326 -14.75 235.349 -14.75C235.372 -14.75 235.396 -14.75 235.419 -14.75C235.442 -14.75 235.465 -14.75 235.488 -14.75C235.511 -14.75 235.534 -14.75 235.557 -14.75C235.579 -14.75 235.602 -14.75 235.625 -14.75C235.648 -14.75 235.671 -14.75 235.694 -14.75C235.716 -14.75 235.739 -14.75 235.762 -14.75C235.784 -14.75 235.807 -14.75 235.83 -14.75C235.852 -14.75 235.875 -14.75 235.897 -14.75C235.92 -14.75 235.942 -14.75 235.965 -14.75C235.987 -14.75 236.01 -14.75 236.032 -14.75C236.055 -14.75 236.077 -14.75 236.099 -14.75C236.122 -14.75 236.144 -14.75 236.166 -14.75C236.188 -14.75 236.211 -14.75 236.233 -14.75C236.255 -14.75 236.277 -14.75 236.299 -14.75C236.321 -14.75 236.343 -14.75 236.365 -14.75C236.387 -14.75 236.409 -14.75 236.431 -14.75C236.453 -14.75 236.475 -14.75 236.497 -14.75C236.519 -14.75 236.541 -14.75 236.562 -14.75C236.584 -14.75 236.606 -14.75 236.628 -14.75C236.649 -14.75 236.671 -14.75 236.693 -14.75C236.714 -14.75 236.736 -14.75 236.757 -14.75C236.779 -14.75 236.8 -14.75 236.822 -14.75C236.843 -14.75 236.865 -14.75 236.886 -14.75C236.907 -14.75 236.929 -14.75 236.95 -14.75C236.971 -14.75 236.993 -14.75 237.014 -14.75C237.035 -14.75 237.056 -14.75 237.077 -14.75C237.098 -14.75 237.12 -14.75 237.141 -14.75C237.162 -14.75 237.183 -14.75 237.204 -14.75C237.225 -14.75 237.246 -14.75 237.266 -14.75C237.287 -14.75 237.308 -14.75 237.329 -14.75C237.35 -14.75 237.371 -14.75 237.391 -14.75C237.412 -14.75 237.433 -14.75 237.453 -14.75C237.474 -14.75 237.495 -14.75 237.515 -14.75C237.536 -14.75 237.556 -14.75 237.577 -14.75C237.597 -14.75 237.617 -14.75 237.638 -14.75C237.658 -14.75 237.679 -14.75 237.699 -14.75C237.719 -14.75 237.739 -14.75 237.76 -14.75C237.78 -14.75 237.8 -14.75 237.82 -14.75C237.84 -14.75 237.86 -14.75 237.88 -14.75C237.9 -14.75 237.92 -14.75 237.94 -14.75C237.96 -14.75 237.98 -14.75 238 -14.75V-16.25C237.98 -16.25 237.96 -16.25 237.94 -16.25C237.92 -16.25 237.9 -16.25 237.88 -16.25C237.86 
3175-16.25 237.84 -16.25 237.82 -16.25C237.8 -16.25 237.78 -16.25 237.76 -16.25C237.739 -16.25 237.719 -16.25 237.699 -16.25C237.679 -16.25 237.658 -16.25 237.638 -16.25C237.617 -16.25 237.597 -16.25 237.577 -16.25C237.556 -16.25 237.536 -16.25 237.515 -16.25C237.495 -16.25 237.474 -16.25 237.453 -16.25C237.433 -16.25 237.412 -16.25 237.391 -16.25C237.371 -16.25 237.35 -16.25 237.329 -16.25C237.308 -16.25 237.287 -16.25 237.266 -16.25C237.246 -16.25 237.225 -16.25 237.204 -16.25C237.183 -16.25 237.162 -16.25 237.141 -16.25C237.12 -16.25 237.098 -16.25 237.077 -16.25C237.056 -16.25 237.035 -16.25 237.014 -16.25C236.993 -16.25 236.971 -16.25 236.95 -16.25C236.929 -16.25 236.907 -16.25 236.886 -16.25C236.865 -16.25 236.843 -16.25 236.822 -16.25C236.8 -16.25 236.779 -16.25 236.757 -16.25C236.736 -16.25 236.714 -16.25 236.693 -16.25C236.671 -16.25 236.649 -16.25 236.628 -16.25C236.606 -16.25 236.584 -16.25 236.562 -16.25C236.541 -16.25 236.519 -16.25 236.497 -16.25C236.475 -16.25 236.453 -16.25 236.431 -16.25C236.409 -16.25 236.387 -16.25 236.365 -16.25C236.343 -16.25 236.321 -16.25 236.299 -16.25C236.277 -16.25 236.255 -16.25 236.233 -16.25C236.211 -16.25 236.188 -16.25 236.166 -16.25C236.144 -16.25 236.122 -16.25 236.099 -16.25C236.077 -16.25 236.055 -16.25 236.032 -16.25C236.01 -16.25 235.987 -16.25 235.965 -16.25C235.942 -16.25 235.92 -16.25 235.897 -16.25C235.875 -16.25 235.852 -16.25 235.83 -16.25C235.807 -16.25 235.784 -16.25 235.762 -16.25C235.739 -16.25 235.716 -16.25 235.694 -16.25C235.671 -16.25 235.648 -16.25 235.625 -16.25C235.602 -16.25 235.579 -16.25 235.557 -16.25C235.534 -16.25 235.511 -16.25 235.488 -16.25C235.465 -16.25 235.442 -16.25 235.419 -16.25C235.396 -16.25 235.372 -16.25 235.349 -16.25C235.326 -16.25 235.303 -16.25 235.28 -16.25C235.257 -16.25 235.233 -16.25 235.21 -16.25C235.187 -16.25 235.164 -16.25 235.14 -16.25C235.117 -16.25 235.094 -16.25 235.07 -16.25C235.047 -16.25 235.023 -16.25 235 -16.25C234.976 -16.25 234.953 -16.25 234.929 -16.25C234.906 -16.25 234.882 -16.25 234.858 -16.25C234.835 -16.25 234.811 -16.25 234.788 -16.25C234.764 -16.25 234.74 -16.25 234.716 -16.25C234.693 -16.25 234.669 -16.25 234.645 -16.25C234.621 -16.25 234.597 -16.25 234.573 -16.25C234.55 -16.25 234.526 -16.25 234.502 -16.25C234.478 -16.25 234.454 -16.25 234.43 -16.25C234.406 -16.25 234.382 -16.25 234.358 -16.25C234.333 -16.25 234.309 -16.25 234.285 -16.25C234.261 -16.25 234.237 -16.25 234.213 -16.25C234.188 -16.25 234.164 -16.25 234.14 -16.25C234.116 -16.25 234.091 -16.25 234.067 -16.25C234.043 -16.25 234.018 -16.25 233.994 -16.25C233.969 -16.25 233.945 -16.25 233.921 -16.25C233.896 -16.25 233.872 -16.25 233.847 -16.25C233.822 -16.25 233.798 -16.25 233.773 -16.25C233.749 -16.25 233.724 -16.25 233.699 -16.25C233.675 -16.25 233.65 -16.25 233.625 -16.25C233.601 -16.25 233.576 -16.25 233.551 -16.25C233.526 -16.25 233.501 -16.25 233.477 -16.25C233.452 -16.25 233.427 -16.25 233.402 -16.25C233.377 -16.25 233.352 -16.25 233.327 -16.25C233.302 -16.25 233.277 -16.25 233.252 -16.25C233.227 -16.25 233.202 -16.25 233.177 -16.25C233.152 -16.25 233.127 -16.25 233.102 -16.25C233.077 -16.25 233.051 -16.25 233.026 -16.25C233.001 -16.25 232.976 -16.25 232.951 -16.25C232.925 -16.25 232.9 -16.25 232.875 -16.25C232.849 -16.25 232.824 -16.25 232.799 -16.25C232.773 -16.25 232.748 -16.25 232.722 -16.25C232.697 -16.25 232.672 -16.25 232.646 -16.25C232.621 -16.25 232.595 -16.25 232.57 -16.25C232.544 -16.25 232.518 -16.25 232.493 -16.25C232.467 -16.25 232.442 -16.25 232.416 -16.25C232.39 -16.25 232.365 -16.25 232.339 -16.25C232.313 -16.25 232.288 -16.25 232.262 -16.25C232.236 -16.25 232.21 -16.25 232.184 -16.25C232.159 -16.25 232.133 -16.25 232.107 -16.25C232.081 -16.25 232.055 -16.25 232.029 -16.25C232.003 -16.25 231.977 -16.25 231.951 -16.25C231.925 -16.25 231.899 -16.25 231.873 -16.25C231.847 -16.25 231.821 -16.25 231.795 -16.25C231.769 -16.25 231.743 -16.25 231.717 -16.25C231.691 -16.25 231.665 -16.25 231.638 -16.25C231.612 -16.25 231.586 -16.25 231.56 -16.25C231.534 -16.25 231.507 -16.25 231.481 -16.25C231.455 -16.25 231.429 -16.25 231.402 -16.25C231.376 -16.25 231.35 -16.25 231.323 -16.25C231.297 -16.25 231.27 -16.25 231.244 -16.25C231.217 -16.25 231.191 -16.25 231.165 -16.25C231.138 -16.25 231.112 -16.25 231.085 -16.25C231.059 -16.25 231.032 -16.25 231.005 -16.25C230.979 -16.25 230.952 -16.25 230.926 -16.25C230.899 -16.25 230.872 -16.25 230.846 -16.25C230.819 -16.25 230.792 -16.25 230.766 -16.25C230.739 -16.25 230.712 -16.25 230.685 -16.25C230.659 -16.25 230.632 -16.25 230.605 -16.25C230.578 -16.25 230.551 -16.25 230.525 -16.25C230.498 -16.25 230.471 -16.25 230.444 -16.25C230.417 -16.25 230.39 -16.25 230.363 -16.25C230.336 -16.25 230.309 -16.25 230.282 -16.25C230.255 -16.25 230.228 -16.25 230.201 -16.25C230.174 -16.25 230.147 -16.25 230.12 -16.25C230.093 -16.25 230.066 -16.25 230.039 -16.25C230.012 -16.25 229.985 -16.25 229.958 -16.25C229.93 -16.25 229.903 -16.25 229.876 -16.25C229.849 -16.25 229.822 -16.25 229.794 -16.25C229.767 -16.25 229.74 -16.25 229.713 -16.25C229.685 -16.25 229.658 -16.25 229.631 -16.25C229.603 -16.25 229.576 -16.25 229.549 -16.25C229.521 -16.25 229.494 -16.25 229.467 -16.25C229.439 -16.25 229.412 -16.25 229.384 -16.25C229.357 -16.25 229.33 -16.25 229.302 -16.25C229.275 -16.25 229.247 -16.25 229.22 -16.25C229.192 -16.25 229.165 
3175-16.25 229.137 -16.25C229.109 -16.25 229.082 -16.25 229.054 -16.25C229.027 -16.25 228.999 -16.25 228.971 -16.25C228.944 -16.25 228.916 -16.25 228.889 -16.25C228.861 -16.25 228.833 -16.25 228.805 -16.25C228.778 -16.25 228.75 -16.25 228.722 -16.25C228.695 -16.25 228.667 -16.25 228.639 -16.25C228.611 -16.25 228.584 -16.25 228.556 -16.25C228.528 -16.25 228.5 -16.25 228.472 -16.25C228.444 -16.25 228.417 -16.25 228.389 -16.25C228.361 -16.25 228.333 -16.25 228.305 -16.25C228.277 -16.25 228.249 -16.25 228.221 -16.25C228.193 -16.25 228.165 -16.25 228.137 -16.25C228.109 -16.25 228.081 -16.25 228.053 -16.25C228.025 -16.25 227.997 -16.25 227.969 -16.25C227.941 -16.25 227.913 -16.25 227.885 -16.25C227.857 -16.25 227.829 -16.25 227.801 -16.25C227.773 -16.25 227.745 -16.25 227.716 -16.25C227.688 -16.25 227.66 -16.25 227.632 -16.25C227.604 -16.25 227.576 -16.25 227.547 -16.25C227.519 -16.25 227.491 -16.25 227.463 -16.25C227.435 -16.25 227.406 -16.25 227.378 -16.25C227.35 -16.25 227.322 -16.25 227.293 -16.25C227.265 -16.25 227.237 -16.25 227.208 -16.25C227.18 -16.25 227.152 -16.25 227.123 -16.25C227.095 -16.25 227.067 -16.25 227.038 -16.25C227.01 -16.25 226.982 -16.25 226.953 -16.25C226.925 -16.25 226.896 -16.25 226.868 -16.25C226.84 -16.25 226.811 -16.25 226.783 -16.25C226.754 -16.25 226.726 -16.25 226.697 -16.25C226.669 -16.25 226.64 -16.25 226.612 -16.25C226.583 -16.25 226.555 -16.25 226.526 -16.25C226.498 -16.25 226.469 -16.25 226.441 -16.25C226.412 -16.25 226.384 -16.25 226.355 -16.25C226.326 -16.25 226.298 -16.25 226.269 -16.25C226.241 -16.25 226.212 -16.25 226.183 -16.25C226.155 -16.25 226.126 -16.25 226.097 -16.25C226.069 -16.25 226.04 -16.25 226.011 -16.25C225.983 -16.25 225.954 -16.25 225.925 -16.25C225.897 -16.25 225.868 -16.25 225.839 -16.25C225.811 -16.25 225.782 -16.25 225.753 -16.25C225.724 -16.25 225.696 -16.25 225.667 -16.25C225.638 -16.25 225.609 -16.25 225.581 -16.25C225.552 -16.25 225.523 -16.25 225.494 -16.25C225.465 -16.25 225.437 -16.25 225.408 -16.25C225.379 -16.25 225.35 -16.25 225.321 -16.25C225.292 -16.25 225.264 -16.25 225.235 -16.25C225.206 -16.25 225.177 -16.25 225.148 -16.25C225.119 -16.25 225.09 -16.25 225.062 -16.25C225.033 -16.25 225.004 -16.25 224.975 -16.25C224.946 -16.25 224.917 -16.25 224.888 -16.25C224.859 -16.25 224.83 -16.25 224.801 -16.25C224.772 -16.25 224.743 -16.25 224.714 -16.25C224.685 -16.25 224.656 -16.25 224.627 -16.25C224.598 -16.25 224.569 -16.25 224.54 -16.25C224.511 -16.25 224.482 -16.25 224.453 -16.25C224.424 -16.25 224.395 -16.25 224.366 -16.25C224.337 -16.25 224.308 -16.25 224.279 -16.25C224.25 -16.25 224.221 -16.25 224.192 -16.25C224.163 -16.25 224.134 -16.25 224.105 -16.25C224.076 -16.25 224.047 -16.25 224.018 -16.25C223.989 -16.25 223.96 -16.25 223.93 -16.25C223.901 -16.25 223.872 -16.25 223.843 -16.25C223.814 -16.25 223.785 -16.25 223.756 -16.25C223.727 -16.25 223.698 -16.25 223.668 -16.25C223.639 -16.25 223.61 -16.25 223.581 -16.25C223.552 -16.25 223.523 -16.25 223.494 -16.25C223.464 -16.25 223.435 -16.25 223.406 -16.25C223.377 -16.25 223.348 -16.25 223.319 -16.25C223.289 -16.25 223.26 -16.25 223.231 -16.25C223.202 -16.25 223.173 -16.25 223.144 -16.25C223.114 -16.25 223.085 -16.25 223.056 -16.25C223.027 -16.25 222.998 -16.25 222.968 -16.25C222.939 -16.25 222.91 -16.25 222.881 -16.25C222.851 -16.25 222.822 -16.25 222.793 -16.25C222.764 -16.25 222.735 -16.25 222.705 -16.25C222.676 -16.25 222.647 -16.25 222.618 -16.25C222.588 -16.25 222.559 -16.25 222.53 -16.25C222.501 -16.25 222.471 -16.25 222.442 -16.25C222.413 -16.25 222.384 -16.25 222.354 -16.25C222.325 -16.25 222.296 -16.25 222.267 -16.25C222.237 -16.25 222.208 -16.25 222.179 -16.25C222.15 -16.25 222.12 -16.25 222.091 -16.25C222.062 -16.25 222.033 -16.25 222.003 -16.25C221.974 -16.25 221.945 -16.25 221.915 -16.25C221.886 -16.25 221.857 -16.25 221.828 -16.25C221.798 -16.25 221.769 -16.25 221.74 -16.25C221.71 -16.25 221.681 -16.25 221.652 -16.25C221.623 -16.25 221.593 -16.25 221.564 -16.25C221.535 -16.25 221.505 -16.25 221.476 -16.25C221.447 -16.25 221.418 -16.25 221.388 -16.25C221.359 -16.25 221.33 -16.25 221.3 -16.25C221.271 -16.25 221.242 -16.25 221.213 -16.25C221.183 -16.25 221.154 -16.25 221.125 -16.25C221.095 -16.25 221.066 -16.25 221.037 -16.25C221.008 -16.25 220.978 -16.25 220.949 -16.25C220.92 -16.25 220.89 -16.25 220.861 -16.25C220.832 -16.25 220.803 -16.25 220.773 -16.25C220.744 -16.25 220.715 -16.25 220.685 -16.25C220.656 -16.25 220.627 -16.25 220.598 -16.25C220.568 -16.25 220.539 -16.25 220.51 -16.25C220.48 -16.25 220.451 -16.25 220.422 -16.25C220.393 -16.25 220.363 -16.25 220.334 -16.25C220.305 -16.25 220.276 -16.25 220.246 -16.25C220.217 -16.25 220.188 -16.25 220.158 -16.25C220.129 -16.25 220.1 -16.25 220.071 -16.25C220.041 -16.25 220.012 -16.25 219.983 -16.25C219.954 -16.25 219.924 -16.25 219.895 -16.25C219.866 -16.25 219.837 -16.25 219.807 -16.25C219.778 -16.25 219.749 -16.25 219.72 -16.25C219.691 -16.25 219.661 -16.25 219.632 -16.25C219.603 -16.25 219.574 -16.25 219.544 -16.25C219.515 -16.25 219.486 -16.25 219.457 -16.25C219.428 -16.25 219.398 -16.25 219.369 -16.25C219.34 -16.25 219.311 -16.25 219.282 -16.25C219.252 -16.25 219.223 -16.25 219.194 -16.25C219.165 -16.25 219.136 -16.25 219.107 -16.25C219.077 -16.25 219.048 -16.25 219.019 -16.25C218.99 -16.25 218.961 -16.25 218.932 -16.25C218.902 -16.25 218.873 -16.25 218.844 -16.25C218.815 -16.25 218.786 -16.25 218.757 -16.25C218.728 -16.25 218.699 -16.25 218.669 -16.25C218.64 -16.25 218.611 -16.25 218.582 -16.25C218.553 -16.25 218.524 -16.25 218.495 -16.25C218.466 -16.25 218.437 -16.25 218.408 -16.25C218.379 -16.25 218.349 -16.25 218.32 -16.25C218.291 -16.25 218.262 -16.25 218.233 -16.25C218.204 -16.25 218.175 -16.25 218.146 -16.25C218.117 -16.25 218.088 -16.25 218.059 -16.25C218.03 -16.25 218.001 -16.25 217.972 -16.25C217.943 -16.25 217.914 -16.25 217.885 -16.25C217.856 -16.25 217.827 -16.25 217.798 -16.25C217.769 -16.25 217.74 -16.25 217.711 -16.25C217.682 -16.25 217.653 -16.25 217.624 -16.25C217.595 -16.25 217.566 -16.25 217.537 -16.25C217.509 -16.25 217.48 -16.25 217.451 -16.25C217.422 -16.25 217.393 -16.25 217.364 -16.25C217.335 -16.25 217.306 -16.25 217.277 -16.25C217.249 -16.25 217.22 -16.25 217.191 -16.25C217.162 -16.25 217.133 -16.25 217.104 -16.25C217.076 -16.25 217.047 -16.25 217.018 -16.25C216.989 -16.25 216.96 -16.25 216.931 -16.25C216.903 -16.25 216.874 -16.25 216.845 -16.25C216.816 -16.25 216.788 -16.25 216.759 -16.25C216.73 -16.25 216.701 -16.25 216.673 -16.25C216.644 -16.25 216.615 -16.25 216.586 -16.25C216.558 -16.25 216.529 -16.25 216.5 -16.25C216.472 -16.25 216.443 -16.25 216.414 -16.25C216.386 -16.25 216.357 -16.25 216.328 -16.25C216.3 -16.25 216.271 -16.25 216.243 -16.25C216.214 -16.25 216.185 -16.25 216.157 -16.25C216.128 -16.25 216.1 -16.25 216.071 -16.25C216.042 -16.25 216.014 -16.25 215.985 -16.25C215.957 -16.25 215.928 -16.25 215.9 -16.25C215.871 -16.25 215.843 -16.25 215.814 -16.25C215.786 -16.25 215.757 -16.25 215.729 -16.25C215.7 -16.25 215.672 -16.25 215.643 -16.25C215.615 -16.25 215.587 -16.25 215.558 -16.25C215.53 -16.25 215.501 -16.25 215.473 -16.25C215.445 -16.25 215.416 -16.25 215.388 -16.25C215.36 
3175-16.25 215.331 -16.25 215.303 -16.25C215.275 -16.25 215.246 -16.25 215.218 -16.25C215.19 -16.25 215.161 -16.25 215.133 -16.25C215.105 -16.25 215.076 -16.25 215.048 -16.25C215.02 -16.25 214.992 -16.25 214.964 -16.25C214.935 -16.25 214.907 -16.25 214.879 -16.25C214.851 -16.25 214.823 -16.25 214.794 -16.25C214.766 -16.25 214.738 -16.25 214.71 -16.25C214.682 -16.25 214.654 -16.25 214.626 -16.25C214.598 -16.25 214.57 -16.25 214.541 -16.25C214.513 -16.25 214.485 -16.25 214.457 -16.25C214.429 -16.25 214.401 -16.25 214.373 -16.25C214.345 -16.25 214.317 -16.25 214.289 -16.25C214.261 -16.25 214.233 -16.25 214.206 -16.25C214.178 -16.25 214.15 -16.25 214.122 -16.25C214.094 -16.25 214.066 -16.25 214.038 -16.25C214.01 -16.25 213.982 -16.25 213.955 -16.25C213.927 -16.25 213.899 -16.25 213.871 -16.25C213.843 -16.25 213.816 -16.25 213.788 -16.25C213.76 -16.25 213.732 -16.25 213.705 -16.25C213.677 -16.25 213.649 -16.25 213.622 -16.25C213.594 -16.25 213.566 -16.25 213.539 -16.25C213.511 -16.25 213.483 -16.25 213.456 -16.25C213.428 -16.25 213.4 -16.25 213.373 -16.25C213.345 -16.25 213.318 -16.25 213.29 -16.25C213.263 -16.25 213.235 -16.25 213.208 -16.25C213.18 -16.25 213.153 -16.25 213.125 -16.25C213.098 -16.25 213.07 -16.25 213.043 -16.25C213.016 -16.25 212.988 -16.25 212.961 -16.25C212.933 -16.25 212.906 -16.25 212.879 -16.25C212.851 -16.25 212.824 -16.25 212.797 -16.25C212.769 -16.25 212.742 -16.25 212.715 -16.25C212.688 -16.25 212.66 -16.25 212.633 -16.25C212.606 -16.25 212.579 -16.25 212.552 -16.25C212.524 -16.25 212.497 -16.25 212.47 -16.25C212.443 -16.25 212.416 -16.25 212.389 -16.25C212.362 -16.25 212.335 -16.25 212.308 -16.25C212.28 -16.25 212.253 -16.25 212.226 -16.25C212.199 -16.25 212.172 -16.25 212.146 -16.25C212.119 -16.25 212.092 -16.25 212.065 -16.25C212.038 -16.25 212.011 -16.25 211.984 -16.25C211.957 -16.25 211.93 -16.25 211.903 -16.25C211.877 -16.25 211.85 -16.25 211.823 -16.25C211.796 -16.25 211.769 -16.25 211.743 -16.25C211.716 -16.25 211.689 -16.25 211.663 -16.25C211.636 -16.25 211.609 -16.25 211.583 -16.25C211.556 -16.25 211.529 -16.25 211.503 -16.25C211.476 -16.25 211.45 -16.25 211.423 -16.25C211.396 -16.25 211.37 -16.25 211.343 -16.25C211.317 -16.25 211.29 -16.25 211.264 -16.25C211.238 -16.25 211.211 -16.25 211.185 -16.25C211.158 -16.25 211.132 -16.25 211.106 -16.25C211.079 -16.25 211.053 -16.25 211.027 -16.25C211 -16.25 210.974 -16.25 210.948 -16.25C210.921 -16.25 210.895 -16.25 210.869 -16.25C210.843 -16.25 210.817 -16.25 210.79 -16.25C210.764 -16.25 210.738 -16.25 210.712 -16.25C210.686 -16.25 210.66 -16.25 210.634 -16.25C210.608 -16.25 210.582 -16.25 210.556 -16.25C210.53 -16.25 210.504 -16.25 210.478 -16.25C210.452 -16.25 210.426 -16.25 210.4 -16.25C210.374 -16.25 210.348 -16.25 210.322 -16.25C210.297 -16.25 210.271 -16.25 210.245 -16.25C210.219 -16.25 210.193 -16.25 210.168 -16.25C210.142 -16.25 210.116 -16.25 210.091 -16.25C210.065 -16.25 210.039 -16.25 210.014 -16.25C209.988 -16.25 209.962 -16.25 209.937 -16.25C209.911 -16.25 209.886 -16.25 209.86 -16.25C209.835 -16.25 209.809 -16.25 209.784 -16.25C209.758 -16.25 209.733 -16.25 209.707 -16.25C209.682 -16.25 209.657 -16.25 209.631 -16.25C209.606 -16.25 209.581 -16.25 209.555 -16.25C209.53 -16.25 209.505 -16.25 209.479 -16.25C209.454 -16.25 209.429 -16.25 209.404 -16.25C209.379 -16.25 209.354 -16.25 209.328 -16.25C209.303 -16.25 209.278 -16.25 209.253 -16.25C209.228 -16.25 209.203 -16.25 209.178 -16.25C209.153 -16.25 209.128 -16.25 209.103 -16.25C209.078 -16.25 209.053 -16.25 209.028 -16.25C209.004 -16.25 208.979 -16.25 208.954 -16.25C208.929 -16.25 208.904 -16.25 208.88 -16.25C208.855 -16.25 208.83 -16.25 208.805 -16.25C208.781 -16.25 208.756 -16.25 208.731 -16.25C208.707 -16.25 208.682 -16.25 208.658 -16.25C208.633 -16.25 208.608 -16.25 208.584 -16.25C208.559 -16.25 208.535 -16.25 208.511 -16.25C208.486 -16.25 208.462 -16.25 208.437 -16.25C208.413 -16.25 208.389 -16.25 208.364 -16.25C208.34 -16.25 208.316 -16.25 208.291 -16.25C208.267 -16.25 208.243 -16.25 208.219 -16.25C208.194 -16.25 208.17 -16.25 208.146 -16.25C208.122 -16.25 208.098 -16.25 208.074 -16.25C208.05 -16.25 208.026 -16.25 208.002 -16.25C207.978 -16.25 207.954 -16.25 207.93 -16.25C207.906 -16.25 207.882 -16.25 207.858 -16.25C207.834 -16.25 207.811 -16.25 207.787 -16.25C207.763 -16.25 207.739 -16.25 207.716 -16.25C207.692 -16.25 207.668 -16.25 207.644 -16.25C207.621 -16.25 207.597 -16.25 207.574 -16.25C207.55 -16.25 207.526 -16.25 207.503 -16.25C207.479 -16.25 207.456 -16.25 207.432 -16.25C207.409 -16.25 207.386 -16.25 207.362 -16.25C207.339 -16.25 207.315 -16.25 207.292 -16.25C207.269 -16.25 207.246 -16.25 207.222 -16.25C207.199 -16.25 207.176 -16.25 207.153 -16.25C207.13 -16.25 207.106 -16.25 207.083 -16.25C207.06 -16.25 207.037 -16.25 207.014 -16.25C206.991 -16.25 206.968 -16.25 206.945 -16.25C206.922 -16.25 206.899 -16.25 206.876 -16.25C206.854 -16.25 206.831 -16.25 206.808 -16.25C206.785 -16.25 206.762 -16.25 206.74 -16.25C206.717 -16.25 206.694 -16.25 206.671 -16.25C206.649 -16.25 206.626 -16.25 206.604 -16.25C206.581 -16.25 206.558 -16.25 206.536 -16.25C206.513 -16.25 206.491 -16.25 206.469 -16.25C206.446 -16.25 206.424 -16.25 206.401 -16.25C206.379 -16.25 206.357 -16.25 206.334 -16.25C206.312 -16.25 206.29 -16.25 206.268 -16.25C206.245 -16.25 206.223 -16.25 206.201 -16.25C206.179 -16.25 206.157 -16.25 206.135 -16.25C206.113 -16.25 206.091 -16.25 206.069 -16.25C206.047 -16.25 206.025 -16.25 206.003 -16.25C205.981 -16.25 205.959 -16.25 205.937 -16.25C205.915 -16.25 205.894 -16.25 205.872 -16.25C205.85 -16.25 205.829 -16.25 205.807 -16.25C205.785 -16.25 205.764 -16.25 205.742 -16.25C205.72 -16.25 205.699 -16.25 205.677 -16.25C205.656 -16.25 205.634 -16.25 205.613 -16.25C205.591 -16.25 205.57 -16.25 205.549 -16.25C205.527 -16.25 205.506 -16.25 205.485 -16.25C205.464 -16.25 205.442 -16.25 205.421 -16.25C205.4 -16.25 205.379 -16.25 205.358 -16.25C205.337 -16.25 205.316 -16.25 205.295 -16.25C205.274 -16.25 205.253 -16.25 205.232 -16.25C205.211 -16.25 205.19 -16.25 205.169 -16.25C205.148 -16.25 205.127 -16.25 205.107 -16.25C205.086 -16.25 205.065 -16.25 205.044 -16.25C205.024 -16.25 205.003 -16.25 204.982 -16.25C204.962 -16.25 204.941 -16.25 204.921 -16.25C204.9 -16.25 204.88 -16.25 204.859 -16.25C204.839 -16.25 204.819 -16.25 204.798 -16.25C204.778 -16.25 204.758 -16.25 204.737 -16.25C204.717 -16.25 204.697 -16.25 204.677 -16.25C204.656 -16.25 204.636 -16.25 204.616 -16.25C204.596 -16.25 204.576 -16.25 204.556 -16.25C204.536 -16.25 204.516 -16.25 204.496 -16.25C204.476 -16.25 204.457 -16.25 204.437 -16.25C204.417 -16.25 204.397 -16.25 204.377 -16.25C204.358 -16.25 204.338 -16.25 204.318 -16.25C204.299 -16.25 204.279 -16.25 204.259 -16.25C204.24 -16.25 204.22 -16.25 204.201 -16.25C204.182 -16.25 204.162 -16.25 204.143 -16.25C204.123 -16.25 204.104 -16.25 204.085 -16.25C204.065 
3175-16.25 204.046 -16.25 204.027 -16.25C204.008 -16.25 203.989 -16.25 203.97 -16.25C203.95 -16.25 203.931 -16.25 203.912 -16.25C203.893 -16.25 203.874 -16.25 203.856 -16.25C203.837 -16.25 203.818 -16.25 203.799 -16.25C203.78 -16.25 203.761 -16.25 203.743 -16.25C203.724 -16.25 203.705 -16.25 203.687 -16.25C203.668 -16.25 203.649 -16.25 203.631 -16.25C203.612 -16.25 203.594 -16.25 203.575 -16.25C203.557 -16.25 203.538 -16.25 203.52 -16.25C203.502 -16.25 203.483 -16.25 203.465 -16.25C203.447 -16.25 203.429 -16.25 203.411 -16.25C203.392 -16.25 203.374 -16.25 203.356 -16.25C203.338 -16.25 203.32 -16.25 203.302 -16.25C203.284 -16.25 203.266 -16.25 203.248 -16.25C203.231 -16.25 203.213 -16.25 203.195 -16.25C203.177 -16.25 203.159 -16.25 203.142 -16.25C203.124 -16.25 203.106 -16.25 203.089 -16.25C203.071 -16.25 203.054 -16.25 203.036 -16.25C203.019 -16.25 203.001 -16.25 202.984 -16.25C202.967 -16.25 202.949 -16.25 202.932 -16.25C202.915 -16.25 202.897 -16.25 202.88 -16.25C202.863 -16.25 202.846 -16.25 202.829 -16.25C202.812 -16.25 202.795 -16.25 202.778 -16.25C202.761 -16.25 202.744 -16.25 202.727 -16.25C202.71 -16.25 202.693 -16.25 202.676 -16.25C202.66 -16.25 202.643 -16.25 202.626 -16.25C202.61 -16.25 202.593 -16.25 202.576 -16.25C202.56 -16.25 202.543 -16.25 202.527 -16.25C202.51 -16.25 202.494 -16.25 202.478 -16.25C202.461 -16.25 202.445 -16.25 202.429 -16.25C202.412 -16.25 202.396 -16.25 202.38 -16.25C202.364 -16.25 202.348 -16.25 202.332 -16.25C202.316 -16.25 202.3 -16.25 202.284 -16.25C202.268 -16.25 202.252 -16.25 202.236 -16.25C202.22 -16.25 202.204 -16.25 202.189 -16.25C202.173 -16.25 202.157 -16.25 202.141 -16.25C202.126 -16.25 202.11 -16.25 202.095 -16.25C202.079 -16.25 202.064 -16.25 202.048 -16.25C202.033 -16.25 202.017 -16.25 202.002 -16.25C201.987 -16.25 201.972 -16.25 201.956 -16.25C201.941 -16.25 201.926 -16.25 201.911 -16.25C201.896 -16.25 201.881 -16.25 201.866 -16.25C201.851 -16.25 201.836 -16.25 201.821 -16.25C201.806 -16.25 201.791 -16.25 201.776 -16.25C201.762 -16.25 201.747 -16.25 201.732 -16.25C201.718 -16.25 201.703 -16.25 201.688 -16.25C201.674 -16.25 201.659 -16.25 201.645 -16.25C201.631 -16.25 201.616 -16.25 201.602 -16.25C201.587 -16.25 201.573 -16.25 201.559 -16.25C201.545 -16.25 201.531 -16.25 201.516 -16.25C201.502 -16.25 201.488 -16.25 201.474 -16.25C201.46 -16.25 201.446 -16.25 201.432 -16.25C201.419 -16.25 201.405 -16.25 201.391 -16.25C201.377 -16.25 201.364 -16.25 201.35 -16.25C201.336 -16.25 201.323 -16.25 201.309 -16.25C201.295 -16.25 201.282 -16.25 201.269 -16.25C201.255 -16.25 201.242 -16.25 201.228 -16.25C201.215 -16.25 201.202 -16.25 201.189 -16.25C201.175 -16.25 201.162 -16.25 201.149 -16.25C201.136 -16.25 201.123 -16.25 201.11 -16.25C201.097 -16.25 201.084 -16.25 201.071 -16.25C201.059 -16.25 201.046 -16.25 201.033 -16.25C201.02 -16.25 201.008 -16.25 200.995 -16.25C200.982 -16.25 200.97 -16.25 200.957 -16.25C200.945 -16.25 200.932 -16.25 200.92 -16.25C200.908 -16.25 200.895 -16.25 200.883 -16.25C200.871 -16.25 200.859 -16.25 200.846 -16.25C200.834 -16.25 200.822 -16.25 200.81 -16.25C200.798 -16.25 200.786 -16.25 200.774 -16.25C200.762 -16.25 200.75 -16.25 200.739 -16.25C200.727 -16.25 200.715 -16.25 200.703 -16.25C200.692 -16.25 200.68 -16.25 200.669 -16.25C200.657 -16.25 200.646 -16.25 200.634 -16.25C200.623 -16.25 200.611 -16.25 200.6 -16.25C200.589 -16.25 200.578 -16.25 200.566 -16.25C200.555 -16.25 200.544 -16.25 200.533 -16.25C200.522 -16.25 200.511 -16.25 200.5 -16.25V-14.75Z",fill:"url(#paint2_linear_38_7016)"}),(0,a.jsx)("path",{d:"M164 82C164 79.7909 165.791 78 168 78C170.209 78 172 79.7909 172 82C172 84.2091 170.209 86 168 86C165.791 86 164 84.2091 164 82ZM238.53 118.97C238.823 119.263 238.823 119.737 238.53 120.03L233.757 124.803C233.464 125.096 232.99 125.096 232.697 124.803C232.404 124.51 232.404 124.036 232.697 123.743L236.939 119.5L232.697 115.257C232.404 114.964 232.404 114.49 232.697 114.197C232.99 113.904 233.464 113.904 233.757 114.197L238.53 118.97ZM168 81.25C168.006 81.25 168.013 81.25 168.019 81.25C168.026 81.25 168.033 81.25 168.039 81.25C168.046 81.25 168.052 81.25 168.059 81.25C168.065 81.25 168.072 81.25 168.079 81.25C168.085 81.25 168.092 81.25 168.099 81.25C168.105 81.25 168.112 81.25 168.119 81.25C168.125 81.25 168.132 81.25 168.139 81.25C168.146 81.25 168.152 81.25 168.159 81.25C168.166 81.25 168.173 81.25 168.18 81.25C168.186 81.25 168.193 81.25 168.2 81.25C168.207 81.25 168.214 81.25 168.221 81.25C168.228 81.25 168.235 81.25 168.242 81.25C168.249 81.25 168.256 81.25 168.263 81.25C168.27 81.25 168.277 81.25 168.284 81.25C168.291 81.25 168.298 81.25 168.305 81.25C168.312 81.25 168.319 81.25 168.326 81.25C168.333 81.25 168.34 81.25 168.347 81.25C168.355 81.25 168.362 81.25 168.369 81.25C168.376 81.25 168.383 81.25 168.391 81.25C168.398 81.25 168.405 81.25 168.412 81.25C168.42 81.25 168.427 81.25 168.434 81.25C168.442 81.25 168.449 81.25 168.456 81.25C168.464 81.25 168.471 81.25 168.478 81.25C168.486 81.25 168.493 81.25 168.501 81.25C168.508 81.25 168.515 81.25 168.523 81.25C168.53 81.25 168.538 81.25 168.545 81.25C168.553 81.25 168.56 81.25 168.568 81.25C168.575 81.25 168.583 81.25 168.591 81.25C168.598 81.25 168.606 81.25 168.613 81.25C168.621 81.25 168.629 81.25 168.636 81.25C168.644 81.25 168.652 81.25 168.659 81.25C168.667 81.25 168.675 81.25 168.683 81.25C168.69 81.25 168.698 81.25 168.706 81.25C168.714 81.25 168.721 81.25 168.729 81.25C168.737 81.25 168.745 81.25 168.753 81.25C168.761 81.25 168.768 81.25 168.776 81.25C168.784 81.25 168.792 81.25 168.8 81.25C168.808 81.25 168.816 81.25 168.824 81.25C168.832 81.25 168.84 81.25 168.848 81.25C168.856 81.25 168.8
317564 81.25 168.872 81.25C168.88 81.25 168.888 81.25 168.896 81.25C168.904 81.25 168.912 81.25 168.92 81.25C168.928 81.25 168.937 81.25 168.945 81.25C168.953 81.25 168.961 81.25 168.969 81.25C168.977 81.25 168.986 81.25 168.994 81.25C169.002 81.25 169.01 81.25 169.019 81.25C169.027 81.25 169.035 81.25 169.043 81.25C169.052 81.25 169.06 81.25 169.068 81.25C169.077 81.25 169.085 81.25 169.093 81.25C169.102 81.25 169.11 81.25 169.119 81.25C169.127 81.25 169.135 81.25 169.144 81.25C169.152 81.25 169.161 81.25 169.169 81.25C169.178 81.25 169.186 81.25 169.195 81.25C169.203 81.25 169.212 81.25 169.22 81.25C169.229 81.25 169.238 81.25 169.246 81.25C169.255 81.25 169.263 81.25 169.272 81.25C169.281 81.25 169.289 81.25 169.298 81.25C169.307 81.25 169.315 81.25 169.324 81.25C169.333 81.25 169.341 81.25 169.35 81.25C169.359 81.25 169.368 81.25 169.376 81.25C169.385 81.25 169.394 81.25 169.403 81.25C169.412 81.25 169.42 81.25 169.429 81.25C169.438 81.25 169.447 81.25 169.456 81.25C169.465 81.25 169.474 81.25 169.483 81.25C169.492 81.25 169.5 81.25 169.509 81.25C169.518 81.25 169.527 81.25 169.536 81.25C169.545 81.25 169.554 81.25 169.563 81.25C169.572 81.25 169.581 81.25 169.59 81.25C169.6 81.25 169.609 81.25 169.618 81.25C169.627 81.25 169.636 81.25 169.645 81.25C169.654 81.25 169.663 81.25 169.672 81.25C169.682 81.25 169.691 81.25 169.7 81.25C169.709 81.25 169.718 81.25 169.728 81.25C169.737 81.25 169.746 81.25 169.755 81.25C169.765 81.25 169.774 81.25 169.783 81.25C169.793 81.25 169.802 81.25 169.811 81.25C169.821 81.25 169.83 81.25 169.839 81.25C169.849 81.25 169.858 81.25 169.867 81.25C169.877 81.25 169.886 81.25 169.896 81.25C169.905 81.25 169.915 81.25 169.924 81.25C169.934 81.25 169.943 81.25 169.953 81.25C169.962 81.25 169.972 81.25 169.981 81.25C169.991 81.25 170 81.25 170.01 81.25C170.019 81.25 170.029 81.25 170.039 81.25C170.048 81.25 170.058 81.25 170.068 81.25C170.077 81.25 170.087 81.25 170.097 81.25C170.106 81.25 170.116 81.25 170.126 81.25C170.135 81.25 170.145 81.25 170.155 81.25C170.165 81.25 170.174 81.25 170.184 81.25C170.194 81.25 170.204 81.25 170.213 81.25C170.223 81.25 170.233 81.25 170.243 81.25C170.253 81.25 170.263 81.25 170.273 81.25C170.282 81.25 170.292 81.25 170.302 81.25C170.312 81.25 170.322 81.25 170.332 81.25C170.342 81.25 170.352 81.25 170.362 81.25C170.372 81.25 170.382 81.25 170.392 81.25C170.402 81.25 170.412 81.25 170.422 81.25C170.432 81.25 170.442 81.25 170.452 81.25C170.462 81.25 170.472 81.25 170.482 81.25C170.493 81.25 170.503 81.25 170.513 81.25C170.523 81.25 170.533 81.25 170.543 81.25C170.553 81.25 170.564 81.25 170.574 81.25C170.584 81.25 170.594 81.25 170.605 81.25C170.615 81.25 170.625 81.25 170.635 81.25C170.646 81.25 170.656 81.25 170.666 81.25C170.676 81.25 170.687 81.25 170.697 81.25C170.707 81.25 170.718 81.25 170.728 81.25C170.739 81.25 170.749 81.25 170.759 81.25C170.77 81.25 170.78 81.25 170.791 81.25C170.801 81.25 170.811 81.25 170.822 81.25C170.832 81.25 170.843 81.25 170.853 81.25C170.864 81.25 170.874 81.25 170.885 81.25C170.895 81.25 170.906 81.25 170.916 81.25C170.927 81.25 170.938 81.25 170.948 81.25C170.959 81.25 170.969 81.25 170.98 81.25C170.991 81.25 171.001 81.25 171.012 81.25C171.023 81.25 171.033 81.25 171.044 81.25C171.055 81.25 171.065 81.25 171.076 81.25C171.087 81.25 171.097 81.25 171.108 81.25C171.119 81.25 171.13 81.25 171.14 81.25C171.151 81.25 171.162 81.25 171.173 81.25C171.184 81.25 171.194 81.25 171.205 81.25C171.216 81.25 171.227 81.25 171.238 81.25C171.249 81.25 171.26 81.25 171.27 81.25C171.281 81.25 171.292 81.25 171.303 81.25C171.314 81.25 171.325 81.25 171.336 81.25C171.347 81.25 171.358 81.25 171.369 81.25C171.38 81.25 171.391 81.25 171.402 81.25C171.413 81.25 171.424 81.25 171.435 81.25C171.446 81.25 171.457 81.25 171.468 81.25C171.479 81.25 171.49 81.25 171.502 81.25C171.513 81.25 171.524 81.25 171.535 81.25C171.546 81.25 171.557 81.25 171.568 81.25C171.58 81.25 171.591 81.25 171.602 81.25C171.613 81.25 171.624 81.25 171.636 81.25C171.647 81.25 171.658 81.25 171.669 81.25C171.681 81.25 171.692 81.25 171.703 81.25C171.714 81.25 171.726 81.25 171.737 81.25C171.748 81.25 171.76 81.25 171.771 81.25C171.782 81.25 171.794 81.25 171.805 81.25C171.816 81.25 171.828 81.25 171.839 81.25C171.851 81.25 171.862 81.25 171.873 81.25C171.885 81.25 171.896 81.25 171.908 81.25C171.919 81.25 171.931 81.25 171.942 81.25C171.954 81.25 171.965 81.25 171.977 81.25C171.988 81.25 172 81.25 172.011 81.25C172.023 81.25 172.034 81.25 172.046 81.25C172.058 81.25 172.069 81.25 172.081 81.25C172.092 81.25 172.104 81.25 172.116 81.25C172.127 81.25 172.139 81.25 172.151 81.25C172.162 81.25 172.174 81.25 172.186 81.25C172.197 81.25 172.209 81.25 172.221 81.25C172.232 81.25 172.244 81.25 172.256 8
31751.25C172.268 81.25 172.279 81.25 172.291 81.25C172.303 81.25 172.315 81.25 172.326 81.25C172.338 81.25 172.35 81.25 172.362 81.25C172.374 81.25 172.386 81.25 172.397 81.25C172.409 81.25 172.421 81.25 172.433 81.25C172.445 81.25 172.457 81.25 172.469 81.25C172.481 81.25 172.493 81.25 172.505 81.25C172.516 81.25 172.528 81.25 172.54 81.25C172.552 81.25 172.564 81.25 172.576 81.25C172.588 81.25 172.6 81.25 172.612 81.25C172.624 81.25 172.636 81.25 172.648 81.25C172.66 81.25 172.673 81.25 172.685 81.25C172.697 81.25 172.709 81.25 172.721 81.25C172.733 81.25 172.745 81.25 172.757 81.25C172.769 81.25 172.781 81.25 172.794 81.25C172.806 81.25 172.818 81.25 172.83 81.25C172.842 81.25 172.854 81.25 172.867 81.25C172.879 81.25 172.891 81.25 172.903 81.25C172.916 81.25 172.928 81.25 172.94 81.25C172.952 81.25 172.965 81.25 172.977 81.25C172.989 81.25 173.002 81.25 173.014 81.25C173.026 81.25 173.038 81.25 173.051 81.25C173.063 81.25 173.075 81.25 173.088 81.25C173.1 81.25 173.113 81.25 173.125 81.25C173.137 81.25 173.15 81.25 173.162 81.25C173.175 81.25 173.187 81.25 173.199 81.25C173.212 81.25 173.224 81.25 173.237 81.25C173.249 81.25 173.262 81.25 173.274 81.25C173.287 81.25 173.299 81.25 173.312 81.25C173.324 81.25 173.337 81.25 173.349 81.25C173.362 81.25 173.374 81.25 173.387 81.25C173.4 81.25 173.412 81.25 173.425 81.25C173.437 81.25 173.45 81.25 173.463 81.25C173.475 81.25 173.488 81.25 173.501 81.25C173.513 81.25 173.526 81.25 173.539 81.25C173.551 81.25 173.564 81.25 173.577 81.25C173.589 81.25 173.602 81.25 173.615 81.25C173.627 81.25 173.64 81.25 173.653 81.25C173.666 81.25 173.678 81.25 173.691 81.25C173.704 81.25 173.717 81.25 173.729 81.25C173.742 81.25 173.755 81.25 173.768 81.25C173.781 81.25 173.794 81.25 173.806 81.25C173.819 81.25 173.832 81.25 173.845 81.25C173.858 81.25 173.871 81.25 173.884 81.25C173.897 81.25 173.909 81.25 173.922 81.25C173.935 81.25 173.948 81.25 173.961 81.25C173.974 81.25 173.987 81.25 174 81.25C174.013 81.25 174.026 81.25 174.039 81.25C174.052 81.25 174.065 81.25 174.078 81.25C174.091 81.25 174.104 81.25 174.117 81.25C174.13 81.25 174.143 81.25 174.156 81.25C174.169 81.25 174.182 81.25 174.195 81.25C174.208 81.25 174.222 81.25 174.235 81.25C174.248 81.25 174.261 81.25 174.274 81.25C174.287 81.25 174.3 81.25 174.313 81.25C174.327 81.25 174.34 81.25 174.353 81.25C174.366 81.25 174.379 81.25 174.392 81.25C174.406 81.25 174.419 81.25 174.432 81.25C174.445 81.25 174.459 81.25 174.472 81.25C174.485 81.25 174.498 81.25 174.512 81.25C174.525 81.25 174.538 81.25 174.551 81.25C174.565 81.25 174.578 81.25 174.591 81.25C174.605 81.25 174.618 81.25 174.631 81.25C174.645 81.25 174.658 81.25 174.671 81.25C174.685 81.25 174.698 81.25 174.711 81.25C174.725 81.25 174.738 81.25 174.752 81.25C174.765 81.25 174.778 81.25 174.792 81.25C174.805 81.25 174.819 81.25 174.832 81.25C174.846 81.25 174.859 81.25 174.873 81.25C174.886 81.25 174.9 81.25 174.913 81.25C174.926 81.25 174.94 81.25 174.954 81.25C174.967 81.25 174.981 81.25 174.994 81.25C175.008 81.25 175.021 81.25 175.035 81.25C175.048 81.25 175.062 81.25 175.075 81.25C175.089 81.25 175.103 81.25 175.116 81.25C175.13 81.25 175.143 81.25 175.157 81.25C175.171 81.25 175.184 81.25 175.198 81.25C175.212 81.25 175.225 81.25 175.239 81.25C175.253 81.25 175.266 81.25 175.28 81.25C175.294 81.25 175.307 81.25 175.321 81.25C175.335 81.25 175.348 81.25 175.362 81.25C175.376 81.25 175.39 81.25 175.403 81.25C175.417 81.25 175.431 81.25 175.445 81.25C175.458 81.25 175.472 81.25 175.486 81.25C175.5 81.25 175.514 81.25 175.527 81.25C175.541 81.25 175.555 81.25 175.569 81.25C175.583 81.25 175.597 81.25 175.61 81.25C175.624 81.25 175.638 81.25 175.652 81.25C175.666 81.25 175.68 81.25 175.694 81.25C175.708 81.25 175.722 81.25 175.735 81.25C175.749 81.25 175.763 81.25 175.777 81.25C175.791 81.25 175.805 81.25 175.819 81.25C175.833 81.25 175.847 81.25 175.861 81.25C175.875 81.25 175.889 81.25 175.903 81.25C175.917 81.25 175.931 81.25 175.945 81.25C175.959 81.25 175.973 81.25 175.987 81.25C176.001 81.25 176.015 81.25 176.029 81.25C176.043 81.25 176.057 81.25 176.071 81.25C176.085 81.25 176.1 81.25 176.114 81.25C176.128 81.25 176.142 81.25 176.156 81.25C176.17 81.25 176.184 81.25 176.198 81.25C176.212 81.25 176.227 81.25 176.241 81.25C176.255 81.25 176.269 81.25 176.283 81.25C176.297 81.25 176.312 81.25 176.326 81.25C176.34 81.25 176.354 81.25 176.368 81.25C176.383 81.25 176.397 81.25 176.411 81.25C176.425 81.25 176.44 81.25 176.454 81.25C176.468 81.25 176.482 81.25 176.497 81.25C176.511 81.25 176.525 81.25 176.539 81.25C176.554 81.25 176.568 81.25 176.582 81.25C176.597 81.25 176.611 81.25 176.625 81.25C176.64 81.25 176.654 81.25 176.668 81.25C176.683 81.25 176.697 8
31751.25 176.711 81.25C176.726 81.25 176.74 81.25 176.754 81.25C176.769 81.25 176.783 81.25 176.798 81.25C176.812 81.25 176.826 81.25 176.841 81.25C176.855 81.25 176.87 81.25 176.884 81.25C176.898 81.25 176.913 81.25 176.927 81.25C176.942 81.25 176.956 81.25 176.971 81.25C176.985 81.25 177 81.25 177.014 81.25C177.029 81.25 177.043 81.25 177.058 81.25C177.072 81.25 177.087 81.25 177.101 81.25C177.116 81.25 177.13 81.25 177.145 81.25C177.159 81.25 177.174 81.25 177.188 81.25C177.203 81.25 177.218 81.25 177.232 81.25C177.247 81.25 177.261 81.25 177.276 81.25C177.29 81.25 177.305 81.25 177.32 81.25C177.334 81.25 177.349 81.25 177.364 81.25C177.378 81.25 177.393 81.25 177.407 81.25C177.422 81.25 177.437 81.25 177.451 81.25C177.466 81.25 177.481 81.25 177.495 81.25C177.51 81.25 177.525 81.25 177.539 81.25C177.554 81.25 177.569 81.25 177.584 81.25C177.598 81.25 177.613 81.25 177.628 81.25C177.642 81.25 177.657 81.25 177.672 81.25C177.687 81.25 177.701 81.25 177.716 81.25C177.731 81.25 177.746 81.25 177.76 81.25C177.775 81.25 177.79 81.25 177.805 81.25C177.82 81.25 177.834 81.25 177.849 81.25C177.864 81.25 177.879 81.25 177.894 81.25C177.909 81.25 177.923 81.25 177.938 81.25C177.953 81.25 177.968 81.25 177.983 81.25C177.998 81.25 178.012 81.25 178.027 81.25C178.042 81.25 178.057 81.25 178.072 81.25C178.087 81.25 178.102 81.25 178.117 81.25C178.132 81.25 178.146 81.25 178.161 81.25C178.176 81.25 178.191 81.25 178.206 81.25C178.221 81.25 178.236 81.25 178.251 81.25C178.266 81.25 178.281 81.25 178.296 81.25C178.311 81.25 178.326 81.25 178.341 81.25C178.356 81.25 178.371 81.25 178.386 81.25C178.401 81.25 178.416 81.25 178.431 81.25C178.446 81.25 178.461 81.25 178.476 81.25C178.491 81.25 178.506 81.25 178.521 81.25C178.536 81.25 178.551 81.25 178.566 81.25C178.581 81.25 178.596 81.25 178.611 81.25C178.626 81.25 178.641 81.25 178.657 81.25C178.672 81.25 178.687 81.25 178.702 81.25C178.717 81.25 178.732 81.25 178.747 81.25C178.762 81.25 178.777 81.25 178.793 81.25C178.808 81.25 178.823 81.25 178.838 81.25C178.853 81.25 178.868 81.25 178.883 81.25C178.899 81.25 178.914 81.25 178.929 81.25C178.944 81.25 178.959 81.25 178.974 81.25C178.99 81.25 179.005 81.25 179.02 81.25C179.035 81.25 179.05 81.25 179.066 81.25C179.081 81.25 179.096 81.25 179.111 81.25C179.126 81.25 179.142 81.25 179.157 81.25C179.172 81.25 179.187 81.25 179.203 81.25C179.218 81.25 179.233 81.25 179.248 81.25C179.264 81.25 179.279 81.25 179.294 81.25C179.31 81.25 179.325 81.25 179.34 81.25C179.355 81.25 179.371 81.25 179.386 81.25C179.401 81.25 179.417 81.25 179.432 81.25C179.447 81.25 179.463 81.25 179.478 81.25C179.493 81.25 179.509 81.25 179.524 81.25C179.539 81.25 179.555 81.25 179.57 81.25C179.585 81.25 179.601 81.25 179.616 81.25C179.632 81.25 179.647 81.25 179.662 81.25C179.678 81.25 179.693 81.25 179.709 81.25C179.724 81.25 179.739 81.25 179.755 81.25C179.77 81.25 179.786 81.25 179.801 81.25C179.816 81.25 179.832 81.25 179.847 81.25C179.863 81.25 179.878 81.25 179.894 81.25C179.909 81.25 179.925 81.25 179.94 81.25C179.955 81.25 179.971 81.25 179.986 81.25C180.002 81.25 180.017 81.25 180.033 81.25C180.048 81.25 180.064 81.25 180.079 81.25C180.095 81.25 180.11 81.25 180.126 81.25C180.141 81.25 180.157 81.25 180.172 81.25C180.188 81.25 180.203 81.25 180.219 81.25C180.234 81.25 180.25 81.25 180.266 81.25C180.281 81.25 180.297 81.25 180.312 81.25C180.328 81.25 180.343 81.25 180.359 81.25C180.374 81.25 180.39 81.25 180.406 81.25C180.421 81.25 180.437 81.25 180.452 81.25C180.468 81.25 180.484 81.25 180.499 81.25C180.515 81.25 180.53 81.25 180.546 81.25C180.562 81.25 180.577 81.25 180.593 81.25C180.608 81.25 180.624 81.25 180.64 81.25C180.655 81.25 180.671 81.25 180.687 81.25C180.702 81.25 180.718 81.25 180.734 81.25C180.749 81.25 180.765 81.25 180.781 81.25C180.796 81.25 180.812 81.25 180.828 81.25C180.843 81.25 180.859 81.25 180.875 81.25C180.89 81.25 180.906 81.25 180.922 81.25C180.937 81.25 180.953 81.25 180.969 81.25C180.985 81.25 181 81.25 181.016 81.25C181.032 81.25 181.047 81.25 181.063 81.25C181.079 81.25 181.095 81.25 181.11 81.25C181.126 81.25 181.142 81.25 181.158 81.25C181.173 81.25 181.189 81.25 181.205 81.25C181.221 81.25 181.236 81.25 181.252 81.25C181.268 81.25 181.284 81.25 181.3 81.25C181.315 81.25 181.331 81.25 181.347 81.25C181.363 81.25 181.378 81.25 181.394 81.25C181.41 81.25 181.426 81.25 181.442 81.25C181.457 81.25 181.473 81.25 181.489 81.25C181.505 81.25 181.521 81.25 181.537 81.25C181.552 81.25 181.568 81.25 181.584 81.25C181.6 81.25 181.616 81.25 181.632 81.25C181.647 81.25 181.663 81.25 181.679 81.25C181.695 81.25 181.711 81.25 181.727 81.25C181.743 81.25 181.758 81.25 181.774 81.25C181.79 81.25 181.806 81.25 181.822 81.25C181.838 81.25 181.854 81.25 181.87 81.25C181.886 81.25 181.901 81.25 181.917 81.25C181.933 81.25 181.949 81.25 181.965 81.25C181.981 81.25 181.997 81.25 182.013 81.25C182.029 81.25 182.045 81.25 182.061 81.25C182.076 81.25 182.092 81.25 182.108 81.25C182.124 81.25 182.14 81.25 182.156 81.25C182.172 81.25 182.188 81.25 182.204 81.25C182.22 81.25 182.236 81.25 182.252 81.25C182.268 81.25 182.284 81.25 182.3 81.25C182.316 81.25 182.332 81.25 182.348 81.25C182.364 81.25 182.38 81.25 182.396 81.25C182.412 81.25 182.428 81.25 182.444 81.25C182.46 81.25 182.476 81.25 182.492 81.25C182.508 81.25 182.524 81.25 182.54 81.25C182.556 81.25 182.572 81.25 182.588 81.25C182.604 81.25 182.62 81.25 182.636 81.25C182.652 81.25 182.668 81.25 182.684 81.25C182.7 81.25 182.716 81.25 182.732 81.25C182.748 81.25 182.764 81.25 182.78 81.25C182.796 81.25 182.812 81.25 182.828 81.25C182.844 81.25 182.86 81.25 182.876 81.25C182.892 81.25 182.908 81.25 182.924 81.25C182.94 81.25 182.956 81.25 182.973 81.25C182.989 81.25 183.005 81.25 183.021 81.25C183.037 81.25 183.053 81.25 183.069 81.25C183.085 81.25 183.101 81.25 183.117 81.25C183.133 81.25 183.149 81.25 183.166 81.25C183.182 81.25 183.198 81.25 183.214 81.25C183.23 81.25 183.246 81.25 183.262 81.25C183.278 81.25 183.294 81.25 183.311 81.25C183.327 81.25 183.343 81.25 183.359 81.25C183.375 81.25 183.391 81.25 183.407 81.25C183.423 81.25 183.439 81.25 183.456 81.25C183.472 81.25 183.488 81.25 183.504 81.25C183.52 81.25 183.536 81.25 183.552 81.25C183.569 81.25 183.585 81.25 183.601 81.25C183.617 81.25 183.633 81.25 183.649 81.25C183.666 81.25 183.682 81.25 183.698 81.25C183.714 81.25 183.73 81.25 183.746 81.25C183.763 81.25 183.779 81.25 183.795 81.25C183.811 81.25 183.827 81.25 183.843 81.25C183.86 81.25 183.876 81.25 183.892 81.25C183.908 81.25 183.924 81.25 183.94 81.25C183.957 81.25 183.973 81.25 183.989 81.25C184.005 81.25 184.021 81.25 184.038 81.25C184.054 81.25 184.07 81.25 184.086 81.25C184.102 81.25 184.119 81.25 184.135 81.25C184.151 81.25 184.167 81.25 184.183 81.25C184.2 81.25 184.216 81.25 184.232 81.25C184.248 81.25 184.265 81.25 184.281 81.25C184.297 81.25 184.313 81.25 184.329 81.25C184.346 81.25 184.362 81.25 184.378 81.25C184.394 81.25 184.411 81.25 184.427 81.25C184.443 81.25 184.459 81.25 184.476 81.25C184.492 81.25 184.508 81.25 184.524 81.25C184.541 81.25 184.557 81.25 184.573 81.25C184.589 81.25 184.605 81.25 184.622 81.25C184.638 81.25 184.654 81.25 184.671 81.25C184.687 81.25 184.703 81.25 184.719 81.25C184.736 81.25 184.752 81.25 184.768 81.25C184.784 81.25 184.801 81.25 184.817 81.25C184.833 81.25 184.849 81.25 184.866 81.25C184.882 81.25 184.898 81.25 184.914 81.25C184.931 81.25 184.947 81.25 184.963 81.25C184.98 81.25 184.996 81.25 185.012 81.25C185.028 81.25 185.045 81.25 185.061 81.25C185.077 81.25 185.094 81.25 185.11 81.25C185.126 81.25 185.142 81.25 185.159 81.25C185.175 81.25 185.191 81.25 185.208 81.25C185.224 81.25 185.24 81.25 185.256 81.25C185.273 81.25 185.289 81.25 185.305 81.25C185.322 81.25 185.338 81.25 185.354 81.25C185.371 81.25 185.387 81.25 185.403 81.25C185.419 81.25 185.436 81.25 185.452 81.25C185.468 81.25 185.485 81.25 185.501 81.25C185.517 81.25 185.534 81.25 185.55 81.25C185.566 8
31751.25 185.582 81.25 185.599 81.25C185.615 81.25 185.631 81.25 185.648 81.25C185.664 81.25 185.68 81.25 185.697 81.25C185.713 81.25 185.729 81.25 185.746 81.25C185.762 81.25 185.778 81.25 185.795 81.25C185.811 81.25 185.827 81.25 185.844 81.25C185.86 81.25 185.876 81.25 185.893 81.25C185.909 81.25 185.925 81.25 185.941 81.25C185.958 81.25 185.974 81.25 185.99 81.25C186.007 81.25 186.023 81.25 186.039 81.25C186.056 81.25 186.072 81.25 186.088 81.25C186.105 81.25 186.121 81.25 186.137 81.25C186.154 81.25 186.17 81.25 186.186 81.25C186.203 81.25 186.219 81.25 186.235 81.25C186.252 81.25 186.268 81.25 186.284 81.25C186.301 81.25 186.317 81.25 186.333 81.25C186.35 81.25 186.366 81.25 186.382 81.25C186.399 81.25 186.415 81.25 186.431 81.25C186.448 81.25 186.464 81.25 186.48 81.25C186.497 81.25 186.513 81.25 186.529 81.25C186.546 81.25 186.562 81.25 186.578 81.25C186.595 81.25 186.611 81.25 186.627 81.25C186.644 81.25 186.66 81.25 186.676 81.25C186.693 81.25 186.709 81.25 186.726 81.25C186.742 81.25 186.758 81.25 186.775 81.25C186.791 81.25 186.807 81.25 186.824 81.25C186.84 81.25 186.856 81.25 186.873 81.25C186.889 81.25 186.905 81.25 186.922 81.25C186.938 81.25 186.954 81.25 186.971 81.25C186.987 81.25 187.003 81.25 187.02 81.25C187.036 81.25 187.052 81.25 187.069 81.25C187.085 81.25 187.101 81.25 187.118 81.25C187.134 81.25 187.15 81.25 187.167 81.25C187.183 81.25 187.199 81.25 187.216 81.25C187.232 81.25 187.248 81.25 187.265 81.25C187.281 81.25 187.297 81.25 187.314 81.25C187.33 81.25 187.346 81.25 187.363 81.25C187.379 81.25 187.395 81.25 187.412 81.25C187.428 81.25 187.444 81.25 187.461 81.25C187.477 81.25 187.493 81.25 187.51 81.25C187.526 81.25 187.542 81.25 187.559 81.25C187.575 81.25 187.591 81.25 187.608 81.25C187.624 81.25 187.64 81.25 187.657 81.25C187.673 81.25 187.689 81.25 187.706 81.25C187.722 81.25 187.738 81.25 187.755 81.25C187.771 81.25 187.787 81.25 187.804 81.25C187.82 81.25 187.836 81.25 187.853 81.25C187.869 81.25 187.885 81.25 187.902 81.25C187.918 81.25 187.934 81.25 187.95 81.25C187.967 81.25 187.983 81.25 187.999 81.25C188.016 81.25 188.032 81.25 188.048 81.25C188.065 81.25 188.081 81.25 188.097 81.25C188.114 81.25 188.13 81.25 188.146 81.25C188.163 81.25 188.179 81.25 188.195 81.25C188.212 81.25 188.228 81.25 188.244 81.25C188.26 81.25 188.277 81.25 188.293 81.25C188.309 81.25 188.326 81.25 188.342 81.25V82.75C188.326 82.75 188.309 82.75 188.293 82.75C188.277 82.75 188.26 82.75 188.244 82.75C188.228 82.75 188.212 82.75 188.195 82.75C188.179 82.75 188.163 82.75 188.146 82.75C188.13 82.75 188.114 82.75 188.097 82.75C188.081 82.75 188.065 82.75 188.048 82.75C188.032 82.75 188.016 82.75 187.999 82.75C187.983 82.75 187.967 82.75 187.95 82.75C187.934 82.75 187.918 82.75 187.902 82.75C187.885 82.75 187.869 82.75 187.853 82.75C187.836 82.75 187.82 82.75 187.804 82.75C187.787 82.75 187.771 82.75 187.755 82.75C187.738 82.75 187.722 82.75 187.706 82.75C187.689 82.75 187.673 82.75 187.657 82.75C187.64 82.75 187.624 82.75 187.608 82.75C187.591 82.75 187.575 82.75 187.559 82.75C187.542 82.75 187.526 82.75 187.51 82.75C187.493 82.75 187.477 82.75 187.461 82.75C187.444 82.75 187.428 82.75 187.412 82.75C187.395 82.75 187.379 82.75 187.363 82.75C187.346 82.75 187.33 82.75 187.314 82.75C187.297 82.75 187.281 82.75 187.265 82.75C187.248 82.75 187.232 82.75 187.216 82.75C187.199 82.75 187.183 82.75 187.167 82.75C187.15 82.75 187.134 82.75 187.118 82.75C187.101 82.75 187.085 82.75 187.069 82.75C187.052 82.75 187.036 82.75 187.02 82.75C187.003 82.75 186.987 82.75 186.971 82.75C186.954 82.75 186.938 82.75 186.922 82.75C186.905 82.75 186.889 82.75 186.873 82.75C186.856 82.75 186.84 82.75 186.824 82.75C186.807 82.75 186.791 82.75 186.775 82.75C186.758 82.75 186.742 82.75 186.726 82.75C186.709 82.75 186.693 82.75 186.676 82.75C186.66 82.75 186.644 82.75 186.627 82.75C186.611 82.75 186.595 82.75 186.578 82.75C186.562 82.75 186.546 82.75 186.529 82.75C186.513 82.75 186.497 82.75 186.48 82.75C186.464 82.75 186.448 82.75 186.431 82.75C186.415 82.75 186.399 82.75 186.382 82.75C186.366 82.75 186.35 82.75 186.333 82.75C186.317 82.75 186.301 82.75 186.284 82.75C186.268 82.75 186.252 82.75 186.235 82.75C186.219 82.75 186.203 82.75 186.186 82.75C186.17 82.75 186.154 82.75 186.137 82.75C186.121 82.75 186.105 82.75 186.088 82.75C186.072 82.75 186.056 82.75 186.039 82.75C186.023 82.75 186.007 82.75 185.99 82.75C185.974 82.75 185.958 82.75 185.941 82.75C185.925 82.75 185.909 82.75 185.893 82.75C185.876 82.75 185.86 82.75 185.844 82.75C185.827 82.75 185.811 82.75 185.795 82.75C185.778 82.75 185.762 82.75 185.746 82.75C185.729 82.75 185.713 82.75 185.697 82.75C185.68 82.75 185.664 82.75 185.648 82.75C185.631 82.75 185.615 82.75 185.599 82.75C185.582 82.75 185.566 82.75 185.55 82.75C185.534 82.75 185.517 82.75 185.501 82.75C185.485 82.75 185.468 82.75 185.452 82.75C185.436 82.75 185.419 82.75 185.403 82.75C185.387 82.75 185.371 82.75 185.354 82.75C185.338 82.75 185.322 82.75 185.305 82.75C185.289 82.75 185.273 82.75 185.256 82.75C185.24 82.75 185.224 82.75 185.208 82.75C185.191 82.75 185.175 82.75 185.159 82.75C185.142 82.75 185.126 82.75 185.11 82.75C185.094 82.75 185.077 82.75 185.061 82.75C185.045 82.75 185.028 82.75 185.012 82.75C184.996 82.75 184.98 82.75 184.963 82.75C184.947 82.75 184.931 82.75 184.914 82.75C184.898 82.75 184.882 82.75 184.866 82.75C184.849 82.75 184.833 82.75 184.817 82.75C184.801 82.75 184.784 82.75 184.768 82.75C184.752 82.75 184.736 82.75 184.719 82.75C184.703 82.75 184.687 82.75 184.671 82.75C184.654 82.75 184.638 82.75 184.622 82.75C184.605 82.75 184.589 82.75 184.573 82.75C184.557 82.75 184.541 82.75 184.524 82.75C184.508 82.75 184.492 82.75 184.476 82.75C184.459 82.75 184.443 82.75 184.427 82.75C184.411 82.75 184.394 82.75 184.378 82.75C184.362 82.75 184.346 82.75 184.329 82.75C184.313 82.75 184.297 82.75 184.281 82.75C184.265 82.75 184.248 82.75 184.232 82.75C184.216 82.75 184.2 82.75 184.183 82.75C184.167 82.75 184.151 82.75 184.135 82.75C184.119 82.75 184.102 82.75 184.086 82.75C184.07 82.75 184.054 82.75 184.038 82.75C184.021 82.75 184.005 82.75 183.989 82.75C183.973 82.75 183.957 82.75 183.94 82.75C183.924 82.75 183.908 82.75 183.892 82.75C183.876 82.75 183.86 82.75 183.843 82.75C183.827 82.75 183.811 82.75 183.795 82.75C183.779 82.75 183.763 82.75 183.746 82.75C183.73 82.75 183.714 82.75 183.698 82.75C183.682 82.75 183.666 82.75 183.649 82.75C183.633 82.75 183.617 82.75 183.601 82.75C183.585 82.75 183.569 82.75 183.552 82.75C183.536 82.75 183.52 82.75 183.504 82.75C183.488 82.75 183.472 82.75 183.456 82.75C183.439 82.75 183.423 82.75 183.407 82.75C183.391 82.75 183.375 82.75 183.359 82.75C183.343 82.75 183.327 82.75 183.311 82.75C183.294 82.75 183.278 82.75 183.262 82.75C183.246 82.75 183.23 82.75 183.214 82.75C183.198 82.75 183.182 82.75 183.166 82.75C183.149 82.75 183.133 82.75 183.117 82.75C183.101 82.75 183.085 82.75 183.069 82.75C183.053 82.75 183.037 82.75 183.021 82.75C183.005 82.75 182.989 82.75 182.973 82.75C182.956 82.75 182.94 82.75 182.924 82.75C182.908 82.75 182.892 82.75 182.876 82.75C182.86 82.75 182.844 82.75 182.828 82.75C182.812 82.75 182.796 82.75 182.78 82.75C182.764 82.75 182.748 82.75 182.732 82.75C182.716 82.75 182.7 82.75 182.684 82.75C182.668 82.75 182.652 82.75 182.636 82.75C182.62 82.75 182.604 82.75 182.588 82.75C182.572 82.75 182.556 82.75 182.54 82.75C182.524 82.75 182.508 82.75 182.492 82.75C182.476 82.75 182.46 82.75 182.444 82.75C182.428 82.75 182.412 82.75 182.396 82.75C182.38 82.75 182.364 82.75 182.348 82.75C182.332 82.75 182.316 82.75 182.3 82.75C182.284 82.75 182.268 82.75 182.252 82.75C182.236 82.75 182.22 82.75 182.204 82.75C182.188 82.75 182.172 82.75 182.156 82.75C182.14 82.75 182.124 82.75 182.108 82.75C182.092 82.75 182.076 82.75 182.061 82.75C182.045 82.75 182.029 82.75 182.013 82.75C181.997 82.75 181.981 82.75 181.965 82.75C181.949 82.75 181.933 82.75 181.917 82.75C181.901 82.75 181.886 82.75 181.87 82.75C181.854 82.75 181.838 82.75 181.822 82.75C181.806 82.75 181.79 82.75 181.774 82.75C181.758 82.75 181.743 82.75 181.727 82.75C181.711 82.75 181.695 82.75 181.679 82.75C181.663 82.75 181.647 82.75 181.632 82.75C181.616 82.75 181.6 82.75 181.584 82.75C181.568 82.75 181.552 82.75 181.537 82.75C181.521 82.75 181.505 82.75 181.489 82.75C181.473 82.75 181.457 82.75 181.442 82.75C181.426 82.75 181.41 82.75 181.394 82.75C181.378 82.75 181.363 82.75 181.347 82.75C181.331 82.75 181.315 82.75 181.3 82.75C181.284 82.75 181.268 82.75 181.252 82.75C181.236 82.75 181.221 82.75 181.205 82.75C181.189 82.75 181.173 82.75 181.158 82.75C181.142 82.75 181.126 82.75 181.11 82.75C181.095 82.75 181.079 82.75 181.063 82.75C181.047 82.75 181.032 82.75 181.016 82.75C181 82.75 180.985 82.75 180.9
317569 82.75C180.953 82.75 180.937 82.75 180.922 82.75C180.906 82.75 180.89 82.75 180.875 82.75C180.859 82.75 180.843 82.75 180.828 82.75C180.812 82.75 180.796 82.75 180.781 82.75C180.765 82.75 180.749 82.75 180.734 82.75C180.718 82.75 180.702 82.75 180.687 82.75C180.671 82.75 180.655 82.75 180.64 82.75C180.624 82.75 180.608 82.75 180.593 82.75C180.577 82.75 180.562 82.75 180.546 82.75C180.53 82.75 180.515 82.75 180.499 82.75C180.484 82.75 180.468 82.75 180.452 82.75C180.437 82.75 180.421 82.75 180.406 82.75C180.39 82.75 180.374 82.75 180.359 82.75C180.343 82.75 180.328 82.75 180.312 82.75C180.297 82.75 180.281 82.75 180.266 82.75C180.25 82.75 180.234 82.75 180.219 82.75C180.203 82.75 180.188 82.75 180.172 82.75C180.157 82.75 180.141 82.75 180.126 82.75C180.11 82.75 180.095 82.75 180.079 82.75C180.064 82.75 180.048 82.75 180.033 82.75C180.017 82.75 180.002 82.75 179.986 82.75C179.971 82.75 179.955 82.75 179.94 82.75C179.925 82.75 179.909 82.75 179.894 82.75C179.878 82.75 179.863 82.75 179.847 82.75C179.832 82.75 179.816 82.75 179.801 82.75C179.786 82.75 179.77 82.75 179.755 82.75C179.739 82.75 179.724 82.75 179.709 82.75C179.693 82.75 179.678 82.75 179.662 82.75C179.647 82.75 179.632 82.75 179.616 82.75C179.601 82.75 179.585 82.75 179.57 82.75C179.555 82.75 179.539 82.75 179.524 82.75C179.509 82.75 179.493 82.75 179.478 82.75C179.463 82.75 179.447 82.75 179.432 82.75C179.417 82.75 179.401 82.75 179.386 82.75C179.371 82.75 179.355 82.75 179.34 82.75C179.325 82.75 179.31 82.75 179.294 82.75C179.279 82.75 179.264 82.75 179.248 82.75C179.233 82.75 179.218 82.75 179.203 82.75C179.187 82.75 179.172 82.75 179.157 82.75C179.142 82.75 179.126 82.75 179.111 82.75C179.096 82.75 179.081 82.75 179.066 82.75C179.05 82.75 179.035 82.75 179.02 82.75C179.005 82.75 178.99 82.75 178.974 82.75C178.959 82.75 178.944 82.75 178.929 82.75C178.914 82.75 178.899 82.75 178.883 82.75C178.868 82.75 178.853 82.75 178.838 82.75C178.823 82.75 178.808 82.75 178.793 82.75C178.777 82.75 178.762 82.75 178.747 82.75C178.732 82.75 178.717 82.75 178.702 82.75C178.687 82.75 178.672 82.75 178.657 82.75C178.641 82.75 178.626 82.75 178.611 82.75C178.596 82.75 178.581 82.75 178.566 82.75C178.551 82.75 178.536 82.75 178.521 82.75C178.506 82.75 178.491 82.75 178.476 82.75C178.461 82.75 178.446 82.75 178.431 82.75C178.416 82.75 178.401 82.75 178.386 82.75C178.371 82.75 178.356 82.75 178.341 82.75C178.326 82.75 178.311 82.75 178.296 82.75C178.281 82.75 178.266 82.75 178.251 82.75C178.236 82.75 178.221 82.75 178.206 82.75C178.191 82.75 178.176 82.75 178.161 82.75C178.146 82.75 178.132 82.75 178.117 82.75C178.102 82.75 178.087 82.75 178.072 82.75C178.057 82.75 178.042 82.75 178.027 82.75C178.012 82.75 177.998 82.75 177.983 82.75C177.968 82.75 177.953 82.75 177.938 82.75C177.923 82.75 177.909 82.75 177.894 82.75C177.879 82.75 177.864 82.75 177.849 82.75C177.834 82.75 177.82 82.75 177.805 82.75C177.79 82.75 177.775 82.75 177.76 82.75C177.746 82.75 177.731 82.75 177.716 82.75C177.701 82.75 177.687 82.75 177.672 82.75C177.657 82.75 177.642 82.75 177.628 82.75C177.613 82.75 177.598 82.75 177.584 82.75C177.569 82.75 177.554 82.75 177.539 82.75C177.525 82.75 177.51 82.75 177.495 82.75C177.481 82.75 177.466 82.75 177.451 82.75C177.437 82.75 177.422 82.75 177.407 82.75C177.393 82.75 177.378 82.75 177.364 82.75C177.349 82.75 177.334 82.75 177.32 82.75C177.305 82.75 177.29 82.75 177.276 82.75C177.261 82.75 177.247 82.75 177.232 82.75C177.218 82.75 177.203 82.75 177.188 82.75C177.174 82.75 177.159 82.75 177.145 82.75C177.13 82.75 177.116 82.75 177.101 82.75C177.087 82.75 177.072 82.75 177.058 82.75C177.043 82.75 177.029 82.75 177.014 82.75C177 82.75 176.985 82.75 176.971 82.75C176.956 82.75 176.942 82.75 176.927 82.75C176.913 82.75 176.898 82.75 176.884 82.75C176.87 82.75 176.855 82.75 176.841 82.75C176.826 82.75 176.812 82.75 176.798 82.75C176.783 82.75 176.769 82.75 176.754 82.75C176.74 82.75 176.726 82.75 176.711 82.75C176.697 82.75 176.683 82.75 176.668 82.75C176.654 82.75 176.64 82.75 176.625 82.75C176.611 82.75 176.597 82.75 176.582 82.75C176.568 82.75 176.554 82.75 176.539 82.75C176.525 82.75 176.511 82.75 176.497 82.75C176.482 82.75 176.468 82.75 176.454 82.75C176.44 82.75 176.425 82.75 176.411 82.75C176.397 82.75 176.383 82.75 176.368 82.75C176.354 82.75 176.34 82.75 176.326 82.75C176.312 82.75 176.297 82.75 176.283 82.75C176.269 82.75 176.255 82.75 176.241 82.75C176.227 82.75 176.212 82.75 176.198 82.75C176.184 82.75 176.17 82.75 176.156 82.75C176.142 82.75 176.128 82.75 176.114 82.75C176.1 82.75 176.085 82.75 176.071 82.75C176.057 82.75 176.043 82.75 176.029 82.75C176.015 82.75 176.001 82.75 175.987 82.75C175.973 82.75 175.959 82.75 175.945 82.75C175.931 82.75 175.917 82.75 175.903 82.75C175.889 82.75 175.875 82.75 175.861 82.75C175.847 82.75 175.833 82.75 175.819 82.75C175.805 82.75 175.791 82.75 175.777 82.75C175.763 82.75 175.749 82.75 175.735 82.75C175.722 82.75 175.708 82.75 175.694 82.75C175.68 82.75 175.666 82.75 175.652 82.75C175.638 82.75 175.624 82.75 175.61 82.75C175.597 82.75 175.583 82.75 175.569 82.75C175.555 82.75 175.541 82.75 175.527 82.75C175.514 82.75 175.5 82.75 175.486 82.75C175.472 82.75 175.458 82.75 175.445 82.75C175.431 82.75 175.417 82.75 175.403 82.75C175.39 82.75 175.376 82.75 175.362 82.75C175.348 82.75 175.335 82.75 175.321 82.75C175.307 82.75 175.294 82.75 175.28 82.75C175.266 82.75 175.253 82.75 175.239 82.75C175.225 82.75 175.212 82.75 175.198 82.75C175.184 82.75 175.171 82.75 175.157 82.75C175.143 82.75 175.13 82.75 175.116 82.75C175.103 82.75 175.089 82.75 175.075 82.75C175.062 82.75 175.048 82.75 175.035 82.75C175.021 82.75 175.008 82.75 174.994 82.75C174.981 82.75 174.967 82.75 174.954 82.75C174.94 82.75 174.926 82.75 174.913 82.75C174.9 82.75 174.886 82.75 174.873 82.75C174.859 82.75 174.846 82.75 174.832 82.75C174.819 82.75 174.805 82.75 174.792 82.75C174.778 82.75 174.765 82.75 174.752 82.75C174.738 82.75 174.725 82.75 174.711 82.75C174.698 82.75 174.685 82.75 174.671 82.75C174.658 82.75 174.645 82.75 174.631 82.75C174.618 82.75 174.605 82.75 174.591 82.75C174.578 82.75 174.565 82.75 174.551 82.75C174.538 82.75 174.525 82.75 174.512 82.75C174.498 82.75 174.485 82.75 174.472 82.75C174.459 82.75 174.445 82.75 174.432 82.75C174.419 82.75 174.406 82.75 174.392 82.75C174.379 82.75 174.3
317566 82.75 174.353 82.75C174.34 82.75 174.327 82.75 174.313 82.75C174.3 82.75 174.287 82.75 174.274 82.75C174.261 82.75 174.248 82.75 174.235 82.75C174.222 82.75 174.208 82.75 174.195 82.75C174.182 82.75 174.169 82.75 174.156 82.75C174.143 82.75 174.13 82.75 174.117 82.75C174.104 82.75 174.091 82.75 174.078 82.75C174.065 82.75 174.052 82.75 174.039 82.75C174.026 82.75 174.013 82.75 174 82.75C173.987 82.75 173.974 82.75 173.961 82.75C173.948 82.75 173.935 82.75 173.922 82.75C173.909 82.75 173.897 82.75 173.884 82.75C173.871 82.75 173.858 82.75 173.845 82.75C173.832 82.75 173.819 82.75 173.806 82.75C173.794 82.75 173.781 82.75 173.768 82.75C173.755 82.75 173.742 82.75 173.729 82.75C173.717 82.75 173.704 82.75 173.691 82.75C173.678 82.75 173.666 82.75 173.653 82.75C173.64 82.75 173.627 82.75 173.615 82.75C173.602 82.75 173.589 82.75 173.577 82.75C173.564 82.75 173.551 82.75 173.539 82.75C173.526 82.75 173.513 82.75 173.501 82.75C173.488 82.75 173.475 82.75 173.463 82.75C173.45 82.75 173.437 82.75 173.425 82.75C173.412 82.75 173.4 82.75 173.387 82.75C173.374 82.75 173.362 82.75 173.349 82.75C173.337 82.75 173.324 82.75 173.312 82.75C173.299 82.75 173.287 82.75 173.274 82.75C173.262 82.75 173.249 82.75 173.237 82.75C173.224 82.75 173.212 82.75 173.199 82.75C173.187 82.75 173.175 82.75 173.162 82.75C173.15 82.75 173.137 82.75 173.125 82.75C173.113 82.75 173.1 82.75 173.088 82.75C173.075 82.75 173.063 82.75 173.051 82.75C173.038 82.75 173.026 82.75 173.014 82.75C173.002 82.75 172.989 82.75 172.977 82.75C172.965 82.75 172.952 82.75 172.94 82.75C172.928 82.75 172.916 82.75 172.903 82.75C172.891 82.75 172.879 82.75 172.867 82.75C172.854 82.75 172.842 82.75 172.83 82.75C172.818 82.75 172.806 82.75 172.794 82.75C172.781 82.75 172.769 82.75 172.757 82.75C172.745 82.75 172.733 82.75 172.721 82.75C172.709 82.75 172.697 82.75 172.685 82.75C172.673 82.75 172.66 82.75 172.648 82.75C172.636 82.75 172.624 82.75 172.612 82.75C172.6 82.75 172.588 82.75 172.576 82.75C172.564 82.75 172.552 82.75 172.54 82.75C172.528 82.75 172.516 82.75 172.505 82.75C172.493 82.75 172.481 82.75 172.469 82.75C172.457 82.75 172.445 82.75 172.433 82.75C172.421 82.75 172.409 82.75 172.397 82.75C172.386 82.75 172.374 82.75 172.362 82.75C172.35 82.75 172.338 82.75 172.326 82.75C172.315 82.75 172.303 82.75 172.291 82.75C172.279 82.75 172.268 82.75 172.256 82.75C172.244 82.75 172.232 82.75 172.221 82.75C172.209 82.75 172.197 82.75 172.186 82.75C172.174 82.75 172.162 82.75 172.151 82.75C172.139 82.75 172.127 82.75 172.116 82.75C172.104 82.75 172.092 82.75 172.081 82.75C172.069 82.75 172.058 82.75 172.046 82.75C172.034 82.75 172.023 82.75 172.011 82.75C172 82.75 171.988 82.75 171.977 82.75C171.965 82.75 171.954 82.75 171.942 82.75C171.931 82.75 171.919 82.75 171.908 82.75C171.896 82.75 171.885 82.75 171.873 82.75C171.862 82.75 171.851 82.75 171.839 82.75C171.828 82.75 171.816 82.75 171.805 82.75C171.794 82.75 171.782 82.75 171.771 82.75C171.76 82.75 171.748 82.75 171.737 82.75C171.726 82.75 171.714 82.75 171.703 82.75C171.692 82.75 171.681 82.75 171.669 82.75C171.658 82.75 171.647 82.75 171.636 82.75C171.624 82.75 171.613 82.75 171.602 82.75C171.591 82.75 171.58 82.75 171.568 82.75C171.557 82.75 171.546 82.75 171.535 82.75C171.524 82.75 171.513 82.75 171.502 82.75C171.49 82.75 171.479 82.75 171.468 82.75C171.457 82.75 171.446 82.75 171.435 82.75C171.424 82.75 171.413 82.75 171.402 82.75C171.391 82.75 171.38 82.75 171.369 82.75C171.358 82.75 171.347 82.75 171.336 82.75C171.325 82.75 171.314 82.75 171.303 82.75C171.292 82.75 171.281 82.75 171.27 82.75C171.26 82.75 171.249 82.75 171.238 82.75C171.227 82.75 171.216 82.75 171.205 82.75C171.194 82.75 171.184 82.75 171.173 82.75C171.162 82.75 171.151 82.75 171.14 82.75C171.13 82.75 171.119 82.75 171.108 82.75C171.097 82.75 171.087 82.75 171.076 82.75C171.065 82.75 171.055 82.75 171.044 82.75C171.033 82.75 171.023 82.75 171.012 82.75C171.001 82.75 170.991 82.75 170.98 82.75C170.969 82.75 170.959 82.75 170.948 82.75C170.938 82.75 170.927 82.75 170.916 82.75C170.906 82.75 170.895 82.75 170.885 82.75C170.874 82.75 170.864 82.75 170.853 82.75C170.843 82.75 170.832 82.75 170.822 82.75C170.811 82.75 170.801 82.75 170.791 82.75C170.78 82.75 170.77 82.75 170.759 82.75C170.749 82.75 170.739 82.75 170.728 82.75C170.718 82.75 170.707 82.75 170.697 82.75C170.687 82.75 170.676 82.75 170.666 82.75C170.656 82.75 170.646 82.75 170.635 82.75C170.625 82.75 170.615 82.75 170.605 82.75C170.594 82.75 170.584 82.75 170.574 82.75C170.564 82.75 170.553 82.75 170.543 82.75C170.533 82.75 170.523 82.75 170.513 82.75C170.503 82.75 170.493 82.75 170.482 82.75C170.472 82.75 170.462 82.75 170.452 82.75C170.442 82.75 170.432 82.75 170.422 82.75C170.412 82.75 170.402 82.75 170.392 82.75C170.382 82.75 170.372 82.75 170.362 82.75C170.352 82.75 170.342 82.75 170.332 82.75C170.322 82.75 170.312 82.75 170.302 82.75C170.292 82.75 170.282 82.75 170.273 82.75C170.263 82.75 170.253 82.75 170.243 82.75C170.233 82.75 170.223 82.75 170.213 82.75C170.204 82.75 170.194 82.75 170.184 82.75C170.174 82.75 170.165 82.75 170.155 82.75C170.145 82.75 170.135 82.75 170.126 82.75C170.116 82.75 170.106 82.75 170.097 82.75C170.087 82.75 170.077 82.75 170.068 82.75C170.058 82.75 170.048 82.75 170.039 82.75C170.029 82.75 170.019 82.75 170.01 82.75C170 82.75 169.991 82.75 169.981 82.75C169.972 82.75 169.962 82.75 169.953 82.75C169.943 82.75 169.934 82.75 169.924 82.75C169.915 82.75 169.905 82.75 169.896 82.75C169.886 82.75 169.877 82.75 169.867 82.75C169.858 82.75 169.849 82.75 169.839 82.75C169.83 82.75 169.821 82.75 169.811 82.75C169.802 82.75 169.793 82.75 169.783 82.75C169.774 82.75 169.765 82.75 169.755 82.75C169.746 82.75 169.737 82.75 169.728 82.75C169.718 82.75 169.709 82.75 169.7 82.75C169.691 82.75 169.682 82.75 169.672 82.75C169.663 82.75 169.654 82.75 169.645 82.75C169.636 82.75 169.627 82.75 169.618 82.75C169.609 82.75 169.6 82.75 169.59 82.75C169.581 82.75 169.572 82.75 169.563 82.75C169.554 82.75 169.545 82.75 169.536 82.75C169.527 82.75 169.518 82.75 169.509 82.75C169.5 82.75 169.492 82.75 169.483 82.75C169.474 82.75 169.465 82.75 169.456 82.75C169.447 82.75 169.438 82.75 169.429 82.75C169.42 82.75 169.412 82.75 169.403 82.75C169.394 82.75 169.385 82.75 169.376 82.75C169.368 82.75 169.359 82.75 169.35 82.75C169.341 82.75 169.333 82.75 169.324 82.75C169.315 82.75 169.307 82.75 169.298 82.75C169.289 82.75 169.281 82.75 169.272 82.75C169.263 82.75 169.255 82.75 169.246 82.75C169.238 82.75 169.229 82.75 169.22 82.75C169.212 82.75 169.203 82.75 169.195 82.75C169.186 82.75 169.178 82.75 169.169 82.75C169.161 82.75 169.152 82.75 169.144 82.75C169.135 82.75 169.127 82.75 169.119 82.75C169.11 82.75 169.102 82.75 169.093 82.75C169.085 82.75 169.077 82.75 169.068 82.75C169.06 82.75 169.052 82.75 169.043 82.75C169.035 82.75 169.027 82.75 169.019 82.75C169.01 82.75 169.002 82.75 168.994 82.75C168.986 82.75 168.97
31757 82.75 168.969 82.75C168.961 82.75 168.953 82.75 168.945 82.75C168.937 82.75 168.928 82.75 168.92 82.75C168.912 82.75 168.904 82.75 168.896 82.75C168.888 82.75 168.88 82.75 168.872 82.75C168.864 82.75 168.856 82.75 168.848 82.75C168.84 82.75 168.832 82.75 168.824 82.75C168.816 82.75 168.808 82.75 168.8 82.75C168.792 82.75 168.784 82.75 168.776 82.75C168.768 82.75 168.761 82.75 168.753 82.75C168.745 82.75 168.737 82.75 168.729 82.75C168.721 82.75 168.714 82.75 168.706 82.75C168.698 82.75 168.69 82.75 168.683 82.75C168.675 82.75 168.667 82.75 168.659 82.75C168.652 82.75 168.644 82.75 168.636 82.75C168.629 82.75 168.621 82.75 168.613 82.75C168.606 82.75 168.598 82.75 168.591 82.75C168.583 82.75 168.575 82.75 168.568 82.75C168.56 82.75 168.553 82.75 168.545 82.75C168.538 82.75 168.53 82.75 168.523 82.75C168.515 82.75 168.508 82.75 168.501 82.75C168.493 82.75 168.486 82.75 168.478 82.75C168.471 82.75 168.464 82.75 168.456 82.75C168.449 82.75 168.442 82.75 168.434 82.75C168.427 82.75 168.42 82.75 168.412 82.75C168.405 82.75 168.398 82.75 168.391 82.75C168.383 82.75 168.376 82.75 168.369 82.75C168.362 82.75 168.355 82.75 168.347 82.75C168.34 82.75 168.333 82.75 168.326 82.75C168.319 82.75 168.312 82.75 168.305 82.75C168.298 82.75 168.291 82.75 168.284 82.75C168.277 82.75 168.27 82.75 168.263 82.75C168.256 82.75 168.249 82.75 168.242 82.75C168.235 82.75 168.228 82.75 168.221 82.75C168.214 82.75 168.207 82.75 168.2 82.75C168.193 82.75 168.186 82.75 168.18 82.75C168.173 82.75 168.166 82.75 168.159 82.75C168.152 82.75 168.146 82.75 168.139 82.75C168.132 82.75 168.125 82.75 168.119 82.75C168.112 82.75 168.105 82.75 168.099 82.75C168.092 82.75 168.085 82.75 168.079 82.75C168.072 82.75 168.065 82.75 168.059 82.75C168.052 82.75 168.046 82.75 168.039 82.75C168.033 82.75 168.026 82.75 168.019 82.75C168.013 82.75 168.006 82.75 168 82.75V81.25ZM188.342 81.25C190.447 81.25 192.186 81.7816 193.375 83.1285C194.546 84.4539 195.053 86.4243 195.053 89H193.553C193.553 86.5757 193.067 85.0461 192.251 84.1215C191.453 83.2184 190.211 82.75 188.342 82.75V81.25ZM195.053 89C195.053 89.75 195.053 95.25 195.053 100.875C195.053 106.5 195.053 112.25 195.053 113.5H193.553C193.553 112.25 193.553 106.5 193.553 100.875C193.553 95.25 193.553 89.75 193.553 89H195.053ZM195.053 113.5C195.053 115.112 195.509 116.399 196.388 117.284C197.264 118.166 198.664 118.75 200.761 118.75V120.25C198.388 120.25 196.558 119.584 195.324 118.341C194.091 117.101 193.553 115.388 193.553 113.5H195.053ZM200.761 118.75C200.772 118.75 200.783 118.75 200.794 118.75C200.805 118.75 200.816 118.75 200.827 118.75C200.838 118.75 200.85 118.75 200.861 118.75C200.872 118.75 200.883 118.75 200.895 118.75C200.906 118.75 200.917 118.75 200.929 118.75C200.94 118.75 200.952 118.75 200.964 118.75C200.975 118.75 200.987 118.75 200.999 118.75C201.01 118.75 201.022 118.75 201.034 118.75C201.046 118.75 201.058 118.75 201.07 118.75C201.081 118.75 201.093 118.75 201.106 118.75C201.118 118.75 201.13 118.75 201.142 118.75C201.154 118.75 201.166 118.75 201.179 118.75C201.191 118.75 201.203 118.75 201.216 118.75C201.228 118.75 201.241 118.75 201.253 118.75C201.266 118.75 201.278 118.75 201.291 118.75C201.304 118.75 201.316 118.75 201.329 118.75C201.342 118.75 201.355 118.75 201.368 118.75C201.38 118.75 201.393 118.75 201.406 118.75C201.419 118.75 201.432 118.75 201.446 118.75C201.459 118.75 201.472 118.75 201.485 118.75C201.498 118.75 201.512 118.75 201.525 118.75C201.538 118.75 201.552 118.75 201.565 118.75C201.579 118.75 201.592 118.75 201.606 118.75C201.619 118.75 201.633 118.75 201.647 118.75C201.66 118.75 201.674 118.75 201.688 118.75C201.702 118.75 201.715 118.75 201.729 118.75C201.743 118.75 201.757 118.75 201.771 118.75C201.785 118.75 201.799 118.75 201.813 118.75C201.828 118.75 201.842 118.75 201.856 118.75C201.87 118.75 201.884 118.75 201.899 118.75C201.913 118.75 201.928 118.75 201.942 118.75C201.956 118.75 201.971 118.75 201.986 118.75C202 118.75 202.015 118.75 202.029 118.75C202.044 118.75 202.059 118.75 202.074 118.75C202.088 118.75 202.103 118.75 202.118 118.75C202.133 118.75 202.148 118.75 202.163 118.75C202.178 118.75 202.193 118.75 202.208 118.75C202.223 118.75 202.238 118.75 202.254 118.75C202.269 118.75 202.284 118.75 202.299 118.75C202.315 118.75 202.33 118.75 202.345 118.75C202.361 118.75 202.376 118.75 202.392 118.75C202.407 118.75 202.423 118.75 202.439 118.75C202.454 118.75 202.47 118.75 202.486 118.75C202.501 118.75 202.517 118.75 202.533 118.75C202.549 118.75 202.565 118.75 202.581 118.75C202.597 118.75 202.613 118.75 202.629 118.75C202.645 118.75 202.661 118.75 202.677 118.75C202.693 118.75 202.709 118.75 202.726 118.75C202.742 118.75 202.758 118.75 202.775 118.75C202.791 118.75 202.807 118.75 202.824 118.75C202.84 118.75 202.857 118.75 202.873 118.75C202.89 118.75 202.907 118.75 202.923 118.75C202.94 118.75 202.957 118.75 202.973 118.75C202.99 118.75 203.007 118.75 203.024 118.75C203.041 118.75 203.058 118.75 203.075 118.75C203.092 118.75 203.109 118.75 203.126 118.75C203.143 118.75 203.16 118.75 203.177 118.75C203.194 118.75 203.211 118.75 203.229 118.75C203.246 118.75 203.263 118.75 203.281 118.75C203.298 118.75 203.315 118.75 203.333 118.75C203.35 118.75 203.368 118.75 203.385 118.75C203.403 118.75 203.42 118.75 203.438 118.75C203.456 118.75 203.474 118.75 203.491 118.75C203.509 118.75 203.527 118.75 203.545 118.75C203.562 118.75 203.58 118.75 203.598 118.75C203.616 118.75 203.634 118.75 203.652 118.75C203.67 118.75 203.688 118.75 203.707 118.75C203.725 118.75 203.743 118.75 203.761 118.75C203.779 118.75 203.798 118.75 203.816 118.75C203.834 118.75 203.853 118.75 203.871 118.75C203.889 118.75 203.908 118.75 203.926 118.75C203.945 118.75 203.963 118.75 203.982 118.75C204.001 118.75 204.019 118.75 204.038 118.75C204.057 118.75 204.075 118.75 204.094 118.75C204.113 118.75 204.132 118.75 204.151 118.75C204.17 118.75 204.188 118.75 204.207 118.75C204.226 118.75 204.245 118.75 204.264 118.75C204.284 118.75 204.303 118.75 204.322 118.75C204.341 118.75 204.36 118.75 204.379 118.75C204.399 118.75 204.418 118.75 204.437 118.75C204.457 118.75 204.476 118.75 204.495 118.75C204.515 118.75 204.534 118.75 204.554 118.75C204.573 
3175118.75 204.593 118.75 204.612 118.75C204.632 118.75 204.652 118.75 204.671 118.75C204.691 118.75 204.711 118.75 204.73 118.75C204.75 118.75 204.77 118.75 204.79 118.75C204.81 118.75 204.83 118.75 204.85 118.75C204.87 118.75 204.89 118.75 204.91 118.75C204.93 118.75 204.95 118.75 204.97 118.75C204.99 118.75 205.01 118.75 205.03 118.75C205.05 118.75 205.071 118.75 205.091 118.75C205.111 118.75 205.132 118.75 205.152 118.75C205.172 118.75 205.193 118.75 205.213 118.75C205.234 118.75 205.254 118.75 205.275 118.75C205.295 118.75 205.316 118.75 205.336 118.75C205.357 118.75 205.378 118.75 205.398 118.75C205.419 118.75 205.44 118.75 205.461 118.75C205.481 118.75 205.502 118.75 205.523 118.75C205.544 118.75 205.565 118.75 205.586 118.75C205.607 118.75 205.628 118.75 205.649 118.75C205.67 118.75 205.691 118.75 205.712 118.75C205.733 118.75 205.754 118.75 205.776 118.75C205.797 118.75 205.818 118.75 205.839 118.75C205.861 118.75 205.882 118.75 205.903 118.75C205.925 118.75 205.946 118.75 205.967 118.75C205.989 118.75 206.01 118.75 206.032 118.75C206.053 118.75 206.075 118.75 206.097 118.75C206.118 118.75 206.14 118.75 206.161 118.75C206.183 118.75 206.205 118.75 206.227 118.75C206.248 118.75 206.27 118.75 206.292 118.75C206.314 118.75 206.336 118.75 206.357 118.75C206.379 118.75 206.401 118.75 206.423 118.75C206.445 118.75 206.467 118.75 206.489 118.75C206.511 118.75 206.534 118.75 206.556 118.75C206.578 118.75 206.6 118.75 206.622 118.75C206.644 118.75 206.667 118.75 206.689 118.75C206.711 118.75 206.733 118.75 206.756 118.75C206.778 118.75 206.801 118.75 206.823 118.75C206.845 118.75 206.868 118.75 206.89 118.75C206.913 118.75 206.935 118.75 206.958 118.75C206.981 118.75 207.003 118.75 207.026 118.75C207.049 118.75 207.071 118.75 207.094 118.75C207.117 118.75 207.139 118.75 207.162 118.75C207.185 118.75 207.208 118.75 207.231 118.75C207.254 118.75 207.276 118.75 207.299 118.75C207.322 118.75 207.345 118.75 207.368 118.75C207.391 118.75 207.414 118.75 207.437 118.75C207.46 118.75 207.484 118.75 207.507 118.75C207.53 118.75 207.553 118.75 207.576 118.75C207.599 118.75 207.623 118.75 207.646 118.75C207.669 118.75 207.693 118.75 207.716 118.75C207.739 118.75 207.763 118.75 207.786 118.75C207.81 118.75 207.833 118.75 207.857 118.75C207.88 118.75 207.904 118.75 207.927 118.75C207.951 118.75 207.974 118.75 207.998 118.75C208.021 118.75 208.045 118.75 208.069 118.75C208.093 118.75 208.116 118.75 208.14 118.75C208.164 118.75 208.188 118.75 208.211 118.75C208.235 118.75 208.259 118.75 208.283 118.75C208.307 118.75 208.331 118.75 208.355 118.75C208.379 118.75 208.403 118.75 208.427 118.75C208.451 118.75 208.475 118.75 208.499 118.75C208.523 118.75 208.547 118.75 208.571 118.75C208.595 118.75 208.62 118.75 208.644 118.75C208.668 118.75 208.692 118.75 208.716 118.75C208.741 118.75 208.765 118.75 208.789 118.75C208.814 118.75 208.838 118.75 208.862 118.75C208.887 118.75 208.911 118.75 208.936 118.75C208.96 118.75 208.985 118.75 209.009 118.75C209.034 118.75 209.058 118.75 209.083 118.75C209.107 118.75 209.132 118.75 209.157 118.75C209.181 118.75 209.206 118.75 209.231 118.75C209.255 118.75 209.28 118.75 209.305 118.75C209.33 118.75 209.354 118.75 209.379 118.75C209.404 118.75 209.429 118.75 209.454 118.75C209.479 118.75 209.504 118.75 209.529 118.75C209.554 118.75 209.578 118.75 209.603 118.75C209.628 118.75 209.653 118.75 209.679 118.75C209.704 118.75 209.729 118.75 209.754 118.75C209.779 118.75 209.804 118.75 209.829 118.75C209.854 118.75 209.88 118.75 209.905 118.75C209.93 118.75 209.955 118.75 209.981 118.75C210.006 118.75 210.031 118.75 210.056 118.75C210.082 118.75 210.107 118.75 210.133 118.75C210.158 118.75 210.183 118.75 210.209 118.75C210.234 118.75 210.26 118.75 210.285 118.75C210.311 118.75 210.336 118.75 210.362 118.75C210.387 118.75 210.413 118.75 210.439 118.75C210.464 118.75 210.49 118.75 210.515 118.75C210.541 118.75 210.567 118.75 210.593 118.75C210.618 118.75 210.644 118.75 210.67 118.75C210.696 118.75 210.721 118.75 210.747 118.75C210.773 118.75 210.799 118.75 210.825 118.75C210.851 118.75 210.876 118.75 210.902 118.75C210.928 118.75 210.954 118.75 210.98 118.75C211.006 118.75 211.032 118.75 211.058 118.75C211.084 118.75 211.11 118.75 211.136 118.75C211.162 118.75 211.189 118.75 211.215 118.75C211.241 118.75 211.267 118.75 211.293 118.75C211.319 118.75 211.345 118.75 211.372 118.75C211.398 118.75 211.424 118.75 211.45 118.75C211.477 118.75 211.503 118.75 211.529 118.75C211.556 118.75 211.582 118.75 211.608 118.75C211.635 118.75 211.661 118.75 211.687 118.75C211.714 118.75 211.74 118.75 211.767 118.75C211.793 118.75 211.82 
3175118.75 211.846 118.75C211.873 118.75 211.899 118.75 211.926 118.75C211.952 118.75 211.979 118.75 212.005 118.75C212.032 118.75 212.059 118.75 212.085 118.75C212.112 118.75 212.139 118.75 212.165 118.75C212.192 118.75 212.219 118.75 212.245 118.75C212.272 118.75 212.299 118.75 212.326 118.75C212.352 118.75 212.379 118.75 212.406 118.75C212.433 118.75 212.46 118.75 212.487 118.75C212.513 118.75 212.54 118.75 212.567 118.75C212.594 118.75 212.621 118.75 212.648 118.75C212.675 118.75 212.702 118.75 212.729 118.75C212.756 118.75 212.783 118.75 212.81 118.75C212.837 118.75 212.864 118.75 212.891 118.75C212.918 118.75 212.945 118.75 212.972 118.75C212.999 118.75 213.026 118.75 213.054 118.75C213.081 118.75 213.108 118.75 213.135 118.75C213.162 118.75 213.189 118.75 213.217 118.75C213.244 118.75 213.271 118.75 213.298 118.75C213.326 118.75 213.353 118.75 213.38 118.75C213.408 118.75 213.435 118.75 213.462 118.75C213.49 118.75 213.517 118.75 213.544 118.75C213.572 118.75 213.599 118.75 213.626 118.75C213.654 118.75 213.681 118.75 213.709 118.75C213.736 118.75 213.764 118.75 213.791 118.75C213.819 118.75 213.846 118.75 213.874 118.75C213.901 118.75 213.929 118.75 213.956 118.75C213.984 118.75 214.011 118.75 214.039 118.75C214.067 118.75 214.094 118.75 214.122 118.75C214.15 118.75 214.177 118.75 214.205 118.75C214.232 118.75 214.26 118.75 214.288 118.75C214.316 118.75 214.343 118.75 214.371 118.75C214.399 118.75 214.426 118.75 214.454 118.75C214.482 118.75 214.51 118.75 214.538 118.75C214.565 118.75 214.593 118.75 214.621 118.75C214.649 118.75 214.677 118.75 214.705 118.75C214.732 118.75 214.76 118.75 214.788 118.75C214.816 118.75 214.844 118.75 214.872 118.75C214.9 118.75 214.928 118.75 214.956 118.75C214.984 118.75 215.012 118.75 215.04 118.75C215.068 118.75 215.096 118.75 215.124 118.75C215.152 118.75 215.18 118.75 215.208 118.75C215.236 118.75 215.264 118.75 215.292 118.75C215.32 118.75 215.348 118.75 215.376 118.75C215.404 118.75 215.432 118.75 215.46 118.75C215.489 118.75 215.517 118.75 215.545 118.75C215.573 118.75 215.601 118.75 215.629 118.75C215.658 118.75 215.686 118.75 215.714 118.75C215.742 118.75 215.77 118.75 215.799 118.75C215.827 118.75 215.855 118.75 215.883 118.75C215.912 118.75 215.94 118.75 215.968 118.75C215.997 118.75 216.025 118.75 216.053 118.75C216.081 118.75 216.11 118.75 216.138 118.75C216.166 118.75 216.195 118.75 216.223 118.75C216.252 118.75 216.28 118.75 216.308 118.75C216.337 118.75 216.365 118.75 216.394 118.75C216.422 118.75 216.45 118.75 216.479 118.75C216.507 118.75 216.536 118.75 216.564 118.75C216.593 118.75 216.621 118.75 216.65 118.75C216.678 118.75 216.707 118.75 216.735 118.75C216.764 118.75 216.792 118.75 216.821 118.75C216.849 118.75 216.878 118.75 216.906 118.75C216.935 118.75 216.963 118.75 216.992 118.75C217.02 118.75 217.049 118.75 217.078 118.75C217.106 118.75 217.135 118.75 217.163 118.75C217.192 118.75 217.221 118.75 217.249 118.75C217.278 118.75 217.306 118.75 217.335 118.75C217.364 118.75 217.392 118.75 217.421 118.75C217.45 118.75 217.478 118.75 217.507 118.75C217.536 118.75 217.564 118.75 217.593 118.75C217.622 118.75 217.651 118.75 217.679 118.75C217.708 118.75 217.737 118.75 217.765 118.75C217.794 118.75 217.823 118.75 217.852 118.75C217.88 118.75 217.909 118.75 217.938 118.75C217.967 118.75 217.995 118.75 218.024 118.75C218.053 118.75 218.082 118.75 218.111 118.75C218.139 118.75 218.168 118.75 218.197 118.75C218.226 118.75 218.255 118.75 218.284 118.75C218.312 118.75 218.341 118.75 218.37 118.75C218.399 118.75 218.428 118.75 218.457 118.75C218.485 118.75 218.514 118.75 218.543 118.75C218.572 118.75 218.601 118.75 218.63 118.75C218.659 118.75 218.688 118.75 218.716 118.75C218.745 118.75 218.774 118.75 218.803 118.75C218.832 118.75 218.861 118.75 218.89 118.75C218.919 118.75 218.948 118.75 218.977 118.75C219.006 118.75 219.035 118.75 219.063 118.75C219.092 118.75 219.121 118.75 219.15 118.75C219.179 118.75 219.208 118.75 219.237 118.75C219.266 118.75 219.295 118.75 219.324 118.75C219.353 118.75 219.382 118.75 219.411 118.75C219.44 118.75 219.469 118.75 219.498 118.75C219.527 118.75 219.556 118.75 219.585 118.75C219.614 118.75 219.643 118.75 219.672 118.75C219.701 118.75 219.73 118.75 219.759 118.75C219.788 118.75 219.817 118.75 219.846 118.75C219.875 118.75 219.904 118.75 219.933 118.75C219.962 118.75 219.991 118.75 220.02 118.75C220.049 118.75 220.078 118.75 220.107 118.75C220.136 118.75 220.165 118.75 220.194 118.75C220.224 118.75 220.253 118.75 220.282 118.75C220.311 118.75 220.34 118.75 220.369 118.75C220.398 118.75 220.427 118.75 220.456 118.75C220.485 118.75 220.514 118.75 220.543 118.75C220.572 118.75 220.601 118.75 220.63 118.75C220.659 118.75 220.688 118.75 220.718 118.75C220.747 118.75 220.776 118.75 220.805 118.75C220.834 118.75 220.863 118.75 220.892 118.75C220.921 118.75 220.95 118.75 220.979 118.75C221.008 118.75 221.037 118.75 221.066 118.75C221.096 118.75 221.125 118.75 221.154 118.75C221.183 118.75 221.212 118.75 221.241 118.75C221.27 118.75 221.299 118.75 221.328 118.75C221.357 118.75 221.386 118.75 221.415 118.75C221.445 118.75 221.474 118.75 221.503 118.75C221.532 118.75 221.561 118.75 221.59 118.75C221.619 118.75 221.648 118.75 221.677 118.75C221.706 118.75 221.735 118.75 221.764 118.75C221.794 
3175118.75 221.823 118.75 221.852 118.75C221.881 118.75 221.91 118.75 221.939 118.75C221.968 118.75 221.997 118.75 222.026 118.75C222.055 118.75 222.084 118.75 222.113 118.75C222.142 118.75 222.171 118.75 222.201 118.75C222.23 118.75 222.259 118.75 222.288 118.75C222.317 118.75 222.346 118.75 222.375 118.75C222.404 118.75 222.433 118.75 222.462 118.75C222.491 118.75 222.52 118.75 222.549 118.75C222.578 118.75 222.607 118.75 222.636 118.75C222.665 118.75 222.694 118.75 222.723 118.75C222.752 118.75 222.781 118.75 222.81 118.75C222.839 118.75 222.869 118.75 222.898 118.75C222.927 118.75 222.956 118.75 222.985 118.75C223.014 118.75 223.043 118.75 223.072 118.75C223.101 118.75 223.13 118.75 223.159 118.75C223.188 118.75 223.217 118.75 223.246 118.75C223.275 118.75 223.304 118.75 223.333 118.75C223.361 118.75 223.39 118.75 223.419 118.75C223.448 118.75 223.477 118.75 223.506 118.75C223.535 118.75 223.564 118.75 223.593 118.75C223.622 118.75 223.651 118.75 223.68 118.75C223.709 118.75 223.738 118.75 223.767 118.75C223.796 118.75 223.825 118.75 223.854 118.75C223.882 118.75 223.911 118.75 223.94 118.75C223.969 118.75 223.998 118.75 224.027 118.75C224.056 118.75 224.085 118.75 224.114 118.75C224.142 118.75 224.171 118.75 224.2 118.75C224.229 118.75 224.258 118.75 224.287 118.75C224.316 118.75 224.344 118.75 224.373 118.75C224.402 118.75 224.431 118.75 224.46 118.75C224.489 118.75 224.517 118.75 224.546 118.75C224.575 118.75 224.604 118.75 224.633 118.75C224.661 118.75 224.69 118.75 224.719 118.75C224.748 118.75 224.777 118.75 224.805 118.75C224.834 118.75 224.863 118.75 224.892 118.75C224.92 118.75 224.949 118.75 224.978 118.75C225.006 118.75 225.035 118.75 225.064 118.75C225.093 118.75 225.121 118.75 225.15 118.75C225.179 118.75 225.207 118.75 225.236 118.75C225.265 118.75 225.293 118.75 225.322 118.75C225.351 118.75 225.379 118.75 225.408 118.75C225.437 118.75 225.465 118.75 225.494 118.75C225.522 118.75 225.551 118.75 225.58 118.75C225.608 118.75 225.637 118.75 225.665 118.75C225.694 118.75 225.723 118.75 225.751 118.75C225.78 118.75 225.808 118.75 225.837 118.75C225.865 118.75 225.894 118.75 225.922 118.75C225.951 118.75 225.979 118.75 226.008 118.75C226.036 118.75 226.065 118.75 226.093 118.75C226.122 118.75 226.15 118.75 226.179 118.75C226.207 118.75 226.236 118.75 226.264 118.75C226.292 118.75 226.321 118.75 226.349 118.75C226.378 118.75 226.406 118.75 226.434 118.75C226.463 118.75 226.491 118.75 226.519 118.75C226.548 118.75 226.576 118.75 226.604 118.75C226.633 118.75 226.661 118.75 226.689 118.75C226.718 118.75 226.746 118.75 226.774 118.75C226.803 118.75 226.831 118.75 226.859 118.75C226.887 118.75 226.916 118.75 226.944 118.75C226.972 118.75 227 118.75 227.028 118.75C227.057 118.75 227.085 118.75 227.113 118.75C227.141 118.75 227.169 118.75 227.197 118.75C227.226 118.75 227.254 118.75 227.282 118.75C227.31 118.75 227.338 118.75 227.366 118.75C227.394 118.75 227.422 118.75 227.45 118.75C227.478 118.75 227.506 118.75 227.534 118.75C227.563 118.75 227.591 118.75 227.619 118.75C227.647 118.75 227.675 118.75 227.702 118.75C227.73 118.75 227.758 118.75 227.786 118.75C227.814 118.75 227.842 118.75 227.87 118.75C227.898 118.75 227.926 118.75 227.954 118.75C227.982 118.75 228.01 118.75 228.037 118.75C228.065 118.75 228.093 118.75 228.121 118.75C228.149 118.75 228.176 118.75 228.204 118.75C228.232 118.75 228.26 118.75 228.288 118.75C228.315 118.75 228.343 118.75 228.371 118.75C228.398 118.75 228.426 118.75 228.454 118.75C228.482 118.75 228.509 118.75 228.537 118.75C228.564 118.75 228.592 118.75 228.62 118.75C228.647 118.75 228.675 118.75 228.702 118.75C228.73 118.75 228.758 118.75 228.785 118.75C228.813 118.75 228.84 118.75 228.868 118.75C228.895 118.75 228.923 118.75 228.95 118.75C228.978 118.75 229.005 118.75 229.033 118.75C229.06 118.75 229.087 118.75 229.115 118.75C229.142 118.75 229.17 118.75 229.197 118.75C229.224 118.75 229.252 118.75 229.279 118.75C229.306 118.75 229.334 118.75 229.361 118.75C229.388 118.75 229.415 118.75 229.443 118.75C229.47 118.75 229.497 118.75 229.524 118.75C229.552 118.75 229.579 118.75 229.606 118.75C229.633 118.75 229.66 118.75 229.687 118.75C229.714 118.75 229.742 118.75 229.769 118.75C229.796 118.75 229.823 118.75 229.85 118.75C229.877 118.75 229.904 118.75 229.931 118.75C229.958 118.75 229.985 118.75 230.012 118.75C230.039 118.75 230.066 118.75 230.093 118.75C230.12 118.75 230.147 118.75 230.173 118.75C230.2 118.75 230.227 118.75 230.254 118.75C230.281 118.75 230.308 118.75 230.334 118.75C230.361 118.75 230.388 118.75 230.415 118.75C230.442 118.75 230.468 118.75 230.495 118.75C230.522 118.75 230.548 118.75 230.575 118.75C230.602 118.75 230.628 118.75 230.655 118.75C230.682 118.75 230.708 118.75 230.735 118.75C230.761 118.75 230.788 118.75 230.814 118.75C230.841 118.75 230.867 118.75 230.894 118.75C230.92 118.75 230.947 118.75 230.973 118.75C231 118.75 231.026 118.75 231.052 118.75C231.079 118.75 231.105 118.75 231.132 118.75C231.158 118.75 231.184 118.75 231.211 118.75C231.237 118.75 231.263 118.75 231.289 118.75C231.316 118.75 231.342 118.75 231.368 118.75C231.394 118.75 231.42 118.75 231.446 118.75C231.473 118.75 231.499 118.75 231.525 118.75C231.551 118.75 231.577 118.75 231.603 118.75C231.629 118.75 231.655 118.75 231.681 118.75C231.707 118.75 231.733 118.75 231.759 118.75C231.785 118.75 231.811 118.75 231.837 118.75C231.863 118.75 231.889 118.75 231.914 118.75C231.94 118.75 231.966 118.75 231.992 118.75C232.018 118.75 232.043 118.75 232.069 118.75C232.095 118.75 232.121 118.75 232.146 118.75C232.172 118.75 232.198 118.75 232.223 118.75C232.249 118.75 232.275 118.75 232.3 118.75C232.326 118.75 232.351 118.75 232.377 118.75C232.402 118.75 232.428 118.75 232.453 118.75C232.479 118.75 232.504 118.75 232.53 118.75C232.555 118.75 232.58 118.75 232.606 118.75C232.631 118.75 232.657 118.75 232.682 118.75C232.707 118.75 232.732 118.75 232.758 118.75C232.783 118.75 232.808 118.75 232.833 118.75C232.859 118.75 232.884 118.75 232.909 118.75C232.934 118.75 232.959 118.75 232.984 118.75C233.009 118.75 233.034 118.75 233.059 118.75C233.084 118.75 233.109 118.75 233.134 118.75C233.159 118.75 233.184 118.75 233.209 118.75C233.234 118.75 233.259 118.75 233.284 118.75C233.309 118.75 233.334 118.75 233.358 118.75C233.383 118.75 233.408 118.75 233.433 118.75C233.457 118.75 233.482 118.75 233.507 118.75C233.531 118.75 233.556 118.75 233.581 118.75C233.605 118.75 233.63 118.75 233.654 118.75C233.679 118.75 233.704 118.75 233.728 118.75C233.752 118.75 233.777 118.75 233.801 118.75C233.826 118.75 233.85 118.75 233.875 118.75C233.899 118.75 233.923 118.75 233.948 118.75C233.972 118.75 233.996 118.75 234.02 118.75C234.045 118.75 234.069 118.75 234.093 118.75C234.117 118.75 234.141 118.75 234.165 118.75C234.19 118.75 234.214 118.75 234.238 118.75C234.262 118.75 234.286 118.75 234.31 118.75C234.334 118.75 234.358 118.75 234.382 118.75C234.406 118.75 234.429 118.75 234.453 118.75C234.477 118.75 234.501 118.75 234.525 118.75C234.549 118.75 234.572 118.75 234.596 118.75C234.62 118.75 234.644 118.75 234.667 118.75C234.691 118.75 234.714 118.75 234.738 118.75C234.762 118.75 234.785 118.75 234.809 118.75C234.832 118.75 234.856 118.75 234.879 118.75C234.903 118.75 234.926 118.75 234.949 118.75C234.973 118.75 234.996 118.75 235.02 118.75C235.043 118.75 235.066 118.75 235.089 118.75C235.113 118.75 235.136 118.75 235.159 118.75C235.182 118.75 235.205 118.75 235.229 118.75C235.252 118.75 235.275 118.75 235.298 118.75C235.321 118.75 235.344 118.75 235.367 118.75C235.39 118.75 235.413 118.75 235.436 118.75C235.458 118.75 235.481 118.75 235.504 118.75C235.527 118.75 235.55 118.75 235.573 118.75C235.595 118.75 235.618 118.75 235.641 118.75C235.663 118.75 235.686 118.75 235.709 118.75C235.731 118.75 235.754 118.75 235.776 118.75C235.799 118.75 235.821 118.75 235.844 118.75C235.866 118.75 235.889 118.75 235.911 118.75C235.934 118.75 235.956 118.75 235.978 118.75C236.001 118.75 236.023 118.75 236.045 118.75C236.067 118.75 236.09 118.75 236.112 118.75C236.134 118.75 236.156 118.75 236.178 118.75C236.2 118.75 236.222 118.75 236.244 118.75C236.266 118.75 236.288 118.75 236.31 118.75C236.332 118.75 236.354 118.75 236.376 118.75C236.398 118.75 236.42 118.75 236.441 118.75C236.463 118.75 236.485 118.75 236.507 118.75C236.528 118.75 236.55 118.75 236.572 118.75C236.593 118.75 236.615 118.75 236.637 118.75C236.658 118.75 236.68 118.75 236.701 118.75C236.723 118.75 236.744 118.75 236.765 118.75C236.787 118.75 236.808 118.75 236.829 118.75C236.851 118.75 236.872 118.75 236.893 118.75C236.915 118.75 236.936 118.75 236.957 118.75C236.978 118.75 236.999 118.75 237.02 118.75C237.041 118.75 237.062 118.75 237.083 118.75C237.104 118.75 237.125 118.75 237.146 118.75C237.167 118.75 237.188 118.75 237.209 118.75C237.23 118.75 237.25 118.75 237.271 118.75C237.292 118.75 237.313 118.75 237.333 118.75C237.354 118.75 237.375 118.75 237.395 118.75C237.416 118.75 237.436 118.75 237.457 118.75C237.477 118.75 237.498 118.75 237.518 118.75C237.539 118.75 237.559 118.75 237.579 118.75C237.6 118.75 237.62 118.75 237.64 118.75C237.66 118.75 237.681 118.75 237.701 118.75C237.721 118.75 237.741 118.75 237.761 118.75C237.781 118.75 237.801 118.75 237.821 118.75C237.841 118.75 237.861 118.75 237.881 118.75C237.901 118.75 237.921 118.75 237.941 118.75C237.96 118.75 237.98 118.75 238 118.75V120.25C237.98 120.25 237.96 120.25 237.941 120.25C237.921 120.25 237.901 120.25 237.881 120.25C237.861 120.25 237.841 120.25 237.821 120.25C237.801 120.25 237.781 120.25 237.761 120.25C237.741 120.25 237.721 120.25 237.701 120.25C237.681 120.25 237.66 120.25 237.64 120.25C237.62 120.25 237.6 120.25 237.579 120.25C237.559 120.25 237.539 120.25 237.518 120.25C237.498 120.25 237.477 120.25 237.457 120.25C237.436 120.25 237.416 120.25 237.395 120.25C237.375 120.25 237.354 120.25 237.333 120.25C237.313 12
31750.25 237.292 120.25 237.271 120.25C237.25 120.25 237.23 120.25 237.209 120.25C237.188 120.25 237.167 120.25 237.146 120.25C237.125 120.25 237.104 120.25 237.083 120.25C237.062 120.25 237.041 120.25 237.02 120.25C236.999 120.25 236.978 120.25 236.957 120.25C236.936 120.25 236.915 120.25 236.893 120.25C236.872 120.25 236.851 120.25 236.829 120.25C236.808 120.25 236.787 120.25 236.765 120.25C236.744 120.25 236.723 120.25 236.701 120.25C236.68 120.25 236.658 120.25 236.637 120.25C236.615 120.25 236.593 120.25 236.572 120.25C236.55 120.25 236.528 120.25 236.507 120.25C236.485 120.25 236.463 120.25 236.441 120.25C236.42 120.25 236.398 120.25 236.376 120.25C236.354 120.25 236.332 120.25 236.31 120.25C236.288 120.25 236.266 120.25 236.244 120.25C236.222 120.25 236.2 120.25 236.178 120.25C236.156 120.25 236.134 120.25 236.112 120.25C236.09 120.25 236.067 120.25 236.045 120.25C236.023 120.25 236.001 120.25 235.978 120.25C235.956 120.25 235.934 120.25 235.911 120.25C235.889 120.25 235.866 120.25 235.844 120.25C235.821 120.25 235.799 120.25 235.776 120.25C235.754 120.25 235.731 120.25 235.709 120.25C235.686 120.25 235.663 120.25 235.641 120.25C235.618 120.25 235.595 120.25 235.573 120.25C235.55 120.25 235.527 120.25 235.504 120.25C235.481 120.25 235.458 120.25 235.436 120.25C235.413 120.25 235.39 120.25 235.367 120.25C235.344 120.25 235.321 120.25 235.298 120.25C235.275 120.25 235.252 120.25 235.229 120.25C235.205 120.25 235.182 120.25 235.159 120.25C235.136 120.25 235.113 120.25 235.089 120.25C235.066 120.25 235.043 120.25 235.02 120.25C234.996 120.25 234.973 120.25 234.949 120.25C234.926 120.25 234.903 120.25 234.879 120.25C234.856 120.25 234.832 120.25 234.809 120.25C234.785 120.25 234.762 120.25 234.738 120.25C234.714 120.25 234.691 120.25 234.667 120.25C234.644 120.25 234.62 120.25 234.596 120.25C234.572 120.25 234.549 120.25 234.525 120.25C234.501 120.25 234.477 120.25 234.453 120.25C234.429 120.25 234.406 120.25 234.382 120.25C234.358 120.25 234.334 120.25 234.31 120.25C234.286 120.25 234.262 120.25 234.238 120.25C234.214 120.25 234.19 120.25 234.165 120.25C234.141 120.25 234.117 120.25 234.093 120.25C234.069 120.25 234.045 120.25 234.02 120.25C233.996 120.25 233.972 120.25 233.948 120.25C233.923 120.25 233.899 120.25 233.875 120.25C233.85 120.25 233.826 120.25 233.801 120.25C233.777 120.25 233.752 120.25 233.728 120.25C233.704 120.25 233.679 120.25 233.654 120.25C233.63 120.25 233.605 120.25 233.581 120.25C233.556 120.25 233.531 120.25 233.507 120.25C233.482 120.25 233.457 120.25 233.433 120.25C233.408 120.25 233.383 120.25 233.358 120.25C233.334 120.25 233.309 120.25 233.284 120.25C233.259 120.25 233.234 120.25 233.209 120.25C233.184 120.25 233.159 120.25 233.134 120.25C233.109 120.25 233.084 120.25 233.059 120.25C233.034 120.25 233.009 120.25 232.984 120.25C232.959 120.25 232.934 120.25 232.909 120.25C232.884 120.25 232.859 120.25 232.833 120.25C232.808 120.25 232.783 120.25 232.758 120.25C232.732 120.25 232.707 120.25 232.682 120.25C232.657 120.25 232.631 120.25 232.606 120.25C232.58 120.25 232.555 120.25 232.53 120.25C232.504 120.25 232.479 120.25 232.453 120.25C232.428 120.25 232.402 120.25 232.377 120.25C232.351 120.25 232.326 120.25 232.3 120.25C232.275 120.25 232.249 120.25 232.223 120.25C232.198 120.25 232.172 120.25 232.146 120.25C232.121 120.25 232.095 120.25 232.069 120.25C232.043 120.25 232.018 120.25 231.992 120.25C231.966 120.25 231.94 120.25 231.914 120.25C231.889 120.25 231.863 120.25 231.837 120.25C231.811 120.25 231.785 120.25 231.759 120.25C231.733 120.25 231.707 120.25 231.681 120.25C231.655 120.25 231.629 120.25 231.603 120.25C231.577 120.25 231.551 120.25 231.525 120.25C231.499 120.25 231.473 120.25 231.446 120.25C231.42 120.25 231.394 120.25 231.368 120.25C231.342 120.25 231.316 120.25 231.289 120.25C231.263 120.25 231.237 120.25 231.211 120.25C231.184 120.25 231.158 120.25 231.132 120.25C231.105 120.25 231.079 120.25 231.052 120.25C231.026 120.25 231 120.25 230.973 120.25C230.947 120.25 230.92 120.25 230.894 120.25C230.867 120.25 230.841 120.25 230.814 120.25C230.788 120.25 230.761 120.25 230.735 120.25C230.708 120.25 230.682 120.25 230.655 120.25C230.628 120.25 230.602 120.25 230.575 120.25C230.548 120.25 230.522 120.25 230.495 120.25C230.468 120.25 230.442 120.25 230.415 120.25C230.388 120.25 230.361 120.25 230.334 120.25C230.308 120.25 230.281 120.25 230.254 120.25C230.227 120.25 230.2 120.25 230.173 120.25C230.147 120.25 230.12 120.25 230.093 120.25C230.066 120.25 230.039 120.25 230.012 120.25C229.985 120.25 229.958 120.25 229.931 120.25C229.904 120.25 229.877 120.25 229.85 120.25C229.823 120.25 229.796 120.25 229.769 120.25C229.742 120.25 229.714 120.25 229.687 120.25C229.66 120.25 229.633 120.25 229.606 120.25C229.579 120.25 229.552 120.25 229.524 120.25C229.497 120.25 229.47 120.25 229.443 120.25C229.415 120.25 229.388 120.25 229.361 120.25C229.334 120.25 229.306 120.25 229.279 120.25C229.252 120.25 229.224 120.25 229.197 120.25C229.17 120.25 229.142 120.25 229.115 120.25C229.087 120.25 229.06 120.25 229.033 120.25C229.005 120.25 228.978 120.25 228.95 120.25C228.923 120.25 228.895 120.25 228.868 120.25C228.84 120.25 228.813 120.25 228.785 120.25C228.758 120.25 228.73 120.25 228.702 120.25C228.675 120.25 228.647 120.25 228.62 120.25C228.592 120.25 228.564 120.25 228.537 120.25C228.509 120.25 228.482 120.25 228.454 120.25C228.426 120.25 228.398 120.25 228.371 120.25C228.343 120.25 228.315 120.25 228.288 120.25C228.26 120.25 228.232 120.25 228.204 120.25C228.176 120.25 228.149 120.25 228.121 120.25C228.093 120.25 228.065 120.25 228.037 120.25C228.01 120.25 227.982 12
31750.25 227.954 120.25C227.926 120.25 227.898 120.25 227.87 120.25C227.842 120.25 227.814 120.25 227.786 120.25C227.758 120.25 227.73 120.25 227.702 120.25C227.675 120.25 227.647 120.25 227.619 120.25C227.591 120.25 227.563 120.25 227.534 120.25C227.506 120.25 227.478 120.25 227.45 120.25C227.422 120.25 227.394 120.25 227.366 120.25C227.338 120.25 227.31 120.25 227.282 120.25C227.254 120.25 227.226 120.25 227.197 120.25C227.169 120.25 227.141 120.25 227.113 120.25C227.085 120.25 227.057 120.25 227.028 120.25C227 120.25 226.972 120.25 226.944 120.25C226.916 120.25 226.887 120.25 226.859 120.25C226.831 120.25 226.803 120.25 226.774 120.25C226.746 120.25 226.718 120.25 226.689 120.25C226.661 120.25 226.633 120.25 226.604 120.25C226.576 120.25 226.548 120.25 226.519 120.25C226.491 120.25 226.463 120.25 226.434 120.25C226.406 120.25 226.378 120.25 226.349 120.25C226.321 120.25 226.292 120.25 226.264 120.25C226.236 120.25 226.207 120.25 226.179 120.25C226.15 120.25 226.122 120.25 226.093 120.25C226.065 120.25 226.036 120.25 226.008 120.25C225.979 120.25 225.951 120.25 225.922 120.25C225.894 120.25 225.865 120.25 225.837 120.25C225.808 120.25 225.78 120.25 225.751 120.25C225.723 120.25 225.694 120.25 225.665 120.25C225.637 120.25 225.608 120.25 225.58 120.25C225.551 120.25 225.522 120.25 225.494 120.25C225.465 120.25 225.437 120.25 225.408 120.25C225.379 120.25 225.351 120.25 225.322 120.25C225.293 120.25 225.265 120.25 225.236 120.25C225.207 120.25 225.179 120.25 225.15 120.25C225.121 120.25 225.093 120.25 225.064 120.25C225.035 120.25 225.006 120.25 224.978 120.25C224.949 120.25 224.92 120.25 224.892 120.25C224.863 120.25 224.834 120.25 224.805 120.25C224.777 120.25 224.748 120.25 224.719 120.25C224.69 120.25 224.661 120.25 224.633 120.25C224.604 120.25 224.575 120.25 224.546 120.25C224.517 120.25 224.489 120.25 224.46 120.25C224.431 120.25 224.402 120.25 224.373 120.25C224.344 120.25 224.316 120.25 224.287 120.25C224.258 120.25 224.229 120.25 224.2 120.25C224.171 120.25 224.142 120.25 224.114 120.25C224.085 120.25 224.056 120.25 224.027 120.25C223.998 120.25 223.969 120.25 223.94 120.25C223.911 120.25 223.882 120.25 223.854 120.25C223.825 120.25 223.796 120.25 223.767 120.25C223.738 120.25 223.709 120.25 223.68 120.25C223.651 120.25 223.622 120.25 223.593 120.25C223.564 120.25 223.535 120.25 223.506 120.25C223.477 120.25 223.448 120.25 223.419 120.25C223.39 120.25 223.361 120.25 223.333 120.25C223.304 120.25 223.275 120.25 223.246 120.25C223.217 120.25 223.188 120.25 223.159 120.25C223.13 120.25 223.101 120.25 223.072 120.25C223.043 120.25 223.014 120.25 222.985 120.25C222.956 120.25 222.927 120.25 222.898 120.25C222.869 120.25 222.839 120.25 222.81 120.25C222.781 120.25 222.752 120.25 222.723 120.25C222.694 120.25 222.665 120.25 222.636 120.25C222.607 120.25 222.578 120.25 222.549 120.25C222.52 120.25 222.491 120.25 222.462 120.25C222.433 120.25 222.404 120.25 222.375 120.25C222.346 120.25 222.317 120.25 222.288 120.25C222.259 120.25 222.23 120.25 222.201 120.25C222.171 120.25 222.142 120.25 222.113 120.25C222.084 120.25 222.055 120.25 222.026 120.25C221.997 120.25 221.968 120.25 221.939 120.25C221.91 120.25 221.881 120.25 221.852 120.25C221.823 120.25 221.794 120.25 221.764 120.25C221.735 120.25 221.706 120.25 221.677 120.25C221.648 120.25 221.619 120.25 221.59 120.25C221.561 120.25 221.532 120.25 221.503 120.25C221.474 120.25 221.445 120.25 221.415 120.25C221.386 120.25 221.357 120.25 221.328 120.25C221.299 120.25 221.27 120.25 221.241 120.25C221.212 120.25 221.183 120.25 221.154 120.25C221.125 120.25 221.096 120.25 221.066 120.25C221.037 120.25 221.008 120.25 220.979 120.25C220.95 120.25 220.921 120.25 220.892 120.25C220.863 120.25 220.834 120.25 220.805 120.25C220.776 120.25 220.747 120.25 220.718 120.25C220.688 120.25 220.659 120.25 220.63 120.25C220.601 120.25 220.572 120.25 220.543 120.25C220.514 120.25 220.485 120.25 220.456 120.25C220.427 120.25 220.398 120.25 220.369 120.25C220.34 120.25 220.311 120.25 220.282 120.25C220.253 120.25 220.224 120.25 220.194 120.25C220.165 120.25 220.136 120.25 220.107 120.25C220.078 120.25 220.049 120.25 220.02 120.25C219.991 120.25 219.962 120.25 219.933 120.25C219.904 120.25 219.875 120.25 219.846 120.25C219.817 120.25 219.788 120.25 219.759 120.25C219.73 120.25 219.701 120.25 219.672 120.25C219.643 120.25 219.614 120.25 219.585 120.25C219.556 120.25 219.527 120.25 219.498 120.25C219.469 120.25 219.44 
3175120.25 219.411 120.25C219.382 120.25 219.353 120.25 219.324 120.25C219.295 120.25 219.266 120.25 219.237 120.25C219.208 120.25 219.179 120.25 219.15 120.25C219.121 120.25 219.092 120.25 219.063 120.25C219.035 120.25 219.006 120.25 218.977 120.25C218.948 120.25 218.919 120.25 218.89 120.25C218.861 120.25 218.832 120.25 218.803 120.25C218.774 120.25 218.745 120.25 218.716 120.25C218.688 120.25 218.659 120.25 218.63 120.25C218.601 120.25 218.572 120.25 218.543 120.25C218.514 120.25 218.485 120.25 218.457 120.25C218.428 120.25 218.399 120.25 218.37 120.25C218.341 120.25 218.312 120.25 218.284 120.25C218.255 120.25 218.226 120.25 218.197 120.25C218.168 120.25 218.139 120.25 218.111 120.25C218.082 120.25 218.053 120.25 218.024 120.25C217.995 120.25 217.967 120.25 217.938 120.25C217.909 120.25 217.88 120.25 217.852 120.25C217.823 120.25 217.794 120.25 217.765 120.25C217.737 120.25 217.708 120.25 217.679 120.25C217.651 120.25 217.622 120.25 217.593 120.25C217.564 120.25 217.536 120.25 217.507 120.25C217.478 120.25 217.45 120.25 217.421 120.25C217.392 120.25 217.364 120.25 217.335 120.25C217.306 120.25 217.278 120.25 217.249 120.25C217.221 120.25 217.192 120.25 217.163 120.25C217.135 120.25 217.106 120.25 217.078 120.25C217.049 120.25 217.02 120.25 216.992 120.25C216.963 120.25 216.935 120.25 216.906 120.25C216.878 120.25 216.849 120.25 216.821 120.25C216.792 120.25 216.764 120.25 216.735 120.25C216.707 120.25 216.678 120.25 216.65 120.25C216.621 120.25 216.593 120.25 216.564 120.25C216.536 120.25 216.507 120.25 216.479 120.25C216.45 120.25 216.422 120.25 216.394 120.25C216.365 120.25 216.337 120.25 216.308 120.25C216.28 120.25 216.252 120.25 216.223 120.25C216.195 120.25 216.166 120.25 216.138 120.25C216.11 120.25 216.081 120.25 216.053 120.25C216.025 120.25 215.997 120.25 215.968 120.25C215.94 120.25 215.912 120.25 215.883 120.25C215.855 120.25 215.827 120.25 215.799 120.25C215.77 120.25 215.742 120.25 215.714 120.25C215.686 120.25 215.658 120.25 215.629 120.25C215.601 120.25 215.573 120.25 215.545 120.25C215.517 120.25 215.489 120.25 215.46 120.25C215.432 120.25 215.404 120.25 215.376 120.25C215.348 120.25 215.32 120.25 215.292 120.25C215.264 120.25 215.236 120.25 215.208 120.25C215.18 120.25 215.152 120.25 215.124 120.25C215.096 120.25 215.068 120.25 215.04 120.25C215.012 120.25 214.984 120.25 214.956 120.25C214.928 120.25 214.9 120.25 214.872 120.25C214.844 120.25 214.816 120.25 214.788 120.25C214.76 120.25 214.732 120.25 214.705 120.25C214.677 120.25 214.649 120.25 214.621 120.25C214.593 120.25 214.565 120.25 214.538 120.25C214.51 120.25 214.482 120.25 214.454 120.25C214.426 120.25 214.399 120.25 214.371 120.25C214.343 120.25 214.316 120.25 214.288 120.25C214.26 120.25 214.232 120.25 214.205 120.25C214.177 120.25 214.15 120.25 214.122 120.25C214.094 120.25 214.067 120.25 214.039 120.25C214.011 120.25 213.984 120.25 213.956 120.25C213.929 120.25 213.901 120.25 213.874 120.25C213.846 120.25 213.819 120.25 213.791 120.25C213.764 120.25 213.736 120.25 213.709 120.25C213.681 120.25 213.654 120.25 213.626 120.25C213.599 120.25 213.572 120.25 213.544 120.25C213.517 120.25 213.49 120.25 213.462 120.25C213.435 120.25 213.408 120.25 213.38 120.25C213.353 120.25 213.326 120.25 213.298 120.25C213.271 120.25 213.244 120.25 213.217 120.25C213.189 120.25 213.162 120.25 213.135 120.25C213.108 120.25 213.081 120.25 213.054 120.25C213.026 120.25 212.999 120.25 212.972 120.25C212.945 120.25 212.918 120.25 212.891 120.25C212.864 120.25 212.837 120.25 212.81 120.25C212.783 120.25 212.756 120.25 212.729 120.25C212.702 120.25 212.675 120.25 212.648 120.25C212.621 120.25 212.594 120.25 212.567 120.25C212.54 120.25 212.513 120.25 212.487 120.25C212.46 120.25 212.433 120.25 212.406 120.25C212.379 120.25 212.352 120.25 212.326 120.25C212.299 120.25 212.272 120.25 212.245 120.25C212.219 120.25 212.192 120.25 212.165 120.25C212.139 120.25 212.112 120.25 212.085 120.25C212.059 120.25 212.032 120.25 212.005 120.25C211.979 120.25 211.952 120.25 211.926 120.25C211.899 120.25 211.873 120.25 211.846 120.25C211.82 120.25 211.793 120.25 211.767 120.25C211.74 120.25 211.714 120.25 211.687 120.25C211.661 120.25 211.635 120.25 211.608 120.25C211.582 120.25 211.556 120.25 211.529 120.25C211.503 120.25 211.477 120.25 211.45 120.25C211.424 120.25 211.398 120.25 211.372 120.25C211.345 120.25 211.319 120.25 211.293 120.25C211.267 120.25 211.241 120.25 211.215 120.25C211.189 120.25 211.162 120.25 211.136 120.25C211.11 120.25 211.084 120.25 211.058 120.25C211.032 120.25 211.006 120.25 210.98 120.25C210.954 120.25 210.928 120.25 210.902 120.25C210.876 120.25 210.851 120.25 210.825 120.25C210.799 120.25 210.773 120.25 210.747 120.25C210.721 120.25 210.696 120.25 210.67 120.25C210.644 120.25 210.618 120.25 210.593 120.25C210.567 120.25 210.541 120.25 210.515 120.25C210.49 120.25 210.464 120.25 210.439 120.25C210.413 120.25 210.387 120.25 210.362 120.25C210.336 120.25 210.311 120.25 210.285 120.25C210.26 120.25 210.234 120.25 210.209 120.25C210.183 120.25 210.158 120.25 210.133 120.25C210.107 120.25 210.082 120.25 210.056 120.25C210.031 120.25 210.006 120.25 209.981 120.25C209.955 120.25 209.93 120.25 209.905 120.25C209.88 120.25 209.854 120.25 209.829 120.25C209.804 120.25 209.779 120.25 209.754 120.25C209.729 120.25 209.704 120.25 209.679 120.25C209.653 120.25 209.628 120.25 209.603 120.25C209.578 120.25 209.554 120.25 209.529 120.25C209.504 120.25 209.479 120.25 209.454 120.25C209.429 120.25 209.404 120.25 209.379 12
31750.25C209.354 120.25 209.33 120.25 209.305 120.25C209.28 120.25 209.255 120.25 209.231 120.25C209.206 120.25 209.181 120.25 209.157 120.25C209.132 120.25 209.107 120.25 209.083 120.25C209.058 120.25 209.034 120.25 209.009 120.25C208.985 120.25 208.96 120.25 208.936 120.25C208.911 120.25 208.887 120.25 208.862 120.25C208.838 120.25 208.814 120.25 208.789 120.25C208.765 120.25 208.741 120.25 208.716 120.25C208.692 120.25 208.668 120.25 208.644 120.25C208.62 120.25 208.595 120.25 208.571 120.25C208.547 120.25 208.523 120.25 208.499 120.25C208.475 120.25 208.451 120.25 208.427 120.25C208.403 120.25 208.379 120.25 208.355 120.25C208.331 120.25 208.307 120.25 208.283 120.25C208.259 120.25 208.235 120.25 208.211 120.25C208.188 120.25 208.164 120.25 208.14 120.25C208.116 120.25 208.093 120.25 208.069 120.25C208.045 120.25 208.021 120.25 207.998 120.25C207.974 120.25 207.951 120.25 207.927 120.25C207.904 120.25 207.88 120.25 207.857 120.25C207.833 120.25 207.81 120.25 207.786 120.25C207.763 120.25 207.739 120.25 207.716 120.25C207.693 120.25 207.669 120.25 207.646 120.25C207.623 120.25 207.599 120.25 207.576 120.25C207.553 120.25 207.53 120.25 207.507 120.25C207.484 120.25 207.46 120.25 207.437 120.25C207.414 120.25 207.391 120.25 207.368 120.25C207.345 120.25 207.322 120.25 207.299 120.25C207.276 120.25 207.254 120.25 207.231 120.25C207.208 120.25 207.185 120.25 207.162 120.25C207.139 120.25 207.117 120.25 207.094 120.25C207.071 120.25 207.049 120.25 207.026 120.25C207.003 120.25 206.981 120.25 206.958 120.25C206.935 120.25 206.913 120.25 206.89 120.25C206.868 120.25 206.845 120.25 206.823 120.25C206.801 120.25 206.778 120.25 206.756 120.25C206.733 120.25 206.711 120.25 206.689 120.25C206.667 120.25 206.644 120.25 206.622 120.25C206.6 120.25 206.578 120.25 206.556 120.25C206.534 120.25 206.511 120.25 206.489 120.25C206.467 120.25 206.445 120.25 206.423 120.25C206.401 120.25 206.379 120.25 206.357 120.25C206.336 120.25 206.314 120.25 206.292 120.25C206.27 120.25 206.248 120.25 206.227 120.25C206.205 120.25 206.183 120.25 206.161 120.25C206.14 120.25 206.118 120.25 206.097 120.25C206.075 120.25 206.053 120.25 206.032 120.25C206.01 120.25 205.989 120.25 205.967 120.25C205.946 120.25 205.925 120.25 205.903 120.25C205.882 120.25 205.861 120.25 205.839 120.25C205.818 120.25 205.797 120.25 205.776 120.25C205.754 120.25 205.733 120.25 205.712 120.25C205.691 120.25 205.67 120.25 205.649 120.25C205.628 120.25 205.607 120.25 205.586 120.25C205.565 120.25 205.544 120.25 205.523 120.25C205.502 120.25 205.481 120.25 205.461 120.25C205.44 120.25 205.419 120.25 205.398 120.25C205.378 120.25 205.357 120.25 205.336 120.25C205.316 120.25 205.295 120.25 205.275 120.25C205.254 120.25 205.234 120.25 205.213 120.25C205.193 120.25 205.172 120.25 205.152 120.25C205.132 120.25 205.111 120.25 205.091 120.25C205.071 120.25 205.05 120.25 205.03 120.25C205.01 120.25 204.99 120.25 204.97 120.25C204.95 120.25 204.93 120.25 204.91 120.25C204.89 120.25 204.87 120.25 204.85 120.25C204.83 120.25 204.81 120.25 204.79 120.25C204.77 120.25 204.75 120.25 204.73 120.25C204.711 120.25 204.691 120.25 204.671 120.25C204.652 120.25 204.632 120.25 204.612 120.25C204.593 120.25 204.573 120.25 204.554 120.25C204.534 120.25 204.515 120.25 204.495 120.25C204.476 120.25 204.457 120.25 204.437 120.25C204.418 120.25 204.399 120.25 204.379 120.25C204.36 120.25 204.341 120.25 204.322 120.25C204.303 120.25 204.284 120.25 204.264 120.25C204.245 120.25 204.226 120.25 204.207 120.25C204.188 120.25 204.17 120.25 204.151 120.25C204.132 120.25 204.113 120.25 204.094 120.25C204.075 120.25 204.057 120.25 204.038 120.25C204.019 120.25 204.001 120.25 203.982 120.25C203.963 120.25 203.945 120.25 203.926 120.25C203.908 120.25 203.889 120.25 203.871 120.25C203.853 120.25 203.834 120.25 203.816 120.25C203.798 120.25 203.779 120.25 203.761 120.25C203.743 120.25 203.725 120.25 203.707 120.25C203.688 120.25 203.67 120.25 203.652 120.25C203.634 120.25 203.616 120.25 203.598 120.25C203.58 120.25 203.562 120.25 203.545 120.25C203.527 120.25 203.509 120.25 203.491 120.25C203.474 120.25 203.456 120.25 203.438 120.25C203.42 120.25 203.403 120.25 203.385 120.25C203.368 120.25 203.35 120.25 203.333 120.25C203.315 120.25 203.298 120.25 203.281 120.25C203.263 120.25 203.246 120.25 203.229 120.25C203.211 120.25 203.194 120.25 203.177 120.25C203.16 120.25 203.143 120.25 203.126 120.25C203.109 12
31750.25 203.092 120.25 203.075 120.25C203.058 120.25 203.041 120.25 203.024 120.25C203.007 120.25 202.99 120.25 202.973 120.25C202.957 120.25 202.94 120.25 202.923 120.25C202.907 120.25 202.89 120.25 202.873 120.25C202.857 120.25 202.84 120.25 202.824 120.25C202.807 120.25 202.791 120.25 202.775 120.25C202.758 120.25 202.742 120.25 202.726 120.25C202.709 120.25 202.693 120.25 202.677 120.25C202.661 120.25 202.645 120.25 202.629 120.25C202.613 120.25 202.597 120.25 202.581 120.25C202.565 120.25 202.549 120.25 202.533 120.25C202.517 120.25 202.501 120.25 202.486 120.25C202.47 120.25 202.454 120.25 202.439 120.25C202.423 120.25 202.407 120.25 202.392 120.25C202.376 120.25 202.361 120.25 202.345 120.25C202.33 120.25 202.315 120.25 202.299 120.25C202.284 120.25 202.269 120.25 202.254 120.25C202.238 120.25 202.223 120.25 202.208 120.25C202.193 120.25 202.178 120.25 202.163 120.25C202.148 120.25 202.133 120.25 202.118 120.25C202.103 120.25 202.088 120.25 202.074 120.25C202.059 120.25 202.044 120.25 202.029 120.25C202.015 120.25 202 120.25 201.986 120.25C201.971 120.25 201.956 120.25 201.942 120.25C201.928 120.25 201.913 120.25 201.899 120.25C201.884 120.25 201.87 120.25 201.856 120.25C201.842 120.25 201.828 120.25 201.813 120.25C201.799 120.25 201.785 120.25 201.771 120.25C201.757 120.25 201.743 120.25 201.729 120.25C201.715 120.25 201.702 120.25 201.688 120.25C201.674 120.25 201.66 120.25 201.647 120.25C201.633 120.25 201.619 120.25 201.606 120.25C201.592 120.25 201.579 120.25 201.565 120.25C201.552 120.25 201.538 120.25 201.525 120.25C201.512 120.25 201.498 120.25 201.485 120.25C201.472 120.25 201.459 120.25 201.446 120.25C201.432 120.25 201.419 120.25 201.406 120.25C201.393 120.25 201.38 120.25 201.368 120.25C201.355 120.25 201.342 120.25 201.329 120.25C201.316 120.25 201.304 120.25 201.291 120.25C201.278 120.25 201.266 120.25 201.253 120.25C201.241 120.25 201.228 120.25 201.216 120.25C201.203 120.25 201.191 120.25 201.179 120.25C201.166 120.25 201.154 120.25 201.142 120.25C201.13 120.25 201.118 120.25 201.106 120.25C201.093 120.25 201.081 120.25 201.07 120.25C201.058 120.25 201.046 120.25 201.034 120.25C201.022 120.25 201.01 120.25 200.999 120.25C200.987 120.25 200.975 120.25 200.964 120.25C200.952 120.25 200.94 120.25 200.929 120.25C200.917 120.25 200.906 120.25 200.895 120.25C200.883 120.25 200.872 120.25 200.861 120.25C200.85 120.25 200.838 120.25 200.827 120.25C200.816 120.25 200.805 120.25 200.794 120.25C200.783 120.25 200.772 120.25 200.761 120.25V118.75Z",fill:"url(#paint3_linear_38_7016)"}),(0,a.jsx)("path",{d:"M164 52C164 49.7909 165.791 48 168 48C170.209 48 172 49.7909 172 52C172 54.2091 170.209 56 168 56C165.791 56 164 54.2091 164 52ZM238.53 51.4697C238.823 51.7626 238.823 52.2374 238.53 52.5303L233.757 57.3033C233.464 57.5962 232.99 57.5962 232.697 57.3033C232.404 57.0104 232.404 56.5355 232.697 56.2426L236.939 52L232.697 47.7574C232.404 47.4645 232.404 46.9896 232.697 46.6967C232.99 46.4038 233.464 46.4038 233.757 46.6967L238.53 51.4697ZM168 51.25C168.006 51.25 168.013 51.25 168.02 51.25C168.027 51.25 168.034 51.25 168.041 51.25C168.049 51.25 168.056 51.25 168.064 51.25C168.072 51.25 168.08 51.25 168.088 51.25C168.096 51.25 168.104 51.25 168.113 51.25C168.121 51.25 168.13 51.25 168.139 51.25C168.148 51.25 168.157 51.25 168.166 51.25C168.176 51.25 168.185 51.25 168.195 51.25C168.205 51.25 168.215 51.25 168.225 51.25C168.235 51.25 168.246 51.25 168.256 51.25C168.267 51.25 168.278 51.25 168.289 51.25C168.3 51.25 168.311 51.25 168.322 51.25C168.334 51.25 168.345 51.25 168.357 51.25C168.369 51.25 168.381 51.25 168.393 51.25C168.405 51.25 168.418 51.25 168.43 51.25C168.443 51.25 168.456 51.25 168.469 51.25C168.481 51.25 168.495 51.25 168.508 51.25C168.521 51.25 168.535 51.25 168.549 51.25C168.563 51.25 168.577 51.25 168.591 51.25C168.605 51.25 168.619 51.25 168.634 51.25C168.648 51.25 168.663 51.25 168.678 51.25C168.693 51.25 168.708 51.25 168.723 51.25C168.739 51.25 168.754 51.25 168.77 51.25C168.786 51.25 168.802 51.25 168.818 51.25C168.834 51.25 168.85 51.25 168.867 51.25C168.883 51.25 168.9 51.25 168.917 51.25C168.933 51.25 168.95 51.25 168.968 51.25C168.985 51.25 169.002 51.25 169.02 51.25C169.038 51.25 169.055 51.25 169.073 51.25C169.091 51.25 169.109 51.25 169.128 51.25C169.146 51.25 169.165 51.25 169.183 51.25C169.202 51.25 169.221 51.25 169.24 51.25C169.259 51.25 169.279 51.25 169.298 51.25C169.318 51.25 169.337 51.25 169.357 51.25C169.377 51.25 169.397 51.25 169.417 51.25C169.437 51.25 169.458 51.25 169.478 51.25C169.499 51.25 169.52 51.25 169.541 51.25C169.561 51.25 169.583 51.25 169.604 51.25C169.625 51.25 169.647 51.25 169.668 51.25C169.69 51.25 169.712 51.25 169.734 51.25C169.756 51.25 169.778 51.25 169.8 51.25C169.823 51.25 169.845 51.25 169.868 51.25C169.891 51.25 169.914 51.25 169.937 51.25C169.96 51.25 169.983 51.25 170.006 51.25C170.03 51.25 170.053 51.25 170.077 51.25C170.101 51.25 170.125 51.25 170.149 51.25C170.173 51.25 170.198 51.25 170.222 51.25C170.246 51.25 170.271 51.25 170.296 51.25C170.321 51.25 170.346 51.25 170.371 51.25C170.396 51.25 170.421 51.25 170.447 51.25C170.472 51.25 170.498 51.25 170.524 51.25C170.55 51.25 170.576 51.25 170.602 51.25C170.628 51.25 170.654 51.25 170.681 51.25C170.708 51.25 170.734 51.25 170.761 51.25C170.788 51.25 170.815 51.25 170.842 51.25C170.869 51.25 170.897 51.25 170.924 51.25C170.952 51.25 170.979 51.25 171.007 51.25C171.035 51.25 171.063 51.25 171.091 51.25C171.12 51.25 171.148 51.25 171.176 51.25C171.205 51.25 171.234 51.25 171.262 51.25C171.291 51.25 171.32 51.25 171.349 51.25C171.379 51.25 171.408 51.25 171.437 51.25C171.467 51.25 171.497 51.25 171.526 51.25C171.556 51.25 171.586 51.25 171.616 51.25C171.646 51.25 171.677 51.25 171.707 51.25C171.738 51.25 171.768 51.25 171.799 51.25C171.83 51.25 171.861 51.25 171.892 51.25C171.923 51.25 171.954 51.25 171.986 51.25C172.017 51.25 172.049 51.25 172.08 51.25C172.112 51.25 172.144 51.25 172.176 51.25C172.208 51.25 172.24 51.25 172.272 51.25C172.305 51.25 172.337 51.25 172.37 51.25C172.402 51.25 172.435 51.25 172.468 51.25C172.501 51.25 172.534 51.25 172.568 51.25C172.601 51.25 172.634 51.25 172.668 51.25C172.701 51.25 172.735 51.25 172.769 51.25C172.803 51.25 172.837 51.25 172.871 51.25C172.905 51.25 172.939 51.25 172.974 51.25C173.008 51.25 173.043 51.25 173.078 51.25C173.112 51.25 173.147 51.25 173.182 51.25C173.217 51.25 173.253 51.25 173.288 51.25C173.323 51.25 173.359 51.25 173.394 51.25C173.43 51.25 173.466 51.25 173.502 51.25C173.538 51.25 173.574 51.25 173.61 51.25C173.646 51.25 173.683 51.25 173.719 51.25C173.756 51.25 173.792 51.25 173.829 51.25C173.866 51.25 173.903 51.25 173.94 51.25C173.977 51.25 174.014 51.25 174.051 51.25C174.089 51.25 174.126 51.25 174.164 51.25C174.201 51.25 174.239 51.25 174.277 51.25C174.315 51.25 174.353 51.25 174.391 51.25C174.43 51.25 174.468 51.25 174.506 51.25C174.545 51.25 174.583 51.25 174.622 51.25C174.661 51.25 174.7 51.25 174.739 51.25C174.778 51.25 174.817 51.25 174.856 51.25C174.896 51.25 174.935 51.25 174.975 51.25C175.014 51.25 175.054 51.25 175.094 51.25C175.134 51.25 175.173 51.25 175.214 51.25C175.254 51.25 175.294 51.25 175.334 51.25C175.375 51.25 175.415 51.25 175.456 51.25C175.496 51.25 175.537 51.25 175.578 51.25C175.619 51.25 175.66 51.25 175.701 51.25C175.742 51.25 175.784 51.25 175.825 51.25C175.866 51.25 175.908 51.25 175.95 51.25C175.991 51.25 176.033 51.25 176.075 51.25C176.117 51.25 176.159 51.25 176.201 51.25C176.243 51.25 176.286 51.25 176.328 51.25C176.37 51.25 176.413 51.25 176.456 51.25C176.498 51.25 176.541 51.25 176.584 51.25C176.627 51.25 176.67 51.25 176.713 51.25C176.757 51.25 176.8 51.25 176.843 51.25C176.887 51.25 176.93 51.25 176.974 51.25C177.018 51.25 177.061 51.25 177.105 51.25C177.149 51.25 177.193 51.25 177.237 51.25C177.282 51.25 177.326 51.25 177.37 51.25C177.415 51.25 177.459 51.25 177.504 51.25C177.548 51.25 177.593 51.25 177.638 51.25C177.683 51.25 177.728 51.25 177.773 51.25C177.818 51.25 177.863 51.25 177.909 51.25C177.954 51.25 178 51.25 178.045 51.25C178.091 51.25 178.136 51.25 178.182 51.25C178.228 51.25 178.274 51.25 178.32 51.25C178.366 51.25 178.412 51.25 178.459 51.25C178.505 51.25 178.551 51.25 178.598 51.25C178.644 51.25 178.691 51.25 178.738 51.25C178.784 51.25 178.831 51.25 178.878 51.25C178.925 51.25 178.972 51.25 179.019 51.25C179.066 51.25 179.114 51.25 179.161 51.25C179.208 51.25 179.256 51.25 179.304 51.25C179.351 51.25 179.399 51.25 179.447 51.25C179.495 51.25 179.542 51.25 179.59 51.25C179.639 51.25 179.687 51.25 179.735 51.25C179.783 51.25 179.832 51.25 179.88 51.25C179.928 51.25 179.977 51.25 180.026 51.25C180.074 51.25 180.123 51.25 180.172 51.25C180.221 51.25 180.27 51.25 180.319 51.25C180.368 51.25 180.417 51.25 180.467 51.25C180.516 51.25 180.565 51.25 180.615 51.25C180.664 51.25 180.714 51.25 180.764 51.25C180.813 51.25 180.863 51.25 180.913 51.25C180.963 51.25 181.013 51.25 181.063 51.25C181.113 51.25 181.163 51.25 181.214 51.25C181.264 51.25 181.314 51.25 181.365 51.25C181.415 51.25 181.466 51.25 181.517 51.25C181.567 51.25 181.618 51.25 181.669 51.25C181.72 51.25 181.771 51.25 181.822 51.25C181.873 51.25 181.924 51.25 181.976 51.25C182.027 51.25 182.078 51.25 182.13 51.25C182.181 51.25 182.233 51.25 182.284 51.25C182.336 51.25 182.388 51.25 182.44 51.25C182.492 51.25 182.544 51.25 182.596 51.25C182.648 51.25 182.7 51.25 182.752 51.25C182.804 51.25 182.856 51.25 182.909 51.25C182.961 51.25 183.014 51.25 183.066 51.25C183.119 51.25 183.171 51.25 183.224 51.25C183.277 51.25 183.33 51.25 183.383 51.25C183.436 51.25 183.489 51.25 183.542 51.25C183.595 51.25 183.648 51.25 183.701 51.25C183.755 51.25 183.808 51.25 183.861 51.25C183.915 51.25 183.968 51.25 184.022 51.25C184.076 51.25 184.129 51.25 184.183 51.25C184.237 51.25 184.291 51.25 184.345 51.25C184.399 51.25 184.453 51.25 184.507 51.25C184.561 51.25 184.615 51.25 184.669 51.25C184.724 51.25 184.778 51.25 184.832 51.25C184.887 51.25 184.941 51.25 184.996 51.25C185.05 51.25 185.105 51.25 185.16 51.25C185.215 51.25 185.27 51.25 185.324 51.25C185.379 51.25 185.434 51.25 185.489 51.25C185.545 51.25 185.6 51.25 185.655 51.25C185.71 51.25 185.765 51.25 185.821 51.25C185.876 51.25 185.932 51.25 185.987 51.25C186.043 51.25 186.098 51.25 186.154 51.25C186.21 51.25 186.265 51.25 186.321 51.25C186.377 51.25 186.433 51.25 186.489 51.25C186.545 51.25 186.601 51.25 186.657 51.25C186.713 51.25 186.769 51.25 186.826 51.25C186.882 51.25 186.938 51.25 186.995 51.25C187.051 51.25 187.108 51.25 187.164 51.25C187.221 51.25 187.277 51.25 187.334 51.25C187.391 51.25 187.447 51.25 187.504 51.25C187.561 51.25 187.618 51.25 187.675 51.25C187.732 51.25 187.789 51.25 187.846 51.25C187.903 51.25 187.96 51.25 188.018 51.25C188.075 51.25 188.132 51.25 188.189 51.25C188.247 51.25 188.304 51.25 188.362 51.25C188.419 51.25 188.477 51.25 188.534 51.25C188.592 51.25 188.65 51.25 188.707 51.25C188.765 51.25 188.823 51.25 188.881 51.25C188.939 51.25 188.997 51.25 189.055 51.25C189.113 51.25 189.171 51.25 189.229 51.25C189.287 51.25 189.345 51.25 189.403 51.25C189.462 51.25 189.52 51.25 189.578 51.25C189.637 51.25 189.695 51.25 189.753 51.25C189.812 51.25 189.87 51.25 189.929 51.25C189.988 51.25 190.046 51.25 190.105 51.25C190.164 51.25 190.222 51.25 190.281 51.25C190.34 51.25 190.399 51.25 190.458 51.25C190.517 51.25 190.576 51.25 190.635 51.25C190.694 51.25 190.753 51.25 190.812 51.25C190.871 51.25 190.93 51.25 190.989 51.25C191.049 51.25 191.108 51.25 191.167 51.25C191.227 51.25 191.286 51.25 191.346 51.25C191.405 51.25 191.465 51.25 191.524 51.25C191.584 51.25 191.643 51.25 191.703 51.25C191.763 51.25 191.822 51.25 191.882 51.25C191.942 51.25 192.002 51.25 192.061 51.25C192.121 51.25 192.181 51.25 192.241 51.25C192.301 51.25 192.361 51.25 192.421 51.25C192.481 51.25 192.541 51.25 192.601 51.25C192.661 51.25 192.722 51.25 192.782 51.25C192.842 51.25 192.902 51.25 192.963 51.25C193.023 51.25 193.083 51.25 193.144 51.25C193.204 51.25 193.265 51.25 193.325 51.25C193.385 51.25 193.446 51.25 193.507 51.25C193.567 51.25 193.628 51.25 193.688 51.25C193.749 51.25 193.81 51.25 193.87 51.25C193.931 51.25 193.992 51.25 194.053 51.25C194.114 51.25 194.174 51.25 194.235 51.25C194.296 51.25 194.357 51.25 194.418 51.25C194.479 51.25 194.54 51.25 194.601 51.25C194.662 51.25 194.723 51.25 194.784 51.25C194.845 51.25 194.907 51.25 194.968 51.25C195.029 51.25 195.09 51.25 195.151 51.25C195.213 51.25 195.274 51.25 195.335 51.25C195.397 51.25 195.458 51.25 195.519 51.25C195.581 51.25 195.642 51.25 195.704 51.25C195.765 51.25 195.826 51.25 195.888 51.25C195.949 51.25 196.011 51.25 196.073 51.25C196.134 51.25 196.196 51.25 196.257 51.25C196.319 51.25 196.381 51.25 196.442 51.25C196.504 51.25 196.566 51.25 196.628 51.25C196.689 51.25 196.751 51.25 196.813 51.25C196.875 51.25 196.937 51.25 196.998 51.25C197.06 51.25 197.122 51.25 197.184 51.25C197.246 51.25 197.308 51.25 197.37 51.25C197.432 51.25 197.494 51.25 197.556 51.25C197.618 51.25 197.68 51.25 197.742 51.25C197.804 51.25 197.866 51.25 197.928 51.25C197.991 51.25 198.053 51.25 198.115 51.25C198.177 51.25 198.239 51.25 198.301 51.25C198.364 51.25 198.426 51.25 198.488 51.25C198.55 51.25 198.613 51.25 198.675 51.25C198.737 51.25 198.799 51.25 198.862 51.25C198.924 51.25 198.986 51.25 199.049 51.25C199.111 51.25 199.174 51.25 199.236 51.25C199.298 51.25 199.361 51.25 199.423 51.25C199.486 51.25 199.548 51.25 199.61 51.25C199.673 51.25 199.735 51.25 199.798 51.25C199.86 51.25 199.923 51.25 199.985 51.25C200.
3175048 51.25 200.111 51.25 200.173 51.25C200.236 51.25 200.298 51.25 200.361 51.25C200.423 51.25 200.486 51.25 200.549 51.25C200.611 51.25 200.674 51.25 200.736 51.25C200.799 51.25 200.862 51.25 200.924 51.25C200.987 51.25 201.05 51.25 201.112 51.25C201.175 51.25 201.238 51.25 201.3 51.25C201.363 51.25 201.426 51.25 201.488 51.25C201.551 51.25 201.614 51.25 201.677 51.25C201.739 51.25 201.802 51.25 201.865 51.25C201.927 51.25 201.99 51.25 202.053 51.25C202.116 51.25 202.178 51.25 202.241 51.25C202.304 51.25 202.367 51.25 202.429 51.25C202.492 51.25 202.555 51.25 202.618 51.25C202.68 51.25 202.743 51.25 202.806 51.25C202.869 51.25 202.932 51.25 202.994 51.25C203.057 51.25 203.12 51.25 203.183 51.25C203.246 51.25 203.308 51.25 203.371 51.25C203.434 51.25 203.497 51.25 203.559 51.25C203.622 51.25 203.685 51.25 203.748 51.25C203.811 51.25 203.873 51.25 203.936 51.25C203.999 51.25 204.062 51.25 204.124 51.25C204.187 51.25 204.25 51.25 204.313 51.25C204.376 51.25 204.438 51.25 204.501 51.25C204.564 51.25 204.627 51.25 204.689 51.25C204.752 51.25 204.815 51.25 204.878 51.25C204.94 51.25 205.003 51.25 205.066 51.25C205.128 51.25 205.191 51.25 205.254 51.25C205.317 51.25 205.379 51.25 205.442 51.25C205.505 51.25 205.567 51.25 205.63 51.25C205.693 51.25 205.755 51.25 205.818 51.25C205.881 51.25 205.943 51.25 206.006 51.25C206.069 51.25 206.131 51.25 206.194 51.25C206.257 51.25 206.319 51.25 206.382 51.25C206.444 51.25 206.507 51.25 206.569 51.25C206.632 51.25 206.695 51.25 206.757 51.25C206.82 51.25 206.882 51.25 206.945 51.25C207.007 51.25 207.07 51.25 207.132 51.25C207.195 51.25 207.257 51.25 207.32 51.25C207.382 51.25 207.444 51.25 207.507 51.25C207.569 51.25 207.632 51.25 207.694 51.25C207.756 51.25 207.819 51.25 207.881 51.25C207.943 51.25 208.006 51.25 208.068 51.25C208.13 51.25 208.193 51.25 208.255 51.25C208.317 51.25 208.379 51.25 208.442 51.25C208.504 51.25 208.566 51.25 208.628 51.25C208.691 51.25 208.753 51.25 208.815 51.25C208.877 51.25 208.939 51.25 209.001 51.25C209.063 51.25 209.125 51.25 209.187 51.25C209.249 51.25 209.311 51.25 209.373 51.25C209.435 51.25 209.497 51.25 209.559 51.25C209.621 51.25 209.683 51.25 209.745 51.25C209.807 51.25 209.869 51.25 209.931 51.25C209.993 51.25 210.054 51.25 210.116 51.25C210.178 51.25 210.24 51.25 210.301 51.25C210.363 51.25 210.425 51.25 210.487 51.25C210.548 51.25 210.61 51.25 210.671 51.25C210.733 51.25 210.795 51.25 210.856 51.25C210.918 51.25 210.979 51.25 211.041 51.25C211.102 51.25 211.164 51.25 211.225 51.25C211.287 51.25 211.348 51.25 211.409 51.25C211.471 51.25 211.532 51.25 211.593 51.25C211.655 51.25 211.716 51.25 211.777 51.25C211.838 51.25 211.899 51.25 211.961 51.25C212.022 51.25 212.083 51.25 212.144 51.25C212.205 51.25 212.266 51.25 212.327 51.25C212.388 51.25 212.449 51.25 212.51 51.25C212.571 51.25 212.632 51.25 212.693 51.25C212.753 51.25 212.814 51.25 212.875 51.25C212.936 51.25 212.997 51.25 213.057 51.25C213.118 51.25 213.179 51.25 213.239 51.25C213.3 51.25 213.36 51.25 213.421 51.25C213.481 51.25 213.542 51.25 213.602 51.25C213.663 51.25 213.723 51.25 213.784 51.25C213.844 51.25 213.904 51.25 213.964 51.25C214.025 51.25 214.085 51.25 214.145 51.25C214.205 51.25 214.265 51.25 214.325 51.25C214.386 51.25 214.446 51.25 214.506 51.25C214.566 51.25 214.626 51.25 214.685 51.25C214.745 51.25 214.805 51.25 214.865 51.25C214.925 51.25 214.985 51.25 215.044 51.25C215.104 51.25 215.164 51.25 215.223 51.25C215.283 51.25 215.342 51.25 215.402 51.25C215.461 51.25 215.521 51.25 215.58 51.25C215.64 51.25 215.699 51.25 215.758 51.25C215.818 51.25 215.877 51.25 215.936 51.25C215.995 51.25 216.054 51.25 216.114 51.25C216.173 51.25 216.232 51.25 216.291 51.25C216.35 51.25 216.409 51.25 216.467 51.25C216.526 51.25 216.585 51.25 216.644 51.25C216.703 51.25 216.761 51.25 216.82 51.25C216.879 51.25 216.937 51.25 216.996 51.25C217.054 51.25 217.113 51.25 217.171 51.25C217.23 51.25 217.288 51.25 217.346 51.25C217.404 51.25 217.463 51.25 217.521 51.25C217.579 51.25 217.637 51.25 217.695 51.25C217.753 51.25 217.811 51.25 217.869 51.25C217.927 51.25 217.985 51.25 218.043 51.25C218.101 51.25 218.158 51.25 218.216 51.25C218.274 51.25 218.331 51.25 218.389 51.25C218.447 51.25 218.504 51.25 218.561 51.25C218.619 51.25 218.676 51.25 218.734 51.25C218.791 51.25 218.848 51.25 218.905 51.25C218.962 51.25 219.02 51.25 219.077 51.25C219.134 51.25 219.191 51.25 219.247 51.25C219.304 51.25 219.361 51.25 219.418 51.25C219.475 51.25 219.531 51.25 219.588 51.25C219.645 51.25 219.701 51.25 219.758 51.25C219.814 51.25 219.871 51.25 219.927 51.25C219.983 51.25 220.04 51.25 220.096 51.25C220.152 51.25 220.208 51.25 220.264 51.25C220.32 51.25 220.376 51.25 220.432 51.25C220.488 51.25 220.544 51.25 220.6 51.25C220.655 51.25 220.711 51.25 220.767 51.25C220.822 51.25 220.878 51.25 220.933 51.25C220.989 51.25 221.044 51.25 221.099 51.25C221.155 51.25 221.21 51.25 221.265 51.25C221.32 51.25 221.375 51.25 221.43 51.25C221.485 51.25 221.54 51.25 221.595 51.25C221.65 51.25 221.705 51.25 221.759 51.25C221.814 51.25 221.869 51.25 221.923 51.25C221.978 51.25 222.032 51.25 222.087 51.25C222.141 51.25 222.195 51.25 222.249 51.25C222.304 51.25 222.358 51.25 222.412 51.25C222.466 51.25 222.52 51.25 222.574 51.25C222.628 51.25 222.681 51.25 222.735 51.25C222.789 51.25 222.842 51.25 222.896 51.25C222.949 51.25 223.003 51.25 223.056 51.25C223.11 51.25 223.163 51.25 223.216 51.25C223.269 51.25 223.322 51.25 223.375 51.25C223.428 51.25 223.481 51.25 223.534 51.25C223.587 51.25 223.64 51.25 223.692 51.25C223.745 51.25 223.798 51.25 223.85 51.25C223.903 51.25 223.955 51.25 224.007 51.25C224.06 51.25 224.112 51.25 224.164 51.25C224.216 51.25 224.268 51.25 224.32 51.25C224.372 51.25 224.424 51.25 224.476 51.25C224.527 51.25 224.579 51.25 224.631 51.25C224.682 51.25 224.734 51.25 224.785 51.25C224.836 51.25 224.888 51.25 224.939 51.25C224.99 51.25 225.041 51.25 225.092 51.25C225.143 51.25 225.194 51.25 225.245 51.25C225.296 51.25 225.346 51.25 225.397 51.25C225.448 51.25 225.498 51.25 225.549 51.25C225.599 51.25 225.649 51.25 225.699 51.25C225.75 51.25 225.8 51.25 225.85 51.25C225.9 51.25 225.95 51.25 226 51.25C226.049 51.25 226.099 51.25 226.149 51.25C226.198 51.25 226.248 51.25 226.297 51.25C226.347 51.25 226.396 51.25 226.445 51.25C226.494 51.25 226.544 51.25 226.593 51.25C226.642 51.25 226.69 51.25 226.739 51.25C226.788 51.25 226.837 51.25 226.885 51.25C226.934 51.25 226.982 51.25 227.031 51.25C227.079 51.25 227.127 51.25 227.175 51.25C227.224 51.25 227.272 51.25 227.32 51.25C227.368 51.25 227.415 51.25 227.463 51.25C227.511 51.25 227.558 51.25 227.606 51.25C227.653 51.25 227.701 51.25 227.748 51.25C227.795 51.25 227.843 51.25 227.89 51.25C227.937 51.25 227.984 51.25 228.031 51.25C228.077 51.25 228.124 51.25 228.171 51.25C228.217 51.25 228.264 51.25 228.31 51.25C228.357 51.25 228.403 51.25 228.449 51.25C228.495 51.25 228.541 51.25 228.587 51.25C228.633 51.25 228.679 51.25 228.725 51.25C228.77 51.25 228.816 51.25 228.862 51.25C228.907 51.25 228.952 51.25 228.998 51.25C229.043 51.25 229.088 51.25 229.133 51.25C229.178 51.25 229.223 51.25 229.268 51.25C229.312 51.25 229.357 51.25 229.402 51.25C229.446 51.25 229.491 51.25 229.535 51.25C229.579 51.25 229.623 51.25 229.667 51.25C229.711 51.25 229.755 51.25 229.799 51.25C229.843 51.25 229.887 51.25 229.93 51.25C229.974 51.25 230.017 51.25 230.06 51.25C230.104 51.25 230.147 51.25 230.19 51.25C230.233 51.25 230.276 51.25 230.319 51.25C230.362 51.25 230.404 51.25 230.447 51.25C230.49 51.25 230.532 51.25 230.574 51.25C230.617 51.25 230.659 51.25 230.701 51.25C230.743 51.25 230.785 51.25 230.827 51.25C230.869 51.25 230.91 51.25 230.952 51.25C230.993 51.25 231.035 51.25 231.076 51.25C231.117 51.25 231.158 51.25 231.199 51.25C231.241 51.25 231.281 51.25 231.322 51.25C231.363 51.25 231.404 51.25 231.444 51.25C231.485 51.25 231.525 51.25 231.565 51.25C231.605 51.25 231.646 51.25 231.686 51.25C231.726 51.25 231.765 51.25 231.805 51.25C231.845 51.25 231.884 51.25 231.924 51.25C231.963 51.25 232.003 51.25 232.042 51.25C232.081 51.25 232.12 51.25 232.159 51.25C232.198 51.25 232.236 51.25 232.275 51.25C232.314 51.25 232.352 51.25 232.391 51.25C232.429 51.25 232.467 51.25 232.505 51.25C232.543 51.25 232.581 51.25 232.619 51.25C232.657 51.25 232.694 51.25 232.732 51.25C232.769 51.25 232.807 51.25 232.844 51.25C232.881 51.25 232.918 51.25 232.955 51.25C232.992 51.25 233.029 51.25 233.066 51.25C233.102 51.25 233.139 51.25 233.175 51.25C233.212 51.25 233.248 51.25 233.284 51.25C233.32 51.25 233.356 51.25 233.392 51.25C233.427 51.25 233.463 51.25 233.499 51.25C233.534 51.25 233.569 51.25 233.605 51.25C233.64 51.25 233.675 51.25 233.71 51.25C233.745 51.25 233.78 51.25 233.814 51.25C233.849 51.25 233.883 51.25 233.918 51.25C233.952 51.25 233.986 51.25 234.02 51.25C234.054 51.25 234.088 51.25 234.122 51.25C234.155 51.25 234.189 51.25 234.222 51.25C234.256 51.25 234.289 51.25 234.322 51.25C234.355 51.25 234.388 51.25 234.421 51.25C234.454 51.25 234.486 51.25 234.519 51.25C234.551 51.25 234.584 51.25 234.616 51.25C234.648 51.25 234.68 51.25 234.712 51.25C234.744 51.25 234.776 51.25 234.807 51.25C234.839 51.25 234.87 51.25 234.902 51.25C234.933 51.25 234.964 51.25 234.995 51.25C235.026 51.25 235.057 51.25 235.087 51.25C235.118 51.25 235.148 51.25 235.179 51.25C235.209 51.25 235.239 51.25 235.269 51.25C235.299 51.25 235.329 51.25 235.358 51.25C235.388 51.25 235.418 51.25 235.447 51.25C235.476 51.25 235.506 51.25 235.535 51.25C235.564 51.25 235.592 51.25 235.621 51.25C235.65 51.25 235.678 51.25 235.707 51.25C235.735 51.25 235.763 51.25 235.791 51.25C235.819 51.25 235.847 51.25 235.875 51.25C235.903 51.25 235.93 51.25 235.958 51.25C235.985 51.25 236.012 51.25 236.039 51.25C236.066 51.25 236.093 51.25 236.12 51.25C236.146 51.25 236.173 51.25 236.199 51.25C236.226 51.25 236.252 51.25 236.278 51.25C236.304 51.25 236.33 51.25 236.356 51.25C236.381 51.25 236.407 51.25 236.432 51.25C236.457 51.25 236.483 51.25 236.508 51.25C236.533 51.25 236.557 51.25 236.582 51.25C236.607 51.25 236.631 51.25 236.656 51.25C236.68 51.25 236.704 51.25 236.728 51.25C236.752 51.25 236.7
317576 51.25 236.799 51.25C236.823 51.25 236.846 51.25 236.87 51.25C236.893 51.25 236.916 51.25 236.939 51.25C236.962 51.25 236.985 51.25 237.007 51.25C237.03 51.25 237.052 51.25 237.074 51.25C237.097 51.25 237.119 51.25 237.14 51.25C237.162 51.25 237.184 51.25 237.205 51.25C237.227 51.25 237.248 51.25 237.269 51.25C237.29 51.25 237.311 51.25 237.332 51.25C237.353 51.25 237.373 51.25 237.394 51.25C237.414 51.25 237.435 51.25 237.455 51.25C237.475 51.25 237.494 51.25 237.514 51.25C237.534 51.25 237.553 51.25 237.573 51.25C237.592 51.25 237.611 51.25 237.63 51.25C237.649 51.25 237.668 51.25 237.686 51.25C237.705 51.25 237.723 51.25 237.741 51.25C237.759 51.25 237.777 51.25 237.795 51.25C237.813 51.25 237.831 51.25 237.848 51.25C237.866 51.25 237.883 51.25 237.9 51.25C237.917 51.25 237.934 51.25 237.951 51.25C237.967 51.25 237.984 51.25 238 51.25V52.75C237.984 52.75 237.967 52.75 237.951 52.75C237.934 52.75 237.917 52.75 237.9 52.75C237.883 52.75 237.866 52.75 237.848 52.75C237.831 52.75 237.813 52.75 237.795 52.75C237.777 52.75 237.759 52.75 237.741 52.75C237.723 52.75 237.705 52.75 237.686 52.75C237.668 52.75 237.649 52.75 237.63 52.75C237.611 52.75 237.592 52.75 237.573 52.75C237.553 52.75 237.534 52.75 237.514 52.75C237.494 52.75 237.475 52.75 237.455 52.75C237.435 52.75 237.414 52.75 237.394 52.75C237.373 52.75 237.353 52.75 237.332 52.75C237.311 52.75 237.29 52.75 237.269 52.75C237.248 52.75 237.227 52.75 237.205 52.75C237.184 52.75 237.162 52.75 237.14 52.75C237.119 52.75 237.097 52.75 237.074 52.75C237.052 52.75 237.03 52.75 237.007 52.75C236.985 52.75 236.962 52.75 236.939 52.75C236.916 52.75 236.893 52.75 236.87 52.75C236.846 52.75 236.823 52.75 236.799 52.75C236.776 52.75 236.752 52.75 236.728 52.75C236.704 52.75 236.68 52.75 236.656 52.75C236.631 52.75 236.607 52.75 236.582 52.75C236.557 52.75 236.533 52.75 236.508 52.75C236.483 52.75 236.457 52.75 236.432 52.75C236.407 52.75 236.381 52.75 236.356 52.75C236.33 52.75 236.304 52.75 236.278 52.75C236.252 52.75 236.226 52.75 236.199 52.75C236.173 52.75 236.146 52.75 236.12 52.75C236.093 52.75 236.066 52.75 236.039 52.75C236.012 52.75 235.985 52.75 235.958 52.75C235.93 52.75 235.903 52.75 235.875 52.75C235.847 52.75 235.819 52.75 235.791 52.75C235.763 52.75 235.735 52.75 235.707 52.75C235.678 52.75 235.65 52.75 235.621 52.75C235.592 52.75 235.564 52.75 235.535 52.75C235.506 52.75 235.476 52.75 235.447 52.75C235.418 52.75 235.388 52.75 235.358 52.75C235.329 52.75 235.299 52.75 235.269 52.75C235.239 52.75 235.209 52.75 235.179 52.75C235.148 52.75 235.118 52.75 235.087 52.75C235.057 52.75 235.026 52.75 234.995 52.75C234.964 52.75 234.933 52.75 234.902 52.75C234.87 52.75 234.839 52.75 234.807 52.75C234.776 52.75 234.744 52.75 234.712 52.75C234.68 52.75 234.648 52.75 234.616 52.75C234.584 52.75 234.551 52.75 234.519 52.75C234.486 52.75 234.454 52.75 234.421 52.75C234.388 52.75 234.355 52.75 234.322 52.75C234.289 52.75 234.256 52.75 234.222 52.75C234.189 52.75 234.155 52.75 234.122 52.75C234.088 52.75 234.054 52.75 234.02 52.75C233.986 52.75 233.952 52.75 233.918 52.75C233.883 52.75 233.849 52.75 233.814 52.75C233.78 52.75 233.745 52.75 233.71 52.75C233.675 52.75 233.64 52.75 233.605 52.75C233.569 52.75 233.534 52.75 233.499 52.75C233.463 52.75 233.427 52.75 233.392 52.75C233.356 52.75 233.32 52.75 233.284 52.75C233.248 52.75 233.212 52.75 233.175 52.75C233.139 52.75 233.102 52.75 233.066 52.75C233.029 52.75 232.992 52.75 232.955 52.75C232.918 52.75 232.881 52.75 232.844 52.75C232.807 52.75 232.769 52.75 232.732 52.75C232.694 52.75 232.657 52.75 232.619 52.75C232.581 52.75 232.543 52.75 232.505 52.75C232.467 52.75 232.429 52.75 232.391 52.75C232.352 52.75 232.314 52.75 232.275 52.75C232.236 52.75 232.198 52.75 232.159 52.75C232.12 52.75 232.081 52.75 232.042 52.75C232.003 52.75 231.963 52.75 231.924 52.75C231.884 52.75 231.845 52.75 231.805 52.75C231.765 52.75 231.726 52.75 231.686 52.75C231.646 52.75 231.605 52.75 231.565 52.75C231.525 52.75 231.485 52.75 231.444 52.75C231.404 52.75 231.363 52.75 231.322 52.75C231.281 52.75 231.241 52.75 231.199 52.75C231.158 52.75 231.117 52.75 231.076 52.75C231.035 52.75 230.993 52.75 230.952 52.75C230.91 52.75 230.869 52.75 230.827 52.75C230.785 52.75 230.743 52.75 230.701 52.75C230.659 52.75 230.617 52.75 230.574 52.75C230.532 52.75 230.49 52.75 230.447 52.75C230.404 52.75 230.362 52.75 230.319 52.75C230.276 52.75 230.233 52.75 230.19 52.75C230.147 52.75 230.104 52.75 230.06 52.75C230.017 52.75 229.974 52.75 229.93 52.75C229.887 52.75 229.843 52.75 229.799 52.75C229.755 52.75 229.711 52.75 229.667 52.75C229.623 52.75 229.579 52.75 229.535 52.75C229.491 52.75 229.446 52.75 229.402 52.75C229.357 52.75 229.312 52.75 229.268 52.75C229.223 52.75 229.178 52.75 229.133 52.75C229.088 52.75 229.043 52.75 228.998 52.75C228.952 52.75 228.907 52.75 228.862 52.75C228.816 52.75 228.77 52.75 228.725 52.75C228.679 52.75 228.633 52.75 228.587 52.75C228.541 52.75 228.495 52.75 228.449 52.75C228.403 52.75 228.357 52.75 228.31 52.75C228.264 52.75 228.217 52.75 228.171 52.75C228.124 52.75 228.077 52.75 228.031 52.75C227.984 52.75 227.937 52.75 227.89 52.75C227.843 52.75 227.795 52.75 227.748 52.75C227.701 52.75 227.653 52.75 227.606 52.75C227.558 52.75 227.511 52.75 227.463 52.75C227.415 52.75 227.368 52.75 227.32 52.75C227.272 52.75 227.224 52.75 227.175 52.75C227.127 52.75 227.079 52.75 227.031 52.75C226.982 52.75 226.934 52.75 226.885 52.75C226.837 52.75 226.788 52.75 226.739 52.75C226.69 52.75 226.642 52.75 226.593 52.75C226.544 52.75 226.494 52.75 226.445 52.75C226.396 52.75 226.347 52.75 226.297 52.75C226.248 52.75 226.198 52.75 226.149 52.75C226.099 52.75 226.049 52.75 226 52.75C225.95 52.75 225.9 52.75 225.85 52.75C225.8 52.75 225.75 52.75 225.699 52.75C225.649 52.75 225.599 52.75 225.549 52.75C225.498 52.75 225.448 52.75 225.397 52.75C225.346 52.75 225.296 52.75 225.245 52.75C225.194 52.75 225.143 52.75 225.092 52.75C225.041 52.75 224.99 52.75 224.939 52.75C224.888 52.75 224.836 52.75 224.785 52.75C224.734 52.75 224.682 52.75 224.631 52.75C224.579 52.75 224.527 52.75 224.476 52.75C224.424 52.75 224.372 52.75 224.32 52.75C224.268 52.75 224.216 52.75 224.164 52.75C224.112 52.75 224.06 52.75 224.007 52.75C223.955 52.75 223.903 52.75 223.85 52.75C223.798 52.75 223.745 52.75 223.692 52.75C223.64 52.75 223.587 52.75 223.534 52.75C223.481 52.75 223.428 52.75 223.375 52.75C223.322 52.75 223.269 52.75 223.216 52.75C223.163 52.75 223.11 52.75 223.056 52.75C223.003 52.75 222.949 52.75 222.896 52.75C222.842 52.75 222.789 52.75 222.735 52.75C222.681 52.75 222.628 52.75 222.574 52.75C222.52 52.75 222.466 52.75 222.412 52.75C222.358 52.75 222.3
317504 52.75 222.249 52.75C222.195 52.75 222.141 52.75 222.087 52.75C222.032 52.75 221.978 52.75 221.923 52.75C221.869 52.75 221.814 52.75 221.759 52.75C221.705 52.75 221.65 52.75 221.595 52.75C221.54 52.75 221.485 52.75 221.43 52.75C221.375 52.75 221.32 52.75 221.265 52.75C221.21 52.75 221.155 52.75 221.099 52.75C221.044 52.75 220.989 52.75 220.933 52.75C220.878 52.75 220.822 52.75 220.767 52.75C220.711 52.75 220.655 52.75 220.6 52.75C220.544 52.75 220.488 52.75 220.432 52.75C220.376 52.75 220.32 52.75 220.264 52.75C220.208 52.75 220.152 52.75 220.096 52.75C220.04 52.75 219.983 52.75 219.927 52.75C219.871 52.75 219.814 52.75 219.758 52.75C219.701 52.75 219.645 52.75 219.588 52.75C219.531 52.75 219.475 52.75 219.418 52.75C219.361 52.75 219.304 52.75 219.247 52.75C219.191 52.75 219.134 52.75 219.077 52.75C219.02 52.75 218.962 52.75 218.905 52.75C218.848 52.75 218.791 52.75 218.734 52.75C218.676 52.75 218.619 52.75 218.561 52.75C218.504 52.75 218.447 52.75 218.389 52.75C218.331 52.75 218.274 52.75 218.216 52.75C218.158 52.75 218.101 52.75 218.043 52.75C217.985 52.75 217.927 52.75 217.869 52.75C217.811 52.75 217.753 52.75 217.695 52.75C217.637 52.75 217.579 52.75 217.521 52.75C217.463 52.75 217.404 52.75 217.346 52.75C217.288 52.75 217.23 52.75 217.171 52.75C217.113 52.75 217.054 52.75 216.996 52.75C216.937 52.75 216.879 52.75 216.82 52.75C216.761 52.75 216.703 52.75 216.644 52.75C216.585 52.75 216.526 52.75 216.467 52.75C216.409 52.75 216.35 52.75 216.291 52.75C216.232 52.75 216.173 52.75 216.114 52.75C216.054 52.75 215.995 52.75 215.936 52.75C215.877 52.75 215.818 52.75 215.758 52.75C215.699 52.75 215.64 52.75 215.58 52.75C215.521 52.75 215.461 52.75 215.402 52.75C215.342 52.75 215.283 52.75 215.223 52.75C215.164 52.75 215.104 52.75 215.044 52.75C214.985 52.75 214.925 52.75 214.865 52.75C214.805 52.75 214.745 52.75 214.685 52.75C214.626 52.75 214.566 52.75 214.506 52.75C214.446 52.75 214.386 52.75 214.325 52.75C214.265 52.75 214.205 52.75 214.145 52.75C214.085 52.75 214.025 52.75 213.964 52.75C213.904 52.75 213.844 52.75 213.784 52.75C213.723 52.75 213.663 52.75 213.602 52.75C213.542 52.75 213.481 52.75 213.421 52.75C213.36 52.75 213.3 52.75 213.239 52.75C213.179 52.75 213.118 52.75 213.057 52.75C212.997 52.75 212.936 52.75 212.875 52.75C212.814 52.75 212.753 52.75 212.693 52.75C212.632 52.75 212.571 52.75 212.51 52.75C212.449 52.75 212.388 52.75 212.327 52.75C212.266 52.75 212.205 52.75 212.144 52.75C212.083 52.75 212.022 52.75 211.961 52.75C211.899 52.75 211.838 52.75 211.777 52.75C211.716 52.75 211.655 52.75 211.593 52.75C211.532 52.75 211.471 52.75 211.409 52.75C211.348 52.75 211.287 52.75 211.225 52.75C211.164 52.75 211.102 52.75 211.041 52.75C210.979 52.75 210.918 52.75 210.856 52.75C210.795 52.75 210.733 52.75 210.671 52.75C210.61 52.75 210.548 52.75 210.487 52.75C210.425 52.75 210.363 52.75 210.301 52.75C210.24 52.75 210.178 52.75 210.116 52.75C210.054 52.75 209.993 52.75 209.931 52.75C209.869 52.75 209.807 52.75 209.745 52.75C209.683 52.75 209.621 52.75 209.559 52.75C209.497 52.75 209.435 52.75 209.373 52.75C209.311 52.75 209.249 52.75 209.187 52.75C209.125 52.75 209.063 52.75 209.001 52.75C208.939 52.75 208.877 52.75 208.815 52.75C208.753 52.75 208.691 52.75 208.628 52.75C208.566 52.75 208.504 52.75 208.442 52.75C208.379 52.75 208.317 52.75 208.255 52.75C208.193 52.75 208.13 52.75 208.068 52.75C208.006 52.75 207.943 52.75 207.881 52.75C207.819 52.75 207.756 52.75 207.694 52.75C207.632 52.75 207.569 52.75 207.507 52.75C207.444 52.75 207.382 52.75 207.32 52.75C207.257 52.75 207.195 52.75 207.132 52.75C207.07 52.75 207.007 52.75 206.945 52.75C206.882 52.75 206.82 52.75 206.757 52.75C206.695 52.75 206.632 52.75 206.569 52.75C206.507 52.75 206.444 52.75 206.382 52.75C206.319 52.75 206.257 52.75 206.194 52.75C206.131 52.75 206.069 52.75 206.006 52.75C205.943 52.75 205.881 52.75 205.818 52.75C205.755 52.75 205.693 52.75 205.63 52.75C205.567 52.75 205.505 52.75 205.442 52.75C205.379 52.75 205.317 52.75 205.254 52.75C205.191 52.75 205.128 52.75 205.066 52.75C205.003 52.75 204.94 52.75 204.878 52.75C204.815 52.75 204.752 52.75 204.689 52.75C204.627 52.75 204.564 52.75 204.501 52.75C204.438 52.75 204.376 52.75 204.313 52.75C204.25 52.75 204.187 52.75 204.124 52.75C204.062 52.75 203.999 52.75 203.936 52.75C203.873 52.75 203.811 52.75 203.748 52.75C203.685 52.75 203.622 52.75 203.559 52.75C203.497 52.75 203.434 52.75 203.371 52.75C203.308 52.75 203.246 52.75 203.183 52.75C203.12 52.75 203.057 52.75 202.994 52.75C202.932 52.75 202.869 52.75 202.806 52.75C202.743 52.75 202.68 52.75 202.618 52.75C202.555 52.75 202.492 52.75 202.429 52.75C202.367 52.75 202.304 52.75 202.241 52.75C202.178 52.75 202.116 52.75 202.053 52.75C201.99 52.75 201.927 52.75 201.865 52.75C201.802 52.75 201.739 52.75 201.677 52.75C201.614 52.75 201.551 52.75 201.488 52.75C201.426 52.75 201.363 52.75 201.3 52.75C201.238 52.75 201.175 52.75 201.112 52.75C201.05 52.75 200.987 52.75 200.924 52.75C200.862 52.75 200.799 52.75 200.736 52.75C200.674 52.75 200.611 52.75 200.549 52.75C200.486 52.75 200.423 52.75 200.361 52.75C200.298 52.75 200.236 52.75 200.173 52.75C200.111 52.75 200.048 52.75 199.985 52.75C199.923 52.75 199.86 52.75 199.798 52.75C199.735 52.75 199.673 52.75 199.61 52.75C199.548 52.75 199.486 52.75 199.423 52.75C199.361 52.75 199.298 52.75 199.23
31756 52.75C199.174 52.75 199.111 52.75 199.049 52.75C198.986 52.75 198.924 52.75 198.862 52.75C198.799 52.75 198.737 52.75 198.675 52.75C198.613 52.75 198.55 52.75 198.488 52.75C198.426 52.75 198.364 52.75 198.301 52.75C198.239 52.75 198.177 52.75 198.115 52.75C198.053 52.75 197.991 52.75 197.928 52.75C197.866 52.75 197.804 52.75 197.742 52.75C197.68 52.75 197.618 52.75 197.556 52.75C197.494 52.75 197.432 52.75 197.37 52.75C197.308 52.75 197.246 52.75 197.184 52.75C197.122 52.75 197.06 52.75 196.998 52.75C196.937 52.75 196.875 52.75 196.813 52.75C196.751 52.75 196.689 52.75 196.628 52.75C196.566 52.75 196.504 52.75 196.442 52.75C196.381 52.75 196.319 52.75 196.257 52.75C196.196 52.75 196.134 52.75 196.073 52.75C196.011 52.75 195.949 52.75 195.888 52.75C195.826 52.75 195.765 52.75 195.704 52.75C195.642 52.75 195.581 52.75 195.519 52.75C195.458 52.75 195.397 52.75 195.335 52.75C195.274 52.75 195.213 52.75 195.151 52.75C195.09 52.75 195.029 52.75 194.968 52.75C194.907 52.75 194.845 52.75 194.784 52.75C194.723 52.75 194.662 52.75 194.601 52.75C194.54 52.75 194.479 52.75 194.418 52.75C194.357 52.75 194.296 52.75 194.235 52.75C194.174 52.75 194.114 52.75 194.053 52.75C193.992 52.75 193.931 52.75 193.87 52.75C193.81 52.75 193.749 52.75 193.688 52.75C193.628 52.75 193.567 52.75 193.507 52.75C193.446 52.75 193.385 52.75 193.325 52.75C193.265 52.75 193.204 52.75 193.144 52.75C193.083 52.75 193.023 52.75 192.963 52.75C192.902 52.75 192.842 52.75 192.782 52.75C192.722 52.75 192.661 52.75 192.601 52.75C192.541 52.75 192.481 52.75 192.421 52.75C192.361 52.75 192.301 52.75 192.241 52.75C192.181 52.75 192.121 52.75 192.061 52.75C192.002 52.75 191.942 52.75 191.882 52.75C191.822 52.75 191.763 52.75 191.703 52.75C191.643 52.75 191.584 52.75 191.524 52.75C191.465 52.75 191.405 52.75 191.346 52.75C191.286 52.75 191.227 52.75 191.167 52.75C191.108 52.75 191.049 52.75 190.989 52.75C190.93 52.75 190.871 52.75 190.812 52.75C190.753 52.75 190.694 52.75 190.635 52.75C190.576 52.75 190.517 52.75 190.458 52.75C190.399 52.75 190.34 52.75 190.281 52.75C190.222 52.75 190.164 52.75 190.105 52.75C190.046 52.75 189.988 52.75 189.929 52.75C189.87 52.75 189.812 52.75 189.753 52.75C189.695 52.75 189.637 52.75 189.578 52.75C189.52 52.75 189.462 52.75 189.403 52.75C189.345 52.75 189.287 52.75 189.229 52.75C189.171 52.75 189.113 52.75 189.055 52.75C188.997 52.75 188.939 52.75 188.881 52.75C188.823 52.75 188.765 52.75 188.707 52.75C188.65 52.75 188.592 52.75 188.534 52.75C188.477 52.75 188.419 52.75 188.362 52.75C188.304 52.75 188.247 52.75 188.189 52.75C188.132 52.75 188.075 52.75 188.018 52.75C187.96 52.75 187.903 52.75 187.846 52.75C187.789 52.75 187.732 52.75 187.675 52.75C187.618 52.75 187.561 52.75 187.504 52.75C187.447 52.75 187.391 52.75 187.334 52.75C187.277 52.75 187.221 52.75 187.164 52.75C187.108 52.75 187.051 52.75 186.995 52.75C186.938 52.75 186.882 52.75 186.826 52.75C186.769 52.75 186.713 52.75 186.657 52.75C186.601 52.75 186.545 52.75 186.489 52.75C186.433 52.75 186.377 52.75 186.321 52.75C186.265 52.75 186.21 52.75 186.154 52.75C186.098 52.75 186.043 52.75 185.987 52.75C185.932 52.75 185.876 52.75 185.821 52.75C185.765 52.75 185.71 52.75 185.655 52.75C185.6 52.75 185.545 52.75 185.489 52.75C185.434 52.75 185.379 52.75 185.324 52.75C185.27 52.75 185.215 52.75 185.16 52.75C185.105 52.75 185.05 52.75 184.996 52.75C184.941 52.75 184.887 52.75 184.832 52.75C184.778 52.75 184.724 52.75 184.669 52.75C184.615 52.75 184.561 52.75 184.507 52.75C184.453 52.75 184.399 52.75 184.345 52.75C184.291 52.75 184.237 52.75 184.183 52.75C184.129 52.75 184.076 52.75 184.022 52.75C183.968 52.75 183.915 52.75 183.861 52.75C183.808 52.75 183.755 52.75 183.701 52.75C183.648 52.75 183.595 52.75 183.542 52.75C183.489 52.75 183.436 52.75 183.383 52.75C183.33 52.75 183.277 52.75 183.224 52.75C183.171 52.75 183.119 52.75 183.066 52.75C183.014 52.75 182.961 52.75 182.909 52.75C182.856 52.75 182.804 52.75 182.752 52.75C182.7 52.75 182.648 52.75 182.596 52.75C182.544 52.75 182.492 52.75 182.44 52.75C182.388 52.75 182.336 52.75 182.284 52.75C182.233 52.75 182.181 52.75 182.13 52.75C182.078 52.75 182.027 52.75 181.976 52.75C181.924 52.75 181.873 52.75 181.822 52.75C181.771 52.75 181.72 52.75 181.669 52.75C181.618 52.75 181.567 52.75 181.517 52.75C181.466 52.75 181.415 52.75 181.365 52.75C181.314 52.75 181.264 52.75 181.214 52.75C181.163 52.75 181.113 52.75 181.063 52.75C181.013 52.75 180.9
317563 52.75 180.913 52.75C180.863 52.75 180.813 52.75 180.764 52.75C180.714 52.75 180.664 52.75 180.615 52.75C180.565 52.75 180.516 52.75 180.467 52.75C180.417 52.75 180.368 52.75 180.319 52.75C180.27 52.75 180.221 52.75 180.172 52.75C180.123 52.75 180.074 52.75 180.026 52.75C179.977 52.75 179.928 52.75 179.88 52.75C179.832 52.75 179.783 52.75 179.735 52.75C179.687 52.75 179.639 52.75 179.59 52.75C179.542 52.75 179.495 52.75 179.447 52.75C179.399 52.75 179.351 52.75 179.304 52.75C179.256 52.75 179.208 52.75 179.161 52.75C179.114 52.75 179.066 52.75 179.019 52.75C178.972 52.75 178.925 52.75 178.878 52.75C178.831 52.75 178.784 52.75 178.738 52.75C178.691 52.75 178.644 52.75 178.598 52.75C178.551 52.75 178.505 52.75 178.459 52.75C178.412 52.75 178.366 52.75 178.32 52.75C178.274 52.75 178.228 52.75 178.182 52.75C178.136 52.75 178.091 52.75 178.045 52.75C178 52.75 177.954 52.75 177.909 52.75C177.863 52.75 177.818 52.75 177.773 52.75C177.728 52.75 177.683 52.75 177.638 52.75C177.593 52.75 177.548 52.75 177.504 52.75C177.459 52.75 177.415 52.75 177.37 52.75C177.326 52.75 177.282 52.75 177.237 52.75C177.193 52.75 177.149 52.75 177.105 52.75C177.061 52.75 177.018 52.75 176.974 52.75C176.93 52.75 176.887 52.75 176.843 52.75C176.8 52.75 176.757 52.75 176.713 52.75C176.67 52.75 176.627 52.75 176.584 52.75C176.541 52.75 176.498 52.75 176.456 52.75C176.413 52.75 176.37 52.75 176.328 52.75C176.286 52.75 176.243 52.75 176.201 52.75C176.159 52.75 176.117 52.75 176.075 52.75C176.033 52.75 175.991 52.75 175.95 52.75C175.908 52.75 175.866 52.75 175.825 52.75C175.784 52.75 175.742 52.75 175.701 52.75C175.66 52.75 175.619 52.75 175.578 52.75C175.537 52.75 175.496 52.75 175.456 52.75C175.415 52.75 175.375 52.75 175.334 52.75C175.294 52.75 175.254 52.75 175.214 52.75C175.173 52.75 175.134 52.75 175.094 52.75C175.054 52.75 175.014 52.75 174.975 52.75C174.935 52.75 174.896 52.75 174.856 52.75C174.817 52.75 174.778 52.75 174.739 52.75C174.7 52.75 174.661 52.75 174.622 52.75C174.583 52.75 174.545 52.75 174.506 52.75C174.468 52.75 174.43 52.75 174.391 52.75C174.353 52.75 174.315 52.75 174.277 52.75C174.239 52.75 174.201 52.75 174.164 52.75C174.126 52.75 174.089 52.75 174.051 52.75C174.014 52.75 173.977 52.75 173.94 52.75C173.903 52.75 173.866 52.75 173.829 52.75C173.792 52.75 173.756 52.75 173.719 52.75C173.683 52.75 173.646 52.75 173.61 52.75C173.574 52.75 173.538 52.75 173.502 52.75C173.466 52.75 173.43 52.75 173.394 52.75C173.359 52.75 173.323 52.75 173.288 52.75C173.253 52.75 173.217 52.75 173.182 52.75C173.147 52.75 173.112 52.75 173.078 52.75C173.043 52.75 173.008 52.75 172.974 52.75C172.939 52.75 172.905 52.75 172.871 52.75C172.837 52.75 172.803 52.75 172.769 52.75C172.735 52.75 172.701 52.75 172.668 52.75C172.634 52.75 172.601 52.75 172.568 52.75C172.534 52.75 172.501 52.75 172.468 52.75C172.435 52.75 172.402 52.75 172.37 52.75C172.337 52.75 172.305 52.75 172.272 52.75C172.24 52.75 172.208 52.75 172.176 52.75C172.144 52.75 172.112 52.75 172.08 52.75C172.049 52.75 172.017 52.75 171.986 52.75C171.954 52.75 171.923 52.75 171.892 52.75C171.861 52.75 171.83 52.75 171.799 52.75C171.768 52.75 171.738 52.75 171.707 52.75C171.677 52.75 171.646 52.75 171.616 52.75C171.586 52.75 171.556 52.75 171.526 52.75C171.497 52.75 171.467 52.75 171.437 52.75C171.408 52.75 171.379 52.75 171.349 52.75C171.32 52.75 171.291 52.75 171.262 52.75C171.234 52.75 171.205 52.75 171.176 52.75C171.148 52.75 171.12 52.75 171.091 52.75C171.063 52.75 171.035 52.75 171.007 52.75C170.979 52.75 170.952 52.75 170.924 52.75C170.897 52.75 170.869 52.75 170.842 52.75C170.815 52.75 170.788 52.75 170.761 52.75C170.734 52.75 170.708 52.75 170.681 52.75C170.654 52.75 170.628 52.75 170.602 52.75C170.576 52.75 170.55 52.75 170.524 52.75C170.498 52.75 170.472 52.75 170.447 52.75C170.421 52.75 170.396 52.75 170.371 52.75C170.346 52.75 170.321 52.75 170.296 52.75C170.271 52.75 170.246 52.75 170.222 52.75C170.198 52.75 170.173 52.75 170.149 52.75C170.125 52.75 170.101 52.75 170.077 52.75C170.053 52.75 170.03 52.75 170.006 52.75C169.983 52.75 169.96 52.75 169.937 52.75C169.914 52.75 169.891 52.75 169.868 52.75C169.845 52.75 169.823 52.75 169.8 52.75C169.778 52.75 169.756 52.75 169.734 52.75C169.712 52.75 169.69 52.75 169.668 52.75C169.647 52.75 169.625 52.75 169.604 52.75C169.583 52.75 169.561 52.75 169.541 52.75C169.52 52.75 169.499 52.75 169.478 52.75C169.458 52.75 169.437 52.75 169.417 52.75C169.397 52.75 169.377 52.75 169.357 52.75C169.337 52.75 169.318 52.75 169.298 52.75C169.279 52.75 169.259 52.75 169.24 52.75C169.221 52.75 169.202 52.75 169.183 52.75C169.165 52.75 169.146 52.75 169.128 52.75C169.109 52.75 169.091 52.75 169.073 52.75C169.055 52.75 169.038 52.75 169.02 52.75C169.002 52.75 168.985 52.75 168.968 52.75C168.95 52.75 168.933 52.75 168.917 52.75C168.9 52.75 168.883 52.75 168.867 52.75C168.85 52.75 168.834 52.75 168.818 52.75C168.802 52.75 168.786 52.75 168.77 52.75C168.754 52.75 168.739 52.75 168.723 52.75C168.708 52.75 168.693 52.75 168.678 52.75C168.663 52.75 168.648 52.75 168.634 52.75C168.619 52.75 168.605 52.75 168.591 52.75C168.577 52.75 168.563 52.75 168.549 52.75C168.535 52.75 168.521 52.75 168.508 52.75C168.495 52.75 168.481 52.75 168.469 52.75C168.456 52.75 168.443 52.75 168.43 52.75C168.418 52.75 168.405 52.75 168.393 52.75C168.381 52.75 168.369 52.75 168.35
31757 52.75C168.345 52.75 168.334 52.75 168.322 52.75C168.311 52.75 168.3 52.75 168.289 52.75C168.278 52.75 168.267 52.75 168.256 52.75C168.246 52.75 168.235 52.75 168.225 52.75C168.215 52.75 168.205 52.75 168.195 52.75C168.185 52.75 168.176 52.75 168.166 52.75C168.157 52.75 168.148 52.75 168.139 52.75C168.13 52.75 168.121 52.75 168.113 52.75C168.104 52.75 168.096 52.75 168.088 52.75C168.08 52.75 168.072 52.75 168.064 52.75C168.056 52.75 168.049 52.75 168.041 52.75C168.034 52.75 168.027 52.75 168.02 52.75C168.013 52.75 168.006 52.75 168 52.75V51.25Z",fill:"url(#paint4_linear_38_7016)"}),(0,a.jsx)("path",{d:"M258.724 115.263V114.091H266.906V115.263H263.476V125H262.155V115.263H258.724ZM270.912 125.17C270.173 125.17 269.525 124.995 268.968 124.643C268.414 124.292 267.98 123.8 267.668 123.168C267.359 122.536 267.205 121.797 267.205 120.952C267.205 120.099 267.359 119.355 267.668 118.72C267.98 118.084 268.414 117.591 268.968 117.239C269.525 116.887 270.173 116.712 270.912 116.712C271.651 116.712 272.297 116.887 272.851 117.239C273.408 117.591 273.842 118.084 274.151 118.72C274.463 119.355 274.619 120.099 274.619 120.952C274.619 121.797 274.463 122.536 274.151 123.168C273.842 123.8 273.408 124.292 272.851 124.643C272.297 124.995 271.651 125.17 270.912 125.17ZM270.912 124.041C271.473 124.041 271.935 123.897 272.297 123.61C272.659 123.322 272.927 122.944 273.101 122.475C273.275 122.006 273.362 121.499 273.362 120.952C273.362 120.405 273.275 119.895 273.101 119.423C272.927 118.951 272.659 118.569 272.297 118.278C271.935 117.987 271.473 117.841 270.912 117.841C270.351 117.841 269.889 117.987 269.527 118.278C269.165 118.569 268.897 118.951 268.723 119.423C268.549 119.895 268.462 120.405 268.462 120.952C268.462 121.499 268.549 122.006 268.723 122.475C268.897 122.944 269.165 123.322 269.527 123.61C269.889 123.897 270.351 124.041 270.912 124.041ZM279.628 125.17C278.946 125.17 278.344 124.998 277.822 124.654C277.3 124.306 276.892 123.816 276.597 123.184C276.302 122.548 276.155 121.797 276.155 120.93C276.155 120.071 276.302 119.325 276.597 118.693C276.892 118.061 277.302 117.573 277.827 117.228C278.353 116.884 278.96 116.712 279.649 116.712C280.182 116.712 280.603 116.8 280.911 116.978C281.224 117.152 281.462 117.351 281.625 117.575C281.792 117.795 281.922 117.976 282.014 118.118H282.121V114.091H283.378V125H282.163V123.743H282.014C281.922 123.892 281.79 124.08 281.62 124.308C281.449 124.531 281.206 124.732 280.89 124.909C280.574 125.083 280.153 125.17 279.628 125.17ZM279.798 124.041C280.302 124.041 280.729 123.91 281.077 123.647C281.425 123.381 281.689 123.013 281.87 122.544C282.051 122.072 282.142 121.527 282.142 120.909C282.142 120.298 282.053 119.764 281.876 119.306C281.698 118.844 281.435 118.485 281.087 118.23C280.739 117.971 280.31 117.841 279.798 117.841C279.266 117.841 278.822 117.978 278.467 118.251C278.115 118.521 277.85 118.888 277.673 119.354C277.499 119.815 277.412 120.334 277.412 120.909C277.412 121.491 277.501 122.021 277.678 122.496C277.859 122.969 278.126 123.345 278.477 123.626C278.832 123.903 279.273 124.041 279.798 124.041ZM288.262 125.192C287.744 125.192 287.273 125.094 286.851 124.899C286.428 124.7 286.093 124.414 285.844 124.041C285.595 123.665 285.471 123.21 285.471 122.678C285.471 122.209 285.563 121.829 285.748 121.538C285.933 121.243 286.18 121.012 286.489 120.845C286.797 120.678 287.138 120.554 287.511 120.472C287.888 120.387 288.266 120.32 288.646 120.27C289.143 120.206 289.546 120.158 289.855 120.126C290.168 120.091 290.395 120.032 290.537 119.95C290.682 119.869 290.755 119.727 290.755 119.524V119.482C290.755 118.956 290.611 118.548 290.324 118.256C290.04 117.965 289.608 117.82 289.029 117.82C288.429 117.82 287.959 117.951 287.618 118.214C287.277 118.477 287.037 118.757 286.899 119.055L285.706 118.629C285.919 118.132 286.203 117.745 286.558 117.468C286.916 117.187 287.307 116.992 287.73 116.882C288.156 116.768 288.575 116.712 288.987 116.712C289.25 116.712 289.551 116.744 289.892 116.808C290.237 116.868 290.569 116.994 290.888 117.186C291.212 117.377 291.48 117.667 291.693 118.054C291.906 118.441 292.012 118.96 292.012 119.609V125H290.755V123.892H290.691C290.606 124.07 290.464 124.26 290.265 124.462C290.066 124.664 289.802 124.837 289.472 124.979C289.141 125.121 288.738 125.192 288.262 125.192ZM288.454 124.062C288.951 124.062 289.37 123.965 289.711 123.77C290.056 123.574 290.315 123.322 290.489 123.013C290.666 122.704 290.755 122.379 290.755 122.038V120.888C290.702 120.952 290.585 121.01 290.404 121.064C290.226 121.113 290.02 121.158 289.786 121.197C289.555 121.232 289.329 121.264 289.109 121.293C288.893 121.317 288.717 121.339 288.582 121.357C288.255 121.399 287.95 121.468 287.666 121.564C287.385 121.657 287.158 121.797 286.984 121.985C286.813 122.17 286.728 122.422 286.728 122.741C286.728 123.178 28
31756.89 123.509 287.213 123.732C287.54 123.952 287.953 124.062 288.454 124.062ZM294.824 128.068C294.61 128.068 294.42 128.05 294.254 128.015C294.087 127.983 293.971 127.951 293.907 127.919L294.227 126.811C294.532 126.889 294.802 126.918 295.037 126.896C295.271 126.875 295.479 126.77 295.66 126.582C295.844 126.397 296.013 126.097 296.166 125.682L296.4 125.043L293.375 116.818H294.738L296.997 123.338H297.082L299.341 116.818H300.704L297.231 126.193C297.075 126.616 296.881 126.966 296.651 127.243C296.42 127.523 296.152 127.731 295.846 127.866C295.544 128.001 295.203 128.068 294.824 128.068ZM303.726 123.509L303.641 124.084C303.58 124.489 303.488 124.922 303.364 125.384C303.243 125.845 303.117 126.28 302.985 126.689C302.854 127.097 302.746 127.422 302.66 127.663H301.702C301.748 127.436 301.808 127.136 301.883 126.763C301.957 126.39 302.032 125.973 302.106 125.511C302.185 125.053 302.248 124.585 302.298 124.105L302.362 123.509H303.726ZM312.127 125L309.634 116.818H310.955L312.724 123.082H312.809L314.556 116.818H315.899L317.624 123.061H317.71L319.478 116.818H320.799L318.306 125H317.07L315.281 118.714H315.153L313.363 125H312.127ZM325.613 125.17C324.825 125.17 324.145 124.996 323.573 124.648C323.005 124.297 322.566 123.807 322.257 123.178C321.952 122.546 321.799 121.811 321.799 120.973C321.799 120.135 321.952 119.396 322.257 118.757C322.566 118.114 322.996 117.614 323.546 117.255C324.1 116.893 324.747 116.712 325.485 116.712C325.911 116.712 326.332 116.783 326.748 116.925C327.163 117.067 327.541 117.298 327.882 117.617C328.223 117.933 328.495 118.352 328.697 118.874C328.9 119.396 329.001 120.039 329.001 120.803V121.335H322.694V120.249H327.723C327.723 119.787 327.63 119.375 327.446 119.013C327.264 118.651 327.005 118.365 326.668 118.155C326.334 117.946 325.94 117.841 325.485 117.841C324.985 117.841 324.551 117.965 324.186 118.214C323.823 118.459 323.545 118.778 323.349 119.173C323.154 119.567 323.056 119.989 323.056 120.44V121.165C323.056 121.783 323.163 122.306 323.376 122.736C323.593 123.162 323.893 123.487 324.276 123.711C324.66 123.931 325.105 124.041 325.613 124.041C325.943 124.041 326.242 123.995 326.508 123.903C326.778 123.807 327.011 123.665 327.206 123.477C327.401 123.285 327.552 123.047 327.659 122.763L328.873 123.104C328.745 123.516 328.53 123.878 328.229 124.19C327.927 124.499 327.554 124.741 327.11 124.915C326.666 125.085 326.167 125.17 325.613 125.17ZM332.021 114.091V115.05C332.021 115.341 331.968 115.652 331.861 115.982C331.758 116.309 331.606 116.626 331.403 116.935C331.204 117.241 330.963 117.507 330.679 117.734L329.997 117.18C330.221 116.861 330.414 116.529 330.578 116.184C330.745 115.836 330.828 115.465 330.828 115.071V114.091H332.021ZM333.36 125V116.818H334.574V118.054H334.659C334.808 117.649 335.078 117.321 335.469 117.069C335.86 116.816 336.3 116.69 336.79 116.69C336.882 116.69 336.998 116.692 337.136 116.696C337.275 116.699 337.379 116.705 337.45 116.712V117.99C337.408 117.979 337.31 117.963 337.157 117.942C337.008 117.917 336.85 117.905 336.683 117.905C336.286 117.905 335.931 117.988 335.618 118.155C335.309 118.319 335.064 118.546 334.883 118.837C334.705 119.125 334.617 119.453 334.617 119.822V125H333.36ZM342.122 125.17C341.334 125.17 340.654 124.996 340.082 124.648C339.514 124.297 339.075 123.807 338.766 123.178C338.461 122.546 338.308 121.811 338.308 120.973C338.308 120.135 338.461 119.396 338.766 118.757C339.075 118.114 339.505 117.614 340.055 117.255C340.609 116.893 341.256 116.712 341.994 116.712C342.42 116.712 342.841 116.783 343.257 116.925C343.672 117.067 344.05 117.298 344.391 117.617C344.732 117.933 345.004 118.352 345.206 118.874C345.409 119.396 345.51 120.039 345.51 120.803V121.335H339.203V120.249H344.231C344.231 119.787 344.139 119.375 343.954 119.013C343.773 118.651 343.514 118.365 343.177 118.155C342.843 117.946 342.449 117.841 341.994 117.841C341.493 117.841 341.06 117.965 340.694 118.214C340.332 118.459 340.053 118.778 339.858 119.173C339.663 119.567 339.565 119.989 339.565 120.44V121.165C339.565 121.783 339.672 122.306 339.885 122.736C340.101 123.162 340.401 123.487 340.785 123.711C341.169 123.931 341.614 124.041 342.122 124.041C342.452 124.041 342.751 123.995 343.017 123.903C343.287 123.807 343.519 123.665 343.715 123.477C343.91 123.285 344.061 123.047 344.167 122.763L345.382 123.104C345.254 123.516 345.039 123.878 344.737 124.19C344.436 124.499 344.063 124.741 343.619 124.915C343.175 125.085 342.676 125.17 342.122 125.17ZM354.048 125.192C353.53 125.192 353.059 125.094 352.637 124.899C352.214 124.7 351.879 124.414 351.63 124.041C351.382 123.665 351.257 123.21 351.257 122.678C351.257 122.209 351.35 121.829 351.534 121.538C351.719 121.243 351.966 121.012 352.275 120.845C352.584 120.678 352.925 120.554 353.297 120.472C353.674 120.387 354.052 120.32 354.432 120.27C354.929 120.206 355.332 120.158 355.641 120.126C355.954 120.091 356.181 120.032 356.323 119.95C356.469 119.869 356.54
31751 119.727 356.541 119.524V119.482C356.541 118.956 356.398 118.548 356.11 118.256C355.826 117.965 355.394 117.82 354.816 117.82C354.215 117.82 353.745 117.951 353.404 118.214C353.063 118.477 352.823 118.757 352.685 119.055L351.492 118.629C351.705 118.132 351.989 117.745 352.344 117.468C352.703 117.187 353.093 116.992 353.516 116.882C353.942 116.768 354.361 116.712 354.773 116.712C355.036 116.712 355.338 116.744 355.678 116.808C356.023 116.868 356.355 116.994 356.675 117.186C356.998 117.377 357.266 117.667 357.479 118.054C357.692 118.441 357.798 118.96 357.798 119.609V125H356.541V123.892H356.477C356.392 124.07 356.25 124.26 356.051 124.462C355.852 124.664 355.588 124.837 355.258 124.979C354.927 125.121 354.524 125.192 354.048 125.192ZM354.24 124.062C354.737 124.062 355.156 123.965 355.497 123.77C355.842 123.574 356.101 123.322 356.275 123.013C356.453 122.704 356.541 122.379 356.541 122.038V120.888C356.488 120.952 356.371 121.01 356.19 121.064C356.012 121.113 355.806 121.158 355.572 121.197C355.341 121.232 355.116 121.264 354.895 121.293C354.679 121.317 354.503 121.339 354.368 121.357C354.041 121.399 353.736 121.468 353.452 121.564C353.171 121.657 352.944 121.797 352.77 121.985C352.6 122.17 352.514 122.422 352.514 122.741C352.514 123.178 352.676 123.509 352.999 123.732C353.326 123.952 353.74 124.062 354.24 124.062ZM361.35 120.078V125H360.093V116.818H361.307V118.097H361.414C361.606 117.681 361.897 117.347 362.288 117.095C362.678 116.839 363.182 116.712 363.8 116.712C364.354 116.712 364.839 116.825 365.255 117.053C365.67 117.276 365.993 117.617 366.224 118.075C366.455 118.53 366.57 119.105 366.57 119.801V125H365.313V119.886C365.313 119.244 365.146 118.743 364.812 118.384C364.479 118.022 364.021 117.841 363.438 117.841C363.037 117.841 362.678 117.928 362.362 118.102C362.05 118.276 361.803 118.53 361.622 118.864C361.441 119.197 361.35 119.602 361.35 120.078ZM262.453 151.239C261.846 151.239 261.324 151.161 260.887 151.004C260.45 150.852 260.086 150.649 259.795 150.397C259.507 150.148 259.278 149.882 259.108 149.598L260.109 148.895C260.223 149.044 260.367 149.214 260.541 149.406C260.715 149.602 260.953 149.77 261.255 149.912C261.56 150.058 261.96 150.131 262.453 150.131C263.114 150.131 263.659 149.971 264.088 149.651C264.518 149.332 264.733 148.831 264.733 148.149V146.487H264.626C264.534 146.636 264.403 146.821 264.232 147.041C264.065 147.258 263.824 147.451 263.508 147.622C263.195 147.789 262.773 147.872 262.24 147.872C261.58 147.872 260.987 147.716 260.461 147.403C259.939 147.091 259.525 146.636 259.22 146.04C258.918 145.443 258.767 144.719 258.767 143.866C258.767 143.028 258.914 142.299 259.209 141.677C259.504 141.052 259.914 140.569 260.44 140.228C260.965 139.884 261.572 139.712 262.261 139.712C262.794 139.712 263.217 139.8 263.529 139.978C263.845 140.152 264.087 140.351 264.254 140.575C264.424 140.795 264.555 140.976 264.648 141.118H264.776V139.818H265.99V148.234C265.99 148.938 265.83 149.509 265.511 149.95C265.195 150.393 264.768 150.718 264.232 150.924C263.7 151.134 263.107 151.239 262.453 151.239ZM262.411 146.743C262.915 146.743 263.341 146.627 263.689 146.397C264.037 146.166 264.301 145.834 264.483 145.401C264.664 144.967 264.754 144.449 264.754 143.845C264.754 143.256 264.665 142.735 264.488 142.284C264.31 141.833 264.048 141.48 263.7 141.224C263.352 140.969 262.922 140.841 262.411 140.841C261.878 140.841 261.434 140.976 261.079 141.246C260.727 141.516 260.463 141.878 260.285 142.332C260.111 142.787 260.024 143.291 260.024 143.845C260.024 144.413 260.113 144.916 260.29 145.353C260.472 145.786 260.738 146.127 261.089 146.375C261.445 146.62 261.885 146.743 262.411 146.743ZM268.291 148V139.818H269.548V148H268.291ZM268.93 138.455C268.685 138.455 268.474 138.371 268.297 138.204C268.123 138.037 268.036 137.837 268.036 137.602C268.036 137.368 268.123 137.167 268.297 137C268.474 136.833 268.685 136.75 268.93 136.75C269.175 136.75 269.385 136.833 269.559 137C269.737 137.167 269.825 137.368 269.825 137.602C269.825 137.837 269.737 138.037 269.559 138.204C269.385 138.371 269.175 138.455 268.93 138.455ZM278.541 139.818L275.516 148H274.237L271.212 139.818H272.575L274.834 146.338H274.919L277.177 139.818H278.541ZM280.2 148V139.818H281.457V148H280.2ZM280.84 138.455C280.595 138.455 280.383 138.371 280.206 138.204C280.032 138.037 279.945 137.837 279.945 137.602C279.945 137.368 280.032 137.167 280.206 137C280.383 136.833 280.595 136.75 280.84 136.75C281.085 136.75 281.294 136.833 281.468 137C281.646 137.167 281.734 137.368 281.734 137.602C281.734 137.837 281.646 138.037 281.468 138.204C281.294 138.371 281.085 138.455 280.84 138.455ZM285.017 143.078V148H283.76V139.818H284.974V141.097H285.081C285.273 140.681 285.564 140.347 285.955 140.095C286.345 139.839 286.849 139.712 287.467 139.712C288.021 139.712 288.506 139.825 288.922 140.053C289.337 140.276 289.66 140.617 289.891 141.075C290.122 141.53 290.237 142.105 290.237 142.801V148H288.98V142.886C288.98 142.244 288.813 141.743 288.479 141.384C288.146 141.022 287.688 140.841 287.105 140.841C286.704 140.841 286.345 140.928 286.029 141.102C285.717 141.276 285.47 141.53 285.289 141.864C285.108 142.197 285.017 142.602 285.017 143.078ZM295.837 151.239C295.23 151.239 294.708 151.161 294.271 151.004C293.834 150.852 293.47 150.649 293.179 150.397C292.891 150.148 292.662 149.882 292.492 149.598L293.493 148.895C293.607 149.044 293.751 149.214 293.925 149.406C294.099 149.602 294.337 149.77 294.638 149.912C294.944 150.058 295.343 150.131 295.837 150.131C296.497 150.131 297.043 149.971 297.472 149.651C297.902 149.332 298.117 148.831 298.117 148.149V146.487H298.01C297.918 146.636 297.786 146.821 297.616 147.041C297.449 147.258 297.208 147.451 296.892 147.622C296.579 147.789 296.157 147.872 295.624 147.872C294.963 147.872 294.37 147.716 293.845 147.403C293.323 147.091 292.909 146.636 292.604 146.04C292.302 145.443 292.151 144.719 292.151 143.866C292.151 143.028 292.298 142.299 292.593 141.677C292.888 141.052 293.298 140.569 293.823 140.228C294.349 139.884 294.956 139.712 295.645 139.712C296.178 139.712 296.6 139.8 296.913 139.978C297.229 140.152 297.47 140.351 297.637 140.575C297.808 140.795 297.939 140.976 298.032 141.118H298.159V139.818H299.374V148.234C299.374 148.938 299.214 149.509 298.894 149.95C298.578 150.393 298.152 150.718 297.616 150.924C297.083 151.134 296.49 151.239 295.837 151.239ZM295.794 146.743C296.299 146.743 296.725 146.627 297.073 146.397C297.421 146.166 297.685 145.834 297.866 145.401C298.047 144.967 298.138 144.449 298.138 143.845C298.138 143.256 298.049 142.735 297.872 142.284C297.694 141.833 297.431 141.48 297.
3175083 141.224C296.735 140.969 296.306 140.841 295.794 140.841C295.262 140.841 294.818 140.976 294.463 141.246C294.111 141.516 293.847 141.878 293.669 142.332C293.495 142.787 293.408 143.291 293.408 143.845C293.408 144.413 293.497 144.916 293.674 145.353C293.855 145.786 294.122 146.127 294.473 146.375C294.828 146.62 295.269 146.743 295.794 146.743ZM309.452 139.818V140.884H305.212V139.818H309.452ZM306.448 137.858H307.705V145.656C307.705 146.011 307.756 146.278 307.859 146.455C307.966 146.629 308.101 146.746 308.264 146.807C308.431 146.864 308.607 146.892 308.791 146.892C308.93 146.892 309.044 146.885 309.132 146.871C309.221 146.853 309.292 146.839 309.345 146.828L309.601 147.957C309.516 147.989 309.397 148.021 309.244 148.053C309.092 148.089 308.898 148.107 308.664 148.107C308.309 148.107 307.96 148.03 307.62 147.877C307.282 147.725 307.002 147.492 306.778 147.18C306.558 146.867 306.448 146.473 306.448 145.997V137.858ZM312.776 143.078V148H311.519V137.091H312.776V141.097H312.882C313.074 140.674 313.362 140.338 313.745 140.09C314.132 139.838 314.647 139.712 315.29 139.712C315.848 139.712 316.336 139.824 316.755 140.047C317.174 140.267 317.499 140.607 317.73 141.065C317.964 141.519 318.081 142.098 318.081 142.801V148H316.824V142.886C316.824 142.237 316.655 141.734 316.318 141.379C315.984 141.02 315.521 140.841 314.928 140.841C314.516 140.841 314.147 140.928 313.82 141.102C313.497 141.276 313.241 141.53 313.053 141.864C312.868 142.197 312.776 142.602 312.776 143.078ZM323.811 148.17C323.023 148.17 322.343 147.996 321.771 147.648C321.203 147.297 320.765 146.807 320.456 146.178C320.15 145.546 319.998 144.811 319.998 143.973C319.998 143.135 320.15 142.396 320.456 141.757C320.765 141.114 321.194 140.614 321.745 140.255C322.299 139.893 322.945 139.712 323.684 139.712C324.11 139.712 324.531 139.783 324.946 139.925C325.362 140.067 325.74 140.298 326.081 140.617C326.422 140.933 326.693 141.352 326.896 141.874C327.098 142.396 327.199 143.039 327.199 143.803V144.335H320.892V143.249H325.921C325.921 142.787 325.828 142.375 325.644 142.013C325.463 141.651 325.203 141.365 324.866 141.155C324.532 140.946 324.138 140.841 323.684 140.841C323.183 140.841 322.75 140.965 322.384 141.214C322.022 141.459 321.743 141.778 321.548 142.173C321.352 142.567 321.255 142.989 321.255 143.44V144.165C321.255 144.783 321.361 145.306 321.574 145.736C321.791 146.162 322.091 146.487 322.474 146.711C322.858 146.931 323.304 147.041 323.811 147.041C324.142 147.041 324.44 146.995 324.706 146.903C324.976 146.807 325.209 146.665 325.404 146.477C325.599 146.285 325.75 146.047 325.857 145.763L327.071 146.104C326.944 146.516 326.729 146.878 326.427 147.19C326.125 147.499 325.752 147.741 325.308 147.915C324.864 148.085 324.365 148.17 323.811 148.17ZM262.709 162.818V163.884H258.469V162.818H262.709ZM259.705 160.858H260.962V168.656C260.962 169.011 261.013 169.278 261.116 169.455C261.223 169.629 261.358 169.746 261.521 169.807C261.688 169.864 261.864 169.892 262.048 169.892C262.187 169.892 262.3 169.885 262.389 169.871C262.478 169.853 262.549 169.839 262.602 169.828L262.858 170.957C262.773 170.989 262.654 171.021 262.501 171.053C262.348 171.089 262.155 171.107 261.92 171.107C261.565 171.107 261.217 171.03 260.876 170.877C260.539 170.725 260.259 170.492 260.035 170.18C259.815 169.867 259.705 169.473 259.705 168.997V160.858ZM264.6 171V162.818H265.814V164.054H265.9C266.049 163.649 266.319 163.321 266.709 163.069C267.1 162.816 267.54 162.69 268.03 162.69C268.123 162.69 268.238 162.692 268.376 162.696C268.515 162.699 268.62 162.705 268.691 162.712V163.99C268.648 163.979 268.55 163.963 268.398 163.942C268.249 163.917 268.091 163.905 267.924 163.905C267.526 163.905 267.171 163.988 266.858 164.155C266.549 164.319 266.304 164.546 266.123 164.837C265.946 165.125 265.857 165.453 265.857 165.822V171H264.6ZM275.337 167.655V162.818H276.594V171H275.337V169.615H275.252C275.06 170.031 274.762 170.384 274.357 170.675C273.952 170.963 273.441 171.107 272.823 171.107C272.312 171.107 271.857 170.995 271.459 170.771C271.062 170.544 270.749 170.203 270.522 169.748C270.294 169.29 270.181 168.713 270.181 168.017V162.818H271.438V167.932C271.438 168.528 271.605 169.004 271.939 169.359C272.276 169.714 272.706 169.892 273.228 169.892C273.54 169.892 273.858 169.812 274.181 169.652C274.508 169.493 274.781 169.248 275.002 168.917C275.225 168.587 275.337 168.166 275.337 167.655ZM284.692 164.651L283.563 164.97C283.492 164.782 283.387 164.599 283.249 164.422C283.114 164.24 282.929 164.091 282.695 163.974C282.46 163.857 282.16 163.798 281.794 163.798C281.294 163.798 280.876 163.914 280.543 164.145C280.212 164.372 280.047 164.661 280.047 165.013C280.047 165.325 280.161 165.572 280.388 165.753C280.615 165.934 280.971 166.085 281.453 166.206L282.668 166.504C283.4 166.682 283.945 166.953 284.303 167.319C284.662 167.681 284.841 168.148 284.841 168.72C284.841 169.189 284.706 169.608 284.436 169.977C284.17 170.347 283.797 170.638 283.318 170.851C282.838 171.064 282.281 171.17 281.645 171.17C280.811 171.17 280.12 170.989 279.573 170.627C279.026 170.265 278.68 169.736 278.534 169.04L279.728 168.741C279.841 169.182 280.056 169.512 280.372 169.732C280.692 169.952 281.109 170.062 281.624 170.062C282.21 170.062 282.675 169.938 283.02 169.69C283.368 169.437 283.542 169.136 283.542 168.784C283.542 168.5 283.442 168.262 283.243 168.07C283.044 167.875 282.739 167.729 282.327 167.634L280.963 167.314C280.214 167.136 279.664 166.861 279.312 166.488C278.964 166.112 278.79 165.641 278.79 165.077C278.79 164.615 278.92 164.207 279.179 163.852C279.442 163.496 279.799 163.218 280.25 163.015C280.704 162.813 281.219 162.712 281.794 162.712C282.604 162.712 283.24 162.889 283.701 163.244C284.167 163.599 284.497 164.068 284.692 164.651ZM290.292 162.818V163.884H286.052V162.818H290.292ZM287.288 160.858H288.545V168.656C288.545 169.011 288.596 169.278 288.699 169.455C288.806 169.629 288.941 169.746 289.104 169.807C289.271 169.864 289.447 169.892 289.631 169.892C289.77 169.892 289.883 169.885 289.972 169.871C290.061 169.853 290.132 169.839 290.185 169.828L290.441 170.957C290.356 170.989 290.237 171.021 290.084 171.053C289.931 171.089 289.738 171.107 289.503 171.107C289.148 171.107 288.8 171.03 288.459 170.877C288.122 170.725 287.842 170.492 287.618 170.18C287.398 169.867 287.288 169.473 287.288 168.997V160.858ZM294.036 171L291.544 162.8
317518H292.865L294.633 169.082H294.718L296.465 162.818H297.808L299.534 169.061H299.619L301.387 162.818H302.708L300.215 171H298.98L297.19 164.714H297.062L295.272 171H294.036ZM307.416 171.17C306.677 171.17 306.029 170.995 305.472 170.643C304.918 170.292 304.484 169.8 304.172 169.168C303.863 168.536 303.708 167.797 303.708 166.952C303.708 166.099 303.863 165.355 304.172 164.72C304.484 164.084 304.918 163.591 305.472 163.239C306.029 162.887 306.677 162.712 307.416 162.712C308.154 162.712 308.801 162.887 309.355 163.239C309.912 163.591 310.346 164.084 310.654 164.72C310.967 165.355 311.123 166.099 311.123 166.952C311.123 167.797 310.967 168.536 310.654 169.168C310.346 169.8 309.912 170.292 309.355 170.643C308.801 170.995 308.154 171.17 307.416 171.17ZM307.416 170.041C307.977 170.041 308.439 169.897 308.801 169.61C309.163 169.322 309.431 168.944 309.605 168.475C309.779 168.006 309.866 167.499 309.866 166.952C309.866 166.405 309.779 165.895 309.605 165.423C309.431 164.951 309.163 164.569 308.801 164.278C308.439 163.987 307.977 163.841 307.416 163.841C306.855 163.841 306.393 163.987 306.031 164.278C305.669 164.569 305.401 164.951 305.227 165.423C305.053 165.895 304.966 166.405 304.966 166.952C304.966 167.499 305.053 168.006 305.227 168.475C305.401 168.944 305.669 169.322 306.031 169.61C306.393 169.897 306.855 170.041 307.416 170.041ZM313.042 171V162.818H314.257V164.054H314.342C314.491 163.649 314.761 163.321 315.152 163.069C315.542 162.816 315.983 162.69 316.473 162.69C316.565 162.69 316.68 162.692 316.819 162.696C316.957 162.699 317.062 162.705 317.133 162.712V163.99C317.09 163.979 316.993 163.963 316.84 163.942C316.691 163.917 316.533 163.905 316.366 163.905C315.968 163.905 315.613 163.988 315.301 164.155C314.992 164.319 314.747 164.546 314.566 164.837C314.388 165.125 314.299 165.453 314.299 165.822V171H313.042ZM322.694 162.818V163.884H318.454V162.818H322.694ZM319.69 160.858H320.947V168.656C320.947 169.011 320.998 169.278 321.101 169.455C321.208 169.629 321.343 169.746 321.506 169.807C321.673 169.864 321.849 169.892 322.034 169.892C322.172 169.892 322.286 169.885 322.375 169.871C322.463 169.853 322.534 169.839 322.588 169.828L322.843 170.957C322.758 170.989 322.639 171.021 322.486 171.053C322.334 171.089 322.14 171.107 321.906 171.107C321.551 171.107 321.203 171.03 320.862 170.877C320.524 170.725 320.244 170.492 320.02 170.18C319.8 169.867 319.69 169.473 319.69 168.997V160.858ZM326.018 166.078V171H324.761V160.091H326.018V164.097H326.125C326.316 163.674 326.604 163.338 326.987 163.09C327.375 162.838 327.889 162.712 328.532 162.712C329.09 162.712 329.578 162.824 329.997 163.047C330.416 163.267 330.741 163.607 330.972 164.065C331.206 164.519 331.323 165.098 331.323 165.801V171H330.066V165.886C330.066 165.237 329.898 164.734 329.56 164.379C329.226 164.02 328.763 163.841 328.17 163.841C327.758 163.841 327.389 163.928 327.062 164.102C326.739 164.276 326.483 164.53 326.295 164.864C326.11 165.197 326.018 165.602 326.018 166.078ZM262.474 194.17C261.736 194.17 261.088 193.995 260.53 193.643C259.976 193.292 259.543 192.8 259.23 192.168C258.922 191.536 258.767 190.797 258.767 189.952C258.767 189.099 258.922 188.355 259.23 187.72C259.543 187.084 259.976 186.591 260.53 186.239C261.088 185.887 261.736 185.712 262.474 185.712C263.213 185.712 263.859 185.887 264.413 186.239C264.971 186.591 265.404 187.084 265.713 187.72C266.026 188.355 266.182 189.099 266.182 189.952C266.182 190.797 266.026 191.536 265.713 192.168C265.404 192.8 264.971 193.292 264.413 193.643C263.859 193.995 263.213 194.17 262.474 194.17ZM262.474 193.041C263.036 193.041 263.497 192.897 263.859 192.61C264.222 192.322 264.49 191.944 264.664 191.475C264.838 191.006 264.925 190.499 264.925 189.952C264.925 189.405 264.838 188.895 264.664 188.423C264.49 187.951 264.222 187.569 263.859 187.278C263.497 186.987 263.036 186.841 262.474 186.841C261.913 186.841 261.452 186.987 261.089 187.278C260.727 187.569 260.459 187.951 260.285 188.423C260.111 188.895 260.024 189.405 260.024 189.952C260.024 190.499 260.111 191.006 260.285 191.475C260.459 191.944 260.727 192.322 261.089 192.61C261.452 192.897 261.913 193.041 262.474 193.041ZM268.101 197.068V185.818H269.315V187.118H269.464C269.557 186.976 269.685 186.795 269.848 186.575C270.015 186.351 270.253 186.152 270.562 185.978C270.874 185.8 271.297 185.712 271.829 185.712C272.518 185.712 273.126 185.884 273.651 186.228C274.177 186.573 274.587 187.061 274.882 187.693C275.176 188.325 275.324 189.071 275.324 189.93C275.324 190.797 275.176 191.548 274.882 192.184C274.587 192.816 274.179 193.306 273.657 193.654C273.134 193.998 272.533 194.17 271.851 194.17C271.325 194.17 270.904 194.083 270.588 193.909C270.272 193.732 270.029 193.531 269.859 193.308C269.688 193.08 269.557 192.892 269.464 192.743H269.358V197.068H268.101ZM269.337 189.909C269.337 190.527 269.427 191.072 269.608 191.544C269.789 192.013 270.054 192.381 270.402 192.647C270.75 192.91 271.176 193.041 271.68 193.041C272.206 193.041 272.644 192.903 272.996 192.626C273.351 192.345 273.617 191.969 273.795 191.496C273.976 191.021 274.067 190.491 274.067 189.909C274.067 189.334 273.978 188.815 273.8 188.354C273.626 187.888 273.362 187.521 273.007 187.251C272.655 186.978 272.213 186.841 271.68 186.841C271.169 186.841 270.739 186.971 270.391 187.23C270.043 187.485 269.78 187.844 269.603 188.306C269.425 188.764 269.337 189.298 269.337 189.909ZM280.672 194.17C279.883 194.17 279.203 193.99
31756 278.632 193.648C278.063 193.297 277.625 192.807 277.316 192.178C277.011 191.546 276.858 190.811 276.858 189.973C276.858 189.135 277.011 188.396 277.316 187.757C277.625 187.114 278.055 186.614 278.605 186.255C279.159 185.893 279.805 185.712 280.544 185.712C280.97 185.712 281.391 185.783 281.806 185.925C282.222 186.067 282.6 186.298 282.941 186.617C283.282 186.933 283.554 187.352 283.756 187.874C283.958 188.396 284.06 189.039 284.06 189.803V190.335H277.753V189.249H282.781C282.781 188.787 282.689 188.375 282.504 188.013C282.323 187.651 282.064 187.365 281.726 187.155C281.393 186.946 280.998 186.841 280.544 186.841C280.043 186.841 279.61 186.965 279.244 187.214C278.882 187.459 278.603 187.778 278.408 188.173C278.213 188.567 278.115 188.989 278.115 189.44V190.165C278.115 190.783 278.222 191.306 278.435 191.736C278.651 192.162 278.951 192.487 279.335 192.711C279.718 192.931 280.164 193.041 280.672 193.041C281.002 193.041 281.3 192.995 281.567 192.903C281.837 192.807 282.069 192.665 282.264 192.477C282.46 192.285 282.611 192.047 282.717 191.763L283.932 192.104C283.804 192.516 283.589 192.878 283.287 193.19C282.985 193.499 282.612 193.741 282.169 193.915C281.725 194.085 281.226 194.17 280.672 194.17ZM285.972 194V185.818H287.186V187.054H287.272C287.421 186.649 287.691 186.321 288.081 186.069C288.472 185.816 288.912 185.69 289.402 185.69C289.495 185.69 289.61 185.692 289.748 185.696C289.887 185.699 289.992 185.705 290.063 185.712V186.99C290.02 186.979 289.922 186.963 289.77 186.942C289.621 186.917 289.463 186.905 289.296 186.905C288.898 186.905 288.543 186.988 288.23 187.155C287.921 187.319 287.676 187.546 287.495 187.837C287.318 188.125 287.229 188.453 287.229 188.822V194H285.972ZM293.961 194.192C293.442 194.192 292.972 194.094 292.549 193.899C292.126 193.7 291.791 193.414 291.542 193.041C291.294 192.665 291.169 192.21 291.169 191.678C291.169 191.209 291.262 190.829 291.446 190.538C291.631 190.243 291.878 190.012 292.187 189.845C292.496 189.678 292.837 189.554 293.21 189.472C293.586 189.387 293.964 189.32 294.344 189.27C294.841 189.206 295.244 189.158 295.553 189.126C295.866 189.091 296.093 189.032 296.235 188.95C296.381 188.869 296.453 188.727 296.453 188.524V188.482C296.453 187.956 296.31 187.548 296.022 187.256C295.738 186.965 295.306 186.82 294.728 186.82C294.127 186.82 293.657 186.951 293.316 187.214C292.975 187.477 292.735 187.757 292.597 188.055L291.404 187.629C291.617 187.132 291.901 186.745 292.256 186.468C292.615 186.187 293.005 185.992 293.428 185.882C293.854 185.768 294.273 185.712 294.685 185.712C294.948 185.712 295.25 185.744 295.591 185.808C295.935 185.868 296.267 185.994 296.587 186.186C296.91 186.377 297.178 186.667 297.391 187.054C297.604 187.441 297.711 187.96 297.711 188.609V194H296.453V192.892H296.39C296.304 193.07 296.162 193.26 295.963 193.462C295.765 193.664 295.5 193.837 295.17 193.979C294.839 194.121 294.436 194.192 293.961 194.192ZM294.152 193.062C294.65 193.062 295.069 192.965 295.409 192.77C295.754 192.574 296.013 192.322 296.187 192.013C296.365 191.704 296.453 191.379 296.453 191.038V189.888C296.4 189.952 296.283 190.01 296.102 190.064C295.924 190.113 295.718 190.158 295.484 190.197C295.253 190.232 295.028 190.264 294.808 190.293C294.591 190.317 294.415 190.339 294.28 190.357C293.953 190.399 293.648 190.468 293.364 190.564C293.083 190.657 292.856 190.797 292.682 190.985C292.512 191.17 292.426 191.422 292.426 191.741C292.426 192.178 292.588 192.509 292.911 192.732C293.238 192.952 293.652 193.062 294.152 193.062ZM303.563 185.818V186.884H299.323V185.818H303.563ZM300.559 183.858H301.816V191.656C301.816 192.011 301.868 192.278 301.971 192.455C302.077 192.629 302.212 192.746 302.375 192.807C302.542 192.864 302.718 192.892 302.903 192.892C303.041 192.892 303.155 192.885 303.244 192.871C303.332 192.853 303.403 192.839 303.457 192.828L303.712 193.957C303.627 193.989 303.508 194.021 303.356 194.053C303.203 194.089 303.009 194.107 302.775 194.107C302.42 194.107 302.072 194.03 301.731 193.877C301.394 193.725 301.113 193.492 300.889 193.18C300.669 192.867 300.559 192.473 300.559 191.997V183.858ZM305.454 194V185.818H306.711V194H305.454ZM306.093 184.455C305.848 184.455 305.637 184.371 305.46 184.204C305.286 184.037 305.199 183.837 305.199 183.602C305.199 183.368 305.286 183.167 305.46 183C305.637 182.833 305.848 182.75 306.
3175093 182.75C306.339 182.75 306.548 182.833 306.722 183C306.9 183.167 306.988 183.368 306.988 183.602C306.988 183.837 306.9 184.037 306.722 184.204C306.548 184.371 306.339 184.455 306.093 184.455ZM312.338 194.17C311.599 194.17 310.951 193.995 310.393 193.643C309.839 193.292 309.406 192.8 309.094 192.168C308.785 191.536 308.63 190.797 308.63 189.952C308.63 189.099 308.785 188.355 309.094 187.72C309.406 187.084 309.839 186.591 310.393 186.239C310.951 185.887 311.599 185.712 312.338 185.712C313.076 185.712 313.723 185.887 314.277 186.239C314.834 186.591 315.267 187.084 315.576 187.72C315.889 188.355 316.045 189.099 316.045 189.952C316.045 190.797 315.889 191.536 315.576 192.168C315.267 192.8 314.834 193.292 314.277 193.643C313.723 193.995 313.076 194.17 312.338 194.17ZM312.338 193.041C312.899 193.041 313.36 192.897 313.723 192.61C314.085 192.322 314.353 191.944 314.527 191.475C314.701 191.006 314.788 190.499 314.788 189.952C314.788 189.405 314.701 188.895 314.527 188.423C314.353 187.951 314.085 187.569 313.723 187.278C313.36 186.987 312.899 186.841 312.338 186.841C311.777 186.841 311.315 186.987 310.953 187.278C310.591 187.569 310.322 187.951 310.148 188.423C309.974 188.895 309.887 189.405 309.887 189.952C309.887 190.499 309.974 191.006 310.148 191.475C310.322 191.944 310.591 192.322 310.953 192.61C311.315 192.897 311.777 193.041 312.338 193.041ZM319.221 189.078V194H317.964V185.818H319.179V187.097H319.285C319.477 186.681 319.768 186.347 320.159 186.095C320.549 185.839 321.054 185.712 321.671 185.712C322.225 185.712 322.71 185.825 323.126 186.053C323.541 186.276 323.864 186.617 324.095 187.075C324.326 187.53 324.441 188.105 324.441 188.801V194H323.184V188.886C323.184 188.244 323.017 187.743 322.684 187.384C322.35 187.022 321.892 186.841 321.309 186.841C320.908 186.841 320.549 186.928 320.233 187.102C319.921 187.276 319.674 187.53 319.493 187.864C319.312 188.197 319.221 188.602 319.221 189.078Z",fill:"#04B97A"}),(0,a.jsx)("path",{d:"M259.321 57V46.0909H265.905V47.2628H260.642V50.9489H265.564V52.1207H260.642V55.8281H265.99V57H259.321ZM273.698 60.0682V55.7429H273.591C273.499 55.892 273.368 56.0803 273.197 56.3075C273.027 56.5312 272.783 56.7319 272.467 56.9094C272.151 57.0835 271.73 57.1705 271.205 57.1705C270.523 57.1705 269.921 56.9982 269.399 56.6538C268.877 56.3058 268.469 55.8157 268.174 55.1836C267.879 54.5479 267.732 53.7969 267.732 52.9304C267.732 52.071 267.879 51.3253 268.174 50.6932C268.469 50.0611 268.879 49.5728 269.404 49.2283C269.93 48.8839 270.537 48.7116 271.226 48.7116C271.759 48.7116 272.18 48.8004 272.489 48.978C272.801 49.152 273.039 49.3509 273.202 49.5746C273.369 49.7947 273.499 49.9759 273.591 50.1179H273.74V48.8182H274.955V60.0682H273.698ZM271.375 56.0412C271.88 56.0412 272.306 55.9098 272.654 55.647C273.002 55.3807 273.266 55.0131 273.447 54.5444C273.629 54.0721 273.719 53.527 273.719 52.9091C273.719 52.2983 273.63 51.7638 273.453 51.3058C273.275 50.8441 273.012 50.4854 272.664 50.2298C272.316 49.9705 271.887 49.8409 271.375 49.8409C270.843 49.8409 270.399 49.9776 270.044 50.2511C269.692 50.521 269.428 50.8885 269.25 51.3537C269.076 51.8153 268.989 52.3338 268.989 52.9091C268.989 53.4915 269.078 54.0206 269.255 54.4964C269.436 54.9687 269.703 55.3452 270.054 55.6257C270.409 55.9027 270.85 56.0412 271.375 56.0412ZM282.412 53.6548V48.8182H283.669V57H282.412V55.6151H282.327C282.135 56.0305 281.837 56.3839 281.432 56.6751C281.027 56.9627 280.516 57.1065 279.898 57.1065C279.387 57.1065 278.932 56.9947 278.534 56.771C278.137 56.5437 277.824 56.2028 277.597 55.7482C277.37 55.2901 277.256 54.7131 277.256 54.017V48.8182H278.513V53.9318C278.513 54.5284 278.68 55.0043 279.014 55.3594C279.351 55.7145 279.781 55.892 280.303 55.892C280.615 55.892 280.933 55.8121 281.256 55.6523C281.583 55.4925 281.857 55.2475 282.077 54.9173C282.3 54.587 282.412 54.1662 282.412 53.6548ZM285.972 57V48.8182H287.229V57H285.972ZM286.611 47.4545C286.366 47.4545 286.155 47.3711 285.977 47.2042C285.803 47.0373 285.716 46.8366 285.716 46.6023C285.716 46.3679 285.803 46.1673 285.977 46.0004C286.155 45.8335 286.366 45.75 286.611 45.75C286.856 45.75 287.066 45.8335 287.24 46.0004C287.417 46.1673 287.506 46.3679 287.506 46.6023C287.506 46.8366 287.417 47.0373 287.24 47.2042C287.066 47.3711 286.856 47.4545 286.611 47.4545ZM289.531 60.0682V48.8182H290.746V50.1179H290.895C290.987 49.9759 291.115 49.7947 291.279 49.5746C291.445 49.3509 291.683 49.152 291.992 48.978C292.305 48.8004 292.727 48.7116 293.26 48.7116C293.949 48.7116 294.556 48.8839 295.082 49.2283C295.607 49.5728 296.018 50.0611 296.312 50.6932C296.607 51.3253 296.754 52.071 296.754 52.9304C296.754 53.7969 296.607 54.5479 296.312 55.1836C29
31756.018 55.8157 295.609 56.3058 295.087 56.6538C294.565 56.9982 293.963 57.1705 293.281 57.1705C292.756 57.1705 292.335 57.0835 292.019 56.9094C291.703 56.7319 291.46 56.5312 291.289 56.3075C291.119 56.0803 290.987 55.892 290.895 55.7429H290.789V60.0682H289.531ZM290.767 52.9091C290.767 53.527 290.858 54.0721 291.039 54.5444C291.22 55.0131 291.485 55.3807 291.833 55.647C292.181 55.9098 292.607 56.0412 293.111 56.0412C293.637 56.0412 294.075 55.9027 294.427 55.6257C294.782 55.3452 295.048 54.9687 295.226 54.4964C295.407 54.0206 295.497 53.4915 295.497 52.9091C295.497 52.3338 295.409 51.8153 295.231 51.3537C295.057 50.8885 294.792 50.521 294.437 50.2511C294.086 49.9776 293.644 49.8409 293.111 49.8409C292.6 49.8409 292.17 49.9705 291.822 50.2298C291.474 50.4854 291.211 50.8441 291.034 51.3058C290.856 51.7638 290.767 52.2983 290.767 52.9091ZM298.672 60.0682V48.8182H299.887V50.1179H300.036C300.128 49.9759 300.256 49.7947 300.419 49.5746C300.586 49.3509 300.824 49.152 301.133 48.978C301.445 48.8004 301.868 48.7116 302.401 48.7116C303.09 48.7116 303.697 48.8839 304.222 49.2283C304.748 49.5728 305.158 50.0611 305.453 50.6932C305.748 51.3253 305.895 52.071 305.895 52.9304C305.895 53.7969 305.748 54.5479 305.453 55.1836C305.158 55.8157 304.75 56.3058 304.228 56.6538C303.706 56.9982 303.104 57.1705 302.422 57.1705C301.896 57.1705 301.476 57.0835 301.16 56.9094C300.844 56.7319 300.6 56.5312 300.43 56.3075C300.259 56.0803 300.128 55.892 300.036 55.7429H299.929V60.0682H298.672ZM299.908 52.9091C299.908 53.527 299.998 54.0721 300.18 54.5444C300.361 55.0131 300.625 55.3807 300.973 55.647C301.321 55.9098 301.747 56.0412 302.252 56.0412C302.777 56.0412 303.216 55.9027 303.567 55.6257C303.922 55.3452 304.189 54.9687 304.366 54.4964C304.547 54.0206 304.638 53.4915 304.638 52.9091C304.638 52.3338 304.549 51.8153 304.372 51.3537C304.198 50.8885 303.933 50.521 303.578 50.2511C303.226 49.9776 302.784 49.8409 302.252 49.8409C301.74 49.8409 301.311 49.9705 300.963 50.2298C300.615 50.4854 300.352 50.8441 300.174 51.3058C299.997 51.7638 299.908 52.2983 299.908 52.9091ZM311.243 57.1705C310.455 57.1705 309.775 56.9964 309.203 56.6484C308.635 56.2969 308.196 55.8068 307.887 55.1783C307.582 54.5462 307.429 53.8111 307.429 52.973C307.429 52.1349 307.582 51.3963 307.887 50.7571C308.196 50.1143 308.626 49.6136 309.176 49.255C309.73 48.8928 310.377 48.7116 311.115 48.7116C311.541 48.7116 311.962 48.7827 312.378 48.9247C312.793 49.0668 313.171 49.2976 313.512 49.6172C313.853 49.9332 314.125 50.3523 314.327 50.8743C314.53 51.3963 314.631 52.0391 314.631 52.8026V53.3352H308.324V52.2486H313.352C313.352 51.7869 313.26 51.375 313.075 51.0128C312.894 50.6506 312.635 50.3647 312.298 50.1552C311.964 49.9457 311.57 49.8409 311.115 49.8409C310.615 49.8409 310.181 49.9652 309.816 50.2138C309.453 50.4588 309.175 50.7784 308.979 51.1726C308.784 51.5668 308.686 51.9893 308.686 52.4403V53.1648C308.686 53.7827 308.793 54.3065 309.006 54.7362C309.222 55.1623 309.523 55.4872 309.906 55.7109C310.29 55.9311 310.735 56.0412 311.243 56.0412C311.573 56.0412 311.872 55.995 312.138 55.9027C312.408 55.8068 312.64 55.6648 312.836 55.4766C313.031 55.2848 313.182 55.0469 313.289 54.7628L314.503 55.1037C314.375 55.5156 314.16 55.8778 313.858 56.1903C313.557 56.4993 313.184 56.7408 312.74 56.9148C312.296 57.0852 311.797 57.1705 311.243 57.1705ZM319.633 57.1705C318.951 57.1705 318.349 56.9982 317.827 56.6538C317.305 56.3058 316.896 55.8157 316.602 55.1836C316.307 54.5479 316.16 53.7969 316.16 52.9304C316.16 52.071 316.307 51.3253 316.602 50.6932C316.896 50.0611 317.307 49.5728 317.832 49.2283C318.358 48.8839 318.965 48.7116 319.654 48.7116C320.187 48.7116 320.607 48.8004 320.916 48.978C321.229 49.152 321.467 49.3509 321.63 49.5746C321.797 49.7947 321.927 49.9759 322.019 50.1179H322.126V46.0909H323.383V57H322.168V55.7429H322.019C321.927 55.892 321.795 56.0803 321.625 56.3075C321.454 56.5312 321.211 56.7319 320.895 56.9094C320.579 57.0835 320.158 57.1705 319.633 57.1705ZM319.803 56.0412C320.307 56.0412 320.733 55.9098 321.081 55.647C321.43 55.3807 321.694 55.0131 321.875 54.5444C322.056 54.0721 322.147 53.527 322.147 52.9091C322.147 52.2983 322.058 51.7638 321.881 51.3058C321.703 50.8441 321.44 50.4854 321.092 50.2298C320.744 49.9705 320.314 49.8409 319.803 49.8409C319.27 49.8409 318.827 49.9776 318.471 50.2511C318.12 50.521 317.855 50.8885 317.678 51.3537C317.504 51.8153 317.417 52.3338 317.417 52.9091C317.417 53.4915 317.506 54.0206 317.683 54.4964C317.864 54.9687 318.131 55.3452 318.482 55.6257C318.837 55.9027 319.278 56.0412 319.803 56.0412Z",fill:"#D28A04"})]}),d[0]=e,d[1]=t):(e=d[0],t=d[1]),d[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsxs)("radialGradient",{id:"paint0_radial_38_7016",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(153.5 100.5) rotate(90) scale(158.5 242.087)",children:[(0,a.jsx)("stop",{stopColor:"#252837"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#0D0E12"})]}),d[2]=n):n=d[2],d[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,a.jsxs)("linearGradient",{id:"paint1_linear_38_7016",x1:"168.5",y1:"-21.875",x2:"168.5",y2:"183",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"#13141B"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#9499AD"})]}),d[3]=r):r=d[3],d[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsxs)("linearGradient",{id:"paint2_linear_38_7016",x1:"241",y1:"3.25",x2:"163.5",y2:"3.25",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"#A9F9DC"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#0FF0A1"})]}),d[4]=i):i=d[4],d[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsxs)("linearGradient",{id:"paint3_linear_38_7016",x1:"241",y1:"108.25",x2:"168",y2:"108.25",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"#A9F9DC"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#0FF0A1"})]}),d[5]=l):l=d[5],d[6]===Symbol.for("react.memo_cache_sentinel")?(s=(0,a.jsxs)("svg",{height:"auto",width:"100%",viewBox:"0 0 307 201",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMinYMin",style:e,children:[t,(0,a.jsxs)("defs",{children:[n,r,i,l,(0,a.jsxs)("linearGradient",{id:"paint4_linear_38_7016",x1:"241",y1:"63.25",x2:"168",y2:"63.25",gradientUnits:"userSpaceOnUse",children:[(0,a.jsx)("stop",{stopColor:"#F9E994"}),(0,a.jsx)("stop",{offset:"1",stopColor:"#F9BC15"})]})]})]}),d[6]=s):s=d[6],s}function Hh(e){let t,n,r,i,l,d,c,p,m,h,f,g,x,b,v,j,w,_,k,S,T,I,E,$,A,D,z,M=(0,o.c)(51),{metadata:P}
3175=e,[R,O]=(0,s.useState)(!1),V=(0,s.useRef)(null),L=(0,s.useRef)(null),{t:F}=iJ(Ht);M[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>O(Hf),M[0]=t):t=M[0];let B=t;if(M[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>O(!1),r=()=>[V.current,L.current],M[1]=n,M[2]=r):(n=M[1],r=M[2]),(0,u.PR)(n,r),M[3]!==R?(i=e=>{"Escape"===e.key&&R&&O(!1)},M[3]=R,M[4]=i):i=M[4],(0,u.Pm)(i),P?.ejected!==!1)return null;M[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsx)(Hm,{}),M[5]=l):l=M[5],M[6]!==F?(d=F("create-link-info-popover.eyebrow-title"),M[6]=F,M[7]=d):d=M[7],M[8]!==d?(c=(0,a.jsx)(u.EY,{size:1,weight:"semibold",children:d}),M[8]=d,M[9]=c):c=M[9],M[10]!==F?(p=F("create-link-info-popover.eyebrow-badge"),M[10]=F,M[11]=p):p=M[11],M[12]!==p?(m=(0,a.jsx)(u.Ex,{fontSize:1,children:p}),M[12]=p,M[13]=m):m=M[13],M[14]!==c||M[15]!==m?(h=(0,a.jsxs)(u.so,{gap:1,align:"center",children:[c,m]}),M[14]=c,M[15]=m,M[16]=h):h=M[16],M[17]!==F?(f=F("create-link-info-popover.header"),M[17]=F,M[18]=f):f=M[18],M[19]!==f?(g=(0,a.jsx)(u.DZ,{size:2,children:f}),M[19]=f,M[20]=g):g=M[20],M[21]!==F?(x=F("create-link-info-popover.text"),M[21]=F,M[22]=x):x=M[22],M[23]!==x?(b=(0,a.jsx)(u.EY,{size:1,children:x}),M[23]=x,M[24]=b):b=M[24],M[25]===Symbol.for("react.memo_cache_sentinel")?(v=(0,a.jsx)(u.so,{flex:1,justify:"flex-end",children:(0,a.jsx)(Hp,{})}),M[25]=v):v=M[25],M[26]!==g||M[27]!==b?(j=(0,a.jsxs)(u.BJ,{space:4,children:[g,b,v]}),M[26]=g,M[27]=b,M[28]=j):j=M[28],M[29]!==j||M[30]!==h?(w=(0,a.jsxs)(u.Zp,{overflow:"hidden",radius:3,ref:V,children:[l,(0,a.jsxs)(u.BJ,{space:3,paddingX:4,paddingY:3,children:[h,j]})]}),M[29]=j,M[30]=h,M[31]=w):w=M[31];let N=w;return M[32]===Symbol.for("react.memo_cache_sentinel")?(_=(0,a.jsx)(u.EY,{size:0,weight:"medium",children:(0,a.jsx)(C.Eoh,{})}),M[32]=_):_=M[32],M[33]!==F?(k=F("studio-create-link-banner.text"),M[33]=F,M[34]=k):k=M[34],M[35]!==k?(S=(0,a.jsxs)(u.so,{gap:2,align:"center",children:[_,(0,a.jsx)(u.az,{children:(0,a.jsx)(u.EY,{size:1,weight:"medium",children:k})})]}),M[35]=k,M[36]=S):S=M[36],M[37]===Symbol.for("react.memo_cache_sentinel")?(T={width:320},M[37]=T):T=M[37],M[38]===Symbol.for("react.memo_cache_sentinel")?(I=["bottom","bottom-end","right-start","right","right-end"],M[38]=I):I=M[38],M[39]===Symbol.for("react.memo_cache_sentinel")?(E={marginBottom:"-0.5em",marginTop:"-0.5em"},M[39]=E):E=M[39],M[40]!==F?($=F("create-link-info.tooltip"),M[40]=F,M[41]=$):$=M[41],M[42]!==$?(A=(0,a.jsx)(y.$n,{ref:L,icon:C.YzR,mode:"bleed",onClick:B,style:E,tooltipProps:{content:$}}),M[42]=$,M[43]=A):A=M[43],M[44]!==R||M[45]!==N||M[46]!==A?(D=(0,a.jsx)(y.AM,{content:N,open:R,radius:3,style:T,tone:"default",placement:"bottom-start",fallbackPlacements:I,children:A}),M[44]=R,M[45]=N,M[46]=A,M[47]=D):D=M[47],M[48]!==S||M[49]!==D?(z=(0,a.jsxs)(u.so,{gap:1,align:"center",children:[S,D]}),M[48]=S,M[49]=D,M[50]=z):z=M[50],z}function Hf(e){return!e}function Hg(e){let t,n,r,i,l=(0,o.c)(8),{children:s}=e,{beta:d}=co(),u=Lq(),p=d?.create,m=!!d?.create?.startInCreateEnabled;return l[0]===Symbol.for("react.memo_cache_sentinel")?(n={documentLinkedBannerContent:Hh,documentLinkedActions:Hu},l[0]=n):n=l[0],l[1]!==u||l[2]!==p||l[3]!==m?(r={...p,startInCreateEnabled:m,appIdCache:u,components:n},l[1]=u,l[2]=p,l[3]=m,l[4]=r):r=l[4],t=r,l[5]!==s||l[6]!==t?(i=(0,a.jsx)(c.iS.Provider,{value:t,children:s}),l[5]=s,l[6]=t,l[7]=i):i=l[7],i}function HC(e){let t,n,r=(0,o.c)(4);return r[0]!==e?(t=e.renderDefault(e),r[0]=e,r[1]=t):t=r[1],r[2]!==t?(n=(0,a.jsx)(Hg,{children:t}),r[2]=t,r[3]=n):n=r[3],n}let Hy=aR(()=>({name:"sanity/create-integration",studio:{components:{layout:HC}},i18n:{bundles:[Hn]}})),Hx={publish:{actionName:"Publishing",badgeColor:"primary",badgeTone:"positive"},unpublish:{actionName:"Unpublishing",badgeColor:"danger",badgeTone:"critical"}},Hb={scheduled:{title:"Upcoming"},succeeded:{title:"Completed"},cancelled:{title:"Failed"}},Hv=Object.keys(Hb).filter(e=>!!e),Hj="This document has validation errors that should be resolved before its publish date.",Hw="https://www.sanity.io/blog/introducing-content-releases",H_={type:"scheduledPublishing"},Hk={used:!1,loading:!0},HS=new Map;function HT(e){let t,n,r,i=(0,o.c)(16),{children:l}=e,{enabled:s,isLoading:d,error:u}=ug("scheduledPublishing"),{scheduledPublishing:p}=lE(),m=p.enabled,h=p.__internal__workspaceEnabled;i[0]!==h||i[1]!==m?(t={explicitEnabled:h,isWorkspaceEnabled:m},i[0]=h,i[1]=m,i[2]=t):t=i[2];let f=function(e){let t,n=(0,o.c)(4),{explicitEnabled:r,isWorkspaceEnabled:i}=e,a=ee7(a7),{projectId:l,dataset:s}=lE(),d=`${l}-${s}`;if(!HS.get(d)){let e=(function(e){let{dataset:t,projectId:n}=e.config();return e.observable.request({uri:`/schedules/${n}/${t}?limit=1`,tag:"scheduled-publishing-used"}).pipe((0,E.T)(e=>({used:e.schedules?.length>0,loading:!1})),(0,M.W)(()=>(0,k.of)({used:!1,loading:!1})))})(a).pipe((0,Y.t)());HS.set(d,e)}e:{let e;if(r){let e;n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,k.of)({used:!0,loading:!1}),n[0]=e):e=n[0],t=e;break e}if(!i){let e;n[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,k.of)({used:!1,loading:!1}),n[1]=e):e=n[1],t=e;break e}n[2]!==d?(e=HS.get(d)||(0,k.of)(Hk),n[2]=d,n[3]=e):e=n[3],t=e}return(0,eH.J)(t,Hk)}(t);e:{let e;if(!m||d||u){let e;i[3]!==f?(e={enabled:!1,mode:null,hasUsedScheduledPublishing:f},i[3]=f,i[4]=e):e=i[4],n=e;break e}if(h){let e,t=s?"default":"upsell";i[5]!==f||i[6]!==t?(e={enabled:!0,mode:t,hasUsedScheduledPublishing:f}
3175,i[5]=f,i[6]=t,i[7]=e):e=i[7],n=e;break e}if(!f.used){let e;i[8]!==f?(e={enabled:!1,mode:null,hasUsedScheduledPublishing:f},i[8]=f,i[9]=e):e=i[9],n=e;break e}let t=s?"default":"upsell";i[10]!==f||i[11]!==t?(e={enabled:!0,mode:t,hasUsedScheduledPublishing:f},i[10]=f,i[11]=t,i[12]=e):e=i[12],n=e}let g=n;return i[13]!==l||i[14]!==g?(r=(0,a.jsx)(c.Ng.Provider,{value:g,children:l}),i[13]=l,i[14]=g,i[15]=r):r=i[15],r}function HI(){return(0,s.useContext)(c.Ng)}let HE=(0,g.I4)(u.dU)`
3176  .button-small {
3177    display: block;
3178  }
3179  .button-large {
3180    display: none;
3181  }
3182
3183  &[data-eq-min~='2'] {
3184    .button-small {
3185      display: none;
3186    }
3187    .button-large {
3188      display: block;
3189    }
3190  }
3191`,H$=e=>{let t,n,r,i,l=(0,o.c)(8),{description:s,title:d}=e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(u.EY,{size:2,children:(0,a.jsx)(C.YZv,{})}),l[0]=t):t=l[0],l[1]!==d?(n=(0,a.jsx)(u.EY,{size:1,weight:"semibold",children:d}),l[1]=d,l[2]=n):n=l[2],l[3]!==s?(r=s&&(0,a.jsx)(u.EY,{size:1,children:s}),l[3]=s,l[4]=r):r=l[4],l[5]!==n||l[6]!==r?(i=(0,a.jsx)(u.Zp,{overflow:"hidden",padding:4,radius:2,shadow:1,tone:"critical",children:(0,a.jsxs)(u.so,{align:"center",gap:4,children:[t,(0,a.jsxs)(u.cV,{space:2,children:[n,r]})]})}),l[5]=n,l[6]=r,l[7]=i):i=l[7],i},HA=()=>{let e,t,n,r,i,l=(0,o.c)(5);return l[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(u.EY,{size:2,children:(0,a.jsx)(C.YzR,{})}),l[0]=e):e=l[0],l[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(u.EY,{size:1,weight:"semibold",children:"Schedule Publishing is not enabled"}),l[1]=t):t=l[1],l[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsxs)(u.EY,{size:1,children:["We recommend using"," ",(0,a.jsx)("a",{target:"_blank",href:Hw,rel:"noreferrer",children:"Releases"}),"."]}),l[2]=n):n=l[2],l[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,a.jsxs)(u.EY,{size:1,children:["Scheduled Publishing is not enabled by default. It can be enabled in the config by setting ",(0,a.jsx)("code",{children:"scheduledPublishing.enabled = true"})]}),l[3]=r):r=l[3],l[4]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsx)(u.Zp,{overflow:"hidden",padding:4,radius:2,shadow:1,tone:"suggest",children:(0,a.jsxs)(u.so,{align:"center",gap:4,children:[e,(0,a.jsxs)(u.cV,{space:3,children:[t,(0,a.jsxs)(u.BJ,{space:3,marginTop:2,children:[n,r,(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)("a",{target:"_blank",href:"https://www.sanity.io/docs/scheduled-publishing",rel:"noreferrer",children:"Read the docs"})})]})]})]})}),l[4]=i):i=l[4],i},HD=(0,g.I4)(C.flY)(e=>{let{font:t}=(0,tZ.JW)(e.theme),{ascenderHeight:n,descenderHeight:r,lineHeight:i,iconSize:a}=t.text.sizes[0],o=(i-(n+r)-a)/2;return(0,g.AH)`
3192    &[data-sanity-icon] {
3193      color: var(--card-link-color);
3194      font-size: calc(${a} / 16 * 1rem);
3195      margin: ${(0,u.D0)(o)};
3196      margin-bottom: ${(0,u.D0)(o)};
3197    }
3198  `});function Hz(){let e,t,n,r,i,l,s=(0,o.c)(8),d=!((0,u.aY)()>=2);return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(C.sAQ,{}),s[0]=e):e=s[0],s[1]!==d?(t=(0,a.jsx)(u.EY,{hidden:d,children:e}),s[1]=d,s[2]=t):t=s[2],s[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(u.EY,{size:1,weight:"medium",children:"You are running both the new Releases and Scheduled Publishing"}),s[3]=n):n=s[3],s[4]===Symbol.for("react.memo_cache_sentinel")?(r={whiteSpace:"nowrap"},s[4]=r):r=s[4],s[5]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsx)(u.EY,{size:1,style:r,children:(0,a.jsxs)("a",{href:Hw,target:"_blank",rel:"noreferrer",children:["Read more "," ",(0,a.jsx)(HD,{})]})}),s[5]=i):i=s[5],s[6]!==t?(l=(0,a.jsx)(u.Zp,{padding:4,tone:"caution",width:"fill",children:(0,a.jsxs)(u.so,{gap:3,align:"center",justify:"center",children:[t,n,i]})}),s[6]=t,s[7]=l):l=s[7],l}let HM=()=>{},HP=HM(),HR=Object,HO=e=>e===HP,HV=(e,t)=>({...e,...t}),HL=new WeakMap,HF=0,HB=e=>{let t,n,r=typeof e,i=e&&e.constructor,a=i==Date;if(HR(e)!==e||a||i==RegExp)t=a?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=HL.get(e))return t;if(t=++HF+"~",HL.set(e,t),i==Array){for(t="@",n=0;n<e.length;n++)t+=HB(e[n])+",";HL.set(e,t)}if(i==HR){t="#";let r=HR.keys(e).sort();for(;!HO(n=r.pop());)HO(e[n])||(t+=n+":"+HB(e[n])+",");HL.set(e,t)}}return t},HN=new WeakMap,HY={},HH={},HZ="undefined",HU=typeof window!=HZ,Hq=typeof document!=HZ,HJ=(e,t)=>{let n=HN.get(e);return[()=>!HO(t)&&e.get(t)||HY,r=>{if(!HO(t)){let i=e.get(t);t in HH||(HH[t]=i),n[5](t,HV(i,r),i||HY)}},n[6],()=>!HO(t)&&t in HH?HH[t]:!HO(t)&&e.get(t)||HY]},HW=!0,[HK,HG]=HU&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[HM,HM],HX={initFocus:e=>(Hq&&document.addEventListener("visibilitychange",e),HK("focus",e),()=>{Hq&&document.removeEventListener("visibilitychange",e),HG("focus",e)}),initReconnect:e=>{let t=()=>{HW=!0,e()},n=()=>{HW=!1};
3198return HK("online",t),HK("offline",n),()=>{HG("online",t),HG("offline",n)}}},HQ=!s.useId,H1=!HU||"Deno"in window,H2=H1?s.useEffect:s.useLayoutEffect,H5="u">typeof navigator&&navigator.connection,H0=!H1&&H5&&(["slow-2g","2g"].includes(H5.effectiveType)||H5.saveData),H7=e=>{if("function"==typeof e)try{e=e()}catch{e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?HB(e):"",t]},H3=0,H8=()=>++H3;var H4={ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function H6(...e){let[t,n,r,i]=e,a=HV({populateCache:!0,throwOnError:!0},"boolean"==typeof i?{revalidate:i}:i||{}),o=a.populateCache,l=a.rollbackOnError,s=a.optimisticData,d=a.throwOnError;if("function"==typeof n){let e=[];for(let r of t.keys())!/^\$(inf|sub)\$/.test(r)&&n(t.get(r)._k)&&e.push(r);return Promise.all(e.map(c))}return c(n);async function c(n){let[i]=H7(n);if(!i)return;let[c,u]=HJ(t,i),[p,m,h,f]=HN.get(t),g=()=>{let e=p[i];return("function"==typeof a.revalidate?a.revalidate(c().data,n):!1!==a.revalidate)&&(delete h[i],delete f[i],e&&e[0])?e[0](2).then(()=>c().data):c().data};if(e.length<3)return g();let C=r,y,x=H8();m[i]=[x,0];let b=!HO(s),v=c(),j=v.data,w=v._c,_=HO(w)?j:w;if(b&&u({data:s="function"==typeof s?s(_,j):s,_c:_}),"function"==typeof C)try{C=C(_)}catch(e){y=e}if(C&&"function"==typeof C.then)if(C=await C.catch(e=>{y=e}),x!==m[i][0]){if(y)throw y;return C}else{let e;y&&b&&(e=y,"function"==typeof l?l(e):!1!==l)&&(o=!0,u({data:_,_c:HP}))}if(o&&!y&&("function"==typeof o?u({data:o(C,_),error:HP,_c:HP}):u({data:C,error:HP,_c:HP})),m[i][1]=H8(),Promise.resolve(g()).then(()=>{u({_c:HP})}),y){if(d)throw y;return}return C}}let H9=(e,t)=>{for(let n in e)e[n][0]&&e[n][0](t)},[Ze,Zt]=((e,t)=>{if(!HN.has(e)){let n=HV(HX,t),r={},i=H6.bind(HP,e),a=HM,o={},l=(e,t)=>{let n=o[e]||[];return o[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},s=(t,n,r)=>{e.set(t,n);let i=o[t];if(i)for(let e of i)e(n,r)},d=()=>{if(!HN.has(e)&&(HN.set(e,[r,{},{},{},i,s,l]),!H1)){let t=n.initFocus(setTimeout.bind(HP,H9.bind(HP,r,0))),i=n.initReconnect(setTimeout.bind(HP,H9.bind(HP,r,1)));a=()=>{t&&t(),i&&i(),HN.delete(e)}}};return d(),[e,i,d,a]}return[e,HN.get(e)[4]]})(new Map),Zn=HV({onLoadingSlow:HM,onSuccess:HM,onError:HM,onErrorRetry:(e,t,n,r,i)=>{let a=n.errorRetryCount,o=i.retryCount,l=~~((Math.random()+.5)*(1<<(o<8?o:8)))*n.errorRetryInterval;!HO(a)&&o>a||setTimeout(r,l,i)},onDiscarded:HM,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:H0?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:H0?5e3:3e3,compare:(e,t)=>HB(e)==HB(t),isPaused:()=>!1,cache:Ze,mutate:Zt,fallback:{}},{isOnline:()=>HW,isVisible:()=>{let e=Hq&&document.visibilityState;return HO(e)||"hidden"!==e}}),Zr=(0,s.createContext)({}),Zi=HU&&window.__SWR_DEVTOOLS_USE__,Za=(Zi?window.__SWR_DEVTOOLS_USE__:[]).concat(e=>(t,n,r)=>e(t,n&&((...e)=>{let[r]=H7(t),[,,,i]=HN.get(Ze);if(r.startsWith("$inf$"))return n(...e);let a=i[r];return HO(a)?n(...e):(delete i[r],a)}),r));Zi&&(window.__SWR_DEVTOOLS_REACT__=s);let Zo=s.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),Zl={dedupe:!0},Zs=(i=(e,t,n)=>{let{cache:r,compare:i,suspense:a,fallbackData:o,revalidateOnMount:l,revalidateIfStale:d,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:p,keepPreviousData:m}=n,[h,f,g,C]=HN.get(r),[y,x]=H7(e),b=(0,s.useRef)(!1),v=(0,s.useRef)(!1),j=(0,s.useRef)(y),w=(0,s.useRef)(t),_=(0,s.useRef)(n),k=()=>_.current.isVisible()&&_.current.isOnline(),[S,T,I,E]=HJ(r,y),$=(0,s.useRef)({}).current,A=HO(o)?n.fallback[y]:o,D=(e,t)=>{for(let n in $)if("data"===n){if(!i(e[n],t[n])&&(!HO(e[n])||!i(B,t[n])))return!1}else if(t[n]!==e[n])return!1;return!0},z=(0,s.useMemo)(()=>
3198{let e=!!y&&!!t&&(HO(l)?!_.current.isPaused()&&!a&&(!!HO(d)||d):l),n=t=>{let n=HV(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=S(),i=E(),o=n(r),s=r===i?o:n(i),c=o;return[()=>{let e=n(S());return D(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>s]},[r,y]),M=(0,n$.useSyncExternalStore)((0,s.useCallback)(e=>I(y,(t,n)=>{D(n,t)||e()}),[r,y]),z[0],z[1]),P=!b.current,R=h[y]&&h[y].length>0,O=M.data,V=HO(O)?A:O,L=M.error,F=(0,s.useRef)(V),B=m?HO(O)?F.current:O:V,N=(!R||!!HO(L))&&(P&&!HO(l)?l:!_.current.isPaused()&&(a?!HO(V)&&d:HO(V)||d)),Y=!!(y&&t&&P&&N),H=HO(M.isValidating)?Y:M.isValidating,Z=HO(M.isLoading)?Y:M.isLoading,U=(0,s.useCallback)(async e=>{let t=w.current;if(!y||!t||v.current||_.current.isPaused())return!1;let r,a,o=!0,l=e||{},s=!g[y]||!l.dedupe,d=()=>HQ?!v.current&&y===j.current&&b.current:y===j.current,c={isValidating:!1,isLoading:!1},u=()=>{T(c)},p=()=>{let e=g[y];e&&e[1]===a&&delete g[y]},m={isValidating:!0};HO(S().data)&&(m.isLoading=!0);try{if(s&&(T(m),n.loadingTimeout&&HO(S().data)&&setTimeout(()=>{o&&d()&&_.current.onLoadingSlow(y,n)},n.loadingTimeout),g[y]=[t(x),H8()]),[r,a]=g[y],r=await r,s&&setTimeout(p,n.dedupingInterval),!g[y]||g[y][1]!==a)return s&&d()&&_.current.onDiscarded(y),!1;c.error=HP;let e=f[y];if(!HO(e)&&(a<=e[0]||a<=e[1]||0===e[1]))return u(),s&&d()&&_.current.onDiscarded(y),!1;let l=S().data;c.data=i(l,r)?l:r,s&&d()&&_.current.onSuccess(r,y,n)}catch(n){p();let e=_.current,{shouldRetryOnError:t}=e;e.isPaused()||(c.error=n,s&&d()&&(e.onError(n,y,e),(!0===t||"function"==typeof t&&t(n))&&(!_.current.revalidateOnFocus||!_.current.revalidateOnReconnect||k())&&e.onErrorRetry(n,y,e,e=>{let t=h[y];t&&t[0]&&t[0](H4.ERROR_REVALIDATE_EVENT,e)},{retryCount:(l.retryCount||0)+1,dedupe:!0})))}return o=!1,u(),!0},[y,r]),q=(0,s.useCallback)((...e)=>H6(r,j.current,...e),[]);if(H2(()=>{w.current=t,_.current=n,HO(O)||(F.current=O)}),H2(()=>{if(!y)return;let e=U.bind(HP,Zl),t=0,n=((e,t,n)=>{let r=t[e]||(t[e]=[]);return r.push(n),()=>{let e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}})(y,h,(n,r={})=>{if(n==H4.FOCUS_EVENT){let n=Date.now();_.current.revalidateOnFocus&&n>t&&k()&&(t=n+_.current.focusThrottleInterval,e())}else if(n==H4.RECONNECT_EVENT)_.current.revalidateOnReconnect&&k()&&e();else{if(n==H4.MUTATE_EVENT)return U();if(n==H4.ERROR_REVALIDATE_EVENT)return U(r)}});return v.current=!1,j.current=y,b.current=!0,T({_k:x}),N&&(HO(V)||H1?e():(e=>HU&&typeof window.requestAnimationFrame!=HZ?window.requestAnimationFrame(e):setTimeout(e,1))(e)),()=>{v.current=!0,n()}},[y]),H2(()=>{let e;function t(){let t="function"==typeof c?c(S().data):c;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!S().error&&(u||_.current.isVisible())&&(p||_.current.isOnline())?U(Zl).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[c,u,p,y]),(0,s.useDebugValue)(B),a&&HO(V)&&y){if(!HQ&&H1)throw Error("Fallback data is required when using suspense in SSR.");w.current=t,_.current=n,v.current=!1;let e=C[y];if(HO(e)||Zo(q(e)),HO(L)){let e=U(Zl);HO(B)||(e.status="fulfilled",e.value=!0),Zo(e)}else throw L}return{mutate:q,get data(){return $.data=!0,B},get error(){return $.error=!0,L},get isValidating(){return $.isValidating=!0,H},get isLoading(){return $.isLoading=!0,Z}}},function(...e){let t=HV(Zn,(0,s.useContext)(Zr)),[n,r,a]="function"==typeof e[1]?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],o=((e,t)=>{let n=HV(e,t);if(t){let{use:r,fallback:i}=e,{use:a,fallback:o}=t;r&&a&&(n.use=r.concat(a)),i&&o&&(n.fallback=HV(i,o))}return n})(t,a),l=i,{use:d}=o,c=(d||[]).concat(Za);for(let e=c.length;e--;)l=c[e](l);return l(n,r||o.fetcher||null,o)});function Zd(e){return e?.executedAt||e?.executeAt}function Zc({reverseOrder:e}={reverseOrder:!1}){return function(t,n){let r=Zd(t),i=Zd(n);return r===i?0:null===r?1:null===i?-1:(r>i?1:-1)*(e?-1:1)}}let Zu=e=>{let t,n,r,i,l,s=(0,o.c)(10),{body:d,title:c}=e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(C.CTc,{}),s[0]=t):t=s[0],s[1]!==c?(n=c&&(0,a.jsx)(u.EY,{size:2,weight:"semibold",children:c}),s[1]=c,s[2]=n):n=s[2],s[3]!==n?(r=(0,a.jsxs)(u.cV,{space:2,children:[t,n]}),s[3]=n,s[4]=r):r=s[4],s[5]!==d?(i=d&&(0,a.jsx)(u.EY,{size:1,children:d}),s[5]=d,s[6]=i):i=s[6],s[7]!==r||s[8]!==i?(l=(0,a.jsxs)(u.BJ,{paddingY:1,space:3,children:[r,i]}),s[7]=r,s[8]=i,s[9]=l):l=s[9],l};function Zp(e){let t;return"object"==typeof e&&e&&"statusCode"in e&&"response"in e?t=403===e.response.statusCode?"Forbidden. Please check that your project has access to Scheduled Publishing.":e.message:(e instanceof Error&&(t=e.message),t=String(e)),t}let Zm=so("useScheduleOperation"),Zh={create:"scheduleCreate",delete:"scheduleDelete",deleteMultiple:"scheduleDeleteMultiple",publish:"schedulePublish",update:"scheduleUpdate"};function Zf(e,t){return`${t} ${e}${1===t?"":"s"}`}let Zg=(e,t)=>
3198new CustomEvent(e,t);function ZC(){let e=(0,p.dj)(),{formatDateTz:t}=sh({type:"scheduledPublishing"}),n=function(){let e,t,n=(0,o.c)(3);n[0]===Symbol.for("react.memo_cache_sentinel")?(e={apiVersion:"2022-09-01"},n[0]=e):e=n[0];let r=ee7(e);return n[1]!==r?(t=function(e){let{dataset:t,projectId:n}=e.config();function r({scheduleId:r}){return Zm("_delete:",r),e.request({method:"DELETE",uri:`/schedules/${n}/${t}/${r}`})}return{create:function({date:r,documentId:i}){Zm("_create:",i);let a=new Date(r);return a.setSeconds(0),a.setMilliseconds(0),e.request({body:{documents:[{documentId:i}],executeAt:a,name:a},method:"POST",uri:`/schedules/${n}/${t}`})},delete:r,deleteMultiple:function({scheduleIds:e}){return Zm("_deleteMultiple:",e),Promise.allSettled(e.map(e=>r({scheduleId:e})))},publish:function({scheduleId:r}){return Zm("_publish:",r),e.request({method:"POST",uri:`/schedules/${n}/${t}/${r}/publish`})},update:function({documentSchedule:r,scheduleId:i}){return Zm("_update:",i,r),e.request({body:r,method:"PATCH",uri:`/schedules/${n}/${t}/${i}`})}}}(r),n[1]=r,n[2]=t):t=n[2],t}();return{createSchedule:async function({date:r,displayToast:i=!0,documentId:o}){try{let l=await n.create({date:r,documentId:o});window.dispatchEvent(Zg(Zh.create,{detail:{date:r,documentId:o}})),i&&l?.executeAt&&e.push({closable:!0,description:(0,a.jsx)(Zu,{body:t({date:new Date(l.executeAt),includeTimeZone:!0,prefix:"Publishing on "}),title:"Schedule created"}),duration:15e3,status:"success"})}catch(t){i&&e.push({closable:!0,description:(0,a.jsx)(Zu,{body:Zp(t),title:"Unable to create schedule"}),duration:15e3,status:"error"})}},deleteSchedule:async function({displayToast:t=!0,schedule:r}){try{await n.delete({scheduleId:r?.id}),window.dispatchEvent(Zg(Zh.delete,{detail:{scheduleId:r?.id}})),t&&e.push({closable:!0,description:(0,a.jsx)(Zu,{title:"Schedule deleted"}),status:"success"})}catch(n){t&&e.push({closable:!0,description:(0,a.jsx)(Zu,{body:Zp(n),title:"Unable to delete schedule"}),duration:15e3,status:"error"})}},deleteSchedules:async function({displayToast:t=!0,schedules:r}){try{let i=r.map(e=>e.id),{fulfilledIds:o,rejectedReasons:l}=(await n.deleteMultiple({scheduleIds:i})).reduce((e,t,n)=>("fulfilled"===t.status&&e.fulfilledIds.push(r[n].id),"rejected"===t.status&&e.rejectedReasons.push(`[${r[n].id}]: ${t.reason}`),e),{fulfilledIds:[],rejectedReasons:[]}),s=o.length,d=l.length;o?.length>0&&window.dispatchEvent(Zg(Zh.deleteMultiple,{detail:{scheduleIds:o}})),t&&(o?.length>0&&e.push({closable:!0,description:(0,a.jsx)(Zu,{title:`${Zf("schedule",s)} deleted`}),status:"success"}),l?.length>0&&e.push({closable:!0,description:(0,a.jsx)(Zu,{body:l?.toString(),title:`Unable to delete ${Zf("schedule",d)}`}),duration:15e3,status:"error"}))}catch(n){t&&e.push({closable:!0,description:(0,a.jsx)(Zu,{body:Zp(n),title:"Unable to delete schedules"}),duration:15e3,status:"error"})}},publishSchedule:async function({displayToast:t=!0,schedule:r}){try{let i=r.id;await n.publish({scheduleId:i}),window.dispatchEvent(Zg(Zh.publish,{detail:{scheduleId:i}})),t&&e.push({closable:!0,description:(0,a.jsx)(Zu,{title:"Document published"}),status:"success"})}catch(n){t&&e.push({closable:!0,description:(0,a.jsx)(Zu,{body:Zp(n),title:"Unable to publish schedule"}),duration:15e3,status:"error"})}},updateSchedule:async function({date:r,displayToast:i=!0,scheduleId:o}){try{await n.update({documentSchedule:{executeAt:r},scheduleId:o}),window.dispatchEvent(Zg(Zh.update,{detail:{date:r,scheduleId:o}})),i&&e.push({closable:!0,description:(0,a.jsx)(Zu,{body:t({date:new Date(r),includeTimeZone:!0,prefix:"Publishing on "}),title:"Schedule updated"}),duration:15e3,status:"success"})}catch(t){i&&e.push({closable:!0,description:(0,a.jsx)(Zu,{body:Zp(t),title:"Unable to update schedule"}),duration:15e3,status:"error"})}}}}let Zy=[];function Zx(e){let t,n,r,i,a,l,d,c,u,p,m,h,f,g,C,y=(0,o.c)(32);y[0]!==e?(t=void 0===e?{}:e,y[0]=e,y[1]=t):t=y[1];let{documentId:x,state:b}=t,{mode:v,enabled:j}=HI(),w="default"===v?1e4:void 0,_="default"===v,k="default"===v;y[2]!==w||y[3]!==_||y[4]!==k?(r={refreshWhenHidden:!1,refreshWhenOffline:!1,revalidateOnFocus:!1,shouldRetryOnError:!1,refreshInterval:w,revalidateIfStale:_,revalidateOnReconnect:k},y[2]=w,y[3]=_,y[4]=k,y[5]=r):r=y[5],n=r;let S=function(){let e,t=(0,o.c)(1);t[0]===Symbol.for("react.memo_cache_sentinel")?(e={apiVersion:"2022-09-01"},t[0]=e):e=t[0];let{dataset:n,projectId:r}=ee7(e).config();return`/schedules/${r}/${n}`}();y[6]!==x||y[7]!==b?(a={documentIds:x,state:b},y[6]=x,y[7]=b,y[8]=a):a=y[8],y[9]!==a||y[10]!==S?(l={params:a,url:S},y[9]=a,y[10]=S,y[11]=l):l=y[11];let T=function(e){let t,n,r=(0,o.c)(5);r[0]===Symbol.for("react.memo_cache_sentinel")?(t={apiVersion:"2022-09-01"},r[0]=t):t=r[0];let i=ee7(t);return r[1]!==i||r[2]!==e.params||r[3]!==e.url?(n=()=>i.request({query:e.params,method:"GET",uri:e.url}),r[1]=i,r[2]=e.params,r[3]=e.url,r[4]=n):n=r[4],n}(i=l),{data:I,error:E,mutate:$}=Zs(j?i:null,T,n);y[12]!==$?(d=e=>{$(t=>({schedules:t?.schedules?.filter(t=>t.id!==e.detail.scheduleId)}),!0)},y[12]=$,y[13]=d):d=y[13];let A=d;y[14]!==$?(c=e=>{$(t=>({schedules:t?.schedules?.filter(t=>!e.detail.scheduleIds.includes(t.id))}),!0)},y[14]=$,y[15]=c):c=y[15];let D=c;y[16]!==$?(u=e=>{$(t=>{let n=t?.schedules||[],r=n.findIndex(t=>t.id===e.detail.scheduleId);return{schedules:[...n.slice(0,r),{...n[r],executeAt:new Date().toISOString(),state:"succeeded"},...n.slice(r+1)]}},!0)},y[16]=$,y[17]=u):u=y[17];let z=u;y[18]!==$?(p=e=>{$(t=>{let n=t?.schedules||[],r=n.findIndex(t=>t.id===e.detail.scheduleId);return{schedules:[...n.slice(0,r),{...n[r],executeAt:e.detail.date},...n.slice(r+1)]}},!0)},y[18]=$,y[19]=p):p=y[19];let M=p;y[20]!==A||y[21]!==D||y[22]!==z||y[23]!==M?(m=()=>(window.addEventListener(Zh.delete,A),window.addEventListener(Zh.deleteMultiple,D),window.addEventListener(Zh.publish,z),window.addEventListener(Zh.update,M),()=>{window.removeEventListener(Zh.delete,A),window.removeEventListener(Zh.deleteMultiple,D),window.removeEventListener(Zh.publish,z),window.removeEventListener(Zh.update,M)}),h=[A,D,z,M],y[20]=A,y[21]=D,y[22]=z,y[23]=M,y[24]=m,y[25]=h):(m=y[24],h=y[25]),(0,s.useEffect)(m,h),y[26]!==I?.schedules?(g=I?.schedules?.sort(Zc()),y[26]=I?.schedules,y[27]=g):g=y[27],f=g;let P=!E&&!I,R=f||Zy;return y[28]!==E||y[29]!==P||y[30]!==R?(C={error:E,isInitialLoading:P,schedules:R},y[28]=E,y[29]=P,y[30]=R,y[31]=C):C=y[31],C}let Zb=(0,nE.q)("sanity/_singletons/context/schedules",void 0),Zv=[];function Zj(e){let t,n,r,i,l,d,c,u,p=(0,o.c)(22),{children:m,value:h}
3198=e,[f,g]=(0,s.useState)(h.sortBy||"executeAt");p[0]===Symbol.for("react.memo_cache_sentinel")?(t={type:"scheduledPublishing"},p[0]=t):t=p[0];let{utcToCurrentZoneDate:C}=sh(t);p[1]!==C?(n=e=>function(t){let n=Zd(t);if(!n)return!1;let r=C(new Date(n));return(0,ts.A)(r,e)},p[1]=C,p[2]=n):n=p[2];let y=n;p[3]!==y||p[4]!==f||p[5]!==h.scheduleState||p[6]!==h.schedules||p[7]!==h.selectedDate?(i=h.schedules.filter(e=>h.selectedDate?y(h.selectedDate)(e):(function(e){return function(t){return t.state===e}})(h.scheduleState)(e)).sort((e,t)=>"createdAt"===f?e[f]<t[f]?1:-1:"executeAt"===f?Zc({reverseOrder:!("scheduled"===h.scheduleState||h.selectedDate)})(e,t):1)||[],p[3]=y,p[4]=f,p[5]=h.scheduleState,p[6]=h.schedules,p[7]=h.selectedDate,p[8]=i):i=p[8],r=i,p[9]!==y||p[10]!==h.schedules?(l=e=>h.schedules.filter(y(e)).sort(Zc()),p[9]=y,p[10]=h.schedules,p[11]=l):l=p[11];let x=l,b=h.schedules||Zv;return p[12]!==r||p[13]!==x||p[14]!==f||p[15]!==b||p[16]!==h.scheduleState||p[17]!==h.selectedDate?(c={activeSchedules:r,schedules:b,schedulesByDate:x,scheduleState:h.scheduleState,selectedDate:h.selectedDate,setSortBy:g,sortBy:f},p[12]=r,p[13]=x,p[14]=f,p[15]=b,p[16]=h.scheduleState,p[17]=h.selectedDate,p[18]=c):c=p[18],d=c,p[19]!==m||p[20]!==d?(u=(0,a.jsx)(Zb.Provider,{value:d,children:m}),p[19]=m,p[20]=d,p[21]=u):u=p[21],u}function Zw(){let e=(0,s.useContext)(Zb);if(void 0===e)throw Error("useSchedules must be used within a SchedulesProvider");return e}function Z_(e,t){let n,r=(0,o.c)(5);if(r[0]!==t||r[1]!==e){let i;r[3]!==t?(i=e=>e.state===t,r[3]=t,r[4]=i):i=r[4],n=e.filter(i),r[0]=t,r[1]=e,r[2]=n}else n=r[2];return n}let Zk=e=>{let t,n,r,i,l,s=(0,o.c)(16),{selected:d,schedules:c,state:p}=e,m=Z_(c,p).length,h=m>0,f="cancelled"===p;s[0]!==p?(t={state:{state:p}},s[0]=p,s[1]=t):t=s[1];let{href:g,onClick:C}=(0,tq.DN)(t),y=f?"critical":"default",x=Hb[p];return s[2]!==x.title?(n=(0,a.jsx)(u.EY,{size:1,weight:"medium",children:x.title}),s[2]=x.title,s[3]=n):n=s[3],s[4]!==m||s[5]!==h?(r=h&&(0,a.jsx)(u.EY,{size:0,children:m}),s[4]=m,s[5]=h,s[6]=r):r=s[6],s[7]!==n||s[8]!==r?(i=(0,a.jsxs)(u.so,{gap:2,align:"center",children:[n,r]}),s[7]=n,s[8]=r,s[9]=i):i=s[9],s[10]!==g||s[11]!==C||s[12]!==d||s[13]!==y||s[14]!==i?(l=(0,a.jsx)(u.$n,{as:"a",href:g,mode:"bleed",onClick:C,selected:d,tone:y,padding:2,children:i}),s[10]=g,s[11]=C,s[12]=d,s[13]=y,s[14]=i,s[15]=l):l=s[15],l},ZS=e=>{let t,n,r,i,l,s,d,c,p,m,h=(0,o.c)(26),{onClearDate:f,selectedDate:g}=e,{navigate:x}=(0,tq.rd)(),{schedules:b,scheduleState:v}=Zw();h[0]!==x?(t=e=>{x(e)},h[0]=x,h[1]=t):t=h[1];let j=t,w=Z_(b,v);return h[2]===Symbol.for("react.memo_cache_sentinel")?(n=["block","block","none"],h[2]=n):n=h[2],h[3]!==f||h[4]!==g?(r=g&&(0,a.jsx)(y.$n,{iconRight:C.USm,onClick:f,text:(0,ty.A)(g,"d MMMM yyyy"),tone:"primary"}),h[3]=f,h[4]=g,h[5]=r):r=h[5],h[6]!==w?.length||h[7]!==j||h[8]!==v?(i=v&&(0,a.jsx)(y.IU,{button:(0,a.jsx)(y.$n,{iconRight:C.wBL,mode:"ghost",text:`${Hb[v].title} (${w?.length||0})`,tone:"default"}),id:"state",menu:(0,a.jsx)(u.W1,{style:{minWidth:"175px"},children:Hv.map(e=>(0,a.jsx)(y.Dr,{iconRight:e===v?C.Nrt:void 0,onClick:j.bind(void 0,{state:e}),text:Hb[e].title},e))}),placement:"bottom"}),h[6]=w?.length,h[7]=j,h[8]=v,h[9]=i):i=h[9],h[10]!==r||h[11]!==i?(l=(0,a.jsxs)(u.az,{display:n,children:[r,i]}),h[10]=r,h[11]=i,h[12]=l):l=h[12],h[13]===Symbol.for("react.memo_cache_sentinel")?(s=["none","none","block"],h[13]=s):s=h[13],h[14]!==f||h[15]!==g?(d=g&&(0,a.jsx)(y.$n,{iconRight:C.USm,onClick:f,text:(0,ty.A)(g,"d MMMM yyyy"),tone:"primary"}),h[14]=f,h[15]=g,h[16]=d):d=h[16],h[17]!==v||h[18]!==b?(c=v&&(0,a.jsx)(u.so,{gap:2,children:Hv.map(e=>(0,a.jsx)(Zk,{schedules:b,selected:v===e,state:e},e))}),h[17]=v,h[18]=b,h[19]=c):c=h[19],h[20]!==d||h[21]!==c?(p=(0,a.jsxs)(u.az,{display:s,children:[d,c]}),h[20]=d,h[21]=c,h[22]=p):p=h[22],h[23]!==l||h[24]!==p?(m=(0,a.jsxs)(a.Fragment,{children:[l,p]}),h[23]=l,h[24]=p,h[25]=m):m=h[25],m},ZT=(0,eQ.g_)({name:"Upsell Dialog Viewed",version:1,description:"User viewed the upsell dialog"}),ZI=(0,eQ.g_)({name:"Upsell Dialog Dismissed",version:1,description:"User dismissed the upsell dialog"}),ZE=(0,eQ.g_)({name:"Upsell Dialog Upgrade CTA Clicked",version:1,description:'User clicked the "Upgrade" CTA in the upsell dialog'}),Z$=(0,eQ.g_)({name:"Upsell Dialog Learn More CTA Clicked",version:1,description:'User clicked the "Learn More" CTA in the upsell dialog'}),ZA="scheduled_publishing",ZD={interpolate:/{{([\s\S]+?)}}/g},Zz="www.sanity.io";function ZM(e){let t,n,r,i,l,d,u,p,m,h,f,g,C=(0,o.c)(31),[y,x]=(0,s.use
3198State)(!1),[b,v]=(0,s.useState)(null),j=kg(),w=(0,e5.Jr)(),_=ee7(a7);C[0]!==w?(n={dialogSecondaryClicked:()=>w.log(Z$,{feature:ZA,type:"modal"}),dialogPrimaryClicked:()=>w.log(ZE,{feature:ZA,type:"modal"}),panelViewed:e=>w.log(ZT,{feature:ZA,type:"inspector",source:e}),panelDismissed:()=>w.log(ZI,{feature:ZA,type:"inspector"}),panelPrimaryClicked:()=>w.log(ZE,{feature:ZA,type:"inspector"}),panelSecondaryClicked:()=>w.log(Z$,{feature:ZA,type:"inspector"})},C[0]=w,C[1]=n):n=C[1],t=n,C[2]!==t?(r=()=>{t.dialogPrimaryClicked()},C[2]=t,C[3]=r):r=C[3];let k=r;C[4]!==t?(i=()=>{t.dialogSecondaryClicked()},C[4]=t,C[5]=i):i=C[5];let S=i;C[6]!==w?(l=()=>{x(!1),w.log(ZI,{feature:ZA,type:"modal"})},C[6]=w,C[7]=l):l=C[7];let T=l;C[8]!==_.observable||C[9]!==j?(d=()=>{let e=_.observable.request({uri:"/journey/scheduled-publishing"}).subscribe({next:e=>{if(e)try{let t=nv(e.ctaButton.url,ZD);e.ctaButton.url=t({baseUrl:Zz,projectId:j});let n=nv(e.secondaryButton.url,ZD);e.secondaryButton.url=n({baseUrl:Zz,projectId:j}),v(e)}catch{}},error:ZP});return()=>{e.unsubscribe()}},C[8]=_.observable,C[9]=j,C[10]=d):d=C[10],C[11]!==_||C[12]!==j?(u=[_,j],C[11]=_,C[12]=j,C[13]=u):u=C[13],(0,s.useEffect)(d,u),C[14]!==w?(p=e=>{x(!0),w.log(ZT,{feature:ZA,type:"modal",source:e})},C[14]=w,C[15]=p):p=C[15];let I=p;return C[16]!==I||C[17]!==t||C[18]!==b||C[19]!==y?(h={upsellDialogOpen:y,handleOpenDialog:I,upsellData:b,telemetryLogs:t},C[16]=I,C[17]=t,C[18]=b,C[19]=y,C[20]=h):h=C[20],m=h,C[21]!==T||C[22]!==k||C[23]!==S||C[24]!==b||C[25]!==y?(f=b&&y&&(0,a.jsx)(yk,{data:b,onClose:T,onPrimaryClick:k,onSecondaryClick:S}),C[21]=T,C[22]=k,C[23]=S,C[24]=b,C[25]=y,C[26]=f):f=C[26],C[27]!==m||C[28]!==e.children||C[29]!==f?(g=(0,a.jsxs)(c.Zk.Provider,{value:m,children:[e.children,f]}),C[27]=m,C[28]=e.children,C[29]=f,C[30]=g):g=C[30],g}function ZP(){}function ZR(){return(0,s.useContext)(c.Zk)}let ZO=e=>{let t,n,r,i,l,s,d,c,u,p,m,h,f,g,C=(0,o.c)(15);return C[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)("path",{d:"M54 26C54 28.7614 49.0751 31 43 31C36.9249 31 32 28.7614 32 26C32 23.2386 36.9249 7 43 7C49.0751 7 54 23.2386 54 26Z",stroke:"#7B8CA8",strokeWidth:"1.2"}),n=(0,a.jsx)("path",{d:"M65 71.5V57M65 71.5L60.5789 69.0132M65 71.5L60.5789 73.9868M65 57L57 52.5L54 54.1875M65 57V42.5M65 57L57 47M65 57L58.1586 60.8483M65 57L60.5789 67.5M65 42.5L57 38L54 39.6875M65 42.5L57 47M65 42.5V27.5M57 47L65 27.5M57 47L54 39.6875M57 47L54 45.3125M57 47L54 50.75M57 23L65 27.5M57 23L54 24.6875V39.6875M57 23V60M65 27.5L57 32L54 30.3125",stroke:"#7B8CA8",strokeWidth:"1.2"}),s=(0,a.jsx)("path",{d:"M54 76C54 78.7614 49.0751 81 43 81C36.9249 81 32 78.7614 32 76M54 76H60.5V63L54 57M54 76V57M32 76H25V63L32 57M32 76V57M32 26V57M54 26V57M54 45C54 47.7614 49.0751 50 43 50V35C49.0751 35 54 32.7614 54 30",stroke:"#7B8CA8",strokeWidth:"1.2"}),d=(0,a.jsx)("path",{d:"M43 45.5701H44.8976L45.8465 43.1981L46.9679 42.7335L49.3162 43.7399L50.658 42.3981L49.6516 40.0499L50.1161 38.9284L52.4882 37.9795V36.0819L50.1161 35.1331L49.6516 34.0116M47.1334 34.9653C47.5197 35.5597 47.7441 36.269 47.7441 37.0307C47.7441 39.1268 46.0449 40.826 43.9488 40.826C43.6212 40.826 43.3033 40.7845 43 40.7064",stroke:"#7B8CA8",strokeWidth:"1.2",strokeLinejoin:"round"}),c=(0,a.jsx)("path",{d:"M63.5464 78.6739L64.9606 78.0321L67.4355 78.5135L68.6174 78.2913L69.6174 77.1566H71.6174L72.6174 78.2913L73.7994 78.5135L76.2743 78.0321L77.6885 78.6739M63.5464 78.6739L64.607 79.7972L64.1174 80.3336L63.5464 80.4373M63.5464 78.6739V80.4373M77.6885 78.6739L76.6278 79.7972L77.1174 80.3336L77.6885 80.4373M77.6885 78.6739V80.4373M63.5464 80.4373L61.6174 80.7875V81.6952L64.1174 82.1491L64.607 82.6855L63.5464 83.8088L64.9606 84.4506L67.4355 83.9693L68.6174 84.1915L69.6174 85.3261H71.6174L72.6174 84.1915L73.7994 83.9693L76.2743 84.4506L77.6885 83.8088L76.6278 82.6855L77.1174 82.1491L79.6174 81.6952V80.7875L77.6885 80.4373",stroke:"#7B8CA8",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),u=(0,a.jsx)("path",{d:"M79.6174 81.4647V84.7162L77.6885 85.0664M76.2743 87.4716L77.6885 86.8298V85.0664M76.2743 87.4716L73.7994 86.9902L72.6174 87.2124L71.6174 88.3471M76.2743 87.4716V84.7162M61.6174 81.4647V84.7162L63.5464 85.0664M71.6174 88.3471H69.6174M71.6174 88.3471V85.3261M69.6174 88.3471L68.6174 87.2124L67.4355 86.9902L64.9606 87.4716M69.6174 88.3471V85.3261M64.9606 87.4716L64.2535 87.1507L63.5464 86.8298V85.0664M64.9606 87.4716V84.6825M63.5464 84.039V85.0664M77.6885 84.039V85.0664",stroke:"#7B8CA8",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),p=(0,a.jsx)("path",{d:"M73.6174 81.2412C73.6174 81.9932 72.2743 82.6028 70.6174 82.6028C68.9606 82.6028 67.61
319874 81.9932 67.6174 81.2412C67.6174 80.4892 68.9606 79.8796 70.6174 79.8796C72.2743 79.8796 73.6174 80.4892 73.6174 81.2412Z",stroke:"#7B8CA8",strokeWidth:"1.2"}),m=(0,a.jsx)("path",{d:"M90 85.3616C90 86.1136 88.6569 86.7232 87 86.7232C85.3431 86.7232 84 86.1136 84 85.3616M90 85.3616C90 84.6096 88.6569 84 87 84C85.3431 84 84 84.6096 84 85.3616M90 85.3616V87.3616C90 88.1136 88.6569 88.7232 87 88.7232C85.3431 88.7232 84 88.1136 84 87.3616V85.3616",stroke:"#7B8CA8",strokeWidth:"1.2"}),h=(0,a.jsx)("path",{d:"M82 89.8648C82 90.3425 81.3284 90.7297 80.5 90.7297C79.6716 90.7297 79 90.3425 79 89.8648M82 89.8648C82 89.3872 81.3284 89 80.5 89C79.6716 89 79 89.3872 79 89.8648M82 89.8648V91.1352C82 91.6128 81.3284 92 80.5 92C79.6716 92 79 91.6128 79 91.1352V89.8648",stroke:"#7B8CA8",strokeWidth:"1.2"}),f=(0,a.jsx)("path",{d:"M52.7555 46.7289L52.5381 45.0136L51.2951 44.6903L50.2695 46.0824L49.4558 46.1956L48.0892 45.1364L46.9817 45.7867L47.2408 47.4962L46.7455 48.1517L45.0302 48.3691L44.7069 49.612M51.1084 47.9593C49.8968 47.6442 48.6622 48.2485 48.1434 49.3385",stroke:"#7B8CA8",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),r=(0,a.jsx)("path",{d:"M39 80.5L38 83.5C38 84.8807 40.2386 86 43 86C45.7614 86 48 84.8807 48 83.5L47 80.5",stroke:"#7B8CA8",strokeWidth:"1.2"}),i=(0,a.jsx)("path",{d:"M32 77L31 80C31 81.3807 33.2386 82.5 36 82.5C36.9107 82.5 37.7646 82.3783 38.5 82.1655",stroke:"#7B8CA8",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),l=(0,a.jsx)("path",{d:"M54 77L55 80C55 81.3807 52.7614 82.5 50 82.5C49.0893 82.5 48.2354 82.3783 47.5 82.1655",stroke:"#7B8CA8",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),C[0]=t,C[1]=n,C[2]=r,C[3]=i,C[4]=l,C[5]=s,C[6]=d,C[7]=c,C[8]=u,C[9]=p,C[10]=m,C[11]=h,C[12]=f):(t=C[0],n=C[1],r=C[2],i=C[3],l=C[4],s=C[5],d=C[6],c=C[7],u=C[8],p=C[9],m=C[10],h=C[11],f=C[12]),C[13]!==e?(g=(0,a.jsxs)("svg",{width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t,n,s,d,c,u,p,m,h,f,r,i,l]}),C[13]=e,C[14]=g):g=C[14],g},ZV=e=>{let t,n,r,i,l,s,d,c,u=(0,o.c)(9);return u[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)("path",{d:"M35 84.5L41.7308 67H50V69.5M65 84.5L58.2692 67M32 65H42.5H50H57.5H81V23H19V65H24",stroke:"#7B8CA8",strokeWidth:"1.2"}),n=(0,a.jsx)("path",{d:"M84 16V23H16V16M84 16H16M84 16L82 14H18L16 16",stroke:"#7B8CA8",strokeWidth:"1.2"}),r=(0,a.jsx)("path",{d:"M24 65H18L17 67H83L82 65H32",stroke:"#7B8CA8",strokeWidth:"1.2"}),i=(0,a.jsx)("circle",{cx:"50",cy:"72",r:"2",stroke:"#7B8CA8",strokeWidth:"1.2"}),l=(0,a.jsx)("path",{d:"M24 63C24 61.8954 24.8954 61 26 61H30C31.1046 61 32 61.8954 32 63V67H24V63Z",stroke:"#7B8CA8",strokeWidth:"1.2"}),s=(0,a.jsx)("path",{d:"M24 65C24 63.8954 24.8954 63 26 63H30C31.1046 63 32 63.8954 32 65V67H24V65Z",stroke:"#7B8CA8",strokeWidth:"1.2"}),d=(0,a.jsx)("path",{d:"M28 44.9975C31.0617 44.62 33.5601 42.4793 35.2478 39.995C36.199 38.5947 36.9116 37.0761 36.9653 35.3597C36.9973 34.3355 36.8332 33.1459 35.8944 32.5454C35.3035 32.1675 34.4935 32.0285 33.8044 32.0022C32.7788 31.9631 32.1643 32.4357 31.8489 33.4197C30.3123 38.2145 33.0184 42.7025 36.3911 45.8977C38.1152 47.531 40.0746 48.9275 42.1179 50.1294C43.9867 51.2287 46.003 52.2595 48.1189 52.7885C48.9466 52.9954 50.4951 53.3913 51.3211 52.954C52.3579 52.4051 51.8285 49.7323 51.7091 48.9809C51.3862 46.9486 50.7293 45.0311 49.8726 43.1662C49.3791 42.0918 48.7948 40.8004 47.9999 39.8967C47.4959 39.3237 47.1331 39.4889 47.1101 40.2278C47.0699 41.5204 47.5768 42.7535 48.3103 43.7973C50.633 47.1024 54.4924 49.4656 58.2792 50.6985C59.9643 51.2471 61.8953 51.7306 63.6853 51.6193C65.3845 51.5137 65.6225 50.1321 65.7287 48.655C65.9958 44.9405 64.9629 40.7695 62.6403 37.7963C61.615 36.4839 60.3547 35.6334 58.6879 35.4476C57.7554 35.3437 56.665 35.3303 55.7391 35.5097C54.8073 35.6903 54.0162 36.297 54.3371 37.3462C54.6464 38.3572 55.8044 39.0666 56.6444 39.5759C57.983 40.3876 59.4813 40.9898 61.0262 41.2624C63.2658 41.6576 65.1745 41.1715 67.141 40.1346C67.9966 39.6835 68.8825 39.1795 69.4379 38.3861",stroke:"#7B8CA8",strokeWidth:"1.2"}),u[0]=t,u[1]=n,u[2]=r,u[3]=i,u[4]=l,u[5]=s,u[6]=d):(t=u[0],n=u[1],r=u[2],i=u[3],l=u[4],s=u[5],d=u[6]),u[7]!==e?
3198(c=(0,a.jsxs)("svg",{width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t,n,r,i,l,s,d]}),u[7]=e,u[8]=c):c=u[8],c},ZL=e=>{let t,n,r,i,l,s,d,c,u,p,m,h,f,g,C,y=(0,o.c)(16);return y[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)("path",{d:"M35.5034 34.5961C35.6531 34.1763 35.8628 33.792 36.1352 33.4478C37.6813 31.4827 40.9503 31.2145 44.9898 32.3554M35.5034 34.5961L24.12 78.5806C23.4656 81.1092 26.1309 83.2083 28.4357 81.9796L68.4485 60.6484M35.5034 34.5961C34.2315 38.1622 37.2902 44.2842 43.0792 50.0342M68.4485 60.6484C68.8174 60.4078 69.1391 60.118 69.4084 59.7777C70.9736 57.7883 70.4521 54.4677 68.3472 50.7308M68.4485 60.6484C65.1795 62.7806 58.1999 61.0522 51.0413 56.4338M49.3164 55.2667C48.6043 54.7622 47.8933 54.2299 47.1867 53.6707C46.3331 52.9953 45.5161 52.3044 44.7387 51.6037M49.3164 55.2667C49.8913 55.674 50.4669 56.0632 51.0413 56.4338M49.3164 55.2667C52.3445 53.1871 58.7283 49.8329 66.4965 47.8874M51.0413 56.4338C55.9305 53.432 62.4593 51.6876 68.3472 50.7308M43.0792 50.0342C43.6098 50.5612 44.1634 51.0852 44.7387 51.6037M43.0792 50.0342C44.4006 45.7138 45.8116 38.387 44.9898 32.3554M44.7387 51.6037C47.6743 44.2968 48.7135 38.3712 48.6643 33.6916M63.9622 36.487C63.2905 34.23 62.35 29.5386 63.9622 28.8293C65.9774 27.9426 68.5569 33.5045 70.8139 32.2148C73.0709 30.9251 69.4435 27.7814 70.8139 25.2019C72.1842 22.6224 79.6002 28.4262 81.2123 23.4285C82.502 19.4304 79.7614 16.6574 78.2298 15.7708M66.4965 47.8874C70.7697 46.8171 75.462 46.1731 80.2449 46.4019L80.2449 49.7068C77.5329 49.6936 73.1535 49.9498 68.3472 50.7308M66.4965 47.8874C64.45 45.1054 61.6564 42.2264 58.3003 39.5859C55.0633 37.039 51.7429 35.0416 48.6643 33.6916M48.6643 33.6916C48.5822 25.8794 45.4671 21.5396 43.0792 20.043L39.941 23.4285C42.9851 25.0774 44.4569 28.4441 44.9898 32.3554",stroke:"#7B8CA8",strokeWidth:"1.2"}),n=(0,a.jsx)("path",{d:"M32.2094 47.3001C31.0515 50.5465 34.6857 56.6214 40.9597 61.5862C47.2404 66.5562 53.9958 68.696 56.8839 66.8122",stroke:"#7B8CA8",strokeWidth:"1.2"}),d=(0,a.jsx)("path",{d:"M28.8867 60.1903C28.1245 62.3275 30.5169 66.3267 34.6472 69.595C38.7818 72.8669 43.229 74.2755 45.1303 73.0354",stroke:"#7B8CA8",strokeWidth:"1.2"}),c=(0,a.jsx)("path",{d:"M26.2718 70.2225C25.8147 71.5039 27.2491 73.9016 29.7254 75.8611C32.2044 77.8228 34.8707 78.6673 36.0106 77.9238",stroke:"#7B8CA8",strokeWidth:"1.2"}),u=(0,a.jsx)("path",{d:"M28.0529 44.1724C29.5354 43.1981 32.3735 40.6904 31.8652 38.4538C31.2298 35.6581 22.8425 38.9622 22.7155 36.5477C22.5884 34.1331 27.0361 30.575 26.909 28.6688C26.7819 26.7626 18.6489 30.8291 18.6489 26.8896C18.6489 23.738 21.36 22.1029 22.7155 21.6793",stroke:"#7B8CA8",strokeWidth:"1.2"}),p=(0,a.jsx)("rect",{x:"21.8833",y:"50.1122",width:"3.03077",height:"3.03077",transform:"rotate(-24.7154 21.8833 50.1122)",stroke:"#7B8CA8",strokeWidth:"1.2"}),m=(0,a.jsx)("rect",{x:"16.0527",y:"36.722",width:"3.03077",height:"3.03077",transform:"rotate(4.36851 16.0527 36.722)",stroke:"#7B8CA8",strokeWidth:"1.2"}),h=(0,a.jsx)("rect",{x:"27.9448",y:"22.8353",width:"3.03077",height:"3.03077",transform:"rotate(-24.7154 27.9448 22.8353)",stroke:"#7B8CA8",strokeWidth:"1.2"}),f=(0,a.jsx)("rect",{x:"53.7065",y:"33.443",width:"3.03077",height:"3.03077",transform:"rotate(-24.7154 53.7065 33.443)",stroke:"#7B8CA8",strokeWidth:"1.2"}),g=(0,a.jsx)("rect",{x:"67.3447",y:"13.743",width:"3.03077",height:"3.03077",transform:"rotate(-24.7154 67.3447 13.743)",stroke:"#7B8CA8",strokeWidth:"1.2"}),r=(0,a.jsx)("rect",{x:"74.9219",y:"54.6584",width:"3.03077",height:"3.03077",transform:"rotate(-24.7154 74.9219 54.6584)",stroke:"#7B8CA8",strokeWidth:"1.2"}),i=(0,a.jsx)("rect",{x:"70.3755",y:"66.7814",width:"3.03077",height:"3.03077",transform:"rotate(-24.7154 70.3755 66.7814)",stroke:"#7B8CA8",strokeWidth:"1.2"}),l=(0,a.jsx)("rect",{x:"77.9526",y:"78.9045",width:"3.03077",height:"3.03077",transform:"rotate(-24.7154 77.9526 78.9045)",stroke:"#7B8CA8",strokeWidth:"1.2"}),s=(0,a.jsx)("rect",{x:"82.4985",y:"62.2353",width:"3.03077",height:"3.03077",transform:"rotate(-24.7154 82.4985 62.2353)",stroke:"#7B8CA8",strokeWidth:"1.2"}
3198),y[0]=t,y[1]=n,y[2]=r,y[3]=i,y[4]=l,y[5]=s,y[6]=d,y[7]=c,y[8]=u,y[9]=p,y[10]=m,y[11]=h,y[12]=f,y[13]=g):(t=y[0],n=y[1],r=y[2],i=y[3],l=y[4],s=y[5],d=y[6],c=y[7],u=y[8],p=y[9],m=y[10],h=y[11],f=y[12],g=y[13]),y[14]!==e?(C=(0,a.jsxs)("svg",{width:"100",height:"100",viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[t,n,d,c,u,p,m,h,f,g,r,i,l,s]}),y[14]=e,y[15]=C):C=y[15],C},ZF=e=>{let t,n,r,i,l,s,d,c,p,m=(0,o.c)(16),{scheduleState:h,selectedDate:f}=e;switch(h){case"succeeded":n="When a scheduled document is successfully published it moves to this list view.",r="No completed scheduled publications ... yet",t=ZO;break;case"cancelled":n="Schedules can fail for several reasons, for example when their documents are deleted. When they do, they show up here.",r="No failed scheduled publications",t=ZL;break;case"scheduled":n="When editing a document, create a new scheduled publication from the menu next to the Publish button.",r="No upcoming scheduled publications",t=ZV}if(f){let e;n="No schedules for this date.",m[0]!==f?(e=(0,ty.A)(f,"d MMMM yyyy"),m[0]=f,m[1]=e):e=m[1],r=e,t=ZV}return m[2]!==t?(i=t&&(0,a.jsx)(t,{}),m[2]=t,m[3]=i):i=m[3],m[4]!==i?(l=(0,a.jsx)(u.so,{justify:"center",children:i}),m[4]=i,m[5]=l):l=m[5],m[6]!==r?(s=r&&(0,a.jsx)(u.DZ,{align:"center",size:1,children:r}),m[6]=r,m[7]=s):s=m[7],m[8]!==n?(d=n&&(0,a.jsx)(u.EY,{align:"center",size:1,children:n}),m[8]=n,m[9]=d):d=m[9],m[10]!==s||m[11]!==d?(c=(0,a.jsxs)(u.BJ,{space:4,children:[s,d]}),m[10]=s,m[11]=d,m[12]=c):c=m[12],m[13]!==l||m[14]!==c?(p=(0,a.jsx)(u.Zp,{paddingX:6,paddingBottom:8,paddingTop:7,radius:2,shadow:1,children:(0,a.jsxs)(u.BJ,{space:4,children:[l,c]})}),m[13]=l,m[14]=c,m[15]=p):p=m[15],p};function ZB(e){return e.documents?.[0]}function ZN(e){return ZB(e)?.documentId.replaceAll("drafts.","")}function ZY(e){let t=ZB(e),n=Cm(),r=t.documentType;return(0,s.useMemo)(()=>{if(r)return n.get(r)},[r,n])}let ZH=(0,g.I4)(u.dU)`
3199  .date-small {
3200    display: inline;
3201  }
3202  .date-medium {
3203    display: none;
3204  }
3205  .date-large {
3206    display: none;
3207  }
3208
3209  &[data-eq-min~='1'] {
3210    .date-small {
3211      display: none;
3212    }
3213    .date-medium {
3214      display: inline;
3215    }
3216    .date-large {
3217      display: none;
3218    }
3219  }
3220
3221  &[data-eq-min~='2'] {
3222    .date-small {
3223      display: none;
3224    }
3225    .date-medium {
3226      display: none;
3227    }
3228    .date-large {
3229      display: inline;
3230    }
3231  }
3232`;function ZZ(e){let t,n=(0,o.c)(3),{children:r,value:i}=e;return n[0]!==r||n[1]!==i?(t=(0,a.jsx)(c.Nj.Provider,{value:i,children:r}),n[0]=r,n[1]=i,n[2]=t):t=n[2],t}function ZU(e){let[t,n]=(0,s.useState)(!1),[r,i]=(0,s.useState)(e&&e?.executeAt?{date:e.executeAt}:null);return{formData:r,isDirty:t,onFormChange:(0,s.useCallback)(t=>{let r=e?.executeAt&&new Date(e.executeAt).getTime()===new Date(t?.date).getTime();i(t),n(!r)},[e?.executeAt])}}function Zq(e){let t,n,r,i,l,s,d,c,p=(0,o.c)(27),{date:m,focused:h,isCurrentMonth:f,isToday:g,customValidation:C,onSelect:y,selected:x}=e;e:{let e;if(!C){t=!0;break e}p[0]!==C||p[1]!==m?(e=C((0,tD.A)(m)),p[0]=C,p[1]=m,p[2]=e):e=p[2],t=e}let b=t;p[3]!==m||p[4]!==b||p[5]!==y?(n=()=>{b&&y(m)},p[3]=m,p[4]=b,p[5]=y,p[6]=n):n=p[6];let v=n;p[7]!==m?(r=m.toDateString(),p[7]=m,p[8]=r):r=p[8];let j=h?"true":"",w=!b,_=g||x?"primary":"default",k=!x&&!f;p[9]===Symbol.for("react.memo_cache_sentinel")?(i={textAlign:"center"},p[9]=i):i=p[9];let S=f?"medium":"regular";return p[10]!==m?(l=m.getDate(),p[10]=m,p[11]=l):l=p[11],p[12]!==k||p[13]!==S||p[14]!==l?(s=(0,a.jsx)(u.EY,{muted:k,style:i,weight:S,children:l}),p[12]=k,p[13]=S,p[14]=l,p[15]=s):s=p[15],p[16]!==v||p[17]!==x||p[18]!==s||p[19]!==r||p[20]!==j||p[21]!==w||p[22]!==_?(d=(0,a.jsx)(u.Zp,{"aria-label":r,"aria-pressed":x,as:"button",__unstable_focusRing:!0,"data-weekday":!0,"data-focused":j,disabled:w,role:"button",tabIndex:-1,onClick:v,padding:3,radius:2,selected:x,tone:_,children:s}),p[16]=v,p[17]=x,p[18]=s,p[19]=r,p[20]=j,p[21]=w,p[22]=_,p[23]=d):d=p[23],p[24]!==x||p[25]!==d?(c=(0,a.jsx)("div",{"aria-selected":x,"data-ui":"CalendarDay",children:d}),p[24]=x,p[25]=d,p[26]=c):c=p[26],c}let ZJ=["January","February","March","April","May","June","July","August","September","October","November","December"],ZW=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],ZK=nT(0,24),ZG=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ZX=[1,2,3,4,5,6];function ZQ(e){let t,n,r,i,l,s=(0,o.c)(20),{customValidation:d,timeZoneScope:c}=e,{getCurrentZoneDate:p}=sh(c),m=e.hidden||!1;if(s[0]===Symbol.for("react.memo_cache_sentinel")?(t={gridTemplateColumns:"repeat(7, minmax(44px, 46px))"},n=ZW.map(Z1),s[0]=t,s[1]=n):(t=s[0],n=s[1]),s[2]!==d||s[3]!==p||s[4]!==e.date||s[5]!==e.focused||s[6]!==e.onSelect||s[7]!==e.selected){let t;s[9]!==d||s[10]!==p||s[11]!==e.focused||s[12]!==e.onSelect||s[13]!==e.selected?(t=(t,n)=>t.days.map((t,r)=>{let i=e.focused&&(0,ts.A)(t,e.focused),o=e.selected&&(0,ts.A)(t,e.selected),l=(0,ts.A)(t,p()),s=e.focused&&(0,td.A)(t,e.focused);return(0,a.jsx)(Zq,{date:t,focused:i,isCurrentMonth:s,isToday:l,customValidation:d,onSelect:e.onSelect,selected:o},`${n}-${r}`)}),s[9]=d,s[10]=p,s[11]=e.focused,s[12]=e.onSelect,s[13]=e.selected,s[14]=t):t=s[14],r=(e=>{let t=(0,tr.A)(e);return(0,ti.A)({start:t,end:(0,ta.A)(t)})})(e.date).map(e=>[e,...ZX.map(t=>(0,to.A)(e,t))]).map(e=>({number:(0,tl.A)(e[0]),days:e}
3232)).map(t),s[2]=d,s[3]=p,s[4]=e.date,s[5]=e.focused,s[6]=e.onSelect,s[7]=e.selected,s[8]=r}else r=s[8];return s[15]!==r?(i=(0,a.jsxs)(u.xA,{gap:1,style:t,children:[n,r]}),s[15]=r,s[16]=i):i=s[16],s[17]!==m||s[18]!==i?(l=(0,a.jsx)(u.az,{"aria-hidden":m,"data-ui":"CalendarMonth",children:i}),s[17]=m,s[18]=i,s[19]=l):l=s[19],l}function Z1(e){return(0,a.jsx)(u.az,{paddingY:2,children:(0,a.jsx)(u.EY,{size:1,weight:"medium",style:{textAlign:"center"},children:e})},e)}let Z2={timePresets:!1},Z5=e=>{let t,n,r,i,l=(0,o.c)(8);l[0]!==e?({onChange:t,...n}=e,l[0]=e,l[1]=t,l[2]=n):(t=l[1],n=l[2]),l[3]!==t?(r=e=>{let n=parseInt(e.currentTarget.value,10);isNaN(n)||t(n)},l[3]=t,l[4]=r):r=l[4];let s=r;return l[5]!==s||l[6]!==n?(i=(0,a.jsx)(sz,{"data-testid":"date-input",...n,onChange:s,inputMode:"numeric"}),l[5]=s,l[6]=n,l[7]=i):i=l[7],i},Z0=(0,a.jsx)("span",{"data-preserve-focus":!0,style:{overflow:"hidden",position:"absolute",outline:"none"},tabIndex:-1}),Z7=(0,s.forwardRef)(function(e,t){let n,r,i,l,d,c,p,m,h,f,g,C,y,x,b,v,j,w,_,k,S,T,I,E,$,A,D,z,M,P,R,O,V,L,F,B,N,Y=(0,o.c)(95),{getCurrentZoneDate:H,zoneDateToUtc:Z}=sh(e.timeZoneScope);Y[0]!==e?({selectTime:d,onFocusedDateChange:r,selectedDate:c,focusedDate:p,timeStep:m,onSelect:i,customValidation:n,timeZoneScope:h,...l}=e,Y[0]=e,Y[1]=n,Y[2]=r,Y[3]=i,Y[4]=l,Y[5]=d,Y[6]=c,Y[7]=p,Y[8]=m,Y[9]=h):(n=Y[1],r=Y[2],i=Y[3],l=Y[4],d=Y[5],c=Y[6],p=Y[7],m=Y[8],h=Y[9]),Y[10]!==H||Y[11]!==c?(f=void 0===c?H():c,Y[10]=H,Y[11]=c,Y[12]=f):f=Y[12];let U=f,q=void 0===p?U:p,J=void 0===m?1:m;Y[13]!==r||Y[14]!==Z?(g=e=>r(Z(e)),Y[13]=r,Y[14]=Z,Y[15]=g):g=Y[15];let W=g;Y[16]!==q||Y[17]!==W?(C=e=>W((0,tc.A)((0,tu.A)(q,e),1)),Y[16]=q,Y[17]=W,Y[18]=C):C=Y[18];let K=C;Y[19]!==K?(y=e=>K(Number(e.currentTarget.value)),Y[19]=K,Y[20]=y):y=Y[20];let G=y;Y[21]!==q||Y[22]!==W?(x=e=>W((0,tp.A)(q,e)),Y[21]=q,Y[22]=W,Y[23]=x):x=Y[23];let X=x;Y[24]!==q||Y[25]!==W?(b=e=>W((0,tm.A)(q,e)),Y[24]=q,Y[25]=W,Y[26]=b):b=Y[26];let Q=b;Y[27]!==i||Y[28]!==U||Y[29]!==Z?(v=e=>{i(Z((0,th.A)((0,tf.A)(e,U.getHours()),U.getMinutes())))},Y[27]=i,Y[28]=U,Y[29]=Z,Y[30]=v):v=Y[30];let ee=v;Y[31]!==i||Y[32]!==U||Y[33]!==Z?(j=e=>{let t=Number(e.currentTarget.value);i(Z((0,th.A)(U,t)))},Y[31]=i,Y[32]=U,Y[33]=Z,Y[34]=j):j=Y[34];let et=j;Y[35]!==i||Y[36]!==U||Y[37]!==Z?(w=e=>{let t=Number(e.currentTarget.value);i(Z((0,tf.A)(U,t)))},Y[35]=i,Y[36]=U,Y[37]=Z,Y[38]=w):w=Y[38];let en=w;Y[39]!==i||Y[40]!==U||Y[41]!==Z?(_=(e,t)=>{i(Z((0,tf.A)((0,th.A)(U,t),e)))},Y[39]=i,Y[40]=U,Y[41]=Z,Y[42]=_):_=Y[42];let er=_,ei=(0,s.useRef)(null);Y[43]===Symbol.for("react.memo_cache_sentinel")?(k=()=>ei.current,Y[43]=k):k=Y[43],(0,s.useImperativeHandle)(t,k),Y[44]===Symbol.for("react.memo_cache_sentinel")?(S=()=>{ei.current?.querySelector('[data-focused="true"]')?.focus()},Y[44]=S):S=Y[44];let ea=S;Y[45]!==q||Y[46]!==r||Y[47]!==Z?(T=e=>{if(ZG.includes(e.key)){if(e.preventDefault(),e.currentTarget.hasAttribute("data-calendar-grid"))return void ea();"ArrowUp"===e.key&&r(Z((0,to.A)(q,-7))),"ArrowDown"===e.key&&r(Z((0,to.A)(q,7))),"ArrowLeft"===e.key&&r(Z((0,to.A)(q,-1))),"ArrowRight"===e.key&&r(Z((0,to.A)(q,1))),ei.current?.querySelector("[data-preserve-focus]")?.focus()}},Y[45]=q,Y[46]=r,Y[47]=Z,Y[48]=T):T=Y[48];let eo=T;Y[49]===Symbol.for("react.memo_cache_sentinel")?(I=()=>{ea()},E=[ea],Y[49]=I,Y[50]=E):(I=Y[49],E=Y[50]),(0,s.useEffect)(I,E),Y[51]===Symbol.for("react.memo_cache_sentinel")?($=()=>{document.activeElement?.matches("[data-calendar-grid], [data-calendar-grid] [data-preserve-focus]")&&ea()},Y[51]=$):$=Y[51],Y[52]!==q?(A=[ei,ea,q],Y[52]=q,Y[53]=A):A=Y[53],(0,s.useEffect)($,A),Y[54]!==i?(D=()=>i(new Date),Y[54]=i,Y[55]=D):D=Y[55];let el=D;return Y[56]!==q?(z=q?.getMonth(),Y[56]=q,Y[57]=z):z=Y[57],Y[58]!==G||Y[59]!==X||Y[60]!==z?(M=(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(Z3,{moveFocusedDate:X,onChange:G,value:z})}),Y[58]=G,Y[59]=X,Y[60]=z,Y[61]=M):M=Y[61],Y[62]!==q?(P=q.getFullYear(),Y[62]=q,Y[63]=P):P=Y[63],Y[64]!==X||Y[65]!==Q||Y[66]!==P?(R=(0,a.jsx)(u.az,{marginLeft:2,children:(0,a.jsx)(Z4,{moveFocusedDate:X,onChange:Q,value:P})}),Y[64]=X,Y[65]=Q,Y[66]=P,Y[67]=R):R=Y[67],Y[68]!==M||Y[69]!==R?(O=(0,a.jsxs)(u.so,{children:[M,R]}),Y[68]=M,Y[69]=R,Y[70]=O):O=Y[70],Y[71]!==n||Y[72]!==q||Y[73]!==ee||Y[74]!==U||Y[75]!==h?(V=(0,a.jsx)(ZQ,{date:q,focused:q,customValidation:n,onSelect:ee,selected:U,timeZoneScope:h}),Y[71]=n,Y[72]=q,Y[73]=ee,Y[74]=U,Y[75]=h,Y[76]=V):V=Y[76],Y[77]!==eo||Y[78]!==V?(L=(0,a.jsxs)(u.az,{"data-calendar-grid":!0,onKeyDown:eo,marginTop:2,overflow:"hidden",tabIndex:0,children:[V,Z0]}),Y[77]=eo,Y[78]=V,Y[79]=L):L=Y[79],Y[80]!==O||Y[81]!==L?(F=(0,a.jsxs)(u.az,{padding:2,children:[O,L]}
3232),Y[80]=O,Y[81]=L,Y[82]=F):F=Y[82],Y[83]!==en||Y[84]!==et||Y[85]!==el||Y[86]!==er||Y[87]!==d||Y[88]!==U||Y[89]!==J?(B=d&&(0,a.jsxs)(u.az,{padding:2,style:{borderTop:"1px solid var(--card-border-color)"},children:[(0,a.jsxs)(u.so,{align:"center",children:[(0,a.jsxs)(u.so,{align:"center",flex:1,children:[(0,a.jsx)(u.az,{children:(0,a.jsx)(u.l6,{"aria-label":"Select hour",value:U?.getHours(),onChange:en,children:ZK.map(Z6)})}),(0,a.jsx)(u.az,{paddingX:1,children:(0,a.jsx)(u.EY,{children:":"})}),(0,a.jsx)(u.az,{children:(0,a.jsx)(u.l6,{"aria-label":"Select minutes",value:U?.getMinutes(),onChange:et,children:nT(0,60,J).map(Z9)})})]}),(0,a.jsx)(u.az,{marginLeft:2,children:(0,a.jsx)(u.$n,{text:"Set to current time",mode:"bleed",onClick:el})})]}),Z2.timePresets]}),Y[83]=en,Y[84]=et,Y[85]=el,Y[86]=er,Y[87]=d,Y[88]=U,Y[89]=J,Y[90]=B):B=Y[90],Y[91]!==l||Y[92]!==F||Y[93]!==B?(N=(0,a.jsxs)(u.az,{"data-ui":"Calendar",...l,ref:ei,children:[F,B]}),Y[91]=l,Y[92]=F,Y[93]=B,Y[94]=N):N=Y[94],N});function Z3(e){let t,n,r,i,l,s,d,c=(0,o.c)(16),{moveFocusedDate:p,onChange:m,value:h}=e;c[0]!==p?(t=()=>p(-1),c[0]=p,c[1]=t):t=c[1];let f=t;c[2]!==p?(n=()=>p(1),c[2]=p,c[3]=n):n=c[3];let g=n;return c[4]!==f?(r=(0,a.jsx)(u.$n,{"aria-label":"Go to previous month",onClick:f,mode:"bleed",icon:C.YJP,paddingX:2,radius:0}),c[4]=f,c[5]=r):r=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(i=ZJ.map(Z8),c[6]=i):i=c[6],c[7]!==m||c[8]!==h?(l=(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(u.l6,{radius:0,value:h,onChange:m,children:i})}),c[7]=m,c[8]=h,c[9]=l):l=c[9],c[10]!==g?(s=(0,a.jsx)(u.$n,{"aria-label":"Go to next month",mode:"bleed",icon:C.vKP,onClick:g,paddingX:2,radius:0}),c[10]=g,c[11]=s):s=c[11],c[12]!==r||c[13]!==l||c[14]!==s?(d=(0,a.jsxs)(u.so,{flex:1,children:[r,l,s]}),c[12]=r,c[13]=l,c[14]=s,c[15]=d):d=c[15],d}function Z8(e,t){return(0,a.jsx)("option",{value:t,children:e},t)}function Z4(e){let t,n,r,i,l,s,d,c=(0,o.c)(16),{moveFocusedDate:p,onChange:m,value:h}=e;c[0]!==p?(t=()=>p(-12),c[0]=p,c[1]=t):t=c[1];let f=t;c[2]!==p?(n=()=>p(12),c[2]=p,c[3]=n):n=c[3];let g=n;return c[4]!==f?(r=(0,a.jsx)(u.$n,{"aria-label":"Previous year",onClick:f,mode:"bleed",icon:C.YJP,paddingX:2,radius:0}),c[4]=f,c[5]=r):r=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(i={width:65},c[6]=i):i=c[6],c[7]!==m||c[8]!==h?(l=(0,a.jsx)(Z5,{value:h,onChange:m,radius:0,style:i}),c[7]=m,c[8]=h,c[9]=l):l=c[9],c[10]!==g?(s=(0,a.jsx)(u.$n,{"aria-label":"Next year",onClick:g,mode:"bleed",icon:C.vKP,paddingX:2,radius:0}),c[10]=g,c[11]=s):s=c[11],c[12]!==r||c[13]!==l||c[14]!==s?(d=(0,a.jsxs)(u.so,{children:[r,l,s]}),c[12]=r,c[13]=l,c[14]=s,c[15]=d):d=c[15],d}function Z6(e){return(0,a.jsx)("option",{value:e,children:`${e}`.padStart(2,"0")},e)}function Z9(e){return(0,a.jsx)("option",{value:e,children:`${e}`.padStart(2,"0")},e)}let Ue=(0,s.forwardRef)(function(e,t){let{value:n=new Date,onChange:r,customValidation:i,timeZoneScope:o,...l}=e,{utcToCurrentZoneDate:d}=sh(o),[c,u]=(0,s.useState)(),p=(0,s.useCallback)(e=>{r(e),u(void 0)},[r]);return(0,a.jsx)(Z7,{...l,ref:t,selectedDate:d(n),onSelect:p,focusedDate:d(c||n),onFocusedDateChange:u,customValidation:i,timeZoneScope:o})}),Ut=(0,s.forwardRef)(function(e,t){let n,r,i,l,d,c,p,m,h,f,g,x,b,v,j,w,_,k,S,T=(0,o.c)(32);T[0]!==e?({value:h,inputValue:r,customValidation:n,onInputChange:l,onChange:i,selectTime:c,timeStep:p,timeZoneScope:m,...d}=e,T[0]=e,T[1]=n,T[2]=r,T[3]=i,T[4]=l,T[5]=d,T[6]=c,T[7]=p,T[8]=m,T[9]=h):(n=T[1],r=T[2],i=T[3],l=T[4],d=T[5],c=T[6],p=T[7],m=T[8],h=T[9]);let I=(0,s.useRef)(null),E=(0,s.useRef)(null),$=(0,s.useRef)(null);T[10]===Symbol.for("react.memo_cache_sentinel")?(f=()=>E.current,T[10]=f):f=T[10],(0,s.useImperativeHandle)(t,f);
3232let[A,D]=(0,s.useState)(!1),z=(0,u.WP)();T[11]===Symbol.for("react.memo_cache_sentinel")?(g=()=>D(!1),x=()=>[I.current],T[11]=g,T[12]=x):(g=T[11],x=T[12]),(0,u.PR)(g,x),T[13]===Symbol.for("react.memo_cache_sentinel")?(b=()=>{E.current?.focus(),E.current?.select()},T[13]=b):b=T[13];let M=b;T[14]===Symbol.for("react.memo_cache_sentinel")?(v=e=>{"Escape"===e.key&&D(!1)},T[14]=v):v=T[14];let P=v;T[15]===Symbol.for("react.memo_cache_sentinel")?(j=()=>D(!0),T[15]=j):j=T[15];let R=j;T[16]===Symbol.for("react.memo_cache_sentinel")?(w={padding:"5px"},T[16]=w):w=T[16],T[17]===Symbol.for("react.memo_cache_sentinel")?(_=(0,a.jsx)(u.az,{style:w,children:(0,a.jsx)(u.$n,{ref:$,icon:C.CTc,mode:"bleed",padding:2,onClick:R,style:{display:"block"},"data-testid":"select-date-button"})}),T[17]=_):_=T[17];let O=_;return T[18]!==n||T[19]!==A||T[20]!==i||T[21]!==z||T[22]!==c||T[23]!==p||T[24]!==m||T[25]!==h?(k=A?(0,a.jsx)(u.XS,{zOffset:1e3,children:(0,a.jsx)(y.AM,{constrainSize:!0,content:(0,a.jsx)(u.az,{overflow:"auto",children:(0,a.jsx)(eX.Ay,{onDeactivation:M,children:(0,a.jsx)(Ue,{selectTime:c,timeStep:p,onKeyUp:P,value:h,onChange:i,customValidation:n,timeZoneScope:m})})}),"data-testid":"date-input-dialog",fallbackPlacements:["bottom","bottom-start","top-end","top","top-start"],floatingBoundary:z.element,open:!0,placement:"bottom-end",portal:!0,radius:2,ref:I,children:O})}):O,T[18]=n,T[19]=A,T[20]=i,T[21]=z,T[22]=c,T[23]=p,T[24]=m,T[25]=h,T[26]=k):k=T[26],T[27]!==r||T[28]!==l||T[29]!==d||T[30]!==k?(S=(0,a.jsx)(sz,{"data-testid":"date-input",ref:E,...d,value:r,onChange:l,suffix:k}),T[27]=r,T[28]=l,T[29]=d,T[30]=k,T[31]=S):S=T[31],S}),Un=(0,s.forwardRef)(function(e,t){let{value:n,markers:r,title:i,description:o,placeholder:l,parseInputValue:d,formatInputValue:c,deserialize:p,serialize:m,selectTime:h,timeStep:f,readOnly:g,level:C,onChange:y,customValidation:x,timeZoneScope:b,...v}=e,[j,w]=(0,s.useState)(null);(0,s.useEffect)(()=>{w(null)},[n]);let{zoneDateToUtc:_}=sh(b),k=typeof n>"u",S=(0,s.useCallback)(e=>{let t=e.currentTarget.value,n=""===t?null:d(t);null===n?(y(null),k&&j&&w(null)):n.isValid?y(m(_(n.date))):w(t)},[k,_,j,m,y,d]),T=(0,s.useCallback)(e=>{y(e?m(e):null)},[m,y]),I=(0,s.useRef)(null);(0,s.useImperativeHandle)(t,()=>I.current);let E=(0,s.useId)(),$=j?d(j):n?p(n):null,A=j||($?.isValid?c($.date):n),D=(0,s.useMemo)(()=>r.map(e=>({level:e.level,path:e.path,message:e.message??e.item?.message})),[r]);return(0,a.jsx)(xR,{validation:$?.error?[...D,{level:"error",message:$.error,path:[]}]:D,title:i,level:C,description:o,inputId:E,children:g?(0,a.jsx)(u.ks,{value:A,readOnly:!0}):(0,a.jsx)(Ut,{...v,id:E,selectTime:h,timeStep:f,placeholder:l||`e.g. ${c(new Date)}`,ref:I,value:$?.date,inputValue:A||"",readOnly:!!g,onInputChange:S,onChange:T,customValidity:$?.error,customValidation:x,timeZoneScope:b})})});function Ur(e){return e.toISOString()}function Ui(e){let t=new Date(e);return t instanceof Date&&!isNaN(t.valueOf())?{isValid:!0,date:t}:{isValid:!1,error:`Invalid date value: "${e}"`}}let Ua=(0,s.forwardRef)(function(e,t){let n,r,i,l,s,d,c,u,p,m=(0,o.c)(30);m[0]!==e?({type:l,onChange:n,timeZoneScope:i,...r}=e,m[0]=e,m[1]=n,m[2]=r,m[3]=i,m[4]=l):(n=m[1],r=m[2],i=m[3],l=m[4]);let{title:h,description:f,placeholder:g}=l,{scheduledPublishing:C}=lE(),y=C.inputDateTimeFormat,{getCurrentZoneDate:x,timeZone:b}=sh(i);m[5]!==l.options?(s=function(e={}){return{customValidation:e.customValidation||function(){return!0},customValidationMessage:e.customValidationMessage||"Invalid date.",calendarTodayLabel:e.calendarTodayLabel||"Today",timeStep:"timeStep"in e&&Number(e.timeStep)||1}}(l.options),m[5]=l.options,m[6]=s):s=m[6];let{customValidation:v,customValidationMessage:j,timeStep:w}=s;m[7]!==n||m[8]!==w?(d=e=>{let t=e;null!==t&&w>1&&(t=function(e,t){if(!t||1===t)return e;let n=(0,tg.A)(e),r=(0,tC.A)(n),i=r%t;return Ur(0!==i?(0,th.A)(n,r-i):n)}(t,w)),n(t)},m[7]=n,m[8]=w,m[9]=d):d=m[9];let _=d;m[10]!==y||m[11]!==b.name?(c=e=>st(e,b.name,`${y}`),m[10]=y,m[11]=b.name,m[12]=c):c=m[12];let k=c;m[13]!==v||m[14]!==j||m[15]!==x||m[16]!==y?(u=e=>{let t=(0,tt.A)(e,`${y}`,x());return(0,te.A)(t)?v(t)?{isValid:!0,date:t}:{isValid:!1,error:j}:{isValid:!1,error:`Invalid date. Must be in the format "${y}"`}},m[13]=v,m[14]=j,m[15]=x,m[16]=y,m[17]=u):u=m[17];let S=u;return m[18]!==v||m[19]!==f||m[20]!==k||m[21]!==t||m[22]!==_||m[23]!==S||m[24]!==g||m[25]!==r||m[26]!==w||m[27]!==i||m[28]!==h?(p=(0,a.jsx)(Un,{...r,onCh
3232ange:_,ref:t,selectTime:!0,timeStep:w,title:h,description:f,placeholder:g,serialize:Ur,deserialize:Ui,formatInputValue:k,customValidation:v,parseInputValue:S,timeZoneScope:i}),m[18]=v,m[19]=f,m[20]=k,m[21]=t,m[22]=_,m[23]=S,m[24]=g,m[25]=r,m[26]=w,m[27]=i,m[28]=h,m[29]=p):p=m[29],p}),Uo=e=>{let t,n,r,i,l,d=(0,o.c)(11),{onChange:c,value:p}=e,{getCurrentZoneDate:m}=sh(H_),[h,f]=(0,s.useState)();d[0]!==c?(t=e=>{e&&c&&(c({date:e}),f(e))},d[0]=c,d[1]=t):t=d[1];let g=t;d[2]!==m?(n=e=>e>m(),d[2]=m,d[3]=n):n=d[3];let C=n;d[4]===Symbol.for("react.memo_cache_sentinel")?(r=[],d[4]=r):r=d[4],d[5]!==C?(i={name:"date",options:{customValidation:C,customValidationMessage:"Date cannot be in the past."},title:"Date and time"},d[5]=C,d[6]=i):i=d[6];let y=void 0===h?p?.date:h;return d[7]!==g||d[8]!==i||d[9]!==y?(l=(0,a.jsx)(u.BJ,{space:4,children:(0,a.jsx)(u.Zp,{children:(0,a.jsx)(Ua,{level:0,markers:r,onChange:g,type:i,value:y,timeZoneScope:H_})})}),d[7]=g,d[8]=i,d[9]=y,d[10]=l):l=d[10],l};function Ul(e){let t,n,r=(0,o.c)(6),{onChange:i,value:l}=e;return r[0]!==i||r[1]!==l?(t=(0,a.jsx)(Uo,{onChange:i,value:l}),r[0]=i,r[1]=l,r[2]=t):t=r[2],r[3]!==e.children||r[4]!==t?(n=(0,a.jsxs)(u.BJ,{space:4,children:[e.children,t]}),r[3]=e.children,r[4]=t,r[5]=n):n=r[5],n}let Us=e=>{let t,n,r,i,l,s=(0,o.c)(12),{title:d,timeZoneScope:c}=e,{timeZone:p}=sh(c),{t:m}=iJ();return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)("input",{style:{opacity:0,position:"absolute",width:0},tabIndex:-1,type:"button"}),s[0]=t):t=s[0],s[1]===Symbol.for("react.memo_cache_sentinel")?(n={marginTop:"-1em",marginBottom:"-1em"},s[1]=n):n=s[1],s[2]!==m||s[3]!==p.alternativeName||s[4]!==p.offset?(r=m("time-zone.time-zone-tooltip-scheduled-publishing",{alternativeName:p.alternativeName,offset:p.offset}),s[2]=m,s[3]=p.alternativeName,s[4]=p.offset,s[5]=r):r=s[5],s[6]!==r||s[7]!==c?(i=(0,a.jsx)(u.az,{marginLeft:2,style:n,children:(0,a.jsx)(dr,{tooltipContent:r,timeZoneScope:c,useElementQueries:!0})}
3232),s[6]=r,s[7]=c,s[8]=i):i=s[8],s[9]!==i||s[10]!==d?(l=(0,a.jsx)(HE,{children:(0,a.jsxs)(u.so,{align:"center",children:[d,t,i]})}),s[9]=i,s[10]=d,s[11]=l):l=s[11],l},Ud=e=>{let{onClose:t,schedule:n}=e,{updateSchedule:r}=ZC(),{formData:i,isDirty:o,onFormChange:l}=ZU(n),d=(0,s.useCallback)(()=>{i?.date&&r({date:i.date,scheduleId:n.id}).then(t)},[n.id,r,t,i?.date]);return(0,a.jsx)(y.lG,{footer:{confirmButton:{text:"Update",disabled:!o,onClick:d}},header:(0,a.jsx)(Us,{timeZoneScope:H_,title:"Edit schedule"}),id:"time-zone",onClose:t,width:1,children:(0,a.jsx)(Ul,{onChange:l,value:i})})};function Uc(e,t){let n,r,i=(0,o.c)(10),{visible:a,show:l,hide:d,timeZoneScope:c}=function(e){let t,n,r,i=(0,o.c)(5),[a,l]=(0,s.useState)(!1);i[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{l(!1)},i[0]=t):t=i[0];let d=t;i[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{l(!0)},i[1]=n):n=i[1];let c=n;return i[2]!==a||i[3]!==e?(r={visible:a,show:c,timeZoneScope:e,hide:d},i[2]=a,i[3]=e,i[4]=r):r=i[4],r}(t);i[0]!==d||i[1]!==e||i[2]!==a?(n={onClose:d,schedule:e,visible:a},i[0]=d,i[1]=e,i[2]=a,i[3]=n):n=i[3];let u=n,p=a?Ud:null;return i[4]!==u||i[5]!==d||i[6]!==l||i[7]!==p||i[8]!==c?(r={DialogScheduleEdit:p,dialogProps:u,timeZoneScope:c,dialogScheduleEditShow:l,hide:d},i[4]=u,i[5]=d,i[6]=l,i[7]=p,i[8]=c,i[9]=r):r=i[9],r}let Uu=e=>{let t,n,r,i=(0,o.c)(13),{currentUser:l,hasPermission:s,icon:d,onClick:c,permissionsOperationLabel:p,title:m,tone:h,disabled:f}=e;i[0]!==l||i[1]!==p?(t=(0,a.jsx)(u.az,{paddingX:2,paddingY:1,children:(0,a.jsx)(C6,{currentUser:l,context:p})}),i[0]=l,i[1]=p,i[2]=t):t=i[2];let g=!s||f;return i[3]!==d||i[4]!==c||i[5]!==g||i[6]!==m||i[7]!==h?(n=(0,a.jsx)("div",{children:(0,a.jsx)(y.Dr,{disabled:g,icon:d,onClick:c,text:m,tone:h})}),i[3]=d,i[4]=c,i[5]=g,i[6]=m,i[7]=h,i[8]=n):n=i[8],i[9]!==s||i[10]!==t||i[11]!==n?(r=(0,a.jsx)(y.m_,{content:t,disabled:s,placement:"left",portal:!0,children:n}),i[9]=s,i[10]=t,i[11]=n,i[12]=r):r=i[12],r},Up=e=>{let t,n,r,i,l,s,d,c,u,p,m=(0,o.c)(43),{actions:h,onDelete:f,onEdit:g,schedule:y,schemaType:x}=e,{mode:b}=HI();m[0]!==y?(t=ZB(y),m[0]=y,m[1]=t):t=m[1];let v=t,j=Cl(),w=x?.name;m[2]!==v.documentId||m[3]!==w?(n={id:v.documentId,type:w,permission:"publish"},m[2]=v.documentId,m[3]=w,m[4]=n):n=m[4];let[_,k]=Cp(n),{deleteSchedule:S,publishSchedule:T}=ZC(),I=!k&&!_?.granted;m[5]!==g?(r=()=>{g?.()},m[5]=g,m[6]=r):r=m[6];let E=r;m[7]!==S||m[8]!==f||m[9]!==y?(i=()=>{S({schedule:y}).then(()=>f?.())},m[7]=S,m[8]=f,m[9]=y,m[10]=i):i=m[10];let $=i;m[11]!==T||m[12]!==y?(l=()=>{T({schedule:y})},m[11]=T,m[12]=y,m[13]=l):l=m[13];let A=l;return j?(m[14]!==h?.edit||m[15]!==j||m[16]!==E||m[17]!==I||m[18]!==b?(s=h?.edit&&(0,a.jsx)(Uu,{currentUser:j,hasPermission:!I,icon:C.CTc,onClick:E,permissionsOperationLabel:"edit-schedules",title:"Edit schedule",disabled:"upsell"===b}),m[14]=h?.edit,m[15]=j,m[16]=E,m[17]=I,m[18]=b,m[19]=s):s=m[19],m[20]!==h?.execute||m[21]!==j||m[22]!==A||m[23]!==I||m[24]!==b?(d=h?.execute&&(0,a.jsx)(Uu,{currentUser:j,hasPermission:!I,icon:C.VQ$,onClick:A,permissionsOperationLabel:"execute-schedules",title:"Publish now",disabled:"upsell"===b}),m[20]=h?.execute,m[21]=j,m[22]=A,m[23]=I,m[24]=b,m[25]=d):d=m[25],m[26]!==
3232h?.delete||m[27]!==j||m[28]!==$||m[29]!==I||m[30]!==b?(c=h?.delete&&(0,a.jsx)(Uu,{currentUser:j,hasPermission:!I,icon:C.ucK,onClick:$,permissionsOperationLabel:"delete-schedules",title:"Delete schedule",tone:"critical",disabled:"upsell"===b}),m[26]=h?.delete,m[27]=j,m[28]=$,m[29]=I,m[30]=b,m[31]=c):c=m[31],m[32]!==h?.clear||m[33]!==j||m[34]!==$||m[35]!==I||m[36]!==b?(u=h?.clear&&(0,a.jsx)(Uu,{currentUser:j,hasPermission:!I,icon:C.Dee,onClick:$,permissionsOperationLabel:"delete-schedules",title:"Clear completed schedule",disabled:"upsell"===b}),m[32]=h?.clear,m[33]=j,m[34]=$,m[35]=I,m[36]=b,m[37]=u):u=m[37],m[38]!==s||m[39]!==d||m[40]!==c||m[41]!==u?(p=(0,a.jsxs)(a.Fragment,{children:[s,d,c,u]}),m[38]=s,m[39]=d,m[40]=c,m[41]=u,m[42]=p):p=m[42],p):null},Um=e=>{let t,n,r,i,l=(0,o.c)(10),{actions:s,onDelete:d,onEdit:c,schedule:p,schemaType:m}=e;return l[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(rU,{}),l[0]=t):t=l[0],l[1]!==s||l[2]!==d||l[3]!==c||l[4]!==p||l[5]!==m?(n=(0,a.jsx)(u.W1,{children:(0,a.jsx)(Up,{actions:s,onDelete:d,onEdit:c,schedule:p,schemaType:m})}),l[1]=s,l[2]=d,l[3]=c,l[4]=p,l[5]=m,l[6]=n):n=l[6],l[7]===Symbol.for("react.memo_cache_sentinel")?(r={portal:!0,tone:"default"},l[7]=r):r=l[7],l[8]!==n?(i=(0,a.jsx)(y.IU,{button:t,id:"contextMenu",menu:n,placement:"left",popover:r}),l[8]=n,l[9]=i):i=l[9],i},Uh={validation:[],isValidating:!1};function Uf(e){let t,n=(0,o.c)(2);return n[0]!==e?(t=function(e=Uh.validation){let t=e.filter(_.Uw).length>0,n=e.filter(_.AF).length>0,r="default";return n&&(r="default"),t&&(r="critical"),{markers:e,validationTone:r,hasError:t,hasWarning:n}}(e),n[0]=e,n[1]=t):t=n[1],t}function Ug(e){let t,n,r=(0,o.c)(6),{schedule:i,updateValidation:l}=e,s=ZY(i);r[0]!==i?(t=ZN(i),r[0]=i,r[1]=t):t=r[1];let d=t;return d&&s?.name?(r[2]!==d||r[3]!==s.name||r[4]!==l?(n=(0,a.jsx)(UC,{id:d,schemaName:s.name,updateValidation:l}),r[2]=d,r[3]=s.name,r[4]=l,r[5]=n):n=r[5],n):null}function UC(e){let t,n,r,i=(0,o.c)(6),{id:l,schemaName:d,updateValidation:c}=e,[u,p]=(0,s.useState)(!1);return(i[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{let e=setTimeout(()=>{p(!0)},1500);return()=>{clearTimeout(e)}},n=[],i[0]=t,i[1]=n):(t=i[0],n=i[1]),(0,s.useEffect)(t,n),u)?(i[2]!==l||i[3]!==d||i[4]!==c?(r=(0,a.jsx)(Uy,{id:l,schemaName:d,updateValidation:c}),i[2]=l,i[3]=d,i[4]=c,i[5]=r):r=i[5],r):null}function Uy(e){let t,n,r=(0,o.c)(4),{id:i,schemaName:a,updateValidation:l}=e,d=Fz(i,a);return r[0]!==l||r[1]!==d?(t=()=>{d.isValidating||l(d)},n=[l,d],r[0]=l,r[1]=d,r[2]=t,r[3]=n):(t=r[2],n=r[3]),(0,s.useEffect)(t,n),null}function Ux(e){let t,n=(0,o.c)(2);return n[0]!==e?(t=e?e.replaceAll("drafts.",""):void 0,n[0]=e,n[1]=t):t=n[1],t}let Ub=(0,g.I4)(u.EY)`
3233  white-space: initial;
3234`,Uv={error:"critical",warning:"caution",info:"primary"};function Uj(e){let t,n,r,i,l,s,d,c,p,m,h,f=(0,o.c)(30),{marker:g,onClick:y,path:x,truncate:b}=e;f[0]!==g.path||f[1]!==y?(t=()=>{y&&y(g.path)},f[0]=g.path,f[1]=y,f[2]=t):t=f[2];let v=t,j=Uv[g?.level]||void 0,w=g.message??g.item?.message;f[3]!==g.level?(n="error"===g.level&&(0,a.jsx)(C.YZv,{}),f[3]=g.level,f[4]=n):n=f[4],f[5]!==g.level?(r="warning"===g.level&&(0,a.jsx)(C.sAQ,{}),f[5]=g.level,f[6]=r):r=f[6],f[7]!==g.level?(i="info"===g.level&&(0,a.jsx)(C.YzR,{}),f[7]=g.level,f[8]=i):i=f[8],f[9]!==n||f[10]!==r||f[11]!==i?(l=(0,a.jsx)(u.az,{children:(0,a.jsxs)(u.EY,{size:1,children:[n,r,i]})}),f[9]=n,f[10]=r,f[11]=i,f[12]=l):l=f[12],f[13]!==x?(s=x&&(0,a.jsx)(Ub,{size:1,weight:"semibold",children:x}),f[13]=x,f[14]=s):s=f[14],f[15]!==w||f[16]!==b?(d=w&&(0,a.jsx)(Ub,{muted:!0,size:1,textOverflow:b?"ellipsis":void 0,children:w}),f[15]=w,f[16]=b,f[17]=d):d=f[17],f[18]!==s||f[19]!==d?(c=(0,a.jsxs)(u.BJ,{space:2,flex:1,paddingLeft:3,children:[s,d]}),f[18]=s,f[19]=d,f[20]=c):c=f[20],f[21]!==l||f[22]!==c?(p=(0,a.jsxs)(u.so,{children:[l,c]}),f[21]=l,f[22]=c,f[23]=p):p=f[23];let _=p;return f[24]!==_?(m=(0,a.jsx)(u.az,{padding:2,children:_}),f[24]=_,f[25]=m):m=f[25],f[26]!==v||f[27]!==j||f[28]!==m?(h=(0,a.jsx)(u.Dr,{padding:1,onClick:v,radius:2,tone:j,children:m}),f[26]=v,f[27]=j,f[28]=m,f[29]=h):h=f[29],h}function Uw(e){let t,n,r,i,l,s,d,c,p,m=(0,o.c)(27),{documentType:h,kind:f,validation:g,onFocus:C,onClose:y,truncate:x}=e;if(m[0]!==h||m[1]!==f||m[2]!==y||m[3]!==C||m[4]!==x||m[5]!==g){c=Symbol.for("react.early_return_sentinel");e:{let e,o,p=g.filter(_.Uw),b=g.filter(_.AF),v=g.filter(_.Gm);m[14]!==y||m[15]!==C?(e=e=>{C&&C(void 0===e?[]:e),y&&y()},m[14]=y,m[15]=C,m[16]=e):e=m[16];let j=e;m[17]!==h?(o=e=>{let t=h&&h.fields,n=t&&t.find(t=>t.name===e[0]);return n&&n.type.title||""},m[17]=h,m[18]=o):o=m[18];let w=o,k=p.length>0,S=b.length>0,T=v.length>0;if(!k&&!S&&!T){c=null;break e}t=u.mc,n=0,r=f,i="validation-list",l=k&&p.map((e,t)=>(0,a.jsx)(Uj,{truncate:x,path:w(e.path),marker:e,onClick:j},t)),s=S&&b.map((e,t)=>(0,a.jsx)(Uj,{truncate:x,path:w(e.path),marker:e,onClick:j},t)),d=T&&v.map((e,t)=>(0,a.jsx)(Uj,{truncate:x,path:w(e.path),marker:e,onClick:j},t))}m[0]=h,m[1]=f,m[2]=y,m[3]=C,m[4]=x,m[5]=g,m[6]=t,m[7]=n,m[8]=r,m[9]=i,m[10]=l,m[11]=s,m[12]=d,m[13]=c}else t=m[6],n=m[7],r=m[8],i=m[9],l=m[10],s=m[11],d=m[12],c=m[13];return c!==Symbol.for("react.early_return_sentinel")?c:(m[19]!==t||m[20]!==n||m[21]!==r||m[22]!==i||m[23]!==l||m[24]!==s||m[25]!==d?(p=(0,a.jsxs)(t,{width:n,"data-kind":r,"data-testid":i,children:[l,s,d]}),m[19]=t,m[20]=n,m[21]=r,m[22]=i,m[23]=l,m[24]=s,m[25]=d,m[26]=p):p=m[26],p)}let U_={portal:!0,constrainSize:!0,preventOverflow:!0,tone:"default",width:0,placement:"bottom-end"};function Uk(e){let t,n,r,i,d,c,p,m=(0,o.c)(21),{type:h,markers:f,menuHeader:g,documentId:x}=e,b=(0,tq.rd)(),{hasError:v,hasWarning:j}=Uf(f),w=v||j?"visible":"hidden",_=(0,s.useId)()||"",k=Ux(x);m[0]!==k||m[1]!==b?(t=e=>
3234{k&&b.navigateIntent("edit",{id:k,path:encodeURIComponent(l.dI(e))})},m[0]=k,m[1]=b,m[2]=t):t=m[2];let S=t,T=_||"";m[3]===Symbol.for("react.memo_cache_sentinel")?(n={content:"Show validation issues"},m[3]=n):n=m[3];let I=v?C.YZv:C.sAQ;m[4]!==w?(r={visibility:w},m[4]=w,m[5]=r):r=m[5];let E=v?"critical":"default";m[6]!==I||m[7]!==r||m[8]!==E?(i=(0,a.jsx)(y.$n,{tooltipProps:n,mode:"bleed","data-testid":"schedule-validation-list-button",icon:I,style:r,tone:E}),m[6]=I,m[7]=r,m[8]=E,m[9]=i):i=m[9];let $=g??null;return m[10]!==f||m[11]!==S||m[12]!==h?(d=(0,a.jsx)(Uw,{documentType:h,validation:f,onFocus:S}),m[10]=f,m[11]=S,m[12]=h,m[13]=d):d=m[13],m[14]!==$||m[15]!==d?(c=(0,a.jsx)(u.W1,{padding:1,children:(0,a.jsx)(u.mc,{width:0,children:(0,a.jsxs)(u.BJ,{space:1,children:[$,d]})})}),m[14]=$,m[15]=d,m[16]=c):c=m[16],m[17]!==T||m[18]!==c||m[19]!==i?(p=(0,a.jsx)(y.IU,{id:T,button:i,menu:c,popover:U_}),m[17]=T,m[18]=c,m[19]=i,m[20]=p):p=m[20],p}let US=e=>{let t,n,r,i,l,s,d,c,p=(0,o.c)(22),{date:m,useElementQueries:h}=e;p[0]===Symbol.for("react.memo_cache_sentinel")?(t={type:"scheduledPublishing"},p[0]=t):t=p[0];let{formatDateTz:f}=sh(t);p[1]!==m?(n=(0,tV.A)(m,new Date,{addSuffix:!0}),p[1]=m,p[2]=n):n=p[2];let g=n;p[3]!==m||p[4]!==f?(r=f({date:m,format:sr.LARGE}),p[3]=m,p[4]=f,p[5]=r):r=p[5];let C=r;p[6]!==m||p[7]!==f?(i=f({date:m,format:sr.MEDIUM}),p[6]=m,p[7]=f,p[8]=i):i=p[8];let x=i;p[9]!==m||p[10]!==f?(l=f({date:m,format:sr.SMALL}),p[9]=m,p[10]=f,p[11]=l):l=p[11];let b=l;return p[12]!==C||p[13]!==x||p[14]!==b||p[15]!==h?(s=h?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"date-small",children:b}),(0,a.jsx)("span",{className:"date-medium",children:x}),(0,a.jsx)("span",{className:"date-large",children:C})]}):C,p[12]=C,p[13]=x,p[14]=b,p[15]=h,p[16]=s):s=p[16],p[17]!==s?(d=(0,a.jsx)("span",{children:s}),p[17]=s,p[18]=d):d=p[18],p[19]!==g||p[20]!==d?(c=(0,a.jsx)(u.EY,{size:1,textOverflow:"ellipsis",children:(0,a.jsx)(y.m_,{content:g,portal:!0,children:d})}),p[19]=g,p[20]=d,p[21]=c):c=p[21],c},UT={portal:!0,constrainSize:!0,preventOverflow:!0,tone:"default",width:0},UI=e=>{let t,n,r,i,l,s=(0,o.c)(6),{stateReason:d}=e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(y.$n,{tooltipProps:{content:"Schedule failed"},mode:"bleed","data-testid":"schedule-validation-list-button",icon:C.YZv,tone:"critical"}),s[0]=t):t=s[0],s[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(u.EY,{size:1,children:"This schedule failed to run."}),s[1]=n):n=s[1],s[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,a.jsx)(u.EY,{size:1,style:{color:v.wv[700].hex},children:(0,a.jsx)(C.YZv,{})}),s[2]=r):r=s[2],s[3]===Symbol.for("react.memo_cache_sentinel")?(i={color:v.wv[700].hex},s[3]=i):i=s[3],s[4]!==d?(l=(0,a.jsx)(y.IU,{id:"stateReason",button:t,menu:(0,a.jsx)(u.W1,{padding:1,children:(0,a.jsxs)(u.mc,{padding:2,width:0,children:[n,(0,a.jsxs)(u.so,{gap:3,marginTop:4,padding:1,children:[r,(0,a.jsx)(u.EY,{size:1,style:i,weight:"medium",children:d})]})]})}),popover:UT}),s[4]=d,s[5]=l):l=s[5],l},UE=e=>{let t,n=(0,o.c)(2),{id:r}=e;return n[0]!==r?(t=(0,a.jsx)(cz,{user:r,withTooltip:!0}),n[0]=r,n[1]=t):t=n[1],t},U$=(0,g.I4)(u.az)`
3235  width: 9px;
3236`,UA=e=>{let t,n,r,i,l,d,c,p,m,h,f,g,C,x,b,v,j,w,_,k,S,T,I,E,$,A,D,z,M,P,R,O,V,L,F,B,N,Y,H,Z,U,q,J,W,K,G,X,Q,ee,et,en,er,ei,ea,eo,el,es,ed,ec,eu,ep,em,eh,ef,eg,eC,ey,ex=(0,o.c)(163),{children:eb,contextMenu:ev,linkComponent:ej,onClick:ew,previewState:e_,publishedDocumentId:ek,schedule:eS,schemaType:eT,useElementQueries:eI}=e,{mode:eE}=HI(),[e$,eA]=(0,s.useState)(Uh),{validation:eD}=e$,{hasError:ez,validationTone:eM}=Uf(eD);ex[0]===Symbol.for("react.memo_cache_sentinel")?(t={type:"scheduledPublishing"},ex[0]=t):t=ex[0];let{formatDateTz:eP}=sh(t);if(ex[1]!==eb||ex[2]!==eP||ex[3]!==ej||ex[4]!==eE||ex[5]!==ew||ex[6]!==e_?.draft||ex[7]!==e_?.published||ex[8]!==eS||ex[9]!==eM){let e=Zd(eS);m=e?new Date(e):null,p=u.Zp,M=1,P=2,R=1,V=eM,ex[49]!==eE||ex[50]!==eS.state?(L="upsell"===eE&&"scheduled"===eS.state?{opacity:.7}:void 0,ex[49]=eE,ex[50]=eS.state,ex[51]=L):L=ex[51],c=u.so,A="center",D=1,z="space-between",d=y.m_,ex[52]===Symbol.for("react.memo_cache_sentinel")?(T={open:400},ex[52]=T):T=ex[52],I="bottom-end";let t=e_?.draft,o=e_?.published;ex[53]!==t||ex[54]!==o?(E=(0,a.jsx)(etu,{draft:t,published:o}),ex[53]=t,ex[54]=o,ex[55]=E):E=ex[55],$=!e_?.draft&&!e_?.published,l=u.Zp,g=!0,C=ej||void 0,x=ew||ej?"a":void 0,b=1,v=ew,j=1,w=2,_=0,k=eM,i=u.s
3236o,B="center",N=3,Y="flex-start",ex[56]!==eb?(H=eb?0:[1,2],ex[56]=eb,ex[57]=H):H=ex[57],ex[58]!==eb?(Z=eb&&(0,a.jsx)(u.az,{style:{flexBasis:"auto",flexGrow:1},children:eb}),ex[58]=eb,ex[59]=Z):Z=ex[59],ex[60]!==eS.action?(f="unpublish"===eS.action&&(0,a.jsx)(u.so,{style:{flexShrink:0},children:(0,a.jsx)(u.Ex,{fontSize:0,mode:"outline",tone:Hx[eS.action].badgeTone,children:eS.action})}),ex[60]=eS.action,ex[61]=f):f=ex[61],r=u.az,ex[62]===Symbol.for("react.memo_cache_sentinel")?(O=["block","none"],F={flexShrink:0,width:"90px"},ex[62]=O,ex[63]=F):(O=ex[62],F=ex[63]),n=u.BJ,h=2,S=m?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.EY,{size:1,children:eP({date:m,format:"dd/MM/yyyy"})}),(0,a.jsx)(u.EY,{size:1,children:eP({date:m,format:"p"})})]}):(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)("em",{children:"No date specified"})}),ex[1]=eb,ex[2]=eP,ex[3]=ej,ex[4]=eE,ex[5]=ew,ex[6]=e_?.draft,ex[7]=e_?.published,ex[8]=eS,ex[9]=eM,ex[10]=n,ex[11]=r,ex[12]=i,ex[13]=l,ex[14]=d,ex[15]=c,ex[16]=p,ex[17]=m,ex[18]=h,ex[19]=f,ex[20]=g,ex[21]=C,ex[22]=x,ex[23]=b,ex[24]=v,ex[25]=j,ex[26]=w,ex[27]=_,ex[28]=k,ex[29]=S,ex[30]=T,ex[31]=I,ex[32]=E,ex[33]=$,ex[34]=A,ex[35]=D,ex[36]=z,ex[37]=M,ex[38]=P,ex[39]=R,ex[40]=O,ex[41]=V,ex[42]=L,ex[43]=F,ex[44]=B,ex[45]=N,ex[46]=Y,ex[47]=H,ex[48]=Z}else n=ex[10],r=ex[11],i=ex[12],l=ex[13],d=ex[14],c=ex[15],p=ex[16],m=ex[17],h=ex[18],f=ex[19],g=ex[20],C=ex[21],x=ex[22],b=ex[23],v=ex[24],j=ex[25],w=ex[26],_=ex[27],k=ex[28],S=ex[29],T=ex[30],I=ex[31],E=ex[32],$=ex[33],A=ex[34],D=ex[35],z=ex[36],M=ex[37],P=ex[38],R=ex[39],O=ex[40],V=ex[41],L=ex[42],F=ex[43],B=ex[44],N=ex[45],Y=ex[46],H=ex[47],Z=ex[48];ex[64]!==n||ex[65]!==h||ex[66]!==S?(U=(0,a.jsx)(n,{space:h,children:S}),ex[64]=n,ex[65]=h,ex[66]=S,ex[67]=U):U=ex[67],ex[68]!==r||ex[69]!==O||ex[70]!==U||ex[71]!==F?(q=(0,a.jsx)(r,{display:O,style:F,children:U}),ex[68]=r,ex[69]=O,ex[70]=U,ex[71]=F,ex[72]=q):q=ex[72],ex[73]===Symbol.for("react.memo_cache_sentinel")?(J=["none","block"],ex[73]=J):J=ex[73];let eR=eb?"35%":"auto";ex[74]!==eR?(W={flexShrink:0,maxWidth:"250px",width:eR},ex[74]=eR,ex[75]=W):W=ex[75],ex[76]!==m||ex[77]!==eI?(K=m?(0,a.jsx)(US,{date:m,useElementQueries:eI}):(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)("em",{children:"No date specified"})}),ex[76]=m,ex[77]=eI,ex[78]=K):K=ex[78],ex[79]!==W||ex[80]!==K?(G=(0,a.jsx)(u.az,{display:J,style:W,children:K}),ex[79]=W,ex[80]=K,ex[81]=G):G=ex[81],ex[82]!==eb?(X=!eb&&(0,a.jsx)(u.az,{style:{visibility:"hidden"},children:(0,a.jsx)(cU,{isPlaceholder:!0})}),ex[82]=eb,ex[83]=X):X=ex[83],ex[84]===Symbol.for("react.memo_cache_sentinel")?(Q={flexShrink:0,marginLeft:"auto"},ex[84]=Q):Q=ex[84],ex[85]===Symbol.for("react.memo_cache_sentinel")?(ee=["none","none","block"],ex[85]=ee):ee=ex[85],ex[86]===Symbol.for("react.memo_cache_sentinel")?(et={flexShrink:0},ex[86]=et):et=ex[86];let eO=eS?.author;return ex[87]!==eO?(en=(0,a.jsx)(u.az,{display:ee,marginX:3,style:et,children:(0,a.jsx)(UE,{id:eO})}),ex[87]=eO,ex[88]=en):en=ex[88],ex[89]===Symbol.for("react.memo_cache_sentinel")?(er=["none","block"],ei=[2,2,3],ea={flexShrink:0},ex[89]=er,ex[90]=ei,ex[91]=ea):(er=ex[89],ei=ex[90],ea=ex[91]),ex[92]!==ek?(eo=(0,a.jsx)(u.az,{display:er,marginX:ei,style:ea,children:ek?(0,a.jsx)(UD,{publishedDocumentId:ek}):(0,a.jsx)(U$,{})}),ex[92]=ek,ex[93]=eo):eo=ex[93],ex[94]!==en||ex[95]!==eo?(el=(0,a.jsxs)(u.so,{align:"center",style:Q,children:[en,eo]}),ex[94]=en,ex[95]=eo,ex[96]=el):el=ex[96],ex[97]!==i||ex[98]!==f||ex[99]!==q||ex[100]!==G||ex[101]!==X||ex[102]!==el||ex[103]!==B||ex[104]!==N||ex[105]!==Y||ex[106]!==H||ex[107]!==Z?(es=(0,a.jsxs)(i,{align:B,gap:N,justify:Y,paddingLeft:H,children:[Z,f,q,G,X,el]}),ex[97]=i,ex[98]=f,ex[99]=q,ex[100]=G,ex[101]=X,ex[102]=el,ex[103]=B,ex[104]=N,ex[105]=Y,ex[106]=H,ex[107]=Z,ex[108]=es):es=ex[108],ex[109]!==l||ex[110]!==g||ex[111]!==C||ex[112]!==x||ex[113]!==b||ex[114]!==v||ex[115]!==j||ex[116]!==w||ex[117]!==_||ex[118]!==k||ex[119]!==es?(ed=(0,a.jsx)(l,{__unstable_focusRing:g,as:C,"data-as":x,flex:b,onClick:v,padding:j,radius:w,tabIndex:_,tone:k,children:es}),ex[109]=l,ex[110]=g,ex[111]=C,ex[112]=x,ex[113]=b,ex[114]=v,ex[115]=j,ex[116]=w,ex[117]=_,ex[118]=k,ex[119]=es,ex[120]=ed):ed=ex[120],ex[121]!==d||ex[122]!==T||ex[123]!==I||ex[124]!==E||ex[125]!==$||ex[126]!==ed?(ec=(0,a.jsx)(d,{delay:T,placement:I,content:E,disabled:$,children:ed}),ex[121]=d,ex[122]=T,ex[123]=I,ex[124]=E,ex[125]=$,ex[126]=ed,ex[127]=ec):ec=ex[127],ex[128]===Symbol.for("react.memo_cache_sentinel")?(eu={width:"38px"},ex[128]=eu):eu=ex[128],ex[129]!==ez||ex[130]!==ek||ex[131]!==eS||ex[132]!==eT||ex[133]!==eD?(ep="scheduled"===eS.state&&(0,a.jsxs)(u.az,{children:[(0,a.jsx)(Ug,{schedule:eS,updateV
3236alidation:eA}),(0,a.jsx)(Uk,{markers:eD,type:eT,documentId:ek,menuHeader:(0,a.jsx)(u.az,{padding:2,children:(0,a.jsx)(u.EY,{size:1,children:ez?Hj:"This document has validation warnings."})})})]}),ex[129]=ez,ex[130]=ek,ex[131]=eS,ex[132]=eT,ex[133]=eD,ex[134]=ep):ep=ex[134],ex[135]!==eS.state||ex[136]!==eS.stateReason?(em="cancelled"===eS.state&&(0,a.jsx)(UI,{stateReason:eS.stateReason}),ex[135]=eS.state,ex[136]=eS.stateReason,ex[137]=em):em=ex[137],ex[138]!==ep||ex[139]!==em?(eh=(0,a.jsxs)(u.so,{justify:"center",style:eu,children:[ep,em]}),ex[138]=ep,ex[139]=em,ex[140]=eh):eh=ex[140],ex[141]!==eS.state||ex[142]!==eS.stateReason?(ef="cancelled"===eS.state&&(0,a.jsx)(UI,{stateReason:eS.stateReason}),ex[141]=eS.state,ex[142]=eS.stateReason,ex[143]=ef):ef=ex[143],ex[144]!==ev?(eg=ev&&(0,a.jsx)(u.az,{style:{flexShrink:0},paddingRight:2,children:ev}),ex[144]=ev,ex[145]=eg):eg=ex[145],ex[146]!==c||ex[147]!==A||ex[148]!==D||ex[149]!==z||ex[150]!==ec||ex[151]!==eh||ex[152]!==ef||ex[153]!==eg?(eC=(0,a.jsxs)(c,{align:A,gap:D,justify:z,children:[ec,eh,ef,eg]}),ex[146]=c,ex[147]=A,ex[148]=D,ex[149]=z,ex[150]=ec,ex[151]=eh,ex[152]=ef,ex[153]=eg,ex[154]=eC):eC=ex[154],ex[155]!==p||ex[156]!==M||ex[157]!==P||ex[158]!==R||ex[159]!==V||ex[160]!==L||ex[161]!==eC?(ey=(0,a.jsx)(p,{padding:M,radius:P,shadow:R,tone:V,style:L,children:eC}),ex[155]=p,ex[156]=M,ex[157]=P,ex[158]=R,ex[159]=V,ex[160]=L,ex[161]=eC,ex[162]=ey):ey=ex[162],ey};function UD(e){let t,n=(0,o.c)(3),{publishedDocumentId:r}=e,i=uK(r);return n[0]!==i.draft||n[1]!==i.published?(t=(0,a.jsx)(hR,{draft:i.draft,published:i.published}),n[0]=i.draft,n[1]=i.published,n[2]=t):t=n[2],t}let Uz=e=>{let t,n,r,i,l,d,u,p=(0,o.c)(20),{schedule:m,schemaType:h}=e,{DialogScheduleEdit:f,dialogProps:g,dialogScheduleEditShow:C}=Uc(m,H_),{onComplete:y}=function(){let e=(0,s.useContext)(c.Nj);if(void 0===e)throw Error("useDocumentActionProps must be used within a DocumentActionPropsProvider");return e}();return p[0]!==m?(n=ZN(m),p[0]=m,p[1]=n):n=p[1],t=n,p[2]!==f||p[3]!==g?(r=f&&(0,a.jsx)(f,{...g}),p[2]=f,p[3]=g,p[4]=r):r=p[4],p[5]===Symbol.for("react.memo_cache_sentinel")?(i={delete:!0,edit:!0},p[5]=i):i=p[5],p[6]!==C||p[7]!==y||p[8]!==m||p[9]!==h?(l=(0,a.jsx)(Um,{actions:i,onDelete:y,onEdit:C,schedule:m,schemaType:h}),p[6]=C,p[7]=y,p[8]=m,p[9]=h,p[10]=l):l=p[10],p[11]!==C||p[12]!==t||p[13]!==m||p[14]!==h||p[15]!==l?(d=(0,a.jsx)(UA,{contextMenu:l,onClick:C,publishedDocumentId:t,schedule:m,schemaType:h}),p[11]=C,p[12]=t,p[13]=m,p[14]=h,p[15]=l,p[16]=d):d=p[16],p[17]!==r||p[18]!==d?(u=(0,a.jsxs)(a.Fragment,{children:[r,d]}),p[17]=r,p[18]=d,p[19]=u):u=p[19],u},UM=e=>{let t,n,r,i,l,s=(0,o.c)(10),{onDelete:d,schedule:c}=e,{deleteSchedule:p}=ZC();s[0]!==p||s[1]!==d||s[2]!==c?(t=()=>{p({schedule:c}).then(()=>d?.())},s[0]=p,s[1]=d,s[2]=c,s[3]=t):t=s[3];let m=t;return s[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(rU,{}),s[4]=n):n=s[4],s[5]!==m?(r=(0,a.jsx)(u.W1,{children:(0,a.jsx)(y.Dr,{icon:C.ucK,onClick:m,text:"Delete schedule",tone:"critical"})}),s[5]=m,s[6]=r):r=s[6],s[7]===Symbol.for("react.memo_cache_sentinel")?(i={portal:!0,tone:"default"},s[7]=i):i=s[7],s[8]!==r?(l=(0,a.jsx)(y.IU,{button:n,id:"contextMenu",menu:r,placement:"left",popover:i}),s[8]=r,s[9]=l):l=s[9],l},UP=e=>{let t,n,r,i=(0,o.c)(6),{schedule:l}=e;return i[0]!==l?(t=(0,a.jsx)(UM,{schedule:l}),i[0]=l,i[1]=t):t=i[1],i[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(cU,{icon:C.KSC,layout:"default",subtitle:(0,a.jsx)("em",{children:"It may have been deleted"}),title:(0,a.jsx)("em",{style:{color:v.wv[600].hex},children:"Document not found"})}),i[2]=n):n=i[2],i[3]!==l||i[4]!==t?(r=(0,a.jsx)(UA,{contextMenu:t,schedule:l,useElementQueries:!0,children:n}),i[3]=l,i[4]=t,i[5]=r):r=i[5],r},UR=e=>{let t,n,r,i,l,d,c,u,p=(0,o.c)(30),{previewState:m,schedule:h,schemaType:f}=e,g=m.draft||m.published,C="succeeded"===h.state,y="scheduled"===h.state,{DialogScheduleEdit:x,dialogProps:b,dialogScheduleEditShow:v}=Uc(h,H_),j=Ux(g?._id);p[0]!==f||p[1]!==g?((n=(0,s.forwardRef)((e,t)=>(0,a.jsx)(tq.RZ,{...e,intent:"edit",params:{type:f.name,id:g&&ib(g?._id)},ref:t}))).displayName="ForwardRef(LinkComponent)",p[0]=f,p[1]=g,p[2]=n):n=p[2],t=n,p[3]!==x||p[4]!==b?(r=x&&(0,a.jsx)(x,{...b}),p[3]=x,p[4]=b,p[5]=r):r=p[5];let w=!C;return p[6]!==C||p[7]!==y||p[8]!==w?(i={clear:C,delete:w,edit:y,execute:y},p[6]=C,p[7]=y,p[8]=w,p[9]=i):i=p[9],p[10]!==v||p[11]!==h||p[12]!==f||p[13]!==i?(l=(0,a.jsx)(Um,{actions:i,onEdit:v,schedule:h,schemaType:f}),p[10]=v,p[11]=h,p[12]=f,p[13]=i,p[14]=l):l=p[14],p[15]!==m.isLoading||p[16]!==f||p[17]!==g?(d=m.isLoading?(0,a.jsx)(cU,{icon:f?.icon,isPlaceholder:m.isLoading,layout:"default"}):(0,a.jsx)(DM,{layout:"default",schemaType:f,value:g}),p[15]=m.isLoading,p[16]=f,p[17]=g,p[18]=d):d=p[18],p[19]!==t||p[20]!==m||p[21]!==j||p[22]!==h||p[23]!==f||p[24]!==l||p[25]!==d?(c=(0,a.jsx)(UA,{contextMenu:l,linkComponent:t,previewState:m,publishedDocumentId:j,schedule:h,schemaType:f,useElementQueries:!0,children:d}),p[19]=t,p[20]=m,p[21]=j,p[22]=h,p[23]=f,p[24]=l,p[25]=d,p[26]=c):c=p[26],p[27]!==r||p[28]!==c?(u=(0,a.jsxs)(a.Fragment,{children:[r,c]}),p[27]=r,p[28]=c,p[29]=u):u=p[29],u},UO=e=>{let t,n,r,i=(0,o.c)(13),{schedule:l,type:d}=e;i[0]!==l?(t=ZB(l),i[0]=l,i[1]=t):t=i[1];let c=t,u=ZY(l),p=function(e,t){let n,r,i,a=(0,o.c)(6),l=z4();a[0]===Symbol.for("react.memo_cache_sentinel")?(n={},a[0]=n):n=a[0];
3236let[d,c]=(0,s.useState)(n);return a[1]!==e||a[2]!==l||a[3]!==t?(r=()=>{if(!t)return;let n=(function(e,t,n,r){let i=!0===t.liveEdit?(0,k.of)({snapshot:null}):e.observeForPreview({_type:"reference",_ref:im(n)},t),a=e.observeForPreview({_type:"reference",_ref:ib(n)},t);return(0,eo.z)([i,a]).pipe((0,E.T)(([e,t])=>({draft:e.snapshot?{title:"",...e.snapshot}:null,isLoading:!1,published:t.snapshot?{title:"",...t.snapshot}:null})),(0,Z.Z)({draft:null,isLoading:!0,published:null}))})(l,t,e,"").subscribe(e=>{c(e)});return()=>{n?.unsubscribe()}},i=[l,t,e],a[1]=e,a[2]=l,a[3]=t,a[4]=r,a[5]=i):(r=a[4],i=a[5]),(0,s.useEffect)(r,i),d}(c?.documentId,u),m=!(p.draft||p.published)&&!p.isLoading;e:{if(!u||m){let e;i[2]!==l?(e=(0,a.jsx)(UP,{schedule:l}),i[2]=l,i[3]=e):e=i[3],n=e;break e}if("document"===d){let e;i[4]!==l||i[5]!==u?(e=(0,a.jsx)(Uz,{schedule:l,schemaType:u}),i[4]=l,i[5]=u,i[6]=e):e=i[6],n=e;break e}if("tool"===d){let e;i[7]!==p||i[8]!==l||i[9]!==u?(e=(0,a.jsx)(UR,{previewState:p,schedule:l,schemaType:u}),i[7]=p,i[8]=l,i[9]=u,i[10]=e):e=i[10],n=e;break e}n=null}let h=n;return i[11]!==h?(r=(0,a.jsx)(ZH,{children:h}),i[11]=h,i[12]=r):r=i[12],r};function UV(e){let{item:{content:t,virtualRow:n},measureElement:r}=e,i=(0,s.useMemo)(()=>({position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${n.start}px)`}),[n]);return(0,a.jsx)(u.az,{"data-index":n.index,paddingBottom:2,ref:r,style:i,children:"string"==typeof t?(0,a.jsx)(UF,{content:t}):(0,a.jsx)(UL,{schedule:t})},n.key)}function UL({schedule:e}){let[t,n]=(0,s.useState)((0,a.jsx)(UB,{}));return(0,s.useEffect)(()=>{let t=!0,r=setTimeout(()=>{t&&n((0,a.jsx)(UO,{schedule:e,type:"tool"}))},200);return()=>{t=!1,clearTimeout(r)}},[e]),t}function UF({content:e}){return(0,a.jsx)(u.so,{align:"flex-end",paddingBottom:2,paddingTop:4,children:(0,a.jsx)(u.JU,{muted:!0,size:1,children:e})})}function UB(){return(0,a.jsx)(u.Zp,{padding:1,radius:2,shadow:1,children:(0,a.jsx)(u.Zp,{padding:1,children:(0,a.jsx)(cU,{isPlaceholder:!0})})})}function UN(e){return new Date(e).toLocaleString("default",{month:"long",year:"numeric"})}let UY=()=>{let{activeSchedules:e,scheduleState:t,sortBy:n}=Zw(),{measureElement:r,virtualList:i,totalSize:o,containerRef:l}=function(e,t){let n=(0,s.useRef)(null),r=(0,s.useMemo)(()=>{let n=[];return e.forEach((r,i)=>{if("executeAt"==t){let t=Zd(e[i-1]),a=i>0&&t?UN(t):null,o=Zd(r),l=o?UN(o):null;l!==a&&n.push(l||"No date specified")}n.push(r)}),n},[e,t]),i=(0,m.Te)({count:r.length,getScrollElement:()=>n.current,estimateSize:()=>50,overscan:5}),a=i.getVirtualItems().map(e=>{let t=r[e.index];return{content:t,key:"string"==typeof t?t:t.id,virtualRow:e}});return{containerRef:n,measureElement:i.measureElement,totalSize:i.getTotalSize(),virtualList:a}}(e,n),{deleteSchedules:d}=ZC();return(0,s.useEffect)(()=>{l?.current?.scrollTo(0,0)},[t,n,l]),(0,a.jsxs)(u.az,{paddingBottom:6,paddingTop:1,paddingX:4,ref:l,overflow:"hidden",children:[(0,a.jsx)(u.az,{style:{height:`${o}px`,width:"100%",position:"relative"},children:i.map(e=>(0,a.jsx)(UV,{item:e,measureElement:r},e.key))}),"succeeded"===t&&(0,a.jsx)(u.so,{justify:"center",marginTop:6,children:(0,a.jsx)(y.$n,{icon:C.Dee,mode:"ghost",onClick:()=>{d({schedules:e||[]})},text:"Clear all completed schedules"})})]})},UH=(0,g.I4)(u.mc)`
3237  width: auto;
3238`,UZ=()=>{let e,t,n,r,i=(0,o.c)(13),{activeSchedules:l,selectedDate:s,scheduleState:d}=Zw(),{upsellData:c,telemetryLogs:p}=ZR(),{mode:m}=HI(),h="upsell"===m&&"scheduled"===d;return i[0]===Symbol.for("react.memo_cache_sentinel")?(e={height:"100%"},i[0]=e):e=i[0],i[1]!==m||i[2]!==p||i[3]!==c?(t="upsell"===m&&c&&(0,a.jsx)(UH,{width:1,padding:4,paddingBottom:1,children:(0,a.jsx)(NV,{layout:"horizontal",data:c,onPrimaryClick:p.panelPrimaryClicked,onSecondaryClick:p.panelSecondaryClicked})}),i[1]=m,i[2]=p,i[3]=c,i[4]=t):t=i[4],i[5]!==l.length||i[6]!==d||i[7]!==s||i[8]!==h?(n=0===l.length?(0,a.jsx)(UH,{width:1,padding:4,paddingTop:4,children:(0,a.jsx)(ZF,{scheduleState:d,selectedDate:s})}):(0,a.jsxs)(a.Fragment,{children:[h&&(0,a.jsx)(u.Zp,{margin:4,marginBottom:2,padding:3,tone:"caution",radius:3,shadow:1,children:(0,a.jsxs)(u.so,{gap:3,align:"center",children:[(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.sAQ,{})}),(0,a.jsx)(u.EY,{size:1,children:"Your scheduled documents won't be published automatically unless you upgrade your plan. You can still publish them manually."})]})}),(0,a.jsx)(u.az,{paddingTop:4*!h,children:(0,a.jsx)(UY,{})})]}),i[5]=l.length,i[6]=d,i[7]=s,i[8]=h,i[9]=n):n=i[9],i[10]!==t||i[11]!==n?(r=(0,a.jsxs)(u.az,{style:e,children:[t,n]}),i[10]=t,i[11]=n,i[12]=r):r=i[12],r},UU=()=>{let e,t,n,r,i,l,s,d=(0,o.c)(15),{setSortBy:c,sortBy:p}=Zw();d[0]!==c?(e=()=>c("createdAt"),d[0]=c,d[1]=e):e=d[1];let m=e;d[2]!==c?(t=()=>c("executeAt"),d[2]=c,d[3]=t):t=d[3];let h=t;d[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(rU,{}),d[4]=n):n=d[4],d[5]===Symbol.for("react.memo_cache_sentinel")?(r={minWidth:"250px"},d[5]=r):r=d[5];let f="createdAt"===p?C.Nrt:void 0;d[6]!==m||d[7]!==f?(i=(0,a.jsx)(y.Dr,{icon:C.ycB,iconRight:f,onClick:m,text:"Sort by time added"}),d[6]=m,d[7]=f,d[8]=i):i=d[8];let g="executeAt"===p?C.Nrt:void 0;return d[9]!==h||d[10]!==g?(l=(0,a.jsx)(y.Dr,{icon:C.ycB,iconRight:g,onClick:h,text:"Sort by time scheduled"}),d[9]=h,d[10]=g,d[11]=l):l=d[11],d[12]!==i||d[13]!==l?(s=(0,a.jsx)(y.IU,{button:n,id:"sort",menu:(0,a.jsxs)(u.W1,{style:r,children:[i,l]})}),d[12]=i,d[13]=l,d[14]=s):s=d[14],s},Uq=e=>{let t,n,r,i=(0,o.c)(8),{mode:l,selected:s}=e,d=void 0===l?"default":l;return i[0]!==d||i[1]!==s?(t="default"===d?{background:v.wm[s?100:300].hex}:{},i[0]=d,i[1]=s,i[2]=t):t=i[2],i[3]!==d?(n="failed"===d?{background:v.wv[500].hex}:{},i[3]=d,i[4]=n):n=i[4],i[5]!==t||i[6]!==n?(r=(0,a.jsx)(u.az,{style:{...t,...n,borderRadius:"2px",height:"2px",width:"100%"}}),i[5]=t,i[6]=n,i[7]=r):r=i[7],r};function UJ(e){let t,{date:n,focused:r,isCurrentMonth:i,isToday:o,onSelect:l,selected:d}=e,{schedulesByDate:c}=Zw(),p=c(n),m=(0,s.useCallback)(()=>{l(d?void 0:n)},[n,l,d]);o||d?t="primary":((0,t$.A)(n),t="default");let h=p.length>0,{completed:f,failed:g,upcoming:x}=(0,s.useMemo)(()=>({completed:p.filter(e=>"succeeded"===e.state),failed:p.filter(e=>"cancelled"===e.state),upcoming:p.filter(e=>"scheduled"===e.state)}),[p]);return(0,a.jsx)("div",{"aria-selected":d,"data-ui":"CalendarDay",children:(0,a.jsx)(y.m_,{content:(0,a.jsx)(UW,{date:n,schedules:p}),disabled:!h,portal:!0,children:(0,a.jsxs)(u.Zp,{"aria-label":n.toDateString(),"aria-pressed":d,as:"button",__unstable_focusRing:!0,"data-weekday":!0,"data-focused":r?"true":"",role:"button",tabIndex:-1,onClick:m,paddingX:3,paddingY:4,radius:2,selected:d,style:{position:"relative"},tone:t,children:[(0,a.jsx)(u.EY,{size:1,style:{opacity:d||i?1:.35,textAlign:"center"},children:d?(0,a.jsx)(C.USm,{}):n.getDate()}),(0,a.jsx)(u.az,{style:{bottom:2,left:2,position:"absolute",right:2},children:(0,a.jsxs)(u.so,{align:"center",gap:1,justify:"center",children:[f.length>0&&(0,a.jsx)(Uq,{selected:d}),x.length>0&&(0,a.jsx)(Uq,{selected:d}),g.length>0&&(0,a.jsx)(Uq,{mode:"failed",selected:d})]})})]})})})}function UW(e){let t,n,r,i,l,s,d,c,p,m,h=(0,o.c)(25),{date:f,schedules:g}=e;h[0]!==g?(t=void 0===g?[]:g,h[0]=g,h[1]=t):t=h[1];let C=t;h[2]===Symbol.for("react.memo_cache_sentinel")?(n={type:"scheduledPublishing"},h[2]=n):n=h[2];let{formatDateTz:y}=sh(n);if(h[3]!==f||h[4]!==y||h[5]!==C){let e,t=C.reduce(UG,{cancelled:[],succeeded:[],scheduled:[]});i=u.az,d=3,h[12]!==f?(e=(0,ty.A)(f,"d MMMM yyyy"),h[12]=f,h[13]=e):e=h[13],h[14]!==e?(c=(0,a.jsx)(u.az,{marginBottom:4,children:(0,a.jsx)(u.EY,{size:1,weight:"medium",children:e})}),h[14]=e,h[15]=c):c=h[15],r=u.BJ,l=3,s=Object.keys(t).map(e=>{let n=t[e];return 0===n.length?null:(0,a.jsxs)(u.BJ,{space:2,children:[(0,a.jsx)(u.JU,{muted:!0,size:0,children:Hb[e].title}),(0,a.jsx)(u.BJ,{space:1,children:n.filter(UK).map(e=>{let t=Zd(e);return t?(0,a.jsxs)(u.cV,{space:2,children:[(0,a.jsx)(u.az,{style:{width:"60px"},children:(0,a.jsx)(u.EY,{size:1,weight:"regular",children:y({date:new Date(t),format:"p"})})}),(0,a.jsx)(u.so,{align:"center",style:{flexShrink:0,opacity:+("unpublish"===e.action)}
3238,children:(0,a.jsx)(u.Ex,{fontSize:0,mode:"outline",tone:Hx[e.action].badgeTone,children:e.action})})]},e.id):null})})]},e)}),h[3]=f,h[4]=y,h[5]=C,h[6]=r,h[7]=i,h[8]=l,h[9]=s,h[10]=d,h[11]=c}else r=h[6],i=h[7],l=h[8],s=h[9],d=h[10],c=h[11];return h[16]!==r||h[17]!==l||h[18]!==s?(p=(0,a.jsx)(r,{space:l,children:s}),h[16]=r,h[17]=l,h[18]=s,h[19]=p):p=h[19],h[20]!==i||h[21]!==d||h[22]!==c||h[23]!==p?(m=(0,a.jsxs)(i,{padding:d,children:[c,p]}),h[20]=i,h[21]=d,h[22]=c,h[23]=p,h[24]=m):m=h[24],m}function UK(e){return e.executeAt}function UG(e,t){return e[t.state].push(t),e}let UX=e=>{let t,n,r,i=(0,o.c)(11),{onSelect:l,selectedDate:d,timeZoneScope:c}=e,{getCurrentZoneDate:u,utcToCurrentZoneDate:p}=sh(c);i[0]!==u||i[1]!==d?(t=d||u(),i[0]=u,i[1]=d,i[2]=t):t=i[2];let[m,h]=(0,s.useState)(t);i[3]!==p?(n=e=>{h(p(e))},i[3]=p,i[4]=n):n=i[4];let f=n;return i[5]!==m||i[6]!==f||i[7]!==l||i[8]!==d||i[9]!==c?(r=(0,a.jsx)(CI,{focusedDate:m,onFocusedDateChange:f,onSelect:l,selectedDate:d,renderCalendarDay:UJ,timeZoneScope:c}),i[5]=m,i[6]=f,i[7]=l,i[8]=d,i[9]=c,i[10]=r):r=i[10],r},UQ=(0,g.I4)(u.az)`
3239  flex-direction: column;
3240  &:not(:last-child) {
3241    border-right: 1px solid var(--card-border-color);
3242  }
3243`,U1=[],U2="yyyy-MM-dd";function U5(){let e,t,n,r,i,l,d,c,p,m,h,f,g,C,y,x,b,v,j,w,_,k,S,T,I,E,$=(0,o.c)(63),A=(0,tq.rd)(),{scheduledPublishing:D}=lE(),z=yR(),{sanity:M}=(0,u.DP)(),{error:P,isInitialLoading:R,schedules:O}=Zx(),V=void 0===O?U1:O,{t:L}=iJ(),{enabled:F,hasUsedScheduledPublishing:B}=HI(),N=(0,s.useRef)(void 0),Y=A.state.state;$[0]!==A.state.date?(e=A.state.date?(0,tt.A)(A.state.date,U2,new Date):void 0,$[0]=A.state.date,$[1]=e):e=$[1];let H=e;$[2]!==A.state.state?(t=()=>{A.state.state&&(N.current=A.state.state)},n=[A.state.state],$[2]=A.state.state,$[3]=t,$[4]=n):(t=$[3],n=$[4]),(0,s.useEffect)(t,n),function(e,t,n){let r,i,a=(0,o.c)(5);a[0]!==t||a[1]!==e||a[2]!==n?(r=()=>{t||n||e.navigate({state:Hv[0]},{replace:!0})},i=[n,e,t],a[0]=t,a[1]=e,a[2]=n,a[3]=r,a[4]=i):(r=a[3],i=a[4]),(0,s.useEffect)(r,i)}(A,Y,H);let{formatDateTz:Z,timeZone:U}=sh(H_);
3243$[5]!==Y||$[6]!==V||$[7]!==H?(i={schedules:V,scheduleState:Y,selectedDate:H},$[5]=Y,$[6]=V,$[7]=H,$[8]=i):i=$[8],r=i,$[9]!==A?(l=()=>{A.navigate({state:N?.current||Hv[0]})},$[9]=A,$[10]=l):l=$[10];let q=l;$[11]!==Z||$[12]!==A?(d=e=>{e?A.navigate({date:Z({date:e,format:U2})}):A.navigate({state:N?.current||Hv[0]})},$[11]=Z,$[12]=A,$[13]=d):d=$[13];let J=d;if(!F){let e;if(D.__internal__workspaceEnabled){let e;return $[14]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(u.mc,{width:1,paddingTop:4,children:(0,a.jsx)(u.az,{paddingTop:4,paddingX:4,children:(0,a.jsx)(H$,{description:"Something went wrong loading permissions, please try again.",title:"Permissions check failed"})})}),$[14]=e):e=$[14],e}return $[15]!==B.loading?(e=(0,a.jsx)(u.mc,{width:1,paddingTop:4,children:(0,a.jsx)(u.az,{paddingTop:4,paddingX:4,children:B.loading?(0,a.jsx)(r5,{}):(0,a.jsx)(HA,{})})}),$[15]=B.loading,$[16]=e):e=$[16],e}return $[17]!==z||$[18]!==D?(c=z&&D.showReleasesBanner&&(0,a.jsx)(Hz,{}),$[17]=z,$[18]=D,$[19]=c):c=$[19],$[20]===Symbol.for("react.memo_cache_sentinel")?(p=["none",null,null,"flex"],$[20]=p):p=$[20],$[21]===Symbol.for("react.memo_cache_sentinel")?(m={position:"sticky",top:0,width:"350px"},$[21]=m):m=$[21],$[22]!==J||$[23]!==H?(h=(0,a.jsx)(UQ,{display:p,style:m,children:(0,a.jsx)(UX,{onSelect:J,timeZoneScope:H_,selectedDate:H})}),$[22]=J,$[23]=H,$[24]=h):h=$[24],$[25]!==M.color.card.enabled.bg?(f={background:M.color.card.enabled.bg,position:"sticky",top:0,zIndex:1},$[25]=M.color.card.enabled.bg,$[26]=f):f=$[26],$[27]===Symbol.for("react.memo_cache_sentinel")?(g={borderBottom:"1px solid var(--card-border-color)",minHeight:"55px"},$[27]=g):g=$[27],$[28]!==q||$[29]!==H?(C=(0,a.jsx)(ZS,{onClearDate:q,selectedDate:H}),$[28]=q,$[29]=H,$[30]=C):C=$[30],$[31]!==L||$[32]!==U.alternativeName||$[33]!==U.offset?(y=L("time-zone.time-zone-tooltip-content-releases",{alternativeName:U.alternativeName,offset:U.offset}),$[31]=L,$[32]=U.alternativeName,$[33]=U.offset,$[34]=y):y=$[34],$[35]!==y?(x=(0,a.jsx)(dr,{tooltipContent:y,timeZoneScope:H_,useElementQueries:!0}),$[35]=y,$[36]=x):x=$[36],$[37]===Symbol.for("react.memo_cache_sentinel")?(b=(0,a.jsx)(UU,{}),$[37]=b):b=$[37],$[38]!==x?(v=(0,a.jsxs)(u.so,{align:"center",gap:1,children:[x,b]}),$[38]=x,$[39]=v):v=$[39],$[40]!==C||$[41]!==v?(j=(0,a.jsx)(u.so,{align:"center",paddingLeft:4,paddingRight:3,style:g,children:(0,a.jsxs)(u.so,{align:"center",flex:1,justify:"space-between",children:[C,v]})}),$[40]=C,$[41]=v,$[42]=j):j=$[42],$[43]!==f||$[44]!==j?(w=(0,a.jsx)(HE,{style:f,children:j}),$[43]=f,$[44]=j,$[45]=w):w=$[45],$[46]!==P?(_=P&&(0,a.jsx)(u.az,{paddingTop:4,paddingX:4,children:(0,a.jsx)(H$,{description:"More information in the developer console.",title:"Something went wrong, unable to retrieve schedules."})}),$[46]=P,$[47]=_):_=$[47],$[48]!==R?(k=(0,a.jsx)(u.az,{flex:1,overflow:"auto",children:R?(0,a.jsx)(u.az,{padding:4,children:(0,a.jsx)(u.EY,{muted:!0,children:"Loading..."})}):(0,a.jsx)(UZ,{})}),$[48]=R,$[49]=k):k=$[49],$[50]!==_||$[51]!==k?(S=(0,a.jsxs)(u.so,{direction:"column",flex:1,children:[_,k]}),$[50]=_,$[51]=k,$[52]=S):S=$[52],$[53]!==w||$[54]!==S?(T=(0,a.jsxs)(UQ,{display:"flex",flex:1,overflow:"hidden",children:[w,S]}),$[53]=w,$[54]=S,$[55]=T):T=$[55],$[56]!==h||$[57]!==T?(I=(0,a.jsx)(u.so,{direction:"column",height:"fill",flex:1,overflow:"hidden",children:(0,a.jsxs)(u.so,{flex:1,height:"fill",children:[h,T]})}),$[56]=h,$[57]=T,$[58]=I):I=$[58],$[59]!==r||$[60]!==I||$[61]!==c?(E=(0,a.jsxs)(Zj,{value:r,children:[c,I]}),$[59]=r,$[60]=I,$[61]=c,$[62]=E):E=$[62],E}let U0=e=>{let t,n,r,i=(0,o.c)(11),{buttonText:l,disabled:s,icon:d,onAction:c,onComplete:p,tone:m}=e,h=void 0===l?"Action":l,f=void 0===m?"positive":m;return i[0]!==p?(t=(0,a.jsx)(y.$n,{mode:"bleed",onClick:p,text:"Cancel"}),i[0]=p,i[1]=t):t=i[1],i[2]!==h||i[3]!==s||i[4]!==d||i[5]!==c||i[6]!==f?(n=c&&(0,a.jsx)(y.$n,{disabled:s,icon:d,onClick:c,text:h,tone:f}),i[2]=h,i[3]=s,i[4]=d,i[5]=c,i[6]=f,i[7]=n):n=i[7],i[8]!==t||i[9]!==n?(r=(0,a.jsxs)(u.so,{width:"full",gap:3,justify:"flex-end",children:[t,n]}),i[8]=t,i[9]=n,i[10]=r):r=i[10],r};function U7(e){let t,n,r,i=(0,o.c)(5),{id:l,schemaType:s}=e;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsxs)(u.EY,{size:1,children:["Schedule this document to be published at any time in the future.",(0,a.jsx)("br",{}),"Any edits in the meantime will be added to the scheduled document."]}),n=(0,a.jsx)(u.EY,{size:1,children:"Visit the Schedules page to get an overview of all schedules."}),i[0]=t,i[1]=n):(t=i[0],n=i[1]),i[2]!==l||i[3]!==s?(r=(0,a.jsxs)(u.BJ,{space:4,children:[t,n,(0,a.jsx)(U3,{id:l,type:s})]}),i[2]=l,i[3]=s,i[4]=r):r=i[4],r}function U3(e){let t,n,r,i=(0,o.c)(7),{id:l,type:s}=e,d=Ux(l),c=function(e){let t,n=(0,o.c)(3),r=Cm();return n[0]!==r||n[1]!==e?(t=r.get(e),n[0]=r,n[1]=e,n[2]=t):t=n[2],t}(s),p=Fz(d,s),{hasError:m}=Uf(p.validation);return m?(i[0]!==d||i[1]!==c||i[2]!==p.validation?(t=(0,a.jsx)(Uk,{markers:p.validation,type:c,documentId:d}),i[0]=d,i[1]=c,i[2]=p.validation,i[3]=t):t=i[3],i[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(u.EY,{size:1,children:Hj}),i[4]=n):n=i[4],i[5]!==t?(r=(0,a.jsx)(u.Zp,{padding:2,radius:1,shadow:1,tone:"critical",children:(0,a.jsxs)(u.so,{gap:1,align:"center",children:[t,n]})}),i[5]=t,i[6]=r):r=i[6],r):null}let U8=e=>{let t,n=(0,o.c)(2),{schedules:r}=e;return n[0]!==r?(t=(0,a.jsx)(u.BJ,{space:4,children:0===r.length?(0,a.jsx)(u.az,{children:(0,a.jsx)(u.EY,{size:1,children:"No schedules"})}):(0,a.jsx)(u.BJ,{space:2,children:r.map(U4)})}),n[0]=r,n[1]=t):t=n[1],t};function U4(e){return(0,a.jsx)(UO,{schedule:e,type:"document"},e.id)}let U6=so("ScheduleAction"),U9=e=>{let{draft:t,id:n,liveEdit:r,onComplete:i,published:o,type:l}=e,d=Cl(),[c,p]=Cp({id:n,type:l,permission:"publish"}),{createSchedule:m}=ZC(),{enabled:h,mode:f}=HI(),{handleOpenDialog:g}
3243=ZR(),[y,x]=(0,s.useState)(!1),{formData:b,onFormChange:v}=ZU(),{error:j,isInitialLoading:w,schedules:_}=Zx({documentId:n,state:"scheduled"});U6("schedules",_);let k=_&&_.length>0,S=null!==t||null!==o,T=!p&&!c?.granted,I=(0,s.useCallback)(()=>{"upsell"===f?g("document_action"):x(!0)},[f,g]),E=(0,s.useCallback)(()=>{b?.date&&m({date:b.date,documentId:n}).then(i)},[i,m,n,b?.date]),$=k?"Edit Schedule":"Schedule";if(T)return{disabled:!0,icon:C.CTc,label:$,title:(0,a.jsx)(C6,{currentUser:d,context:"edit-schedules"})};let A="This document doesn't exist yet";S&&(A=null),w&&(A="Loading schedules"),r&&(A="Live Edit is enabled for this content type and publishing happens automatically as you make changes");let D={content:j?(0,a.jsx)(H$,{description:"More information in the developer console.",title:"Something went wrong, unable to retrieve schedules."}):(0,a.jsx)(ZZ,{value:e,children:k?(0,a.jsx)(U8,{schedules:_}):(0,a.jsx)(Ul,{onChange:v,value:b,children:(0,a.jsx)(U7,{id:n,schemaType:l})})}),footer:!k&&(0,a.jsx)(U0,{buttonText:"Schedule",disabled:!b?.date,icon:C.O4,onAction:E,onComplete:i,tone:"primary"}),header:(0,a.jsx)(Us,{timeZoneScope:H_,title:$}),onClose:i,type:"dialog"};return h?{dialog:y&&D,disabled:w||!S||r,label:$,icon:C.CTc,onHandle:I,title:A&&(0,a.jsx)(u.az,{style:{maxWidth:"315px"},children:(0,a.jsx)(u.EY,{size:1,children:A})})}:null};U9.action="schedule";let qe=so("ScheduledBadge"),qt=e=>{let{schedules:t}=Zx({documentId:e.id,state:"scheduled"});qe("schedules",t);let n=t?.[0];if(!n||!n.executeAt||!n.action)return null;let r=(0,ty.A)(new Date(n.executeAt),sr.LARGE);return{color:Hx[n.action].badgeColor,label:"Scheduled",title:`${Hx[n.action].actionName} on ${r} (local time)`}};function qn(e){let t,n,r,i,l,s,d,c,p,m,h,f=(0,o.c)(24),{id:g,markers:y}=e,x=Ux(g),{hasError:b}=Uf(y);f[0]!==x?(t={documentId:x,state:"scheduled"},f[0]=x,f[1]=t):t=f[1];let{schedules:v}=Zx(t),{mode:j}=HI();if(!(v.length>0))return null;f[2]!==j?(n="upsell"===j&&(0,a.jsx)(u.Zp,{tone:"caution",padding:3,radius:3,shadow:1,marginBottom:3,children:(0,a.jsxs)(u.so,{align:"center",gap:3,padding:1,children:[(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(C.sAQ,{})}),(0,a.jsx)(u.EY,{muted:!0,size:1,weight:"medium",children:"Scheduled publishing is not available on your current plan"})]})}),f[2]=j,f[3]=n):n=f[3];let w=b?"critical":"primary";return f[4]!==j?(r="upsell"===j?{opacity:.7}:void 0,f[4]=j,f[5]=r):r=f[5],f[6]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(C.CTc,{})}),f[6]=i):i=f[6],f[7]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsxs)(u.so,{align:"center",gap:3,marginBottom:1,padding:1,children:[i,(0,a.jsxs)(u.EY,{muted:!0,size:1,children:[(0,a.jsx)("span",{style:{fontWeight:600},children:"Upcoming schedule"})," (local time)"]})]}),f[7]=l):l=f[7],f[8]!==v?(s=v.map(qr),f[8]=v,f[9]=s):s=f[9],f[10]!==s?(d=(0,a.jsx)(u.BJ,{space:2,children:s}),f[10]=s,f[11]=d):d=f[11],f[12]!==b?(c=b&&(0,a.jsx)(u.az,{marginTop:3,children:(0,a.jsx)(u.EY,{muted:!0,size:1,weight:"regular",children:Hj})}),f[12]=b,f[13]=c):c=f[13],f[14]!==d||f[15]!==c?(p=(0,a.jsxs)(u.BJ,{space:2,children:[l,d,c]}),f[14]=d,f[15]=c,f[16]=p):p=f[16],f[17]!==w||f[18]!==r||f[19]!==p?(m=(0,a.jsx)(u.Zp,{padding:3,radius:1,shadow:1,tone:w,style:r,children:p}),f[17]=w,f[18]=r,f[19]=p,f[20]=m):m=f[20],f[21]!==n||f[22]!==m?(h=(0,a.jsxs)(u.az,{marginBottom:4,children:[n,m]}),f[21]=n,f[22]=m,f[23]=h):h=f[23],h}function qr(e){if(!e.executeAt)return null;let t=(0,ty.A)(new Date(e.executeAt),sr.LARGE);return(0,a.jsxs)(u.cV,{space:2,children:[(0,a.jsx)(u.EY,{muted:!0,size:1,children:t}),(0,a.jsx)(u.so,{style:{opacity:+("unpublish"===e.action)},children:(0,a.jsx)(u.Ex,{fontSize:0,mode:"outline",children:e.action})})]},e.id)}function qi(e){let t,n,r,i,l=(0,o.c)(8),{value:s,validation:d,children:c}=e;return l[0]!==d?(n=d.map(qa),l[0]=d,l[1]=n):n=l[1],t=n,l[2]!==s||l[3]!==t?(r=s?._id?(0,a.jsx)(qn,{id:s._id,markers:t}):null,l[2]=s,l[3]=t,l[4]=r):r=l[4],l[5]!==c||l[6]!==r?(i=(0,a.jsxs)(a.Fragment,{children:[r,c]}),l[5]=c,l[6]=r,l[7]=i):i=l[7],i}function qa(e){return{level:e.level,path:e.path,item:{message:e.message},message:e.message}}function qo(e){let t,n,r=(0,o.c)(7),{enabled:i,mode:l}=HI();if(!i){let t;return r[0]!==e?(t=e.renderDefault(e),r[0]=e,r[1]=t):t=r[1],t}let s="upsell"===l;return r[2]!==e?(t=e.renderDefault(e),r[2]=e,r[3]=t):t=r[3],r[4]!==s||r[5]!==t?(n=(0,a.jsx)(y.e7,{condition:s,wrapper:ql,children:t}),r[4]=s,r[5]=t,r[6]=n):n=r[6],n}function ql(e){return(0,a.jsx)(ZM,{children:e})}let qs="sanity/scheduled-publishing",qd=aR({name:qs,document:{actions:(e,t)=>(function(e,t){return"published"===t.versionType?e:0>e.findIndex(e=>"publish"===e.action)?[U9,...e]:e.flatMap(e=>"publish"===e.action?[e,U9]:e)})(e,t),badges:e=>[...e,qt]},form:{components:{input:e=>{let t,n=(0,o.c)(7),{schemaType:r}=e;if("document"===function e(t){return t.type?e(t.type):t}(r).name){let t,r;return n[0]!==e?(t=e.renderDefault(e),n[0]=e,n[1]=t):t=n[1],n[2]!==e||n[3]!==t?(r=(0,a.jsx)(qi,{...e,children:t}),n[2]=e,n[3]=t,n[4]=r):r=n[4],r}return n[5]!==e?(t=e.renderDefault(e),n[5]=e,n[6]=t):t=n[6],t}}},studio:{components:{layout:function(e){let t,n=(0,o.c)(2);return n[0]!==e?(t=(0,a.jsx)(HT,{children:(0,a.jsx)(qo,{...e})}),n[0]=e,n[1]=t):t=n[1],t}}},tools:e=>[...e,{name:"schedules",title:"Schedules",icon:C.CTc,component:U5,router:tq.wE.create("/",[tq.wE.create("/state/:state"),tq.wE.create("/date/:date")]),__internalApplicationType:"sanity/scheduled-publishing"}]}),qc="tasks";function qu(e){let t,n,r=(0,o.c)(6),{children:i}=e,{enabled:l,isLoading:s,error:d}=ug("sanityTasks"),u=lE().tasks?.enabled;e:{let e;if(!u||s||d){let e;r[0]===Symbol.for("react.memo_cache_sentinel")?(e={enabled:!1,mode:null},r[0]=e):e=r[0],t=e;break e}let n=l?"default":"upsell";r[1]!==n?(e={enabled:!0,mode:n},r[1]=n,r[2]=e):e=r[2],t=e}let p=t;return r[3]!==i||r[4]!==p?(n=(0,a.jsx)(c.JW.Provider,{value:p,children:i}),r[3]=i,r[4]=p,r[5]=n):n=r[5],n}function qp(){return(0,s.useContext)(c.JW)}function qm(e){let t,n=(0,o.c)(3),{children:r,isLastPane:i}=e;return n[0]!==r||n[1]!==i?(t=(0,a.jsx)(c.EM.Provider,{value:i,children:r}),n[0]=r,n[1]=i,n[2]=t):t=n[2],t}
3243function qh(e){let t,n,r,i,l=(0,o.c)(8),[d,u]=(0,s.useState)(null);l[0]!==d?(t={documentValue:d,permission:"read"},l[0]=d,l[1]=t):t=l[1];let p=etc(t);return l[2]!==p||l[3]!==d?(r={mentionOptions:p,selectedDocument:d,setSelectedDocument:u},l[2]=p,l[3]=d,l[4]=r):r=l[4],n=r,l[5]!==e.children||l[6]!==n?(i=(0,a.jsx)(c.BY.Provider,{value:n,children:e.children}),l[5]=e.children,l[6]=n,l[7]=i):i=l[7],i}function qf(){let e=(0,s.useContext)(c.BY);if(!e)throw Error("useMentionUser must be used within a MentionUserProvider");return e}let qg=(0,eQ.g_)({name:"Task Created",version:1,description:"A task is created"}),qC=(0,eQ.g_)({name:"Task Status Changed",version:1,description:"Task status changed"}),qy=(0,eQ.g_)({name:"Task Duplicated",version:1,description:"A task is duplicated"}),qx=(0,eQ.g_)({name:"Task Removed",version:1,description:"A task is removed"}),qb=(0,eQ.g_)({name:"Task Link Copied",version:1,description:"The link to a task is copied"}),qv=(0,eQ.g_)({name:"Task Link Opened",version:1,description:"User visited the studio through a link with a task"}),qj={viewMode:"list",selectedTask:null,activeTabId:"assigned",duplicateTaskValues:null,isOpen:!1};function qw(e,t){switch(t.type){case"TOGGLE_TASKS_VIEW":return!1===t.payload?{...qj,isOpen:t.payload}:{...e,isOpen:t.payload};case"CREATE_TASK":return{...e,viewMode:"create",selectedTask:(0,nA.A)()};case"EDIT_TASK":return{...e,viewMode:"edit",selectedTask:t.payload.id};case"EDIT_DRAFT":return{...e,viewMode:"draft",selectedTask:t.payload.id};case"DUPLICATE_TASK":return{...e,viewMode:"duplicate",selectedTask:(0,nA.A)(),duplicateTaskValues:t.payload.duplicateTaskValues};case"SET_ACTIVE_TAB":return{...e,viewMode:"list",activeTabId:t.payload};case"NAVIGATE_TO_LIST":return{...e,viewMode:"list"};default:return e}}let q_=({children:e})=>{let[t,n]=(0,s.useReducer)(qw,qj),r=(0,tq.rd)(),i=(0,p.dj)(),o=(0,e5.Jr)(),l=(0,s.useCallback)(e=>{switch(e.type){case"list":n({type:"NAVIGATE_TO_LIST"});break;case"create":n({type:"CREATE_TASK"});break;case"edit":n({type:"EDIT_TASK",payload:{id:e.id}});break;case"duplicate":n({type:"DUPLICATE_TASK",payload:{duplicateTaskValues:e.duplicateTaskValues}});break;case"draft":n({type:"EDIT_DRAFT",payload:{id:e.id}})}},[]),d=(0,s.useCallback)(e=>{n({type:"SET_ACTIVE_TAB",payload:e})},[]),u=(0,s.useCallback)(()=>{n({type:"TOGGLE_TASKS_VIEW",payload:!1})},[]),m=(0,s.useCallback)(()=>{n({type:"TOGGLE_TASKS_VIEW",payload:!0})},[]),h=(0,s.useCallback)(()=>{let e=new URL(window.location.href);e.searchParams.set("sidebar","tasks"),e.searchParams.set("viewMode",t.viewMode),t.selectedTask&&e.searchParams.set("selectedTask",t.selectedTask),navigator.clipboard.writeText(e.toString()).then(()=>{o.log(qb)}).catch(()=>{i.push({closable:!0,status:"error",title:"Failed to copy link to clipboard"})})}
3243,[t.selectedTask,t.viewMode,o,i]),f=new URLSearchParams(r.state._searchParams),g=f.get("sidebar"),C=f.get("viewMode"),y=f.get("selectedTask");(0,s.useEffect)(()=>{"tasks"===g&&(n({type:"TOGGLE_TASKS_VIEW",payload:!0}),"edit"===C&&y&&(n({type:"EDIT_TASK",payload:{id:y}}),o.log(qv)))},[y,g,o,C]);let x=(0,s.useMemo)(()=>({state:t,setViewMode:l,setActiveTab:d,handleCloseTasks:u,handleOpenTasks:m,handleCopyLinkToTask:h}),[u,h,m,d,l,t]);return(0,a.jsx)(c.S$.Provider,{value:x,children:e})};function qk(){return(0,s.useContext)(c.S$)||qS}let qS={state:{activeTabId:"assigned",viewMode:"list",selectedTask:null,isOpen:!1,duplicateTaskValues:null},setActiveTab:()=>null,setViewMode:()=>null,handleCloseTasks:()=>null,handleCopyLinkToTask:()=>null,handleOpenTasks:()=>null};function qT(e,t){switch(t.type){case"TASKS_SET":{let n=t.tasks.reduce((e,t)=>({...e,[t._id]:t}),{});return{...e,tasks:n}}case"TASK_ADDED":{let n=t.payload,r={[n._id]:{...e.tasks[n._id],...n,_state:n._state||void 0,_createdAt:n._createdAt||new Date().toISOString()}};return{...e,tasks:{...e.tasks,...r}}}case"TASK_RECEIVED":{let n=t.payload;return{...e,tasks:{...e.tasks,[n._id]:n}}}case"TASK_DELETED":{let{[t.id]:n,...r}=e.tasks;return{...e,tasks:r}}case"TASK_UPDATED":{let n=t.payload,r=n._id,i={...e.tasks[r],...n};return{...e,tasks:{...e.tasks,[r]:i}}}default:return e}}let qI={tasks:{}},qE={events:["welcome","mutation","reconnect"],includeResult:!0,visibility:"query",includeAllVersions:!0,tag:"tasks-store"},q$=`{
3244  ...,
3245}`,qA=`*[_type == "tasks.task"] ${q$} | order(_createdAt desc)`,qD=[];function qz(e){let t,n,r,i,l,d,u,p=(0,o.c)(11),{children:m}=e,[h,f]=(0,s.useState)(null);p[0]===Symbol.for("react.memo_cache_sentinel")?(t={},p[0]=t):t=p[0];let{data:g,isLoading:C}=function(e){let{client:t}=Ks(),{documentId:n}=e,[r,i]=(0,s.useReducer)(qT,qI),[a,o]=(0,s.useState)(null!==t),[l,d]=(0,s.use
3245State)(null),c=(0,s.useMemo)(()=>({documentId:n?ib(n):null}),[n]),u=(0,s.useCallback)(async()=>{if(!t)return void o(!1);try{let e=await t.fetch(qA,c);i({type:"TASKS_SET",tasks:e}),o(!1)}catch(e){d(e)}},[t,c]),p=(0,s.useCallback)(async e=>{if("welcome"===e.type&&(o(!0),await u(),o(!1)),"reconnect"===e.type&&o(!0),"mutation"===e.type){if("appear"===e.transition){let t=e.result;t&&i({type:"TASK_RECEIVED",payload:t})}if("disappear"===e.transition&&i({type:"TASK_DELETED",id:e.documentId}),"update"===e.transition){let t=e.result;t&&i({type:"TASK_UPDATED",payload:t})}}},[u]),m=(0,s.useMemo)(()=>t?t.observable.listen(qA,c,qE).pipe((0,M.W)(e=>(d(e),(0,k.of)(e)))):(0,k.of)(),[t,c]);return(0,s.useEffect)(()=>{let e=m.subscribe(p);return()=>{e?.unsubscribe()}},[p,m]),{data:(0,s.useMemo)(()=>Object.values(r.tasks),[r.tasks]),dispatch:i,error:l,isLoading:a}}(t),y=void 0===g?qD:g;return p[1]===Symbol.for("react.memo_cache_sentinel")?(r=tQ(f,1e3),p[1]=r):r=p[1],n=r,p[2]!==y?(l=y??[],p[2]=y,p[3]=l):l=p[3],p[4]!==h||p[5]!==C||p[6]!==l?(d={activeDocument:h,setActiveDocument:n,isLoading:C,data:l},p[4]=h,p[5]=C,p[6]=l,p[7]=d):d=p[7],i=d,p[8]!==m||p[9]!==i?(u=(0,a.jsx)(c.sF.Provider,{value:i,children:m}),p[8]=m,p[9]=i,p[10]=u):u=p[10],u}function qM(){let e=(0,o.c)(1),t=(0,s.useContext)(c.sF);if(!t){let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={activeDocument:null,setActiveDocument:qP,data:[],isLoading:!1},e[0]=t):t=e[0],t}return t}function qP(){return null}let qR="tasks",qO={interpolate:/{{([\s\S]+?)}}/g},qV="www.sanity.io";function qL(e){let t,n,r,i,l,d,u,p,m,h,f,g,C,y=(0,o.c)(32),[x,b]=(0,s.useState)(!1),[v,j]=(0,s.useState)(null),w=oG(),_=(0,e5.Jr)();y[0]===Symbol.for("react.memo_cache_sentinel")?(t={apiVersion:"2024-04-19"},y[0]=t):t=y[0];let k=ee7(t);y[1]!==_?(r={dialogSecondaryClicked:()=>_.log(Z$,{feature:qR,type:"modal"}),dialogPrimaryClicked:()=>_.log(ZE,{feature:qR,type:"modal"}),panelViewed:e=>_.log(ZT,{feature:qR,type:"inspector",source:e}),panelDismissed:()=>_.log(ZI,{feature:qR,type:"inspector"}),panelPrimaryClicked:()=>_.log(ZE,{feature:qR,type:"inspector"}),panelSecondaryClicked:()=>_.log(Z$,{feature:qR,type:"inspector"})},y[1]=_,y[2]=r):r=y[2],n=r,y[3]!==n?(i=()=>{n.dialogPrimaryClicked()},y[3]=n,y[4]=i):i=y[4];let S=i;y[5]!==n?(l=()=>{n.dialogSecondaryClicked()},y[5]=n,y[6]=l):l=y[6];let T=l;y[7]!==_?(d=()=>{b(!1),_.log(ZI,{feature:qR,type:"modal"})},y[7]=_,y[8]=d):d=y[8];let I=d;y[9]!==k.observable||y[10]!==w?(u=()=>{let e=k.observable.request({uri:"/journey/tasks"}).subscribe({next:e=>{if(e)try{let t=nv(e.ctaButton.url,qO);e.ctaButton.url=t({baseUrl:qV,projectId:w});let n=nv(e.secondaryButton.url,qO);e.secondaryButton.url=n({baseUrl:qV,projectId:w}),j(e)}catch{}},error:qF});return()=>{e.unsubscribe()}},y[9]=k.observable,y[10]=w,y[11]=u):u=y[11],y[12]!==k||y[13]!==w?(p=[k,w],y[12]=k,y[13]=w,y[14]=p):p=y[14],(0,s.useEffect)(u,p),y[15]!==_?(m=e=>{b(!0),_.log(ZT,{feature:qR,type:"modal",source:e})},y[15]=_,y[16]=m):m=y[16];let E=m;return y[17]!==E||y[18]!==n||y[19]!==v||y[20]!==x?(f={upsellDialogOpen:x,handleOpenDialog:E,upsellData:v,telemetryLogs:n},y[17]=E,y[18]=n,y[19]=v,y[20]=x,y[21]=f):f=y[21],h=f,y[22]!==I||y[23]!==S||y[24]!==T||y[25]!==v||y[26]!==x?(g=v&&x&&(0,a.jsx)(yk,{data:v,onClose:I,onPrimaryClick:S,onSecondaryClick:T}),y[22]=I,y[23]=S,y[24]=T,y[25]=v,y[26]=x,y[27]=g):g=y[27],y[28]!==h||y[29]!==e.children||y[30]!==g?(C=(0,a.jsxs)(c.b_.Provider,{value:h,children:[e.children,g]}),y[28]=h,y[29]=e.children,y[30]=g,y[31]=C):C=y[31],C}function qF(){}function qB(){return(0,s.useContext)(c.b_)||qN}let qN={upsellData:null,handleOpenDialog:()=>null,upsellDialogOpen:!1,telemetryLogs:{dialogSecondaryClicked:()=>null,dialogPrimaryClicked:()=>null,panelViewed:()=>null,panelDismissed:()=>null,panelPrimaryClicked:()=>null,panelSecondaryClicked:()=>null}};function qY(){let e,t,n=(0,o.c)(14),{handleOpenTasks:r,setViewMode:i}=qk(),{enabled:a,mode:l}=qp(),{handleOpenDialog:s}=qB();n[0]!==s||n[1]!==r||n[2]!==l||n[3]!==i?(e=()=>{"upsell"===l?s("document_action"):(r(),i({type:"create"}))},n[0]=s,n[1]=r,n[2]=l,n[3]=i,n[4]=e):e=n[4];let d=e,{t:c}=iJ(qc);e:{let e,r,i,o;if(!a){t=null;break e}n[5]!==c?(e=c("actions.create.text"),n[5]=c,n[6]=e):e=n[6],n[7]!==c?(r=c("actions.create.text"),n[7]=c,n[8]=r):r=n[8],n[9]===Symbol.for("react.memo_cache_sentinel")?(i=["paneActions"],n[9]=i):i=n[9],n[10]!==d||n[11]!==e||n[12]!==r?(o={icon:C.ZMV,label:e,title:r,group:i,onHandle:d},n[10]=d,n[11]=e,n[12]=r,n[13]=o):o=n[13],t=o}return t}function qH(e){let t,n,r=(0,o.c)(6),{documentId:i,documentType:a}=e,l=(0,s.useContext)(c.EM),{setActiveDocument:d}=qM();return r[0]!==i||r[1]!==a||r[2]!==l||r[3]!==d?(t=()=>(i&&l&&a&&d?.({documentId:ic(i)?i:ib(i),documentType:a}),()=>{l&&d?.(null)}),n=[i,a,l,d],r[0]=i,r[1]=a,r[2]=l,r[3]=d,r[4]=t,r[5]=n):(t=r[4],n=r[5]),(0,s.useEffect)(t,n),null}function qZ(e){let t,n=(0,o.c)(2),{enabled:r}=qp();return r?(n[0]!==e?(t=(0,a.jsx)(qH,{...e}),n[0]=e,n[1]=t):t=n[1],t):null}function qU(e){let t,n,r,i=(0,o.c)(8),l=e.value?._id,s=e.value?._type;return i[0]!==l||i[1]!==s?(t=(0,a.jsx)(qZ,{documentId:l,documentType:s}),i[0]=l,i[1]=s,i[2]=t):t=i[2],i[3]!==e?(n=e.renderDefault(e),i[3]=e,i[4]=n):n=i[4],i[5]!==t||i[6]!==n?(r=(0,a.jsxs)(a.Fragment,{children:[t,n]}),i[5]=t,i[6]=n,i[7]=r):r=i[7],r}qY.displayName="TaskCreateAction";let qq=g.I4.div`
3246  position: relative;
3247  [data-ui='Badge'] {
3248    position: absolute;
3249    top: -2px;
3250    right: -2px;
3251  }
3252`;function qJ({documentId:e,documentType:t,dataset:n,projectId:r}){return{documentType:t,document:{_ref:ib(e),_type:"crossDatasetReference",_dataset:n,_projectId:r,_weak:!0}
3252}}function qW(e){if(!e)return[];let t=[];return e?.forEach(e=>{(0,_.L4)(e)&&e.children.forEach(e=>{"mention"!==e._type||"string"!=typeof e.userId||t.includes(e.userId)||t.push(e.userId)})}),t}let qK={month:"long",day:"2-digit",minute:"2-digit",hour:"2-digit",second:"2-digit"},qG={minimal:!0,useTemporalPhrase:!0},qX=g.I4.strong`
3253  font-weight: 600;
3254`,qQ=g.I4.span`
3255  white-space: nowrap;
3256`;function q1(e){let t,n=(0,o.c)(3),r=new Date(e),i=cO(qK).format(r),a=ck(r||"",qG);return n[0]!==i||n[1]!==a?(t={timeAgo:a,formattedDate:i},n[0]=i,n[1]=a,n[2]=t):t=n[2],t}function q2(e){let t,n=(0,o.c)(3),{userId:r}=e,[i,l]=Co(r);return n[0]!==l||n[1]!==i?.displayName?(t=l?(0,a.jsx)(p.r5,{style:{width:"15ch"}}):(0,a.jsx)(qX,{children:i?.displayName}),n[0]=l,n[1]=i?.displayName,n[2]=t):t=n[2],t}let q5={month:"short",day:"numeric"};function q0(e){let t,n=(0,o.c)(2),{date:r}=e,i=new Date(r),l=cO(q5).format(i);return n[0]!==l?(t=(0,a.jsx)(qX,{children:(0,a.jsx)(qQ,{children:l})}),n[0]=l,n[1]=t):t=n[1],t}let q7=g.I4.span`
3257  > a {
3258    color: var(--card-fg-muted-color);
3259    text-decoration: underline;
3260    text-underline-offset: 1px;
3261    font-weight: 600;
3262  }
3263`;function q3(e){let t,n,r,i=(0,o.c)(10),{target:l}=e,s=Cm(),d=l.document._ref,c=l.documentType,u=s.get(c);i[0]!==d||i[1]!==c?(t={documentId:d,documentType:c},i[0]=d,i[1]=c,i[2]=t):t=i[2];let{isLoading:m,value:h}=cB(t);if(m){let e;return i[3]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(p.r5,{style:{width:"15ch"}}),i[3]=e):e=i[3],e}if(!u)return null;i[4]!==d||i[5]!==c?(n={id:d,type:c},i[4]=d,i[5]=c,i[6]=n):n=i[6];let f=h?.title;return i[7]!==n||i[8]!==f?(r=(0,a.jsx)(q7,{children:(0,a.jsx)(tq.RZ,{intent:"edit",params:n,children:f})}),i[7]=n,i[8]=f,i[9]=r):r=i[9],r}let q8=(0,s.memo)(function(e){let t,n,r,i,l,s,d,c=(0,o.c)(20),{activity:p}=e,{formattedDate:m,timeAgo:h}=q1(p.timestamp);c[0]!==p?(t=function(e){switch(e.field){case"status":{let t=cF.find(t=>t.value===e.to)?.title;return{text:"changed status to",icon:cF.find(t=>t.value===e.to)?.icon||(0,a.jsx)(C.GQ2,{}),changeTo:(0,a.jsx)(qX,{children:t})}}case"target":return e.to?{text:"set target content to",icon:(0,a.jsx)(C.qYV,{}),changeTo:(0,a.jsx)(q3,{target:e.to})}:{text:"removed target content",icon:(0,a.jsx)(C.qYV,{}),changeTo:void 0};case"dueBy":return e.from?e.to?{text:"changed the due date to",icon:(0,a.jsx)(C.CTc,{}),changeTo:(0,a.jsx)(q0,{date:e.to})}:{text:"removed the due date",icon:(0,a.jsx)(C.CTc,{}),changeTo:void 0}:{text:"set the due date to",icon:(0,a.jsx)(C.CTc,{}),changeTo:(0,a.jsx)(q0,{date:e.to})};case"assignedTo":return e.to?{text:"assigned to",icon:(0,a.jsx)(C.nys,{}),changeTo:(0,a.jsx)(q2,{userId:e.to})}:{text:"unassigned this task",icon:(0,a.jsx)(C.nys,{}),changeTo:void 0};case"description":return{text:"updated the task description",icon:(0,a.jsx)(C.qUP,{}),changeTo:void 0};case"title":return{text:"updated the task title",icon:(0,a.jsx)(C.qUP,{}),changeTo:void 0};default:return{text:"",icon:(0,a.jsx)(C.GQ2,{})}}}(p),c[0]=p,c[1]=t):t=c[1];let{icon:f,text:g,changeTo:x}=t;return c[2]!==f?(n=(0,a.jsx)(u.az,{marginTop:1,marginLeft:1,marginRight:3,children:(0,a.jsx)(u.az,{marginRight:1,children:(0,a.jsx)(u.EY,{children:f})})}),c[2]=f,c[3]=n):n=c[3],c[4]!==p.author?(r=(0,a.jsx)(q2,{userId:p.author}),c[4]=p.author,c[5]=r):r=c[5],c[6]!==m||c[7]!==h?(i=(0,a.jsx)(qQ,{children:(0,a.jsx)("time",{dateTime:m,children:h})}),c[6]=m,c[7]=h,c[8]=i):i=c[8],c[9]!==m||c[10]!==i?(l=(0,a.jsx)(y.m_,{content:m,placement:"top-end",children:i}),c[9]=m,c[10]=i,c[11]=l):l=c[11],c[12]!==x||c[13]!==r||c[14]!==l||c[15]!==g?(s=(0,a.jsxs)(u.EY,{muted:!0,size:1,children:[r," ",g," ",x," •"," ",l]}),c[12]=x,c[13]=r,c[14]=l,c[15]=g,c[16]=s):s=c[16],c[17]!==n||c[18]!==s?(d=(0,a.jsxs)(u.so,{gap:1,children:[n,s]}),c[17]=n,c[18]=s,c[19]=d):d=c[19],d},(e,t)=>e.activity.timestamp===t.activity.timestamp),q4=g.I4.div(e=>{let t=(0,tZ.JW)(e.theme);return(0,g.AH)`
3264      min-height: ${t.avatar.sizes[e.$size]?.size}px;
3265      min-width: ${t.avatar.sizes[e.$size]?.size}px;
3266      display: flex;
3267      align-items: center;
3268      justify-content: center;
3269      border-radius: 50%;
3270      ${e.$border?"box-shadow: inset 0 0 0 1px var(--card-border-color);":""};
3271      ${e.$removeBg?"--card-avatar-gray-bg-color: transparent;":""}
3272    `});function q6(e){let t,n,r,i,l,s,d=(0,o.c)(27),{user:c,size:p,border:m}=e,h=void 0===p?0:p,f=void 0===m||m,[g,x]=Co(c?.id||"");if(x){let e;return d[0]!==h?(e=(0,a.jsx)(cE,{$size:h,animated:!0}),d[0]=h,d[1]=e):e=d[1],e}if(!c||!g){let e,t,n;return d[2]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(C.nys,{}),d[2]=e):e=d[2],d[3]!==h?(t=(0,a.jsx)(u.EY,{size:h,children:e}),d[3]=h,d[4]=t):t=d[4],d[5]!==f||d[6]!==h||d[7]!==t?(n=(0,a.jsx)(q4,{$size:h,$border:f,children:t}),d[5]=f,d[6]=h,d[7]=t,d[8]=n):n=d[8],n}let b=!e.withTooltip;d[9]===Symbol.for("react.memo_cache_sentinel")?(t=["top","top-start"],d[9]=t):t=d[9];let v=!!g?.imageUrl;return d[10]!==g.imageUrl?(n=g?.imageUrl?{color:void 0}:{},d[10]=g.imageUrl,d[11]=n):n=d[11],d[12]!==e.withTooltip?(r=e.withTooltip?{title:null}:{}
3272,d[12]=e.withTooltip,d[13]=r):r=d[13],d[14]!==g||d[15]!==h||d[16]!==n||d[17]!==r?(i=(0,a.jsx)(cz,{user:g,size:h,...n,...r}),d[14]=g,d[15]=h,d[16]=n,d[17]=r,d[18]=i):i=d[18],d[19]!==h||d[20]!==v||d[21]!==i?(l=(0,a.jsx)(q4,{$size:h,$removeBg:v,children:i}),d[19]=h,d[20]=v,d[21]=i,d[22]=l):l=d[22],d[23]!==g.displayName||d[24]!==b||d[25]!==l?(s=(0,a.jsx)(y.m_,{content:g.displayName,disabled:b,portal:!0,fallbackPlacements:t,placement:"top-end",children:l}),d[23]=g.displayName,d[24]=b,d[25]=l,d[26]=s):s=d[26],s}let q9=(0,g.I4)(u.so)`
3273  height: 100%;
3274`,Je=g.I4.div`
3275  width: 100%;
3276`;function Jt(e){let t,n,r,i,l=(0,o.c)(10),{avatarPaddingTop:s,userId:d,children:c}=e,p=void 0===s?1:s;return l[0]!==d?(t=(0,a.jsx)(q6,{user:{id:d},size:0}),l[0]=d,l[1]=t):t=l[1],l[2]!==p||l[3]!==t?(n=(0,a.jsx)(u.az,{marginRight:3,paddingTop:p,children:t}),l[2]=p,l[3]=t,l[4]=n):n=l[4],l[5]!==c?(r=(0,a.jsx)(q9,{align:"center",flex:1,children:(0,a.jsx)(Je,{children:c})}),l[5]=c,l[6]=r):r=l[6],l[7]!==n||l[8]!==r?(i=(0,a.jsxs)(u.so,{children:[n,r]}),l[7]=n,l[8]=r,l[9]=i):i=l[9],i}function Jn(e){let t,n,r,i,l,d,c,p,m,h,f=(0,o.c)(25),{mentionOptions:g,currentUser:C,onSubmit:y}=e,{mode:x}=qp(),[b,v]=(0,s.useState)(null),j=(0,s.useRef)(null);f[0]!==b?(n=FN(b),f[0]=b,f[1]=n):n=f[1],t=n,f[2]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{v(e)},f[2]=r):r=f[2];let w=r;f[3]!==t||f[4]!==y||f[5]!==b?(i=()=>{t&&(y(b),v(null))},f[3]=t,f[4]=y,f[5]=b,f[6]=i):i=f[6];let _=i;f[7]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{j.current?.discardDialogController.close()},f[7]=l):l=f[7];let k=l;f[8]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{j.current?.discardDialogController.close(),v(null)},f[8]=d):d=f[8];let S=d;f[9]!==t?(c=e=>{"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),t?j.current?.discardDialogController.open():(j.current?.discardDialogController.close(),v(null)))},f[9]=t,f[10]=c):c=f[10];let T=c,{t:I}=iJ(qc),E="upsell"===x;return f[11]!==x||f[12]!==I?(p=I("upsell"===x?"panel.comment.placeholder.upsell":"panel.comment.placeholder"),f[11]=x,f[12]=I,f[13]=p):p=f[13],f[14]!==C||f[15]!==T||f[16]!==_||f[17]!==g||f[18]!==E||f[19]!==p||f[20]!==b?(m=(0,a.jsx)(u.Zp,{tone:"transparent",radius:3,padding:2,children:(0,a.jsx)(BA,{withAvatar:!1,currentUser:C,expandOnFocus:!0,mentionOptions:g,onChange:w,onDiscardConfirm:S,onDiscardCancel:k,onKeyDown:T,onSubmit:_,readOnly:E,placeholder:p,ref:j,value:b})}),f[14]=C,f[15]=T,f[16]=_,f[17]=g,f[18]=E,f[19]=p,f[20]=b,f[21]=m):m=f[21],f[22]!==C.id||f[23]!==m?(h=(0,a.jsx)(Jt,{userId:C.id,avatarPaddingTop:3,children:m}),f[22]=C.id,f[23]=m,f[24]=h):h=f[24],h}let Jr={parentCommentAvatar:!1,threadCommentsAvatar:!0,replyAvatar:!0,avatarSize:0},Ji=g.I4.div(e=>{let t=(0,tZ.JW)(e.theme);return(0,g.AH)`
3277    [data-ui='CommentsListItem'] {
3278      padding-right: ${t.space[2]}px;
3279    }
3280
3281    // Increase the padding when the comment input is focused
3282    [data-ui='CommentInputEditableWrap']:focus-within {
3283      padding-bottom: ${t.space[2]}px;
3284    }
3285  `});function Ja(e){let t,n,r=(0,o.c)(6),{parentComment:i}=e,{mode:l}=qp(),s=l??"default";return r[0]!==e||r[1]!==s?(t=(0,a.jsx)(Ji,{children:(0,a.jsx)(Nj,{...e,avatarConfig:Jr,canReply:!0,isSelected:!1,mode:s})}),r[0]=e,r[1]=s,r[2]=t):t=r[2],r[3]!==i.authorId||r[4]!==t?(n=(0,a.jsx)(Jt,{userId:i.authorId,avatarPaddingTop:3,children:t}),r[3]=i.authorId,r[4]=t,r[5]=n):n=r[5],n}let Jo=(0,g.I4)(p.r5)`
3286  max-width: 15ch;
3287  width: '100%';
3288`,Jl=(0,s.memo)(function(e){let t,n,r,i,l,s,d,c,p=(0,o.c)(22),{createdAt:m,authorId:h}=e,[f,g]=Co(h),{timeAgo:C,formattedDate:x}=q1(m),{t:b}=iJ(qc);return p[0]===Symbol.for("react.memo_cache_sentinel")?(t={fontWeight:600},p[0]=t):t=p[0],p[1]!==g||p[2]!==b||p[3]!==f?.displayName?(n=g?(0,a.jsx)(Jo,{}):f?.displayName??b("panel.activity.unknown-user"),p[1]=g,p[2]=b,p[3]=f?.displayName,p[4]=n):n=p[4],p[5]!==n?(r=(0,a.jsxs)("strong",{style:t,children:[n," "]}),p[5]=n,p[6]=r):r=p[6],p[7]!==b?(i=b("panel.activity.created-fragment"),p[7]=b,p[8]=i):i=p[8],p[9]!==m||p[10]!==C?(l=(0,a.jsx)(qQ,{children:(0,a.jsx)("time",{dateTime:m,children:C})}),p[9]=m,p[10]=C,p[11]=l):l=p[11],p[12]!==x||p[13]!==l?(s=(0,a.jsx)(y.m_,{content:x,placement:"top-end",children:l}),p[12]=x,p[13]=l,p[14]=s):s=p[14],p[15]!==r||p[16]!==i||p[17]!==s?(d=(0,a.jsx)(u.so,{align:"center",paddingTop:1,children:(0,a.jsxs)(u.EY,{size:1,muted:!0,children:[r,i," •"," ",s]})}),p[15]=r,p[16]=i,p[17]=s,p[18]=d):d=p[18],p[19]!==h||p[20]!==d?(c=(0,a.jsx)(Jt,{userId:h,children:d}),p[19]=h,p[20]=d,p[21]=c):c=p[21],c},(e,t)=>e.createdAt===t.createdAt);function Js(e){let t,n,r,i,l=(0,o.c)(13),{value:s,onChange:d,path:c,currentUserId:p}=e,m=s.subscribers?.includes(p)?"Unsubscribe":"Subscribe";l[0]!==p||l[1]!==d||l[2]!==c||l[3]!==s.subscribers?(t=()=>{let e=s.subscribers||[];e.includes(p)||d(s7(e.concat(p),c)),e.includes(p)&&d(s7(e.filter(e=>e!==p),c))},l[0]=p,l[1]=d,l[2]=c,l[3]=s.subscribers,l[4]=t):t=l[4];let h=t;return l[5]!==m||l[6]!==h?(n=(0,a.jsx)(y.$n,{mode:"bleed",text:m,onClick:h}),l[5]=m,l[6]=h,l[7]=n):n=l[7],l[8]!==s.subscribers?(r=s.subscribers&&s.subscribers?.length>0&&(0,a.jsx)(Jc,{subscriberIds:s.subscribers}),l[8]=s.subscribers,l[9]=r):r=l[9],l[10]!==n||l[11]!==r?(i=(0,a.jsxs)(u.so,{gap:1,align:"center",children:[n,r]}),l[10]=n,l[11]=r,l[12]=i):i=l[12],i}let Jd=[];
3288function Jc(e){let{subscriberIds:t}=e,n=(0,s.useMemo)(()=>t?.filter(Boolean)||Jd,[t]);return(0,a.jsx)(tK.N,{initial:!1,children:(0,a.jsx)(u.GE,{maxLength:3,size:0,children:n.map(e=>(0,a.jsx)(tW.P.div,{exit:{opacity:0,x:"2px",scale:.9},animate:{opacity:1,x:0,scale:1,transition:{type:"spring",visualDuration:.2}},initial:{opacity:0,x:"2px",scale:.9},children:(0,a.jsx)(q6,{user:{id:e},size:0})},e))})})}let Ju=[],Jp={hidden:{opacity:0,x:0},visible:{opacity:1,x:0}},Jm=(0,g.I4)(tW.P.create(u.BJ))``;function Jh(e){let{value:t,onChange:n,path:r,activityData:i=[]}=e,o=Cl(),{title:l,basePath:d}=lE(),{comments:c,mentionOptions:p,operation:m,getComment:h}=N0(),[f,g]=(0,s.useState)(null),[C,y]=(0,s.useState)(null),[x,b]=(0,s.useState)(!1),v=c.loading,j=c.data.open,w=(0,s.useCallback)((e,n)=>{let r=new URL(`${window.location.origin}${d?`${d}/`:""}`);r.searchParams.set("sidebar","tasks"),r.searchParams.set("selectedTask",t?._id),r.searchParams.set("viewMode","edit"),r.searchParams.set("commentId",n);let i=qW(e),a=Array.from(new Set([...t.subscribers||[],...i]));return{documentTitle:t.title||"Sanity task",url:r.toString(),workspaceTitle:l,subscribers:a}},[d,t?._id,t.title,l,t.subscribers]),_=(0,s.useCallback)(e=>{let t=(0,nA.A)(),r=w(e,t),i={id:t,type:"task",message:e,parentCommentId:void 0,reactions:Ju,status:"open",threadId:(0,nA.A)(),context:{notification:r}};n(s7(r.subscribers,["subscribers"])),m.create(i)},[m,w,n]),k=(0,s.useCallback)(e=>{let t=(0,nA.A)(),r=w(e.message,t);n(s7(r.subscribers,["subscribers"])),m.create({id:t,type:"task",message:e.message,parentCommentId:e.parentCommentId,reactions:Ju,status:"open",threadId:e.threadId,context:{notification:r}})},[m,w,n]),S=(0,s.useCallback)(e=>{let t=h(e);if(!t)return;let r=w(t.message,t._id);n(s7(r.subscribers,["subscribers"])),m.create({type:"task",id:t._id,message:t.message,parentCommentId:t.parentCommentId,reactions:t.reactions||Ju,status:t.status,threadId:t.threadId,context:{notification:r}})},[h,m,w,n]),T=(0,s.useCallback)((e,t)=>{m.react(e,t)},[m]),I=(0,s.useCallback)(e=>g(e),[]),E=(0,s.useCallback)(()=>g(null),[]),$=(0,s.useCallback)(async e=>{try{b(!0),y(null),await m.remove(e),g(null)}catch(e){y(e)}finally{b(!1)}},[m]),A=(0,s.useCallback)((e,t)=>{m.update(e,t)},[m]),D=(0,s.useMemo)(()=>{let e=i.map(e=>({_type:"activity",payload:e,timestamp:e.timestamp})),t=j.map(e=>({_type:"comment",payload:e,timestamp:e.parentComment._createdAt}));return e.concat(t).sort((e,t)=>new Date(e.timestamp).getTime()-new Date(t.timestamp).getTime())},[i,j]),{t:z}=iJ(qc),M=(0,s.useMemo)(()=>{let e=j.find(e=>e.parentComment?._id===f);return!!(e&&e?.replies?.length>0)},[f,j]);return(0,a.jsxs)(a.Fragment,{children:[f&&(0,a.jsx)(FJ,{commentId:f,error:C,isParent:M,loading:x,onClose:E,onConfirm:$}),(0,a.jsxs)(u.BJ,{space:5,children:[(0,a.jsxs)(u.so,{align:"center",children:[(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(u.EY,{size:2,weight:"semibold",children:z("panel.activity.title")})}),o?.id&&(0,a.jsx)(Js,{currentUserId:o.id,value:t,onChange:n,path:r})]}),v&&(0,a.jsx)(r5,{showText:!0,title:"Loading activity"}),(0,a.jsx)(tK.N,{children:!v&&(0,a.jsxs)(Jm,{animate:"visible",initial:"hidden",space:4,variants:Jp,children:[t.createdByUser&&(0,a.jsx)(u.BJ,{paddingBottom:1,children:(0,a.jsx)(Jl,{createdAt:t.createdByUser,authorId:t.authorId})}),o&&(0,a.jsxs)(u.BJ,{space:4,marginTop:1,children:[D.map(e=>"activity"===e._type?(0,a.jsx)(q8,{activity:e.payload},e.timestamp):(0,a.jsx)(Ja,{currentUser:o,mentionOptions:p,onCreateRetry:S,onDelete:I,onEdit:A,onReactionSelect:T,onReply:k,parentComment:e.payload.parentComment,replies:e.payload.replies},e.payload.parentComment._id)),(0,a.jsx)(Jn,{currentUser:o,mentionOptions:p,onSubmit:_})]})]})})]})]})}function Jf(e){let t,n,r,i,l,s,d,c=(0,o.c)(21),{user:p,onSelect:m,pressed:h}=e,{t:f}=iJ(qc);c[0]!==m||c[1]!==p.id?(t=()=>m(p.id),c[0]=m,c[1]=p.id,c[2]=t):t=c[2];let g=t,C=!p.granted,y=p.id?p:void 0;return c[3]!==y?(n=(0,a.jsx)(q6,{user:y,size:1}),c[3]=y,c[4]=n):n=c[4],c[5]!==p.displayName?(r=(0,a.jsx)(u.EY,{size:1,textOverflow:"ellipsis",title:p.displayName,children:p.displayName}),c[5]=p.displayName,c[6]=r):r=c[6],c[7]!==n||c[8]!==r?(i=(0,a.jsxs)(u.so,{align:"center",gap:2,flex:1,children:[n,r]}),c[7]=n,c[8]=r,c[9]=i):i=c[9],c[10]!==f||c[11]!==p.granted?(l=!p.granted&&(0,a.jsx)(u.Ex,{fontSize:1,mode:"outline",children:f("form.input.assignee.unauthorized.text")}),c[10]=f,c[11]=p.granted,c[12]=l):l=c[12],c[13]!==i||c[14]!==l?(s=(0,a.jsxs)(u.so,{align:"center",gap:3,children:[i,l]}),c[13]=i,c[14]=l,c[15]=s):s=c[15],c[16]!==g||c[17]!==h||c[18]!==C||
3288c[19]!==s?(d=(0,a.jsx)(u.Dr,{onClick:g,padding:1,disabled:C,pressed:h,children:s}),c[16]=g,c[17]=h,c[18]=C,c[19]=s,c[20]=d):d=c[20],d}let Jg=(0,g.I4)(u.W1)`
3289  width: 308px;
3290  border-radius: 3px;
3291`,JC=["Control","Shift","Alt","Enter","Home","End","PageUp","PageDown","Meta","Tab","CapsLock"],Jy={id:"",displayName:"No assignee",granted:!0};function Jx({onSelect:e,value:t=""}){let[n,r]=(0,s.useState)(""),{mentionOptions:i}=qf(),o=(0,s.useRef)(null),l=[Jy].concat(i.data||[]),d=(0,s.useCallback)(e=>{r(e.currentTarget.value)},[]),c=(0,s.useMemo)(()=>{if(!n)return l||[];let e=nM(n).toLocaleLowerCase();return l?.map(e=>({...e,searchName:nM(e.displayName||"").toLocaleLowerCase()}))?.filter(t=>t?.searchName.includes(e))?.sort((t,n)=>{let r=t.searchName.startsWith(e),i=n.searchName.startsWith(e);return r&&!i?-1:!r&&i?1:0})||[]},[l,n]),p=(0,s.useCallback)(n=>(0,a.jsx)(Jf,{user:n,onSelect:e,pressed:n.id===t},n.id),[e,t]),m=(0,s.useCallback)(e=>{e.target!==o.current&&(JC.includes(e.key)||o.current?.focus())},[]),{t:h}=iJ(qc);return i.loading?(0,a.jsx)(u.mc,{width:0,children:(0,a.jsx)(r5,{showText:!0})}):(0,a.jsxs)("div",{onKeyDown:m,children:[(0,a.jsx)(u.ks,{placeholder:h("form.input.assignee.search.placeholder"),autoFocus:!0,border:!1,onChange:d,value:n,fontSize:1,icon:C.nys,ref:o,name:"assigneeSearch",autoComplete:"off"}),(0,a.jsx)("div",{style:{maxHeight:"320px",overflowY:"scroll",paddingTop:"8px"},children:0===c.length?(0,a.jsx)(u.az,{padding:3,children:(0,a.jsx)(u.EY,{align:"center",size:1,muted:!0,children:h("form.input.assignee.search.no-users.text")})}):(0,a.jsx)(u.wj,{items:c,renderItem:p})})]})}function Jb(e){let t,n,r,i=(0,o.c)(7),{onSelect:l,menuButton:s,value:d}=e;return i[0]!==l||i[1]!==d?(t=(0,a.jsx)(Jg,{children:(0,a.jsx)(Jx,{onSelect:l,value:d})}),i[0]=l,i[1]=d,i[2]=t):t=i[2],i[3]===Symbol.for("react.memo_cache_sentinel")?(n={placement:"bottom",fallbackPlacements:["bottom"],portal:!0,constrainSize:!0},i[3]=n):n=i[3],i[4]!==s||i[5]!==t?(r=(0,a.jsx)(y.IU,{button:s,id:"assign-user-menu",menu:t,popover:n}),i[4]=s,i[5]=t,i[6]=r):r=i[6],r}let Jv=(0,g.I4)(u.Zp)(e=>{let t=(0,tZ.JW)(e.theme);return(0,g.AH)`
3292    &[data-as='button'] {
3293      border: 1px solid var(--card-border-color);
3294      &:focus-within {
3295        border: 1px solid var(--card-focus-ring-color);
3296      }
3297      --card-muted-fg-color: ${t.color.input.default.enabled.placeholder};
3298    }
3299  `});function Jj(e){let t,n,r,i,l,s,d,c,m,h,f=(0,o.c)(29),{value:g,onChange:C}=e,{mentionOptions:y}=qf();f[0]!==y.data||f[1]!==g?(n=y.data?.find(e=>e.id===g),f[0]=y.data,f[1]=g,f[2]=n):n=f[2],t=n,f[3]!==C?(r=e=>C(s7(e)),f[3]=C,f[4]=r):r=f[4];let x=r,{t:b}=iJ(qc);e:{let e;if(g){if(y.loading){let e;f[5]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(p.r5,{animated:!0,style:{width:"10ch"}}),f[5]=e):e=f[5],i=e;break e}if(t){i=t.displayName||t.email;break e}if(!t){let e;f[6]!==b?(e=b("form.input.assignee.user-not-found.text"),f[6]=b,f[7]=e):e=f[7],i=e;break e}}f[8]!==b?(e=b("form.input.assignee.search.placeholder"),f[8]=b,f[9]=e):e=f[9],i=e}let v=i;f[10]!==t?(l=(0,a.jsx)(q6,{user:t,size:1,border:!1}),f[10]=t,f[11]=l):l=f[11];let j=!t;return f[12]!==v||f[13]!==j?(s=(0,a.jsx)(u.EY,{size:1,textOverflow:"ellipsis",muted:j,children:v}),f[12]=v,f[13]=j,f[14]=s):s=f[14],f[15]!==l||f[16]!==s?(d=(0,a.jsxs)(u.so,{align:"center",gap:1,flex:1,children:[l,s]}),f[15]=l,f[16]=s,f[17]=d):d=f[17],f[18]!==t||f[19]!==b||f[20]!==g?(c=g&&t&&!t.granted&&(0,a.jsx)(u.Ex,{fontSize:1,mode:"outline",children:b("form.input.assignee.unauthorized.text")}),f[18]=t,f[19]=b,f[20]=g,f[21]=c):c=f[21],f[22]!==d||f[23]!==c?(m=(0,a.jsx)(Jv,{"data-as":"button",padding:1,radius:2,tabIndex:0,children:(0,a.jsxs)(u.so,{align:"center",gap:3,children:[d,c]})}),f[22]=d,f[23]=c,f[24]=m):m=f[24],f[25]!==x||f[26]!==m||f[27]!==g?(h=(0,a.jsx)(Jb,{onSelect:x,value:g,menuButton:m}),f[25]=x,f[26]=m,f[27]=g,f[28]=h):h=f[28],h}let Jw=(0,g.I4)(u.$n)`
3300  padding: 3px 6px;
3301`;function J_(e){let t,n,r,i,l,s,d,c,m,h,f,g,C,x=(0,o.c)(37),{value:b,onChange:v,path:j}=e;x[0]===Symbol.for("react.memo_cache_sentinel")?(t=["subscribers"],x[0]=t):t=x[0];let w=dJ(t),{mentionOptions:_}=qf();
3301x[1]!==_.data||x[2]!==b?(r=_.data?.find(e=>e.id===b),x[1]=_.data,x[2]=b,x[3]=r):r=x[3],n=r;let{t:k}=iJ(qc);x[4]!==v||x[5]!==j||x[6]!==w?(i=e=>{v(s7(e,j)),w&&!w.includes(e)&&e&&v(s7([...w,e],["subscribers"]))},x[4]=v,x[5]=j,x[6]=w,x[7]=i):i=x[7];let S=i;e:{let e;if(b){if(_.loading){let e;x[8]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(p.r5,{animated:!0,style:{width:"10ch"}}),x[8]=e):e=x[8],l=e;break e}if(n){l=n.displayName||n.email;break e}if(!n){let e;x[9]!==k?(e=k("form.input.assignee.user-not-found.text"),x[9]=k,x[10]=e):e=x[10],l=e;break e}}x[11]!==k?(e=k("form.input.assignee.no-user-assigned.text"),x[11]=k,x[12]=e):e=x[12],l=e}let T=l;return x[13]!==k||x[14]!==b?(s=k(b?"form.input.assignee.user-assigned.tooltip":"form.input.assignee.no-user-assigned.tooltip"),x[13]=k,x[14]=b,x[15]=s):s=x[15],x[16]!==n?(d=(0,a.jsx)(q6,{user:n,size:0}),x[16]=n,x[17]=d):d=x[17],x[18]!==T?(c=(0,a.jsx)(u.az,{children:(0,a.jsx)(u.EY,{size:1,textOverflow:"ellipsis",children:T})}),x[18]=T,x[19]=c):c=x[19],x[20]!==d||x[21]!==c?(m=(0,a.jsxs)(u.so,{align:"center",gap:2,flex:1,children:[d,c]}),x[20]=d,x[21]=c,x[22]=m):m=x[22],x[23]!==n||x[24]!==k||x[25]!==b?(h=b&&n&&!n.granted&&(0,a.jsx)(u.Ex,{fontSize:1,mode:"outline",children:k("form.input.assignee.unauthorized.text")}),x[23]=n,x[24]=k,x[25]=b,x[26]=h):h=x[26],x[27]!==m||x[28]!==h?(f=(0,a.jsxs)(u.so,{align:"center",gap:3,children:[m,h]}),x[27]=m,x[28]=h,x[29]=f):f=x[29],x[30]!==f||x[31]!==s?(g=(0,a.jsx)(Jw,{mode:"ghost",padding:0,children:(0,a.jsx)(y.m_,{content:s,children:f})}),x[30]=f,x[31]=s,x[32]=g):g=x[32],x[33]!==S||x[34]!==g||x[35]!==b?(C=(0,a.jsx)(Jb,{onSelect:S,value:b,menuButton:g}),x[33]=S,x[34]=g,x[35]=b,x[36]=C):C=x[36],C}function Jk(e){let{value:t,onChange:n,path:r}=e,{t:i}=iJ(),{t:o}
3301=iJ(qc),[l,d]=(0,s.useState)(!1),c=(0,s.useRef)(null),p=(0,s.useRef)(null),m=cO({dateStyle:"long"}),h=(0,s.useMemo)(()=>{if(!t)return{short:"----",full:"----"};let e=m.format(new Date(t)),[n]=e.split(",");return{short:n,full:e}},[m,t]);(0,u.PR)(()=>d(!1),()=>[c.current]);let f=(0,s.useCallback)(e=>{"Escape"===e.key&&d(!1)},[]),g=(0,s.useCallback)(()=>d(e=>!e),[]),x=(0,s.useMemo)(()=>de(i),[i]),b=(0,s.useCallback)(e=>{n(e?s7((0,e7.GP)(e,e7.D2),r):s3(r)),d(!1)},[n,r]),v=(0,e7.qg)(t,e7.D2),j=(0,s.useCallback)(()=>{p.current?.focus()},[p]),w=v?.date?.getFullYear()===new Date().getFullYear();return(0,a.jsx)(y.AM,{constrainSize:!0,"data-testid":"date-input-dialog",portal:!0,ref:c,content:(0,a.jsx)(u.az,{overflow:"auto",children:(0,a.jsxs)(eX.Ay,{onDeactivation:j,children:[(0,a.jsx)(sQ,{calendarLabels:x,selectTime:!1,timeStep:1,onKeyUp:f,value:v.date,onChange:b,timeZoneScope:sg}),t&&(0,a.jsx)(u.so,{justify:"flex-start",padding:3,paddingTop:0,children:(0,a.jsx)(y.$n,{mode:"bleed",text:o("form.input.date.buttons.remove.text"),onClick:()=>b(null),tone:"critical"})})]})}),open:l,placement:"bottom",fallbackPlacements:["bottom-start","bottom-end"],children:(0,a.jsx)(y.$n,{icon:C.CTc,mode:"ghost",text:w?h.short:h.full,onClick:g,ref:p,tooltipProps:{content:o(t?"form.input.date.buttons.tooltip":"form.input.date.buttons.empty.tooltip")}})})}let JS=(0,g.I4)(u.EY)`
3302  word-break: break-word;
3303`;function JT(e){let t,n=(0,o.c)(2),{children:r}=e;return n[0]!==r?(t=(0,a.jsx)(u.az,{paddingTop:2,paddingBottom:3,children:(0,a.jsx)(JS,{size:1,children:r})}),n[0]=r,n[1]=t):t=n[1],t}let JI=e=>{let{children:t}=e;return(0,a.jsx)(JT,{children:t})},JE=g.I4.div(e=>{let t=(0,tZ.JW)(e.theme),n="edit"===e.$mode?t.space[1]:t.space[3],r="edit"===e.$mode?120:200;return(0,g.AH)`
3304    /* select CommentInputEditableWrap and change the padding */
3305    [data-ui='CommentInputEditableWrap'] {
3306      overflow: hidden;
3307      padding: ${"edit"===e.$mode?`${n}px 0px`:`${n}px ${t.space[2]}px`};
3308      min-height: ${Math.max(e.$minHeight+n,r)}px !important;
3309    }
3310    #comment-input-root {
3311      box-shadow: ${"edit"===e.$mode?"none":""};
3312    }
3313    [data-ui='CommentInputActions'] {
3314      display: none !important;
3315    }
3316  `});function J$(e){let t,n,r,i,l,d,c,u,p,m=(0,o.c)(23),{value:h,mode:f,inputProps:g}=e,{onChange:C}=g,y=Cl(),{mentionOptions:x}=qf();m[0]!==C?(t=e=>C(s7(e)),m[0]=C,m[1]=t):t=m[1];let b=t,[v,j]=(0,s.useState)(null),[w,_]=(0,s.useState)(200);m[2]===Symbol.for("react.memo_cache_sentinel")?(n=e=>{let t=e.querySelector('[role="textbox"]');t&&_(t.scrollHeight)},m[2]=n):n=m[2];let k=n;m[3]===Symbol.for("react.memo_cache_sentinel")?(r=e=>{e&&(0,s.startTransition)(()=>{j(e)})},m[3]=r):r=m[3];let S=r,{t:T}=iJ(qc);return(m[4]!==v?(i=()=>{v&&k(v)},m[4]=v,m[5]=i):i=m[5],m[6]!==v||m[7]!==h?(l=[h,k,v],m[6]=v,m[7]=h,m[8]=l):l=m[8],(0,s.useEffect)(i,l),y)?(m[9]!==h?(d=h??[],m[9]=h,m[10]=d):d=m[10],m[11]!==T?(c=T("form.input.description.placeholder"),m[11]=T,m[12]=c):c=m[12],m[13]!==y||m[14]!==b||m[15]!==x||m[16]!==d||m[17]!==c?(u=(0,a.jsx)(BA,{expandOnFocus:!1,currentUser:y,mentionOptions:x,onChange:b,value:d,withAvatar:!1,placeholder:c,onDiscardConfirm:JA,renderBlock:JI}),m[13]=y,m[14]=b,m[15]=x,m[16]=d,m[17]=c,m[18]=u):u=m[18],m[19]!==f||m[20]!==u||m[21]!==w?(p=(0,a.jsx)(JE,{$mode:f,ref:S,$minHeight:w,children:u}),m[19]=f,m[20]=u,m[21]=w,m[22]=p):p=m[22],p):null}function JA(){return null}let JD=g.I4.div(e=>{let t=(0,tZ.JW)(e.theme);return(0,g.AH)`
3317    // Reset the padding of the field header content box
3318    [data-ui='fieldHeaderContentBox'] {
3319      padding: 0;
3320      label {
3321        font-weight: ${t.font.text.weights.regular};
3322      }
3323    }
3324  `});function Jz(e){let t,n,r=(0,o.c)(4);return r[0]!==e?(t=e.renderDefault(e),r[0]=e,r[1]=t):t=r[1],r[2]!==t?(n=(0,a.jsx)(JD,{children:t}),r[2]=t,r[3]=n):n=r[3],n}let JM=(0,s.forwardRef)(function(e,t){let n,r,i,l,s,d,c,u,p=(0,o.c)(21),{t:m}=iJ(qc);if(p[0]!==e?({value:i,options:n,...r}=e,p[0]=e,p[1]=n,p[2]=r,p[3]=i):(n=p[1],r=p[2],i=p[3]),p[4]!==n||p[5]!==i){let e;p[7]!==i?(e=e=>e.value===i,p[7]=i,p[8]=e):e=p[8],l=n.find(e),p[4]=n,p[5]=i,p[6]=l}else l=p[6];let h=l;p[9]!==i?(s=cF.find(e=>e.value===i)?.icon,p[9]=i,p[10]=s):s=p[10];let f=s;p[11]!==m?(d=m("form.input.status.button.tooltip"),p[11]=m,p[12]=d):d=p[12],p[13]!==d?(c={content:d},p[13]=d,p[14]=c):c=p[14];let g=h?.title||i;return p[15]!==f||p[16]!==t||p[17]!==r||p[18]!==c||p[19]!==g?(u=(0,a.jsx)(y.$n,{...r,ref:t,tooltipProps:c,icon:f,text:g,tone:"default",mode:"ghost"}),p[15]=f,p[16]=t,p[17]=r,p[18]=c,p[19]=g,p[20]=u):u=p[20],u});function JP(e){let t,n,r,i,l,s=(0,o.c)(20),{value:d,onChange:c,options:p,path:m}=e,h=(0,e5.Jr)();s[0]!==c||s[1]!==m||s[2]!==h||s[3]!==d?(t=e=>{c(s7(e,m)),h.log(qC,{from:d,to:e})},s[0]=c,s[1]=m,s[2]=h,s[3]=d,s[4]=t):t=s[4];let f=t;if(s[5]!==p||s[6]!==d?(n=(0,a.jsx)(JM,{value:d,options:p}),s[5]=p,s[6]=d,s[7]=n):n=s[7],s[8]!==f||s[9]!==p||s[10]!==d){let e;s[12]!==f||s[13]!==d?(e=e=>{let t=d===e.value,n=cF.find(t=>t.value===e.value)?.icon;return(0,a.jsx)(y.Dr,{icon:"string"==typeof e.value&&n||C.GQ2,text:e.title||e.value,pressed:t,iconRight:t&&(0,a.jsx)(C.Nrt,{}),onClick:()=>f(e.value)},e.title)},s[12]=f,s[13]=d,s[14]=e):e=s[14],r=p.map(e),s[8]=f,s[9]=p,s[10]=d,s[11]=r}else r=s[11];return s[15]!==r?(i=(0,a.jsx)(u.W1,{children:r}),s[15]=r,s[16]=i):i=s[16],s[17]!==n||s[18]!==i?(l=(0,a.jsx)(y.IU,{button:n,id:"reference-menuButton",menu:i}),s[17]=n,s[18]=i,s[19]=l):l=s[19],l}function JR(){let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)("div",{children:"Config errors"}),t[0]=e):e=t[0],e}function JO(e){let t,n=(0,o.c)(2),{children:r}=e;return n[0]!==r?(t=(0,a.jsx)(ee2,{LoadingComponent:r5,ConfigErrorsComponent:JR,children:r}),n[0]=r,n[1]=t):t=n[1],t}let JV=(0,g.I4)(u.Zp)(e=>{let t=(0,tZ.JW)(e.theme);return(0,g.AH)`
3325    &:focus {
3326      border: 1px solid var(--card-focus-ring-color);
3327    }
3328    &:focus-visible {
3329      outline: none;
3330      border: 1px solid var(--card-focus-ring-color);
3331    }
3332    &:hover {
3333      border-color: ${t.color.input.default.hovered.border};
3334    }
3335  `}),JL=(0,g.I4)(u.EY)(e=>`
3336      color: ${(0,tZ.JW)(e.theme).color.input.default.enabled.placeholder};
3337      margin-left: 3px;
3338  `),JF=(0,g.I4)(u.Zp)`
3339  position: relative;
3340  [data-ui='show-on-hover'] {
3341    opacity: 0;
3342    position: absolute;
3343    right: 6px;
3344    top: 4px;
3345    display: flex;
3346  }
3347  &:focus-within,
3348  &:hover {
3349    padding-right: 36px;
3350    /* Hides the preview status dot, the button will take it's position. */
3351    [data-testid='compact-preview__status'] {
3352      opacity: 0;
3353    }
3354    [data-ui='show-on-hover'] {
3355      transition: opacity 200ms;
3356      opacity: 1;
3357    }
3358  }
3359`,JB=(0,g.I4)(tq.RZ)(()=>(0,g.AH)`
3360    text-decoration: none;
3361    width: 100%;
3362    overflow: hidden;
3363    cursor: pointer;
3364    &:focus {
3365      box-shadow: 0 0 0 1px var(--card-focus-ring-color);
3366    }
3367    &:focus-visible {
3368      outline: none;
3369      box-shadow: 0 0 0 1px var(--card-focus-ring-color);
3370    }
3371  `);function JN(e){let t,n,r,i,l,d,c,p,m,h=(0,o.c)(28),{value:f,handleRemove:g}=e,x=f.document._ref,b=f.documentType,v=Cm();h[0]!==v||h[1]!==f.documentType?(t=v.get(f.documentType),h[0]=v,h[1]=f.documentType,h[2]=t):t=h[2];let j=t,w=cW(x),{t:_}=iJ(qc);if(h[3]!==x||h[4]!==b?(r=(0,s.forwardRef)(function(e,t){let n=ix(x);return(0,a.jsx)(JB,{...e,intent:"edit",params:{id:ib(x),type:b},ref:t,searchParams:n?[["perspective",n]]:void 0})}),h[3]=x,h[4]=b,h[5]=r):r=h[5],n=r,!j){let e,t;return h[6]!==_?(e=_("form.input.target.error.schema-not-found"),h[6]=_,h[7]=e):e=h[7],h[8]!==e?(t=(0,a.jsx)(u.EY,{children:e}),h[8]=e,h[9]=t):t=h[9],t}return h[10]!==w||h[11]!==b||h[12]!==j||h[13]!==f.document._ref?(i=(0,a.jsx)(hV,{documentType:b,documentId:f.document._ref,layout:"compact",presence:w,schemaType:j,showBadge:!1}),h[10]=w,h[11]=b,h[12]=j,h[13]=f.document._ref,h[14]=i):i=h[14],h[15]!==n||h[16]!==i?(l=(0,a.jsx)(u.Zp,{as:n,radius:2,"data-as":"button",children:i}),h[15]=n,h[16]=i,h[17]=l):l=h[17],h[18]!==_?(d=_("form.input.target.buttons.remove.text"),h[18]=_,h[19]=d):d=h[19],h[20]!==d?(c={content:d},h[20]=d,h[21]=c):c=h[21],h[22]!==g||h[23]!==c?(p=(0,a.jsx)("div",{"data-ui":"show-on-hover",children:(0,a.jsx)(y.$n,{icon:C.USm,mode:"bleed",onClick:g,tooltipProps:c})}),h[22]=g,h[23]=c,h[24]=p):p=h[24],h[25]!==l||h[26]!==p?(m=(0,a.jsx)(JF,{border:!0,radius:2,children:(0,a.jsxs)(u.so,{gap:1,align:"center",justify:"space-between",children:[l,p]})}),h[25]=l,h[26]=p,h[27]=m):m=h[27],m}function JY(e){let t,n,r,i,l,d,c,p,m,h,f,g=(0,o.c)(32),[y,x]=(0,s.use
3371State)(!1),{dataset:b,projectId:v}=lE(),{mode:j,inputProps:w,value:_}=e,{onChange:k}=w;g[0]!==b||g[1]!==k||g[2]!==v?(t=e=>{k(s7(qJ({documentId:e._id,documentType:e._type,dataset:b,projectId:v})))},g[0]=b,g[1]=k,g[2]=v,g[3]=t):t=g[3];let S=t;g[4]!==k?(n=()=>{k(s3())},g[4]=k,g[5]=n):n=g[5];let T=n;g[6]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{x(!0)},g[6]=r):r=g[6];let I=r;g[7]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{x(!1)},g[7]=i):i=g[7];let E=i;g[8]===Symbol.for("react.memo_cache_sentinel")?(l=e=>{("Enter"===e.key||" "===e.key)&&x(!0)},g[8]=l):l=g[8];let $=l,{t:A}=iJ(qc),D="edit"===j,z=4*("edit"===j);return g[9]!==j||g[10]!==e.description||g[11]!==e.inputId||g[12]!==e.title||g[13]!==e.validation?(d="create"===j&&(0,a.jsx)(u.az,{"data-ui":"fieldHeaderContentBox",children:(0,a.jsx)(dj,{description:e.description,inputId:e.inputId,title:e.title,validation:e.validation,deprecated:void 0})}),g[9]=j,g[10]=e.description,g[11]=e.inputId,g[12]=e.title,g[13]=e.validation,g[14]=d):d=g[14],g[15]!==T||g[16]!==A||g[17]!==_?(c=_?(0,a.jsx)(JN,{value:_,handleRemove:T}):(0,a.jsx)(JV,{border:!0,radius:2,paddingX:2,paddingY:3,onClick:I,onKeyDown:$,tabIndex:0,children:(0,a.jsxs)(u.so,{gap:1,justify:"flex-start",align:"center",children:[(0,a.jsx)(u.az,{paddingX:1,children:(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.pyG,{})})}),(0,a.jsx)(JL,{size:1,children:A("form.input.target.search.placeholder")})]})}),g[15]=T,g[16]=A,g[17]=_,g[18]=c):c=g[18],g[19]!==d||g[20]!==c?(p=(0,a.jsxs)(u.BJ,{space:2,children:[d,c]}),g[19]=d,g[20]=c,g[21]=p):p=g[21],g[22]!==S||g[23]!==y?(m=(0,a.jsx)(hq,{open:y,onClose:E,onItemSelect:S,disableIntentLink:!0}),g[22]=S,g[23]=y,g[24]=m):m=g[24],g[25]!==p||g[26]!==m?(h=(0,a.jsx)(JD,{children:(0,a.jsx)(u.XS,{zOffset:100,children:(0,a.jsx)(JO,{children:(0,a.jsxs)(h6,{children:[p,m]})})})}),g[25]=p,g[26]=m,g[27]=h):h=g[27],g[28]!==h||g[29]!==D||g[30]!==z?(f=(0,a.jsx)(u.Zp,{borderBottom:D,paddingBottom:z,children:h}),g[28]=h,g[29]=D,g[30]=z,g[31]=f):f=g[31],f}let JH=g.I4.div(e=>`
3372      display: grid;
3373      grid-template-columns: 1fr;
3374      padding-top: ${(0,tZ.JW)(e.theme).space[3]}px;
3375    `),JZ=g.I4.textarea(e=>{let{color:t,font:n}=(0,tZ.JW)(e.theme);return(0,g.AH)`
3376    resize: none;
3377    overflow: hidden;
3378    appearance: none;
3379    background: none;
3380    border: 0;
3381    padding: 0;
3382    border-radius: 0;
3383    outline: none;
3384    width: 100%;
3385    box-sizing: border-box;
3386    font-family: ${n.text.family};
3387    font-weight: ${n.text.weights.semibold};
3388    font-size: ${n.text.sizes[3].fontSize}px;
3389    line-height: ${n.text.sizes[3].lineHeight}px;
3390    margin: 0;
3391    position: relative;
3392    z-index: 1;
3393    display: block;
3394    transition: height 500ms;
3395    /* NOTE: This is a hack to disable Chrome’s autofill styles */
3396    &:-webkit-autofill,
3397    &:-webkit-autofill:hover,
3398    &:-webkit-autofill:focus,
3399    &:-webkit-autofill:active {
3400      -webkit-text-fill-color: var(--input-fg-color) !important;
3401      transition: background-color 5000s;
3402      transition-delay: 86400s /* 24h */;
3403    }
3404
3405    color: ${t.input.default.enabled.fg};
3406
3407    &::placeholder {
3408      color: ${t.input.default.enabled.placeholder};
3409    }
3410  `});function JU(e){let t,n,r,i,l=(0,o.c)(11),{value:d,onChange:c,placeholder:u,path:p}=e,m=(0,s.useRef)(null);l[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{m.current&&(m.current.style.height="auto",m.current.style.height=`${m.current.scrollHeight}px`)},l[0]=t):t=l[0],l[1]!==d?(n=[d],l[1]=d,l[2]=n):n=l[2],(0,s.useEffect)(t,n),l[3]!==c||l[4]!==p?(r=e=>{let t=e.currentTarget.value;return t||c(s3(p)),c(s7(t.replace(/\n/g,""),p))},l[3]=c,l[4]=p,l[5]=r):r=l[5];let h=r,f=!d;return l[6]!==h||l[7]!==u||l[8]!==f||l[9]!==d?(i=(0,a.jsx)(JH,{children:(0,a.jsx)(JZ,{ref:m,autoFocus:f,value:d,placeholder:u,onChange:h,rows:1})}),l[6]=h,l[7]=u,l[8]=f,l[9]=d,l[10]=i):i=l[10],i}function Jq(e){let t,n=(0,o.c)(4),{value:r,inputProps:i}=e,{onChange:l,schemaType:s}=i;return n[0]!==l||n[1]!==s.placeholder||n[2]!==r?(t=(0,a.jsx)(JU,{value:r,onChange:l,placeholder:s.placeholder}),n[0]=l,n[1]=s.placeholder,n[2]=r,n[3]=t):t=n[3],t}function JJ(e){let t,n,r,i,l,d,c,m,h,f,g,x,b,v,j,w,_,k,S,T,I,E=(0,o.c)(67),[$,A]=(0,s.use
3410State)(!1),{onChange:D}=e,{setViewMode:z,setActiveTab:M}=qk(),P=(0,p.dj)(),R=(0,e5.Jr)(),[O,V]=(0,s.useState)(!1);E[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>V(JW),E[0]=t):t=E[0];let L=t,F=e.value;E[1]!==z?(n=()=>{z({type:"list"})},E[1]=z,E[2]=n):n=E[2];let B=n;E[3]!==B||E[4]!==F._id?(r={id:F._id,onRemoved:B},E[3]=B,E[4]=F._id,E[5]=r):r=E[5];let{handleRemove:N,removeStatus:Y}=cY(r),{t:H}=iJ(qc),{data:Z}=qM();if(E[6]!==Z||E[7]!==F._id){let e;E[9]!==F._id?(e=e=>e._id===F._id,E[9]=F._id,E[10]=e):e=E[10],i=Z.find(e),E[6]=Z,E[7]=F._id,E[8]=i}else i=E[8];let U=i;E[11]!==O||E[12]!==M||E[13]!==z||E[14]!==H||E[15]!==R||E[16]!==P?(l=()=>{R.log(qg),P.push({closable:!0,status:"success",title:H("form.status.success")}),A(!1),O?z({type:"create"}):M("subscribed")},E[11]=O,E[12]=M,E[13]=z,E[14]=H,E[15]=R,E[16]=P,E[17]=l):l=E[17];let q=(0,e1.J)(l);E[18]!==$||E[19]!==q||E[20]!==U?.createdByUser?(d=()=>{$&&U?.createdByUser&&q()},E[18]=$,E[19]=q,E[20]=U?.createdByUser,E[21]=d):d=E[21];let J=U?.createdByUser;E[22]!==$||E[23]!==J?(c=[$,J],E[22]=$,E[23]=J,E[24]=c):c=E[24],(0,s.useEffect)(d,c),E[25]!==H||E[26]!==P?(m=()=>{A(!1),P.push({closable:!0,status:"error",title:H("form.status.error.creation-failed")})},E[25]=H,E[26]=P,E[27]=m):m=E[27];let W=(0,e1.J)(m);E[28]!==$||E[29]!==W?(h=()=>{let e=null;return $&&(e=setTimeout(()=>W(),1e4)),()=>{e&&clearTimeout(e)}},E[28]=$,E[29]=W,E[30]=h):h=E[30],E[31]!==$?(f=[$],E[31]=$,E[32]=f):f=E[32],(0,s.useEffect)(h,f),E[33]!==D||E[34]!==H||E[35]!==P||E[36]!==F?(g=async()=>{if(A(!0),!F?.title)return void P.push({closable:!0,status:"error",title:H("form.status.error.title-required")});D([s7((e=>{let t=e.subscribers||[];return qW(e.description).forEach(e=>{t.includes(e)||t.push(e)}),e.assignedTo&&(t.includes(e.assignedTo)||t.push(e.assignedTo)),t})(F),["subscribers"]),s7(new Date().toISOString(),["createdByUser"])])},E[33]=D,E[34]=H,E[35]=P,E[36]=F,E[37]=g):g=E[37];let K=g;return E[38]!==e?(x=e.renderDefault(e),E[38]=e,E[39]=x):x=E[39],E[40]!==N||E[41]!==Y||E[42]!==H||E[43]!==F._rev?(b=F._rev&&(0,a.jsx)(y.$n,{onClick:N,mode:"bleed",icon:C.ucK,tooltipProps:{content:H("buttons.discard.text")},disabled:"loading"===Y,loading:"loading"===Y}),E[40]=N,E[41]=Y,E[42]=H,E[43]=F._rev,E[44]=b):b=E[44],E[45]!==O?(v=(0,a.jsx)(u.dO,{onChange:L,checked:O}),E[45]=O,E[46]=v):v=E[46],E[47]!==H?(j=H("form.input.create-more.text"),E[47]=H,E[48]=j):j=E[48],E[49]!==j?(w=(0,a.jsx)(u.EY,{size:1,muted:!0,children:j}),E[49]=j,E[50]=w):w=E[50],E[51]!==v||E[52]!==w?(_=(0,a.jsxs)(u.so,{align:"center",gap:2,justify:"flex-end",flex:1,children:[v,w]}),E[51]=v,E[52]=w,E[53]=_):_=E[53],E[54]!==H?(k=H("buttons.create.text"),E[54]=H,E[55]=k):k=E[55],E[56]!==$||E[57]!==K||E[58]!==k?(S=(0,a.jsx)(y.$n,{text:k,onClick:K,disabled:$,loading:$}),E[56]=$,E[57]=K,E[58]=k,E[59]=S):S=E[59],E[60]!==b||E[61]!==_||E[62]!==S?(T=(0,a.jsx)(u.az,{paddingY:5,children:(0,a.jsxs)(u.so,{paddingTop:1,gap:4,children:[b,_,S]})}),E[60]=b,E[61]=_,E[62]=S,E[63]=T):T=E[63],E[64]!==x||E[65]!==T?(I=(0,a.jsxs)(a.Fragment,{children:[x,T]}),E[64]=x,E[65]=T,E[66]=I):I=E[66],I}function JW(e){return!e}function JK(e){let t=(0,o.c)(25),{handleCloseDialog:n,handleRemove:r,removeStatus:i,showDialog:l}=e,{t:s}=iJ(qc);if(l){let e,o,l,d,c,p,m,h,f;t[0]!==s?(e=s("dialog.remove-task.title"),t[0]=s,t[1]=e):e=t[1],t[2]!==s?(o=s("dialog.remove-task.buttons.cancel.text"),t[2]=s,t[3]=o):o=t[3],t[4]!==n||t[5]!==o?(l={text:o,onClick:n},t[4]=n,t[5]=o,t[6]=l):l=t[6],t[7]!==s?(d=s("dialog.remove-task.buttons.confirm.text"),t[7]=s,t[8]=d):d=t[8];let g="loading"===i;return t[9]!==r||t[10]!==d||t[11]!==g?(c={text:d,tone:"critical",onClick:r,loading:g},t[9]=r,t[10]=d,t[11]=g,t[12]=c):c=t[12],t[13]!==l||t[14]!==c?(p={cancelButton:l,confirmButton:c},t[13]=l,t[14]=c,t[15]=p):p=t[15],t[16]!==s?(m=s("dialog.remove-task.body"),t[16]=s,t[17]=m):m=t[17],t[18]!==m?(h=(0,a.jsx)(u.BJ,{space:3,children:(0,a.jsx)(u.EY,{as:"p",children:m})}),t[18]=m,t[19]=h):h=t[19],t[20]!==n||t[21]!==e||t[22]!==p||t[23]!==h?(f=(0,a.jsx)(y.lG,{id:"remove-task",header:e,onClose:n,footer:p,children:h}),t[20]=n,t[21]=e,t[22]=p,t[23]=h,t[24]=f):f=t[24],f}return null}let JG=(0,g.I4)(u.so)(e=>{let t=(0,tZ.JW)(e.theme);return(0,g.AH)`
3411    column-gap: ${t.space[2]}px;
3412    row-gap: ${t.space[3]}px;
3413  `});function JX(e){let t,n,r,i,l,s,d,c,p,m,h,f,g,x,b,v,j=(0,o.c)(42),{id:w,value:_}
3413=e,{setViewMode:k,handleCopyLinkToTask:S}=qk(),{mode:T}=qp(),I=(0,e5.Jr)();j[0]!==k||j[1]!==I?(t=()=>{k({type:"list"}),I.log(qx)},j[0]=k,j[1]=I,j[2]=t):t=j[2];let E=t;j[3]!==w||j[4]!==E?(n={id:w,onRemoved:E},j[3]=w,j[4]=E,j[5]=n):n=j[5];let $=cY(n);j[6]!==k||j[7]!==I||j[8]!==_?(r=()=>{k({type:"duplicate",duplicateTaskValues:_}),I.log(qy)},j[6]=k,j[7]=I,j[8]=_,j[9]=r):r=j[9];let A=r,{t:D}=iJ(qc);j[10]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsx)(rU,{}),j[10]=i):i=j[10],j[11]===Symbol.for("react.memo_cache_sentinel")?(l={placement:"bottom",fallbackPlacements:["bottom-end","bottom-start"]},j[11]=l):l=j[11],j[12]!==D?(s=D("menuitem.duplicate.text"),j[12]=D,j[13]=s):s=j[13],j[14]!==T||j[15]!==D?(d="upsell"===T?{content:D("menuitem.duplicate.upsell-tooltip")}:void 0,j[14]=T,j[15]=D,j[16]=d):d=j[16];let z="upsell"===T;return j[17]!==A||j[18]!==s||j[19]!==d||j[20]!==z?(c=(0,a.jsx)(y.Dr,{text:s,icon:C.TdU,onClick:A,tooltipProps:d,disabled:z}),j[17]=A,j[18]=s,j[19]=d,j[20]=z,j[21]=c):c=j[21],j[22]!==D?(p=D("menuitem.copylink.text"),j[22]=D,j[23]=p):p=j[23],j[24]!==S||j[25]!==p?(m=(0,a.jsx)(y.Dr,{text:p,icon:C.qYV,onClick:S}),j[24]=S,j[25]=p,j[26]=m):m=j[26],j[27]===Symbol.for("react.memo_cache_sentinel")?(h=(0,a.jsx)(u.Nj,{}),j[27]=h):h=j[27],j[28]!==D?(f=D("menuitem.delete.text"),j[28]=D,j[29]=f):f=j[29],j[30]!==$.handleOpenDialog||j[31]!==f?(g=(0,a.jsx)(y.Dr,{text:f,icon:C.ucK,onClick:$.handleOpenDialog,tone:"critical"}),j[30]=$.handleOpenDialog,j[31]=f,j[32]=g):g=j[32],j[33]!==m||j[34]!==g||j[35]!==c?(x=(0,a.jsx)(u.az,{paddingTop:3,children:(0,a.jsx)(y.IU,{id:"edit-task-menu",button:i,popover:l,menu:(0,a.jsxs)(u.W1,{children:[c,m,h,g]})})}),j[33]=m,j[34]=g,j[35]=c,j[36]=x):x=j[36],j[37]!==$?(b=(0,a.jsx)(JK,{...$}),j[37]=$,j[38]=b):b=j[38],j[39]!==x||j[40]!==b?(v=(0,a.jsxs)(a.Fragment,{children:[x,b]}),j[39]=x,j[40]=b,j[41]=v):v=j[41],v}function JQ(e){let t,n,r,i,l,d,c,p,m,h,f,g,C,x,b,v,j,w,_,k=(0,o.c)(52);k[0]!==e.schemaType.fields?(t=e.schemaType.fields.find(J1),k[0]=e.schemaType.fields,k[
34131]=t):t=k[1];let S=t,T=e.value,I=Cl(),{t:E}=iJ(qc),$=function(e){let t,n,r,i,a,l,d,c,u=(0,o.c)(17);u[0]===Symbol.for("react.memo_cache_sentinel")?(t=[],u[0]=t):t=u[0];let[p,m]=(0,s.useState)(t);u[1]===Symbol.for("react.memo_cache_sentinel")?(n={apiVersion:cL},u[1]=n):n=u[1];let h=ee7(n),f=e?._id??"";u[2]!==f?(r=ib(f),u[2]=f,u[3]=r):r=u[3];let g=r;u[4]!==h||u[5]!==g?(i=async e=>{try{if(!g)return;let t=await cc(h,g,{tag:"sanity.studio.tasks.history",effectFormat:"mendoza",reverse:!0}),n=await function(e,t,n){let r=function(e){let{_rev:t,...n}=e;return n}(e),i=[],a=r;for(let e of t){let{timestamp:t,effects:o}=e,l=o[e.documentIDs[0]];l&&l.revert&&(a=(0,rf.X)(r,l.revert),n.forEach(n=>{a?.[n]!==r?.[n]&&i.push({field:n,from:a?.[n],to:r?.[n],timestamp:t,author:e.author})}),r=a)}let o=i.sort((e,t)=>e.timestamp.localeCompare(t.timestamp)),l=o.findIndex(e=>"createdByUser"===e.field);return function(e){let t=[];for(let n of e){let e=t[t.length-1];if(!e||!cV.includes(n.field)){t.push(n);continue}if(e.author===n.author&&e.field===n.field){let t=new Date(e.timestamp),r=new Date(n.timestamp);if(12e4>=Math.abs(t.getTime()-r.getTime())){e.to=n.to,e.timestamp=n.timestamp;continue}}t.push(n)}return t}(o.slice(l+1))}(e,[...t],["createdByUser","title","description","dueBy","assignedTo","status","target"]);m(n)}catch(e){console.error("Failed to fetch and parse activity log",e)}},u[4]=h,u[5]=g,u[6]=i):i=u[6];let C=i;u[7]!==C||u[8]!==e?(a=t=>C(e),u[7]=C,u[8]=e,u[9]=a):a=u[9];let y=(0,e1.J)(a);return u[10]!==y||u[11]!==e._rev?(l=()=>{y(e._rev)},u[10]=y,u[11]=e._rev,u[12]=l):l=u[12],u[13]!==e._rev?(d=[e._rev],u[13]=e._rev,u[14]=d):d=u[14],(0,s.useEffect)(l,d),u[15]!==p?(c={changes:p},u[15]=p,u[16]=c):c=u[16],c}(T).changes;k[2]!==I||k[3]!==e||k[4]!==T.subscribers?(n=t=>{let n=T.subscribers||[];e.onChange(t),I&&(n.includes(I.id)||e.onChange(s7([...n,I.id],["subscribers"])))},k[2]=I,k[3]=e,k[4]=T.subscribers,k[5]=n):n=k[5];let A=n;if(!S)throw Error("Status field not found");if(!e.value?._id){let e;return k[6]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(r5,{}),k[6]=e):e=k[6],e}let D=e.value?.title;k[7]===Symbol.for("react.memo_cache_sentinel")?(r=["title"],k[7]=r):r=k[7],k[8]!==E?(i=E("form.input.title.placeholder"),k[8]=E,k[9]=i):i=k[9],k[10]!==A||k[11]!==D||k[12]!==i?(l=(0,a.jsx)(u.BJ,{flex:1,children:(0,a.jsx)(JU,{onChange:A,value:D,path:r,placeholder:i})}),k[10]=A,k[11]=D,k[12]=i,k[13]=l):l=k[13];let z=e.value?._id;k[14]!==z||k[15]!==T?(d=(0,a.jsx)(JX,{id:z,value:T}),k[14]=z,k[15]=T,k[16]=d):d=k[16],k[17]!==l||k[18]!==d?(c=(0,a.jsxs)(u.so,{align:"flex-start",gap:3,children:[l,d]}),k[17]=l,k[18]=d,k[19]=c):c=k[19];let M=e.value?.status;k[20]===Symbol.for("react.memo_cache_sentinel")?(p=["status"],k[20]=p):p=k[20],k[21]!==A||k[22]!==S.type.options.list||k[23]!==M?(m=(0,a.jsx)(JP,{value:M,path:p,onChange:A,options:S.type.options.list}),k[21]=A,k[22]=S.type.options.list,k[23]=M,k[24]=m):m=k[24];let P=e.value?.assignedTo;k[25]===Symbol.for("react.memo_cache_sentinel")?(h=["assignedTo"],k[25]=h):h=k[25],k[26]!==A||k[27]!==P?(f=(0,a.jsx)(J_,{value:P,onChange:A,path:h}),k[26]=A,k[27]=P,k[28]=f):f=k[28];let R=e.value?.dueBy;return k[29]===Symbol.for("react.memo_cache_sentinel")?(g=["dueBy"],k[29]=g):g=k[29],k[30]!==A||k[31]!==R?(C=(0,a.jsx)(Jk,{value:R,onChange:A,path:g}),k[30]=A,k[31]=R,k[32]=C):C=k[32],k[33]!==m||k[34]!==f||k[35]!==C?(x=(0,a.jsx)(u.Zp,{borderTop:!0,marginTop:3,children:(0,a.jsx)(JG,{paddingBottom:3,paddingTop:4,align:"flex-start",justify:"flex-start",wrap:"wrap",children:(0,a.jsxs)(y.vE,{children:[m,f,C]})})}),k[33]=m,k[34]=f,k[35]=C,k[36]=x):x=k[36],k[37]!==e?(b=e.renderDefault(e),k[37]=e,k[38]=b):b=k[38],k[39]===Symbol.for("react.memo_cache_sentinel")?(v=["subscribers"],k[39]=v):v=k[39],k[40]!==$||k[41]!==e.onChange||k[42]!==T?(j=(0,a.jsx)(JO,{children:(0,a.jsx)(u.Zp,{borderTop:!0,paddingTop:4,marginTop:4,paddingBottom:6,children:(0,a.jsx)(Jh,{value:T,onChange:e.onChange,path:v,activityData:$})})}),k[40]=$,k[41]=e.onChange,k[42]=T,k[43]=j):j=k[43],k[44]!==j||k[45]!==T._id?(w=(0,a.jsx)(Yw,{documentId:T._id,documentType:"tasks.task",sortOrder:"asc",type:"task",children:j}),k[44]=j,k[45]=T._id,k[46]=w):w=k[46],k[47]!==x||k[48]!==b||k[49]!==w||k[50]!==c?(_=(0,a.jsxs)(a.Fragment,{children:[c,x,b,w]}),k[47]=x,k[48]=b,k[49]=w,k[50]=c,k[51]=_):_=k[51],_}function J1(e){return"status"===e.name}function J2(e){let t=e.value,n=Cl(),r=(0,s.useCallback)(e=>{if(!n||e.some(e=>"subscribers"===e.path[0])||e.some(e=>
3413"context"===e.path[0]&&"notification"===e.path[1]))return e;let r=t.subscribers||[],i=[...r],a=e.find(e=>"assignedTo"===e.path[0]);a&&"set"===a.type&&"string"==typeof a.value&&!i.includes(a.value)&&i.push(a.value),i.includes(n.id)||i.push(n.id);let o=e.find(e=>"description"===e.path[0]&&"set"===e.type);if(o){let e=qW(t.description);qW("set"===o.type?o.value:void 0).filter(t=>!e.includes(t)).forEach(e=>{i.includes(e)||i.push(e)})}return i.length!==r.length&&e.push(s7(i,["subscribers"])),e},[n,t.subscribers,t.description]);return(0,a.jsx)(FF,{transform:r,children:(0,a.jsx)(JQ,{...e})})}function J5(e){let{inputProps:t}=e,{onChange:n}=t,r=(0,tq.ks)((0,s.useCallback)(e=>"string"==typeof e.tool?e.tool:void 0,[])),{target:i,_id:a,context:o,_rev:l}=dJ([]),{title:c,basePath:u}=lE(),p=ee7(a7),m=(0,s.useMemo)(()=>e8(p),[p]),h=i?.document?._ref??"",f=i?.documentType??"",{isLoading:g,value:C}=cB({documentId:h,documentType:f}),y=C?.title||null,x=(0,e3.LG)(C?.media)?m.image(C.media).width(96).height(96).url():null,b=(0,s.useMemo)(()=>{let e=o?.notification?.url;return{url:e&&ar?e:function(e,t,n=""){let r=window.location.origin;t&&(r+=t),n&&(r+=`/${n}`);let i=new URL(`${r}/`);return i.searchParams.set("sidebar","tasks"),i.searchParams.set("selectedTask",e),i.searchParams.set("viewMode","edit"),i.toString()}(a,u,r),workspaceTitle:c,targetContentImageUrl:x,targetContentTitle:y}},[o?.notification?.url,a,u,r,c,x,y]);return(0,s.useEffect)(()=>{h&&f&&g||l&&(d(o?.notification,b)||n(s7(b,["notification"])))},[l,o,h,f,b,g,n]),null}function J0(e){let t,n=(0,o.c)(2);return n[0]!==e?(t=(0,a.jsx)(JO,{children:(0,a.jsx)(J5,{...e})}),n[0]=e,n[1]=t):t=n[1],t}let J7=e=>(0,_.MI)({type:"object",name:"target",title:"Target",components:{field:t=>(0,a.jsx)(JY,{...t,mode:e})},fields:[{name:"document",type:"crossDatasetReference",dataset:"playground",weak:!0,studioUrl:({id:e,type:t})=>`intent/edit/id=${e};type=${t}/`,to:[{type:"any_document",preview:{select:{title:"title"}}}]},{name:"documentType",type:"string",title:"Document type"}]}),J3=e=>(0,_.MI)({type:"array",name:"description",title:"Description",components:{field:t=>(0,a.jsx)(J$,{...t,mode:e})},of:[{type:"block",name:"block",of:[{name:"mention",type:"object",fields:[{name:"userId",type:"string"}]}],marks:{annotations:[]},styles:[{title:"Normal",value:"normal"}],lists:[]}]});function J8({children:e,mode:t,addonDataset:n}){let r=ee7({apiVersion:cL}).config().apiHost,i=co(),o=(0,s.useMemo)(()=>({basePath:"",dataset:n,name:`addon-dataset-${n}`,projectId:i.projectId,apiHost:r,schema:{types:[(0,_.U8)({type:"document",name:"tasks.task",liveEdit:!0,components:{input:"edit"===t?J2:JJ},fields:[{type:"string",title:"Title",name:"title",placeholder:"Task title",components:{field:Jq},hidden:"edit"===t},..."edit"===t?[J7(t),J3(t)]:[J3(t),J7(t)],{type:"string",name:"assignedTo",title:"Assign to",placeholder:"Select assignee",components:{field:Jz,input:Jj},hidden:"edit"===t},{type:"date",name:"dueBy",title:"Deadline",placeholder:"yyyy-mm-dd",components:{field:Jz},hidden:"edit"===t},{type:"string",name:"authorId",hidden:!0},{type:"string",name:"createdByUser",hidden:!0},{type:"array",of:[{type:"string"}],name:"subscribers",hidden:!0},{type:"string",name:"status",title:"Status",options:{list:cF.map(e=>({value:e.value,title:e.title}))},hidden:!0},{type:"object",name:"context",components:{field:J0},fields:[{type:"object",name:"notification",fields:[{type:"string",name:"url"},{type:"string",name:"workspaceTitle"},{type:"string",name:"targetContentImageUrl"},{type:"string",name:"targetContentTitle"}]}]}]})]}}),[i.projectId,t,r,n,""]),{workspaces:l}=(0,s.useMemo)(()=>W4(o,{basePath:""}),[o,""]),d=eeK(l[0]);return d?(0,a.jsx)(lI,{workspace:d,children:(0,a.jsx)(ca,{source:d.unstable_sources[0],children:(0,a.jsx)(d3,{children:e})})}):null}function J4(e){let t,n,r,i,l=(0,o.c)(11),{client:d,ready:c,createAddonDataset:u}=Ks();l[0]!==d?(t=d?.config().dataset,l[0]=d,l[1]=t):t=l[1];let p=t;if(l[2]!==p||l[3]!==u||l[4]!==c?(n=()=>{!p&&c&&u()},r=[p,c,u],l[2]=p,l[3]=u,l[4]=c,l[5]=n,l[6]=r):(n=l[5],r=l[6]),(0,s.useEffect)(n,r),!p){let e;return l[7]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(r5,{}
3413),l[7]=e):e=l[7],e}return l[8]!==p||l[9]!==e?(i=(0,a.jsx)(J8,{...e,addonDataset:p}),l[8]=p,l[9]=e,l[10]=i):i=l[10],i}let J6={hidden:{opacity:0},visible:{opacity:1,transition:{duration:.2,delay:.2}}},J9=(0,g.I4)(tW.P.div)(e=>{let t=(0,tZ.JW)(e.theme);return`
3414    // Update spacing for the form builder
3415    & > [data-ui='Stack'] {
3416      grid-gap: ${(0,u.D0)(t.space[4])};
3417    }
3418`}),We=e=>{let t,n,r,i,l,d=(0,o.c)(25),{documentId:c,initialValue:p}=e,[m]=(0,s.useState)(Wn);d[0]!==p?(t=p?{loading:!1,value:p,error:null}:void 0,d[0]=p,d[1]=t):t=d[1],d[2]!==c||d[3]!==t?(n={documentId:c,documentType:"tasks.task",initialValue:t},d[2]=c,d[3]=t,d[4]=n):n=d[4];let{formState:h,onChange:f,onPathOpen:g,onFocus:C,onBlur:y,onSetActiveFieldGroup:x,onSetCollapsedFieldSet:b,onSetCollapsedPath:v,collapsedFieldSets:j,ready:w,collapsedPaths:_,schemaType:k,value:S}=FP(n),T=null===h||!w,{setSelectedDocument:I}=qf(),E=T?void 0:S?.target,$=E?.document?._ref,A=E?.documentType;return d[5]!==I||d[6]!==$||d[7]!==A?(r=()=>{I($&&A?{_id:$,_type:A}:null)},i=[$,A,I],d[5]=I,d[6]=$,d[7]=A,d[8]=r,d[9]=i):(r=d[8],i=d[9]),(0,s.useEffect)(r,i),d[10]!==j||d[11]!==_||d[12]!==h||d[13]!==T||d[14]!==y||d[15]!==f||d[16]!==C||d[17]!==g||d[18]!==x||d[19]!==b||d[20]!==v||d[21]!==m||d[22]!==k||d[23]!==S?(l=(0,a.jsx)(u.az,{children:T?(0,a.jsx)(r5,{showText:!0}):(0,a.jsx)(J9,{id:"wrapper",initial:"hidden",animate:"visible",variants:J6,children:(0,a.jsx)(Dt,{__internal_patchChannel:m,id:"root",onChange:f,onPathFocus:C,onPathOpen:g,onPathBlur:y,onFieldGroupSelect:x,onSetFieldSetCollapsed:b,onSetPathCollapsed:v,collapsedPaths:_,collapsedFieldSets:j,focusPath:h.focusPath,changed:h.changed,focused:h.focused,groups:h.groups,validation:h.validation,members:h.members,presence:h.presence,schemaType:k,value:S})})}),d[10]=j,d[11]=_,d[12]=h,d[13]=T,d[14]=y,d[15]=f,d[16]=C,d[17]=g,d[18]=x,d[19]=b,d[20]=v,d[21]=m,d[22]=k,d[23]=S,d[24]=l):l=d[24],l};function Wt(){let e,t,n,r=(0,o.c)(23),i=Cl(),{activeDocument:l}=qM(),{dataset:s,projectId:d}=lE(),{state:c}=qk(),{selectedTask:u,viewMode:p,duplicateTaskValues:m}=c;e:{if(!i||!u){e=void 0;break e}if("duplicate"===p){let t,n=`${m?.title} (copy)`;r[0]!==i.id||r[1]!==m||r[2]!==u||r[3]!==n?(t={...m,title:n,createdByUser:void 0,_id:u,_type:"tasks.task",authorId:i.id,status:"open"},r[0]=i.id,r[1]=m,r[2]=u,r[3]=n,r[4]=t):t=r[4],e=t;break e}if("create"===p){let t,n,a;r[5]!==i.id?(t=[i.id],r[5]=i.id,r[6]=t):t=r[6],r[7]!==l||r[8]!==s||r[9]!==d?(n=l?qJ({documentId:l.documentId,documentType:l.documentType,dataset:s,projectId:d}):void 0,r[7]=l,r[8]=s,r[9]=d,r[10]=n):n=r[10],r[11]!==i.id||r[12]!==u||r[13]!==t||r[14]!==n?(a={_id:u,_type:"tasks.task",authorId:i.id,status:"open",subscribers:t,target:n},r[11]=i.id,r[12]=u,r[13]=t,r[14]=n,r[15]=a):a=r[15],e=a;break e}e=void 0}let h=e;if(!i){let e;return r[16]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(r5,{showText:!0,title:"Loading current user"}),r[16]=e):e=r[16],e}if(!u)return null;let f="edit"===p?"edit":"create";return r[17]!==h||r[18]!==u?(t=(0,a.jsx)(We,{documentId:u,initialValue:h}),r[17]=h,r[18]=u,r[19]=t):t=r[19],r[20]!==f||r[21]!==t?(n=(0,a.jsx)(qh,{children:(0,a.jsx)(J4,{mode:f,children:t})}),r[20]=f,r[21]=t,r[22]=n):n=r[22],n}function Wn(){return s8()}let Wr={open:{assigned:{heading:"empty-state.status.list.open.assigned.heading",text:"empty-state.status.list.open.assigned.text"},document:{heading:"empty-state.status.list.open.document.heading",text:""},subscribed:{heading:"empty-state.status.list.open.subscribed.heading",text:"empty-state.status.list.open.subscribed.text"}},closed:{assigned:{heading:"empty-state.status.list.closed.assigned.heading",text:"empty-state.status.list.closed.assigned.text"},document:{heading:"empty-state.status.list.closed.document.heading",text:""},subscribed:{heading:"empty-state.status.list.closed.subscribed.heading",text:"empty-state.status.list.closed.subscribed.text"}}};function Wi(e){let t,n,r,i,l,s=(0,o.c)(13),{status:d}=e,{state:c}=qk(),{activeTabId:p}=c,{t:m}=iJ(qc),{heading:h,text:f}=Wr[d][p];return s[0]!==h||s[1]!==m?(t=m(h),s[0]=h,s[1]=m,s[2]=t):t=s[2],s[3]!==t?(n=(0,a.jsx)(u.EY,{size:1,weight:"semibold",children:t}),s[3]=t,s[4]=n):n=s[4],s[5]!==m||s[6]!==f?(r=m(f),s[5]=m,s[6]=f,s[7]=r):r=s[7],s[8]!==r?(i=(0,a.jsx)(u.EY,{size:1,children:r}),s[8]=r,s[9]=i):i=s[9],s[10]!==n||s[11]!==i?(l=(0,a.jsxs)(u.BJ,{space:3,children:[n,i]}),s[10]=n,s[11]=i,s[12]=l):l=s[12],l}let Wa={assigned:{heading:"empty-state.list.assigned.heading",text:"empty-state.list.assigned.text"},subscribed:{heading:"empty-state.list.subscribed.heading",text:"empty-state.list.subscribed.text"},document:{heading:"empty-state.list.document.heading",text:"empty-state.list.document.text"},noActiveDocument:{heading:"empty-state.list.no-active-document.heading",text:"empty-state.list.no-active-document.text"}},Wo=g.I4.div`
3419  max-width: 268px;
3420  margin: 0 auto;
3421  height: 100%;
3422  margin-top: 40%;
3423`,Wl=(0,g.I4)(u.EY)`
3424  @keyframes fadeIn {
3425    from {
3426      opacity: 0;
3427    }
3428    to {
3429      opacity: 1;
3430    }
3431  }
3432  animation: fadeIn 0.2s ease-in-out;
3433`;function Ws(){let e,t,n,r,i,l,s,d=(0,o.c)(22),{activeDocument:c}=qM(),{mode:p}=qp(),{state:m,setViewMode:h}=qk(),{activeTabId:f}=m,g=c||"document"!==f?f:"noActiveDocument",{heading:x,text:b}=Wa[g],{t:v}=iJ(qc);d[0]!==h?(e=()=>{h({type:"create"})},d[0]=h,d[1]=e):e=d[1];let j=e;
3433return d[2]!==x||d[3]!==v?(t=v(x),d[2]=x,d[3]=v,d[4]=t):t=d[4],d[5]!==g||d[6]!==t?(n=(0,a.jsx)(Wl,{size:1,weight:"semibold",children:t},g),d[5]=g,d[6]=t,d[7]=n):n=d[7],d[8]!==v||d[9]!==b?(r=v(b),d[8]=v,d[9]=b,d[10]=r):r=d[10],d[11]!==g||d[12]!==r?(i=(0,a.jsx)(u.az,{paddingBottom:6,paddingTop:1,children:(0,a.jsx)(Wl,{size:1,align:"center",children:r},g)}),d[11]=g,d[12]=r,d[13]=i):i=d[13],d[14]!==j||d[15]!==p||d[16]!==v?(l="upsell"!==p&&(0,a.jsx)(y.$n,{icon:C.REV,text:v("empty-state.list.create-new"),onClick:j}),d[14]=j,d[15]=p,d[16]=v,d[17]=l):l=d[17],d[18]!==n||d[19]!==i||d[20]!==l?(s=(0,a.jsx)(Wo,{children:(0,a.jsxs)(u.so,{direction:"column",gap:3,align:"center",flex:1,justify:"center",children:[n,i,l]})}),d[18]=n,d[19]=i,d[20]=l,d[21]=s):s=d[21],s}let Wd=(0,g.I4)(tq.RZ)(e=>`
3434  text-decoration: underline;
3435  text-decoration-color: ${(0,tZ.JW)(e.theme).color.input.default.enabled.border};
3436  text-underline-offset: 2px;
3437`);function Wc(e){let t,n,r,i,l,d=(0,o.c)(11),{documentId:c,documentType:m}=e,h=Cm().get(m);d[0]!==c||d[1]!==m?(t={documentId:c,documentType:m},d[0]=c,d[1]=m,d[2]=t):t=d[2];let{isLoading:f,value:g}=cB(t);return(d[3]!==c||d[4]!==m?(r=(0,s.forwardRef)(function(e,t){return(0,a.jsx)(Wd,{...e,intent:"edit",params:{id:c,type:m},ref:t})}),d[3]=c,d[4]=m,d[5]=r):r=d[5],n=r,h)?(d[6]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.pyG,{})}),d[6]=i):i=d[6],d[7]!==n||d[8]!==f||d[9]!==g?.title?(l=(0,a.jsxs)(u.so,{align:"center",gap:2,children:[i,f?(0,a.jsx)(p.r5,{size:1,muted:!0}):(0,a.jsx)(u.EY,{size:1,as:n,weight:"medium",style:{maxWidth:"20ch"},textOverflow:"ellipsis",children:g?.title||"Untitled"})]}),d[7]=n,d[8]=f,d[9]=g?.title,d[10]=l):l=d[10],l):null}function Wu(e){let t=cN(),{documentId:n,status:r}
3437=e,[i,o]=(0,s.useState)("closed"===r),[l,d]=(0,s.useState)(!1),c=(0,s.useCallback)(async e=>{let r=e.target.checked;o(r),d(!0);try{r?await t.edit(n,{status:"closed"}):r||await t.edit(n,{status:"open"})}catch(e){console.error("An error occurred while updating the task status",e)}finally{d(!1)}},[n,t]);return(0,a.jsx)(u.so,{children:l?(0,a.jsx)("div",{style:{height:"17px",width:"17px"},children:(0,a.jsx)(u.y$,{style:{marginLeft:"3.5px",marginRight:"3.5px",marginTop:"3.5px"}})}):(0,a.jsx)(u.Sc,{onChange:c,checked:i,disabled:l})})}let Wp=(0,g.I4)(u.$n)`
3438  width: 100%;
3439  max-width: 100%;
3440`,Wm=(0,g.I4)(u.so)`
3441  /* Checkbox width is 17px and first row gap is 12px. */
3442  margin-left: 29px;
3443`;function Wh(e){let t,n,r,i,l,s,d,c,p,m,h,f,g=(0,o.c)(27),{dueBy:C}=e;g[0]===Symbol.for("react.memo_cache_sentinel")?(t={dateStyle:"medium"},g[0]=t):t=g[0];let x=cO(t);g[1]===Symbol.for("react.memo_cache_sentinel")?(n={month:"short",day:"numeric"},g[1]=n):n=g[1];let b=cO(n);g[2]===Symbol.for("react.memo_cache_sentinel")?(r={weekday:"long"},g[2]=r):r=g[2];let v=cO(r);if(g[3]!==v||g[4]!==C||g[5]!==x||g[6]!==b){let e=new Date(C);i=x.format(e),l=b.format(e),s=v.format(e),d=(0,tL.A)(e),c=(0,tF.A)(e),g[3]=v,g[4]=C,g[5]=x,g[6]=b,g[7]=i,g[8]=l,g[9]=s,g[10]=d,g[11]=c}else i=g[7],l=g[8],s=g[9],d=g[10],c=g[11];g[12]!==i||g[13]!==l||g[14]!==s||g[15]!==d||g[16]!==c?(p={fullDate:i,monthAndDay:l,day:s,isDueByToday:d,isDueThisWeek:c},g[12]=i,g[13]=l,g[14]=s,g[15]=d,g[16]=c,g[17]=p):p=g[17];let{fullDate:j,monthAndDay:w,day:_,isDueByToday:k,isDueThisWeek:S}=p,T=k?"critical":"transparent",I=k?"Today":S?_:w;return g[18]!==C||g[19]!==I?(m=(0,a.jsx)(u.so,{align:"center",gap:2,children:(0,a.jsx)(u.EY,{as:"time",size:1,dateTime:C,muted:!0,children:I})}),g[18]=C,g[19]=I,g[20]=m):m=g[20],g[21]!==T||g[22]!==m?(h=(0,a.jsx)(u.Zp,{tone:T,padding:1,radius:2,children:m}),g[21]=T,g[22]=m,g[23]=h):h=g[23],g[24]!==j||g[25]!==h?(f=(0,a.jsx)(y.m_,{content:j,children:h}),g[24]=j,g[25]=h,g[26]=f):f=g[26],f}function Wf(e){let t,n,r,i,l,s,d,c,p,m,h=(0,o.c)(24),{assignedTo:f,title:g,dueBy:C,target:y,onSelect:x,documentId:b,status:v}=e;h[0]!==y?(n=function(e){if(e?.document?._ref)return{_ref:e?.document._ref,_type:e?.documentType}}(y),h[0]=y,h[1]=n):n=h[1],t=n,h[2]!==b||h[3]!==v?(r=(0,a.jsx)(u.az,{children:(0,a.jsx)(Wu,{documentId:b,status:v})}),h[2]=b,h[3]=v,h[4]=r):r=h[4];let j=g||"Untitled";return h[5]!==j?(i=(0,a.jsx)(u.EY,{size:1,textOverflow:"ellipsis",weight:"semibold",children:j}),h[5]=j,h[6]=i):i=h[6],h[7]!==x||h[8]!==i?(l=(0,a.jsx)(u.so,{flex:1,children:(0,a.jsx)(Wp,{onClick:x,mode:"bleed",padding:2,children:i})}),h[7]=x,h[8]=i,h[9]=l):l=h[9],h[10]!==f?(s=f?{id:f}:void 0,h[10]=f,h[11]=s):s=h[11],h[12]!==s?(d=(0,a.jsx)(q6,{user:s,withTooltip:!0}),h[12]=s,h[13]=d):d=h[13],h[14]!==r||h[15]!==l||h[16]!==d?(c=(0,a.jsxs)(u.so,{align:"center",gap:1,children:[r,l,d]}),h[14]=r,h[15]=l,h[16]=d,h[17]=c):c=h[17],h[18]!==C||h[19]!==t?(p=(C||t)&&(0,a.jsxs)(Wm,{align:"center",gap:2,paddingX:0,children:[C&&(0,a.jsx)(Wh,{dueBy:C}),t&&(0,a.jsx)(u.az,{marginLeft:1,children:(0,a.jsx)(Wc,{documentId:t._ref,documentType:t._type})})]}),h[18]=C,h[19]=t,h[20]=p):p=h[20],h[21]!==c||h[22]!==p?(m=(0,a.jsxs)(u.BJ,{space:3,children:[c,p]}),h[21]=c,h[22]=p,h[23]=m):m=h[23],m}let Wg=[],WC=(0,g.I4)(u.so)`
3444  [data-ui='summary-icon'] {
3445    transition: transform 0.2s;
3446    transform: rotate(-90deg);
3447  }
3448  &[open] [data-ui='summary-icon'] {
3449    transform: rotate(0);
3450  }
3451  > summary::-webkit-details-marker {
3452    display: none;
3453  }
3454`,Wy=(0,g.I4)(u.az)`
3455  list-style: none;
3456`;function Wx(e){let t,n,r,i,l,d,c,p=(0,o.c)(17),{status:m,tasks:h,onTaskSelect:f}=e,g="open"===m;return p[0]!==m?(t=cF.find(e=>e.value===m)?.title,p[0]=m,p[1]=t):t=p[1],p[2]!==t?(n=(0,a.jsx)(u.EY,{size:1,weight:"medium",muted:!0,children:t}),p[2]=t,p[3]=n):n=p[3],p[4]===Symbol.for("react.memo_cache_sentinel")?(r=(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(C.D3D,{"data-ui":"summary-icon"})}),p[4]=r):r=p[4],p[5]!==n?(i=(0,a.jsx)(Wy,{forwardedAs:"summary",paddingY:1,children:(0,a.jsxs)(u.so,{align:"center",gap:1,paddingY:1,children:[n,r]})}
3456),p[5]=n,p[6]=i):i=p[6],p[7]!==f||p[8]!==m||p[9]!==h?(l=h?.length>0?h.map((e,t)=>{let n=t<h.length-1;return(0,a.jsxs)(s.Fragment,{children:[(0,a.jsx)(Wf,{documentId:e._id,title:e.title,dueBy:e.dueBy,assignedTo:e.assignedTo,target:e.target,onSelect:()=>f(e._id),status:e.status}),n&&(0,a.jsx)(u.Nj,{})]},e._id)}):(0,a.jsx)(Wi,{status:m}),p[7]=f,p[8]=m,p[9]=h,p[10]=l):l=p[10],p[11]!==l?(d=(0,a.jsx)(u.BJ,{space:4,marginTop:3,paddingBottom:5,children:l}),p[11]=l,p[12]=d):d=p[12],p[13]!==g||p[14]!==i||p[15]!==d?(c=(0,a.jsxs)(WC,{forwardedAs:"details",direction:"column",open:g,children:[i,d]}),p[13]=g,p[14]=i,p[15]=d,p[16]=c):c=p[16],c}function Wb(e){let t,n,r,i=(0,o.c)(8),{items:l,onTaskSelect:s}=e,d=void 0===l?Wg:l;i[0]!==d?(n=d.reduce(Wv,{}),i[0]=d,i[1]=n):n=i[1],t=n;let c=t.open?.length>0,p=t.closed?.length>0;return i[2]!==p||i[3]!==c||i[4]!==s||i[5]!==t.closed||i[6]!==t.open?(r=(0,a.jsx)(u.BJ,{space:4,flex:1,children:c||p?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Wx,{status:"open",tasks:t.open,onTaskSelect:s}),(0,a.jsx)(Wx,{status:"closed",tasks:t.closed,onTaskSelect:s})]}):(0,a.jsx)(Ws,{})}),i[2]=p,i[3]=c,i[4]=s,i[5]=t.closed,i[6]=t.open,i[7]=r):r=i[7],r}function Wv(e,t){return e[t.status]||(e[t.status]=[]),e[t.status].push(t),e}function Wj(){let e,t=(0,o.c)(4),{upsellData:n,telemetryLogs:r}=qB(),{panelPrimaryClicked:i,panelSecondaryClicked:l}=r;return n?(t[0]!==n||t[1]!==i||t[2]!==l?(e=(0,a.jsx)(u.mc,{width:1,children:(0,a.jsx)(u.az,{marginBottom:6,children:(0,a.jsx)(NV,{data:n,onPrimaryClick:i,onSecondaryClick:l})})}),t[0]=n,t[1]=i,t[2]=l,t[3]=e):e=t[3],e):null}let Ww=g.I4.span`
3457  margin-right: 0.2em;
3458`,W_=g.I4.a`
3459  white-space: nowrap;
3460  > [data-sanity-icon] {
3461    --card-icon-color: var(--card-link-color);
3462  }
3463`;function Wk(e){let t,n,r,i=(0,o.c)(5);return i[0]!==e.children?(t=(0,a.jsx)(Ww,{children:e.children}),i[0]=e.children,i[1]=t):t=i[1],i[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(C.ZPM,{}),i[2]=n):n=i[2],i[3]!==t?(r=(0,a.jsxs)(W_,{href:"https://snty.link/tasks-feedback",target:"_blank",rel:"noreferrer",children:[t," ",n]}),i[3]=t,i[4]=r):r=i[4],r}function WS(){let e,t,n=(0,o.c)(3),{t:r}=iJ(qc);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e={Link:Wk},n[0]=e):e=n[0],n[1]!==r?(t=(0,a.jsx)(u.az,{padding:4,children:(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(an,{i18nKey:"list.feedback.text",t:r,components:e})})}),n[1]=r,n[2]=t):t=n[2],t}let WT={marginLeft:"-0.5em",justifyContent:"space-between",display:"flex"};function WI(e){let t,n,r,i,l,s,d,c,p,m,h=(0,o.c)(22),{activeTabId:f,onChange:g}=e,{t:C}=iJ(qc);h[0]!==C?(n=C("tab.assigned.label"),h[0]=C,h[1]=n):n=h[1],h[2]!==n?(r={id:"assigned",label:n},h[2]=n,h[3]=r):r=h[3],h[4]!==C?(i=C("tab.subscribed.label"),h[4]=C,h[5]=i):i=h[5],h[6]!==i?(l={id:"subscribed",label:i},h[6]=i,h[7]=l):l=h[7],h[8]!==C?(s=C("tab.document.label"),h[8]=C,h[9]=s):s=h[9],h[10]!==s?(d={id:"document",label:s},h[10]=s,h[11]=d):d=h[11],h[12]!==r||h[13]!==l||h[14]!==d?(c=[r,l,d],h[12]=r,h[13]=l,h[14]=d,h[15]=c):c=h[15],t=c,h[16]!==g?(p=e=>{g(e.id)},h[16]=g,h[17]=p):p=h[17];let x=p;return h[18]!==f||h[19]!==x||h[20]!==t?(m=(0,a.jsx)(u.wb,{space:2,style:WT,children:t.map(e=>(0,a.jsx)(y.oz,{"aria-controls":`${e.id}-panel`,id:`${e.id}-tab`,onClick:()=>x(e),selected:e.id===f,children:(0,a.jsx)(u.EY,{size:1,weight:"medium",children:e.label})},`${e.id}-tab`))}),h[18]=f,h[19]=x,h[20]=t,h[21]=m):m=h[21],m}let WE=g.I4.div(e=>`
3464    height: 25px;
3465    width: 1px;
3466    background-color: ${(0,tZ.JW)(e.theme).color.input.default.enabled.border};
3467  `);function W$(e){let t,n,r,i,l,s,d,c,p,m,h,f,g,x,b,v=(0,o.c)(41),{items:j}=e,{state:w,setViewMode:_}=qk(),{selectedTask:k}=w;if(v[0]!==j||v[1]!==k){let e;t=j.filter(WA),v[4]!==k?(e=e=>e._id===k,v[4]=k,v[5]=e):e=v[5],n=t.findIndex(e),v[0]=j,v[1]=k,v[2]=t,v[3]=n}else t=v[2],n=v[3];let S=n;v[6]!==S||v[7]!==t||v[8]!==_?(r=()=>{_({type:"edit",id:S>0?t[S-1]._id:t[t.length-1]._id})},v[6]=S,v[7]=t,v[8]=_,v[9]=r):r=v[9];let T=r;v[10]!==S||v[11]!==t||v[12]!==_?(i=()=>{_({type:"edit",id:S<t.length-1?t[S+1]._id:t[0]._id})},v[10]=S,v[11]=t,v[12]=_,v[13]=i):i=v[13];let I=i,{t:E}=iJ(qc);if(!t.length)return null;v[14]!==E?(l=E("buttons.previous.tooltip"),v[14]=E,v[15]=l):l=v[15],v[16]!==l?(s={content:l},v[16]=l,v[17]=s):s=v[17],v[18]!==T||v[19]!==s?(d=(0,a.jsx)(y.$n,{tooltipProps:s,mode:"bleed",icon:C.YJP,onClick:T}),v[18]=T,v[19]=s,v[20]=d):d=v[20],v[21]!==E?(c=E("panel.navigation.tooltip"),v[21]=E,v[22]=c):c=v[22];let $=S+1;return v[23]!==t.length||v[24]!==$?(p=(0,a.jsx)(u.az,{paddingY:2,children:(0,a.jsxs)(u.EY,{size:1,children:[$," / ",t.length]})}),v[23]=t.length,v[24]=$,v[25]=p):p=v[25],v[26]!==c||v[27]!==p?(m=(0,a.jsx)(y.m_,{content:c,children:p}),v[26]=c,v[27]=p,v[28]=m):m=v[28],v[29]!==E?(h=E("buttons.next.tooltip"),v[29]=E,v[30]=h):h=v[30],v[31]!==h?(f={content:h},v[31]=h,v[32]=f):f=v[32],v[33]!==I||v[34]!==f?(g=(0,a.jsx)(y.$n,{tooltipProps:f,mode:"bleed",icon:C.vKP,onClick:I}),v[33]=I,v[34]=f,v[35]=g):g=v[35],v[36]===Symbol.for("react.memo_cache_sentinel")?(x=(0,a.jsx)(WE,{}),v[36]=x):x=v[36],v[37]!==g||v[38]!==d||v[39]!==m?(b=(0,a.jsx)(y.vE,{children:(0,a.jsxs)(u.so,{gap:1,align:"center",children:[d,m,g,x]})}),v[37]=g,v[38]=d,v[39]=m,v[40]=b):b=v[40],b}function WA(e){return"open"===e.status}let WD={constrainSize:!0,fallbackPlacements:["bottom-end"],placement:"bottom-end",portal:!0},Wz=(0,g.I4)(u.W1)`
3468  width: 220px;
3469`;function WM(e){let t,n,r=(0,o.c)(8),{isSelected:i,item:l,onSelect:s}=e;r[0]!==l._id||r[1]!==s?(t=()=>{s(l._id)},r[0]=l._id,r[1]=s,r[2]=t):t=r[2];let d=t,c=i?C.Nrt:void 0,u=l.title||"Untitled";return r[3]!==d||r[4]!==c||r[5]!==i||r[6]!==u?(n=(0,a.jsx)(y.Dr,{iconRight:c,onClick:d,pressed:i,selected:i,text:u}),r[3]=d,r[4]=c,r[5]=i,r[6]=u,r[7]=n):n=r[7],n}function WP(){let{data:e}=qM(),{state:t,setViewMode:n}=qk(),{viewMode:r,selectedTask:i}=t,o=Cl(),l=(0,s.useMemo)(()=>o?.id?e.filter(e=>{let t=e.authorId===o.id,n=!e.createdByUser,a=e._updatedAt!==e._createdAt,l="
3469create"!==r||e._id!==i;return t&&n&&l&&a}):[],[e,i,o?.id,r]),d=(0,s.useCallback)(e=>{n({type:"draft",id:e})},[n]),{t:c}=iJ(qc);return l.length?(0,a.jsx)(y.IU,{button:(0,a.jsx)(y.$n,{text:c("buttons.draft.text"),mode:"ghost",iconRight:C.D3D}),id:"edit-task-menu",menu:(0,a.jsxs)(Wz,{children:[(0,a.jsx)(u.az,{padding:3,children:(0,a.jsx)(u.EY,{size:1,weight:"semibold",children:c("panel.drafts.title")})}),(0,a.jsx)(u.Nj,{}),l?.map(e=>(0,a.jsx)(WM,{isSelected:i===e._id,item:e,onSelect:d},e._id))]}),popover:WD}):null}function WR(e){let t,n,r,i,l,s,d,c,p,m,h,f=(0,o.c)(34),{items:g}=e,{mode:x}=qp(),{state:b,setViewMode:v,handleCloseTasks:j}=qk(),{viewMode:w,activeTabId:_}=b;f[0]!==v?(t=()=>{v({type:"create"})},f[0]=v,f[1]=t):t=f[1];let k=t;f[2]!==v?(n=()=>{v({type:"list"})},f[2]=v,f[3]=n):n=f[3];let S=n,{t:T}=iJ(qc);return f[4]!==_||f[5]!==S||f[6]!==T||f[7]!==w?(r=(0,a.jsx)(u.so,{align:"center",flex:1,children:"list"===w?(0,a.jsx)(u.az,{padding:2,children:(0,a.jsx)(u.EY,{size:2,weight:"semibold",children:T("panel.title")})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.$n,{mode:"bleed",space:2,padding:2,onClick:S,children:(0,a.jsx)(u.EY,{size:1,children:T("panel.title")})}),(0,a.jsx)(C.vKP,{}),(0,a.jsx)(u.az,{paddingX:2,children:(0,a.jsx)(u.EY,{size:1,weight:"semibold",style:{textTransform:"capitalize"},children:"create"===w||"draft"===w?T("panel.create.title"):_})})]})}),f[4]=_,f[5]=S,f[6]=T,f[7]=w,f[8]=r):r=f[8],f[9]!==w?(i=("create"===w||"draft"===w)&&(0,a.jsx)(WP,{}),f[9]=w,f[10]=i):i=f[10],f[11]!==g||f[12]!==w?(l="edit"===w&&(0,a.jsx)(W$,{items:g}),f[11]=g,f[12]=w,f[13]=l):l=f[13],f[14]!==k||f[15]!==x||f[16]!==T||f[17]!==w?(s="list"===w&&(0,a.jsx)(y.$n,{icon:C.REV,onClick:k,mode:"bleed",text:T("buttons.new.text"),disabled:"upsell"===x,tooltipProps:"upsell"===x?{content:T("buttons.new.upsell-tooltip")}:void 0}),f[14]=k,f[15]=x,f[16]=T,f[17]=w,f[18]=s):s=f[18],f[19]!==T?(d=T("panel.close.tooltip"),f[19]=T,f[20]=d):d=f[20],f[21]!==d?(c={content:d},f[21]=d,f[22]=c):c=f[22],f[23]!==j||f[24]!==c?(p=(0,a.jsx)(y.$n,{tooltipProps:c,iconRight:C.USm,mode:"bleed",onClick:j}),f[23]=j,f[24]=c,f[25]=p):p=f[25],f[26]!==s||f[27]!==p?(m=(0,a.jsxs)(u.so,{gap:1,children:[s,p]}),f[26]=s,f[27]=p,f[28]=m):m=f[28],f[29]!==r||f[30]!==i||f[31]!==l||f[32]!==m?(h=(0,a.jsxs)(u.so,{justify:"space-between",align:"center",gap:1,children:[r,i,l,m]}),f[29]=r,f[30]=i,f[31]=l,f[32]=m,f[33]=h):h=f[33],h}let WO=tW.P.create(u.Zp),WV=(0,g.I4)(WO)`
3470  flex: 1;
3471  flex-direction: column;
3472`,WL=(0,g.I4)(u.BJ)`
3473  border-bottom: 1px solid var(--card-border-color);
3474`,WF=(0,g.I4)(u.so)`
3475  overflow-y: scroll;
3476  overflow-x: hidden;
3477`;function WB(){let{mode:e}=qp(),{activeDocument:t,data:n,isLoading:r}=qM(),{state:i,setActiveTab:o,setViewMode:l}=qk(),{activeTabId:d,viewMode:c,selectedTask:p}=i,m=Cl(),h=(0,s.useCallback)(e=>l({type:"edit",id:e}),[l]),f=(0,s.useMemo)(()=>n.filter(e=>!!e.createdByUser&&("assigned"===d?e.assignedTo===m?.id:"subscribed"===d?m?.id&&e.subscribers?.includes(m.id):"document"===d&&t?.documentId&&e.target?.document._ref===t.documentId)),[t?.documentId,d,n,m]),g=(0,s.useMemo)(()=>"list"!==c?(0,a.jsx)(Wt,{},p):r?(0,a.jsx)(u.so,{align:"center",justify:"center",children:(0,a.jsx)(u.y$,{})}):(0,a.jsxs)(a.Fragment,{children:["upsell"===e&&(0,a.jsx)(Wj,{}),(0,a.jsx)(Wb,{items:f,onTaskSelect:h})]}),[f,r,h,p,c,e]);return(0,a.jsxs)(WV,{display:"flex",height:"fill",flex:1,overflow:"hidden",initial:{opacity:0}
3477,animate:{opacity:1,transition:{duration:.2}},children:[(0,a.jsxs)(WL,{space:3,padding:3,sizing:"border",children:[(0,a.jsx)(WR,{items:f}),"list"===c&&!r&&(0,a.jsx)(WI,{activeTabId:d,onChange:o})]}),(0,a.jsx)(WF,{direction:"column",flex:1,overflow:"auto",padding:3,paddingTop:4,paddingX:4,sizing:"border",children:g}),"list"===c&&(0,a.jsx)(WS,{})]})}function WN(){let e,t=(0,o.c)(1),{enabled:n}=qp();return n?(t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(WB,{}),t[0]=e):e=t[0],e):null}let WY=(0,g.I4)(u.so)(({theme:e})=>{let t=e.sanity.media;return(0,g.AH)`
3478    min-height: 100%;
3479
3480    @media (max-width: ${t[3]}px) {
3481      position: relative;
3482    }
3483  `}),WH=(0,g.I4)(u.Wd)(({theme:e})=>{let t=e.sanity.media;return(0,g.AH)`
3484    display: flex;
3485    flex-direction: column;
3486    height: 100%;
3487    width: 360px;
3488    border-left: 1px solid var(--card-border-color);
3489    box-sizing: border-box;
3490    overflow: hidden;
3491
3492    box-shadow:
3493      0px 6px 8px -4px var(--card-shadow-umbra-color),
3494      0px 12px 17px -1px var(--card-shadow-penumbra-color);
3495
3496    @media (max-width: ${t[3]}px) {
3497      bottom: 0;
3498      position: absolute;
3499      right: 0;
3500      top: 0;
3501    }
3502
3503    @media (max-width: ${t[1]}px) {
3504      border-left: 0;
3505      min-width: 100%;
3506      left: 0;
3507    }
3508  `});function WZ(e){let t,n,r,i,l,s=(0,o.c)(12),d=(0,u.aY)(),{state:c}=qk(),{isOpen:p}=c,m=d<=1&&p?"hidden":"auto";return s[0]!==e?(t=e.renderDefault(e),s[0]=e,s[1]=t):t=s[1],s[2]!==m||s[3]!==t?(n=(0,a.jsx)(u.az,{flex:1,height:"fill",overflow:m,children:t}),s[2]=m,s[3]=t,s[4]=n):n=s[4],s[5]!==p?(r=p&&(0,a.jsx)(WH,{zOffset:100,height:"fill",children:(0,a.jsx)(WN,{})}),s[5]=p,s[6]=r):r=s[6],s[7]!==r?(i=(0,a.jsx)(tK.N,{initial:!1,children:r}),s[7]=r,s[8]=i):i=s[8],s[9]!==n||s[10]!==i?(l=(0,a.jsxs)(WY,{sizing:"border",height:"fill",children:[n,i]}),s[9]=n,s[10]=i,s[11]=l):l=s[11],l}let WU=e=>{let t,n,r,i=(0,o.c)(9),{enabled:l,mode:s}=qp();if(!l){let t;return i[0]!==e?(t=e.renderDefault(e),i[0]=e,i[1]=t):t=i[1],t}let d="upsell"===s;return i[2]!==e?(t=e.renderDefault(e),i[2]=e,i[3]=t):t=i[3],i[4]!==t?(n=(0,a.jsx)(qz,{children:(0,a.jsx)(q_,{children:t})}),i[4]=t,i[5]=n):n=i[5],i[6]!==d||i[7]!==n?(r=(0,a.jsx)(Kl,{children:(0,a.jsx)(y.e7,{condition:d,wrapper:Wq,children:n})}),i[6]=d,i[7]=n,i[8]=r):r=i[8],r};function Wq(e){return(0,a.jsx)(qL,{children:e})}let WJ=[],WW=e=>{let t,n,r,i=(0,o.c)(8),{onClick:l,isOpen:s}=e,{t:d}=iJ(qc);return i[0]!==d?(t=d("toolbar.tooltip"),i[0]=d,i[1]=t):t=i[1],i[2]!==t?(n={content:t},i[2]=t,i[3]=n):n=i[3],i[4]!==s||i[5]!==l||i[6]!==n?(r=(0,a.jsx)(y.$n,{tooltipProps:n,icon:C.Dee,mode:"bleed",onClick:l,selected:s,"data-testid":"tasks-toolbar"}),i[4]=s,i[5]=l,i[6]=n,i[7]=r):r=i[7],r};function WK(e){let{handleOpenTasks:t,handleCloseTasks:n,state:{isOpen:r}}=qk(),{t:i}=iJ(qc),o=(0,s.useCallback)(()=>{r?n():t()},[r,t,n]),l=(0,s.useCallback)(()=>(0,a.jsx)(WW,{onClick:o,isOpen:r}),[o,r]),d=(0,s.useMemo)(()=>[...e?.__internal_actions||WJ,{location:"topbar",name:"tasks-topbar",render:l},{icon:C.Dee,location:"sidebar",name:"tasks-sidebar",onAction:o,selected:r,title:i("actions.open.text")}],[o,r,e?.__internal_actions,l,i]);return e.renderDefault({...e,__internal_actions:d})}let WG="sanity/tasks",WX=aR({name:WG,__internal_tasks:{footerAction:(0,a.jsx)(function(){let{data:e,activeDocument:t}=qM(),{handleOpenTasks:n,setActiveTab:r}=qk(),i=(0,u.aY)(),o=(0,s.useMemo)(()=>t?.documentId?e.filter(e=>e.target?.document._ref===t.documentId&&"open"===e.status&&e.createdByUser):[],[t,e]),l=(0,s.useCallback)(()=>{n(),r("document")},[n,r]),{t:d}=iJ(qc);return 0===o.length?null:i<3?(0,a.jsxs)(qq,{children:[(0,a.jsx)(y.$n,{mode:"bleed",icon:C.ZMV,size:"large",onClick:l,tooltipProps:{content:d("document.footer.open-tasks.placeholder",{count:o.length})}}),(0,a.jsx)(u.Ex,{"data-testid":"tasks-badge",tone:"primary",fontSize:0,children:o.length})]}):(0,a.jsx)(y.$n,{mode:"bleed",tooltipProps:{content:d("document.footer.open-tasks.placeholder",{count:o.length})},text:d("document.footer.open-tasks.text",{count:o.length}),onClick:l})},{})},document:{actions:e=>
3508[...e,qY].filter(Boolean)},studio:{components:{layout:function(e){let t,n=(0,o.c)(2);return n[0]!==e?(t=(0,a.jsx)(qu,{children:(0,a.jsx)(WU,{...e})}),n[0]=e,n[1]=t):t=n[1],t},navbar:function(e){let t,n=(0,o.c)(4),{enabled:r}=qp();if(!r){let t;return n[0]!==e?(t=e.renderDefault(e),n[0]=e,n[1]=t):t=n[1],t}return n[2]!==e?(t=(0,a.jsx)(WK,{...e}),n[2]=e,n[3]=t):t=n[3],t},activeToolLayout:function(e){let t,n=(0,o.c)(4),{enabled:r}=qp();if(!r){let t;return n[0]!==e?(t=e.renderDefault(e),n[0]=e,n[1]=t):t=n[1],t}return n[2]!==e?(t=(0,a.jsx)(WZ,{...e}),n[2]=e,n[3]=t):t=n[3],t}}},form:{components:{input:e=>"root"===e.id&&e.schemaType.type?.name==="document"?(0,a.jsx)(qU,{...e}):e.renderDefault(e)}},i18n:{bundles:[{locale:"en-US",namespace:qc,resources:()=>n.e(7159).then(n.bind(n,87159))}]}}),WQ=[Y9(),WX(),qd(),Hy(),yP(),Fe(),Lv()];class W1 extends Error{constructor(e){super("SchemaError"),this.schema=e,this.name="SchemaError"}}let W2=eq("sanity:config");async function W5(e){if("u">typeof rM&&rM?.env?.SANITY_STUDIO_SCHEMA_DESCRIPTOR)return!0;let{projectId:t}=e.config();return!!t&&(0,em._)(uf({projectId:t,versionedClient:e})).then(e=>e.includes("toggle.schema.upload")).catch(e=>(W2("Fetching features failed. NOT sending schema to server.",{err:e}),!1))}async function W0(e,t){if(!await W5(t))return;let n=performance.now(),r=wf.get(e),i=performance.now()-n;i>1e3&&console.warn(`Building schema for synchronization took more than 1 second (${i}ms)`);let a=r.set.id,{projectId:o="?",dataset:l="?"}=t.config(),s=`dataset:${o}:${l}`;ar&&(s+="#dev");let d={descriptorId:a,contextKey:s},c=(await t.request({uri:"/descriptors/claim",method:"POST",body:d,headers:{"Client-Timing":`convertSchema;dur=${i}`}})).synchronization;for(let e=0;e<5;e++){let e=(0,t3.hF)(r,c);if(null===e)return a;c=await t.request({uri:"/descriptors/synchronize",method:"POST",body:e})}throw Error("Schema synchronization didn't succeed in 5 iterations")}let W7=eq("sanity:config"),W3=e=>"error"===e.severity,W8=new WeakMap;function W4(e,t){if(!Array.isArray(e)&&"missingConfigFile"in e)throw new aA({name:"",type:"configuration file",causes:["No `sanity.config.ts` file found","No `sanity.config.js` file found"]});let n=function(e){let t=e||"";if("string"!=typeof t||t.length>0&&!t.startsWith("/"))throw new aA({name:"",type:"options",causes:["basePath must be a string, and must start with a slash"]});return"/"===t?"":t}(t?.basePath),r=Array.isArray(e)?e:[{...e,name:e.name??"default"}];try{!function({workspaces:e}){if(0===e.length)throw new rK("At least one workspace is required.");(function(e){let t=1===e.length,n=new Map;e.forEach((e,r)=>{let{name:i,title:a}=e,o=rJ(a,r);if(!i&&!t)throw new rK(`All workspaces must have a \`name\`, unless only a single workspace is defined. Workspace ${o} did not define a \`name\`.`,{workspace:e,index:r});let l=t&&typeof i>"u"?"default":i;if("string"!=typeof l)throw new rK(`Workspace at index ${r} defined an invalid \`name\` - must be a string.`,{workspace:e,index:r});let s=l.toLowerCase(),d=n.get(s);if(d){let t=rJ(d.workspace.title,d.index);throw new rK(`\`name\`s must be unique. Workspace ${t} and workspace ${o} both have the \`name\` \`${l}\``,{workspace:e,index:r})}if(n.set(s,{index:r,workspace:e}),!/^[a-z0-9][a-z0-9_-]*$/i.test(l))throw new rK(`All workspace \`name\`s must consist of only a-z, 0-9, underscore and dashes, and cannot begin with an underscore or dash. Workspace ${o} has the invalid name \`${l}\``,{workspace:e,index:r})})})(e),function(e){e.length>1&&e.every(rG),e.every(rX);let[t,...n]=e,r=(t.basePath||"/").slice(1).split("/").filter(Boolean).length;n.forEach((e,n)=>{let i=(e.basePath||"/").slice(1).split("/").length;if(r!==i)throw new rK(`All workspace \`basePath\`s must have the same amount of segments. Workspace \`${rq(t,n)}\` had ${r} segment${1===r?"":"s"} \`${t.basePath}\` but workspace \`${rq(e,n)}\` had ${i} segment${1===i?"":"s"} \`${e.basePath}\``,{workspace:e,index:n})});let i=new Map;e.forEach((e,t)=>{let n=(e.basePath||"").toLowerCase(),r=i.get(n);if(r)throw new rK(`\`basePath\`s must be unique. Workspaces \`${r}\` and \`${rq(e,t)}\` both have the \`basePath\` \`${n}\``,{workspace:e,index:t});i.set(n,rq(e,t))})}(e)}({workspaces:r})}catch(e){throw new aA({name:"",type:"workspace",causes:[e.message]})}return{type:"prepared-config",workspaces:r.map(e=>{var t,r;if(W8.has(e))return W8.get(e);let i={tasks:{enabled:!0,...e.unstable_tasks,...e.tasks},scheduledPublishing:{enabled:!0,inputDateTimeFormat:"dd/MM/yyyy HH:mm",showReleasesBanner:!0,...e.scheduledPublishing,__internal__workspaceEnabled:e.scheduledPublishing?.enabled??!1},releases:{...e.releases,enabled:e.releases?.enabled??!0},apps:{canvas:{enabled:!0,...e.apps?.canvas}},mediaLibrary:e?.mediaLibrary},{unstable_sources:o=[],...l}=e,d=[l,...o].map(({plugins:e,...t})=>({...t,plugins:[...e??[],...WQ.filter(t=>t.name===qs?i.scheduledPublishing.enabled&&!!e?.length:t.name===WG?i.tasks.enabled:t.name===yD?i.releases.enabled:t.name===L9?i.apps?.canvas?.enabled??!1:t.name!==Lb||i.mediaLibrary?.enabled)].filter(e=>{let t="@sanity/assist"!==e.name||e.handlesGDR;return t||console.warn(`Found an incompatible version of @sanity/assist plugin. It has been disabled.
3509To re-enable the plugin, please upgrade to https://github.com/sanity-io/assist/releases/tag/v3.2.2 or later.`),t})})).map(e=>{let t,{projectId:n,dataset:r}=e;try{t=function({config:e,context:t}){return OU({propertyName:"schema.types",config:e,context:t,initialValue:[],reducer:OS})}({config:e,context:{projectId:n,dataset:r}})}catch(t){throw new aA({name:e.name,type:"source",causes:[t]})}let i=function(e){let t=(0,t3.i6)(e.types).getTypes(),n=(0,t3.Uh)(t),r=n.some(e=>e.problems.some(wm)),i=ny.S.compile({name:e.name,types:r?[]:e.types.filter(
3509Boolean),parent:wh});return i._validation=n,gE(i)}({name:e.name,types:t}),o=i._validation,l=o?.filter(e=>e.problems.some(W3));if(o&&l?.length)throw new W1(i);let s=function(e){var t;if(iI(t=e.auth)&&"state"in t&&iI(t.state)&&"subscribe"in t.state&&"function"==typeof t.state.subscribe)return e.auth;let n=e.unstable_clientFactory||eB.UU,{projectId:r,dataset:i,apiHost:a}=e;return om({apiHost:a,...e.auth,clientFactory:n,dataset:i,projectId:r})}(e),d=function(e){let{projectId:t,dataset:n,name:r}=e,i={projectId:t,dataset:n},a=OU({config:e,context:i,propertyName:"i18n.locales",reducer:O$,initialValue:[r6]}),o=OU({config:e,context:i,propertyName:"i18n.bundles",reducer:OA,initialValue:function(e){let t=[];for(let n of e){if(n.bundles&&!Array.isArray(n.bundles))throw Error(`Resource bundle for locale ${n.id} is not an array`);if(n.bundles)for(let e of n.bundles){if("locale"in e&&e.locale!==n.id)throw Error(`Resource bundle inside locale ${n.id} has mismatching locale id`);if(!e.namespace)throw Error(`Resource bundle for locale ${n.id} is missing namespace`);t.push("locale"in e?e:{...e,locale:n.id})}}return t}(a)});return function({locales:e,bundles:t,projectId:n,sourceName:r}){let i=function(e,t,n,r){let i=r9?localStorage.getItem(ie(e,t))??void 0:void 0,a=n.find(e=>e.id===i),o=n[n.length-1],l=a?.id??o.id??OK.lng;return{...OK,ns:Array.from(r),lng:l,supportedLngs:n.map(e=>e.id)}}(n,r,e,new Set(t.map(e=>e.namespace))),a=(0,nw.Q_)().use(function(e){let{bundles:t}=e;return{type:"backend",init:function(){},read:function(e,n,r){let i=t.filter(t=>t.locale===e&&t.namespace===n);if(0===i.length)return void r(`No translations found for namespace "${n}", language "${e}"`,void 0);Oq(i).then(e=>r(null,e)).catch(e=>r(e,!0))}}}({bundles:t})).use(w.r9);a.init(i).catch(e=>{console.error("Failed to initialize i18n backend: %s",e)});let o=e.map(OG);return{source:{get currentLocale(){return o.find(e=>e.id===a.language)??r6},loadNamespaces(e){let t=e.filter(e=>!a.hasLoadedNamespace(e));return 0===t.length?Promise.resolve():a.loadNamespaces(t)},locales:o,t:iU(a.t)},i18next:a}}({locales:a,bundles:o,projectId:t,sourceName:r})}(e),c=s.state.pipe((0,E.T)(({client:t,authenticated:n,currentUser:r})=>(function({config:e,client:t,currentUser:n,schema:r,authenticated:i,auth:o,i18n:l}){var s,d,c,u;let p,m,h,{dataset:f,projectId:g}=e,y=function(e,t){let{dataset:n,url:r,requestTagPrefix:i="sanity.studio"}=e.withConfig({apiVersion:"2022-06-30"}).config(),a=`${`${r.replace(/\/+$/,"")}/socket/${n}`.replace(/^http/,"ws")}?tag=${i}`,o=t.token?{token$:t.token}:{};return(0,eU.uz)(a,o)}(t,o),x=[],b={},v=e=>{if(!e||!e.apiVersion)throw Error("Missing required `apiVersion` option");return b[e.apiVersion]||(b[e.apiVersion]=t.withConfig(e)),b[e.apiVersion]},j={client:t,getClient:v,currentUser:n,dataset:f,projectId:g,schema:r,i18n:l.source};j.client=[...Object.keys(t),...Object.keys(t.__proto__)].reduce((e,n)=>{let r=Object.hasOwnProperty.call(t,n)?t[n]:t.__proto__[n];return Object.defineProperty(e,n,{get:()=>(console.warn('`configContext.client` is deprecated and will be removed in the next release! Use `context.getClient({apiVersion: "2021-06-07"})` instead'),r)})},{});let w=(s=e,{fileSource:SX({client:d=j.client,title:s.title||s.name}),imageSource:SG({client:d,title:s.title||s.name})}),k=(e=>{var t,n;let r=OY({config:e,initialValue:void 0});if(!ON({config:e,initialValue:!1}))return{fileSource:null,imageSource:null};return{fileSource:{name:(t={libraryId:r||null}).name||aT,i18nKey:t.i18nKey||"asset-sources.media-library.file.title",component:e=>(0,a.jsx)(ak,{...e,libraryId:t.libraryId}),icon:t.icon||C.pyG,Uploader:aS},imageSource:{name:(n={libraryId:r||null}).name||aT,i18nKey:n.i18nKey||"asset-sources.media-library.image.title",component:e=>(0,a.jsx)(ak,{...e,libraryId:n.libraryId}),icon:n.icon||C.xfq,Uploader:aS}}})(e);try{p=OU({config:e,context:j,propertyName:"schema.templates",reducer:OE,initialValue:r.getTypeNames().filter(e=>!e.startsWith("sanity.")).map(e=>r.get(e)).filter(io).filter(e=>e.type?.name==="document").map(e=>({id:e.name,schemaType:e.name,title:e.title||e.name,icon:e.icon,value:e.initialValue||{_type:e.name}}))})}catch(t){throw new aA({name:e.name,type:"source",causes:[t]})}try{m=OU({config:e,context:j,initialValue:[],propertyName:"tools",reducer:OI})}catch(t){throw new aA({name:e.name,type:"source",causes:[t]})}if(m.some(({name:e})=>"tool"===e))throw Error('A tool cannot have the name "tool". Please enter a different name.');let S=p.filter(e=>!e.parameters?.length).map(e=>({templateId:e.id,description:e.description,icon:e.icon,title:e.title})),T=p.reduce((e,t)=>
3509(e.set(t.id,t),e),new Map),I=t=>{let{schemaType:n}=t,i=OU({config:e,context:{...j,creationContext:t},initialValue:S,propertyName:"document.resolveNewDocumentOptions",reducer:OM}),a=[];if(a.length)throw new aA({name:e.name,type:"source",causes:a});return i.map((e,t)=>{let n=T.get(e.templateId);if(!n)throw Error(`Could not find template with ID \`${e.templateId}\``);let i=r.get(n.schemaType);if(!i)throw Error(`Could not find matching schema type \`${n.schemaType}\` for template \`${n.id}\``);let a=e.title||n.title,o=i?.title===a?void 0:i?.title;return{id:`${e.templateId}-${t}`,templateId:e.templateId,type:"initialValueTemplateItem",title:a,i18n:e.i18n||n.i18n,subtitle:e.subtitle||o,description:e.description||n.description,icon:e.icon||n.icon||i?.icon,initialDocumentId:e.initialDocumentId,parameters:e.parameters,schemaType:n.schemaType}}).filter(e=>!n||"document"===t.type||n===T.get(e.templateId)?.schemaType)};try{h=I({type:"global"})}catch(e){x.push(e)}if(x.length)throw new aA({name:e.name,type:"source",causes:x});return{type:"source",name:e.name,title:e.title||eJ(e.name),schema:r,getClient:v,dataset:f,projectId:g,tools:m,currentUser:n,authenticated:i,templates:p,auth:o,i18n:l.source,__internal_tasks:(e=>{let{config:t}=e;return Oj(t,[]).reduce((e,{config:t})=>{let n=t.__internal_tasks;if(!n)return e;if("object"==typeof n&&n.footerAction)return n;throw Error(`Expected \`__internal__tasks\` to be an object with footerAction, but received ${Py(n)}`)},void 0)})({config:e}),document:{actions:t=>OU({config:e,context:{...j,...t},initialValue:O_,propertyName:"document.actions",reducer:Oz}),badges:t=>OU({config:e,context:{...j,...t},initialValue:Ow,propertyName:"document.badges",reducer:OD}),drafts:{enabled:OU({config:e,context:j,reducer:OZ,propertyName:"document.drafts.enabled",initialValue:!0})},unstable_fieldActions:t=>OU({config:e,context:{...j,...t},initialValue:Ox,propertyName:"document.unstable_fieldActions",reducer:Oy}),inspectors:t=>OU({config:e,context:{...j,...t},initialValue:i_,propertyName:"document.inspectors",reducer:OL}),resolveProductionUrl:t=>OU({config:e,context:{...j,...t},initialValue:void 0,propertyName:"resolveProductionUrl",asyncReducer:OT}),resolveNewDocumentOptions:I,unstable_languageFilter:t=>OU({config:e,context:{...j,...t},initialValue:Ok,propertyName:"document.unstable_languageFilter",reducer:OV}),unstable_comments:{enabled:t=>OF({context:t,config:e,initialValue:!0})},comments:{enabled:t=>OF({context:t,config:e,initialValue:!0})}},form:{file:{assetSources:OU({config:e,context:j,initialValue:k.fileSource?[k.fileSource,w.fileSource]:[w.fileSource],propertyName:"formBuilder.file.assetSources",reducer:OP}),directUploads:OR({config:e,schemaTypeName:"file"})},image:{assetSources:OU({config:e,context:j,initialValue:k.imageSource?[k.imageSource,w.imageSource]:[w.imageSource],propertyName:"formBuilder.image.assetSources",reducer:OO}),directUploads:OR({config:e,schemaTypeName:"image"})}},search:{filters:OX,operators:V7,unstable_partialIndexing:{enabled:(e=>{let{config:t,initialValue:n}=e;return Oj(t,[]).reduce((e,{config:t})=>{let n=t.search?.unstable_partialIndexing?.enabled;if(!n&&"boolean"!=typeof n)return e;if("boolean"==typeof n)return n;throw Error(`Expected \`search.unstable_partialIndexing.enabled\` to be a boolean, but received ${Py(n)}`)},n)})({config:e,initialValue:e.search?.unstable_partialIndexing?.enabled??!1})},strategy:(({config:e,initialValue:t})=>{let[n,r]=Oj(e,[]).reduce(([e,t],n)=>{let{enableLegacySearch:r,strategy:i}=n.config.search??{};if("u">typeof i){if(!(0,_.GC)(i)){let e=new Intl.ListFormat("en-US",{type:"disjunction"}).format(_.IB.map(e=>`"${e}"`)),t="string"==typeof i?`"${i}"`:Py(i);throw Error(`Expected \`search.strategy\` to be ${e}, but received ${t}`)}return[e,i]}return"boolean"==typeof r?[r?"groqLegacy":"groq2024",t]:[e,t]},[void 0,void 0]);return r??n??t})({config:e,initialValue:"groqLegacy"}),enableLegacySearch:OU({config:e,context:j,reducer:OH,propertyName:"enableLegacySearch",initialValue:!0})},__internal:{bifur:y,i18next:l.i18next,staticInitialValueTemplateItems:h,options:e,schemaDescriptorId:i?(c=W0(r,v(a7)),u=e=>{W7("Uploading schema failed",{err:e})},c.catch(u),c):Promise.resolve(void 0)},onUncaughtError:(t,n)=>(e=>{let{config:t,context:n}=e;
3509Oj(t,[]).forEach(({config:e})=>{let t=e.onUncaughtError;if("function"==typeof t)return t(n.error,n.errorInfo);if(t)throw Error(`Expected \`document.onUncaughtError\` to be a a function, but received ${Py(t)}`)})})({config:e,context:{error:t,errorInfo:n}}),beta:{eventsAPI:{documents:OB({config:e,initialValue:!0,key:"documents"}),releases:OB({config:e,initialValue:!1,key:"releases"})},treeArrayEditing:{enabled:!1},create:{startInCreateEnabled:!1,fallbackStudioOrigin:void 0}},__internal_serverDocumentActions:{enabled:(e=>{let{config:t,initialValue:n}=e;return Oj(t,[]).reduce((e,{config:t})=>{let n=t.__internal_serverDocumentActions?.enabled;if(typeof n>"u")return e;if("boolean"==typeof n)return n;throw Error(`Expected \`__internal_serverDocumentActions\` to be a boolean, but received ${Py(n)}`)},n)})({config:e,initialValue:void 0})},announcements:{enabled:(e=>{let{config:t,initialValue:n}=e;return Oj(t,[]).reduce((e,{config:t})=>{let n=t.announcements?.enabled;if(!n&&"boolean"!=typeof n)return e;if("boolean"==typeof n)return n;throw Error(`Expected \`announcements.enabled\` to be a boolean, but received ${Py(n)}`)},n)})({config:e,initialValue:!0})},mediaLibrary:{enabled:ON({config:e,initialValue:!1}),libraryId:OY({config:e,initialValue:void 0})}}})({config:e,client:t,currentUser:r,schema:i,authenticated:n,auth:s,i18n:d})),(0,Y.t)(1));return{name:e.name,projectId:e.projectId,dataset:e.dataset,title:e.title||eJ(e.name),auth:s,schema:i,i18n:d.source,source:c}}),c=l.title||eJ(l.name),p={type:"workspace-summary",auth:d[0].auth,basePath:(t=n,r=l.basePath,`/${[t,r||""].map(e=>e.replace(/^\/+/g,"").replace(/\/+$/g,"")).filter(Boolean).join("/")}`),dataset:l.dataset,schema:d[0].schema,i18n:d[0].i18n,customIcon:!!l.icon,icon:function(e,t,n=""){return(0,eW.isValidElementType)(e)?(0,a.jsx)(e,{}):(0,s.isValidElement)(e)?e:function(e,t){let n=aD(`${e} ${t}`),r=v.Cv.filter(e=>"gray"!==e),i=r[Math.floor(n*r.length)],o=["300","400","500","600","700"],l=o[Math.floor(aD(n.toString())*o.length)],s=v.OZ[i][l].hex,d=e.split(/\s/g).map(e=>e.replace(/\\W/g,"")).filter(Boolean).slice(0,2).map(e=>e.charAt(0).toUpperCase()),c=(0,j.e$)(s,.4),u=(0,j.a)(s,.4),p=(0,j.Uv)(s,"readable",c)?(0,j.Uv)(s,"readable",u)?(0,j.W0)(s):u:c;return(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:[(0,a.jsx)("rect",{width:32,height:32,rx:2,fill:s}),(0,a.jsx)(az,{x:"50%",y:"50%",textAnchor:"middle",alignmentBaseline:"middle",dominantBaseline:"middle",fill:p,children:d})]})}(t,n)}(l.icon,c,`${l.projectId} ${l.dataset}`),name:l.name||"default",projectId:l.projectId,theme:l.theme||u.Qx,title:c,subtitle:l.subtitle,__internal:{sources:d},...i};return W8.set(e,p),p})}}function W6(e){let t,n=(0,o.c)(7),{projectId:r,dataset:i,schema:a,currentUser:l,getClient:s,i18n:d}=e;return n[0]!==l||n[1]!==i||n[2]!==s||n[3]!==d||n[4]!==r||n[5]!==a?(t={projectId:r,dataset:i,schema:a,currentUser:l,getClient:s,i18n:d},n[0]=l,n[1]=i,n[2]=s,n[3]=d,n[4]=r,n[5]=a,n[6]=t):t=n[6],t}function W9(e){let{projectId:t,dataset:n,schema:r,currentUser:i,getClient:a,i18n:o}=e;return{projectId:t,dataset:n,schema:r,currentUser:i,getClient:a,i18n:o}}function Ke(e){let t,n,r,i=(0,o.c)(9),{config:l,children:d,basePath:u,LoadingComponent:p}=e,[m,h]=(0,s.useState)(null);if(i[0]!==u||i[1]!==l?(t=()=>{h(W4(l,{basePath:u}).workspaces)},n=[u,l],i[0]=u,i[1]=l,i[2]=t,i[3]=n):(t=i[2],n=i[3]),(0,s.useEffect)(t,n),null===m){let e;return i[4]!==p?(e=(0,a.jsx)(p,{}),i[4]=p,i[5]=e):e=i[5],e}return i[6]!==d||i[7]!==m?(r=(0,a.jsx)(c.WB.Provider,{value:m,children:d}),i[6]=d,i[7]=m,i[8]=r):r=i[8],r}function Kt(e){let t,n=(0,o.c)(3),{children:r,history:i}=e;return n[0]!==r||n[1]!==i?(t=(0,a.jsx)(c.Nv.Provider,{value:i,children:r}),n[0]=r,n[1]=i,n[2]=t):t=n[2],t}let Kn=(0,s.memo)(function(e){let t,n,r,i,l=(0,o.c)(9),{children:s,history:d,activeWorkspace:u,setActiveWorkspace:p}=e;return l[0]!==u||l[1]!==p?(n={activeWorkspace:u,setActiveWorkspace:p},l[0]=u,l[1]=p,l[2]=n):n=l[2],t=n,l[3]!==s||l[4]!==d?(r=(0,a.jsx)(Kt,{history:d,children:s}),l[3]=s,l[4]=d,l[5]=r):r=l[5],l[6]!==r||l[7]!==t?(i=(0,a.jsx)(c.ZC.Provider,{value:t,children:r}),l[6]=r,l[7]=t,l[8]=i):i=l[8],i});function Kr(e,t){if(e.type!==t.type)return!1;switch(e.type){case"match":return e.workspace===t.workspace;case"redirect":return e.pathname===t.pathname;case"not-found":return!0;default:throw Error(`Unknown type: ${e.type}`)}}function Ki(e){let t,n,r,i,l,d,c=(0,o.c)(25),{children:u,LoadingComponent:p,NotFoundComponent:m,unstable_history:h}=e,f=rW();c[0]!==h?(n=h||(typeof document>"u"?(0,rt.sC)():(0,rt.zR)()),c[0]=h,c[1]=n):n=c[1],t=n,c[2]!==t||c[3]!==f?(r=e=>{let n=f.find(t=>t.name===e);
3509n&&t.push(n.basePath)},c[2]=t,c[3]=f,c[4]=r):r=c[4];let g=r;c[5]!==g||c[6]!==f[0].name?(i=()=>{g(f[0].name)},c[5]=g,c[6]=f[0].name,c[7]=i):i=c[7];let C=i,y=function(e,t){let n,r,i,a,l,d,c,u,p,m=(0,o.c)(18),h=function(e){let t,n=(0,o.c)(2);return n[0]!==e?(t=e.map(e=>{let t=e.basePath||"/";return{workspace:e,name:e.name,basePath:t,basePathRegex:RegExp(`^${rr(t)}(\\/|$)`,"i")}}),n[0]=e,n[1]=t):t=n[1],t}(t);m[0]!==h?(r=function(e){let t=e.map(e=>e.basePath.slice(1).split("/")).reduce((e,t)=>{for(let n=0;n<e.length;n++)if(e[n]!==t[n].toLowerCase())return e.slice(0,n);return e});return RegExp(`^${function e([t,...n]){return t?`(\\/${rr(t)}${e(n)}(\\/|$))?`:""}(t)}$`,"i")}(h),m[0]=h,m[1]=r):r=m[1],n=r,m[2]!==e.location.pathname?(i=()=>e.location.pathname,m[2]=e.location.pathname,m[3]=i):i=m[3];let[f]=(0,s.useState)(i);return m[4]!==e?(l=t=>e.listen(t),m[4]=e,m[5]=l):l=m[5],m[6]!==e.location.pathname?(d=()=>e.location.pathname,m[6]=e.location.pathname,m[7]=d):d=m[7],m[8]!==f?(c=()=>f,m[8]=f,m[9]=c):c=m[9],m[10]!==n||m[11]!==h?(u=e=>(function({pathname:e,workspaces:t,basePathRegex:n}){let[r]=t;for(let{workspace:n,basePath:r,basePathRegex:i}of t)if(i.test(e)||"/"===r)return{type:"match",workspace:n};return"/"===e||n.test(e)?{type:"redirect",pathname:r.basePath}:{type:"not-found"}})({basePathRegex:n,pathname:e,workspaces:h}),m[10]=n,m[11]=h,m[12]=u):u=m[12],m[13]!==l||m[14]!==d||m[15]!==c||m[16]!==u?(p={subscribe:l,getSnapshot:d,getServerSnapshot:c,selector:u,isEqual:Kr},m[13]=l,m[14]=d,m[15]=c,m[16]=u,m[17]=p):p=m[17],a=p,(0,rn.useSyncExternalStoreWithSelector)(a.subscribe,a.getSnapshot,a.getServerSnapshot,a.selector,a.isEqual)}(t,f);switch(c[8]!==t||c[9]!==y.pathname||c[10]!==y.type?(l=()=>{"redirect"===y.type&&t.replace(y.pathname)},c[8]=t,c[9]=y.pathname,c[10]=y.type,c[11]=l):l=c[11],c[12]!==t||c[13]!==y?(d=[t,y],c[12]=t,c[13]=y,c[14]=d):d=c[14],(0,s.useEffect)(l,d),y.type){case"match":{let e;return c[15]!==u||c[16]!==t||c[17]!==y.workspace||c[18]!==g?(e=(0,a.jsx)(Kn,{activeWorkspace:y.workspace,history:t,setActiveWorkspace:g,children:u}),c[15]=u,c[16]=t,c[17]=y.workspace,c[18]=g,c[19]=e):e=c[19],e}case"redirect":{let e;return c[20]!==p?(e=(0,a.jsx)(p,{}),c[20]=p,c[21]=e):e=c[21],e}case"not-found":{let e;return c[22]!==m||c[23]!==C?(e=(0,a.jsx)(m,{onNavigateToDefaultWorkspace:C}),c[22]=m,c[23]=C,c[24]=e):e=c[24],e}default:throw Error(`Unknown type: ${y.type}`)}}let Ka="v2023-11-13";function Ko(e){let{children:t}=e,{dataset:n,projectId:r}=lE(),i=ee7(a7),[o,l]=(0,s.useState)(null),[d,u]=(0,s.useState)(!1),[p,m]=(0,s.useState)(!1),h=(0,s.useCallback)(async()=>(await i.withConfig({apiVersion:Ka}).request({uri:`/projects/${r}/datasets?datasetProfile=comments&addonFor=${n}`,tag:"sanity.studio"}))?.[0]?.name,[n,i,r]),f=(0,s.useCallback)(e=>i.withConfig({apiVersion:Ka,dataset:e,projectId:r,requestTagPrefix:"sanity.studio",useCdn:!1}),[i,r]),g=(0,s.useCallback)(async()=>{u(!0);try{let e=await h();if(e){let t=f(e);return l(t),u(!1),t}}catch{}try{let e=(await i.withConfig({apiVersion:Ka}).request({uri:`/comments/${n}/setup`,method:"POST"}))?.datasetName;if(!e)return u(!1),null;let t=f(e);return l(t),t}catch(e){throw e}finally{u(!1)}},[n,h,f,i]);(0,s.useEffect)(()=>{h().then(e=>{e&&l(f(e))}).catch(e=>{}).finally(()=>{m(!0)})},[h,f]);let C=(0,s.useMemo)(()=>({client:o,createAddonDataset:g,isCreatingDataset:d,ready:p}),[o,g,d,p]);return(0,a.jsx)(c.iD.Provider,{value:C,children:t})}function Kl(e){let t,n=(0,o.c)(2);return(0,s.useContext)(c.iD)?e.children:(n[0]!==e?(t=(0,a.jsx)(Ko,{...e}),n[0]=e,n[1]=t):t=n[1],t)}function Ks(){let e=(0,s.useContext)(c.iD);if(!e)throw Error("useAddonDataset: missing context value");return e}function Kd(e){switch(e){case"dark":case"light":return e;default:return"system"}}let Kc=new Set,Ku=e=>(r||(r=Kd(localStorage.getItem("sanityStudio:ui:colorScheme"))||"system"),Kc.add(e),()=>{Kc.delete(e)});function Kp(){return r}function Km(e){for(let t of(r=Kd(e),Kc))t()}function Kh(){return(0,u.Xy)()?"dark":"light"}function Kf(e){let t,n=(0,o.c)(3),{children:r,scheme:i}=e,l=Kh(),s="system"===i?l:i;return n[0]!==r||n[1]!==s?(t=(0,a.jsx)(u.NP,{scheme:s,theme:u.Qx,children:r}),n[0]=r,n[1]=s,n[2]=t):t=n[2],t}function Kg(e){let t,n=(0,o.c)(7),{children:r,onSchemeChange:i,scheme:l}=e;if(l){let e;return n[0]!==r||n[1]!==i||n[2]!==l?(e=(0,a.jsx)(Kx,{scheme:l,onSchemeChange:i,children:r}),n[0]=r,n[1]=i,n[2]=l,n[3]=e):e=n[3],e}return n[4]!==r||n[5]!==i?(t=(0,a.jsx)(KC,{onSchemeChange:i,children:r}),n[4]=r,n[5]=i,n[6]=t):t=n[6],t}function KC(e){let t,n,r,i,l=(0,o.c)(10),{children:d,onSchemeChange:u}
3509=e,p=(0,s.useSyncExternalStore)(Ku,Kp,Ky);return l[0]!==u||l[1]!==p?(t=()=>{"function"==typeof u&&u(p),localStorage.setItem("sanityStudio:ui:colorScheme",p)},n=[u,p],l[0]=u,l[1]=p,l[2]=t,l[3]=n):(t=l[2],n=l[3]),(0,s.useEffect)(t,n),l[4]!==d||l[5]!==p?(r=(0,a.jsx)(Kf,{scheme:p,children:d}),l[4]=d,l[5]=p,l[6]=r):r=l[6],l[7]!==p||l[8]!==r?(i=(0,a.jsx)(c.RU.Provider,{value:Km,children:(0,a.jsx)(c.fG.Provider,{value:p,children:r})}),l[7]=p,l[8]=r,l[9]=i):i=l[9],i}function Ky(){return"system"}function Kx(e){let t,n,r,i=(0,o.c)(9),{children:l,onSchemeChange:s,scheme:d}=e,u="function"==typeof s&&s;return i[0]!==l||i[1]!==d?(t=(0,a.jsx)(Kf,{scheme:d,children:l}),i[0]=l,i[1]=d,i[2]=t):t=i[2],i[3]!==d||i[4]!==t?(n=(0,a.jsx)(c.fG.Provider,{value:d,children:t}),i[3]=d,i[4]=t,i[5]=n):n=i[5],i[6]!==u||i[7]!==n?(r=(0,a.jsx)(c.RU.Provider,{value:u,children:n}),i[6]=u,i[7]=n,i[8]=r):r=i[8],r}function Kb(){let e=(0,s.useContext)(c.RU);if(null===e)throw Error("Could not find `ColorSchemeSetValueContext` context");return e}function Kv(){let e=(0,s.useContext)(c.fG);if(null===e)throw Error("Could not find `ColorSchemeValueContext` context");return e}function Kj(){let e=Kv(),t=Kh();return"system"===e?t:e}function Kw(e,t){let n,r,i,a,l,s,d,c,u,p,m,h,f,g=(0,o.c)(37),y=Kv();g[0]!==t?(n=t("user-menu.color-scheme.system-title"),g[0]=t,g[1]=n):n=g[1],g[2]!==t?(r=t("user-menu.color-scheme.system-description"),g[2]=t,g[3]=r):r=g[3];let x="system"===y;g[4]!==e?(i=()=>e("system"),g[4]=e,g[5]=i):i=g[5],g[6]!==n||g[7]!==r||g[8]!==x||g[9]!==i?(a={title:n,name:"system",label:r,selected:x,onSelect:i,icon:C.eZO},g[6]=n,g[7]=r,g[8]=x,g[9]=i,g[10]=a):a=g[10],g[11]!==t?(l=t("user-menu.color-scheme.dark-title"),g[11]=t,g[12]=l):l=g[12],g[13]!==t?(s=t("user-menu.color-scheme.dark-description"),g[13]=t,g[14]=s):s=g[14];let b="dark"===y;g[15]!==e?(d=()=>e("dark"),g[15]=e,g[16]=d):d=g[16],g[17]!==l||g[18]!==s||g[19]!==b||g[20]!==d?(c={title:l,name:"dark",label:s,selected:b,onSelect:d,icon:C.rRK},g[17]=l,g[18]=s,g[19]=b,g[20]=d,g[21]=c):c=g[21],g[22]!==t?(u=t("user-menu.color-scheme.light-title"),g[22]=t,g[23]=u):u=g[23],g[24]!==t?(p=t("user-menu.color-scheme.light-description"),g[24]=t,g[25]=p):p=g[25];let v="light"===y;return g[26]!==e?(m=()=>e("light"),g[26]=e,g[27]=m):m=g[27],g[28]!==u||g[29]!==p||g[30]!==v||g[31]!==m?(h={title:u,name:"light",label:p,selected:v,onSelect:m,icon:C.gLX},g[28]=u,g[29]=p,g[30]=v,g[31]=m,g[32]=h):h=g[32],g[33]!==c||g[34]!==h||g[35]!==a?(f=[a,c,h],g[33]=c,g[34]=h,g[35]=a,g[36]=f):f=g[36],f}let K_=(0,s.forwardRef)(function(e,t){let n,r,i,l,s,d=(0,o.c)(12),{onClick:c}=e,{t:u}=iJ();return d[0]!==u?(n=u("search.action-open-aria-label"),d[0]=u,d[1]=n):n=d[1],d[2]!==u?(r=u("search.button.tooltip"),d[2]=u,d[3]=r):r=d[3],d[4]===Symbol.for("react.memo_cache_sentinel")?(i=[pl,"K"],d[4]=i):i=d[4],d[5]!==r?(l={content:r,hotkeys:i,portal:!0},d[5]=r,d[6]=l):l=d[6],d[7]!==c||d[8]!==t||d[9]!==n||d[10]!==l?(s=(0,a.jsx)(y.$n,{"aria-label":n,"data-testid":"studio-search",icon:C.WIv,tooltipProps:l,onClick:c,mode:"bleed",ref:t}),d[7]=c,d[8]=t,d[9]=n,d[10]=l,d[11]=s):s=d[11],s}),Kk=(0,g.I4)(u.Zp)`
3510  flex-direction: column;
3511  overflow: hidden;
3512  overflow: clip;
3513  pointer-events: all;
3514  position: relative;
3515`,KS=(0,g.I4)(u.az)`
3516  height: 100%;
3517  left: 0;
3518  overflow: hidden;
3519  overflow: clip;
3520  pointer-events: none;
3521  position: fixed;
3522  top: 0;
3523  width: 100%;
3524  z-index: 1;
3525`;function KT(e){let t,n,r,i=(0,o.c)(15),{onClose:l,onOpen:d,open:c}=e,[p,m]=(0,s.useState)(null),h=Kj(),{state:f}=pd(),{filtersVisible:g,terms:C}=f;i[0]!==C?(t=pc({terms:C}),i[0]=C,i[1]=t):t=i[1];let y=t;return i[2]!==g||i[3]!==y||i[4]!==p||i[5]!==l||i[6]!==c||i[7]!==h?(n=c&&(0,a.jsx)(u.ZL,{children:(0,a.jsx)(eX.Ay,{autoFocus:!iO,returnFocus:!0,children:(0,a.jsx)(KS,{children:(0,a.jsxs)(Kk,{display:"flex",height:"fill",scheme:h,tone:"default",children:[(0,a.jsx)(hC,{onClose:l,ref:m}),g&&(0,a.jsx)(u.Zp,{borderTop:!0,flex:"none",children:(0,a.jsx)(mX,{})}),y?(0,a.jsx)(hB,{inputElement:p}):(0,a.jsx)(hm,{inputElement:p})]})})})}),i[2]=g,i[3]=y,i[4]=p,i[5]=l,i[6]=c,i[7]=h,i[8]=n):n=i[8],i[9]!==y||i[10]!==l||i[11]!==d||i[12]!==c||i[13]!==n?(r=(0,a.jsx)(pm,{hasValidTerms:y,onClose:l,onOpen:d,open:c,children:n}),i[9]=y,i[10]=l,i[11]=d,i[12]=c,i[13]=n,i[14]=r):r=i[14],r}let KI=e=>{let t,n=(0,o.c)(1),{children:r,capability:i,condition:a}=e,l=void 0===a?"unavailable":a,s=Mn();n[0]===Symbol.for("react.memo_cache_sentinel")?(t={},n[0]=t):t=n[0];let d=!0===(0,eH.J)(s.capabilities,t)[i];return"available"===l&&!d||"unavailable"===l&&d?null:r},KE=(0,s.forwardRef)(function(e,t){let n,r,i,l,s=(0,o.c)(9);s[0]!==e?({name:n,...r}=e,s[0]=e,s[1]=n,s[2]=r):(n=s[1],r=s[2]),s[3]!==n?(i=()=>({tool:n,[n]:void 0}),s[3]=n,s[4]=i):i=s[4];let d=(0,tq.ks)(i);return s[5]!==t||s[6]!==r||s[7]!==d?(l=(0,a.jsx)(tq.s8,{state:d,...r,ref:t}),s[5]=t,s[6]=r,s[7]=d,s[8]=l):l=s[8],l}),K$=(0,g.AH)`
3526  position: relative;
3527  cursor: default;
3528  &::before {
3529    content: '';
3530    position: absolute;
3531    display: block;
3532    inset: -4px;
3533    border-radius: 9999px;
3534  }
3535`,KA=g.I4.div({width:4,height:4,borderRadius:3,boxShadow:"0 0 0 1px var(--card-bg-color)"}),KD=(0,g.I4)(KE)`
3536  ${K$}
3537`;function Kz(){let e,t,n,r,i=(0,o.c)(10),{t:l}=iJ(),{errorCount$:s}=lu(),d=0!==(0,eH.J)(s),c=(0,tq.ks)(KM);i[0]!==l?(e=l("release.navbar.tooltip"),i[0]=l,i[1]=e):e=i[1];let p=c===yz;return i[2]!==d?(t=d&&(0,a.jsx)(KA,{"data-ui":"error-status-icon",style:{backgroundColor:"var(--card-badge-critical-dot-color)"}}
3537),i[2]=d,i[3]=t):t=i[3],i[4]!==p||i[5]!==t?(n=(0,a.jsx)(u.$n,{as:KD,name:yz,"data-as":"a",icon:C.CTc,mode:"bleed",padding:2,radius:"full","data-testid":"releases-tool-link",selected:p,children:t}),i[4]=p,i[5]=t,i[6]=n):n=i[6],i[7]!==e||i[8]!==n?(r=(0,a.jsx)(y.m_,{content:e,children:n}),i[7]=e,i[8]=n,i[9]=r):r=i[9],r}function KM(e){return"string"==typeof e.tool?e.tool:void 0}let KP=(0,g.I4)(tq.RZ)`
3538  ${K$}
3539`;function KR(e){let t,n,r,i,l,d,c,u,p,m,h=(0,o.c)(18),{children:f,text:g}=e,C=(0,s.useRef)(null),[y,x]=(0,s.useState)(null),[b,v]=(0,s.useState)(!1);h[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{C.current&&x(C.current.offsetWidth)},h[0]=t):t=h[0],h[1]!==g?(n=[g],h[1]=g,h[2]=n):n=h[2],(0,s.useLayoutEffect)(t,n),h[3]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{v(!0)},h[3]=r):r=h[3];let j=r;h[4]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{v(!1)},h[4]=i):i=h[4];let w=i,_=null===y?"auto":y,k=b?"hidden":"visible";h[5]!==_||h[6]!==k?(l={display:"inline-block",width:_,overflow:k},h[5]=_,h[6]=k,h[7]=l):l=h[7];let S=y||"auto";return h[8]!==S?(d={width:S},h[8]=S,h[9]=d):d=h[9],h[10]===Symbol.for("react.memo_cache_sentinel")?(c={type:"spring",bounce:0,duration:.3},h[10]=c):c=h[10],h[11]===Symbol.for("react.memo_cache_sentinel")?(u={display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},h[11]=u):u=h[11],h[12]!==f?(p=(0,a.jsx)("div",{ref:C,style:u,children:f}),h[12]=f,h[13]=p):p=h[13],h[14]!==p||h[15]!==l||h[16]!==d?(m=(0,a.jsx)(tW.P.div,{style:l,animate:d,transition:c,onAnimationStart:j,onAnimationComplete:w,children:p}),h[14]=p,h[15]=l,h[16]=d,h[17]=m):m=h[17],m}let KO=e=>{let t,n,r,i,l,d=(0,o.c)(9),{selectedPerspective:c}=e,{t:p}=iJ();return d[0]!==c._id?(n=(0,s.forwardRef)(function(e,t){let{children:n,...r}=e;return(0,a.jsx)(KP,{...r,ref:t,intent:yM,params:{id:o4(c._id)},children:n})}),d[0]=c._id,d[1]=n):n=d[1],t=n,d[2]===Symbol.for("react.memo_cache_sentinel")?(r={maxWidth:"180px",textOverflow:"ellipsis"},d[2]=r):r=d[2],d[3]!==c.metadata?.title||d[4]!==p?(i=c.metadata?.title||p("release.placeholder-untitled-release"),d[3]=c.metadata?.title,d[4]=p,d[5]=i):i=d[5],d[6]!==t||d[7]!==i?(l=(0,a.jsx)(u.$n,{as:t,"data-as":"a",rel:"noopener noreferrer",mode:"bleed",padding:2,radius:"full",style:r,text:i}),d[6]=t,d[7]=i,d[8]=l):l=d[8],l};function KV(e){let t,n,r=(0,o.c)(6),{selectedPerspective:i}=e,{t:l}=iJ(),s=lC(i)?i._id:i;return r[0]!==i||r[1]!==l?(t=lj(i)||lw(i)?(0,a.jsx)(u.az,{padding:2,style:{userSelect:"none",overflow:"hidden"},children:(0,a.jsx)(u.EY,{size:1,textOverflow:"ellipsis",weight:"medium",children:l(lj(i)?"release.chip.published":"release.chip.global.drafts")})}):(0,a.jsx)(KO,{selectedPerspective:i}),r[0]=i,r[1]=l,r[2]=t):t=r[2],r[3]!==s||r[4]!==t?(n=(0,a.jsx)(KR,{text:s,children:t}),r[3]=s,r[4]=t,r[5]=n):n=r[5],n}let KL="--card-border-color",KF=g.I4.div(({$inRange:e,$last:t,$first:n,$isDefaultPerspective:r})=>(0,g.AH)`
3540    position: relative;
3541
3542    --indicator-left: ${18}px;
3543    --indicator-width: ${5}px;
3544    --indicator-color: var(${KL});
3545    --indicator-bottom: ${4}px;
3546
3547    --indicator-in-range-height: 16.5px;
3548
3549    ${e&&!t&&(0,g.AH)`
3550      &:after {
3551        content: '';
3552        display: block;
3553        position: absolute;
3554        left: var(--indicator-left);
3555        bottom: -var(--indicator-bottom);
3556        width: var(--indicator-width);
3557        height: ${r?"calc(var(--indicator-bottom) + 12px)":"var(--indicator-bottom)"};
3558        background-color: var(--card-border-color);
3559      }
3560    `}
3561
3562    ${e&&(0,g.AH)`
3563      > [data-ui='MenuItem'] {
3564        position: relative;
3565
3566        &:before,
3567        &:after {
3568          content: '';
3569          display: block;
3570          position: absolute;
3571          left: var(--indicator-left);
3572          width: var(--indicator-width);
3573          background-color: var(--card-border-color);
3574        }
3575
3576        &:before {
3577          top: 0;
3578          height: var(--indicator-in-range-height);
3579        }
3580
3581        &:after {
3582          top: var(--indicator-in-range-height);
3583          bottom: 0;
3584        }
3585      }
3586    `}
3587
3588    ${n&&(0,g.AH)`
3589      > [data-ui='MenuItem']:after {
3590        margin-top: -3px;
3591        border-top-left-radius: ${5}px;
3592        border-top-right-radius: ${5}px;
3593      }
3594      > [data-ui='MenuItem']:before {
3595        display: none;
3596      }
3597    `}
3598
3599    ${t&&(0,g.AH)`
3600      > [data-ui='MenuItem']:before {
3601        // dot diameter (5px) - 1.6px stroke divided by 2
3602        padding-bottom: 1.7px;
3603        border-bottom-left-radius: ${5}px;
3604        border-bottom-right-radius: ${5}px;
3605      }
3606      > [data-ui='MenuItem']:after {
3607        display: none;
3608      }
3609    `}
3610  `),KB=(0,g.I4)(u.az)(({$withinRange:e})=>(0,g.AH)`
3611    position: relative;
3612    // 4px padding + 33px release indicator width + 4px gap
3613    padding-left: 41px;
3614
3615    ${e&&(0,g.AH)`
3616      &:before {
3617        content: '';
3618        display: block;
3619        position: absolute;
3620        left: ${18}px;
3621        top: 0;
3622        bottom: -${4}px;
3623        width: ${5}px;
3624        background-color: var(${KL});
3625      }
3626    `}
3627  `),KN=(0,g.I4)(u.$n)(({$visible:e})=>(0,g.AH)`
3628    --card-fg-color: inherit;
3629    --card-icon-color: inherit;
3630
3631    background-color: inherit;
3632    opacity: ${+!e};
3633
3634    @media (hover: hover) {
3635      &:not([data-disabled='true']):hover {
3636        --card-fg-color: inherit;
3637        --card-icon-color: inherit;
3638      }
3639    }
3640
3641    [data-ui='MenuItem']:hover & {
3642      opacity: 1;
3643    }
3644  `),KY=()=>{let e,t,n=(0,o.c)(2);return n[0]===Symbol.for("react.memo_cache_sentinel")?(e={opacity:0},n[0]=e):e=n[0],n[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(u.az,{padding:3,children:(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.Zy4,{style:e})})}),n[1]=t):t=n[1],t};function KH(e,t){let{lastIndex:n}=e;if(0!==n){if(0===t)return"first";if(t===n)return"last";if(t>0&&t<n)return"within"}}let KZ=(0,s.forwardRef)((e,t)=>{let n,r,i,l,s,d,c,p,m,h,f,g,x,b,v,j,w,_,k,S,T,I=(0,o.c)(71),{release:E,rangePosition:$}=e,{document:A}=lE(),{drafts:D}=A,{enabled:z}=D,M=z?ln:lr,{selectedPerspective:P,selectedPerspectiveName:R}=oW(),O=l$(),{toggleExcludedPerspective:V,isPerspectiveExcluded:L}=function(){let e,t,n,r=(0,o.c)(9),{navigate:i}=(0,tq.rd)(),{excludedPerspectives:a}=oW();r[0]!==a||r[1]!==i?(e=e=>{let t=a||[];i({stickyParams:{excludedPerspectives:(t.includes(e)?t.filter(t=>t!==e):[...t,e]).toString()}})},r[0]=a,r[1]=i,r[2]=e):e=r[2];let l=e;r[3]!==a?(t=e=>!!a?.includes(e),r[3]=a,r[4]=t):t=r[4];let s=t;return r[5]!==a||r[6]!==s||r[7]!==l?(n={excludedPerspectives:a,toggleExcludedPerspective:l,isPerspectiveExcluded:s},r[5]=a,r[6]=s,r[7]=l,r[8]=n):n=r[8],n}();I[0]!==E?(n=lC(E)?o4(E._id):E,I[0]=E,I[1]=n):n=I[1];let F=n,B=E===M,N=R?F===R:B;I[2]!==L||I[3]!==F?(r=L(F),I[2]=L,I[3]=F,I[4]=r):r=I[4];let Y=r,{t:H}=iJ();e:{let e;if(lj(E)){let e;I[5]!==H?(e=H("release.navbar.published"),I[5]=H,I[6]=e):e=I[6],i=e;break e}if(lw(E)){let e;I[7]!==H?(e=H("release.navbar.drafts"),I[7]=H,I[8]=e):e=I[8],i=e;break e}I[9]!==E.metadata.title||I[10]!==H?(e=E.metadata.title||H("release.placeholder-untitled-release"),I[9]=E.metadata.title,I[10]=H,I[11]=e):e=I[11],i=e}let Z=i;I[12]!==F||I[13]!==V?(l=e=>{e.stopPropagation(),V(F)},I[12]=F,I[13]=V,I[14]=l):l=I[14];let U=l;I[15]!==F||I[16]!==O?(s=()=>O(F),I[15]=F,I[16]=O,I[17]=s):s=I[17];let q=s;t:{let e;if("published"===E){d=!1;break t}if(lw(E)){let e;I[18]!==P?(e=lC(P),I[18]=P,I[19]=e):e=I[19],d=e;break t}if(l_(E)){d=!1;break t}I[20]!==$?(e=$&&["first","within"].includes($),I[20]=$,I[21]=e):e=I[21],d=e}let J=d,W="first"===$,K="last"===$,G=!!$,X=`release-${F}`;I[22]!==e.menuItemProps||I[23]!==E?(c=e.menuItemProps?.({perspective:E}),I[22]=e.menuItemProps,I[23]=E,I[24]=c):c=I[24],I[25]===Symbol.for("react.memo_cache_sentinel")?(p={position:"relative",zIndex:1},I[25]=p):p=I[25],I[26]!==Y||I[27]!==E?(m=(0,a.jsx)(u.az,{flex:"none",style:p,children:(0,a.jsx)(u.EY,{size:1,children:Y?(0,a.jsx)(KY,{}):(0,a.jsx)(s_,{tone:uj(E)})})}),I[26]=Y,I[27]=E,I[28]=m):m=I[28];let Q=Y?.5:void 0;return I[29]!==Q?(h={opacity:Q},I[29]=Q,I[30]=h):h=I[30],I[31]!==Z?(f=(0,a.jsx)(u.EY,{size:1,weight:"medium",children:Z}),I[31]=Z,I[32]=f):f=I[32],I[33]!==E?(g=lC(E)&&"u">typeof E.error&&"active"===E.state&&(0,a.jsx)(u.EY,{size:1,"data-testid":"release-error-icon",children:(0,a.jsx)(c9,{icon:C.YZv,tone:"critical"})}),I[33]=E,I[34]=g):g=I[34],I[35]!==f||I[36]!==g?(x=(0,a.jsxs)(u.so,{gap:3,align:"center",children:[f,g]}),I[35]=f,I[36]=g,I[37]=x):x=I[37],I[38]!==E?(b=lC(E)&&"scheduled"===E.metadata.releaseType&&(E.publishAt||E.metadata.intendedPublishAt)&&(0,a.jsx)(u.EY,{muted:!0,size:1,children:lv(E)}),I[38]=E,I[39]=b):b=I[39],I[40]!==h||I[41]!==x||I[42]!==b?(v=(0,a.jsxs)(u.BJ,{flex:1,paddingY:2,paddingRight:2,space:2,style:h,children:[x,b]}),I[40]=h,I[41]=x,I[42]=b,I[43]=v):v=I[43],I[44]!==J||I[45]!==U||I[46]!==Y||I[47]!==H?(j=J&&(0,a.jsx)(y.m_,{portal:!0,content:H("release.layer.hide"),placement:"bottom",children:(0,a.jsx)(KN,{$visible:!Y,forwardedAs:"div",icon:Y?C.V$C:C.N5q,mode:"bleed",onClick:U,padding:2,"data-testid":"release-toggle-visibility"})}),I[44]=J,I[45]=U,I[46]=Y,I[47]=H,I[48]=j):j=I[48],I[49]!==E?(w=lC(E)&&l_(E)&&(0,a.jsx)(u.az,{padding:2,children:(0,a.jsx)(u.EY,{size:1,"data-testid":"release-lock-icon",children:(0,a.jsx)(C.XAi,{})})}),I[49]=E,I[50]=w):w=I[50],I[51]!==j||I[52]!==w?(_=(0,a.jsxs)(u.az,{flex:"none",children:[j,w]}
3644),I[51]=j,I[52]=w,I[53]=_):_=I[53],I[54]!==m||I[55]!==v||I[56]!==_?(k=(0,a.jsxs)(u.so,{align:"flex-start",gap:1,children:[m,v,_]}),I[54]=m,I[55]=v,I[56]=_,I[57]=k):k=I[57],I[58]!==N||I[59]!==q||I[60]!==X||I[61]!==c||I[62]!==k?(S=(0,a.jsx)(u.Dr,{onClick:q,padding:1,pressed:N,"data-testid":X,...c,children:k}),I[58]=N,I[59]=q,I[60]=X,I[61]=c,I[62]=k,I[63]=S):S=I[63],I[64]!==B||I[65]!==t||I[66]!==G||I[67]!==S||I[68]!==W||I[69]!==K?(T=(0,a.jsx)(KF,{$isDefaultPerspective:B,$first:W,$last:K,$inRange:G,ref:t,children:S}),I[64]=B,I[65]=t,I[66]=G,I[67]=S,I[68]=W,I[69]=K,I[70]=T):T=I[70],T});KZ.displayName="GlobalPerspectiveMenuItem";let KU={asap:"release.type.asap",scheduled:"release.type.scheduled",undecided:"release.type.undecided"};function Kq(e){let t,n,r,i,l,s,d,c,p=(0,o.c)(29),{releaseType:m,releases:h,range:f,currentGlobalBundleMenuItemRef:g,menuItemProps:C}=e,{t:y}=iJ(),{selectedReleaseId:x}=oW();p[0]!==g||p[1]!==x?(t=e=>x===e?g:void 0,p[0]=g,p[1]=x,p[2]=t):t=p[2];let b=t;if(0===h.length)return null;let{lastIndex:v,offsets:j}=f,w=j[m],_=w>0&&v>=w,k="asap"===m?1:4;p[3]===Symbol.for("react.memo_cache_sentinel")?(n={textTransform:"uppercase"},p[3]=n):n=p[3];let S=KU[m];if(p[4]!==y||p[5]!==S?(r=y(S),p[4]=y,p[5]=S,p[6]=r):r=p[6],p[7]!==r?(i=(0,a.jsx)(u.JU,{muted:!0,style:n,size:1,children:r}),p[7]=r,p[8]=i):i=p[8],p[9]!==_||p[10]!==k||p[11]!==i?(l=(0,a.jsx)(KB,{$withinRange:_,paddingRight:2,paddingTop:k,paddingBottom:2,children:i}),p[9]=_,p[10]=k,p[11]=i,p[12]=l):l=p[12],p[13]!==b||p[14]!==C||p[15]!==f||p[16]!==w||p[17]!==h){let e;p[19]!==b||p[20]!==C||p[21]!==f||p[22]!==w?(e=(e,t)=>(0,a.jsx)(KZ,{release:e,ref:b(o4(e._id)),rangePosition:KH(f,w+t),menuItemProps:C},e._id),p[19]=b,p[20]=C,p[21]=f,p[22]=w,p[23]=e):e=p[23],s=h.map(e),p[13]=b,p[14]=C,p[15]=f,p[16]=w,p[17]=h,p[18]=s}else s=p[18];return p[24]!==s?(d=(0,a.jsx)(u.so,{direction:"column",gap:1,children:s}),p[24]=s,p[25]=d):d=p[25],p[26]!==d||p[27]!==l?(c=(0,a.jsxs)(a.Fragment,{children:[l,d]}),p[26]=d,p[27]=l,p[28]=c):c=p[28],c}let KJ=["asap","scheduled","undecided"],KW=(0,g.I4)(u.az)`
3645  overflow: auto;
3646  max-height: 75vh;
3647`,KK=(0,g.I4)(u.az)(({$reducePadding:e,$removePadding:t})=>(0,g.AH)`
3648    position: sticky;
3649    top: 0;
3650    background-color: var(--card-bg-color);
3651    z-index: 10;
3652    padding-bottom: ${t?"0px":e?"4px":"16px"};
3653  `);function KG({areReleasesEnabled:e,setScrollContainer:t,onScroll:n,isRangeVisible:r,selectedReleaseId:i,setCreateBundleDialogOpen:o,scrollElementRef:l,menuItemProps:d}){let{loading:c,data:p}=lp(),{selectedPerspectiveName:m}=oW(),{document:{drafts:{enabled:h}}}=lE(),f=(0,s.useCallback)(()=>o(!0),[o]),g=(0,s.useMemo)(()=>KJ.reduce((e,t)=>({...e,[t]:p.filter(({metadata:e})=>e.releaseType===t)}),{}),[p]),C=(0,s.useMemo)(()=>{let e=+(typeof m>"u"),t=[lr,h?ln:[]].flat(),{asap:n,scheduled:r}=g,a={asap:t.length,scheduled:t.length+n.length,undecided:t.length+n.length+r.length};return KJ.forEach(t=>{let n=g[t],r=a[t];n.forEach((t,n)=>{i===o4(t._id)&&(e=r+n)})}),{lastIndex:e,offsets:a}},[h,m,i,g]);return c?(0,a.jsx)(u.so,{padding:4,justify:"center","data-testid":"spinner",children:(0,a.jsx)(u.y$,{muted:!0})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(KW,{ref:t,onScroll:n,children:[(0,a.jsxs)(KK,{$reducePadding:!p.length||!e,$removePadding:!e,children:[(0,a.jsx)(KZ,{rangePosition:r?KH(C,0):void 0,release:"published",menuItemProps:d}),h&&(0,a.jsx)(KZ,{rangePosition:r?KH(C,1):void 0,release:ln,menuItemProps:d})]}),e&&(0,a.jsx)(a.Fragment,{children:KJ.map(e=>(0,a.jsx)(Kq,{releaseType:e,releases:g[e],range:C,currentGlobalBundleMenuItemRef:l,menuItemProps:d},e))})]}),e&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.Nj,{}),(0,a.jsx)(yO,{onCreateRelease:f})]})]})}let KX=(0,g.I4)(u.W1)`
3654  min-width: 200px;
3655  max-width: 320px;
3656`,KQ=(0,g.I4)(u.$n)`
3657  ${K$}
3658`;function K1(e){let t,n,r,i,l,d,c,u=(0,o.c)(19),{selectedReleaseId:p,areReleasesEnabled:m,menuItemProps:h}
3658=e,f=void 0===m||m,[g,x]=(0,s.useState)(!1),b=(0,s.useRef)(null),{isRangeVisible:v,onScroll:j,resetRangeVisibility:w,setScrollContainer:_,scrollElementRef:k}=(()=>{let e,t,n,r,i=(0,o.c)(5),a=(0,s.useRef)(null),l=(0,s.useRef)(null),[d,c]=(0,s.useState)(!0);i[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>c(function(e,t){if(!e||!t)return!0;let n=e.getBoundingClientRect();return t.getBoundingClientRect().top>=n.top+65}(a.current,l.current)),i[0]=e):e=i[0];let u=e;i[1]===Symbol.for("react.memo_cache_sentinel")?(t=e=>{a.current=e},i[1]=t):t=i[1];let p=t;i[2]===Symbol.for("react.memo_cache_sentinel")?(n=()=>c(!0),i[2]=n):n=i[2];let m=n;return i[3]!==d?(r={resetRangeVisibility:m,onScroll:u,isRangeVisible:d,setScrollContainer:p,scrollElementRef:l},i[3]=d,i[4]=r):r=i[4],r})();u[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{x(!1)},u[0]=t):t=u[0];let S=t;return u[1]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(KQ,{"data-testid":"global-perspective-menu-button",iconRight:C.D3D,mode:"bleed",padding:2,radius:"full"}),u[1]=n):n=u[1],u[2]!==f||u[3]!==v||u[4]!==h||u[5]!==j||u[6]!==k||u[7]!==
3658p||u[8]!==_?(r=(0,a.jsx)(KX,{"data-testid":"release-menu",ref:b,children:(0,a.jsx)(KG,{areReleasesEnabled:f,setScrollContainer:_,onScroll:j,isRangeVisible:v,scrollElementRef:k,selectedReleaseId:p,setCreateBundleDialogOpen:x,menuItemProps:h})}),u[2]=f,u[3]=v,u[4]=h,u[5]=j,u[6]=k,u[7]=p,u[8]=_,u[9]=r):r=u[9],u[10]===Symbol.for("react.memo_cache_sentinel")?(i={constrainSize:!0,fallbackPlacements:["bottom-end"],placement:"bottom-end",portal:!0,tone:"default",zOffset:3e3},u[10]=i):i=u[10],u[11]!==w||u[12]!==r?(l=(0,a.jsx)(y.IU,{button:n,id:"releases-menu",onClose:w,menu:r,popover:i}),u[11]=w,u[12]=r,u[13]=l):l=u[13],u[14]!==g?(d=g&&(0,a.jsx)(CA,{onCancel:S,onSubmit:S,origin:"structure"}),u[14]=g,u[15]=d):d=u[15],u[16]!==l||u[17]!==d?(c=(0,a.jsxs)(a.Fragment,{children:[l,d]}),u[16]=l,u[17]=d,u[18]=c):c=u[18],c}let K2=(0,g.I4)(u.Zp)`
3659  position: relative;
3660  display: flex;
3661  &:not([hidden]) {
3662    display: flex;
3663  }
3664  align-items: center;
3665  gap: 2px;
3666  padding: 2px;
3667  margin: -3px 0;
3668
3669  // The children in button is rendered inside a span, we need to absolutely position the dot for the error.
3670  span:has(> [data-ui='error-status-icon']) {
3671    position: absolute;
3672    top: 6px;
3673    right: 6px;
3674    padding: 0;
3675  }
3676
3677  a:hover,
3678  button:hover {
3679    position: relative;
3680    z-index: 2;
3681  }
3682`,K5=e=>{let t,n,r,i,l=(0,o.c)(13),{withReleasesToolButton:s,menuItemProps:d}=e,c=yR(),{selectedPerspective:u,selectedReleaseId:p}=oW();return l[0]!==c||l[1]!==s?(t=s&&c&&(0,a.jsx)(Kz,{}),l[0]=c,l[1]=s,l[2]=t):t=l[2],l[3]!==u?(n=(0,a.jsx)(KV,{selectedPerspective:u}),l[3]=u,l[4]=n):n=l[4],l[5]!==d||l[6]!==c||l[7]!==p?(r=(0,a.jsx)(K1,{selectedReleaseId:p,areReleasesEnabled:c,menuItemProps:d}),l[5]=d,l[6]=c,l[7]=p,l[8]=r):r=l[8],l[9]!==t||l[10]!==n||l[11]!==r?(i=(0,a.jsxs)(K2,{flex:"none",tone:"inherit",radius:"full","data-ui":"ReleasesNav",border:!0,children:[t,n,r]}),l[9]=t,l[10]=n,l[11]=r,l[12]=i):i=l[12],i};function K0(e){let t,n=(0,o.c)(3),{activeTool:r}=e,i=r.component;return n[0]!==i||n[1]!==r?(t=(0,a.jsx)(i,{tool:r}),n[0]=i,n[1]=r,n[2]=t):t=n[2],t}let K7=(0,y.iB)("http1-performance-issues");function K3(){let e,t,n,r,i=(0,o.c)(4);return i[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(u.az,{children:(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.sAQ,{})})}),i[0]=e):e=i[0],i[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(u.EY,{as:"h1",size:1,weight:"medium",children:"No configured tools"}),n=(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:"Please configure a tool in your Studio configuration."}),i[1]=t,i[2]=n):(t=i[1],n=i[2]),i[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,a.jsx)(u.Zp,{height:"fill",children:(0,a.jsx)(u.so,{align:"center",height:"fill",justify:"center",padding:4,sizing:"border",children:(0,a.jsx)(u.mc,{width:0,children:(0,a.jsx)(u.Zp,{padding:4,radius:2,shadow:1,tone:"caution",children:(0,a.jsxs)(u.so,{children:[e,(0,a.jsxs)(u.BJ,{flex:1,marginLeft:3,space:3,children:[t,n,(0,a.jsx)(u.EY,{as:"p",muted:!0,size:1,children:(0,a.jsx)("a",{href:"https://www.sanity.io/docs/studio-tools",rel:"noreferrer",target:"_blank",children:"Learn how to add a tool →"})})]})]})})})})}),i[3]=r):r=i[3],r}function K8(e){let t,n,r=(0,o.c)(3),{reason:i}=e,l=void 0===i?"Redirecting…":i;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(u.az,{children:(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.yBO,{})})}),r[0]=t):t=r[0],r[1]!==l?(n=(0,a.jsx)(u.Zp,{height:"fill",children:(0,a.jsx)(u.so,{align:"center",height:"fill",justify:"center",padding:4,sizing:"border",children:(0,a.jsx)(u.mc,{width:0,children:(0,a.jsx)(u.Zp,{padding:4,radius:2,shadow:1,tone:"primary",children:(0,a.jsxs)(u.so,{children:[t,(0,a.jsx)(u.BJ,{flex:1,marginLeft:3,space:3,children:(0,a.jsx)(u.EY,{as:"h1",size:1,weight:"bold",children:l})})]})})})})}),r[1]=l,r[2]=n):n=r[2],n}function K4(e){let t,n,r=(0,o.c)(3),{toolName:i}=e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(u.az,{children:(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.sAQ,{})})}),r[0]=t):t=r[0],r[1]!==i?(n=(0,a.jsx)(u.Zp,{height:"fill",children:(0,a.jsx)(u.so,{align:"center",height:"fill",justify:"center",padding:4,sizing:"border",children:(0,a.jsx)(u.mc,{width:0,children:(0,a.jsx)(u.Zp,{padding:4,radius:2,shadow:1,tone:"caution",children:(0,a.jsxs)(u.so,{children:[t,(0,a.jsx)(u.BJ,{flex:1,marginLeft:3,space:3,children:(0,a.jsxs)(u.EY,{as:"h1",size:1,weight:"medium",children:["Tool not found: ",(0,a.jsx)("code",{children:i})]})})]})})})})}),r[1]=i,r[2]=n):n=r[2],n}let K6=()=>!(typeof document>"u")&&"querySelectorAll"in document&&Array.from(document.querySelectorAll('script[type="importmap"]')).some(e=>!!e.textContent&&"sanity"in(JSON.parse(e.textContent).imports||{}));function K9(e){let t=[],n,r=(0,nW._)(e),i=async e=>r.send(e),a=async()=>{await Promise.all(t.map(i)).catch(e=>{console.error("Failed to send buffered events from transport: ",e)})};return{flush:async()=>r.flush(),send:async e=>n?i(e):(typeof n>"u"&&t.push(e),{}),setConsent:async e=>{n=e,e&&await a(),t=[]}}}let Ge="https://[email protected]/4507342122123264",Gt=!("__sanityErrorChannel"in iS),Gn=r9&&!!localStorage.getItem("SANITY_DEBUG_ERROR_REPORTING"),Gr="u">typeof window,Gi={dsn:Ge,release:re.s,environment:ar?"development":"production",debug:Gn,enabled:Gr&&(!ar||Gn),transport:K9},Ga=[(0,nK.D)(),(0,nG.Z)(),(0,nX.G)({eventTarget:!1}),(0,nQ.F)({console:!1}),(0,n1.L)({onerror:!0,onunhandledrejection:!0}
3682),(0,n2.p)(),(0,n5.s)(),function(){let e=[];return{name:"SanityDedupe",processEvent(t){if(t.type)return t;try{if(function(e,t){for(let n of t){let t=Gd(e),r=Gd(n);if(t&&r&&t!==r)continue;let i=Math.floor(e.timestamp||0);if(300>Math.abs(i-Math.floor(n.timestamp||0)))return!0}return!1}(t,e))return Gn&&console.warn("[sanity/sentry] Dropping error from being reported because it is a duplicate"),null}catch{}return e.length>10&&e.shift(),e.push(t),t}}}(),(0,n0.M)()],Go=Object.prototype.toString;function Gl(e){switch(Go.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:var t=e,n=Error;try{return t instanceof n}catch{return!1}}}function Gs(e){return function(e){for(let t of e.exception?.values||[])t.mechanism&&(t.mechanism.handled=!1)}(e),e}function Gd(e){if(e.message)return e.message;if(e.exception){for(let t of e.exception.values||[])if(t.value)return t.value}}let Gc=function(){let e,t=[];function n(r,i={}){if(!e)return t.push({error:r,options:i}),null;let{reactErrorInfo:a={},errorBoundary:o}=i,{componentStack:l}=a,s={};l&&(s.react={componentStack:l});let d={handled:"no"};o&&(d.errorBoundary=o);let c=null;return(0,n3.v4)(()=>{if(l&&Gl(r)){let e=Error(r.message);e.name=`${o||"ErrorBoundary"} ${r.name}`,e.stack=l,function(e,t){let n=new WeakMap;!function e(t,r){if(!n.has(t)){if(Gl(t.cause)){n.set(t,!0),e(t.cause,r);return}t.cause=r}}(e,t)}(r,e)}c=(0,n7.Cp)(r,{mechanism:{handled:!1},captureContext:{contexts:s,tags:d}})}),c?{eventId:c}:null}function r(e){return!!e&&"setConsent"in e&&"function"==typeof e.setConsent}return{initialize:function(){(function(){if(e||!Gn&&!K6()||!Gn&&Gt)return;let t=(0,n7.Dp)(),n=t&&(0,n3.KU)()?.getOptions().dsn===Ge;if(t&&!n){e=(0,n3.KU)(),(0,n3.o5)();return}if(n){e=new n8.y({...Gi,stackParser:n4.lG,integrations:Ga,beforeSend:Gs,transport:K9}),new n6.H().setClient(e),e.init();return}(0,n9.T)({...Gi,defaultIntegrations:!1,integrations:Ga,beforeSend:Gs}
3682),e=(0,n3.KU)(),(0,n3.o5)()})(),e&&t.length>0&&(t.forEach(({error:e,options:t})=>n(e,t)),t.length=0)},reportError:n,enable:function(){let t=e?.getTransport();r(t)&&t.setConsent(!0)},disable:function(){let t=e?.getTransport();r(t)&&t.setConsent(!1)}}}(),Gu=["Failed to fetch dynamically imported module:","Importing a module script failed.","error loading dynamically imported module"];function Gp(e){return"TypeError"===e.name&&Gu.some(t=>e.message.toLowerCase().startsWith(t.toLowerCase()))}let Gm=ia(e=>(0,eo.z)(e.map(e=>e.auth.state.pipe((0,E.T)(t=>[e.name,t])))).pipe((0,E.T)(e=>Object.fromEntries(e)))),Gh={"logged-in":"","logged-out":"Signed out","no-access":""},Gf=g.I4.div`
3683  width: ${e=>"small"===e.$size?"25px":"41px"};
3684  height: ${e=>"small"===e.$size?"25px":"41px"};
3685
3686  svg {
3687    width: 100%;
3688    height: 100%;
3689  }
3690`,Gg=e=>{let t,n,r,i=(0,o.c)(5),{icon:l,size:s}=e,d=void 0===s?"small":s;return i[0]!==l?(n=GC(l),i[0]=l,i[1]=n):n=i[1],t=n,i[2]!==t||i[3]!==d?(r=(0,a.jsx)(Gf,{$size:d,children:t}),i[2]=t,i[3]=d,i[4]=r):r=i[4],r},GC=e=>(0,eW.isValidElementType)(e)?(0,a.jsx)(e,{}):(0,s.isValidElement)(e)?e:void 0;function Gy(e){let t,n,r,i,l,s,d,c,p,m=(0,o.c)(21),{state:h,subtitle:f,selected:g,title:y,icon:x,iconRight:b}=e;return m[0]!==b?(n=GC(b),m[0]=b,m[1]=n):n=m[1],t=n,m[2]!==x?(r=(0,a.jsx)(Gg,{icon:x,size:"small"}),m[2]=x,m[3]=r):r=m[3],m[4]!==y?(i=(0,a.jsx)(u.EY,{size:1,textOverflow:"ellipsis",weight:"medium",children:y}),m[4]=y,m[5]=i):i=m[5],m[6]!==f?(l=f&&(0,a.jsx)(u.EY,{muted:!0,size:1,textOverflow:"ellipsis",children:f}),m[6]=f,m[7]=l):l=m[7],m[8]!==i||m[9]!==l?(s=(0,a.jsxs)(u.BJ,{flex:1,space:2,children:[i,l]}),m[8]=i,m[9]=l,m[10]=s):s=m[10],m[11]!==h?(d=h&&Gh[h]&&(0,a.jsx)(u.az,{paddingLeft:1,children:(0,a.jsx)(u.EY,{size:1,muted:!0,textOverflow:"ellipsis",children:Gh[h]})}),m[11]=h,m[12]=d):d=m[12],m[13]!==t||m[14]!==g?(c=(g||t)&&(0,a.jsxs)(u.so,{align:"center",gap:4,paddingLeft:3,paddingRight:2,children:[g&&(0,a.jsx)(u.EY,{children:(0,a.jsx)(C.Nrt,{})}),t&&(0,a.jsx)(u.EY,{muted:!0,children:t})]}),m[13]=t,m[14]=g,m[15]=c):c=m[15],m[16]!==r||m[17]!==s||m[18]!==d||m[19]!==c?(p=(0,a.jsxs)(u.so,{align:"center",flex:"none",gap:3,children:[r,s,d,c]}),m[16]=r,m[17]=s,m[18]=d,m[19]=c,m[20]=p):p=m[20],p}let Gx=[{url:"https://snty.link/community",i18nKey:"workspaces.community-title",title:"Community"},{url:"https://www.sanity.io/docs",i18nKey:"workspaces.docs-title",title:"Docs"},{url:"https://www.sanity.io/legal/privacy",i18nKey:"workspaces.privacy-title",title:"Privacy"},{url:"https://www.sanity.io",i18nKey:"workspaces.sanity-io-title",title:"sanity.io"}],Gb=(0,g.I4)(u.EY)`
3691  a {
3692    color: inherit;
3693  }
3694`;function Gv(e){let t,n,r,i,l,s,d,c,p,m=(0,o.c)(23),{children:h,footer:f,header:g}=e,C=(0,u.Xy)();m[0]!==g?(t="object"==typeof g&&(0,a.jsx)(u.az,{children:g}),m[0]=g,m[1]=t):t=m[1],m[2]!==g?(n="string"==typeof g&&(0,a.jsx)(u.az,{paddingY:4,children:(0,a.jsx)(u.DZ,{align:"center",size:1,children:g})}),m[2]=g,m[3]=n):n=m[3];let y=!!g,x=!!f;return m[4]!==h||m[5]!==y||m[6]!==x?(r=(0,a.jsx)(u.az,{paddingX:1,children:(0,a.jsx)(u.Zp,{borderTop:y,borderBottom:x,children:h})}),m[4]=h,m[5]=y,m[6]=x,m[7]=r):r=m[7],m[8]!==f?(i=f&&(0,a.jsx)(u.az,{children:f}),m[8]=f,m[9]=i):i=m[9],m[10]!==t||m[11]!==n||m[12]!==r||m[13]!==i?(l=(0,a.jsx)(u.Zp,{border:!0,radius:3,overflow:"auto",children:(0,a.jsxs)(u.BJ,{children:[t,n,r,i]})}),m[10]=t,m[11]=n,m[12]=r,m[13]=i,m[14]=l):l=m[14],m[15]!==C?(s=(0,a.jsx)(u.EY,{size:3,children:(0,a.jsx)(ri.U5,{dark:C})}),m[15]=C,m[16]=s):s=m[16],m[17]===Symbol.for("react.memo_cache_sentinel")?(d=(0,a.jsx)(u.so,{align:"center",gap:2,children:Gx.map(Gj)}),m[17]=d):d=m[17],m[18]!==s?(c=(0,a.jsxs)(u.so,{direction:"column",gap:4,justify:"center",align:"center",paddingBottom:4,children:[s,d]}),m[18]=s,m[19]=c):c=m[19],m[20]!==l||m[21]!==c?(p=(0,a.jsxs)(u.BJ,{space:6,children:[l,c]}),m[20]=l,m[21]=c,m[22]=p):p=m[22],p}function Gj(e,t){return(0,a.jsxs)(s.Fragment,{children:[(0,a.jsx)(Gb,{muted:!0,size:1,children:(0,a.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",children:e.title})}),t<Gx.length-1&&(0,a.jsx)(u.EY,{size:1,muted:!0,children:"•"})]},e.title)}function Gw(){let e,t,n,r,i,l,d,c,p=(0,o.c)(46),m=rW(),{activeWorkspace:h,setA
3694ctiveWorkspace:f}=FS(),[g]=Gm(m),[x,b]=(0,s.useState)(h?.name||null);p[0]!==x||p[1]!==m?(e=1===m.length?m[0]:m.find(e=>e.name===x),p[0]=x,p[1]=m,p[2]=e):e=p[2];let v=e,j=v?.auth?.LoginComponent;p[3]===Symbol.for("react.memo_cache_sentinel")?(t=()=>b(null),p[3]=t):t=p[3];let w=t,{t:_}=iJ();if(!g){let e;return p[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(r5,{showText:!0}),p[4]=e):e=p[4],e}if(j&&v){let e,t,n,r,i,o;p[5]!==_||p[6]!==m.length?(e=m.length>1&&(0,a.jsx)(u.so,{children:(0,a.jsx)(y.$n,{icon:C.A60,mode:"bleed",onClick:w,text:_("workspaces.action.choose-another-workspace")})}),p[5]=_,p[6]=m.length,p[7]=e):e=p[7];let l=v?.subtitle;return p[8]!==v.icon||p[9]!==v.title||p[10]!==l?(t=(0,a.jsx)(u.az,{padding:3,children:(0,a.jsx)(Gy,{icon:v.icon,title:v.title,subtitle:l})}),p[8]=v.icon,p[9]=v.title,p[10]=l,p[11]=t):t=p[11],p[12]!==v.basePath?(n=window.location.pathname.startsWith(v.basePath)?`${window.location.pathname}${window.location.search}`:v.basePath,p[12]=v.basePath,p[13]=n):n=p[13],p[14]!==j||p[15]!==v.projectId||p[16]!==x||p[17]!==n?(r=(0,a.jsx)(u.BJ,{padding:2,paddingBottom:3,paddingTop:4,children:(0,a.jsx)(j,{projectId:v.projectId,redirectPath:n},x)}),p[14]=j,p[15]=v.projectId,p[16]=x,p[17]=n,p[18]=r):r=p[18],p[19]!==t||p[20]!==r?(i=(0,a.jsx)(Gv,{header:t,children:r}),p[19]=t,p[20]=r,p[21]=i):i=p[21],p[22]!==e||p[23]!==i?(o=(0,a.jsxs)(u.BJ,{space:2,children:[e,i]}),p[22]=e,p[23]=i,p[24]=o):o=p[24],o}if(p[25]!==_?(n=_("workspaces.choose-your-workspace-label"),p[25]=_,p[26]=n):n=p[26],p[27]!==_?(r=_("workspaces.action.add-workspace"),p[27]=_,p[28]=r):r=p[28],p[29]!==r?(i=(0,a.jsx)(u.BJ,{padding:1,children:(0,a.jsx)(y.$n,{as:"a",href:"https://www.sanity.io/docs/workspaces",icon:C.REV,mode:"bleed",rel:"noopener noreferrer",size:"large",target:"__blank",text:r})}),p[29]=r,p[30]=i):i=p[30],p[31]!==h||p[32]!==g||p[33]!==f||p[34]!==m){let e;p[36]!==h||p[37]!==g||p[38]!==f?(e=e=>{let t=g[e.name].authenticated?"logged-in":e.auth.LoginComponent?"logged-out":"no-access";return(0,a.jsx)(u.Zp,{as:"button",radius:2,padding:2,onClick:()=>{"logged-in"===t&&e.name!==h.name&&f(e.name),"logged-out"===t&&b(e.name)},children:(0,a.jsx)(Gy,{icon:e?.icon,iconRight:C.vKP,state:t,subtitle:e?.subtitle,title:e?.title||e.name})},e.name)},p[36]=h,p[37]=g,p[38]=f,p[39]=e):e=p[39],l=m.map(e),p[31]=h,p[32]=g,p[33]=f,p[34]=m,p[35]=l}else l=p[35];return p[40]!==l?(d=(0,a.jsx)(u.BJ,{space:1,paddingX:1,paddingY:2,children:l}),p[40]=l,p[41]=d):d=p[41],p[42]!==n||p[43]!==i||p[44]!==d?(c=(0,a.jsx)(Gv,{header:n,footer:i,children:d}),p[42]=n,p[43]=i,p[44]=d,p[45]=c):c=p[45],c}let G_=(0,g.I4)(u.W1)`
3695  max-width: 350px;
3696  min-width: 250px;
3697`,Gk={constrainSize:!0,fallbackPlacements:["bottom-end","bottom"],placement:"bottom-end",tone:"default"};function GS(){let e,t,n,r,i,l,s,d,c=(0,o.c)(22),p=rW(),{activeWorkspace:m}=FS(),[h]=Gm(p),{t:f}=iJ();if(!(p.length>1))return null;let g=!h;return c[0]!==f?(e=f("workspaces.select-workspace-tooltip"),c[0]=f,c[1]=e):e=c[1],c[2]!==m.title?(t=(0,a.jsx)(u.az,{children:(0,a.jsx)(u.EY,{size:1,textOverflow:"ellipsis",weight:"medium",children:m.title})}),c[2]=m.title,c[3]=t):t=c[3],c[4]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(u.EY,{size:1,children:(0,a.jsx)(C.D3D,{})}),c[4]=n):n=c[4],c[5]!==t?(r=(0,a.jsxs)(u.so,{align:"center",gap:2,children:[t,n]}),c[5]=t,c[6]=r):r=c[6],c[7]!==g||c[8]!==r?(i=(0,a.jsx)(u.$n,{disabled:g,mode:"bleed",padding:2,width:"fill",children:r}),c[7]=g,c[8]=r,c[9]=i):i=c[9],c[10]!==g||c[11]!==e||c[12]!==i?(l=(0,a.jsx)(u.so,{children:(0,a.jsx)(y.m_,{content:e,disabled:g,portal:!0,children:i})}),c[10]=g,c[11]=e,c[12]=i,c[13]=l):l=c[13],c[14]!==m.name||c[15]!==h||c[16]!==g||c[17]!==p?(s=!g&&h?(0,a.jsx)(G_,{children:p.map(e=>{let t=h[e.name].authenticated?"logged-in":e.auth.LoginComponent?"logged-out":"no-access",n=e.name===m.name;return(0,a.jsx)(y.Dr,{as:"a",href:e.basePath,badgeText:Gh[t],iconRight:n?C.Nrt:void 0,pressed:n,preview:(0,a.jsx)(Gg,{icon:e.icon,size:"small"}),selected:n,__unstable_subtitle:e.subtitle,__unstable_space:1,text:e?.title||e.name},e.name)})}):void 0,c[14]=m.name,c[15]=h,c[16]=g,c[17]=p,c[18]=s):s=c[18],c[19]!==l||c[20]!==s?(d=(0,a.jsx)(y.IU,{button:l,id:"workspace-menu",menu:s,popover:Gk}),c[19]=l,c[20]=s,c[21]=d):d=c[21],d}function GT(){let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(u.Zp,{height:"fill",overflow:"auto",paddingX:4,children:(0,a.jsx)(u.so,{height:"fill",direction:"column",align:"center",justify:"center",paddingTop:4,children:(0,a.jsx)(u.mc,{width:0,children:(0,a.jsx)(Gw,{})})})}),t[0]=e):e=t[0],e}function GI(){let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(a.Fragment,{children:"TODO: implement config errors screen"}),t[0]=e):e=t[0],e}let GE=g.I4.label`
3698  clip: rect(0 0 0 0);
3699  clip-path: inset(50%);
3700  height: 1px;
3701  overflow: hidden;
3702  overflow: clip;
3703  position: absolute;
3704  white-space: nowrap;
3705  width: 1px;
3706`;function G$(e){let t,n,r,i,l,d,c=(0,o.c)(8),{projectId:p}=e,m=window.location.origin,h=`https://sanity.io/manage/project/${p}/api`;if(c[0]!==h){let e=new URL(h);e.searchParams.set("cors","add"),e.searchParams.set("origin",m),e.searchParams.set("credentials",""),n=e.toString(),c[0]=h,c[1]=n}else n=c[1];return t=n,c[2]===Symbol.for("react.memo_cache_sentinel")?(r=[],c[2]=r):r=c[2],(0,s.useEffect)(GA,r),c[3]!==t?(i={confirmButton:{text:"Continue",iconRight:C.ZPM,as:"a",href:t,target:"_blank",rel:"noopener noreferrer",tone
3706:"primary"}},c[3]=t,c[4]=i):i=c[4],c[5]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsxs)(u.BJ,{space:4,children:[(0,a.jsxs)(u.EY,{children:["To access your content, you need to ",(0,a.jsx)("b",{children:"add the following URL as a CORS origin"})," to your Sanity project."]}),(0,a.jsx)(GE,{"aria-hidden":"true",children:"CORS URL to be added"}),(0,a.jsx)(u.ks,{value:m,readOnly:!0})]}),c[5]=l):l=c[5],c[6]!==i?(d=(0,a.jsx)(u.Zp,{height:"fill",children:(0,a.jsx)(y.lG,{id:"cors-error-dialog",header:"Before you continue...",width:1,footer:i,children:l})}),c[6]=i,c[7]=d):d=c[7],d}function GA(){return window.addEventListener("focus",GD),()=>{window.removeEventListener("focus",GD)}}function GD(){window.location.reload()}function Gz(){let e,t,n,r,i,l,d,c,p=(0,o.c)(18),[m,h]=(0,s.useState)(null),[f,g]=(0,s.useState)(null);if(f)throw f;let{activeWorkspace:C}=FS();p[0]!==C.auth?(e=()=>{C.auth.logout?.()},p[0]=C.auth,p[1]=e):e=p[1];let x=e;p[2]!==C.auth.state?(t=()=>{let e=C.auth.state.subscribe({next:e=>{let{currentUser:t}=e;h(t)},error:g});return()=>{e.unsubscribe()}},p[2]=C.auth.state,p[3]=t):t=p[3],p[4]!==C?(n=[C],p[4]=C,p[5]=n):n=p[5],(0,s.useEffect)(t,n);let b=oh(m?.provider),v=b?` through ${b}`:"";p[6]!==x?(r={confirmButton:{text:"Sign out",onClick:x,tone:"default"}},p[6]=x,p[7]=r):r=p[7],p[8]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsx)(u.EY,{children:"You are not authorized to access this studio. Please contact someone with access to invite you to this project."}),p[8]=i):i=p[8];let j=m?.name,w=m?.email;return p[9]!==j||p[10]!==w?(l=(0,a.jsxs)("strong",{children:[j," (",w,")"]}),p[9]=j,p[10]=w,p[11]=l):l=p[11],p[12]!==v||p[13]!==l?(d=(0,a.jsxs)(u.BJ,{space:4,children:[i,(0,a.jsxs)(u.EY,{children:["If you think this is an error, verify that you are signed in with the correct account. You are currently signed in as"," ",l,v,"."]})]}),p[12]=v,p[13]=l,p[14]=d):d=p[14],p[15]!==r||p[16]!==d?(c=(0,a.jsx)(u.Zp,{height:"fill",children:(0,a.jsx)(y.lG,{id:"not-authorized-dialog",header:"Not authorized",width:1,footer:r,children:d})}),p[15]=r,p[16]=d,p[17]=c):c=p[17],c}function GM(e){let t,n,r=(0,o.c)(3);return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(u.DZ,{as:"h1",children:"Workspace not found"}),r[0]=t):t=r[0],r[1]!==e.onNavigateToDefaultWorkspace?(n=(0,a.jsx)(u.Zp,{height:"fill",sizing:"border",tone:"caution",display:"flex",children:(0,a.jsx)(u.so,{direction:"row",justify:"center",flex:1,align:"center",children:(0,a.jsxs)(u.BJ,{space:4,children:[t,(0,a.jsx)(u.cV,{children:(0,a.jsx)(y.$n,{text:"Go to default workspace",onClick:e.onNavigateToDefaultWorkspace,mode:"ghost"})})]})})}),r[1]=e.onNavigateToDefaultWorkspace,r[2]=n):n=r[2],n}function GP(){let e,t,n,r,i,l,d,c,m,h,f,g,C,x,b=(0,o.c)(50),[v,j]=(0,s.useState)(null),[w,_]=(0,s.useState)(),[k,S]=(0,s.useState)(),T=(0,p.dj)(),[I,E]=(0,s.useState)(null),[$,A]=(0,s.useState)(),[D,z]=(0,s.useState)(!0),[M,P]=(0,s.useState)(!1),[R,O]=(0,s.useState)(!1),[V,L]=(0,s.useState)(!1),[F,B]=(0,s.useState)(!1),[Y,H]=(0,s.useState)(!1),[Z,U]=(0,s.useState)(),[q,J]=(0,s.useState)(0),{activeWorkspace:W}=FS();b[0]!==W.auth?(e=()=>{W.auth.logout?.()},b[0]=W.auth,b[1]=e):e=b[1];let K=e;b[2]!==W.auth.state?(t=()=>{let e=W.auth.state.subscribe({next:e=>{let{client:t,currentUser:n}=e;S(t.config().projectId),_(t.withConfig({apiVersion:"2024-07-01"})),j(n)},error:E});return()=>{e.unsubscribe()}},b[2]=W.auth.state,b[3]=t):t=b[3],b[4]!==W?(n=[W],b[4]=W,b[5]=n):n=b[5],(0,s.useEffect)(t,n),b[6]!==w||b[7]!==k?(r=()=>{if(!w||!k)return GL;let e=w.observable.request({url:"/access/requests/me",tag:"request-access"}).pipe((0,N.j)(()=>z(!1))).subscribe({next:e=>{if(!e||!e.length)return;let t=e.filter(e=>e.resourceId===k),n=t.find(GV);return n&&(0,tz.A)((0,tB.A)(new Date(n.createdAt),2),new Date)?void H(!0):t.find(GO)?void O(!0):void(t.find(GR)&&L(!0))},error:e=>{console.error(e),E(!0)}});return()=>{e.unsubscribe()}},i=[w,k],b[6]=w,b[7]=k,b[8]=r,b[9]=i):(r=b[8],i=b[9]),(0,s.useEffect)(r,i),b[10]!==w||b[11]!==Z||b[12]!==k||b[13]!==T?(l=()=>{w&&k&&(P(!0),w.request({url:`/access/project/${k}/requests`,method:"post",body:{note:Z,requestUrl:window?.location.href,type:"access"}}).then(e=>{e&&O(!0)}).catch(e=>{let t=e?.response?.statusCode,n=e?.response?.body?.message;429===t&&(B(!0),A(n)),409===t?(H(!0),A(n)):T.push({title:"There was a problem submitting your request.",status:"error"})}).finally(()=>{P(!1)}))},b[10]=w,b[11]=Z,b[12]=k,b[13]=T,b[14]=l):l=b[14];let G=l,X=oh(v?.provider),Q=X?` through ${X}`:"";if(D){let e;return b[15]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(r5,{}),b[15]=e):e=b[15],e}if(I){let e;return b[16]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(Gz,{}),b[16]=e):e=b[16],e}let ee=v?.name,et=v?.email;return b[17]!==ee||b[18]!==et?(d=(0,a.jsxs)("strong",{children:[ee," (",et,")"]}),b[17]=ee,b[18]=et,b[19]=d):d=b[19],b[20]!==Q||b[21]!==d?(c=(0,a.jsxs)(u.EY,{children:["You are not authorized to access this studio (currently signed in as"," ",d,Q,")."]}),b[20]=Q,b[21]=d,b[22]=c):c=b[22],b[23]!==G||b[24]!==Y||b[25]!==V||b[26]!==R||b[27]!==F||b[28]!==M||b[29]!==$||b[30]!==Z||b[31]!==q?(m=F||R||Y?(0,a.jsx)(u.Zp,{tone:R?"transparent":"caution",padding:3,radius:2,shadow:1,children:(0,a.jsxs)(u.EY,{size:1,children:[F&&!
3706R&&(0,a.jsx)(a.Fragment,{children:$??`You've reached the limit for access requests across all projects. Please wait
3707                      before submitting more requests or contact an admin for assistance.`}),R&&(0,a.jsx)(a.Fragment,{children:"Your request to access this project is pending approval."}),Y&&(0,a.jsx)(a.Fragment,{children:$??"Your request to access this project has been declined."})]})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.EY,{children:V?(0,a.jsx)(a.Fragment,{children:"Your previous request has expired. You may again request access below with an optional note. The administrator(s) will receive an email letting them know that you are requesting access."}):(0,a.jsx)(a.Fragment,{children:"You can request access below with an optional note. The administrator(s) will receive an email letting them know that you are requesting access."})}),(0,a.jsxs)(u.BJ,{space:3,paddingBottom:0,children:[(0,a.jsx)(u.ks,{maxLength:150,disabled:M,onKeyDown:e=>{"Enter"===e.key&&G()},onChange:e=>{U(e.currentTarget.value),J(e.currentTarget.value.length)},value:Z,placeholder:"Add your note…"}),(0,a.jsx)(u.EY,{align:"right",muted:!0,size:1,children:`${q}/150`})]})]}),b[23]=G,b[24]=Y,b[25]=V,b[26]=R,b[27]=F,b[28]=M,b[29]=$,b[30]=Z,b[31]=q,b[32]=m):m=b[32],b[33]!==m||b[34]!==c?(h=(0,a.jsxs)(u.BJ,{space:4,children:[c,m]}),b[33]=m,b[34]=c,b[35]=h):h=b[35],b[36]!==K?(f=(0,a.jsx)(y.$n,{mode:"bleed",text:"Sign out",tone:"default",onClick:K,size:"large"}),b[36]=K,b[37]=f):f=b[37],b[38]!==G||b[39]!==Y||b[40]!==R||b[41]!==F||b[42]!==M?(g=!F&&!Y&&(0,a.jsx)(y.$n,{mode:"default",text:R?"Request sent":"Request access",disabled:R||M,loading:M,tone:"default",onClick:G,size:"large"}),b[38]=G,b[39]=Y,b[40]=R,b[41]=F,b[42]=M,b[43]=g):g=b[43],b[44]!==f||b[45]!==g?(C=(0,a.jsxs)(u.so,{align:"center",justify:"space-between",paddingTop:4,children:[f,g]}),b[44]=f,b[45]=g,b[46]=C):C=b[46],b[47]!==h||b[48]!==C?(x=(0,a.jsx)(u.Zp,{height:"fill",children:(0,a.jsx)(y.lG,{id:"not-authorized-dialog",header:"Not authorized",width:1,children:(0,a.jsxs)(u.az,{children:[h,C]})})}),b[47]=h,b[48]=C,b[49]=x):x=b[49],x}function GR(e){return"pending"===e.status&&(0,tI.A)((0,tB.A)(new Date(e.createdAt),2),new Date)}function GO(e){return"pending"===e.status&&(0,tz.A)((0,tB.A)(new Date(e.createdAt),2),new Date)}function GV(e){return"declined"===e.status}function GL(){}let GF={error:"critical",warning:"caution"},GB=g.I4.code`
3708  && {
3709    background: none;
3710    color: inherit;
3711  }
3712`,GN=(0,g.I4)(u.EY)`
3713  white-space: pre-line;
3714`;function GY(e){let{problemGroups:t}=e;iJ();let n=(0,s.useMemo)(()=>{let e=[];for(let n of t)for(let t of n.problems)e.push({group:n,problem:t});return e},[t]);return(0,a.jsx)(u.BJ,{as:"ul",space:4,children:n.map(({group:e,problem:t},n)=>{let r="error"===t.severity,i="warning"===t.severity,o=function(e){let t=e.path[0];return"type"===t.kind?{name:t.name||`<anonymous ${t.type}>`,type:t.type}:null}(e);return(0,a.jsxs)(u.Zp,{border:!0,padding:4,radius:2,tone:GF[t.severity],children:[(0,a.jsxs)(u.so,{children:[(0,a.jsx)(u.az,{marginRight:3,children:(0,a.jsxs)(u.EY,{muted:!0,size:1,children:[r&&(0,a.jsx)(C.YZv,{}),i&&(0,a.jsx)(C.sAQ,{})]})}),(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(u.EY,{size:1,weight:"medium",children:o?(0,a.jsxs)(a.Fragment,{children:[ns(o.type),' type "',o.name,'"']}):null})})]}),(0,a.jsx)(u.az,{marginTop:4,children:(0,a.jsx)(u.Zp,{border:!0,overflow:"auto",padding:2,tone:"inherit",children:(0,a.jsx)(p.BI,{separator:(0,a.jsx)(u.EY,{muted:!0,size:1,children:"→"}),children:e.path.map((e,t)=>{if("type"===e.kind){var n;let r=`${(n=e.name||`<anonymous ${e.type}>`,n?.startsWith("<unnamed_type_@_index")?`[${n.slice(1,-1).split("_")[4]}]`:n)}:${e.type}`;return(0,a.jsx)(u.EY,{title:r,size:1,textOverflow:"ellipsis",children:(0,a.jsx)(GB,{children:r})},t)}return"property"===e.kind?(0,a.jsx)(u.EY,{title:e.name,size:1,textOverflow:"ellipsis",children:(0,a.jsx)(GB,{children:e.name})},t):null})})})}),(0,a.jsx)(u.az,{as:"ul",marginTop:4,children:(0,a.jsx)(u.az,{as:"li",children:(0,a.jsxs)(u.BJ,{space:3,children:[(0,a.jsx)(GN,{muted:!0,size:1,children:t.message}),t.helpId&&(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)("a",{href:(0,y.iB)(t.helpId),target:"_blank",rel:"noopener noreferrer",children:"View documentation →"})})]})})})]},n)})})}function GH(e){let t,n,r,i,l,d,c=(0,o.c)(9),{schema:p}=e;
3714c[0]!==p._validation?(t=p._validation?.filter(GZ)||[],c[0]=p._validation,c[1]=t):t=c[1];let m=t;return c[2]!==p?(n=()=>(function(e){let t=e._validation?.filter(e=>e.problems.some(e=>"warning"===e.severity));t?.length!==0&&(console.groupCollapsed(`\u26A0\uFE0F Schema has ${t?.length} warnings`),t?.forEach(e=>{let t=e.path.map(e=>"type"===e.kind?`${e.name||"<unnamed>"}(${e.type})`:"property"===e.kind?e.name:null).filter(Boolean).join(" > ");console.group(`%cAt ${t}`,"color: #FF7636"),e.problems.forEach(e=>{console.log(e.message)}),console.groupEnd()}),console.groupEnd())})(p),r=[p],c[2]=p,c[3]=n,c[4]=r):(n=c[3],r=c[4]),(0,s.useEffect)(n,r),c[5]===Symbol.for("react.memo_cache_sentinel")?(i=[4,5,6,7],c[5]=i):i=c[5],c[6]===Symbol.for("react.memo_cache_sentinel")?(l=(0,a.jsx)(u.DZ,{as:"h1",children:"Schema errors"}),c[6]=l):l=c[6],c[7]!==m?(d=(0,a.jsx)(u.Zp,{height:"fill",overflow:"auto",paddingY:i,paddingX:4,sizing:"border",children:(0,a.jsx)(u.mc,{width:1,children:(0,a.jsxs)(u.BJ,{space:5,children:[l,(0,a.jsx)(GY,{problemGroups:m})]})})}),c[7]=m,c[8]=d):d=c[8],d}function GZ(e){return e.problems.some(GU)}function GU(e){return"error"===e.severity}let Gq=(0,g.I4)(u.az)`
3715  align-items: center;
3716`;function GJ(e){let t,n,r,i,l,s,d,c,p=(0,o.c)(19),{error:m,eventId:h,heading:f,onReset:g}=e,C=void 0===f?"An error occurred":f,y=m?.message,x=m?.stack==="string"&&m?.stack;return p[0]===Symbol.for("react.memo_cache_sentinel")?(t=[4,5,6,7],p[0]=t):t=p[0],p[1]!==C?(n=(0,a.jsx)(u.DZ,{children:C}),p[1]=C,p[2]=n):n=p[2],p[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,a.jsx)(u.EY,{children:"An error occurred that Sanity Studio was unable to recover from."}),i=(0,a.jsxs)(u.EY,{children:[(0,a.jsx)("strong",{children:"To report this error,"})," copy the error details and share them with your development team or Sanity Support."]}),p[3]=r,p[4]=i):(r=p[3],i=p[4]),p[5]!==h||p[6]!==y||p[7]!==x?(l=ar&&(0,a.jsx)(u.Zp,{border:!0,radius:2,overflow:"auto",padding:4,tone:"critical",children:(0,a.jsxs)(u.BJ,{space:4,children:[y&&(0,a.jsx)(u.Cy,{weight:"bold",size:1,children:y}),x&&(0,a.jsx)(u.Cy,{size:1,children:x}),h&&(0,a.jsxs)(u.Cy,{size:1,children:["Event ID: ",h]})]})}
3716),p[5]=h,p[6]=y,p[7]=x,p[8]=l):l=p[8],p[9]!==n||p[10]!==l?(s=(0,a.jsxs)(u.BJ,{space:4,children:[n,r,i,l]}),p[9]=n,p[10]=l,p[11]=s):s=p[11],p[12]!==m||p[13]!==h||p[14]!==g?(d=(0,a.jsx)(etC,{error:m,eventId:h,onRetry:g,size:"large"}),p[12]=m,p[13]=h,p[14]=g,p[15]=d):d=p[15],p[16]!==s||p[17]!==d?(c=(0,a.jsx)(u.Zp,{height:"fill",overflow:"auto",paddingY:t,paddingX:4,sizing:"border",children:(0,a.jsx)(Gq,{display:"flex",height:"fill",children:(0,a.jsx)(u.mc,{width:3,children:(0,a.jsxs)(u.BJ,{space:6,children:[s,d]})})})}),p[16]=s,p[17]=d,p[18]=c):c=p[18],c}let GW=(0,g.I4)(u.az)`
3717  align-items: center;
3718`;function GK(){window.location.reload()}function GG(e){let t,n,r,i,l,d,c,p,m,h,f,g=(0,o.c)(25),{error:x,eventId:b,autoReload:v}=e,[j]=(0,s.useState)(G1),[,w]=(0,s.useReducer)(GQ,0),_=Math.floor((j-Date.now())/1e3);g[0]!==v||g[1]!==w?(t=()=>{if(!v)return GX;let e=setInterval(()=>w(),500);return()=>clearInterval(e)},g[0]=v,g[1]=w,g[2]=t):t=g[2],g[3]!==v?(n=[v],g[3]=v,g[4]=n):n=g[4],(0,s.useEffect)(t,n),g[5]!==_?(r=()=>{_<=0&&GK()},g[5]=_,g[6]=r):r=g[6],g[7]!==v||g[8]!==_?(i=[v,_],g[7]=v,g[8]=_,g[9]=i):i=g[9],(0,s.useEffect)(r,i),g[10]===Symbol.for("react.memo_cache_sentinel")?(l=[4,5,6,7],g[10]=l):l=g[10],g[11]===Symbol.for("react.memo_cache_sentinel")?(d=(0,a.jsx)(u.DZ,{children:"Import error"}),c=(0,a.jsx)(u.EY,{children:"An error occurred during dynamic import."}),g[11]=d,g[12]=c):(d=g[11],c=g[12]),g[13]!==x||g[14]!==b?(p=ar&&(0,a.jsx)(u.Zp,{border:!0,radius:2,overflow:"auto",padding:4,tone:"critical",children:(0,a.jsxs)(u.BJ,{space:4,children:[x.message&&(0,a.jsx)(u.Cy,{weight:"bold",size:1,children:x.message}),x.stack&&(0,a.jsx)(u.Cy,{size:1,children:x.stack}),b&&(0,a.jsxs)(u.Cy,{size:1,children:["Event ID: ",b]})]})}),g[13]=x,g[14]=b,g[15]=p):p=g[15],g[16]!==v||g[17]!==_?(m=v?(0,a.jsxs)(u.EY,{muted:!0,children:["Reloading ",_<=0?"now":`in ${_.toFixed()}s`,"…"]}):null,g[16]=v,g[17]=_,g[18]=m):m=g[18];let k=v?"Reload now":"Reload";return g[19]!==k?(h=(0,a.jsx)(u.cV,{space:3,children:(0,a.jsx)(y.$n,{onClick:GK,text:k,tone:"primary",icon:C.Fjq,size:"large"})}),g[19]=k,g[20]=h):h=g[20],g[21]!==h||g[22]!==p||g[23]!==m?(f=(0,a.jsx)(u.Zp,{height:"fill",overflow:"auto",paddingY:l,paddingX:4,sizing:"border",children:(0,a.jsx)(GW,{display:"flex",height:"fill",children:(0,a.jsx)(u.mc,{width:3,children:(0,a.jsx)(u.BJ,{space:6,children:(0,a.jsxs)(u.BJ,{space:4,children:[d,c,p,m,h]})})})})}),g[21]=h,g[22]=p,g[23]=m,g[24]=f):f=g[24],f}function GX(){}function GQ(e){return e+1}function G1(){return Date.now()+5e3}let G2=(0,s.lazy)(()=>n.e(7348).then(n.bind(n,7348)).then(e=>({default:e.DevServerStoppedErrorScreen})));function G5(e){let{children:t,heading:n="An error occurred"}=e,[r,i]=(0,s.useState)(),o=(0,s.useCallback)(()=>i(void 0),[]),l=(0,s.useCallback)(e=>{let t;try{t=Gc.reportError(e.error,{reactErrorInfo:e.info,errorBoundary:"StudioErrorBoundary"})?.eventId}catch(e){e.message=`Encountered an additional error when reporting error: ${e.message}`,console.error(e)}i({error:e.error,componentStack:e.info.componentStack,eventId:t})},[]);return(0,ro.i)(o),r?.error?r.error instanceof a8?(0,a.jsx)(G$,{projectId:r.error.projectId}):r.error instanceof W1?(0,a.jsx)(GH,{schema:r.error.schema}):"ViteDevServerStoppedError"in r.error&&r.error.ViteDevServerStoppedError?(0,a.jsx)(G2,{}):Gp(r.error)?(0,a.jsx)(GG,{error:r.error,eventId:r.eventId,autoReload:!0}):(0,a.jsx)(GJ,{heading:n,error:r.error,eventId:r.eventId,onReset:o}):(0,a.jsx)(y.tH,{onCatch:l,children:t})}let G0=(0,s.lazy)(()=>n.e(7348).then(n.bind(n,7348)).then(e=>({default:e.DetectViteDevServerStopped}))),G7=void 0,G3=(0,g.I4)(u.Zp)`
3719  height: 100%;
3720  left: 0;
3721  overflow: hidden;
3722  overflow: clip;
3723  position: fixed;
3724  top: 0;
3725  width: 100%;
3726  z-index: 200;
3727`;function G8(){let e,t=(0,o.c)(2),n=function(){let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={defaultComponent:G4,pick:Xn},t[0]=e):e=t[0],aE(e)}();return t[0]!==n?(e=(0,a.jsx)(n,{}),t[0]=n,t[1]=e):e=t[1],e}function G4(){let e,t,n,r,i,l,d,m,h,f,g,x,b,v,j,w,_,S,I,$,A,D,z,M=(0,o.c)(61),{name:R,title:O,tools:V}=lE();!function(){let{push:e}=(0,p.dj)(),{t}=iJ(),n=ee7({apiVersion:"2025-03-01"}),r=t("network-check.slow-protocol-warning.title"),[i,l]=(0,s.use
3727State)(),[d,c]=function(e){let t,n,r,i=(0,o.c)(7);i[0]!==e?(t=()=>{let t=sessionStorage.getItem(e);return"string"==typeof t?t:void 0},i[0]=e,i[1]=t):t=i[1];let[a,l]=(0,s.useState)(t);i[2]!==e?(n=t=>{l(t),void 0===t?sessionStorage.removeItem(e):sessionStorage.setItem(e,t)},i[2]=e,i[3]=n):n=i[3];let d=n,c="string"==typeof a?a:void 0;return i[4]!==d||i[5]!==c?(r=[c,d],i[4]=d,i[5]=c,i[6]=r):r=i[6],r}("sanity-studio.network.check.snooze"),m=(0,s.useMemo)(()=>d?new Date(d):void 0,[d]),h=(0,s.useMemo)(()=>m&&new Date().getTime()-m.getTime()<864e5,[m]);(0,s.useEffect)(()=>{var e;let t=(h?(0,k.of)(void 0):(e=n,typeof PerformanceObserver>"u"||typeof PerformanceResourceTiming>"u"?(0,k.of)(void 0):function(e){let t=(0,em._)(new P.c(e=>{let t=new PerformanceObserver(t=>{for(let n of t.getEntries())e.next(n)});return t.observe({type:"resource",buffered:!0}),()=>t.disconnect()}).pipe((0,q.p)(t=>t instanceof PerformanceResourceTiming&&t.name===e),(0,ey.s)(1),(0,E.T)(e=>localStorage._sanity_debugProtocol??e.nextHopProtocol)));return(0,T.v)(()=>fetch(e)).pipe((0,ew.Z)(()=>t),(0,eb.w)({first:2500,with:()=>(0,k.of)(void 0)}))}(`${e.getUrl("/ping")}?tag=sanity.studio.protocol-check`)).pipe((0,E.T)(e=>{if(e)return e.startsWith("http/0")||e.startsWith("http/1")}))).subscribe(e=>l(e));return()=>t.unsubscribe()},[n,h,e,r,m]);let f=(0,s.useCallback)(()=>c(new Date().toISOString()),[c]);ee3({id:"network-protocol-check",status:"warning",enabled:i&&!h,title:r,description:(0,a.jsxs)(u.BJ,{space:4,paddingY:1,children:[(0,a.jsx)(u.so,{children:(0,a.jsxs)(u.EY,{size:1,children:[t("network-check.slow-protocol-warning.description")," "]})}),(0,a.jsxs)(u.so,{gap:3,children:[(0,a.jsx)(y.$n,{as:"a",href:K7,target:"_blank",rel:"noreferrer",mode:"ghost",tone:"primary",size:"default",icon:C.ZPM,tooltipProps:{content:t("network-check.slow-protocol-warning.learn-more-button.tooltip")},text:t("network-check.slow-protocol-warning.learn-more-button.text")}),(0,a.jsx)(y.$n,{mode:"bleed",tone:"neutral",size:"default",text:t("network-check.slow-protocol-warning.snooze-button.text"),onClick:f})]})]})})}();let L=(0,tq.rd)(),F=(0,tq.ks)(G9);if(M[0]!==F||M[1]!==V){let e;M[3]!==F?(e=e=>e.name===F,M[3]=F,M[4]=e):e=M[4],t=V.find(e),M[0]=F,M[1]=V,M[2]=t}else t=M[2];e=t;let[B,N]=(0,s.useState)(!1),[Y,H]=(0,s.useState)(null),[Z,U]=(0,s.useState)(!1);e:{let e;M[5]!==R||M[6]!==O?(e=O||eJ(R),M[5]=R,M[6]=O,M[7]=e):e=M[7];let t=e;if(F){n=`${eJ(F)} | ${t}`;break e}n=t}let J=n,W=!!e?.controlsDocumentTitle;M[8]!==J||M[9]!==W?(r=()=>{W||(document.title=J)},i=[J,W],M[8]=J,M[9]=W,M[10]=r,M[11]=i):(r=M[10],i=M[11]),(0,s.useEffect)(r,i),M[12]===Symbol.for("react.memo_cache_sentinel")?(l=e=>{N(e)},M[12]=l):l=M[12];let K=l;M[13]===Symbol.for("react.memo_cache_sentinel")?(d=e=>{U(e)},M[13]=d):d=M[13];let G=d;M[14]!==B||M[15]!==Y||M[16]!==Z?(h={searchFullscreenOpen:B,searchFullscreenPortalEl:Y,searchOpen:Z,onSearchFullscreenOpenChange:K,onSearchOpenChange:G},M[14]=B,M[15]=Y,M[16]=Z,M[17]=h):h=M[17],m=h;let X=function(){let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={defaultComponent:Qj,pick:Xt},t[0]=e):e=t[0],aE(e)}(),Q=function(){let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={defaultComponent:K0,pick:Xr},t[0]=e):e=t[0],aE(e)}();M[18]!==e||M[19]!==F||M[20]!==V?(f=!e&&("desk"===F||!F)&&"u">typeof window&&/\/desk(\/|$)/.test(window.location.pathname)&&V.some(G6),M[18]=e,M[19]=F,M[20]=V,M[21]=f):f=M[21];let ee=f;M[22]!==ee||M[23]!==L?(g=()=>{ee&&L.navigateUrl({path:window.location.pathname.replace(/\/desk/,"/structure"),replace:!0})},x=[ee,L],M[22]=ee,M[23]=L,M[24]=g,M[25]=x):(g=M[24],x=M[25]),(0,s.useEffect)(g,x),M[26]!==X?(b=(0,a.jsx)(X,{}),M[26]=X,M[27]=b):b=M[27],M[28]!==m||M[29]!==b?(v=(0,a.jsx)(c.qT.Provider,{value:m,children:b}),M[28]=m,M[29]=b,M[30]=v):v=M[30],M[31]!==ee?(j=ee&&(0,a.jsx)(K8,{}),M[31]=ee,M[32]=j):j=M[32],M[33]!==V.length?(w=0===V.length&&(0,a.jsx)(K3,{}),M[33]=V.length,M[34]=w):w=M[34],M[35]!==e||M[36]!==F||M[37]!==ee||M[38]!==V.length?(_=V.length>0&&!e&&F&&!ee&&(0,a.jsx)(K4,{toolName:F}),M[35]=e,M[36]=F,M[37]=ee,M[38]=V.length,M[39]=_):_=M[39],M[40]!==B?(S=B&&(0,a.jsx)(G3,{ref:H,overflow:"auto"}),M[40]=B,M[41]=S):S=M[41];let et=e?.name,en=`The ${e?.name} tool crashed`;return M[42]===Symbol.for("react.memo_cache_sentinel")?(I=G7&&(0,a.jsx)(G0,{}),M[42]=I):I=M[42],M[43]!==Q||M[44]!==e||M[45]!==F?($=e&&F&&(0,a.jsx)(tq.GD,{scope:F,__unsafe_disableScopedSearchParams:e.router?.__unsafe_disableScopedSearchParams,children:(0,a.jsx)(s.Suspense,{fallback:(0,a.jsx)(r5,{showText:!0}),children:(0,a.jsx)(Q,{activeTool:e})})}),M[43]=Q,M[44]=e,M[45]=F,M[46]=$):$=M[46],M[47]!==B||M[48]!==$?(A=(0,a.jsx)(u.Zp,{flex:1,hidden:B,children:$}),M[47]=B,M[48]=$,M[49]=A):A=M[49],M[50]!==et||M[51]!==en||M[52]!==A?(D=(0,a.jsxs)(G5,{heading:en,children:[I,A]},et),M[50]=et,M[51]=en,M[52]=A,M[53]=D):D=M[53],M[54]!==v||M[55]!==j||M[56]!==w||M[57]!==_||M[58]!==S||M[59]!==D?(z=(0,a.jsxs)(u.so,{"data-ui":"ToolScreen",direction:"column",height:"fill","data-testid":"studio-layout",children:[v,j,w,_,S,D]}),M[54]=v,M[55]=j,M[56]=w,M[57]=_,M[58]=S,M[59]=D,M[60]=z):z=M[60],z}function G6(e){return"structure"===e.name}function G9(e){return"string"==typeof e.tool?e.tool:void 0}function Xe(e){return e.studio?.components?.toolMenu}function Xt(e){return e.studio?.components?.navbar}function Xn(e){return e.studio?.components?.layout}function Xr(e){return e.studio?.components?.activeToolLayout}function Xi(){let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={defaultComponent:QD,pick:Xe},t[0]=e):e=t[0],aE(e)}function Xa(){let e,t,n,r,i,l,d,c,p,m=(0,o.c)(25),h=Cm();
3727m[0]!==h._validation?(e=h._validation?.filter(Xo)||[],m[0]=h._validation,m[1]=e):e=m[1];let f=e,g=Kj(),{t:x}=iJ(),b=(0,s.useId)(),[v,j]=(0,s.useState)(!1),[w,_]=(0,s.useState)(null);m[2]===Symbol.for("react.memo_cache_sentinel")?(t=()=>j(!0),m[2]=t):t=m[2];let k=t;m[3]!==w?(n=()=>{j(!1),w&&w.focus()},m[3]=w,m[4]=n):n=m[4];let S=n;return 0===f.length?null:(m[5]!==x?(r=x("configuration-issues.button.label"),m[5]=x,m[6]=r):r=m[6],m[7]!==x?(i=x("configuration-issues.button.tooltip"),m[7]=x,m[8]=i):i=m[8],m[9]!==g||m[10]!==i?(l={scheme:g,content:i},m[9]=g,m[10]=i,m[11]=l):l=m[11],m[12]!==v||m[13]!==r||m[14]!==l?(d=(0,a.jsx)(enu,{icon:C.sAQ,mode:"bleed",onClick:k,ref:_,selected:v,tone:"caution","aria-label":r,tooltipProps:l}),m[12]=v,m[13]=r,m[14]=l,m[15]=d):d=m[15],m[16]!==b||m[17]!==f||m[18]!==S||m[19]!==v||m[20]!==g?(c=v&&(0,a.jsx)(y.lG,{header:"Configuration issues",width:2,onClickOutside:S,onClose:S,scheme:g,id:b,children:(0,a.jsxs)(u.BJ,{space:4,children:[(0,a.jsxs)(u.BJ,{space:3,children:[(0,a.jsxs)(u.EY,{as:"h2",size:1,weight:"medium",children:["Found ",f.length," schema warnings"]})," ",(0,a.jsx)(u.EY,{muted:!0,size:1,children:"Configuration checks are only performed during development and will not be visible in production builds"})]}),(0,a.jsx)(GY,{problemGroups:f})]})}),m[16]=b,m[17]=f,m[18]=S,m[19]=v,m[20]=g,m[21]=c):c=m[21],m[22]!==d||m[23]!==c?(p=(0,a.jsxs)(a.Fragment,{children:[d,c]}),m[22]=d,m[23]=c,m[24]=p):p=m[24],p)}function Xo(e){return e.problems.some(Xl)}function Xl(e){return"warning"===e.severity}let Xs=(0,eQ.g_)({name:"Trial Dialog Viewed",version:1,description:"User viewed a dialog or popover related to free trial"}),Xd=(0,eQ.g_)({name:"Trial Dialog Dismissed",version:1,description:"User dismissed a dialog or popover related to free trial"}),Xc=(0,eQ.g_)({name:"Trial Dialog CTA Clicked",version:1,description:"User clicked a CTA in a dialog or popover related to free trial"});function Xu({showOnLoad:e,dialogId:t}){return e&&"free-upgrade-popover"===t.toLowerCase()?"trialStarted":e&&"trial-ending-popover"===t.toLowerCase()?"trialEndingSoon":e&&"project-downgraded-to-free"===t.toLowerCase()?"trialEnded":e||"after-trial-upgrade"!==t.toLowerCase()?"trialActive":"postTrial"}let Xp=(0,g.I4)(y.$n)`
3728  position: absolute;
3729  top: 12px;
3730  right: 12px;
3731  z-index: 20;
3732  background: transparent;
3733  border-radius: 9999px;
3734  box-shadow: none;
3735  color: white;
3736  --card-fg-color: white;
3737  :hover {
3738    --card-fg-color: white;
3739  }
3740`,Xm=g.I4.img`
3741  object-fit: cover;
3742  width: 100%;
3743  height: 100%;
3744  height: 196px;
3745`,Xh=(0,g.I4)(y.lG)`
3746  > [data-ui='DialogCard'] {
3747    max-width: 22.5rem;
3748  }
3749`;function Xf(e){let t,n,r,i,l,s,d,c,p,m,h,f,g,y=(0,o.c)(39),{onClose:x,onOpenNext:b,onOpenUrlCallback:v,content:j,open:w}=e;y[0]!==x?(t=function(){x("xClick")},y[0]=x,y[1]=t):t=y[1];let _=t;y[2]!==x?(n=function(){x("outsideClick")},y[2]=x,y[3]=n):n=y[3];let k=n;y[4]!==x?(r=function(){x("ctaClicked")},y[4]=x,y[5]=r):r=y[5];let S=r,T=Kj();if(!w)return null;y[6]!==j.secondaryButton||y[7]!==_?(i=j.secondaryButton?.text?{text:j.secondaryButton.text,mode:"bleed",tone:"default",onClick:_}:void 0,y[6]=j.secondaryButton,y[7]=_,y[8]=i):i=y[8];let I=j.ctaButton?.text;return y[9]!==j.ctaButton||y[10]!==S||y[11]!==b||y[12]!==v?(l=j.ctaButton?.action==="openUrl"?{href:j.ctaButton.url,target:"_blank",rel:"noopener noreferrer",as:"a",onClick:v}:{onClick:j.ctaButton?.action==="openNext"?b:S},y[9]=j.ctaButton,y[10]=S,y[11]=b,y[12]=v,y[13]=l):l=y[13],y[14]!==I||y[15]!==l?(s={text:I,mode:"default",tone:"primary",...l},y[14]=I,y[15]=l,y[16]=s):s=y[16],y[17]!==i||y[18]!==s?(d={cancelButton:i,confirmButton:s},y[17]=i,y[18]=s,y[19]=d):d=y[19],y[20]!==_?(c=(0,a.jsx)(Xp,{icon:C.USm,mode:"bleed",tone:"default",onClick:_,tabIndex:-1,tooltipProps:null}),y[20]=_,y[21]=c):c=y[21],y[22]!==j.image?(p=j.image&&(0,a.jsx)(Xm,{src:j.image.asset.url,alt:j.image.asset.altText??""}),y[22]=j.image,y[23]=p):p=y[23],y[24]!==j.headingText?(m=(0,a.jsx)(u.az,{paddingX:2,marginTop:3,children:(0,a.jsx)(u.DZ,{size:2,children:j.headingText})}),y[24]=j.headingText,y[25]=m):m=y[25],y[26]!==j.descriptionText?(h=(0,a.jsx)(u.az,{marginTop:4,paddingBottom:3,children:(0,a.jsx)(yb,{blocks:j.descriptionText})}),y[26]=j.descriptionText,y[27]=h):h=y[27],y[28]!==m||y[29]!==h?(f=(0,a.jsxs)(u.so,{padding:3,direction:"column",children:[m,h]}),y[28]=m,y[29]=h,y[30]=f):f=y[30],y[31]!==k||y[32]!==x||y[33]!==T||y[34]!==p||y[35]!==f||y[36]!==d||y[37]!==c?(g=(0,a.jsxs)(Xh,{id:"free-trial-modal",onClose:x,onClickOutside:k,padding:!1,__unstable_hideCloseButton:!0,scheme:T,footer:d,children:[c,p,f]}),y[31]=k,y[32]=x,y[33]=T,y[34]=p,y[35]=f,y[36]=d,y[37]=c,y[38]=g):g=y[38],g}let Xg=g.I4.div`
3750  position: absolute;
3751  top: 50%;
3752  left: 50%;
3753  transform: translate(-50%, -50%);
3754`,XC=e=>{let t,n,r,i,l=(0,o.c)(8),{daysLeft:s,totalDays:d}=e,c=Math.round((d-s)/d*100),p=2*Math.PI*10,m=(100-c)/100*p;l[0]===Symbol.for("react.memo_cache_sentinel")?(t={transform:"rotate(-90deg)"},l[0]=t):t=l[0];let h=c>75?v.D9[600].hex:v.Zp[400].hex;return l[1]!==h?(n=(0,a.jsx)("circle",{r:10,cx:10.6,cy:10.6,fill:"transparent",strokeWidth:1.2,stroke:h}),l[1]=h,l[2]=n):n=l[2],l[3]!==m?(r=(0,a.jsx)("circle",{r:10,cx:10.6,cy:10.6,fill:"transparent",strokeWidth:1.2,stroke:"var(--card-border-color)",strokeDasharray:p,strokeDashoffset:m}),l[3]=m,l[4]=r):r=l[4],l[5]!==n||l[6]!==r?(i=(0,a.jsx)(u.Zp,{children:(0,a.jsx)(Xg,{children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:21.2,height:21.2,viewBox:"0 0 21.2 21.2",style:t,children:[n,r]})})}),l[5]=n,l[6]=r,l[7]=i):i=l[7],i},Xy=(0,s.forwardRef)(function(e,t){let n,r,i,l,s,d=(0,o.c)(14),{toggleShowContent:c,daysLeft:p,totalDays:m}=e,{t:h}=iJ();return d[0]!==p||d[1]!==h?(n=p?h("free-trial.tooltip.days-count",{count:p}):h("free-trial.tooltip.trial-finished"),d[0]=p,d[1]=h,d[2]=n):n=d[2],d[3]!==n?(r={content:n},d[3]=n,d[4]=r):r=d[4],d[5]===Symbol.for("react.memo_cache_sentinel")?(i=(0,a.jsx)(u.EY,{size:0,children:(0,a.jsx)(C.DQQ,{})}),d[5]=i):i=d[5],d[6]!==p||d[7]!==m?(l=p>0&&(0,a.jsx)(XC,{daysLeft:p,totalDays:m}),d[6]=p,d[7]=m,d[8]=l):l=d[8],d[9]!==t||d[10]!==r||d[11]!==l||d[12]!==c?(s=(0,a.jsxs)(y.$n,{mode:"bleed",onClick:c,ref:t,tooltipProps:r,children:[i,l]}),d[9]=t,d[10]=r,d[11]=l,d[12]=c,d[13]=s):s=d[13],s}),Xx=(0,s.forwardRef)(function(e,t){let n,r,i=(0,o.c)(7),{toggleShowContent:l,daysLeft:s}=e,{t:d}=iJ();return i[0]!==s||i[1]!==d?(n=s?d("user-menu.action.free-trial",{count:s}):d("user-menu.action.free-trial-finished"),i[0]=s,i[1]=d,i[2]=n):n=i[2],i[3]!==t||i[4]!==n||i[5]!==l?(r=(0,a.jsx)(y.$n,{ref:t,icon:C.DQQ,justify:"flex-start",mode:"bleed",size:"large",onClick:l,text:n}),i[3]=t,i[4]=n,i[5]=l,i[6]=r):r=i[6],r}),Xb=g.I4.img`
3755  object-fit: cover;
3756  width: 100%;
3757  height: 100%;
3758  height: 180px;
3759`;function Xv(e){let t,n,r,i,l,s,d,c,p,m=(0,o.c)(26),{content:h,handleClose:f,handleOpenNext:g}=e;m[0]!==h.image?(t=h.image&&(0,a.jsx)(Xb,{src:h.image.asset.url,alt:h.image.asset.altText??""}),m[0]=h.image,m[1]=t):t=m[1],m[2]!==h.headingText?(n=(0,a.jsx)(u.az,{paddingX:2,marginTop:3,children:(0,a.jsx)(u.DZ,{size:1,children:h.headingText})}),m[2]=h.headingText,m[3]=n):n=m[3],m[4]!==h.descriptionText?(r=(0,a.jsx)(u.az,{marginTop:4,children:(0,a.jsx)(yb,{blocks:h.descriptionText})}),m[4]=h.descriptionText,m[5]=r):r=m[5],m[6]!==n||m[7]!==r?(i=(0,a.jsxs)(u.so,{padding:3,direction:"column",children:[n,r]}),m[6]=n,m[7]=r,m[8]=i):i=m[8],m[9]!==h.secondaryButton||m[10]!==f?(l=h.secondaryButton?.text&&(0,a.jsx)(y.$n,{mode:"bleed",text:h.secondaryButton.text,tone:"default",onClick:()=>f("xClick")}),m[9]=h.secondaryButton,m[10]=f,m[11]=l):l=m[11];let C=h.ctaButton?.text;return m[12]!==h.ctaButton||m[13]!==f||m[14]!==g?(s=h.ctaButton?.action==="openUrl"?{href:h.ctaButton.url,target:"_blank",rel:"noopener noreferrer",as:"a"}:{onClick:h.ctaButton?.action==="openNext"?g:()=>f("ctaClicked")},m[12]=h.ctaButton,m[13]=f,m[14]=g,m[15]=s):s=m[15],m[16]!==C||m[17]!==s?(d=(0,a.jsx)(y.$n,{mode:"default",tooltipProps:null,text:C,autoFocus:!0,tone:"primary",...s}),m[16]=C,m[17]=s,m[18]=d):d=m[18],m[19]!==l||m[20]!==d?(c=(0,a.jsxs)(u.so,{width:"full",gap:3,justify:"flex-end",padding:3,children:[l,d]}),m[19]=l,m[20]=d,m[21]=c):c=m[21],m[22]!==t||m[23]!==i||m[24]!==c?(p=(0,a.jsx)(u.Zp,{radius:3,overflow:"hidden",
3759width:0,children:(0,a.jsxs)(u.mc,{width:0,children:[t,i,c]})}),m[22]=t,m[23]=i,m[24]=c,m[25]=p):p=m[25],p}function Xj({type:e}){let{data:t,showDialog:n,showOnLoad:r,toggleShowContent:i}=(()=>{let e=(0,s.useContext)(c.sj);if(!e)throw Error("useFreeTrial must be used within a FreeTrialProvider");return e})(),o=Kj(),l=(0,e5.Jr)(),[d,u]=(0,s.useState)(null),[p,m]=(0,s.useState)(!1);(0,s.useEffect)(()=>{d&&m(!0)},[d]);let h=(0,s.useCallback)(()=>i(!0),[i]),f=(0,s.useCallback)(()=>{d?.focus(),i(!1)},[i,d]),g=(0,s.useCallback)(e=>n=>{let i=t?.showOnLoad||t?.showOnClick;i&&l.log(Xd,{dialogId:i.id,dialogRevision:i._rev,dialogType:e,source:"studio",trialDaysLeft:t.daysLeft,dialogTrialStage:Xu({showOnLoad:r,dialogId:i.id}),dialogDismissAction:n}),f()},[t,f,r,l]),C=(0,s.useCallback)(e=>()=>{let n=t?.showOnLoad||t?.showOnClick;n&&l.log(Xc,{dialogId:n.id,dialogRevision:n._rev,dialogType:"modal",source:"studio",trialDaysLeft:t.daysLeft,dialogTrialStage:Xu({showOnLoad:r,dialogId:n.id}),dialogCtaType:"openURL"===e?"upgrade":"learnMore"}),h()},[t,h,l,r]),x=(0,s.useCallback)(()=>{t?.showOnLoad&&l.log(Xc,{dialogId:t.showOnLoad.id,dialogRevision:t.showOnLoad._rev,dialogType:"popover",source:"studio",trialDaysLeft:t.daysLeft,dialogTrialStage:Xu({showOnLoad:!0,dialogId:t.showOnLoad.id}),dialogCtaType:"learnMore"}),h()},[t?.showOnLoad,t?.daysLeft,h,l]),b=(0,s.useCallback)(()=>{t?.showOnClick&&l.log(Xs,{dialogId:t.showOnClick.id,dialogRevision:t.showOnClick._rev,dialogTrigger:"fromClick",dialogType:"modal",source:"studio",trialDaysLeft:t.daysLeft,dialogTrialStage:Xu({showOnLoad:!0,dialogId:t.showOnClick.id})}),h()},[t?.showOnClick,t?.daysLeft,l,h]);if(!t?.id)return null;let v=r?t.showOnLoad:t.showOnClick;if(!v)return null;let j="sidebar"===e?(0,a.jsx)(Xx,{toggleShowContent:b,daysLeft:t.daysLeft,ref:u}):(0,a.jsx)(Xy,{toggleShowContent:b,daysLeft:t.daysLeft,totalDays:t.totalDays,ref:u});return v?.dialogType==="popover"?(0,a.jsx)(y.AM,{open:n&&p,size:0,scheme:o,radius:3,tone:"default",portal:!0,placement:"sidebar"===e?"top":"bottom-end",content:(0,a.jsx)(Xv,{content:v,handleClose:g("popover"),handleOpenNext:x}),children:j}):(0,a.jsxs)(a.Fragment,{children:[j,(0,a.jsx)(Xf,{content:v,onClose:g("modal"),onOpenNext:C("openNext"),onOpenUrlCallback:C("openURL"),open:n})]})}let Xw=({children:e})=>{let t=(0,tq.rd)(),[n,r]=(0,s.useState)(null),[i,o]=(0,s.useState)(!1),[l,d]=(0,s.use
3759State)(!1),u=ee7({apiVersion:"2023-12-11"}),p=(0,e5.Jr)();(0,s.useEffect)(()=>{let e=n?.showOnLoad;i&&l&&e&&p.log(Xs,{dialogId:e.id,dialogRevision:e._rev,dialogTrialStage:Xu({showOnLoad:l,dialogId:e.id}),dialogTrigger:l?"auto":"fromClick",dialogType:e.dialogType,source:"studio",trialDaysLeft:n.daysLeft})},[i,n,l,p]);let m=new URLSearchParams(t.state._searchParams),h=m.get("trialState"),f=m.get("seenBefore");(0,s.useEffect)(()=>{let e=new URLSearchParams;e.append("studioVersion",re.s),h&&e.append("trialState",h),f&&e.append("seenBefore",f);let t=e.get("trialState")?"/journey/trial/override":"/journey/trial",n=u.observable.request({url:`${t}?${e.toString()}`}).subscribe(e=>{r(e),e?.showOnLoad&&(d(!0),o(!0))},()=>{});return()=>{n.unsubscribe()}},[u,f,h]);let g=(0,s.useCallback)((e=!1)=>{l?(d(!1),o(e),n?.showOnLoad?.id&&u.request({url:`/journey/trial/${n?.showOnLoad.id}`,method:"POST"})):o(e=>!e)},[u,l,n?.showOnLoad?.id]),C=(0,s.useMemo)(()=>({data:n,showDialog:i,toggleShowContent:g,showOnLoad:l}),[n,i,l,g]);return(0,a.jsx)(c.sj.Provider,{value:C,children:e})},X_=(0,g.I4)(u.Zp).attrs({overflow:"hidden",radius:2})`
3760  height: ${25}px;
3761  width: ${25}px;
3762`,Xk=(0,g.I4)(u.Zp)`
3763  border-radius: ${({theme:e})=>(0,u.D0)(e.sanity.radius[2])};
3764  display: flex;
3765  outline: none;
3766  text-decoration: none;
3767  &:focus-visible {
3768    box-shadow: ${({theme:e})=>jP({base:e.sanity.color.base,focusRing:{...e.sanity.focusRing,offset:1}})};
3769  }
3770`;function XS(){let e,t,n,r,i,l=(0,o.c)(12),s=rW(),{activeWorkspace:d}=FS();l[0]===Symbol.for("react.memo_cache_sentinel")?(e={state:{}},l[0]=e):e=l[0];let{href:c,onClick:p}=(0,tq.DN)(e),m=s.length>1;return l[1]!==d||l[2]!==m?(t=(0,a.jsx)(X_,{children:(0,a.jsx)(u.so,{align:"center",height:"fill",justify:"center",children:m||d.customIcon?(0,a.jsx)(Gg,{icon:d.icon,size:"small"}):(0,a.jsx)(ri.jM,{width:"100%",height:"100%"})})}),n=!m&&(0,a.jsx)(u.az,{paddingX:2,children:(0,a.jsx)(u.EY,{size:1,weight:"medium",children:d.title})}),l[1]=d,l[2]=m,l[3]=t,l[4]=n):(t=l[3],n=l[4]),l[5]!==t||l[6]!==n?(r=(0,a.jsxs)(u.so,{align:"center",children:[t,n]}),l[5]=t,l[6]=n,l[7]=r):r=l[7],l[8]!==p||l[9]!==c||l[10]!==r?(i=(0,a.jsx)(Xk,{as:"a",href:c,onClick:p,children:r}),l[8]=p,l[9]=c,l[10]=r,l[11]=i):i=l[11],i}function XT(e){let t,n,r=(0,o.c)(4),{setScheme:i}=e,{t:l}=iJ(),s=Kw(i,l);return r[0]!==s?(t=s.map(XI),r[0]=s,r[1]=t):t=r[1],r[2]!==t?(n=(0,a.jsx)(u.Zp,{borderTop:!0,flex:"none",padding:2,overflow:"auto",children:(0,a.jsx)(u.BJ,{as:"ul",space:1,children:t})}),r[2]=t,r[3]=n):n=r[3],n}function XI(e){let{icon:t,label:n,name:r,onSelect:i,selected:o,title:l}=e;return(0,a.jsx)(u.BJ,{as:"li",children:(0,a.jsx)(y.$n,{"aria-label":n,icon:t,iconRight:o&&(0,a.jsx)(C.Nrt,{}),justify:"flex-start",mode:"bleed",onClick:i,selected:o,size:"large",text:l})},r)}function XE(){return(0,o.c)(9),iX(),null}function X$(){let e,t,n,r,i,l,s,d=(0,o.c)(18),{currentUser:c,projectId:p}=lE();d[0]!==c?(e=c&&iN(c,"administrator"),d[0]=c,d[1]=e):e=d[1];let m=!!e,{t:h}=iJ();d[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(u.BJ,{as:"li",children:(0,a.jsx)(Xj,{type:"sidebar"})}),d[2]=t):t=d[2],d[3]!==h?(n=h("user-menu.action.manage-project-aria-label"),d[3]=h,d[4]=n):n=d[4];let f=`https://sanity.io/manage/project/${p}`;return d[5]!==h?(r=h("user-menu.action.manage-project"),d[5]=h,d[6]=r):r=d[6],d[7]!==n||d[8]!==f||d[9]!==r?(i=(0,a.jsx)(u.BJ,{as:"li",children:(0,a.jsx)(y.$n,{"aria-label":n,as:"a",href:f,icon:C.DP5,justify:"flex-start",mode:"bleed",size:"large",target:"_blank",text:r})}),d[7]=n,d[8]=f,d[9]=r,d[10]=i):i=d[10],d[11]!==m||d[12]!==p||d[13]!==h?(l=m&&(0,a.jsx)(u.BJ,{as:"li",children:(0,a.jsx)(y.$n,{"aria-label":h("user-menu.action.invite-members-aria-label"),as:"a",href:`https://www.sanity.io/manage/project/${p}/members?invite=true`,icon:C.gIx,justify:"flex-start",mode:"bleed",size:"large",target:"_blank",text:h("user-menu.action.invite-members")})}),d[11]=m,d[12]=p,d[13]=h,d[14]=l):l=d[14],d[15]!==i||d[16]!==l?(s=(0,a.jsx)(u.Zp,{borderTop:!0,flex:"none",padding:2,children:(0,a.jsxs)(u.BJ,{as:"ul",space:1,children:[t,i,l]})}),d[15]=i,d[16]=l,d[17]=s):s=d[17],s}let XA={bounce:0,damping:20,mass:.5,stiffness:200,type:"spring"},XD={open:{opacity:1},closed:{opacity:0}
3770},Xz={open:{x:"0%"},closed:{x:"-100%"}},XM=(0,g.I4)(u.Wd)`
3771  position: fixed;
3772  top: 0;
3773  left: 0;
3774  width: 100%;
3775  height: 100%;
3776`,XP=(0,g.I4)(tW.P.create(u.Zp))`
3777  position: absolute;
3778  top: 0;
3779  left: 0;
3780  right: 0;
3781  bottom: 0;
3782  background: var(--card-shadow-penumbra-color);
3783`,XR=(0,g.I4)(tW.P.create(u.Zp))`
3784  position: relative;
3785  pointer-events: all;
3786  flex-direction: column;
3787  height: 100%;
3788  min-width: 200px;
3789  max-width: 280px;
3790  overflow: auto;
3791`,XO=(0,s.memo)(function(e){let t,n,r,i,l,s,d=(0,o.c)(23),{__internal_actions:c,activeToolName:p,isOpen:m,onClose:h,tools:f}=e,g=Kb(),{auth:x,currentUser:b}=lE(),v=rW(),j=Xi(),{t:w}=iJ();d[0]!==h?(t=e=>{"Escape"===e.key&&h()},d[0]=h,d[1]=t):t=d[1];let _=t;d[2]!==h?(n=e=>{e?.(),h()},d[2]=h,d[3]=n):n=d[3];let k=n;return d[4]!==c||d[5]!==k?(i=c?.filter(XV)?.map(e=>{let{render:t}=e;return t?(0,a.jsx)(t,{},e.name):(0,a.jsx)(y.$n,{icon:e?.icon,justify:"flex-start",mode:"bleed",onClick:()=>k(e.onAction),selected:e.selected,size:"large",text:e.title,width:"fill"},e.name)}),d[4]=c,d[5]=k,d[6]=i):i=d[6],r=i,d[7]!==j||d[8]!==r||d[9]!==p||d[10]!==x||d[11]!==b?.email||d[12]!==b?.name||d[13]!==_||d[14]!==m||d[15]!==h||d[16]!==g||d[17]!==w||d[18]!==f||d[19]!==v?(l=m&&(0,a.jsx)(eX.Ay,{returnFocus:!0,children:(0,a.jsxs)(XM,{onKeyDown:_,children:[(0,a.jsx)(XP,{animate:"open","data-open":m,exit:"closed",initial:"closed",onClick:h,transition:XA,variants:XD}),(0,a.jsxs)(XR,{animate:"open","data-open":m,display:"flex",exit:"closed",height:"fill",initial:"closed",shadow:1,transition:XA,variants:Xz,children:[(0,a.jsx)(u.Zp,{borderBottom:!0,children:(0,a.jsxs)(u.BJ,{space:3,padding:3,children:[(0,a.jsxs)(u.so,{align:"center",children:[(0,a.jsx)(u.so,{flex:1,align:"center",paddingRight:2,children:(0,a.jsx)(KI,{capability:"globalUserMenu",children:(0,a.jsxs)(u.so,{flex:1,align:"center",children:[(0,a.jsx)(cz,{size:1,user:"me"}),(0,a.jsx)(u.az,{flex:1,marginLeft:3,title:b?.name||b?.email,children:(0,a.jsx)(u.EY,{size:1,textOverflow:"ellipsis",weight:"medium",children:b?.name||b?.email})})]})})}),(0,a.jsx)(y.$n,{icon:C.USm,mode:"bleed",onClick:h,tooltipProps:{content:w("user-menu.close-menu")}})]}),v.length>1&&(0,a.jsxs)(u.so,{flex:1,gap:1,children:[(0,a.jsx)(XS,{}),(0,a.jsx)(GS,{})]})]})}),(0,a.jsxs)(u.so,{direction:"column",flex:1,justify:"space-between",overflow:"auto",children:[(0,a.jsx)(u.Zp,{flex:"none",padding:2,children:(0,a.jsx)(j,{activeToolName:p,closeSidebar:h,context:"sidebar",isSidebarOpen:m,tools:f})}),(0,a.jsxs)(u.so,{direction:"column",children:[r&&(0,a.jsx)(u.Zp,{flex:"none",padding:2,children:(0,a.jsx)(u.BJ,{space:1,children:r})}),g&&(0,a.jsx)(XT,{setScheme:g}),(0,a.jsx)(XE,{}),(0,a.jsx)(X$,{})]})]}),x.logout&&(0,a.jsx)(u.Zp,{flex:"none",padding:2,borderTop:!0,children:(0,a.jsx)(u.BJ,{children:(0,a.jsx)(y.$n,{iconRight:C.NAZ,justify:"flex-start",mode:"bleed",onClick:x.logout,size:"large",text:w("user-menu.action.sign-out")})})})]})]})}),d[7]=j,d[8]=r,d[9]=p,d[10]=x,d[11]=b?.email,d[12]=b?.name,d[13]=_,d[14]=m,d[15]=h,d[16]=g,d[17]=w,d[18]=f,d[19]=v,d[20]=l):l=d[20],d[21]!==l?(s=(0,a.jsx)(tK.N,{children:l}),d[21]=l,d[22]=s):s=d[22],s});function XV(e){return"sidebar"===e.location}let XL=(0,g.I4)(y.AM)(()=>(0,g.AH)`
3792    [data-ui='Popover__wrapper'] {
3793      width: 320px;
3794      display: flex;
3795      flex-direction: column;
3796      border-radius: ${({theme:e})=>e.sanity.radius[3]}px;
3797      position: relative;
3798      overflow: hidden;
3799      overflow: clip;
3800    }
3801  `),XF=(0,g.I4)(y.lG)(()=>(0,g.AH)`
3802    [data-ui='DialogCard'] {
3803      justify-content: flex-start;
3804    }
3805  `),XB=(0,g.I4)(u.so)``,XN=(0,g.I4)(u.Zp)`
3806  min-height: max-content;
3807`,XY=(0,g.I4)(u.Zp)`
3808  min-height: max-content;
3809`,XH=(0,g.I4)(u.so)(e=>{let{$maxDisplayedItems:t,$itemHeight:n}=e;return(0,g.AH)`
3810    --item-height: ${n}px;
3811    --max-items: ${t};
3812    --list-padding: 0.5rem;
3813
3814    position: relative;
3815    max-height: calc(var(--item-height) * var(--max-items) + var(--list-padding));
3816    min-height: calc((var(--item-height) * 1));
3817  `});function XZ(e){let t,n,r,i,l,s,d,c,p=(0,o.c)(28),{option:m,currentUser:h,onClick:f,preview:g}=e,{selectedReleaseId:C}=oW();
3817p[0]!==m.schemaType||p[1]!==m.templateId||p[2]!==C?(n={template:m.templateId,type:m.schemaType,version:C},p[0]=m.schemaType,p[1]=m.templateId,p[2]=C,p[3]=n):n=p[3],t=n,p[4]!==t?(r={intent:"create",params:t},p[4]=t,p[5]=r):r=p[5];let{onClick:x,href:b}=(0,tq.cQ)(r);p[6]!==f||p[7]!==x||p[8]!==m?(i=e=>{x(e),f(m)},p[6]=f,p[7]=x,p[8]=m,p[9]=i):i=p[9];let v=i,{title:j}=iK(m);p[10]!==h?(l=(0,a.jsx)(C6,{currentUser:h,context:"create-document"}),p[10]=h,p[11]=l):l=p[11];let w=m.hasPermission?"a":"button",_=`create-new-${m.templateId}`,k=!m.hasPermission,S="inline"===g?3:4,T="inline"===g?1:void 0;return p[12]!==T||p[13]!==j?(s=(0,a.jsx)(u.EY,{size:T,children:j}),p[12]=T,p[13]=j,p[14]=s):s=p[14],p[15]!==v||p[16]!==b||p[17]!==s||p[18]!==w||p[19]!==_||p[20]!==k||p[21]!==S?(d=(0,a.jsx)("div",{children:(0,a.jsx)(u.Zp,{as:w,"data-testid":_,disabled:k,href:b,marginBottom:1,onClick:v,padding:S,radius:2,children:s})}),p[15]=v,p[16]=b,p[17]=s,p[18]=w,p[19]=_,p[20]=k,p[21]=S,p[22]=d):d=p[22],p[23]!==m.hasPermission||p[24]!==m.id||p[25]!==d||p[26]!==l?(c=(0,a.jsx)(y.m_,{disabled:m.hasPermission,portal:!0,content:l,children:d},m.id),p[23]=m.hasPermission,p[24]=m.id,p[25]=d,p[26]=l,p[27]=c):c=p[27],c}let XU=(0,g.I4)(u.so)`
3818  min-height: 100px;
3819`;function Xq(e){let t,n,r,i,l,s=(0,o.c)(27),{currentUser:d,loading:c,onDocumentClick:p,options:m,preview:h,searchQuery:f,textInputElement:g}=e,{t:C}=iJ(),y=m.length>0&&!c;s[0]!==p?(t=()=>{p()},s[0]=p,s[1]=t):t=s[1];let x=t;s[2]!==m?(n=e=>m[e]?.hasPermission===!1,s[2]=m,s[3]=n):n=s[3];let b=n;s[4]!==d||s[5]!==x||s[6]!==h?(r=e=>(0,a.jsx)(XZ,{currentUser:d,onClick:x,option:e,preview:h},e.id),s[4]=d,s[5]=x,s[6]=h,s[7]=r):r=s[7];let v=r;if(c){let e;return s[8]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(r5,{showText:!0}),s[8]=e):e=s[8],e}if(!y&&f){let e,t;return s[9]!==f?(e={searchQuery:f},s[9]=f,s[10]=e):e=s[10],s[11]!==C||s[12]!==e?(t=(0,a.jsx)(XU,{align:"center",flex:1,height:"fill",justify:"center",padding:4,sizing:"border",children:(0,a.jsx)(u.EY,{align:"center",muted:!0,size:1,children:(0,a.jsx)(an,{t:C,i18nKey:"new-document.no-results",values:e})})}),s[11]=C,s[12]=e,s[13]=t):t=s[13],t}if(!y){let e,t;return s[14]!==C?(e=C("new-document.no-document-types-found"),s[14]=C,s[15]=e):e=s[15],s[16]!==e?(t=(0,a.jsx)(XU,{align:"center",flex:1,height:"fill",justify:"center",padding:4,sizing:"border",children:(0,a.jsx)(u.EY,{align:"center",muted:!0,size:1,children:e})}),s[16]=e,s[17]=t):t=s[17],t}s[18]!==C?(i=C("new-document.new-document"),s[18]=C,s[19]=i):i=s[19];let j="inline"===h?1:2;return s[20]!==b||s[21]!==m||s[22]!==v||s[23]!==i||s[24]!==j||s[25]!==g?(l=(0,a.jsx)(rY,{activeItemDataAttr:"data-hovered",ariaLabel:i,autoFocus:iO?void 0:"input",getItemDisabled:b,inputElement:g,itemHeight:33,items:m,overscan:5,padding:j,paddingBottom:0,renderItem:v}),s[20]=b,s[21]=m,s[22]=v,s[23]=i,s[24]=j,s[25]=g,s[26]=l):l=s[26],l}function XJ(e){let{canCreateDocument:t,modal:n="popover",loading:r,options:i}=e,[o,l]=(0,s.useState)(!1),[d,c]=(0,s.useState)(""),p=(0,s.useRef)(null),m=(0,s.useRef)(null),[h,f]=(0,s.useState)(null),[g,x]=(0,s.use
3819State)(null),{t:b}=iJ(),v=iW(i),j=Kj(),w=Cl(),k=Cm(),S=i.length>0,T=!t||!S,I=b("new-document.filter-placeholder"),E=b("new-document.title"),$=b("new-document.open-dialog-aria-label"),A=(0,s.useMemo)(()=>i.filter(e=>{let t=k.get(e.schemaType);return t&&!(0,_.fq)(t)}),[i,k]),D=(0,s.useMemo)(()=>A.map(e=>({...e,title:v({...e,title:e?.title||e.id}).title})).sort((e,t)=>e.title.localeCompare(t.title)).filter(e=>(function(e,t){let n=t.title.toLowerCase();return e.trim().toLowerCase().split(/[\s\-_]+/).every(e=>n.includes(e))})(d,e)).sort((e,t)=>(function(e,t,n){let r=t.title.toLowerCase(),i=n.title.toLowerCase(),a=e.trim().toLowerCase();return r.startsWith(a)&&!i.startsWith(a)?-1:i.startsWith(a)&&!r.startsWith(a)?1:r.includes(a)&&!i.includes(a)?-1:i.includes(a)&&!r.includes(a)?1:0})(d,e,t)),[A,d,v]),z=(0,s.useCallback)(e=>{c(e.currentTarget.value)},[]),M=(0,s.useCallback)(()=>l(e=>!e),[]),P=(0,s.useCallback)(()=>{l(!1),c(""),h?.focus()},[h]),R=(0,s.useCallback)(e=>{"ArrowDown"!==e.key||o||l(!0)},[o]),O=(0,s.useCallback)(e=>{("Escape"===e.key||"Tab"===e.key)&&o&&P()},[P,o]);(0,u.PR)(o&&P,()=>[h,m.current,p.current]);let V=(0,s.useMemo)(()=>({currentUser:w,loading:r,onDocumentClick:M,options:D,searchQuery:d,preview:"popover"===n?"inline":"default",textInputElement:g}),[w,D,M,r,n,g,d]),L=(0,s.useMemo)(()=>({__unstable_disableFocusRing:!0,border:!1,"data-testid":"new-document-button-search-input",defaultValue:d,disabled:r,icon:C.WIv,onChange:z,placeholder:I,ref:x}),[z,r,I,d]),F=(0,s.useMemo)(()=>({"aria-label":$,"data-testid":"new-document-button",disabled:T||r,icon:C.REV,text:"",mode:"bleed",onClick:M,ref:f,selected:o}),[T,M,r,o,$]),B=(0,s.useMemo)(()=>S?t?(0,a.jsx)(u.EY,{size:1,children:b("new-document.create-new-document-label")}):(0,a.jsx)(C6,{currentUser:w,context:"create-any-document"}):(0,a.jsx)(u.EY,{size:1,children:b("new-document.no-document-types-label")}),[t,w,S,b]),N=(0,s.useMemo)(()=>({content:B,disabled:r||o,scheme:j}),[r,o,j,B]);return"dialog"===n?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(y.m_,{...N,children:(0,a.jsx)("div",{children:(0,a.jsx)(y.$n,{...F})})}),o&&(0,a.jsx)(XF,{header:E,id:"create-new-document-dialog",onClickOutside:P,onClose:P,ref:m,scheme:j,width:1,children:(0,a.jsxs)(XB,{direction:"column",flex:1,height:"fill",children:[(0,a.jsx)(XY,{padding:2,borderBottom:!0,children:(0,a.jsx)(u.ks,{"data-testid":"new-document-button-search-input",...L})}),(0,a.jsx)(u.so,{direction:"column",overflow:"hidden",children:(0,a.jsx)(Xq,{...V})})]})})]}):(0,a.jsx)(XL,{constrainSize:!0,onKeyDown:O,open:o,tone:"default",portal:!0,radius:3,ref:p,scheme:j,content:(0,a.jsxs)(XB,{direction:"column",flex:1,forwardedAs:eX.Ay,height:"fill",returnFocus:!0,children:[(0,a.jsx)(XN,{sizing:"border",children:(0,a.jsx)(u.BJ,{children:(0,a.jsx)(u.Zp,{borderBottom:!0,padding:1,children:(0,a.jsx)(u.ks,{...L,fontSize:1,radius:1})})})}),(0,a.jsx)(XH,{$itemHeight:33,$maxDisplayedItems:10,direction:"column",overflow:"hidden",children:(0,a.jsx)(Xq,{...V})})]}),children:(0,a.jsx)("div",{children:(0,a.jsx)(y.m_,{...N,children:(0,a.jsx)("div",{children:(0,a.jsx)(y.$n,{...F,"aria-expanded":o,"aria-haspopup":"true",onKeyDown:R})})})})})}let XW=(0,s.memo)(function(e){let t,n,r,i,d,c,u,p,m,h=(0,o.c)(35),{locations:f,user:g,focused:C,onFocus:x}=e,[b,v]=(0,s.useState)(null),{t:j}=iJ();h[0]!==C||h[1]!==b?(t=()=>{C&&b&&(b.focus(),b.setAttribute("data-selected","")),C||b?.removeAttribute("data-selected")},n=[b,C],h[0]=C,h[1]=b,h[2]=t,h[3]=n):(t=h[2],n=h[3]),(0,s.useEffect)(t,n),h[4]!==x||h[5]!==g.id?(r=()=>{x(g.id)},h[4]=x,h[5]=g.id,h[6]=r):r=h[6];let w=r;if(h[7]!==f?(i=f||[],h[7]=f,h[8]=i):i=h[8],h[9]!==w||h[10]!==i||h[11]!==g){c=Symbol.for("react.early_return_sentinel");e:{let e=t2(i,["lastActiveAt"],["desc"]).find(XK);if(d=!!e?.documentId,e){let t,n,r,i=ix(e.documentId),o={id:ib(e.documentId),path:l.dI(e.path)};h[14]!==i?(t=i?[["perspective",i]]:[],h[14]=i,h[15]=t):t=h[15],h[16]!==g?(n=(0,a.jsx)(cz,{size:1,user:g}),h[16]=g,h[17]=n):n=h[17],h[18]!==w||h[19]!==o||h[20]!==t||h[21]!==n||h[22]!==g.displayName?(r=(0,a.jsx)(y.Dr,{as:tq.RZ,intent:"edit",params:o,searchParams:t,"data-as":"a",onFocus:w,preview:n,ref:v,text:g.displayName}),h[18]=w,h[19]=o,h[20]=t,h[21]=n,h[22]=g.displayName,h[23]=r):r=h[23],c=r;break e}}h[9]=w,h[10]=i,h[11]=g,h[12]=d,h[13]=c}else d=h[12],c=h[13];if(c!==Symbol.for("react.early_return_sentinel"))return c;let _=!d;return h[24]!==d||h[25]!==j?(u=d?void 0:{content:j("presence.not-in-a-document"),placement:"left"},h[24]=d,h[25]=j,h[26]=u):u=h[26],h[27]!==g?(p=(0,a.jsx)(cz,{size:1,user:g}),h[27]=g,h[28]=p):p=h[28],h[29]!==w||h[30]!==_||h[31]!==u||h[32]!==p||h[33]!==g.displayName?(m=(0,a.jsx)(y.Dr,{as:"div",disabled:_,tooltipProps:u,"data-as":"a",onFocus:w,preview:p,ref:v,text:g.displayName}),h[29]=w,h[30]=_,h[31]=u,h[32]=p,h[33]=g.displayName,h[34]=m):m=h[34],m});function XK(e){return e.documentId}
3819let XG=(0,g.I4)(u.W1)`
3820  max-width: 260px;
3821`,XX=(0,g.I4)(u.BJ)`
3822  position: sticky;
3823  bottom: 0;
3824  background-color: var(--card-bg-color);
3825`;function XQ(){let e,t,n,r,i,l,d,c,p,m,h,f,g,x,b,v,j,w,_,k=(0,o.c)(40),S=function(){let e,t,n=(0,o.c)(2),[r,i]=(0,s.useReducer)(Mo,!1);n[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>(0,s.startTransition)(i),t=[],n[0]=e,n[1]=t):(e=n[0],t=n[1]),(0,s.useEffect)(e,t);let a=z9();return(0,eH.J)(r?a.globalPresence$:Ma,Mi)}(),{projectId:T}=lE(),I=Kj(),{t:E}=iJ(),$=S.length>0,[A,D]=(0,s.useState)();k[0]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{D(e)},k[0]=e):e=k[0];let z=e;k[1]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{D("")},k[1]=t):t=k[1];let M=t;k[2]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{D("")},k[2]=n):n=k[2];let P=n;k[3]!==E?(i=E("presence.aria-label"),k[3]=E,k[4]=i):i=k[4];let R=$?"positive":void 0;k[5]!==E?(l=E("presence.tooltip-content"),k[5]=E,k[6]=l):l=k[6],k[7]!==l?(d={content:l},k[7]=l,k[8]=d):d=k[8],k[9]!==i||k[10]!==R||k[11]!==d?(c=(0,a.jsx)(enu,{icon:C.c2u,"aria-label":i,mode:"bleed",tone:R,tooltipProps:d}),k[9]=i,k[10]=R,k[11]=d,k[12]=c):c=k[12],r=c,k[13]===Symbol.for("react.memo_cache_sentinel")?(m=["bottom"],k[13]=m):m=k[13],k[14]!==I?(h={constrainSize:!0,fallbackPlacements:m,placement:"bottom",portal:!0,scheme:I,tone:"default"},k[14]=I,k[15]=h):h=k[15],p=h,k[16]!==E?(f=E("presence.aria-label"),k[16]=E,k[17]=f):f=k[17],k[18]!==A||k[19]!==$||k[20]!==S?(g=$&&S.map(e=>(0,a.jsx)(XW,{focused:A===e.user.id,onFocus:z,locations:e.locations,user:e.user},e.user.id)),k[18]=A,k[19]=$,k[20]=S,k[21]=g):g=k[21],k[22]!==$||k[23]!==E?(x=!$&&(0,a.jsx)(u.az,{padding:3,children:(0,a.jsxs)(u.BJ,{space:3,children:[(0,a.jsx)(u.EY,{weight:"medium",size:1,children:E("presence.no-one-else-title")}),(0,a.jsx)(u.EY,{size:1,muted:!0,children:E("presence.no-one-else-description")})]})}),k[22]=$,k[23]=E,k[24]=x):x=k[24],k[25]===Symbol.for("react.memo_cache_sentinel")?(b=(0,a.jsx)(u.Nj,{}),k[25]=b):b=k[25];let O=`https://www.sanity.io/manage/project/${T}/members?invite=true`;return k[26]!==E?(v=E("presence.action.manage-members"),k[26]=E,k[27]=v):v=k[27],k[28]!==O||k[29]!==v?(j=(0,a.jsxs)(XX,{space:1,children:[b,(0,a.jsx)(y.Dr,{as:"a",href:O,icon:C.gIx,onFocus:M,rel:"noopener noreferrer",target:"_blank",text:v})]}),k[28]=O,k[29]=v,k[30]=j):j=k[30],k[31]!==g||k[32]!==x||k[33]!==j?(w=(0,a.jsxs)(XG,{children:[g,x,j]}),k[31]=g,k[32]=x,k[33]=j,k[34]=w):w=k[34],k[35]!==r||k[36]!==p||k[37]!==f||k[38]!==w?(_=(0,a.jsx)(y.IU,{button:r,"aria-label":f,id:"global-presence-menu",menu:w,onClose:P,popover:p}),k[35]=r,k[36]=p,k[37]=f,k[38]=w,k[39]=_):_=k[39],_}function X1(e){let t,n,r,i,l,d,c,m,h,f,g,x,b,v,j,w,_,k,S,T,I,E,$,A,D,z,M,P,R=(0,o.c)(70),{t:O}=iJ(),{latestVersion:V,onClose:L,currentVersion:F}=e,B=(0,s.useId)(),[N,Y]=(0,s.useState)(!1),{push:H}=(0,p.dj)();R[0]===Symbol.for("react.memo_cache_sentinel")?(t=K6(),R[0]=t):t=R[0];let Z=t,U=`## Current version
3826${F}
3827
3828## Latest version
3829${V}
3830
3831## Auto updates
3832${Z?"Enabled":"Disabled"}
3833
3834## Page URL
3835${document.location.href}
3836
3837## User agent
3838${navigator.userAgent}
3839`;R[1]!==H||R[2]!==U?(n=()=>{navigator.clipboard.writeText(U).then(()=>{Y(!0)},e=>{H({status:"warning",title:`Unable to write to clipboard: ${e&&"object"==typeof e&&"message"in e&&e.message||"unknown error"}`})})},R[1]=H,R[2]=U,R[3]=n):n=R[3];let q=n;R[4]===Symbol.for("react.memo_cache_sentinel")?(r=()=>{let e=setTimeout(()=>Y(!1),3e3);return()=>clearTimeout(e)},R[4]=r):r=R[4],R[5]!==N?(i=[N],R[5]=N,R[6]=i):i=R[6],(0,s.useEffect)(r,i),R[7]!==O?(l=O("about-dialog.version-info.current-version.header"),R[7]=O,R[8]=l):l=R[8],R[9]!==l?(d=(0,a.jsx)(u.EY,{as:"h2",size:1,weight:"medium",children:l}),R[9]=l,R[10]=d):d=R[10],R[11]!==F?(c=(0,a.jsx)(u.EY,{muted:!0,size:1,children:F}),R[11]=F,R[12]=c):c=R[12],R[13]!==d||R[14]!==c?(m=(0,a.jsxs)(u.BJ,{space:3,children:[d,c]}),R[13]=d,R[14]=c,R[15]=m):m=R[15],R[16]!==O?(h=O("about-dialog.version-info.current-version.header"),R[16]=O,R[17]=h):h=R[17],R[18]!==h?(f=(0,a.jsx)(u.EY,{as:"h2",size:1,weight:"medium",children:h}),R[18]=h,R[19]=f):f=R[19],R[20]===Symbol.for("react.memo_cache_sentinel")?(g={},R[20]=g):g=R[20],R[21]!==O?(x=(0,a.jsx)(an,{t:O,i18nKey:"",components:g}),R[21]=O,R[22]=x):x=R[22],R[23]!==V||R[24]!==O?(b=O("about-dialog.version-info.latest-version.text",{latestVersion:V}),R[23]=V,R[24]=O,R[25]=b):b=R[25],R[26]!==F||R[27]!==V||R[28]!==O?(v=V===F?(0,a.jsxs)(a.Fragment,{children:["(",O("about-dialog.version-info.up-to-date"),")"]}):(0,a.jsxs)(a.Fragment,{children:["(",(0,a.jsx)("a",{href:"https://www.sanity.io/docs/upgrade",children:O("about-dialog.version-info.how-to-upgrade")}),")"]}),R[26]=F,R[27]=V,R[28]=O,R[29]=v):v=R[29],R[30]!==x||R[31]!==b||R[32]!==v?(j=(0,a.jsxs)(u.EY,{muted:!0,size:1,children:[x,b," ",v]}),R[30]=x,R[31]=b,R[32]=v,R[33]=j):j=R[33],R[34]!==j||R[35]!==f?(w=(0,a.jsxs)(u.BJ,{space:3,children:[f,j]}),R[34]=j,R[35]=f,R[36]=w):w=R[36],R[37]!==O?(_=O("about-dialog.version-info.auto-updates.header"),R[37]=O,R[38]=_):_=R[38],R[39]!==_?(k=(0,a.jsx)(u.EY,{as:"h2",size:1,weight:"medium",children:_}),R[39]=_,R[40]=k):k=R[40],R[41]!==O?(S=Z?(0,a.jsx)(u.EY,{muted:!0,size:1,children:O("about-dialog.version-info.auto-updates.enabled")}):(0,a.jsxs)(u.EY,{muted:!0,size:1,children:[O("about-dialog.version-info.auto-updates.disabled")," (",(0,a.jsx)("a",{href:"https://www.sanity.io/docs/auto-updating-studios",children:O("about-dialog.version-info.auto-updates.how-to-enable")}),")"]}),R[41]=O,R[42]=S):S=R[42],R[43]!==k||R[44]!==S?(T=(0,a.jsxs)(u.BJ,{space:3,children:[k,S]}),R[43]=k,R[44]=S,R[45]=T):T=R[45],R[46]!==O?(I=O("about-dialog.version-info.user-agent.header"),R[46]=O,R[47]=I):I=R[47],R[48]!==I?(E=(0,a.jsx)(u.EY,{as:"h2",size:1,weight:"medium",children:I}),R[48]=I,R[49]=E):E=R[49],R[50]===Symbol.for("react.memo_cache_sentinel")?($=(0,a.jsx)(u.EY,{muted:!0,size:1,children:navigator.userAgent}),R[50]=$):$=R[50],R[51]!==E?(A=(0,a.jsxs)(u.BJ,{space:3,children:[E,$]}),R[51]=E,R[52]=A):A=R[52];let J=N?C.Dee:C.TdU;return R[53]!==N||R[54]!==O?(D=O(N?"about-dialog.version-info.copy-to-cl
3839ipboard-button.copied-text":"about-dialog.version-info.copy-to-clipboard-button.text"),R[53]=N,R[54]=O,R[55]=D):D=R[55],R[56]!==q||R[57]!==J||R[58]!==D?(z=(0,a.jsx)(y.$n,{icon:J,mode:"bleed",text:D,paddingY:3,onClick:q}),R[56]=q,R[57]=J,R[58]=D,R[59]=z):z=R[59],R[60]!==w||R[61]!==T||R[62]!==A||R[63]!==z||R[64]!==m?(M=(0,a.jsxs)(u.BJ,{space:4,children:[m,w,T,A,z]}),R[60]=w,R[61]=T,R[62]=A,R[63]=z,R[64]=m,R[65]=M):M=R[65],R[66]!==B||R[67]!==L||R[68]!==M?(P=(0,a.jsx)(y.lG,{header:"About",width:1,onClickOutside:L,onClose:L,id:B,children:M}),R[66]=B,R[67]=L,R[68]=M,R[69]=P):P=R[69],P}let X2=(0,eQ.g_)({name:"Product Announcement Card Seen",version:1,description:"User viewed the product announcement card"}),X5=(0,eQ.g_)({name:"Product Announcement Card Clicked",version:1,description:"User clicked the product announcement card"}),X0=(0,eQ.g_)({name:"Product Announcement Card Dismissed",version:1,description:"User dismissed the product announcement card"}),X7=(0,eQ.g_)({name:"Product Announcement Viewed",version:1,description:"User viewed the product announcement"}),X3=(0,eQ.g_)({name:"Product Announcement Link Clicked",version:1,description:"User clicked the link in the product announcement "}),X8=(0,eQ.g_)({name:"Product Announcement Dismissed",version:1,description:"User dismissed the product announcement modal "}),X4=(0,eQ.g_)({name:"Whats New Help Menu Item Clicked",version:1,description:'User clicked the "Whats new" help menu item'});function X6(){}function X9(e){let t,n,r=(0,o.c)(9),{text:i}=e,{onDialogOpen:l,studioAnnouncements:d}=function(){let e=(0,o.c)(1),t=(0,s.useContext)(c.Zb);if(!t){let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={studioAnnouncements:[],unseenAnnouncements:[],onDialogOpen:X6},e[0]=t):t=e[0],t}return t}(),u=(0,e5.Jr)();r[0]!==l||r[1]!==d[0]?._id||r[2]!==d[0]?.name||r[3]!==d[0]?.title||r[4]!==u?(t=()=>{l("help_menu"),u.log(X4,{source:"studio",announcement_id:d[0]?._id,announcement_title:d[0]?.title,announcement_internal_name:d[0]?.name,studio_version:re.s})},r[0]=l,r[1]=d[0]?._id,r[2]=d[0]?.name,r[3]=d[0]?.title,r[4]=u,r[5]=t):t=r[5];let p=t;return 0===d.length?null:(r[6]!==p||r[7]!==i?(n=(0,a.jsx)(y.Dr,{tone:"default",text:i,onClick:p}),r[6]=p,r[7]=i,r[8]=n):n=r[8],n)}function Qe(e){let t,n,r,i,l,s,d,c,p,m,h,f,g,C,x,b,v,j=(0,o.c)(44),{error:w,isLoading:_,value:k,onAboutDialogOpen:S}=e,T=k?.resources?.sectionArray,I=k?.latestVersion;j[0]===Symbol.for("react.memo_cache_sentinel")?(t=K6(),j[0]=t):t=j[0];let E=t,{t:$}=iJ();if(_){let e;return j[1]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(r5,{showText:!0}),j[1]=e):e=j[1],e}j[2]!==$?(n=$("help-resources.action.join-our-community"),j[2]=$,j[3]=n):n=j[3],j[4]!==n?(r=(0,a.jsx)(y.Dr,{as:"a",text:n,href:"https://www.sanity.io/exchange/community",target:"_blank"}),j[4]=n,j[5]=r):r=j[5],j[6]!==$?(i=$("help-resources.action.help-and-support"),j[6]=$,j[7]=i):i=j[7],j[8]!==i?(l=(0,a.jsx)(y.Dr,{as:"a",text:i,href:"https://www.sanity.io/contact/support",target:"_blank"}),j[8]=i,j[9]=l):l=j[9],j[10]!==$?(s=$("help-resources.action.contact-sales"),j[10]=$,j[11]=s):s=j[11],j[12]!==s?(d=(0,a.jsx)(y.Dr,{as:"a",text:s,href:"https://www.sanity.io/contact/sales?ref=studio",target:"_blank"}),j[12]=s,j[13]=d):d=j[13],j[14]===Symbol.for("react.memo_cache_sentinel")?(c=(0,a.jsx)(u.Nj,{}),j[14]=c):c=j[14],j[15]!==r||j[16]!==l||j[17]!==d?(p=(0,a.jsxs)(a.Fragment,{children:[r,l,d,c]}),j[15]=r,j[16]=l,j[17]=d,j[18]=p):p=j[18];let A=p;return j[19]!==w||j[20]!==A||j[21]!==k?(m=(void 0===k||w)&&(0,a.jsx)("div",{children:A}),j[19]=w,j[20]=A,j[21]=k,j[22]=m):m=j[22],j[23]!==w||j[24]!==T?(h=!w&&T?.map(Qt),j[23]=w,j[24]=T,j[25]=h):h=j[25],j[26]!==$?(f=$("help-resources.studio-version",{studioVersion:re.s}),j[26]=$,j[27]=f):f=j[27],j[28]!==f?(g=(0,a.jsx)(u.EY,{size:1,weight:"medium",textOverflow:"ellipsis",children:f}),j[28]=f,j[29]=g):g=j[29],j[30]!==w||j[31]!==I||j[32]!==$?(C=!w&&I&&!E&&(0,a.jsx)(u.az,{paddingTop:2,children:(0,a.jsx)(u.EY,{size:1,textOverflow:"ellipsis",children:$("help-resources.latest-sanity-version",{latestVersion:I})})}),j[30]=w,j[31]=I,j[32]=$,j[33]=C):C=j[33],j[34]!==g||j[35]!==C?(x=(0,a.jsxs)(u.BJ,{space:1,children:[g,C]}),j[34]=g,j[35]=C,j[36]=x):x=j[36],j[37]!==S||j[38]!==x?(b=(0,a.jsx)(u.Dr,{onClick:S,children:x}),j[37]=S,j[38]=x,j[39]=b):b=j[39],j[40]!==m||j[41]!==h||j[42]!==b?(v=(0,a.jsxs)(a.Fragment,{children:[m,h,b]}),j[40]=m,j[41]=h,j[42]=b,j[43]=v):v=j[43],v}function Qt(e){return e?(0,a.jsx)(Qn,{subSection:e},e._key):null}function Qn(e){let t,n,r,i=(0,o.c)(5),{subSection:l}=e;return i[0]!==l?.items?(t=l?.items?.map(Qr),i[0]=l?.items,i[1]=t):t=i[1],i[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(u.Nj,{}),i[2]=n):n=i[2],i[3]!==t?(r=(0,a.jsxs)(a.Fragment,{children:[t,n]}),i[3]=t,i[4]=r):r=i[4],r}function Qr(e){if(!e||!e.title)return null;switch(e._type){case"externalLink":return e.url?(0,a.jsx)(y.Dr,{as:"a",tone:"default",text:e.title,href:e.url,target:"_blank"},e._key):null;case"internalAction":return e.type?"studio-announcements-modal"===e.type?(0,a.jsx)(X9,{text:e.title},e._key):"show-welcome-modal"===e.type&&(0,a.jsx)(y.Dr,{text:e.title},e._key):null;default:return null}}let Qi=(0,g.I4)(u.W1)`
3840  max-width: 300px;
3841  min-width: 200px;
3842`;function Qa(){let e,t,n,r,i,l,d,c,u,p,m,h=(0,o.c)(25),{t:f}=iJ(),{value:g,error:x,isLoading:b}=function(){let e,t,n=(0,o.c)(4);
3842n[0]===Symbol.for("react.memo_cache_sentinel")?(e={apiVersion:"1"},n[0]=e):e=n[0];let r=ee7(e),i=iG().id;return n[1]!==r||n[2]!==i?(t=r.withConfig({apiVersion:"1"}).observable.request({url:"/help",query:{m:[`sanity@${re.s}`],locale:i},tag:"module.version-check",json:!0}),n[1]=r,n[2]=i,n[3]=t):t=n[3],iB(t)}(),[v,j]=(0,s.useState)(!1);h[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{j(!1)},h[0]=e):e=h[0];let w=e;h[1]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{j(!0)},h[1]=t):t=h[1];let _=t;return h[2]!==v||h[3]!==g?.latestVersion?(n=v&&(0,a.jsx)(X1,{currentVersion:re.s,latestVersion:g?.latestVersion||"unknown",onClose:w}),h[2]=v,h[3]=g?.latestVersion,h[4]=n):n=h[4],h[5]!==f?(r=f("help-resources.title"),h[5]=f,h[6]=r):r=h[6],h[7]!==f?(i=f("help-resources.title"),h[7]=f,h[8]=i):i=h[8],h[9]!==i?(l={content:i},h[9]=i,h[10]=l):l=h[10],h[11]!==r||h[12]!==l?(d=(0,a.jsx)(y.$n,{"aria-label":r,icon:C.V1u,mode:"bleed",tooltipProps:l}),h[11]=r,h[12]=l,h[13]=d):d=h[13],h[14]!==x||h[15]!==b||h[16]!==g?(c=(0,a.jsx)(Qi,{"data-testid":"menu-button-resources",children:(0,a.jsx)(Qe,{error:x,isLoading:b,value:g,onAboutDialogOpen:_})}),h[14]=x,h[15]=b,h[16]=g,h[17]=c):c=h[17],h[18]===Symbol.for("react.memo_cache_sentinel")?(u={constrainSize:!0,tone:"default"},h[18]=u):u=h[18],h[19]!==d||h[20]!==c?(p=(0,a.jsx)(y.IU,{button:d,id:"menu-button-resources",menu:c,popover:u}),h[19]=d,h[20]=c,h[21]=p):p=h[21],h[22]!==n||h[23]!==p?(m=(0,a.jsxs)(a.Fragment,{children:[n,p]}),h[22]=n,h[23]=p,h[24]=m):m=h[24],m}function Qo(){return(0,o.c)(10),iX(),null}function Ql(e){let t,n,r,i=(0,o.c)(5),{setScheme:l}=e,{t:s}=iJ(),d=Kw(l,s);return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(u.Nj,{}),i[0]=t):t=i[0],i[1]!==d?(n=d.map(Qs),i[1]=d,i[2]=n):n=i[2],i[3]!==n?(r=(0,a.jsxs)(a.Fragment,{children:[t,n]}),i[3]=n,i[4]=r):r=i[4],r}function Qs(e){let{icon:t,label:n,name:r,onSelect:i,selected:o,title:l}=e;return(0,a.jsx)(y.Dr,{"aria-label":n,icon:t,onClick:i,pressed:o,text:l,iconRight:o&&(0,a.jsx)(C.Nrt,{}),"data-testid":`color-scheme-${r}`},r)}let Qd=g.I4.div`
3843  position: absolute;
3844  width: 18px;
3845  height: 18px;
3846  background: var(--card-bg-color);
3847  bottom: -4px;
3848  right: -4px;
3849  border-radius: 50%;
3850  display: flex;
3851  justify-content: center;
3852  align-items: center;
3853  border: 1px solid var(--card-bg-color);
3854  box-sizing: content-box;
3855
3856  svg {
3857    box-sizing: content-box;
3858    border: 1px solid var(--card-hairline-soft-color);
3859    border-radius: 50%;
3860    padding: 2px;
3861    width: 12px;
3862    height: 12px;
3863  }
3864
3865  &[data-logo='github'] {
3866    svg {
3867      path {
3868        fill: var(--card-fg-color);
3869      }
3870    }
3871  }
3872
3873  &[data-logo='saml'] {
3874    svg {
3875      path {
3876        fill: var(--card-fg-color);
3877      }
3878    }
3879  }
3880`,Qc=(0,a.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsxs)("g",{clipPath:"url(#clip0)",children:[(0,a.jsx)("path",{d:"M12 6.13764C12 5.72977 11.9663 5.31971 11.8943 4.91846H6.12036V7.22895H9.42684C9.28963 7.97412 8.84876 8.63332 8.20322 9.05221V10.5514H10.1759C11.3342 9.50637 12 7.9631 12 6.13764Z",fill:"#4285F4"}),(0,a.jsx)("path",{d:"M6.12019 12.0002C7.77118 12.0002 9.16349 11.4688 10.1779 10.5517L8.20529 9.05253C7.65646 9.41851 6.94793 9.62574 6.12244 9.62574C4.52544 9.62574 3.17136 8.56971 2.68552 7.1499H0.649902V8.69537C1.68908 10.7215 3.80567 12.0002 6.12019 12.0002V12.0002Z",fill:"#34A853"}),(0,a.jsx)("path",{d:"M2.68332 7.14986C2.4269 6.40469 2.4269 5.59778 2.68332 4.8526V3.30713H0.649951C-0.218278 5.00252 -0.218278 6.99995 0.649951 8.69533L2.68332 7.14986V7.14986Z",fill:"#FBBC04"}),(0,a.jsx)("path",{d:"M6.12019 2.37483C6.99291 2.3616 7.8364 2.68348 8.46845 3.27433L10.2161 1.56131C9.1095 0.542752 7.64071 -0.017233 6.12019 0.000404333C3.80566 0.000404333 1.68908 1.27911 0.649902 3.3074L2.68326 4.85288C3.16686 3.43087 4.52319 2.37483 6.12019 2.37483V2.37483Z",fill:"#EA4335"})]}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0",children:(0,a.jsx)("rect",{width:"12",height:"12",fill:"white"})})})]}),Qu=(0,a.jsxs)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("g",{clipPath:"url(#clip0)",children:(0,a.jsx)("path",{d:"M11.195 3.13503C10.6711 2.22838 9.91808 1.47537 9.01144 0.951471C8.09222 0.414976 7.08837 0.146729 5.99987 0.146729C4.91137 0.146729 3.90752 0.414976 2.98831 0.951471C2.08163 1.47534 
38801.32862 2.22836 0.804744 3.13503C0.268248 4.05497 0 5.05883 0 6.14659C0 7.45399 0.381531 8.62978 1.14459 9.67394C1.90765 10.7181 2.89327 11.4408 4.10143 11.8419C4.24208 11.868 4.34624 11.8497 4.41392 11.7872C4.44666 11.7577 4.47263 11.7215 4.49006 11.681C4.50749 11.6405 4.51595 11.5967 4.51488 11.5527C4.51488 11.537 4.51361 11.3963 4.51105 11.1307C4.5085 10.8651 4.50722 10.6334 4.50722 10.4355L4.32745 10.4666C4.18407 10.4895 4.03885 10.4986 3.89375 10.494C3.71159 10.4908 3.53001 10.4725 3.35087 10.4393C3.16049 10.4045 2.98119 10.3246 2.82796 10.2064C2.66705 10.0846 2.54715 9.91661 2.48428 9.72484L2.40602 9.54506C2.34022 9.40286 2.25754 9.2691 2.15976 9.14666C2.04775 9.00072 1.93447 8.90176 1.81991 8.84977L1.76518 8.81064C1.72769 8.78356 1.6936 8.75205 1.66367 8.71679C1.63479 8.6841 1.61108 8.64719 1.59334 8.60734C1.57766 8.57085 1.5907 8.54085 1.63247 8.51731C1.67461 8.49405 1.75123 8.48256 1.86068 8.48256L2.01692 8.50582C2.12108 8.52662 2.24996 8.5891 2.40356 8.69326C2.5585 8.79876 2.68797 8.93748 2.78254 9.09932C2.90239 9.31294 3.04695 9.47575 3.21624 9.58775C3.38552 9.69976 3.55609 9.75576 3.72793 9.75576C3.87725 9.7578 4.02641 9.74479 4.17312 9.7169C4.29459 9.69195 4.41264 9.65254 4.52473 9.59952C4.57162 9.25037 4.69931 8.98212 4.90782 8.79477C4.63684 8.76849 4.36827 8.72157 4.10444 8.6544C3.84797 8.58382 3.60133 8.48141 3.37029 8.34958C3.12825 8.218 2.91442 8.04015 2.74095 7.82613C2.57421 7.6178 2.4374 7.34417 2.3305 7.00524C2.2236 6.6663 2.1707 6.27584 2.1718 5.83383C2.1718 5.20357 2.37757 4.66708 2.7891 4.22435C2.59629 3.75006 2.61453 3.21885 2.84383 2.63073C2.99487 2.58385 3.21879 2.61897 3.51559 2.73608C3.81239 2.85319 4.02983 2.95352 4.16792 3.03707C4.30601 3.12025 4.41665 3.19058 4.49983 3.24804C5.48153 2.9773 6.51821 2.9773 7.49991 3.24804L7.79679 3.0606C8.0249 2.92356 8.26549 2.80849 8.51535 2.71693C8.79135 2.61276 9.00231 2.58412 9.14825 2.63101C9.38248 3.21949 9.40327 3.7507 9.21064 4.22462C9.62199 4.66735 9.82776 5.20385 9.82795 5.83411C9.82795 6.27684 9.77459 6.66904 9.66787 7.01071C9.56116 7.35238 9.42325 7.62601 9.25415 7.8316C9.07785 8.04326 8.86311 8.21966 8.62124 8.35149C8.39008 8.48329 8.14337 8.5857 7.88682 8.65632C7.62412 8.72277 7.35674 8.76915 7.087 8.79505C7.35698 9.02927 7.49206 9.3994 7.49225 9.90543V11.5527C7.49115 11.5964 7.49929 11.6398 7.51612 11.6802C7.53295 11.7206 7.5581 11.7569 7.58993 11.7869C7.65505 11.8493 7.75794 11.8675 7.89858 11.8416C9.10693 11.4403 10.0926 10.7177 10.8557 9.67367C11.6188 8.62968 12.0003 7.4539 12.0003 6.14632C11.9997 5.05873 11.7313 4.05497 11.195 3.13503V3.13503Z",fill:"black"})}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0",children:(0,a.jsx)("rect",{width:"12",height:"12",fill:"white"})})})]}),Qp=(0,a.jsxs)("svg",{width:"17",height:"9",viewBox:"0 0 17 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M0.0691681 5.98162C0.115833 7.24157 1.07247 8.00221 2.59841 8.00221C4.17102 8.00221 5.12299 7.19957 5.12299 5.86962C5.12299 4.83832 4.55367 4.25501 3.25172 3.96569L2.56108 3.80703C1.8331 3.64837 1.53445 3.38704 1.53445 2.91106C1.53445 2.40708 1.94977 2.09442 2.61708 2.09442C3.27505 2.09442 3.6997 2.43508 3.75103 2.99039H5.00166C4.95966 1.78643 4.01236 0.997795 2.60308 0.997795C1.14713 0.997795 0.218496 1.79577 0.218496 3.05105C0.218496 4.04968 0.815808 4.69366 2.03376 4.96898L2.73374 5.13231C3.51304 5.30497 3.8117 5.54763 3.8117 6.00495C3.8117 6.55093 3.34972 6.90092 2.62174 6.90092C1.85644 6.90092 1.38045 6.56493 1.31979 5.98162H0.0691681Z"}),(0,a.jsx)("path",{d:"M5.97695 5.98162C6.02362 7.24157 6.98025 8.00221 8.5062 8.00221C10.0788 8.00221 11.0308 7.19957 11.0308 5.86962C11.0308 4.83832 10.4615 4.25501 9.15951 3.96569L8.46886 3.80703C7.74089 3.64837 7.44223 3.38704 7.44223 2.91106C7.44223 2.40708 7.85755 2.09442 8.52486 2.09442C9.18284 2.09442 9.60749 2.43508 9.65882 2.99039H10.9094C10.8674 1.78643 9.92015 0.997795 8.51086 0.997795C7.05492 0.997795 6.12628 1.79577 6.12628 3.05105C6.12628 4.04968 6.72359 4.69366 7.94155 4.96898L8.64153 5.13231C9.42083 5.30497 9.71949 5.54763 9.71949 6.00495C9.71949 6.55093 9.2575 6.90092 8.52953 6.90092C7.76422 6.90092 7.28824 6.56493 7.22758 5.98162H5.97695Z"}),(0,a.jsx)("path",{d:"M16.9852 5.01565V3.98435C16.9852 2.11309 16.0099 0.997795 14.3953 0.997795C12.7807 0.997795 11.8054 2.11309 11.8054 3.98435V5.01565C11.8054 6.88692 12.7807 8.00221 14.3953 8.00221C16.0099 8.00221 16.9852 6.88692 16.9852 5.01565ZM14.3953 6.82625C13.5833 6.82625 13.154 6.21494 13.154 5.00165V3.99835C13.154 2.78506 13.5833 2.17375 14.3953 2.17375C15.2073 2.17375 15.6366 2.78506 15.6366 3.99835V5.00165C15.6366 6.21494 15.2073 6.82625 14.3953 6.82625Z"})]}),Qm=e=>{let t,n,r,i=(0,o.c)(10),{provider:l}=e;i[0]!==l?(t=l?.startsWith("saml-"),i[0]=l,i[1]=t):t=i[1];let s=t,d=s?"saml":l,c="google"===l&&Qc,u="github"===l&&Qu;i[2]!==l?(n="sanity"===l&&(0,a.jsx)(ri.jM,{}),i[2]=l,i[3]=n):n=i[3];let p=s&&Qp;return i[4]!==d||i[5]!==c||i[6]!==u||i[7]!==n||i[8]!==p?(r=(0,a.jsxs)(Qd,{"data-logo":d,children:[c,u,n,p]}),i[4]=d,i[5]=c,i[6]=u,i[7]=n,i[8]=p,i[9]=r):r=i[9],r};function Qh(){let e,t,n,r,i,l,s,d=(0,o.c)(18),{currentUser:c,projectId:p}=lE();d[0]!==c?(e=c&&iN(c,"administrator"),d[0]=c,d[1]=e):e=d[1];let m=!!e,{t:h}=iJ();d[2]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(u.Nj,{}),d[2]=t):t=d[2],d[3]!==h?(n=h("user-menu.action.manage-project-aria-label"),d[3]=h,d[4]=n):n=d[4];let f=`https://sanity.io/manage/project/${p}`;return d[5]!==h?(r=h("user-menu.action.manage-project"),d[5]=h,d[6]=r):r=d[6],d[7]!==n||d[8]!==f||d[9]!==r?(i=(0,a.jsx)(y.Dr,{as:"a","aria-label":n,href:f,target:"_blank",text:r,icon:C.DP5}),d[7]=n,d[8]=f,d[9]=r,d[10]=i):i=d[10],d[11]!==m||d[12]!==p||d[13]!==h?(l=m&&(0,a.jsx)(y.Dr,{as:"a","aria-label":h("user-menu.action.invite-members-aria-label"),href:`https://www.sanity.io/manage/project/${p}/members?invite=true`,target:"_blank",text:h("user-menu.action.invite-members"),icon:C.gIx}),d[11]=m,d[12]=p,d[13]=h,d[14]=l):l=d[14],d[15]!==i||d[16]!==l?(s=(0,a.jsxs)(a.Fragment,{children:[t,i,l]}),d[15]=i,d[16]=l,d[17]=s):s=d[17],s}let Qf=(0,g.I4)(u.W1)`
3881  min-width: 200px;
3882  max-width: 300px;
3883`,Qg=(0,g.I4)(u.az)`
3884  position: relative;
3885  min-width: ${({theme:e})=>e.sanity.avatar.sizes[2].size}px;
3886  min-height: ${({theme:e})=>e.sanity.avatar.sizes[2].size}px;
3887`;function QC(){let e,t,n,r,i,l,s,d,c,p,m,h,f,g,x,b,v,j,w=(0,o.c)(44),{currentUser:_,auth:k}=lE(),S=Kj(),T=Kb(),I=oh(_?.provider),{t:E}=iJ();w[0]!==S?(t={placement:"bottom",portal:!0,preventOverflow:!0,scheme:S,constrainSize:!0,tone:"default"},w[0]=S,w[1]=t):t=w[1],e=t;let $=y.IU;
3887w[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(u.$n,{mode:"bleed",padding:0,radius:"full",children:(0,a.jsx)(cz,{size:1,user:"me"})}),w[2]=n):n=w[2];let A=u.Zp,D=u.so,z=y.m_,M=!I,P=E("user-menu.login-provider",{providerTitle:I});w[3]===Symbol.for("react.memo_cache_sentinel")?(r=(0,a.jsx)(cz,{size:2,user:"me"}),w[3]=r):r=w[3],w[4]!==_?(i=_?.provider&&(0,a.jsx)(Qm,{provider:_.provider}),w[4]=_,w[5]=i):i=w[5],w[6]!==i?(l=(0,a.jsxs)(Qg,{marginRight:3,children:[r,i]}),w[6]=i,w[7]=l):l=w[7],w[8]!==z||w[9]!==l||w[10]!==M||w[11]!==P?(s=(0,a.jsx)(z,{disabled:M,portal:!0,content:P,children:l}),w[8]=z,w[9]=l,w[10]=M,w[11]=P,w[12]=s):s=w[12];let R=_?.name;w[13]!==R?(d=(0,a.jsx)(u.EY,{size:1,weight:"medium",textOverflow:"ellipsis",children:R}),w[13]=R,w[14]=d):d=w[14];let O=_?.email;return w[15]!==O?(c=(0,a.jsx)(u.EY,{size:1,muted:!0,textOverflow:"ellipsis",children:O}),w[15]=O,w[16]=c):c=w[16],w[17]!==d||w[18]!==c?(p=(0,a.jsxs)(u.BJ,{space:2,flex:1,children:[d,c]}),w[17]=d,w[18]=c,w[19]=p):p=w[19],w[20]!==D||w[21]!==s||w[22]!==p?(m=(0,a.jsxs)(D,{align:"center",children:[s,p]}),w[20]=D,w[21]=s,w[22]=p,w[23]=m):m=w[23],w[24]!==A||w[25]!==m?(h=(0,a.jsx)(A,{padding:2,children:m}),w[24]=A,w[25]=m,w[26]=h):h=w[26],w[27]!==T?(f=T&&(0,a.jsx)(Ql,{setScheme:T}),w[27]=T,w[28]=f):f=w[28],w[29]===Symbol.for("react.memo_cache_sentinel")?(g=(0,a.jsx)(Qo,{}),x=(0,a.jsx)(Qh,{}),w[29]=g,w[30]=x):(g=w[29],x=w[30]),w[31]!==k.logout||w[32]!==E?(b=k.logout&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(u.Nj,{}),(0,a.jsx)(y.Dr,{iconRight:C.NAZ,text:E("user-menu.action.sign-out"),disabled:!k.logout,...k.logout&&{onClick:k.logout}})]}),w[31]=k.logout,w[32]=E,w[33]=b):b=w[33],w[34]!==Qf||w[35]!==h||w[36]!==f||w[37]!==b?(v=(0,a.jsxs)(Qf,{"data-testid":"user-menu",children:[h,f,g,x,b]}),w[34]=Qf,w[35]=h,w[36]=f,w[37]=b,w[38]=v):v=w[38],w[39]!==$||w[40]!==e||w[41]!==n||w[42]!==v?(j=(0,a.jsx)($,{button:n,id:"user-menu",menu:v,popover:e}),w[39]=$,w[40]=e,w[41]=n,w[42]=v,w[43]=j):j=w[43],j}let Qy=[],Qx=(0,g.I4)(u.Wd)`
3888  min-height: auto;
3889  position: relative;
3890
3891  &[data-search-open='true'] {
3892    top: 0;
3893    position: sticky;
3894  }
3895`,Qb=(0,g.I4)(u.Zp)`
3896  line-height: 0;
3897`,Qv=(0,g.I4)(u.xA)`
3898  grid-template-columns: auto auto auto;
3899  @media screen and (min-width: ${({theme:e})=>`${e.sanity.media[4]}px`}) {
3900    grid-template-columns: 1fr auto 1fr;
3901  }
3902`;function Qj(e){let t,n,r,i,l,d,p,m,h,f,g,x,b,v,j,w,_,k,S,T,I,E,$,A,D,z,M,P,R,O,V,L,F,B,N,Y,H,Z,U=(0,o.c)(113),{__internal_actions:q}=e,J=void 0===q?Qy:q,{name:W,tools:K}=lE(),G=(0,tq.ks)(),X=(0,u.aY)(),Q="string"==typeof G.tool?G.tool:void 0,ee=function(){let e,t,n,r,i,a=(0,o.c)(14),{__internal:l}=co(),{staticInitialValueTemplateItems:s}=l;a[0]!==s?(e={templateItems:s},a[0]=s,a[1]=e):e=a[1];let[d,c]=zj(e);a[2]!==d||a[3]!==s?(t=d?.some(e=>s.some(t=>t.id===e.id))||!1,a[2]=d,a[3]=s,a[4]=t):t=a[4];let u=t;if(a[5]!==d||a[6]!==s){let e;a[8]!==d?(e=e=>({...e,title:e?.title||e.id,hasPermission:d?.find(t=>t.id===e.id)?.granted||!1}),a[8]=d,a[9]=e):e=a[9],r=s.map(e),a[5]=d,a[6]=s,a[7]=r}else r=a[7];return n=r,a[10]!==u||a[11]!==c||a[12]!==n?(i={canCreateDocument:u,loading:c,options:n},a[10]=u,a[11]=c,a[12]=n,a[13]=i):i=a[13],i}(),{t:et}=iJ(),{onSearchFullscreenOpenChange:en,onSearchOpenChange:er,searchFullscreenOpen:ei,searchFullscreenPortalEl:ea,searchOpen:eo}=(0,s.useContext)(c.qT),{selectedPerspective:el,perspectiveStack:es}=oW(),ed=Xi(),[ec,eu]=(0,s.useState)(!1),ep=(0,s.useRef)(G),em=(0,s.useRef)(W);U[0]!==W||U[1]!==G?(t=()=>{(ep.current.tool!==G.tool||W!==em.current)&&eu(!1),ep.current=G,em.current=W},n=[W,G],U[0]=W,U[1]=G,U[2]=t,U[3]=n):(t=U[2],n=U[3]),(0,s.useEffect)(t,n);let[eh,ef]=(0,s.useState)(null),[eg,eC]=(0,s.useState)(null),ey=X>1,ex=X<=1,eb=X>1,ev=X<=1,ej=X>1&&ar,ew=X<=1,e_=X>=3;U[4]!==e_||U[5]!==ey||U[6]!==ex||U[7]!==eb||U[8]!==ev||U[9]!==ej||U[10]!==ew?(i={resources:ey,collapsedPresenceMenu:ex,loginStatus:eb,searchFullscreen:ev,configIssues:ej,newDocumentFullscreen:ew,tools:e_},U[4]=e_,U[5]=ey,U[6]=ex,U[7]=eb,U[8]=ev,U[9]=ej,U[10]=ew,U[11]=i):i=U[11],r=i,U[12]!==en||U[13]!==ei?(l=()=>{en(ei)},d=[ei,en],U[12]=en,U[13]=ei,U[14]=l,U[15]=d):(l=U[14],d=U[15]),(0,s.useEffect)(l,d),U[16]!==en||U[17]!==er||U[18]!==r.searchFullscreen?(p=()=>{r.searchFullscreen?er(!1):en(!1)},m=[en,er,r.searchFullscreen],U[16]=en,U[17]=er,U[18]=r.searchFullscreen,U[19]=p,U[20]=m):(p=U[19],m=U[20]),(0,s.useEffect)(p,m),U[21]!==er?(h=()=>{er(!0)},U[21]=er,U[22]=h):h=U[22];let ek=h;U[23]!==en?(f=()=>{en(!0)},U[23]=en,U[24]=f):f=U[24];let eS=f;U[25]!==er?(g=()=>{er(!1)},U[25]=er,U[26]=g):g=U[26];let eT=g;
3902U[27]!==en||U[28]!==eg?(x=()=>{en(!1),eg?.focus()},U[27]=en,U[28]=eg,U[29]=x):x=U[29];let eI=x;U[30]!==eh?(b=()=>{eu(!1),eh?.focus()},U[30]=eh,U[31]=b):b=U[31];let eE=b;U[32]===Symbol.for("react.memo_cache_sentinel")?(v=()=>{eu(!0)},U[32]=v):v=U[32];let e$=v;e:{let e;if(!r.tools){j=null;break e}U[33]!==J?(e=J?.filter(Q_)?.map(Qw),U[33]=J,U[34]=e):e=U[34],j=e}let eA=j;U[35]!==el?(w=uj(el),U[35]=el,U[36]=w):w=U[36],U[37]!==r.tools||U[38]!==et?(_=!r.tools&&(0,a.jsx)(y.$n,{mode:"bleed",icon:C.ZB$,onClick:e$,ref:ef,tooltipProps:{content:et("user-menu.open-menu"),placement:"bottom"}}),U[37]=r.tools,U[38]=et,U[39]=_):_=U[39],U[40]===Symbol.for("react.memo_cache_sentinel")?(k=(0,a.jsxs)(u.so,{gap:1,children:[(0,a.jsx)(XS,{}),(0,a.jsx)(GS,{})]}),U[40]=k):k=U[40],U[41]!==_?(S=(0,a.jsxs)(u.so,{align:"center",gap:2,children:[_,k]}),U[41]=_,U[42]=S):S=U[42];let eD=r.newDocumentFullscreen?"dialog":"popover";return U[43]!==ee||U[44]!==eD?(T=(0,a.jsx)(XJ,{...ee,modal:eD}),U[43]=ee,U[44]=eD,U[45]=T):T=U[45],U[46]!==ek||U[47]!==r.searchFullscreen?(I=!r.searchFullscreen&&(0,a.jsx)(K_,{onClick:ek,ref:eC}),U[46]=ek,U[47]=r.searchFullscreen,U[48]=I):I=U[48],U[49]!==S||U[50]!==T||U[51]!==I?(E=(0,a.jsx)(y.vE,{children:(0,a.jsxs)(u.so,{align:"center",gap:2,justify:"flex-start",children:[S,T,I]})}),U[49]=S,U[50]=T,U[51]=I,U[52]=E):E=U[52],U[53]!==ed||U[54]!==Q||U[55]!==eE||U[56]!==r.tools||U[57]!==K?($=r.tools&&(0,a.jsx)(ed,{activeToolName:Q,closeSidebar:eE,context:"topbar",isSidebarOpen:!1,tools:K}),U[53]=ed,U[54]=Q,U[55]=eE,U[56]=r.tools,U[57]=K,U[58]=$):$=U[58],U[59]!==$?(A=(0,a.jsx)(u.so,{align:"center",justify:"center",children:$}),U[59]=$,U[60]=A):A=U[60],U[61]!==eT||U[62]!==eI||U[63]!==ek||U[64]!==eS||U[65]!==es||U[66]!==ei||U[67]!==ea||U[68]!==eo||U[69]!==r.searchFullscreen?(D=(0,a.jsx)(u.EZ,{element:document.body,children:r.searchFullscreen?(0,a.jsx)(u.GD,{element:ea,children:(0,a.jsx)(KT,{onClose:eI,onOpen:eS,open:ei})}):(0,a.jsx)(hq,{onClose:eT,onOpen:ek,open:eo,previewPerspective:es})}),U[61]=eT,U[62]=eI,U[63]=ek,U[64]=eS,U[65]=es,U[66]=ei,U[67]=ea,U[68]=eo,U[69]=r.searchFullscreen,U[70]=D):D=U[70],U[71]!==r.searchFullscreen||U[72]!==D?(z=(0,a.jsx)(u.XS,{children:(0,a.jsx)(h6,{fullscreen:r.searchFullscreen,children:D})}),U[71]=r.searchFullscreen,U[72]=D,U[73]=z):z=U[73],U[74]===Symbol.for("react.memo_cache_sentinel")?(M=(0,a.jsx)(K5,{withReleasesToolButton:!0}),U[74]=M):M=U[74],U[75]!==r.tools?(P=r.tools&&(0,a.jsx)(Xj,{type:"topbar"}),U[75]=r.tools,U[76]=P):P=U[76],U[77]===Symbol.for("react.memo_cache_sentinel")?(R=(0,a.jsx)(XQ,{}),U[77]=R):R=U[77],U[78]!==r.configIssues?(O=r.configIssues&&(0,a.jsx)(Xa,{}),U[78]=r.configIssues,U[79]=O):O=U[79],U[80]!==r.resources?(V=r.resources&&(0,a.jsx)(Qa,{}),U[80]=r.resources,U[81]=V):V=U[81],U[82]!==eS||U[83]!==r.searchFullscreen?(L=r.searchFullscreen&&(0,a.jsx)(K_,{onClick:eS,ref:eC}),U[82]=eS,U[83]=r.searchFullscreen,U[84]=L):L=U[84],U[85]!==r.tools?(F=r.tools&&(0,a.jsx)(KI,{capability:"globalUserMenu",children:(0,a.jsx)(u.az,{flex:"none",marginLeft:1,children:(0,a.jsx)(QC,{})})}),U[85]=r.tools,U[86]=F):F=U[86],U[87]!==eA||U[88]!==z||U[89]!==P||U[90]!==O||U[91]!==V||U[92]!==L||U[93]!==F?(B=(0,a.jsx)(y.vE,{children:(0,a.jsxs)(u.so,{align:"center",gap:1,justify:"flex-end",children:[z,M,eA,P,R,O,V,L,F]})}),U[87]=eA,U[88]=z,U[89]=P,U[90]=O,U[91]=V,U[92]=L,U[93]=F,U[94]=B):B=U[94],U[95]!==E||U[96]!==A||U[97]!==B?(N=(0,a.jsxs)(Qv,{gap:1,children:[E,A,B]}),U[95]=E,U[96]=A,U[97]=B,U[98]=N):N=U[98],U[99]!==w||U[100]!==N?(Y=(0,a.jsx)(Qb,{tone:w,borderBottom:!0,"data-testid":"studio-navbar","data-ui":"Navbar",padding:3,sizing:"border",children:N}),U[99]=w,U[100]=N,U[101]=Y):Y=U[101],U[102]!==J||U[103]!==Q||U[104]!==ec||U[105]!==eE||U[106]!==r.tools||U[107]!==K?(H=!r.tools&&(0,a.jsx)(XO,{__internal_actions:J,activeToolName:Q,isOpen:ec,onClose:eE,tools:K}),U[102]=J,U[103]=Q,U[104]=ec,U[105]=eE,U[106]=r.tools,U[107]=K,U[108]=H):H=U[108],U[109]!==ei||U[110]!==Y||U[111]!==H?(Z=(0,a.jsx)(Xw,{children:(0,a.jsxs)(Qx,{zOffset:100,"data-search-open":ei,children:[Y,H]})}),U[109]=ei,U[110]=Y,U[111]=H,U[112]=Z):Z=U[112],Z}function Qw(e){let{render:t}=e;return t?(0,a.jsx)(t,{},e.name):(0,a.jsx)(y.$n,{iconRight:e?.icon,mode:"bleed",onClick:e?.onAction,selected:e.selected,text:e.title},e.name)}function Q_(e){return"topbar"===e.location}function Qk(e){return!!e}let QS=(0,g.I4)(EZ)`
3903  list-style: none;
3904  white-space: nowrap;
3905  flex-shrink: 0;
3906  opacity: 0;
3907  visibility: hidden;
3908`,QT=(0,g.I4)(u.so)`
3909  opacity: 0;
3910  height: 0.1px;
3911  overflow: hidden;
3912`,QI=(0,s.forwardRef)(function(e,t){let{children:n,gap:r,menuButtonProps:i,disableRestoreFocusOnClose
3912:o,onMenuClose:l,collapsed:d,...c}=e,[p,m]=(0,s.useState)(null),[h,f]=(0,s.useState)([]),[g,C]=(0,s.useState)(!1),y=(0,s.useMemo)(()=>s.Children.toArray(n).filter(Qk),[n]),x=(0,s.useMemo)(()=>d||!g?null:y.filter(e=>!h.some(t=>t.key===e.key)),[y,d,h,g]),b=(0,s.useMemo)(()=>({root:p,threshold:1,rootMargin:"1px"}),[p]),v=(0,s.useMemo)(()=>i?.button||(0,a.jsx)(rU,{}),[i]),j=(0,s.useMemo)(()=>d?y:y.filter(({key:e})=>h.find(t=>t.key===e)),[y,h,d]),w=(0,s.useCallback)((e,t)=>{let n=h.some(e=>e.key===t.key);g||C(!0);let r=e.isIntersecting;n||r||f(e=>[...e,t]),n&&r&&f(e=>e.filter(e=>e.key!==t.key))},[h,g,C,f]);return(0,a.jsxs)(u.so,{direction:"column",ref:t,sizing:"border",style:{position:"relative"},...c,children:[(0,a.jsxs)(u.so,{justify:"center",gap:r,flex:1,children:[x,(h.length>0||d)&&(0,a.jsx)(EY,{disableRestoreFocusOnClose:o,menuButton:v,menuButtonProps:i,menuOptions:j,onMenuClose:l})]}),(0,a.jsxs)(QT,{justify:"flex-start",gap:r,ref:m,"data-hidden":!0,"aria-hidden":"true",children:[(0,s.cloneElement)(v,{disabled:!0,"aria-hidden":!0}),y?.map(e=>(0,a.jsx)(QS,{options:b,onIntersectionChange:t=>w(t[0],e),children:(0,s.cloneElement)(e,{disabled:!0,"aria-hidden":!0,tabIndex:-1})},`${e.key}_observer`))]})]})});function QE(e){let t,n,r,i,l,d,c,p=(0,o.c)(13),{activeToolName:m,tools:h}=e,f=Kj(),[g,C]=(0,s.useState)(null);if(p[0]===Symbol.for("react.memo_cache_sentinel")?(t=["arrows"],p[0]=t):t=p[0],p[1]!==g?(n={rootElement:g,navigation:t},p[1]=g,p[2]=n):n=p[2],ens(n),p[3]!==f?(i={popover:{constrainSize:!0,portal:!0,scheme:f,tone:"default"}},p[3]=f,p[4]=i):i=p[4],r=i,p[5]!==m||p[6]!==h){let e;p[8]!==m?(e=(e,t)=>{let n=e?.title||eJ(e.name),r=(0,s.forwardRef)(function(t,n){return(0,a.jsx)(KE,{...t,ref:n,name:e.name,children:t.children})});return(0,a.jsx)(y.$n,{as:r,"data-as":"a",mode:"bleed",selected:m===e.name,text:n},`${e.name}-${t}`)},p[8]=m,p[9]=e):e=p[9],d=h.map(e),p[5]=m,p[6]=h,p[7]=d}else d=p[7];return l=d,p[10]!==l||p[11]!==r?(c=(0,a.jsx)(u.so,{justify:"center",marginX:4,children:(0,a.jsx)(QI,{"data-testid":"tool-collapse-menu",gap:1,menuButtonProps:r,ref:C,children:l})}),p[10]=l,p[11]=r,p[12]=c):c=p[12],c}function Q$(e){let t,n,r=(0,o.c)(9),{activeToolName:i,isVisible:l,tools:d}=e;if(r[0]!==i||r[1]!==l||r[2]!==d){let e;r[4]!==i||r[5]!==l?(e=e=>{let t=e?.title||eJ(e.name),n=(0,s.forwardRef)(function(t,n){return(0,a.jsx)(KE,{...t,ref:n,name:e.name,children:t.children})});return(0,a.jsx)(u.BJ,{as:"li",children:(0,a.jsx)(y.$n,{as:n,justify:"flex-start",mode:"bleed",selected:i===e.name,size:"large",tabIndex:l?0:-1,text:t})},e.name)},r[4]=i,r[5]=l,r[6]=e):e=r[6],t=d.map(e),r[0]=i,r[1]=l,r[2]=d,r[3]=t}else t=r[3];return r[7]!==t?(n=(0,a.jsx)(u.BJ,{as:"ul",space:1,children:t}),r[7]=t,r[8]=n):n=r[8],n}let QA=["releases"];function QD(e){let t,n,r,i,l,s,d,c=(0,o.c)(17);c[0]!==e?({context:t,isSidebarOpen:n,tools:i,...r}=e,c[0]=e,c[1]=t,c[2]=n,c[3]=r,c[4]=i):(t=c[1],n=c[2],r=c[3],i=c[4]);let{enabled:u}=HI();if(c[5]!==u||c[6]!==i){let e;c[8]!==u?(e=e=>("schedules"!==e.name||!!u)&&!QA.includes(e.name),c[8]=u,c[9]=e):e=c[9],s=i.filter(e),c[5]=u,c[6]=i,c[7]=s}else s=c[7];if((l=s).length<=1)return null;if("sidebar"===t){let e;return c[10]!==n||c[11]!==r||c[12]!==l?(e=(0,a.jsx)(Q$,{isVisible:n,tools:l,...r}),c[10]=n,c[11]=r,c[12]=l,c[13]=e):e=c[13],e}return c[14]!==r||c[15]!==l?(d=(0,a.jsx)(QE,{tools:l,...r}),c[14]=r,c[15]=l,c[16]=d):d=c[16],d}let Qz=(0,eQ.g_)({name:"Field Copied",version:1,description:'User clicked the "Copy field" button in the field action menu or used the Ctrl+C shortcut'}),QM=(0,eQ.g_)({name:"Field Pasted",version:1,description:'User clicked the "Paste field" button in the field action menu or used the Ctrl+V shortcut'});function QP(e,t,n){if(!e)return;let r=e;return t.forEach((e,i)=>{let a=t.slice(0,i+1);if((0,_.tA)(e)||(0,_.wr)(e)){let e=_e(r,aN(n,a));if(e){r=e;return}}let o=function e(t,n){if(!n)return;let r=(0,l.sH)(n),i=r[0];if(i&&(0,_.$d)(t)){let n=t?.fields?.find(e=>e.name===i);if(n){let t=(0,l.dI)(r.slice(1));return t?e(n.type,t):n}}}(r,(0,l.dI)(a.length>1?a.slice(-1):a));o?.type&&(r=o.type)}),r}let QR="web application/vnd.sanity-clipboard-item+json",QO="text/html",QV="text/plain",QL="u">typeof ClipboardItem&&"supports"in ClipboardItem&&ClipboardItem.supports(QR),QF="sanity-clipboard-base64";async function QB(){for(let e of(await navigator.clipboard.read())){let t=await QY(e);if(t)return t}return null}async function QN(e){var t;let n=function e(t){return t?iE(t)?t:Number.isFinite(t)?t.toString():Array.isArray(t)?t.map(e).filter(
3912Boolean).join(", "):"object"==typeof t?Object.entries(t).map(([t,n])=>t.startsWith("_")?"":e(n)).filter(Boolean).join(", "):"":""}(e.value),r=(t=n,new DOMParser().parseFromString(t,"text/html").documentElement.textContent),i=function(e){let t=new TextEncoder().encode(e),n="";for(let e=0;e<t.byteLength;e++)n+=String.fromCharCode(t[e]);return btoa(n)}(JSON.stringify(e)),a=new ClipboardItem({...QL&&{[QR]:new Blob([JSON.stringify(e)],{type:QR})},[QO]:new Blob([`<p data-${QF}="${i}">${r}</p>`],{type:QO}),[QV]:new Blob([n],{type:QV})});try{return await navigator.clipboard.write([a]),!0}catch(e){return console.error(`Failed to write to clipboard: ${e.message}`,e),!1}}async function QY(e){if(e.types.includes(QR))return JSON.parse(await (await e.getType(QR)).text());if(!e.types.includes(QO))return null;let t=await (await e.getType(QO)).text(),n=new DOMParser().parseFromString(t,"text/html");try{let e=n.querySelector(`[data-${QF}]`);if(!e)return null;let{sanityClipboardBase64:t}=e.dataset;return t?JSON.parse(function(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return new TextDecoder().decode(n)}(t)):null}catch{return null}}function QH(e){return!!(null==e||Array.isArray(e)&&0===e.length)}function QZ(e){return!!(e instanceof HTMLElement&&e.isContentEditable||e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)}function QU(e){return 0===e.length||1===e.length&&""===e[0]}async function Qq(e,t,n,r,i){if(!n.filter)return!0;let a=await jw(n,e,r,i);if(!a.filter)return!0;try{let e=a.params||{},n=`*[${a.filter}]`,r=(0,rm.qg)(n,e),i=await (await (0,rm._3)(r,{params:e,dataset:[t]})).get();return!QH(i)}catch(e){return console.error("Error evaluating GROQ filter:",e),!1}}let QJ=()=>xK(12);async function QW({sourceRootSchemaType:e,sourcePath:t,sourceValue:n,sourceRootPath:r=[],targetRootSchemaType:i,targetRootValue:a,targetRootPath:o,targetValue:l,targetPath:s,keyGenerator:d=QJ,targetDocumentSchemaType:c,currentUser:u,options:p={validateReferences:!0,validateAssets:!0,client:void 0}}){let m=[];if(!e)throw Error("Source root schema type is not defined");if(!i)throw Error("Target root schema type is not defined");let h=QP(e,t,n),f=QP(i,s,l);
3912if(!h)throw Error("Could not find source schema type at path");if(!f)throw Error("Could not find target schema type at path");let g=Fr(i.readOnly,{value:a,parent:null,document:a,currentUser:u}),C=Fr(f.readOnly,{value:l,parent:null,document:a,currentUser:u}),y=function({path:e,value:t,schemaType:n,currentUser:r}){return!!e.find((i,a)=>{let o=QP(n,e.slice(0,a+1),t);if(!o)throw Error(`Could not find target schema type at path ${e.join(".")}`);return Fr(o.readOnly,{value:t,parent:null,document:t,currentUser:r})})}({path:o,value:a,schemaType:c,currentUser:u});if(g||C||y)return{targetValue:void 0,errors:[{level:"error",sourceValue:n,i18n:{key:"copy-paste.on-paste.validation.read-only-target.description"}}]};if((0,_.wD)(h)&&(0,_.F0)(f)||(0,_.F0)(h)&&(0,_.wD)(f))return{targetValue:void 0,errors:[{level:"error",sourceValue:n,i18n:{key:"copy-paste.on-paste.validation.image-file-incompatible.description",args:{sourceSchemaType:e.name,targetSchemaType:i.name}}}]};let x=h.jsonType,b=f.jsonType,v=e0(r),j="u">typeof v&&(0,_.wr)(v),w=0===t.length&&"array"===x&&!Array.isArray(n)&&j,k=(["number","string","boolean"].includes(x)||w)&&(0,_.gw)(f),S="object"===x&&(0,_.m5)(f);if(!(x===b||function e(t,n){return iI(t)&&iI(n)&&("number"===t.jsonType&&"string"===n.jsonType||e(t.type,n.type))}(h,f)||function e(t,n){return iI(t)&&iI(n)&&("number"===t.jsonType&&(0,_.gw)(n)&&n.of.map(e=>e.jsonType).includes("string")||e(t.type,n.type))}(h,f)||k||S))return{targetValue:void 0,errors:[{level:"error",sourceValue:n,i18n:{key:"copy-paste.on-paste.validation.schema-type-incompatible.description"}}]};let T=aN(n,t);if("object"===h.jsonType&&"object"===f.jsonType)return QK({sourceValue:T,targetSchemaType:f,targetRootValue:a,targetRootPath:o,targetPath:[],errors:m,keyGenerator:d,options:p});if("array"===h.jsonType&&"array"===f.jsonType)return QG({sourceValue:w&&!Array.isArray(T)?[T]:T,targetSchemaType:f,targetRootValue:a,targetRootPath:o,errors:m,options:p,keyGenerator:d});if(k||S){let e;e=S&&(0,_.Kk)(T)&&"object"===T._type||!(0,_.Kk)(T)?function(e){if(0===e.length)return"object";let t=e[e.length-1];return(0,_.tA)(t)||(0,_.wr)(t)||(0,_.Z9)(t)?"object":t}(r):(0,_.Kk)(T)?T._type:"object";let t=S&&!Array.isArray(T)?[{...T,_type:e,_key:d()}]:[T];return QG({sourceValue:Array.isArray(T)?T:t,targetSchemaType:f,targetRootValue:a,targetRootPath:o,errors:m,options:p,keyGenerator:d})}return QX({sourceValue:T,targetSchemaType:f,errors:m})}async function QK({sourceValue:e,targetSchemaType:t,targetPath:n,targetRootValue:r,targetRootPath:i,errors:a,keyGenerator:o,options:l}){if(QH(e))return{targetValue:void 0,errors:a};let s={_type:t.name,...e&&"object"==typeof e&&"_key"in e?{_key:o()}:{}},d=(0,e3.oX)(e)&&(0,_.A_)(e.asset)?e.asset._ref:void 0,c=(0,_.Kk)(e)?e._type:void 0,u=d&&(0,e3.FF)(d),p=d&&(0,e3.Y9)(d),m=("image"===c||u)&&!(0,_.F0)(t),h=("file"===c||p)&&!(0,_.wD)(t);if((0,_.Kk)(e)&&(m||h))return a.push({level:"error",sourceValue:e,i18n:{key:"copy-paste.on-paste.validation.image-file-incompatible.description",args:{sourceSchemaType:c,targetSchemaType:t.name}}}),{targetValue:void 0,errors:a};if(l?.validateAssets&&l.client&&((0,_.F0)(t)||(0,_.wD)(t))&&t.options?.accept&&(0,e3.oX)(e)&&(0,_.A_)(e.asset)){let n=e.asset?._ref;if(!n)return{targetValue:void 0,errors:a};try{let r=(0,_.F0)(t)?"sanity.imageAsset":"sanity.fileAsset",i=await l.client.fetch("*[_type == $type &&_id == $ref][0]{mimeType, originalFilename}",{ref:n,type:r});if(!i)return{targetValue:void 0,errors:a};let o={type:i.mimeType,name:i.originalFilename},s=i.mimeType;if(!bc(o,t.options.accept))return a.push({level:"error",sourceValue:e,i18n:{key:"copy-paste.on-paste.validation.mime-type-incompatible.description",args:{mimeType:s}}}),{targetValue:void 0,errors:a}}catch(t){return console.error("Error fetching asset document:",t),a.push({level:"error",sourceValue:e,i18n:{key:"copy-paste.on-paste.validation.mime-type-validation-failed.description"}}),{targetValue:void 0,errors:a}}}if((0,_.do)(t)){let n=t.to.map(e=>e.name);if(l?.validateReferences&&l.client&&(0,_.A_)(e))try{let o=t.options?.filter?"*[_id in $ids]|order(_updatedAt)[0]":"*[_id in $ids]|order(_updatedAt)[0]{_id, _type}",{publishedId:s,draftId:d}=iu(e._ref),c=await l.client.fetch(o,{ids:[s,d]});if(!c&&!t.weak)return a.push({level:"error",sourceValue:e,i18n:{key:"copy-paste.on-paste.validation.reference-validation-failed.description",args:{ref:e._ref}}}),{targetValue:void 0,errors:a};if(c&&!n.includes(c._type))return a.push({level:"error",sourceValue:e,i18n:{key:"copy-paste.on-paste.validation.reference-type-incompatible.description",args:{sourceReferenceType:c._type,targetReferenceTypes:n.join(", ")}}}),{targetValue:void 0,errors:a};if(l.client&&t.options?.filter&&!await Qq(r||{},c,t.options,i,e=>l.client.withConfig(e)))return a.push({level:"error",sourceValue:e,i18n:{key:"copy-paste.on-paste.validation.reference-filter-incompatible.description"}}),{targetValue:void 0,errors:a}}catch(t){return console.error("Error fetching reference document:",t),a.push({level:"error",sourceValue:s,i18n:{key:"copy-paste.on-paste.validation.reference-validation-failed.description",args:{ref:e._ref}}}),{targetValue:void 0,errors:a}}}let f={},g=(0,_.Pb)(t)&&(0,_.L4)(e)&&!QH(e.markDefs);if(g){let t=e.markDefs||[];t.filter(e=>
3912e._key).forEach(e=>{f[e._key]=o()}),s.markDefs=t.map(e=>({...e,_key:f[e._key]}))}for(let d of t.fields){let t=d.type,c=(0,_.zR)(t),u=(0,_.$d)(t);if((0,_.zZ)(t)){let n=QX({sourceValue:e?e[d.name]:void 0,targetSchemaType:t,errors:a});QH(n.targetValue)||(s[d.name]=n.targetValue)}else if(u){let c=await QK({sourceValue:aN(e,n.concat(d.name)),targetPath:[],targetSchemaType:t,targetRootValue:r,targetRootPath:i,errors:a,options:l,keyGenerator:o});QH(c.targetValue)||(s[d.name]=QQ(c.targetValue))}else if(c){let n=e?e[d.name]:void 0,c=await QG({sourceValue:n,targetSchemaType:t,targetRootValue:r,targetRootPath:i,errors:a,options:l,keyGenerator:o});if(g&&"markDefs"===d.name&&!QH(s.markDefs))continue;QH(c.targetValue)||(s[d.name]=c.targetValue)}}let C=QQ(aN(s,n));return Object.keys(f).length>0&&(0,_.L4)(C)&&(C.children=C.children.map(e=>(0,_.bn)(e)&&e.marks?{...e,marks:e.marks.map(e=>f[e]||e)}:e)),(0,_.do)(t)&&(t.weak?C._weak=!0:delete C._weak),(0,_.do)(t)&&(0,_.A_)(e)&&e._strengthenOnPublish&&(C._weak=!0,C._strengthenOnPublish=e._strengthenOnPublish),{targetValue:C,errors:a}}async function QG({sourceValue:e,targetSchemaType:t,targetRootValue:n,targetRootPath:r,errors:i,options:a,keyGenerator:o}){let l;if(!e||!Array.isArray(e))return{targetValue:void 0,errors:[{level:"error",sourceValue:e,i18n:{key:"copy-paste.on-paste.validation.array-type-incompatible.description",args:{type:typeof e}}}]};let s=(0,_.gw)(t),d=(0,_.m5)(t);if(s){let n=t.of.map(e=>e.jsonType),r=n.includes("number"),a=e.filter(e=>!!("string"==typeof e&&n.includes("string")||"number"==typeof e&&(n.includes("number")||n.includes("string"))||"boolean"==typeof e&&n.includes("boolean"))).map(e=>r||"number"!=typeof e?e:`${e}`),o=e.filter(e=>!a.includes(r||"number"!=typeof e?e:`${e}`));o.length>0&&o.forEach(e=>{i.push({level:a.length>0?"warning":"error",sourceValue:e,i18n:{key:"copy-paste.on-paste.validation.array-value-incompatible.description",args:{type:typeof e}}})}),a.length>0&&(l=a)}if(d){let s=e.filter(e=>t.of.some(t=>t.name===e._type)),d=e.filter(e=>!t.of.some(t=>t.name===e._type));l=0===s.length?void 0:(await Promise.all(s.map(e=>QK({sourceValue:e,targetSchemaType:t.of.find(t=>t.name===e._type),targetPath:[],targetRootValue:n,targetRootPath:r,errors:i,options:a,keyGenerator:o})))).map(e=>e.targetValue).filter(e=>!QH(e)),d.length>0&&d.forEach(e=>{i.push({level:s.length>0?"warning":"error",sourceValue:e,i18n:{key:"copy-paste.on-paste.validation.array-value-incompatible.description",args:{type:e._type||typeof e}}})})}return{targetValue:l,errors:i}}function QX({sourceValue:e,targetSchemaType:t,errors:n}){let r;if(typeof e>"u")return{targetValue:void 0,errors:n};let i=t.jsonType===typeof e,a="number"==typeof e&&"string"===t.jsonType;if(i||a){let i="string"==typeof e||"number"==typeof e;if(((0,_.F3)(t)||(0,_.pZ)(t))&&i){let r=t.options?.list?.map(e=>"string"==typeof e||"number"==typeof e?e:e.value)||[];r.length>0&&!r.includes(e)&&n.push({level:"error",sourceValue:e,i18n:{key:"copy-paste.on-paste.validation.string-value-incompatible.description",args:{value:e,allowedStrings:r}}})}r=a?`${e}`:e}else n.push({level:"error",sourceValue:e,i18n:{key:"copy-paste.on-paste.validation.primitive-type-incompatible.description",args:{type:typeof e}}});return{targetValue:r,errors:n}}function QQ(e){let t=new Set(["_id","_createdAt","_updatedAt","_rev"]);return Object.keys(e).reduce((n,r)=>t.has(r)?n:{...n,[r]:e[r]},{})}let Q1=({children:e})=>{let t=(0,p.dj)(),n=(0,e5.Jr)(),r=Cm(),i=Cl(),{t:o}=iJ("copy-paste"),d=ee7(a7),[u,m]=(0,s.useState)(null),h=(0,s.useCallback)(({documentId:e,documentType:t,schemaType:n,onChange:r})=>{let i={documentId:ib(e),documentType:t,schemaType:n,onChange:r};m(e=>eN(e,i)?e:i)},[]),f=(0,s.useCallback)(async(e,r,i)=>{if(!u)return;let{documentId:a,documentType:s,schemaType:d}=u,c=QP(d,e,r);if(!c)return void t.push({status:"error",title:o("copy-paste.on-copy.validation.schema-type-incompatible.title",{path:l.dI(e)})});let p=c.type?.name==="document",m=aN(r,e);if(QH(m))return void t.push({status:"warning",title:o("copy-paste.on-copy.validation.no-value.title")});let h=e.length>0?e0(e):void 0,f=h&&((0,_.tA)(h)||(0,_.wr)(h)),g="arrayItem"===i.context.source||f||"append"===i.patchType,C=g&&f?e.slice(0,-1):e,y=f&&!Array.isArray(m),x={type:"sanityClipboardItem",documentId:a,documentType:s,isDocument:p,schemaTypeName:c.name,valuePath:C,value:y?[m]:m,patchType:g?"append":"replace"};n.log(Qz,{context:i?.context?.source||"unknown",schemaTypes:[c.jsonType]}
3912),await QN(x)||t.push({status:"error",title:o("copy-paste.on-copy.validation.clipboard-not-supported.title"),description:o("copy-paste.on-copy.validation.clipboard-not-supported.description")})},[u,n,t,o]),g=(0,s.useCallback)(async(e,a,s)=>{if(!u)return;let{schemaType:c,onChange:p}=u,m=QP(c,e,a),h=null;try{h=await QB()}catch(e){"NotAllowedError"===e.name&&t.push({status:"error",title:o("copy-paste.on-copy.validation.clipboard-not-supported.title"),description:o("copy-paste.on-copy.validation.clipboard-not-supported.description")});return}if(!h)return void t.push({status:"info",title:o("copy-paste.on-paste.validation.clipboard-empty.title")});if(!h.documentType)return void t.push({status:"error",title:o("copy-paste.on-paste.validation.clipboard-invalid.title")});let f=r.get(h.documentType);if(!f)return void t.push({status:"error",title:o("copy-paste.on-paste.validation.clipboard-invalid.title")});let g=[],C=[],y=QP(f,h.valuePath,a);if(!y)return void t.push({status:"error",title:o("copy-paste.on-paste.validation.schema-type-incompatible.title",{path:l.dI(h.valuePath)})});if(!c)return void t.push({status:"error",title:o("copy-paste.on-paste.validation.schema-type-incompatible.title",{path:l.dI(e)})});let x=m.title||m.name,b={targetDocumentSchemaType:c,sourceRootSchemaType:y,sourcePath:[],sourceRootPath:h.valuePath,sourceValue:h.value,targetRootSchemaType:m,targetPath:[],targetRootPath:e,targetRootValue:a,currentUser:i,options:{validateAssets:!0,validateReferences:!0,client:d}};C.push(y.jsonType);try{let{targetValue:n,errors:r}=await QW(b),i=r.filter(e=>"warning"!==e.level),a=QH(n);if(i.length>0){let e=o(i[0].i18n.key,i[0].i18n.args);t.push({status:"error",title:o("copy-paste.on-paste.validation.clipboard-invalid.title"),description:e});return}if(r.length>0&&!a){let e=r.map(e=>o(e.i18n.key,e.i18n.args)).join(", ");t.push({status:"warning",title:o("copy-paste.on-paste.validation.partial-warning.title"),description:e})}if(a)return void t.push({status:"warning",title:o("copy-paste.on-paste.validation.clipboard-empty.title")});let l=h?.patchType||"replace",s="array"!==h.schemaTypeName&&"array"===m.jsonType||"append"===l,d=s&&e.length>0&&"array"===m.jsonType,c=s&&e.length>0?[...e.slice(0,-1),`${e.slice(-1)?.[0]}[-1]`]:e,u="array"===m.jsonType?[s5([],e)]:[];g.push({patches:d?[...u,s0(n,"after",c)]:[...u,s7(n,e)],targetSchemaTypeTitle:x})}catch(e){t.push({status:"error",title:e.message});return}if(n.log(QM,{context:s?.context?.source||"unknown",schemaTypes:C}),g.length){let e=e2(g.map(({patches:e})=>e));p(s4.from(e))}},[u,r,i,d,n,t,o]),C=(0,s.useMemo)(()=>({setDocumentMeta:h,onCopy:f,onPaste:g}),[f,g,h]);return(0,a.jsx)(c.Uc.Provider,{value:C,children:e})},Q2=()=>{let e=(0,s.useContext)(c.Uc);if(!e)throw Error("useCopyPaste must be used within a CopyPasteProvider");return e},Q5=(0,g.DU)(e=>{let{color:t,font:n}=(0,tZ.JW)(e.theme);return(0,g.AH)`
3913    ::-webkit-resizer {
3914      background-image: ${function(e){let t=encodeURIComponent(e);return`url("data:image/svg+xml,%3Csvg width='9' height='9' viewBox='0 0 9 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 8L8 1' stroke='${t}' stroke-linecap='round'/%3E%3Cpath d='M5 8L8 5' stroke='${t}' stroke-linecap='round'/%3E%3C/svg%3E%0A")`}(t.icon)};
3915      background-repeat: no-repeat;
3916      background-position: bottom right;
3917    }
3918
3919    ::-webkit-scrollbar {
3920      width: ${12}px;
3921      height: ${12}px;
3922    }
3923
3924    ::-webkit-scrollbar-corner {
3925      background-color: transparent;
3926    }
3927
3928    ::-webkit-scrollbar-thumb {
3929      background-clip: content-box;
3930      background-color: var(--card-border-color, ${t.border});
3931      border: ${4}px solid transparent;
3932    }
3933
3934    ::-webkit-scrollbar-thumb:hover {
3935      background-color: var(--card-muted-fg-color, ${t.muted.fg});
3936    }
3937
3938    ::-webkit-scrollbar-track {
3939      background: transparent;
3940    }
3941
3942    *::selection {
3943      background-color: ${(0,tZ.B3)(t.focusRing,.3)};
3944    }
3945
3946    html {
3947      background-color: ${t.bg};
3948    }
3949
3950    body {
3951      scrollbar-gutter: stable;
3952    }
3953
3954    #sanity {
3955      font-family: ${n.text.family};
3956    }
3957
3958    b {
3959      font-weight: ${n.text.weights.medium};
3960    }
3961
3962    strong {
3963      font-weight: ${n.text.weights.medium};
3964    }
3965  `});function Q0(e){let t,n,r,i,l,s,d,u=(0,o.c)(17),{children:p,selectedPerspectiveName:m,excludedPerspectives:h}=e,f=void 0===h?i_:h,{data:g}=lp(),{document:C}=lE(),{drafts:y}=C,{enabled:x}=y;u[0]!==g||u[1]!==m?(n=FM(m,g),u[0]=g,u[1]=m,u[2]=n):n=u[2],t=n,u[3]!==f||u[4]!==x||u[5]!==g||u[6]!==m?(i=function({selectedPerspectiveName:e,releases:t,excludedPerspectives:n,isDraftModelEnabled:r}){let i=r?o9:le;if(!e)return i;if("published"===e)return le;let a=o6(t).map(e=>o4(e._id)),o=a.indexOf(e);return -1===o?lt:a.slice(o).concat(i).filter(e=>!n.includes(e))}({releases:g,selectedPerspectiveName:m,excludedPerspectives:f,isDraftModelEnabled:x}),u[3]=f,u[4]=x,u[5]=g,u[6]=m,u[7]=i):i=u[7],r=i;let b=iC.includes(m)?void 0:m;return u[8]!==f||u[9]!==r||u[10]!==t||u[11]!==m||u[12]!==b?(s={selectedPerspective:t,selectedPerspectiveName:m,selectedReleaseId:b,perspectiveStack:r,excludedPerspectives:f},u[8]=f,u[9]=r,u[10]=t,u[11]=m,u[12]=b,u[13]=s):s=u[13],l=s,u[14]!==p||u[15]!==l?(d=(0,a.jsx)(c.A3.Provider,{value:l,children:p}),u[14]=p,u[15]=l,u[16]=d):d=u[16],d}let Q7=()=>{let e,t,n=(0,o.c)(9),r=(0,p.dj)(),{t:i}=iJ(),{data:l,loading:d}=lp(),{data:c}=cn(),{selectedPerspectiveName:m}=oW(),h=l$();return n[0]!==c||n[1]!==l||n[2]!==d||n[3]!==m||n[4]!==h||n[5]!==i||n[6]!==r?(e=()=>{if(!(d||!m||lj(m))&&!l.some(e=>o4(e._id)===m)){h(ln);let e=c.find(e=>o4(e._id)===m),{title:t,description:n}=(e=>e?"published"===e.state?{title:"release.toast.published-release.title",description:"release.toast.published-release.description"}:{title:"release.toast.archived-release.title",description:"release.toast.archived-release.description"}:{title:"release.toast.not-found-release.title"})(e);r.push({id:`bundle-deleted-toast-${m}`,status:"warning",title:(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(an,{t:i,i18nKey:t,values:{title:e?.metadata?.title||m}})}),description:n&&(0,a.jsx)(u.EY,{muted:!0,size:1,children:(0,a.jsx)(an,{t:i,i18nKey:n})}),duration:1e4})}},t=[c,m,l,d,h,r,i],n[0]=c,n[1]=l,n[2]=d,n[3]=m,n[4]=h,n[5]=i,n[6]=r,n[7]=e,n[8]=t):(e=n[7],t=n[8]),(0,s.useEffect)(e,t),null};function Q3(e){let t,n,r,i,l=(0,o.c)(7),{children:s}=e,d=(0,tq.rd)(),{document:c}=lE(),{drafts:u}=c,{enabled:p}=u,m=d.stickyParams.perspective;return!p&&typeof m>"u"&&(m=lr),l[0]!==d.stickyParams.excludedPerspectives?(n=d.stickyParams.excludedPerspectives?.split(",")||i_,l[0]=d.stickyParams.excludedPerspectives,l[1]=n):n=l[1],t=n,l[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,a.jsx)(Q7,{}),l[2]=r):r=l[2],l[3]!==s||l[4]!==t||l[5]!==m?(i=(0,a.jsxs)(Q0,{selectedPerspectiveName:m,excludedPerspectives:t,children:[s,r]}),l[3]=s,l[4]=t,l[5]=m,l[6]=i):i=l[6],i}function Q8(e){let t,n,r,i,l,d=(0,o.c)(16),{children:c,AuthenticateComponent:u,LoadingComponent:p,NotAuthenticatedComponent:m}=e,h=void 0===u?GT:u,f=void 0===p?r5:p,g=void 0===m?Gz:m,[C,y]=(0,s.useState)(null);if(C)throw C;let[x,b]=(0,s.useState)("loading"),[v,j]=(0,s.useState)(),{activeWorkspace:w}=FS();if(d[0]!==w.auth?(t=()=>{w.auth.handleCallbackUrl?.().catch(y)},n=[w.auth],d[0]=w.auth,d[1]=t,d[2]=n):(t=d[1],n=d[2]),(0,s.useEffect)(t,n),d[3]!==w.auth.state?(r=()=>{let e=w.auth.state.subscribe({next:e=>{let{authenticated:t,currentUser:n}=e;if(n?.roles?.length===0){b("unauthorized"),n?.provider&&j(n.provider);return}b(t?"logged-in":"logged-out")},error:y});return()=>{e.unsubscribe()}},d[3]=w.auth.state,d[4]=r):r=d[4],d[5]!==w?(i=[w],d[5]=w,d[6]=i):i=d[6],(0,s.useEffect)(r,i),"loading"===x){let e;return d[7]!==f?(e=(0,a.jsx)(f,{}),d[7]=f,d[8]=e):e=d[8],e}if("unauthorized"===x){let e;if(!v||"sanity"===v){let e;return d[9]!==g?(e=(0,a.jsx)(g,{}),d[9]=g,d[10]=e):e=d[10],e}return d[11]===Symbol.for("react.memo_cache_sentinel")?(e=(0,a.jsx)(GP,{}),d[11]=e):e=d[11],e}if("logged-out"===x){let e;return d[12]!==h?(e=(0,a.jsx)(h,{}),d[12]=h,d[13]=e):e=d[13],e}return d[14]!==c?(l=(0,a.jsx)(a.Fragment,{children:c}),d[14]=c,d[15]=l):l=d[15],l}let Q4=()=>((function(){let e,t,n=(0,o.c)(4),{node:r}=Mr(),{navigateUrl:i}=(0,tq.rd)();n[0]!==i||n[1]!==r?(e=()=>r?.on("dashboard/v1/history/change-path",e=>{let{path:t}=e;i({path:t.replace(/^\/+/,"/"),replace:!1})}),t=[i,r],n[0]=i,n[1]=r,n[2]=e,n[3]=t):(e=n[2],t=n[3]),(0,s.useEffect)(e,t)})(),null),Q6={apiVersion:"2023-12-18"};function Q9(e){let t,n,r=(0,o.c)(6),{errorReporter:i}=e,a=ee7(Q6);return r[0]!==a.observable||r[1]!==i?(t=()=>{let e=a.observable.request({uri:"/intake/telemetry-status",tag:"telemetry-consent.error-reporting"}).subscribe({next:e=>{e?.status==="granted"?i.enable():i.disable()},error:eee});return()=>e.unsubscribe()},r[0]=a.observable,r[1]=i,r[2]=t):t=r[2],r[3]!==a||r[4]!==i?(n=[a,i],r[3]=a,r[4]=i,r[5]=n):n=r[5],(0,s.useEffect)(t,n),null}function eee(e){console.error("Error fetching telemetry status",e)}let eet="u">typeof __SANITY_STAGING__&&!0===__SANITY_STAGING__,een=`${eet?"https://sanity-cdn.work":"https://sanity-cdn.com"}/v1/modules/`,eer=async(e,t)=>{try{let n=`t${Math.floor(Date.now()/1e3)}`;return(await fetch(`${een}${e}/default/^${t}/${n}`,{headers:{accept:"application/json"}})).json().then(e=>e.packageVersion)}catch(t){console.error("Failed to fetch latest version for package",e,"Error:",t);return}},eei=async e=>Object.fromEntries(await Promise.all(Object.entries(e).map(async([e,t])=>[e,await eer(e,t)]))),eea={sanity:re.s};function eeo(e){let t,n,r,i,l,d=(0,o.c)(9),{children:c}=e,m=(0,p.dj)(),{t:h}=iJ(),f=(0,s.useRef)(null);d[0]===Symbol.for("react.memo_cache_sentinel")?(t=K6(),d[0]=t):t=d[0];let g=t;d[1]!==h||d[2]!==m?(n=()=>{m.push({id:"new-package-available",title:h("package-version.new-package-available.title"),description:(0,a.jsx)(u.az,{paddingTop:2,children:(0,a.jsx)(y.$n,{size:"large","aria-label":h("package-version.new-package-available.reload-button"),onClick:ees,text:h("package-version.new-package-available.reload-button"),tone:"primary"})}),closable:!0,status:"info",duration:20736e5})},d[1]=h,d[2]=m,d[3]=n):n=d[3];let C=n;return d[4]!==C?(r=()=>{if(!g)return;let e=()=>{f.current&&f.current+18e5>Date.now()||eei(eea).then(e=>{f.current=Date.now(),e&&Object.entries(e).some(eel)&&C()})};e();let t=setInterval(e,3e4);return()=>clearInterval(t)},i=[g,C],d[4]=C,d[5]=r,d[6]=i):(r=d[5],i=d[6]),(0,s.useEffect)(r,i),d[7]!==c?(l=(0,a.jsx)(a.Fragment,{children:c}),d[7]=c,d[8]=l):l=d[8],l}function eel(e){let[t,n]=e;return!!n&&!!eea[t]&&ra.gt(n,eea[t])}
3965function ees(){window.location.reload()}let eed=(0,g.i7)`
3966  0% {
3967    background-position: 100%;
3968  }
3969  100% {
3970    background-position: -100%;
3971  }
3972`,eec=g.I4.div(e=>{let t=(0,tZ.JW)(e.theme),n=t.color.selectable.default.hovered.bg,r=t.color.selectable.default.enabled.bg;return(0,g.AH)`
3973    position: relative;
3974    cursor: pointer;
3975    // hide the close button
3976    #close-floating-button {
3977      opacity: 0;
3978      transition: opacity 0.2s;
3979    }
3980
3981    &:hover {
3982      > [data-ui='whats-new-card'] {
3983        --card-bg-color: ${n};
3984        box-shadow: inset 0 0 2px 1px var(--card-skeleton-color-to);
3985        background-image: linear-gradient(
3986          to right,
3987          var(--card-bg-color),
3988          var(--card-bg-color),
3989          ${r},
3990          var(--card-bg-color),
3991          var(--card-bg-color),
3992          var(--card-bg-color)
3993        );
3994        background-position: 100%;
3995        background-size: 200% 100%;
3996        background-attachment: fixed;
3997        animation-name: ${eed};
3998        animation-timing-function: ease-in;
3999        animation-iteration-count: infinite;
4000        animation-duration: 2000ms;
4001      }
4002      #close-floating-button {
4003        opacity: 1;
4004        background: transparent;
4005
4006        &:hover {
4007          transition: all 0.2s;
4008          box-shadow: 0 0 0 1px ${t.color.selectable.default.hovered.border};
4009        }
4010      }
4011    }
4012  `}),eeu=g.I4.div`
4013  z-index: 1;
4014  position: absolute;
4015  top: 0px;
4016  right: 6px;
4017`;function eep(e){let t,n,r,i,l,d,c,p,m,h,f,g,x,b,v=(0,o.c)(37),{title:j,id:w,isOpen:_,name:k,preHeader:S,onCardClick:T,onCardDismiss:I}=e,{t:E}=iJ(),$=(0,e5.Jr)();return v[0]!==w||v[1]!==_||v[2]!==k||v[3]!==$||v[4]!==j?(t=()=>{_&&$.log(X2,{announcement_id:w,announcement_title:j,announcement_internal_name:k,source:"studio",studio_version:re.s})},n=[$,w,j,_,k],v[0]=w,v[1]=_,v[2]=k,v[3]=$,v[4]=j,v[5]=t,v[6]=n):(t=v[5],n=v[6]),(0,s.useEffect)(t,n),v[7]===Symbol.for("react.memo_cache_sentinel")?(r={bottom:12,left:12,top:"none"},v[7]=r):r=v[7],v[8]!==E?(i=E("announcement.floating-button.open-label"),v[8]=E,v[9]=i):i=v[9],v[10]!==S?(l=(0,a.jsx)(u.az,{marginRight:6,children:(0,a.jsx)(u.EY,{as:"h3",size:1,muted:!0,children:S})}),v[10]=S,v[11]=l):l=v[11],v[12]!==j?(d=(0,a.jsx)(u.EY,{size:1,weight:"medium",children:j}),v[12]=j,v[13]=d):d=v[13],v[14]!==l||v[15]!==d?(c=(0,a.jsxs)(u.BJ,{space:3,children:[l,d]}),v[14]=l,v[15]=d,v[16]=c):c=v[16],v[17]!==T||v[18]!==i||v[19]!==c?(p=(0,a.jsx)(u.Zp,{"data-ui":"whats-new-card",padding:3,radius:3,onClick:T,role:"button","aria-label":i,children:c}),v[17]=T,v[18]=i,v[19]=c,v[20]=p):p=v[20],v[21]!==E?(m=E("announcement.floating-button.dismiss-label"),v[21]=E,v[22]=m):m=v[22],v[23]!==E?(h=E("announcement.floating-button.dismiss"),v[23]=E,v[24]=h):h=v[24],v[25]!==h?(f={content:h},v[25]=h,v[26]=f):f=v[26],v[27]!==I||v[28]!==f||v[29]!==m?(g=(0,a.jsx)(eeu,{children:(0,a.jsx)(y.$n,{id:"close-floating-button",mode:"bleed",onClick:I,icon:C.USm,tone:"default","aria-label":m,tooltipProps:f})}),v[27]=I,v[28]=f,v[29]=m,v[30]=g):g=v[30],v[31]!==g||v[32]!==p?(x=(0,a.jsxs)(eec,{"data-ui":"whats-new-root",children:[p,g]}),v[31]=g,v[32]=p,v[33]=x):x=v[33],v[34]!==_||v[35]!==x?(b=(0,a.jsx)(y.AM,{open:_,shadow:3,portal:!0,style:r,width:0,placement:"bottom-start",content:x}),v[34]=_,v[35]=x,v[36]=b):b=v[36],b}let eem=g.I4.hr`
4018  height: 1px;
4019  background: var(--card-border-color);
4020  width: 100%;
4021  opacity: ${({$show:e})=>+!!e};
4022  transition: opacity 0.3s ease;
4023  margin: 0;
4024  border: none;
4025`;function eeh(e){let t,n,r,i=(0,o.c)(6),{parentRef:l}
4025=e,d=(0,s.useRef)(null),[c,p]=(0,s.useState)(!0);return i[0]!==l.current?(t=()=>{let e=d.current,t=l.current;if(!e||!t)return;let n=new IntersectionObserver(e=>{let[t]=e;p(t.isIntersecting)},{root:t,threshold:0,rootMargin:"-60px 0px 0px 0px"});return n.observe(e),()=>{n.disconnect()}},i[0]=l.current,i[1]=t):t=i[1],i[2]!==l?(n=[l],i[2]=l,i[3]=n):n=i[3],(0,s.useEffect)(t,n),i[4]!==c?(r=(0,a.jsx)(u.az,{paddingBottom:4,children:(0,a.jsx)(u.az,{paddingY:3,paddingX:3,children:(0,a.jsx)(eem,{ref:d,$show:c})})}),i[4]=c,i[5]=r):r=i[5],r}let eef={month:"short",day:"2-digit"},eeg=(0,g.I4)(u.az)`
4026  overflow: auto;
4027  max-height: 75vh;
4028`,eeC=(0,g.I4)(u.xA)`
4029  position: sticky;
4030  display: grid;
4031  grid-template-columns: 64px 1fr 64px;
4032  top: 0;
4033  z-index: 1;
4034  background: var(--card-bg-color);
4035`,eey=(0,g.I4)(u.az)`
4036  position: absolute;
4037  top: 12px;
4038  right: 24px;
4039  z-index: 2;
4040`,eex=(0,g.I4)(y.$n)``;function eeb(e){let t,n,r,i,l,d,c,p,m,h,f,g=(0,o.c)(35),{announcement:C,mode:y,isFirst:x,parentRef:b}=e,v=(0,e5.Jr)(),j=cO(eef),w=(0,s.useRef)(null);e:{let e;if(!C.publishedDate){t="";break e}g[0]!==C.publishedDate||g[1]!==j?(e=j.format(new Date(C.publishedDate)),g[0]=C.publishedDate,g[1]=j,g[2]=e):e=g[2],t=e}let _=t;g[3]!==C._id||g[4]!==C.name||g[5]!==C.title||g[6]!==y||g[7]!==v?(n=e=>{let{url:t,linkTitle:n}=e;v.log(X3,{announcement_id:C._id,announcement_title:C.title,announcement_internal_name:C.name,source:"studio",studio_version:re.s,origin:y,link_url:t,link_title:n})},g[3]=C._id,g[4]=C.name,g[5]=C.title,g[6]=y,g[7]=v,g[8]=n):n=g[8];let k=n;g[9]!==C._id||g[10]!==C.name||g[11]!==C.title||g[12]!==y||g[13]!==v?(r=e=>{v.log(X7,{announcement_id:C._id,announcement_title:C.title,announcement_internal_name:C.name,source:"studio",studio_version:re.s,scrolled_into_view:e,origin:y})},g[9]=C._id,g[10]=C.name,g[11]=C.title,g[12]=y,g[13]=v,g[14]=r):r=g[14];let S=r;return g[15]!==x||g[16]!==S||g[17]!==b?(i=()=>{if(x)return void S(!1);let e=w.current,t=b.current;if(!e||!t)return;let n=new IntersectionObserver(e=>{let[t]=e;t.isIntersecting&&(S(!0),n.disconnect())},{root:t,threshold:1,rootMargin:"0px 0px -100px 0px"});return n.observe(e),()=>{n.disconnect()}},l=[S,b,x],g[15]=x,g[16]=S,g[17]=b,g[18]=i,g[19]=l):(i=g[18],l=g[19]),(0,s.useEffect)(i,l),g[20]!==_?(d=(0,a.jsx)(u.az,{flex:"none",padding:2,paddingRight:0,children:(0,a.jsx)(u.az,{paddingLeft:2,children:(0,a.jsx)(u.EY,{size:1,muted:!0,children:_})})}),g[20]=_,g[21]=d):d=g[21],g[22]!==C.title?(c=(0,a.jsx)(u.so,{flex:1,padding:2,justify:"center",ref:w,children:(0,a.jsx)(u.EY,{as:"h2",size:1,weight:"semibold",children:C.title})}),g[22]=C.title,g[23]=c):c=g[23],g[24]!==d||g[25]!==c?(p=(0,a.jsxs)(eeC,{padding:3,children:[d,c]}),g[24]=d,g[25]=c,g[26]=p):p=g[26],g[27]!==C.body?(m=C.body||[],g[27]=C.body,g[28]=m):m=g[28],g[29]!==k||g[30]!==m?(h=(0,a.jsx)(u.az,{padding:4,children:(0,a.jsx)(yb,{blocks:m,onLinkClick:k})}),g[29]=k,g[30]=m,g[31]=h):h=g[31],g[32]!==h||g[33]!==p?(f=(0,a.jsxs)(u.az,{children:[p,h]}),g[32]=h,g[33]=p,g[34]=f):f=g[34],f}function eev(e){let t,n,r,i,l,d,c,u,p=(0,o.c)(21),{announcements:m,onClose:h,mode:f}=e;p[0]!==m?(t=void 0===m?[]:m,p[0]=m,p[1]=t):t=p[1];let g=t,x=(0,s.useRef)(null),{t:b}=iJ();return p[2]!==g||p[3]!==f?(n=g.map((e,t)=>(0,a.jsxs)(s.Fragment,{children:[(0,a.jsx)(eeb,{announcement:e,mode:f,isFirst:0===t,parentRef:x}),t<g.length-1&&(0,a.jsx)(eeh,{parentRef:x})]},e._id)),p[2]=g,p[3]=f,p[4]=n):n=p[4],p[5]!==b?(r=b("announcement.dialog.close-label"),p[5]=b,p[6]=r):r=p[6],p[7]!==b?(i=b("announcement.dialog.close"),p[7]=b,p[8]=i):i=p[8],p[9]!==i?(l={content:i},p[9]=i,p[10]=l):l=p[10],p[11]!==h||p[12]!==r||p[13]!==l?(d=(0,a.jsx)(eey,{children:(0,a.jsx)(eex,{"aria-label":r,icon:C.USm,mode:"bleed",onClick:h,tooltipProps:l})}),p[11]=h,p[12]=r,p[13]=l,p[14]=d):d=p[14],p[15]!==n||p[16]!==d?(c=(0,a.jsxs)(eeg,{ref:x,height:"fill",children:[n,d]}),p[15]=n,p[16]=d,p[17]=c):c=p[17],p[18]!==h||p[19]!==c?(u=(0,a.jsx)(y.lG,{id:"in-app-communication-dialog",onClose:h,onClickOutside:h,width:1,bodyHeight:"fill",padding:!1,__unstable_hideCloseButton:!0,__unstable_autoFocus:!1,children:c}),p[18]=h,p[19]=c,p[20]=u):u=p[20],u}let eej="studio.announcement.seen",eew={value:null,error:null,loading:!0};function ee_(e){return(0,k.of)({value:null,error:e,loading:!1})}function eek(e){return{value:e,error:null,loading:!1}}let eeS=["administrator","editor","viewer","contributor","developer","custom"],eeT={apiVersion:"v2024-09-19"};function eeI(e){let t,n,r,i,l,d,u,p,m,h,f,g,C,y=(0,o.c)(47),{children:x}
4040=e,b=(0,e5.Jr)(),[v,j]=(0,s.useState)(null),[w,_]=(0,s.useState)(!1),[k,S]=function(){let e,t,n,r,i,a,l,d=(0,o.c)(13),c=(0,tq.rd)(),u=Mt();d[0]!==u?(t=u.getKey(eej).pipe((0,E.T)(eek),(0,Z.Z)(eew),(0,M.W)(ee_)),d[0]=u,d[1]=t):t=d[1],e=t,d[2]!==u?(n=e=>{u.setKey(eej,e)},d[2]=u,d[3]=n):n=d[3];let p=n;d[4]!==c.state._searchParams?(r=new URLSearchParams(c.state._searchParams)?.get("reset-announcements"),d[4]=c.state._searchParams,d[5]=r):r=d[5];let m=r;return d[6]!==m||d[7]!==p?(i=()=>{null!==m&&p(m?m.split(","):[])},a=[m,p],d[6]=m,d[7]=p,d[8]=i,d[9]=a):(i=d[8],a=d[9]),(0,s.useEffect)(i,a),d[10]!==e||d[11]!==p?(l=[e,p],d[10]=e,d[11]=p,d[12]=l):l=d[12],l}(),{currentUser:T}=lE(),I=ee7(eeT);if(y[0]!==I.observable||y[1]!==T?.roles||y[2]!==k){let e;y[4]!==T?.roles?(e=e=>e?e.filter(e=>{var t,n;return function(e,t){switch(e.audience){case"everyone":default:return!0;case"specific-version":return(0,ra.satisfies)(t,`= ${e.studioVersion}`,{includePrerelease:!0});case"greater-than-or-equal-version":return(0,ra.satisfies)(t,`>= ${e.studioVersion}`,{includePrerelease:!0});case"less-than-or-equal-version":return(0,ra.satisfies)(t,`<= ${e.studioVersion}`,{includePrerelease:!0})}}({audience:e.audience,studioVersion:e.studioVersion}
4040,re.s)&&(t=e.audienceRole,n=T?.roles,!t||!t.length||!!n&&!!n.length&&(!!n.some(e=>t.includes(e.name))||!!n.some(e=>!eeS.includes(e.name))&&t.includes("custom")))}):[],y[4]=T?.roles,y[5]=e):e=y[5];let t=I.observable.request({url:"/journey/announcements"}).pipe((0,E.T)(e),(0,M.W)(eeA),(0,Z.Z)([]));n=(0,eo.z)([t,k]).pipe((0,E.T)(ee$)),y[0]=I.observable,y[1]=T?.roles,y[2]=k,y[3]=n}else n=y[3];t=n,y[6]===Symbol.for("react.memo_cache_sentinel")?(r={unseen:[],all:[]},y[6]=r):r=y[6];let $=(0,eH.J)(t,r),A=$.unseen,D=$.all;y[7]!==S||y[8]!==D?(i=()=>{S(D.map(eeE))},y[7]=S,y[8]=D,y[9]=i):i=y[9];let z=i;y[10]===Symbol.for("react.memo_cache_sentinel")?(l=e=>{j(e),_(!0)},y[10]=l):l=y[10];let P=l;y[11]!==z||y[12]!==b||y[13]!==A[0]?._id||y[14]!==A[0]?.name||y[15]!==A[0]?.title?(d=()=>{z(),_(!0),b.log(X0,{announcement_id:A[0]?._id,announcement_title:A[0]?.title,announcement_internal_name:A[0]?.name,source:"studio",studio_version:re.s})},y[11]=z,y[12]=b,y[13]=A[0]?._id,y[14]=A[0]?.name,y[15]=A[0]?.title,y[16]=d):d=y[16];let R=d;y[17]!==b||y[18]!==A[0]?._id||y[19]!==A[0]?.name||y[20]!==A[0]?.title?(u=()=>{P("card"),b.log(X5,{announcement_id:A[0]?._id,announcement_title:A[0]?.title,announcement_internal_name:A[0]?.name,source:"studio",studio_version:re.s})},y[17]=b,y[18]=A[0]?._id,y[19]=A[0]?.name,y[20]=A[0]?.title,y[21]=u):u=y[21];let O=u;y[22]!==v||y[23]!==z||y[24]!==D[0]||y[25]!==b||y[26]!==A[0]?(p=()=>{let e="help_menu"===v?D[0]:A[0];b.log(X8,{announcement_id:e?._id,announcement_title:e?.title,announcement_internal_name:e?.name,source:"studio",studio_version:re.s,origin:v??"card"}),j(null),z()},y[22]=v,y[23]=z,y[24]=D[0],y[25]=b,y[26]=A[0],y[27]=p):p=y[27];let V=p;return y[28]!==D||y[29]!==A?(h={studioAnnouncements:D,unseenAnnouncements:A,onDialogOpen:P},y[28]=D,y[29]=A,y[30]=h):h=y[30],m=h,y[31]!==O||y[32]!==R||y[33]!==w||y[34]!==A[0]||y[35]!==A.length?(f=A.length>0&&(0,a.jsx)(eep,{preHeader:A[0].preHeader,title:A[0].title,name:A[0].name,id:A[0]._id,onCardClick:O,isOpen:!w,onCardDismiss:R}),y[31]=O,y[32]=R,y[33]=w,y[34]=A[0],y[35]=A.length,y[36]=f):f=y[36],y[37]!==v||y[38]!==V||y[39]!==D||y[40]!==A?(g=v&&(0,a.jsx)(eev,{mode:v,announcements:"help_menu"===v?D:A,onClose:V}),y[37]=v,y[38]=V,y[39]=D,y[40]=A,y[41]=g):g=y[41],y[42]!==x||y[43]!==m||y[44]!==f||y[45]!==g?(C=(0,a.jsxs)(c.Zb.Provider,{value:m,children:[x,f,g]}),y[42]=x,y[43]=m,y[44]=f,y[45]=g,y[46]=C):C=y[46],C}function eeE(e){return e._id}function ee$(e){let[t,n]=e;return n.loading||n.error?{unseen:[],all:t}:n.value?{unseen:t.filter(e=>!n.value?.includes(e._id)),all:t}:{unseen:t,all:t}}function eeA(){return[]}function eeD(e){let t=(0,o.c)(2);if(co().announcements?.enabled){let n;return t[0]!==e?(n=(0,a.jsx)(eeI,{...e}),t[0]=e,t[1]=n):n=t[1],n}return e.children}let eez=iS.__sanityErrorChannel;function eeM(e){let{children:t}=e,[n,r]=(0,s.useState)(),i=(0,s.useCallback)(()=>r(void 0),[]),o=(0,p.dj)();return(0,ro.i)(i),(0,s.useEffect)(()=>{if(eez)return eez.subscribe(e=>{let t;if(e.error&&e.error instanceof Error){var n;if((n=e.error)instanceof W1||n instanceof a8||n instanceof aA||rl(n)&&"ViteDevServerStoppedError"in n&&n.ViteDevServerStoppedError)return void r({error:e.error});
4040try{t=Gc.reportError(e.error)?.eventId}catch(e){e.message=`Encountered an additional error when reporting error: ${e.message}`,console.error(e)}if(Gp(e.error))return void r({error:e.error,eventId:t});o.push({id:e.error.message,closable:!0,description:e.error.message,duration:5e3,title:"Uncaught error",status:"error"})}})},[o]),n?.error?n.error instanceof a8?(0,a.jsx)(G$,{projectId:n.error.projectId}):n.error instanceof W1?(0,a.jsx)(GH,{schema:n.error.schema}):Gp(n.error)?(0,a.jsx)(GG,{error:n.error,eventId:n.eventId}):(0,a.jsx)(GJ,{error:n.error,eventId:n.eventId,onReset:i}):t}u.Qx.fonts.code.family,u.Qx.fonts.text.family,v.Ql.hex,v.ON.hex,v.z1[500].hex,v.ON.hex,v.Ql.hex,v.wm[500].hex,v.wm[500].hex,v.wm[500].hex,v.wv[500].hex,v.z1[500].hex,v.wL[500].hex,v.D9[500].hex,v.z1[500].hex,v.z1[500].hex,v.wL[500].hex,v.D9[500].hex,v.wv[500].hex,v.Ql.hex,v.ON.hex;let eeP=(0,tZ.me)();function eeR(e){return{...eeP,v2:e.v2,fonts:!0===e.__themer?eeP.fonts:e.fonts??eeP.fonts,color:e.color??eeP.color}}function eeO(e){let t,n,r,i=(0,o.c)(18),{children:l}=e,s=FS().activeWorkspace.theme;if(s.__legacy){let e,t,n,r,o=s.__dark?"dark":"light";return i[0]!==s?(e=eeR(s),i[0]=s,i[1]=e):e=i[1],i[2]!==l?(t=(0,a.jsx)(u.XS,{children:l}),i[2]=l,i[3]=t):t=i[3],i[4]!==o||i[5]!==e||i[6]!==t?(n=(0,a.jsx)(u.NP,{scheme:o,theme:e,children:t}),i[4]=o,i[5]=e,i[6]=t,i[7]=n):n=i[7],i[8]!==o||i[9]!==n?(r=(0,a.jsx)(c.RU.Provider,{value:!1,children:(0,a.jsx)(c.fG.Provider,{value:o,children:n})}),i[8]=o,i[9]=n,i[10]=r):r=i[10],r}return i[11]!==s?(t=eeR(s),i[11]=s,i[12]=t):t=i[12],i[13]!==l?(n=(0,a.jsx)(u.XS,{children:l}),i[13]=l,i[14]=n):n=i[14],i[15]!==t||i[16]!==n?(r=(0,a.jsx)(u.NP,{theme:t,children:n}),i[15]=t,i[16]=n,i[17]=r):r=i[17],r}let eeV=(0,eQ.g_)({name:"Performance INP Measured",maxSampleRate:6e4,version:1,description:"Performance INP (Interaction to Next Paint) measurement happened"});function eeL(e){return function(){let e,t,n,r=(0,o.c)(5),i=(0,e5.Jr)();r[0]!==i?(e=(e,t)=>{let n;for(let t of e.getEntries())"event"===t.entryType&&t.duration>(n?.duration||0)&&(n=t);n&&i.log(eeV,{target:function(e){if(!e)return null;if(!(e instanceof Element))return e.nodeName;let{nodeName:t,classList:n,id:r}=e;return t.toLowerCase()+(r?`#${r}`:"")+(n?`.${n.value.replaceAll(" ",".")}`:"")}(n.target),attrs:function(e){if(!e||!(e instanceof Element))return;let t=e.getAttribute("data-ui")||void 0,n=e.getAttribute("data-testid")||void 0;return t||n?{ui:t,testId:n}:void 0}(n.target),interaction:n.name,duration:n.duration})},r[0]=i,r[1]=e):e=r[1];let a=e;r[2]!==a?(t=()=>{if(!("PerformanceObserver"in globalThis))return;let e=new PerformanceObserver(a);return e.observe({type:"event",buffered:!0}),()=>{e.disconnect()}},n=[a],r[2]=a,r[3]=t,r[4]=n):(t=r[3],n=r[4]),(0,s.useEffect)(t,n)}(),e.children}let eeF=(0,eQ.GH)(),eeB=!!("u">typeof rM&&rM.env?.SANITY_STUDIO_DEBUG_TELEMETRY),eeN={flushInterval:1e3,resolveConsent:()=>Promise.resolve({status:"granted"}),sendEvents:async e=>{console.log("[telemetry] submit events (noop): %O",e)},sendBeacon:e=>(console.log("[telemetry] submit events (noop): %O",e),!0)};function eeY(e){let t=ee7({apiVersion:"v2023-12-18"}),n=t.config().projectId,r=(0,s.useMemo)(()=>eeB?eeN:{flushInterval:3e4,resolveConsent:()=>t.request({uri:"/intake/telemetry-status",tag:"telemetry-consent.studio"}),sendEvents:e=>t.request({uri:"/intake/batch",method:"POST",json:!0,body:{projectId:n,batch:e}}),sendBeacon:e=>navigator.sendBeacon(t.getUrl("/intake/batch"),JSON.stringify({projectId:n,batch:e}))},[t,n]),i=(0,s.useMemo)(()=>(0,eQ.rC)(eeF,r),[r]);return(0,s.useEffect)(()=>{let t=rs(e.config),n=[],r=[];t.forEach(e=>{n.push(e.dataset),r.push(e.name||"<unnamed>")}),i.logger.updateUserProperties({userAgent:navigator.userAgent,screen:{density:window.devicePixelRatio,height:window.screen.height,width:window.screen.width,innerHeight:window.innerHeight,innerWidth:window.innerWidth},studioVersion:re.s,plugins:t.flatMap(e=>e.plugins?.flatMap(e=>({name:e.name||"<unnamed>"}
4040))||[]),uniqueWorkspaceNames:new Set(r).size,uniqueDatasetNames:new Set(n).size,workspaceNames:r,datasetNames:n})},[e.config,i.logger]),(0,a.jsx)(e5.Hb,{store:i,children:(0,a.jsx)(eeL,{children:e.children})})}function eeH(e){let t={},n=t.order||[],r=t.hidden||[];if(!n.length&&!r.length)return e;let i=e.reduce((e,t)=>{let r=t.title||"<unknown>";if(!t.name)return console.warn(`Tool "${r}" does not have the required "name" property`),e;if(e[t.name]){let n=e[t.name].tool.title;return console.warn(`Tools with duplicate name "${t.name}" found ("${r}" and "${n}")`),e}let i=n.indexOf(t.name);return e[t.name]={tool:t,index:-1===i?1/0:i},e},{}),a=e.filter(e=>-1===r.indexOf(e.name));return a.sort((e,t)=>{let n=i[e.name],r=i[t.name],a=n?n.index:1/0,o=r?r.index:1/0;return a===o?0:a-o}),a}(0,g.I4)(u.so)``,(0,g.I4)(u.az).attrs({padding:4})``;let eeZ=["template"],eeU=["mode"];function eeq(e){let t,n,r,i=(0,o.c)(10),{children:l,LoadingComponent:d,workspace:u}=e,{basePath:p,tools:m}=u,h=function(){let e=(0,s.useContext)(c.Nv);if(!e)throw Error("Could not find `RouterHistoryProvider` context");return e}();i[0]!==p||i[1]!==m?(n=function(e){let{basePath:t="/",tools:n}=e,r=tq.wE.create("/:tool",e=>{let t=n.find(t=>t.name===e.tool);return t||"desk"!==e.tool||(t=n.find(e=>"structure"===e.name)),t?tq.wE.scope(t.name,"/",t.router):tq.wE.create("/")});return tq.wE.create(t,[tq.wE.intents("/intent"),r])}({basePath:p,tools:m}),i[0]=p,i[1]=m,i[2]=n):n=i[2];let[f,g]=function(e,t,n){let r=(0,s.useMemo)(()=>{let n=t.getBasePath(),r=RegExp(`^${rr(n)}(\\/|\\?|$)`,"i");return{subscribe:t=>e.listen(t),getSnapshot:()=>`${e.location.pathname}${e.location.search||""}`,getServerSnapshot:()=>null,selector:e=>"string"==typeof e&&("/"===n||r.test(e))?{type:"state",state:t.decode(e)||{},isNotFound:t.isNotFound(e)}:null}},[e,t]),i=(0,rn.useSyncExternalStoreWithSelector)(r.subscribe,r.getSnapshot,r.getServerSnapshot,r.selector,eN),a=(0,s.useRef)(i);(0,s.useEffect)(()=>{if(i?.type==="state"&&!i.state?.intent){let r=function(e,t){var n=t&&(eeH(e).find(e=>e.name===t.space)?{...t,tool:t.space,space:void 0}:t);let r=eeH(e)[0];return n&&!n.tool&&r?Object.assign({},n,{tool:r.name}):n}(n,i.state);r&&r!==i.state&&e.replace(t.encode(r))}},[i?.state,i?.type,e,t,n]),(0,s.useEffect)(()=>{let r=eeW(i,t,n,a);r?e.replace(r):a.current=i},[i,e,t,n]);let o=(0,s.useMemo)(()=>({path:i,replace:o})=>{let l=eeW(r.selector(i),t,n,a),s="string"==typeof l?l:i;o?e.replace(s):e.push(s)},[e,t,r,n]);return[i?.state??null,o]}(h,t=n,m);if(!f){let e;return i[3]!==d?(e=(0,a.jsx)(d,{}),i[3]=d,i[4]=e):e=i[4],e}return i[5]!==l||i[6]!==g||i[7]!==t||i[8]!==f?(r=(0,a.jsx)(y.tH,{onCatch:eeJ,children:(0,a.jsx)(tq.pg,{onNavigate:g,router:t,state:f,children:l})}),i[5]=l,i[6]=g,i[7]=t,i[8]=f,i[9]=r):r=i[9],r}function eeJ(e){let{error:t}=e;throw t}function eeW(e,t,n,r){if(e?.type==="state"&&e.state?.intent){let i=function(e,t,n){let{intent:r,params:i,payload:a}=n;if("string"!=typeof r)throw Error("intent must be a string");if(!iI(i))throw Error("intent params must be a string");let o=eeH(e),l=t?.tool?o.find(e=>e.name===t.tool):null,s=l?o.filter(e=>e!==l):o,d=[];"create"===r?d=eeZ:"edit"===r&&(d=eeU);let{tool:c}=(l?[l,...s]:o).reduce((e,n)=>{if(!n||"function"!=typeof n.canHandleIntent)return e;let a=n.canHandleIntent(r,i,t&&t[n.name]);if("boolean"==typeof a)return a&&e.score<0?{score:0,tool:n}:e;if(!iI(a))return e;let o=d.reduce((e,t)=>t in i&&!0===a[t]?e+1:e,0);return o>e.score?{score:o,tool:n}:e},{score:-1,tool:null});if(c?.getIntentState){let{_searchParams:e,...o}=c.getIntentState(r,i,t&&t[c.name],a),l={...t,_searchParams:n._searchParams,tool:c.name,[c.name]:o};return c.router?.__unsafe_disableScopedSearchParams?l._searchParams=[...n._searchParams?.filter(([e])=>tq.VK.includes(e))||[],...Array.isArray(e)?e:[]]:o._searchParams=e,{type:"state",isNotFound:!1,state:l}}return{type:"intent",isNotFound:!0,intent:{name:r,params:i}}}(n,r.current?.type==="state"?r.current.state:{},e.state);if(i?.type==="state")return t.encode(i.state)}return null}function eeK(e){let t,n,r=(0,o.c)(3),[i,a]=(0,s.useState)(null);if(i)throw i;
4040let[l,d]=(0,s.useState)(null);return r[0]!==e?(t=()=>{let t=(0,eo.z)(e.__internal.sources.map(eeX)).pipe((0,E.T)(t=>{let n=t.filter(eeG);if(n.length)throw new aA({name:e.name,causes:n,type:"workspace"});return t}),(0,E.T)(t=>{let[n,...r]=t;return{...e,...n,unstable_sources:[n,...r],type:"workspace"}})).subscribe({next:d,error:a});return()=>t.unsubscribe()},n=[e],r[0]=e,r[1]=t,r[2]=n):(t=r[1],n=r[2]),(0,s.useEffect)(t,n),l}function eeG(e){return e instanceof aA}function eeX(e){let{source:t}=e;return t.pipe((0,M.W)(eeQ))}function eeQ(e){if(e instanceof aA)return(0,k.of)(e);throw e}function ee1(e){let t,n,r,i=(0,o.c)(12),{children:l,LoadingComponent:s}=e,{activeWorkspace:d}=FS(),c=eeK(d);if(!c){let e;return i[0]!==s?(e=(0,a.jsx)(s,{}),i[0]=s,i[1]=e):e=i[1],e}return i[2]!==s||i[3]!==l||i[4]!==c?(t=(0,a.jsx)(eeq,{LoadingComponent:s,workspace:c,children:l}),i[2]=s,i[3]=l,i[4]=c,i[5]=t):t=i[5],i[6]!==t||i[7]!==c.unstable_sources[0]?(n=(0,a.jsx)(ca,{source:c.unstable_sources[0],children:t}),i[6]=t,i[7]=c.unstable_sources[0],i[8]=n):n=i[8],i[9]!==n||i[10]!==c?(r=(0,a.jsx)(lI,{workspace:c,children:n}),i[9]=n,i[10]=c,i[11]=r):r=i[11],r}function ee2(e){let t,n,r,i=(0,o.c)(5);if(i[0]!==e){let{ConfigErrorsComponent:n,...r}=e;t=r,i[0]=e,i[1]=t}else t=i[1];i[2]===Symbol.for("react.memo_cache_sentinel")?(n={error:null},i[2]=n):n=i[2];
4040let[l,d]=(0,s.useState)(n),{error:c}=l;if(c)throw c;return i[3]!==t?(r=(0,a.jsx)(y.tH,{onCatch:d,children:(0,a.jsx)(ee1,{...t})}),i[3]=t,i[4]=r):r=i[4],r}function ee5(e){let t,n,r,i,l,s,d,c,u,m=(0,o.c)(21),{children:h,config:f,basePath:g,onSchemeChange:C,scheme:y,unstable_history:x,unstable_noAuthBoundary:b}=e;return Gc.initialize(),m[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(Q9,{errorReporter:Gc}),m[0]=n):n=m[0],m[1]===Symbol.for("react.memo_cache_sentinel")?(r=(0,a.jsx)(Q4,{}),m[1]=r):r=m[1],m[2]!==h?(i=(0,a.jsx)(it,{children:(0,a.jsxs)(eeo,{children:[n,(0,a.jsx)(d3,{children:(0,a.jsxs)(LU,{children:[r,(0,a.jsx)(eeD,{children:(0,a.jsx)(Q3,{children:h})})]})})]})}),m[2]=h,m[3]=i):i=m[3],m[4]!==f||m[5]!==i?(l=(0,a.jsx)(ee2,{LoadingComponent:r5,ConfigErrorsComponent:GI,children:(0,a.jsx)(eeY,{config:f,children:i})}),m[4]=f,m[5]=i,m[6]=l):l=m[6],t=l,m[7]!==t||m[8]!==b?(s=(0,a.jsx)(eeO,{children:(0,a.jsx)(a1,{children:b?t:(0,a.jsx)(Q8,{LoadingComponent:r5,AuthenticateComponent:GT,NotAuthenticatedComponent:Gz,children:t})})}),m[7]=t,m[8]=b,m[9]=s):s=m[9],m[10]!==x||m[11]!==s?(d=(0,a.jsx)(Ki,{unstable_history:x,NotFoundComponent:GM,LoadingComponent:r5,children:s}),m[10]=x,m[11]=s,m[12]=d):d=m[12],m[13]!==g||m[14]!==f||m[15]!==d?(c=(0,a.jsx)(p.tE,{paddingY:7,zOffset:sf.toast,children:(0,a.jsx)(G5,{children:(0,a.jsx)(eeM,{children:(0,a.jsx)(Ke,{config:f,basePath:g,LoadingComponent:r5,children:d})})})}),m[13]=g,m[14]=f,m[15]=d,m[16]=c):c=m[16],m[17]!==C||m[18]!==y||m[19]!==c?(u=(0,a.jsx)(Kg,{onSchemeChange:C,scheme:y,children:c}),m[17]=C,m[18]=y,m[19]=c,m[20]=u):u=m[20],u}function ee0(e){let t,n,r,i=(0,o.c)(11),{basePath:l,config:s,onSchemeChange:d,scheme:c,unstable_globalStyles:u,unstable_history:p,unstable_noAuthBoundary:m}=e;return i[0]!==u?(t=u&&(0,a.jsx)(Q5,{}),i[0]=u,i[1]=t):t=i[1],i[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,a.jsx)(G8,{}),i[2]=n):n=i[2],i[3]!==l||i[4]!==s||i[5]!==d||i[6]!==c||i[7]!==t||i[8]!==p||i[9]!==m?(r=(0,a.jsxs)(ee5,{basePath:l,config:s,onSchemeChange:d,scheme:c,unstable_history:p,unstable_noAuthBoundary:m,children:[t,n]}),i[3]=l,i[4]=s,i[5]=d,i[6]=c,i[7]=t,i[8]=p,i[9]=m,i[10]=r):r=i[10],r}function ee7(e){let t,n=(0,o.c)(5),r=co();if(!e){let e;return console.warn('Calling `useClient()` without specifying an API version is deprecated and will stop working in the next major version - please specify a date, e.g. `useClient({apiVersion: "2025-02-10"})`.'),n[0]!==r?(e=r.getClient({apiVersion:"v2025-02-07"}),n[0]=r,n[1]=e):e=n[1],e}return n[2]!==e||n[3]!==r?(t=r.getClient(e),n[2]=e,n[3]=r,n[4]=t):t=n[4],t}function ee3(e){let t,n,r,i,a=(0,o.c)(8),l=(0,p.dj)(),[d,c]=(0,s.useState)();a[0]!==e.enabled?(t=()=>{c(t=>e.enabled?t||new Date:void 0)},n=[e.enabled],a[0]=e.enabled,a[1]=t,a[2]=n):(t=a[1],n=a[2]),(0,s.useEffect)(t,n);let u=function(e){let t,n,r,i=(0,o.c)(4);
4040i[0]===Symbol.for("react.memo_cache_sentinel")?(t=new Date,i[0]=t):t=i[0];let[a,l]=(0,s.useState)(t);return 1e3!==i[1]?(n=()=>{let t=setInterval(()=>{l(new Date)},e);return()=>clearInterval(t)},r=[e],i[1]=e,i[2]=n,i[3]=r):(n=i[2],r=i[3]),(0,s.useEffect)(n,r),a}(1e3),m=d&&e.enabled&&u.getTime()-d.getTime()>(e?.delay??0);a[3]!==m||a[4]!==e||a[5]!==l?(r=()=>{if(m)return l.push({...e,duration:1/0}),()=>{l.push({...e,duration:.01})}},i=[e,l,m],a[3]=m,a[4]=e,a[5]=l,a[6]=r,a[7]=i):(r=a[6],i=a[7]),(0,s.useEffect)(r,i)}function ee8(e,t){let n,r,i=(0,o.c)(4),a=z6();return i[0]!==t||i[1]!==a.pair||i[2]!==e?(r=a.pair.operationEvents(e,t),i[0]=t,i[1]=a.pair,i[2]=e,i[3]=r):r=i[3],n=r,(0,eH.J)(n)}nY.registerLanguage(nH),nY.registerLanguage(nZ),nY.registerLanguage(nU),nY.registerLanguage(nq),nY.registerLanguage(nJ);let ee4=(0,eG.v_)("mod+c"),ee6=(0,eG.v_)("mod+v");function ee9(e){let t,n,r,i=(0,o.c)(11),{value:a,element:l,focusPath:d}=e,{onCopy:c,onPaste:u}=Q2();i[0]!==d||i[1]!==c||i[2]!==u||i[3]!==a?(t=e=>{let t=e.target;if(ee4(e)){if(QZ(t)||function(){if(typeof window>"u"||!window.getSelection)return!1;let e=window.getSelection();return null!==e&&!e.isCollapsed}()||QU(d))return;e.preventDefault(),e.stopPropagation(),c(d,a,{context:{source:"keyboardShortcut"}})}if(ee6(e)){if(QZ(t)||QU(d)||t?.dataset?.isFileTarget==="true")return;e.stopPropagation(),e.preventDefault(),u(d,a,{context:{source:"keyboardShortcut"}})}},i[0]=d,i[1]=c,i[2]=u,i[3]=a,i[4]=t):t=i[4];let p=(0,e1.J)(t);i[5]!==l||i[6]!==p?(n=()=>(l?.addEventListener("keydown",p),()=>{l?.removeEventListener("keydown",p)}),i[5]=l,i[6]=p,i[7]=n):n=i[7],i[8]!==l||i[9]!==u?(r=[l,u],i[8]=l,i[9]=u,i[10]=r):r=i[10],(0,s.useEffect)(n,r)}function ete({documentId:e,documentType:t,projectId:n,dataset:r,resourceId:i,resourceType:a,schemaName:o}){let{node:l}=Mr();if("studio"===a&&(!n||!r))throw Error("projectId and dataset are required for studio resources");let d="studio"!==a||i?i:`${n}.${r}`;if(!d)throw Error("resourceId is required for media-library and canvas resources");let c=(0,s.useMemo)(()=>({documentId:e,documentType:t,resourceId:d,resourceType:a,schemaName:o}),[e,t,d,a,o]),u=(0,s.useMemo)(()=>(function({node:e,context:t}){let n,r=new O.B;return{state:(0,H.T)(()=>typeof e>"u",(0,k.of)(ett),(0,R.h)(r.pipe((0,ei.F)(),(0,q.p)(e=>"boolean"==typeof e),(0,ev.N)(r=>(0,R.h)(r.pipe((0,E.T)(e=>({type:"SET",payload:e}))),r.pipe((0,ej.B)(750),(0,q.p)(e=>!(typeof n>"u")&&e!==n),function({node:e,context:t}){return(0,X.F)((0,ew.Z)(n=>{if(typeof t.resourceId>"u"||typeof e>"u")return I.w;let r={eventType:n?"added":"removed",document:{id:t.documentId,type:t.documentType,resource:{id:t.resourceId,type:t.resourceType,...t.schemaName?{schemaName:t.
4040schemaName}:{}}}};return(0,Q.H)(e.fetch("dashboard/v1/events/favorite/mutate",r)).pipe((0,M.W)(e=>(console.error("Favorites service write error",e),B.t)),(0,E.T)(e=>({success:"object"==typeof e&&null!==e&&"success"in e&&!!e.success,isFavorited:n})))},1))}({node:e,context:t}),(0,W.M)(({success:e,isFavorited:t})=>{e&&(n=t)}),(0,z.n)(()=>I.w))))),(function({node:e,context:t}){if(typeof t.resourceId>"u"||typeof e>"u")return I.w;let n={document:{id:t.documentId,type:t.documentType,resource:{id:t.resourceId,type:t.resourceType,schemaName:t.schemaName}}};return(0,Q.H)(e.fetch("dashboard/v1/events/favorite/query",n)).pipe((0,eb.w)({first:3e3,with:()=>(0,L.$)(()=>Error("Favorites service connection timeout"))}),(0,E.T)(e=>({isFavorited:e.isFavorited})),(0,M.W)(e=>(console.error("Favorites service connection error",e),(0,k.of)({isFavorited:!1}))))})({node:e,context:t}).pipe((0,E.T)(e=>({type:"END_READ",payload:e})),(0,W.M)(({payload:e})=>{n=e.isFavorited}),(0,Z.Z)({type:"BEGIN_READ"}))).pipe((0,G.S)((e,t)=>{switch(t.type){case"BEGIN_READ":return{...e,isReady:!1};case"END_READ":return{...e,value:t.payload.isFavorited,isReady:!0};case"SET":return{...e,value:t.payload};default:return e}},ett))),setState:e=>r.next(e)}})({node:l,context:c}),[c,l]),p=(0,eH.J)(u.state);return{favorite:(0,s.useCallback)(()=>u.setState(!0),[u]),unfavorite:(0,s.useCallback)(()=>u.setState(!1),[u]),isFavorited:p?.value,isReady:p?.isReady??!1}}let ett={value:void 0,isReady:!1},etn=e=>{let t,n,r=(0,o.c)(5),{t:i}=iJ();r[0]!==i?(t=i("common.reconnecting.toast.title"),r[0]=i,r[1]=t):t=r[1],r[2]!==e||r[3]!==t?(n={enabled:e,delay:2e3,id:"sanity/reconnecting",status:"warning",title:t},r[2]=e,r[3]=t,r[4]=n):n=r[4],ee3(n)},etr=e=>{let t=LT(),{studioApp:n,loading:r}=LQ({enabled:!0}),{activeWorkspace:i}=FS(),{value:a,loading:o}=Lk(),l=r||o,d=t?.name==="coreUi",c=(0,s.useMemo)(()=>d&&!l&&n?.appId&&a?(({organizationId:e,appId:t,workspaceName:n})=>`https://www.sanity.io/@${e}/studio/${t}/${n}`)({organizationId:a,appId:n.appId,workspaceName:i.name}):e||window.location.toString(),[i.name,e,d,l,a,n?.appId]);return{buildStudioUrl:(0,s.useCallback)(({coreUi:e,studio:t})=>(d?e:t)?.(c)||c,[d,c]),studioUrl:c}},eti={isSyncing:!0},eta={isSyncing:!1};function eto(e,t,n){let r,i,a=(0,o.c)(5),l=z6();return a[0]!==l.pair||a[1]!==t||a[2]!==e||a[3]!==n?(i=l.pair.consistencyStatus(e,t,n).pipe((0,E.T)(etl)),a[0]=l.pair,a[1]=t,a[2]=e,a[3]=n,a[4]=i):i=a[4],r=i,(0,eH.J)(r,eta)}function etl(e){return e?eta:eti}function ets(){return co().templates}let etd={data:[],error:null,loading:!0};function etc(e){let{documentValue:t,permission:n}=e,r=Me(),i=z7(),a=ee7(a7),[o,l]=(0,s.useState)(etd),[d,c]=(0,s.useMemo)(()=>[r.get().pipe((0,E.T)(e=>e.members?.filter(e=>!e.isRobot))).pipe((0,Y.t)(1)).pipe((0,z.n)(async e=>{let t=e.map(({id:e})=>e);return await i.getUsers(t)}),(0,E.T)(e=>e.map(e=>({displayName:e.displayName,id:e.id,granted:!1})))),a.observable.fetch('*[_type == "system.group"]').pipe((0,Y.t)(1))],[a.observable,r,i]),u=(0,s.useMemo)(()=>(0,el.p)([d,c]).pipe((0,ew.Z)(async([e,r])=>{let i=e?.map(async e=>{let i=[...r.map(t=>t.members.includes(e.id)?t.grants:[])].flat(),{granted:a}=await zb(e.id,i,n,t);return{...e,granted:a}});return await Promise.all(i||[])})).pipe((0,E.T)(e=>({error:null,loading:!1,data:tG(e,"displayName")}))),[t,n,d,c]);return(0,s.useEffect)(()=>{let e=(0,k.of)(etd),t=(0,S.x)(e,u).subscribe({next:l,error:e=>{l({data:[],error:e,loading:!1})}});return()=>{t.unsubscribe()}},[u]),o}function etu({draft:e,published:t,versions:n,singleLine:r}){let{data:i}=lp(),o=(0,s.useMemo)(()=>Object.entries(n??{}),[n]),{t:l}=iJ(),{document:{drafts:{enabled:d}}}=lE();return(0,a.jsxs)(u.so,{align:r?"center":"flex-start",direction:r?"row":"column",gap:3,wrap:"nowrap",children:[t&&(0,a.jsx)(etm,{title:l("release.chip.published"),mode:"published",timestamp:t._updatedAt,tone:"positive"}),d&&e&&(0,a.jsx)(etm,{title:l("release.chip.draft"),mode:"draft",timestamp:e._updatedAt,tone:"caution"}),o.map(([e,t])=>{if(!t)return null;let n=i?.find(t=>o4(t._id)===e);return(0,a.jsx)(etm,{mode:t?._updatedAt===t?._createdAt?"created":"edited",title:n?.metadata.title||l("release.placeholder-untitled-release"),timestamp:t?._updatedAt,tone:n?uj(n):"default"},e)})]})}let etp={draft:"document-status.edited",published:"document-status.date",edited:"document-status.edited",created:"document-status.created"},etm=e=>{let t,n,r,i,l,s,d,c,p=(0,o.c)(19),{title:m,timestamp:h,mode:f,tone:g}=e,{t:C}=iJ();p[0]===Symbol.for("react.memo_cache_sentinel")?(t={minimal:!0,useTemporalPhrase:!0},p[0]=t):t=p[0];let y=ck(h||"",t);p[1]!==g?(n=(0,a.jsx)(s_,{tone:g,padding:0}),p[1]=g,p[2]=n):n=p[2],p[3]!==C||p[4]!==m?(r=m||C("release.placeholder-untitled-release"),p[3]=C,p[4]=m,p[5]=r):r=p[5],p[6]===Symbol.for("react.memo_cache_sentinel")?(i={color:"var(--card-muted-fg-color)"},p[6]=i):i=p[6];let x=etp[f];return p[7]!==y||p[8]!==C||p[9]!==x?(l=C(x,{date:y}),p[7]=y,p[8]=C,p[9]=x,p[10]=l):l=p[10],p[11]!==l?(s=(0,a.jsx)("span",{style:i,children:l}),p[11]=l,p[12]=s):s=p[12],p[13]!==r||p[14]!==s?(d=(0,a.jsxs)(u.EY,{size:1,children:[r," ",s]}),p[13]=r,p[14]=s,p[15]=d):d=p[15],p[16]!==n||p[17]!==d?(c=(0,a.jsxs)(u.so,{align:"center",gap:2,children:[n,d]}),p[16]=n,p[17]=d,p[18]=c):c=p[18],c},eth={"retry.title":"Retry","copy-error-details.description":"The
4040se technical details may be useful for developers.","copy-error-details.title":"Copy error details","copy-error-details.toast.get-failed":"Failed to get error details","copy-error-details.toast.copy-failed":"Failed to copy error details"},etf="copyErrorDetails";function etg(e){return navigator.clipboard.writeText(e)}let etC=e=>{let t,n,r,i=(0,o.c)(10),{error:l,eventId:s,onRetry:d,isRetrying:c,size:m}=e,h=function(e,t){let n,r=(0,o.c)(4),i=(0,p.dj)();return r[0]!==e||r[1]!==t||r[2]!==i?(n=()=>{(0,k.of)({error:e,eventId:t}).pipe((0,E.T)(({error:e,eventId:t})=>JSON.stringify({error:iI(e)?nV(e,Object.getOwnPropertyNames(e)):void 0,eventId:t},null,2)),(0,M.W)(e=>(console.error(e),i.push({status:"error",title:eth["copy-error-details.toast.get-failed"],id:etf}),I.w)),(0,W.M)(etg),(0,M.W)(e=>(console.error(e),i.push({status:"error",title:eth["copy-error-details.toast.copy-failed"],id:etf}),I.w))).subscribe()},r[0]=e,r[1]=t,r[2]=i,r[3]=n):n=r[3],n}(l,s);return i[0]!==c||i[1]!==d||i[2]!==m?(t=d&&(0,a.jsx)(y.$n,{disabled:c,loading:c,onClick:d,text:eth["retry.title"],tone:"primary",icon:C.Fjq,size:m}),i[0]=c,i[1]=d,i[2]=m,i[3]=t):t=i[3],i[4]!==h||i[5]!==m?(n=(0,a.jsx)(y.m_,{content:eth["copy-error-details.description"],children:(0,a.jsx)(y.$n,{onClick:h,text:eth["copy-error-details.title"],tone:"default",mode:"ghost",icon:C.TdU,size:m})}),i[4]=h,i[5]=m,i[6]=n):n=i[6],i[7]!==t||i[8]!==n?(r=(0,a.jsxs)(u.cV,{space:3,children:[t,n]}),i[7]=t,i[8]=n,i[9]=r):r=i[9],r},ety=new WeakMap,etx=0;function etb(e){let t=ety.get(e);if(t)return t;let n=`${e.name||e.displayName||"<anonymous>"}-${etx++}`;return ety.set(e,n),n}let etv=(0,s.memo)(({hooks:e,keys:t,args:n,handleNext:r,handleReset:i})=>{let l=(0,s.useMemo)(()=>e.map(e=>{let n=etb(e),r=t[n]||0;return[function({hook:e,id:t}){let n=n=>{let r,i,a,l,d=(0,o.c)(9),{args:c,handleNext:u,handleReset:p}=n;d[0]!==p?(r=()=>{p(t)},d[0]=p,d[1]=r):r=d[1],d[2]!==c||d[3]!==r?(i={...c,onComplete:r},d[2]=c,d[3]=r,d[4]=i):i=d[4];let m=e(i);return d[5]!==u||d[6]!==m?(a=()=>{m?u(t,{...m,action:e.action}):u(t,m)},l=[u,m],d[5]=u,d[6]=m,d[7]=a,d[8]=l):(a=d[7],l=d[8]),(0,s.useEffect)(a,l),null},{displayName:r="HookState"}=e;return n.displayName=r,(0,s.memo)(n,(e,t)=>e.args===t.args)}({hook:e,id:n}),`${n}-${r}`]}),[e,t]);return(0,a.jsx)(a.Fragment,{children:l.map(([e,t])=>(0,a.jsx)(e,{args:n,handleNext:r,handleReset:i},t))})});etv.displayName="Memo(HookCollectionState)";let etj={trailing:!0};function etw(e,{hooks:t}){return t.map(t=>{let n=etb(t);return e.get(n)}).filter(io)}function et_(e){if("AbortError"!==e.name)throw e}function etk(){return new Map}let etS=(0,s.memo)(e=>{let t,n,r,i,l,c=(0,o.c)(15),{hooks:u,args:p,children:m,group:h,onReset:g}=e,{handleReset:C,keys:y}=function(e){let t,n,r,i=(0,o.c)(6);i[0]===Symbol.for("react.memo_cache_sentinel")?(t={},i[0]=t):t=i[0];let[a,l]=(0,s.useState)(t);i[1]!==e?(n=t=>{l(e=>({...e,[t]:(e[t]||0)+1})),e?.()},i[1]=e,i[2]=n):n=i[2];let d=n;return i[3]!==d||i[4]!==a?(r={keys:a,handleReset:d},i[3]=d,i[4]=a,i[5]=r):r=i[5],r}(g);c[0]!==h||c[1]!==u?(t={hooks:u,group:h},c[0]=h,c[1]=u,c[2]=t):t=c[2];let{states:x,handleNext:b}=function(e){let t,n,r,i,a=(0,o.c)(13),{hooks:l,group:c}=e,[u]=(0,s.useState)(etk);a[0]!==l||a[1]!==u?(t=()=>etw(u,{hooks:l}),a[0]=l,a[1]=u,a[2]=t):t=a[2];let[p,m]=(0,s.useState)(t),h=(0,s.useRef)(null);a[3]!==l||a[4]!==u?(n=()=>{h.current?.abort(),h.current=new AbortController,gK(()=>{m(etw(u,{hooks:l}))},{signal:h.current.signal})?.catch(et_)},a[3]=l,a[4]=u,a[5]=n):n=a[5];let g=function(e,t,n){let r,i=(0,o.c)(4);return i[0]!==e||i[1]!==n||60!==i[2]?(r=f(e,60,n),i[0]=e,i[1]=n,i[2]=t,i[3]=r):r=i[3],r}(n,60,etj);a[6]!==c||a[7]!==g||a[8]!==u?(r=(e,t)=>{let n=!0,r=t?.group||["default"];null===t||c&&!r.includes(c)?u.delete(e):(u.has(e)&&(n=!d(u.get(e),t)),u.set(e,t)),n&&g()},a[6]=c,a[7]=g,a[8]=u,a[9]=r):r=a[9];let C=r;return a[10]!==C||a[11]!==p?(i={states:p,handleNext:C},a[10]=C,a[11]=p,a[12]=i):i=a[12],i}(t);return c[3]!==m||c[4]!==x?(r=m({states:x}),c[3]=m,c[4]=x,c[5]=r):r=c[5],n=r,c[6]!==p||c[7]!==b||c[8]!==C||c[9]!==y||c[10]!==u?(i=(0,a.jsx)(etv,{hooks:u,keys:y,args:p,handleNext:b,handleReset:C}),c[6]=p,c[7]=b,c[8]=C,c[9]=y,c[10]=u,c[11]=i):i=c[11],c[12]!==n||c[13]!==i?(l=(0,a.jsxs)(a.Fragment,{children:[i,n]}),c[12]=n,c[13]=i,c[14]=l):l=c[14],l});etS.displayName="Memo(GetHookCollectionState)";let etT=etS,etI=(0,g.I4)(u.mc)(e=>{let{theme:t}
4040=e,{container:n,media:r}=t.sanity;return(0,u.U1)(r,e.$width,e=>({width:"auto"===e?"none":(0,u.D0)(n[e]),maxWidth:"100%"}))}),etE=(0,s.forwardRef)(function(e,t){let n,r,i,l=(0,o.c)(7);l[0]!==e?({width:r,...n}=e,l[0]=e,l[1]=n,l[2]=r):(n=l[1],r=l[2]);let s=(0,u.KC)(r);return l[3]!==t||l[4]!==n||l[5]!==s?(i=(0,a.jsx)(etI,{...n,"data-ui":"PopoverContainer",$width:s,ref:t}),l[3]=t,l[4]=n,l[5]=s,l[6]=i):i=l[6],i}),et$=(0,g.I4)(y.AM)(()=>(0,g.AH)`
4041    // Make the popover scrollable if it overflows the viewport
4042    [data-ui='Popover__wrapper'] {
4043      overflow: auto;
4044    }
4045  `),etA=(0,g.I4)(u.Wd)(e=>{let t=e.theme.sanity.radius[3];return(0,g.AH)`
4046    position: sticky;
4047    top: 0;
4048    width: 100%;
4049    background: var(--card-bg-color);
4050    border-bottom: 1px solid var(--card-border-color);
4051    border-top-left-radius: ${t}px;
4052    border-top-right-radius: ${t}px;
4053  `});function etD(e){let t,n,r,i,l,s,d,c,p,m=(0,o.c)(23),{children:h,header:f,onClose:g,referenceElement:x,containerRef:b,width:v}=e;m[0]!==g||m[1]!==x?(t=()=>{g(),x?.focus()},m[0]=g,m[1]=x,m[2]=t):t=m[2];let j=t;m[3]!==f?(n=(0,a.jsx)(u.az,{flex:1,children:(0,a.jsx)(u.EY,{size:1,textOverflow:"ellipsis",weight:"medium",children:f})}),m[3]=f,m[4]=n):n=m[4],m[5]===Symbol.for("react.memo_cache_sentinel")?(r={content:"Close"},m[5]=r):r=m[5],m[6]!==j?(i=(0,a.jsx)(y.$n,{icon:C.USm,mode:"bleed",onClick:j,tooltipProps:r}),m[6]=j,m[7]=i):i=m[7],m[8]!==n||m[9]!==i?(l=(0,a.jsx)(etA,{children:(0,a.jsx)(u.az,{padding:2,paddingLeft:4,children:(0,a.jsxs)(u.so,{align:"center",gap:2,children:[n,i]})})}),m[8]=n,m[9]=i,m[10]=l):l=m[10],m[11]!==h?(s=(0,a.jsx)(u.az,{padding:4,children:h}),m[11]=h,m[12]=s):s=m[12],m[13]!==b||m[14]!==l||m[15]!==s?(d=(0,a.jsx)(eX.Ay,{autoFocus:!0,children:(0,a.jsxs)(u.BJ,{ref:b,children:[l,s]})}),m[13]=b,m[14]=l,m[15]=s,m[16]=d):d=m[16],m[17]!==d||m[18]!==v?(c=(0,a.jsx)(etE,{width:v,children:d}),m[17]=d,m[18]=v,m[19]=c):c=m[19];let w=c;return m[20]!==w||m[21]!==x?(p=(0,a.jsx)(et$,{portal:!0,constrainSize:!0,content:w,open:!0,referenceElement:x}),m[20]=w,m[21]=x,m[22]=p):p=m[22],p}let etz=(0,g.I4)(u.Zp)(()=>(0,g.AH)`
4054    /* TextWithTone uses its own logic to set color, and we therefore need */
4055    /* to override this logic in order to set the correct color in different states */
4056    &[data-selected],
4057    &[data-pressed],
4058    &:active {
4059      [data-ui='TextWithTone'] {
4060        color: inherit;
4061      }
4062    }
4063  `),etM=(0,s.forwardRef)(function(e,t){let n,r,i,l,s,d,u,p,m=(0,o.c)(16);return m[0]!==e?({children:r,selected:l,as:n,...i}=e,m[0]=e,m[1]=n,m[2]=r,m[3]=i,m[4]=l):(n=m[1],r=m[2],i=m[3],l=m[4]),m[5]!==l?(d={selected:l},m[5]=l,m[6]=d):d=m[6],s=d,m[7]!==r||m[8]!==s?(u=(0,a.jsx)(c.cr.Provider,{value:s,children:r}),m[7]=r,m[8]=s,m[9]=u):u=m[9],m[10]!==n||m[11]!==t||m[12]!==i||m[13]!==l||m[14]!==u?(p=(0,a.jsx)(etz,{"data-ui":"PreviewCard",...i,forwardedAs:n,ref:t,selected:l,children:u}),m[10]=n,m[11]=t,m[12]=i,m[13]=l,m[14]=u,m[15]=p):p=m[15],p}),etP=(0,g.I4)(etM)`
4064  /* this is a hack to avoid layout jumps while previews are loading
4065there's probably better ways of solving this */
4066  min-height: 36px;
4067`,etR=g.I4.span(e=>{let{$dimensions:t,$layout:n,$radius:r,$responsive:i}=e,a=t.width||0,o=t.width||0,l=CJ[n].icon;return(0,g.AH)`
4068    position: relative;
4069    width: ${i?"100%":(0,u.D0)(a)};
4070    height: ${i?"100%":(0,u.D0)(o)};
4071    min-width: ${i?void 0:(0,u.D0)(a)};
4072    border-radius: ${({theme:e})=>(0,u.D0)(e.sanity.radius[r])};
4073    display: flex;
4074    overflow: hidden;
4075    overflow: clip;
4076    align-items: center;
4077    justify-content: center;
4078
4079    & img {
4080      position: absolute;
4081      left: 0;
4082      top: 0;
4083      width: 100%;
4084      height: 100%;
4085      object-fit: contain;
4086      border-radius: inherit;
4087    }
4088
4089    & svg {
4090      // Shared styles for SVG icons
4091      color: var(--card-icon-color);
4092      display: block;
4093      flex: 1;
4094
4095      // Specific styles for non Sanity icons
4096      &:not([data-sanity-icon]) {
4097        height: 1em;
4098        width: 1em;
4099        max-width: 1em;
4100        max-height: 1em;
4101      }
4102
4103      // Specific styles for Sanity icons
4104      &[data-sanity-icon] {
4105        display: block;
4106        font-size: calc(${l} / 16 * 1em);
4107      }
4108    }
4109
4110    & > span[data-border] {
4111      display: block;
4112      position: absolute;
4113      left: 0;
4114      top: 0;
4115      right: 0;
4116      bottom: 0;
4117      box-shadow: inset 0 0 0 1px var(--card-fg-color);
4118      opacity: 0.1;
4119      border-radius: inherit;
4120      pointer-events: none;
4121    }
4122  `});function etO(e){let t,n,r,i=(0,o.c)(14),{border:l,dimensions:d,layout:c,media:p,radius:m,responsive:h,styles:f}=e,g=void 0===l||l,C=void 0===m?1:m,y=void 0!==h&&h,x=f?.media;return i[0]!==d||i[1]!==c||i[2]!==p?(t=function(e){let{dimensions:t,layout:n,media:r,styles:i}=e;return(0,eW.isValidElementType)(r)?(0,a.jsx)(r,{dimensions:t,layout:n}):"string"==typeof r?(0,a.jsx)(u.EY,{as:"span",className:i?.mediaString,size:1,children:r}):(0,s.isValidElement)(r)?r:null}({dimensions:d,layout:c,media:p}),i[0]=d,i[1]=c,i[2]=p,i[3]=t):t=i[3],i[4]!==g?(n=g&&(0,a.jsx)("span",{"data-border":!0}),i[4]=g,i[5]=n):n=i[5],i[6]!==d||i[7]!==c||i[8]!==C||i[9]!==y||i[10]!==x||i[11]!==t||i[12]!==n?(r=(0,a.jsxs)(etR,{$dimensions:d,$layout:c,$radius:C,$responsive:y,className:x,"data-testid":"Media",children:[t,n]}),i[6]=d,i[7]=c,i[8]=C,i[9]=y,i[10]=x,i[11]=t,i[12]=n,i[13]=r):r=i[13],r}
4122function etV(e,t,n){return"string"==typeof e?e:(0,eW.isValidElementType)(e)?(0,a.jsx)(e,{layout:t}):e||n}etR.displayName="Styled(MediaWrapper)";let etL={...CJ.compact.media,aspect:1,fit:"crop",dpr:(0,t5.m)()},etF=(0,g.I4)(u.so)`
4123  height: ${(0,u.D0)(CJ.compact.media.height)};
4124  box-sizing: content-box;
4125`,etB=(0,g.I4)(p.r5).attrs({animated:!0,radius:1,size:1})`
4126  max-width: ${(0,u.D0)(160)};
4127  width: 80%;
4128`,etN={...CJ.default.media,aspect:1,fit:"crop",dpr:(0,t5.m)()},etY=(0,g.I4)(u.so)`
4129  height: ${(0,u.D0)(CJ.default.media.height)};
4130  box-sizing: content-box;
4131`,etH=(0,g.I4)(p.r5).attrs({animated:!0,radius:1,size:1})`
4132  max-width: ${(0,u.D0)(160)};
4133  width: 80%;
4134`,etZ=(0,g.I4)(p.r5).attrs({animated:!0,radius:1,size:1})`
4135  max-width: ${(0,u.D0)(120)};
4136  width: 60%;
4137`;function etU(e){let t,n,r,i,l,s,d,c,m,h,f,g,C,y=(0,o.c)(52),{title:x,subtitle:b,media:v,status:j,isPlaceholder:w,children:_,styles:k}=e,{t:S}=iJ(),T=k?.root,I=!!b&&k?.hasSubtitle;y[0]!==T||y[1]!==I?(t=t0(T,I),y[0]=T,y[1]=I,y[2]=t):t=y[2];let E=t;y[3]!==j||y[4]!==k?.status?(n=j&&(0,a.jsx)(u.az,{className:k?.status,"data-testid":"default-preview__status",children:etV(j,"default")}),y[3]=j,y[4]=k?.status,y[5]=n):n=y[5];let $=n;if(w){let e,t,n,r,i,o=k?.placeholder,l=v?2:3;return y[6]!==v?(e=v&&(0,a.jsx)(u.az,{flex:"none",children:(0,a.jsx)(p.EA,{animated:!0,delay:300,radius:1,style:CJ.default.media})}),y[6]=v,y[7]=e):e=y[7],y[8]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsxs)(u.BJ,{"data-testid":"default-preview__heading",flex:1,space:2,children:[(0,a.jsx)(etH,{delay:300}),(0,a.jsx)(etZ,{delay:300})]}),y[8]=t):t=y[8],y[9]!==$?(n=(0,a.jsx)(u.az,{flex:"none",padding:1,children:$}),y[9]=$,y[10]=n):n=y[10],y[11]!==e||y[12]!==n?(r=(0,a.jsxs)(u.so,{align:"center",flex:1,gap:2,children:[e,t,n]}),y[11]=e,y[12]=n,y[13]=r):r=y[13],y[14]!==o||y[15]!==l||y[16]!==r?(i=(0,a.jsx)(etY,{align:"center",className:o,"data-testid":"default-preview",padding:2,paddingLeft:l,children:r}),y[14]=o,y[15]=l,y[16]=r,y[17]=i):i=y[17],i}let A=v?2:3;y[18]!==v||y[19]!==k?(r=v&&(0,a.jsx)(u.az,{flex:"none",children:(0,a.jsx)(etO,{dimensions:etN,layout:"default",media:v,styles:k})}),y[18]=v,y[19]=k,y[20]=r):r=y[20];let D=k?.heading,z=k?.title;return y[21]===Symbol.for("react.memo_cache_sentinel")?(i={color:"inherit"},y[21]=i):i=y[21],y[22]!==x?(l=x&&etV(x,"default"),y[22]=x,y[23]=l):l=y[23],y[24]!==S||y[25]!==x?(s=!x&&(0,a.jsx)("span",{style:{color:"var(--card-muted-fg-color)"},children:S("preview.default.title-fallback")}),y[24]=S,y[25]=x,y[26]=s):s=y[26],y[27]!==s||y[28]!==z||y[29]!==l?(d=(0,a.jsxs)(u.EY,{className:z,size:1,style:i,textOverflow:"ellipsis",weight:"medium",children:[l,s]}),y[27]=s,y[28]=z,y[29]=l,y[30]=d):d=y[30],y[31]!==k?.subtitle||y[32]!==b?(c=b&&(0,a.jsx)(u.EY,{muted:!0,size:1,textOverflow:"ellipsis",className:k?.subtitle,children:etV(b,"default")}
4137),y[31]=k?.subtitle,y[32]=b,y[33]=c):c=y[33],y[34]!==d||y[35]!==c||y[36]!==D?(m=(0,a.jsxs)(u.BJ,{className:D,"data-testid":"default-preview__header",flex:1,space:2,children:[d,c]}),y[34]=d,y[35]=c,y[36]=D,y[37]=m):m=y[37],y[38]!==$?(h=(0,a.jsx)(u.az,{flex:"none",padding:1,children:$}),y[38]=$,y[39]=h):h=y[39],y[40]!==_||y[41]!==k?.children?(f=_&&(0,a.jsx)("div",{className:k?.children,children:_}),y[40]=_,y[41]=k?.children,y[42]=f):f=y[42],y[43]!==m||y[44]!==h||y[45]!==f||y[46]!==r?(g=(0,a.jsxs)(u.so,{align:"center",flex:1,gap:2,children:[r,m,h,f]}),y[43]=m,y[44]=h,y[45]=f,y[46]=r,y[47]=g):g=y[47],y[48]!==E||y[49]!==g||y[50]!==A?(C=(0,a.jsx)(etY,{align:"center",className:E,"data-testid":"default-preview",padding:2,paddingLeft:A,children:g}),y[48]=E,y[49]=g,y[50]=A,y[51]=C):C=y[51],C}let etq={...CJ.detail.media,fit:"crop",aspect:1,dpr:(0,t5.m)()},etJ=g.I4.svg`
4138  width: ${43}px;
4139  height: ${43}px;
4140  transform: rotate(-90deg);
4141`,etW=g.I4.circle(({theme:e})=>{let{color:t}=e.sanity;return(0,g.AH)`
4142    fill: none;
4143    stroke: ${v.OZ.gray[t.dark?900:100].hex};
4144    stroke-width: ${3}px;
4145  `}),etK=g.I4.circle(({theme:e})=>{let{color:t}=e.sanity;return(0,g.AH)`
4146    fill: none;
4147    stroke: ${v.OZ.blue[t.dark?400:500].hex};
4148    stroke-width: ${3}px;
4149    transition: stroke-dashoffset 75ms;
4150  `});function etG(e){let t,n,r=(0,o.c)(3),{value:i}=e,l=Math.min(Math.max(i,0),100),s=2*Math.PI*20,d="21.5 21.5 43 43";r[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,a.jsx)(etW,{cx:43,cy:43,r:20}),r[0]=t):t=r[0];let c=`${(100-l)/100*s}px`;return r[1]!==c?(n=(0,a.jsxs)(etJ,{viewBox:d,children:[t,(0,a.jsx)(etK,{cx:43,cy:43,r:20,style:{strokeDasharray:s,strokeDashoffset:c}})]}),r[1]=c,r[2]=n):n=r[2],n}let etX=(0,g.I4)(u.Zp)`
4151  overflow: hidden;
4152  overflow: clip;
4153`,etQ=(0,g.I4)(u.Zp)(({theme:e})=>{let{color:t}=e.sanity;return(0,g.AH)`
4154    height: ${.5}rem;
4155    background: ${v.OZ.blue[t.dark?400:500].hex};
4156    transition: transform 75ms;
4157  `});function et1(e){let t,n=(0,o.c)(2),{value:r}=e,i=`translate3d(${r-100}%, 0, 0)`;return n[0]!==i?(t=(0,a.jsx)(etX,{radius:5,children:(0,a.jsx)(etQ,{radius:5,style:{transform:i}})}),n[0]=i,n[1]=t):t=n[1],t}let et2=(0,g.I4)(u.az)`
4158  position: relative;
4159`,et5=(0,g.I4)(u.so).attrs({align:"center",justify:"center"})`
4160  position: absolute;
4161  left: 0;
4162  top: 0;
4163  right: 0;
4164  bottom: 0;
4165`,et0=(0,g.I4)(p.EA).attrs({animated:!0,radius:2})`
4166  width: 100%;
4167  height: 100%;
4168`,et7=(0,g.I4)(u.so).attrs({align:"center",justify:"center"})`
4169  position: absolute;
4170  left: 0;
4171  top: 0;
4172  right: 0;
4173  bottom: 0;
4174
4175  &:before {
4176    background-color: var(--card-bg-color);
4177    opacity: 0.75;
4178    content: '';
4179    display: block;
4180    position: absolute;
4181    left: 0;
4182    top: 0;
4183    right: 0;
4184    bottom: 0;
4185  }
4186
4187  > svg {
4188    position: relative;
4189    z-index: 2;
4190  }
4191`,et3=(0,g.I4)(u.BJ).attrs({space:2})`
4192  max-width: ${(0,u.D0)(200)};
4193`,et8={...CJ.media.media,aspect:1,fit:"crop",dpr:(0,t5.m)()},et4=(0,g.I4)(u.so).attrs({align:"center"})`
4194  height: ${(0,u.D0)(CJ.block.media.height)};
4195  white-space: nowrap;
4196  position: relative;
4197  z-index: 1;
4198`,et6=(0,g.I4)(u.Zp)`
4199  overflow: hidden;
4200  position: relative;
4201  padding-bottom: ${({$ratio:e})=>e}%;
4202
4203  & > span {
4204    position: absolute;
4205    top: 0;
4206    left: 0;
4207    right: 0;
4208    bottom: 0;
4209  }
4210`,et9=(0,g.I4)(u.az).attrs({overflow:"hidden"})`
4211  border-radius: ${({theme:e})=>e.sanity.radius[1]}px;
4212`,ene={...CJ.blockImage.media,fit:"fillmax",dpr:(0,t5.m)()},ent={...CJ.block.media,aspect:1,fit:"crop",dpr:(0,t5.m)()},enn=(0,g.I4)(u.so).attrs({align:"center"})`
4213  min-height: ${(0,u.D0)(CJ.block.media.height)};
4214`,enr=g.I4.span`
4215  display: inline-flex;
4216  align-items: center;
4217  vertical-align: top;
4218  height: calc(1em - 1px);
4219  max-width: 100%;
4220`,eni=g.I4.span`
4221  position: relative;
4222  display: inline-block;
4223  width: calc(1em - 1px);
4224  height: calc(1em - 1px);
4225  min-width: calc(1em - 1px);
4226
4227  & img {
4228    position: absolute;
4229    top: 0;
4230    left: 0;
4231    width: 100%;
4232    height: 100%;
4233    object-fit: cover;
4234    border-radius: ${({theme:e})=>(0,u.D0)(e.sanity.radius[1])};
4235  }
4236
4237  & img + span {
4238    position: absolute;
4239    left: 0;
4240    top: 0;
4241    right: 0;
4242    bottom: 0;
4243    box-shadow: inset 0 0 0 1px var(--card-fg-color);
4244    opacity: 0.2;
4245    border-radius: ${({theme:e})=>(0,u.D0)(e.sanity.radius[1])};
4246  }
4247
4248  & svg {
4249    display: block;
4250    font-size: calc(14 / 16 * 1em);
4251    margin: 1px 0;
4252
4253    &[data-sanity-icon] {
4254      font-size: calc(18 / 16 * 1em);
4255      margin: calc(1px + (2 / 18 * -1em)) 0;
4256    }
4257  }
4258`,ena=(0,g.I4)(u.EY).attrs({forwardedAs:"span"})(({theme:e})=>{let t=e.sanity.fonts.text,n=t.sizes[1];return(0,g.AH)`
4259    font-size: calc(${n.fontSize} / 16 * 1em);
4260    font-weight: ${t.weights.medium};
4261    box-sizing: border-box;
4262    display: inline-block;
4263    vertical-align: top;
4264    line-height: ${n.lineHeight/n.fontSize};
4265    padding-left: 0.5em;
4266    padding-right: calc(0.5em - 2px);
4267    min-width: 0;
4268
4269    & > span {
4270      display: block;
4271      white-space: nowrap;
4272      text-overflow: ellipsis;
4273      overflow: hidden;
4274      overflow: clip;
4275    }
4276  `}
4276),eno={...CJ.inline.media,fit:"crop",aspect:1,dpr:(0,t5.m)()};CJ.default.media,(0,t5.m)(),(0,g.I4)(u.az)`
4277  height: 100%;
4278
4279  a {
4280    color: currentColor;
4281    text-decoration: none;
4282  }
4283
4284  svg[data-sanity-icon] {
4285    margin: 0;
4286  }
4287`,(0,g.I4)(u.so).attrs({align:"center"})`
4288  height: ${(0,u.D0)(CJ.default.media.height)};
4289`,(0,g.I4)(p.r5).attrs({animated:!0,radius:1})`
4290  max-width: ${(0,u.D0)(160)};
4291  width: 80%;
4292`,(0,g.I4)(p.r5).attrs({animated:!0,radius:1,size:1})`
4293  max-width: ${(0,u.D0)(120)};
4294  width: 60%;
4295`;let enl=["aria-hidden","disabled","href"];function ens(e){let t,n,r,i,a,l,d,c,u,p,m,h,f,g=(0,o.c)(37),{direction:C,initialFocus:y,loop:x,navigation:b,pause:v,rootElement:j}=e,w=void 0===C?"horizontal":C,_=void 0===x||x;g[0]!==b?(t=void 0===b?["arrows"]:b,g[0]=b,g[1]=t):t=g[1];let k=t,S=void 0!==v&&v,[T,I]=(0,s.useState)(-1);g[2]===Symbol.for("react.memo_cache_sentinel")?(n=[],g[2]=n):n=g[2];let[E,$]=(0,s.useState)(n),A=E.length,D=A-1,z="horizontal"===w?"ArrowRight":"ArrowDown",M="horizontal"===w?"ArrowLeft":"ArrowUp";g[3]!==j?(r=()=>{j&&$([...j.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])')].filter(e=>!e.hasAttribute("disabled")&&"true"!==e.getAttribute("aria-hidden")))},g[3]=j,g[4]=r):r=g[4];let P=r;g[5]===Symbol.for("react.memo_cache_sentinel")?(i=e=>{I(e)},g[5]=i):i=g[5];let R=i;g[6]!==A||g[7]!==D||g[8]!==_||g[9]!==k||g[10]!==z||g[11]!==S||g[12]!==M?(a=e=>{if(S)return;let t=()=>{e.preventDefault(),I(e=>{let t=(e+D)%A;return _||t!==D?t:e})},n=()=>{e.preventDefault(),I(e=>{let t=(e+1)%A;return _||0!==t?t:e})};"Tab"===e.key&&k.includes("tab")&&(e.shiftKey?t():n()),k.includes("arrows")&&(e.key===M&&t(),e.key===z&&n())},g[6]=A,g[7]=D,g[8]=_,g[9]=k,g[10]=z,g[11]=S,g[12]=M,g[13]=a):a=g[13];let O=a;g[14]!==P?(l=()=>{P()},g[14]=P,g[15]=l):l=g[15],g[16]!==w||g[17]!==P||g[18]!==y?(d=[P,y,w],g[16]=w,g[17]=P,g[18]=y,g[19]=d):d=g[19],(0,s.useEffect)(l,d),g[20]!==P||g[21]!==j?(c=()=>{let e=new MutationObserver(P);return j&&e.observe(j,{childList:!0,subtree:!0,attributeFilter:enl}),()=>{e.disconnect()}},g[20]=P,g[21]=j,g[22]=c):c=g[22],g[23]!==E||g[24]!==P||g[25]!==j?(u=[E,P,j],g[23]=E,g[24]=P,g[25]=j,g[26]=u):u=g[26],(0,s.useEffect)(c,u),g[27]!==E||g[28]!==T||g[29]!==y||g[30]!==D?(p=()=>{E.forEach((e,t)=>{t===T?(e.setAttribute("tabIndex","0"),e.setAttribute("aria-selected","true"),e.focus(),e.onfocus=()=>R(t),e.onblur=()=>R(-1)):(e.setAttribute("tabIndex","-1"),e.setAttribute("aria-selected","false"),e.onfocus=()=>R(t))}),-1===T&&E&&E["last"===y?D:0]?.setAttribute("tabIndex","0")},m=[E,T,R,y,D],g[27]=E,g[28]=T,g[29]=y,g[30]=D,g[31]=p,g[32]=m):(p=g[31],m=g[32]),(0,s.useEffect)(p,m),g[33]!==O||g[34]!==j?(h=()=>(j?.addEventListener("keydown",O),()=>{j?.removeEventListener("keydown",O)}),f=[O,j],g[33]=O,g[34]=j,g[35]=h,g[36]=f):(h=g[35],f=g[36]),(0,s.useEffect)(h,f)}let end=(0,g.I4)(y.$n)`
4296  position: relative;
4297  // The children in button is rendered inside a span, we need to absolutely position it.
4298  & > span:nth-child(2) {
4299    position: absolute;
4300    top: 6px;
4301    right: 6px;
4302    padding: 0;
4303  }
4304`,enc=g.I4.div({width:4,height:4,borderRadius:3,boxShadow:"0 0 0 1px var(--card-bg-color)"}),enu=(0,s.forwardRef)(function(e,t){let n,r,i,l,s,d,c,u,p,m,h,f=(0,o.c)(22);f[0]!==e?({disabled:n,icon:r,"aria-label":i,mode:s,text:d,tone:c,...l}=e,f[0]=e,f[1]=n,f[2]=r,f[3]=i,f[4]=l,f[5]=s,f[6]=d,f[7]=c):(n=f[1],r=f[2],i=f[3],l=f[4],s=f[5],d=f[6],c=f[7]);let g=void 0===s?"bleed":s,C=`var(--card-badge-${c}-dot-color)`;f[8]!==C?(p={backgroundColor:C},f[8]=C,f[9]=p):p=f[9],u=p;let y=!!n;return f[10]!==u||f[11]!==c?(m=c&&(0,a.jsx)(enc,{style:u}),f[10]=u,f[11]=c,f[12]=m):m=f[12],f[13]!==y||f[14]!==r||f[15]!==i||f[16]!==g||f[17]!==t||f[18]!==l||f[19]!==m||f[20]!==d?(h=(0,a.jsx)(end,{"data-ui":"StatusButton",...l,"aria-label":i,disabled:y,mode:g,ref:t,text:d,icon:r,children:m}),f[13]=y,f[14]=r,f[15]=i,f[16]=g,f[17]=t,f[18]=l,f[19]=m,f[20]=d,f[21]=h):h=f[21],h}),enp=(0,s.forwardRef)(function(e,t){let n,r,i,l,s,d,c=(0,o.c)(13);c[0]!==e?({children:n,content:r,disabled:i,...l}=e,c[0]=e,c[1]=n,c[2]=r,c[3]=i,c[4]=l):(n=c[1],r=c[2],i=c[3],l=c[4]);let u=i||!r;return c[5]!==n?(s=(0,a.jsx)("div",{children:n}),c[5]=n,c[6]=s):s=c[6],c[7]!==r||c[8]!==t||c[9]!==l||c[10]!==u||c[11]!==s?(d=(0,a.jsx)(y.m_,{...l,content:r,disabled:u,ref:t,children:s}),c[7]=r,c[8]=t,c[9]=l,c[10]=u,c[11]=s,c[12]=d):d=c[12],d});function enm(){return(0,s.useContext)(c.SR)}function enh(e){let t,n=(0,o.c)(3),{children:r,zOffset:i}=e,l=enm()[i];return n[0]!==r||n[1]!==l?(t=(0,a.jsx)(u.XS,{zOffset:l,children:r}),n[0]=r,n[1]=l,n[2]=t):t=n[2],t}(0,s.forwardRef)((e,t)=>{let n,r=(0,o.c)(2),{push:i}=(0,p.dj)();return r[0]!==i?(n=()=>({push:i}),r[0]=i,r[1]=n):n=r[1],(0,s.useImperativeHandle)(t,n),null}
4304).displayName="ForwardRef(ImperativeToast)";let enf=e=>{let t,n,r,i,u,p,m,h=(0,o.c)(17),{path:f,hasRevertHover:g}=e,{onSetFocus:C}=(0,s.useContext)(c.HJ),y=enm(),[x,b]=(0,s.useState)(!1);h[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{b(!0)},h[0]=t):t=h[0];let v=t;h[1]===Symbol.for("react.memo_cache_sentinel")?(n=()=>{b(!1)},h[1]=n):n=h[1];let j=n,[w,_]=(0,s.useState)(null);r=w?`change-${l.dI(f)}`:null,h[2]!==w||h[3]!==x||h[4]!==g||h[5]!==f||h[6]!==y.popover?(i=()=>({element:w,path:f,isChanged:!0,hasFocus:!1,hasHover:x,zIndex:Array.isArray(y.popover)?y.popover[0]:y.popover,hasRevertHover:g}),h[2]=w,h[3]=x,h[4]=g,h[5]=f,h[6]=y.popover,h[7]=i):i=h[7],vm(r,i,d),h[8]!==C||h[9]!==f?(u=e=>{var t,n,r;t=e,n=C,r=f,t.stopPropagation(),n(r)},h[8]=C,h[9]=f,h[10]=u):u=h[10];let k=u;return h[11]!==f?(p=!1,h[11]=f,h[12]=p):p=h[12],h[13]!==k||h[14]!==e.children||h[15]!==p?(m=(0,a.jsxs)("div",{ref:_,onClick:k,onMouseLeave:j,onMouseEnter:v,children:[p,e.children]}),h[13]=k,h[14]=e.children,h[15]=p,h[16]=m):m=h[16],m};function eng(e,t,n){let r,i=t.slice(t.indexOf("-")+1)||"[]",a=l.sH(i),o=`${e}-${l.dI(a)}`;if(n.has(o))return n.get(o);if(a.length>0)for(let t=a.length-1;t>=0;t--){let r=a.slice(0,t),i=`${e}-${l.dI(r)}`;if(n.has(i))return n.get(i)}for(let[t,i]of n){if(!("path"in i)||!t.startsWith(e))continue;let n=l.$U(a,i.path),o=i.path[i.path.length-1],s=n===i.path.length-1&&(0,_.o8)(o);if(0!==n&&!(n!==i.path.length&&!s)&&(r=i,n===a.length))break}return r}function enC(e){let t=getComputedStyle(e).overflow;return t.includes("auto")||t.includes("scroll")}let eny=(e,t)=>{let n={top:0,left:0,height:t.offsetHeight,width:t.offsetWidth},r={top:0,left:0,height:e.offsetHeight,width:e.offsetWidth},i=!1,a=e;for(;a&&a!==t&&t.contains(a);)i&&(n.top+=a.offsetTop,n.left+=a.offsetLeft),enC(a)&&(n.top=a.offsetTop,n.height=a.offsetHeight,n.left=a.offsetLeft,n.width=a.offsetWidth,i=!0),r.top+=a.offsetTop-a.scrollTop,r.left+=a.offsetLeft-a.scrollLeft,a=a.offsetParent;return{rect:r,bounds:n}};function enx(e){var t;let n=e.element;if(!n)return;let r=n;for(;!(((t=r).scrollHeight!==t.offsetHeight||t.scrollWidth!==t.offsetWidth)&&enC(t));)if(!(r=r.parentElement))return;r.scroll({top:r.scrollTop+e.rect.top-e.bounds.top+-15,left:0,behavior:"smooth"})}g.I4.rect`
4305  stroke: #ccc;
4306  fill: none;
4307  pointer-events: none;
4308  stroke-linecap: round;
4309`;let enb=g.I4.path`
4310  fill: none;
4311  pointer-events: none;
4312  stroke-linejoin: round;
4313  stroke: var(--card-badge-caution-dot-color);
4314`,env=g.I4.path`
4315  fill: none;
4316  pointer-events: stroke;
4317  stroke: transparent;
4318  cursor: pointer;
4319  stroke-linecap: round;
4320  stroke-linejoin: round;
4321  opacity: 0;
4322
4323  &:hover {
4324    opacity: 0.2;
4325  }
4326`,enj=(0,g.I4)(function(e){let t,n,r,i=(0,o.c)(9);i[0]!==e?({bounds:t,...n}=e,i[0]=e,i[1]=t,i[2]=n):(t=i[1],n=i[2]);let l=Math.max(t.left,e.left),s=Math.max(e.top,t.top),d=Math.max(0,e.height-(s-e.top)),c=Math.max(0,e.width-(l-e.left));return i[3]!==d||i[4]!==n||i[5]!==c||i[6]!==l||i[7]!==s?(r=(0,a.jsx)("rect",{...n,x:l,y:s,height:d,width:c}),i[3]=d,i[4]=n,i[5]=c,i[6]=l,i[7]=s,i[8]=r):r=i[8],r})`
4327  stroke: none;
4328  pointer-events: none;
4329  fill: var(--card-badge-caution-dot-color);
4330`;function enw(e,t,n){return`M ${e-4} ${t-4*n} L ${e} ${t}L ${e+4} ${t-4*n}`}function en_(e,t){return`M${e} ${t}`}function enk(e,t){return`L${e} ${t}`}function enS(e,t,n,r){return`Q${e} ${t} ${n} ${r}`}function enT(e,t){let n=e.top+e.height/2,r=e.top+e.height<t.top+2,i=e.top>t.top+t.height-2;return{bounds:t,left:e.left,top:n,centerY:n,startY:e.top+8,endY:e.top+e.height-8,isAbove:r,isBelow:i,outOfBounds:r||i}}let enI=(0,s.memo)(function(e){let t,n,r,i,l,s,d,c,u,p,m,h,f=(0,o.c)(41),{from:g,to:C}=e;if(f[0]!==g||f[1]!==C){r=Symbol.for("react.early_return_sentinel");e:{if((t=function(e){let t={top:e.from.bounds.top+12,bottom:e.from.bounds.top+e.from.bounds.height-12,left:e.from.bounds.left,right:e.from.bounds.left+e.from.bounds.width,width:e.from.bounds.width,height:e.from.bounds.height-24},n=enT(e.from.rect,t);n.left=e.from.rect.left+e.from.rect.width+1;let r={top:e.to.bounds.top+12,bottom:e.to.bounds.top+e.to.bounds.height-12,left:e.to.bounds.left,right:e.to.bounds.left+e.to.bounds.width,width:e.to.bounds.width,height:e.to.bounds.height-24},i=enT(e.to.rect,r),a=Math.max(i.startY,n.startY);return n.top=Math.min(a,n.endY),n.top<r.top?n.top=Math.min(r.top,n.endY):n.top>r.bottom&&(n.top=Math.max(r.bottom,n.startY)),i.top=Math.min(a,i.endY),i.top<t.top?i.top=Math.min(t.top,i.endY):i.top>t.bottom&&(i.top=Math.max(t.bottom,i.startY)),n.top=Math.min(Math.max(n.top,t.top),t.bottom),i.top=Math.min(Math.max(i.top,r.top),r.bottom),{from:n,to:i}}({from:g,to:C})).from.outOfBounds&&t.to.outOfBounds){r=null;break e}n=function(e){let{from:t,to:n}=e,{left:r,top:i}=t,{left:a,top:o}=n,l=[],s=Math.min(4,Math.abs(i-o)/2);return t.isAbove?l.push(en_(r+8,i-12+2),enk(r+8,i-4),enS(r+8,i,r+8+4,i)):t.isBelow?l.push(en_(r+8,i+12-2),enk(r+8,i+4),enS(r+8,i,r+8+4,i)):l.push(en_(r,i)),n.isAbove?i<n.bounds.top?l.push(enk(n.bounds.left-8-s,i),enS(n.bounds.left-8,i,n.bounds.left-8,i+s),enk(n.bounds.left-8,o-s),enS(n.bounds.left-8,o,n.bounds.left-8+s,o),enk(n.bounds.left+8-4,o),enS(n.bounds.left+8,o,n.bounds.left+8,o-4),enk(n.bounds.left+8,o-12+2)):l.push(enk(n.bounds.left+8-4,i),enS(n.bounds.left+8,i,n.bounds.left+8,i-4),enk(n.bounds.left+8,o-12+2)):n.isBelow?i>n.bounds.top+n.bounds.height?l.push(enk(n.bounds.left-8-s,i),enS(n.bounds.left-8,i,n.bounds.left-8,i-s),enk(n.bounds.left-8,o+s),enS(n.bounds.left-8,o,n.bounds.left-8+s,o),enk(n.bounds.left+8-4,o),enS(n.bounds.left+8,o,n.bounds.left+8,o+4),enk(n.bounds.left+8,o+12-2)):l.push(enk(n.bounds.left+8-4,i),enS(n.bounds.left+8,i,n.bounds.left+8,i+4),enk(n.bounds.left+8,o+12-2)):i<o?l.push(enk(n.bounds.left+8-s,i),enS(n.bounds.left+8,i,n.bounds.left+8,i+s),enk(n.bounds.left+8,o-s),enS(n.bounds.left+8,o,n.bounds.left+8+s,o),enk(a,o)):l.push(enk(n.bounds.left+8-s,i),enS(n.bounds.left+8,i,n.bounds.left+8,i-s),enk(n.bounds.left+8,o+s),enS(n.bounds.left+8,o,n.bounds.left+8+s,o),enk(a,o)),function(e,t=""){return e.join(t)}(l)}(t)}f[0]=g,f[1]=C,f[2]=t,f[3]=n,f[4]=r}else t=f[2],n=f[3],r=f[4];if(r!==Symbol.for("react.early_return_sentinel"))return r;let y=n;f[5]!==y?(i=(0,a.jsx)(env,{d:y,strokeWidth:16}),l=(0,a.jsx)(enb,{d:y,strokeWidth:1}),f[5]=y,f[6]=i,f[7]=l):(i=f[6],l=f[7]);let x=C.rect.left-.5;return f[8]!==x||f[9]!==C.bounds||f[10]!==C.rect.height||f[11]!==C.rect.top?(s=(0,a.jsx)(enj,{top:C.rect.top,left
4330:x,height:C.rect.height,width:1,bounds:C.bounds}),f[8]=x,f[9]=C.bounds,f[10]=C.rect.height,f[11]=C.rect.top,f[12]=s):s=f[12],f[13]!==t.from.bounds||f[14]!==t.from.isAbove||f[15]!==t.from.left?(d=t.from.isAbove&&(0,a.jsx)(enb,{d:enw(t.from.left+8,t.from.bounds.top-12+2,-1),strokeWidth:1}),f[13]=t.from.bounds,f[14]=t.from.isAbove,f[15]=t.from.left,f[16]=d):d=f[16],f[17]!==t.from.bounds||f[18]!==t.from.isBelow||f[19]!==t.from.left?(c=t.from.isBelow&&(0,a.jsx)(enb,{d:enw(t.from.left+8,t.from.bounds.top+t.from.bounds.height+12-2,1),strokeWidth:1}),f[17]=t.from.bounds,f[18]=t.from.isBelow,f[19]=t.from.left,f[20]=c):c=f[20],f[21]!==t.to.bounds||f[22]!==t.to.isAbove?(u=t.to.isAbove&&(0,a.jsx)(enb,{d:enw(t.to.bounds.left+8,t.to.bounds.top-12+2,-1),strokeWidth:1}),f[21]=t.to.bounds,f[22]=t.to.isAbove,f[23]=u):u=f[23],f[24]!==t.to.bounds||f[25]!==t.to.isBelow?(p=t.to.isBelow&&(0,a.jsx)(enb,{d:enw(t.to.bounds.left+8,t.to.bounds.top+t.to.bounds.height+12-2,1),strokeWidth:1}),f[24]=t.to.bounds,f[25]=t.to.isBelow,f[26]=p):p=f[26],f[27]!==t.from.bounds||f[28]!==t.from.outOfBounds||f[29]!==t.to.bounds||f[30]!==t.to.outOfBounds?(m=!1,f[27]=t.from.bounds,f[28]=t.from.outOfBounds,f[29]=t.to.bounds,f[30]=t.to.outOfBounds,f[31]=m):m=f[31],f[32]!==p||f[33]!==m||f[34]!==i||f[35]!==l||f[36]!==s||f[37]!==d||f[38]!==c||f[39]!==u?(h=(0,a.jsxs)(a.Fragment,{children:[i,l,s,d,c,u,p,m]}),f[32]=p,f[33]=m,f[34]=i,f[35]=l,f[36]=s,f[37]=d,f[38]=c,f[39]=u,f[40]=h):h=f[40],h}),enE=g.I4.svg`
4331  pointer-events: none;
4332  position: absolute;
4333  left: 0;
4334  top: 0;
4335  right: 0;
4336  bottom: 0;
4337  width: 100%;
4338  height: 100%;
4339`;function en$(e,t,n,r){let i=[],a=[];for(let n of e){if("changePanel"===n[0]||!n[1].isChanged)continue;let[e,r]=n;if(e===t||r.hasHover){i.push(n);continue}if(r.hasFocus){a.push(n);continue}}let o=i.length>0;return{connectors:(o?i:a).map(([e])=>{let t=eng("field",e,n),r=eng("change",e,n);return t&&r?{field:{id:e,...t},change:{id:e,...r}}:null}).filter(e=>!!e?.field.element&&!!e?.change.element).map(({field:e,change:t})=>({hasHover:e.hasHover||t.hasHover,hasFocus:e.hasFocus,hasRevertHover:t.hasRevertHover,field:{...e,...eny(e.element,r)},change:{...t,...eny(t.element,r)}})),isHoverConnector:o}}function enA(e){let t,n,r,i,l,d,u,p,m,h=(0,o.c)(23),{rootElement:f,onSetFocus:g}=e,[C,y]=(0,s.useState)(null),x=vp(),{isReviewChangesOpen:b}=function(){let e,t=(0,o.c)(2),n=(0,s.useContext)(c.HJ);return t[0]!==n?(e={...n,changesOpen:n.isReviewChangesOpen},t[0]=n,t[1]=e):e=t[1],e}();h[0]!==x?(n=new Map(x),h[0]=x,h[1]=n):n=h[1],t=n,h[2]!==x||h[3]!==t||h[4]!==C||h[5]!==f?(r=()=>en$(x,C,t,f),h[2]=x,h[3]=t,h[4]=C,h[5]=f,h[6]=r):r=h[6];let[v,j]=(0,s.useState)(r),{connectors:w}=v;h[7]!==w?(l=w.sort(enD),h[7]=w,h[8]=l):l=h[8],i=l[0],h[9]!==x||h[10]!==t||h[11]!==C||h[12]!==b||h[13]!==f?(d=()=>{b&&j(en$(x,C,t,f))},h[9]=x,h[10]=t,h[11]=C,h[12]=b,h[13]=f,h[14]=d):d=h[14];let _=d;(function(e,t){let n,r,i=(0,o.c)(4);i[0]!==e||i[1]!==t?(n=()=>iA.observe(e,t),r=[e,t],i[0]=e,i[1]=t,i[2]=n,i[3]=r):(n=i[2],r=i[3]),(0,s.useEffect)(n,r)})(f,_),function(e){let t,n,r=(0,o.c)(4),i=(0,s.useContext)(c.z_);r[0]!==e||r[1]!==i?(t=()=>i?.subscribe(e),n=[e,i],r[0]=e,r[1]=i,r[2]=t,r[3]=n):(t=r[2],n=r[3]),(0,s.useEffect)(t,n)}(_);let k=i&&i.field.zIndex;return h[15]!==k?(u={zIndex:k},h[15]=k,h[16]=u):u=h[16],h[17]!==g||h[18]!==i?(p=i?.change&&(0,a.jsx)(enz,{field:i.field,change:i.change,onSetFocus:g,setHovered:y},i.field.id),h[17]=g,h[18]=i,h[19]=p):p=h[19],h[20]!==u||h[21]!==p?(m=(0,a.jsx)(enE,{style:u,children:p}),h[20]=u,h[21]=p,h[22]=m):m=h[22],m}function enD(e,t){return t.field.id.length-e.field.id.length}function enz(e){let t,n,r,i,l,s,d,c,u,p,m,h,f,g=(0,o.c)(35),{change:C,field:y,onSetFocus:x,setHovered:b}=e;g[0]!==C||g[1]!==y||g[2]!==x?(t=()=>{enx(y),enx(C),x(y.path)},g[0]=C,g[1]=y,g[2]=x,g[3]=t):t=g[3];let v=t;g[4]!==y.id||g[5]!==b?(n=()=>b(y.id),g[4]=y.id,g[5]=b,g[6]=n):n=g[6];let j=n;g[7]!==b?(r=()=>b(null),g[7]=b,g[8]=r):r=g[8];let w=r,_=y.rect.left+3;g[9]!==y.rect||g[10]!==_?(l={...y.rect,left:_},g[9]=y.rect,g[10]=_,g[11]=l):l=g[11],g[12]!==y.bounds||g[13]!==l?(s={rect:l,bounds:y.bounds},g[12]=y.bounds,g[13]=l,g[14]=s):s=g[14],i=s;let k=C.rect.left+1;return g[15]!==C.rect||g[16]!==k?(c={...C.rect,left:k},g[15]=C.rect,g[16]=k,g[17]=c):c=g[17],g[18]!==C.bounds||g[19]!==c?(u={rect:c,bounds:C.bounds},g[18]=C.bounds,g[19]=c,g[20]=u):u=g[20],d=u,g[21]!==i||g[22]!==d?(p=(0,a.jsx)(enI,{from:i,to:d}),g[21]=i,g[22]=d,g[23]=p):p=g[23],g[24]!==j||g[25]!==w||g[26]!==v||g[27]!==p?(m=(0,a.jsx)("g",{onClick:v,onMouseEnter:j,onMouseLeave:w,children:p}),g[24]=j,g[25]=w,g[26]=v,g[27]=p,g[28]=m):m=g[28],g[29]!==C||g[30]!==y?(h=!1,g[29]=C,g[30]=y,g[31]=h):h=g[31],g[32]!==m||g[33]!==h?(f=(0,a.jsxs)(a.Fragment,{children:[m,h]}),g[32]=m,g[33]=h,g[34]=f):f=g[34],f}function enM(e){let t,n,r,i,l,d,u,p,m,h,f,g=(0,o.c)(22);g[0]!==e?({children:t,className:n,isReviewChangesOpen:r,onOpenReviewChanges:i,onSetFocus:l,...d}=e,g[0]=e,g[1]=t,g[2]=n,g[3]=r,g[4]=i,g[5]=l,g[6]=d):(t=g[1],n=g[2],r=g[3],i=g[4],l=g[5],d=g[6]);
4339let[C,y]=(0,s.useState)();return g[7]!==r||g[8]!==i||g[9]!==l?(p={isReviewChangesOpen:r,onOpenReviewChanges:i,onSetFocus:l},g[7]=r,g[8]=i,g[9]=l,g[10]=p):p=g[10],u=p,g[11]!==l||g[12]!==C?(m=C&&(0,a.jsx)(enA,{rootElement:C,onSetFocus:l}),g[11]=l,g[12]=C,g[13]=m):m=g[13],g[14]!==t||g[15]!==n||g[16]!==d||g[17]!==m?(h=(0,a.jsx)(vc,{children:(0,a.jsxs)(IQ,{...d,ref:y,className:n,children:[t,m]})}),g[14]=t,g[15]=n,g[16]=d,g[17]=m,g[18]=h):h=g[18],g[19]!==u||g[20]!==h?(f=(0,a.jsx)(c.HJ.Provider,{value:u,children:h}),g[19]=u,g[20]=h,g[21]=f):f=g[21],f}function enP(){let e=(0,s.useContext)(c.iS);if(!e)throw Error("useSanityCreateConfig must be used within a SanityCreateConfigProvider");return e}function enR({selectedPerspective:e,isDraftModelEnabled:t,schemaType:n}){return typeof n>"u"?{result:!1,reason:"INSUFFICIENT_DATA"}:lC(e)&&"active"!==e.state?{result:!1,reason:"RELEASE_NOT_ACTIVE"}:lj(e)&&!0!==n.liveEdit?{result:!1,reason:"PUBLISHED_NOT_WRITEABLE"}:lw(e)&&!t&&!0!==n.liveEdit?{result:!1,reason:"DRAFTS_NOT_WRITEABLE"}:{result:!0}}}}]);

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