PageSourceSearch

https://www.coverbase.com/_next/static/immutable/chunks/15o-fwjr0xoj0.js

js coverbase.com collected 2026-10-04 13:24:26 UTC 45,223 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,817041,569657,e=>{"use strict";var t=e.i(727448),n=e.i(992150),r=e.i(847454),i=e.i(7667),o=(0,r.g)((0,r.l)(),1),s=(0,i.createContext)(null);function a({children:e,locale:n,space:o,environment:l,debugMode:c=!1,enableInspectorMode:u=!0,enableLiveUpdates:d=!0,targetOrigin:f,experimental:p}){if(!n)throw Error('ContentfulLivePreviewProvider has to be called with a locale property (for example: `<ContentfulLivePreviewProvider locale="en-US">{children}</ContentfulLivePreviewProvider>`');r.t.init({locale:n,space:o,environment:l,debugMode:c,enableInspectorMode:u,enableLiveUpdates:d,targetOrigin:f,experimental:p});let h=(0,i.useMemo)(()=>({locale:n,space:o,environment:l,debugMode:c,enableInspectorMode:u,enableLiveUpdates:d,targetOrigin:f}),[n,o,l,c,u,d,f]);return(0,t.jsx)(s.Provider,{value:h,children:e})}e.s(["ContentfulLivePreviewProvider",0,a,"useContentfulLiveUpdates",0,function(e,t,n=!1){var a,l;let c,u,[d,f]=(0,i.useState)({data:e,version:1}),p=(0,i.useRef)(e),h=(0,i.useRef)((0,r.u)(f)),g=(0,i.useContext)(s),m="object"==typeof t?t:{locale:t,skip:n},y=(0,i.useMemo)(()=>(!g||!!g.enableLiveUpdates)&&!m.skip&&!!(Array.isArray(e)&&e.length||e&&"object"==typeof e&&Object.keys(e).length),[g,m.skip,e]);return a=()=>{if(p.current!==e&&(f({data:e,version:1}),p.current=e),y)return r.t.subscribe("edit",{data:e,locale:m.locale,query:m.query,callback:e=>{h.current(t=>({data:e,version:t.version+1}))}})},l=[e,y,m.locale,m.query],(0,i.useEffect)(a,(c=(0,i.useRef)(l),u=(0,i.useRef)(0),(0,o.default)(l,c.current)||(c.current=l,u.current+=1),(0,i.useMemo)(()=>c.current,[u.current]))),d.data}],569657),e.s(["ContentfulPreviewProvider",0,function(e){let r,i=(0,n.c)(8),{children:o,enabled:s,locale:l,space:c,environment:u,targetOrigin:d}=e,f=void 0===d?"https://app.contentful.com":d;if(!s){let e;return i[0]!==o?(e=(0,t.jsx)(t.Fragment,{children:o}),i[0]=o,i[1]=e):e=i[1],e}return i[2]!==o||i[3]!==u||i[4]!==l||i[5]!==c||i[6]!==f?(r=(0,t.jsx)(a,{locale:l,space:c,environment:u,targetOrigin:f,enableInspectorMode:!1,enableLiveUpdates:!0,debugMode:!0,children:o}),i[2]=o,i[3]=u,i[4]=l,i[5]=c,i[6]=f,i[7]=r):r=i[7],r}],817041)},837274,e=>{"use strict";var t=e.i(992150),n=e.i(847454),r=e.i(7667);function i(){fetch(`/api/revalidate?pathname=${encodeURIComponent(window.location.pathname)}`).catch(o)}function o(){}e.s(["ContentfulPreviewRefresh",0,function(e){let o,s,a=(0,t.c)(4),{data:l,enabled:c}=e;return a[0]!==l||a[1]!==c?(o=()=>{if(!c||0===(Array.isArray(l)?l:[l]).length)return;let e=n.t.subscribe("save",{callback:i});return()=>{e()}},s=[l,c],a[0]=l,a[1]=c,a[2]=o,a[3]=s):(o=a[2],s=a[3]),(0,r.useEffect)(o,s),null}],837274)},98773,e=>{"use strict";var t=e.i(727448),n=e.i(992150),r=e.i(7667),i=e.i(152236),o=e.i(393418);let s=[{key:"analytics",label:"Analytics",description:"Helps us understand traffic and improve the product."},{key:"marketing",label:"Marketing",description:"Used to measure campaigns and tailor what you see."}];function a(e){let r,o,s,a,l,c=(0,n.c)(16),{checked:u,onChange:d,label:f,disabled:p}=e,h=void 0!==p&&p;c[0]!==u||c[1]!==d?(r=()=>d(!u),c[0]=u,c[1]=d,c[2]=r):r=c[2];let g=u?"bg-blue-700":"bg-gray-300";c[3]!==g?(o=(0,i.cn)("relative inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full transition-colors",g),c[3]=g,c[4]=o):o=c[4];let m=u?"translate-x-4":"translate-x-0.5";return c[5]!==m?(s=(0,i.cn)("inline-block h-4 w-4 transform rounded-full bg-white shadow transition-transform",m),c[5]=m,c[6]=s):s=c[6],c[7]!==s?(a=(0,t.jsx)("span",{className:s}),c[7]=s,c[8]=a):a=c[8],c[9]!==u||c[10]!==h||c[11]!==f||c[12]!==r||c[13]!==o||c[14]!==a?(l=(0,t.jsx)("button",{type:"button",role:"switch","aria-checked":u,"aria-label":f,disabled:h,onClick:r,className:o,children:a}),c[9]=u,c[10]=h,c[11]=f,c[12]=r,c[13]=o,c[14]=a,c[15]=l):l=c[15],l}function l(e){return!e}function c(){}e.s(["CookieConsentBanner",0,function(){let e,u,d,f,p,h,g,m,y,v=(0,n.c)(21),{consent:b,decided:E,setConsent:_,acceptAll:C,rejectAll:w}=(0,o.useCookieConsent)(),[O,T]=(0,r.useState)(!1),[S,I]=(0,r.useState)(b),x=(0,r.useId)();v[0]!==b?(e=()=>{I(b)},u=[b],v[0]=b,v[1]=e,v[2]=u):(e=v[1],u=v[2]),(0,r.useEffect)(e,u),v[3]===Symbol.for("react.memo_cache_sentinel")?(d=()=>T(!0),f=()=>T(!1),v[3]=d,v[4]=f):(d=v[3],f=v[4]),v[5]!==C||v[6]!==S||v[7]!==x||v[8]!==O||v[9]!==w||v[10
1]!==_?(p=O?(0,t.jsx)("div",{className:"absolute right-0 bottom-full origin-bottom-right pb-2",children:(0,t.jsxs)("div",{role:"dialog","aria-labelledby":x,className:"w-[min(20rem,calc(100vw-1.5rem))] rounded-xl border border-black/10 bg-white p-4 text-gray-900 shadow-[0_8px_30px_rgba(0,0,0,0.12)]",children:[(0,t.jsx)("p",{id:x,className:"text-sm font-semibold",children:"Cookie preferences"}),(0,t.jsx)("p",{className:"mt-1 text-xs leading-relaxed text-gray-500",children:"We use cookies to run the site and, with your consent, to measure traffic and marketing. Strictly necessary cookies are always on."}),(0,t.jsxs)("div",{className:"mt-3 flex flex-col gap-3",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3 opacity-70",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs font-medium text-gray-900",children:"Necessary"}),(0,t.jsx)("p",{className:"text-[11px] leading-snug text-gray-500",children:"Required for the site to function."})]}),(0,t.jsx)(a,{checked:!0,onChange:c,label:"Necessary (always on)",disabled:!0})]}),s.map(e=>(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-xs font-medium text-gray-900",children:e.label}),(0,t.jsx)("p",{className:"text-[11px] leading-snug text-gray-500",children:e.description})]}),(0,t.jsx)(a,{checked:S[e.key],label:e.label,onChange:t=>I(n=>({...n,[e.key]:t}))})]},e.key))]}),(0,t.jsxs)("div",{className:"mt-4 flex items-center gap-2",children:[(0,t.jsx)("button",{type:"button",onClick:()=>{w(),T(!1)},className:"flex-1 cursor-pointer rounded-md border border-gray-200 px-3 py-1.5 text-xs font-medium text-gray-700 transition-colors hover:bg-gray-50",children:"Reject all"}),(0,t.jsx)("button",{type:"button",onClick:()=>{_(S),T(!1)},className:"flex-1 cursor-pointer rounded-md border border-gray-200 px-3 py-1.5 text-xs font-medium text-gray-700 transition-colors hover:bg-gray-50",children:"Save"}),(0,t.jsx)("button",{type:"button",onClick:()=>{C(),T(!1)},className:"flex-1 cursor-pointer rounded-md bg-blue-700 px-3 py-1.5 text-xs font-medium text-white transition-colors hover:bg-blue-800",children:"Accept all"})]})]})}):null,v[5]=C,v[6]=S,v[7]=x,v[8]=O,v[9]=w,v[10]=_,v[11]=p):p=v[11],v[12]===Symbol.for("react.memo_cache_sentinel")?(h=()=>T(l),v[12]=h):h=v[12];let A=!E&&"border-white/25";return v[13]!==A?(g=(0,i.cn)("flex h-[25px] cursor-pointer items-center rounded-full border border-white/10 bg-black/20 px-3 text-[10px] font-medium tracking-[0.16em] text-white/60 uppercase backdrop-blur-sm transition-colors hover:text-white/90",A),v[13]=A,v[14]=g):g=v[14],v[15]!==O||v[16]!==g?(m=(0,t.jsx)("button",{type:"button","aria-expanded":O,onClick:h,className:g,children:"Cookies"}),v[15]=O,v[16]=g,v[17]=m):m=v[17],v[18]!==p||v[19]!==m?(y=(0,t.jsxs)("div",{className:"absolute top-[calc(100svh-81px)] right-4 z-40 flex flex-col items-end md:top-[calc(100svh-121px)]",onMouseEnter:d,onMouseLeave:f,children:[p,m]}),v[18]=p,v[19]=m,v[20]=y):y=v[20],y}])},393418,e=>{"use strict";var t=e.i(727448),n=e.i(992150),r=e.i(7667);let i="cb-consent",o={analytics:!0,marketing:!0},s=(0,r.createContext)(null);e.s(["CookieConsentProvider",0,function(e){let a,l,c,u,d,f,p,h=(0,n.c)(11),{children:g}=e,[m,y]=(0,r.useState)(o),[v,b]=(0,r.useState)(!1);h[0]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{let e=function(){if("u"<typeof document)return null;let e=document.cookie.split("; ").find(e=>e.startsWith(`${i}=`));if(!e)return null;try{let t=decodeURIComponent(e.split("=").slice(1).join("=")),n=JSON.parse(t);return{analytics:!!n.analytics,marketing:!!n.marketing}}catch{return null}}();e&&(y(e),b(!0))},l=[],h[0]=a,h[1]=l):(a=h[0],l=h[1]),(0,r.useEffect)(a,l),h[2]===Symbol.for("react.memo_cache_sentinel")?(c=e=>{let t;t=encodeURIComponent(JSON.stringify(e)),document.cookie=`${i}=${t}; path=/; max-age=15552000; SameSite=Lax`,y(e),b(!0)},h[2]=c):c=h[2];let E=c;h[3]===Symbol.for("react.memo_cache_sentinel")?(u=()=>E({analytics:!0,marketing:!0}),d=()=>E({analytics:!1,marketing:!1}),h[3]=u,h[4]=d):(u=h[3],d=h[4]),h[5]!==m||h[6]!==v?(f={consent:m,decided:v,setConsent:E,acceptAll:u,rejectAll:d},h[5]=m,h[6]=v,h[7]=f):f=h[7];let _=f;return h[8]!==g||h[9]!==_?(p=(0,t.jsx)(s.Provider,{value:_,children:g}),h[8]=g,h[9]=_,h[10]=p):p=h[10],p},"useCookieConsent",0,function(){let e=(0,r.useContext)(s);
1if(!e)throw Error("useCookieConsent must be used within a CookieConsentProvider");return e}])},353337,e=>{"use strict";var t=e.i(817325),n=e.i(727448),r=e.i(7667),i=e.i(393418);let o=t.default.env.NEXT_PUBLIC_POSTHOG_KEY??"phc_rNRHQhuuLkshfY7vtxpUBUCyoq8BXjZkPUxkQJi3kZvM";e.s(["PostHogProvider",0,function({children:t}){let{consent:s}=(0,i.useCookieConsent)();return(0,r.useEffect)(()=>{if(!o)return;let t=!1;return e.A(890607).then(({default:e})=>{t||e.__loaded||e.init(o,{api_host:"/ingest",ui_host:"https://us.posthog.com",defaults:"2025-05-24",capture_exceptions:!0,person_profiles:"identified_only"})}),()=>{t=!0}},[]),(0,r.useEffect)(()=>{e.A(890607).then(({default:e})=>{e.__loaded&&(s.analytics?e.opt_in_capturing():e.opt_out_capturing())})},[s.analytics]),(0,n.jsx)(n.Fragment,{children:t})}])},847454,e=>{"use strict";let t,n;var r,i,o,s=Object.create,a=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.getPrototypeOf,d=Object.prototype.hasOwnProperty,f=(e,t,n)=>(n=null==e?{}:s(u(e)),((e,t,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var r,i=c(t),o=0,s=i.length;o<s;o++)r=i[o],d.call(e,r)||void 0===r||a(e,r,{get:(e=>t[e]).bind(null,r),enumerable:!(n=l(t,r))||n.enumerable});return e})(!t&&e&&e.__esModule&&d.call(e,"default")?n:a(n,"default",{value:e,enumerable:!0}),e)),p=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),h={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},g={0:8203,1:8204,2:8205,3:65279},m={0:String.fromCodePoint(g[0]),1:String.fromCodePoint(g[1]),2:String.fromCodePoint(g[2]),3:String.fromCodePoint(g[3])},y=[,,,,].fill(String.fromCodePoint(g[0])).join(""),v=Object.fromEntries(Object.entries(m).map(e=>[e[1],+e[0]])),b=Object.fromEntries(Object.entries(h).map(e=>e.reverse())),E=`${Object.values(h).map(e=>`\\u{${e.toString(16)}}`).join("")}`,_=RegExp(`[${E}]{4,}`,"gu");function C(e,t){return function(e,t,n="auto"){return!0===n||"auto"===n&&(!(!Number.isNaN(Number(e))||/[a-z]/i.test(e)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(e))&&Date.parse(e)||function(e){try{new URL(e,e.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}(e))?e:`${e}${function(e){let t=JSON.stringify(e),n=new TextEncoder().encode(t),r="";for(let e=0;e<n.length;e++){let t=n[e];r+=m[t>>6&3]+m[t>>4&3]+m[t>>2&3]+m[3&t]}return y+r}(t)}`}(e,t)}var w=p((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString;t.exports=function(e,t,i){if("[object Function]"!==r.call(t))throw TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var s=0;s<o;s++)t.call(i,e[s],s,e);else for(var a in e)n.call(e,a)&&t.call(i,e[a],a,e)}}),O=p((e,t)=>{var n=w();function r(e,t,n){if(3==arguments.length)return r.set(e,t,n);if(2==arguments.length)return r.get(e,t);var i=r.bind(r,e);for(var o in r)r.hasOwnProperty(o)&&(i[o]=r[o].bind(i,e));return i}t.exports=r,r.get=function(e,t){for(var n=Array.isArray(t)?t:r.parse(t),i=0;i<n.length;++i){var o=n[i];if(!("object"==typeof e&&o in e))throw Error("Invalid reference token: "+o);e=e[o]}return e},r.set=function(e,t,n){var i=Array.isArray(t)?t:r.parse(t),o=i[0];if(0===i.length)throw Error("Can not set the root object");for(var s=0;s<i.length-1;++s){var a=i[s];"string"!=typeof a&&"number"!=typeof a&&(a=String(a)),"__proto__"!==a&&"constructor"!==a&&"prototype"!==a&&("-"===a&&Array.isArray(e)&&(a=e.length),o=i[s+1],a in e||(o.match(/^(\d+|-)$/)?e[a]=[]:e[a]={}),e=e[a])}return"-"===o&&Array.isArray(e)&&(o=e.length),e[o]=n,this},r.remove=function(e,t){var n=Array.isArray(t)?t:r.parse(t),i=n[n.length-1];if(void 0===i)throw Error('Invalid JSON pointer for remove: "'+t+'"');var o=r.get(e,n.slice(0,-1));if(Array.isArray(o)){var s=+i;if(""===i&&isNaN(s))throw Error('Invalid array index: "'+i+'"');Array.prototype.splice.call(o,s,1)}else delete o[i]},r.dict=function(e,t){var n={};return r.walk(e,function(e,t){n[t]=e},t),n},r.walk=function(e,t,i){var o=[];i||=function(e){var t=Object.prototype.toString.call(e);return"[object Object]"===t||"[object Array]"===t},function e(s){n(s,function(n,s){o.push(String(s)),i(n)?e(n):t(n,r.compile(o)),o.pop()})}(e)},r.has=function(e,t){try{r.get(e,t)}catch{return!1}return!0},r.escape=function(e){return e.toString().replace(/~/g,"~0").replace(/\//g,"~1")},r.unescape=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")},r.parse=function(e){if(""===e)return[];if("/"!==e.charAt(0))throw Error("Invalid JSON pointer: "+e);return e.substring(1).split(/\//).map(r.unescape)},r.compile=function(e){return 0===e.length?"":"/"+e.map(r.escape).join("/")}})(),T=(e,t="")=>{let n=[],r=(0,O.get)(e,t);if("content"in r&&r.content)for(let i=0;i<r.content.length;i++)"text"===r.content[i].nodeType?n.push(`${t}/content/${i}/value`):n.push(...T(e,`${t}/content/${i}`));return n},S=({entityId:e,entityType:t,space:n,environment:r,field:i,locale:o,editorInterface:s,fieldType:a,targetOrigin:l,platform:c})=>{let u={origin:"contentful.com",href:`${l||"https://app.contentful.com"}/spaces/${n}/environments/${r}/${"Entry"===t?"entries":"assets"}/${e}/?focusedField=${i}
1&focusedLocale=${o}&source=vercel-content-link`,contentful:{editorInterface:s,fieldType:a}};return"vercel"===c&&delete u.contentful,u},I=e=>["builtin","sidebar-builtin","editor-builtin"].includes(e),x=e=>D.includes(e),A=["nt_experiences","nt_name","nt_description","nt_audience_id","nt_rules","nt_metadata","nt_experience_id","nt_type","nt_config","nt_audience","nt_variants"],j=A.map(e=>e.replace(/_([a-z])/g,(e,t)=>t.toUpperCase())),M=[...A,...j],N=e=>M.includes(e);function L(e){if("function"==typeof structuredClone)return structuredClone(e);try{return JSON.parse(JSON.stringify(e))}catch(t){return console.warn("Failed to clone data:",e,t),e}}var D=["singleLine","tagEditor","listInput","checkbox","richTextEditor","multipleLine"];function k(e,t,n,r,i,o,s){let a=s?t[s]:t;switch(e){case"Symbol":{let e=C(a,n);(0,O.set)(r,i,e);break}case"Text":{let e=C(a,n);(0,O.set)(r,i,e);break}case"RichText":(({pointer:e,mappings:t,data:n,hiddenStrings:r})=>{let i=t[e];if(i)for(let o of(delete t[e],T(n,e))){t[o]=i;let e=C((0,O.get)(n,o),r);(0,O.set)(n,o,e)}else for(let t of T(n,e)){let e=C((0,O.get)(n,t),r);(0,O.set)(n,t,e)}})({pointer:"",mappings:o,data:a,hiddenStrings:n});break;case"Array":{let e=a.map(e=>"string"==typeof e?C(e,n):e);(0,O.set)(r,i,e)}}}var R=(e,t,n,r,i)=>{if(!e.fields)return;let{contentSourceMaps:o}=e.sys;if(!o)return;let{mappings:s}=o;for(let o in s){let{source:a}=s[o],l=e.sys.space.sys.id,c=e.sys.environment.sys.id,u=e.sys.id,d=e.sys.type,f=t[a.fieldType],p=n[a.editorInterface];if(I(p.widgetNamespace)&&!x(p.widgetId))continue;let h=o.startsWith("/")?o:`/${o}`;if((0,O.has)(e,h)){let t=(0,O.get)(e,h);if(null===t)return;let n=h.split("/").pop();if(!n)return void console.error("Field name could not be extracted from the pointer",h);if(N(n))continue;let o=e.sys.locale;o?k(f,t,S({entityId:u,entityType:d,space:l,environment:c,field:n,locale:o,editorInterface:p,fieldType:f,targetOrigin:r,platform:i}),e,h,s):Object.keys(t).forEach(o=>{let a=S({entityId:u,entityType:d,space:l,environment:c,field:n,locale:o,editorInterface:p,fieldType:f,targetOrigin:r,platform:i});k(f,t,a,e,`${h}/${o}`,s,o)})}}},P="4.10.25",U=!1,B=e=>(...t)=>{U&&console[e](...t)},$={error:B("error"),warn:B("warn"),log:B("log")},z="live-preview-sdk",F=new Set(["AREA","BASE","BR","COL","EMBED","HR","IMG","INPUT","LINK","META","PARAM","SOURCE","TRACK","WBR"]);function G(e,t,n){let r={...t,method:e,source:z,location:window.location.href,version:P};$.log("Send message",r),n.forEach(e=>{window.top?.postMessage(r,e)})}function V(e,t=100){let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}}var Y=(t=(t,n)=>{var r,i,o,s="__lodash_hash_undefined__",a="[object Arguments]",l="[object Array]",c="[object Boolean]",u="[object Date]",d="[object Error]",f="[object Function]",p="[object Map]",h="[object Number]",g="[object Object]",m="[object Promise]",y="[object RegExp]",v="[object Set]",b="[object String]",E="[object WeakMap]",_="[object ArrayBuffer]",C="[object DataView]",w=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,T={};T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T[a]=T[l]=T[_]=T[c]=T[C]=T[u]=T[d]=T[f]=T[p]=T[h]=T[g]=T[y]=T[v]=T[b]=T[E]=!1;var S=e.g&&e.g.Object===Object&&e.g,I="object"==typeof self&&self&&self.Object===Object&&self,x=S||I||Function("return this")(),A="object"==typeof t&&t&&!t.nodeType&&t,j=A&&"object"==typeof n&&n&&!n.nodeType&&n,M=j&&j.exports===A,N=M&&S.process,L=function(){try{return N&&N.binding&&N.binding("util")}catch{}}(),D=L&&L.isTypedArray;function k(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function R(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var P=Array.prototype,U=Function.prototype,B=Object.prototype,$=x["__core-js_shared__"],z=U.toString,F=B.hasOwnProperty,G=(r=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",V=B.toString,Y=RegExp("^"+z.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),H=M?x.Buffer:void 0,J=x.Symbol,K=x.Uint8Array,q=B.propertyIsEnumerable,Z=P.splice,W=J?J.toStringTag:void 0,Q=Object.getOwnPropertySymbols,X=H?H.isBuffer:void 0,ee=(i=Object.keys,o=Object,function(e){return i(o(e))}),et=eT(x,"DataView"),en=eT(x,"Map"),er=eT(x,"Promise"),ei=eT(x,"Set"),eo=eT(x,"WeakMap"),es=eT(Object,"create"),ea=ex(et),el=ex(en),ec=ex(er),eu=ex(ei),ed=ex(eo),ef=J?J.prototype:void 0,ep=ef?ef.valueOf:void 0;function eh(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function eg(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function em(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ey(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new em;++t<n;)this.add(e[t])}function ev(e){var t=this.__data__=new eg(e);this.size=t.size}function eb(e,t){for(var n=e.length;n--;)if(eA(e[n][0],t))return n;return -1}
1function eE(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":W&&W in Object(e)?function(e){var t=F.call(e,W),n=e[W];try{e[W]=void 0;var r=!0}catch{}var i=V.call(e);return r&&(t?e[W]=n:delete e[W]),i}(e):V.call(e)}function e_(e){return eR(e)&&eE(e)==a}function eC(e,t,n,r,i,o){var s=1&n,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var u=-1,d=!0,f=2&n?new ey:void 0;for(o.set(e,t),o.set(t,e);++u<a;){var p=e[u],h=t[u];if(r)var g=s?r(h,p,u,t,e,o):r(p,h,u,e,t,o);if(void 0!==g){if(g)continue;d=!1;break}if(f){if(!function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}(t,function(e,t){if(!f.has(t)&&(p===e||i(p,e,n,r,o)))return f.push(t)})){d=!1;break}}else if(!(p===h||i(p,h,n,r,o))){d=!1;break}}return o.delete(e),o.delete(t),d}function ew(e){var t;return t=eU(e),eM(e)?t:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(t,eS(e))}function eO(e,t){var n,r=e.__data__;return("string"==(n=typeof t)||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t)?r["string"==typeof t?"string":"hash"]:r.map}function eT(e,t){var n=e?.[t];return!(!ek(n)||G&&G in n)&&(eL(n)?Y:w).test(ex(n))?n:void 0}eh.prototype.clear=function(){this.__data__=es?es(null):{},this.size=0},eh.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},eh.prototype.get=function(e){var t=this.__data__;if(es){var n=t[e];return n===s?void 0:n}return F.call(t,e)?t[e]:void 0},eh.prototype.has=function(e){var t=this.__data__;return es?void 0!==t[e]:F.call(t,e)},eh.prototype.set=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=es&&void 0===t?s:t,this},eg.prototype.clear=function(){this.__data__=[],this.size=0},eg.prototype.delete=function(e){var t=this.__data__,n=eb(t,e);return!(n<0)&&(n==t.length-1?t.pop():Z.call(t,n,1),--this.size,!0)},eg.prototype.get=function(e){var t=this.__data__,n=eb(t,e);return n<0?void 0:t[n][1]},eg.prototype.has=function(e){return eb(this.__data__,e)>-1},eg.prototype.set=function(e,t){var n=this.__data__,r=eb(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},em.prototype.clear=function(){this.size=0,this.__data__={hash:new eh,map:new(en||eg),string:new eh}},em.prototype.delete=function(e){var t=eO(this,e).delete(e);return this.size-=!!t,t},em.prototype.get=function(e){return eO(this,e).get(e)},em.prototype.has=function(e){return eO(this,e).has(e)},em.prototype.set=function(e,t){var n=eO(this,e),r=n.size;return n.set(e,t),this.size+=+(n.size!=r),this},ey.prototype.add=ey.prototype.push=function(e){return this.__data__.set(e,s),this},ey.prototype.has=function(e){return this.__data__.has(e)},ev.prototype.clear=function(){this.__data__=new eg,this.size=0},ev.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ev.prototype.get=function(e){return this.__data__.get(e)},ev.prototype.has=function(e){return this.__data__.has(e)},ev.prototype.set=function(e,t){var n=this.__data__;if(n instanceof eg){var r=n.__data__;if(!en||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new em(r)}return n.set(e,t),this.size=n.size,this};var eS=Q?function(e){return null==e?[]:function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}(Q(e=Object(e)),function(t){return q.call(e,t)})}:function(){return[]},eI=eE;function ex(e){if(null!=e){try{return z.call(e)}catch{}try{return e+""}catch{}}return""}function eA(e,t){return e===t||e!=e&&t!=t}(et&&eI(new et(new ArrayBuffer(1)))!=C||en&&eI(new en)!=p||er&&eI(er.resolve())!=m||ei&&eI(new ei)!=v||eo&&eI(new eo)!=E)&&(eI=function(e){var t=eE(e),n=t==g?e.constructor:void 0,r=n?ex(n):"";if(r)switch(r){case ea:return C;case el:return p;case ec:return m;case eu:return v;case ed:return E}return t});var ej=e_(function(){return arguments}())?e_:function(e){return eR(e)&&F.call(e,"callee")&&!q.call(e,"callee")},eM=Array.isArray,eN=X||function(){return!1};function eL(e){if(!ek(e))return!1;var t=eE(e);return t==f||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eD(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function ek(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eR(e){return"object"==typeof e&&!!e}var eP=D?function(e){return D(e)}:function(e){return eR(e)&&eD(e.length)&&!!T[eE(e)]};function eU(e){return null!=e&&eD(e.length)&&!eL(e)?function(e){var t,n=eM(e),r=!n&&ej(e),i=!n&&!r&&eN(e),o=!n&&!r&&!i&&eP(e),s=n||r||i||o,a=s?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=a.length;for(var c in e)F.call(e,c)&&!(s&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||(t=l,(t??=0x1fffffffffffff)&&("number"==typeof c||O.test(c))&&c>-1&&c%1==0&&c<t)))&&a.push(c);return a}(e):function(e){if(t=e&&e.constructor,e!==("function"==typeof t&&t.prototype||B))return ee(e);var t,n=[];for(var r in Object(e))F.call(e,r)&&"constructor"!=r&&n.push(r);return n}(e)}n.exports=function(e,t){return function e(t,n,r,i,o){return t===n||(null!=t&&null!=n&&(eR(t)||eR(n))?function(e,t,n,r,i,o){var s=eM(e),f=eM(t),m=s?l:eI(e),E=f?l:eI(t);m=m==a?g:m,E=E==a?g:E;var w=m==g,O=E==g,T=m==E;if(T&&eN(e)){if(!eN(t))return!1;s=!0,w=!1}if(T&&!w)return o||=new ev,s||eP(e)?eC(e,t,n,r,i,o):function(e,t,n,r,i,o,s){switch(n){case C:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!o(new K(e),new K(t)));case c:case u:case h:return eA(+e,+t);case d:return e.name==t.name&&e.message==t.message;case y:case b:return e==t+"";case p:var a=k;case v:var l=1&r;if(a||=R,e.size!=t.size&&!l)break;var f=s.get(e);if(f)return f==t;r|=2,s.set(e,t);var g=eC(a(e),a(t),r,i,o,s);return s.delete(e),g;case"[object Symbol]":if(ep)return ep.call(e)==ep.call(t)}return!1}(e,t,m,n,r,i,o);if(!(1&n)){var S=w&&F.call(e,"__wrapped__"),I=O&&F.call(t,"__wrapped__");
1if(S||I)return i(S?e.value():e,I?t.value():t,n,r,o||=new ev)}return!!T&&function(e,t,n,r,i,o){var s=1&n,a=ew(e),l=a.length;if(l!=ew(t).length&&!s)return!1;for(var c=l;c--;){var u=a[c];if(!(s?u in t:F.call(t,u)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var f=!0;o.set(e,t),o.set(t,e);for(var p=s;++c<l;){var h=e[u=a[c]],g=t[u];if(r)var m=s?r(g,h,u,t,e,o):r(h,g,u,e,t,o);if(!(void 0===m?h===g||i(h,g,n,r,o):m)){f=!1;break}p||="constructor"==u}if(f&&!p){var y=e.constructor,v=t.constructor;y!=v&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v)&&(f=!1)}return o.delete(e),o.delete(t),f}(e,t,n,r,i,o||=new ev)}(t,n,r,i,e,o):t!=t&&n!=n)}(e,t)}},()=>(n||(t((n={exports:{}}).exports,n),t=null),n.exports)),H=f(Y(),1),J=((r={}).FIELD_ID="data-contentful-field-id",r.ENTRY_ID="data-contentful-entry-id",r.ASSET_ID="data-contentful-asset-id",r.LOCALE="data-contentful-locale",r.SPACE="data-contentful-space",r.ENVIRONMENT="data-contentful-environment",r),K=((i={}).MOUSE_MOVE="MOUSE_MOVE",i.SCROLL_START="SCROLL_START",i.SCROLL_END="SCROLL_END",i.RESIZE_START="RESIZE_START",i.RESIZE_END="RESIZE_END",i.TAGGED_ELEMENTS="TAGGED_ELEMENTS",i.INSPECTOR_MODE_CHANGED="INSPECTOR_MODE_CHANGED",i),q={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},Z={0:8203,1:8204,2:8205,3:65279},W={0:String.fromCodePoint(Z[0]),1:String.fromCodePoint(Z[1]),2:String.fromCodePoint(Z[2]),3:String.fromCodePoint(Z[3])};[,,,,].fill(String.fromCodePoint(Z[0])).join(""),Object.fromEntries(Object.entries(W).map(e=>[e[1],+e[0]])),Object.fromEntries(Object.entries(q).map(e=>e.reverse()));var Q=`${Object.values(q).map(e=>`\\u{${e.toString(16)}}`).join("")}`,X=RegExp(`[${Q}]{4,}`,"gu");function ee(e,t){return e.href===t.href}function et({root:e=window.document,options:t}){var n,r;let i,o=[...t.ignoreManuallyTaggedElements?[]:e.querySelectorAll(`[${J.ASSET_ID}][${J.FIELD_ID}], [${J.ENTRY_ID}][${J.FIELD_ID}]`)].map(e=>({element:e,attributes:function(e,t){if(!(e&&e.nodeType===Node.ELEMENT_NODE&&!(!e.hasAttribute(J.FIELD_ID)||!e.hasAttribute(J.ENTRY_ID)&&!e.hasAttribute(J.ASSET_ID))))return null;let n={fieldId:e.getAttribute(J.FIELD_ID),locale:e.getAttribute(J.LOCALE)??t.locale,environment:e.getAttribute(J.ENVIRONMENT)??t.environment,space:e.getAttribute(J.SPACE)??t.space,manuallyTagged:!0};if(!n.fieldId)return $.warn("Element is missing field ID attribute and cannot be tagged",{id:e.getAttribute(J.ENTRY_ID)??e.getAttribute(J.ASSET_ID),sharedProps:n}),null;let r=e.getAttribute(J.ENTRY_ID);if(r)return{...n,entryId:r};let i=e.getAttribute(J.ASSET_ID);return i?{...n,assetId:i}:null}(e,t)})).filter(({attributes:e})=>null!==e),s=[];for(let{node:t,text:r}of(n="body"in e?e.body:e,i=[],"function"==typeof n.matches&&n.matches("*")&&(i=[n]),[...i,...Array.from(n.querySelectorAll("*:not(script,style,meta,title)"))].map(e=>{var t;return{node:e,text:(t=e).matches("input[type=submit], input[type=button], input[type=reset]")?t.value:t.matches("img, video")?t.alt:Array.from(t.childNodes).filter(e=>e.nodeType===Node.TEXT_NODE&&!!e.textContent).map(e=>e.textContent).join("")}}).filter(({text:e})=>!!(e&&e.match(X))))){let e=function(e){let t=e.match(_);return t?function(e,t=!1){let n=Array.from(e),r=1/0,i=-1;for(let e=0;e<n.length;++e)n[e]===y[0]&&n[e+1]===y[1]&&n[e+2]===y[2]&&n[e+3]===y[3]&&(r=Math.min(r,e),i=Math.max(i,e));if(-1===i)return function(e,t){let n=[];for(let t=.5*e.length;t--;){let r=`${b[e[2*t].codePointAt(0)]}${b[e[2*t+1].codePointAt(0)]}`;n.unshift(String.fromCharCode(parseInt(r,16)))}let r=[],i=[n.join("")],o=10;for(;i.length;){let e=i.shift();try{if(r.push(JSON.parse(e)),t)break}catch(n){if(!o--)throw n;let t=+n.message.match(/\sposition\s(\d+)$/)?.[1];if(!t)throw n;i.unshift(e.substring(0,t),e.substring(t))}}return r}(n,t);for(let e=r;e<=i;++e)if(!((n.length-e)%4))try{let r=n.slice(e+4),i=new Uint8Array(r.length/4);for(let e=0;e<i.length;e++)i[e]=v[r[4*e]]<<6|v[r[4*e+1]]<<4|v[r[4*e+2]]<<2|v[r[4*e+3]];let o=new TextDecoder().decode(i);if(t){let e=o.indexOf("\0");return -1===e&&(e=o.length),[JSON.parse(o.slice(0,e))]}
1return o.split("\0").filter(Boolean).map(e=>JSON.parse(e))}catch{}return[]}(t[0],!0)[0]:void 0}(r);if(!e||!e.origin.includes("contentful.com")){$.warn("Element has missing or invalid ContentSourceMap, please check if you have correctly enabled ContentSourceMaps and that the element's data originates from Contentful",{node:t,sourceMap:e});continue}if(!(function(e,t){for(let n of t)if(n.element===e||n.element.contains(e))return!0;return!1}(t,o)||s.some(n=>n.element.contains(t)&&ee(n.sourceMap,e)))){if(t.matches("img")){let n=t.closest("figure")||t.closest("picture")||t;s.push({element:n,sourceMap:e});continue}s.push({element:t,sourceMap:e})}}let a=s.filter((e,t)=>s.findIndex(t=>!(!ee(e.sourceMap,t.sourceMap)||e.element!==t.element))===t);for(let{element:e,sourceMap:t}of a){let n=null;if(t.href){let r=er(t.href);if(!r)continue;if("Asset"===r.entityType)n={fieldId:r.fieldId,locale:r.locale,space:r.space,environment:r.environment,assetId:r.entityId};else if("Entry"===r.entityType)n={fieldId:r.fieldId,locale:r.locale,space:r.space,environment:r.environment,entryId:r.entityId};else{$.warn("Unknown entityType",{element:e,sourceMap:t});continue}}else{if(t.contentful&&(r=t.contentful)&&"string"==typeof r.entity&&"string"==typeof r.field&&"string"==typeof r.locale&&"string"==typeof r.space&&"string"==typeof r.environment&&("Asset"===r.entityType||"Entry"===r.entityType)){let r=t.contentful;if(!r.entity||!r.field||!r.locale||!r.space||!r.environment){$.warn("Element has missing information in their ContentSourceMap, please check if you have restricted the platform for the encoding. (Missing parameters in `contentful`)",{element:e,sourceMap:t});continue}let i={fieldId:r.field,locale:r.locale,space:r.space,environment:r.environment};if("Asset"===r.entityType)i.assetId=r.entity,n=i;else if("Entry"===r.entityType)i.entryId=r.entity,n=i;else{$.warn("Unknown entityType in contentful data",{element:e,sourceMap:t});continue}}else{$.warn("Element has neither href nor contentful data in their ContentSourceMap, unable to extract attributes.",{element:e,sourceMap:t});continue}}o.push({element:e,attributes:n})}let l=o.filter(({attributes:e})=>e?.manuallyTagged===!1||!e?.manuallyTagged).length;return{taggedElements:o,manuallyTaggedCount:o.length-l,automaticallyTaggedCount:l,autoTaggedElements:a}}function en({options:e}){return[...new Set(et({options:e}).taggedElements.map(e=>e.attributes&&"entryId"in e.attributes?e.attributes.entryId:null).filter(Boolean))]}function er(e){try{let t=new URL(e),n=t.searchParams.get("focusedField"),r=t.searchParams.get("focusedLocale"),i=t.pathname.split("/").filter(Boolean),o=i.indexOf("spaces"),s=i.indexOf("environments"),a=-1===o?void 0:i[o+1],l=-1===s?void 0:i[s+1],c,u,d=i.indexOf("entries"),f=i.indexOf("assets");return -1===d?-1!==f&&(c="Asset",u=i[f+1]):(c="Entry",u=i[d+1]),c&&u?n?r?a&&l?{entityId:u,entityType:c,fieldId:n,locale:r,space:a,environment:l}:(console.warn("Missing space or environment in href path",{href:e}),null):(console.warn("Missing focusedLocale query parameter in href",{href:e}),null):(console.warn("Missing focusedField query parameter in href",{href:e}),null):(console.warn("Unable to determine entityType or entityId from href",{href:e}),null)}catch(t){return console.warn("Invalid href URL",{href:e,error:t}),null}}var ei=class{options;delay=300;isScrolling=!1;scrollTimeout;isResizing=!1;resizeTimeout;hoveredElement;taggedElements=[];manuallyTaggedCount=0;automaticallyTaggedCount=0;releaseId;intersectionObserver;observersCB=[];cleanupCB=[];constructor(e){this.options=e,this.intersectionObserver=new IntersectionObserver(e=>{let t=this.taggedElements;for(let n of e)if(n.isIntersecting)for(let e of t)e.element===n.target&&(e.coordinates=n.intersectionRect,e.isVisible=n.target.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}));this.taggedElements=t,this.sendTaggedElements()},{threshold:.15})}init=()=>{this.cleanupCB=[this.addScrollListener(),this.addMutationListener(document.body),this.addResizeListener(),this.addHoverListener()],this.updateElements()};cleanup=()=>
1{this.observersCB.forEach(e=>e()),this.cleanupCB.forEach(e=>e())};receiveMessage=e=>{if(e.method===K.INSPECTOR_MODE_CHANGED){let{isInspectorActive:t,releaseId:n}=e;this.releaseId=n,t?this.init():this.cleanup()}};observe=e=>{this.intersectionObserver.observe(e);let t=this.addMutationListener(e);this.observersCB.push(t,()=>this.intersectionObserver.unobserve(e))};addScrollListener=()=>{let{targetOrigin:e}=this.options,t=()=>{this.isScrolling||(this.isScrolling=!0,G(K.SCROLL_START,{},e)),this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{this.isScrolling=!1,G(K.SCROLL_END,{},e),this.updateElements()},this.delay)},n={capture:!0,passive:!0};return window.addEventListener("scroll",t,n),()=>window.removeEventListener("scroll",t,n)};addMutationListener=e=>{let t=new MutationObserver(()=>{this.updateElements()});return t.observe(e,{characterData:!0,attributes:!0,attributeFilter:[J.ENTRY_ID,J.FIELD_ID,J.LOCALE,J.SPACE,J.ENVIRONMENT,"class","style"],childList:!0,subtree:!0}),()=>t.disconnect()};addResizeListener=()=>{let{targetOrigin:e}=this.options,t=new ResizeObserver(()=>{this.isResizing||(this.isResizing=!0,G(K.RESIZE_START,{},e)),this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.isResizing=!1,G(K.RESIZE_END,{},e),this.updateElements()},this.delay)});return t.observe(document.body),()=>t.disconnect()};addHoverListener=()=>{let e=V(e=>{let t;for(let n of e){let e=n;if("BODY"===e.nodeName)break;let r=this.taggedElements.find(t=>t.element===e);if(r){t=r;break}}this.hoveredElement=t?.element,this.updateElements()},this.delay),t=t=>{e(t.composedPath())};return window.addEventListener("mouseover",t,{passive:!0}),()=>window.removeEventListener("mouseover",t)};sendTaggedElements=()=>{G(K.TAGGED_ELEMENTS,{elements:this.taggedElements.map(e=>({coordinates:e.coordinates,isVisible:!!e.isVisible,attributes:e.attributes,isHovered:this.hoveredElement===e.element,isCoveredByOtherElement:!!e.isCoveredByOtherElement,snapshot:F.has(e.element.tagName.toUpperCase())?{[e.element.tagName.toLowerCase()]:Array.from(e.element.attributes).map(e=>`${e.name}="${e.value}"`).join(" ")}:{[e.element.tagName.toLowerCase()]:e.element.innerHTML}})),automaticallyTaggedCount:this.automaticallyTaggedCount,manuallyTaggedCount:this.manuallyTaggedCount,...void 0!==this.releaseId&&{releaseId:this.releaseId}},this.options.targetOrigin)};updateElements=()=>{let{taggedElements:e,manuallyTaggedCount:t,automaticallyTaggedCount:n}=et({options:this.options}),r=((e,t=window.document)=>((e,t=window.document)=>e.map(e=>({...e,isVisible:e.element.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}),isCoveredByOtherElement:((e,t,n=window.document)=>{let{top:r,right:i,bottom:o,left:s}=t,a=n.elementFromPoint(s+1,r+1),l=n.elementFromPoint(i-1,r+1),c=n.elementFromPoint(s+1,o-1),u=n.elementFromPoint(i-1,o-1),d=t=>!!t&&(e===t||e.contains(t));return[d(a),d(l),d(c),d(u)].filter(Boolean).length<2})(e.element,e.coordinates,t)})))(e.map(({element:e,attributes:t})=>({element:e,coordinates:e.getBoundingClientRect(),attributes:t})),t))(e);(0,H.default)(r,this.taggedElements)||(this.observersCB.forEach(e=>e()),this.observersCB=[],this.taggedElements=r,e.forEach(({element:e})=>this.observe(e)),this.manuallyTaggedCount=t,this.automaticallyTaggedCount=n)}},{parse:eo,stringify:es}=JSON,{keys:ea}=Object,el=String,ec=(e,t)=>t,eu=(e,t,n)=>{let r=el(t.push(n)-1);return e.set(n,r),r},ed=((o=ed||{}).CONNECTED="CONNECTED",o.DISCONNECTED="DISCONNECTED",o.ERROR="ERROR",o.TAGGED_FIELD_CLICKED="TAGGED_FIELD_CLICKED",o.URL_CHANGED="URL_CHANGED",o.SUBSCRIBED="SUBSCRIBED",o.UNSUBSCRIBED="UNSUBSCRIBED",o.ENTRY_UPDATED="ENTRY_UPDATED",o.ENTRY_SAVED="ENTRY_SAVED",o.DEBUG_MODE_ENABLED="DEBUG_MODE_ENABLED",o);function ef(e,t){G("TAGGED_FIELD_CLICKED",{action:"TAGGED_FIELD_CLICKED",...e},t)}function ep(e,t){G("TAGGED_FIELD_CLICKED",{action:"TAGGED_FIELD_CLICKED",...e},t)}var eh=class{subscriptions=new Map;defaultLocale;sendMessage;constructor({locale:e,targetOrigin:t}){this.defaultLocale=e,this.sendMessage=(e,n)=>G(e,n,t)}async receiveMessage(e){if(e.method===ed.ENTRY_UPDATED){let{data:t,subscriptionId:n}=e,r=this.subscriptions.get(n);r?(r.callback(t),r.data=t,this.subscriptions.set(n,r)):$.error("Received an update for an unknown subscription",{subscriptionId:n,data:t,subscriptions:this.subscriptions})}}subscribe(e){let t=`${performance.now()}-${Math.random().toString(36).slice(2)}`,n=e.locale??this.defaultLocale;this.subscriptions.set(t,{...e});let r={locale:n,event:"edit",id:t,config:(e=>{let t=new Map,n=[],r=[],i=+eu(t,n,ec.call({"":e},"",e)),o=!i;for(;i<n.length;)o=!0,r[i]=es(n[i++],s,void 0);return"["+r.join(",")+"]";function s(e,r){if(o)return o=!o,r;let i=ec.call(this,e,r);switch(typeof i){case"object":if(null===i)break;case"string":return t.get(i)||eu(t,n,i)}return i}})(e)};return this.sendMessage(ed.SUBSCRIBED,r),()=>{this.sendMessage(ed.UNSUBSCRIBED,r),this.subscriptions.delete(t)}}},eg=class{locale;options;inspectorModeEnabled;subscription;constructor({locale:e,options:t,inspectorModeEnabled:n}){this.locale=e,this.options=t,this.inspectorModeEnabled=n}subscribe(e){return this.subscription&&$.log("There is already a subscription for the save event, the existing one will be replaced."),this.subscription=e,()=>{this.subscription=void 0}}receiveMessage(e){if(e.method===ed.ENTRY_SAVED&&this.subscription){let{entity:t}=e;this.inspectorModeEnabled?en({options:this.options}).includes(t.sys.id)&&this.subscription(t):this.subscription(t)}}},em=["https://app.contentful.com","https://app.eu.contentful.com","http://localhost:3001"],ey=class e{static initialized=!1;static inspectorMode=null;static liveUpdates=null;static saveEvent=null;static inspectorModeEnabled=!0;static liveUpdatesEnabled=!0;static locale;static space;static environment;static sendMessage;static targetOrigin;static init(t){if("object"!=typeof t||!t?.locale)throw Error("Init function has to be called with a locale configuration (for example: `ContentfulLivePreview.init({ locale: 'en-US'})`)");let{debugMode:n,enableInspectorMode:r,enableLiveUpdates:i,locale:o,environment:s,space:a,targetOrigin:l}=t;if("u">typeof window){if(!function(){try{return window.top?.location.href!==window.location.href}catch{return!0}}())return this.liveUpdatesEnabled=!1,Promise.resolve(null);if(n&&(U=n),"boolean"==typeof r&&(this.inspectorModeEnabled=r),"boolean"==typeof i&&(this.liveUpdatesEnabled=i),this.locale=o,this.space=a,this.environment=s,this.initTargetOrigin(l),this.initialized)return $.log("You have already initialized the Live Preview SDK."),Promise.resolve(e.inspectorMode);this.inspectorModeEnabled&&(this.inspectorMode=new ei({locale:o,space:a,environment:s,targetOrigin:this.targetOrigin,ignoreManuallyTaggedElements:t.experimental?.ignoreManuallyTaggedElements})),this.liveUpdatesEnabled&&(this.liveUpdates=new eh({locale:o,targetOrigin:this.targetOrigin}
1),this.saveEvent=new eg({locale:o,options:{locale:this.locale,space:this.space,environment:this.environment,targetOrigin:this.targetOrigin},inspectorModeEnabled:this.inspectorModeEnabled})),window.addEventListener("message",e=>{if("object"==typeof e.data&&e.data&&"source"in e.data&&"live-preview-editor"===e.data.source){if($.log("Received message",e.data),e.data.method===ed.DEBUG_MODE_ENABLED)return void(U=!0);this.inspectorModeEnabled&&this.inspectorMode?.receiveMessage(e.data),this.liveUpdatesEnabled&&(this.liveUpdates?.receiveMessage(e.data),this.saveEvent?.receiveMessage(e.data))}}),function(e,t=500){let n=window.location.href,r=setInterval(()=>{let t=window.location.href;t!==n&&(n=t,e(t))},t)}(()=>{G(ed.URL_CHANGED,{action:ed.URL_CHANGED,taggedElementCount:document.querySelectorAll(`[${J.ENTRY_ID}]`).length},this.targetOrigin)});let{taggedElements:c,manuallyTaggedCount:u,automaticallyTaggedCount:d}=this.inspectorModeEnabled?et({options:{locale:this.locale,space:this.space,environment:this.environment}}):{taggedElements:[],manuallyTaggedCount:0,automaticallyTaggedCount:0},f=c.length;return G(ed.CONNECTED,{action:ed.CONNECTED,connected:!0,tags:f,taggedElementCount:f,locale:this.locale,isInspectorEnabled:this.inspectorModeEnabled,isLiveUpdatesEnabled:this.liveUpdatesEnabled,manuallyTaggedElementCount:u,automaticallyTaggedElementCount:d,hideCoveredElementOutlines:t.experimental?.hideCoveredElementOutlines,version:P},this.targetOrigin),this.initialized=!0,Promise.resolve(e.inspectorMode)}}static initTargetOrigin(e){if(e)this.targetOrigin=Array.isArray(e)?e:[e];else{let e=window.location.ancestorOrigins,t=e?em.find(t=>e.contains(t)):em.find(e=>document.referrer.includes(e));if(!t)throw Error("The current origin is not supported. Please provide a targetOrigin in the live preview configuration.");this.targetOrigin=[t]}}static subscribe(e,t){if(!this.liveUpdatesEnabled)return()=>{};let n="string"==typeof e?e:"edit",r="object"==typeof e?e:t;if("save"===n){if(!this.saveEvent)throw Error("Save event is not initialized, please call `ContentfulLivePreview.init()` first.");return this.saveEvent.subscribe(r.callback)}if(!this.liveUpdates)throw Error("Live updates are not initialized, please call `ContentfulLivePreview.init()` first.");return this.liveUpdates.subscribe(r)}static getProps(e){let{fieldId:t,locale:n,environment:r,space:i}=e;if(!this.inspectorModeEnabled)return null;if(t){let o={...n?{[J.LOCALE]:n}:{},...r?{[J.ENVIRONMENT]:r}:{},...i?{[J.SPACE]:i}:{},[J.FIELD_ID]:t};if(n&&(o[J.LOCALE]=n),void 0!==e.assetId)return{...o,[J.ASSET_ID]:e.assetId};if(void 0!==e.entryId)return{...o,[J.ENTRY_ID]:e.entryId}}return $.warn("Missing property for inspector mode",{...e}),null}static toggleInspectorMode(){return this.inspectorModeEnabled=!this.inspectorModeEnabled,this.inspectorModeEnabled}static toggleLiveUpdatesMode(){return this.liveUpdatesEnabled=!this.liveUpdatesEnabled,this.liveUpdatesEnabled}static openEntryInEditor(e){let t={locale:this.locale,environment:this.environment,space:this.space};void 0!==e.assetId&&e.fieldId?ep({...t,...e},this.targetOrigin):void 0!==e.entryId&&e.fieldId?ef({...t,...e},this.targetOrigin):$.error("Please provide field id and entry/asset id to openEntryInEditor.",{...e})}static getEntryList(){return en({options:{locale:this.locale,space:this.space,environment:this.environment}})}};e.s(["a",0,ef,"c",0,K,"d",0,"live-preview-editor","f",0,z,"g",0,f,"h",0,(e,t,n)=>{let r=L(e);if(r.sys&&"items"in r){var i;if(!(null!=(i=r.sys)&&i.contentSourceMapsLookup))return r;let{contentSourceMapsLookup:{fieldTypes:e,editorInterfaces:o}}=r.sys,{items:s,includes:a}=r;s.forEach(r=>R(r,e,o,t,n)),a&&a.Entry&&a.Entry.forEach(r=>R(r,e,o,t,n)),a&&a.Asset&&a.Asset.forEach(r=>R(r,e,o,t,n))}else{if(!r.sys.contentSourceMapsLookup)return console.error("Content source maps lookup data is missing"),r;R(r,r.sys.contentSourceMapsLookup.fieldTypes,r.sys.contentSourceMapsLookup.editorInterfaces,t,n)}return r},"i",0,ep,"l",0,Y,"m",0,function(e){return{cleaned:e.replace(_,""),encoded:e.match(_)?.[0]||""}},"n",0,P,"o",0,er,"p",0,(e,t,n)=>{if(!e||!e.extensions||!e.extensions.contentSourceMaps)return console.error("GraphQL response does not contain Content Source Maps information.",e),e;let r=L(e),{spaces:i,environments:o,editorInterfaces:s,fields:a,locales:l,entries:c,assets:u,mappings:d,fieldTypes:f}=r.extensions.contentSourceMaps;for(let e in d){let{source:p}=d[e],h="entry"in p?c[p.entry]:u[p.asset],g="entry"in p?"Entry":"Asset";if(!h)break;let m=i[h.space],y=o[h.environment],v=h.id,b=a[p.field],E=l[p.locale],_=s[p.editorInterface],C=f[p.fieldType];if((!I(_.widgetNamespace)||x(_.widgetId))&&(0,O.has)(r,e)){let i=(0,O.get)(r,e);null!==i&&k(C,i,S({entityId:v,entityType:g,space:m,environment:y,field:b,locale:E,editorInterface:_,fieldType:C,targetOrigin:t,platform:n}),r,e,d)}}return r},"r",0,ed,"s",0,J,"t",0,ey,"u",0,V])}]);

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.