1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`0afd892d-6c5b-4cbc-afb9-1170ba7a82bd`,e._sentryDebugIdIdentifier=`sentry-dbid-0afd892d-6c5b-4cbc-afb9-1170ba7a82bd`)}catch{}})();function e(e,t){if(!t)return{src:e,attrs:{}};let n=0,r=0,i={},a=[];function o(e,t,n,r,i){typeof e!=`number`||e<=t||e>=n?console.warn(`[StoryblokRichText] - ${r.charAt(0).toUpperCase()+r.slice(1)} value must be a number between ${t} and ${n} (inclusive)`):i.push(`${r}(${e})`)}if(typeof t==`object`){if(t.width!==void 0&&(typeof t.width==`number`&&t.width>=0?(i.width=t.width,n=t.width):console.warn(`[StoryblokRichText] - Width value must be a number greater than or equal to 0`)),t.height!==void 0&&(typeof t.height==`number`&&t.height>=0?(i.height=t.height,r=t.height):console.warn(`[StoryblokRichText] - Height value must be a number greater than or equal to 0`)),t.height===0&&t.width===0&&(delete i.width,delete i.height,console.warn(`[StoryblokRichText] - Width and height values cannot both be 0`)),t.loading&&[`lazy`,`eager`].includes(t.loading)&&(i.loading=t.loading),t.class&&(i.class=t.class),t.filters){let{filters:e}=t||{},{blur:n,brightness:r,fill:i,format:s,grayscale:c,quality:l,rotate:u}=e||{};n&&o(n,0,100,`blur`,a),l&&o(l,0,100,`quality`,a),r&&o(r,0,100,`brightness`,a),i&&a.push(`fill(${i})`),c&&a.push(`grayscale()`),u&&[0,90,180,270].includes(t.filters.rotate||0)&&a.push(`rotate(${u})`),s&&[`webp`,`png`,`jpeg`].includes(s)&&a.push(`format(${s})`)}t.srcset&&(i.srcset=t.srcset.map(t=>{if(typeof t==`number`)return`${e}/m/${t}x0/${a.length>0?`filters:${a.join(`:`)}`:``} ${t}w`;if(Array.isArray(t)&&t.length===2){let[n,r]=t;return`${e}/m/${n}x${r}/${a.length>0?`filters:${a.join(`:`)}`:``} ${n}w`}else{console.warn(`[StoryblokRichText] - srcset entry must be a number or a tuple of two numbers`);return}}).join(`, `)),t.sizes&&(i.sizes=t.sizes.join(`, `))}let s=`${e}/m/`;return(n>0||r>0)&&(s=`${s}${n}x${r}/`),a.length>0&&(s=`${s}filters:${a.join(`:`)}`),{src:s,attrs:i}}function t(e,n){if(e===n)return!0;if(e==null||n==null)return e===n;if(typeof e!=typeof n||typeof e!=`object`||Array.isArray(e)!==Array.isArray(n))return!1;if(Array.isArray(e))return e.length===n.length?e.every((e,r)=>t(e,n[r])):!1;let r=Object.keys(e),i=Object.keys(n);return r.length===i.length?r.every(r=>Object.prototype.hasOwnProperty.call(n,r)&&t(e[r],n[r])):!1}var n=[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`];function r(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}function i(){let e=new Map;return t=>{let n=(e.get(t)||0)+1;return e.set(t,n),`${t}-${n}`}}var a={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:e=>`h${typeof e?.level==`number`?Math.min(6,Math.max(1,e.level)):1}`},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},o={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 s(e){return Object.entries(e).filter(([,e])=>d(e)).map(([e,t])=>`${u(e)}: ${t};`).join(` `)}function c(e){return e.split(`;`).map(e=>
1e.trim()).filter(Boolean).reduce((e,t)=>{let n=t.indexOf(`:`);if(n===-1)return e;let r=t.slice(0,n).trim(),i=t.slice(n+1).trim();return!r||!i||(e[l(r)]=i),e},{})}function l(e){return e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function u(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function d(e){return e!=null&&e!==``}var f={highlight:{color:`backgroundColor`},textStyle:{color:`color`},paragraph:{textAlign:`textAlign`},heading:{textAlign:`textAlign`},tableCell:{backgroundColor:`backgroundColor`,colwidth:`width`},tableHeader:{colwidth:`width`}},p={fallbackImage:`src`,body:`data-body`,colspan:`colSpan`,rowspan:`rowSpan`,name:`data-name`,emoji:`data-emoji`,order:`start`},m=new Set([`level`,`linktype`,`uuid`,`anchor`,`meta_data`,`copyright`,`source`]),h=new Set([`colspan`,`rowspan`,`order`]);function g(e){let{linktype:t,href:n,anchor:r}=e;if(t===`story`)return`${typeof n==`string`?n:``}${typeof r==`string`&&r?`#${r}`:``}`;if(t===`email`&&typeof n==`string`)return`mailto:${n.replace(/^mailto:/,``)}`}function _(e){let t={},n={};if(!(e in a))return{staticAttrs:n,staticStyle:t};let r=a[e];if(!r||!(`attrs`in r))return{staticAttrs:n,staticStyle:t};let i=r.attrs||{},o=`style`in i&&typeof i.style==`string`?i.style:``,{style:s,...l}=i;return n=l,o&&Object.assign(t,c(o)),{staticAttrs:n,staticStyle:t}}function v(e){return Array.isArray(e)?e[0]==null?void 0:`${e[0]}px`:typeof e==`number`||typeof e==`string`?e:String(e)}function y(e,t,n,r,i,a,o){if(!d(t)||m.has(e)||h.has(e)&&t===1)return;if(e in r){let n=r[e],i=v(t);i!==void 0&&d(i)&&(a[n]=i);return}let s=i[e]??e;if(s===`custom`&&n===`link`&&typeof t==`object`&&t){for(let[e,n]of Object.entries(t))o[e]=String(n);return}if(typeof t==`object`&&t){o[s]=JSON.stringify(t);return}o[s]=t}function b(e,t={},n={}){let{staticAttrs:r,staticStyle:i}=_(e),a={...i},o={},s=f[e]||{},c={...p,...n},l={...r,...t};for(let[t,n]of Object.entries(l))y(t,n,e,s,c,a,o);if(e===`link`){let e=g(t);e!==void 0&&(o.href=e)}return{...o,...Object.keys(a).length>0&&{style:a}}}var x=e=>String(e).replace(/[&"'<>]/g,e=>{switch(e){case`&`:return`&`;case`"`:return`"`;case`'`:return`'`;case`<`:return`<`;case`>`:return`>`;default:return e}});function S(e){if(e.type!==`text`||!e.marks)return null;for(let t of e.marks)if(t.type===`link`)return t;return null}function C(e,n){return!e||!n?!1:t(e.attrs??{},n.attrs??{})}function w(e){let t=e.content;if(!t?.length)return!1;for(let e of t)if(e.type!==`tableHeader`)return!1;return!0}function T(e,t=!1){if(!e)return[];if(Array.isArray(e))return e;let n=e.type===`doc`?e.content||[]:[e];return t?E(n,i()):n}function E(e,t){return e.map(e=>({...e,_key:t(e.type),marks:e.marks?.map(e=>({...e,_key:t(e.type)})),...e.content?{content:E(e.content,t)}:{}}))}function D(e){let t=e.type,n=a[t]??o[t];return n?`resolve`in n&&typeof n.resolve==`function`?n.resolve(e.attrs):`tag`in n&&typeof n.tag==`string`?n.tag:null:null}function O(e){return n.includes(e)}function k(e){let t=a[e.type];return t&&`children`in t?t.children:null}function A(e){let t=``;for(let n in e){let r=e[n];r!=null&&(t+=` ${n}="${x(r)}"`)}return t}function j(e,t){let n=T(e);return n?.length?P(n,t):``}function M(e,t){let n=e.type!==`text`&&e.content?P(e.content,t):``,r=t?.renderers?.[e.type];if(r){let i=t?.renderers?.[e.type]?{...t,renderers:{...t.renderers,[e.type]:void 0}}:t;return r({...e,children:n,context:i})}if(e.type===`text`)return F(e,e.marks,t);if(e.type===`blok`)return console.warn(`"blok" nodes require a custom renderer in renderRichText.`),``;let i=D(e);if(!i)return n;if(e.type===`image`&&t?.optimizeImage)return N(e,t);let a=B(e.type,e.attrs);if(O(i))return`<${i}${a}>`;if(e.type===`table`)return`<${i}${a}>${R(e.content,t)}</${i}>`;let o=k(e);return o?`<${i}>${z(e.type,o,e.attrs,n)}</${i}>`:`<${i}${a}>${n}</${i}>`}function N(t,n){let r=t.attrs,i=r?.src,a=r;if(i){let{src:t,attrs:o}=e(i,n.optimizeImage);a={...r,src:t,...o}}let o=B(`image`,a);return o?`<img${o}>`:`<img>`}function P(e,t){let n=``,r=0,i=e.length;for(;r<i;){let a=e[r],o=S(a);if(o){let a=r+1;for(;a<i&&C(o,S(e[a]));)a++;n+=L(e,r,a,o,t),r=a}else n+=M(a,t),r++}return n}function F(e,t,n){let i=r(e.text);if(!t?.length)return i;for(let e of t)i=I(i,e,n);return i}function I(e,t,n){let r=n?.renderers?.[t.type];if(r)return r({...t,children:e,context:n});let i=D(t);return i?`<${i}${B(t.type,t.attrs)}>${e}</${i}>`:e}function L(e,t,n,r,i){let a=``;for(let r=t;r<n;
1r++){let t=e[r],n=t.marks?.filter(e=>e.type!==`link`);a+=F(t,n,i)}let o=i?.renderers?.[r.type];if(o)return o({...r,children:a,context:i});let s=D(r);return s?`<${s}${B(r.type,r.attrs)}>${a}</${s}>`:a}function R(e,t){if(!e?.length)return``;let n=0;for(;n<e.length&&w(e[n]);)n++;let r=``;if(n>0){r+=`<thead>`;for(let i=0;i<n;i++)r+=M(e[i],t);r+=`</thead>`}if(n<e.length){r+=`<tbody>`;for(let i=n;i<e.length;i++)r+=M(e[i],t);r+=`</tbody>`}return r}function z(e,t,n,r){let i=``;for(let a of t){let{tag:t,children:o,attrs:s}=a,c=B(e,{...s,...n});if(O(t))i+=`<${t}${c}>`;else{let a=o?z(e,o,n,r):r;i+=`<${t}${c}>${a}</${t}>`}}return i}function B(e,t){let n=b(e,t,{colspan:`colspan`,rowspan:`rowspan`}),r=n.style,i={...n};return r&&(i.style=s(r)),A(i)}var V=e=>j(e).replace(/<\/?[^>]+(>|$)/g,``);export{V 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.