docusaurus/assets/js/a94703ab.4cf03001.js
2024-05-20 14:28:37 +02:00

1 line
No EOL
18 KiB
JavaScript

"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[94368],{86712:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Be});var r=n(24246),o=n(27378),i=n(40624),a=n(44008),c=n(89583),l=n(41876),s=n(72532),d=n(36712),u=n(75527),b=n(52108);const p={backToTopButton:"backToTopButton_PuQw",backToTopButtonShow:"backToTopButtonShow_YSA3"};function m(){const{shown:e,scrollToTop:t}=function({threshold:e}){const[t,n]=(0,o.useState)(!1),r=(0,o.useRef)(!1),{startScroll:i,cancelScroll:a}=(0,u.Ct)();return(0,u.RF)((({scrollY:t},o)=>{const i=null==o?void 0:o.scrollY;i&&(r.current?r.current=!1:t>=i?(a(),n(!1)):t<e?n(!1):t+window.innerHeight<document.documentElement.scrollHeight&&n(!0))})),(0,b.S)((e=>{e.location.hash&&(r.current=!0,n(!1))})),{shown:t,scrollToTop:()=>i(0)}}({threshold:300});return(0,r.jsx)("button",{"aria-label":(0,d.I)({id:"theme.BackToTopButton.buttonAriaLabel",message:"Scroll back to top",description:"The ARIA label for the back to top button"}),className:(0,i.Z)("clean-btn",c.k.common.backToTopButton,p.backToTopButton,e&&p.backToTopButtonShow),type:"button",onClick:t})}var f=n(30731),h=n(3620),j=n(60029),y=n(73919),O=n(54181);function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function v(e){return(0,r.jsx)("svg",x(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){g(e,t,n[t])}))}return e}({width:"20",height:"20","aria-hidden":"true"},e),{children:(0,r.jsxs)("g",{fill:"#7a7a7a",children:[(0,r.jsx)("path",{d:"M9.992 10.023c0 .2-.062.399-.172.547l-4.996 7.492a.982.982 0 01-.828.454H1c-.55 0-1-.453-1-1 0-.2.059-.403.168-.551l4.629-6.942L.168 3.078A.939.939 0 010 2.528c0-.548.45-.997 1-.997h2.996c.352 0 .649.18.828.45L9.82 9.472c.11.148.172.347.172.55zm0 0"}),(0,r.jsx)("path",{d:"M19.98 10.023c0 .2-.058.399-.168.547l-4.996 7.492a.987.987 0 01-.828.454h-3c-.547 0-.996-.453-.996-1 0-.2.059-.403.168-.551l4.625-6.942-4.625-6.945a.939.939 0 01-.168-.55 1 1 0 01.996-.997h3c.348 0 .649.18.828.45l4.996 7.492c.11.148.168.347.168.55zm0 0"})]})}))}const S={collapseSidebarButton:"collapseSidebarButton_PUyN",collapseSidebarButtonIcon:"collapseSidebarButtonIcon_DI0B"};function w({onClick:e}){return(0,r.jsx)("button",{type:"button",title:(0,d.I)({id:"theme.docs.sidebar.collapseButtonTitle",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),"aria-label":(0,d.I)({id:"theme.docs.sidebar.collapseButtonAriaLabel",message:"Collapse sidebar",description:"The title attribute for collapse button of doc sidebar"}),className:(0,i.Z)("button button--secondary button--outline",S.collapseSidebarButton),onClick:e,children:(0,r.jsx)(v,{className:S.collapseSidebarButtonIcon})})}var k=n(776),P=n(51114);const _=Symbol("EmptyContext"),C=o.createContext(_);function I({children:e}){const[t,n]=(0,o.useState)(null),i=(0,o.useMemo)((()=>({expandedItem:t,setExpandedItem:n})),[t]);return(0,r.jsx)(C.Provider,{value:i,children:e})}var N=n(14929),T=n(39779),E=n(41428),Z=n(29088);function B(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){B(e,t,n[t])}))}return e}function D(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function L(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function H({collapsed:e,categoryLabel:t,onClick:n}){return(0,r.jsx)("button",{"aria-label":e?(0,d.I)({id:"theme.DocSidebarItem.expandCategoryAriaLabel",message:"Expand sidebar category '{label}'",description:"The ARIA label to expand the sidebar category"},{label:t}):(0,d.I)({id:"theme.DocSidebarItem.collapseCategoryAriaLabel",message:"Collapse sidebar category '{label}'",description:"The ARIA label to collapse the sidebar category"},{label:t}),"aria-expanded":!e,type:"button",className:"clean-btn menu__caret",onClick:n})}function M(e){var{item:t,onItemClick:n,activePath:a,level:s,index:d}=e,u=L(e,["item","onItemClick","activePath","level","index"]);const{items:b,label:p,collapsible:m,className:f,href:h}=t,{docs:{sidebar:{autoCollapseCategories:j}}}=(0,y.L)(),O=function(e){const t=(0,Z.Z)();return(0,o.useMemo)((()=>e.href&&!e.linkUnlisted?e.href:!t&&e.collapsible?(0,l.LM)(e):void 0),[e,t])}(t),g=(0,l._F)(t,a),x=(0,T.Mg)(h,a),{collapsed:v,setCollapsed:S}=(0,N.u)({initialState:()=>!!m&&(!g&&t.collapsed)}),{expandedItem:w,setExpandedItem:k}=function(){const e=(0,o.useContext)(C);if(e===_)throw new P.i6("DocSidebarItemsExpandedStateProvider");return e}(),I=(e=!v)=>{k(e?null:d),S(e)};return function({isActive:e,collapsed:t,updateCollapsed:n}){const r=(0,P.D9)(e);(0,o.useEffect)((()=>{e&&!r&&t&&n(!1)}),[e,r,t,n])}({isActive:g,collapsed:v,updateCollapsed:I}),(0,o.useEffect)((()=>{m&&null!=w&&w!==d&&j&&S(!0)}),[m,w,d,S,j]),(0,r.jsxs)("li",{className:(0,i.Z)(c.k.docs.docSidebarItemCategory,c.k.docs.docSidebarItemCategoryLevel(s),"menu__list-item",{"menu__list-item--collapsed":v},f),children:[(0,r.jsxs)("div",{className:(0,i.Z)("menu__list-item-collapsible",{"menu__list-item-collapsible--active":x}),children:[(0,r.jsx)(E.Z,D(A({className:(0,i.Z)("menu__link",{"menu__link--sublist":m,"menu__link--sublist-caret":!h&&m,"menu__link--active":g}),onClick:m?e=>{null==n||n(t),h?I(!1):(e.preventDefault(),I())}:()=>{null==n||n(t)},"aria-current":x?"page":void 0,role:m&&!h?"button":void 0,"aria-expanded":m&&!h?!v:void 0,href:m?null!=O?O:"#":O},u),{children:p})),h&&m&&(0,r.jsx)(H,{collapsed:v,categoryLabel:p,onClick:e=>{e.preventDefault(),I()}})]}),(0,r.jsx)(N.z,{lazy:!0,as:"ul",className:"menu__list",collapsed:v,children:(0,r.jsx)(re,{items:b,tabIndex:v?-1:0,onItemClick:n,activePath:a,level:s+1})})]})}var R=n(64149),F=n(80720);const W={menuExternalLink:"menuExternalLink_zaS2"};function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){V(e,t,n[t])}))}return e}function z(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e}function Y(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function K(e){var{item:t,onItemClick:n,activePath:o,level:a,index:s}=e,d=Y(e,["item","onItemClick","activePath","level","index"]);const{href:u,label:b,className:p,autoAddBaseUrl:m}=t,f=(0,l._F)(t,o),h=(0,R.Z)(u);return(0,r.jsx)("li",{className:(0,i.Z)(c.k.docs.docSidebarItemLink,c.k.docs.docSidebarItemLinkLevel(a),"menu__list-item",p),children:(0,r.jsxs)(E.Z,z(U({className:(0,i.Z)("menu__link",!h&&W.menuExternalLink,{"menu__link--active":f}),autoAddBaseUrl:m,"aria-current":f?"page":void 0,to:u},h&&{onClick:n?()=>n(t):void 0},d),{children:[b,!h&&(0,r.jsx)(F.Z,{})]}))},b)}const G={menuHtmlItem:"menuHtmlItem_t1vY"};function q({item:e,level:t,index:n}){const{value:o,defaultStyle:a,className:l}=e;return(0,r.jsx)("li",{className:(0,i.Z)(c.k.docs.docSidebarItemLink,c.k.docs.docSidebarItemLinkLevel(t),a&&[G.menuHtmlItem,"menu__list-item"],l),dangerouslySetInnerHTML:{__html:o}},n)}function Q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Q(e,t,n[t])}))}return e}function X(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function $(e){var{item:t}=e,n=X(e,["item"]);switch(t.type){case"category":return(0,r.jsx)(M,J({item:t},n));case"html":return(0,r.jsx)(q,J({item:t},n));default:return(0,r.jsx)(K,J({item:t},n))}}function ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function te(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ne(e){var{items:t}=e,n=te(e,["items"]);const o=(0,l.f)(t,n.activePath);return(0,r.jsx)(I,{children:o.map(((e,t)=>(0,r.jsx)($,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ee(e,t,n[t])}))}return e}({item:e,index:t},n),t)))})}const re=(0,o.memo)(ne),oe={menu:"menu_rWGR",menuWithAnnouncementBar:"menuWithAnnouncementBar_Pf08"};function ie({path:e,sidebar:t,className:n}){const a=function(){const{isActive:e}=(0,k.n)(),[t,n]=(0,o.useState)(e);return(0,u.RF)((({scrollY:t})=>{e&&n(0===t)}),[e]),e&&t}();return(0,r.jsx)("nav",{"aria-label":(0,d.I)({id:"theme.docs.sidebar.navAriaLabel",message:"Docs sidebar",description:"The ARIA label for the sidebar navigation"}),className:(0,i.Z)("menu thin-scrollbar",oe.menu,a&&oe.menuWithAnnouncementBar,n),children:(0,r.jsx)("ul",{className:(0,i.Z)(c.k.docs.docSidebarMenu,"menu__list"),children:(0,r.jsx)(re,{items:t,activePath:e,level:1})})})}function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){ae(e,t,n[t])}))}return e}function le(){return(0,r.jsx)("div",{style:{border:"solid thin red",padding:10,textAlign:"center"},children:"Sidebar Ad"})}function se(e){const{pathname:t}=(0,h.TH)(),n=t.includes("/tests/");return(0,r.jsxs)(r.Fragment,{children:[n&&(0,r.jsx)(le,{}),(0,r.jsx)(ie,ce({},e)),n&&(0,r.jsx)(le,{})]})}const de="sidebar_vtcw",ue="sidebarWithHideableNavbar_tZ9s",be="sidebarHidden_PrHU",pe="sidebarLogo_UK0N";function me({path:e,sidebar:t,onCollapse:n,isHidden:o}){const{navbar:{hideOnScroll:a},docs:{sidebar:{hideable:c}}}=(0,y.L)();return(0,r.jsxs)("div",{className:(0,i.Z)(de,a&&ue,o&&be),children:[a&&(0,r.jsx)(O.Z,{tabIndex:-1,className:pe}),(0,r.jsx)(se,{path:e,sidebar:t}),c&&(0,r.jsx)(w,{onClick:n})]})}const fe=o.memo(me);var he=n(35612),je=n(76861);const ye=({sidebar:e,path:t})=>{const n=(0,je.e)();return(0,r.jsx)("ul",{className:(0,i.Z)(c.k.docs.docSidebarMenu,"menu__list"),children:(0,r.jsx)(re,{items:e,activePath:t,onItemClick:e=>{"category"===e.type&&e.href&&n.toggle(),"link"===e.type&&n.toggle()},level:1})})};function Oe(e){return(0,r.jsx)(he.Zo,{component:ye,props:e})}const ge=o.memo(Oe);function xe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){xe(e,t,n[t])}))}return e}function Se(e){const t=(0,j.i)(),n="desktop"===t||"ssr"===t,o="mobile"===t;return(0,r.jsxs)(r.Fragment,{children:[n&&(0,r.jsx)(fe,ve({},e)),o&&(0,r.jsx)(ge,ve({},e))]})}const we={expandButton:"expandButton_ockD",expandButtonIcon:"expandButtonIcon_H1n0"};function ke({toggleSidebar:e}){return(0,r.jsx)("div",{className:we.expandButton,title:(0,d.I)({id:"theme.docs.sidebar.expandButtonTitle",message:"Expand sidebar",description:"The ARIA label and title attribute for expand button of doc sidebar"}),"aria-label":(0,d.I)({id:"theme.docs.sidebar.expandButtonAriaLabel",message:"Expand sidebar",description:"The ARIA label and title attribute for expand button of doc sidebar"}),tabIndex:0,role:"button",onKeyDown:e,onClick:e,children:(0,r.jsx)(v,{className:we.expandButtonIcon})})}const Pe={docSidebarContainer:"docSidebarContainer_S51O",docSidebarContainerHidden:"docSidebarContainerHidden_gbDM",sidebarViewport:"sidebarViewport_K3q9"};function _e({children:e}){const t=(0,s.V)();var n;return(0,r.jsx)(o.Fragment,{children:e},null!==(n=null==t?void 0:t.name)&&void 0!==n?n:"noSidebar")}function Ce({sidebar:e,hiddenSidebarContainer:t,setHiddenSidebarContainer:n}){const{pathname:a}=(0,h.TH)(),[l,s]=(0,o.useState)(!1),d=(0,o.useCallback)((()=>{l&&s(!1),!l&&(0,f.n)()&&s(!0),n((e=>!e))}),[n,l]);return(0,r.jsx)("aside",{className:(0,i.Z)(c.k.docs.docSidebarContainer,Pe.docSidebarContainer,t&&Pe.docSidebarContainerHidden),onTransitionEnd:e=>{e.currentTarget.classList.contains(Pe.docSidebarContainer)&&t&&s(!0)},children:(0,r.jsx)(_e,{children:(0,r.jsxs)("div",{className:(0,i.Z)(Pe.sidebarViewport,l&&Pe.sidebarViewportHidden),children:[(0,r.jsx)(Se,{sidebar:e,path:a,onCollapse:d,isHidden:l}),l&&(0,r.jsx)(ke,{toggleSidebar:d})]})})})}const Ie={docMainContainer:"docMainContainer_EfwR",docMainContainerEnhanced:"docMainContainerEnhanced_r8nV",docItemWrapperEnhanced:"docItemWrapperEnhanced_nA1F"};function Ne({hiddenSidebarContainer:e,children:t}){const n=(0,s.V)();return(0,r.jsx)("main",{className:(0,i.Z)(Ie.docMainContainer,(e||!n)&&Ie.docMainContainerEnhanced),children:(0,r.jsx)("div",{className:(0,i.Z)("container padding-top--md padding-bottom--lg",Ie.docItemWrapper,e&&Ie.docItemWrapperEnhanced),children:t})})}const Te={docRoot:"docRoot_kBZ6",docsWrapper:"docsWrapper_lLmf"};function Ee({children:e}){const t=(0,s.V)(),[n,i]=(0,o.useState)(!1);return(0,r.jsxs)("div",{className:Te.docsWrapper,children:[(0,r.jsx)(m,{}),(0,r.jsxs)("div",{className:Te.docRoot,children:[t&&(0,r.jsx)(Ce,{sidebar:t.items,hiddenSidebarContainer:n,setHiddenSidebarContainer:i}),(0,r.jsx)(Ne,{hiddenSidebarContainer:n,children:e})]})]})}var Ze=n(97683);function Be(e){const t=(0,l.SN)(e);if(!t)return(0,r.jsx)(Ze.Z,{});const{docElement:n,sidebarName:o,sidebarItems:d}=t;return(0,r.jsx)(a.FG,{className:(0,i.Z)(c.k.page.docsDocPage),children:(0,r.jsx)(s.b,{name:o,items:d,children:(0,r.jsx)(Ee,{children:n})})})}},97683:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(24246),o=(n(27378),n(40624)),i=n(36712),a=n(52615);function c({className:e}){return(0,r.jsx)("main",{className:(0,o.Z)("container margin-vert--xl",e),children:(0,r.jsx)("div",{className:"row",children:(0,r.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,r.jsx)(a.Z,{as:"h1",className:"hero__title",children:(0,r.jsx)(i.Z,{id:"theme.NotFound.title",description:"The title of the 404 page",children:"Page Not Found"})}),(0,r.jsx)("p",{children:(0,r.jsx)(i.Z,{id:"theme.NotFound.p1",description:"The first paragraph of the 404 page",children:"We could not find what you were looking for."})}),(0,r.jsx)("p",{children:(0,r.jsx)(i.Z,{id:"theme.NotFound.p2",description:"The 2nd paragraph of the 404 page",children:"Please contact the owner of the site that linked you to the original URL and let them know their link is broken."})})]})})})}}}]);