1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8820],{58820:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ey});var r=n(76749),i=n(81447),a=n(29721),l=n(98664),s=n(37189),o=n(19037),d=n(13668),p=n(97809),u=n(9437),c=n(93726),f=n(30492),h=n(16541),m=n(86469),x=n(26448),g=n(56102),y=n(45411),I=n(62039),w=n(96056),j=n(99526),b=n(88510),_=n(89396),v=n(63546),P=n(24838),S=n(44073),E=n(5992),$=n(81900),k=n(29149),z=n(82949),G=n(30067),N=n(89138),T=n(19722),C=n(58549),D=n(5249),M=n(11804);class O extends Error{constructor({message:e,context:t,helpId:n,cause:r}){super(e),this.name="PaneResolutionError",this.context=t,this.helpId=n,this.cause=r}}function R(e){let t,n,r=(t=e((e,t,n)=>{if(!e)throw new O({message:"Pane returned no child",context:t,helpId:"structure-item-returned-no-child"});return e&&"function"==typeof e?.then||(0,c.A)(e)?(0,f.H)(e).pipe((0,j.n)(e=>r(e,t,n))):(0,l.u4i)(e)&&"function"==typeof e.serialize?r(e.serialize(t),t,n):"function"==typeof e?r(e(t.id,t),t,n):(0,h.of)(e)}),n=(...e)=>t(...e).pipe((0,I.H)(1),(0,w.B)()),(e,t,r)=>{try{return n(e,t,r)}catch(e){throw e instanceof O?e:new O({message:"string"==typeof e?.message?e.message:"",context:t,cause:e})}});return r}let L=new WeakMap;function J(e,t){let n=L.get(e)||new Map;if(n){let e=n.get(t);if(e)return e}let r=e[t];if("function"!=typeof r)throw Error(`Expected property \`${t}\` to be a function but got ${typeof r} instead.`);let i=r.bind(e);return n.set(t,i),L.set(e,n),i}async function A(e){let t=new Map,n=R(e=>(n,r,i)=>{let a=n&&`${(0,o.Jq)(n)}-${r.path.join("__")}`,l=a&&t.get(a);if(l)return l;let s=e(n,r,i);return a&&t.set(a,s),s}),r=[[{id:`__edit__${e.params.id}`,params:{...(0,u.A)(e.params,["id"]),type:e.params.type},payload:e.payload}]];async function i({currentId:e,flatIndex:t,intent:r,params:a,parent:l,path:s,payload:o,unresolvedPane:d,levelIndex:p,structureContext:u}){if(!d)return[];let{id:c,type:f,...h}=a,x=await (0,m._)(n(d,{id:e,splitIndex:0,parent:l,path:s,index:t,params:{},payload:void 0,structureContext:u},t));return"document"===x.type&&x.id===c?[{panes:[...s.slice(0,s.length-1).map(e=>[{id:e}]),[{id:c,params:h,payload:o}]],depthIndex:s.length,levelIndex:p}]:x.canHandleIntent?.(r,a,{pane:x,index:t})||"documentList"===x.type&&x.schemaTypeName===f&&"_type == $type"===x.options.filter?[{panes:[...s.map(e=>[{id:e}]),[{id:a.id,params:h,payload:o}]],depthIndex:s.length,levelIndex:p}]:"list"===x.type&&x.child&&x.items?(await Promise.all(x.items.map((e,n)=>"divider"===e.type?Promise.resolve([]):i({currentId:e._id||e.id,flatIndex:t+1,intent:r,params:a,parent:x,path:[...s,e.id],payload:o,unresolvedPane:"function"==typeof x.child?J(x,"child"):x.child,levelIndex:n,structureContext:u})))).flat():[]}let a=(await i({currentId:"root",flatIndex:0,levelIndex:0,intent:e.intent,params:e.params,parent:null,path:[],payload:e.payload,unresolvedPane:e.rootPaneNode,structureContext:e.structureContext})).sort((e,t)=>e.depthIndex===t.depthIndex?e.levelIndex-t.levelIndex:e.depthIndex-t.depthIndex)[0];return a?a.panes:r}let B=(e,t)=>{let n=e.replace(/^__edit__/,""),{params:r,payload:i,structureContext:{resolveDocumentNode:a}}=t,{type:l,template:s}=r;if(!l)throw Error(`Document type for document with ID ${n} was not provided in the router params.`);let o=a({schemaType:l,documentId:n}).id("editor");return s&&(o=o.initialValueTemplate(s,i)),o.serialize()},Z=e=>{let t={type:e.type,id:e.routerPaneSibling.id,params:e.routerPaneSibling.params||{},payload:e.routerPaneSibling.payload||null,flatIndex:e.flatIndex,groupIndex:e.groupIndex,siblingIndex:e.siblingIndex,path:e.path,paneNode:"resolvedMeta"===e.type?(0,o.Jq)(e.paneNode):null};return`metaHash(${JSON.stringify(t)})`};function Y(e){return e?.panes||[]}function q(){return new y.m(1)}function H(e){let t=e.reduce(V,[]),n=t.length,r=e.map(r=>{let{groupIndex:i,flatIndex:a,siblingIndex:l,routerPaneSibling:s,path:d}=r,p=s.id,u=t[i+1];return{active:i===n-2,childItemId:u?.[0].id??null,index:a,itemId:s.id,groupIndex:i,key:`${"loading"===r.type?"unknown":r.paneNode.id}-${p}-${l}`,pane:"loading"===r.type?o.Gp:r.paneNode,params:s.params||{},path:d.join(";"),payload:s.payload,selected:a===e.length-1,siblingIndex:l,maximized:!1}});return{paneDataItems:r,routerPanes:t,resolvedPanes:r.map(F)}}function F(e){return e.pane}function V(e,t){let n=e[t.groupIndex]||[];return n[t.siblingIndex]=t.routerPaneSibling,e[t.groupIndex]=n,e}async function W(e,t,n){if(t&&n)return{id:t,type:n};if(!t&&n)return{id:(0,$.A)(),type:n};if(t&&!n){let n=await (0,m._)(e.resolveTypeForDocument(t));return{id:t,type:n}}throw new O({message:"Neither document `id` or `type` was provided when trying to resolve intent."})}let K={}
1,Q=(0,a.memo)(function(){let e,t,n=(0,i.c)(7),{navigate:r}=(0,p.rd)(),s=(0,p.ks)(X),{rootPaneNode:d,structureContext:u}=(0,o.pl)(),c=(0,l.q3J)(),[f,h]=(0,a.useState)(null);if(f)throw f;return n[0]!==c||n[1]!==s||n[2]!==r||n[3]!==d||n[4]!==u?(e=()=>{if(s){let{intent:e,params:t,payload:n}=s,i=!1;return(async function(){let{id:a,type:l}=await W(c,"string"==typeof t.id?t.id:void 0,"string"==typeof t.type?t.type:void 0);if(i)return;let s=await A({intent:e,params:{...t,id:a,type:l},payload:n,rootPaneNode:d,structureContext:u});i||r({panes:s},{replace:!0})})().catch(h),()=>{i=!0}}},t=[c,s,r,d,u],n[0]=c,n[1]=s,n[2]=r,n[3]=d,n[4]=u,n[5]=e,n[6]=t):(e=n[5],t=n[6]),(0,a.useEffect)(e,t),null});function X(e){let t="string"==typeof e.intent?e.intent:void 0;return t?{intent:t,params:(0,l.u4i)(e.params)?e.params:K,payload:e.payload}:void 0}let U=T.I4.span.withConfig({displayName:"PathSegment",componentId:"sc-jnonai-0"})`&:not(:last-child)::after{content:' â ';opacity:0.5;}`;function ee(e){let t,n,a,o,p,u,c,f,h,m,x,g,y,I,w,j,b,_,v,P,S,E,$,N,T,C,D,M,R,L,J=(0,i.c)(74),{error:A}=e;if(!(A instanceof O))throw A;let{cause:B}=A,{t:Z}=(0,l.Bdt)(d.Z7),Y=B?.stack||A.stack;J[0]!==B||J[1]!==A.message||J[2]!==Y?(t=Y&&!(B instanceof d.LV)&&!A.message.includes("Module build failed:"),J[0]=B,J[1]=A.message,J[2]=Y,J[3]=t):t=J[3];let q=t;if(J[4]!==B||J[5]!==A.helpId||J[6]!==Z){let e,t=B instanceof d.LV?B.path:[];u=B instanceof d.LV&&B.helpId||A.helpId,p=en,o=G.Zp,c="fill",f="auto",h=4,m="border",x="critical",a=G.mc,J[25]!==Z?(e=Z("structure-error.header.text"),J[25]=Z,J[26]=e):e=J[26],J[27]!==e?(v=(0,r.jsx)(G.DZ,{as:"h2",children:e}),J[27]=e,J[28]=v):v=J[28],n=G.Zp,g=4,y=4,I=2,w="auto",j=1,b="inherit",_=t.length>0&&(0,r.jsxs)(G.BJ,{space:2,children:[(0,r.jsx)(G.EY,{size:1,weight:"medium",children:Z("structure-error.structure-path.label")}),(0,r.jsx)(G.Cy,{children:t.slice(1).map(et)})]}),J[4]=B,J[5]=A.helpId,J[6]=Z,J[7]=n,J[8]=a,J[9]=o,J[10]=p,J[11]=u,J[12]=c,J[13]=f,J[14]=h,J[15]=m,J[16]=x,J[17]=g,J[18]=y,J[19]=I,J[20]=w,J[21]=j,J[22]=b,J[23]=_,J[24]=v}else n=J[7],a=J[8],o=J[9],p=J[10],u=J[11],c=J[12],f=J[13],h=J[14],m=J[15],x=J[16],g=J[17],y=J[18],I=J[19],w=J[20],j=J[21],b=J[22],_=J[23],v=J[24];return J[29]!==Z?(P=Z("structure-error.error.label"),J[29]=Z,J[30]=P):P=J[30],J[31]!==P?(S=(0,r.jsx)(G.EY,{size:1,weight:"medium",children:P}),J[31]=P,J[32]=S):S=J[32],J[33]!==A.message||J[34]!==q||J[35]!==Y?(E=q?Y.replace(/\(\.\.\.\)\./g,`(...) 2 .`).replace(/__WEBPACK_IMPORTED_MODULE_\d+_+/g,"").replace(/___default\./g,".").replace(RegExp(` \\(https?:\\/\\/${window.location.host}`,"g")," ("):A.message,J[33]=A.message,J[34]=q,J[35]=Y,J[36]=E):E=J[36],J[37]!==E?($=(0,r.jsx)(G.Cy,{children:E}),J[37]=E,J[38]=$):$=J[38],J[39]!==S||J[40]!==$?(N=(0,r.jsxs)(G.BJ,{marginTop:4,space:2,children:[S,$]}),J[39]=S,J[40]=$,J[41]=N):N=J[41],J[42]!==u||J[43]!==Z?(T=u&&(0,r.jsx)(G.az,{marginTop:4,children:(0,r.jsx)(G.EY,{children:(0,r.jsx)("a",{href:(0,k.i)(u),rel:"noopener noreferrer",target:"_blank",children:Z("structure-error.docs-link.text")})})}),J[42]=u,J[43]=Z,J[44]=T):T=J[44],J[45]!==Z?(C=Z("structure-error.reload-button.text"),J[45]=Z,J[46]=C):C=J[46],J[47]!==p||J[48]!==C?(D=(0,r.jsx)(G.az,{marginTop:4,children:(0,r.jsx)(s.$n,{text:C,icon:z.Fjq,tone:"primary",onClick:p})}),J[47]=p,J[48]=C,J[49]=D):D=J[49],J[50]!==n||J[51]!==N||J[52]!==g||J[53]!==T||J[54]!==D||J[55]!==y||J[56]!==I||J[57]!==w||J[58]!==j||J[59]!==b||J[60]!==_?(M=(0,r.jsxs)(n,{marginTop:g,padding:y,radius:I,overflow:w,shadow:j,tone:b,children:[_,N,T,D]}),J[50]=n,J[51]=N,J[52]=g,J[53]=T,J[54]=D,J[55]=y,J[56]=I,J[57]=w,J[58]=j,J[59]=b,J[60]=_,J[61]=M):M=J[61],J[62]!==a||J[63]!==M||J[64]!==v?(R=(0,r.jsxs)(a,{children:[v,M]}),J[62]=a,J[63]=M,J[64]=v,J[65]=R):R=J[65],J[66]!==o||J[67]!==c||J[68]!==f||J[69]!==h||J[70]!==m||J[71]!==x||J[72]!==R?(L=(0,r.jsx)(o,{height:c,overflow:f,padding:h,sizing:m,tone:x,children:R}),J[66]=o,J[67]=c,J[68]=f,J[69]=h,J[70]=m,J[71]=x,J[72]=R,J[73]=L):L=J[73],L}function et(e,t){return(0,r.jsx)(U,{children:e},`${e}-${t}`)}function en(){window.location.reload()}function er(){let e,t,n,a,s,o,p,u,c=(0,i.c)(17),{t:f}=(0,l.Bdt)(d.Z7);return c[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(G.az,{children:(0,r.jsx)(G.EY,{size:1,children:(0,r.jsx)(z.sAQ,{})})}),c[0]=e):e=c[0],c[1]!==f?(t=f("no-document-types-screen.title"),c[1]=f,c[2]=t):t=c[2],c[3]!==t?(n=(0,r.jsx)(G.EY,{as:"h1",size:1,weight:"medium",children:t}),c[3]=t,c[4]=n):n=c[4],c[5]!==f?(a=f("no-document-types-screen.subtitle"),c[5]=f,c[6]=a):a=c[6],c[7]!==a?(s=(0,r.jsx)(G.EY,{as:"p",muted:!0,size:1,children:a}),c[7]=a,c[8]=s):s=c[8],c[9]!==f?(o=f("no-document-types-screen.link-text"),c[9]=f,c[10]=o):o=c[10],c[11]!==o?(p=(0,r.jsx)(G.EY,{as:"p",muted:!0,size:1,children:(0,r.jsx)("a",{href:"https://www.sanity.io/docs/create-a-schema-and-configure-sanity-studio",target:"_blank",rel:"noreferrer",children:o})}
2),c[11]=o,c[12]=p):p=c[12],c[13]!==n||c[14]!==s||c[15]!==p?(u=(0,r.jsx)(G.Zp,{height:"fill",children:(0,r.jsx)(G.so,{align:"center",height:"fill",justify:"center",padding:4,sizing:"border",children:(0,r.jsx)(G.mc,{width:0,children:(0,r.jsx)(G.Zp,{padding:4,radius:2,shadow:1,tone:"caution",children:(0,r.jsxs)(G.so,{children:[e,(0,r.jsxs)(G.BJ,{flex:1,marginLeft:3,space:3,children:[n,s,p]})]})})})})}),c[13]=n,c[14]=s,c[15]=p,c[16]=u):u=c[16],u}let ei=e=>{let t,n,r=(0,i.c)(7),{documentId:s,documentType:p}=e,{selectedReleaseId:u}=(0,l.QO2)(),c=(0,l.zX2)(s,p,"default",u),f=(0,l.I07)(),{t:h}=(0,l.Bdt)(d.Z7),m=!c?.published&&!c?.draft,x=c?.version||c?.draft||c?.published,g=f.get(p),{value:y,isLoading:I}=(0,l.d3q)({enabled:!!x,schemaType:g,value:x}),{lastRevisionDocument:w}=(0,o.c0)(s,p),j=w&&!x?"":m?h("browser-document-title.new-document",{schemaType:g?.title||g?.name}):y?.title||h("browser-document-title.untitled-document"),b=c.ready&&!I,_=es(j);return r[0]!==_||r[1]!==b?(t=()=>{b&&(document.title=_)},r[0]=_,r[1]=b,r[2]=t):t=r[2],r[3]!==j||r[4]!==_||r[5]!==b?(n=[j,b,_],r[3]=j,r[4]=_,r[5]=b,r[6]=n):n=r[6],(0,a.useEffect)(t,n),null},ea=e=>{let t,n,r=(0,i.c)(5),{title:l}=e,s=es(l);return r[0]!==s?(t=()=>{document.title=s}
2,r[0]=s,r[1]=t):t=r[1],r[2]!==s||r[3]!==l?(n=[s,l],r[2]=s,r[3]=l,r[4]=n):n=r[4],(0,a.useEffect)(t,n),null},el=e=>{var t;let n,a=(0,i.c)(8),{resolvedPanes:l}=e;if(!l?.length)return null;let s=l[l.length-1];if(s===o.Gp){let e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(ea,{}),a[0]=e):e=a[0],e}if((t=s)!==o.Gp&&"document"===t.type){let e;if(s?.title){let e;return a[1]!==s.title?(e=(0,r.jsx)(ea,{title:s.title}),a[1]=s.title,a[2]=e):e=a[2],e}return a[3]!==s.options.id||a[4]!==s.options.type?(e=(0,r.jsx)(ei,{documentId:s.options.id,documentType:s.options.type}),a[3]=s.options.id,a[4]=s.options.type,a[5]=e):e=a[5],e}let d=s?.title;return a[6]!==d?(n=(0,r.jsx)(ea,{title:d}),a[6]=d,a[7]=n):n=a[7],n};function es(e){let t,n=(0,i.c)(3),r=(0,o.pl)().structureContext.title;return n[0]!==e||n[1]!==r?(t=[e,r].filter(eo),n[0]=e,n[1]=r,n[2]=t):t=n[2],t.join(" | ")}function eo(e){return e}let ed=(0,T.I4)(o.bt).withConfig({displayName:"StyledPaneLayout",componentId:"sc-1hgaa0f-0"})`min-height:100%;min-width:320px;`,ep=(0,C.v_)("mod+s"),eu=(0,a.memo)(function(e){let t,n,s,d,u,c,f,m,y,I,w,$,z,T,C,L,A,F,V,W=(0,i.c)(58),{onPaneChange:K}=e,{push:Q}=(0,N.dj)(),X=(0,l.I07)(),{navigate:U}=(0,p.rd)(),ee=(0,p.ks)(),{layoutCollapsed:et,setLayoutCollapsed:en}=(0,o.pl)(),ei=function(){let e,t,n,r,l,s,d,u=(0,i.c)(19),[c,f]=(0,a.useState)(),[m,y]=(0,a.useState)(null);if(c)throw c;let{structureContext:I,rootPaneNode:w}=(0,o.pl)(),{navigate:$}=(0,p.rd)();u[0]===Symbol.for("react.memo_cache_sentinel")?(e={paneDataItems:[],resolvedPanes:[],routerPanes:[]},u[0]=e):e=u[0];let[z,G]=(0,a.useState)(e),N=function(){let e,t,n,r=(0,i.c)(6),[l]=(0,a.useState)(q);r[0]!==l?(e=l.asObservable().pipe((0,b.T)(Y)),r[0]=l,r[1]=e):e=r[1];let s=e,{state:o}=(0,p.rd)();return r[2]!==o||r[3]!==l?(t=()=>{l.next(o)},n=[o,l],r[2]=o,r[3]=l,r[4]=t,r[5]=n):(t=r[4],n=r[5]),(0,a.useEffect)(t,n),s}();if(u[1]!==w||u[2]!==N||u[3]!==I?(t=()=>{let e=(function({routerPanesStream:e,rootPaneNode:t,initialCacheState:n={cacheKeysByFlatIndex:[],flattenedRouterPanes:[],resolvedPaneCache:new Map,resolvePane:()=>g.t},structureContext:r}){return e.pipe((0,b.T)(e=>[[{id:"root"}],...e]),(0,b.T)(e=>e.flatMap((e,t)=>e.map((e,n)=>({routerPaneSibling:e,groupIndex:t,siblingIndex:n}))).map((e,t)=>({...e,flatIndex:t}))),(0,_.Z)([]),(0,v.N)(function(e,t){var n,r=!1;e.subscribe((0,P._)(t,function(e){var i=n;n=e,r&&t.next([i,e]),r=!0}))}),(0,b.T)(([e,t])=>{for(let n=0;n<t.length;n++){let r=e[n],i=t[n];if(!(0,M.A)(r,i))return{flattenedRouterPanes:t,diffIndex:n}}return{flattenedRouterPanes:t,diffIndex:t.length}}),(0,S.S)((e,t)=>{let{cacheKeysByFlatIndex:n,resolvedPaneCache:r}=e,{flattenedRouterPanes:i,diffIndex:a}=t,l=n.slice(0,a+1),s=n.slice(a+1),d=new Set(l.flatMap(e=>Array.from(e)));for(let e of s.flatMap(e=>Array.from(e)).filter(e=>!d.has(e)))r.delete(e);return{flattenedRouterPanes:i,cacheKeysByFlatIndex:n,resolvedPaneCache:r,resolvePane:R(e=>(t,i,a)=>{let l=t&&`${(0,o.Jq)(t)}-contextHash(${JSON.stringify({id:i.id,parentId:parent&&(0,o.Jq)(parent),path:i.path,index:i.index,splitIndex:i.splitIndex,serializeOptionsIndex:i.serializeOptions?.index,serializeOptionsPath:i.serializeOptions?.path})})`,s=l&&r.get(l);if(s)return s;let d=e(t,i,a);if(!l)return d;let p=n[a]||new Set;return p.add(l),n[a]=p,r.set(l,d),d})}},n),(0,j.n)(({flattenedRouterPanes:e,resolvePane:n})=>(function e({unresolvedPane:t,flattenedRouterPanes:n,parent:r,path:i,resolvePane:a,structureContext:l}){let[s,...o]=n,d=o[0],p={id:s.routerPaneSibling.id,splitIndex:s.siblingIndex,parent:r,path:[...i,s.routerPaneSibling.id],index:s.flatIndex,params:s.routerPaneSibling.params||{},payload:s.routerPaneSibling.payload,structureContext:l};try{return a(t,p,s.flatIndex).pipe((0,j.n)(n=>{let u,c={type:"resolvedMeta",...s,paneNode:n,path:p.path},f=o.map((e,t)=>({type:"loading",path:[...p.path,...o.slice(t).map((t,n)=>`[${e.flatIndex+n}]`)],paneNode:null,...e}));return o.length?(u=d?.routerPaneSibling.id.startsWith("__edit__")?e({unresolvedPane:B,flattenedRouterPanes:o,parent:r,path:p.path,resolvePane:a,structureContext:l}):s.groupIndex===d?.groupIndex?e({unresolvedPane:t,flattenedRouterPanes:o,parent:r,path:i,resolvePane:a,structureContext:l}):e({unresolvedPane:"function"==typeof n.child?J(n,"child"):n.child,flattenedRouterPanes:o,parent:n,path:p.path,resolvePane:a,structureContext:l}),(0,x.x)((0,h.of)([c,...f]),u.pipe((0,b.T)(e=>[c,...e])))):(0,h.of)([c])}))}catch(e){if(e instanceof O&&(e.context&&console.warn(`Pane resolution error at index ${e.context.
2index}${e.context.splitIndex>0?` for split pane index ${e.context.splitIndex}`:""}: ${e.message}${e.helpId?` - see ${(0,k.i)(e.helpId)}`:""}`,e),"structure-item-returned-no-child"===e.helpId))return(0,h.of)([]);throw e}})({unresolvedPane:t,flattenedRouterPanes:e,parent:null,path:[],resolvePane:n,structureContext:r}))).pipe((0,S.S)((e,t)=>t.map((t,n)=>{let r=e[n];return r&&"loading"===t.type&&r.routerPaneSibling.id===t.routerPaneSibling.id?r:t}),[]),(0,E.F)((e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<t.length;n++){let r=e[n],i=t[n];if(Z(r)!==Z(i))return!1}return!0}))})({rootPaneNode:w,routerPanesStream:N,structureContext:I}).pipe((0,b.T)(H)).subscribe({next:e=>G(e),error:e=>f(e)});return()=>e.unsubscribe()},n=[w,N,I],u[1]=w,u[2]=N,u[3]=I,u[4]=t,u[5]=n):(t=u[4],n=u[5]),(0,a.useEffect)(t,n),u[6]!==z||u[7]!==$?(r=function(){let{paneDataItems:e,routerPanes:t}=z,n=e[e.length-1]?.pane;if(!n||n===o.Gp||"document"!==n.type||!n.defaultPanes)return;let r=t[e.length-1];if(!r||1!==r.length)return;let i=r[0].params;if(i?.expanded)return;let a=n.defaultPanes.map((e,t)=>({id:r[0].id,params:{...i,view:e,...0===t?{expanded:"true"}:{}},payload:r[0].payload}));$({panes:[...t.slice(1,-1),a]},{replace:!0})},l=[z,$],u[6]=z,u[7]=$,u[8]=r,u[9]=l):(r=u[8],l=u[9]),(0,a.useEffect)(r,l),u[10]!==z.paneDataItems||u[11]!==m){let e;u[13]!==m?(e=e=>({...e,maximized:!!m&&e.key===m.key}),u[13]=m,u[14]=e):e=u[14],s=z.paneDataItems.map(e),u[10]=z.paneDataItems,u[11]=m,u[12]=s}else s=u[12];let T=s;return u[15]!==z||u[16]!==m||u[17]!==T?(d={...z,paneDataItems:T,maximizedPane:m,setMaximizedPane:y},u[15]=z,u[16]=m,u[17]=T,u[18]=d):d=u[18],d}(),{paneDataItems:ea,resolvedPanes:es,setMaximizedPane:eo,maximizedPane:eu}=ei,em=(0,p.ks)(ec),{sanity:ey}=(0,G.DP)(),{media:eI}=ey,[ew,ej]=(0,a.useState)(null);W[0]!==en?(t=()=>en(!0),W[0]=en,W[1]=t):t=W[1];let eb=t;W[2]!==en?(n=()=>en(!1),W[2]=en,W[3]=n):n=W[3];let e_=n;if(W[4]!==ea){let e=ea.findLastIndex(ef);s=-1===e?ea:ea.slice(e).filter(t=>t.groupIndex<=ea[e].groupIndex),W[4]=ea,W[5]=s}else s=W[5];let ev=s;W[6]!==K||W[7]!==es?(d=()=>{es.length&&K(es)},u=[K,es],W[6]=K,W[7]=es,W[8]=d,W[9]=u):(d=W[8],u=W[9]),(0,a.useEffect)(d,u),W[10]!==Q?(c=()=>{let e=e=>{ep(e)&&(e.preventDefault(),Q({closable:!0,id:"auto-save-message",status:"info",title:"Your work is automatically saved!",duration:4e3}))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},f=[Q],W[10]=Q,W[11]=c,W[12]=f):(c=W[11],f=W[12]),(0,a.useEffect)(c,f);let eP=X._original?.types.some(l.Xhw);W[13]!==U||W[14]!==ee?.panes||W[15]!==eo?(m=e=>{if(!e)return;let t=ee?.panes||[];if(e.maximized){eo(null),U({panes:t});return}if(e.pane!==o.Gp&&"document"===e.pane.type){let n=t.slice(0,e.groupIndex);eo(e),U({panes:n})}},W[13]=U,W[14]=ee?.panes,W[15]=eo,W[16]=m):m=W[16];let eS=m,eE=(0,a.useRef)(-1);W[17]!==U||W[18]!==ea||W[19]!==ee?.panes||W[20]!==eo?(y=()=>{let e=ea.find(eh);e&&(e.pane!==o.Gp&&"document"===e.pane.type&&eo(e),U({panes:(ee?.panes||[]).map(ex)},{replace:!0}))},W[17]=U,W[18]=ea,W[19]=ee?.panes,W[20]=eo,W[21]=y):y=W[21];let e$=ee?.panes;if(W[22]!==U||W[23]!==ea||W[24]!==eo||W[25]!==e$?(I=[U,ea,e$,eo],W[22]=U,W[23]=ea,W[24]=eo,W[25]=e$,W[26]=I):I=W[26],(0,a.useEffect)(y,I),W[27]!==eu||W[28]!==ea||W[29]!==eo?(w=()=>{let e=ea.findIndex(eg),t=eE.current;if(eE.current=e,eu){if(eu.pane!==o.Gp&&"document"!==eu.pane.type)return void eo(null);if(-1!==e&&e!==t)return void eo(ea[e]);ea.some(e=>e.key===eu.key)||eo(ea.find(e=>e.groupIndex===eu.groupIndex&&e.siblingIndex===eu.siblingIndex&&e.pane!==o.Gp&&"document"===e.pane.type)||null)}},$=[eu,ea,eo],W[27]=eu,W[28]=ea,W[29]=eo,W[30]=w,W[31]=$):(w=W[30],$=W[31]),(0,a.useEffect)(w,$),!eP){let e;return W[32]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(er,{}),W[32]=e):e=W[32],e}let ek=ew||null,ez=et?void 0:"fill",eG=eI[1];if(W[33]!==eS||W[34]!==ev){let e;W[36]!==eS?(e=e=>{let{active:t,childItemId:n,groupIndex:i,itemId:l,key:s,pane:d,index:p,params:u,path:c,payload:f,siblingIndex:h,selected:m,maximized:x}=e;return(0,r.jsx)(a.Fragment,{children:d===o.Gp?(0,r.jsx)(o.RG,{paneKey:s,path:c,selected:m}):(0,r.jsx)(o.Gt,{active:t,groupIndex:i,index:p,pane:d,childItemId:n,itemId:l,paneKey:s,params:u,payload:f,path:c,selected:m,siblingIndex:h,maximized:x,onSetMaximizedPane:()=>eS(e)})},`${d===o.Gp?"loading":d.type}-${p}`)},W[36]=eS,W[37]=e):e=W[37],z=ev.map(e),W[33]=eS,W[34]=ev,W[35]=z}else z=W[35];return W[38]!==em||W[39]!==ea.length?(T=ea.length<=1&&em&&(0,r.jsx)(o.RG,{paneKey:"intent-resolver"}),W[38]=em,W[39]=ea.length,W[40]=T):T=W[40],W[41]!==eb||W[42]!==e_||W[43]!==eI[1]||W[44]!==ez||W[45]!==z||W[46]!==T?(C=(0,r.jsxs)(ed,{flex:1,height:ez,minWidth:eG,onCollapse:eb,onExpand:e_,children:[z,T]}
2),W[41]=eb,W[42]=e_,W[43]=eI[1],W[44]=ez,W[45]=z,W[46]=T,W[47]=C):C=W[47],W[48]!==es?(L=(0,r.jsx)(el,{resolvedPanes:es}),W[48]=es,W[49]=L):L=W[49],W[50]===Symbol.for("react.memo_cache_sentinel")?(A=(0,r.jsx)("div",{"data-portal":"",ref:ej}),W[50]=A):A=W[50],W[51]!==ek||W[52]!==C||W[53]!==L?(F=(0,r.jsxs)(G.GD,{element:ek,children:[C,L,A]}),W[51]=ek,W[52]=C,W[53]=L,W[54]=F):F=W[54],W[55]!==ei||W[56]!==F?(V=(0,r.jsx)(D.N8,{value:ei,children:F}),W[55]=ei,W[56]=F,W[57]=V):V=W[57],V});function ec(e){return"string"==typeof e.intent}function ef(e){return e.maximized}function eh(e){return e.params?.mode==="focus"}function em(e){let{mode:t,...n}=e.params||{},r=Object.keys(n).length?n:void 0;return{...e,params:r}}function ex(e){return e.map(em)}function eg(e){return e.selected}function ey(e){let t,n,p,u,c,f,h,m=(0,i.c)(14),{tool:x}=e,{options:g}=x,{unstable_sources:y}=(0,l.hA9)(),[I]=y;m[0]!==g?(t=g||{},m[0]=g,m[1]=t):t=m[1];let{source:w,defaultDocumentNode:j,structure:b}=t;m[2]===Symbol.for("react.memo_cache_sentinel")?(n=[],m[2]=n):n=m[2],(0,a.useEffect)(eI,n),m[3]===Symbol.for("react.memo_cache_sentinel")?(p={error:null},m[3]=p):p=m[3];let[_,v]=(0,a.useState)(p),{error:P}=_;if(P){let e;return m[4]!==P?(e=(0,r.jsx)(ee,{error:P}),m[4]=P,m[5]=e):e=m[5],e}let S=w||I.name;return m[6]===Symbol.for("react.memo_cache_sentinel")?(u=(0,r.jsx)(eu,{onPaneChange:o.GG}),c=(0,r.jsx)(Q,{}),m[6]=u,m[7]=c):(u=m[6],c=m[7]),m[8]!==j||m[9]!==b?(f=(0,r.jsxs)(d.$l,{defaultDocumentNode:j,structure:b,children:[u,c]}),m[8]=j,m[9]=b,m[10]=f):f=m[10],m[11]!==S||m[12]!==f?(h=(0,r.jsx)(s.tH,{onCatch:v,children:(0,r.jsx)(l.NeO,{name:S,children:f})}),m[11]=S,m[12]=f,m[13]=h):h=m[13],h}function eI(){return(0,o.GG)([]),ew}function ew(){return(0,o.GG)([])}}}]);
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.