1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3161],{3161:function(e,t,n){n.r(t),n.d(t,{default:function(){return eP}});var r=n(31886),i=n(42036),a=n(61977),l=n(80536),s=n(81361),o=n(19746),d=n(67596),u=n(7696),p=n(64168),c=n(20922),f=n(47113),h=n(36447),m=n(80450),x=n(36836),g=n(41929),y=n(82459),I=n(65598),w=n(66032),b=n(63092),j=n(63261),_=n(74343),v=n(30571),P=n(84112),z=n(73720),S=n(45286),$=n(78357),E=n(97277),k=n(76764),R=n(79463),O=n(76994),C=n(7802),M=n(70575),F=n(92032),T=n(61807),W=n(51507);class D 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}}let N=new WeakMap;function U(e){let t=N.get(e);if(t)return t;let n=(0,w.x0)();return N.set(e,n),n}let L=e=>!!e&&"function"==typeof e?.then,K=e=>!!(0,l.Uy$)(e)&&"function"==typeof e.serialize,A=e=>(t,n,r)=>{try{return e(t,n,r)}catch(e){throw e instanceof D?e:new D({message:"string"==typeof e?.message?e.message:"",context:n,cause:e})}},H=e=>(...t)=>e(...t).pipe((0,b._)(1),(0,j.x)());function G(e){let t=A(H(e((e,n,r)=>{if(!e)throw new D({message:"Pane returned no child",context:n,helpId:"structure-item-returned-no-child"});return L(e)||(0,f.b)(e)?(0,h.D)(e).pipe((0,_.w)(e=>t(e,n,r))):K(e)?t(e.serialize(n),n,r):"function"==typeof e?t(e(n.id,n),n,r):(0,m.of)(e)})));return t}let B=new WeakMap;function J(e,t){let n=B.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),B.set(e,n),i}async function V(e){let t=new Map,n=G(e=>(n,r,i)=>{let a=n&&`${U(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:{...c(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:u,structureContext:p}){if(!d)return[];let{id:c,type:f,...h}=a,m=await (0,x.z)(n(d,{id:e,splitIndex:0,parent:l,path:s,index:t,params:{},payload:void 0,structureContext:p},t));return"document"===m.type&&m.id===c?[{panes:[...s.slice(0,s.length-1).map(e=>[{id:e}]),[{id:c,params:h,payload:o}]],depthIndex:s.length,levelIndex:u}]:m.canHandleIntent?.(r,a,{pane:m,index:t})||"documentList"===m.type&&m.schemaTypeName===f&&"_type == $type"===m.options.filter?[{panes:[...s.map(e=>[{id:e}]),[{id:a.id,params:h,payload:o}]],depthIndex:s.length,levelIndex:u}]:"list"===m.type&&m.child&&m.items?(await Promise.all(m.items.map((e,n)=>"divider"===e.type?Promise.resolve([]):i({currentId:e._id||e.id,flatIndex:t+1,intent:r,params:a,parent:m,path:[...s,e.id],payload:o,unresolvedPane:"function"==typeof m.child?J(m,"child"):m.child,levelIndex:n,structureContext:p})))).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 X=(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()},Y=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?U(e.paneNode):null};return`metaHash(${JSON.stringify(t)})`};function Z(e){return e?.panes||[]}function q(){return new I.t(1)}function Q(e){let t=e.reduce(et,[]),n=t.length,r=e.map(r=>{let{groupIndex:i,flatIndex:a,siblingIndex:l,routerPaneSibling:s,path:d}=r,u=s.id,p=t[i+1];return{active:i===n-2,childItemId:p?.[0].id??null,index:a,itemId:s.id,groupIndex:i,key:`${"loading"===r.type?"unknown":r.paneNode.id}-${u}-${l}`,pane:"loading"===r.type?o.PF: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(ee)}}function ee(e){return e.pane}function et(e,t){let n=e[t.groupIndex]||[];return n[t.siblingIndex]=t.routerPaneSibling,e[t.groupIndex]=n,e}
1async function en(e,t,n){if(t&&n)return{id:t,type:n};if(!t&&n)return{id:(0,k.Z)(),type:n};if(t&&!n){let n=await (0,x.z)(e.resolveTypeForDocument(t));return{id:t,type:n}}throw new D({message:"Neither document `id` or `type` was provided when trying to resolve intent."})}let er={},ei=(0,a.memo)(function(){let e,t;let n=(0,i.c)(7),{navigate:r}=(0,u.tv)(),s=(0,u.z)(ea),{rootPaneNode:d,structureContext:p}=(0,o.nz)(),c=(0,l.H__)(),[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]!==p?(e=()=>{if(s){let{intent:e,params:t,payload:n}=s,i=!1;return(async function(){let{id:a,type:l}=await en(c,"string"==typeof t.id?t.id:void 0,"string"==typeof t.type?t.type:void 0);if(i)return;let s=await V({intent:e,params:{...t,id:a,type:l},payload:n,rootPaneNode:d,structureContext:p});i||r({panes:s},{replace:!0})})().catch(h),()=>{i=!0}}},t=[c,s,r,d,p],n[0]=c,n[1]=s,n[2]=r,n[3]=d,n[4]=p,n[5]=e,n[6]=t):(e=n[5],t=n[6]),(0,a.useEffect)(e,t),null});function ea(e){let t="string"==typeof e.intent?e.intent:void 0;return t?{intent:t,params:(0,l.Uy$)(e.params)?e.params:er,payload:e.payload}:void 0}let el=F.zo.span` 2 &:not(:last-child)::after { 3 content: ' â '; 4 opacity: 0.5; 5 } 6`;function es(e){let t,n,a,o,u,p,c,f,h,m,x,g,y,I,w,b,j,_,v,P,z,S,$,E,k,F,T,W,N,U;let L=(0,i.c)(74),{error:K}=e;if(!(K instanceof D))throw K;let{cause:A}=K,{t:H}=(0,l.$G7)(d.UA),G=A?.stack||K.stack;L[0]!==A||L[1]!==K.message||L[2]!==G?(t=G&&!(A instanceof d.zc)&&!K.message.includes("Module build failed:"),L[0]=A,L[1]=K.message,L[2]=G,L[3]=t):t=L[3];let B=t;if(L[4]!==A||L[5]!==K.helpId||L[6]!==H){let e;let t=A instanceof d.zc?A.path:[];p=A instanceof d.zc&&A.helpId||K.helpId,u=ed,o=C.W,c="fill",f="auto",h=4,m="border",x="critical",a=M.W2,L[25]!==H?(e=H("structure-error.header.text"),L[25]=H,L[26]=e):e=L[26],L[27]!==e?(v=(0,r.jsx)(M.X6,{as:"h2",children:e}),L[27]=e,L[28]=v):v=L[28],n=C.W,g=4,y=4,I=2,w="auto",b=1,j="inherit",_=t.length>0&&(0,r.jsxs)(C.O,{space:2,children:[(0,r.jsx)(C.et,{size:1,weight:"medium",children:H("structure-error.structure-path.label")}),(0,r.jsx)(M.EK,{children:t.slice(1).map(eo)})]}),L[4]=A,L[5]=K.helpId,L[6]=H,L[7]=n,L[8]=a,L[9]=o,L[10]=u,L[11]=p,L[12]=c,L[13]=f,L[14]=h,L[15]=m,L[16]=x,L[17]=g,L[18]=y,L[19]=I,L[20]=w,L[21]=b,L[22]=j,L[23]=_,L[24]=v}else n=L[7],a=L[8],o=L[9],u=L[10],p=L[11],c=L[12],f=L[13],h=L[14],m=L[15],x=L[16],g=L[17],y=L[18],I=L[19],w=L[20],b=L[21],j=L[22],_=L[23],v=L[24];return L[29]!==H?(P=H("structure-error.error.label"),L[29]=H,L[30]=P):P=L[30],L[31]!==P?(z=(0,r.jsx)(C.et,{size:1,weight:"medium",children:P}),L[31]=P,L[32]=z):z=L[32],L[33]!==K.message||L[34]!==B||L[35]!==G?(S=B?G.replace(/\(\.\.\.\)\./g,`(...) 7 .`).replace(/__WEBPACK_IMPORTED_MODULE_\d+_+/g,"").replace(/___default\./g,".").replace(RegExp(` \\(https?:\\/\\/${window.location.host}`,"g")," ("):K.message,L[33]=K.message,L[34]=B,L[35]=G,L[36]=S):S=L[36],L[37]!==S?($=(0,r.jsx)(M.EK,{children:S}),L[37]=S,L[38]=$):$=L[38],L[39]!==z||L[40]!==$?(E=(0,r.jsxs)(C.O,{marginTop:4,space:2,children:[z,$]}),L[39]=z,L[40]=$,L[41]=E):E=L[41],L[42]!==p||L[43]!==H?(k=p&&(0,r.jsx)(C.lt,{marginTop:4,children:(0,r.jsx)(C.et,{children:(0,r.jsx)("a",{href:(0,R.h)(p),rel:"noopener noreferrer",target:"_blank",children:H("structure-error.docs-link.text")})})}),L[42]=p,L[43]=H,L[44]=k):k=L[44],L[45]!==H?(F=H("structure-error.reload-button.text"),L[45]=H,L[46]=F):F=L[46],L[47]!==u||L[48]!==F?(T=(0,r.jsx)(C.lt,{marginTop:4,children:(0,r.jsx)(s.zx,{text:F,icon:O.bnu,tone:"primary",onClick:u})}),L[47]=u,L[48]=F,L[49]=T):T=L[49],L[50]!==n||L[51]!==E||L[52]!==g||L[53]!==k||L[54]!==T||L[55]!==y||L[56]!==I||L[57]!==w||L[58]!==b||L[59]!==j||L[60]!==_?(W=(0,r.jsxs)(n,{marginTop:g,padding:y,radius:I,overflow:w,shadow:b,tone:j,children:[_,E,k,T]}),L[50]=n,L[51]=E,L[52]=g,L[53]=k,L[54]=T,L[55]=y,L[56]=I,L[57]=w,L[58]=b,L[59]=j,L[60]=_,L[61]=W):W=L[61],L[62]!==a||L[63]!==W||L[64]!==v?(N=(0,r.jsxs)(a,{children:[v,W]}),L[62]=a,L[63]=W,L[64]=v,L[65]=N):N=L[65],L[66]!==o||L[67]!==c||L[68]!==f||L[69]!==h||L[70]!==m||L[71]!==x||L[72]!==N?(U=(0,r.jsx)(o,{height:c,overflow:f,padding:h,sizing:m,tone:x,children:N}),L[66]=o,L[67]=c,L[68]=f,L[69]=h,L[70]=m,L[71]=x,L[72]=N,L[73]=U):U=L[73],U}function eo(e,t){return(0,r.jsx)(el,{children:e},`${e}-${t}`)}function ed(){window.location.reload()}function eu(){let e,t,n,a,s,o,u,p;let c=(0,i.c)(17),{t:f}=(0,l.$G7)(d.UA);return c[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(C.lt,{children:(0,r.jsx)(C.et,{size:1,children:(0,r.jsx)(O.foC,{})})}),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)(C.et,{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)(C.et,{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?(u=(0,r.jsx)(C.et,{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})}
7),c[11]=o,c[12]=u):u=c[12],c[13]!==n||c[14]!==s||c[15]!==u?(p=(0,r.jsx)(C.W,{height:"fill",children:(0,r.jsx)(C.at,{align:"center",height:"fill",justify:"center",padding:4,sizing:"border",children:(0,r.jsx)(M.W2,{width:0,children:(0,r.jsx)(C.W,{padding:4,radius:2,shadow:1,tone:"caution",children:(0,r.jsxs)(C.at,{children:[e,(0,r.jsxs)(C.O,{flex:1,marginLeft:3,space:3,children:[n,s,u]})]})})})})}),c[13]=n,c[14]=s,c[15]=u,c[16]=p):p=c[16],p}let ep=e=>{let t,n;let r=(0,i.c)(7),{documentId:s,documentType:u}=e,{selectedReleaseId:p}=(0,l.Wc0)(),c=(0,l.iav)(s,u,"default",p),f=(0,l.I_y)(),{t:h}=(0,l.$G7)(d.UA),m=!c?.published&&!c?.draft,x=c?.version||c?.draft||c?.published,g=f.get(u),{value:y,isLoading:I}=(0,l._2T)({enabled:!!x,schemaType:g,value:x}),{lastRevisionDocument:w}=(0,o.Ru)(s,u),b=w&&!x?"":m?h("browser-document-title.new-document",{schemaType:g?.title||g?.name}):y?.title||h("browser-document-title.untitled-document"),j=c.ready&&!I,_=eh(b);return r[0]!==_||r[1]!==j?(t=()=>{j&&(document.title=_)},r[0]=_,r[1]=j,r[2]=t):t=r[2],r[3]!==b||r[4]!==_||r[5]!==j?(n=[b,j,_],r[3]=b,r[4]=_,r[5]=j,r[6]=n):n=r[6],(0,a.useEffect)(t,n),null},ec=e=>{let t,n;let r=(0,i.c)(5),{title:l}=e,s=eh(l);return r[0]!==s?(t=()=>{document.title=s}
7,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},ef=e=>{let t;let n=(0,i.c)(8),{resolvedPanes:a}=e;if(!a?.length)return null;let l=a[a.length-1];if(l===o.PF){let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(ec,{}),n[0]=e):e=n[0],e}if(l!==o.PF&&"document"===l.type){let e;if(l?.title){let e;return n[1]!==l.title?(e=(0,r.jsx)(ec,{title:l.title}),n[1]=l.title,n[2]=e):e=n[2],e}return n[3]!==l.options.id||n[4]!==l.options.type?(e=(0,r.jsx)(ep,{documentId:l.options.id,documentType:l.options.type}),n[3]=l.options.id,n[4]=l.options.type,n[5]=e):e=n[5],e}let s=l?.title;return n[6]!==s?(t=(0,r.jsx)(ec,{title:s}),n[6]=s,n[7]=t):t=n[7],t};function eh(e){let t;let n=(0,i.c)(3),r=(0,o.nz)().structureContext.title;return n[0]!==e||n[1]!==r?(t=[e,r].filter(em),n[0]=e,n[1]=r,n[2]=t):t=n[2],t.join(" | ")}function em(e){return e}let ex=(0,F.zo)(o.hL)` 8 min-height: 100%; 9 min-width: 320px; 10`,eg=(0,T.P6)("mod+s"),ey=(0,a.memo)(function(e){let t,n,s,d,c,f,h,x,I,w,b,j,k,O,F,T,N,L,K;let A=(0,i.c)(58),{onPaneChange:H}=e,{push:B}=(0,M.pm)(),V=(0,l.I_y)(),{navigate:ee}=(0,u.tv)(),et=(0,u.z)(),{layoutCollapsed:en,setLayoutCollapsed:er}=(0,o.nz)(),ei=function(){let e,t,n,r,l;let s=(0,i.c)(15),[d,p]=(0,a.useState)(),[c,f]=(0,a.useState)(null);if(d)throw d;let{structureContext:h,rootPaneNode:x}=(0,o.nz)();s[0]===Symbol.for("react.memo_cache_sentinel")?(e={paneDataItems:[],resolvedPanes:[],routerPanes:[]},s[0]=e):e=s[0];let[I,w]=(0,a.useState)(e),b=function(){let e,t,n;let r=(0,i.c)(6),[l]=(0,a.useState)(q);r[0]!==l?(e=l.asObservable().pipe((0,v.U)(Z)),r[0]=l,r[1]=e):e=r[1];let s=e,{state:o}=(0,u.tv)();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(s[1]!==x||s[2]!==b||s[3]!==h?(t=()=>{let e=(function({routerPanesStream:e,rootPaneNode:t,initialCacheState:n={cacheKeysByFlatIndex:[],flattenedRouterPanes:[],resolvedPaneCache:new Map,resolvePane:()=>y.C},structureContext:r}){return e.pipe((0,v.U)(e=>[[{id:"root"}],...e]),(0,v.U)(e=>e.flatMap((e,t)=>e.map((e,n)=>({routerPaneSibling:e,groupIndex:t,siblingIndex:n}))).map((e,t)=>({...e,flatIndex:t}))),(0,P.O)([]),(0,z.e)(function(e,t){var n,r=!1;e.subscribe((0,S.x)(t,function(e){var i=n;n=e,r&&t.next([i,e]),r=!0}))}),(0,v.U)(([e,t])=>{for(let n=0;n<t.length;n++)if(!W(e[n],t[n]))return{flattenedRouterPanes:t,diffIndex:n};return{flattenedRouterPanes:t,diffIndex:t.length}}),(0,$.R)((e,t)=>{let{cacheKeysByFlatIndex:n,resolvedPaneCache:r}=e,{flattenedRouterPanes:i,diffIndex:a}=t,l=n.slice(0,a+1),s=n.slice(a+1),o=new Set(l.flatMap(e=>Array.from(e)));for(let e of s.flatMap(e=>Array.from(e)).filter(e=>!o.has(e)))r.delete(e);return{flattenedRouterPanes:i,cacheKeysByFlatIndex:n,resolvedPaneCache:r,resolvePane:G(e=>(t,i,a)=>{let l=t&&`${U(t)}-contextHash(${JSON.stringify({id:i.id,parentId:parent&&U(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 o=e(t,i,a);if(!l)return o;let d=n[a]||new Set;return d.add(l),n[a]=d,r.set(l,o),o})}},n),(0,_.w)(({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],u={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,u,s.flatIndex).pipe((0,_.w)(n=>{let p;let c={type:"resolvedMeta",...s,paneNode:n,path:u.path},f=o.map((e,t)=>({type:"loading",path:[...u.path,...o.slice(t).map((t,n)=>`[${e.flatIndex+n}]`)],paneNode:null,...e}));return o.length?(p=d?.routerPaneSibling.id.startsWith("__edit__")?e({unresolvedPane:X,flattenedRouterPanes:o,parent:r,path:u.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:u.path,resolvePane:a,structureContext:l}),(0,g.z)((0,m.of)([c,...f]),p.pipe((0,v.U)(e=>[c,...e])))):(0,m.of)([c])}))}catch(e){if(e instanceof D&&(e.context&&console.warn(`Pane resolution error at index ${e.context.
10index}${e.context.splitIndex>0?` for split pane index ${e.context.splitIndex}`:""}: ${e.message}${e.helpId?` - see ${(0,R.h)(e.helpId)}`:""}`,e),"structure-item-returned-no-child"===e.helpId))return(0,m.of)([]);throw e}})({unresolvedPane:t,flattenedRouterPanes:e,parent:null,path:[],resolvePane:n,structureContext:r}))).pipe((0,$.R)((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.x)((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(Y(r)!==Y(i))return!1}return!0}))})({rootPaneNode:x,routerPanesStream:b,structureContext:h}).pipe((0,v.U)(Q)).subscribe({next:e=>w(e),error:e=>p(e)});return()=>e.unsubscribe()},n=[x,b,h],s[1]=x,s[2]=b,s[3]=h,s[4]=t,s[5]=n):(t=s[4],n=s[5]),(0,a.useEffect)(t,n),s[6]!==I.paneDataItems||s[7]!==c){let e;s[9]!==c?(e=e=>({...e,maximized:!!c&&e.key===c.key}),s[9]=c,s[10]=e):e=s[10],r=I.paneDataItems.map(e),s[6]=I.paneDataItems,s[7]=c,s[8]=r}else r=s[8];let j=r;return s[11]!==I||s[12]!==c||s[13]!==j?(l={...I,paneDataItems:j,maximizedPane:c,setMaximizedPane:f},s[11]=I,s[12]=c,s[13]=j,s[14]=l):l=s[14],l}(),{paneDataItems:ea,resolvedPanes:el,setMaximizedPane:es,maximizedPane:eo}=ei,ed=(0,u.z)(eI),{sanity:ep}=(0,C.ot)(),{media:ec}=ep,[eh,em]=(0,a.useState)(null);A[0]!==er?(t=()=>er(!0),A[0]=er,A[1]=t):t=A[1];let ey=t;A[2]!==er?(n=()=>er(!1),A[2]=er,A[3]=n):n=A[3];let ej=n;if(A[4]!==ea){let e=ea.findLastIndex(ew);s=-1===e?ea:ea.slice(e).filter(t=>t.groupIndex<=ea[e].groupIndex),A[4]=ea,A[5]=s}else s=A[5];let eP=s;A[6]!==H||A[7]!==el?(d=()=>{el.length&&H(el)},c=[H,el],A[6]=H,A[7]=el,A[8]=d,A[9]=c):(d=A[8],c=A[9]),(0,a.useEffect)(d,c),A[10]!==B?(f=()=>{let e=e=>{eg(e)&&(e.preventDefault(),B({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)},h=[B],A[10]=B,A[11]=f,A[12]=h):(f=A[11],h=A[12]),(0,a.useEffect)(f,h);let ez=V._original?.types.some(l.mPO);A[13]!==ee||A[14]!==et?.panes||A[15]!==es?(x=e=>{if(!e)return;let t=et?.panes||[];if(e.maximized){es(null),ee({panes:t});return}if(e.pane!==o.PF&&"document"===e.pane.type){let n=t.slice(0,e.groupIndex);es(e),ee({panes:n})}},A[13]=ee,A[14]=et?.panes,A[15]=es,A[16]=x):x=A[16];let eS=x,e$=(0,a.useRef)(-1);A[17]!==ee||A[18]!==ea||A[19]!==et?.panes||A[20]!==es?(I=()=>{let e=ea.find(eb);e&&(e.pane!==o.PF&&"document"===e.pane.type&&es(e),ee({panes:(et?.panes||[]).map(e_)},{replace:!0}))},A[17]=ee,A[18]=ea,A[19]=et?.panes,A[20]=es,A[21]=I):I=A[21];let eE=et?.panes;if(A[22]!==ee||A[23]!==ea||A[24]!==es||A[25]!==eE?(w=[ee,ea,eE,es],A[22]=ee,A[23]=ea,A[24]=es,A[25]=eE,A[26]=w):w=A[26],(0,a.useEffect)(I,w),A[27]!==eo||A[28]!==ea||A[29]!==es?(b=()=>{let e=ea.findIndex(ev),t=e$.current;if(e$.current=e,eo){if(eo.pane!==o.PF&&"document"!==eo.pane.type){es(null);return}if(-1!==e&&e!==t){es(ea[e]);return}ea.some(e=>e.key===eo.key)||es(ea.find(e=>e.groupIndex===eo.groupIndex&&e.siblingIndex===eo.siblingIndex&&e.pane!==o.PF&&"document"===e.pane.type)||null)}},j=[eo,ea,es],A[27]=eo,A[28]=ea,A[29]=es,A[30]=b,A[31]=j):(b=A[30],j=A[31]),(0,a.useEffect)(b,j),!ez){let e;return A[32]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(eu,{}),A[32]=e):e=A[32],e}let ek=eh||null,eR=en?void 0:"fill",eO=ec[1];if(A[33]!==eS||A[34]!==eP){let e;A[36]!==eS?(e=e=>{let{active:t,childItemId:n,groupIndex:i,itemId:l,key:s,pane:d,index:u,params:p,path:c,payload:f,siblingIndex:h,selected:m,maximized:x}=e;return(0,r.jsx)(a.Fragment,{children:d===o.PF?(0,r.jsx)(o.K4,{paneKey:s,path:c,selected:m}):(0,r.jsx)(o.aT,{active:t,groupIndex:i,index:u,pane:d,childItemId:n,itemId:l,paneKey:s,params:p,payload:f,path:c,selected:m,siblingIndex:h,maximized:x,onSetMaximizedPane:()=>eS(e)})},`${d===o.PF?"loading":d.type}-${u}`)},A[36]=eS,A[37]=e):e=A[37],k=eP.map(e),A[33]=eS,A[34]=eP,A[35]=k}else k=A[35];return A[38]!==ed||A[39]!==ea.length?(O=ea.length<=1&&ed&&(0,r.jsx)(o.K4,{paneKey:"intent-resolver"}),A[38]=ed,A[39]=ea.length,A[40]=O):O=A[40],A[41]!==ey||A[42]!==ej||A[43]!==ec[1]||A[44]!==eR||A[45]!==k||A[46]!==O?(F=(0,r.jsxs)(ex,{flex:1,height:eR,minWidth:eO,onCollapse:ey,onExpand:ej,children:[k,O]}),A[41]=ey,A[42]=ej,A[43]=ec[1],A[44]=eR,A[45]=k,A[46]=O,A[47]=F):F=A[47],A[48]!==el?(T=(0,r.jsx)(ef,{resolvedPanes:el}),A[48]=el,A[49]=T):T=A[49],A[50]===Symbol.for("react.memo_cache_sentinel")?(N=(0,r.jsx)("div",{"data-portal":"",ref:em}),A[50]=N):N=A[50],A[51]!==ek||A[52]!==F||A[53]!==T?(L=(0,r.jsxs)(C.t,{element:ek,children:[F,T,N]}),A[51]=ek,A[52]=F,A[53]=T,A[54]=L):L=A[54],A[55]!==ei||A[56]!==L?(K=(0,r.jsx)(p.n8,{value:ei,children:L}),A[55]=ei,A[56]=L,A[57]=K):K=A[57],K});function eI(e){return"string"==typeof e.intent}function ew(e){return e.maximized}function eb(e){return e.params?.mode==="focus"}function ej(e){let{mode:t,...n}=e.params||{},r=Object.keys(n).length?n:void 0;return{...e,params:r}}function e_(e){return e.map(ej)}function ev(e){return e.selected}function eP(e){let t,n,u,p,c,f,h;let m=(0,i.c)(14),{tool:x}=e,{options:g}=x,{unstable_sources:y}=(0,l.cFj)(),[I]=y;m[0]!==g?(t=g||{},m[0]=g,m[1]=t):t=m[1];let{source:w,defaultDocumentNode:b,structure:j}=t;m[2]===Symbol.for("react.memo_cache_sentinel")?(n=[],m[2]=n):n=m[2],(0,a.useEffect)(ez,n),m[3]===Symbol.for("react.memo_cache_sentinel")?(u={error:null},m[3]=u):u=m[3];let[_,v]=(0,a.useState)(u),{error:P}=_;if(P){let e;return m[4]!==P?(e=(0,r.jsx)(es,{error:P}
10),m[4]=P,m[5]=e):e=m[5],e}let z=w||I.name;return m[6]===Symbol.for("react.memo_cache_sentinel")?(p=(0,r.jsx)(ey,{onPaneChange:o.aR}),c=(0,r.jsx)(ei,{}),m[6]=p,m[7]=c):(p=m[6],c=m[7]),m[8]!==b||m[9]!==j?(f=(0,r.jsxs)(d.b9,{defaultDocumentNode:b,structure:j,children:[p,c]}),m[8]=b,m[9]=j,m[10]=f):f=m[10],m[11]!==z||m[12]!==f?(h=(0,r.jsx)(s.SV,{onCatch:v,children:(0,r.jsx)(l.cWh,{name:z,children:f})}),m[11]=z,m[12]=f,m[13]=h):h=m[13],h}function ez(){return(0,o.aR)([]),eS}function eS(){return(0,o.aR)([])}}}]);
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.