https://adspoke.ai/_next/static/chunks/5654-2b69d2e2ab759a73.js?dpl=dpl_2ocJSfxsDhkWtgCQsb99t37YoLVs
1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5654],{1042:(e,t,r)=>{r.d(t,{default:()=>l.a});var n=r(87025),l=r.n(n)},54811:(e,t,r)=>{let n;r.d(t,{o:()=>S});let l=(e,t)=>e.origin===t&&e.data&&"object"==typeof e.data&&"payload-live-preview"===e.data.type,i=({externallyUpdatedRelationship:e,incomingData:t,populationsByCollection:r,result:n})=>(Array.isArray(t)?(n||(n=[]),n=t.map((t,l)=>(n[l]||(n[l]=t),i({externallyUpdatedRelationship:e,incomingData:t,populationsByCollection:r,result:n[l]})))):t&&"object"==typeof t?(n||(n={}),Object.keys(n).forEach(e=>{e in t||delete n[e]}),Object.keys(t).forEach(l=>{if(n[l]||(n[l]=t[l]&&"object"==typeof t[l]?Array.isArray(t[l])?[]:{}:void 0),"value"===l&&"relationTo"in t){let i=!n.value||"object"!=typeof n.value||"object"==typeof n.value&&1===Object.keys(n.value).length&&"id"in n.value,a=n&&"object"==typeof n&&n.value.id===e?.id;(i||a)&&(r[t.relationTo]||(r[t.relationTo]=[]),r[t.relationTo].push({id:t[l]&&"object"==typeof t[l]?t[l].id:t[l],accessor:"value",ref:n}))}else n[l]=i({externallyUpdatedRelationship:e,incomingData:t[l],populationsByCollection:r,result:n[l]})})):n=t,n),a=e=>{let{externallyUpdatedRelationship:t,fieldSchema:r,incomingData:n,localeChanged:l,populationsByCollection:o,result:c}=e;r.forEach(e=>{if("name"in e&&"string"==typeof e.name){let r=e.name;switch(e.type){case"array":n[r]||void 0===n[r]||c?.[r]===void 0||(c[r]=[]),Array.isArray(n[r])&&(c[r]=n[r].map((n,i)=>(c[r]||(c[r]=[]),c[r][i]||(c[r][i]={}),a({externallyUpdatedRelationship:t,fieldSchema:e.fields,incomingData:n,localeChanged:l,populationsByCollection:o,result:c[r][i]}),c[r][i])));break;case"blocks":Array.isArray(n[r])?c[r]=n[r].map((n,i)=>{let s=e.blocks[n.blockType];return c[r]||(c[r]=[]),c[r][i]&&c[r][i].id===n.id&&c[r][i].blockType===n.blockType||(c[r][i]={blockType:n.blockType}),a({externallyUpdatedRelationship:t,fieldSchema:s.fields,incomingData:n,localeChanged:l,populationsByCollection:o,result:c[r][i]}),c[r][i]}):c[r]=[];break;case"group":case"tabs":c[r]||(c[r]={}),a({externallyUpdatedRelationship:t,fieldSchema:e.fields,incomingData:n[r]||{},localeChanged:l,populationsByCollection:o,result:c[r]});break;case"relationship":case"upload":if(e.hasMany&&Array.isArray(n[r]))c[r]&&n[r].length||(c[r]=[]),n[r].forEach((n,i)=>{if(Array.isArray(e.relationTo)){c[r][i]||(c[r][i]={relationTo:n.relationTo});let e=c[r][i]?.value?.id,a=c[r][i]?.relationTo,s=n.value,d=n.relationTo,u=d===t?.entitySlug&&s===t?.id;(s!==e||d!==a||u||l)&&(o[d]||(o[d]=[]),o[d].push({id:n.value,accessor:"value",ref:c[r][i]}))}else{let a=n!==c[r][i]?.id,s=e.relationTo===t?.entitySlug&&n===t?.id;(a||s||l)&&(o[e.relationTo]||(o[e.relationTo]=[]),o[e.relationTo].push({id:n,accessor:i,ref:c[r]}))}});else if(Array.isArray(e.relationTo)){c[r]||(c[r]={relationTo:n[r]?.relationTo});let e=n[r]&&"object"==typeof n[r]&&null!==n[r],i=c[r]&&"object"==typeof c[r]&&null!==c[r],a=e?"object"==typeof n[r].value?n[r].value.id:n[r].value:"",s=i?"object"==typeof c[r].value?c[r].value.id:c[r].value:"",d=e?n[r].relationTo:"",u=i?c[r].relationTo:"",p=a!==s||d!==u,f=d===t?.entitySlug&&a===t?.id;(p||f||l)&&(a?(o[d]||(o[d]=[]),o[d].push({id:a,accessor:"value",ref:c[r]})):c[r]=null)}else{let i=n[r]&&"object"==typeof n[r]&&n[r].id||n[r],a=i!==(c[r]&&"object"==typeof c[r]&&c[r].id||c[r]),s=e.relationTo===t?.entitySlug&&i===t?.id;(a||s||l)&&(i?(o[e.relationTo]||(o[e.relationTo]=[]),o[e.relationTo].push({id:i,accessor:r,ref:c})):c[r]=null)}break;case"richText":c[r]=i({externallyUpdatedRelationship:t,incomingData:n[r],populationsByCollection:o,result:c[r]});break;default:c[r]=n[r]}}})},o=({apiPath:e,endpoint:t,serverURL:r})=>fetch(`${r}${e}/${t}`,{credentials:"include",headers:{"Content-Type":"application/json"}}),c=async e=>{let{apiRoute:t,depth:r,externallyUpdatedRelationship:l,fieldSchema:i,incomingData:c,initialData:s,locale:d,returnNumberOfRequests:u,serverURL:p}=e,f={...s},h={};return a({externallyUpdatedRelationship:l,fieldSchema:i,incomingData:c,localeChanged:n!==d,populationsByCollection:h,result:f}),await Promise.all(Object.entries(h).map(async([n,l])=>{let i,a=new Set(l.map(({id:e})=>e)),c=e.collectionPopulationRequestHandler||o;try{i=await c({apiPath:t||"/api",endpoint:encodeURI(`${n}?depth=${r}&where[id][in]=${Array.from(a).join(",")}${d?`&locale=${d}`:""}`),serverURL:p}).then(e=>e.json()),i?.docs?.length>
10&&i.docs.forEach(e=>{h[n].forEach(t=>{t.id===e.id&&(t.ref[t.accessor]=e)})})}catch(e){console.error(e)}})),n=d,{...f,...u?{_numberOfRequests:Object.keys(h).length}:{}}},s={fieldSchema:void 0,previousData:void 0},d=async e=>{let{apiRoute:t,depth:r,event:n,initialData:i,serverURL:a}=e;if(l(n,a)){let{data:e,externallyUpdatedRelationship:l,fieldSchemaJSON:o,locale:d}=n.data;if(!s?.fieldSchema&&o&&(s.fieldSchema=o),!s?.fieldSchema)return console.warn("Payload Live Preview: No `fieldSchemaJSON` was received from the parent window. Unable to merge data."),i;let u=await c({apiRoute:t,depth:r,externallyUpdatedRelationship:l,fieldSchema:s.fieldSchema,incomingData:e,initialData:s?.previousData||i,locale:d,serverURL:a});return s.previousData=u,u}return i},u=e=>{let{serverURL:t}=e;if("undefined"!=typeof window){let e=window?.opener||window?.parent;e?.postMessage({type:"payload-live-preview",ready:!0},t)}},p=e=>{let{apiRoute:t,callback:r,depth:n,initialData:l,serverURL:i}=e,a=async e=>{r(await d({apiRoute:t,depth:n,event:e,initialData:l,serverURL:i}))};return"undefined"!=typeof window&&window.addEventListener("message",a),a},f=e=>{"undefined"!=typeof window&&window.removeEventListener("message",e)};var h=r(90507);let S=e=>{let{apiRoute:t,depth:r,initialData:n,serverURL:l}=e,[i,a]=(0,h.useState)(n),[o,c]=(0,h.useState)(!0),s=(0,h.useRef)(!1),d=(0,h.useCallback)(e=>{a(e),c(!1)},[]);return(0,h.useEffect)(()=>{let e=p({apiRoute:t,callback:d,depth:r,initialData:n,serverURL:l});return s.current||(s.current=!0,u({serverURL:l})),()=>{f(e)}},[l,d,r,n,t]),{data:i,isLoading:o}}},55997:(e,t,r)=>{r.d(t,{s:()=>p});var n=r(33307),l=r(90507);let i={horizontalrule:(0,n.jsx)("hr",{})},a={linebreak:(0,n.jsx)("br",{})};var o=r(95967);let c={IS_NORMAL:0,IS_TOKEN:1,IS_SEGMENTED:2,IS_BOLD:1,IS_ITALIC:2,IS_STRIKETHROUGH:4,IS_UNDERLINE:8,IS_CODE:16,IS_SUBSCRIPT:32,IS_SUPERSCRIPT:64,IS_HIGHLIGHT:128,IS_DIRECTIONLESS:1,IS_UNMERGEABLE:2,IS_ALIGN_LEFT:1,IS_ALIGN_CENTER:2,IS_ALIGN_RIGHT:3,IS_ALIGN_JUSTIFY:4,IS_ALIGN_START:5,IS_ALIGN_END:6};c.IS_BOLD,c.IS_ITALIC,c.IS_STRIKETHROUGH,c.IS_UNDERLINE,c.IS_CODE,c.IS_SUBSCRIPT,c.IS_SUPERSCRIPT,c.IS_HIGHLIGHT;let s="Ö-ß¿ï¬-﷽ﹰ-ﻼ",d="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-ʸÌ-Öà -á¿¿ââ°-ï¬ï¸-﹯﻽-ï¿¿";RegExp("^[^"+d+"]*["+s+"]"),RegExp("^[^"+s+"]*["+d+"]"),c.IS_BOLD,c.IS_CODE,c.IS_HIGHLIGHT,c.IS_ITALIC,c.IS_STRIKETHROUGH,c.IS_SUBSCRIPT,c.IS_SUPERSCRIPT,c.IS_UNDERLINE,c.IS_DIRECTIONLESS,c.IS_UNMERGEABLE,c.IS_ALIGN_CENTER,c.IS_ALIGN_END,c.IS_ALIGN_JUSTIFY,c.IS_ALIGN_LEFT,c.IS_ALIGN_RIGHT,c.IS_ALIGN_START,c.IS_ALIGN_CENTER,c.IS_ALIGN_END,c.IS_ALIGN_JUSTIFY,c.IS_ALIGN_LEFT,c.IS_ALIGN_RIGHT,c.IS_ALIGN_START,c.IS_NORMAL,c.IS_SEGMENTED,c.IS_TOKEN,c.IS_NORMAL,c.IS_SEGMENTED,c.IS_TOKEN;let u={paragraph:({node:e,nodesToJSX:t})=>{let r=t({nodes:e.children});return r?.length?(0,n.jsx)("p",{children:r}):(0,n.jsx)("p",{children:(0,n.jsx)("br",{})})},text:({node:e})=>{let t=e.text;return e.format&c.IS_BOLD&&(t=(0,n.jsx)("strong",{children:t})),e.format&c.IS_ITALIC&&(t=(0,n.jsx)("em",{children:t})),e.format&c.IS_STRIKETHROUGH&&(t=(0,n.jsx)("span",{style:{textDecoration:"line-through"},children:t})),e.format&c.IS_UNDERLINE&&(t=(0,n.jsx)("span",{style:{textDecoration:"underline"},children:t})),e.format&c.IS_CODE&&(t=(0,n.jsx)("code",{children:t})),e.format&c.IS_SUBSCRIPT&&(t=(0,n.jsx)("sub",{children:t})),e.format&c.IS_SUPERSCRIPT&&(t=(0,n.jsx)("sup",{children:t})),t},...a,quote:({node:e,nodesToJSX:t})=>{let r=t({nodes:e.children});return(0,n.jsx)("blockquote",{children:r})},table:({node:e,nodesToJSX:t})=>{let r=t({nodes:e.children});return(0,n.jsx)("div",{className:"lexical-table-container",children:(0,n.jsx)("table",{className:"lexical-table",style:{borderCollapse:"collapse"},children:(0,n.jsx)("tbody",{children:r})})})},tablecell:({node:e,nodesToJSX:t})=>{let r=t({nodes:e.children}),l=e.headerState>0?"th":"td",i=`lexical-table-cell-header-${e.headerState}`,a={backgroundColor:e.backgroundColor||void 0,border:"1px solid #ccc",padding:"8px"},o=e.colSpan&&e.colSpan>1?e.colSpan:void 0,c=e.rowSpan&&e.rowSpan>1?e.rowSpan:void 0;return(0,n.jsx)(l,{className:`lexical-table-cell ${i}`,colSpan:o,rowSpan:c,style:a,children:r})},tablerow:({node:e,nodesToJSX:t})=>{let r=t({nodes:e.children});return(0,n.jsx)("tr",{className:"lexical-table-row",children:r})},heading:({node:e,nodesToJSX:t})=>{let r=t({nodes:e.children}),l=e.tag;return(0,n.jsx)(l,{children:r})},...i,list:({node:e,nodesToJSX:t})=>{let r=t({nodes:e.children}),l=e.tag;return(0,n.jsx)(l,{className:`list-${e?.listType}`,children:r})},listitem:({node:e,nodesToJSX:t,parent:r})=>{let l=e.children.some(e=>"list"===e.type),i=t({nodes:e.children});if(!("listType"in r)||r?.listType!=="check")return(0,n.jsx)("li",{className:`${l?"nestedListItem":""}`,style:l?{listStyleType:"none"}:void 0,value:e?.value,children:i});{let t=(0,o.A)();return(0,n.jsx)("li",{"aria-checked":e.checked?"true":"false",className:`list-item-checkbox${e.checked?" list-item-checkbox-checked":" list-item-checkbox-unchecked"}${l?" nestedListItem":""}`,role:"checkbox",style:{listStyleType:"none"},tabIndex:-1,value:e?.value,children:l?i:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("input",{checked:e.checked,id:t,readOnly:!0,t
1ype:"checkbox"}),(0,n.jsx)("label",{htmlFor:t,children:i}),(0,n.jsx)("br",{})]})})}},...(({internalDocToHref:e})=>({autolink:({node:e,nodesToJSX:t})=>{let r=t({nodes:e.children}),l=e.fields.newTab?"noopener noreferrer":void 0,i=e.fields.newTab?"_blank":void 0;return(0,n.jsx)("a",{href:e.fields.url,rel:l,target:i,children:r})},link:({node:t,nodesToJSX:r})=>{let l=r({nodes:t.children}),i=t.fields.newTab?"noopener noreferrer":void 0,a=t.fields.newTab?"_blank":void 0,o=t.fields.url??"";return"internal"===t.fields.linkType&&(e?o=e({linkNode:t}):(console.error("Lexical => JSX converter: Link converter: found internal link, but internalDocToHref is not provided"),o="#")),(0,n.jsx)("a",{href:o,rel:i,target:a,children:l})}}))({}),upload:({node:e})=>{if("object"!=typeof e.value)return null;let t=e.value,r=t.url;if(!t.mimeType.startsWith("image"))return(0,n.jsx)("a",{href:r,rel:"noopener noreferrer",children:t.filename});if(!t.sizes||!Object.keys(t.sizes).length)return(0,n.jsx)("img",{alt:t.filename,height:t.height,src:r,width:t.width});let l=[];for(let e in t.sizes){let r=t.sizes[e];if(!r||!r.width||!r.height||!r.mimeType||!r.filesize||!r.filename||!r.url)continue;let i=r?.url;l.push((0,n.jsx)("source",{media:`(max-width: ${r.width}px)`,srcSet:i,type:r.mimeType},e))}return l.push((0,n.jsx)("img",{alt:t?.filename,height:t?.height,src:r,width:t?.width},"image")),(0,n.jsx)("picture",{children:l})},tab:" "},p=({className:e,converters:t,data:r,disableContainer:i,disableIndent:a,disableTextAlign:o})=>{if(!r)return null;let c={};c=t?"function"==typeof t?t({defaultConverters:u}):t:u;let s=r&&!Array.isArray(r)&&"object"==typeof r&&"root"in r&&function({converters:e,data:t,disableIndent:r,disableTextAlign:i}){return!function(e){let t=!!e?.root?.children?.length,r=!1;if(e?.root?.children?.length===1&&e?.root?.children[0]?.type==="paragraph"){let t=e?.root?.children[0];if(t?.children&&t?.children?.length!==0){if(t?.children?.length===1){let e=t?.children[0];e?.type!=="text"||e?.text?.length||(r=!0)}}else r=!0}return!!t&&!r}(t)?(0,n.jsx)(n.Fragment,{}):function e({converters:t,disableIndent:r,disableTextAlign:i,nodes:a,parent:o}){let c=t.unknown;return a.map((a,s)=>{let d;"block"===a.type?(d=t?.blocks?.[a?.fields?.blockType])||console.error(`Lexical => JSX converter: Blocks converter: found ${a?.fields?.blockType} block, but no converter is provided`):"inlineBlock"===a.type?(d=t?.inlineBlocks?.[a?.fields?.blockType])||console.error(`Lexical => JSX converter: Inline Blocks converter: found ${a?.fields?.blockType} inline block, but no converter is provided`):d=t[a.type];try{let u;!d&&c&&(d=c),u=d?"function"==typeof d?d({childIndex:s,converters:t,node:a,nodesToJSX:n=>e({converters:n.converters??t,disableIndent:n.disableIndent??r,disableTextAlign:n.disableTextAlign??i,nodes:n.nodes,parent:n.parent??{...a,parent:o}}),parent:o}):d:(0,n.jsx)("span",{children:"unknown node"},s);let p={};if(!i&&(!Array.isArray(i)||!i?.includes(a.type))&&"format"in a&&a.format)switch(a.format){case"center":p.textAlign="center";break;case"end":case"right":p.textAlign="right";break;case"justify":p.textAlign="justify";break;case"left":break;case"start":p.textAlign="left"}if(!r&&(!Array.isArray(r)||!r?.includes(a.type))&&"indent"in a&&a.indent&&"listitem"!==a.type&&(p.paddingInlineStart=`${2*Number(a.indent)}em`),l.isValidElement(u)){if(p.textAlign||p.paddingInlineStart){let e={...p,...u?.props?.style??{}};return l.cloneElement(u,{key:s,style:e})}return l.cloneElement(u,{key:s})}return u}catch(e){return console.error("Error converting lexical node to JSX:",e,"node:",a),null}}).filter(Boolean)}({converters:e,disableIndent:r,disableTextAlign:i,nodes:t?.root?.children,parent:t?.root})}({converters:c,data:r,disableIndent:a,disableTextAlign:o});return i?(0,n.jsx)(n.Fragment,{children:s}):(0,n.jsx)("div",{className:e??"payload-richtext",children:s})}},87025:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return c},getImageProps:function(){return o}});let n=r(15371),l=r(56999),i=r(95043),a=n._(r(35909));function o(e){let{props:t}=(0,l.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let c=i.Image},95967:(e,t,r)=>{r.d(t,{A:()=>c});let n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};for(var l,i=new Uint8Array(16),a=[],o=0;o<256;++o)a.push((o+256).toString(16).slice(1));let c=function(e,t,r){if(n.randomUUID&&!t&&!e)return n.randomUUID();var o=(e=e||{}).random||(e.rng||function(){if(!l&&!(l="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return l(i)})();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){r=r||0;for(var c=0;c<16;++c)t[r+c]=o[c];return t}
1return function(e,t=0){return(a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]).toLowerCase()}(o)}}}]);
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.