mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 08:49:51 +02:00
1 line
No EOL
41 KiB
JavaScript
1 line
No EOL
41 KiB
JavaScript
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["87048"],{37796:function(e,t,n){n.d(t,{Z:function(){return r}});var s=n(85893);function r(e){return(0,s.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"})})}n(67294)},49356:function(e,t,n){n.d(t,{Z:()=>C});var s=n("85893"),r=n("67294"),i=n("90496"),a=n("77827"),l=n("55951");let o={admonition:"admonition_o5H7",admonitionHeading:"admonitionHeading_FzoX",admonitionIcon:"admonitionIcon_rXq6",admonitionContent:"admonitionContent_Knsx"};function c(e){let{type:t,className:n,children:r}=e;return(0,s.jsx)("div",{className:(0,i.Z)(l.k.common.admonition,l.k.common.admonitionType(t),o.admonition,n),children:r})}function d(e){let{icon:t,title:n}=e;return(0,s.jsxs)("div",{className:o.admonitionHeading,children:[(0,s.jsx)("span",{className:o.admonitionIcon,children:t}),n]})}function u(e){let{children:t}=e;return t?(0,s.jsx)("div",{className:o.admonitionContent,children:t}):null}function h(e){let{type:t,icon:n,title:r,children:i,className:a}=e;return(0,s.jsxs)(c,{type:t,className:a,children:[r||n?(0,s.jsx)(d,{title:r,icon:n}):null,(0,s.jsx)(u,{children:i})]})}let m={icon:(0,s.jsx)(function(e){return(0,s.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"})})},{}),title:(0,s.jsx)(a.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function f(e){return(0,s.jsx)(h,{...m,...e,className:(0,i.Z)("alert alert--secondary",e.className),children:e.children})}let x={icon:(0,s.jsx)(function(e){return(0,s.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"})})},{}),title:(0,s.jsx)(a.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function p(e){return(0,s.jsx)(h,{...x,...e,className:(0,i.Z)("alert alert--success",e.className),children:e.children})}var j=n("37796");let b={icon:(0,s.jsx)(j.Z,{}),title:(0,s.jsx)(a.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function v(e){return(0,s.jsx)(h,{...b,...e,className:(0,i.Z)("alert alert--info",e.className),children:e.children})}function g(e){return(0,s.jsx)("svg",{viewBox:"0 0 16 16",...e,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"})})}let Z={icon:(0,s.jsx)(g,{}),title:(0,s.jsx)(a.Z,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})},N={icon:(0,s.jsx)(function(e){return(0,s.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"})})},{}),title:(0,s.jsx)(a.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})},k={icon:(0,s.jsx)(g,{}),title:(0,s.jsx)(a.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})};var y=n("57922");let _={note:f,tip:p,info:v,warning:function(e){return(0,s.jsx)(h,{...Z,...e,className:(0,i.Z)("alert alert--warning",e.className),children:e.children})},danger:function(e){return(0,s.jsx)(h,{...N,...e,className:(0,i.Z)("alert alert--danger",e.className),children:e.children})},secondary:e=>(0,s.jsx)(f,{title:"secondary",...e}),important:e=>(0,s.jsx)(v,{title:"important",...e}),success:e=>(0,s.jsx)(p,{title:"success",...e}),caution:function(e){return(0,s.jsx)(h,{...k,...e,className:(0,i.Z)("alert alert--warning",e.className),children:e.children})},"my-custom-admonition":function(e){return(0,s.jsxs)("div",{style:{border:"solid red",padding:10},children:[(0,s.jsx)(y.Z,{as:"h5",style:{color:"blue",fontSize:30},children:e.title}),(0,s.jsx)("div",{children:e.children})]})}};function C(e){let t=function(e){let{mdxAdmonitionTitle:t,rest:n}=function(e){let t=r.Children.toArray(e),n=t.find(e=>r.isValidElement(e)&&"mdxAdmonitionTitle"===e.type),i=t.filter(e=>e!==n);return{mdxAdmonitionTitle:n?.props.children,rest:i.length>0?(0,s.jsx)(s.Fragment,{children:i}):null}}(e.children),i=e.title??t;return{...e,...i&&{title:i},children:n}}(e),n=function(e){let t=_[e];return t||(console.warn(`No admonition component found for admonition type "${e}". Using Info as fallback.`),_.info)}(t.type);return(0,s.jsx)(n,{...t})}},12221:function(e,t,n){n.d(t,{Z:function(){return c}});var s=n(85893);n(67294);var r=n(90496),i=n(68746),a=n(55951),l=n(49356);function o(e){let{className:t}=e;return(0,s.jsx)(l.Z,{type:"caution",title:(0,s.jsx)(i.cI,{}),className:(0,r.Z)(t,a.k.common.unlistedBanner),children:(0,s.jsx)(i.eU,{})})}function c(e){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.T$,{}),(0,s.jsx)(o,{...e})]})}},74291:function(e,t,n){n.d(t,{Z:()=>d});var s=n("85893");n("67294");var r=n("90496"),i=n("68746"),a=n("55951"),l=n("49356");function o(e){let{className:t}=e;return(0,s.jsx)(l.Z,{type:"caution",title:(0,s.jsx)(i.ht,{}),className:(0,r.Z)(t,a.k.common.draftBanner),children:(0,s.jsx)(i.xo,{})})}var c=n("12221");function d(e){let{metadata:t}=e,{unlisted:n,frontMatter:r}=t;return(0,s.jsxs)(s.Fragment,{children:[(n||r.unlisted)&&(0,s.jsx)(c.Z,{}),r.draft&&(0,s.jsx)(o,{})]})}},2769:function(e,t,n){n.d(t,{Z:()=>h});var s=n("85893"),r=n("67294"),i=n("90496"),a=n("96700"),l=n("71607"),o=n("97812");let c={details:"details_Nokh",isBrowser:"isBrowser_QrB5",collapsibleContent:"collapsibleContent_EoA1"};function d(e){return!!e&&("SUMMARY"===e.tagName||d(e.parentElement))}function u(e){let{summary:t,children:n,...u}=e;(0,a.Z)().collectAnchor(u.id);let h=(0,l.Z)(),m=(0,r.useRef)(null),{collapsed:f,setCollapsed:x}=(0,o.u)({initialState:!u.open}),[p,j]=(0,r.useState)(u.open),b=r.isValidElement(t)?t:(0,s.jsx)("summary",{children:t??"Details"});return(0,s.jsxs)("details",{...u,ref:m,open:p,"data-collapsed":f,className:(0,i.Z)(c.details,h&&c.isBrowser,u.className),onMouseDown:e=>{d(e.target)&&e.detail>1&&e.preventDefault()},onClick:e=>{e.stopPropagation();let t=e.target;d(t)&&function e(t,n){return!!t&&(t===n||e(t.parentElement,n))}(t,m.current)&&(e.preventDefault(),f?(x(!1),j(!0)):x(!0))},children:[b,(0,s.jsx)(o.z,{lazy:!1,collapsed:f,disableSSRStyle:!0,onCollapseTransitionEnd:e=>{x(e),j(!e)},children:(0,s.jsx)("div",{className:c.collapsibleContent,children:n})})]})}function h(e){let{...t}=e;return(0,s.jsx)(u,{...t,className:(0,i.Z)("alert alert--info","details_Cn_P",t.className)})}},30267:function(e,t,n){n.d(t,{Z:()=>x});var s=n("85893");n("67294");var r=n("90496"),i=n("55951"),a=n("85921"),l=n("71208"),o=n("35363"),c=n("77827"),d=n("83631");function u(e){return(0,s.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,s.jsx)("path",{d:"M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z",fill:"currentColor"})})}function h(){let e=(0,d.ZP)("/");return(0,s.jsx)("li",{className:"breadcrumbs__item",children:(0,s.jsx)(o.Z,{"aria-label":(0,c.I)({id:"theme.docs.breadcrumbs.home",message:"Home page",description:"The ARIA label for the home page in the breadcrumbs"}),className:"breadcrumbs__link",href:e,children:(0,s.jsx)(u,{className:"breadcrumbHomeIcon_uaSn"})})})}function m(e){let{children:t,href:n,isLast:r}=e,i="breadcrumbs__link";return r?(0,s.jsx)("span",{className:i,itemProp:"name",children:t}):n?(0,s.jsx)(o.Z,{className:i,href:n,itemProp:"item",children:(0,s.jsx)("span",{itemProp:"name",children:t})}):(0,s.jsx)("span",{className:i,children:t})}function f(e){let{children:t,active:n,index:i,addMicrodata:a}=e;return(0,s.jsxs)("li",{...a&&{itemScope:!0,itemProp:"itemListElement",itemType:"https://schema.org/ListItem"},className:(0,r.Z)("breadcrumbs__item",{"breadcrumbs__item--active":n}),children:[t,(0,s.jsx)("meta",{itemProp:"position",content:String(i+1)})]})}function x(){let e=(0,a.s1)(),t=(0,l.Ns)();return e?(0,s.jsx)("nav",{className:(0,r.Z)(i.k.docs.docBreadcrumbs,"breadcrumbsContainer_Wvrh"),"aria-label":(0,c.I)({id:"theme.docs.breadcrumbs.navAriaLabel",message:"Breadcrumbs",description:"The ARIA label for the breadcrumbs"}),children:(0,s.jsxs)("ul",{className:"breadcrumbs",itemScope:!0,itemType:"https://schema.org/BreadcrumbList",children:[t&&(0,s.jsx)(h,{}),e.map((t,n)=>{let r=n===e.length-1,i="category"===t.type&&t.linkUnlisted?void 0:t.href;return(0,s.jsx)(f,{active:r,index:n,addMicrodata:!!i,children:(0,s.jsx)(m,{href:i,isLast:r,children:t.label})},n)})]})}):null}},6749:function(e,t,n){n.r(t),n.d(t,{default:()=>I});var s=n("85893"),r=n("67294"),i=n("57335"),a=n("50923");let l=r.createContext(null);function o(e){let{children:t,content:n}=e,i=(0,r.useMemo)(()=>({metadata:n.metadata,frontMatter:n.frontMatter,assets:n.assets,contentTitle:n.contentTitle,toc:n.toc}),[n]);return(0,s.jsx)(l.Provider,{value:i,children:t})}function c(){let e=(0,r.useContext)(l);if(null===e)throw new a.i6("DocProvider");return e}function d(){let{metadata:e,frontMatter:t,assets:n}=c();return(0,s.jsx)(i.d,{title:e.title,description:e.description,keywords:t.keywords,image:n.image??t.image})}var u=n("90496"),h=n("28115"),m=n("62742");function f(){let{metadata:e}=c();return(0,s.jsx)(m.Z,{previous:e.previous,next:e.next})}var x=n("18219"),p=n("4903"),j=n("55951"),b=n("47294"),v=n("60114");function g(){let{metadata:e}=c(),{editUrl:t,lastUpdatedAt:n,lastUpdatedBy:r,tags:i}=e,a=i.length>0,l=!!(t||n||r);return a||l?(0,s.jsxs)("footer",{className:(0,u.Z)(j.k.docs.docFooter,"docusaurus-mt-lg"),children:[a&&(0,s.jsx)("div",{className:(0,u.Z)("row margin-top--sm",j.k.docs.docFooterTagsRow),children:(0,s.jsx)("div",{className:"col",children:(0,s.jsx)(b.Z,{tags:i})})}),l&&(0,s.jsx)(v.Z,{className:(0,u.Z)("margin-top--sm",j.k.docs.docFooterEditMetaRow),editUrl:t,lastUpdatedAt:n,lastUpdatedBy:r})]}):null}var Z=n("57589");function N(){let{toc:e,frontMatter:t}=c();return(0,s.jsx)(Z.Z,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:(0,u.Z)(j.k.docs.docTocMobile,"tocMobile_NSfz")})}var k=n("4458");function y(){let{toc:e,frontMatter:t}=c();return(0,s.jsx)(k.Z,{toc:e,minHeadingLevel:t.toc_min_heading_level,maxHeadingLevel:t.toc_max_heading_level,className:j.k.docs.docTocDesktop})}var _=n("57922"),C=n("84015");function w(e){let{children:t}=e,n=function(){let{metadata:e,frontMatter:t,contentTitle:n}=c();return t.hide_title||void 0!==n?null:e.title}();return(0,s.jsxs)("div",{className:(0,u.Z)(j.k.docs.docMarkdown,"markdown"),children:[n&&(0,s.jsx)("header",{children:(0,s.jsx)(_.Z,{as:"h1",children:n})}),(0,s.jsx)(C.Z,{children:t})]})}var L=n("30267"),B=n("74291");let T={docItemContainer:"docItemContainer_RhpI",docItemCol:"docItemCol_n6xZ"};function E(e){let{children:t}=e,n=function(){let{frontMatter:e,toc:t}=c(),n=(0,h.i)(),r=e.hide_table_of_contents,i=!r&&t.length>0;return{hidden:r,mobile:i?(0,s.jsx)(N,{}):void 0,desktop:i&&("desktop"===n||"ssr"===n)?(0,s.jsx)(y,{}):void 0}}(),{metadata:r}=c();return(0,s.jsxs)("div",{className:"row",children:[(0,s.jsxs)("div",{className:(0,u.Z)("col",!n.hidden&&T.docItemCol),children:[(0,s.jsx)(B.Z,{metadata:r}),(0,s.jsx)(x.Z,{}),(0,s.jsxs)("div",{className:T.docItemContainer,children:[(0,s.jsxs)("article",{children:[(0,s.jsx)(L.Z,{}),(0,s.jsx)(p.Z,{}),n.mobile,(0,s.jsx)(w,{children:t}),(0,s.jsx)(g,{})]}),(0,s.jsx)(f,{})]})]}),n.desktop&&(0,s.jsx)("div",{className:"col col--3",children:n.desktop})]})}function I(e){let t=`docs-doc-id-${e.content.metadata.id}`,n=e.content;return(0,s.jsx)(o,{content:e.content,children:(0,s.jsxs)(i.FG,{className:t,children:[(0,s.jsx)(d,{}),(0,s.jsx)(E,{children:(0,s.jsx)(n,{})})]})})}},62742:function(e,t,n){n.d(t,{Z:function(){return a}});var s=n(85893);n(67294);var r=n(77827),i=n(65773);function a(e){let{previous:t,next:n}=e;return(0,s.jsxs)("nav",{className:"pagination-nav docusaurus-mt-lg","aria-label":(0,r.I)({id:"theme.docs.paginator.navAriaLabel",message:"Docs pages",description:"The ARIA label for the docs pagination"}),children:[t&&(0,s.jsx)(i.Z,{...t,subLabel:(0,s.jsx)(r.Z,{id:"theme.docs.paginator.previous",description:"The label used to navigate to the previous doc",children:"Previous"})}),n&&(0,s.jsx)(i.Z,{...n,subLabel:(0,s.jsx)(r.Z,{id:"theme.docs.paginator.next",description:"The label used to navigate to the next doc",children:"Next"}),isNext:!0})]})}},4903:function(e,t,n){n.d(t,{Z:function(){return o}});var s=n(85893);n(67294);var r=n(90496),i=n(77827),a=n(55951),l=n(50223);function o(e){let{className:t}=e,n=(0,l.E)();return n.badge?(0,s.jsx)("span",{className:(0,r.Z)(t,a.k.docs.docVersionBadge,"badge badge--secondary"),children:(0,s.jsx)(i.Z,{id:"theme.docs.versionBadge.label",values:{versionLabel:n.label},children:"Version: {versionLabel}"})}):null}},18219:function(e,t,n){n.d(t,{Z:function(){return p}});var s=n(85893);n(67294);var r=n(90496),i=n(8156),a=n(35363),l=n(77827),o=n(90158),c=n(55951),d=n(99887),u=n(50223);let h={unreleased:function(e){let{siteTitle:t,versionMetadata:n}=e;return(0,s.jsx)(l.Z,{id:"theme.docs.versions.unreleasedVersionLabel",description:"The label used to tell the user that he's browsing an unreleased doc version",values:{siteTitle:t,versionLabel:(0,s.jsx)("b",{children:n.label})},children:"This is unreleased documentation for {siteTitle} {versionLabel} version."})},unmaintained:function(e){let{siteTitle:t,versionMetadata:n}=e;return(0,s.jsx)(l.Z,{id:"theme.docs.versions.unmaintainedVersionLabel",description:"The label used to tell the user that he's browsing an unmaintained doc version",values:{siteTitle:t,versionLabel:(0,s.jsx)("b",{children:n.label})},children:"This is documentation for {siteTitle} {versionLabel}, which is no longer actively maintained."})}};function m(e){let t=h[e.versionMetadata.banner];return(0,s.jsx)(t,{...e})}function f(e){let{versionLabel:t,to:n,onClick:r}=e;return(0,s.jsx)(l.Z,{id:"theme.docs.versions.latestVersionSuggestionLabel",description:"The label used to tell the user to check the latest version",values:{versionLabel:t,latestVersionLink:(0,s.jsx)("b",{children:(0,s.jsx)(a.Z,{to:n,onClick:r,children:(0,s.jsx)(l.Z,{id:"theme.docs.versions.latestVersionLinkLabel",description:"The label used for the latest version suggestion link label",children:"latest version"})})})},children:"For up-to-date documentation, see the {latestVersionLink} ({versionLabel})."})}function x(e){let{className:t,versionMetadata:n}=e,{siteConfig:{title:a}}=(0,i.Z)(),{pluginId:l}=(0,o.gA)({failfast:!0}),{savePreferredVersionName:u}=(0,d.J)(l),{latestDocSuggestion:h,latestVersionSuggestion:x}=(0,o.Jo)(l),p=h??x.docs.find(e=>e.id===x.mainDocId);return(0,s.jsxs)("div",{className:(0,r.Z)(t,c.k.docs.docVersionBanner,"alert alert--warning margin-bottom--md"),role:"alert",children:[(0,s.jsx)("div",{children:(0,s.jsx)(m,{siteTitle:a,versionMetadata:n})}),(0,s.jsx)("div",{className:"margin-top--md",children:(0,s.jsx)(f,{versionLabel:x.label,to:p.path,onClick:()=>u(x.name)})})]})}function p(e){let{className:t}=e,n=(0,u.E)();return n.banner?(0,s.jsx)(x,{className:t,versionMetadata:n}):null}},60114:function(e,t,n){n.d(t,{Z:()=>f});var s=n("85893");n("67294");var r=n("90496"),i=n("77827"),a=n("55951"),l=n("35363");function o(e){let{className:t,...n}=e;return(0,s.jsx)("svg",{fill:"currentColor",height:"20",width:"20",viewBox:"0 0 40 40",className:(0,r.Z)("iconEdit_IMw_",t),"aria-hidden":"true",...n,children:(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"m34.5 11.7l-3 3.1-6.3-6.3 3.1-3q0.5-0.5 1.2-0.5t1.1 0.5l3.9 3.9q0.5 0.4 0.5 1.1t-0.5 1.2z m-29.5 17.1l18.4-18.5 6.3 6.3-18.4 18.4h-6.3v-6.2z"})})})}function c(e){let{editUrl:t}=e;return(0,s.jsxs)(l.Z,{to:t,className:a.k.common.editThisPage,children:[(0,s.jsx)(o,{}),(0,s.jsx)(i.Z,{id:"theme.common.editThisPage",description:"The link label to edit the current page",children:"Edit this page"})]})}var d=n("90177");function u(e){let{lastUpdatedAt:t}=e,n=new Date(t),r=(0,d.P)({day:"numeric",month:"short",year:"numeric",timeZone:"UTC"}).format(n);return(0,s.jsx)(i.Z,{id:"theme.lastUpdated.atDate",description:"The words used to describe on which date a page has been last updated",values:{date:(0,s.jsx)("b",{children:(0,s.jsx)("time",{dateTime:n.toISOString(),itemProp:"dateModified",children:r})})},children:" on {date}"})}function h(e){let{lastUpdatedBy:t}=e;return(0,s.jsx)(i.Z,{id:"theme.lastUpdated.byUser",description:"The words used to describe by who the page has been last updated",values:{user:(0,s.jsx)("b",{children:t})},children:" by {user}"})}function m(e){let{lastUpdatedAt:t,lastUpdatedBy:n}=e;return(0,s.jsxs)("span",{className:a.k.common.lastUpdated,children:[(0,s.jsx)(i.Z,{id:"theme.lastUpdated.lastUpdatedAtBy",description:"The sentence used to display when a page has been last updated, and by who",values:{atDate:t?(0,s.jsx)(u,{lastUpdatedAt:t}):"",byUser:n?(0,s.jsx)(h,{lastUpdatedBy:n}):""},children:"Last updated{atDate}{byUser}"}),!1]})}function f(e){let{className:t,editUrl:n,lastUpdatedAt:i,lastUpdatedBy:a}=e;return(0,s.jsxs)("div",{className:(0,r.Z)("row",t),children:[(0,s.jsx)("div",{className:"col",children:n&&(0,s.jsx)(c,{editUrl:n})}),(0,s.jsx)("div",{className:(0,r.Z)("col","lastUpdated_OHCJ"),children:(i||a)&&(0,s.jsx)(m,{lastUpdatedAt:i,lastUpdatedBy:a})})]})}},84015:function(e,t,n){n.d(t,{Z:()=>L});var s=n("85893"),r=n("67294"),i=n("80980"),a=n("53327"),l=n("95998");function o(e){return(0,s.jsx)("code",{...e})}function c(e){return void 0!==e.children&&r.Children.toArray(e.children).every(e=>"string"==typeof e&&!e.includes("\n"))?(0,s.jsx)(o,{...e}):(0,s.jsx)(l.Z,{...e})}var d=n("35363"),u=n("2769");function h(e){let t=r.Children.toArray(e.children),n=t.find(e=>r.isValidElement(e)&&"summary"===e.type),i=(0,s.jsx)(s.Fragment,{children:t.filter(e=>e!==n)});return(0,s.jsx)(u.Z,{...e,summary:n,children:i})}var m=n("57922");function f(e){return(0,s.jsx)(m.Z,{...e})}var x=n("90496");let p={containsTaskList:"containsTaskList_k9gM"};var j=n("96700"),b=n("49356"),v=n("67490"),g=n("85108"),Z=n("26378"),N=n("45245"),k=n("57396");async function y(e){let{id:t,text:n,config:s}=e;k.Z.mermaidAPI.initialize(s);try{return await k.Z.render(t,n)}catch(e){throw document.querySelector(`#d${t}`)?.remove(),e}}function _(e){let{renderResult:t}=e,n=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=n.current;t.bindFunctions?.(e)},[t]),(0,s.jsx)("div",{ref:n,className:"docusaurus-mermaid-container container_RUsj",dangerouslySetInnerHTML:{__html:t.svg}})}function C(e){let{value:t}=e,n=function(e){let{text:t,config:n}=e,[s,i]=(0,r.useState)(null),a=(0,r.useRef)(`mermaid-svg-${Math.round(1e7*Math.random())}`).current,l=function(){let{colorMode:e}=(0,N.I)(),t=(0,Z.L)().mermaid,n=t.theme[e],{options:s}=t;return(0,r.useMemo)(()=>({startOnLoad:!1,...s,theme:n}),[n,s])}(),o=n??l;return(0,r.useEffect)(()=>{y({id:a,text:t,config:o}).then(i).catch(e=>{i(()=>{throw e})})},[a,t,o]),s}({text:t});return null===n?null:(0,s.jsx)(_,{renderResult:n})}let w={Head:a.Z,details:h,Details:h,code:c,a:function(e){return(0,s.jsx)(d.Z,{...e})},pre:function(e){return(0,s.jsx)(s.Fragment,{children:e.children})},ul:function(e){return(0,s.jsx)("ul",{...e,className:function(e){if(void 0!==e)return(0,x.Z)(e,e?.includes("contains-task-list")&&p.containsTaskList)}(e.className)})},li:function(e){return(0,j.Z)().collectAnchor(e.id),(0,s.jsx)("li",{...e})},img:function(e){var t;return(0,s.jsx)("img",{decoding:"async",loading:"lazy",...e,className:(t=e.className,(0,x.Z)(t,"img_vXGZ"))})},h1:e=>(0,s.jsx)(f,{as:"h1",...e}),h2:e=>(0,s.jsx)(f,{as:"h2",...e}),h3:e=>(0,s.jsx)(f,{as:"h3",...e}),h4:e=>(0,s.jsx)(f,{as:"h4",...e}),h5:e=>(0,s.jsx)(f,{as:"h5",...e}),h6:e=>(0,s.jsx)(f,{as:"h6",...e}),admonition:b.Z,mermaid:function(e){return(0,s.jsx)(v.Z,{fallback:e=>(0,s.jsx)(g.Ac,{...e}),children:(0,s.jsx)(C,{...e})})},Code:c,Highlight:function(e){let{children:t,color:n}=e;return(0,s.jsx)("span",{style:{backgroundColor:n,borderRadius:"2px",color:"#fff",padding:"0.2rem"},children:t})},TweetQuote:function(e){let{url:t,handle:n,name:r,job:i,children:a}=e,l=`https://unavatar.io/x/${n}`,o=`https://x.com/${n}`;return(0,s.jsxs)("figure",{className:"tweetQuote_h8Rz",children:[(0,s.jsx)("blockquote",{children:(0,s.jsx)(d.Z,{to:t,children:a})}),(0,s.jsx)("figcaption",{children:(0,s.jsx)(d.Z,{to:o,rel:"nofollow",children:(0,s.jsxs)("div",{className:"avatar",children:[(0,s.jsx)("img",{alt:r,className:(0,x.Z)("avatar__photo","avatarImg_b51M"),src:l}),(0,s.jsxs)("div",{className:(0,x.Z)("avatar__intro"),children:[(0,s.jsx)("strong",{className:"avatar__name",children:(0,s.jsx)("cite",{children:r})}),(0,s.jsx)("small",{className:"avatar__subtitle",itemProp:"description",children:i})]})]})})})]})}};function L(e){let{children:t}=e;return(0,s.jsx)(i.Z,{components:w,children:t})}},65773:function(e,t,n){n.d(t,{Z:function(){return a}});var s=n(85893);n(67294);var r=n(90496),i=n(35363);function a(e){let{permalink:t,title:n,subLabel:a,isNext:l}=e;return(0,s.jsxs)(i.Z,{className:(0,r.Z)("pagination-nav__link",l?"pagination-nav__link--next":"pagination-nav__link--prev"),to:t,children:[a&&(0,s.jsx)("div",{className:"pagination-nav__sublabel",children:a}),(0,s.jsx)("div",{className:"pagination-nav__label",children:n})]})}},4458:function(e,t,n){n.d(t,{Z:()=>a});var s=n("85893");n("67294");var r=n("90496"),i=n("89477");function a(e){let{className:t,...n}=e;return(0,s.jsx)("div",{className:(0,r.Z)("tableOfContents_RLlU","thin-scrollbar",t),children:(0,s.jsx)(i.Z,{...n,linkClassName:"table-of-contents__link toc-highlight",linkActiveClassName:"table-of-contents__link--active"})})}},57589:function(e,t,n){n.d(t,{Z:()=>u});var s=n("85893");n("67294");var r=n("90496"),i=n("97812"),a=n("89477"),l=n("77827");let o={tocCollapsibleButton:"tocCollapsibleButton_IbtT",tocCollapsibleButtonExpanded:"tocCollapsibleButtonExpanded_Nor3"};function c(e){let{collapsed:t,...n}=e;return(0,s.jsx)("button",{type:"button",...n,className:(0,r.Z)("clean-btn",o.tocCollapsibleButton,!t&&o.tocCollapsibleButtonExpanded,n.className),children:(0,s.jsx)(l.Z,{id:"theme.TOCCollapsible.toggleButtonLabel",description:"The label used by the button on the collapsible TOC component",children:"On this page"})})}let d={tocCollapsible:"tocCollapsible_BEWm",tocCollapsibleContent:"tocCollapsibleContent_FG8F",tocCollapsibleExpanded:"tocCollapsibleExpanded_FzA_"};function u(e){let{toc:t,className:n,minHeadingLevel:l,maxHeadingLevel:o}=e,{collapsed:u,toggleCollapsed:h}=(0,i.u)({initialState:!0});return(0,s.jsxs)("div",{className:(0,r.Z)(d.tocCollapsible,!u&&d.tocCollapsibleExpanded,n),children:[(0,s.jsx)(c,{collapsed:u,onClick:h}),(0,s.jsx)(i.z,{lazy:!0,className:d.tocCollapsibleContent,collapsed:u,children:(0,s.jsx)(a.Z,{toc:t,minHeadingLevel:l,maxHeadingLevel:o})})]})}},89477:function(e,t,n){n.d(t,{Z:()=>c});var s=n("85893"),r=n("67294"),i=n("26378");function a(e){let t=e.getBoundingClientRect();return t.top===t.bottom?a(e.parentNode):t}var l=n("35363");let o=r.memo(function e(t){let{toc:n,className:r,linkClassName:i,isChild:a}=t;return n.length?(0,s.jsx)("ul",{className:a?void 0:r,children:n.map(t=>(0,s.jsxs)("li",{children:[(0,s.jsx)(l.Z,{to:`#${t.id}`,className:i??void 0,dangerouslySetInnerHTML:{__html:t.value}}),(0,s.jsx)(e,{isChild:!0,toc:t.children,className:r,linkClassName:i})]},t.id))}):null});function c(e){let{toc:t,className:n="table-of-contents table-of-contents__left-border",linkClassName:l="table-of-contents__link",linkActiveClassName:c,minHeadingLevel:d,maxHeadingLevel:u,...h}=e,m=(0,i.L)(),f=d??m.tableOfContents.minHeadingLevel,x=u??m.tableOfContents.maxHeadingLevel,p=function(e){let{toc:t,minHeadingLevel:n,maxHeadingLevel:s}=e;return(0,r.useMemo)(()=>(function e(t){let{toc:n,minHeadingLevel:s,maxHeadingLevel:r}=t;return n.flatMap(t=>{let n=e({toc:t.children,minHeadingLevel:s,maxHeadingLevel:r});return t.level>=s&&t.level<=r?[{...t,children:n}]:n})})({toc:function(e){let t=e.map(e=>({...e,parentIndex:-1,children:[]})),n=Array(7).fill(-1);t.forEach((e,t)=>{let s=n.slice(2,e.level);e.parentIndex=Math.max(...s),n[e.level]=t});let s=[];return t.forEach(e=>{let{parentIndex:n,...r}=e;n>=0?t[n].children.push(r):s.push(r)}),s}(t),minHeadingLevel:n,maxHeadingLevel:s}),[t,n,s])}({toc:t,minHeadingLevel:f,maxHeadingLevel:x});return!function(e){let t=(0,r.useRef)(void 0),n=function(){let e=(0,r.useRef)(0),{navbar:{hideOnScroll:t}}=(0,i.L)();return(0,r.useEffect)(()=>{e.current=t?0:document.querySelector(".navbar").clientHeight},[t]),e}();(0,r.useEffect)(()=>{if(!e)return()=>{};let{linkClassName:s,linkActiveClassName:r,minHeadingLevel:i,maxHeadingLevel:l}=e;function o(){let e=Array.from(document.getElementsByClassName(s)),o=function(e,t){let{anchorTopOffset:n}=t,s=e.find(e=>a(e).top>=n);if(s){var r;return(r=a(s)).top>0&&r.bottom<window.innerHeight/2?s:e[e.indexOf(s)-1]??null}return e[e.length-1]??null}(function(e){let{minHeadingLevel:t,maxHeadingLevel:n}=e,s=[];for(let e=t;e<=n;e+=1)s.push(`h${e}.anchor`);return Array.from(document.querySelectorAll(s.join()))}({minHeadingLevel:i,maxHeadingLevel:l}),{anchorTopOffset:n.current}),c=e.find(e=>o&&o.id===decodeURIComponent(e.href.substring(e.href.indexOf("#")+1)));e.forEach(e=>{e===c?(t.current&&t.current!==e&&t.current.classList.remove(r),e.classList.add(r),t.current=e):e.classList.remove(r)})}return document.addEventListener("scroll",o),document.addEventListener("resize",o),o(),()=>{document.removeEventListener("scroll",o),document.removeEventListener("resize",o)}},[e,n])}((0,r.useMemo)(()=>{if(l&&c)return{linkClassName:l,linkActiveClassName:c,minHeadingLevel:f,maxHeadingLevel:x}},[l,c,f,x])),(0,s.jsx)(o,{toc:p,className:n,linkClassName:l,...h})}},63479:function(e,t,n){n.d(t,{Z:()=>l});var s=n("85893");n("67294");var r=n("90496"),i=n("35363");let a={tag:"tag_Nd8t",tagRegular:"tagRegular_TiLs",tagWithCount:"tagWithCount_AQg7"};function l(e){let{permalink:t,label:n,count:l,description:o}=e;return(0,s.jsxs)(i.Z,{href:t,title:o,className:(0,r.Z)(a.tag,l?a.tagWithCount:a.tagRegular),children:[n,l&&(0,s.jsx)("span",{children:l})]})}},47294:function(e,t,n){n.d(t,{Z:()=>l});var s=n("85893");n("67294");var r=n("90496"),i=n("77827"),a=n("63479");function l(e){let{tags:t}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("b",{children:(0,s.jsx)(i.Z,{id:"theme.tags.tagsListLabel",description:"The label alongside a tag list",children:"Tags:"})}),(0,s.jsx)("ul",{className:(0,r.Z)("tags_rTaS","padding--none","margin-left--sm"),children:t.map(e=>(0,s.jsx)("li",{className:"tag_l5va",children:(0,s.jsx)(a.Z,{...e})},e.permalink))})]})}},68746:function(e,t,n){n.d(t,{T$:function(){return o},cI:function(){return a},eU:function(){return l},ht:function(){return c},xo:function(){return d}});var s=n(85893);n(67294);var r=n(77827),i=n(53327);function a(){return(0,s.jsx)(r.Z,{id:"theme.contentVisibility.unlistedBanner.title",description:"The unlisted content banner title",children:"Unlisted page"})}function l(){return(0,s.jsx)(r.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 o(){return(0,s.jsx)(i.Z,{children:(0,s.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}function c(){return(0,s.jsx)(r.Z,{id:"theme.contentVisibility.draftBanner.title",description:"The draft content banner title",children:"Draft page"})}function d(){return(0,s.jsx)(r.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."})}},90177:function(e,t,n){n.d(t,{P:function(){return r}});var s=n(8156);function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{i18n:{currentLocale:t}}=(0,s.Z)(),n=function(){let{i18n:{currentLocale:e,localeConfigs:t}}=(0,s.Z)();return t[e].calendar}();return new Intl.DateTimeFormat(t,{calendar:n,...e})}},56497:function(e,t,n){n.d(t,{Z:function(){return i}});var s=n(85893);n(67294);var r=n(71607);function i(e){let{children:t,fallback:n}=e;return(0,r.Z)()?(0,s.jsx)(s.Fragment,{children:t?.()}):n??null}},95998:function(e,t,n){n.d(t,{Z:()=>et});var s,r={};n.r(r),n.d(r,{ButtonExample:()=>C});var i=n("85893"),a=n("67294"),l=n("90496"),o=n("71607"),c=n("10075"),d=n("77827"),u=n("8156"),h=n("56497"),m=n("85108"),f=n("45245"),x=n("26378");function p(){let{prism:e}=(0,x.L)(),{colorMode:t}=(0,f.I)(),n=e.theme,s=e.darkTheme||n;return"dark"===t?s:n}var j=n("67490");function b(e){let{children:t}=e;return(0,i.jsx)("div",{className:(0,l.Z)("playgroundHeader_Tvsk"),children:t})}function v(){return(0,i.jsx)("div",{children:"Loading..."})}function g(){return(0,i.jsx)(h.Z,{fallback:(0,i.jsx)(v,{}),children:()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(j.Z,{fallback:e=>(0,i.jsx)(m.Ac,{...e}),children:(0,i.jsx)(c.i5,{})}),(0,i.jsx)(c.IF,{})]})})}function Z(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(b,{children:(0,i.jsx)(d.Z,{id:"theme.Playground.result",description:"The result label of the live codeblocks",children:"Result"})}),(0,i.jsx)("div",{className:"playgroundPreview_mApW",children:(0,i.jsx)(g,{})})]})}function N(){let e=(0,o.Z)();return(0,i.jsx)(c.uz,{className:"playgroundEditor_TySg"},String(e))}function k(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(b,{children:(0,i.jsx)(d.Z,{id:"theme.Playground.liveEditor",description:"The live editor label of the live codeblocks",children:"Live Editor"})}),(0,i.jsx)(N,{})]})}let y=e=>`${e};`;function _(e){let{children:t,transformCode:n,...s}=e,{siteConfig:{themeConfig:r}}=(0,u.Z)(),{liveCodeBlock:{playgroundPosition:a}}=r,l=p(),o=s.metastring?.includes("noInline")??!1;return(0,i.jsx)("div",{className:"playgroundContainer_6Ior",children:(0,i.jsx)(c.nu,{code:t?.replace(/\n$/,""),noInline:o,transformCode:n??y,theme:l,...s,children:"top"===a?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Z,{}),(0,i.jsx)(k,{})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(k,{}),(0,i.jsx)(Z,{})]})})})}function C(e){return(0,i.jsx)("button",{type:"button",...e,style:{backgroundColor:"white",color:"black",border:"solid red",borderRadius:20,padding:10,cursor:"pointer",...e.style}})}let w={React:a,...a,...r};var L=n("55951"),B=n("6324"),T=n.n(B);let E=/title=(?<quote>["'])(?<title>.*?)\1/,I=/\{(?<range>[\d,-]+)\}/,A={js:{start:"\\/\\/",end:""},jsBlock:{start:"\\/\\*",end:"\\*\\/"},jsx:{start:"\\{\\s*\\/\\*",end:"\\*\\/\\s*\\}"},bash:{start:"#",end:""},html:{start:"\x3c!--",end:"--\x3e"}},M={...A,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:""}},H=Object.keys(A);function S(e,t){let n=e.map(e=>{let{start:n,end:s}=M[e];return`(?:${n}\\s*(${t.flatMap(e=>[e.line,e.block?.start,e.block?.end].filter(Boolean)).join("|")})\\s*${s})`}).join("|");return RegExp(`^\\s*(?:${n})\\s*$`)}function R(e){let{as:t,...n}=e,s=function(e){let t={color:"--prism-color",backgroundColor:"--prism-background-color"},n={};return Object.entries(e.plain).forEach(e=>{let[s,r]=e,i=t[s];i&&"string"==typeof r&&(n[i]=r)}),n}(p());return(0,i.jsx)(t,{...n,style:s,className:(0,l.Z)(n.className,"codeBlockContainer_jDV4",L.k.common.codeBlock)})}let z={codeBlockContent:"codeBlockContent_vx7S",codeBlockTitle:"codeBlockTitle_bdru",codeBlock:"codeBlock_Gebt",codeBlockStandalone:"codeBlockStandalone_i_cY",codeBlockLines:"codeBlockLines_FJaf",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_FU9Q",buttonGroup:"buttonGroup_cUGO"};function U(e){let{children:t,className:n}=e;return(0,i.jsx)(R,{as:"pre",tabIndex:0,className:(0,l.Z)(z.codeBlockStandalone,"thin-scrollbar",n),children:(0,i.jsx)("code",{className:z.codeBlockLines,children:t})})}var F=n("50923");let V={attributes:!0,characterData:!0,childList:!0,subtree:!0};var $=n("7316");let O={codeLine:"codeLine_qRmp",codeLineNumber:"codeLineNumber_dS_J",codeLineContent:"codeLineContent_XF5l"};function P(e){let{line:t,classNames:n,showLineNumbers:s,getLineProps:r,getTokenProps:a}=e;1===t.length&&"\n"===t[0].content&&(t[0].content="");let o=r({line:t,className:(0,l.Z)(n,s&&O.codeLine)}),c=t.map((e,t)=>(0,i.jsx)("span",{...a({token:e})},t));return(0,i.jsxs)("span",{...o,children:[s?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{className:O.codeLineNumber}),(0,i.jsx)("span",{className:O.codeLineContent,children:c})]}):c,(0,i.jsx)("br",{})]})}var W=n("44771");function D(e){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,i.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"})})}function q(e){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,i.jsx)("path",{fill:"currentColor",d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"})})}let G={copyButtonCopied:"copyButtonCopied_OkN_",copyButtonIcons:"copyButtonIcons_OqsO",copyButtonIcon:"copyButtonIcon_PgCn",copyButtonSuccessIcon:"copyButtonSuccessIcon_bsQG"};function Q(e){let{code:t,className:n}=e,[s,r]=(0,a.useState)(!1),o=(0,a.useRef)(void 0),c=(0,a.useCallback)(()=>{(0,W.Z)(t),r(!0),o.current=window.setTimeout(()=>{r(!1)},1e3)},[t]);return(0,a.useEffect)(()=>()=>window.clearTimeout(o.current),[]),(0,i.jsx)("button",{type:"button","aria-label":s?(0,d.I)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,d.I)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,d.I)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,l.Z)("clean-btn",n,G.copyButton,s&&G.copyButtonCopied),onClick:c,children:(0,i.jsxs)("span",{className:G.copyButtonIcons,"aria-hidden":"true",children:[(0,i.jsx)(D,{className:G.copyButtonIcon}),(0,i.jsx)(q,{className:G.copyButtonSuccessIcon})]})})}function X(e){return(0,i.jsx)("svg",{viewBox:"0 0 24 24",...e,children:(0,i.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"})})}let J={wordWrapButtonIcon:"wordWrapButtonIcon_MQXS",wordWrapButtonEnabled:"wordWrapButtonEnabled_TBIH"};function Y(e){let{className:t,onClick:n,isEnabled:s}=e,r=(0,d.I)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,i.jsx)("button",{type:"button",onClick:n,className:(0,l.Z)("clean-btn",t,s&&J.wordWrapButtonEnabled),"aria-label":r,title:r,children:(0,i.jsx)(X,{className:J.wordWrapButtonIcon,"aria-hidden":"true"})})}function K(e){var t;let{children:n,className:s="",metastring:r,title:o,showLineNumbers:c,language:d}=e,{prism:{defaultLanguage:u,magicComments:h}}=(0,x.L)(),m=(t=d??function(e){let t=e.split(" ").find(e=>e.startsWith("language-"));return t?.replace(/language-/,"")}(s)??u,t?.toLowerCase()),f=p(),j=function(){let[e,t]=(0,a.useState)(!1),[n,s]=(0,a.useState)(!1),r=(0,a.useRef)(null),i=(0,a.useCallback)(()=>{let n=r.current.querySelector("code");e?n.removeAttribute("style"):(n.style.whiteSpace="pre-wrap",n.style.overflowWrap="anywhere"),t(e=>!e)},[r,e]),l=(0,a.useCallback)(()=>{let{scrollWidth:e,clientWidth:t}=r.current;s(e>t||r.current.querySelector("code").hasAttribute("style"))},[r]);return!function(e,t){let[n,s]=(0,a.useState)(),r=(0,a.useCallback)(()=>{s(e.current?.closest("[role=tabpanel][hidden]"))},[e,s]);(0,a.useEffect)(()=>{r()},[r]),function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:V,s=(0,F.zX)(t),r=(0,F.Ql)(n);(0,a.useEffect)(()=>{let t=new MutationObserver(s);return e&&t.observe(e,r),()=>t.disconnect()},[e,s,r])}(n,e=>{e.forEach(e=>{"attributes"===e.type&&"hidden"===e.attributeName&&(t(),r())})},{attributes:!0,characterData:!1,childList:!1,subtree:!1})}(r,l),(0,a.useEffect)(()=>{l()},[e,l]),(0,a.useEffect)(()=>(window.addEventListener("resize",l,{passive:!0}),()=>{window.removeEventListener("resize",l)}),[l]),{codeBlockRef:r,isEnabled:e,isCodeScrollable:n,toggle:i}}(),b=(r?.match(E)?.groups.title??"")||o,{lineClassNames:v,code:g}=function(e,t){let n=e.replace(/\n$/,""),{language:s,magicComments:r,metastring:i}=t;if(i&&I.test(i)){let e=i.match(I).groups.range;if(0===r.length)throw Error(`A highlight range has been given in code block's metastring (\`\`\` ${i}), but no magic comment config is available. Docusaurus applies the first magic comment entry's className for metastring ranges.`);let t=r[0].className;return{lineClassNames:Object.fromEntries(T()(e).filter(e=>e>0).map(e=>[e-1,[t]])),code:n}}if(void 0===s)return{lineClassNames:{},code:n};let a=function(e,t){switch(e){case"js":case"javascript":case"ts":case"typescript":return S(["js","jsBlock"],t);case"jsx":case"tsx":return S(["js","jsBlock","jsx"],t);case"html":return S(["js","jsBlock","html"],t);case"python":case"py":case"bash":return S(["bash"],t);case"markdown":case"md":return S(["html","jsx","bash"],t);case"tex":case"latex":case"matlab":return S(["tex"],t);case"lua":case"haskell":return S(["lua"],t);case"sql":return S(["lua","jsBlock"],t);case"wasm":return S(["wasm"],t);case"vb":case"vba":case"visual-basic":return S(["vb","rem"],t);case"vbnet":return S(["vbnet","rem"],t);case"batch":return S(["rem"],t);case"basic":return S(["rem","f90"],t);case"fsharp":return S(["js","ml"],t);case"ocaml":case"sml":return S(["ml"],t);case"fortran":return S(["f90"],t);case"cobol":return S(["cobol"],t);default:return S(H,t)}}(s,r),l=n.split("\n"),o=Object.fromEntries(r.map(e=>[e.className,{start:0,range:""}])),c=Object.fromEntries(r.filter(e=>e.line).map(e=>{let{className:t,line:n}=e;return[n,t]})),d=Object.fromEntries(r.filter(e=>e.block).map(e=>{let{className:t,block:n}=e;return[n.start,t]})),u=Object.fromEntries(r.filter(e=>e.block).map(e=>{let{className:t,block:n}=e;return[n.end,t]}));for(let e=0;e<l.length;){let t=l[e].match(a);if(!t){e+=1;continue}let n=t.slice(1).find(e=>void 0!==e);c[n]?o[c[n]].range+=`${e},`:d[n]?o[d[n]].start=e:u[n]&&(o[u[n]].range+=`${o[u[n]].start}-${e-1},`),l.splice(e,1)}n=l.join("\n");let h={};return Object.entries(o).forEach(e=>{let[t,{range:n}]=e;T()(n).forEach(e=>{h[e]??=[],h[e].push(t)})}),{lineClassNames:h,code:n}}(n,{metastring:r,language:m,magicComments:h}),Z=function(e){let{showLineNumbers:t,metastring:n}=e;return"boolean"==typeof t?t?1:void 0:"number"==typeof t?t:function(e){let t=e?.split(" ").find(e=>e.startsWith("showLineNumbers"));if(t)return t.startsWith("showLineNumbers=")?parseInt(t.replace("showLineNumbers=",""),10):1}(n)}({showLineNumbers:c,metastring:r});return(0,i.jsxs)(R,{as:"div",className:(0,l.Z)(s,m&&!s.includes(`language-${m}`)&&`language-${m}`),children:[b&&(0,i.jsx)("div",{className:z.codeBlockTitle,children:b}),(0,i.jsxs)("div",{className:z.codeBlockContent,children:[(0,i.jsx)($.y$,{theme:f,code:g,language:m??"text",children:e=>{let{className:t,style:n,tokens:s,getLineProps:r,getTokenProps:a}=e;return(0,i.jsx)("pre",{tabIndex:0,ref:j.codeBlockRef,className:(0,l.Z)(t,z.codeBlock,"thin-scrollbar"),style:n,children:(0,i.jsx)("code",{className:(0,l.Z)(z.codeBlockLines,void 0!==Z&&z.codeBlockLinesWithNumbering),style:void 0===Z?void 0:{counterReset:`line-count ${Z-1}`},children:s.map((e,t)=>(0,i.jsx)(P,{line:e,getLineProps:r,getTokenProps:a,classNames:v[t],showLineNumbers:void 0!==Z},t))})})}}),(0,i.jsxs)("div",{className:z.buttonGroup,children:[(j.isEnabled||j.isCodeScrollable)&&(0,i.jsx)(Y,{className:z.codeButton,onClick:()=>j.toggle(),isEnabled:j.isEnabled}),(0,i.jsx)(Q,{className:z.codeButton,code:g})]})]})]})}let ee=(s=function(e){let{children:t,...n}=e,s=(0,o.Z)(),r=a.Children.toArray(t).some(e=>(0,a.isValidElement)(e))?t:Array.isArray(t)?t.join(""):t;return(0,i.jsx)("string"==typeof r?K:U,{...n,children:r},String(s))},function(e){return e.live?(0,i.jsx)(_,{scope:w,...e}):(0,i.jsx)(s,{...e})});function et(e){return(0,i.jsx)(ee,{...e})}}}]); |