1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5450],{25450:function(e,t,r){var l,i=Object.defineProperty,s=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,d={};((e,t)=>{for(var r in t)i(e,r,{get:t[r],enumerable:!0})})(d,{CSSGrid:()=>$,ContentTransformer:()=>p,ContentTransformerNode:()=>x,GridRenderer:()=>k,GridRenderingType:()=>S,Image:()=>f,NodeContent:()=>u,Renderers:()=>h,RowCol:()=>z,Table:()=>C,Video:()=>O,getGridDimensions:()=>w,getPositionnablRowClassNames:()=>y,getPositionnableCellClassNames:()=>v,renderTextContent:()=>j}),e.exports=((e,t,r,l)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let r of n(t))a.call(e,r)||void 0===r||i(e,r,{get:()=>t[r],enumerable:!(l=s(t,r))||l.enumerable});return e})(i({},"__esModule",{value:!0}),d);var c=r(2265),o=r(57437),h={link:e=>(0,o.jsx)("a",{href:e.metadata?.href,rel:e.metadata?.rel,target:e.metadata?.target,children:(0,o.jsx)(u,{...e})}),"unordered-list":e=>(0,o.jsx)("ul",{children:(0,o.jsx)(u,{...e})}),"ordered-list":e=>(0,o.jsx)("ol",{children:(0,o.jsx)(u,{...e})}),list:e=>(0,o.jsx)("ul",{children:(0,o.jsx)(u,{...e})}),"list-item":e=>(0,o.jsx)("li",{children:(0,o.jsx)(u,{...e})}),quote:e=>"block"===e.kind?(0,o.jsx)("blockquote",{children:(0,o.jsx)(u,{...e})}):(0,o.jsx)("q",{children:(0,o.jsx)(u,{...e})}),paragraph:e=>(0,o.jsx)("p",{children:(0,o.jsx)(u,{...e})}),preformatted:e=>(0,o.jsx)("pre",{children:(0,o.jsx)(u,{...e})}),code:e=>(0,o.jsx)("code",{children:(0,o.jsx)(u,{...e})}),underlined:e=>(0,o.jsx)("u",{children:(0,o.jsx)(u,{...e})}),strong:e=>(0,o.jsx)("strong",{children:(0,o.jsx)(u,{...e})}),emphasized:e=>(0,o.jsx)("em",{children:(0,o.jsx)(u,{...e})}),div:e=>(0,o.jsx)("div",{children:(0,o.jsx)(u,{...e})}),span:e=>(0,o.jsx)(u,{...e}),"line-break":()=>(0,o.jsx)("br",{}),heading1:e=>(0,o.jsx)("h1",{children:(0,o.jsx)(u,{...e})}),heading2:e=>(0,o.jsx)("h2",{children:(0,o.jsx)(u,{...e})}),heading3:e=>(0,o.jsx)("h3",{children:(0,o.jsx)(u,{...e})}),heading4:e=>(0,o.jsx)("h4",{children:(0,o.jsx)(u,{...e})}),heading5:e=>(0,o.jsx)("h5",{children:(0,o.jsx)(u,{...e})}),heading6:e=>(0,o.jsx)("h6",{children:(0,o.jsx)(u,{...e})}),deleted:e=>(0,o.jsx)("del",{children:(0,o.jsx)(u,{...e})}),subscripted:e=>(0,o.jsx)("sub",{children:(0,o.jsx)(u,{...e})}),superscripted:e=>(0,o.jsx)("sup",{children:(0,o.jsx)(u,{...e})}),"horizontal-line":()=>(0,o.jsx)("hr",{}),table:e=>(0,o.jsx)("table",{children:(0,o.jsx)(u,{...e})}),"table-row":e=>(0,o.jsx)("tr",{children:(0,o.jsx)(u,{...e})}),"table-cell":e=>(0,o.jsx)("td",{children:(0,o.jsx)(u,{...e})}),"table-head-cell":e=>(0,o.jsx)("th",{children:(0,o.jsx)(u,{...e})})},u=e=>{let{textContent:t}=e;return t?j(t):e.children?(0,o.jsx)(o.Fragment,{children:e.children.map((e,t)=>(0,o.jsx)(x,{...e},t))}):null};function j(e){let t=e.split(/\n/g);return 1===t.length?(0,o.jsx)(o.Fragment,{children:e}):(0,o.jsx)(o.Fragment,{children:t.map((e,r)=>{let l=r.toString();return r===t.length-1?(0,o.jsx)(c.Fragment,{children:e},l):(0,o.jsxs)(c.Fragment,{children:[e,(0,o.jsx)("br",{})]},l)})})}var x=e=>{let t=h.span,{type:r,kind:l,textContent:i,overrides:s}=e;if(r&&(t=s?.[r]||h[r]),!t){if(t=h.span,"container"===r&&"block"===l)t=h.div;else if(null===r&&i)return j(i)}return(0,o.jsx)(t,{...e})},p=({overrides:e=null,json:t})=>t?Array.isArray(t)?(0,o.jsx)(c.Fragment,{children:t.map((t,r)=>(0,o.jsx)(x,{...t,overrides:e},r))}):(0,o.jsx)(x,{...t,overrides:e}):null,m=r(57437);function g(e){return`${e.url} ${e.width}w`}var f=({children:e,...t})=>{let{src:r,url:l,sizes:i,variants:s,altText:n,alt:a,fallbackAlt:d,caption:c,captionPassed:o,fallbackCaption:h,className:u,media:j,_availableSizes:x,_availableFormats:f,width:w,height:v,...y}=t,b=(s||[]).filter(e=>!!e),$=o||c?.html||c?.plainText||h||"";if(l&&x&&f){b=[];let e=l.replace(/\.[^/]+$/,"").match(/(.+)(\/)([^/]+)$/);if(e){let[,t,,r]=e;x.forEach(e=>{f.forEach(l=>{b.push({url:`${t}/@${e}/${r}.${l}`,key:`${e}.${l}`,width:e})})})}}let _=b.length>0,z=b[0];_&&(z=b.reduce(function(e,t){return!e.width||t.width>e.width?t:e},b[0]));let N=b.filter(e=>e.url&&!e.url.endsWith(".webp")&&!e.url.endsWith(".avif")),C=b.filter(e=>e.url&&e.url.endsWith(".webp")),S=b.filter(e=>e.url&&e.url.endsWith(".avif")),E=N.map(g).join(", "),k=C.map(g).join(", "),P=S.map(g).join(", "),T="jpeg";if(N.length>0){let e=N[0].url.match(/\.(?<name>[^.]+)$/);"jpg"===(T=e?.groups?.name||"jpeg")&&(T="jpeg")}let W={src:r||l||(_?N[0].url:void 0),alt:a||n||d||"",width:w??z?.width,height:v??z?.height},D=k.length>0,M=P.length>0;if(D&&M){let[e]=C,[t]=S;e.size&&t.size&&(M=e.size>t.size)}return e?e({srcSet:E,srcSetWebp:k,srcSetAvif:P,useAvif:M,useWebP:D,className:u,sizes:i,media:j,...W,...y,originalFileExtension:T}):(0,m.jsxs)("figure",{className:u,children:[(0,m.jsxs)("picture",{children:[M&&(0,m.jsx)("source",{srcSet:P,type:"image/avif",sizes:i,media:j}),D&&(0,m.jsx)("source",{srcSet:k,type:"image/webp",sizes:i,media:j}),E.length>0&&(0,m.jsx)("source",{srcSet:E,type:`image/${T}`,sizes:i,media:j}),(0,m.jsx)("img",{...W,...y})]}),!o&&c?.json?(0,m.jsx)("figcaption",{children:(0,m.jsx)(p,{json:c.json})}):(0,m.jsx)("figcaption",{children:$})]})},w=e=>({rows:e.length,cols:e[0].columns.reduce((e,t)=>
1e+t.layout.colspan,0)});function v(e,{rows:t,cols:r}){let{colspan:l,rowspan:i,rowIndex:s,colIndex:n}=e.layout;return`cell-${s}-${n} ${0==s?"first-row":""} ${0==n?"first-col":""} ${s+i===t?"last-row":""} ${n+l===r?"last-col":""}`.replace(/\s+/g," ")}function y({rowIndex:e},{rows:t}){return`row-${e} ${0==e?"first-row":""} ${e==t-1?"last-row":""}`.replace(/\s+/g," ")}var b=r(57437),$=({cellComponent:e,cells:t,children:r,dimensions:l,style:i,styleForCell:s,...n})=>(0,b.jsxs)("div",{style:{display:"grid",gridTemplateColumns:`repeat(${l.cols}, 1fr)`,...i},className:"crystallize-grid crystallize-grid--css-grid",...n,children:[r&&r({cells:t,dimensions:l}),!r&&t.map((t,r)=>{let i={gridColumn:`span ${t.layout.colspan}`,gridRow:`span ${t.layout.rowspan}`},n=s&&s(t,i)||i;return(0,b.jsx)("div",{className:`crystallize-grid__cell ${v(t,l)}`,style:n,children:(0,b.jsx)(e,{cell:t,dimensions:l})},`cell-${r}`)})]}),_=r(57437),z=({cellComponent:e,grid:t,children:r,dimensions:l,styleForCell:i,...s})=>(0,_.jsxs)("div",{className:"crystallize-grid crystallize-row-col-table",...s,children:[r&&r({grid:t,dimensions:l}),!r&&t.map((t,r)=>(0,_.jsx)("div",{className:`crystallize-grid-row row ${y({rowIndex:r},l)}`,children:t.columns.map((t,s)=>{let n=i&&i(t,{})||{},a=v(t,l);return(0,_.jsx)("div",{className:`crystallize-grid__cell col ${a}`,style:n,children:(0,_.jsx)(e,{cell:t,dimensions:l})},`cell-${r}-${s}`)})},`row-${r}`))]}),N=r(57437),C=({cellComponent:e,grid:t,children:r,dimensions:l,styleForCell:i,...s})=>(0,N.jsxs)("table",{className:"crystallize-grid crystallize-grid--table",...s,children:[(0,N.jsx)("thead",{children:(0,N.jsx)("tr",{children:Array(l.cols).fill(0).map((e,t)=>(0,N.jsx)("th",{},`th-${t}`))})}),(0,N.jsxs)("tbody",{children:[r&&r({grid:t,dimensions:l}),!r&&t.map((t,r)=>(0,N.jsx)("tr",{className:y({rowIndex:r},l),children:t.columns.map((t,s)=>{let n=i&&i(t,{})||{},a=v(t,l);return(0,N.jsx)("td",{className:`crystallize-grid__cell ${a}`,style:n,rowSpan:t.layout.rowspan,colSpan:t.layout.colspan,children:(0,N.jsx)(e,{cell:t,dimensions:l})},`cell-${r}-${s}`)})},`row-${r}`))]})]}),S=((l=S||{}).Table="table",l.Div="div",l.RowCol="row-col",l.CSSGrid="CSSGrid",l),E=r(57437),k=({cellComponent:e,children:t,grid:r,type:l="div",styleForCell:i,...s})=>{if(!e&&!t)return console.error("@crystallize/grid-renderer: missing \xb4cellComponent` or children function"),null;if(!r.rows.length)return null;let n=w(r.rows);if("table"===l)return(0,E.jsx)(C,{cellComponent:e,grid:r.rows,dimensions:n,styleForCell:i,...s,children:t});if("row-col"===l)return(0,E.jsx)(z,{cellComponent:e,grid:r.rows,dimensions:n,styleForCell:i,...s,children:t});let a=r.rows.reduce((e,t)=>e.concat(t.columns),[]);return(0,E.jsx)($,{cellComponent:e,cells:a,dimensions:n,styleForCell:i,...s,children:t})},P=r(2265),T=function(){let e="WebKitMediaSource"in window,t="MediaSource"in window;return e||t},W=!1,D=!1,M=r(57437),O=({playlists:e,thumbnails:t,thumbnailProps:r,videoProps:l,autoPlay:i,loop:s=!1,muted:n=!1,controls:a=!0,poster:d,playButtonText:c="Play video",className:o})=>{let[h,u]=(0,P.useState)(!0),[j,x]=(0,P.useState)(!1),[p,m]=(0,P.useState)(!1),g=(0,P.useRef)(null);(0,P.useEffect)(()=>{if(i){let e=navigator.connection;e&&e.saveData||x(!0)}},[]),(0,P.useEffect)(()=>{if(!j||p)return;let t=g.current;if(!t)throw Error("Cannot initialize video. Unable to find the video HTML node");t.addEventListener("playing",()=>u(!1),{once:!0});let r=function(){try{let e=navigator.connection;return e.downlink>=5&&!e.saveData}catch(e){return!1}}(),l=e.find(e=>e.endsWith(".m3u8"));l?t.canPlayType("application/vnd.apple.mpegurl")?(t.autoplay=!0,t.src=l,m(!0)):new Promise(e=>{if(!D){let e=document.createElement("script");e.src="https://cdn.jsdelivr.net/npm/hls.js@latest",e.defer=!0,document.head.appendChild(e),D=!0}!function t(){"Hls"in window?e(new window.Hls({testBandwidth:!1,abrEwmaDefaultEstimate:1e6,abrMaxWithRealBitrate:!0})):setTimeout(t,10)}()}).then(e=>{e.loadSource(l),e.attachMedia(t),e.on("hlsMediaAttached",function(){t.muted=!0,t.play()}),m(!0)}):T()&&new Promise(e=>{if(!W){let e=document.createElement("script");e.src="https://cdn.dashjs.org/latest/dash.all.min.js",e.defer=!0,document.head.appendChild(e),W=!0}!function t(){"dashjs"in window?e(window.dashjs):setTimeout(t,10)}()}).then(l=>{let i=e.find(e=>e.endsWith(".mpd"));if(!i)throw Error("Cannot find a valid Dash source for video");let s=l.MediaPlayer().create();s.initialize(),s.updateSettings({debug:{logLevel:l.Debug.LOG_LEVEL_NONE},streaming:{abr:{initialBitrate:{audio:-1,video:r?1e4:-1},autoSwitchBitrate:{audio:!0,video:!0}}}}),s.setAutoPlay(!0),s.attachView(t),s.attachSource(i),m(!0)})},[j]);let w={zIndex:h?2:1,opacity:h?1:0}
1,v=d||function(e){if(e&&e.length>0){let[t]=e;if(t._availableSizes&&t._availableFormats)return t.url;let r=t.variants.filter(e=>!e.url.endsWith(".webp")&&!e.url.endsWith(".avif"));return r.filter(e=>e.width>500).sort((e,t)=>e.width-t.width)[0].url||r[0].url}}(t);return(0,M.jsxs)("div",{className:`react-video${o?` ${o}`:""}`,style:{position:"relative"},children:[t&&t.length>0?(0,M.jsx)(f,{...t[0],className:"react-video__thumbnail",...r,style:w}):(0,M.jsx)("div",{className:"react-video__thumbnail-placeholder",style:w}),!j&&(0,M.jsxs)("button",{className:"react-video__play-btn",onClick:function(e){e.preventDefault(),x(!0)},children:[c,(0,M.jsx)("svg",{viewBox:"0 0 100 100",className:"react-video__play-icon",children:(0,M.jsx)("path",{d:"M78.158 51.843L25.842 82.048c-1.418.819-3.191-.205-3.191-1.843v-60.41c0-1.638 1.773-2.661 3.191-1.843l52.317 30.205c1.418.819 1.418 2.867-.001 3.686z"})})]}),(0,M.jsx)("video",{className:"react-video__video",ref:g,controls:a,playsInline:!0,muted:n,loop:s,poster:v,style:{opacity:p?1:0,zIndex:h?1:2},...l})]})}}}]);
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.