(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9617],{27482:function(e,n,t){"use strict";var r,i;t.d(n,{g8:function(){return g},Lq:function(){return N},b2:function(){return j},J$:function(){return E},qk:function(){return C},Xy:function(){return y},HJ:function(){return T},C$:function(){return R},u$:function(){return S},nq:function(){return x},OD:function(){return _},RF:function(){return w},C_:function(){return b},dn:function(){return v},L9:function(){return Z},UZ:function(){return L}});var o="blockquote",c="block",a="code",u="heading",s="inlineItem",d="itemLink",l="link",f="listItem",h="list",p="paragraph",m="root",k="span",A="thematicBreak";(r={}).blockquote=[p],r.block=[],r.code=[],r.heading="inlineNodes",r.inlineItem=[],r.itemLink="inlineNodes",r.link="inlineNodes",r.listItem=[p,h],r.list=[f],r.paragraph="inlineNodes",r.root=[o,a,h,p,u,c,A],r.span=[],r.thematicBreak=[],(i={}).blockquote=["children","attribution"],i.block=["item"],i.code=["language","highlight","code"],i.heading=["level","children","style"],i.inlineItem=["item"],i.itemLink=["item","children","meta"],i.link=["url","children","meta"],i.listItem=["children"],i.list=["style","children"],i.paragraph=["children","style"],i.root=["children"],i.span=["value","marks"],i.thematicBreak=[];function g(e){return"children"in e}function y(e){return e.type===u}function v(e){return e.type===k}function b(e){return e.type===m}function w(e){return e.type===p}function x(e){return e.type===h}function _(e){return e.type===f}function j(e){return e.type===o}function N(e){return e.type===c}function E(e){return e.type===a}function S(e){return e.type===l}function R(e){return e.type===d}function T(e){return e.type===s}function L(e){return e.type===A}function Z(e){return e&&"value"in e&&C(e.value)}function C(e){return e&&"schema"in e&&"document"in e}},92064:function(e,n,t){"use strict";t.d(n,{su:function(){return u},sY:function(){return l},SZ:function(){return s}});var r=t(27482);function i(e){var n=[];return o(e,n),n}function o(e,n){for(var t=0;t0)&&s()}))}),"object"===typeof h?h:{rootMargin:"250px"});i.observe(r),t.push((function(){i.disconnect()}))}if(f)if("undefined"!==typeof requestIdleCallback){var o=requestIdleCallback(s,{timeout:500});t.push((function(){cancelIdleCallback(o)}))}else{var c=setTimeout(s,2e3);t.push((function(){clearTimeout(c)}))}return[].concat(k).forEach((function(n){e.addEventListener(n,s,{once:!0,passive:!0}),t.push((function(){e.removeEventListener(n,s,{})}))})),function(){t.forEach((function(e){e()}))}}}),[u,k,l,f,h,g,p,d]);var v="string"===typeof d?d:"div";return u?d?A:(0,o.createElement)(v,(0,r.Z)({ref:n,style:{display:"contents"}},y),A):(0,o.createElement)(v,(0,r.Z)({},y,{ref:n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:""}}))}},22984:function(e,n,t){"use strict";t.d(n,{rZ:function(){return f}});var r=t(92064),i=t(27482),o=function(){return o=Object.assign||function(e){for(var n,t=1,r=arguments.length;ts.createElement(s.Fragment,{key:n},e),renderText:(e,n)=>e};function l(e,n){return(0,s.isValidElement)(e)&&null===e.key?(0,s.cloneElement)(e,{key:n}):e}function f({data:e,renderInlineRecord:n,renderLinkToRecord:t,renderBlock:f,renderText:h,renderNode:p,renderFragment:m,customMarkRules:k,customRules:A,customNodeRules:g,metaTransformer:y}){const v=function(e,n){var t=n.metaTransformer||u;return(0,r.sY)(n.adapter,e,c(n.customNodeRules||[],[(0,r.SZ)(i.C_,(function(e){var n=e.adapter.renderFragment,t=e.key;return n(e.children,t)})),(0,r.SZ)(i.RF,(function(e){return(0,e.adapter.renderNode)("p",{key:e.key},e.children)})),(0,r.SZ)(i.nq,(function(e){var n=e.adapter.renderNode,t=e.node,r=e.key,i=e.children;return n("bulleted"===t.style?"ul":"ol",{key:r},i)})),(0,r.SZ)(i.OD,(function(e){return(0,e.adapter.renderNode)("li",{key:e.key},e.children)})),(0,r.SZ)(i.b2,(function(e){var n=e.adapter.renderNode,t=e.key,r=e.node,i=e.children,o=r.attribution?c(i||[],[n("footer",{key:"footer"},r.attribution)]):i;return n("blockquote",{key:t},o)})),(0,r.SZ)(i.J$,(function(e){var n=e.adapter,t=n.renderNode,r=n.renderText,i=e.key,o=e.node;return t("pre",{key:i,"data-language":o.language},t("code",null,r(o.code)))})),(0,r.SZ)(i.u$,(function(e){var n=e.adapter.renderNode,r=e.key,i=e.children,c=e.node,a=c.meta?t({node:c,meta:c.meta}):{};return n("a",o(o({},a||{}),{key:r,href:c.url}),i)})),(0,r.SZ)(i.UZ,(function(e){return(0,e.adapter.renderNode)("hr",{key:e.key})})),(0,r.SZ)(i.Xy,(function(e){var n=e.node,t=e.adapter.renderNode,r=e.children,i=e.key;return t("h"+n.level,{key:i},r)})),a({customMarkRules:n.customMarkRules||[]})]))}(e,{adapter:{renderText:h||d.renderText,renderNode:p||d.renderNode,renderFragment:m||d.renderFragment},metaTransformer:y,customMarkRules:k,customNodeRules:[(0,r.SZ)(i.HJ,(({node:t,key:o})=>{if(!n)throw new r.su("The Structured Text document contains an 'inlineItem' node, but no 'renderInlineRecord' prop is specified!",t);if(!(0,i.L9)(e)||!e.links)throw new r.su("The document contains an 'itemLink' node, but the passed data prop is not a Structured Text GraphQL response, or data.links is not present!",t);const c=e.links.find((e=>e.id===t.item));if(!c)throw new r.su(`The Structured Text document contains an 'inlineItem' node, but cannot find a record with ID ${t.item} inside data.links!`,t);return l(n({record:c}),o)})),(0,r.SZ)(i.C$,(({node:n,key:o,children:c})=>{if(!t)throw new r.su("The Structured Text document contains an 'itemLink' node, but no 'renderLinkToRecord' prop is specified!",n);if(!(0,i.L9)(e)||!e.links)throw new r.su("The document contains an 'itemLink' node, but the passed data prop is not a Structured Text GraphQL response, or data.links is not present!",n);const a=e.links.find((e=>e.id===n.item));if(!a)throw new r.su(`The Structured Text document contains an 'itemLink' node, but cannot find a record with ID ${n.item} inside data.links!`,n);return l(t({record:a,children:c,transformedMeta:n.meta?(y||u)({node:n,meta:n.meta}):null}),o)})),(0,r.SZ)(i.Lq,(({node:n,key:t})=>{if(!f)throw new r.su("The Structured Text document contains a 'block' node, but no 'renderBlock' prop is specified!",n);if(!(0,i.L9)(e)||!e.blocks)throw new r.su("The document contains an 'block' node, but the passed data prop is not a Structured Text GraphQL response, or data.blocks is not present!",n);const o=e.blocks.find((e=>e.id===n.item));if(!o)throw new r.su(`The Structured Text document contains a 'block' node, but cannot find a record with ID ${n.item} inside data.blocks!`,n);return l(f({record:o}),t)})),...g||A||[]]});return"string"===typeof v?s.createElement(s.Fragment,null,v):v||null}}}]);