1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1574],{1574:(e,t,n)=>{n.r(t),n.d(t,{default:()=>eS});var r=n(95155),i=n(45054),a=n(12115),l=n(36126),s=n(29755),o=n(6509),d=n(49611),u=n(31561),c=n(32150),p=n(92036),h=n(71317),f=n(26125),m=n(13652),x=n(72430),y=n(87659),g=n(37354),j=n(24341),w=n(55824),I=n(54110),P=n(31190),b=n(25500),v=n(64482),_=n(42894),S=n(36625),k=n(8416),E=n(40869),L=n(34703),z=n(64775),N=n(3818),$=n(65285),T=n(66463),A=n(41436),C=n(41413),O=n(27959);let D=[];function M(e){let t,n,a,l,s,c,p,h,f,m,x,y,g,j,w,I;let P=(0,i.c)(60),{children:b,flatIndex:v,index:_,params:S,payload:k,siblingIndex:E}=e,{navigate:L,navigateIntent:z,resolvePathFromState:N}=(0,d.rd)(),$=(0,d.ks)(),{panes:T,expand:A}=(0,o.usePaneLayout)();t=$?.panes||D,n=T?.[T.length-2];let M=_-1;P[0]!==M||P[1]!==t||P[2]!==$||P[3]!==E?(a=e=>{let n=t[M]||[],r=n[E],i=e(n,r),a=[...t.slice(0,M),i,...t.slice(M+1)];return{...$||{},panes:a}},P[0]=M,P[1]=t,P[2]=$,P[3]=E,P[4]=a):a=P[4];let R=a;P[5]!==R||P[6]!==L?(l=e=>{let t=R(e);return setTimeout(()=>L(t),0),t},P[5]=R,P[6]=L,P[7]=l):l=P[7];let Y=l;P[8]!==R||P[9]!==N||P[10]!==E?(s=e=>N(R((t,n)=>[...t.slice(0,E),{...n,params:e},...t.slice(E+1)])),P[8]=R,P[9]=N,P[10]=E,P[11]=s):s=P[11];let H=s;P[12]!==Y||P[13]!==E?(c=e=>{Y((t,n)=>[...t.slice(0,E),{...n,payload:e},...t.slice(E+1)])},P[12]=Y,P[13]=E,P[14]=c):c=P[14];let G=c;P[15]!==Y||P[16]!==E?(p=e=>{Y((t,n)=>[...t.slice(0,E),{...n,params:e},...t.slice(E+1)])},P[15]=Y,P[16]=E,P[17]=p):p=P[17];let J=p;P[18]!==M||P[19]!==L||P[20]!==t?(h=e=>{let{id:n,parentRefPath:r,type:i,template:a}=e;L({panes:[...t.slice(0,M+1),[{id:n,params:{template:a.id,parentRefPath:(0,C.dI)(r),type:i},payload:a.params}]]})},P[18]=M,P[19]=L,P[20]=t,P[21]=h):h=P[21];let Z=h,F=!!t[M]&&t[M].length>1,K=t[M]?t[M].length:0,W=v?o.BackLink:void 0;return P[22]!==Y?(m=e=>{let t=void 0===e?{}:e;Y(()=>[{id:t.id||"",payload:t.payload,params:t.params||{}}])},x=()=>{Y(B)},P[22]=Y,P[23]=m,P[24]=x):(m=P[23],x=P[24]),P[25]!==A||P[26]!==M||P[27]!==n||P[28]!==L||P[29]!==t?(y=e=>{(void 0===e||e)&&n&&A(n.element),L({panes:[...t.slice(0,M)]})},P[25]=A,P[26]=M,P[27]=n,P[28]=L,P[29]=t,P[30]=y):y=P[30],P[31]!==Y||P[32]!==E?(g=e=>{Y((t,n)=>{let r={...n,payload:e?.payload||n.payload,params:e?.params||n.params};return[...t.slice(0,E),r,...t.slice(E)]})},P[31]=Y,P[32]=E,P[33]=g):g=P[33],P[34]!==S||P[35]!==J?(j=e=>{let t=u(S,"view");return J(e?{...t,view:e}:t)},P[34]=S,P[35]=J,P[36]=j):j=P[36],P[37]!==H||P[38]!==v||P[39]!==M||P[40]!==Z||P[41]!==z||P[42]!==S||P[43]!==k||P[44]!==t||P[45]!==J||P[46]!==G||P[47]!==E||P[48]!==K||P[49]!==W||P[50]!==m||P[51]!==x||P[52]!==y||P[53]!==g||P[54]!==j||P[55]!==F?(w={index:v,groupIndex:M,siblingIndex:E,payload:k,params:S,hasGroupSiblings:F,groupLength:K,routerPanesState:t,ChildLink:o.ChildLink,BackLink:W,ReferenceChildLink:o.ReferenceChildLink,handleEditReference:Z,ParameterizedLink:o.ParameterizedLink,replaceCurrent:m,closeCurrent:x,closeCurrentAndAfter:y,duplicateCurrent:g,setView:j,setParams:J,setPayload:G,createPathWithParams:H,navigateIntent:z},P[37]=H,P[38]=v,P[39]=M,P[40]=Z,P[41]=z,P[42]=S,P[43]=k,P[44]=t,P[45]=J,P[46]=G,P[47]=E,P[48]=K,P[49]=W,P[50]=m,P[51]=x,P[52]=y,P[53]=g,P[54]=j,P[55]=F,P[56]=w):w=P[56],f=w,P[57]!==b||P[58]!==f?(I=(0,r.jsx)(O.l4.Provider,{value:f,children:b}),P[57]=b,P[58]=f,P[59]=I):I=P[59],I}function B(e,t){return e.length>1?e.filter(e=>e!==t):e}class R 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 Y=new WeakMap;function H(e){let t=Y.get(e);if(t)return t;let n=(0,g.Ak)();return Y.set(e,n),n}let G=e=>!!e&&"function"==typeof e?.then,J=e=>!!(0,l.u4i)(e)&&"function"==typeof e.serialize,Z=e=>(t,n,r)=>{try{return e(t,n,r)}catch(e){throw e instanceof R?e:new R({message:"string"==typeof e?.message?e.message:"",context:n,cause:e})}},F=e=>(...t)=>e(...t).pipe((0,j.H)(1),(0,w.B)());function K(e){let t=Z(F(e((e,n,r)=>{if(!e)throw new R({message:"Pane returned no child",context:n,helpId:"structure-item-returned-no-child"});return G(e)||(0,c.A)(e)?(0,p.H)(e).pipe((0,I.n)(e=>t(e,n,r))):J(e)?t(e.serialize(n),n,r):"function"==typeof e?t(e(n.id,n),n,r):(0,h.of)(e)})));return t}let W=new WeakMap;function q(e,t){let n=W.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),W.set(e,n),i}async function V(e){let t=new Map,n=K(e=>(n,r,i)=>{let a=n&&`${H(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}
1),r=[[{id:`__edit__${e.params.id}`,params:{...u(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:c}){if(!d)return[];let{id:p,type:h,...m}=a,x=await (0,f._)(n(d,{id:e,splitIndex:0,parent:l,path:s,index:t,params:{},payload:void 0,structureContext:c},t));return"document"===x.type&&x.id===p?[{panes:[...s.slice(0,s.length-1).map(e=>[{id:e}]),[{id:p,params:m,payload:o}]],depthIndex:s.length,levelIndex:u}]:x.canHandleIntent?.(r,a,{pane:x,index:t})||"documentList"===x.type&&x.schemaTypeName===h&&"_type == $type"===x.options.filter?[{panes:[...s.map(e=>[{id:e}]),[{id:a.id,params:m,payload:o}]],depthIndex:s.length,levelIndex:u}]:"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?q(x,"child"):x.child,levelIndex:n,structureContext:c})))).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()},Q=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?H(e.paneNode):null};return`metaHash(${JSON.stringify(t)})`};function U(e){return e?.panes||[]}function ee(){return new y.m(1)}function et(e){let t=e.reduce(er,[]),n=t.length,r=e.map(r=>{let{groupIndex:i,flatIndex:a,siblingIndex:l,routerPaneSibling:s,path:d}=r,u=s.id,c=t[i+1];return{active:i===n-2,childItemId:c?.[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.LOADING_PANE:r.paneNode,params:s.params||{},path:d.join(";"),payload:s.payload,selected:a===e.length-1,siblingIndex:l}});return{paneDataItems:r,routerPanes:t,resolvedPanes:r.map(en)}}function en(e){return e.pane}function er(e,t){let n=e[t.groupIndex]||[];return n[t.siblingIndex]=t.routerPaneSibling,e[t.groupIndex]=n,e}async function ei(e,t,n){if(t&&n)return{id:t,type:n};if(!t&&n)return{id:(0,E.A)(),type:n};if(t&&!n){let n=await (0,f._)(e.resolveTypeForDocument(t));return{id:t,type:n}}throw new R({message:"Neither document `id` or `type` was provided when trying to resolve intent."})}let ea={},el=(0,a.memo)(function(){let e,t;let n=(0,i.c)(7),{navigate:r}=(0,d.rd)(),s=(0,d.ks)(es),{rootPaneNode:u,structureContext:c}=(0,o.useStructureTool)(),p=(0,l.q3J)(),[h,f]=(0,a.useState)(null);if(h)throw h;return n[0]!==p||n[1]!==s||n[2]!==r||n[3]!==u||n[4]!==c?(e=()=>{if(s){let e;let{intent:t,params:n,payload:i}=s;return e=!1,(async function(){let{id:a,type:l}=await ei(p,"string"==typeof n.id?n.id:void 0,"string"==typeof n.type?n.type:void 0);if(e)return;let s=await V({intent:t,params:{...n,id:a,type:l},payload:i,rootPaneNode:u,structureContext:c});e||r({panes:s},{replace:!0})})().catch(f),()=>{e=!0}}},t=[p,s,r,u,c],n[0]=p,n[1]=s,n[2]=r,n[3]=u,n[4]=c,n[5]=e,n[6]=t):(e=n[5],t=n[6]),(0,a.useEffect)(e,t),null});function es(e){let t="string"==typeof e.intent?e.intent:void 0;return t?{intent:t,params:(0,l.u4i)(e.params)?e.params:ea,payload:e.payload}:void 0}let eo=$.I4.span` 2 &:not(:last-child)::after { 3 content: ' â '; 4 opacity: 0.5; 5 } 6`;function ed(e){let t,n,a,d,u,c,p,h,f,m,x,y,g,j;let w=(0,i.c)(37),{error:I}=e;if(!(I instanceof R))throw I;let{cause:P}=I,{t:b}=(0,l.Bdt)(o.structureLocaleNamespace),v=P?.stack||I.stack,_=v&&!(P instanceof o.SerializeError)&&!I.message.includes("Module build failed:");w[0]!==P?(t=P instanceof o.SerializeError?P.path:[],w[0]=P,w[1]=t):t=w[1];let S=t,k=P instanceof o.SerializeError&&P.helpId||I.helpId;return w[2]!==b?(n=b("structure-error.header.text"),w[2]=b,w[3]=n):n=w[3],w[4]!==n?(a=(0,r.jsx)(N.DZ,{as:"h2",children:n}),w[4]=n,w[5]=a):a=w[5],w[6]!==S||w[7]!==b?(d=S.length>0&&(0,r.jsxs)(N.BJ,{space:2,children:[(0,r.jsx)(N.EY,{size:1,weight:"medium",children:b("structure-error.structure-path.label")}),(0,r.jsx)(N.Cy,{children:S.slice(1).map(eu)})]}),w[6]=S,w[7]=b,w[8]=d):d=w[8],w[9]!==b?(u=b("structure-error.error.label"),w[9]=b,w[10]=u):u=w[10],w[11]!==u?(c=(0,r.jsx)(N.EY,{size:1,weight:"medium",children:u}),w[11]=u,w[12]=c):c=w[12],w[13]!==I.message||w[14]!==_||w[15]!==v?(p=_?v.replace(/\(\.\.\.\)\./g,`(...) 7 .`).replace(/__WEBPACK_IMPORTED_MODULE_\d+_+/g,"").replace(/___default\./g,".").replace(RegExp(` \\(https?:\\/\\/${window.location.host}`,"g")," ("):I.message,w[13]=I.message,w[14]=_,w[15]=v,w[16]=p):p=w[16],w[17]!==p?(h=(0,r.jsx)(N.Cy,{children:p}),w[17]=p,w[18]=h):h=w[18],w[19]!==c||w[20]!==h?(f=(0,r.jsxs)(N.BJ,{marginTop:4,space:2,children:[c,h]}),w[19]=c,w[20]=h,w[21]=f):f=w[21],w[22]!==k||w[23]!==b?(m=k&&(0,r.jsx)(N.az,{marginTop:4,children:(0,r.jsx)(N.EY,{children:(0,r.jsx)("a",{href:(0,L.i)(k),rel:"noopener noreferrer",target:"_blank",children:b("structure-error.docs-link.text")})})}),w[22]=k,w[23]=b,w[24]=m):m=w[24],w[25]!==b?(x=b("structure-error.reload-button.text"),w[25]=b,w[26]=x):x=w[26],w[27]!==x?(y=(0,r.jsx)(N.az,{marginTop:4,children:(0,r.jsx)(s.$n,{text:x,icon:z.Fjq,tone:"primary",onClick:ec})}),w[27]=x,w[28]=y):y=w[28],w[29]!==m||w[30]!==y||w[31]!==d||w[32]!==f?(g=(0,r.jsxs)(N.Zp,{marginTop:4,padding:4,radius:2,overflow:"auto",shadow:1,tone:"inherit",children:[d,f,m,y]}),w[29]=m,w[30]=y,w[31]=d,w[32]=f,w[33]=g):g=w[33],w[34]!==g||w[35]!==a?(j=(0,r.jsx)(N.Zp,{height:"fill",overflow:"auto",padding:4,sizing:"border",tone:"critical",children:(0,r.jsxs)(N.mc,{children:[a,g]})}),w[34]=g,w[35]=a,w[36]=j):j=w[36],j}function eu(e,t){return(0,r.jsx)(eo,{children:e},`${e}-${t}`)}function ec(){window.location.reload()}function ep(e){let t,n,a,s,d;let u=(0,i.c)(14),{isSelected:c,pane:p,paneKey:h}=e;u[0]!==p?(t=(0,l.u4i)(p)&&p.type||null,u[0]=p,u[1]=t):t=u[1];let f=t,{t:m}=(0,l.Bdt)(o.structureLocaleNamespace);return u[2]!==m?(n=m("panes.unknown-pane-type.title"),u[2]=m,u[3]=n):n=u[3],u[4]!==n?(a=(0,r.jsx)(o.PaneHeader,{title:n}),u[4]=n,u[5]=a):a=u[5],u[6]!==m||u[7]!==f?(s=(0,r.jsx)(o.PaneContent,{children:(0,r.jsx)(N.az,{padding:4,children:"string"==typeof f?(0,r.jsx)(N.EY,{as:"p",muted:!0,children:(0,r.jsx)(l.HTc,{t:m,i18nKey:"panes.unknown-pane-type.unknown-type.text",values:{type:f}})}):(0,r.jsx)(N.EY,{as:"p",muted:!0,children:(0,r.jsx)(l.HTc,{t:m,i18nKey:"panes.unknown-pane-type.missing-type.text"})})})}),u[6]=m,u[7]=f,u[8]=s):s=u[8],u[9]!==c||u[10]!==h||u[11]!==a||u[12]!==s?(d=(0,r.jsxs)(o.Pane,{id:h,selected:c,children:[a,s]}),u[9]=c,u[10]=h,u[11]=a,u[12]=s,u[13]=d):d=u[13],d}let eh={component:(0,a.lazy)(()=>n.e(4099).then(n.bind(n,44099))),document:(0,a.lazy)(()=>Promise.resolve().then(n.bind(n,6509)).then(function(e){return e.pane})),documentList:(0,a.lazy)(()=>Promise.resolve().then(n.bind(n,6509)).then(function(e){return e.pane$1})),list:(0,a.lazy)(()=>n.e(3281).then(n.bind(n,53281)))},ef=(0,a.memo)(function(e){let t,n,l,s;let d=(0,i.c)(23),{active:u,childItemId:c,groupIndex:p,index:h,itemId:f,pane:m,paneKey:x,params:y,payload:g,path:j,selected:w,siblingIndex:I}=e,P=eh[m.type]||ep;d[0]!==x||d[1]!==j||d[2]!==w?(t=(0,r.jsx)(o.LoadingPane,{paneKey:x,path:j,selected:w}),d[0]=x,d[1]=j,d[2]=w,d[3]=t):t=d[3];let b=c||"";return d[4]!==P||d[5]!==u||d[6]!==h||d[7]!==f||d[8]!==m||d[9]!==x||d[10]!==w||d[11]!==b?(n=(0,r.jsx)(P,{childItemId:b,index:h,itemId:f,isActive:u,isSelected:w,paneKey:x,pane:m}),d[4]=P,d[5]=u,d[6]=h,d[7]=f,d[8]=m,d[9]=x,d[10]=w,d[11]=b,d[12]=n):n=d[12],d[13]!==t||d[14]!==n?(l=(0,r.jsx)(a.Suspense,{fallback:t,children:n}),d[13]=t,d[14]=n,d[15]=l):l=d[15],d[16]!==p||d[17]!==h||d[18]!==y||d[19]!==g||d[20]!==I||d[21]!==l?(s=(0,r.jsx)(M,{flatIndex:h,index:p,params:y,payload:g,siblingIndex:I,children:l}),d[16]=p,d[17]=h,d[18]=y,d[19]=g,d[20]=I,d[21]=l,d[22]=s):s=d[22],s},({params:e={},payload:t=null,...n},{params:r={},payload:i=null,...a})=>{if(!A(e,r)||!A(t,i))return!1;for(let e of new Set([...Object.keys(n),...Object.keys(a)]))if(n[e]!==a[e])return!1;return!0});function em(){let e,t,n,a,s,d,u,c;let p=(0,i.c)(17),{t:h}=(0,l.Bdt)(o.structureLocaleNamespace);return p[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(N.az,{children:(0,r.jsx)(N.EY,{size:1,children:(0,r.jsx)(z.sAQ,{})})}),p[0]=e):e=p[0],p[1]!==h?(t=h("no-document-types-screen.title"),p[1]=h,p[2]=t):t=p[2],p[3]!==t?(n=(0,r.jsx)(N.EY,{as:"h1",size:1,weight:"medium",children:t}),p[3]=t,p[4]=n):n=p[4],p[5]!==h?(a=h("no-document-types-screen.subtitle"),p[5]=h,p[6]=a):a=p[6],p[7]!==a?(s=(0,r.jsx)(N.EY,{as:"p",muted:!0,size:1,children:a}),p[7]=a,p[8]=s):s=p[8],p[9]!==h?(d=h("no-document-types-screen.link-text"),p[9]=h,p[10]=d):d=p[10],p[11]!==d?(u=(0,r.jsx)(N.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:d})}),p[11]=d,p[12]=u):u=p[12],p[13]!==n||p[14]!==s||p[15]!==u?(c=(0,r.jsx)(N.Zp,{height:"fill",children:(0,r.jsx)(N.so,{align:"center",height:"fill",justify:"center",padding:4,sizing:"border",children:(0,r.jsx)(N.mc,{width:0,children:(0,r.jsx)(N.Zp,{padding:4,radius:2,shadow:1,tone:"caution",children:(0,r.jsxs)(N.so,{children:[e,(0,r.jsxs)(N.BJ,{flex:1,marginLeft:3,space:3,children:[n,s,u]})]})})})})}),p[13]=n,p[14]=s,p[15]=u,p[16]=c):c=p[16],c}let ex=e=>{let t,n;
7let r=(0,i.c)(7),{documentId:s,documentType:d}=e,u=(0,l.zX2)(s,d),c=(0,l.pDY)(),{t:p}=(0,l.Bdt)(o.structureLocaleNamespace),h=!u?.published&&!u?.draft,f=u?.draft||u?.published,m=c.get(d),{value:x,isLoading:y}=(0,l.MOl)({enabled:!0,schemaType:m,value:f}),g=h?p("browser-document-title.new-document",{schemaType:m?.title||m?.name}):x?.title||p("browser-document-title.untitled-document"),j=u.ready&&!y,w=ej(g);return r[0]!==w||r[1]!==j?(t=()=>{j&&(document.title=w)},r[0]=w,r[1]=j,r[2]=t):t=r[2],r[3]!==g||r[4]!==w||r[5]!==j?(n=[g,j,w],r[3]=g,r[4]=w,r[5]=j,r[6]=n):n=r[6],(0,a.useEffect)(t,n),null},ey=e=>{let t,n;let r=(0,i.c)(5),{title:l}=e,s=ej(l);return r[0]!==s?(t=()=>{document.title=s},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},eg=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.LOADING_PANE){let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(ey,{}),n[0]=e):e=n[0],e}if(function(e){return e!==o.LOADING_PANE&&"document"===e.type}(l)){let e;if(l?.title){let e;return n[1]!==l.title?(e=(0,r.jsx)(ey,{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)(ex,{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)(ey,{title:s}),n[6]=s,n[7]=t):t=n[7],t};function ej(e){let t;let n=(0,i.c)(3),r=(0,o.useStructureTool)().structureContext.title;return n[0]!==e||n[1]!==r?(t=[e,r].filter(ew),n[0]=e,n[1]=r,n[2]=t):t=n[2],t.join(" | ")}function ew(e){return e}let eI=(0,$.I4)(o.PaneLayout)` 8 min-height: 100%; 9 min-width: 320px; 10`,eP=(0,T.v_)("mod+s"),eb=(0,a.memo)(function(e){let t,n,s,u,c,p,f,y,g,j,w,E;let z=(0,i.c)(31),{onPaneChange:$}=e,{push:T}=(0,N.dj)(),C=(0,l.pDY)(),{layoutCollapsed:O,setLayoutCollapsed:D}=(0,o.useStructureTool)(),{paneDataItems:M,resolvedPanes:B}=function(){let e,t,n;let r=(0,i.c)(6),[l,s]=(0,a.useState)();if(l)throw l;let{structureContext:u,rootPaneNode:c}=(0,o.useStructureTool)();r[0]===Symbol.for("react.memo_cache_sentinel")?(e={paneDataItems:[],resolvedPanes:[],routerPanes:[]},r[0]=e):e=r[0];let[p,f]=(0,a.useState)(e),y=function(){let e,t,n,r;let l=(0,i.c)(6),[s]=(0,a.useState)(ee);l[0]!==s?(t=s.asObservable().pipe((0,P.T)(U)),l[0]=s,l[1]=t):t=l[1],e=t;let{state:o}=(0,d.rd)();return l[2]!==o||l[3]!==s?(n=()=>{s.next(o)},r=[o,s],l[2]=o,l[3]=s,l[4]=n,l[5]=r):(n=l[4],r=l[5]),(0,a.useEffect)(n,r),e}();return r[1]!==c||r[2]!==y||r[3]!==u?(t=()=>{let e=(function({routerPanesStream:e,rootPaneNode:t,initialCacheState:n={cacheKeysByFlatIndex:[],flattenedRouterPanes:[],resolvedPaneCache:new Map,resolvePane:()=>x.t},structureContext:r}){return e.pipe((0,P.T)(e=>[[{id:"root"}],...e]),(0,P.T)(e=>e.flatMap((e,t)=>e.map((e,n)=>({routerPaneSibling:e,groupIndex:t,siblingIndex:n}))).map((e,t)=>({...e,flatIndex:t}))),(0,b.Z)([]),(0,v.N)(function(e,t){var n,r=!1;e.subscribe((0,_._)(t,function(e){var i=n;n=e,r&&t.next([i,e]),r=!0}))}),(0,P.T)(([e,t])=>{for(let n=0;n<t.length;n++)if(!A(e[n],t[n]))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),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:K(e=>(t,i,a)=>{let l=t&&`${H(t)}-contextHash(${JSON.stringify({id:i.id,parentId:parent&&H(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,I.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],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,I.n)(n=>{let c;let p={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?(c=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?q(n,"child"):n.child,flattenedRouterPanes:o,parent:n,path:u.path,resolvePane:a,structureContext:l}),(0,m.x)((0,h.of)([p,...f]),c.pipe((0,P.T)(e=>[p,...e])))):(0,h.of)([p])}))}catch(e){if(e instanceof R&&(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,L.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,k.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(Q(r)!==Q(i))return!1}return!0}))})({rootPaneNode:c,routerPanesStream:y,structureContext:u}).pipe((0,P.T)(et)).subscribe({next:e=>f(e),error:e=>s(e)});return()=>e.unsubscribe()},n=[c,y,u],r[1]=c,r[2]=y,r[3]=u,r[4]=t,r[5]=n):(t=r[4],n=r[5]),(0,a.useEffect)(t,n),p}(),Y=(0,d.ks)(ev),{sanity:G}=(0,N.DP)(),{media:J}=G,[Z,F]=(0,a.useState)(null);z[0]!==D?(t=()=>D(!0),z[0]=D,z[1]=t):t=z[1];let W=t;z[2]!==D?(n=()=>D(!1),z[2]=D,z[3]=n):n=z[3];let V=n;if(z[4]!==$||z[5]!==B?(s=()=>{B.length&&$(B)},u=[$,B],z[4]=$,z[5]=B,z[6]=s,z[7]=u):(s=z[6],u=z[7]),(0,a.useEffect)(s,u),z[8]!==T?(c=()=>{let e=e=>{eP(e)&&(e.preventDefault(),T({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)},p=[T],z[8]=T,z[9]=c,z[10]=p):(c=z[9],p=z[10]),(0,a.useEffect)(c,p),!C._original?.types.some(l.Xhw)){let e;return z[11]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(em,{}),z[11]=e):e=z[11],e}let en=Z||null,er=O?void 0:"fill",ei=J[1];return z[12]!==M?(f=M.map(e_),z[12]=M,z[13]=f):f=z[13],z[14]!==Y||z[15]!==M.length?(y=M.length<=1&&Y&&(0,r.jsx)(o.LoadingPane,{paneKey:"intent-resolver"}),z[14]=Y,z[15]=M.length,z[16]=y):y=z[16],z[17]!==W||z[18]!==V||z[19]!==ei||z[20]!==f||z[21]!==y||z[22]!==er?(g=(0,r.jsxs)(eI,{flex:1,height:er,minWidth:ei,onCollapse:W,onExpand:V,children:[f,y]}),z[17]=W,z[18]=V,z[19]=ei,z[20]=f,z[21]=y,z[22]=er,z[23]=g):g=z[23],z[24]!==B?(j=(0,r.jsx)(eg,{resolvedPanes:B}),z[24]=B,z[25]=j):j=z[25],z[26]===Symbol.for("react.memo_cache_sentinel")?(w=(0,r.jsx)("div",{"data-portal":"",ref:F}),z[26]=w):w=z[26],z[27]!==g||z[28]!==j||z[29]!==en?(E=(0,r.jsxs)(N.GD,{element:en,children:[g,j,w]}),z[27]=g,z[28]=j,z[29]=en,z[30]=E):E=z[30],E});function ev(e){return"string"==typeof e.intent}function e_(e){let{active:t,childItemId:n,groupIndex:i,itemId:l,key:s,pane:d,index:u,params:c,path:p,payload:h,siblingIndex:f,selected:m}=e;return(0,r.jsx)(a.Fragment,{children:d===o.LOADING_PANE?(0,r.jsx)(o.LoadingPane,{paneKey:s,path:p,selected:m}):(0,r.jsx)(ef,{active:t,groupIndex:i,index:u,pane:d,childItemId:n,itemId:l,paneKey:s,params:c,payload:h,path:p,selected:m,siblingIndex:f})},`${d===o.LOADING_PANE?"loading":d.type}-${u}`)}function eS(e){let t,n,d,u,c,p,h;let f=(0,i.c)(14),{tool:m}=e,{options:x}=m,{unstable_sources:y}=(0,l.hA9)(),[g]=y;f[0]!==x?(t=x||{},f[0]=x,f[1]=t):t=f[1];let{source:j,defaultDocumentNode:w,structure:I}=t;f[2]===Symbol.for("react.memo_cache_sentinel")?(n=[],f[2]=n):n=f[2],(0,a.useEffect)(ek,n),f[3]===Symbol.for("react.memo_cache_sentinel")?(d={error:null},f[3]=d):d=f[3];let[P,b]=(0,a.useState)(d),{error:v}=P;if(v){let e;return f[4]!==v?(e=(0,r.jsx)(ed,{error:v}
10),f[4]=v,f[5]=e):e=f[5],e}let _=j||g.name;return f[6]===Symbol.for("react.memo_cache_sentinel")?(u=(0,r.jsx)(eb,{onPaneChange:o.setActivePanes}),c=(0,r.jsx)(el,{}),f[6]=u,f[7]=c):(u=f[6],c=f[7]),f[8]!==w||f[9]!==I?(p=(0,r.jsxs)(o.StructureToolProvider,{defaultDocumentNode:w,structure:I,children:[u,c]}),f[8]=w,f[9]=I,f[10]=p):p=f[10],f[11]!==_||f[12]!==p?(h=(0,r.jsx)(s.tH,{onCatch:b,children:(0,r.jsx)(l.NeO,{name:_,children:p})}),f[11]=_,f[12]=p,f[13]=h):h=f[13],h}function ek(){return(0,o.setActivePanes)([]),eE}function eE(){return(0,o.setActivePanes)([])}}}]);
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.