"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[48610],{53945:(e,t,r)=>{r.d(t,{n4:()=>s,Ne:()=>k,ci:()=>S,CS:()=>j,wj:()=>a,nO:()=>u,iZ:()=>m,cH:()=>x});var n=r(24246),o=r(27378),c=r(51114),i=r(32451);function a(){var e;let t=(0,i.Z)(),r=null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.blogMetadata;if(!r)throw Error("useBlogMetadata() can't be called on the current route because the blog metadata could not be found in route context");return r}let l=o.createContext(null);function s({children:e,content:t,isBlogPostPage:r=!1}){let c=function({content:e,isBlogPostPage:t}){return(0,o.useMemo)(()=>({metadata:e.metadata,frontMatter:e.frontMatter,assets:e.assets,toc:e.toc,isBlogPostPage:t}),[e,t])}({content:t,isBlogPostPage:r});return(0,n.jsx)(l.Provider,{value:c,children:e})}function u(){let e=(0,o.useContext)(l);if(null===e)throw new c.i6("BlogPostProvider");return e}var b=r(66448),p=r(4423);function f(e){for(var t=1;tnew Date(e).toISOString();function d(e){let t=e.map(g);return{author:1===t.length?t[0]:t}}function y(e,t,r){return e?{image:function({imageUrl:e,caption:t}){return{"@type":"ImageObject","@id":e,url:e,contentUrl:e,caption:t}}({imageUrl:t(e,{absolute:!0}),caption:`title image for the blog post: ${r}`})}:{}}function j(e){let{siteConfig:t}=(0,p.Z)(),{withBaseUrl:r}=(0,b.Cg)(),{metadata:{blogDescription:n,blogTitle:o,permalink:c}}=e,i=`${t.url}${c}`;return{"@context":"https://schema.org","@type":"Blog","@id":i,mainEntityOfPage:i,headline:o,description:n,blogPost:e.items.map(e=>(function(e,t,r){var n,o;let{assets:c,frontMatter:i,metadata:a}=e,{date:l,title:s,description:u,lastUpdatedAt:b}=a,p=null!==(n=c.image)&&void 0!==n?n:i.image,j=null!==(o=i.keywords)&&void 0!==o?o:[],m=`${t.url}${a.permalink}`,g=b?O(b):void 0;return f({"@type":"BlogPosting","@id":m,mainEntityOfPage:m,url:m,headline:s,name:s,description:u,datePublished:l},g?{dateModified:g}:{},d(a.authors),y(p,r,s),j?{keywords:j}:{})})(e.content,t,r))}}function m(){var e,t,r,n;let o=a(),{assets:c,metadata:i}=u(),{siteConfig:l}=(0,p.Z)(),{withBaseUrl:s}=(0,b.Cg)(),{date:j,title:m,description:g,frontMatter:h,lastUpdatedAt:v}=i,w=null!==(e=c.image)&&void 0!==e?e:h.image,P=null!==(t=h.keywords)&&void 0!==t?t:[],x=v?O(v):void 0,S=`${l.url}${i.permalink}`;return r=f({"@context":"https://schema.org","@type":"BlogPosting","@id":S,mainEntityOfPage:S,url:S,headline:m,name:m,description:g,datePublished:j},x?{dateModified:x}:{},d(i.authors),y(w,s,m),P?{keywords:P}:{}),n=n={isPartOf:{"@type":"Blog","@id":`${l.url}${o.blogBasePath}`,name:o.blogTitle}},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),r}function g(e){return f({"@type":"Person"},e.name?{name:e.name}:{},e.title?{description:e.title}:{},e.url?{url:e.url}:{},e.email?{email:e.email}:{},e.imageURL?{image:e.imageURL}:{})}var h=r(3620),v=r(41428),w=r(52196),P=r(39779);function x(e){let{pathname:t}=(0,h.TH)();return(0,o.useMemo)(()=>e.filter(e=>!e.unlisted||!!(0,P.Mg)(e.permalink,t)),[e,t])}function S(e){let t=Object.entries((0,w.vM)(e,e=>`${new Date(e.date).getFullYear()}`));return t.reverse(),t}function k({items:e,ulClassName:t,liClassName:r,linkClassName:o,linkActiveClassName:c}){return(0,n.jsx)("ul",{className:t,children:e.map(e=>(0,n.jsx)("li",{className:r,children:(0,n.jsx)(v.Z,{isNavLink:!0,to:e.permalink,className:o,activeClassName:c,children:e.title})},e.permalink))})}},35434:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(24246);function o(e){var t,r;return(0,n.jsx)("svg",(t=function(e){for(var t=1;t{r.d(t,{Z:()=>E});var n,o,c=r(24246),i=r(27378),a=r(40624),l=r(36712),s=r(89583);let u={admonition:"admonition_o5H7",admonitionHeading:"admonitionHeading_FzoX",admonitionIcon:"admonitionIcon_rXq6",admonitionContent:"admonitionContent_Knsx"};function b({type:e,className:t,children:r}){return(0,c.jsx)("div",{className:(0,a.Z)(s.k.common.admonition,s.k.common.admonitionType(e),u.admonition,t),children:r})}function p({icon:e,title:t}){return(0,c.jsxs)("div",{className:u.admonitionHeading,children:[(0,c.jsx)("span",{className:u.admonitionIcon,children:e}),t]})}function f({children:e}){return e?(0,c.jsx)("div",{className:u.admonitionContent,children:e}):null}function O(e){let{type:t,icon:r,title:n,children:o,className:i}=e;return(0,c.jsxs)(b,{type:t,className:i,children:[n||r?(0,c.jsx)(p,{title:n,icon:r}):null,(0,c.jsx)(f,{children:o})]})}let d={icon:(0,c.jsx)(function(e){var t,r;return(0,c.jsx)("svg",(t=function(e){for(var t=1;t(0,c.jsx)(y,k({title:"secondary"},e)),important:e=>(0,c.jsx)(v,k({title:"important"},e)),success:e=>(0,c.jsx)(m,k({title:"success"},e)),caution:function(e){var t,r;return(0,c.jsx)(O,(t=function(e){for(var t=1;ti.isValidElement(e)&&"mdxAdmonitionTitle"===e.type),n=t.filter(e=>e!==r);return{mdxAdmonitionTitle:null==r?void 0:r.props.children,rest:n.length>0?(0,c.jsx)(c.Fragment,{children:n}):null}}(e.children),l=null!==(t=e.title)&&void 0!==t?t:o;return r=function(e){for(var t=1;t{r.d(t,{Z:()=>j});var n=r(24246);r(27378);var o=r(40624),c=r(41428);let i=function(e){var t,r;return(0,n.jsxs)("svg",(t=function(e){for(var t=1;t(0,n.jsx)(s,{platform:e,link:t},e))})}var b=r(52615);let p={authorImage:"authorImage_p8ow","author-as-h1":"author-as-h1_Pd3R","author-as-h2":"author-as-h2_UaZL",authorDetails:"authorDetails_dWdF",authorName:"authorName_Y8Hr",authorTitle:"authorTitle_Slpj",authorBlogPostCount:"authorBlogPostCount_FxU_"};function f(e){return e.href?(0,n.jsx)(c.Z,function(e){for(var t=1;t{r.d(t,{Z:()=>v});var n=r(24246),o=r(27378),c=r(40624),i=r(88613),a=r(60029),l=r(36712),s=r(53945),u=r(73919),b=r(52615);function p({year:e,yearGroupHeadingClassName:t,children:r}){return(0,n.jsxs)("div",{role:"group",children:[(0,n.jsx)(b.Z,{as:"h3",className:t,children:e}),r]})}let f=(0,o.memo)(function({items:e,yearGroupHeadingClassName:t,ListComponent:r}){if(!(0,u.L)().blog.sidebar.groupByYear)return(0,n.jsx)(r,{items:e});{let o=(0,s.ci)(e);return(0,n.jsx)(n.Fragment,{children:o.map(([e,o])=>(0,n.jsx)(p,{year:e,yearGroupHeadingClassName:t,children:(0,n.jsx)(r,{items:o})},e))})}}),O=({items:e})=>(0,n.jsx)(s.Ne,{items:e,ulClassName:(0,c.Z)("sidebarItemList_OSkG","clean-list"),liClassName:"sidebarItem_WJ0y",linkClassName:"sidebarItemLink_Qrfg",linkActiveClassName:"sidebarItemLinkActive_nUeK"}),d=(0,o.memo)(function({sidebar:e}){let t=(0,s.cH)(e.items);return(0,n.jsx)("aside",{className:"col col--3",children:(0,n.jsxs)("nav",{className:(0,c.Z)("sidebar_P3nc","thin-scrollbar"),"aria-label":(0,l.I)({id:"theme.blog.sidebar.navAriaLabel",message:"Blog recent posts navigation",description:"The ARIA label for recent posts in the blog sidebar"}),children:[(0,n.jsx)("div",{className:(0,c.Z)("sidebarItemTitle_VrjY","margin-bottom--md"),children:e.title}),(0,n.jsx)(f,{items:t,ListComponent:O,yearGroupHeadingClassName:"yearGroupHeading_lECJ"})]})})});var y=r(35612);let j=({items:e})=>(0,n.jsx)(s.Ne,{items:e,ulClassName:"menu__list",liClassName:"menu__list-item",linkClassName:"menu__link",linkActiveClassName:"menu__link--active"});function m({sidebar:e}){let t=(0,s.cH)(e.items);return(0,n.jsx)(f,{items:t,ListComponent:j,yearGroupHeadingClassName:"yearGroupHeading_Ruz9"})}let g=(0,o.memo)(function(e){return(0,n.jsx)(y.Zo,{component:m,props:e})});function h({sidebar:e}){let t=(0,a.i)();return(null==e?void 0:e.items.length)?"mobile"===t?(0,n.jsx)(g,{sidebar:e}):(0,n.jsx)(d,{sidebar:e}):null}function v(e){var t,r;let{sidebar:o,toc:a,children:l}=e,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["sidebar","toc","children"]),u=o&&o.items.length>0;return(0,n.jsx)(i.Z,(t=function(e){for(var t=1;t{r.d(t,{Z:()=>i});var n=r(24246);r(27378);var o=r(36712),c=r(6649);function i(e){let{metadata:t}=e,{previousPage:r,nextPage:i}=t;return(0,n.jsxs)("nav",{className:"pagination-nav","aria-label":(0,o.I)({id:"theme.blog.paginator.navAriaLabel",message:"Blog list page navigation",description:"The ARIA label for the blog pagination"}),children:[r&&(0,n.jsx)(c.Z,{permalink:r,title:(0,n.jsx)(o.Z,{id:"theme.blog.paginator.newerEntries",description:"The label used to navigate to the newer blog posts page (previous page)",children:"Newer entries"})}),i&&(0,n.jsx)(c.Z,{permalink:i,title:(0,n.jsx)(o.Z,{id:"theme.blog.paginator.olderEntries",description:"The label used to navigate to the older blog posts page (next page)",children:"Older entries"}),isNext:!0})]})}},53543:(e,t,r)=>{r.d(t,{Z:()=>o});var n=r(24246);function o({children:e,className:t}){return(0,n.jsx)("article",{className:t,children:e})}r(27378)},53635:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(24246);r(27378);var o=r(40624),c=r(86632),i=r(53945),a=r(23387);function l({children:e,className:t}){let{isBlogPostPage:r}=(0,i.nO)();return(0,n.jsx)("div",{id:r?c.uR:void 0,className:(0,o.Z)("markdown",t),children:(0,n.jsx)(a.Z,{children:e})})}},71422:(e,t,r)=>{r.d(t,{Z:()=>p});var n=r(24246);r(27378);var o=r(40624),c=r(36712),i=r(7812),a=r(54461),l=r(53945);function s({readingTime:e}){let t=function(){let{selectMessage:e}=(0,i.c)();return t=>{let r=Math.ceil(t);return e(r,(0,c.I)({id:"theme.blog.post.readingTime.plurals",description:'Pluralized label for "{readingTime} min read". Use as much plural forms (separated by "|") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)',message:"One min read|{readingTime} min read"},{readingTime:r}))}}();return(0,n.jsx)(n.Fragment,{children:t(e)})}function u({date:e,formattedDate:t}){return(0,n.jsx)("time",{dateTime:e,children:t})}function b(){return(0,n.jsx)(n.Fragment,{children:" \xb7 "})}function p({className:e}){let{metadata:t}=(0,l.nO)(),{date:r,readingTime:c}=t,i=(0,a.P)({day:"numeric",month:"long",year:"numeric",timeZone:"UTC"});return(0,n.jsxs)("div",{className:(0,o.Z)("container_x5Un","margin-vert--md",e),children:[(0,n.jsx)(u,{date:r,formattedDate:i.format(new Date(r))}),void 0!==c&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(b,{}),(0,n.jsx)(s,{readingTime:c})]})]})}},35253:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(24246);r(27378);var o=r(40624),c=r(41428),i=r(53945);function a({className:e}){let{metadata:t,isBlogPostPage:r}=(0,i.nO)(),{permalink:a,title:l}=t;return(0,n.jsx)(r?"h1":"h2",{className:(0,o.Z)("title_UBNu",e),children:r?l:(0,n.jsx)(c.Z,{to:a,children:l})})}},34352:(e,t,r)=>{r.d(t,{Z:()=>w});var n=r(24246);r(27378);var o=r(40624),c=r(53945),i=r(53543),a=r(35253),l=r(71422),s=r(26323);let u={authorCol:"authorCol_bvyx",imageOnlyAuthorRow:"imageOnlyAuthorRow_L2DM",imageOnlyAuthorCol:"imageOnlyAuthorCol_oyze"};function b({className:e}){let{metadata:{authors:t},assets:r}=(0,c.nO)();if(0===t.length)return null;let i=t.every(({name:e})=>!e),a=1===t.length;return(0,n.jsx)("div",{className:(0,o.Z)("margin-top--md margin-bottom--sm",i?u.imageOnlyAuthorRow:"row",e),children:t.map((e,t)=>{var c,l,b;return(0,n.jsx)("div",{className:(0,o.Z)(!i&&(a?"col col--12":"col col--6"),i?u.imageOnlyAuthorCol:u.authorCol),children:(0,n.jsx)(s.Z,{author:(l=function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["blogPostTitle"]);return(0,n.jsx)(m.Z,(t=function(e){for(var t=1;t0;if(!(p||b||a))return null;if(!t)return(0,n.jsxs)("footer",{className:"row docusaurus-mt-lg",children:[p&&(0,n.jsx)("div",{className:(0,o.Z)("col",{"col--9":b}),children:(0,n.jsx)(y.Z,{tags:r})}),b&&(0,n.jsx)("div",{className:(0,o.Z)("col text--right",{"col--3":p}),children:(0,n.jsx)(h,{blogPostTitle:i,to:e.permalink})})]});{let e=!!(a||u||s);return(0,n.jsxs)("footer",{className:"docusaurus-mt-lg",children:[p&&(0,n.jsx)("div",{className:(0,o.Z)("row","margin-top--sm",O.k.blog.blogFooterEditMetaRow),children:(0,n.jsx)("div",{className:"col",children:(0,n.jsx)(y.Z,{tags:r})})}),e&&(0,n.jsx)(d.Z,{className:(0,o.Z)("margin-top--sm",O.k.blog.blogFooterEditMetaRow),editUrl:a,lastUpdatedAt:u,lastUpdatedBy:s})]})}}function w({children:e,className:t}){let r=function(){let{isBlogPostPage:e}=(0,c.nO)();return e?void 0:"margin-bottom--xl"}();return(0,n.jsxs)(i.Z,{className:(0,o.Z)(r,t),children:[(0,n.jsx)(p,{}),(0,n.jsx)(f.Z,{children:e}),(0,n.jsx)(v,{})]})}},17277:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(24246);r(27378);var o=r(53945),c=r(34352);function i({items:e,component:t=c.Z}){return(0,n.jsx)(n.Fragment,{children:e.map(({content:e})=>(0,n.jsx)(o.n4,{content:e,children:(0,n.jsx)(t,{children:(0,n.jsx)(e,{})})},e.metadata.permalink))})}},7935:(e,t,r)=>{r.r(t),r.d(t,{default:()=>g});var n=r(24246);r(27378);var o=r(40624),c=r(36712),i=r(44008),a=r(89583),l=r(41773),s=r(41428),u=r(76341),b=r(41069),p=r(10057),f=r(17277),O=r(91824),d=r(52615);function y(e){for(var t=1;t{r.d(t,{Z:()=>s});var n=r(24246);r(27378);var o=r(40624),c=r(44800),i=r(89583),a=r(77773);function l({className:e}){return(0,n.jsx)(a.Z,{type:"caution",title:(0,n.jsx)(c.cI,{}),className:(0,o.Z)(e,i.k.common.unlistedBanner),children:(0,n.jsx)(c.eU,{})})}function s(e){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.T$,{}),(0,n.jsx)(l,function(e){for(var t=1;t{r.d(t,{Z:()=>f});var n=r(24246),o=r(27378),c=r(40624),i=r(80474),a=r(29088),l=r(14929);let s={details:"details_Nokh",isBrowser:"isBrowser_QrB5",collapsibleContent:"collapsibleContent_EoA1"};function u(e){return!!e&&("SUMMARY"===e.tagName||u(e.parentElement))}function b(e){var t,r,{summary:b,children:p}=e,f=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["summary","children"]);(0,i.Z)().collectAnchor(f.id);let O=(0,a.Z)(),d=(0,o.useRef)(null),{collapsed:y,setCollapsed:j}=(0,l.u)({initialState:!f.open}),[m,g]=(0,o.useState)(f.open),h=o.isValidElement(b)?b:(0,n.jsx)("summary",{children:null!=b?b:"Details"});return(0,n.jsxs)("details",(t=function(e){for(var t=1;t{u(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();let t=e.target;u(t)&&function e(t,r){return!!t&&(t===r||e(t.parentElement,r))}(t,d.current)&&(e.preventDefault(),y?(j(!1),g(!0)):j(!0))},children:[h,(0,n.jsx)(l.z,{lazy:!1,collapsed:y,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{j(e),g(!e)},children:(0,n.jsx)("div",{className:s.collapsibleContent,children:p})})]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}function p(){return(p=Object.assign||function(e){for(var t=1;t{r.d(t,{Z:()=>O});var n=r(24246);r(27378);var o=r(40624),c=r(36712),i=r(89583),a=r(41428);function l(e){var t,r,{className:c}=e,i=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["className"]);return(0,n.jsx)("svg",(t=function(e){for(var t=1;t{r.d(t,{Z:()=>B});var n,o,c=r(24246),i=r(27378),a=r(71670),l=r(97134),s=r(38112);function u(e){return(0,c.jsx)("code",function(e){for(var t=1;t"string"==typeof e&&!e.includes("\n"))?(0,c.jsx)(u,b({},e)):(0,c.jsx)(s.Z,b({},e))}var f=r(41428),O=r(5254);function d(e){var t,r;let n=i.Children.toArray(e.children),o=n.find(e=>i.isValidElement(e)&&"summary"===e.type),a=(0,c.jsx)(c.Fragment,{children:n.filter(e=>e!==o)});return(0,c.jsx)(O.Z,(t=function(e){for(var t=1;t{var r;let n=t.current;null===(r=e.bindFunctions)||void 0===r||r.call(e,n)},[e]),(0,c.jsx)("div",{ref:t,className:"docusaurus-mermaid-container container_RUsj",dangerouslySetInnerHTML:{__html:e.svg}})}function E({value:e}){let t=function({text:e,config:t}){let[r,n]=(0,i.useState)(null),o=(0,i.useRef)(`mermaid-svg-${Math.round(1e7*Math.random())}`).current,c=function(){let{colorMode:e}=(0,S.I)(),t=(0,x.L)().mermaid,r=t.theme[e],{options:n}=t;return(0,i.useMemo)(()=>{var e,t;return e=function(e){for(var t=1;t{D({id:o,text:e,config:a}).then(n).catch(e=>{n(()=>{throw e})})},[o,e,a]),r}({text:e});return null===t?null:(0,c.jsx)(N,{renderResult:t})}function _(e){for(var t=1;t(0,c.jsx)(j,_({as:"h1"},e)),h2:e=>(0,c.jsx)(j,_({as:"h2"},e)),h3:e=>(0,c.jsx)(j,_({as:"h3"},e)),h4:e=>(0,c.jsx)(j,_({as:"h4"},e)),h5:e=>(0,c.jsx)(j,_({as:"h5"},e)),h6:e=>(0,c.jsx)(j,_({as:"h6"},e)),admonition:v.Z,mermaid:function(e){return(0,c.jsx)(w.Z,{fallback:e=>(0,c.jsx)(P.Ac,Z({},e)),children:(0,c.jsx)(E,Z({},e))})}}),o=o={Code:p,Highlight:function({children:e,color:t}){return(0,c.jsx)("span",{style:{backgroundColor:t,borderRadius:"2px",color:"#fff",padding:"0.2rem"},children:e})},TweetQuote:function({url:e,handle:t,name:r,job:n,children:o}){let i=`https://unavatar.io/twitter/${t}`,a=`https://twitter.com/${t}`;return(0,c.jsxs)("figure",{className:"tweetQuote_h8Rz",children:[(0,c.jsx)("blockquote",{children:(0,c.jsx)(f.Z,{to:e,children:o})}),(0,c.jsx)("figcaption",{children:(0,c.jsx)(f.Z,{to:a,rel:"nofollow",children:(0,c.jsxs)("div",{className:"avatar",children:[(0,c.jsx)("img",{alt:r,className:(0,m.Z)("avatar__photo","avatarImg_b51M"),src:i}),(0,c.jsxs)("div",{className:(0,m.Z)("avatar__intro"),children:[(0,c.jsx)("strong",{className:"avatar__name",children:(0,c.jsx)("cite",{children:r})}),(0,c.jsx)("small",{className:"avatar__subtitle",itemProp:"description",children:n})]})]})})})]})}},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}),n);function B({children:e}){return(0,c.jsx)(a.Z,{components:C,children:e})}},6649:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(24246);r(27378);var o=r(40624),c=r(41428);function i(e){let{permalink:t,title:r,subLabel:i,isNext:a}=e;return(0,n.jsxs)(c.Z,{className:(0,o.Z)("pagination-nav__link",a?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t,children:[i&&(0,n.jsx)("div",{className:"pagination-nav__sublabel",children:i}),(0,n.jsx)("div",{className:"pagination-nav__label",children:r})]})}},52977:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(24246);r(27378);var o=r(40624),c=r(41428);let i={tag:"tag_Nd8t",tagRegular:"tagRegular_TiLs",tagWithCount:"tagWithCount_AQg7"};function a({permalink:e,label:t,count:r,description:a}){return(0,n.jsxs)(c.Z,{href:e,title:a,className:(0,o.Z)(i.tag,r?i.tagWithCount:i.tagRegular),children:[t,r&&(0,n.jsx)("span",{children:r})]})}},62804:(e,t,r)=>{r.d(t,{Z:()=>a});var n=r(24246);r(27378);var o=r(40624),c=r(36712),i=r(52977);function a({tags:e}){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("b",{children:(0,n.jsx)(c.Z,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),(0,n.jsx)("ul",{className:(0,o.Z)("tags_rTaS","padding--none","margin-left--sm"),children:e.map(e=>(0,n.jsx)("li",{className:"tag_l5va",children:(0,n.jsx)(i.Z,function(e){for(var t=1;t{r.d(t,{HV:()=>s,J$:()=>b,Wi:()=>a,ds:()=>l,fw:()=>u});var n=r(24246);r(27378);var o=r(36712),c=r(7812);function i(){let{selectMessage:e}=(0,c.c)();return t=>e(t,(0,o.I)({id:"theme.blog.post.plurals",description:'Pluralized label for "{count} posts". Use as much plural forms (separated by "|") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)',message:"One post|{count} posts"},{count:t}))}function a(e){let t=i();return(0,o.I)({id:"theme.blog.tagTitle",description:"The title of the page for a blog tag",message:'{nPosts} tagged with "{tagName}"'},{nPosts:t(e.count),tagName:e.label})}function l(e){let t=i();return(0,o.I)({id:"theme.blog.author.pageTitle",description:"The title of the page for a blog author",message:"{authorName} - {nPosts}"},{nPosts:t(e.count),authorName:e.name||e.key})}let s=()=>(0,o.I)({id:"theme.blog.authorsList.pageTitle",message:"Authors",description:"The title of the authors page"});function u(){return(0,n.jsx)(o.Z,{id:"theme.blog.authorsList.viewAll",description:"The label of the link targeting the blog authors page",children:"View all authors"})}function b(){return(0,n.jsx)(o.Z,{id:"theme.blog.author.noPosts",description:"The text for authors with 0 blog post",children:"This author has not written any posts yet."})}},44800:(e,t,r)=>{r.d(t,{T$:()=>l,cI:()=>i,eU:()=>a,ht:()=>s,xo:()=>u});var n=r(24246);r(27378);var o=r(36712),c=r(97134);function i(){return(0,n.jsx)(o.Z,{id:"theme.contentVisibility.unlistedBanner.title",description:"The unlisted content banner title",children:"Unlisted page"})}function a(){return(0,n.jsx)(o.Z,{id:"theme.contentVisibility.unlistedBanner.message",description:"The unlisted content banner message",children:"This page is unlisted. Search engines will not index it, and only users having a direct link can access it."})}function l(){return(0,n.jsx)(c.Z,{children:(0,n.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}function s(){return(0,n.jsx)(o.Z,{id:"theme.contentVisibility.draftBanner.title",description:"The draft content banner title",children:"Draft page"})}function u(){return(0,n.jsx)(o.Z,{id:"theme.contentVisibility.draftBanner.message",description:"The draft content banner message",children:"This page is a draft. It will only be visible in dev and be excluded from the production build."})}},54461:(e,t,r)=>{r.d(t,{P:()=>o});var n=r(4423);function o(e={}){let{i18n:{currentLocale:t}}=(0,n.Z)(),r=function(){let{i18n:{currentLocale:e,localeConfigs:t}}=(0,n.Z)();return t[e].calendar}();return new Intl.DateTimeFormat(t,function(e){for(var t=1;t{r.d(t,{c:()=>l});var n=r(27378),o=r(4423);let c=["zero","one","two","few","many","other"];function i(e){return c.filter(t=>e.includes(t))}let a={locale:"en",pluralForms:i(["one","other"]),select:e=>1===e?"one":"other"};function l(){let e=function(){let{i18n:{currentLocale:e}}=(0,o.Z)();return(0,n.useMemo)(()=>{try{return function(e){let t=new Intl.PluralRules(e);return{locale:e,pluralForms:i(t.resolvedOptions().pluralCategories),select:e=>t.select(e)}}(e)}catch(t){return console.error(`Failed to use Intl.PluralRules for locale "${e}". Docusaurus will fallback to the default (English) implementation. Error: ${t.message} `),a}},[e])}();return{selectMessage:(t,r)=>(function(e,t,r){let n=e.split("|");if(1===n.length)return n[0];n.length>r.pluralForms.length&&console.error(`For locale=${r.locale}, a maximum of ${r.pluralForms.length} plural forms are expected (${r.pluralForms.join(",")}), but the message contains ${n.length}: ${e}`);let o=r.select(t);return n[Math.min(r.pluralForms.indexOf(o),n.length-1)]})(r,t,e)}}},94544:(e,t,r)=>{r.d(t,{Z:()=>c});var n=r(24246);r(27378);var o=r(29088);function c({children:e,fallback:t}){return(0,o.Z)()?(0,n.jsx)(n.Fragment,{children:null==e?void 0:e()}):null!=t?t:null}},38112:(e,t,r)=>{r.d(t,{Z:()=>ea});var n,o,c,i={};r.r(i),r.d(i,{ButtonExample:()=>E});var a=r(24246),l=r(27378),s=r(40624),u=r(29088),b=r(32711),p=r(36712),f=r(4423),O=r(94544),d=r(30691),y=r(78844),j=r(73919);function m(){let{prism:e}=(0,j.L)(),{colorMode:t}=(0,y.I)(),r=e.theme,n=e.darkTheme||r;return"dark"===t?n:r}var g=r(88941);function h(e){for(var t=1;t(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g.Z,{fallback:e=>(0,a.jsx)(d.Ac,h({},e)),children:(0,a.jsx)(b.i5,{})}),(0,a.jsx)(b.IF,{})]})})}function x(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(v,{children:(0,a.jsx)(p.Z,{id:"theme.Playground.result",description:"The result label of the live codeblocks",children:"Result"})}),(0,a.jsx)("div",{className:"playgroundPreview_mApW",children:(0,a.jsx)(P,{})})]})}function S(){let e=(0,u.Z)();return(0,a.jsx)(b.uz,{className:"playgroundEditor_TySg"},String(e))}function k(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(v,{children:(0,a.jsx)(p.Z,{id:"theme.Playground.liveEditor",description:"The live editor label of the live codeblocks",children:"Live Editor"})}),(0,a.jsx)(S,{})]})}let D=e=>`${e};`;function Z(e){var t,r,n,o,{children:c,transformCode:i}=e,l=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["children","transformCode"]);let{siteConfig:{themeConfig:s}}=(0,f.Z)(),{liveCodeBlock:{playgroundPosition:u}}=s,p=m(),O=null!==(o=null===(n=l.metastring)||void 0===n?void 0:n.includes("noInline"))&&void 0!==o&&o;return(0,a.jsx)("div",{className:"playgroundContainer_6Ior",children:(0,a.jsx)(b.nu,(t=h({code:null==c?void 0:c.replace(/\n$/,""),noInline:O,transformCode:null!=i?i:D,theme:p},l),r=r={children:"top"===u?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x,{}),(0,a.jsx)(k,{})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(k,{}),(0,a.jsx)(x,{})]})},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))})}function N(e){for(var t=1;t[\"'])(?.*?)\\1"),I=RegExp("\\{(?<range>[\\d,-]+)\\}"),M={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"<!--",end:"-->"}},A=(n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},M),o=o={lua:{start:"--",end:""},wasm:{start:"\\;\\;",end:""},tex:{start:"%",end:""},vb:{start:"['\u2018\u2019]",end:""},vbnet:{start:"(?:_\\s*)?['\u2018\u2019]",end:""},rem:{start:"[Rr][Ee][Mm]\\b",end:""},f90:{start:"!",end:""},ml:{start:"\\(\\*",end:"\\*\\)"},cobol:{start:"\\*>",end:""}},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(o)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(o)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(o,e))}),n),R=Object.keys(M);function H(e,t){let r=e.map(e=>{let{start:r,end:n}=A[e];return`(?:${r}\\s*(${t.flatMap(e=>{var t,r;return[e.line,null===(t=e.block)||void 0===t?void 0:t.start,null===(r=e.block)||void 0===r?void 0:r.end].filter(Boolean)}).join("|")})\\s*${n})`}).join("|");return RegExp(`^\\s*(?:${r})\\s*$`)}function z(e){var t,r,{as:n}=e,o=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["as"]);let c=function(e){let t={color:"--prism-color",backgroundColor:"--prism-background-color"},r={};return Object.entries(e.plain).forEach(([e,n])=>{let o=t[e];o&&"string"==typeof n&&(r[o]=n)}),r}(m());return(0,a.jsx)(n,(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},o),r=r={style:c,className:(0,s.Z)(o.className,"codeBlockContainer_jDV4",C.k.common.codeBlock)},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}let $={codeBlockContent:"codeBlockContent_vx7S",codeBlockTitle:"codeBlockTitle_bdru",codeBlock:"codeBlock_Gebt",codeBlockStandalone:"codeBlockStandalone_i_cY",codeBlockLines:"codeBlockLines_FJaf",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_FU9Q",buttonGroup:"buttonGroup_cUGO"};function U({children:e,className:t}){return(0,a.jsx)(z,{as:"pre",tabIndex:0,className:(0,s.Z)($.codeBlockStandalone,"thin-scrollbar",t),children:(0,a.jsx)("code",{className:$.codeBlockLines,children:e})})}var F=r(51114);let V={attributes:!0,characterData:!0,childList:!0,subtree:!0};var W=r(26101);let G={codeLine:"codeLine_qRmp",codeLineNumber:"codeLineNumber_dS_J",codeLineContent:"codeLineContent_XF5l"};function q(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function Q({line:e,classNames:t,showLineNumbers:r,getLineProps:n,getTokenProps:o}){var c,i;1===e.length&&"\n"===e[0].content&&(e[0].content="");let l=n({line:e,className:(0,s.Z)(t,r&&G.codeLine)}),u=e.map((e,t)=>(0,a.jsx)("span",q({},o({token:e})),t));return(0,a.jsxs)("span",(c=q({},l),i=i={children:[r?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:G.codeLineNumber}),(0,a.jsx)("span",{className:G.codeLineContent,children:u})]}):u,(0,a.jsx)("br",{})]},Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(i)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(i)).forEach(function(e){Object.defineProperty(c,e,Object.getOwnPropertyDescriptor(i,e))}),c))}var Y=r(34370);function X(e){var t,r;return(0,a.jsx)("svg",(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({viewBox:"0 0 24 24"},e),r=r={children:(0,a.jsx)("path",{fill:"currentColor",d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"})},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}function J(e){var t,r;return(0,a.jsx)("svg",(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({viewBox:"0 0 24 24"},e),r=r={children:(0,a.jsx)("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}let K={copyButtonCopied:"copyButtonCopied_OkN_",copyButtonIcons:"copyButtonIcons_OqsO",copyButtonIcon:"copyButtonIcon_PgCn",copyButtonSuccessIcon:"copyButtonSuccessIcon_bsQG"};function ee({code:e,className:t}){let[r,n]=(0,l.useState)(!1),o=(0,l.useRef)(void 0),c=(0,l.useCallback)(()=>{(0,Y.Z)(e),n(!0),o.current=window.setTimeout(()=>{n(!1)},1e3)},[e]);return(0,l.useEffect)(()=>()=>window.clearTimeout(o.current),[]),(0,a.jsx)("button",{type:"button","aria-label":r?(0,p.I)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,p.I)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,p.I)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,s.Z)("clean-btn",t,K.copyButton,r&&K.copyButtonCopied),onClick:c,children:(0,a.jsxs)("span",{className:K.copyButtonIcons,"aria-hidden":"true",children:[(0,a.jsx)(X,{className:K.copyButtonIcon}),(0,a.jsx)(J,{className:K.copyButtonSuccessIcon})]})})}function et(e){var t,r;return(0,a.jsx)("svg",(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({viewBox:"0 0 24 24"},e),r=r={children:(0,a.jsx)("path",{fill:"currentColor",d:"M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3l3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"})},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))}let er={wordWrapButtonIcon:"wordWrapButtonIcon_MQXS",wordWrapButtonEnabled:"wordWrapButtonEnabled_TBIH"};function en({className:e,onClick:t,isEnabled:r}){let n=(0,p.I)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,a.jsx)("button",{type:"button",onClick:t,className:(0,s.Z)("clean-btn",e,r&&er.wordWrapButtonEnabled),"aria-label":n,title:n,children:(0,a.jsx)(et,{className:er.wordWrapButtonIcon,"aria-hidden":"true"})})}function eo({children:e,className:t="",metastring:r,title:n,showLineNumbers:o,language:c}){var i,u,b,p;let{prism:{defaultLanguage:f,magicComments:O}}=(0,j.L)(),d=null==(u=null!==(i=null!=c?c:function(e){let t=e.split(" ").find(e=>e.startsWith("language-"));return null==t?void 0:t.replace(/language-/,"")}(t))&&void 0!==i?i:f)?void 0:u.toLowerCase(),y=m(),g=function(){let[e,t]=(0,l.useState)(!1),[r,n]=(0,l.useState)(!1),o=(0,l.useRef)(null),c=(0,l.useCallback)(()=>{let r=o.current.querySelector("code");e?r.removeAttribute("style"):(r.style.whiteSpace="pre-wrap",r.style.overflowWrap="anywhere"),t(e=>!e)},[o,e]),i=(0,l.useCallback)(()=>{let{scrollWidth:e,clientWidth:t}=o.current;n(e>t||o.current.querySelector("code").hasAttribute("style"))},[o]);return!function(e,t){let[r,n]=(0,l.useState)(),o=(0,l.useCallback)(()=>{var t;n(null===(t=e.current)||void 0===t?void 0:t.closest("[role=tabpanel][hidden]"))},[e,n]);(0,l.useEffect)(()=>{o()},[o]),function(e,t,r=V){let n=(0,F.zX)(t),o=(0,F.Ql)(r);(0,l.useEffect)(()=>{let t=new MutationObserver(n);return e&&t.observe(e,o),()=>t.disconnect()},[e,n,o])}(r,e=>{e.forEach(e=>{"attributes"===e.type&&"hidden"===e.attributeName&&(t(),o())})},{attributes:!0,characterData:!1,childList:!1,subtree:!1})}(o,i),(0,l.useEffect)(()=>{i()},[e,i]),(0,l.useEffect)(()=>(window.addEventListener("resize",i,{passive:!0}),()=>{window.removeEventListener("resize",i)}),[i]),{codeBlockRef:o,isEnabled:e,isCodeScrollable:r,toggle:c}}(),h=(null!==(p=null==r?void 0:null===(b=r.match(L))||void 0===b?void 0:b.groups.title)&&void 0!==p?p:"")||n,{lineClassNames:v,code:w}=function(e,t){let r=e.replace(/\n$/,""),{language:n,magicComments:o,metastring:c}=t;if(c&&I.test(c)){let e=c.match(I).groups.range;if(0===o.length)throw Error(`A highlight range has been given in code block's metastring (\`\`\` ${c}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);let t=o[0].className;return{lineClassNames:Object.fromEntries(T()(e).filter(e=>e>0).map(e=>[e-1,[t]])),code:r}}if(void 0===n)return{lineClassNames:{},code:r};let i=function(e,t){switch(e){case"js":case"javascript":case"ts":case"typescript":return H(["js","jsBlock"],t);case"jsx":case"tsx":return H(["js","jsBlock","jsx"],t);case"html":return H(["js","jsBlock","html"],t);case"python":case"py":case"bash":return H(["bash"],t);case"markdown":case"md":return H(["html","jsx","bash"],t);case"tex":case"latex":case"matlab":return H(["tex"],t);case"lua":case"haskell":case"sql":return H(["lua"],t);case"wasm":return H(["wasm"],t);case"vb":case"vba":case"visual-basic":return H(["vb","rem"],t);case"vbnet":return H(["vbnet","rem"],t);case"batch":return H(["rem"],t);case"basic":return H(["rem","f90"],t);case"fsharp":return H(["js","ml"],t);case"ocaml":case"sml":return H(["ml"],t);case"fortran":return H(["f90"],t);case"cobol":return H(["cobol"],t);default:return H(R,t)}}(n,o),a=r.split("\n"),l=Object.fromEntries(o.map(e=>[e.className,{start:0,range:""}])),s=Object.fromEntries(o.filter(e=>e.line).map(({className:e,line:t})=>[t,e])),u=Object.fromEntries(o.filter(e=>e.block).map(({className:e,block:t})=>[t.start,e])),b=Object.fromEntries(o.filter(e=>e.block).map(({className:e,block:t})=>[t.end,e]));for(let e=0;e<a.length;){let t=a[e].match(i);if(!t){e+=1;continue}let r=t.slice(1).find(e=>void 0!==e);s[r]?l[s[r]].range+=`${e},`:u[r]?l[u[r]].start=e:b[r]&&(l[b[r]].range+=`${l[b[r]].start}-${e-1},`),a.splice(e,1)}r=a.join("\n");let p={};return Object.entries(l).forEach(([e,{range:t}])=>{T()(t).forEach(t=>{var r;null!==(r=p[t])&&void 0!==r||(p[t]=[]),p[t].push(e)})}),{lineClassNames:p,code:r}}(e,{metastring:r,language:d,magicComments:O}),P=null!=o?o:!!(null==r?void 0:r.includes("showLineNumbers"));return(0,a.jsxs)(z,{as:"div",className:(0,s.Z)(t,d&&!t.includes(`language-${d}`)&&`language-${d}`),children:[h&&(0,a.jsx)("div",{className:$.codeBlockTitle,children:h}),(0,a.jsxs)("div",{className:$.codeBlockContent,children:[(0,a.jsx)(W.y$,{theme:y,code:w,language:null!=d?d:"text",children:({className:e,style:t,tokens:r,getLineProps:n,getTokenProps:o})=>(0,a.jsx)("pre",{tabIndex:0,ref:g.codeBlockRef,className:(0,s.Z)(e,$.codeBlock,"thin-scrollbar"),style:t,children:(0,a.jsx)("code",{className:(0,s.Z)($.codeBlockLines,P&&$.codeBlockLinesWithNumbering),children:r.map((e,t)=>(0,a.jsx)(Q,{line:e,getLineProps:n,getTokenProps:o,classNames:v[t],showLineNumbers:P},t))})})}),(0,a.jsxs)("div",{className:$.buttonGroup,children:[(g.isEnabled||g.isCodeScrollable)&&(0,a.jsx)(en,{className:$.codeButton,onClick:()=>g.toggle(),isEnabled:g.isEnabled}),(0,a.jsx)(ee,{className:$.codeButton,code:w})]})]})]})}function ec(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}let ei=(c=function(e){var t,r,{children:n}=e,o=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["children"]);let c=(0,u.Z)(),i=l.Children.toArray(n).some(e=>(0,l.isValidElement)(e))?n:Array.isArray(n)?n.join(""):n,s="string"==typeof i?eo:U;return(0,a.jsx)(s,(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},o),r=r={children:i},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t),String(c))},function(e){return e.live?(0,a.jsx)(Z,ec({scope:_},e)):(0,a.jsx)(c,ec({},e))});function ea(e){return(0,a.jsx)(ei,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e))}}}]);