mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-01 19:27:48 +02:00
4 lines
No EOL
10 KiB
JavaScript
4 lines
No EOL
10 KiB
JavaScript
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["60815"],{37796:function(e,n,t){t.d(n,{Z:function(){return r}});var i=t(24246);function r(e){return(0,i.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,i.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"})})}t(27378)},49356:function(e,n,t){t.d(n,{Z:()=>k});var i=t("24246"),r=t("27378"),l=t("90496"),o=t("77827"),s=t("55951");let a={admonition:"admonition_o5H7",admonitionHeading:"admonitionHeading_FzoX",admonitionIcon:"admonitionIcon_rXq6",admonitionContent:"admonitionContent_Knsx"};function c(e){let{type:n,className:t,children:r}=e;return(0,i.jsx)("div",{className:(0,l.Z)(s.k.common.admonition,s.k.common.admonitionType(n),a.admonition,t),children:r})}function d(e){let{icon:n,title:t}=e;return(0,i.jsxs)("div",{className:a.admonitionHeading,children:[(0,i.jsx)("span",{className:a.admonitionIcon,children:n}),t]})}function u(e){let{children:n}=e;return n?(0,i.jsx)("div",{className:a.admonitionContent,children:n}):null}function h(e){let{type:n,icon:t,title:r,children:l,className:o}=e;return(0,i.jsxs)(c,{type:n,className:o,children:[r||t?(0,i.jsx)(d,{title:r,icon:t}):null,(0,i.jsx)(u,{children:l})]})}let m={icon:(0,i.jsx)(function(e){return(0,i.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,i.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,i.jsx)(o.Z,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function f(e){return(0,i.jsx)(h,{...m,...e,className:(0,l.Z)("alert alert--secondary",e.className),children:e.children})}let g={icon:(0,i.jsx)(function(e){return(0,i.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,i.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,i.jsx)(o.Z,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function x(e){return(0,i.jsx)(h,{...g,...e,className:(0,l.Z)("alert alert--success",e.className),children:e.children})}var j=t("37796");let p={icon:(0,i.jsx)(j.Z,{}),title:(0,i.jsx)(o.Z,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function v(e){return(0,i.jsx)(h,{...p,...e,className:(0,l.Z)("alert alert--info",e.className),children:e.children})}function Z(e){return(0,i.jsx)("svg",{viewBox:"0 0 16 16",...e,children:(0,i.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 b={icon:(0,i.jsx)(Z,{}),title:(0,i.jsx)(o.Z,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})},w={icon:(0,i.jsx)(function(e){return(0,i.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,i.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,i.jsx)(o.Z,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})},N={icon:(0,i.jsx)(Z,{}),title:(0,i.jsx)(o.Z,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})},T={note:f,tip:x,info:v,warning:function(e){return(0,i.jsx)(h,{...b,...e,className:(0,l.Z)("alert alert--warning",e.className),children:e.children})},danger:function(e){return(0,i.jsx)(h,{...w,...e,className:(0,l.Z)("alert alert--danger",e.className),children:e.children})},secondary:e=>(0,i.jsx)(f,{title:"secondary",...e}),important:e=>(0,i.jsx)(v,{title:"important",...e}),success:e=>(0,i.jsx)(x,{title:"success",...e}),caution:function(e){return(0,i.jsx)(h,{...N,...e,className:(0,l.Z)("alert alert--warning",e.className),children:e.children})}};var y=t("57922");let z={...T,"my-custom-admonition":function(e){return(0,i.jsxs)("div",{style:{border:"solid red",padding:10},children:[(0,i.jsx)(y.Z,{as:"h5",style:{color:"blue",fontSize:30},children:e.title}),(0,i.jsx)("div",{children:e.children})]})}};function k(e){let n=function(e){let{mdxAdmonitionTitle:n,rest:t}=function(e){let n=r.Children.toArray(e),t=n.find(e=>r.isValidElement(e)&&"mdxAdmonitionTitle"===e.type),l=n.filter(e=>e!==t);return{mdxAdmonitionTitle:t?.props.children,rest:l.length>0?(0,i.jsx)(i.Fragment,{children:l}):null}}(e.children),l=e.title??n;return{...e,...l&&{title:l},children:t}}(e),t=function(e){let n=z[e];return n?n:(console.warn(`No admonition component found for admonition type "${e}". Using Info as fallback.`),z.info)}(n.type);return(0,i.jsx)(t,{...n})}},12221:function(e,n,t){t.d(n,{Z:function(){return c}});var i=t(24246);t(27378);var r=t(90496),l=t(68746),o=t(55951),s=t(49356);function a(e){let{className:n}=e;return(0,i.jsx)(s.Z,{type:"caution",title:(0,i.jsx)(l.cI,{}),className:(0,r.Z)(n,o.k.common.unlistedBanner),children:(0,i.jsx)(l.eU,{})})}function c(e){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.T$,{}),(0,i.jsx)(a,{...e})]})}},69924:function(e,n,t){t.r(n),t.d(n,{default:function(){return x}});var i=t(24246);t(27378);var r=t(90496),l=t(35363),o=t(11660),s=t(57335),a=t(55951),c=t(77827),d=t(69879),u=t(12221),h=t(57922);function m(e){let{doc:n}=e;return(0,i.jsxs)("article",{className:"margin-vert--lg",children:[(0,i.jsx)(l.Z,{to:n.permalink,children:(0,i.jsx)(h.Z,{as:"h2",children:n.title})}),n.description&&(0,i.jsx)("p",{children:n.description})]})}function f(e){let{title:n,tag:t}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.d,{title:n,description:t.description}),(0,i.jsx)(d.Z,{tag:"doc_tag_doc_list"})]})}function g(e){let{tag:n,title:t}=e;return(0,i.jsx)(s.FG,{className:(0,r.Z)(a.k.page.docsTagDocListPage),children:(0,i.jsx)("div",{className:"container margin-vert--lg",children:(0,i.jsx)("div",{className:"row",children:(0,i.jsxs)("main",{className:"col col--8 col--offset-2",children:[n.unlisted&&(0,i.jsx)(u.Z,{}),(0,i.jsxs)("header",{className:"margin-bottom--xl",children:[(0,i.jsx)(h.Z,{as:"h1",children:t}),n.description&&(0,i.jsx)("p",{children:n.description}),(0,i.jsx)(l.Z,{href:n.allTagsPath,children:(0,i.jsx)(c.Z,{id:"theme.tags.tagsPageLink",description:"The label of the link targeting the tag list page",children:"View all tags"})})]}),(0,i.jsx)("section",{className:"margin-vert--lg",children:n.items.map(e=>(0,i.jsx)(m,{doc:e},e.id))})]})})})})}function x(e){let n=function(e){let n=function(){let{selectMessage:e}=(0,o.c)();return n=>e(n,(0,c.I)({id:"theme.docs.tagDocListPageTitle.nDocsTagged",description:'Pluralized label for "{count} docs tagged". 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 doc tagged|{count} docs tagged"},{count:n}))}();return(0,c.I)({id:"theme.docs.tagDocListPageTitle",description:"The title of the page for a docs tag",message:'{nDocsTagged} with "{tagName}"'},{nDocsTagged:n(e.tag.count),tagName:e.tag.label})}(e);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f,{...e,title:n}),(0,i.jsx)(g,{...e,title:n})]})}},68746:function(e,n,t){t.d(n,{T$:function(){return a},cI:function(){return o},eU:function(){return s},ht:function(){return c},xo:function(){return d}});var i=t(24246);t(27378);var r=t(77827),l=t(53327);function o(){return(0,i.jsx)(r.Z,{id:"theme.contentVisibility.unlistedBanner.title",description:"The unlisted content banner title",children:"Unlisted page"})}function s(){return(0,i.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 a(){return(0,i.jsx)(l.Z,{children:(0,i.jsx)("meta",{name:"robots",content:"noindex, nofollow"})})}function c(){return(0,i.jsx)(r.Z,{id:"theme.contentVisibility.draftBanner.title",description:"The draft content banner title",children:"Draft page"})}function d(){return(0,i.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."})}},11660:function(e,n,t){t.d(n,{c:function(){return a}});var i=t(27378),r=t(8156);let l=["zero","one","two","few","many","other"];function o(e){return l.filter(n=>e.includes(n))}let s={locale:"en",pluralForms:o(["one","other"]),select:e=>1===e?"one":"other"};function a(){let e=function(){let{i18n:{currentLocale:e}}=(0,r.Z)();return(0,i.useMemo)(()=>{try{return function(e){let n=new Intl.PluralRules(e);return{locale:e,pluralForms:o(n.resolvedOptions().pluralCategories),select:e=>n.select(e)}}(e)}catch(n){return console.error(`Failed to use Intl.PluralRules for locale "${e}".
|
|
Docusaurus will fallback to the default (English) implementation.
|
|
Error: ${n.message}
|
|
`),s}},[e])}();return{selectMessage:(n,t)=>(function(e,n,t){let i=e.split("|");if(1===i.length)return i[0];i.length>t.pluralForms.length&&console.error(`For locale=${t.locale}, a maximum of ${t.pluralForms.length} plural forms are expected (${t.pluralForms.join(",")}), but the message contains ${i.length}: ${e}`);let r=t.select(n);return i[Math.min(t.pluralForms.indexOf(r),i.length-1)]})(t,n,e)}}}}]); |