1import{dU as v,g4 as L}from"#entry";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"production-273317172"};var e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="080b1e1a-28bd-47f5-a2a8-8fe231a89b71",t._sentryDebugIdIdentifier="sentry-dbid-080b1e1a-28bd-47f5-a2a8-8fe231a89b71")}catch{}})();function M(t,e){if(!e)return{src:t,attrs:{}};let r=0,n=0;const i={},s=[];function o(l,c,u,f,g){typeof l!="number"||l<=c||l>=u?console.warn(`[StoryblokRichText] - ${f.charAt(0).toUpperCase()+f.slice(1)} value must be a number between ${c} and ${u} (inclusive)`):g.push(`${f}(${l})`)}if(typeof e=="object"){if(e.width!==void 0&&(typeof e.width=="number"&&e.width>=0?(i.width=e.width,r=e.width):console.warn("[StoryblokRichText] - Width value must be a number greater than or equal to 0")),e.height!==void 0&&(typeof e.height=="number"&&e.height>=0?(i.height=e.height,n=e.height):console.warn("[StoryblokRichText] - Height value must be a number greater than or equal to 0")),e.height===0&&e.width===0&&(delete i.width,delete i.height,console.warn("[StoryblokRichText] - Width and height values cannot both be 0")),e.loading&&["lazy","eager"].includes(e.loading)&&(i.loading=e.loading),e.class&&(i.class=e.class),e.filters){const{filters:l}=e||{},{blur:c,brightness:u,fill:f,format:g,grayscale:E,quality:$,rotate:A}=l||{};c&&o(c,0,100,"blur",s),$&&o($,0,100,"quality",s),u&&o(u,0,100,"brightness",s),f&&s.push(`fill(${f})`),E&&s.push("grayscale()"),A&&[0,90,180,270].includes(e.filters.rotate||0)&&s.push(`rotate(${A})`),g&&["webp","png","jpeg"].includes(g)&&s.push(`format(${g})`)}e.srcset&&(i.srcset=e.srcset.map(l=>{if(typeof l=="number")return`${t}/m/${l}x0/${s.length>0?`filters:${s.join(":")}`:""} ${l}w`;if(Array.isArray(l)&&l.length===2){const[c,u]=l;return`${t}/m/${c}x${u}/${s.length>0?`filters:${s.join(":")}`:""} ${c}w`}else{console.warn("[StoryblokRichText] - srcset entry must be a number or a tuple of two numbers");return}}).join(", ")),e.sizes&&(i.sizes=e.sizes.join(", "))}let a=`${t}/m/`;return(r>0||n>0)&&(a=`${a}${r}x${n}/`),s.length>0&&(a=`${a}filters:${s.join(":")}`),{src:a,attrs:i}}function y(t,e){if(t===e)return!0;if(t==null||e===null||e===void 0)return t===e;if(typeof t!=typeof e||typeof t!="object"||Array.isArray(t)!==Array.isArray(e))return!1;if(Array.isArray(t))return t.length!==e.length?!1:t.every((i,s)=>y(i,e[s]));const r=Object.keys(t),n=Object.keys(e);return r.length!==n.length?!1:r.every(i=>Object.prototype.hasOwnProperty.call(e,i)&&y(t[i],e[i]))}const C=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function O(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function N(){const t=new Map;return e=>{const r=(t.get(e)||0)+1;return t.set(e,r),`${e}-${r}`}}const z=t=>`h${typeof t?.level=="number"?Math.min(6,Math.max(1,t.level)):1}`,d={paragraph:{tag:"p",content:!0},doc:null,text:null,emoji:{tag:"img",attrs:{style:"width: 1.25em; height: 1.25em; vertical-align: text-top;",draggable:"false",loading:"lazy"}},blockquote:{tag:"blockquote",content:!0},heading:{resolve:z},bullet_list:{tag:"ul",content:!0},ordered_list:{tag:"ol",attrs:{order:1},content:!0},list_item:{tag:"li",content:!0},code_block:{tag:"pre",children:[{tag:"code",content:!0}]},hard_break:{tag:"br"},horizontal_rule:{tag:"hr"},image:{tag:"img"},table:{tag:"table",content:!0},tableRow:{tag:"tr",content:!0},tableCell:{tag:"td",attrs:{colspan:1,rowspan:1},content:!0},tableHeader:{tag:"th",attrs:{colspan:1,rowspan:1},content:!0},blok:null},P={link:{tag:"a",attrs:{rel:"noopener noreferrer nofollow",linktype:"url",custom:{}},content:!0},bold:{tag:"strong",content:!0},italic:{tag:"em",content:!0},strike:{tag:"s",content:!0},underline:{tag:"u",content:!0},code:{tag:"code",content:!0},superscript:{tag:"sup",content:!0},subscript:{tag:"sub",content:!0},highlight:{tag:"mark",content:!0},textStyle:{tag:"span",content:!0},anchor:{tag:"span",content:!0},styled:{tag:"span",content:!0}};function D(t){return Object.entries(t).filter(([,e])=>p(e)).map(([e,r])=>`${I(e)}: ${r};`).join(" ")}function H(t){return t.split(";").map(e=>
1e.trim()).filter(Boolean).reduce((e,r)=>{const n=r.indexOf(":");if(n===-1)return e;const i=r.slice(0,n).trim(),s=r.slice(n+1).trim();return!i||!s||(e[q(i)]=s),e},{})}function q(t){return t.replace(/-([a-z])/g,(e,r)=>r.toUpperCase())}function I(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function p(t){return t!=null&&t!==""}const U={highlight:{color:"backgroundColor"},textStyle:{color:"color"},paragraph:{textAlign:"textAlign"},heading:{textAlign:"textAlign"},tableCell:{backgroundColor:"backgroundColor",colwidth:"width"},tableHeader:{colwidth:"width"}},F={fallbackImage:"src",body:"data-body",colspan:"colSpan",rowspan:"rowSpan",name:"data-name",emoji:"data-emoji",order:"start"},V=new Set(["level","linktype","uuid","anchor","meta_data","copyright","source"]),K=new Set(["colspan","rowspan","order"]);function G(t){const{linktype:e,href:r,anchor:n}=t;if(e==="story")return`${typeof r=="string"?r:""}${typeof n=="string"&&n?`#${n}`:""}`;if(e==="email"&&typeof r=="string")return`mailto:${r.replace(/^mailto:/,"")}`}function W(t){const e={};let r={};if(!(t in d))return{staticAttrs:r,staticStyle:e};const n=d[t];if(!n||!("attrs"in n))return{staticAttrs:r,staticStyle:e};const i=n.attrs||{},s="style"in i&&typeof i.style=="string"?i.style:"",{style:o,...a}=i;return r=a,s&&Object.assign(e,H(s)),{staticAttrs:r,staticStyle:e}}function Y(t){return Array.isArray(t)?t[0]!=null?`${t[0]}px`:void 0:typeof t=="number"||typeof t=="string"?t:String(t)}function B(t,e,r,n,i,s,o){if(!p(e)||V.has(t)||K.has(t)&&e===1)return;if(t in n){const l=n[t],c=Y(e);c!==void 0&&p(c)&&(s[l]=c);return}const a=i[t]??t;if(a==="custom"&&r==="link"&&typeof e=="object"&&e!==null){for(const[l,c]of Object.entries(e))o[l]=String(c);return}if(typeof e=="object"&&e!==null){o[a]=JSON.stringify(e);return}o[a]=e}function J(t,e={},r={}){const{staticAttrs:n,staticStyle:i}=W(t),s={...i},o={},a=U[t]||{},l={...F,...r},c={...n,...e};for(const[u,f]of Object.entries(c))B(u,f,t,a,l,s,o);if(t==="link"){const u=G(e);u!==void 0&&(o.href=u)}return{...o,...Object.keys(s).length>0&&{style:s}}}const X=t=>String(t).replace(/[&"'<>]/g,e=>{switch(e){case"&":return"&";case'"':return""";case"'":return"'";case"<":return"<";case">":return">";default:return e}});function w(t){if(t.type!=="text"||!t.marks)return null;for(const e of t.marks)if(e.type==="link")return e;return null}function Z(t,e){return!t||!e?!1:y(t.attrs??{},e.attrs??{})}function Q(t){const e=t.content;if(!e?.length)return!1;for(const r of e)if(r.type!=="tableHeader")return!1;return!0}function tt(t,e=!1){if(!t)return[];if(Array.isArray(t))return t;const r=t.type==="doc"?t.content||[]:[t];return e?S(r,N()):r}function S(t,e){return t.map(r=>({...r,_key:e(r.type),marks:r.marks?.map(n=>({...n,_key:e(n.type)})),content:r.content?S(r.content,e):void 0}))}function m(t){const e=t.type,r=d[e]??P[e];return r?"resolve"in r&&typeof r.resolve=="function"?r.resolve(t.attrs):"tag"in r&&typeof r.tag=="string"?r.tag:null:null}function T(t){return C.includes(t)}function et(t){const e=d[t.type];return e&&"children"in e?e.children:null}function rt(t){let e="";for(const r in t){const n=t[r];n!=null&&(e+=` ${r}="${X(n)}"`)}return e}function k(t,e){const r=tt(t);return r?.length?_(r,e):""}function b(t,e){if(t.type==="text")return x(t,t.marks);const r=t.content?_(t.content,e):"";if(t.type==="blok")return console.warn('"blok" nodes require a custom renderer in renderRichText.'),"";const n=m(t);if(!n)return r;if(t.type==="image"&&e?.optimizeImage)return nt(t,e);const i=h(t.type,t.attrs);if(T(n))return`<${n}${i}>`;if(t.type==="table")return`<${n}${i}>${ot(t.content,e)}</${n}>`;const s=et(t);return s?`<${n}>${R(t.type,s,t.attrs,r)}</${n}>`:`<${n}${i}>${r}</${n}>`}function nt(t,e){const r=t.attrs,n=r?.src;let i=r;if(n){const{src:o,attrs:a}=M(n,e.optimizeImage);i={...r,src:o,...a}}const s=h("image",i);return s?`<img${s}>`:"<img>"}function _(t,e){let r="",n=0;const i=t.length;for(;n<i;){const s=t[n],o=w(s);if(o){let a=n+1;for(;a<i&&Z(o,w(t[a]));)a++;r+=st(t,n,a,o),n=a}else r+=b(s,e),n++}return r}function x(t,e,r){let n=O(t.text);if(!e?.length)return n;for(const i of e)n=it(n,i);return n}function it(t,e,r){const n=m(e);return n?`<${n}${h(e.type,e.attrs)}>${t}</${n}>`:t}function st(t,e,r,n,i){let s="";for(let a=e;a<r;
1a++){const l=t[a],c=l.marks?.filter(u=>u.type!=="link");s+=x(l,c)}const o=m(n);return o?`<${o}${h(n.type,n.attrs)}>${s}</${o}>`:s}function ot(t,e){if(!t?.length)return"";let r=0;for(;r<t.length&&Q(t[r]);)r++;let n="";if(r>0){n+="<thead>";for(let i=0;i<r;i++)n+=b(t[i],e);n+="</thead>"}if(r<t.length){n+="<tbody>";for(let i=r;i<t.length;i++)n+=b(t[i],e);n+="</tbody>"}return n}function R(t,e,r,n){let i="";for(const s of e){const{tag:o,children:a,attrs:l}=s,c=h(t,{...l,...r});if(T(o))i+=`<${o}${c}>`;else{const u=a?R(t,a,r,n):n;i+=`<${o}${c}>${u}</${o}>`}}return i}function h(t,e){const r=J(t,e,{colspan:"colspan",rowspan:"rowspan"}),n=r.style,i={...r};return n&&(i.style=D(n)),rt(i)}const lt=t=>t?.type==="text",ct=t=>t&&typeof t.type=="string"?t:void 0,j=t=>t.type==="paragraph"?[t]:t.content?.some(r=>r.content!==void 0)?(t.content??[]).flatMap(j):t.content?[{type:"paragraph",content:t.content}]:[],ut=t=>t.type!=="doc"||!t.content?t:{...t,content:t.content.flatMap(j)},ft=(t,e)=>{const r=n=>{const i={...n};return i.content?.map(s=>(s.content&&(s=r(s)),s.marks&&(s.marks=s.marks.filter(o=>o.type!=="link"||o.type==="link"&&!!o.attrs).map(o=>{if(o.type==="link"&&o.attrs?.href){const a=o.attrs,l=a?.story?.content?.url||a?.story?.url||a?.story?.full_slug||o.attrs.href;v(l)&&(o.attrs.href=L(l,e))}return o})),s)),i};return t&&(Array.isArray(t)?k(t.map(r)):k(r(t)))};export{ut as f,lt as i,ft as r,ct as t};
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.