From e8010b3e77dfd752ee5b916ec507c226ed98080d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 18 Oct 2024 12:35:39 +0000 Subject: [PATCH] deploy: 7bc0d5dbe96656b84744583575febbd3e5ba31a5 --- 404.html | 2 +- cookbook/advanced/network-requests.html | 2 +- cookbook/basics/async-tests.html | 2 +- cookbook/basics/custom-render.html | 2 +- cookbook/index.html | 2 +- cookbook/state-management/jotai.html | 2 +- docs/advanced/testing-env.html | 2 +- docs/advanced/understanding-act.html | 2 +- docs/api.html | 2 +- docs/api/events/fire-event.html | 2 +- docs/api/events/user-event.html | 2 +- docs/api/jest-matchers.html | 2 +- docs/api/misc/accessibility.html | 2 +- docs/api/misc/async.html | 2 +- docs/api/misc/config.html | 2 +- docs/api/misc/other.html | 2 +- docs/api/misc/render-hook.html | 2 +- docs/api/queries.html | 4 ++-- docs/api/render.html | 2 +- docs/api/screen.html | 2 +- docs/guides/community-resources.html | 2 +- docs/guides/faq.html | 2 +- docs/guides/how-to-query.html | 2 +- docs/guides/troubleshooting.html | 2 +- docs/migration/jest-matchers.html | 2 +- docs/migration/previous/v11.html | 2 +- docs/migration/previous/v2.html | 2 +- docs/migration/previous/v7.html | 2 +- docs/migration/previous/v9.html | 2 +- docs/migration/v12.html | 2 +- docs/start/intro.html | 2 +- docs/start/quick-start.html | 2 +- index.html | 2 +- static/js/{539.060c9ab6.js => 539.b030ae28.js} | 4 ++-- ...39.060c9ab6.js.LICENSE.txt => 539.b030ae28.js.LICENSE.txt} | 0 static/js/async/119.4f60f763.js | 1 + static/js/async/119.ae252a60.js | 1 - static/js/{index.dd7667e1.js => index.9a8995b9.js} | 2 +- ...dex.12_x.05c196e5.json => search_index.12_x.cefcd521.json} | 2 +- 39 files changed, 39 insertions(+), 39 deletions(-) rename static/js/{539.060c9ab6.js => 539.b030ae28.js} (99%) rename static/js/{539.060c9ab6.js.LICENSE.txt => 539.b030ae28.js.LICENSE.txt} (100%) create mode 100644 static/js/async/119.4f60f763.js delete mode 100644 static/js/async/119.ae252a60.js rename static/js/{index.dd7667e1.js => index.9a8995b9.js} (99%) rename static/{search_index.12_x.05c196e5.json => search_index.12_x.cefcd521.json} (50%) diff --git a/404.html b/404.html index c6b1529d6..34a645e32 100644 --- a/404.html +++ b/404.html @@ -1 +1 @@ -React Native Testing LibraryReact Native Testing Library

404

PAGE NOT FOUND

\ No newline at end of file +React Native Testing LibraryReact Native Testing Library

404

PAGE NOT FOUND

\ No newline at end of file diff --git a/cookbook/advanced/network-requests.html b/cookbook/advanced/network-requests.html index 022400ed5..380608966 100644 --- a/cookbook/advanced/network-requests.html +++ b/cookbook/advanced/network-requests.html @@ -1,4 +1,4 @@ -Network Requests - React Native Testing LibraryReact Native Testing Library

Network Requests

+Network Requests - React Native Testing LibraryReact Native Testing Library

Network Requests

Introduction

Mocking network requests is an essential part of testing React Native applications. By mocking network diff --git a/cookbook/basics/async-tests.html b/cookbook/basics/async-tests.html index ad8799d4a..5a6def245 100644 --- a/cookbook/basics/async-tests.html +++ b/cookbook/basics/async-tests.html @@ -1,4 +1,4 @@ -Async tests - React Native Testing LibraryReact Native Testing Library

Async tests

+Async tests - React Native Testing LibraryReact Native Testing Library

Async tests

Summary

Typically, you would write synchronous tests, as they are simple and get the work done. However, there are cases when using asynchronous (async) tests might be necessary or beneficial. The two most common cases are:

    diff --git a/cookbook/basics/custom-render.html b/cookbook/basics/custom-render.html index 34a514c2b..1d5eeb275 100644 --- a/cookbook/basics/custom-render.html +++ b/cookbook/basics/custom-render.html @@ -1,4 +1,4 @@ -Custom `render` function - React Native Testing LibraryReact Native Testing Library

    Custom render function

    +Custom `render` function - React Native Testing LibraryReact Native Testing Library

    Custom render function

    Summary

    RNTL exposes the render function as the primary entry point for tests. If you make complex, repeating setups for your tests, consider creating a custom render function. The idea is to encapsulate common setup steps and test wiring inside a render function suitable for your tests.

    Example

    diff --git a/cookbook/index.html b/cookbook/index.html index ad5d450c1..d3f904738 100644 --- a/cookbook/index.html +++ b/cookbook/index.html @@ -1,4 +1,4 @@ -Introduction - React Native Testing LibraryReact Native Testing Library

    Introduction

    +Introduction - React Native Testing LibraryReact Native Testing Library

    Introduction

    Welcome to the React Native Testing Library (RNTL) Cookbook! This app is your go-to resource for learning how to effectively test React Native applications. It provides a collection of best practices, ready-made recipes, and tips & tricks to diff --git a/cookbook/state-management/jotai.html b/cookbook/state-management/jotai.html index b764fa057..1635b393d 100644 --- a/cookbook/state-management/jotai.html +++ b/cookbook/state-management/jotai.html @@ -1,4 +1,4 @@ -Jotai - React Native Testing LibraryReact Native Testing Library

    Jotai

    +Jotai - React Native Testing LibraryReact Native Testing Library

    Jotai

    Introduction

    Jotai is a global state management library for React that uses an atomic approach to optimize renders and solve issues like extra re-renders and the need for memoization. It scales from simple diff --git a/docs/advanced/testing-env.html b/docs/advanced/testing-env.html index 0465f1910..5ad4647af 100644 --- a/docs/advanced/testing-env.html +++ b/docs/advanced/testing-env.html @@ -1,4 +1,4 @@ -Testing environment - React Native Testing LibraryReact Native Testing Library

    Testing environment

    +Testing environment - React Native Testing LibraryReact Native Testing Library

    Testing environment

    INFO

    This document is intended for a more advanced audience who want to understand the internals of our testing environment better, e.g., to contribute to the codebase. You should be able to write integration or component tests without reading this.

    diff --git a/docs/advanced/understanding-act.html b/docs/advanced/understanding-act.html index a53d1923a..979ab5dfc 100644 --- a/docs/advanced/understanding-act.html +++ b/docs/advanced/understanding-act.html @@ -1,4 +1,4 @@ -Understanding `act` function - React Native Testing LibraryReact Native Testing Library

    Understanding act function

    +Understanding `act` function - React Native Testing LibraryReact Native Testing Library

    Understanding act function

    When writing RNTL tests one of the things that confuses developers the most are cryptic act() function errors logged into console. In this article I will try to build an understanding of the purpose and behaviour of act() so you can build your tests with more confidence.

    act warnings

    Let’s start with typical act() warnings logged to console. There are two kinds of these issues, let’s call the first one the "sync act()" warning:

    diff --git a/docs/api.html b/docs/api.html index e0d1551c2..cd92810c0 100644 --- a/docs/api.html +++ b/docs/api.html @@ -1,4 +1,4 @@ -API Overview - React Native Testing LibraryReact Native Testing Library

    API Overview

    +API Overview - React Native Testing LibraryReact Native Testing Library

    API Overview

    React Native Testing Library consists of following APIs:

    • render function - render your UI components for testing purposes
    • diff --git a/docs/api/events/fire-event.html b/docs/api/events/fire-event.html index 7db644891..1f0825ec4 100644 --- a/docs/api/events/fire-event.html +++ b/docs/api/events/fire-event.html @@ -1,4 +1,4 @@ -Fire Event API - React Native Testing LibraryReact Native Testing Library

      Fire Event API

      +Fire Event API - React Native Testing LibraryReact Native Testing Library

      Fire Event API

      function fireEvent(element: ReactTestInstance, eventName: string, ...data: unknown[]): void;
      NOTE

      For common events like press or type it's recommended to use User Event API as it offers more realistic event simulation by emitting a sequence of events with proper event objects that mimic React Native runtime behavior.

      diff --git a/docs/api/events/user-event.html b/docs/api/events/user-event.html index 0abbc39cf..5e24066fc 100644 --- a/docs/api/events/user-event.html +++ b/docs/api/events/user-event.html @@ -1,4 +1,4 @@ -User Event interactions - React Native Testing LibraryReact Native Testing Library

      User Event interactions

      +User Event interactions - React Native Testing LibraryReact Native Testing Library

      User Event interactions

      RNTL minimal version

      User Event interactions require RNTL v12.2.0 or later.

      diff --git a/docs/api/jest-matchers.html b/docs/api/jest-matchers.html index 68d1954fe..9579a511a 100644 --- a/docs/api/jest-matchers.html +++ b/docs/api/jest-matchers.html @@ -1,4 +1,4 @@ -Jest matchers - React Native Testing LibraryReact Native Testing Library

      Jest matchers

      +Jest matchers - React Native Testing LibraryReact Native Testing Library

      Jest matchers

      RNTL minimal version

      Built-in Jest matchers require RNTL v12.4.0 or later.

      diff --git a/docs/api/misc/accessibility.html b/docs/api/misc/accessibility.html index 03521f3d0..7e58c4def 100644 --- a/docs/api/misc/accessibility.html +++ b/docs/api/misc/accessibility.html @@ -1,4 +1,4 @@ -Accessibility - React Native Testing LibraryReact Native Testing Library

      Accessibility

      +Accessibility - React Native Testing LibraryReact Native Testing Library

      Accessibility

      isHiddenFromAccessibility

      function isHiddenFromAccessibility(element: ReactTestInstance | null): boolean {}

      Also available as isInaccessible() alias for React Testing Library compatibility.

      diff --git a/docs/api/misc/async.html b/docs/api/misc/async.html index dbf4ea2ab..13538783a 100644 --- a/docs/api/misc/async.html +++ b/docs/api/misc/async.html @@ -1,4 +1,4 @@ -Async utilities - React Native Testing LibraryReact Native Testing Library

      Async utilities

      +Async utilities - React Native Testing LibraryReact Native Testing Library

      Async utilities

      findBy* queries

      The findBy* queries are used to find elements that are not instantly available but will be added as a result of some asynchronous action. Learn more details here.

      waitFor

      diff --git a/docs/api/misc/config.html b/docs/api/misc/config.html index e5efdcfcd..b180157ad 100644 --- a/docs/api/misc/config.html +++ b/docs/api/misc/config.html @@ -1,4 +1,4 @@ -Configuration - React Native Testing LibraryReact Native Testing Library

      Configuration

      +Configuration - React Native Testing LibraryReact Native Testing Library

      Configuration

      configure

      type Config = {
         asyncUtilTimeout: number;
      diff --git a/docs/api/misc/other.html b/docs/api/misc/other.html
      index 6cebdcbcb..8a08f9f36 100644
      --- a/docs/api/misc/other.html
      +++ b/docs/api/misc/other.html
      @@ -1,4 +1,4 @@
      -Other helpers - React Native Testing LibraryReact Native Testing Library

      Other helpers

      +Other helpers - React Native Testing LibraryReact Native Testing Library

      Other helpers

      within, getQueriesForElement

      function within(element: ReactTestInstance): Queries {}
       
      diff --git a/docs/api/misc/render-hook.html b/docs/api/misc/render-hook.html
      index 4a502fdbe..514ed138c 100644
      --- a/docs/api/misc/render-hook.html
      +++ b/docs/api/misc/render-hook.html
      @@ -1,4 +1,4 @@
      -`renderHook` function - React Native Testing LibraryReact Native Testing Library

      renderHook function

      +`renderHook` function - React Native Testing LibraryReact Native Testing Library

      renderHook function

      function renderHook<Result, Props>(
         callback: (props?: Props) => Result,
         options?: RenderHookOptions<Props>
      diff --git a/docs/api/queries.html b/docs/api/queries.html
      index 25b7c0af1..938833347 100644
      --- a/docs/api/queries.html
      +++ b/docs/api/queries.html
      @@ -1,5 +1,5 @@
      -Queries - React Native Testing LibraryReact Native Testing Library

      Queries

      -

      Queries are one of the main building blocks for the React Native Testing Library. They enable you to find relevant elements in the element tree, which represents the your application's user interface when running under tests.

      +Queries - React Native Testing LibraryReact Native Testing Library

      Queries

      +

      Queries are one of the main building blocks for the React Native Testing Library. They enable you to find relevant elements in the element tree, which represents your application's user interface when running under tests.

      Accessing queries

      All queries described below are accessible in two main ways: through the screen object or by capturing the render function call result.

      Using screen object

      diff --git a/docs/api/render.html b/docs/api/render.html index 546730e78..9e15ff946 100644 --- a/docs/api/render.html +++ b/docs/api/render.html @@ -1,4 +1,4 @@ -`render` function - React Native Testing LibraryReact Native Testing Library

      render function

      +`render` function - React Native Testing LibraryReact Native Testing Library

      render function

      function render(
         component: React.Element<any>,
         options?: RenderOptions
      diff --git a/docs/api/screen.html b/docs/api/screen.html
      index 390c07489..2123b07f2 100644
      --- a/docs/api/screen.html
      +++ b/docs/api/screen.html
      @@ -1,4 +1,4 @@
      -`screen` object - React Native Testing LibraryReact Native Testing Library

      screen object

      +`screen` object - React Native Testing LibraryReact Native Testing Library

      screen object

      let screen: {
         ...queries;
         rerender(element: React.Element<unknown>): void;
      diff --git a/docs/guides/community-resources.html b/docs/guides/community-resources.html
      index 9fec31962..e35d5cbd3 100644
      --- a/docs/guides/community-resources.html
      +++ b/docs/guides/community-resources.html
      @@ -1,4 +1,4 @@
      -Community resources - React Native Testing LibraryReact Native Testing Library

      Community resources

      +Community resources - React Native Testing LibraryReact Native Testing Library

      Community resources

      • The Testing Trophy and Testing Classifications by Kent C. Dodds (2021) - classic article explaining testing philosophy behind all Testing Library implementations.
      • diff --git a/docs/guides/faq.html b/docs/guides/faq.html index 2bca2484e..e39212e96 100644 --- a/docs/guides/faq.html +++ b/docs/guides/faq.html @@ -1,4 +1,4 @@ -FAQ - React Native Testing LibraryReact Native Testing Library

        FAQ

        +FAQ - React Native Testing LibraryReact Native Testing Library

        FAQ

        Can I test the native features of React Native apps?

        Short answer: no.

        React Native Testing Library does not provide an entire React Native runtime since that would require running on a physical device diff --git a/docs/guides/how-to-query.html b/docs/guides/how-to-query.html index 436461198..954e1e2e2 100644 --- a/docs/guides/how-to-query.html +++ b/docs/guides/how-to-query.html @@ -1,4 +1,4 @@ -How should I query? - React Native Testing LibraryReact Native Testing Library

        How should I query?

        +How should I query? - React Native Testing LibraryReact Native Testing Library

        How should I query?

        React Native Testing Library provides various query types, allowing great flexibility in finding views appropriate for your tests. At the same time, the number of queries might be confusing. This guide aims to help you pick the correct queries for your test scenarios.

        Query parts

        Each query is composed of two parts: variant and predicate, which are separated by the by word in the middle of the query.

        diff --git a/docs/guides/troubleshooting.html b/docs/guides/troubleshooting.html index e4063cad4..e4cb8fe6f 100644 --- a/docs/guides/troubleshooting.html +++ b/docs/guides/troubleshooting.html @@ -1,4 +1,4 @@ -Troubleshooting - React Native Testing LibraryReact Native Testing Library

        Troubleshooting

        +Troubleshooting - React Native Testing LibraryReact Native Testing Library

        Troubleshooting

        This guide describes common issues found by users when integrating React Native Test Library to their projects:

        Matching React Native, React & React Test Renderer versions

        Check that you have matching versions of core dependencies:

        diff --git a/docs/migration/jest-matchers.html b/docs/migration/jest-matchers.html index 66875d679..90d6a16e8 100644 --- a/docs/migration/jest-matchers.html +++ b/docs/migration/jest-matchers.html @@ -1,4 +1,4 @@ -Migration to built-in Jest matchers - React Native Testing LibraryReact Native Testing Library

        Migration to built-in Jest matchers

        +Migration to built-in Jest matchers - React Native Testing LibraryReact Native Testing Library

        Migration to built-in Jest matchers

        This guide describes the steps necessary to migrate from legacy Jest Native matchers v5 to built-in Jest matchers.

        General notes

        All of the built-in Jest matchers provided by the React Native Testing Library support only host elements. This should not be an issue, as all RNTL v12 queries already return only host elements. When this guide states that a given matcher should work the same it assumes behavior only host elements. If you need to assert the status of composite elements use Jest Native matchers in legacy mode.

        diff --git a/docs/migration/previous/v11.html b/docs/migration/previous/v11.html index 6577b0693..370395861 100644 --- a/docs/migration/previous/v11.html +++ b/docs/migration/previous/v11.html @@ -1,4 +1,4 @@ -Migration to 11.x - React Native Testing LibraryReact Native Testing Library

        Migration to 11.x

        +Migration to 11.x - React Native Testing LibraryReact Native Testing Library

        Migration to 11.x

        Migration to React Native Testing Library version 11 from version 9.x or 10.x should be a relatively easy task due small amount of breaking changes.

        Breaking changes

        Update to Jest 28 if you use fake timers

        diff --git a/docs/migration/previous/v2.html b/docs/migration/previous/v2.html index 8b5bce707..ee8962dd7 100644 --- a/docs/migration/previous/v2.html +++ b/docs/migration/previous/v2.html @@ -1,4 +1,4 @@ -Migration to 2.x - React Native Testing LibraryReact Native Testing Library

        Migration to 2.x

        +Migration to 2.x - React Native Testing LibraryReact Native Testing Library

        Migration to 2.x

        This guide describes steps necessary to migrate from React Native Testing Library v1.x to v2.x.

        Dropping Node 8

        Node 8 reached its EOL more than 5 months ago, so it's about time to target the library to Node 10. If you used lower version, you'll have to upgrade to v10, but we recommend using the latest LTS version.

        diff --git a/docs/migration/previous/v7.html b/docs/migration/previous/v7.html index 1f9b7de48..865a802fb 100644 --- a/docs/migration/previous/v7.html +++ b/docs/migration/previous/v7.html @@ -1,4 +1,4 @@ -Migration to 7.x - React Native Testing LibraryReact Native Testing Library

        Migration to 7.x

        +Migration to 7.x - React Native Testing LibraryReact Native Testing Library

        Migration to 7.x

        INFO

        We renamed the react-native-testing-library npm package to @testing-library/react-native, officially joining the "Testing Library" family 🎉.

        diff --git a/docs/migration/previous/v9.html b/docs/migration/previous/v9.html index 5c037240e..6c69dd419 100644 --- a/docs/migration/previous/v9.html +++ b/docs/migration/previous/v9.html @@ -1,4 +1,4 @@ -Migration to 9.x - React Native Testing LibraryReact Native Testing Library

        Migration to 9.x

        +Migration to 9.x - React Native Testing LibraryReact Native Testing Library

        Migration to 9.x

        Version 7.0 brought React Native Testing Library into the @testing-library family. Since it has been implemented independently from its web counterpart – the React Testing Library – there are some differences in the API and behavior. Version 9.0 solves several of these problems.

        Support for text match options a.k.a string precision API

        This is a backward compatible change.

        diff --git a/docs/migration/v12.html b/docs/migration/v12.html index d14ea3255..615e0eda9 100644 --- a/docs/migration/v12.html +++ b/docs/migration/v12.html @@ -1,4 +1,4 @@ -Migration to 12.x - React Native Testing LibraryReact Native Testing Library

        Migration to 12.x

        +Migration to 12.x - React Native Testing LibraryReact Native Testing Library

        Migration to 12.x

        INFO

        If you are already using legacy @testing-library/jest-native Jest Matchers, we have a migration guide for moving to the built-in matchers.

        diff --git a/docs/start/intro.html b/docs/start/intro.html index cdc787bb2..c1d8d46f9 100644 --- a/docs/start/intro.html +++ b/docs/start/intro.html @@ -1,4 +1,4 @@ -Introduction - React Native Testing LibraryReact Native Testing Library

        Introduction

        +Introduction - React Native Testing LibraryReact Native Testing Library

        Introduction

        The problem

        You want to write maintainable tests for your React Native components. As a part of this goal, you want your tests to avoid including implementation details of your components and focus on making your tests give you the confidence they are intended. As part of this, you want your tests to be maintainable in the long run so refactors of your components (changes to implementation but not functionality) don't break your tests and slow you and your team down.

        This solution

        diff --git a/docs/start/quick-start.html b/docs/start/quick-start.html index 316cb1733..23f3be17b 100644 --- a/docs/start/quick-start.html +++ b/docs/start/quick-start.html @@ -1,4 +1,4 @@ -Quick Start - React Native Testing LibraryReact Native Testing Library

        Quick Start

        +Quick Start - React Native Testing LibraryReact Native Testing Library

        Quick Start

        Installation

        Open a Terminal in your project's folder and run:

        yarn
        npm
        yarn add -D @testing-library/react-native
        diff --git a/index.html b/index.html index 8717726c7..52d17acb0 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -React Native Testing LibraryReact Native Testing Library

        React Native

        Testing Library

        Helps you to write better tests with less effort.

        Maintainable

        Write maintainable tests for your React Native apps.

        Reliable

        Promotes testing public APIs and avoiding implementation details.

        ❤️

        Community Driven

        Supported by React Native community and its core contributors.

        Copyright © 2024 Callstack Open Source
        \ No newline at end of file +React Native Testing LibraryReact Native Testing Library

        React Native

        Testing Library

        Helps you to write better tests with less effort.

        Maintainable

        Write maintainable tests for your React Native apps.

        Reliable

        Promotes testing public APIs and avoiding implementation details.

        ❤️

        Community Driven

        Supported by React Native community and its core contributors.

        Copyright © 2024 Callstack Open Source
        \ No newline at end of file diff --git a/static/js/539.060c9ab6.js b/static/js/539.b030ae28.js similarity index 99% rename from static/js/539.060c9ab6.js rename to static/js/539.b030ae28.js index 7bc718260..1724c207b 100644 --- a/static/js/539.060c9ab6.js +++ b/static/js/539.b030ae28.js @@ -1,2 +1,2 @@ -/*! For license information please see 539.060c9ab6.js.LICENSE.txt */ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["539"],{7213:function(e,t,n){"use strict";n.d(t,{V:function(){return h}});var r=n("5893"),i=n("7294"),a=n("9250"),o=n("2599"),s=n("6780"),l=n("8028"),c=n("5687");let{routes:u}=n("6118"),d=(0,i.memo)(function(e){let t=e.el;return s.Z?.themeConfig?.enableContentAnimation&&(t=(0,c.n_)(e.el)),t},(e,t)=>e.el===t.el),h=({fallback:e=(0,r.jsx)(r.Fragment,{})})=>{let{pathname:t}=(0,a.TH)(),n=(0,o.fp)(u,(0,l.Tm)(t));if(!n)return(0,r.jsx)("div",{});let s=n[0].route.element;return(0,r.jsx)(i.Suspense,{fallback:e,children:(0,r.jsx)(d,{el:s})})}},8183:function(e,t,n){"use strict";n.d(t,{r:function(){return a}});var r=n("5893"),i=n("7294");function a(e){let{children:t}=e,[n,a]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{a(!0)},[]),n)?(0,r.jsx)(r.Fragment,{children:t}):null}},5687:function(e,t,n){"use strict";n.d(t,{Jr:function(){return l},Ni:function(){return o},R0:function(){return a},Vi:function(){return s},aw:function(){return c},n_:function(){return u}});var r=n("7294"),i=n("3935");let a=(0,r.createContext)({}),o=(0,r.createContext)({});function s(){return(0,r.useContext)(a).data}function l(){return(0,r.useContext)(a).data.page.lang||""}function c(){return(0,r.useContext)(a).data.page.version||""}function u(e){let[t,n]=(0,r.useState)(e);return(0,r.useLayoutEffect)(()=>{document.startViewTransition&&t!==e?document.startViewTransition(()=>{(0,i.flushSync)(()=>{n(e)}),window.dispatchEvent(new Event("RspressReloadContent"))}):((0,i.flushSync)(()=>{n(e)}),window.dispatchEvent(new Event("RspressReloadContent")))},[e]),t}},8028:function(e,t,n){"use strict";n.d(t,{AP:function(){return c},E9:function(){return s},Tm:function(){return a},i6:function(){return u},pJ:function(){return o},pV:function(){return l}});var r=n("6780"),i=n("8995");function a(e){return decodeURIComponent(e).replace(/\.html$/,"").replace(/\/index$/,"/")}function o(e="/"){return(0,i.pJ)(e,r.Z.base)}function s(e){return(0,i.E9)(e,r.Z.base)}function l(e,t){return o(c((0,i.lm)(e)))===o(c((0,i.lm)(t)))}function c(e){let t=!!r.Z?.route?.cleanUrls;return(0,i.yc)(e,t)}function u(e){return!(0,i.yv)()||(0,i.xf)(e)||(0,i.pZ)(e)?e:o(e)}},8509:function(e,t,n){"use strict";n.d(t,{Qp:function(){return v},tP:function(){return y}});var r=!1;if("undefined"!=typeof window){var i={get passive(){r=!0;return}};window.addEventListener("testPassive",null,i),window.removeEventListener("testPassive",null,i)}var a="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),o=[],s=!1,l=-1,c=void 0,u=void 0,d=void 0,h=function(e){return o.some(function(t){return!!(t.options.allowTouchMove&&t.options.allowTouchMove(e))||!1})},p=function(e){var t=e||window.event;return!!h(t.target)||!!(t.touches.length>1)||(t.preventDefault&&t.preventDefault(),!1)},f=function(e){if(void 0===d){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;if(t&&n>0){var r=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);d=document.body.style.paddingRight,document.body.style.paddingRight=r+n+"px"}}void 0===c&&(c=document.body.style.overflow,document.body.style.overflow="hidden")},m=function(){void 0!==d&&(document.body.style.paddingRight=d,d=void 0),void 0!==c&&(document.body.style.overflow=c,c=void 0)},g=function(){if(void 0!==u){var e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);document.body.style.position=u.position,document.body.style.top=u.top,document.body.style.left=u.left,window.scrollTo(t,e),u=void 0}},x=function(e,t){var n,r=e.targetTouches[0].clientY-l;if(h(e.target))return!1;if(t&&0===t.scrollTop&&r>0)return p(e);return(n=t)&&n.scrollHeight-n.scrollTop<=n.clientHeight&&r<0?p(e):(e.stopPropagation(),!0)},v=function(e,t){if(!e){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}!o.some(function(t){return t.targetElement===e})&&(o=[].concat(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,n=Array(e.length);t=r&&(document.body.style.top=-(t+e))})},300)}}):f(t),a&&(e.ontouchstart=function(e){1===e.targetTouches.length&&(l=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&x(t,e)},!s&&(document.addEventListener("touchmove",p,r?{passive:!1}:void 0),s=!0)))},y=function(){a&&(o.forEach(function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null}),s&&(document.removeEventListener("touchmove",p,r?{passive:!1}:void 0),s=!1),l=-1),a?g():m(),o=[]}},640:function(e,t,n){"use strict";var r=n("1742"),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,o,s,l,c,u,d,h=!1;!t&&(t={}),o=t.debug||!1;try{if(l=r(),c=document.createRange(),u=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(n){if(n.stopPropagation(),t.format){if(n.preventDefault(),void 0===n.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=i[t.format]||i.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e)}t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),c.selectNodeContents(d),u.addRange(c),!document.execCommand("copy"))throw Error("copy command was unsuccessful");h=!0}catch(r){o&&console.error("unable to copy using execCommand: ",r),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),h=!0}catch(r){;o&&console.error("unable to copy using clipboardData: ",r),o&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",a=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C",s=n.replace(/#{\s*key\s*}/g,a),window.prompt(s,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(c):u.removeAllRanges()),d&&document.body.removeChild(d),l()}return h}},8255:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n("1132");function i(e,t){e.classList?e.classList.add(t):!(0,r.Z)(e,t)&&("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}},1132:function(e,t,n){"use strict";function r(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}n.d(t,{Z:function(){return r}})},4277:function(e,t,n){"use strict";function r(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function i(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))}n.d(t,{Z:function(){return i}})},8481:function(e,t){"use strict";var n,r,i;let a;n="FlexSearch",r=function e(t){let n;function r(e,t){let n=t?t.id:e&&e.id;this.id=n||0===n?n:I++,this.init(e,t),s(this,"index",function(){return this.a?Object.keys(this.a.index[this.a.keys[0]].c):Object.keys(this.c)}),s(this,"length",function(){return this.index.length})}function i(e,t,n,r){return this.u!==this.g&&(this.o=this.o.concat(n),this.u++,r&&this.o.length>=r&&(this.u=this.g),this.u===this.g&&(this.cache&&this.j.set(t,this.o),this.F&&this.F(this.o))),this}function a(e,t){let n=e.length,r=b(t),i=[];for(let a=0,o=0;a=o&&((e=(e=e[s-(i+.5>>0)])[n]||(e[n]=[]))[e.length]=r),i)}function d(e,t){if(e){let n=Object.keys(e);for(let r=0,i=n.length;r(e=e.length-t.length)?1:e?-1:0}function f(e,t){return e=e[n],e<(t=t[n])?-1:e>t?1:0}function m(e,t){let r=n.length;for(let i=0;it?1:0}function g(e,t,n){return e?{page:e,next:t?""+t:null,result:n}:n}function x(e,t,n,r,i,a,o){let s,l=[];if(!0===n){n="0";var c=""}else c=n&&n.split(":");let u=e.length;if(1o&&(c=0),(s=(c=c||0)+t)=this.m.length&&(this.C=0),this.m[this.C].postMessage({add:!0,id:e,content:t}),this.c[o]=""+this.C,n&&n(),this;if(!i){if(this.async&&"function"!=typeof importScripts){let i=this;return(o=new Promise(function(n){setTimeout(function(){i.add(e,t,null,r,!0),i=null,n()})}),n)?(o.then(n),this):o}if(n)return this.add(e,t,null,r,!0),n(),this}if(!(t=this.encode(t)).length)return this;i=b(n=this.f)?n(t):t.split(this.split),this.filter&&(i=a(i,this.filter));let p=E();p._ctx=E();let f=i.length,m=this.threshold,g=this.depth,x=this.b,v=this.i,y=this.D;for(let t=0;th;n--)u(v,p,d=s.substring(h,n),e,t,c,m,x-1)}break;default:if(l=u(v,p,s,e,1,c,m,x-1),g&&1=m)for(l=p._ctx[s]||(p._ctx[s]=E()),s=this.h[s]||(this.h[s]=j(x-(m||0))),0>(c=t-g)&&(c=0),(d=t+g+1)>f&&(d=f);ci;n--)r=a[n-1],a[n]=r,t[r]=n;a[i]=e,t[e]=i}}}return t},e}();return r}(function(){let e={},t="undefined"!=typeof Blob&&"undefined"!=typeof URL&&URL.createObjectURL;return function(n,r,i,a,o){return i=t?URL.createObjectURL(new Blob(["("+i.toString()+")()"],{type:"text/javascript"})):n+".min.js",e[n+="-"+r]||(e[n]=[]),e[n][o]=new Worker(i),e[n][o].onmessage=a,e[n][o]}}()),i=this,(a=i.define)&&a.amd?a([],function(){return r}):(a=i.modules)?a[n.toLowerCase()]=r:"object"==typeof t?e.exports=r:i[n]=r},2988:function(e,t,n){"use strict";e.exports=n("4224")},5598:function(e,t,n){var r,i;r=this,i=function(e){"use strict";function t(e){return e.replace(/(-|:)(.)/g,function(e,t,n){return n.toUpperCase()})}e=e&&e.hasOwnProperty("default")?e.default:e;var n=["table","tbody","thead","tfoot","tr"],r={for:"htmlFor",class:"className",allowfullscreen:["allowFullScreen","allowFullscreen"],autocomplete:"autoComplete",autofocus:["autoFocus"],contenteditable:"contentEditable",spellcheck:"spellCheck",srcdoc:"srcDoc",srcset:"srcSet",itemscope:"itemScope",itemprop:"itemProp",itemtype:"itemType"};function i(e,t){var n=r[t],i=document.createElement(e);if(n)return{name:Array.isArray(n)?n[0]:n,isBoolean:a(i,Array.isArray(n)?n[1]||t:n)};for(var o in i)if(o.toLowerCase()===t.toLowerCase())return{name:o,isBoolean:a(i,o)};return{name:t,isBoolean:a(i,t)}}function a(e,t){return e.setAttribute(t,""),!0===e[t]||o.indexOf(t)>-1}var o=["itemScope"];function s(t,n,r,i){void 0===i&&(i=null);var a=r[t],o=r._;return a?e.createElement(a,n,i):o?o(t,n,i):e.createElement(t,n,i)}return function(e,r){if(void 0===r&&(r={}),"string"!=typeof e)throw TypeError("Expected HTML string");var a=document.createElement("div");a.innerHTML=e.trim();var o=Array.from(a.childNodes).map(function(e,a){return function e(r,a,o){var l,c,u,d,h=o.transform||{},p=o.preserveAttributes||[],f=o.dangerouslySetChildren||["style"],m=h._;if(8===r.nodeType)return null;if(3===r.nodeType){var g=r.textContent;return m?m(g):g}for(var x={},v=r.attributes,y=0;y1){var i,o=(i=r[0].trim(),/^-ms-/.test(i)&&(i=i.substr(1)),i.startsWith("--")?i:t(i)),s=(n=r.slice(1).join(":").trim(),/^\d+$/.test(n)?Number(n):n.replace(/'/g,'"'));a[o]=s}}),a);else{var s=c[n],h=""===s||String(s).toLowerCase()===r.toLowerCase();e[o.name]=o.isBoolean?h:s}return e},{})),k=Array.from(r.childNodes).map(function(t,r){return n.indexOf(b)>-1&&3===t.nodeType&&(t.textContent=t.textContent.trim(),""===t.textContent)?null:e(t,a+"."+r,o)}).filter(Boolean);if(f.indexOf(b)>-1){var j=r.innerHTML;return j&&("style"!==b&&"script"!==b&&(j=j.replace(/"/g,""")),w.dangerouslySetInnerHTML={__html:j.trim()}),s(b,w,h)}return s(b,w,h,0===k.length?null:k)}(e,String(a),r)}).filter(Boolean);return 1===o.length?o[0]:o}},"object"==typeof t?e.exports=i(n("7294")):"function"==typeof define&&define.amd?define(["react"],i):(r=r||self).htmr=i(r.React)},1143:function(e){"use strict";e.exports=function(e,t,n,r,i,a,o,s){if(!e){var l;if(void 0===t)l=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,a,o,s],u=0;(l=Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},2557:function(e,t){"use strict";var n=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},u=window.Promise||function(e){function t(){}e(t,t)},d=function(){for(var e=arguments.length,t=Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.target,r=function(){var e={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},t=void 0,r=void 0;if(y.container){if(y.container instanceof Object)t=(e=n({},e,y.container)).width-e.left-e.right-2*y.margin,r=e.height-e.top-e.bottom-2*y.margin;else{var o=(i(y.container)?y.container:document.querySelector(y.container)).getBoundingClientRect();e=n({},e,{width:o.width,height:o.height,left:o.left,top:o.top})}}t=t||e.width-2*y.margin,r=r||e.height-2*y.margin;var s=b.zoomedHd||b.original,l=a(s)?t:s.naturalWidth||t,c=a(s)?r:s.naturalHeight||r,u=s.getBoundingClientRect(),d=u.top,h=u.left,p=u.width,f=u.height,m=Math.min(Math.min(Math.max(p,l),t)/p,Math.min(Math.max(f,c),r)/f),g=(-h+(t-p)/2+y.margin+e.left)/m,x=(-d+(r-f)/2+y.margin+e.top)/m,v="scale("+m+") translate3d("+g+"px, "+x+"px, 0)";b.zoomed.style.transform=v,b.zoomedHd&&(b.zoomedHd.style.transform=v)};return new u(function(e){if(t&&-1===m.indexOf(t)){e(k);return}if(b.zoomed){e(k);return}if(t)b.original=t;else if(m.length>0){var n=m;b.original=n[0]}else{e(k);return}if(b.original.dispatchEvent(c("medium-zoom:open",{detail:{zoom:k}})),v=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,x=!0,b.zoomed=l(b.original),document.body.appendChild(w),y.template){var a=i(y.template)?y.template:document.querySelector(y.template);b.template=document.createElement("div"),b.template.appendChild(a.content.cloneNode(!0)),document.body.appendChild(b.template)}if(b.original.parentElement&&"PICTURE"===b.original.parentElement.tagName&&b.original.currentSrc&&(b.zoomed.src=b.original.currentSrc),document.body.appendChild(b.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),b.original.classList.add("medium-zoom-image--hidden"),b.zoomed.classList.add("medium-zoom-image--opened"),b.zoomed.addEventListener("click",p),b.zoomed.addEventListener("transitionend",function t(){x=!1,b.zoomed.removeEventListener("transitionend",t),b.original.dispatchEvent(c("medium-zoom:opened",{detail:{zoom:k}})),e(k)}),b.original.getAttribute("data-zoom-src")){b.zoomedHd=b.zoomed.cloneNode(),b.zoomedHd.removeAttribute("srcset"),b.zoomedHd.removeAttribute("sizes"),b.zoomedHd.removeAttribute("loading"),b.zoomedHd.src=b.zoomed.getAttribute("data-zoom-src"),b.zoomedHd.onerror=function(){clearInterval(o),console.warn("Unable to reach the zoom image target "+b.zoomedHd.src),b.zoomedHd=null,r()};var o=setInterval(function(){b.zoomedHd.complete&&(clearInterval(o),b.zoomedHd.classList.add("medium-zoom-image--opened"),b.zoomedHd.addEventListener("click",p),document.body.appendChild(b.zoomedHd),r())},10)}else if(b.original.hasAttribute("srcset")){b.zoomedHd=b.zoomed.cloneNode(),b.zoomedHd.removeAttribute("sizes"),b.zoomedHd.removeAttribute("loading");var s=b.zoomedHd.addEventListener("load",function(){b.zoomedHd.removeEventListener("load",s),b.zoomedHd.classList.add("medium-zoom-image--opened"),b.zoomedHd.addEventListener("click",p),document.body.appendChild(b.zoomedHd),r()})}else r()})},p=function(){return new u(function(e){if(x||!b.original){e(k);return}x=!0,document.body.classList.remove("medium-zoom--opened"),b.zoomed.style.transform="",b.zoomedHd&&(b.zoomedHd.style.transform=""),b.template&&(b.template.style.transition="opacity 150ms",b.template.style.opacity=0),b.original.dispatchEvent(c("medium-zoom:close",{detail:{zoom:k}})),b.zoomed.addEventListener("transitionend",function t(){b.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(b.zoomed),b.zoomedHd&&document.body.removeChild(b.zoomedHd),document.body.removeChild(w),b.zoomed.classList.remove("medium-zoom-image--opened"),b.template&&document.body.removeChild(b.template),x=!1,b.zoomed.removeEventListener("transitionend",t),b.original.dispatchEvent(c("medium-zoom:closed",{detail:{zoom:k}})),b.original=null,b.zoomed=null,b.zoomedHd=null,b.template=null,e(k)})})},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;return b.original?p():h({target:t})},m=[],g=[],x=!1,v=0,y=r,b={original:null,zoomed:null,zoomedHd:null,template:null};"[object Object]"===Object.prototype.toString.call(t)?y=t:(t||"string"==typeof t)&&d(t);var w=s((y=n({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},y)).background);document.addEventListener("click",function(e){var t=e.target;if(t===w){p();return}-1!==m.indexOf(t)&&f({target:t})}),document.addEventListener("keyup",function(e){var t=e.key||e.keyCode;("Escape"===t||"Esc"===t||27===t)&&p()}),document.addEventListener("scroll",function(){if(!x&&b.original){var e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(v-e)>y.scrollOffset&&setTimeout(p,150)}}),window.addEventListener("resize",p);var k={open:h,close:p,toggle:f,update:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.background&&(w.style.background=e.background),e.container&&e.container instanceof Object&&(e.container=n({},y.container,e.container)),e.template){var t=i(e.template)?e.template:document.querySelector(e.template);e.template=t}return y=n({},y,e),m.forEach(function(e){e.dispatchEvent(c("medium-zoom:update",{detail:{zoom:k}}))}),k},clone:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e(n({},y,t))},attach:d,detach:function(){for(var e=arguments.length,t=Array(e),n=0;n0?t.reduce(function(e,t){return[].concat(e,o(t))},[]):m;return r.forEach(function(e){e.classList.remove("medium-zoom-image"),e.dispatchEvent(c("medium-zoom:detach",{detail:{zoom:k}}))}),m=m.filter(function(e){return -1===r.indexOf(e)}),k},on:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return m.forEach(function(r){r.addEventListener("medium-zoom:"+e,t,n)}),g.push({type:"medium-zoom:"+e,listener:t,options:n}),k},off:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return m.forEach(function(r){r.removeEventListener("medium-zoom:"+e,t,n)}),g=g.filter(function(n){return!(n.type==="medium-zoom:"+e&&n.listener.toString()===t.toString())}),k},getOptions:function(){return y},getImages:function(){return m},getZoomedImage:function(){return b.original}};return k}},4865:function(e,t){var n,r;n=this,r=function(){var e,t,n,r={};r.version="0.2.0";var i=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
        '};function a(e,t,n){return en?n:e}function o(e){return(-1+e)*100}r.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(i[t]=n);return this},r.status=null,r.set=function(e){var t=r.isStarted();e=a(e,i.minimum,1),r.status=1===e?null:e;var n=r.render(!t),o=n.querySelector(i.barSelector),c=i.speed,u=i.easing;return n.offsetWidth,s(function(t){""===i.positionUsing&&(i.positionUsing=r.getPositioningCSS()),l(o,function(e,t,n){var r;if("translate3d"===i.positionUsing)r={transform:"translate3d("+(-1+e)*100+"%,0,0)"};else if("translate"===i.positionUsing)r={transform:"translate("+(-1+e)*100+"%,0)"};else r={"margin-left":(-1+e)*100+"%"};return r.transition="all "+t+"ms "+n,r}(e,c,u)),1===e?(l(n,{transition:"none",opacity:1}),n.offsetWidth,setTimeout(function(){l(n,{transition:"all "+c+"ms linear",opacity:0}),setTimeout(function(){r.remove(),t()},c)},c)):setTimeout(t,c)}),this},r.isStarted=function(){return"number"==typeof r.status},r.start=function(){!r.status&&r.set(0);var e=function(){setTimeout(function(){r.status&&(r.trickle(),e())},i.trickleSpeed)};return i.trickle&&e(),this},r.done=function(e){return e||r.status?r.inc(.3+.5*Math.random()).set(1):this},r.inc=function(e){var t=r.status;return t?("number"!=typeof e&&(e=(1-t)*a(Math.random()*t,.1,.95)),t=a(t+e,0,.994),r.set(t)):r.start()},r.trickle=function(){return r.inc(Math.random()*i.trickleRate)},e=0,t=0,r.promise=function(n){return n&&"resolved"!==n.state()?(0===t&&r.start(),e++,t++,n.always(function(){0==--t?(e=0,r.done()):r.set((e-t)/e)}),this):this},r.render=function(e){if(r.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=i.template;var n,a=t.querySelector(i.barSelector),o=e?"-100":function(e){return(-1+e)*100}(r.status||0),s=document.querySelector(i.parent);return l(a,{transition:"all 0 linear",transform:"translate3d("+o+"%,0,0)"}),!i.showSpinner&&(n=t.querySelector(i.spinnerSelector))&&p(n),s!=document.body&&u(s,"nprogress-custom-parent"),s.appendChild(t),t},r.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(i.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&p(e)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective" in e?"translate3d":t+"Transform" in e?"translate":"margin"};var s=(n=[],function(e){n.push(e),1==n.length&&!function e(){var t=n.shift();t&&t(e)}()}),l=function(){var e=["Webkit","O","Moz","ms"],t={};function n(n,r,i){r=function(n){return t[n=n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[n]=function(t){var n=document.body.style;if(t in n)return t;for(var r,i=e.length,a=t.charAt(0).toUpperCase()+t.slice(1);i--;)if((r=e[i]+a)in n)return r;return t}(n))}(r),n.style[r]=i}return function(e,t){var r,i,a=arguments;if(2==a.length)for(r in t)void 0!==(i=t[r])&&t.hasOwnProperty(r)&&n(e,r,i);else n(e,a[1],a[2])}}();function c(e,t){return("string"==typeof e?e:h(e)).indexOf(" "+t+" ")>=0}function u(e,t){var n=h(e),r=n+t;!c(n,t)&&(e.className=r.substring(1))}function d(e,t){var n,r=h(e);c(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function h(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function p(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return r},"function"==typeof define&&define.amd?define(r):"object"==typeof t?e.exports=r():n.NProgress=r()},2703:function(e,t,n){"use strict";var r=n("414");function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},5697:function(e,t,n){e.exports=n("2703")()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9590:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,a){try{return function e(a,o){if(a===o)return!0;if(a&&o&&"object"==typeof a&&"object"==typeof o){var s,l,c,u;if(a.constructor!==o.constructor)return!1;if(Array.isArray(a)){if((s=a.length)!=o.length)return!1;for(l=s;0!=l--;)if(!e(a[l],o[l]))return!1;return!0}if(n&&a instanceof Map&&o instanceof Map){if(a.size!==o.size)return!1;for(u=a.entries();!(l=u.next()).done;)if(!o.has(l.value[0]))return!1;for(u=a.entries();!(l=u.next()).done;)if(!e(l.value[1],o.get(l.value[0])))return!1;return!0}if(r&&a instanceof Set&&o instanceof Set){if(a.size!==o.size)return!1;for(u=a.entries();!(l=u.next()).done;)if(!o.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(o)){if((s=a.length)!=o.length)return!1;for(l=s;0!=l--;)if(a[l]!==o[l])return!1;return!0}if(a.constructor===RegExp)return a.source===o.source&&a.flags===o.flags;if(a.valueOf!==Object.prototype.valueOf&&"function"==typeof a.valueOf&&"function"==typeof o.valueOf)return a.valueOf()===o.valueOf();if(a.toString!==Object.prototype.toString&&"function"==typeof a.toString&&"function"==typeof o.toString)return a.toString()===o.toString();if((s=(c=Object.keys(a)).length)!==Object.keys(o).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(o,c[l]))return!1;if(t&&a instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!a.$$typeof)&&!e(a[c[l]],o[c[l]]))return!1;return!0}return a!=a&&o!=o}(e,a)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},405:function(e,t,n){"use strict";n.d(t,{B6:function(){return D},ql:function(){return Y}});var r=n("7294"),i=n("5697"),a=n.n(i),o=n("9590"),s=n.n(o),l=n("1143"),c=n.n(l),u=n("6774"),d=n.n(u);function h(){return(h=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var g={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},x={rel:["amphtml","canonical","alternate"]},v={type:["application/ld+json"]},y={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},b=Object.keys(g).map(function(e){return g[e]}),w={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},k=Object.keys(w).reduce(function(e,t){return e[w[t]]=t,e},{}),j=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},E=function(e){var t=j(e,g.TITLE),n=j(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,function(){return t});var r=j(e,"defaultTitle");return t||r||void 0},S=function(e,t){return t.filter(function(t){return void 0!==t[e]}).map(function(t){return t[e]}).reduce(function(e,t){return h({},e,t)},{})},N=function(e,t,n){var r={};return n.filter(function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)}).map(function(t){return t[e]}).reverse().reduce(function(e,n){var i={};n.filter(function(e){for(var n,a=Object.keys(e),o=0;o/g,">").replace(/"/g,""").replace(/'/g,"'")},O=function(e){return Object.keys(e).reduce(function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r},"")},L=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce(function(t,n){return t[w[n]||n]=e[n],t},t)},M=function(e,t){return t.map(function(t,n){var i,a=((i={key:n})["data-rh"]=!0,i);return Object.keys(t).forEach(function(e){var n=w[e]||e;"innerHTML"===n||"cssText"===n?a.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:a[n]=t[e]}),r.createElement(e,a)})},z=function(e,t,n){switch(e){case g.TITLE:return{toComponent:function(){var e,n,i,a;return n=t.titleAttributes,(i={key:e=t.title})["data-rh"]=!0,a=L(n,i),[r.createElement(g.TITLE,a,e)]},toString:function(){var r,i,a,o,s,l;return r=e,i=t.title,a=t.titleAttributes,o=n,s=O(a),l=A(i),s?"<"+r+' data-rh="true" '+s+">"+P(l,o)+"":"<"+r+' data-rh="true">'+P(l,o)+""}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return L(t)},toString:function(){return O(t)}};default:return{toComponent:function(){return M(e,t)},toString:function(){var r,i,a;return r=e,i=t,a=n,i.reduce(function(e,t){var n=Object.keys(t).filter(function(e){return!("innerHTML"===e||"cssText"===e)}).reduce(function(e,n){var r=void 0===t[n]?n:n+'="'+P(t[n],a)+'"';return e?e+" "+r:r},""),i=t.innerHTML||t.cssText||"",o=-1===_.indexOf(r);return e+"<"+r+' data-rh="true" '+n+(o?"/>":">"+i+"")},"")}}}},R=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,i=e.htmlAttributes,a=e.noscriptTags,o=e.styleTags,s=e.title,l=e.titleAttributes,c=e.linkTags,u=e.metaTags,d=e.scriptTags,h={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var p,f,m,b,w,k,j,E=(f=(p=e).linkTags,m=p.scriptTags,b=p.encode,w=I(p.metaTags,y),k=I(f,x),j=I(m,v),{priorityMethods:{toComponent:function(){return[].concat(M(g.META,w.priority),M(g.LINK,k.priority),M(g.SCRIPT,j.priority))},toString:function(){return z(g.META,w.priority,b)+" "+z(g.LINK,k.priority,b)+" "+z(g.SCRIPT,j.priority,b)}},metaTags:w.default,linkTags:k.default,scriptTags:j.default});h=E.priorityMethods,c=E.linkTags,u=E.metaTags,d=E.scriptTags}return{priority:h,base:z(g.BASE,t,r),bodyAttributes:z("bodyAttributes",n,r),htmlAttributes:z("htmlAttributes",i,r),link:z(g.LINK,c,r),meta:z(g.META,u,r),noscript:z(g.NOSCRIPT,a,r),script:z(g.SCRIPT,d,r),style:z(g.STYLE,o,r),title:z(g.TITLE,{title:void 0===s?"":s,titleAttributes:l},r)}},$=[],F=function(e,t){var n=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){n.context.helmet=e},helmetInstances:{get:function(){return n.canUseDOM?$:n.instances},add:function(e){(n.canUseDOM?$:n.instances).push(e)},remove:function(e){var t=(n.canUseDOM?$:n.instances).indexOf(e);(n.canUseDOM?$:n.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=R({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},B=r.createContext({}),H=a().shape({setHelmet:a().func,helmetInstances:a().shape({get:a().func,add:a().func,remove:a().func})}),D=function(e){function t(n){var r;return(r=e.call(this,n)||this).helmetData=new F(r.props.context,t.canUseDOM),r}return p(t,e),t.prototype.render=function(){return r.createElement(B.Provider,{value:this.helmetData.value},this.props.children)},t}(r.Component);D.canUseDOM="undefined"!=typeof document,D.propTypes={context:a().shape({helmet:a().shape()}),children:a().node.isRequired},D.defaultProps={context:{}},D.displayName="HelmetProvider";var Z=function(e,t){var n,r=document.head||document.querySelector(g.HEAD),i=r.querySelectorAll(e+"[data-rh]"),a=[].slice.call(i),o=[];return t&&t.length&&t.forEach(function(t){var r=document.createElement(e);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&("innerHTML"===i?r.innerHTML=t.innerHTML:"cssText"===i?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(i,void 0===t[i]?"":t[i]));r.setAttribute("data-rh","true"),a.some(function(e,t){return n=t,r.isEqualNode(e)})?a.splice(n,1):o.push(r)}),a.forEach(function(e){return e.parentNode.removeChild(e)}),o.forEach(function(e){return r.appendChild(e)}),{oldTags:a,newTags:o}},q=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-rh"),i=r?r.split(","):[],a=[].concat(i),o=Object.keys(t),s=0;s=0;d-=1)n.removeAttribute(a[d]);i.length===a.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==o.join(",")&&n.setAttribute("data-rh",o.join(","))}},U=function(e,t){var n,r,i=e.baseTag,a=e.htmlAttributes,o=e.linkTags,s=e.metaTags,l=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,d=e.styleTags,h=e.title,p=e.titleAttributes;q(g.BODY,e.bodyAttributes),q(g.HTML,a),n=h,r=p,void 0!==n&&document.title!==n&&(document.title=A(n)),q(g.TITLE,r);var f={baseTag:Z(g.BASE,i),linkTags:Z(g.LINK,o),metaTags:Z(g.META,s),noscriptTags:Z(g.NOSCRIPT,l),scriptTags:Z(g.SCRIPT,u),styleTags:Z(g.STYLE,d)},m={},x={};Object.keys(f).forEach(function(e){var t=f[e],n=t.newTags,r=t.oldTags;n.length&&(m[e]=n),r.length&&(x[e]=f[e].oldTags)}),t&&t(),c(e,m,x)},V=null,W=function(e){function t(){for(var t,n=arguments.length,r=Array(n),i=0;i elements are self-closing and can not contain children. Refer to our API for more information.")}},n.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return h({},r,((t={})[n.type]=[].concat(r[n.type]||[],[h({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.mapObjectTypeChildren=function(e){var t,n,r=e.child,i=e.newProps,a=e.newChildProps,o=e.nestedChildren;switch(r.type){case g.TITLE:return h({},i,((t={})[r.type]=o,t.titleAttributes=h({},a),t));case g.BODY:return h({},i,{bodyAttributes:h({},a)});case g.HTML:return h({},i,{htmlAttributes:h({},a)});default:return h({},i,((n={})[r.type]=h({},a),n))}},n.mapArrayTypeChildrenToProps=function(e,t){var n=h({},t);return Object.keys(e).forEach(function(t){var r;n=h({},n,((r={})[t]=e[t],r))}),n},n.warnOnInvalidChildren=function(e,t){return c()(b.some(function(t){return e.type===t}),"function"==typeof e.type?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+b.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),c()(!t||"string"==typeof t||Array.isArray(t)&&!t.some(function(e){return"string"!=typeof e}),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``} ) Refer to our API for more information."),!0},n.mapChildrenToProps=function(e,t){var n=this,i={};return r.Children.forEach(e,function(e){if(e&&e.props){var r=e.props,a=r.children,o=m(r,G),s=Object.keys(o).reduce(function(e,t){return e[k[t]||t]=o[t],e},{}),l=e.type;switch("symbol"==typeof l?l=l.toString():n.warnOnInvalidChildren(e,a),l){case g.FRAGMENT:t=n.mapChildrenToProps(a,t);break;case g.LINK:case g.META:case g.NOSCRIPT:case g.SCRIPT:case g.STYLE:i=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:i,newChildProps:s,nestedChildren:a});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:a})}}}),this.mapArrayTypeChildrenToProps(i,t)},n.render=function(){var e=this.props,t=e.children,n=m(e,K),i=h({},n),a=n.helmetData;return t&&(i=this.mapChildrenToProps(t,i)),!a||a instanceof F||(a=new F(a.context,a.instances)),a?r.createElement(W,h({},i,{context:a.value,helmetData:void 0})):r.createElement(B.Consumer,null,function(e){return r.createElement(W,h({},i,{context:e}))})},t}(r.Component);Y.propTypes={base:a().object,bodyAttributes:a().object,children:a().oneOfType([a().arrayOf(a().node),a().node]),defaultTitle:a().string,defer:a().bool,encodeSpecialCharacters:a().bool,htmlAttributes:a().object,link:a().arrayOf(a().object),meta:a().arrayOf(a().object),noscript:a().arrayOf(a().object),onChangeClientState:a().func,script:a().arrayOf(a().object),style:a().arrayOf(a().object),title:a().string,titleAttributes:a().object,titleTemplate:a().string,prioritizeSeoTags:a().bool,helmetData:a().object},Y.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},Y.displayName="Helmet"},3040:function(e,t,n){"use strict";t.lazyWithPreload=void 0;var r,i=n("7294");function a(e){var t,n,r=(0,i.lazy)(e),a=(0,i.forwardRef)(function(e,n){var a=(0,i.useRef)(null!=t?t:r);return(0,i.createElement)(a.current,Object.assign(n?{ref:n}:{},e))});return a.preload=function(){return!n&&(n=e().then(function(e){return t=e.default})),n},a}t.lazyWithPreload=a},6880:function(e,t,n){"use strict";function r(e,t){return -1!==e.listLanguages().indexOf(t)}n.d(t,{Z:function(){return r}})},5382:function(e,t,n){"use strict";n.d(t,{ZP:function(){return u}});var r=n("6019"),i=n("7508"),a=n("7294");function o(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}function s(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return(function(e){if(0===e.length||1===e.length)return e;var t,n,r=e.join(".");if(!l[r]){;l[r]=0===(n=(t=e).length)||1===n?t:2===n?[t[0],t[1],"".concat(t[0],".").concat(t[1]),"".concat(t[1],".").concat(t[0])]:3===n?[t[0],t[1],t[2],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0])]:n>=4?[t[0],t[1],t[2],t[3],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[2],".").concat(t[3]),"".concat(t[3],".").concat(t[0]),"".concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[0]),"".concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[3],".").concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[2],".").concat(t[1],".").concat(t[0])]:void 0}return l[r]})(e.filter(function(e){return"token"!==e})).reduce(function(e,t){return s(s({},e),n[t])},t)}(d.className,Object.assign({},d.style,void 0===i?{}:i),n)})}else v=s(s({},d),{},{className:d.className.join(" ")});var j=y(t.children);return a.createElement(p,(0,r.Z)({key:c},v),j)}}},125:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n("7354"),i=n("4220"),a=n("7508"),o=n("7294"),s=n("5382"),l=n("6880"),c=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function u(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}function d(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=0;a2&&void 0!==arguments[2]?arguments[2]:[];return t||o.length>0?function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return g({children:e,lineNumber:t,lineNumberStyle:l,largestLineNumber:s,showInlineLineNumbers:a,lineProps:n,className:i,showLineNumbers:r,wrapLongLines:c})}(e,i,o):function(e,t){if(r&&t&&a){var n=m(l,t,s);e.unshift(f(t,n))}return e}(e,i)}for(;v>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],a=r.variable[1].inside,o=0;o]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}e.exports=t,t.displayName="clike",t.aliases=[]},2049:function(e){"use strict";function t(e){var t,n,r;n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,(t=e).languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css,(r=t.languages.markup)&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))}e.exports=t,t.displayName="css",t.aliases=[]},3336:function(e){"use strict";function t(e){var t,n;(t=e).languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]},Object.keys(n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"}).forEach(function(e){var r=n[e],i=[];!/^\w+$/.test(e)&&i.push(/\w+/.exec(e)[0]),"diff"===e&&i.push("bold"),t.languages.diff[e]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(e)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})}e.exports=t,t.displayName="diff",t.aliases=[]},6155:function(e){"use strict";function t(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|")+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}e.exports=t,t.displayName="javascript",t.aliases=["js"]},5950:function(e){"use strict";function t(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}e.exports=t,t.displayName="json",t.aliases=["webmanifest"]},6412:function(e){"use strict";function t(e){!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function a(e,t){return RegExp(e=e.replace(//g,function(){return n}).replace(//g,function(){return r}).replace(//g,function(){return i}),t)}i=a(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=a(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:a(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var o=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(o).join(""):""},s=function(t){for(var n=[],r=0;r0&&n[n.length-1].tagName===o(i.content[0].content[1])&&n.pop():"/>"===i.content[i.content.length-1].content||n.push({tagName:o(i.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===i.type&&"{"===i.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===i.type&&"}"===i.content?n[n.length-1].openedBraces--:a=!0),(a||"string"==typeof i)&&n.length>0&&0===n[n.length-1].openedBraces){var l=o(i);r0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(l=o(t[r-1])+l,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",l,null,l)}i.content&&"string"!=typeof i.content&&s(i.content)}};e.hooks.add("after-tokenize",function(e){("jsx"===e.language||"tsx"===e.language)&&s(e.tokens)})}(e)}e.exports=t,t.displayName="jsx",t.aliases=[]},1701:function(e){"use strict";function t(e){e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}e.exports=t,t.displayName="less",t.aliases=[]},542:function(e){"use strict";function t(e){!function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(//g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+a+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+a+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(t){["url","bold","italic","strike","code-snippet"].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add("after-tokenize",function(e){("markdown"===e.language||"md"===e.language)&&function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(e)}e.exports=t,t.displayName="markdown",t.aliases=["md"]},2717:function(e){"use strict";function t(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var r={};r["language-"+n]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[n]},r.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:r}};i["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var a={};a[t]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}e.exports=t,t.displayName="markup",t.aliases=["html","mathml","svg","xml","ssml","atom","rss"]},4296:function(e){"use strict";function t(e){e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}e.exports=t,t.displayName="scss",t.aliases=[]},7041:function(e,t,n){"use strict";var r=n("6412"),i=n("4979");function a(e){var t,n,a;e.register(r),e.register(i),n=(t=e).util.clone(t.languages.typescript),t.languages.tsx=t.languages.extend("jsx",n),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"],(a=t.languages.tsx.tag).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+a.pattern.source+")",a.pattern.flags),a.lookbehind=!0}e.exports=a,a.displayName="tsx",a.aliases=[]},4979:function(e){"use strict";function t(e){var t,n;(t=e).languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"],n=t.languages.extend("typescript",{}),delete n["class-name"],t.languages.typescript["class-name"].inside=n,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),t.languages.ts=t.languages.typescript}e.exports=t,t.displayName="typescript",t.aliases=["ts"]},3808:function(e){"use strict";function t(e){!function(e){function t(t,n){e.languages[t]&&e.languages.insertBefore(t,"comment",{"doc-comment":n})}var n=e.languages.markup.tag,r={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:n}};t("csharp",r),t("fsharp",r),t("vbnet",{pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:n}})}(e)}e.exports=t,t.displayName="xmlDoc",t.aliases=[]},5039:function(e){"use strict";function t(e){!function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(e,t){return t=(t||"").replace(/m/g,"")+"m",RegExp(/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return r}).replace(/<>/g,function(){return e}),t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return r})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return r}).replace(/<>/g,function(){return"(?:"+i+"|"+a+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(a),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(e)}e.exports=t,t.displayName="yaml",t.aliases=["yml"]},7003:function(e,t){"use strict";t.parse=function(e){for(var t,n=[],r=String(e||""),i=r.indexOf(","),a=0,o=!1;!o;)-1===i&&(i=r.length,o=!0),((t=r.slice(a,i).trim())||!o)&&n.push(t),a=i+1,i=r.indexOf(",",a);return n};function n(e,t){var n=t||{},r=!1===n.padLeft?"":" ",i=n.padRight?" ":"";return""===e[e.length-1]&&(e=e.concat("")),e.join(i+","+r).trim()}},4995:function(e){"use strict";e.exports=function(e,n){for(var r,i,a,o=e||"",s=n||"div",l={},c=0;c=97&&t<=122||t>=65&&t<=90}},2783:function(e,t,n){"use strict";var r=n("166"),i=n("1250");e.exports=function(e){return r(e)||i(e)}},1250:function(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},9956:function(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},1e3:function(e){"use strict";var t;e.exports=function(e){var n,r="&"+e+";";return(t=t||document.createElement("i")).innerHTML=r,(59!==(n=t.textContent).charCodeAt(n.length-1)||"semi"===e)&&n!==r&&n}},2921:function(e,t,n){"use strict";var r=n("7854"),i=n("1636"),a=n("1250"),o=n("9956"),s=n("2783"),l=n("1000");e.exports=function(e,t){var n,a,o={};for(a in!t&&(t={}),h)n=t[a],o[a]=null==n?h[a]:n;return(o.position.indent||o.position.start)&&(o.indent=o.position.indent||[],o.position=o.position.start),function(e,t){var n,a,o,h,y,b,w,k,j,E,S,N,C,A,I,T,_,P,O,L=t.additional,M=t.nonTerminated,z=t.text,R=t.reference,$=t.warning,F=t.textContext,B=t.referenceContext,H=t.warningContext,D=t.position,Z=t.indent||[],q=e.length,U=0,V=-1,W=D.column||1,G=D.line||1,K="",Y=[];for("string"==typeof L&&(L=L.charCodeAt(0)),T=J(),k=$?function(e,t){var n=J();n.column+=t,n.offset+=t,$.call(H,v[e],n,e)}:d,U--,q++;++U=55296&&e<=57343||e>1114111}(b=parseInt(h,g[A]))?(k(7,P),b=u(65533)):b in i?(k(6,P),b=i[b]):(E="",function(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(65535&e)==65535||(65535&e)==65534}(b)&&k(6,P),b>65535&&(b-=65536,E+=u(b>>>10|55296),b=56320|1023&b),b=E+u(b))):A!==p&&k(4,P);b?(Q(),T=J(),U=O-1,W+=O-C+1,Y.push(b),_=J(),_.offset++,R&&R.call(B,b,{start:T,end:_},e.slice(C-1,O)),T=_):(h=e.slice(C-1,O),K+=h,W+=h.length,U=O-1)}else 10===y&&(G++,V++,W=0),y==y?(K+=u(y),W++):Q();return Y.join("");function J(){return{line:G,column:W,offset:U+(D.offset||0)}}function Q(){K&&(Y.push(K),z&&z.call(F,K,{start:T,end:J()}),K="")}}(e,o)};var c={}.hasOwnProperty,u=String.fromCharCode,d=Function.prototype,h={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},p="named",f="hexadecimal",m="decimal",g={};g[f]=16,g[m]=10;var x={};x[p]=s,x[m]=a,x[f]=o;var v={};v[1]="Named character references must be terminated by a semicolon",v[2]="Numeric character references must be terminated by a semicolon",v[3]="Named character references cannot be empty",v[4]="Numeric character references cannot be empty",v[5]="Named character references must be known",v[6]="Numeric character references cannot be disallowed",v[7]="Numeric character references cannot be outside the permissible Unicode range"},9216:function(e,t,n){var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=u.reach));k+=w.value.length,w=w.next){var j,E=w.value;if(n.length>t.length)return;if(!(E instanceof a)){var S=1;if(x){if(!(j=o(b,k,t,g))||j.index>=t.length)break;var N=j.index,C=j.index+j[0].length,A=k;for(A+=w.value.length;N>=A;)A+=(w=w.next).value.length;if(A-=w.value.length,k=A,w.value instanceof a)continue;for(var I=w;I!==n.tail&&(Au.reach&&(u.reach=O);var L=w.prev;if(_&&(L=l(n,L,_),k+=_.length),function(e,t,n){for(var r=t.next,i=0;i1){var M={cause:d+","+p,reach:O};e(t,n,r,w.prev,k,M),u&&M.reach>u.reach&&(u.reach=M.reach)}}}}}}(e,c,t,c.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(c)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(n&&n.length)for(var r,a=0;r=n[a++];)r(t)}},Token:a};function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function o(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}e.Prism=i,a.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=e(t,n)}),r}var a={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(a.classes,o):a.classes.push(o)),i.hooks.run("wrap",a);var s="";for(var l in a.attributes)s+=" "+l+'="'+(a.attributes[l]||"").replace(/"/g,""")+'"';return"<"+a.tag+' class="'+a.classes.join(" ")+'"'+s+">"+a.content+""};function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}if(!e.document)return e.addEventListener?(!i.disableWorkerMessageHandler&&e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,a=n.code,o=n.immediateClose;e.postMessage(i.highlight(a,i.languages[r],r)),o&&e.close()},!1),i):i;var c=i.util.currentScript();function u(){!i.manual&&i.highlightAll()}if(c&&(i.filename=c.src,c.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var d=document.readyState;"loading"===d||"interactive"===d&&c&&c.defer?document.addEventListener("DOMContentLoaded",u):window.requestAnimationFrame?window.requestAnimationFrame(u):window.setTimeout(u,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r)},5605:function(e,t,n){"use strict";var r=n("3343"),i=n("3405"),a=n("3806"),o="data";e.exports=function(e,t){var n=r(t),h=t,p=a;return n in e.normal?e.property[e.normal[n]]:(n.length>4&&n.slice(0,4)===o&&s.test(t)&&("-"===t.charAt(4)?h=function(e){var t=e.slice(5).replace(l,d);return o+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);return l.test(t)?e:("-"!==(t=t.replace(c,u)).charAt(0)&&(t="-"+t),o+t)}(t),p=i),new p(h,t))};var s=/^data[-\w.:]+$/i,l=/-[a-z]/g,c=/[A-Z]/g;function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},7034:function(e,t,n){"use strict";var r=n("2627"),i=n("9501"),a=n("822"),o=n("7109"),s=n("5956"),l=n("4330");e.exports=r([a,i,o,s,l])},5956:function(e,t,n){"use strict";var r=n("3941"),i=n("5260"),a=r.booleanish,o=r.number,s=r.spaceSeparated;e.exports=i({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:a,ariaAutoComplete:null,ariaBusy:a,ariaChecked:a,ariaColCount:o,ariaColIndex:o,ariaColSpan:o,ariaControls:s,ariaCurrent:null,ariaDescribedBy:s,ariaDetails:null,ariaDisabled:a,ariaDropEffect:s,ariaErrorMessage:null,ariaExpanded:a,ariaFlowTo:s,ariaGrabbed:a,ariaHasPopup:null,ariaHidden:a,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s,ariaLevel:o,ariaLive:null,ariaModal:a,ariaMultiLine:a,ariaMultiSelectable:a,ariaOrientation:null,ariaOwns:s,ariaPlaceholder:null,ariaPosInSet:o,ariaPressed:a,ariaReadOnly:a,ariaRelevant:null,ariaRequired:a,ariaRoleDescription:s,ariaRowCount:o,ariaRowIndex:o,ariaRowSpan:o,ariaSelected:a,ariaSetSize:o,ariaSort:null,ariaValueMax:o,ariaValueMin:o,ariaValueNow:o,ariaValueText:null,role:null}})},4330:function(e,t,n){"use strict";var r=n("3941"),i=n("5260"),a=n("6716"),o=r.boolean,s=r.overloadedBoolean,l=r.booleanish,c=r.number,u=r.spaceSeparated,d=r.commaSeparated;e.exports=i({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:a,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:o,allowPaymentRequest:o,allowUserMedia:o,alt:null,as:null,async:o,autoCapitalize:null,autoComplete:u,autoFocus:o,autoPlay:o,capture:o,charSet:null,checked:o,cite:null,className:u,cols:c,colSpan:null,content:null,contentEditable:l,controls:o,controlsList:u,coords:c|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:o,defer:o,dir:null,dirName:null,disabled:o,download:s,draggable:l,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:o,formTarget:null,headers:u,height:c,hidden:o,high:c,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:o,itemId:null,itemProp:u,itemRef:u,itemScope:o,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:o,low:c,manifest:null,max:null,maxLength:c,media:null,method:null,min:null,minLength:c,multiple:o,muted:o,name:null,nonce:null,noModule:o,noValidate:o,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:o,optimum:c,pattern:null,ping:u,placeholder:null,playsInline:o,poster:null,preload:null,readOnly:o,referrerPolicy:null,rel:u,required:o,reversed:o,rows:c,rowSpan:c,sandbox:u,scope:null,scoped:o,seamless:o,selected:o,shape:null,size:c,sizes:null,slot:null,span:c,spellCheck:l,src:null,srcDoc:null,srcLang:null,srcSet:d,start:c,step:null,style:null,tabIndex:c,target:null,title:null,translate:null,type:null,typeMustMatch:o,useMap:null,value:l,width:c,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:c,borderColor:null,bottomMargin:c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:o,declare:o,event:null,face:null,frame:null,frameBorder:null,hSpace:c,leftMargin:c,link:null,longDesc:null,lowSrc:null,marginHeight:c,marginWidth:c,noResize:o,noHref:o,noShade:o,noWrap:o,object:null,profile:null,prompt:null,rev:null,rightMargin:c,rules:null,scheme:null,scrolling:l,standby:null,summary:null,text:null,topMargin:c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:o,disableRemotePlayback:o,prefix:null,property:null,results:c,security:null,unselectable:null}})},6716:function(e,t,n){"use strict";var r=n("3532");e.exports=function(e,t){return r(e,t.toLowerCase())}},3532:function(e){"use strict";e.exports=function(e,t){return t in e?e[t]:t}},5260:function(e,t,n){"use strict";var r=n("3343"),i=n("5815"),a=n("3405");e.exports=function(e){var t,n,o=e.space,s=e.mustUseProperty||[],l=e.attributes||{},c=e.properties,u=e.transform,d={},h={};for(t in c)n=new a(t,u(l,t),c[t],o),-1!==s.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,h[r(t)]=t,h[r(n.attribute)]=t;return new i(d,h,o)}},3405:function(e,t,n){"use strict";var r=n("3806"),i=n("3941");e.exports=s,s.prototype=new r,s.prototype.defined=!0;var a=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],o=a.length;function s(e,t,n,s){var l,c=-1;for(function(e,t,n){n&&(e[t]=n)}(this,"space",s),r.call(this,e,t);++cn.e("271").then(n.bind(n,"1605"))),o=(0,i.lazyWithPreload)(()=>n.e("757").then(n.bind(n,"6739"))),s=(0,i.lazyWithPreload)(()=>n.e("986").then(n.bind(n,"1985"))),l=(0,i.lazyWithPreload)(()=>n.e("541").then(n.bind(n,"9439"))),c=(0,i.lazyWithPreload)(()=>n.e("494").then(n.bind(n,"9136"))),u=(0,i.lazyWithPreload)(()=>n.e("2").then(n.bind(n,"8978"))),d=(0,i.lazyWithPreload)(()=>n.e("777").then(n.bind(n,"9935"))),h=(0,i.lazyWithPreload)(()=>n.e("325").then(n.bind(n,"5049"))),p=(0,i.lazyWithPreload)(()=>n.e("103").then(n.bind(n,"3075"))),f=(0,i.lazyWithPreload)(()=>n.e("333").then(n.bind(n,"5309"))),m=(0,i.lazyWithPreload)(()=>n.e("606").then(n.bind(n,"149"))),g=(0,i.lazyWithPreload)(()=>n.e("145").then(n.bind(n,"5348"))),x=(0,i.lazyWithPreload)(()=>n.e("607").then(n.bind(n,"8593"))),v=(0,i.lazyWithPreload)(()=>n.e("354").then(n.bind(n,"2074"))),y=(0,i.lazyWithPreload)(()=>n.e("287").then(n.bind(n,"9347"))),b=(0,i.lazyWithPreload)(()=>n.e("628").then(n.bind(n,"9674"))),w=(0,i.lazyWithPreload)(()=>n.e("119").then(n.bind(n,"5477"))),k=(0,i.lazyWithPreload)(()=>n.e("929").then(n.bind(n,"9475"))),j=(0,i.lazyWithPreload)(()=>n.e("102").then(n.bind(n,"866"))),E=(0,i.lazyWithPreload)(()=>n.e("697").then(n.bind(n,"1990"))),S=(0,i.lazyWithPreload)(()=>n.e("969").then(n.bind(n,"4165"))),N=(0,i.lazyWithPreload)(()=>n.e("82").then(n.bind(n,"5894"))),C=(0,i.lazyWithPreload)(()=>n.e("631").then(n.bind(n,"4833"))),A=(0,i.lazyWithPreload)(()=>n.e("817").then(n.bind(n,"6432"))),I=(0,i.lazyWithPreload)(()=>n.e("836").then(n.bind(n,"1637"))),T=(0,i.lazyWithPreload)(()=>n.e("871").then(n.bind(n,"9668"))),_=(0,i.lazyWithPreload)(()=>n.e("684").then(n.bind(n,"4577"))),P=(0,i.lazyWithPreload)(()=>n.e("795").then(n.bind(n,"5585"))),O=(0,i.lazyWithPreload)(()=>n.e("806").then(n.bind(n,"4671"))),L=(0,i.lazyWithPreload)(()=>n.e("540").then(n.bind(n,"174"))),M=(0,i.lazyWithPreload)(()=>n.e("747").then(n.bind(n,"9997"))),z=(0,i.lazyWithPreload)(()=>n.e("272").then(n.bind(n,"2470"))),R=(0,i.lazyWithPreload)(()=>n.e("714").then(n.bind(n,"55"))),$=[{path:"/react-native-testing-library/cookbook/advanced/network-requests",element:r.createElement(a),filePath:"12.x/cookbook/advanced/network-requests.md",preload:async()=>(await a.preload(),n.e("271").then(n.bind(n,"1605"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/cookbook/basics/async-tests",element:r.createElement(o),filePath:"12.x/cookbook/basics/async-tests.md",preload:async()=>(await o.preload(),n.e("757").then(n.bind(n,"6739"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/cookbook/basics/custom-render",element:r.createElement(s),filePath:"12.x/cookbook/basics/custom-render.md",preload:async()=>(await s.preload(),n.e("986").then(n.bind(n,"1985"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/cookbook/",element:r.createElement(l),filePath:"12.x/cookbook/index.md",preload:async()=>(await l.preload(),n.e("541").then(n.bind(n,"9439"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/cookbook/state-management/jotai",element:r.createElement(c),filePath:"12.x/cookbook/state-management/jotai.md",preload:async()=>(await c.preload(),n.e("494").then(n.bind(n,"9136"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/advanced/testing-env",element:r.createElement(u),filePath:"12.x/docs/advanced/testing-env.mdx",preload:async()=>(await u.preload(),n.e("2").then(n.bind(n,"8978"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/advanced/understanding-act",element:r.createElement(d),filePath:"12.x/docs/advanced/understanding-act.mdx",preload:async()=>(await d.preload(),n.e("777").then(n.bind(n,"9935"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/api",element:r.createElement(h),filePath:"12.x/docs/api.md",preload:async()=>(await h.preload(),n.e("325").then(n.bind(n,"5049"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/api/events/fire-event",element:r.createElement(p),filePath:"12.x/docs/api/events/fire-event.mdx",preload:async()=>(await p.preload(),n.e("103").then(n.bind(n,"3075"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/api/events/user-event",element:r.createElement(f),filePath:"12.x/docs/api/events/user-event.mdx",preload:async()=>(await f.preload(),n.e("333").then(n.bind(n,"5309"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/api/jest-matchers",element:r.createElement(m),filePath:"12.x/docs/api/jest-matchers.mdx",preload:async()=>(await m.preload(),n.e("606").then(n.bind(n,"149"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/api/misc/accessibility",element:r.createElement(g),filePath:"12.x/docs/api/misc/accessibility.mdx",preload:async()=>(await g.preload(),n.e("145").then(n.bind(n,"5348"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/api/misc/async",element:r.createElement(x),filePath:"12.x/docs/api/misc/async.mdx",preload:async()=>(await x.preload(),n.e("607").then(n.bind(n,"8593"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/api/misc/config",element:r.createElement(v),filePath:"12.x/docs/api/misc/config.mdx",preload:async()=>(await v.preload(),n.e("354").then(n.bind(n,"2074"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/api/misc/other",element:r.createElement(y),filePath:"12.x/docs/api/misc/other.mdx",preload:async()=>(await y.preload(),n.e("287").then(n.bind(n,"9347"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/api/misc/render-hook",element:r.createElement(b),filePath:"12.x/docs/api/misc/render-hook.mdx",preload:async()=>(await b.preload(),n.e("628").then(n.bind(n,"9674"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/api/queries",element:r.createElement(w),filePath:"12.x/docs/api/queries.mdx",preload:async()=>(await w.preload(),n.e("119").then(n.bind(n,"5477"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/api/render",element:r.createElement(k),filePath:"12.x/docs/api/render.mdx",preload:async()=>(await k.preload(),n.e("929").then(n.bind(n,"9475"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/api/screen",element:r.createElement(j),filePath:"12.x/docs/api/screen.mdx",preload:async()=>(await j.preload(),n.e("102").then(n.bind(n,"866"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/guides/community-resources",element:r.createElement(E),filePath:"12.x/docs/guides/community-resources.mdx",preload:async()=>(await E.preload(),n.e("697").then(n.bind(n,"1990"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/guides/faq",element:r.createElement(S),filePath:"12.x/docs/guides/faq.mdx",preload:async()=>(await S.preload(),n.e("969").then(n.bind(n,"4165"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/guides/how-to-query",element:r.createElement(N),filePath:"12.x/docs/guides/how-to-query.mdx",preload:async()=>(await N.preload(),n.e("82").then(n.bind(n,"5894"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/guides/troubleshooting",element:r.createElement(C),filePath:"12.x/docs/guides/troubleshooting.mdx",preload:async()=>(await C.preload(),n.e("631").then(n.bind(n,"4833"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/migration/jest-matchers",element:r.createElement(A),filePath:"12.x/docs/migration/jest-matchers.mdx",preload:async()=>(await A.preload(),n.e("817").then(n.bind(n,"6432"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/migration/previous/v11",element:r.createElement(I),filePath:"12.x/docs/migration/previous/v11.mdx",preload:async()=>(await I.preload(),n.e("836").then(n.bind(n,"1637"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/migration/previous/v2",element:r.createElement(T),filePath:"12.x/docs/migration/previous/v2.mdx",preload:async()=>(await T.preload(),n.e("871").then(n.bind(n,"9668"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/migration/previous/v7",element:r.createElement(_),filePath:"12.x/docs/migration/previous/v7.mdx",preload:async()=>(await _.preload(),n.e("684").then(n.bind(n,"4577"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/migration/previous/v9",element:r.createElement(P),filePath:"12.x/docs/migration/previous/v9.mdx",preload:async()=>(await P.preload(),n.e("795").then(n.bind(n,"5585"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/migration/v12",element:r.createElement(O),filePath:"12.x/docs/migration/v12.mdx",preload:async()=>(await O.preload(),n.e("806").then(n.bind(n,"4671"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/start/intro",element:r.createElement(L),filePath:"12.x/docs/start/intro.md",preload:async()=>(await L.preload(),n.e("540").then(n.bind(n,"174"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/start/quick-start",element:r.createElement(M),filePath:"12.x/docs/start/quick-start.mdx",preload:async()=>(await M.preload(),n.e("747").then(n.bind(n,"9997"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/",element:r.createElement(z),filePath:"12.x/index.md",preload:async()=>(await z.preload(),n.e("272").then(n.bind(n,"2470"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/404",element:r.createElement(R),filePath:"404.mdx",preload:async()=>(await R.preload(),n.e("714").then(n.bind(n,"55"))),lang:"",version:"12.x"}]},5831:function(e,t,n){"use strict";n.d(t,{H:function(){return r}});let r=()=>{}},8390:function(e,t){"use strict";t.Z={"12.x###":"05c196e5"}},6780:function(e,t){"use strict";t.Z={title:"React Native Testing Library",description:"Helps you to write better tests with less effort.",icon:"/img/owl.png",route:{cleanUrls:!0},themeConfig:{enableContentAnimation:!0,enableScrollToTop:!0,outlineTitle:"Contents",footer:{message:"Copyright \xa9 2024 Callstack Open Source"},socialLinks:[{icon:"github",mode:"link",content:"https://github.com/callstack/react-native-testing-library"}],locales:[],nav:{"12.x":[{text:"Docs",link:"/docs/start/intro",activeMatch:"^/docs/"},{text:"Cookbook",link:"/cookbook/",activeMatch:"^/cookbook/"},{text:"Examples",link:"https://github.com/callstack/react-native-testing-library/tree/main/examples"}]},sidebar:{"/cookbook":[{text:"Introduction",link:"/cookbook/index",_fileKey:"12.x/cookbook/index"},{text:"Basic Recipes",collapsible:!0,collapsed:!1,items:[{text:"Async tests",link:"/cookbook/basics/async-tests",_fileKey:"12.x/cookbook/basics/async-tests"},{text:"Custom `render` function",link:"/cookbook/basics/custom-render",_fileKey:"12.x/cookbook/basics/custom-render"}],link:"",_fileKey:""},{text:"Advanced Recipes",collapsible:!0,collapsed:!1,items:[{text:"Network Requests",link:"/cookbook/advanced/network-requests",_fileKey:"12.x/cookbook/advanced/network-requests"}],link:"",_fileKey:""},{text:"State Management Recipes",collapsible:!0,collapsed:!1,items:[{text:"Jotai",link:"/cookbook/state-management/jotai",_fileKey:"12.x/cookbook/state-management/jotai"}],link:"",_fileKey:""}],"/docs":[{text:"Getting started",collapsible:!0,collapsed:!1,items:[{text:"Introduction",link:"/docs/start/intro",_fileKey:"12.x/docs/start/intro"},{text:"Quick Start",link:"/docs/start/quick-start",_fileKey:"12.x/docs/start/quick-start"}],link:"",_fileKey:""},{text:"API reference",collapsible:!0,collapsed:!1,items:[{text:"Render function",link:"/docs/api/render",_fileKey:"12.x/docs/api/render.mdx"},{text:"Screen object",link:"/docs/api/screen",_fileKey:"12.x/docs/api/screen.mdx"},{text:"Queries",link:"/docs/api/queries",_fileKey:"12.x/docs/api/queries"},{text:"Jest matchers",link:"/docs/api/jest-matchers",_fileKey:"12.x/docs/api/jest-matchers"},{text:"Triggering events",collapsible:!0,collapsed:!1,items:[{text:"User Event",link:"/docs/api/events/user-event",_fileKey:"12.x/docs/api/events/user-event.mdx"},{text:"Fire Event",link:"/docs/api/events/fire-event",_fileKey:"12.x/docs/api/events/fire-event.mdx"}],link:"",_fileKey:""},{text:"Miscellaneous",collapsible:!0,collapsed:!1,items:[{text:"Render Hook function",link:"/docs/api/misc/render-hook",_fileKey:"12.x/docs/api/misc/render-hook.mdx"},{text:"Async utilities",link:"/docs/api/misc/async",_fileKey:"12.x/docs/api/misc/async"},{text:"Configuration",link:"/docs/api/misc/config",_fileKey:"12.x/docs/api/misc/config"},{text:"Accessibility",link:"/docs/api/misc/accessibility",_fileKey:"12.x/docs/api/misc/accessibility"},{text:"Other helpers",link:"/docs/api/misc/other",_fileKey:"12.x/docs/api/misc/other"}],link:"",_fileKey:""}],link:"/docs/api",_fileKey:"12.x/docs/api.md"},{text:"Guides",collapsible:!0,collapsed:!1,items:[{text:"How should I query?",link:"/docs/guides/how-to-query",_fileKey:"12.x/docs/guides/how-to-query"},{text:"Troubleshooting",link:"/docs/guides/troubleshooting",_fileKey:"12.x/docs/guides/troubleshooting"},{text:"FAQ",link:"/docs/guides/faq",_fileKey:"12.x/docs/guides/faq"},{text:"Community resources",link:"/docs/guides/community-resources",_fileKey:"12.x/docs/guides/community-resources"}],link:"",_fileKey:""},{text:"Advanced Guides",collapsible:!0,collapsed:!1,items:[{text:"Testing environment",link:"/docs/advanced/testing-env",_fileKey:"12.x/docs/advanced/testing-env"},{text:"Understanding `act` function",link:"/docs/advanced/understanding-act",_fileKey:"12.x/docs/advanced/understanding-act"}],link:"",_fileKey:""},{text:"Migration Guides",collapsible:!0,collapsed:!0,items:[{text:"Migration to 12.x",link:"/docs/migration/v12",_fileKey:"12.x/docs/migration/v12"},{text:"Migration to built-in Jest matchers",link:"/docs/migration/jest-matchers",_fileKey:"12.x/docs/migration/jest-matchers"},{text:"Previous versions",collapsible:!0,collapsed:!0,items:[{text:"Migration to 11.x",link:"/docs/migration/previous/v11",_fileKey:"12.x/docs/migration/previous/v11"},{text:"Migration to 9.x",link:"/docs/migration/previous/v9",_fileKey:"12.x/docs/migration/previous/v9"},{text:"Migration to 7.x",link:"/docs/migration/previous/v7",_fileKey:"12.x/docs/migration/previous/v7"},{text:"Migration to 2.x",link:"/docs/migration/previous/v2",_fileKey:"12.x/docs/migration/previous/v2"}],link:"",_fileKey:""}],link:"",_fileKey:""}]}},base:"/react-native-testing-library/",lang:"",locales:[],logo:"/img/owl.png",logoText:"React Native Testing Library",ssg:!0,multiVersion:{default:"12.x",versions:["12.x"]},search:{versioned:!0},pages:[{title:"Network Requests",routePath:"/react-native-testing-library/cookbook/advanced/network-requests",lang:"",toc:[{text:"Introduction",id:"introduction",depth:2,charIndex:3},{text:"Phonebook Example",id:"phonebook-example",depth:2,charIndex:568},{text:"Start testing with a simple test",id:"start-testing-with-a-simple-test",depth:2,charIndex:1294},{text:"Testing error handling",id:"testing-error-handling",depth:2,charIndex:2353},{text:"Global guarding against unwanted API requests",id:"global-guarding-against-unwanted-api-requests",depth:2,charIndex:2920},{text:"Conclusion",id:"conclusion",depth:2,charIndex:3508},{text:"Further Reading and Alternatives",id:"further-reading-and-alternatives",depth:2,charIndex:4130}],frontmatter:{},version:"12.x",_relativePath:"12.x/cookbook/advanced/network-requests.md"},{title:"Async tests",routePath:"/react-native-testing-library/cookbook/basics/async-tests",lang:"",toc:[{text:"Summary",id:"summary",depth:2,charIndex:3},{text:"Example",id:"example",depth:3,charIndex:911},{text:"Async utilities",id:"async-utilities",depth:2,charIndex:1008},{text:"`findBy*` queries",id:"findby-queries",depth:3,charIndex:-1},{text:"Example",id:"example-1",depth:4,charIndex:1622},{text:"`waitFor` function",id:"waitfor-function",depth:3,charIndex:-1},{text:"Example",id:"example-2",depth:4,charIndex:2128},{text:"`waitForElementToBeRemoved` function",id:"waitforelementtoberemoved-function",depth:3,charIndex:-1},{text:"Example",id:"example-3",depth:4,charIndex:2743},{text:"Fake Timers",id:"fake-timers",depth:2,charIndex:2756}],frontmatter:{},version:"12.x",_relativePath:"12.x/cookbook/basics/async-tests.md"},{title:"Custom `render` function",routePath:"/react-native-testing-library/cookbook/basics/custom-render",lang:"",toc:[{text:"Summary",id:"summary",depth:3,charIndex:25},{text:"Example",id:"example",depth:3,charIndex:318},{text:"More info",id:"more-info",depth:3,charIndex:360},{text:"Additional params",id:"additional-params",depth:4,charIndex:372},{text:"Multiple functions",id:"multiple-functions",depth:4,charIndex:571},{text:"Async function",id:"async-function",depth:4,charIndex:787}],frontmatter:{},version:"12.x",_relativePath:"12.x/cookbook/basics/custom-render.md"},{title:"Introduction",routePath:"/react-native-testing-library/cookbook/",lang:"",toc:[{text:"What's Inside the Cookbook?",id:"whats-inside-the-cookbook",depth:2,charIndex:434},{text:"What's Next?",id:"whats-next",depth:2,charIndex:1045}],frontmatter:{},version:"12.x",_relativePath:"12.x/cookbook/index.md"},{title:"Jotai",routePath:"/react-native-testing-library/cookbook/state-management/jotai",lang:"",toc:[{text:"Introduction",id:"introduction",depth:2,charIndex:3},{text:"Task List Example",id:"task-list-example",depth:2,charIndex:337},{text:"Starting with a Simple Test",id:"starting-with-a-simple-test",depth:2,charIndex:566},{text:"Custom Render Function to populate Jotai Atoms with Initial Values",id:"custom-render-function-to-populate-jotai-atoms-with-initial-values",depth:2,charIndex:860},{text:"Testing the `TaskList` Component with initial tasks",id:"testing-the-tasklist-component-with-initial-tasks",depth:2,charIndex:-1},{text:"Modifying atom outside of React components",id:"modifying-atom-outside-of-react-components",depth:2,charIndex:1773},{text:"Testing atom outside of React components",id:"testing-atom-outside-of-react-components",depth:2,charIndex:2022},{text:"Conclusion",id:"conclusion",depth:2,charIndex:2358}],frontmatter:{},version:"12.x",_relativePath:"12.x/cookbook/state-management/jotai.md"},{title:"Testing environment",routePath:"/react-native-testing-library/docs/advanced/testing-env",lang:"",toc:[{text:"React renderers",id:"react-renderers",depth:2,charIndex:659},{text:"React Test Renderer",id:"react-test-renderer",depth:2,charIndex:1382},{text:"Element tree",id:"element-tree",depth:2,charIndex:2783},{text:"Host and composite components",id:"host-and-composite-components",depth:2,charIndex:3389},{text:"Differentiating between host and composite elements",id:"differentiating-between-host-and-composite-elements",depth:3,charIndex:5076},{text:"Tree nodes",id:"tree-nodes",depth:2,charIndex:5501},{text:"Asserting props",id:"asserting-props",depth:3,charIndex:5817},{text:"Tree navigation",id:"tree-navigation",depth:2,charIndex:6520},{text:"Queries",id:"queries",depth:2,charIndex:7253}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/advanced/testing-env.mdx"},{title:"Understanding `act` function",routePath:"/react-native-testing-library/docs/advanced/understanding-act",lang:"",toc:[{text:"`act` warnings",id:"act-warnings",depth:2,charIndex:-1},{text:"Synchronous `act`",id:"synchronous-act",depth:2,charIndex:-1},{text:"Responsibility",id:"responsibility",depth:3,charIndex:575},{text:"When to use act",id:"when-to-use-act",depth:3,charIndex:1673},{text:"Implementation",id:"implementation",depth:3,charIndex:2765},{text:"Asynchronous `act`",id:"asynchronous-act",depth:2,charIndex:-1},{text:"Asynchronous code",id:"asynchronous-code",depth:3,charIndex:3756},{text:"Solution with fake timers",id:"solution-with-fake-timers",depth:3,charIndex:4462},{text:"Solution with real timers",id:"solution-with-real-timers",depth:3,charIndex:4772},{text:"Async act warning",id:"async-act-warning",depth:3,charIndex:5594},{text:"References",id:"references",depth:2,charIndex:6029}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/advanced/understanding-act.mdx"},{title:"API Overview",routePath:"/react-native-testing-library/docs/api",lang:"",toc:[],frontmatter:{uri:"/api"},version:"12.x",_relativePath:"12.x/docs/api.md"},{title:"Fire Event API",routePath:"/react-native-testing-library/docs/api/events/fire-event",lang:"",toc:[{text:"`fireEvent.press` ",id:"fireeventpress-",depth:3,charIndex:-1},{text:"`fireEvent.changeText` ",id:"fireeventchangetext-",depth:3,charIndex:-1},{text:"`fireEvent.scroll` ",id:"fireeventscroll-",depth:3,charIndex:-1},{text:"On a `ScrollView`",id:"on-a-scrollview",depth:4,charIndex:-1}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/api/events/fire-event.mdx"},{title:"User Event interactions",routePath:"/react-native-testing-library/docs/api/events/user-event",lang:"",toc:[{text:"Comparison with Fire Event API",id:"comparison-with-fire-event-api",depth:2,charIndex:81},{text:"`setup()`",id:"setup",depth:2,charIndex:-1},{text:"Options ",id:"options-",depth:3,charIndex:1386},{text:"`press()`",id:"press",depth:2,charIndex:-1},{text:"`longPress()`",id:"longpress",depth:2,charIndex:-1},{text:"Options ",id:"options--1",depth:3,charIndex:2976},{text:"`type()`",id:"type",depth:2,charIndex:-1},{text:"Options ",id:"options--2",depth:3,charIndex:3520},{text:"Sequence of events ",id:"sequence-of-events-",depth:3,charIndex:3700},{text:"`clear()`",id:"clear",depth:2,charIndex:-1},{text:"Sequence of events ",id:"sequence-of-events--1",depth:3,charIndex:4573},{text:"`paste()`",id:"paste",depth:2,charIndex:-1},{text:"Sequence of events ",id:"sequence-of-events--2",depth:3,charIndex:5076},{text:"`scrollTo()`",id:"scroll-to",depth:2,charIndex:-1},{text:"Options ",id:"options--3",depth:3,charIndex:6357},{text:"Sequence of events ",id:"sequence-of-events--3",depth:3,charIndex:7342}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/api/events/user-event.mdx"},{title:"Jest matchers",routePath:"/react-native-testing-library/docs/api/jest-matchers",lang:"",toc:[{text:"Setup",id:"setup",depth:2,charIndex:250},{text:"Migration from legacy Jest Native matchers.",id:"migration-from-legacy-jest-native-matchers",depth:2,charIndex:563},{text:"Checking element existence",id:"checking-element-existence",depth:2,charIndex:727},{text:"`toBeOnTheScreen()`",id:"tobeonthescreen",depth:3,charIndex:-1},{text:"Element Content",id:"element-content",depth:2,charIndex:981},{text:"`toHaveTextContent()`",id:"tohavetextcontent",depth:3,charIndex:-1},{text:"`toContainElement()`",id:"tocontainelement",depth:3,charIndex:-1},{text:"`toBeEmptyElement()`",id:"tobeemptyelement",depth:3,charIndex:-1},{text:"Checking element state",id:"checking-element-state",depth:2,charIndex:1467},{text:"`toHaveDisplayValue()`",id:"tohavedisplayvalue",depth:3,charIndex:-1},{text:"`toHaveAccessibilityValue()`",id:"tohaveaccessibilityvalue",depth:3,charIndex:-1},{text:"`toBeEnabled()` / `toBeDisabled` ",id:"tobeenabled--tobedisabled-",depth:3,charIndex:-1},{text:"`toBeSelected()`",id:"tobeselected",depth:3,charIndex:-1},{text:"`toBeChecked()` / `toBePartiallyChecked()` ",id:"tobechecked--tobepartiallychecked-",depth:3,charIndex:-1},{text:"`toBeExpanded()` / `toBeCollapsed()` ",id:"tobeexpanded--tobecollapsed-",depth:3,charIndex:-1},{text:"`toBeBusy()`",id:"tobebusy",depth:3,charIndex:-1},{text:"Checking element style",id:"checking-element-style",depth:2,charIndex:4079},{text:"`toBeVisible()`",id:"tobevisible",depth:3,charIndex:-1},{text:"`toHaveStyle()`",id:"tohavestyle",depth:3,charIndex:-1},{text:"Other matchers",id:"other-matchers",depth:2,charIndex:-1},{text:"`toHaveAccessibleName()`",id:"tohaveaccessiblename",depth:3,charIndex:-1},{text:"`toHaveProp()`",id:"tohaveprop",depth:3,charIndex:-1}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/api/jest-matchers.mdx"},{title:"Accessibility",routePath:"/react-native-testing-library/docs/api/misc/accessibility",lang:"",toc:[{text:"`isHiddenFromAccessibility`",id:"ishiddenfromaccessibility",depth:2,charIndex:-1}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/api/misc/accessibility.mdx"},{title:"Async utilities",routePath:"/react-native-testing-library/docs/api/misc/async",lang:"",toc:[{text:"`findBy*` queries",id:"findby-queries",depth:2,charIndex:-1},{text:"`waitFor`",id:"waitfor",depth:2,charIndex:-1},{text:"Using a React Native version < 0.71 with Jest fake timers",id:"using-a-react-native-version--071-with-jest-fake-timers",depth:3,charIndex:1885},{text:"`waitForElementToBeRemoved`",id:"waitforelementtoberemoved",depth:2,charIndex:-1}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/api/misc/async.mdx"},{title:"Configuration",routePath:"/react-native-testing-library/docs/api/misc/config",lang:"",toc:[{text:"`configure`",id:"configure",depth:2,charIndex:-1},{text:"`asyncUtilTimeout` option",id:"asyncutiltimeout-option",depth:3,charIndex:-1},{text:"`defaultIncludeHiddenElements` option",id:"defaultincludehiddenelements-option",depth:3,charIndex:-1},{text:"`defaultDebugOptions` option",id:"defaultdebugoptions-option",depth:3,charIndex:-1},{text:"`resetToDefaults()`",id:"resettodefaults",depth:2,charIndex:-1},{text:"Environment variables",id:"environment-variables",depth:2,charIndex:769},{text:"`RNTL_SKIP_AUTO_CLEANUP`",id:"rntl_skip_auto_cleanup",depth:3,charIndex:-1},{text:"`RNTL_SKIP_AUTO_DETECT_FAKE_TIMERS`",id:"rntl_skip_auto_detect_fake_timers",depth:3,charIndex:-1}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/api/misc/config.mdx"},{title:"Other helpers",routePath:"/react-native-testing-library/docs/api/misc/other",lang:"",toc:[{text:"`within`, `getQueriesForElement` ",id:"within-getqueriesforelement-",depth:2,charIndex:-1},{text:"`act`",id:"act",depth:2,charIndex:-1},{text:"`cleanup`",id:"cleanup",depth:2,charIndex:-1}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/api/misc/other.mdx"},{title:"`renderHook` function",routePath:"/react-native-testing-library/docs/api/misc/render-hook",lang:"",toc:[{text:"`options`",id:"options",depth:2,charIndex:-1},{text:"`initialProps`",id:"initialprops",depth:3,charIndex:-1},{text:"`wrapper`",id:"wrapper",depth:3,charIndex:-1},{text:"`RenderHookResult`",id:"renderhookresult",depth:2,charIndex:-1},{text:"`result`",id:"result",depth:3,charIndex:-1},{text:"`rerender`",id:"rerender",depth:3,charIndex:-1},{text:"`unmount`",id:"unmount",depth:3,charIndex:-1},{text:"Examples",id:"examples",depth:2,charIndex:1779},{text:"With `initialProps`",id:"with-initialprops",depth:3,charIndex:-1},{text:"With `wrapper`",id:"with-wrapper",depth:3,charIndex:-1}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/api/misc/render-hook.mdx"},{title:"Queries",routePath:"/react-native-testing-library/docs/api/queries",lang:"",toc:[{text:"Accessing queries",id:"accessing-queries",depth:2,charIndex:230},{text:"Using `screen` object",id:"using-screen-object",depth:3,charIndex:-1},{text:"Using `render` result",id:"using-render-result",depth:3,charIndex:-1},{text:"Query parts",id:"query-parts",depth:2,charIndex:852},{text:"Query variant",id:"query-variant",depth:2,charIndex:1099},{text:"`getBy*` queries ",id:"getby-queries-",depth:3,charIndex:-1},{text:"`getAllBy*` queries ",id:"getallby-queries-",depth:3,charIndex:-1},{text:"`queryBy*` queries ",id:"queryby-queries-",depth:3,charIndex:-1},{text:"`queryAllBy*` queries ",id:"queryallby-queries-",depth:3,charIndex:-1},{text:"`findBy*` queries ",id:"findby-queries-",depth:3,charIndex:-1},{text:"`findAllBy*` queries ",id:"findallby-queries-",depth:3,charIndex:-1},{text:"Query predicates",id:"query-predicates",depth:2,charIndex:3523},{text:"`*ByRole` ",id:"byrole-",depth:3,charIndex:-1},{text:"Options ",id:"options-",depth:4,charIndex:4222},{text:"`*ByLabelText` ",id:"bylabeltext-",depth:3,charIndex:-1},{text:"`*ByPlaceholderText` ",id:"byplaceholdertext-",depth:3,charIndex:-1},{text:"`*ByDisplayValue` ",id:"bydisplayvalue-",depth:3,charIndex:-1},{text:"`*ByText` ",id:"bytext-",depth:3,charIndex:-1},{text:"`*ByHintText` ",id:"byhinttext-",depth:3,charIndex:-1},{text:"`*ByTestId` ",id:"bytestid-",depth:3,charIndex:-1},{text:"`*ByA11yState`, `ByAccessibilityState` (deprecated) ",id:"bya11ystate-byaccessibilitystate-deprecated-",depth:3,charIndex:-1},{text:"Default state for: `disabled`, `selected`, and `busy` keys",id:"default-state-for-disabled-selected-and-busy-keys",depth:4,charIndex:-1},{text:"Default state for: `checked` and `expanded` keys",id:"default-state-for-checked-and-expanded-keys",depth:4,charIndex:-1},{text:"`*ByA11yValue`, `*ByAccessibilityValue` (deprecated) ",id:"bya11yvalue-byaccessibilityvalue-deprecated-",depth:3,charIndex:-1},{text:"Common options",id:"common-options",depth:3,charIndex:12731},{text:"`includeHiddenElements` option",id:"includehiddenelements-option",depth:4,charIndex:-1},{text:"TextMatch type",id:"textmatch-type",depth:2,charIndex:13445},{text:"Examples",id:"examples",depth:3,charIndex:13580},{text:"Options ",id:"options--1",depth:3,charIndex:13670},{text:"Precision",id:"precision",depth:4,charIndex:13681},{text:"Normalization",id:"normalization",depth:4,charIndex:14464},{text:"Legacy unit testing helpers",id:"legacy-unit-testing-helpers",depth:2,charIndex:15730},{text:"`UNSAFE_ByType`",id:"unsafe_bytype",depth:3,charIndex:-1},{text:"`UNSAFE_ByProps`",id:"unsafe_byprops",depth:3,charIndex:-1}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/api/queries.mdx"},{title:"`render` function",routePath:"/react-native-testing-library/docs/api/render",lang:"",toc:[{text:"Options ",id:"options-",depth:3,charIndex:455},{text:"`wrapper` option",id:"wrapper-option",depth:4,charIndex:-1},{text:"`createNodeMock` option",id:"createnodemock-option",depth:4,charIndex:-1},{text:"`unstable_validateStringsRenderedWithinText` option",id:"unstable_validatestringsrenderedwithintext-option",depth:4,charIndex:-1},{text:"Result ",id:"result-",depth:3,charIndex:1800}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/api/render.mdx"},{title:"`screen` object",routePath:"/react-native-testing-library/docs/api/screen",lang:"",toc:[{text:"`...queries`",id:"queries",depth:3,charIndex:-1},{text:"Example",id:"example",depth:4,charIndex:549},{text:"`rerender`",id:"rerender",depth:3,charIndex:-1},{text:"`unmount`",id:"unmount",depth:3,charIndex:-1},{text:"`debug`",id:"debug",depth:3,charIndex:-1},{text:"`message` option ",id:"message-option-",depth:4,charIndex:-1},{text:"`mapProps` option ",id:"mapprops-option-",depth:4,charIndex:-1},{text:"`toJSON`",id:"tojson",depth:3,charIndex:-1},{text:"`root`",id:"root",depth:3,charIndex:-1},{text:"`UNSAFE_root`",id:"unsafe_root",depth:3,charIndex:-1}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/api/screen.mdx"},{title:"Community resources",routePath:"/react-native-testing-library/docs/guides/community-resources",lang:"",toc:[{text:"Recommended content",id:"recommended-content",depth:2,charIndex:3},{text:"Older, potentially outdated content",id:"older-potentially-outdated-content",depth:2,charIndex:601}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/guides/community-resources.mdx"},{title:"FAQ",routePath:"/react-native-testing-library/docs/guides/faq",lang:"",toc:[{text:"Can I test the native features of React Native apps?",id:"can-i-test-the-native-features-of-react-native-apps",depth:2,charIndex:3},{text:"Should I use/migrate to `screen` queries?",id:"should-i-usemigrate-to-screen-queries",depth:2,charIndex:-1},{text:"Should I use/migrate to User Event interactions?",id:"should-i-usemigrate-to-user-event-interactions",depth:2,charIndex:1595}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/guides/faq.mdx"},{title:"How should I query?",routePath:"/react-native-testing-library/docs/guides/how-to-query",lang:"",toc:[{text:"Query parts",id:"query-parts",depth:2,charIndex:273},{text:"Query variant",id:"query-variant",depth:2,charIndex:521},{text:"Idiomatic query variants",id:"idiomatic-query-variants",depth:3,charIndex:1274},{text:"Query predicate",id:"query-predicate",depth:2,charIndex:2227},{text:"Idiomatic query predicates",id:"idiomatic-query-predicates",depth:3,charIndex:3001},{text:"1. By Role query ",id:"1-by-role-query-",depth:3,charIndex:3499},{text:"Name option ",id:"name-option-",depth:4,charIndex:4575},{text:"2. Text input queries ",id:"2-text-input-queries-",depth:3,charIndex:5099},{text:"3. Other accessible queries ",id:"3-other-accessible-queries-",depth:3,charIndex:5899},{text:"4. Test ID query ",id:"4-test-id-query-",depth:3,charIndex:6313}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/guides/how-to-query.mdx"},{title:"Troubleshooting",routePath:"/react-native-testing-library/docs/guides/troubleshooting",lang:"",toc:[{text:"Matching React Native, React & React Test Renderer versions",id:"matching-react-native-react--react-test-renderer-versions",depth:2,charIndex:116},{text:"Example repository",id:"example-repository",depth:2,charIndex:1005},{text:"Undefined component error",id:"undefined-component-error",depth:2,charIndex:1254},{text:"Mocking React Native",id:"mocking-react-native",depth:3,charIndex:2110},{text:"Act warnings",id:"act-warnings",depth:2,charIndex:2372}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/guides/troubleshooting.mdx"},{title:"Migration to built-in Jest matchers",routePath:"/react-native-testing-library/docs/migration/jest-matchers",lang:"",toc:[{text:"General notes",id:"general-notes",depth:2,charIndex:119},{text:"Usage",id:"usage",depth:2,charIndex:533},{text:"Gradual migration",id:"gradual-migration",depth:3,charIndex:674},{text:"Migration details",id:"migration-details",depth:2,charIndex:905},{text:"Matchers not requiring changes",id:"matchers-not-requiring-changes",depth:3,charIndex:926},{text:"Replaced matchers",id:"replaced-matchers",depth:3,charIndex:1233},{text:"Added matchers",id:"added-matchers",depth:3,charIndex:1626},{text:"Noteworthy details",id:"noteworthy-details",depth:3,charIndex:1688}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/migration/jest-matchers.mdx"},{title:"Migration to 11.x",routePath:"/react-native-testing-library/docs/migration/previous/v11",lang:"",toc:[{text:"Breaking changes",id:"breaking-changes",depth:2,charIndex:153},{text:"Update to Jest 28 if you use fake timers",id:"update-to-jest-28-if-you-use-fake-timers",depth:3,charIndex:173},{text:"Refactor legacy `waitForOptions` position",id:"refactor-legacy-waitforoptions-position",depth:3,charIndex:-1},{text:'Triggering non-touch events on targets with `pointerEvents="box-none"` prop',id:"triggering-non-touch-events-on-targets-with-pointereventsbox-none-prop",depth:3,charIndex:-1},{text:"Full Changelog",id:"full-changelog",depth:2,charIndex:1263}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/migration/previous/v11.mdx"},{title:"Migration to 2.x",routePath:"/react-native-testing-library/docs/migration/previous/v2",lang:"",toc:[{text:"Dropping Node 8",id:"dropping-node-8",depth:2,charIndex:100},{text:"Auto Cleanup",id:"auto-cleanup",depth:2,charIndex:325},{text:"WaitFor API changes",id:"waitfor-api-changes",depth:2,charIndex:1248},{text:"Removed global `debug` function",id:"removed-global-debug-function",depth:2,charIndex:-1},{text:"Removed global `shallow` function",id:"removed-global-shallow-function",depth:2,charIndex:-1},{text:"Removed functions",id:"removed-functions",depth:2,charIndex:2145},{text:"Some `ByTestId` queries behavior changes",id:"some-bytestid-queries-behavior-changes",depth:2,charIndex:-1},{text:"Deprecated `flushMicrotasksQueue`",id:"deprecated-flushmicrotasksqueue",depth:2,charIndex:-1}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/migration/previous/v2.mdx"},{title:"Migration to 7.x",routePath:"/react-native-testing-library/docs/migration/previous/v7",lang:"",toc:[{text:"Guide for `react-native-testing-library` users",id:"guide-for-react-native-testing-library-users",depth:2,charIndex:-1},{text:"Renaming the library",id:"renaming-the-library",depth:3,charIndex:452},{text:"New aliases",id:"new-aliases",depth:3,charIndex:1352},{text:"Renaming `ByPlaceholder` queries",id:"renaming-byplaceholder-queries",depth:3,charIndex:-1},{text:"`fireEvent` support for disabled components",id:"fireevent-support-for-disabled-components",depth:3,charIndex:-1},{text:"Guide for `@testing-library/react-native` users",id:"guide-for-testing-libraryreact-native-users",depth:2,charIndex:-1},{text:'Renaming "wait" helpers',id:"renaming-wait-helpers",depth:3,charIndex:2874},{text:"Changes to `ByTestId` queries",id:"changes-to-bytestid-queries",depth:3,charIndex:-1},{text:"No `ByTitle` queries",id:"no-bytitle-queries",depth:3,charIndex:-1},{text:"No custom Jest configuration",id:"no-custom-jest-configuration",depth:3,charIndex:3628},{text:"Cleanup is included by default",id:"cleanup-is-included-by-default",depth:3,charIndex:3917},{text:"No NativeTestInstance abstraction",id:"no-nativetestinstance-abstraction",depth:3,charIndex:4313},{text:"No `container` nor `baseElement` returned from `render`",id:"no-container-nor-baseelement-returned-from-render",depth:3,charIndex:-1},{text:"Firing events changes",id:"firing-events-changes",depth:3,charIndex:4823}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/migration/previous/v7.mdx"},{title:"Migration to 9.x",routePath:"/react-native-testing-library/docs/migration/previous/v9",lang:"",toc:[{text:"Support for text match options a.k.a string precision API",id:"support-for-text-match-options-aka-string-precision-api",depth:2,charIndex:284},{text:"Reverted matching text across several nodes",id:"reverted-matching-text-across-several-nodes",depth:2,charIndex:924},{text:"Future plans",id:"future-plans",depth:2,charIndex:1437}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/migration/previous/v9.mdx"},{title:"Migration to 12.x",routePath:"/react-native-testing-library/docs/migration/v12",lang:"",toc:[{text:"Breaking changes",id:"breaking-changes",depth:2,charIndex:484},{text:"1. All queries exclude elements hidden from accessibility by default",id:"1-all-queries-exclude-elements-hidden-from-accessibility-by-default",depth:3,charIndex:504},{text:"2. `*ByRole` queries now return only accessibility elements",id:"2-byrole-queries-now-return-only-accessibility-elements",depth:3,charIndex:-1},{text:"Examples",id:"examples",depth:4,charIndex:1510},{text:"3. `*ByText`, `*ByDisplayValue`, `*ByPlaceholderText` queries now return host elements",id:"3-bytext-bydisplayvalue-byplaceholdertext-queries-now-return-host-elements",depth:3,charIndex:-1},{text:"4. `container` API has been renamed to `UNSAFE_root`.",id:"4-container-api-has-been-renamed-to-unsafe_root",depth:3,charIndex:-1},{text:"Full Changelog",id:"full-changelog",depth:2,charIndex:2923}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/migration/v12.mdx"},{title:"Introduction",routePath:"/react-native-testing-library/docs/start/intro",lang:"",toc:[{text:"The problem",id:"the-problem",depth:2,charIndex:3},{text:"This solution",id:"this-solution",depth:2,charIndex:479},{text:"Example",id:"example",depth:2,charIndex:988}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/start/intro.md"},{title:"Quick Start",routePath:"/react-native-testing-library/docs/start/quick-start",lang:"",toc:[{text:"Installation",id:"installation",depth:2,charIndex:3},{text:"Jest matchers",id:"jest-matchers",depth:3,charIndex:223},{text:"ESLint plugin",id:"eslint-plugin",depth:3,charIndex:379}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/start/quick-start.mdx"},{title:"",routePath:"/react-native-testing-library/",lang:"",toc:[],frontmatter:{pageType:"home",hero:{name:"React Native",text:"Testing Library",image:{src:"/img/owl.png"},tagline:"Helps you to write better tests with less effort.",actions:[{theme:"brand",text:'Quick Start',link:"/docs/start/quick-start"},{theme:"alt",text:"Explore API",link:"/docs/api"}]},features:[{title:"Maintainable",details:"Write maintainable tests for your React Native apps.",icon:"\u2728"},{title:"Reliable",details:"Promotes testing public APIs and avoiding implementation details.",icon:"\u2705"},{title:"Community Driven",details:"Supported by React Native community and its core contributors.",icon:"\u2764\uFE0F"}]},version:"12.x",_relativePath:"12.x/index.md"},{title:"",routePath:"/react-native-testing-library/404",lang:"",toc:[],frontmatter:{pageType:"custom"},version:"12.x",_relativePath:"404.mdx"}],markdown:{showLineNumbers:!1,defaultWrapCode:!1,codeHighlighter:"prism"}}},4353:function(e,t,n){"use strict";n.d(t,{$X:function(){return g},gV:function(){return x}}),n("793"),n("102"),n("5123"),n("9710"),n("6330"),n("8221"),n("5863"),n("9560"),n("9734");var r,i=n("5893"),a=n("6780"),o=n("2599"),s=n("8028"),l=n("5687"),c=n("9250"),u=n("405"),d=n("7294"),h=n("8995"),p=n("353"),f=n("5293");n("3906");var m=((r=m||{}).Show="1",r.Hide="0",r);async function g(e){var t,r;let{routes:i}=n("6118"),l=(0,o.fp)(i,e);if(l){let t=l[0].route,n=await t.preload(),i=(0,h.bw)(l[0].route.filePath),o=a.Z.pages.find(t=>{let n=e=>e.replace(/\/$/,"").toLowerCase();return(0,s.pV)(n(t.routePath),n(e))}),c=encodeURIComponent(i),u=(null===(r=n.default.__RSPRESS_PAGE_META)||void 0===r?void 0:r[c])||{},{toc:d=[],title:p="",frontmatter:f={},...m}=h.kv.test(t.filePath)?u:n;return{siteData:a.Z,page:{...m,pagePath:i,...o,pageType:(null==f?void 0:f.pageType)||"doc",title:p,frontmatter:f,toc:d}}}let c=a.Z.lang||"",u=(null===(t=a.Z.multiVersion)||void 0===t?void 0:t.default)||"";if(a.Z.lang&&"undefined"!=typeof window){let e=location.pathname.replace(a.Z.base,"").split("/").slice(0,2);if(a.Z.locales.length){let t=a.Z.locales.find(t=>{let{lang:n}=t;return e.includes(n)});t&&(c=t.lang)}if(a.Z.multiVersion.versions){let t=a.Z.multiVersion.versions.find(t=>e.includes(t));t&&(u=t)}}return{siteData:a.Z,page:{pagePath:"",pageType:"404",routePath:"/404",lang:c,frontmatter:{},title:"404",toc:[],version:u,_filepath:"",_relativePath:""}}}function x(e){let{helmetContext:t}=e,{setData:n,data:r}=(0,d.useContext)(l.R0),a=r.page.frontmatter||{},{pathname:o,search:h}=(0,c.TH)(),m=new URLSearchParams(h),x="globalUIComponents",v=!1===a[x]||"0"===m.get(x);return(0,d.useLayoutEffect)(()=>{(async function e(){try{let e=await g((0,s.Tm)(o));n(e)}catch(e){console.log(e)}})()},[o,n]),(0,i.jsxs)(u.B6,{context:t,children:[(0,i.jsx)(f.default.Layout,{}),!v&&p.Z.map((e,t)=>{if(Array.isArray(e)){let[n,r]=e;return d.createElement(n,{key:t,...r})}return d.createElement(e,{key:t})})]})}},243:function(e,t,n){"use strict";var r=n("5893"),i=n("7294"),a=n("8995"),o=n("6780"),s=n("8028"),l=n("5687"),c=n("9655"),u=n("4353");let d=o.Z.ssg,{default:h,useThemeState:p}=n("5293");(async function e(){let e=document.getElementById("root"),t=async()=>{let e=await (0,u.$X)((0,s.Tm)(window.location.pathname));return function(){let[t,n]=(0,i.useState)(e),[a,o]=p();return(0,r.jsx)(l.Ni.Provider,{value:(0,i.useMemo)(()=>({theme:a,setTheme:o}),[a,o]),children:(0,r.jsx)(l.R0.Provider,{value:(0,i.useMemo)(()=>({data:t,setData:n}),[t,n]),children:(0,r.jsx)(c.VK,{children:(0,r.jsx)(u.gV,{})})})})}},o=await t();{let{createRoot:t,hydrateRoot:i}=n("745");(0,a.yv)()&&d?i(e,(0,r.jsx)(o,{})):t(e).render((0,r.jsx)(o,{}))}})().then(()=>{h.setup()})},6835:function(e,t,n){"use strict";n.d(t,{AV:function(){return r.AV},Ar:function(){return r.Ar},BZ:function(){return r.BZ},CF:function(){return r.CF},CU:function(){return r.CU},Ct:function(){return r.Ct},EG:function(){return r.EG},H_:function(){return r.H_},JL:function(){return r.JL},KO:function(){return r.KO},M4:function(){return r.M4},NG:function(){return r.NG},O9:function(){return r.O9},OK:function(){return r.OK},Os:function(){return r.Os},Qn:function(){return r.Qn},RY:function(){return r.RY},Rg:function(){return r.Rg},SU:function(){return r.SU},TJ:function(){return r.TJ},UQ:function(){return r.UQ},VA:function(){return r.VA},Vl:function(){return r.Vl},Vp:function(){return r.Vp},WG:function(){return r.WG},WS:function(){return r.WS},YE:function(){return r.YE},YS:function(){return r.YS},ZB:function(){return r.ZB},cY:function(){return r.cY},eE:function(){return r.eE},eF:function(){return r.eF},g2:function(){return r.g2},ls:function(){return r.ls},mQ:function(){return r.mQ},mi:function(){return r.mi},of:function(){return r.of},ol:function(){return r.ol},pU:function(){return r.pU},qx:function(){return r.qx},s2:function(){return r.s2},tx:function(){return r.tx},xB:function(){return r.xB},xK:function(){return r.xK},xN:function(){return r.xN},y2:function(){return r.y2},zh:function(){return r.zh},zx:function(){return r.zx}});var r=n("2179")},4089:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n("9250"),i=n("2557"),a=n("7294");function o(e){let{pathname:t}=(0,r.TH)(),{selector:n=".rspress-doc img",options:o={}}=e;return(0,a.useEffect)(()=>{let e;let t=setTimeout(()=>{let t=document.querySelectorAll(n);e=(0,i.Z)(t,{...o,background:"var(--rp-c-bg)"})},100);return()=>{clearTimeout(t),null==e||e.detach(),null==e||e.close()}},[t]),null}n("4902")},2198:function(e,t,n){"use strict";var r=n("7294"),i=n("3372");t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.useLayoutEffect(()=>{i.ZP.inject(e)},[]),null}},1823:function(e,t,n){"use strict";n.d(t,{AV:function(){return r.AV},Ar:function(){return r.Ar},BZ:function(){return r.BZ},CF:function(){return r.CF},CU:function(){return r.CU},Ct:function(){return r.Ct},EG:function(){return r.EG},H_:function(){return r.H_},JL:function(){return r.JL},KO:function(){return r.KO},M4:function(){return r.M4},NG:function(){return r.NG},O9:function(){return r.O9},OK:function(){return r.OK},Os:function(){return r.Os},Qn:function(){return r.Qn},RY:function(){return r.RY},Rg:function(){return r.Rg},SU:function(){return r.SU},TJ:function(){return r.TJ},UQ:function(){return r.UQ},VA:function(){return r.VA},Vl:function(){return r.Vl},Vp:function(){return r.Vp},WG:function(){return r.WG},WS:function(){return r.WS},YE:function(){return r.YE},YS:function(){return r.YS},ZB:function(){return r.ZB},cY:function(){return r.cY},eE:function(){return r.eE},eF:function(){return r.eF},g2:function(){return r.g2},ls:function(){return r.ls},mQ:function(){return r.mQ},mi:function(){return r.mi},of:function(){return r.of},ol:function(){return r.ol},pU:function(){return r.pU},qx:function(){return r.qx},s2:function(){return r.s2},tx:function(){return r.tx},xB:function(){return r.xB},xK:function(){return r.xK},xN:function(){return r.xN},y2:function(){return r.y2},zh:function(){return r.zh},zx:function(){return r.zx}});var r=n("6835")},65:function(e,t,n){"use strict";n.d(t,{Zo:function(){return s},ah:function(){return a}});var r=n("7294");let i=r.createContext({});function a(e){let t=r.useContext(i);return r.useMemo(()=>"function"==typeof e?e(t):{...t,...e},[t,e])}let o={};function s({components:e,children:t,disableParentContext:n}){let s;return s=n?"function"==typeof e?e({}):e||o:a(e),r.createElement(i.Provider,{value:s},t)}},8995:function(e,t,n){"use strict";n.d(t,{$U:function(){return th},E9:function(){return tv},Kw:function(){return tc},_f:function(){return to},bw:function(){return ti},kv:function(){return te},lm:function(){return ta},mi:function(){return tl},pJ:function(){return tx},pZ:function(){return td},rp:function(){return tt},t6:function(){return tn},tz:function(){return tg},xM:function(){return tp},xf:function(){return tu},yc:function(){return tm},yv:function(){return tr}});var r,i,a,o,s,l,c,u,d,h="object"==typeof global&&global&&global.Object===Object&&global,p="object"==typeof self&&self&&self.Object===Object&&self,f=h||p||Function("return this")(),m=f.Symbol,g=Object.prototype,x=g.hasOwnProperty,v=g.toString,y=m?m.toStringTag:void 0,b=function(e){var t=x.call(e,y),n=e[y];try{e[y]=void 0;var r=!0}catch(e){}var i=v.call(e);return r&&(t?e[y]=n:delete e[y]),i},w=Object.prototype.toString,k=m?m.toStringTag:void 0,j=function(e){var t;if(null==e)return void 0===e?"[object Undefined]":"[object Null]";return k&&k in Object(e)?b(e):(t=e,w.call(t))},E=function(e){return null!=e&&"object"==typeof e},S=Array.isArray,N=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},C=function(e){return e},A=function(e){if(!N(e))return!1;var t=j(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},I=f["__core-js_shared__"];var T=(r=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",_=Function.prototype.toString,P=function(e){if(null!=e){try{return _.call(e)}catch(e){}try{return e+""}catch(e){}}return""},O=/^\[object .+?Constructor\]$/,L=Object.prototype,M=Function.prototype.toString,z=L.hasOwnProperty,R=RegExp("^"+M.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$=function(e){var t;return!!N(e)&&(t=e,!T||!(T in t))&&(A(e)?R:O).test(P(e))},F=function(e,t){var n,r,i=(n=e,r=t,null==n?void 0:n[r]);return $(i)?i:void 0},B=Object.create,H=function(){function e(){}return function(t){if(!N(t))return{};if(B)return B(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),D=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},Z=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n0){if(++a>=800)return arguments[0]}else a=0;return i.apply(void 0,arguments)}),W=/^(?:0|[1-9]\d*)$/,G=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&W.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},er=function(e){return null!=e&&en(e.length)&&!A(e)},ei=function(e,t,n){if(!N(n))return!1;var r=typeof t;return("number"==r?!!(er(n)&&G(t,n.length)):"string"==r&&t in n)&&Y(n[t],e)},ea=Object.prototype,eo=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ea)},es=function(e,t){for(var n=-1,r=Array(e);++n-1},eR.prototype.set=function(e,t){var n=this.__data__,r=eM(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var e$=F(f,"Map"),eF=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},eB=function(e,t){var n=e.__data__;return eF(t)?n["string"==typeof t?"string":"hash"]:n.map};function eH(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t1?t[r-1]:void 0,a=r>2?t[2]:void 0;for(i=d.length>3&&"function"==typeof i?(r--,i):void 0,a&&ei(t[0],t[1],a)&&(i=r<3?void 0:i,r=1),e=Object(e);++n!0,ti=e=>e.replace(e9,"").replace(e8,"");function ta(e){return e.replace(/#.*$/,"")}var to=()=>!0;function ts(e){return"/"===e.charAt(0)||tu(e)?e:`/${e}`}function tl(e){return"/"===e.charAt(e.length-1)?e:`${e}/`}function tc(e){var t;return"/"===(t=ts(function(e){let t=e.replace(/\\/g,"/"),n=t.startsWith("/"),r=t.split("/"),i=[];for(let e of r)"."===e||""===e||(".."===e?i.length>0&&".."!==i[i.length-1]?i.pop():n&&i.push(".."):i.push(e));let a=i.join("/");return n&&(a=`/${a}`),a}(e))).charAt(t.length-1)?t.slice(0,-1):t}function tu(e=""){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("mailto:")||e.startsWith("tel:")}function td(e=""){return/^\s*data:/i.test(e)}function th(e,t,n,r="",i=!1,a=!1){let o=tv(e,r);(!o||a)&&(o=i?"/index":"/index.html"),o.endsWith("/")&&(o+=i?"/index":"/index.html");let s="",l="",c="",u=o.split("/").filter(Boolean);return n.current&&n.current!==n.default&&(s=u.shift()||""),t.target!==t.default?(l=t.target,t.current!==t.default&&u.shift()):u.shift(),c=u.join("/")||"",(s||l)&&!c&&(c=i?"index":"index.html"),tx(ts([s,l,c].filter(Boolean).join("/")),r)}function tp(e,t,n="",r=!1,i=!1){let a=tv(e,n);(!a||i)&&(a=r?"/index":"/index.html");let o="",s=a.split("/").filter(Boolean);t.target!==t.default?(o=t.target,t.current!==t.default&&s.shift()):s.shift();let l=s.join("/")||"";return o&&!l&&(l=r?"index":"index.html"),tx(ts([o,l].filter(Boolean).join("/")),n)}var tf=e=>{let[t,n=""]=e.split("#");return{url:t,hash:n}};function tm(e,t=!1){if(!e)return"/";if(tu(e))return e;let{url:n,hash:r}=tf(decodeURIComponent(e));return!t&&!n.endsWith(".html")&&(n.endsWith("/")?n+="index.html":n+=".html"),t&&n.endsWith("/")&&(n+="index"),t&&n.endsWith(".html")&&(n=n.replace(/\.html$/,"")),ts(r?`${n}#${r}`:n)}function tg(e,t=""){return ts(e).replace(tc(t),"")}function tx(e="/",t=""){let n=ts(e),r=tc(t);return n.startsWith(r)?n:`${r}${n}`}function tv(e,t){return ts(e).replace(RegExp(`^${tc(t)}`),"")}},5375:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M16 22 6 12l1.4-1.4 8.6 8.6 8.6-8.6L26 12z"})})},5999:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M22 16 12 26l-1.4-1.4 8.6-8.6-8.6-8.6L12 6z"})})},6164:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 32 32",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M24 9.4 22.6 8 16 14.6 9.4 8 8 9.4l6.6 6.6L8 22.6 9.4 24l6.6-6.6 6.6 6.6 1.4-1.4-6.6-6.6L24 9.4z"})})},2294:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 30 30",...e,children:[(0,r.jsx)("path",{fill:"currentColor",d:"M28 10v18H10V10h18m0-2H10a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2Z"}),(0,r.jsx)("path",{fill:"currentColor",d:"M4 18H2V4a2 2 0 0 1 2-2h14v2H4Z"})]})},4146:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M16 22 6 12l1.4-1.4 8.6 8.6 8.6-8.6L26 12z"})})},3020:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"none",viewBox:"0 0 48 48",...e,children:[(0,r.jsx)("path",{stroke:"currentColor",strokeWidth:4,d:"M24 5v6m7 1 4-4m-18 4-4-4m27 33H8a2 2 0 0 1-2-2v-8.46a2 2 0 0 1 .272-1.007l6.15-10.54A2 2 0 0 1 14.148 18H33.85a2 2 0 0 1 1.728.992l6.149 10.541A2 2 0 0 1 42 30.541V39a2 2 0 0 1-2 2Z"}),(0,r.jsx)("path",{stroke:"currentColor",strokeWidth:4,d:"M41.5 30H28s-1 3-4 3-4-3-4-3H6.5"})]})},9174:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 32 32",...e,children:[(0,r.jsx)("circle",{cx:22,cy:24,r:2,fill:"currentColor"}),(0,r.jsx)("path",{fill:"none",d:"M22 28a4 4 0 1 1 4-4 4.004 4.004 0 0 1-4 4Zm0-6a2 2 0 1 0 2 2 2.003 2.003 0 0 0-2-2Z"}),(0,r.jsx)("path",{fill:"currentColor",d:"M29.777 23.479A8.64 8.64 0 0 0 22 18a8.64 8.64 0 0 0-7.777 5.479L14 24l.223.521A8.64 8.64 0 0 0 22 30a8.64 8.64 0 0 0 7.777-5.479L30 24ZM22 28a4 4 0 1 1 4-4 4.005 4.005 0 0 1-4 4Z"}),(0,r.jsx)("path",{fill:"currentColor",d:"M12 28H8V4h8v6a2.006 2.006 0 0 0 2 2h6v4h2v-6a.91.91 0 0 0-.3-.7l-7-7A.909.909 0 0 0 18 2H8a2.006 2.006 0 0 0-2 2v24a2.006 2.006 0 0 0 2 2h4Zm6-23.6 5.6 5.6H18Z"})]})},8438:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})})},3856:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"m21.94 13.11-1.05-3.22c0-.03-.01-.06-.02-.09l-2.11-6.48a.859.859 0 0 0-.8-.57c-.36 0-.68.25-.79.58l-2 6.17H8.84L6.83 3.33a.851.851 0 0 0-.79-.58c-.37 0-.69.25-.8.58L3.13 9.82v.01l-1.07 3.28c-.16.5.01 1.04.44 1.34l9.22 6.71c.17.12.39.12.56-.01l9.22-6.7c.43-.3.6-.84.44-1.34M8.15 10.45l2.57 7.91-6.17-7.91m8.73 7.92 2.47-7.59.1-.33h3.61l-5.59 7.16m4.1-13.67 1.81 5.56h-3.62m-1.3.95-1.79 5.51L12 19.24l-2.86-8.79M6.03 3.94 7.84 9.5H4.23m-1.18 4.19c-.09-.07-.13-.19-.09-.29l.79-2.43 5.82 7.45m11.38-4.73-6.51 4.73.02-.03 5.79-7.42.79 2.43c.04.1 0 .22-.09.29"})})},876:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 32 32",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M28 12v-2h-6V4h-2v6h-8V4h-2v6H4v2h6v8H4v2h6v6h2v-6h8v6h2v-6h6v-2h-6v-8Zm-8 8h-8v-8h8Z"})})},9887:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 32 32",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M13.414 17.586 18 22.172V8H8V6h10a2.002 2.002 0 0 1 2 2v14.172l4.586-4.586L26 19l-7 7-7-7Z"})})},4191:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{width:32,height:32,viewBox:"0 0 24 24",...e,children:(0,r.jsxs)("g",{fill:"none",stroke:"var(--rp-c-brand)",strokeLinecap:"round",strokeWidth:2,children:[(0,r.jsx)("path",{strokeDasharray:60,strokeDashoffset:60,strokeOpacity:.3,d:"M12 3a9 9 0 1 1 0 18 9 9 0 0 1 0-18Z",children:(0,r.jsx)("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"1.3s",values:"60;0"})}),(0,r.jsxs)("path",{strokeDasharray:15,strokeDashoffset:15,d:"M12 3a9 9 0 0 1 9 9",children:[(0,r.jsx)("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.3s",values:"15;0"}),(0,r.jsx)("animateTransform",{attributeName:"transform",dur:"1.5s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"})]})]})})},6633:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M4 6h24v2H4zm0 18h24v2H4zm0-12h24v2H4zm0 6h24v2H4z"})})},4009:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M12.1 22h-.9c-5.5-.5-9.5-5.4-9-10.9.4-4.8 4.2-8.6 9-9 .4 0 .8.2 1 .5.2.3.2.8-.1 1.1-2 2.7-1.4 6.4 1.3 8.4 2.1 1.6 5 1.6 7.1 0 .3-.2.7-.3 1.1-.1.3.2.5.6.5 1-.2 2.7-1.5 5.1-3.6 6.8-1.9 1.4-4.1 2.2-6.4 2.2zM9.3 4.4c-2.9 1-5 3.6-5.2 6.8-.4 4.4 2.8 8.3 7.2 8.7 2.1.2 4.2-.4 5.8-1.8 1.1-.9 1.9-2.1 2.4-3.4-2.5.9-5.3.5-7.5-1.1-2.8-2.2-3.9-5.9-2.7-9.2z"})})},921:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{width:24,height:24,viewBox:"0 0 32 32",...e,children:(0,r.jsx)("path",{fill:"var(--rp-c-gray)",d:"m29 27.586-7.552-7.552a11.018 11.018 0 1 0-1.414 1.414L27.586 29ZM4 13a9 9 0 1 1 9 9 9.01 9.01 0 0 1-9-9Z"})})},7281:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32",...e,children:[(0,r.jsx)("circle",{cx:8,cy:16,r:2,fill:"currentColor"}),(0,r.jsx)("circle",{cx:16,cy:16,r:2,fill:"currentColor"}),(0,r.jsx)("circle",{cx:24,cy:16,r:2,fill:"currentColor"})]})},6445:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{width:32,height:32,viewBox:"0 0 30 30",...e,children:(0,r.jsx)("path",{fill:"#49cd37",d:"m13 24-9-9 1.414-1.414L13 21.171 26.586 7.586 28 9 13 24z"})})},8332:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M12 18c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6zm0-10c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zM12 4c-.6 0-1-.4-1-1V1c0-.6.4-1 1-1s1 .4 1 1v2c0 .6-.4 1-1 1zM12 24c-.6 0-1-.4-1-1v-2c0-.6.4-1 1-1s1 .4 1 1v2c0 .6-.4 1-1 1zM5.6 6.6c-.3 0-.5-.1-.7-.3L3.5 4.9c-.4-.4-.4-1 0-1.4s1-.4 1.4 0l1.4 1.4c.4.4.4 1 0 1.4-.1.2-.4.3-.7.3zM19.8 20.8c-.3 0-.5-.1-.7-.3l-1.4-1.4c-.4-.4-.4-1 0-1.4s1-.4 1.4 0l1.4 1.4c.4.4.4 1 0 1.4-.2.2-.5.3-.7.3zM3 13H1c-.6 0-1-.4-1-1s.4-1 1-1h2c.6 0 1 .4 1 1s-.4 1-1 1zM23 13h-2c-.6 0-1-.4-1-1s.4-1 1-1h2c.6 0 1 .4 1 1s-.4 1-1 1zM4.2 20.8c-.3 0-.5-.1-.7-.3-.4-.4-.4-1 0-1.4l1.4-1.4c.4-.4 1-.4 1.4 0s.4 1 0 1.4l-1.4 1.4c-.2.2-.4.3-.7.3zM18.4 6.6c-.3 0-.5-.1-.7-.3-.4-.4-.4-1 0-1.4l1.4-1.4c.4-.4 1-.4 1.4 0s.4 1 0 1.4l-1.4 1.4c-.2.2-.5.3-.7.3z"})})},9022:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M4 4a2 2 0 0 1 2-2h8a1 1 0 0 1 .707.293l5 5A1 1 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4zm13.586 4L14 4.414V8h3.586zM12 4H6v16h12V10h-5a1 1 0 0 1-1-1V4z"})})},5247:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{width:18,height:18,viewBox:"0 0 32 32",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M27.85 29H30l-6-15h-2.35l-6 15h2.15l1.6-4h6.85zm-7.65-6 2.62-6.56L25.45 23zM18 7V5h-7V2H9v3H2v2h10.74a14.71 14.71 0 0 1-3.19 6.18A13.5 13.5 0 0 1 7.26 9h-2.1a16.47 16.47 0 0 0 3 5.58A16.84 16.84 0 0 1 3 18l.75 1.86A18.47 18.47 0 0 0 9.53 16a16.92 16.92 0 0 0 5.76 3.84L16 18a14.48 14.48 0 0 1-5.12-3.37A17.64 17.64 0 0 0 14.8 7z"})})},9530:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M16 7H3V5h13v2M3 19h13v-2H3v2m19-7-4-3v2H3v2h15v2l4-3Z"})})},8279:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{fill:"#22a041",d:"M21 5H3v2h18zM3 19h7v-2H3zm0-6h15c1 0 2 .43 2 2s-1 2-2 2h-2v-2l-4 3 4 3v-2h2c2.95 0 4-1.27 4-4 0-2.72-1-4-4-4H3z"})})},8942:function(e,t,n){"use strict";n.d(t,{AV:function(){return ta},Ar:function(){return tT},BZ:function(){return na},CF:function(){return eU},CU:function(){return eq},Ct:function(){return t8},EG:function(){return n8},H_:function(){return ty},JL:function(){return nB},KO:function(){return nx},M4:function(){return eB},NG:function(){return tf},O9:function(){return nh},OK:function(){return n3},Os:function(){return t_},Qe:function(){return nY},Qn:function(){return tj},RY:function(){return tA},Rg:function(){return rf},SU:function(){return nG},TJ:function(){return t6},UQ:function(){return eK},VA:function(){return tv},Vl:function(){return eV},Vp:function(){return rm},WG:function(){return nj},WS:function(){return eZ},YE:function(){return ru},YS:function(){return ti},ZB:function(){return rh},ZP:function(){return rv},cY:function(){return eY},eE:function(){return eJ},eF:function(){return eG},g2:function(){return nD},ls:function(){return td},mQ:function(){return n2},mi:function(){return nn},of:function(){return rx},ol:function(){return n9},pU:function(){return nQ},qx:function(){return eF},rU:function(){return nf},s2:function(){return tp},tx:function(){return eD},xB:function(){return nu},xK:function(){return no},xN:function(){return tb},y2:function(){return tn},zh:function(){return th},zx:function(){return ne}});var r,i,a,o,s,l,c,u,d,h,p,f,m,g,x,v,y,b,w,k,j,E,S=n("5687"),N=n("8028"),C=n("5893");n("8228");var A=n("405"),I=n("5293"),T=n("7213"),_=n("7294"),P=n("65"),O=n("8183"),L=n("9250"),M=n("8995"),z=n("8709"),R=n("8481"),$=n("8390"),F=n("6780"),B=n("5598"),H=n("3306"),D=n("33"),Z=n("6633"),q=n("5999"),U=n("9697"),V=n("9530"),W=n("8279"),G=n("6824"),K=n("3216"),Y=n("640"),J=n("2294"),Q=n("6445"),X=n("2599"),ee=n("4865"),et=n("6118"),en=n("7281"),er=n("8509"),ei=n("8332"),ea=n("4009"),eo=n("5375"),es=n("5247"),el=n("4146"),ec=n("921"),eu=n("3283"),ed=n("4777"),eh=n("3935"),ep=n("5831"),ef=n("6164"),em=n("4191"),eg=n("3020"),ex=n("9174"),ev=n("9887"),ey=n("876"),eb=n("9022"),ew=n("8438"),ek=n("3856"),ej=Object.defineProperty,eE=Object.defineProperties,eS=Object.getOwnPropertyDescriptors,eN=Object.getOwnPropertySymbols,eC=Object.prototype.hasOwnProperty,eA=Object.prototype.propertyIsEnumerable,eI=(e,t,n)=>t in e?ej(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eT=(e,t)=>{for(var n in t||(t={}))eC.call(t,n)&&eI(e,n,t[n]);if(eN)for(var n of eN(t))eA.call(t,n)&&eI(e,n,t[n]);return e},e_=(e,t)=>eE(e,eS(t)),eP=(e,t)=>{var n={};for(var r in e)eC.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&eN)for(var r of eN(e))0>t.indexOf(r)&&eA.call(e,r)&&(n[r]=e[r]);return n},eO=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},eL=(e,t,n)=>(eO(e,t,"read from private field"),n?n.call(e):t.get(e)),eM=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},ez=(e,t,n,r)=>(eO(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),eR=(e,t,n)=>(eO(e,t,"access private method"),n),e$=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())});function eF(){let{siteData:e,page:t}=(0,S.Vi)(),n=e.lang,r=e.multiVersion.default;if(n&&"undefined"!=typeof window&&location.pathname.includes(`/${n}/`)){let e=location.pathname.replace(`/${n}/`,"/");return window.location.replace(e),(0,C.jsx)(C.Fragment,{})}let i="/";return r&&t.version!==r&&(i+=`${t.version}/`),n&&t.lang!==n&&(i+=`${t.lang}/`),(0,C.jsxs)("div",{className:"m-auto mt-50 p-16 sm:p-8 sm:pt-24 sm:pb-40 text-center flex-center flex-col",children:[(0,C.jsx)("p",{className:"text-6xl font-semibold",children:"404"}),(0,C.jsx)("h1",{className:"leading-5 pt-3 text-xl font-bold",children:"PAGE NOT FOUND"}),(0,C.jsx)("div",{style:{height:"1px"},className:"mt-6 mx-auto mb-4.5 w-16 bg-gray-light-1"}),(0,C.jsx)("div",{className:"pt-5",children:(0,C.jsx)("a",{className:"py-2 px-4 rounded-2xl inline-block border-solid border-brand text-brand font-medium hover:border-brand-dark hover:text-brand-dark transition-colors duration-300",href:(0,N.pJ)(i),"aria-label":"go to home",children:"Take me home"})})]})}function eB(){var e,t,n;let r=(0,S.Vi)(),{page:{lang:i}}=r,a=null!=(t=null==(e=null==r?void 0:r.siteData)?void 0:e.themeConfig)?t:{},o=null!=(n=r.siteData.lang)?n:"",s=null==a?void 0:a.locales;return s&&0!==s.length?e_(eT({},s.find(e=>e.lang===i)),{langRoutePrefix:i===o?"/":i}):{nav:a.nav,sidebar:a.sidebar,prevPageText:a.prevPageText,nextPageText:a.nextPageText,sourceCodeText:a.sourceCodeText,searchPlaceholderText:a.searchPlaceholderText}}var eH=(e,t)=>{let n;for(let r of Object.keys(e)){if(n&&n!==r)continue;if((0,N.pV)((0,N.pJ)(r),t))return{group:"Documentation",items:e[r]};let i=e[r].find(i=>{let a=i=>{if(!t.startsWith((0,N.pJ)(r))){for(let i of Object.keys(e))if(i!==r&&t.startsWith((0,M.mi)((0,N.pJ)(i))))return n=i,!1}let o=()=>"link"in i&&(0,N.pV)((0,N.pJ)(i.link),t);if("items"in i)return!!o()||i.items.some(e=>a(e));return o()};return a(i)});if(i){let t=e[r];return{group:"text"in i&&i.text||"",items:t}}}return{group:"Documentation",items:[]}};function eD(){var e;let t=eB(),n=null!=(e=t.sidebar)?e:{},{pathname:r}=(0,L.TH)(),i=decodeURIComponent(r),[a,o]=(0,_.useState)(eH(n,i));return(0,_.useEffect)(()=>{o(eH(n,i))},[i,t.lang]),a}function eZ(){let{pathname:e}=(0,L.TH)(),{items:t}=eD(),n=[],r=e=>{"items"in e?(e.link&&n.push({text:e.text,link:e.link}),e.items.forEach(e=>{"dividerType"in e||r(e)})):n.push(e)};t.forEach(e=>!("dividerType"in e)&&r(e));let i=n.findIndex(t=>(0,N.pV)((0,N.pJ)(t.link),e)),a=n[i-1]||null;return{prevPage:a,nextPage:n[i+1]||null}}function eq(){var e,t,n;let{siteData:r,page:i}=(0,S.Vi)(),a=null!=(n=null!=(t=eB().editLink)?t:null==(e=r.themeConfig)?void 0:e.editLink)?n:{};if(!a.docRepoBaseUrl||!a.text)return null;let{docRepoBaseUrl:o}=a;!o.endsWith("/")&&(o+="/");let s=i._relativePath.replace(/\\/g,"/"),l=`${o}${s}`;return{text:a.text,link:l}}function eU(){var e;let{siteData:{themeConfig:t},page:{frontmatter:n={}}}=(0,S.Vi)(),r=(null==(e=null==n?void 0:n.navbar)||e)&&(null==t?void 0:t.hideNavbar)!=="always",[i,a]=(0,_.useState)(r);return[i,a]}function eV(){var e;let{siteData:{themeConfig:t}}=(0,S.Vi)(),n=null!=(e=t.hideNavbar)?e:"never",[r,i]=(0,_.useState)(!1),{pathname:a}=(0,L.TH)(),o=(0,_.useRef)(0);return"never"!==n&&("always"===n||((0,_.useEffect)(()=>{i(!1);let e=(0,z.Z)(()=>{let{scrollTop:e}=document.documentElement;if(e!==o.current)i(o.current>0&&e-o.current>0),o.current=e<=0?0:e},200);return window.addEventListener("mousewheel",e),window.addEventListener("touchmove",e),()=>{window.removeEventListener("mousewheel",e),window.removeEventListener("touchmove",e)}},[a]),r))}function eW(e,t=72){let n=parseInt(window.getComputedStyle(e).paddingTop,10);return Math.round(window.scrollY+e.getBoundingClientRect().top-t-n)}function eG(e,t,n=72){window.scrollTo(eT({left:0,top:eW(e,n)},t?{behavior:"smooth"}:{}))}function eK(){let e=document.getElementById("aside-container"),t=Array.from(document.querySelectorAll(".rspress-doc .header-anchor")).filter(e=>{var t;return(null==(t=e.parentElement)?void 0:t.tagName)!=="H1"});if(!e||!t.length)return;let n=null;if(!Array.from((null==e?void 0:e.getElementsByTagName("a"))||[]).map(e=>decodeURIComponent(e.hash)).length)return;let r=(t,r)=>{if(t[r]){let i=t[r].getAttribute("href"),a=null==e?void 0:e.querySelector(`a[href="#${null==i?void 0:i.slice(1)}"] > span`);a&&(n&&n.classList.remove("aside-active"),(n=a).classList.add("aside-active"))}},i=()=>{if(document.documentElement.scrollTop+window.innerHeight>=document.documentElement.scrollHeight)r(t,t.length-1);else for(let e=0;e=o&&a{n&&n.classList.remove("aside-active"),window.removeEventListener("scroll",a)}}function eY(){(0,M._f)()&&(window.addEventListener("click",e=>{let t=e.target.closest("a");if(t){let{origin:n,hash:r,target:i,pathname:a,search:o}=t,s=window.location;r&&"_blank"!==i&&n===s.origin&&(a===s.pathname&&o===s.search&&r&&t.classList.contains("header-anchor")?(e.preventDefault(),history.pushState(null,"",r),!function(e,t,n=!1){let r=null;try{r=e.classList.contains("header-anchor")?e:document.getElementById(decodeURIComponent(t.slice(1)))}catch(e){console.warn(e)}r&&eG(r,n)}(t,r,!0),window.dispatchEvent(new Event("hashchange"))):window.addEventListener("RspressReloadContent",()=>{location.hash.length>1&&eG(document.getElementById(location.hash.slice(1)),!1)}))}},{capture:!0}),window.addEventListener("hashchange",e=>{e.preventDefault()}))}function eJ(){let e=(0,S.Jr)(),t=(0,S.aw)(),n=(0,S.Vi)(),r=n.siteData.lang,i=n.siteData.multiVersion.default;return{normalizeLinkHref:n=>{let a=n;if((r||i)&&!(0,M.xf)(a)&&!a.startsWith("#")){let n=(a=(0,N.E9)(a)).split("/").filter(Boolean),o="",s="",l="";return i&&(t!==i?(o=t,n[0]===t&&n.shift()):n[0]===i&&n.shift()),r&&(e!==r?(s=e,n[0]===e&&n.shift()):n[0]===r&&n.shift()),l=n.join("/"),(0,N.AP)((0,N.pJ)([o,s,l].filter(Boolean).join("/")))}return a}}}var eQ="default",eX=/[\u3131-\u314e|\u314f-\u3163|\uac00-\ud7a3]/u,e0=/[\u0400-\u04FF]/u;function e1(e){let t=e.toString().toLowerCase().normalize("NFD"),n=t.replace(/[\u0300-\u036f]/g,"");return e0.test(String(e))?t.normalize("NFC"):eX.test(String(e))?n.normalize("NFC"):n}function e2(e){return e.replace(/https?:\/\/[^/]+/,"")}function e3(e){return e.charCodeAt(0)>255?3:1}var e4=e=>e.map(e=>"string"==typeof e?{value:e,label:e}:e);function e5(e,t){let n=0,r=0;for(let i=0;i=t);i++)r+=e3(e.charAt(i)),n++;return n}function e6(e){let t=0;for(let n=0;ne_(eT({},e),{normalizedContent:e1(e.content),headers:e.toc.map(e=>e1(e.text)).join(" "),normalizedTitle:e1(e.title)})),u={tokenize:"full",async:!0,doc:{id:"routePath",field:["normalizedTitle","headers","normalizedContent"]},cache:100,split:/\W+/};ez(this,i,R.create(u)),ez(this,a,R.create(e_(eT({},u),{tokenize:e=>e9(e,e7)}))),ez(this,o,R.create(e_(eT({},u),{tokenize:e=>e9(e,e8)}))),eL(this,i).add(c),eL(this,a).add(c),eL(this,o).add(c)})}search(e){return e$(this,null,function*(){var t,n;let{keyword:r,limit:s}=e,l={query:r,limit:s,field:["normalizedTitle","headers","normalizedContent"]};return[{index:eQ,hits:(yield Promise.all([null==(t=eL(this,i))?void 0:t.search(l),null==(n=eL(this,a))?void 0:n.search(l),eL(this,o).search(l)])).flat(2).filter(Boolean)}]})}};i=new WeakMap,a=new WeakMap,o=new WeakMap,s=new WeakSet,l=function(e,t){return e$(this,null,function*(){let n=`${t}###${e}`,r=t?`.${t.replace(".","_")}`:"",i=e?`.${e}`:"";return(yield fetch(`/react-native-testing-library/static/${M.t6}${r}${i}.${$.Z[n]}.json`)).json()})};var tt=class{constructor(){eM(this,c,void 0)}init(e){return e$(this,null,function*(){ez(this,c,e)})}search(e){return e$(this,null,function*(){let{apiUrl:t,searchIndexes:n}=eL(this,c),{keyword:r,limit:i}=e,a=Object.entries({keyword:r,limit:i.toString(),searchIndexes:(null==n?void 0:n.map(e=>"string"==typeof e?e:e.value).join(","))||"",lang:eL(this,c).currentLang}).map(e=>e.map(encodeURIComponent).join("=")).join("&");try{return(yield fetch(`${t}?${a}`)).json()}catch(e){return console.error(e),[]}})}};c=new WeakMap;var tn=((r=tn||{}).Default="default",r.Custom="custom",r),tr=class{constructor(e){if(eM(this,p),eM(this,m),eM(this,x),eM(this,y),eM(this,w),eM(this,j),eM(this,u,void 0),eM(this,d,eQ),eM(this,h,void 0),ez(this,u,e),ez(this,d,e.indexName),"remote"===e.mode)ez(this,h,new tt);else ez(this,h,new te)}init(){return e$(this,null,function*(){var e;yield null==(e=eL(this,h))?void 0:e.init(eL(this,u))})}match(e,t=7){return e$(this,null,function*(){var n;let r=yield null==(n=eL(this,h))?void 0:n.search({keyword:e,limit:t}),i=e1(e),a=(null==r?void 0:r.find(e=>eR(this,j,E).call(this,e.index)))||{index:eQ,renderType:"default",hits:[]};return[{group:eL(this,d),renderType:"default",result:eR(this,p,f).call(this,i,a)},...((null==r?void 0:r.filter(e=>!eR(this,j,E).call(this,e.index)))||[]).map(e=>({group:e.index,renderType:"default",result:eR(this,p,f).call(this,i,e)}))]})}};function ti(){var e;let{siteData:t,page:n}=(0,S.Vi)(),[r,i]=(0,_.useState)(!1),{sidebar:a}=eB(),o=e=>eH(a,e).group,s=(0,_.useRef)(null);return(0,_.useEffect)(()=>{!function(){e$(this,null,function*(){if(!r){let e=new tr(e_(eT({},t.search),{mode:"local",currentLang:n.lang,currentVersion:n.version,extractGroupName:o}));s.current=e,yield e.init(),i(!0)}})}()},[]),{initialized:r,search:null==(e=s.current)?void 0:e.match.bind(s.current)}}function ta(){let{siteData:e,page:t}=(0,S.Vi)(),n=e.lang||"",r=Object.values(e.themeConfig.locales||{}).map(e=>e.lang)||[],i=t.lang;(0,_.useEffect)(()=>{var t;let a;if("auto"!==(null!=(t=e.themeConfig.localeRedirect)?t:"auto")||!n)return;let{pathname:o,search:s}=window.location,l=(0,N.E9)(o),c="rspress-visited";if(localStorage.getItem(c))return;localStorage.setItem(c,"1");let u=window.navigator.language.split("-")[0];if(!!r.includes(u))u!==i&&(a=u===n?o.replace(`/${i}`,""):i===n?(0,N.pJ)(`/${u}${l}`):o.replace(`/${i}`,`/${u}`))&&window.location.replace(a+s)},[])}u=new WeakMap,d=new WeakMap,h=new WeakMap,p=new WeakSet,f=function(e,t){let n=[];return null==t||t.hits.forEach(t=>{eR(this,m,g).call(this,t,e,n),!eR(this,x,v).call(this,t,e,n)&&eR(this,y,b).call(this,t,e,n)}),n},m=new WeakSet,g=function(e,t,n){let{title:r=""}=e,i=e1(r);return!!i.includes(t)&&(n.push({type:"title",title:r,header:r,link:`${e.domain}${(0,N.AP)(e.routePath)}`,query:t,highlightInfoList:[{start:i.indexOf(t),length:e6(t)}],group:eL(this,u).extractGroupName(e.routePath)}),!0)},x=new WeakSet,v=function(e,t,n){let{toc:r=[],domain:i="",title:a=""}=e;for(let[o,s]of r.entries())if(e1(s.text).includes(t)){let l=(function(e,t){let n=e[t],r=t,i=[n];for(;n&&n.depth>2;){let t=!1;for(let a=r-1;a>=0;a--){let o=e[a];if(o.depth>1&&o.depth===n.depth-1){n=o,r=a,i.unshift(n),t=!0;break}}if(!t)break}return i})(r,o).map(e=>e.text).join(" > "),c=e1(l).indexOf(t),d=`${a} > `;return n.push({type:"header",title:e.title,header:`${d}${l}`,highlightInfoList:[{start:c+d.length,length:e6(t)}],link:`${i}${(0,N.AP)(e.routePath)}#${s.id}`,query:t,group:eL(this,u).extractGroupName(e.routePath)}),!0}return!1},y=new WeakSet,b=function(e,t,n){var r,i,a;let{content:o,toc:s,domain:l}=e;if(!o.length)return;let c=e1(o),d=c.indexOf(t),h=s.map(e=>e.charIndex),p=e=>s[h.findIndex((t,n)=>{if(!(n=e)return!0}return!1})];if(-1===d){let a=null==(r=e._matchesPosition)?void 0:r.content;if(!(null==a?void 0:a.length))return;let s=e._matchesPosition.content[0].start,c=p(s),d=e5(o,s),h=e5(o,s+100),f=o.slice(d,h),m=e._matchesPosition.content.filter(e=>e.start>=s&&e.start+e.length<=s+100).map(e=>({start:e5(o,e.start)-d+3,length:e.length}));n.push({type:"content",title:e.title,header:null!=(i=null==c?void 0:c.text)?i:e.title,link:`${l}${(0,N.AP)(e.routePath)}${c?`#${c.id}`:""}`,query:t,highlightInfoList:m,group:eL(this,u).extractGroupName(e.routePath),statement:`...${f}...`});return}for(;-1!==d;){let r=p(d),i=o.slice(0,d).lastIndexOf("\n");i=-1===i?0:i;let s=o.indexOf("\n\n",d+t.length),h=o.slice(i,s);h.length>100&&(h=eR(this,w,k).call(this,h,t));let f=e1(h).indexOf(t),m=[{start:f,length:e6(t)}];n.push({type:"content",title:e.title,header:null!=(a=null==r?void 0:r.text)?a:e.title,statement:h,highlightInfoList:m,link:`${l}${(0,N.AP)(e.routePath)}${r?`#${r.id}`:""}`,query:t,group:eL(this,u).extractGroupName(e.routePath)}),d=c.indexOf(t,d+h.length-f)}},w=new WeakSet,k=function(e,t){let n=e1(e).indexOf(e1(t)),r=Math.floor((100-t.length)/2),i=e.slice(0,n);i.length>r&&(i=`...${e.slice(n-r+3,n)}`);let a=e.slice(n+t.length);return a.length>r&&(a=`${e.slice(n+t.length,n+r-3)}...`),i+t+a},j=new WeakSet,E=function(e){return e===eL(this,d)||e===eQ};var to=e=>{let t=(0,_.useRef)(e);return t.current=e,(0,_.useRef)((...e)=>t.current(...e)).current},ts=e=>{let[t,n]=(0,_.useState)(()=>"undefined"!=typeof window&&window.matchMedia(e).matches);return(0,_.useEffect)(()=>{let t=window.matchMedia(e),r=e=>n(e.matches);return t.addEventListener("change",r),()=>t.removeEventListener("change",r)},[e]),t},tl=(e,t=null)=>{let[n,r]=(0,_.useState)(()=>{var n;return"undefined"==typeof window?t:null!=(n=localStorage.getItem(e))?n:t}),i=(0,_.useCallback)(t=>{r(n=>{let r="function"==typeof t?t(n):t;return null==r?localStorage.removeItem(e):localStorage.setItem(e,r),r})},[e]);return(0,_.useEffect)(()=>{let n=n=>{var i;n.key===e&&r(null!=(i=localStorage.getItem(e))?i:t)};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}},[e,t]),[n,i]},tc=e=>["light","dark","auto"].includes(e)?e:"auto",tu=!1===F.Z.themeConfig.darkMode,td=()=>{let e=ts("(prefers-color-scheme: dark)"),[t,n]=tl(M.rp),r=to(()=>{if(tu)return"light";let n=tc(t);return"auto"===n?e?"dark":"light":n}),[i,a]=(0,_.useState)(()=>{var e;if("undefined"==typeof window)return"light";let t=null!=(e=window.RSPRESS_THEME)?e:window.MODERN_THEME;return t?"dark"===t?"dark":"light":r()}),o=(0,_.useCallback)((e,t=e)=>{!tu&&(a(e),n(t),l(!0))},[]);(0,_.useEffect)(()=>{document.documentElement.classList.toggle("dark","dark"===i),document.documentElement.style.colorScheme=i},[i]);let[s,l]=(0,_.useState)(!0);return(0,_.useEffect)(()=>{l(!1)},[s]),(0,_.useEffect)(()=>{!s&&o(r(),tc(t))},[t]),(0,_.useEffect)(()=>{!s&&o(e?"dark":"light","auto")},[e]),[i,o]};function th(e,t,n=!1){return!!t&&(n?(0,N.pV)(e,t):(0,N.pV)(e,t)||e.startsWith(t))}function tp(){return window.innerWidth<=1024}function tf(e){return e?(0,D.Z)(e)?e:(0,H.Z)(e)?B(e):e:""}var tm=/`(.*?)`/g,tg=RegExp("\\*{2}(?!\\*)(.*?)(?$1").replace(tx,"$1").replace(tm,"$1"))}function ty(e){return e.replace(tg,"$1").replace(tx,"$1").replace(tm,"$1")}function tb(e){var t;let{headers:n}=e,r=n.length>0,i=(null==(t=n[0])?void 0:t.depth)||2,a=eV();return(0,_.useEffect)(()=>{let e;setTimeout(()=>{e=eK()},100);let t=decodeURIComponent(window.location.hash);if(t){let e=document.getElementById(t.slice(1));e&&eG(e,!1,a?0:72)}else window.scrollTo(0,0);return()=>{e&&e()}},[n]),(0,C.jsx)("div",{className:"flex flex-col",children:(0,C.jsx)("div",{className:r?"(0,C.jsx)("li",{children:(0,C.jsx)("a",{href:`#${e.id}`,title:ty(e.text),className:"aside-link transition-all duration-300 hover:text-text-1 text-text-2 block",style:{paddingLeft:(e.depth-i)*12,fontWeight:"semibold"},onClick:t=>{t.preventDefault(),window.location.hash=e.id;let n=document.getElementById(e.id);n&&eG(n,!1,a?0:72)},children:(0,C.jsx)("span",{className:"aside-link-text block",children:tv(e.text)})})},e.id))})})]})})})}var tw="prev_e7091",tk="next_e7091";function tj(){let{prevPage:e,nextPage:t}=eZ(),{lastUpdated:n=!1}=eB(),{siteData:r}=(0,S.Vi)(),{themeConfig:i}=r,a=i.lastUpdated||n;return(0,C.jsxs)("footer",{className:"mt-8",children:[(0,C.jsx)("div",{className:"xs:flex pb-5 px-2 justify-end items-center",children:a&&(0,C.jsx)(I.LastUpdated,{})}),(0,C.jsx)("div",{className:"flex flex-col",children:(0,C.jsx)(I.EditLink,{})}),(0,C.jsxs)("div",{className:"flex flex-col sm:flex-row sm:justify-around gap-4 pt-6",children:[(0,C.jsx)("div",{className:`${tw} flex flex-col`,children:e?(0,C.jsx)(I.PrevNextPage,{type:"prev",text:e.text,href:(0,N.AP)(e.link)}):null}),(0,C.jsx)("div",{className:`${tk} flex flex-col`,children:t?(0,C.jsx)(I.PrevNextPage,{type:"next",text:t.text,href:(0,N.AP)(t.link)}):null})]})]})}function tE(e){var{icon:t}=e,n=eP(e,["icon"]);return t?"string"==typeof t?(0,C.jsx)("img",eT({src:t,alt:""},n)):(0,C.jsx)(t,eT({},n)):null}function tS({outlineTitle:e,beforeSidebar:t,afterSidebar:n,uiSwitch:r}){let[i,a]=(0,_.useState)(!1),[o,s]=(0,_.useState)(!1),l=(0,_.useRef)(),c=(0,_.useRef)(),{pathname:u}=(0,L.TH)();(0,_.useEffect)(()=>{a(!1)},[u]),(0,_.useEffect)(()=>(document.addEventListener("mouseup",d),document.addEventListener("touchend",d),()=>{document.addEventListener("mouseup",d),document.removeEventListener("touchend",d)}),[]);let d=e=>{let{current:t}=c;if(null==t?void 0:t.contains(e.target))return;let{current:n}=l;n&&!n.contains(e.target)&&s(!1)};return(0,C.jsxs)(_.Fragment,{children:[(0,C.jsxs)("div",{className:"rspress-sidebar-menu",children:[r.showSidebar?(0,C.jsxs)("button",{onClick:function(){a(!0)},className:"flex-center mr-auto",children:[(0,C.jsx)("div",{className:"text-md mr-2",children:(0,C.jsx)(tE,{icon:Z.Z})}),(0,C.jsx)("span",{className:"text-sm",children:"Menu"})]}):null,r.showAside?(0,C.jsxs)(_.Fragment,{children:[(0,C.jsxs)("button",{onClick:()=>s(e=>!e),className:"flex-center ml-auto",ref:c,children:[(0,C.jsx)("span",{className:"text-sm",children:e}),(0,C.jsx)("div",{className:"text-md mr-2",style:{transform:o?"rotate(90deg)":"rotate(0deg)",transition:"transform 0.2s ease-out",marginTop:"2px"},children:(0,C.jsx)(tE,{icon:q.Z})})]}),(0,C.jsx)(U.Z,{in:o,timeout:300,unmountOnExit:!0,classNames:"fly-in",nodeRef:l,children:(0,C.jsx)("div",{className:"rspress-local-toc-container",ref:l,children:(0,C.jsx)(I.Toc,{onItemClick:()=>{s(!1)}})})})]}):null]}),r.showSidebar?(0,C.jsxs)(_.Fragment,{children:[(0,C.jsx)(I.Sidebar,{isSidebarOpen:i,beforeSidebar:t,afterSidebar:n,uiSwitch:r}),i?(0,C.jsx)("div",{onClick:function(){a(!1)},className:"rspress-sidebar-back-drop",style:{background:"rgba(0, 0, 0, 0.6)"}}):null]}):null]})}var tN=(0,_.createContext)({tabData:{},setTabData:()=>{}}),tC={asideContainer:"aside-container_edeb4",docLayout:"docLayout_edeb4",content:"content_edeb4"};function tA(e){var t,n;let{beforeDocFooter:r,afterDocFooter:i,beforeDoc:a,afterDoc:o,beforeDocContent:s,afterDocContent:l,beforeOutline:c,afterOutline:u,beforeSidebar:d,afterSidebar:h,uiSwitch:p}=e,{siteData:f,page:m}=(0,S.Vi)(),{toc:g=[],frontmatter:x}=m,[v,y]=(0,_.useState)({}),{themeConfig:b}=f,w=null!=(t=b.enableScrollToTop)&&t,k=eB(),j=(null==k?void 0:k.outlineTitle)||(null==b?void 0:b.outlineTitle)||"ON THIS PAGE",E=null!=(n=null==x?void 0:x.overview)&&n,N=(0,C.jsx)(tN.Provider,{value:{tabData:v,setTabData:y},children:(0,C.jsx)(P.Zo,{components:(0,I.getCustomMDXComponent)(),children:(0,C.jsx)(T.V,{})})});return(0,C.jsxs)("div",{className:`${tC.docLayout} pt-0`,style:eT({},p.showNavbar?{}:{marginTop:0}),children:[a,(0,C.jsx)(tS,{outlineTitle:j,beforeSidebar:d,afterSidebar:h,uiSwitch:p}),(0,C.jsxs)("div",{className:`${tC.content} rspress-doc-container flex flex-shrink-0 mx-auto`,children:[(0,C.jsx)("div",{className:"w-full flex-1",children:E?(0,C.jsxs)(C.Fragment,{children:[s,(0,C.jsx)(I.Overview,{content:N}),l]}):(0,C.jsxs)("div",{children:[(0,C.jsxs)("div",{className:"rspress-doc",children:[s,N,l]}),(0,C.jsxs)("div",{className:"rspress-doc-footer",children:[r,p.showDocFooter&&(0,C.jsx)(tj,{}),i]})]})}),w&&(0,C.jsx)(O.r,{children:(0,C.jsx)(I.ScrollToTop,{})}),p.showAside?(0,C.jsx)("div",{className:tC.asideContainer,style:eT({},p.showNavbar?{}:{marginTop:0,paddingTop:"32px"}),children:(0,C.jsxs)("div",{children:[c,(0,C.jsx)(tb,{headers:g,outlineTitle:j}),u]})}):null]}),o]})}var tI=(e,t)=>t?(e=e.trim(),(t=t.trim()).startsWith("-")||t.startsWith("|"))?`${e} ${t}`:`${e} - ${t}`:e,tT=e=>{var t;let{top:n,bottom:r,beforeDocFooter:i,afterDocFooter:a,beforeDoc:o,afterDoc:s,beforeDocContent:l,afterDocContent:c,beforeSidebar:u,afterSidebar:d,beforeOutline:h,afterOutline:p,beforeNavTitle:f,afterNavTitle:m,beforeNav:g,beforeHero:x,afterHero:v,beforeFeatures:y,afterFeatures:b,afterNavMenu:w}=e,k={beforeDocFooter:i,afterDocFooter:a,beforeDocContent:l,afterDocContent:c,beforeDoc:o,afterDoc:s,beforeSidebar:u,afterSidebar:d,beforeOutline:h,afterOutline:p},j={beforeHero:x,afterHero:v,beforeFeatures:y,afterFeatures:b},{siteData:E,page:N}=(0,S.Vi)(),{pageType:P,lang:O,title:M,frontmatter:z={}}=N,R=eB();ta();let $=null!=(t=z.title)?t:M,F=E.title||R.title;$=$&&"doc"===P?tI($,z.titleSuffix||F):"home"===P?tI(F,z.titleSuffix):F;let B=(null==z?void 0:z.description)||E.description||R.description,H=function(){var e,t;let{page:n,siteData:r}=(0,S.Vi)(),{frontmatter:i}=n,{themeConfig:a}=r,o=eB(),s=(0,L.TH)(),l=null!=(e=null==i?void 0:i.overview)&&e,c=()=>{var e,t;let n="undefined"==typeof window||window.top===window.self;return(null!=(t=null!=(e=null==i?void 0:i.outline)?e:null==a?void 0:a.outline)?t:n)&&!l},[u,d]=eU(),[h,p]=(0,_.useState)(c()),[f,m]=(0,_.useState)(null==(t=null==i?void 0:i.footer)||t),g=o.sidebar||{},x=(null==i?void 0:i.sidebar)!==!1&&Object.keys(g).length>0;return(0,_.useEffect)(()=>{p(c())},[n,r]),(0,_.useEffect)(()=>{let e=new URLSearchParams(s.search),t=document.documentElement.style,n=t.getPropertyValue("--rp-sidebar-width"),r=t.getPropertyValue("--rp-aside-width"),i=e.get("navbar"),a=e.get("sidebar"),o=e.get("outline"),l=e.get("footer");return"0"===i&&d(!1),"0"===a&&document.documentElement.style.setProperty("--rp-sidebar-width","0px"),"0"===o&&document.documentElement.style.setProperty("--rp-aside-width","0px"),"0"===l&&m(!1),()=>{document.documentElement.style.setProperty("--rp-sidebar-width",n),document.documentElement.style.setProperty("--rp-aside-width",r),d(u),m(f)}},[s.search]),{showAside:h,showNavbar:u,showSidebar:x,showDocFooter:f}}();return(0,C.jsxs)("div",{children:[(0,C.jsxs)(A.ql,{htmlAttributes:{lang:O||"en"},children:[$?(0,C.jsx)("title",{children:$}):null,B?(0,C.jsx)("meta",{name:"description",content:B}):null]}),n,"blank"!==P&&H.showNavbar&&(0,C.jsx)(I.Nav,{beforeNavTitle:f,afterNavTitle:m,beforeNav:g,afterNavMenu:w}),(0,C.jsx)("section",{children:(()=>{switch(P){case"home":return(0,C.jsx)(I.default.HomeLayout,eT({},j));case"doc":return(0,C.jsx)(tA,e_(eT({},k),{uiSwitch:H}));case"404":return(0,C.jsx)(I.default.NotFoundLayout,{});case"custom":case"blank":return(0,C.jsx)(T.V,{});default:return(0,C.jsx)(tA,eT({},k))}})()}),r]})};function t_(e){let{beforeHero:t,afterHero:n,beforeFeatures:r,afterFeatures:i}=e,{page:{frontmatter:a}}=(0,S.Vi)();return(0,C.jsxs)("div",{className:"relative",style:{minHeight:"calc(100vh - var(--rp-nav-height))",paddingBottom:"80px"},children:[(0,C.jsxs)("div",{className:"pb-12",children:[t,(0,C.jsx)(I.HomeHero,{frontmatter:a}),n,r,(0,C.jsx)(I.HomeFeature,{frontmatter:a}),i]}),(0,C.jsx)(I.HomeFooter,{})]})}var tP={title:"title_3b154",blockquote:"blockquote_3b154",link:"link_3b154","inline-link":"inline-link_3b154"},tO=e=>(0,C.jsx)("h1",e_(eT({},e),{className:`text-3xl mb-10 leading-10 tracking-tight ${tP.title}`})),tL=e=>(0,C.jsx)("h2",e_(eT({},e),{className:`mt-12 mb-6 pt-8 text-2xl tracking-tight border-t-[1px] border-divider-light ${tP.title}`})),tM=e=>(0,C.jsx)("h3",e_(eT({},e),{className:`mt-10 mb-2 leading-7 text-xl ${tP.title}`})),tz=e=>(0,C.jsx)("h4",e_(eT({},e),{className:`mt-8 leading-6 text-base ${tP.title}`})),tR=e=>(0,C.jsx)("h5",e_(eT({},e),{className:tP.title})),t$=e=>(0,C.jsx)("h6",e_(eT({},e),{className:tP.title})),tF=e=>(0,C.jsx)("ol",e_(eT({},e),{className:"list-decimal pl-5 my-4 leading-7"})),tB=e=>(0,C.jsx)("ul",e_(eT({},e),{className:"list-disc pl-5 my-4 leading-7"})),tH=e=>(0,C.jsx)("li",e_(eT({},e),{className:"[&:not(:first-child)]:mt-2"})),tD=e=>(0,C.jsx)("table",e_(eT({},e),{className:"block border-collapse text-base my-5 overflow-x-auto leading-7 border-gray-light-3 dark:border-divider"})),tZ=e=>(0,C.jsx)("tr",e_(eT({},e),{className:"border border-solid transition-colors duration-500 even:bg-soft border-gray-light-3 dark:border-divider"})),tq=e=>(0,C.jsx)("td",e_(eT({},e),{className:"border border-solid px-4 py-2 border-gray-light-3 dark:border-divider"})),tU=e=>(0,C.jsx)("th",e_(eT({},e),{className:"border border-solid px-4 py-2 text-text-1 text-base font-semibold border-gray-light-3 dark:border-divider"})),tV=e=>(0,C.jsx)("hr",e_(eT({},e),{className:"my-12 border-t border-solid border-divider-light"})),tW=e=>{let{href:t="",className:n=""}=e,{normalizeLinkHref:r}=eJ();return n.includes("header-anchor")||t.startsWith("#")?(0,C.jsx)("a",e_(eT({},e),{className:`${tP.link} ${n}`})):(0,C.jsx)(I.Link,e_(eT({},e),{className:`${n} ${tP.link} ${tP["inline-link"]}`,href:r(t)}))},tG=e=>(0,C.jsx)("p",e_(eT({},e),{className:"my-4 leading-7"})),tK=e=>(0,C.jsx)("blockquote",e_(eT({},e),{className:`border-l-2 border-solid border-divider pl-4 my-6 transition-colors duration-500 ${tP.blockquote}`})),tY=e=>(0,C.jsx)("strong",e_(eT({},e),{className:"font-semibold"})),tJ={"code-button-group":"code-button-group_15153",codeButtonGroup:"code-button-group_15153","code-copy-button":"code-copy-button_15153",codeCopyButton:"code-copy-button_15153","icon-success":"icon-success_15153",iconSuccess:"icon-success_15153","code-copied":"code-copied_15153",codeCopied:"code-copied_15153","icon-copy":"icon-copy_15153",iconCopy:"icon-copy_15153","icon-wrapped":"icon-wrapped_15153",iconWrapped:"icon-wrapped_15153","wrapped-btn":"wrapped-btn_15153",wrappedBtn:"wrapped-btn_15153","icon-wrap":"icon-wrap_15153",iconWrap:"icon-wrap_15153"},tQ={doctype:{color:"var(--code-token-text)",fontStyle:"italic"},token:{color:"var(--code-token-text)"},comment:{color:"var(--code-token-comment)"},punctuation:{color:"var(--code-token-punctuation)"},property:{color:"var(--code-token-parameter)"},constant:{color:"var(--code-token-constant)"},string:{color:"var(--code-token-string)"},symbol:{color:"var(--code-token-symbol)"},variable:{color:"var(--code-token-variable)"},"attr-name":{color:"var(--code-token-symbol)"},"attr-value":{color:"var(--code-token-string-expression)"},builtin:{color:"var(--code-token-symbol)"},function:{color:"var(--code-token-function)"},keyword:{color:"var(--code-token-keyword)"},tag:{color:"var(--code-token-function)"},inserted:{color:"#22863a"},deleted:{color:"#b31d28"},regex:{color:"var(--code-token-keyword)"},key:{color:"var(--code-token-variable)"},title:{color:"var(--code-token-keyword)"},important:{color:"#EBCB8B",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},table:{display:"content"}},tX=!1;function t0(e){var t;let{siteData:n}=(0,S.Vi)(),{meta:r,language:i,codeWrap:a}=e,{showLineNumbers:o}=n.markdown,s="",l=[];return r&&(s=(null==(t=/{[\d,-]*}/i.exec(r))?void 0:t[0])||"")&&(l=s.replace(/[{}]/g,"").split(",").map(e=>{let[t,n]=e.split("-");return n?Array.from({length:Number(n)-Number(t)+1},(e,n)=>n+Number(t)):Number(t)}).flat()),!tX&&(Object.keys(G.Z).forEach(e=>{K.Z.registerLanguage(e,G.Z[e])}),K.Z.alias(G.j),tX=!0),(0,C.jsx)(K.Z,{language:i,style:tQ,wrapLines:!0,className:"code",wrapLongLines:a,customStyle:{backgroundColor:"inherit"},showLineNumbers:o||l.length>0,lineProps:e=>({style:e_(eT({},l.includes(e)?{backgroundColor:"var(--rp-code-line-highlight-color)"}:{}),{display:"block",padding:"0 1.25rem"})}),children:String(e.children).trim()})}var t1=new Map;function t2({codeBlockRef:e}){let t=(0,_.useRef)(null);return(0,C.jsxs)("button",{className:tJ.codeCopyButton,onClick:()=>(function(e,t){let n="",r=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),i=r.nextNode();for(;i;)!i.parentElement.classList.contains("linenumber")&&(n+=i.nodeValue),i=r.nextNode();if(Y(n)&&t){t.classList.add(tJ.codeCopied),clearTimeout(t1.get(t));let e=setTimeout(()=>{t.classList.remove(tJ.codeCopied),t.blur(),t1.delete(t)},2e3);t1.set(t,e)}})(e.current,t.current),ref:t,children:[(0,C.jsx)(tE,{icon:J.Z,className:tJ.iconCopy}),(0,C.jsx)(tE,{icon:Q.Z,className:tJ.iconSuccess})]})}function t3(e){var t;let{siteData:n}=(0,S.Vi)(),r=null!=(t=e.codeHighlighter)?t:n.markdown.codeHighlighter,{defaultWrapCode:i}=n.markdown,[a,o]=(0,_.useState)(i),s=(0,_.useRef)(null),l=(0,_.useRef)(),{className:c}=e,u=null==c?void 0:c.replace(/language-/,"");if(!u)return(0,C.jsx)("code",eT({},e));let d=e=>{a?null==e||e.classList.remove(tJ.wrappedBtn):null==e||e.classList.add(tJ.wrappedBtn),o(!a)};return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{ref:l,children:(()=>{if("prism"===r)return(0,C.jsx)(t0,e_(eT({},e),{language:u,codeWrap:a}));return(0,C.jsx)("code",eT({},e))})()}),(0,C.jsxs)("div",{className:tJ.codeButtonGroup,children:[(0,C.jsxs)("button",{ref:s,className:tJ.codeWrapButton,onClick:()=>d(s.current),children:[(0,C.jsx)(tE,{icon:W.Z,className:tJ.iconWrapped}),(0,C.jsx)(tE,{icon:V.Z,className:tJ.iconWrap})]}),(0,C.jsx)(t2,{codeBlockRef:l})]})]})}function t4({children:e}){let t=e=>{let{className:t,meta:n}=e.props,r=function(e){var t,n;if(!e)return"";let r=e,i=/{[\d,-]*}/i;return(null==(t=i.exec(e))?void 0:t[0])&&(r=e.replace(i,"").trim()),null==(r=null!=(n=r.split("=")[1])?n:"")?void 0:r.replace(/["'`]/g,"")}(n);return(0,C.jsxs)("div",{className:t||"language-bash",children:[r&&(0,C.jsx)("div",{className:"rspress-code-title",children:r}),(0,C.jsx)("div",{className:"rspress-code-content rspress-scrollbar",children:e})]})};return Array.isArray(e)?(0,C.jsx)("div",{children:e.map(e=>t(e))}):t(e)}var t5=e=>(0,C.jsx)("img",e_(eT({},e),{src:(0,N.i6)(e.src||"")}));function t6(){return{h1:tO,h2:tL,h3:tM,h4:tz,h5:tR,h6:t$,ul:tB,ol:tF,li:tH,table:tD,td:tq,th:tU,tr:tZ,hr:tV,p:tG,blockquote:tK,strong:tY,a:tW,code:t3,pre:t4,img:t5}}var t7={badge:"badge_99dcf",info:"info_99dcf",warning:"warning_99dcf",danger:"danger_99dcf"};function t8(e){let{text:t,type:n="info"}=e;return(0,C.jsx)("span",{className:`inline-block rounded-full border border-solid border-transparent font-medium ${t7.badge} ${t7[n]}`,children:t})}var t9={button:"button_72e53",medium:"medium_72e53",big:"big_72e53",brand:"brand_72e53",alt:"alt_72e53"};function ne(e){let{theme:t="brand",size:n="big",href:r="/",external:i=!1,className:a=""}=e,o=null;return"button"===e.type?o="button":"a"===e.type&&(o=i?"a":I.Link),_.createElement(null!=o?o:"a",{className:`${t9.button} ${t9[t]} ${t9[n]} ${a}`,href:r},e.text)}var nt={editLink:"editLink_2a169"};function nn(){let e=eq();if(!e)return null;let{text:t,link:n}=e;return(0,C.jsx)("a",{href:n,target:"_blank",className:nt.editLink,children:t})}var nr={"grid-2":"grid-2_d48e3",grid2:"grid-2_d48e3","grid-4":"grid-4_d48e3",grid4:"grid-4_d48e3","grid-6":"grid-6_d48e3",grid6:"grid-6_d48e3","grid-3":"grid-3_d48e3",grid3:"grid-3_d48e3",featureCard:"featureCard_d48e3"},ni=e=>{let{span:t}=e;return`grid-${t||4}`};function na({frontmatter:e}){let t=null==e?void 0:e.features;return(0,C.jsx)("div",{className:"overflow-hidden m-auto flex flex-wrap max-w-6xl",children:null==t?void 0:t.map(e=>{let{icon:t,title:n,details:r,link:i}=e;return(0,C.jsx)("div",{className:`${nr[ni(e)]} rounded hover:var(--rp-c-brand)`,children:(0,C.jsx)("div",{className:"h-full p-2",children:(0,C.jsxs)("article",{className:`rspress-home-feature-card ${nr.featureCard} h-full p-8 rounded-4xl border-transparent`,style:{cursor:i?"pointer":"auto"},onClick:()=>{i&&(window.location.href=i)},children:[t?(0,C.jsx)("div",{className:"flex-center",children:(0,C.jsx)("div",{className:"rspress-home-feature-icon w-12 h-12 text-3xl text-center",children:t})}):null,(0,C.jsx)("h2",{className:"rspress-home-feature-title font-bold text-center",children:n}),(0,C.jsx)("p",{className:"rspress-home-feature-detail leading-6 pt-2 text-sm text-text-2 font-medium",children:tf(r)})]},n)})},n)})})}function no(){let{siteData:e}=(0,S.Vi)(),{message:t}=e.themeConfig.footer||{};return(0,C.jsx)("footer",{className:"absolute bottom-0 mt-12 py-8 px-6 sm:p-8 w-full border-t border-solid border-divider-light",children:(0,C.jsx)("div",{className:"m-auto w-full text-center",children:t&&(0,C.jsx)("div",{className:"font-meduim text-sm text-text-2",children:t})})})}var ns="clip_c867a",nl="mask_c867a",nc={name:"modern",text:"modern ssg",tagline:"modern ssg",actions:[],image:void 0};function nu({frontmatter:e}){var t,n,r,i,a;let o=(null==e?void 0:e.hero)||nc,s=void 0!==o.image,l=s?"sm:max-w-xl":"sm:max-w-4xl",c=o.text?o.text.toString().split(/\n/g).filter(e=>""!==e):[];return(0,C.jsxs)("div",{className:"m-auto pt-0 px-6 pb-12 sm:pt-10 sm:px-16 md:pt-16 md:px-16 md:pb-16 relative",children:[(0,C.jsx)("div",{className:nl,style:{left:s?"75%":"50%"}}),(0,C.jsxs)("div",{className:"m-auto flex flex-col md:flex-row max-w-6xl min-h-[50vh] mt-12 sm:mt-0",children:[(0,C.jsxs)("div",{className:"flex flex-col justify-center items-center text-center max-w-xl sm:max-w-4xl m-auto order-2 md:order-1",children:[(0,C.jsx)("h1",{className:"font-bold text-3xl pb-2 sm:text-6xl md:text-7xl m-auto sm:m-4 md:m-0 md:pb-3 lg:pb-2 leading-tight z-10",children:(0,C.jsx)("span",{className:ns,style:{lineHeight:"1.3"},children:tf(o.name)})}),0!==c.length&&c.map(e=>(0,C.jsx)("p",{className:`rspress-home-hero-text mx-auto md:m-0 text-3xl sm:text-5xl md:text-6xl sm:pb-2 font-bold z-10 ${l}`,style:{lineHeight:"1.2"},children:tf(e)},e)),(0,C.jsx)("p",{className:`rspress-home-hero-tagline whitespace-pre-wrap pt-4 m-auto md:m-0 text-sm sm:tex-xl md:text-2xl text-text-2 font-medium z-10 ${l}`,children:tf(o.tagline)}),(null==(t=o.actions)?void 0:t.length)&&(0,C.jsx)("div",{className:"grid md:flex md:flex-wrap md:justify-center gap-3 m--1.5 pt-6 sm:pt-8 z-10",children:o.actions.map(e=>(0,C.jsx)("div",{className:"flex flex-shrink-0 p-1",children:(0,C.jsx)(I.Button,{type:"a",text:tf(e.text),href:(0,N.AP)(e.link),theme:e.theme,className:"w-full"})},e.link))})]}),s?(0,C.jsx)("div",{className:"rspress-home-hero-image md:flex-center m-auto order-1 md:order-2 sm:flex md:none lg:flex",children:(0,C.jsx)("img",{src:(0,N.i6)(null==(n=o.image)?void 0:n.src),alt:null==(r=o.image)?void 0:r.alt,srcSet:nd(null==(i=o.image)?void 0:i.srcset),sizes:nd(null==(a=o.image)?void 0:a.sizes),width:375,height:375})}):null]})]})}function nd(e){return(Array.isArray(e)?e:[e]).filter(Boolean).join(", ")||void 0}function nh(){let{lastUpdatedText:e="Last Updated"}=eB(),{page:{lastUpdatedTime:t},siteData:n}=(0,S.Vi)(),{themeConfig:r}=n,i=(null==r?void 0:r.lastUpdatedText)||e;return(0,C.jsx)("div",{className:"flex text-sm text-text-2 leading-6 sm:leading-8 font-medium",children:(0,C.jsxs)("p",{children:[i,": ",(0,C.jsx)("span",{children:t})]})})}var np={link:"link_03735"};function nf(e){let{href:t="/",children:n,className:r="",onNavigate:i,keepCurrentParams:a=!1}=e,o=eP(e,["href","children","className","onNavigate","keepCurrentParams"]),s=(0,M.xf)(t),l=s?"_blank":"",c=s?"noopener noreferrer":void 0,u=s?t:(0,N.pJ)((0,N.AP)(t)),d=(0,L.s0)(),{pathname:h,search:p}=(0,L.TH)(),f=a?u+p:u,m=(0,N.pV)(h,u);return s?(0,C.jsx)("a",e_(eT({},o),{href:u,target:l,rel:c,className:`${np.link} ${r}`,children:n})):(0,C.jsx)("a",e_(eT({},o),{className:`${np.link} ${r} cursor-pointer`,rel:c,target:l,onClick:e=>e$(this,null,function*(){if(0!==e.button||e.currentTarget.target&&"_self"!==e.currentTarget.target||e.metaKey||e.shiftKey||e.altKey||e.ctrlKey)return;e.preventDefault();let t=u.split("#")[1];if(!s&&m&&t){let e=document.getElementById(t);e&&eG(e,!0);return}if(!m){let e=(0,X.fp)(et.routes,(0,N.Tm)(u));if(null==e?void 0:e.length){let t=setTimeout(()=>{ee.start()},200);yield e[0].route.preload(),clearTimeout(t),ee.done()}null==i||i(),d(f,{replace:!1})}}),href:u,children:n}))}ee.configure({showSpinner:!1});var nm={hidden:"hidden_f6cde",container:"container_f6cde",navContainer:"navContainer_f6cde",leftNav:"leftNav_f6cde",rightNav:"rightNav_f6cde",singleItem:"singleItem_f6cde",activeItem:"activeItem_f6cde",navBarTitle:"navBarTitle_f6cde",menuItem:"menu-item_f6cde",mobileNavMenu:"mobileNavMenu_f6cde"};function ng(e){let{pathname:t,base:n}=e,r=new RegExp(e.activeMatch||e.link).test((0,M.tz)(t,n));return(0,C.jsx)(I.Link,{href:(0,N.AP)(e.link),children:(0,C.jsxs)("div",{className:`rspress-nav-menu-item ${nm.singleItem} ${r?nm.activeItem:""} text-sm font-medium mx-1.5 px-3 py-2 flex items-center`,children:[(0,C.jsx)(I.Tag,{tag:e.tag}),e.text,e.rightIcon]},e.text)})}function nx({onClick:e}){let{theme:t,setTheme:n}=(0,_.useContext)(S.Ni);return(0,C.jsx)("div",{onClick:()=>{n("dark"===t?"light":"dark"),null==e||e()},className:"md:mr-2 rspress-nav-appearance",children:(0,C.jsxs)("div",{className:"p-1 border border-solid border-gray-300 text-gray-400 cursor-pointer rounded-md hover:border-gray-600 hover:text-gray-600 dark:hover:border-gray-200 dark:hover:text-gray-200 transition-all duration-300 w-7 h-7",children:[(0,C.jsx)(tE,{className:"dark:hidden",icon:ei.Z,width:"18",height:"18",fill:"currentColor"}),(0,C.jsx)(tE,{className:"hidden dark:block",icon:ea.Z,width:"18",height:"18",fill:"currentColor"})]})})}var nv={socialLinksIcon:"social-links-icon_93d67",menuItem:"menu-item_93d67"},ny={discord:(0,C.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,C.jsx)("title",{children:"Discord"}),(0,C.jsx)("path",{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"})]}),facebook:(0,C.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,C.jsx)("title",{children:"Facebook"}),(0,C.jsx)("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})]}),github:(0,C.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,C.jsx)("title",{children:"GitHub"}),(0,C.jsx)("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})]}),gitlab:(0,C.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,C.jsx)("title",{children:"GitLab"}),(0,C.jsx)("path",{fill:"currentColor",d:"m21.94 13.11l-1.05-3.22c0-.03-.01-.06-.02-.09l-2.11-6.48a.859.859 0 0 0-.8-.57c-.36 0-.68.25-.79.58l-2 6.17H8.84L6.83 3.33a.851.851 0 0 0-.79-.58c-.37 0-.69.25-.8.58L3.13 9.82v.01l-1.07 3.28c-.16.5.01 1.04.44 1.34l9.22 6.71c.17.12.39.12.56-.01l9.22-6.7c.43-.3.6-.84.44-1.34M8.15 10.45l2.57 7.91l-6.17-7.91m8.73 7.92l2.47-7.59l.1-.33h3.61l-5.59 7.16m4.1-13.67l1.81 5.56h-3.62m-1.3.95l-1.79 5.51L12 19.24l-2.86-8.79M6.03 3.94L7.84 9.5H4.23m-1.18 4.19c-.09-.07-.13-.19-.09-.29l.79-2.43l5.82 7.45m11.38-4.73l-6.51 4.73l.02-.03l5.79-7.42l.79 2.43c.04.1 0 .22-.09.29"})]}),instagram:(0,C.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,C.jsx)("title",{children:"Instagram"}),(0,C.jsx)("path",{d:"M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"})]}),linkedin:(0,C.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,C.jsx)("title",{children:"LinkedIn"}),(0,C.jsx)("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})]}),slack:(0,C.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,C.jsx)("title",{children:"Slack"}),(0,C.jsx)("path",{d:"M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"})]}),twitter:(0,C.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,C.jsx)("title",{children:"Twitter"}),(0,C.jsx)("path",{d:"M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"})]}),youtube:(0,C.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,C.jsx)("title",{children:"YouTube"}),(0,C.jsx)("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})]}),juejin:(0,C.jsxs)("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg","data-spm-anchor-id":"a313x.7781069.0.i5",children:[(0,C.jsx)("path",{d:"M465.189 161.792c-22.967 18.14-44.325 35.109-47.397 37.742l-5.851 4.68 10.971 8.632c5.998 4.827 11.85 9.508 13.02 10.532 1.17 1.024 17.993 14.336 37.156 29.696l34.962 27.795 5.267-3.95c2.925-2.194 23.259-18.432 45.348-35.986 21.943-17.555 41.253-32.768 42.716-33.646 1.609-1.024 2.779-2.194 2.779-2.78 0-0.438-9.655-8.63-21.504-17.846-11.995-9.363-22.674-17.847-23.845-18.871-15.945-13.02-49.737-39.059-50.76-39.059-0.586 0.147-19.896 14.922-42.862 33.061z m233.325 180.37C507.465 493.275 508.928 492.105 505.417 489.911c-3.072-1.902-11.556-8.485-64.073-50.03-9.07-7.168-18.578-14.775-21.358-16.823-2.78-2.194-8.777-6.875-13.312-10.532-4.68-3.657-10.679-8.339-13.312-10.533-13.165-10.24-71.095-56.027-102.107-80.457-5.852-4.681-11.41-8.485-12.142-8.485-0.731 0-10.971 7.754-22.674 17.116-11.703 9.508-22.674 18.286-24.284 19.456-1.755 1.17-5.12 3.95-7.46 6.144-2.34 2.34-4.828 4.096-5.413 4.096-3.072 0-0.731 3.072 6.437 8.777 4.096 3.218 8.777 6.875 10.094 8.046 1.316 1.024 10.24 8.045 19.748 15.506s23.26 18.286 30.428 23.99c19.31 15.215 31.89 25.308 127.853 101.084 47.836 37.742 88.796 69.779 90.844 71.095 3.657 2.487 3.95 2.487 7.46-0.292a1041.42 1041.42 0 0 0 16.092-12.727c6.875-5.413 14.775-11.703 17.554-13.897 30.135-23.699 80.018-63.05 81.774-64.512 1.17-1.024 12.434-9.802 24.868-19.603s37.888-29.696 56.32-44.324c18.579-14.629 46.227-36.425 61.733-48.567 15.506-12.142 27.794-22.528 27.502-23.26-0.878-1.17-57.637-47.104-59.978-48.274-0.731-0.439-18.578 12.727-39.497 29.257z","data-spm-anchor-id":"a313x.7781069.0.i2"}),(0,C.jsx)("path",{d:"M57.93 489.326c-15.215 12.288-28.527 23.405-29.697 24.576-2.34 2.194-5.412-0.44 80.018 66.852 33.207 26.185 32.622 25.747 57.637 45.495 10.386 8.192 36.279 28.672 57.783 45.495 38.18 30.135 44.91 35.401 52.663 41.545 2.048 1.756 22.967 18.14 46.372 36.572 23.26 18.432 74.167 58.514 112.933 89.088 38.912 30.573 71.095 55.734 71.826 56.027 0.732 0.293 7.46-4.389 14.921-10.386 21.797-16.97 90.259-70.949 101.523-79.872 5.705-4.535 12.873-10.24 15.945-12.58 3.072-2.488 6.436-5.12 7.314-5.852 0.878-0.878 11.85-9.509 24.283-19.31 20.773-16.091 59.1-46.226 64.366-50.615 1.17-1.024 5.12-4.096 8.777-6.875 3.657-2.78 7.9-6.29 9.509-7.607 1.609-1.317 14.775-11.703 29.257-23.113 29.11-22.82 42.277-33.207 88.503-69.632 17.262-13.605 32.475-25.454 33.646-26.478 2.486-2.048 31.451-24.869 44.617-35.255 4.827-3.657 9.07-7.168 9.508-7.607 0.44-0.585 5.998-4.827 12.435-9.8 6.436-4.828 13.165-10.24 15.067-11.85l3.365-2.926-9.948-7.753c-5.412-4.388-10.24-8.192-10.679-8.63-1.17-1.317-22.381-18.433-30.135-24.284-3.95-3.072-7.314-5.998-7.606-6.73-1.317-3.071-6.73 0.147-29.258 17.994-13.458 10.532-25.746 20.187-27.355 21.504-1.61 1.463-10.533 8.338-19.749 15.652-9.216 7.168-17.115 13.459-17.554 13.898-0.439 0.438-6.583 5.412-13.897 10.971-7.168 5.559-15.214 11.703-17.7 13.75-4.974 4.097-5.413 4.39-20.334 16.239-5.56 4.388-11.264 8.777-12.435 9.8-1.17 1.025-20.333 16.092-42.422 33.354-22.09 17.408-41.546 32.768-43.155 34.084-1.609 1.463-14.482 11.557-28.525 22.528s-40.814 32.037-59.539 46.812c-18.578 14.775-42.276 33.353-52.516 41.399s-23.26 18.285-28.965 22.82l-10.386 8.339-4.389-3.072c-2.34-1.756-4.68-3.511-5.12-3.95-0.439-0.439-4.973-4.096-10.24-8.046-11.849-9.216-14.482-11.264-16.676-13.166-0.878-0.877-4.243-3.51-7.46-5.851-3.22-2.487-6.145-4.681-6.584-5.12-0.439-0.439-6.875-5.705-14.482-11.703-7.607-5.851-14.921-11.556-16.091-12.58-1.317-1.17-17.116-13.605-35.255-27.795-17.993-14.19-35.109-27.648-38.035-29.842-5.705-4.681-33.499-26.624-125.074-98.743-34.523-27.209-72.704-57.344-84.846-66.852-49.737-39.498-55.15-43.594-56.905-43.447-0.877 0-14.043 10.24-29.257 22.528z","data-spm-anchor-id":"a313x.7781069.0.i3"})]}),qq:(0,C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",className:"iconify iconify--ri",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"24",height:"24",children:(0,C.jsx)("path",{fill:"currentColor",d:"M19.913 14.529a31.977 31.977 0 0 0-.675-1.886l-.91-2.246c0-.026.012-.468.012-.696C18.34 5.86 16.507 2 12 2S5.66 5.86 5.66 9.7c0 .229.011.671.012.697l-.91 2.246a32.777 32.777 0 0 0-.675 1.886c-.86 2.737-.581 3.87-.369 3.895c.455.054 1.771-2.06 1.771-2.06c0 1.224.637 2.822 2.016 3.976c-.515.157-1.147.399-1.554.695c-.365.267-.319.54-.253.65c.289.481 4.955.307 6.303.157c1.347.15 6.014.324 6.302-.158c.066-.11.112-.382-.253-.649c-.407-.296-1.039-.538-1.555-.696c1.379-1.153 2.016-2.751 2.016-3.976c0 0 1.316 2.115 1.771 2.06c.212-.025.49-1.157-.37-3.894"})}),wechat:(0,C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",className:"iconify iconify--ri",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"24",height:"24",children:(0,C.jsx)("path",{fill:"currentColor",d:"M18.574 13.711a.91.91 0 0 0 .898-.898c0-.498-.399-.898-.898-.898s-.898.4-.898.898c0 .5.4.898.898.898zm-4.425 0a.91.91 0 0 0 .898-.898c0-.498-.4-.898-.898-.898c-.5 0-.898.4-.898.898c0 .5.399.898.898.898zm6.567 5.04a.347.347 0 0 0-.172.37c0 .048 0 .097.025.147c.098.417.294 1.081.294 1.106c0 .073.025.122.025.172a.22.22 0 0 1-.221.22c-.05 0-.074-.024-.123-.048l-1.449-.836a.799.799 0 0 0-.344-.098c-.073 0-.147 0-.196.024c-.688.197-1.4.295-2.161.295c-3.66 0-6.607-2.457-6.607-5.505c0-3.047 2.947-5.505 6.607-5.505c3.659 0 6.606 2.458 6.606 5.505c0 1.647-.884 3.146-2.284 4.154zM16.673 8.099a9.105 9.105 0 0 0-.28-.005c-4.174 0-7.606 2.86-7.606 6.505c0 .554.08 1.09.228 1.6h-.089a9.963 9.963 0 0 1-2.584-.368c-.074-.025-.148-.025-.222-.025a.832.832 0 0 0-.418.123l-1.748 1.005c-.05.025-.099.05-.148.05a.273.273 0 0 1-.27-.27c0-.074.024-.123.049-.197c.024-.024.246-.834.369-1.324c0-.05.024-.123.024-.172a.556.556 0 0 0-.221-.442C2.058 13.376 1 11.586 1 9.598C1 5.945 4.57 3 8.95 3c3.765 0 6.93 2.169 7.723 5.098zm-5.154.418c.573 0 1.026-.477 1.026-1.026c0-.573-.453-1.026-1.026-1.026s-1.026.453-1.026 1.026s.453 1.026 1.026 1.026zm-5.26 0c.573 0 1.027-.477 1.027-1.026c0-.573-.454-1.026-1.027-1.026c-.572 0-1.026.453-1.026 1.026s.454 1.026 1.026 1.026z"})}),weibo:(0,C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",className:"iconify iconify--ri",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"24",height:"24",children:(0,C.jsx)("path",{fill:"currentColor",d:"M17.525 11.378c1.263.392 2.669 1.336 2.669 3.004c0 2.763-3.98 6.239-9.964 6.239c-4.565 0-9.23-2.213-9.23-5.852c0-1.902 1.204-4.102 3.277-6.177c2.773-2.77 6.004-4.033 7.219-2.816c.537.537.588 1.464.244 2.572c-.178.557.525.25.525.25c2.24-.938 4.196-.994 4.909.027c.38.543.343 1.306-.008 2.19c-.163.407.048.471.36.563zm-7.282 7.939c3.641-.362 6.401-2.592 6.167-4.983c-.237-2.391-3.382-4.038-7.023-3.677c-3.64.36-6.403 2.59-6.167 4.98c.237 2.394 3.382 4.039 7.023 3.68zM6.16 14.438c.754-1.527 2.712-2.39 4.446-1.94c1.793.463 2.707 2.154 1.976 3.8c-.744 1.682-2.882 2.578-4.695 1.993c-1.752-.566-2.493-2.294-1.727-3.853zm1.446 2.587c.568.257 1.325.013 1.676-.55c.346-.568.163-1.217-.407-1.459c-.563-.237-1.291.008-1.64.553c-.354.547-.189 1.202.371 1.456zm2.206-1.808c.219.092.501-.012.628-.231c.123-.22.044-.466-.178-.548c-.216-.084-.486.018-.613.232c-.123.214-.054.458.163.547zM19.873 9.5a.725.725 0 1 1-1.378-.451a1.38 1.38 0 0 0-.288-1.357a1.395 1.395 0 0 0-1.321-.425a.723.723 0 1 1-.303-1.416a2.836 2.836 0 0 1 3.29 3.649zm-3.916-6.575A5.831 5.831 0 0 1 21.5 4.72a5.836 5.836 0 0 1 1.22 5.704a.838.838 0 0 1-1.06.54a.844.844 0 0 1-.542-1.062a4.143 4.143 0 0 0-4.807-5.327a.845.845 0 0 1-.354-1.65z"})}),zhihu:(0,C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",className:"iconify iconify--ri",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"24",height:"24",children:(0,C.jsx)("path",{fill:"currentColor",d:"m12.344 17.963l-1.688 1.074l-2.131-3.35c-.44 1.402-1.172 2.665-2.139 3.825c-.402.483-.82.918-1.301 1.375c-.155.147-.775.717-.878.82l-1.414-1.414c.139-.139.787-.735.915-.856c.43-.408.795-.79 1.142-1.206c1.266-1.518 2.03-3.21 2.137-5.231H3v-2h4V7h-.868c-.689 1.266-1.558 2.222-2.618 2.857L2.486 8.143c1.395-.838 2.425-2.604 3.038-5.36l1.952.434c-.14.633-.303 1.227-.489 1.783H11.5v2H9v4h2.5v2H9.185l3.159 4.963zm3.838-.07L17.298 17H19V7h-4v10h.736l.446.893zM13 5h8v14h-3l-2.5 2l-1-2H13V5z"})}),bilibili:(0,C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",className:"iconify iconify--ri",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"24",height:"24",children:(0,C.jsx)("path",{fill:"currentColor",d:"M18.223 3.086a1.25 1.25 0 0 1 0 1.768L17.08 5.996h1.17A3.75 3.75 0 0 1 22 9.747v7.5a3.75 3.75 0 0 1-3.75 3.75H5.75A3.75 3.75 0 0 1 2 17.247v-7.5a3.75 3.75 0 0 1 3.75-3.75h1.166L5.775 4.855a1.25 1.25 0 1 1 1.767-1.768l2.652 2.652c.079.079.145.165.198.257h3.213c.053-.092.12-.18.199-.258l2.651-2.652a1.25 1.25 0 0 1 1.768 0zm.027 5.42H5.75a1.25 1.25 0 0 0-1.247 1.157l-.003.094v7.5c0 .659.51 1.199 1.157 1.246l.093.004h12.5a1.25 1.25 0 0 0 1.247-1.157l.003-.093v-7.5c0-.69-.56-1.25-1.25-1.25zm-10 2.5c.69 0 1.25.56 1.25 1.25v1.25a1.25 1.25 0 1 1-2.5 0v-1.25c0-.69.56-1.25 1.25-1.25zm7.5 0c.69 0 1.25.56 1.25 1.25v1.25a1.25 1.25 0 1 1-2.5 0v-1.25c0-.69.56-1.25 1.25-1.25z"})}),lark:(0,C.jsxs)("svg",{viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,C.jsx)("title",{children:"Lark"}),(0,C.jsx)("path",{d:"M8.813 5.477c1.038.836 2.286 2.045 3.3 3.495.171.23.377.576.457.71l.034.056a8.803 8.803 0 0 0-.922 1.3l-.271-.494C9.655 7.53 6.3 5.477 6.137 5.377a.447.447 0 0 1-.006-.004l-.666-.393-.107-.086a.499.499 0 0 1 .306-.885L6.084 4h7.997c.159.006.318.037.47.092.174.064.317.174.458.308.134.143.272.296.403.448.622.675 1.324 1.688 1.324 1.688-.573.193-1.349.736-1.349.736a5.095 5.095 0 0 0-.348-.54 20.665 20.665 0 0 0-1.037-1.255H8.813Z",fill:"currentColor"}),(0,C.jsx)("path",{d:"M18.482 7.507a5.42 5.42 0 0 1 4.04.717c.248.168.788.635.242 1.233-1.7 1.67-2.194 3.225-2.63 4.599-.278.873-.541 1.697-1.066 2.424-1.813 2.508-4.114 4-6.837 4.434-.561.089-1.132.131-1.7.131-3.958 0-7.498-2.035-8.75-2.844h.003l-.161-.107c-.534-.378-.61-.723-.623-.989V7.055a.486.486 0 0 1 .827-.317l.482.589c5.082 6.201 9.126 8.063 11.626 8.53 2.246.424 3.631-.165 4.022-.37.333-.51.534-1.143.764-1.865l.006-.021c.406-1.276.898-2.821 2.322-4.477a3.93 3.93 0 0 0-2.28-.168c-1.761.394-3.403 1.96-4.89 4.643a8.27 8.27 0 0 0-.341.671c-.724-.107-1.334-.65-1.334-.65.128-.269.22-.455.345-.672 1.718-3.125 3.714-4.962 5.933-5.441ZM2.477 16.889c1.145.744 5.341 3.232 9.532 2.563 1.56-.247 2.963-.915 4.196-1.99-2.771.254-7.557-.753-13.728-7.666v7.093Z",fill:"currentColor"})]}),X:(0,C.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,C.jsx)("title",{children:"X"}),(0,C.jsx)("path",{d:"M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"})]})},nb=e=>{let{link:t,popperStyle:n={}}=e,{icon:r,mode:i="link",content:a}=t,o="object"==typeof r?(0,C.jsx)("div",{dangerouslySetInnerHTML:{__html:r.svg}}):ny[r],[s,l]=(0,_.useState)(!1),c=()=>{l(!0)},u=()=>{l(!1)};return"link"===i?(0,C.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"social-links",children:(0,C.jsx)("div",{className:`${nv.socialLinksIcon}`,children:o})},a):"text"===i?(0,C.jsxs)("div",{className:`${nv.socialLinksIcon} cursor-pointer relative mx-3`,onMouseEnter:c,onMouseLeave:u,children:[o,s?(0,C.jsx)("div",{style:eT({boxShadow:"var(--rp-shadow-3)",border:"1px solid var(--rp-c-divider-light)"},n),className:"z-[1] p-3 w-50 absolute right-0 bg-white dark:bg-dark",children:(0,C.jsx)("div",{className:"text-md",children:a})}):null]}):"img"===i?(0,C.jsxs)("div",{className:`${nv.socialLinksIcon} cursor-pointer relative`,onMouseEnter:c,onMouseLeave:u,children:[o,s?(0,C.jsx)("div",{className:"break-all z-[1] p-3 w-[50px] h-[50px] absolute right-0 bg-white dark:bg-dark rounded-xl",style:eT({boxShadow:"var(--rp-shadow-3)"},n),children:(0,C.jsx)("img",{src:a,alt:"img"})}):null]}):"dom"===i?(0,C.jsxs)("div",{className:`${nv.socialLinksIcon} cursor-pointer relative`,onMouseEnter:c,onMouseLeave:u,children:[o,s?(0,C.jsx)("div",{className:"break-all z-[1] p-3 absolute right-0 bg-white dark:bg-dark rounded-xl",style:eT({boxShadow:"var(--rp-shadow-3)"},n),children:(0,C.jsx)("div",{dangerouslySetInnerHTML:{__html:a}})}):null]}):(0,C.jsx)("div",{})},nw=e=>{let{links:t,moreIconVisible:n=!1,mouseEnter:r}=e;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"flex-center h-full gap-x-4 transition-colors duration-300 md:mr-2",children:t.map((e,t)=>(0,C.jsx)(nb,{link:e,popperStyle:{top:"2.5rem"}},t))}),n?(0,C.jsx)("div",{className:"md:ml-1 p-2",onMouseEnter:r,children:(0,C.jsx)(tE,{icon:eo.Z})}):null]})},nk=e=>{let{links:t}=e;return(0,C.jsx)("div",{style:{boxShadow:"var(--rp-shadow-3)",marginRight:"-2px",border:"1px solid var(--rp-c-divider-light)",background:"var(--rp-c-bg)"},className:"absolute top-8 right-0 z-1 p-3 w-32 rounded-2xl flex flex-wrap gap-4",children:t.map(e=>(0,C.jsx)(nb,{link:e,popperStyle:{top:"1.25rem"}},e.content))})},nj=({socialLinks:e})=>{let t=e.length>3,n=[],r=[];e.forEach((e,t)=>{t<3?n.push(e):r.push(e)});let[i,a]=(0,_.useState)(!1);return(0,C.jsxs)("div",{className:`social-links ${nv.menuItem} flex-center relative`,onMouseLeave:()=>a(!1),children:[(0,C.jsx)(nw,{links:n,moreIconVisible:t,mouseEnter:()=>a(!0)}),i?(0,C.jsx)(nk,{links:r}):null]})};function nE(){var e,t;let{siteData:n,page:r}=(0,S.Vi)(),i=(0,S.aw)(),{pathname:a,search:o}=(0,L.TH)(),s=n.lang||"",l=n.multiVersion.default||"",c=Object.values(n.locales||n.themeConfig.locales||{}),u=(null==(e=n.route)?void 0:e.cleanUrls)||!1,d=c.length>1,{lang:h,pageType:p}=r,{base:f}=n;return d?{text:(0,C.jsx)(tE,{icon:es.Z,style:{width:"18px",height:"18px"}}),items:c.map(e=>({text:null==e?void 0:e.label,link:(0,M.$U)(a+o,{current:h,target:e.lang,default:s},{current:i,default:l},f,u,"404"===p)})),activeValue:null==(t=c.find(e=>h===e.lang))?void 0:t.label}:null}function nS(){var e;let{siteData:t,page:n}=(0,S.Vi)(),r=(0,S.aw)(),{pathname:i}=(0,L.TH)(),a=(null==(e=t.route)?void 0:e.cleanUrls)||!1,o=t.multiVersion.default||"",s=t.multiVersion.versions||[],{base:l}=t;return{items:s.map(e=>({text:e,link:(0,M.xM)(i,{current:r,target:e,default:o},l,a,"404"===n.pageType)})),text:r,activeValue:r}}var nN={navScreen:"navScreen_457e8",active:"active_457e8",container:"container_457e8",navMenu:"navMenu_457e8",navMenuItem:"navMenuItem_457e8",navAppearance:"navAppearance_457e8",socialAndAppearance:"socialAndAppearance_457e8",navScreenMenuGroup:"navScreenMenuGroup_457e8",open:"open_457e8",button:"button_457e8",buttonSpan:"buttonSpan_457e8",items:"items_457e8",down:"down_457e8"};function nC(e){let{activeValue:t}=e,[n,r]=(0,_.useState)(!1);function i({item:e}){return(0,C.jsx)("div",{className:"p-1 text-center",children:(0,C.jsx)("span",{className:"text-brand",children:e.text})})}function a({item:e}){return(0,C.jsx)("div",{className:"py-1 font-medium",children:(0,C.jsx)(I.Link,{href:e.link,children:(0,C.jsx)("div",{children:(0,C.jsx)("div",{className:"flex justify-center",children:(0,C.jsx)("span",{children:e.text})})})})})}let o=e=>t===e.text?(0,C.jsx)(i,{item:e},e.link):(0,C.jsx)(a,{item:e},e.link),s=e=>(0,C.jsxs)("div",{children:["link"in e?o(e):(0,C.jsx)("p",{className:"font-bold text-gray-400 my-1 not:first:border",children:e.text}),e.items.map(o)]});return(0,C.jsxs)("div",{className:`${n?nN.open:""} ${nN.navScreenMenuGroup} relative`,children:[(0,C.jsxs)("button",{className:nN.button,onClick:()=>{r(!n)},children:[(0,C.jsx)("span",{className:nN.buttonSpan,children:e.text}),(0,C.jsx)(el.Z,{className:`${n?nN.open:""} ${nN.down} `})]}),(0,C.jsx)("div",{children:(0,C.jsx)("div",{className:nN.items,children:e.items.map(e=>(0,C.jsx)("div",{children:"items"in e?s(e):o(e)},e.text))})})]})}function nA(){let{nav:e}=eB(),t=(0,S.aw)();return Array.isArray(e)?e:[...e[t.length>0?t:"default"]]}var nI=()=>{let e=nE();return(0,C.jsx)("div",{className:"flex text-sm font-bold justify-center",children:(0,C.jsx)("div",{className:"mx-1.5 my-1",children:(0,C.jsx)(nC,eT({},e))})})},nT=()=>{let e=nS();return(0,C.jsx)("div",{className:`${nN.navTranslations} flex text-sm font-bold justify-center`,children:(0,C.jsx)("div",{className:"mx-1.5 my-1",children:(0,C.jsx)(nC,eT({},e))})})};function n_(e){var t;let{isScreenOpen:n,siteData:r,pathname:i}=e,a=(0,_.useRef)(null),o=r.themeConfig.locales||[],s=o.length>1,l=r.multiVersion.versions.length>1,c=nA(),u=!1!==r.themeConfig.darkMode,d=(null==(t=null==r?void 0:r.themeConfig)?void 0:t.socialLinks)||[],h=d.length>0,p=o.map(e=>e.lang||"zh")||[],{base:f}=r;return(0,_.useEffect)(()=>(a.current&&n&&(0,er.Qp)(a.current,{reserveScrollBarGap:!0}),()=>{(0,er.tP)()}),[n]),(0,C.jsx)("div",{className:`${nN.navScreen} ${n?nN.active:""}`,ref:a,id:"navScreen",children:(0,C.jsxs)("div",{className:nN.container,children:[(0,C.jsx)(({menuItems:e})=>(0,C.jsx)("div",{className:nN.navMenu,children:e.map(e=>(0,C.jsx)("div",{className:`${nN.navMenuItem} w-full`,children:"link"in e?(0,C.jsx)(ng,eT({pathname:i,base:f,langs:p},e),e.text):(0,C.jsx)("div",{className:"mx-3 last:mr-0",children:(0,C.jsx)(nC,e_(eT({},e),{items:"items"in e?e.items:e}))},e.text)},e.text))}),{menuItems:c}),(0,C.jsxs)("div",{className:"flex-center flex-col gap-2",children:[u&&(0,C.jsx)(()=>(0,C.jsx)("div",{className:`mt-2 ${nN.navAppearance} flex justify-center`,children:(0,C.jsx)(O.r,{children:(0,C.jsx)(nx,{})})}),{}),s&&(0,C.jsx)(nI,{}),l&&(0,C.jsx)(nT,{}),h&&(0,C.jsx)(nj,{socialLinks:d})]})]})})}var nP={navHamburger:"navHamburger_e7b06",active:"active_e7b06"};function nO(e){let{siteData:t,pathname:n}=e,{isScreenOpen:r,toggleScreen:i}=function(){let{pathname:e}=(0,L.TH)(),[t,n]=(0,_.useState)(!1);function r(){n(!0),window.addEventListener("resize",a)}function i(){n(!1),window.removeEventListener("resize",a)}function a(){window.outerWidth>=768&&i()}return(0,_.useEffect)(()=>{i()},[e]),{isScreenOpen:t,openScreen:r,closeScreen:i,toggleScreen:function(){t?i():r()}}}();return(0,C.jsxs)(_.Fragment,{children:[(0,C.jsx)(n_,{isScreenOpen:r,siteData:t,pathname:n}),(0,C.jsx)("button",{onClick:i,"aria-label":"mobile hamburger",className:`${r?nP.active:""} ${nP.navHamburger} text-gray-500`,children:(0,C.jsx)(tE,{icon:en.Z,fill:"currentColor"})})]})}function nL({item:e}){return(0,C.jsxs)("div",{className:"rounded-2xl my-1 flex",style:{padding:"0.4rem 1.5rem 0.4rem 0.75rem"},children:[e.tag&&(0,C.jsx)(I.Tag,{tag:e.tag}),(0,C.jsx)("span",{className:"text-brand",children:e.text})]},e.link)}function nM({item:e}){return(0,C.jsx)("div",{className:"font-medium my-1",children:(0,C.jsx)(I.Link,{href:e.link,children:(0,C.jsx)("div",{className:"rounded-2xl hover:bg-mute",style:{padding:"0.4rem 1.5rem 0.4rem 0.75rem"},children:(0,C.jsxs)("div",{className:"flex",children:[e.tag&&(0,C.jsx)(I.Tag,{tag:e.tag}),(0,C.jsx)("span",{children:e.text})]})})})},e.link)}function nz(e){let{activeValue:t,items:n,base:r="",link:i="",pathname:a=""}=e,[o,s]=(0,_.useState)(!1),l=e=>{let n=new RegExp(e.activeMatch||e.link).test((0,M.tz)(a,r));return t===e.text||!t&&n?(0,C.jsx)(nL,{item:e},e.link):(0,C.jsx)(nM,{item:e},e.link)},c=e=>(0,C.jsxs)("div",{children:["link"in e?l(e):(0,C.jsx)("p",{className:"font-bold text-gray-400 my-1 not:first:border",children:e.text}),e.items.map(l)]});return(0,C.jsxs)("div",{className:"relative flex-center h-14",onMouseLeave:()=>s(!1),children:[(0,C.jsx)("button",{onMouseEnter:()=>s(!0),className:"rspress-nav-menu-group-button flex-center items-center font-medium text-sm text-text-1 hover:text-text-2 transition-colors duration-200",children:i?(0,C.jsx)(ng,e_(eT({},e),{rightIcon:(0,C.jsx)(tE,{icon:el.Z})})):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("span",{className:"text-sm font-medium flex",style:{marginRight:"2px"},children:[(0,C.jsx)(I.Tag,{tag:e.tag}),e.text]}),(0,C.jsx)(tE,{icon:el.Z})]})}),(0,C.jsx)("div",{className:"rspress-nav-menu-group-content absolute mx-0.8 transition-opacity duration-300",style:{opacity:o?1:0,visibility:o?"visible":"hidden",right:0,top:"52px"},children:(0,C.jsx)("div",{className:"p-3 pr-2 w-full h-full max-h-100vh whitespace-nowrap",style:{boxShadow:"var(--rp-shadow-3)",zIndex:100,border:"1px solid var(--rp-c-divider-light)",borderRadius:"var(--rp-radius-large)",background:"var(--rp-c-bg)"},children:n.map(e=>(0,C.jsx)("div",{children:"items"in e?c(e):l(e)},e.text))})})]})}var nR=()=>{var e;let{siteData:t}=(0,S.Vi)(),n=eB(),{logo:r,logoText:i}=t,a=null!=(e=n.title)?e:t.title,o=(0,_.useMemo)(()=>r?"string"==typeof r?(0,C.jsx)("img",{src:(0,N.i6)(r),alt:"logo",id:"logo",className:"mr-4 rspress-logo"}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("img",{src:(0,N.i6)(r.light),alt:"logo",id:"logo",className:"mr-4 rspress-logo dark:hidden"}),(0,C.jsx)("img",{src:(0,N.i6)(r.dark),alt:"logo",id:"logo",className:"mr-4 rspress-logo hidden dark:block"})]}):null,[r]);return(0,C.jsx)("div",{className:`${nm.navBarTitle}`,children:(0,C.jsxs)("a",{href:(0,N.pJ)(n.langRoutePrefix||"/"),className:"flex items-center w-full h-full text-base font-semibold transition-opacity duration-300 hover:opacity-60",children:[o,i&&(0,C.jsx)("span",{children:i}),!o&&!i&&(0,C.jsx)("span",{children:a})]})})};function n$(){let e=nE();return(0,C.jsx)("div",{className:`translation ${nm.menuItem} flex text-sm font-bold items-center px-3 py-2`,children:(0,C.jsx)("div",{children:(0,C.jsx)(nz,eT({},e))})})}function nF(){let e=nS();return(0,C.jsx)("div",{className:`translation ${nm.menuItem} flex text-sm font-bold items-center px-3 py-2`,children:(0,C.jsx)("div",{children:(0,C.jsx)(nz,eT({},e))})})}function nB(e){var t;let{beforeNavTitle:n,afterNavTitle:r,beforeNav:i,afterNavMenu:a}=e,{siteData:o}=(0,S.Vi)(),{base:s}=o,{pathname:l}=(0,L.TH)(),[c,u]=(0,_.useState)(!1),d=eV(),h=Object.values(o.locales||o.themeConfig.locales||{}),p=h.length>1,f=o.multiVersion.versions.length>1,m=o.themeConfig.socialLinks||[],g=m.length>0,x=h.map(e=>e.lang||"")||[],v=()=>{u(tp())};(0,_.useEffect)(()=>(window.addEventListener("resize",v),u(tp()),()=>{window.removeEventListener("resize",v)}),[]);let y=({menuItems:e})=>(0,C.jsx)("div",{className:"rspress-nav-menu menu h-14",children:e.map(e=>"items"in e||Array.isArray(e)?(0,C.jsx)("div",{className:"mx-3 last:mr-0",children:(0,C.jsx)(nz,e_(eT({},e),{base:s,pathname:l,langs:x,items:"items"in e?e.items:e}))},e.text):(0,C.jsx)(ng,eT({pathname:l,langs:x,base:s},e),e.link))}),b=nA(),w=e=>{var t;return null!=(t=e.position)?t:"right"},k=b.filter(e=>"left"===w(e)),j=b.filter(e=>"right"===w(e)),E=(null==(t=null==o?void 0:o.themeConfig)?void 0:t.search)!==!1,N=!1!==o.themeConfig.darkMode;return(0,C.jsxs)(C.Fragment,{children:[i,(0,C.jsx)("div",{className:`${nm.navContainer} rspress-nav px-6 ${d&&!c?nm.hidden:""}`,style:{position:c?"relative":"sticky"},children:(0,C.jsxs)("div",{className:`${nm.container} flex justify-between items-center h-full`,children:[n,(0,C.jsx)(nR,{}),r,(0,C.jsxs)("div",{className:"flex flex-1 justify-end items-center",children:[k.length>0?(0,C.jsx)("div",{className:nm.leftNav,children:(0,C.jsx)(y,{menuItems:k})}):null,(0,C.jsxs)("div",{className:nm.rightNav,children:[E&&(0,C.jsx)("div",{className:"flex sm:flex-1 items-center sm:pl-4 sm:pr-2",children:(0,C.jsx)(I.Search,{})}),(0,C.jsx)(y,{menuItems:j}),(0,C.jsxs)("div",{className:"flex-center flex-row",children:[p&&(0,C.jsx)(n$,{}),f&&(0,C.jsx)(nF,{}),N&&(0,C.jsx)("div",{className:"mx-2",children:(0,C.jsx)(nx,{})}),g&&(0,C.jsx)(nj,{socialLinks:m})]})]}),a,(0,C.jsxs)("div",{className:nm.mobileNavMenu,children:[c&&E&&(0,C.jsx)(I.Search,{}),(0,C.jsx)(nO,{siteData:o,pathname:l})]})]})]})})]})}var nH={"header-anchor":"header-anchor_8f375",headerAnchor:"header-anchor_8f375","overview-groups":"overview-groups_8f375",overviewGroups:"overview-groups_8f375","overview-group-li":"overview-group-li_8f375",overviewGroupLi:"overview-group-li_8f375","level-2":"level-2_8f375",level2:"level-2_8f375","level-3":"level-3_8f375",level3:"level-3_8f375","level-4":"level-4_8f375",level4:"level-4_8f375","overview-group":"overview-group_8f375",overviewGroup:"overview-group_8f375",header:"header_8f375"};function nD(e){let{siteData:t,page:{routePath:n,title:r,frontmatter:i}}=(0,S.Vi)(),{content:a,groups:o,defaultGroupTitle:s="Others"}=e,l=e=>(0,N.pJ)(e).startsWith(n.replace(/overview$/,""))&&!(0,N.pV)((0,N.pJ)(e),n),c=e=>"link"in e&&e.link?e.link:"items"in e?c(e.items[0]):"",u=(e,t,n)=>{for(let r of e){if((0,N.pJ)(r.link)===t)return[r];if(r.items){let e=u(r.items,t,n);if(e)return e}}return n},{pages:d}=t,h=d.filter(e=>l(e.routePath)),{items:p}=eD();function f(t,r,i){var a,o,s,l,u;if("dividerType"in t)return t;if((0,N.pJ)(t.link)===`${n}index`&&(null==i?void 0:i.overview)===!0)return!1;let d=null!=(l=null!=(s=null!=(o=null!=(a=null==e?void 0:e.overviewHeaders)?a:t.overviewHeaders)?o:null==i?void 0:i.overviewHeaders)?s:null==r?void 0:r.overviewHeaders)?l:[2],p=h.find(e=>(0,N.pV)(e.routePath,(0,N.pJ)(t.link||""))),f=c(t);return e_(eT({},t),{link:f,headers:(null==(u=null==p?void 0:p.toc)?void 0:u.filter(e=>d.some(t=>e.depth===t)))||[]})}p[0].link!==n&&(p=u(p,n,p));let m=e=>!("items"in e)&&"link"in e,g=null!=o?o:(0,_.useMemo)(()=>p.filter(e=>"items"in e&&e.items?e.items.filter(e=>l(c(e))).length>0:!!(m(e)&&l(c(e)))||!1).map(e=>{var t;let n=[];return(null==e?void 0:e.items)?n=null==(t=null==e?void 0:e.items)?void 0:t.map(t=>f(t,e,i)).filter(Boolean):m(e)&&(n=[f({link:e.link,text:e.text||"",tag:e.tag,_fileKey:e._fileKey,overviewHeaders:e.overviewHeaders},void 0,i)]),{name:e.text||"",items:n}}),[p,n,i]);return(0,C.jsxs)("div",{className:"overview-index mx-auto px-8",children:[(0,C.jsx)("div",{className:"flex items-center justify-between",children:!r&&(0,C.jsx)("h1",{className:"text-3xl leading-10 tracking-tight",children:"Overview"})}),a,g.map(e=>(0,C.jsxs)("div",{className:"mb-16",children:[e.name===s&&1===g.length?(0,C.jsx)("h2",{style:{paddingTop:0}}):(0,C.jsx)("h2",{children:tv(e.name)}),(0,C.jsx)("div",{className:nH.overviewGroups,children:e.items.map(e=>{var t;return(0,C.jsxs)("div",{className:nH.overviewGroup,children:[(0,C.jsx)("div",{className:"flex",children:(0,C.jsx)("h3",{style:{marginBottom:8},children:(0,C.jsx)(I.Link,{href:(0,N.AP)(e.link),children:tv(e.text)})})}),(0,C.jsx)("ul",{className:"list-none",children:null==(t=e.headers)?void 0:t.map(t=>(0,C.jsx)("li",{className:`${nH.overviewGroupLi} ${nH[`level${t.depth}`]} first:mt-2`,children:(0,C.jsx)(I.Link,{href:`${(0,N.AP)(e.link)}#${t.id}`,children:tv(t.text)})},t.id))})]},e.link)})})]},e.name))]})}function nZ(e){return(0,C.jsxs)("svg",e_(eT({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 256"},e),{children:[(0,C.jsx)("path",{fill:"#C12127",d:"M0 256V0h256v256z"}),(0,C.jsx)("path",{fill:"#FFF",d:"M48 48h160v160h-32V80h-48v128H48z"})]}))}function nq(e){return(0,C.jsx)("svg",e_(eT({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 128 128"},e),{children:(0,C.jsxs)("g",{fill:"#2c8ebb",children:[(0,C.jsx)("path",{d:"M99.24 80.71C94.9 80.76 91.1 83 87.89 85c-6 3.71-9 3.47-9 3.47l-.1-.17c-.41-.67 1.92-6.68-.69-13.84c-2.82-7.83-7.3-9.72-6.94-10.32c1.53-2.59 5.36-6.7 6.89-14.36c.91-4.64.67-12.28-1.39-16.28c-.38-.74-3.78 1.24-3.78 1.24s-3.18-7.09-4.07-7.66c-2.87-1.84-6 7.61-6 7.61a14 14 0 0 0-11.71 4.5a9.64 9.64 0 0 1-3.85 2.27c-.41.14-.91.12-2.15 3.47c-1.9 5.07 3.24 10.81 3.24 10.81s-6.13 4.33-8.4 9.72a24.78 24.78 0 0 0-1.75 11.68s-4.36 3.78-4.64 7.68a12.87 12.87 0 0 0 1.77 7.83a1.94 1.94 0 0 0 2.63.91s-2.9 3.38-.19 4.81c2.47 1.29 6.63 2 8.83-.19c1.6-1.6 1.92-5.17 2.51-6.63c.14-.34.62.57 1.08 1a10 10 0 0 0 1.36 1s-3.9 1.68-2.3 5.51c.53 1.27 2.42 2.08 5.51 2.06c1.15 0 13.76-.72 17.12-1.53a4.33 4.33 0 0 0 2.61-1.46a63 63 0 0 0 15.49-7c4.74-3.09 6.68-3.93 10.51-4.84c3.16-.75 2.95-5.65-1.24-5.58z"}),(0,C.jsx)("path",{d:"M64 2a62 62 0 1 0 62 62A62 62 0 0 0 64 2zm37.3 87.83c-3.35.81-4.91 1.44-9.41 4.36a67 67 0 0 1-15.56 7.18a8.71 8.71 0 0 1-3.64 1.77c-3.81.93-16.88 1.63-17.91 1.63h-.24c-4 0-6.27-1.24-7.49-2.54c-3.4 1.7-7.8 1-11-.69a5.55 5.55 0 0 1-3-3.9a6 6 0 0 1 0-2.06a6.66 6.66 0 0 1-.79-1A16.38 16.38 0 0 1 30 84.52c.29-3.73 2.87-7.06 4.55-8.83A28.56 28.56 0 0 1 36.61 64a26.82 26.82 0 0 1 6.82-9c-1.65-2.78-3.33-7.06-1.7-11.42c1.17-3.11 2.13-4.84 4.24-5.58a6.84 6.84 0 0 0 2.51-1.34A17.65 17.65 0 0 1 60.34 31c.19-.48.41-1 .65-1.46c1.6-3.4 3.3-5.31 5.29-6a4.88 4.88 0 0 1 4.4.5c.65.43 1.48 1 3.9 6a4.69 4.69 0 0 1 2.85-.1a3.81 3.81 0 0 1 2.39 1.94c2.47 4.74 2.8 13.19 1.72 18.62a33.8 33.8 0 0 1-5.84 13.31a25.73 25.73 0 0 1 5.77 9.43a25.42 25.42 0 0 1 1.41 10.41A28.7 28.7 0 0 0 86 81.91c3.06-1.89 7.68-4.74 13.19-4.81a6.62 6.62 0 0 1 7 5.7a6.35 6.35 0 0 1-4.89 7.03z"})]})}))}function nU(e){return(0,C.jsxs)("svg",e_(eT({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 128 128"},e),{children:[(0,C.jsx)("path",{fill:"#f8ab00",d:"M0 .004V40h39.996V.004Zm43.996 0V40h40V.004Zm44.008 0V40H128V.004Zm0 43.996v39.996H128V44Z"}),(0,C.jsx)("path",{fill:"#4c4c4c",d:"M43.996 44v39.996h40V44ZM0 87.996v40h39.996v-40Zm43.996 0v40h40v-40Zm44.008 0v40H128v-40Z"})]}))}function nV(e){return(0,C.jsxs)("svg",e_(eT({id:"Bun",width:"1.2em",height:"1.2em",viewBox:"0 0 80 70"},e),{children:[(0,C.jsx)("path",{id:"Shadow",d:"M71.09,20.74c-.16-.17-.33-.34-.5-.5s-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5A26.46,26.46,0,0,1,75.5,35.7c0,16.57-16.82,30.05-37.5,30.05-11.58,0-21.94-4.23-28.83-10.86l.5.5.5.5.5.5.5.5.5.5.5.5.5.5C19.55,65.3,30.14,69.75,42,69.75c20.68,0,37.5-13.48,37.5-30C79.5,32.69,76.46,26,71.09,20.74Z"}),(0,C.jsxs)("g",{id:"Body",children:[(0,C.jsx)("path",{id:"Background",d:"M73,35.7c0,15.21-15.67,27.54-35,27.54S3,50.91,3,35.7C3,26.27,9,17.94,18.22,13S33.18,3,38,3s8.94,4.13,19.78,10C67,17.94,73,26.27,73,35.7Z",style:{fill:"#fbf0df"}}),(0,C.jsx)("path",{id:"Bottom_Shadow","data-name":"Bottom Shadow",d:"M73,35.7a21.67,21.67,0,0,0-.8-5.78c-2.73,33.3-43.35,34.9-59.32,24.94A40,40,0,0,0,38,63.24C57.3,63.24,73,50.89,73,35.7Z",style:{fill:"#f6dece"}}),(0,C.jsx)("path",{id:"Light_Shine","data-name":"Light Shine",d:"M24.53,11.17C29,8.49,34.94,3.46,40.78,3.45A9.29,9.29,0,0,0,38,3c-2.42,0-5,1.25-8.25,3.13-1.13.66-2.3,1.39-3.54,2.15-2.33,1.44-5,3.07-8,4.7C8.69,18.13,3,26.62,3,35.7c0,.4,0,.8,0,1.19C9.06,15.48,20.07,13.85,24.53,11.17Z",style:{fill:"#fffefc"}}),(0,C.jsx)("path",{id:"Top",d:"M35.12,5.53A16.41,16.41,0,0,1,29.49,18c-.28.25-.06.73.3.59,3.37-1.31,7.92-5.23,6-13.14C35.71,5,35.12,5.12,35.12,5.53Zm2.27,0A16.24,16.24,0,0,1,39,19c-.12.35.31.65.55.36C41.74,16.56,43.65,11,37.93,5,37.64,4.74,37.19,5.14,37.39,5.49Zm2.76-.17A16.42,16.42,0,0,1,47,17.12a.33.33,0,0,0,.65.11c.92-3.49.4-9.44-7.17-12.53C40.08,4.54,39.82,5.08,40.15,5.32ZM21.69,15.76a16.94,16.94,0,0,0,10.47-9c.18-.36.75-.22.66.18-1.73,8-7.52,9.67-11.12,9.45C21.32,16.4,21.33,15.87,21.69,15.76Z",style:{fill:"#ccbea7",fillRule:"evenodd"}}),(0,C.jsx)("path",{id:"Outline",d:"M38,65.75C17.32,65.75.5,52.27.5,35.7c0-10,6.18-19.33,16.53-24.92,3-1.6,5.57-3.21,7.86-4.62,1.26-.78,2.45-1.51,3.6-2.19C32,1.89,35,.5,38,.5s5.62,1.2,8.9,3.14c1,.57,2,1.19,3.07,1.87,2.49,1.54,5.3,3.28,9,5.27C69.32,16.37,75.5,25.69,75.5,35.7,75.5,52.27,58.68,65.75,38,65.75ZM38,3c-2.42,0-5,1.25-8.25,3.13-1.13.66-2.3,1.39-3.54,2.15-2.33,1.44-5,3.07-8,4.7C8.69,18.13,3,26.62,3,35.7,3,50.89,18.7,63.25,38,63.25S73,50.89,73,35.7C73,26.62,67.31,18.13,57.78,13,54,11,51.05,9.12,48.66,7.64c-1.09-.67-2.09-1.29-3-1.84C42.63,4,40.42,3,38,3Z"})]}),(0,C.jsxs)("g",{id:"Mouth",children:[(0,C.jsx)("g",{id:"Background-2","data-name":"Background",children:(0,C.jsx)("path",{d:"M45.05,43a8.93,8.93,0,0,1-2.92,4.71,6.81,6.81,0,0,1-4,1.88A6.84,6.84,0,0,1,34,47.71,8.93,8.93,0,0,1,31.12,43a.72.72,0,0,1,.8-.81H44.26A.72.72,0,0,1,45.05,43Z",style:{fill:"#b71422"}})}),(0,C.jsxs)("g",{id:"Tongue",children:[(0,C.jsx)("path",{id:"Background-3","data-name":"Background",d:"M34,47.79a6.91,6.91,0,0,0,4.12,1.9,6.91,6.91,0,0,0,4.11-1.9,10.63,10.63,0,0,0,1-1.07,6.83,6.83,0,0,0-4.9-2.31,6.15,6.15,0,0,0-5,2.78C33.56,47.4,33.76,47.6,34,47.79Z",style:{fill:"#ff6164"}}),(0,C.jsx)("path",{id:"Outline-2","data-name":"Outline",d:"M34.16,47a5.36,5.36,0,0,1,4.19-2.08,6,6,0,0,1,4,1.69c.23-.25.45-.51.66-.77a7,7,0,0,0-4.71-1.93,6.36,6.36,0,0,0-4.89,2.36A9.53,9.53,0,0,0,34.16,47Z"})]}),(0,C.jsx)("path",{id:"Outline-3","data-name":"Outline",d:"M38.09,50.19a7.42,7.42,0,0,1-4.45-2,9.52,9.52,0,0,1-3.11-5.05,1.2,1.2,0,0,1,.26-1,1.41,1.41,0,0,1,1.13-.51H44.26a1.44,1.44,0,0,1,1.13.51,1.19,1.19,0,0,1,.25,1h0a9.52,9.52,0,0,1-3.11,5.05A7.42,7.42,0,0,1,38.09,50.19Zm-6.17-7.4c-.16,0-.2.07-.21.09a8.29,8.29,0,0,0,2.73,4.37A6.23,6.23,0,0,0,38.09,49a6.28,6.28,0,0,0,3.65-1.73,8.3,8.3,0,0,0,2.72-4.37.21.21,0,0,0-.2-.09Z"})]}),(0,C.jsxs)("g",{id:"Face",children:[(0,C.jsx)("ellipse",{id:"Right_Blush","data-name":"Right Blush",cx:"53.22",cy:"40.18",rx:"5.85",ry:"3.44",style:{fill:"#febbd0"}}),(0,C.jsx)("ellipse",{id:"Left_Bluch","data-name":"Left Bluch",cx:"22.95",cy:"40.18",rx:"5.85",ry:"3.44",style:{fill:"#febbd0"}}),(0,C.jsx)("path",{id:"Eyes",d:"M25.7,38.8a5.51,5.51,0,1,0-5.5-5.51A5.51,5.51,0,0,0,25.7,38.8Zm24.77,0A5.51,5.51,0,1,0,45,33.29,5.5,5.5,0,0,0,50.47,38.8Z",style:{fillRule:"evenodd"}}),(0,C.jsx)("path",{id:"Iris",d:"M24,33.64a2.07,2.07,0,1,0-2.06-2.07A2.07,2.07,0,0,0,24,33.64Zm24.77,0a2.07,2.07,0,1,0-2.06-2.07A2.07,2.07,0,0,0,48.75,33.64Z",style:{fill:"#fff",fillRule:"evenodd"}})]})]}))}function nW(e){if(!(null==e?void 0:e.includes("install")))return e;let t=e.split(" ").filter(e=>!e.startsWith("-")&&!e.startsWith("--")).join(" ");return"yarn install"===t||"bun install"===t?e:e.replace("install","add")}function nG({command:e,additionalTabs:t=[]}){let n;let r={npm:(0,C.jsx)(nZ,{}),yarn:(0,C.jsx)(nq,{}),pnpm:(0,C.jsx)(nU,{}),bun:(0,C.jsx)(nV,{})};return t.forEach(e=>{r[e.tool]=e.icon}),"string"==typeof e?(n={npm:`npm ${e}`,yarn:`yarn ${e}`,pnpm:`pnpm ${e}`,bun:`bun ${e}`},t.forEach(t=>{n[t.tool]=`${t.tool} ${e}`})):n=e,n.yarn&&(n.yarn=nW(n.yarn)),n.bun&&(n.bun=nW(n.bun)),(0,C.jsx)(I.Tabs,{groupId:"package.manager",values:Object.entries(n).map(([e])=>(0,C.jsxs)("div",{style:{display:"flex",alignItems:"center",fontSize:15},children:[r[e],(0,C.jsx)("span",{style:{marginLeft:6,marginBottom:2},children:e})]},e)),children:Object.entries(n).map(([e,t])=>(0,C.jsx)(I.Tab,{children:(0,C.jsx)(t4,{children:(0,C.jsx)(t3,{className:"language-js",codeHighlighter:"prism",children:t})})},e))})}var nK={pagerLink:"pager-link_9b9a7",title:"title_9b9a7",next:"next_9b9a7",desc:"desc_9b9a7"};function nY(e){let{type:t,text:n,href:r}=e,{prevPageText:i="Previous Page",nextPageText:a="Next page"}=eB(),o="prev"===t?nK.pagerLink:`${nK.pagerLink} ${nK.next}`;return(0,C.jsxs)(I.Link,{href:r,className:o,children:[(0,C.jsx)("span",{className:nK.desc,children:"prev"===t?i:a}),(0,C.jsx)("span",{className:nK.title,children:n})]})}var nJ={scrollToTop:"scroll-to-top_1a167",entered:"entered_1a167"};function nQ(){let[e,t]=(0,_.useState)(!1),n=()=>{t((window.scrollY||document.documentElement.scrollTop)>0)};return(0,_.useEffect)(()=>{window.addEventListener("scroll",n)},[]),(0,C.jsx)("button",{className:`${nJ.scrollToTop} ${e?nJ.entered:""}`,onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},children:(0,C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"w-6 h-6",children:(0,C.jsx)("path",{fillRule:"evenodd",d:"M11.47 2.47a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 1 1-1.06 1.06l-6.22-6.22V21a.75.75 0 0 1-1.5 0V4.81l-6.22 6.22a.75.75 0 1 1-1.06-1.06l7.5-7.5Z",clipRule:"evenodd"})})})}var nX={mask:"mask_6e282",modal:"modal_6e282",inputForm:"inputForm_6e282",input:"input_6e282",close:"close_6e282",searchHits:"searchHits_6e282",groupTitle:"groupTitle_6e282",navSearchButton:"navSearchButton_6e282",searchWord:"searchWord_6e282",suggestItem:"suggestItem_6e282",suggestItemContainer:"suggestItemContainer_6e282",contentWrapper:"contentWrapper_6e282",mark:"mark_6e282",titleForContent:"titleForContent_6e282",actionIcon:"actionIcon_6e282",current:"current_6e282",tabClassName:"tabClassName_6e282",mobileNavSearchButton:"mobileNavSearchButton_6e282"},n0={container:"container_fa768",tabList:"tab-list_fa768",tab:"tab_fa768",notSelected:"not-selected_fa768",selected:"selected_fa768",noScrollbar:"no-scrollbar_fa768"},n1=e=>{var t;return(t=e)&&"object"==typeof t&&"label"in t?e.label||e.value:e},n2=(0,_.forwardRef)((e,t)=>{let{values:n,defaultValue:r,onChange:i,children:a,groupId:o,tabPosition:s="left",tabContainerClassName:l}=e,c=_.Children.toArray(a).filter(e=>!("string"==typeof e&&""===e.trim())),u=n||[];0===u.length&&(u=_.Children.map(c,e=>{var t,n,r;return(0,_.isValidElement)(e)?{label:null==(t=e.props)?void 0:t.label,value:(null==(n=e.props)?void 0:n.value)||(null==(r=e.props)?void 0:r.label)}:{label:void 0,value:void 0}}));let{tabData:d,setTabData:h}=(0,_.useContext)(tN),[p,f]=(0,_.useState)(()=>void 0===r?0:u.findIndex(e=>"string"==typeof e?e===r:!!e&&"object"==typeof e&&"value"in e&&e.value===r)),[m,g]=tl(`rspress.tabs.${o}`,p),x=(0,_.useMemo)(()=>{if(o)return void 0!==d[o]?d[o]:parseInt(m);return p},[d[o]]);(0,_.useEffect)(()=>{if(o){let e=parseInt(m);x!==e&&h(e_(eT({},d),{[o]:e}))}},[m]);let v=o?x:p;return(0,C.jsxs)("div",{className:n0.container,ref:t,children:[(0,C.jsx)("div",{className:l,children:u.length?(0,C.jsx)("div",{className:`${n0.tabList} ${n0.noScrollbar}`,style:{justifyContent:"center"===s?"center":"flex-start"},children:u.map((e,t)=>(0,C.jsx)("div",{className:`${n0.tab} ${v===t?n0.selected:n0.notSelected}`,onClick:()=>{null==i||i(t),o?(h(e_(eT({},d),{[o]:t})),g(t)):f(t)},children:n1(e)},t))}):null}),(0,C.jsx)("div",{children:_.Children.toArray(c)[v]})]})});function n3(e){var{children:t}=e,n=eP(e,["children"]);return(0,C.jsx)("div",e_(eT({},n),{className:"rounded px-2",children:t}))}function n4({query:e}){return(0,C.jsxs)("div",{className:"flex flex-col items-center pt-8 pb-2",children:[(0,C.jsx)(tE,{icon:eg.Z,className:"mb-4 opacity-80"}),(0,C.jsxs)("p",{className:"mb-2",children:["No results for ",(0,C.jsxs)("b",{children:['"',e,'"']}),"."]}),(0,C.jsx)("p",{children:"Please try again with a different keyword."})]})}var n5={title:eb.Z,header:ey.Z,content:ex.Z};function n6({suggestion:e,closeSearch:t,isCurrent:n,setCurrentSuggestionIndex:r,inCurrentDocIndex:i,scrollTo:a}){var o,s;let l=n5[e.type],c=i&&!(0,M.yv)()?e2(e.link):e.link,u=(0,_.useRef)(null);n&&a(null==(o=null==u?void 0:u.current)?void 0:o.offsetTop,null==(s=null==u?void 0:u.current)?void 0:s.offsetHeight);let d=(e,t)=>{let n=[],r=0;for(let s of t){var i,a,o;let{start:t,length:l}=s,c=e.slice(r,t);let u=(i=e,a=t,o=l,function(e,t,n){let r="",i=0,a=e.length;for(let o=0;o0+n);o++){;i>t&&(r+=e.charAt(o))}return r}(i.slice(a),0,o));n.push(c),n.push((0,C.jsx)("span",{className:nX.mark,children:u},t)),r=t+u.length}return r{if("header"===e.type||"title"===e.type){let{header:t,highlightInfoList:n}=e;return(0,C.jsx)("div",{className:"font-medium",children:d(t,n)})}return(0,C.jsx)("div",{className:"font-medium",children:e.header})})();break;case"content":h=(0,C.jsxs)(C.Fragment,{children:[(()=>{if("content"!==e.type)return(0,C.jsx)("div",{});let{statement:t,highlightInfoList:n}=e;return(0,C.jsx)("div",{className:"text-sm text-gray-light w-full",children:d(t,n)})})(),(0,C.jsx)("p",{className:nX.titleForContent,children:e.title})]})}return(0,C.jsx)("li",{className:`${nX.suggestItem} ${n?nX.current:""}`,onMouseEnter:r,ref:u,children:(0,C.jsx)("a",{href:c,onClick:e=>{t(),e.stopPropagation()},target:i?"_self":"_blank",children:(0,C.jsxs)("div",{className:nX.suggestItemContainer,children:[(0,C.jsx)("div",{className:nX.hitIcon,children:(0,C.jsx)(tE,{icon:l})}),(0,C.jsx)("div",{className:nX.contentWrapper,children:(0,C.jsx)("span",{children:h})}),(0,C.jsx)("div",{className:nX.actionIcon,children:(0,C.jsx)(tE,{icon:ev.Z})})]})})},e.link)}var n7={ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ENTER:"Enter",SEARCH:"KeyK",ESC:"Escape"};function n8({focused:e,setFocused:t}){let[n,r]=(0,_.useState)(""),[i,a]=(0,_.useState)([]),o=(0,_.useRef)(null),[s,l]=(0,_.useState)(!0),[c,u]=(0,_.useState)(0),d=(0,_.useRef)(null),h=(0,_.useRef)(null),p=(0,_.useRef)(null),f=(0,_.useRef)(null),[m,g]=(0,_.useState)(!1),x=(e,t)=>{var n,r,a,o,s;if(m){let l=e+t-(null==(n=null==p?void 0:p.current)?void 0:n.offsetHeight)-(1===i.length?50:-10);l>(null==(r=null==p?void 0:p.current)?void 0:r.scrollTop)&&(null==(a=null==p?void 0:p.current)||a.scrollTo({top:l}));let c=1===i.length?e-70:e-10;c<(null==(o=null==p?void 0:p.current)?void 0:o.scrollTop)&&(null==(s=null==p?void 0:p.current)||s.scrollTo({top:c}))}},{siteData:v,page:{lang:y,version:b}}=(0,S.Vi)(),{sidebar:w,searchPlaceholderText:k="Search Docs"}=eB(),{search:j,title:E}=v,N=j&&"remote"!==j.mode&&j.versioned,A=[{group:E,result:[],renderType:"default"}],[I,T]=(0,_.useState)([]),[P,O]=(0,_.useState)("default"),L=e=>eH(w,e).group;function z(){return e$(this,null,function*(){var e,t;if(!1===j)return;let n={currentLang:y,currentVersion:b,extractGroupName:L},r=new tr(eT(eT({indexName:E},j),n));d.current=r,h.current=n,yield Promise.all([d.current.init(),new Promise(e=>setTimeout(e,1e3))]),l(!1);let i=null==(e=o.current)?void 0:e.value;i&&a((yield null==(t=d.current)?void 0:t.match(i))||A)})}(0,_.useEffect)(()=>{let n=n=>{switch(n.code){case n7.SEARCH:(n.ctrlKey||n.metaKey)&&(n.preventDefault(),t(!e));break;case n7.ARROW_DOWN:e&&(n.preventDefault(),I&&"default"===P&&(g(!0),u((c+1)%I.length)));break;case n7.ARROW_UP:if(e&&(n.preventDefault(),"default"===P)){let e=I.length;g(!0),u((c-1+e)%e)}break;case n7.ENTER:if(c>=0&&"default"===P){let e=I[c];I===i[0].result?(window.location.href=(0,M.yv)()?e.link:e2(e.link),t(!1)):window.open(e.link)}break;case n7.ESC:t(!1)}};return document.addEventListener("keydown",n),()=>{document.removeEventListener("keydown",n)}},[u,t,I,c]),(0,_.useEffect)(()=>{e?(a(A),!d.current&&z()):r("")},[e]),(0,_.useEffect)(()=>{var e;let{currentLang:t,currentVersion:n}=null!=(e=h.current)?e:{},r=y!==t,i=N&&b!==n;!s&&(r||i)&&z()},[y,b,N]);let R=e=>e$(this,null,function*(){var t;let n=e;if(r(n),n){let e=[];if(ep.beforeSearch){let e=yield ep.beforeSearch(n);e&&(n=e)}let r=yield null==(t=d.current)?void 0:t.match(n);if(r&&e.push(...r),ep.H){let t=yield ep.H(n,e);t&&e.push(...t.map(e=>eT({renderType:"custom"},e)))}a(e||A),ep.afterSearch&&(yield ep.afterSearch(n,e)),e.length>0&&T(e[0].result)}}),$=(0,_.useMemo)(()=>(0,eu.Z)(R,150),[]),F=e=>(0,ed.Z)(e,"group"),B=-1,H=e=>{if(0===e.length&&!s)return(0,C.jsx)("div",{className:"mt-4 flex-center",children:(0,C.jsx)("div",{className:"p-2 font-bold text-md",style:{color:"#2c3e50"},children:"No results found"})});let n=F(e);return(0,C.jsx)("ul",{className:nX.suggestList,children:Object.keys(n).map(e=>{let r=n[e]||[];return(0,C.jsx)("li",{children:(0,C.jsx)("ul",{className:"pb-2",children:r.map(e=>{let n=++B;return(0,C.jsx)(n6,{suggestion:e,isCurrent:n===c,setCurrentSuggestionIndex:()=>{g(!1),u(n)},closeSearch:()=>t(!1),inCurrentDocIndex:I===i[0].result,scrollTo:x},`${e.title}-${n}`)})})},e)})})};return(0,C.jsx)(C.Fragment,{children:e&&(0,eh.createPortal)((0,C.jsx)("div",{className:nX.mask,onClick:()=>t(!1),children:(0,C.jsxs)("div",{className:`${nX.modal}`,onClick:e=>{t(!0),e.stopPropagation()},children:[(0,C.jsxs)("div",{className:"flex items-center",children:[(0,C.jsxs)("div",{className:nX.inputForm,children:[(0,C.jsx)("label",{children:(0,C.jsx)(tE,{icon:ec.Z})}),(0,C.jsx)("input",{className:nX.input,ref:o,placeholder:k,"aria-label":"Search",autoComplete:"off",autoFocus:!0,onChange:e=>$(e.target.value)}),(0,C.jsx)("label",{children:(0,C.jsx)(tE,{icon:ef.Z,className:nX.close,onClick:e=>{o.current&&(e.stopPropagation(),n?(o.current.value="",r("")):t(!1))}})})]}),(0,C.jsx)("h2",{className:"text-brand ml-2 sm:hidden cursor-pointer",onClick:e=>{e.stopPropagation(),t(!1)},children:"Cancel"})]}),n?(0,C.jsx)("div",{className:`${nX.searchHits} rspress-scrollbar`,ref:p,children:((e,t)=>{if(1===e.length){let t=e[0].result;return 0===t.length?(0,C.jsx)(n4,{query:n}):(0,C.jsx)("div",{ref:f,children:H(t)})}let r=e.map(e=>t&&"remote"===t.mode?e4(t.searchIndexes||[]).find(t=>t.value===e.group).label:e.group);return(0,C.jsx)(n2,{values:r,tabContainerClassName:nX.tabClassName,onChange:t=>{T(e[t].result),u(0),O(e[t].renderType)},ref:f,children:e.map(e=>(0,C.jsxs)(n3,{children:["default"===e.renderType&&H(e.result),"custom"===e.renderType&&ep.render(e.result)]},e.group))})})(i,j)}):null,s&&(0,C.jsx)("div",{className:"flex-center",children:(0,C.jsx)("div",{className:"p-2 text-sm",children:(0,C.jsx)(tE,{icon:em.Z})})})]})}),document.getElementById("search-container"))})}function n9(){let[e,t]=(0,_.useState)(!1),[n,r]=(0,_.useState)(null),{searchPlaceholderText:i="Search Docs"}=eB();return(0,_.useEffect)(()=>{r(/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?"\u2318":"Ctrl")},[]),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:`rspress-nav-search-button ${nX.navSearchButton}`,onClick:()=>t(!0),children:(0,C.jsxs)("button",{children:[(0,C.jsx)(tE,{icon:ec.Z,width:"18",height:"18"}),(0,C.jsx)("p",{className:nX.searchWord,children:i}),(0,C.jsxs)("div",{style:{opacity:n?1:0},children:[(0,C.jsx)("span",{children:n}),(0,C.jsx)("span",{children:"K"})]})]})}),(0,C.jsx)("div",{className:nX.mobileNavSearchButton,onClick:()=>t(!0),children:(0,C.jsx)(tE,{icon:ec.Z})}),(0,C.jsx)(n8,{focused:e,setFocused:t})]})}var re={navTitleMask:"navTitleMask_71eca",sidebar:"sidebar_71eca",sidebarContainer:"sidebarContainer_71eca",sidebarContent:"sidebarContent_71eca",open:"open_71eca",menuLink:"menuLink_71eca",menuItem:"menuItem_71eca",collapseContainer:"collapseContainer_71eca",menuItemActive:"menuItemActive_71eca"};function rt(e){let{depth:t,dividerType:n}=e;return(0,C.jsx)("div",{className:`${"dashed"===n?"border-dashed":"border-solid"} border-t border-divider-light my-3`,style:{marginLeft:0===t?0:"18px"}})}function rn(e){var t;let{item:n,depth:r=0,activeMatcher:i,id:a,setSidebarData:o}=e,s=(0,L.s0)(),l=(0,_.useRef)(null),c=(0,_.useRef)(null),u=(0,_.useRef)(null),d=(0,_.useRef)(!0),h=(0,_.useRef)(n.collapsed),p=n.link&&i(n.link),{collapsed:f,collapsible:m=!0}=n,g=(0,C.jsx)("div",{style:{cursor:"pointer",transition:"transform 0.2s ease-out",transform:f?"rotate(0deg)":"rotate(90deg)"},children:(0,C.jsx)(tE,{icon:q.Z})});(0,_.useEffect)(()=>{if(d.current||!l.current||!u.current)return;c.current&&clearTimeout(c.current);let e=l.current,t=u.current,n=t.clientHeight+4;f?(e.style.maxHeight=`${n}px`,e.style.transitionDuration="0.5s",t.style.opacity="0",c.current=setTimeout(()=>{l.current&&(l.current.style.maxHeight="0px")},0)):(e.style.maxHeight=`${n}px`,e.style.transitionDuration="0.3s",t.style.opacity="1",c.current=setTimeout(()=>{l.current&&l.current.style.removeProperty("max-height")},300))},[f]),(0,_.useEffect)(()=>{d.current=!1},[]);let x=e=>{e.stopPropagation(),o(e=>{let t=[...e],n=a.split("-").map(Number),r=t[n.shift()];for(let e of n)r=r.items[e];return"items"in r&&(r.collapsed=!r.collapsed),t})};return(0,C.jsxs)("section",{className:"mt-0.5 block",style:{marginLeft:0===r?0:"18px"},children:[(0,C.jsxs)("div",{className:`flex justify-between items-center ${p?re.menuItemActive:re.menuItem}`,onMouseEnter:()=>n.link&&e.preloadLink(n.link),onClick:e=>{n.link&&s((0,N.pJ)((0,N.AP)(n.link))),m&&x(e)},style:{borderRadius:0===r?"0 var(--rp-radius) var(--rp-radius) 0":void 0,cursor:m||n.link?"pointer":"normal"},children:[(0,C.jsxs)("h2",{className:"py-2 px-3 text-sm font-medium flex",style:eT({},0===r?rl:{}),children:[(0,C.jsx)(I.Tag,{tag:n.tag}),(0,C.jsx)("span",{className:"flex-center",children:tv(n.text)})]}),m&&(0,C.jsx)("div",{className:`${re.collapseContainer} p-2 rounded-xl`,onClick:x,children:g})]}),(0,C.jsx)("div",{ref:l,className:"transition-all duration-300 ease-in-out",style:{overflow:"hidden",maxHeight:h.current?0:void 0},children:(0,C.jsx)("div",{ref:u,className:"rspress-sidebar-group transition-opacity duration-500 ease-in-out",style:{opacity:h.current?0:1,marginLeft:0===r?"12px":0},children:null==(t=null==n?void 0:n.items)?void 0:t.map((t,n)=>"dividerType"in t?(0,C.jsx)(rt,{depth:r+1,dividerType:t.dividerType},n):(0,C.jsx)("div",{children:(0,C.jsx)(ri,e_(eT({},e),{item:t,depth:r+1,id:`${a}-${n}`,preloadLink:e.preloadLink}))},n))})})]},a)}var rr=e=>e.replace(/\.(mdx?)$/,"");function ri(e){let{item:t,depth:n=0,activeMatcher:r,id:i,setSidebarData:a}=e,o="link"in t&&t.link&&r(t.link),{page:s}=(0,S.Vi)(),l=(0,_.useRef)(null),c=(0,_.useRef)(t.text),u=function(){let[,e]=(0,_.useState)(0);return()=>{e(e=>e+1)}}();return((0,_.useEffect)(()=>{var e;o&&(null==(e=l.current)||e.scrollIntoView({block:"center"}))},[]),!(0,M.yv)()&&t._fileKey===rr(s.pagePath)&&s.title&&(c.current=s.title),(0,_.useEffect)(()=>{t.text!==c.current&&(c.current=t.text,u())},[t.text]),"items"in t)?(0,C.jsx)(rn,{id:i,item:t,depth:n,activeMatcher:r,collapsed:t.collapsed,setSidebarData:a,preloadLink:e.preloadLink},`${t.text}-${i}`):(0,C.jsx)(I.Link,{href:(0,N.AP)(t.link),className:re.menuLink,children:(0,C.jsxs)("div",{ref:l,onMouseEnter:()=>e.preloadLink(t.link),className:`${o?re.menuItemActive:re.menuItem} mt-0.5 py-2 px-3 font-medium flex`,style:eT({fontSize:0===n?"14px":"13px",marginLeft:0===n?0:"18px",borderRadius:"0 var(--rp-radius) var(--rp-radius) 0"},0===n?rl:{}),children:[(0,C.jsx)(I.Tag,{tag:t.tag}),(0,C.jsx)("span",{children:tv(c.current)})]})})}function ra({sectionHeaderText:e,tag:t}){return(0,C.jsxs)("div",{className:"rspress-sidebar-section-header",children:[(0,C.jsx)(I.Tag,{tag:t}),(0,C.jsx)("span",{children:tv(e)})]})}var ro=e=>"dividerType"in e,rs=e=>"sectionHeaderText"in e,rl={fontSize:"14px",paddingLeft:"24px",fontWeight:"bold"},rc=new WeakMap;function ru(e){let{isSidebarOpen:t,beforeSidebar:n,afterSidebar:r,uiSwitch:i}=e,{items:a}=eD(),o=eB(),{pathname:s}=(0,L.TH)(),l=(0,M.Kw)(o.langRoutePrefix||""),[c,u]=(0,_.useState)(a.filter(Boolean).flat()),d=decodeURIComponent(s);(0,_.useEffect)(()=>{if(a===c)return;rc=new WeakMap;let e=t=>rc.has(t)?rc.get(t):"link"in t&&t.link&&p(t.link)||"items"in t&&t.items.some(t=>e(t))?(rc.set(t,!0),!0):(rc.set(t,!1),!1),t=n=>{"items"in n&&(n.items.forEach(t),e(n)&&(n.collapsed=!1))},n=a.filter(Boolean).flat();n.forEach(t),u(n)},[a,d]);let h=e=>e.replace(l,""),p=e=>th((0,N.E9)(h(d)),h(e),!0),f=e=>{let t=(0,X.fp)(et.routes,e);if(null==t?void 0:t.length){let{route:e}=t[0];e.preload()}};return(0,C.jsx)("aside",{className:`${re.sidebar} rspress-sidebar ${t?re.open:""}`,children:(0,C.jsxs)("div",{className:`${re.sidebarContainer}`,children:[i.showNavbar?(0,C.jsx)("div",{className:re.navTitleMask,children:(0,C.jsx)(nR,{})}):null,(0,C.jsx)("div",{className:`mt-1 ${re.sidebarContent}`,children:(0,C.jsx)("div",{className:"rspress-scrollbar",style:{maxHeight:"calc(100vh - var(--rp-nav-height) - 8px)",overflow:"auto"},children:(0,C.jsxs)("nav",{className:"pb-2",children:[n,c.map((e,t)=>{var n;return ro(e)?(0,C.jsx)(rt,{depth:0,dividerType:e.dividerType},t):rs(e)?(0,C.jsx)(ra,{sectionHeaderText:e.sectionHeaderText,tag:e.tag},t):(0,C.jsx)(ri,{id:String(t),item:e,depth:0,activeMatcher:p,collapsed:null==(n=e.collapsed)||n,setSidebarData:u,preloadLink:f},t)}),r]})})})]})})}var rd="sourceCode_bf1b0";function rh(e){let{href:t,platform:n="github"}=e,{sourceCodeText:r="Source"}=eB();return(0,C.jsx)("div",{className:`inline-block rounded border border-solid border-gray-300 text-gray-400 ${rd}`,children:(0,C.jsxs)("a",{href:t,target:"_blank",className:"flex items-center content-center transition-all duration-300 text-xs block px-2 py-1 ",children:[(0,C.jsx)("span",{className:"mr-2 inline-flex w-4 h-4",children:(0,C.jsx)(tE,{icon:"gitlab"===n?ek.Z:ew.Z})}),(0,C.jsx)("span",{children:r})]})})}var rp="rspressSteps_38f64";function rf({children:e}){return(0,C.jsx)("div",{className:`ml-4 mb-11 border-l pl-6 ${rp} [counter-reset:step]`,children:e})}var rm=({tag:e})=>e?e.trim().startsWith("(0,C.jsx)("li",{children:(0,C.jsx)("a",{href:`#${e.id}`,className:"rspress-toc-link sm:text-normal text-sm",style:{marginLeft:(e.depth-2)*12},onClick:n=>{n.preventDefault(),window.location.hash=e.id;let r=document.getElementById(e.id);r&&eG(r,!1),null==t||t(e)},children:(0,C.jsx)("span",{className:"rspress-toc-link-text block",children:tv(e.text)})})},e.id);function rx({onItemClick:e}){let{page:t}=(0,S.Vi)();return(0,C.jsx)("ul",{children:t.toc.map(t=>(0,C.jsx)(rg,{header:t,onItemClick:e},t.id))})}var rv={Layout:tT,NotFoundLayout:eF,HomeLayout:t_,setup:eY}},2179:function(e,t,n){"use strict";n.d(t,{AV:function(){return r.AV},Ar:function(){return r.Ar},BZ:function(){return r.BZ},CF:function(){return r.CF},CU:function(){return r.CU},Ct:function(){return r.Ct},EG:function(){return r.EG},H_:function(){return r.H_},JL:function(){return r.JL},KO:function(){return r.KO},M4:function(){return r.M4},NG:function(){return r.NG},O9:function(){return r.O9},OK:function(){return r.OK},Os:function(){return r.Os},Qe:function(){return r.Qe},Qn:function(){return r.Qn},RY:function(){return r.RY},Rg:function(){return r.Rg},SU:function(){return r.SU},TJ:function(){return r.TJ},UQ:function(){return r.UQ},VA:function(){return r.VA},Vl:function(){return r.Vl},Vp:function(){return r.Vp},WG:function(){return r.WG},WS:function(){return r.WS},YE:function(){return r.YE},YS:function(){return r.YS},ZB:function(){return r.ZB},ZP:function(){return r.ZP},cY:function(){return r.cY},eE:function(){return r.eE},eF:function(){return r.eF},g2:function(){return r.g2},ls:function(){return r.ls},mQ:function(){return r.mQ},mi:function(){return r.mi},of:function(){return r.of},ol:function(){return r.ol},pU:function(){return r.pU},qx:function(){return r.qx},rU:function(){return r.rU},s2:function(){return r.s2},tx:function(){return r.tx},xB:function(){return r.xB},xK:function(){return r.xK},xN:function(){return r.xN},y2:function(){return r.y2},zh:function(){return r.zh},zx:function(){return r.zx}}),n("8701");var r=n("8942")},3372:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c}});var r=()=>{!window.va&&(window.va=function(...e){(window.vaq=window.vaq||[]).push(e)})};function i(){return"undefined"!=typeof window}function a(){try{let e="production";!1}catch(e){}return"production"}function o(){return(i()?window.vam:a())||"production"}function s(){return"production"===o()}function l(){return"development"===o()}var c={inject:function(e={debug:!0}){var t;if(!i())return;!function(e="auto"){if("auto"===e){window.vam=a();return}window.vam=e}(e.mode),r(),e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend));let n=e.scriptSrc||(l()?"https://va.vercel-scripts.com/v1/script.debug.js":"/_vercel/insights/script.js");if(document.head.querySelector(`script[src*="${n}"]`))return;let o=document.createElement("script");o.src=n,o.defer=!0,o.dataset.sdkn="@vercel/analytics"+(e.framework?`/${e.framework}`:""),o.dataset.sdkv="1.3.0",e.disableAutoTrack&&(o.dataset.disableAutoTrack="1"),e.endpoint&&(o.dataset.endpoint=e.endpoint),e.dsn&&(o.dataset.dsn=e.dsn),o.onerror=()=>{let e=l()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${n}. ${e}`)},l()&&!1===e.debug&&(o.dataset.debug="false"),document.head.appendChild(o)},track:function(e,t,n){var r,a;if(!i()){let e="[Vercel Web Analytics] Please import `track` from `@vercel/analytics/server` when using this function in a server environment";if(s())console.warn(e);else throw Error(e);return}if(!t){null==(r=window.va)||r.call(window,"event",{name:e,options:n});return}try{let r=function(e,t){if(!e)return;let n=e,r=[];for(let[i,a]of Object.entries(e))"object"==typeof a&&null!==a&&(t.strip?n=function(e,{[e]:t,...n}){return n}(i,n):r.push(i));if(r.length>0&&!t.strip)throw Error(`The following properties are not valid: ${r.join(", ")}. Only strings, numbers, booleans, and null are allowed.`);return n}(t,{strip:s()});null==(a=window.va)||a.call(window,"event",{name:e,data:r,options:n})}catch(e){e instanceof Error&&l()&&console.error(e)}}}},3306:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n("2988");let i=/\s?|(]*>|]*>|]+>)+/i,a=RegExp(r.map(e=>`<${e}\\b[^>]*>`).join("|"),"i");function o(e){return e=e.trim().slice(0,1e3),i.test(e)||a.test(e)}},4224:function(e){"use strict";e.exports=JSON.parse('["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"]')},7854:function(e){"use strict";e.exports=JSON.parse('{"AElig":"\xc6","AMP":"&","Aacute":"\xc1","Acirc":"\xc2","Agrave":"\xc0","Aring":"\xc5","Atilde":"\xc3","Auml":"\xc4","COPY":"\xa9","Ccedil":"\xc7","ETH":"\xd0","Eacute":"\xc9","Ecirc":"\xca","Egrave":"\xc8","Euml":"\xcb","GT":">","Iacute":"\xcd","Icirc":"\xce","Igrave":"\xcc","Iuml":"\xcf","LT":"<","Ntilde":"\xd1","Oacute":"\xd3","Ocirc":"\xd4","Ograve":"\xd2","Oslash":"\xd8","Otilde":"\xd5","Ouml":"\xd6","QUOT":"\\"","REG":"\xae","THORN":"\xde","Uacute":"\xda","Ucirc":"\xdb","Ugrave":"\xd9","Uuml":"\xdc","Yacute":"\xdd","aacute":"\xe1","acirc":"\xe2","acute":"\xb4","aelig":"\xe6","agrave":"\xe0","amp":"&","aring":"\xe5","atilde":"\xe3","auml":"\xe4","brvbar":"\xa6","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","eacute":"\xe9","ecirc":"\xea","egrave":"\xe8","eth":"\xf0","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","iacute":"\xed","icirc":"\xee","iexcl":"\xa1","igrave":"\xec","iquest":"\xbf","iuml":"\xef","laquo":"\xab","lt":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","ntilde":"\xf1","oacute":"\xf3","ocirc":"\xf4","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","oslash":"\xf8","otilde":"\xf5","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","raquo":"\xbb","reg":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","thorn":"\xfe","times":"\xd7","uacute":"\xfa","ucirc":"\xfb","ugrave":"\xf9","uml":"\xa8","uuml":"\xfc","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')},1636:function(e){"use strict";e.exports=JSON.parse('{"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}')}}]); \ No newline at end of file +/*! For license information please see 539.b030ae28.js.LICENSE.txt */ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["539"],{7213:function(e,t,n){"use strict";n.d(t,{V:function(){return h}});var r=n("5893"),i=n("7294"),a=n("9250"),o=n("2599"),s=n("6780"),l=n("8028"),c=n("5687");let{routes:u}=n("6118"),d=(0,i.memo)(function(e){let t=e.el;return s.Z?.themeConfig?.enableContentAnimation&&(t=(0,c.n_)(e.el)),t},(e,t)=>e.el===t.el),h=({fallback:e=(0,r.jsx)(r.Fragment,{})})=>{let{pathname:t}=(0,a.TH)(),n=(0,o.fp)(u,(0,l.Tm)(t));if(!n)return(0,r.jsx)("div",{});let s=n[0].route.element;return(0,r.jsx)(i.Suspense,{fallback:e,children:(0,r.jsx)(d,{el:s})})}},8183:function(e,t,n){"use strict";n.d(t,{r:function(){return a}});var r=n("5893"),i=n("7294");function a(e){let{children:t}=e,[n,a]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{a(!0)},[]),n)?(0,r.jsx)(r.Fragment,{children:t}):null}},5687:function(e,t,n){"use strict";n.d(t,{Jr:function(){return l},Ni:function(){return o},R0:function(){return a},Vi:function(){return s},aw:function(){return c},n_:function(){return u}});var r=n("7294"),i=n("3935");let a=(0,r.createContext)({}),o=(0,r.createContext)({});function s(){return(0,r.useContext)(a).data}function l(){return(0,r.useContext)(a).data.page.lang||""}function c(){return(0,r.useContext)(a).data.page.version||""}function u(e){let[t,n]=(0,r.useState)(e);return(0,r.useLayoutEffect)(()=>{document.startViewTransition&&t!==e?document.startViewTransition(()=>{(0,i.flushSync)(()=>{n(e)}),window.dispatchEvent(new Event("RspressReloadContent"))}):((0,i.flushSync)(()=>{n(e)}),window.dispatchEvent(new Event("RspressReloadContent")))},[e]),t}},8028:function(e,t,n){"use strict";n.d(t,{AP:function(){return c},E9:function(){return s},Tm:function(){return a},i6:function(){return u},pJ:function(){return o},pV:function(){return l}});var r=n("6780"),i=n("8995");function a(e){return decodeURIComponent(e).replace(/\.html$/,"").replace(/\/index$/,"/")}function o(e="/"){return(0,i.pJ)(e,r.Z.base)}function s(e){return(0,i.E9)(e,r.Z.base)}function l(e,t){return o(c((0,i.lm)(e)))===o(c((0,i.lm)(t)))}function c(e){let t=!!r.Z?.route?.cleanUrls;return(0,i.yc)(e,t)}function u(e){return!(0,i.yv)()||(0,i.xf)(e)||(0,i.pZ)(e)?e:o(e)}},8509:function(e,t,n){"use strict";n.d(t,{Qp:function(){return v},tP:function(){return y}});var r=!1;if("undefined"!=typeof window){var i={get passive(){r=!0;return}};window.addEventListener("testPassive",null,i),window.removeEventListener("testPassive",null,i)}var a="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),o=[],s=!1,l=-1,c=void 0,u=void 0,d=void 0,h=function(e){return o.some(function(t){return!!(t.options.allowTouchMove&&t.options.allowTouchMove(e))||!1})},p=function(e){var t=e||window.event;return!!h(t.target)||!!(t.touches.length>1)||(t.preventDefault&&t.preventDefault(),!1)},f=function(e){if(void 0===d){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;if(t&&n>0){var r=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right"),10);d=document.body.style.paddingRight,document.body.style.paddingRight=r+n+"px"}}void 0===c&&(c=document.body.style.overflow,document.body.style.overflow="hidden")},m=function(){void 0!==d&&(document.body.style.paddingRight=d,d=void 0),void 0!==c&&(document.body.style.overflow=c,c=void 0)},g=function(){if(void 0!==u){var e=-parseInt(document.body.style.top,10),t=-parseInt(document.body.style.left,10);document.body.style.position=u.position,document.body.style.top=u.top,document.body.style.left=u.left,window.scrollTo(t,e),u=void 0}},x=function(e,t){var n,r=e.targetTouches[0].clientY-l;if(h(e.target))return!1;if(t&&0===t.scrollTop&&r>0)return p(e);return(n=t)&&n.scrollHeight-n.scrollTop<=n.clientHeight&&r<0?p(e):(e.stopPropagation(),!0)},v=function(e,t){if(!e){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}!o.some(function(t){return t.targetElement===e})&&(o=[].concat(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,n=Array(e.length);t=r&&(document.body.style.top=-(t+e))})},300)}}):f(t),a&&(e.ontouchstart=function(e){1===e.targetTouches.length&&(l=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&x(t,e)},!s&&(document.addEventListener("touchmove",p,r?{passive:!1}:void 0),s=!0)))},y=function(){a&&(o.forEach(function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null}),s&&(document.removeEventListener("touchmove",p,r?{passive:!1}:void 0),s=!1),l=-1),a?g():m(),o=[]}},640:function(e,t,n){"use strict";var r=n("1742"),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,o,s,l,c,u,d,h=!1;!t&&(t={}),o=t.debug||!1;try{if(l=r(),c=document.createRange(),u=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(n){if(n.stopPropagation(),t.format){if(n.preventDefault(),void 0===n.clipboardData){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=i[t.format]||i.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e)}t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),c.selectNodeContents(d),u.addRange(c),!document.execCommand("copy"))throw Error("copy command was unsuccessful");h=!0}catch(r){o&&console.error("unable to copy using execCommand: ",r),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),h=!0}catch(r){;o&&console.error("unable to copy using clipboardData: ",r),o&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",a=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C",s=n.replace(/#{\s*key\s*}/g,a),window.prompt(s,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(c):u.removeAllRanges()),d&&document.body.removeChild(d),l()}return h}},8255:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n("1132");function i(e,t){e.classList?e.classList.add(t):!(0,r.Z)(e,t)&&("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}},1132:function(e,t,n){"use strict";function r(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}n.d(t,{Z:function(){return r}})},4277:function(e,t,n){"use strict";function r(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function i(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))}n.d(t,{Z:function(){return i}})},8481:function(e,t){"use strict";var n,r,i;let a;n="FlexSearch",r=function e(t){let n;function r(e,t){let n=t?t.id:e&&e.id;this.id=n||0===n?n:I++,this.init(e,t),s(this,"index",function(){return this.a?Object.keys(this.a.index[this.a.keys[0]].c):Object.keys(this.c)}),s(this,"length",function(){return this.index.length})}function i(e,t,n,r){return this.u!==this.g&&(this.o=this.o.concat(n),this.u++,r&&this.o.length>=r&&(this.u=this.g),this.u===this.g&&(this.cache&&this.j.set(t,this.o),this.F&&this.F(this.o))),this}function a(e,t){let n=e.length,r=b(t),i=[];for(let a=0,o=0;a=o&&((e=(e=e[s-(i+.5>>0)])[n]||(e[n]=[]))[e.length]=r),i)}function d(e,t){if(e){let n=Object.keys(e);for(let r=0,i=n.length;r(e=e.length-t.length)?1:e?-1:0}function f(e,t){return e=e[n],e<(t=t[n])?-1:e>t?1:0}function m(e,t){let r=n.length;for(let i=0;it?1:0}function g(e,t,n){return e?{page:e,next:t?""+t:null,result:n}:n}function x(e,t,n,r,i,a,o){let s,l=[];if(!0===n){n="0";var c=""}else c=n&&n.split(":");let u=e.length;if(1o&&(c=0),(s=(c=c||0)+t)=this.m.length&&(this.C=0),this.m[this.C].postMessage({add:!0,id:e,content:t}),this.c[o]=""+this.C,n&&n(),this;if(!i){if(this.async&&"function"!=typeof importScripts){let i=this;return(o=new Promise(function(n){setTimeout(function(){i.add(e,t,null,r,!0),i=null,n()})}),n)?(o.then(n),this):o}if(n)return this.add(e,t,null,r,!0),n(),this}if(!(t=this.encode(t)).length)return this;i=b(n=this.f)?n(t):t.split(this.split),this.filter&&(i=a(i,this.filter));let p=E();p._ctx=E();let f=i.length,m=this.threshold,g=this.depth,x=this.b,v=this.i,y=this.D;for(let t=0;th;n--)u(v,p,d=s.substring(h,n),e,t,c,m,x-1)}break;default:if(l=u(v,p,s,e,1,c,m,x-1),g&&1=m)for(l=p._ctx[s]||(p._ctx[s]=E()),s=this.h[s]||(this.h[s]=j(x-(m||0))),0>(c=t-g)&&(c=0),(d=t+g+1)>f&&(d=f);ci;n--)r=a[n-1],a[n]=r,t[r]=n;a[i]=e,t[e]=i}}}return t},e}();return r}(function(){let e={},t="undefined"!=typeof Blob&&"undefined"!=typeof URL&&URL.createObjectURL;return function(n,r,i,a,o){return i=t?URL.createObjectURL(new Blob(["("+i.toString()+")()"],{type:"text/javascript"})):n+".min.js",e[n+="-"+r]||(e[n]=[]),e[n][o]=new Worker(i),e[n][o].onmessage=a,e[n][o]}}()),i=this,(a=i.define)&&a.amd?a([],function(){return r}):(a=i.modules)?a[n.toLowerCase()]=r:"object"==typeof t?e.exports=r:i[n]=r},2988:function(e,t,n){"use strict";e.exports=n("4224")},5598:function(e,t,n){var r,i;r=this,i=function(e){"use strict";function t(e){return e.replace(/(-|:)(.)/g,function(e,t,n){return n.toUpperCase()})}e=e&&e.hasOwnProperty("default")?e.default:e;var n=["table","tbody","thead","tfoot","tr"],r={for:"htmlFor",class:"className",allowfullscreen:["allowFullScreen","allowFullscreen"],autocomplete:"autoComplete",autofocus:["autoFocus"],contenteditable:"contentEditable",spellcheck:"spellCheck",srcdoc:"srcDoc",srcset:"srcSet",itemscope:"itemScope",itemprop:"itemProp",itemtype:"itemType"};function i(e,t){var n=r[t],i=document.createElement(e);if(n)return{name:Array.isArray(n)?n[0]:n,isBoolean:a(i,Array.isArray(n)?n[1]||t:n)};for(var o in i)if(o.toLowerCase()===t.toLowerCase())return{name:o,isBoolean:a(i,o)};return{name:t,isBoolean:a(i,t)}}function a(e,t){return e.setAttribute(t,""),!0===e[t]||o.indexOf(t)>-1}var o=["itemScope"];function s(t,n,r,i){void 0===i&&(i=null);var a=r[t],o=r._;return a?e.createElement(a,n,i):o?o(t,n,i):e.createElement(t,n,i)}return function(e,r){if(void 0===r&&(r={}),"string"!=typeof e)throw TypeError("Expected HTML string");var a=document.createElement("div");a.innerHTML=e.trim();var o=Array.from(a.childNodes).map(function(e,a){return function e(r,a,o){var l,c,u,d,h=o.transform||{},p=o.preserveAttributes||[],f=o.dangerouslySetChildren||["style"],m=h._;if(8===r.nodeType)return null;if(3===r.nodeType){var g=r.textContent;return m?m(g):g}for(var x={},v=r.attributes,y=0;y1){var i,o=(i=r[0].trim(),/^-ms-/.test(i)&&(i=i.substr(1)),i.startsWith("--")?i:t(i)),s=(n=r.slice(1).join(":").trim(),/^\d+$/.test(n)?Number(n):n.replace(/'/g,'"'));a[o]=s}}),a);else{var s=c[n],h=""===s||String(s).toLowerCase()===r.toLowerCase();e[o.name]=o.isBoolean?h:s}return e},{})),k=Array.from(r.childNodes).map(function(t,r){return n.indexOf(b)>-1&&3===t.nodeType&&(t.textContent=t.textContent.trim(),""===t.textContent)?null:e(t,a+"."+r,o)}).filter(Boolean);if(f.indexOf(b)>-1){var j=r.innerHTML;return j&&("style"!==b&&"script"!==b&&(j=j.replace(/"/g,""")),w.dangerouslySetInnerHTML={__html:j.trim()}),s(b,w,h)}return s(b,w,h,0===k.length?null:k)}(e,String(a),r)}).filter(Boolean);return 1===o.length?o[0]:o}},"object"==typeof t?e.exports=i(n("7294")):"function"==typeof define&&define.amd?define(["react"],i):(r=r||self).htmr=i(r.React)},1143:function(e){"use strict";e.exports=function(e,t,n,r,i,a,o,s){if(!e){var l;if(void 0===t)l=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,a,o,s],u=0;(l=Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},2557:function(e,t){"use strict";var n=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},u=window.Promise||function(e){function t(){}e(t,t)},d=function(){for(var e=arguments.length,t=Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.target,r=function(){var e={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},t=void 0,r=void 0;if(y.container){if(y.container instanceof Object)t=(e=n({},e,y.container)).width-e.left-e.right-2*y.margin,r=e.height-e.top-e.bottom-2*y.margin;else{var o=(i(y.container)?y.container:document.querySelector(y.container)).getBoundingClientRect();e=n({},e,{width:o.width,height:o.height,left:o.left,top:o.top})}}t=t||e.width-2*y.margin,r=r||e.height-2*y.margin;var s=b.zoomedHd||b.original,l=a(s)?t:s.naturalWidth||t,c=a(s)?r:s.naturalHeight||r,u=s.getBoundingClientRect(),d=u.top,h=u.left,p=u.width,f=u.height,m=Math.min(Math.min(Math.max(p,l),t)/p,Math.min(Math.max(f,c),r)/f),g=(-h+(t-p)/2+y.margin+e.left)/m,x=(-d+(r-f)/2+y.margin+e.top)/m,v="scale("+m+") translate3d("+g+"px, "+x+"px, 0)";b.zoomed.style.transform=v,b.zoomedHd&&(b.zoomedHd.style.transform=v)};return new u(function(e){if(t&&-1===m.indexOf(t)){e(k);return}if(b.zoomed){e(k);return}if(t)b.original=t;else if(m.length>0){var n=m;b.original=n[0]}else{e(k);return}if(b.original.dispatchEvent(c("medium-zoom:open",{detail:{zoom:k}})),v=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,x=!0,b.zoomed=l(b.original),document.body.appendChild(w),y.template){var a=i(y.template)?y.template:document.querySelector(y.template);b.template=document.createElement("div"),b.template.appendChild(a.content.cloneNode(!0)),document.body.appendChild(b.template)}if(b.original.parentElement&&"PICTURE"===b.original.parentElement.tagName&&b.original.currentSrc&&(b.zoomed.src=b.original.currentSrc),document.body.appendChild(b.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),b.original.classList.add("medium-zoom-image--hidden"),b.zoomed.classList.add("medium-zoom-image--opened"),b.zoomed.addEventListener("click",p),b.zoomed.addEventListener("transitionend",function t(){x=!1,b.zoomed.removeEventListener("transitionend",t),b.original.dispatchEvent(c("medium-zoom:opened",{detail:{zoom:k}})),e(k)}),b.original.getAttribute("data-zoom-src")){b.zoomedHd=b.zoomed.cloneNode(),b.zoomedHd.removeAttribute("srcset"),b.zoomedHd.removeAttribute("sizes"),b.zoomedHd.removeAttribute("loading"),b.zoomedHd.src=b.zoomed.getAttribute("data-zoom-src"),b.zoomedHd.onerror=function(){clearInterval(o),console.warn("Unable to reach the zoom image target "+b.zoomedHd.src),b.zoomedHd=null,r()};var o=setInterval(function(){b.zoomedHd.complete&&(clearInterval(o),b.zoomedHd.classList.add("medium-zoom-image--opened"),b.zoomedHd.addEventListener("click",p),document.body.appendChild(b.zoomedHd),r())},10)}else if(b.original.hasAttribute("srcset")){b.zoomedHd=b.zoomed.cloneNode(),b.zoomedHd.removeAttribute("sizes"),b.zoomedHd.removeAttribute("loading");var s=b.zoomedHd.addEventListener("load",function(){b.zoomedHd.removeEventListener("load",s),b.zoomedHd.classList.add("medium-zoom-image--opened"),b.zoomedHd.addEventListener("click",p),document.body.appendChild(b.zoomedHd),r()})}else r()})},p=function(){return new u(function(e){if(x||!b.original){e(k);return}x=!0,document.body.classList.remove("medium-zoom--opened"),b.zoomed.style.transform="",b.zoomedHd&&(b.zoomedHd.style.transform=""),b.template&&(b.template.style.transition="opacity 150ms",b.template.style.opacity=0),b.original.dispatchEvent(c("medium-zoom:close",{detail:{zoom:k}})),b.zoomed.addEventListener("transitionend",function t(){b.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(b.zoomed),b.zoomedHd&&document.body.removeChild(b.zoomedHd),document.body.removeChild(w),b.zoomed.classList.remove("medium-zoom-image--opened"),b.template&&document.body.removeChild(b.template),x=!1,b.zoomed.removeEventListener("transitionend",t),b.original.dispatchEvent(c("medium-zoom:closed",{detail:{zoom:k}})),b.original=null,b.zoomed=null,b.zoomedHd=null,b.template=null,e(k)})})},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.target;return b.original?p():h({target:t})},m=[],g=[],x=!1,v=0,y=r,b={original:null,zoomed:null,zoomedHd:null,template:null};"[object Object]"===Object.prototype.toString.call(t)?y=t:(t||"string"==typeof t)&&d(t);var w=s((y=n({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},y)).background);document.addEventListener("click",function(e){var t=e.target;if(t===w){p();return}-1!==m.indexOf(t)&&f({target:t})}),document.addEventListener("keyup",function(e){var t=e.key||e.keyCode;("Escape"===t||"Esc"===t||27===t)&&p()}),document.addEventListener("scroll",function(){if(!x&&b.original){var e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(v-e)>y.scrollOffset&&setTimeout(p,150)}}),window.addEventListener("resize",p);var k={open:h,close:p,toggle:f,update:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.background&&(w.style.background=e.background),e.container&&e.container instanceof Object&&(e.container=n({},y.container,e.container)),e.template){var t=i(e.template)?e.template:document.querySelector(e.template);e.template=t}return y=n({},y,e),m.forEach(function(e){e.dispatchEvent(c("medium-zoom:update",{detail:{zoom:k}}))}),k},clone:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e(n({},y,t))},attach:d,detach:function(){for(var e=arguments.length,t=Array(e),n=0;n0?t.reduce(function(e,t){return[].concat(e,o(t))},[]):m;return r.forEach(function(e){e.classList.remove("medium-zoom-image"),e.dispatchEvent(c("medium-zoom:detach",{detail:{zoom:k}}))}),m=m.filter(function(e){return -1===r.indexOf(e)}),k},on:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return m.forEach(function(r){r.addEventListener("medium-zoom:"+e,t,n)}),g.push({type:"medium-zoom:"+e,listener:t,options:n}),k},off:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return m.forEach(function(r){r.removeEventListener("medium-zoom:"+e,t,n)}),g=g.filter(function(n){return!(n.type==="medium-zoom:"+e&&n.listener.toString()===t.toString())}),k},getOptions:function(){return y},getImages:function(){return m},getZoomedImage:function(){return b.original}};return k}},4865:function(e,t){var n,r;n=this,r=function(){var e,t,n,r={};r.version="0.2.0";var i=r.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
        '};function a(e,t,n){return en?n:e}function o(e){return(-1+e)*100}r.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(i[t]=n);return this},r.status=null,r.set=function(e){var t=r.isStarted();e=a(e,i.minimum,1),r.status=1===e?null:e;var n=r.render(!t),o=n.querySelector(i.barSelector),c=i.speed,u=i.easing;return n.offsetWidth,s(function(t){""===i.positionUsing&&(i.positionUsing=r.getPositioningCSS()),l(o,function(e,t,n){var r;if("translate3d"===i.positionUsing)r={transform:"translate3d("+(-1+e)*100+"%,0,0)"};else if("translate"===i.positionUsing)r={transform:"translate("+(-1+e)*100+"%,0)"};else r={"margin-left":(-1+e)*100+"%"};return r.transition="all "+t+"ms "+n,r}(e,c,u)),1===e?(l(n,{transition:"none",opacity:1}),n.offsetWidth,setTimeout(function(){l(n,{transition:"all "+c+"ms linear",opacity:0}),setTimeout(function(){r.remove(),t()},c)},c)):setTimeout(t,c)}),this},r.isStarted=function(){return"number"==typeof r.status},r.start=function(){!r.status&&r.set(0);var e=function(){setTimeout(function(){r.status&&(r.trickle(),e())},i.trickleSpeed)};return i.trickle&&e(),this},r.done=function(e){return e||r.status?r.inc(.3+.5*Math.random()).set(1):this},r.inc=function(e){var t=r.status;return t?("number"!=typeof e&&(e=(1-t)*a(Math.random()*t,.1,.95)),t=a(t+e,0,.994),r.set(t)):r.start()},r.trickle=function(){return r.inc(Math.random()*i.trickleRate)},e=0,t=0,r.promise=function(n){return n&&"resolved"!==n.state()?(0===t&&r.start(),e++,t++,n.always(function(){0==--t?(e=0,r.done()):r.set((e-t)/e)}),this):this},r.render=function(e){if(r.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=i.template;var n,a=t.querySelector(i.barSelector),o=e?"-100":function(e){return(-1+e)*100}(r.status||0),s=document.querySelector(i.parent);return l(a,{transition:"all 0 linear",transform:"translate3d("+o+"%,0,0)"}),!i.showSpinner&&(n=t.querySelector(i.spinnerSelector))&&p(n),s!=document.body&&u(s,"nprogress-custom-parent"),s.appendChild(t),t},r.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(i.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&p(e)},r.isRendered=function(){return!!document.getElementById("nprogress")},r.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective" in e?"translate3d":t+"Transform" in e?"translate":"margin"};var s=(n=[],function(e){n.push(e),1==n.length&&!function e(){var t=n.shift();t&&t(e)}()}),l=function(){var e=["Webkit","O","Moz","ms"],t={};function n(n,r,i){r=function(n){return t[n=n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[n]=function(t){var n=document.body.style;if(t in n)return t;for(var r,i=e.length,a=t.charAt(0).toUpperCase()+t.slice(1);i--;)if((r=e[i]+a)in n)return r;return t}(n))}(r),n.style[r]=i}return function(e,t){var r,i,a=arguments;if(2==a.length)for(r in t)void 0!==(i=t[r])&&t.hasOwnProperty(r)&&n(e,r,i);else n(e,a[1],a[2])}}();function c(e,t){return("string"==typeof e?e:h(e)).indexOf(" "+t+" ")>=0}function u(e,t){var n=h(e),r=n+t;!c(n,t)&&(e.className=r.substring(1))}function d(e,t){var n,r=h(e);c(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function h(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function p(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return r},"function"==typeof define&&define.amd?define(r):"object"==typeof t?e.exports=r():n.NProgress=r()},2703:function(e,t,n){"use strict";var r=n("414");function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},5697:function(e,t,n){e.exports=n("2703")()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9590:function(e){var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;e.exports=function(e,a){try{return function e(a,o){if(a===o)return!0;if(a&&o&&"object"==typeof a&&"object"==typeof o){var s,l,c,u;if(a.constructor!==o.constructor)return!1;if(Array.isArray(a)){if((s=a.length)!=o.length)return!1;for(l=s;0!=l--;)if(!e(a[l],o[l]))return!1;return!0}if(n&&a instanceof Map&&o instanceof Map){if(a.size!==o.size)return!1;for(u=a.entries();!(l=u.next()).done;)if(!o.has(l.value[0]))return!1;for(u=a.entries();!(l=u.next()).done;)if(!e(l.value[1],o.get(l.value[0])))return!1;return!0}if(r&&a instanceof Set&&o instanceof Set){if(a.size!==o.size)return!1;for(u=a.entries();!(l=u.next()).done;)if(!o.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(o)){if((s=a.length)!=o.length)return!1;for(l=s;0!=l--;)if(a[l]!==o[l])return!1;return!0}if(a.constructor===RegExp)return a.source===o.source&&a.flags===o.flags;if(a.valueOf!==Object.prototype.valueOf&&"function"==typeof a.valueOf&&"function"==typeof o.valueOf)return a.valueOf()===o.valueOf();if(a.toString!==Object.prototype.toString&&"function"==typeof a.toString&&"function"==typeof o.toString)return a.toString()===o.toString();if((s=(c=Object.keys(a)).length)!==Object.keys(o).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(o,c[l]))return!1;if(t&&a instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!a.$$typeof)&&!e(a[c[l]],o[c[l]]))return!1;return!0}return a!=a&&o!=o}(e,a)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},405:function(e,t,n){"use strict";n.d(t,{B6:function(){return D},ql:function(){return Y}});var r=n("7294"),i=n("5697"),a=n.n(i),o=n("9590"),s=n.n(o),l=n("1143"),c=n.n(l),u=n("6774"),d=n.n(u);function h(){return(h=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var g={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},x={rel:["amphtml","canonical","alternate"]},v={type:["application/ld+json"]},y={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},b=Object.keys(g).map(function(e){return g[e]}),w={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},k=Object.keys(w).reduce(function(e,t){return e[w[t]]=t,e},{}),j=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},E=function(e){var t=j(e,g.TITLE),n=j(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,function(){return t});var r=j(e,"defaultTitle");return t||r||void 0},S=function(e,t){return t.filter(function(t){return void 0!==t[e]}).map(function(t){return t[e]}).reduce(function(e,t){return h({},e,t)},{})},N=function(e,t,n){var r={};return n.filter(function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)}).map(function(t){return t[e]}).reverse().reduce(function(e,n){var i={};n.filter(function(e){for(var n,a=Object.keys(e),o=0;o/g,">").replace(/"/g,""").replace(/'/g,"'")},O=function(e){return Object.keys(e).reduce(function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r},"")},L=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce(function(t,n){return t[w[n]||n]=e[n],t},t)},M=function(e,t){return t.map(function(t,n){var i,a=((i={key:n})["data-rh"]=!0,i);return Object.keys(t).forEach(function(e){var n=w[e]||e;"innerHTML"===n||"cssText"===n?a.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:a[n]=t[e]}),r.createElement(e,a)})},z=function(e,t,n){switch(e){case g.TITLE:return{toComponent:function(){var e,n,i,a;return n=t.titleAttributes,(i={key:e=t.title})["data-rh"]=!0,a=L(n,i),[r.createElement(g.TITLE,a,e)]},toString:function(){var r,i,a,o,s,l;return r=e,i=t.title,a=t.titleAttributes,o=n,s=O(a),l=A(i),s?"<"+r+' data-rh="true" '+s+">"+P(l,o)+"":"<"+r+' data-rh="true">'+P(l,o)+""}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return L(t)},toString:function(){return O(t)}};default:return{toComponent:function(){return M(e,t)},toString:function(){var r,i,a;return r=e,i=t,a=n,i.reduce(function(e,t){var n=Object.keys(t).filter(function(e){return!("innerHTML"===e||"cssText"===e)}).reduce(function(e,n){var r=void 0===t[n]?n:n+'="'+P(t[n],a)+'"';return e?e+" "+r:r},""),i=t.innerHTML||t.cssText||"",o=-1===_.indexOf(r);return e+"<"+r+' data-rh="true" '+n+(o?"/>":">"+i+"")},"")}}}},R=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,i=e.htmlAttributes,a=e.noscriptTags,o=e.styleTags,s=e.title,l=e.titleAttributes,c=e.linkTags,u=e.metaTags,d=e.scriptTags,h={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var p,f,m,b,w,k,j,E=(f=(p=e).linkTags,m=p.scriptTags,b=p.encode,w=I(p.metaTags,y),k=I(f,x),j=I(m,v),{priorityMethods:{toComponent:function(){return[].concat(M(g.META,w.priority),M(g.LINK,k.priority),M(g.SCRIPT,j.priority))},toString:function(){return z(g.META,w.priority,b)+" "+z(g.LINK,k.priority,b)+" "+z(g.SCRIPT,j.priority,b)}},metaTags:w.default,linkTags:k.default,scriptTags:j.default});h=E.priorityMethods,c=E.linkTags,u=E.metaTags,d=E.scriptTags}return{priority:h,base:z(g.BASE,t,r),bodyAttributes:z("bodyAttributes",n,r),htmlAttributes:z("htmlAttributes",i,r),link:z(g.LINK,c,r),meta:z(g.META,u,r),noscript:z(g.NOSCRIPT,a,r),script:z(g.SCRIPT,d,r),style:z(g.STYLE,o,r),title:z(g.TITLE,{title:void 0===s?"":s,titleAttributes:l},r)}},$=[],F=function(e,t){var n=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){n.context.helmet=e},helmetInstances:{get:function(){return n.canUseDOM?$:n.instances},add:function(e){(n.canUseDOM?$:n.instances).push(e)},remove:function(e){var t=(n.canUseDOM?$:n.instances).indexOf(e);(n.canUseDOM?$:n.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=R({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},B=r.createContext({}),H=a().shape({setHelmet:a().func,helmetInstances:a().shape({get:a().func,add:a().func,remove:a().func})}),D=function(e){function t(n){var r;return(r=e.call(this,n)||this).helmetData=new F(r.props.context,t.canUseDOM),r}return p(t,e),t.prototype.render=function(){return r.createElement(B.Provider,{value:this.helmetData.value},this.props.children)},t}(r.Component);D.canUseDOM="undefined"!=typeof document,D.propTypes={context:a().shape({helmet:a().shape()}),children:a().node.isRequired},D.defaultProps={context:{}},D.displayName="HelmetProvider";var Z=function(e,t){var n,r=document.head||document.querySelector(g.HEAD),i=r.querySelectorAll(e+"[data-rh]"),a=[].slice.call(i),o=[];return t&&t.length&&t.forEach(function(t){var r=document.createElement(e);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&("innerHTML"===i?r.innerHTML=t.innerHTML:"cssText"===i?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(i,void 0===t[i]?"":t[i]));r.setAttribute("data-rh","true"),a.some(function(e,t){return n=t,r.isEqualNode(e)})?a.splice(n,1):o.push(r)}),a.forEach(function(e){return e.parentNode.removeChild(e)}),o.forEach(function(e){return r.appendChild(e)}),{oldTags:a,newTags:o}},q=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-rh"),i=r?r.split(","):[],a=[].concat(i),o=Object.keys(t),s=0;s=0;d-=1)n.removeAttribute(a[d]);i.length===a.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==o.join(",")&&n.setAttribute("data-rh",o.join(","))}},U=function(e,t){var n,r,i=e.baseTag,a=e.htmlAttributes,o=e.linkTags,s=e.metaTags,l=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,d=e.styleTags,h=e.title,p=e.titleAttributes;q(g.BODY,e.bodyAttributes),q(g.HTML,a),n=h,r=p,void 0!==n&&document.title!==n&&(document.title=A(n)),q(g.TITLE,r);var f={baseTag:Z(g.BASE,i),linkTags:Z(g.LINK,o),metaTags:Z(g.META,s),noscriptTags:Z(g.NOSCRIPT,l),scriptTags:Z(g.SCRIPT,u),styleTags:Z(g.STYLE,d)},m={},x={};Object.keys(f).forEach(function(e){var t=f[e],n=t.newTags,r=t.oldTags;n.length&&(m[e]=n),r.length&&(x[e]=f[e].oldTags)}),t&&t(),c(e,m,x)},V=null,W=function(e){function t(){for(var t,n=arguments.length,r=Array(n),i=0;i elements are self-closing and can not contain children. Refer to our API for more information.")}},n.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return h({},r,((t={})[n.type]=[].concat(r[n.type]||[],[h({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.mapObjectTypeChildren=function(e){var t,n,r=e.child,i=e.newProps,a=e.newChildProps,o=e.nestedChildren;switch(r.type){case g.TITLE:return h({},i,((t={})[r.type]=o,t.titleAttributes=h({},a),t));case g.BODY:return h({},i,{bodyAttributes:h({},a)});case g.HTML:return h({},i,{htmlAttributes:h({},a)});default:return h({},i,((n={})[r.type]=h({},a),n))}},n.mapArrayTypeChildrenToProps=function(e,t){var n=h({},t);return Object.keys(e).forEach(function(t){var r;n=h({},n,((r={})[t]=e[t],r))}),n},n.warnOnInvalidChildren=function(e,t){return c()(b.some(function(t){return e.type===t}),"function"==typeof e.type?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+b.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),c()(!t||"string"==typeof t||Array.isArray(t)&&!t.some(function(e){return"string"!=typeof e}),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``} ) Refer to our API for more information."),!0},n.mapChildrenToProps=function(e,t){var n=this,i={};return r.Children.forEach(e,function(e){if(e&&e.props){var r=e.props,a=r.children,o=m(r,G),s=Object.keys(o).reduce(function(e,t){return e[k[t]||t]=o[t],e},{}),l=e.type;switch("symbol"==typeof l?l=l.toString():n.warnOnInvalidChildren(e,a),l){case g.FRAGMENT:t=n.mapChildrenToProps(a,t);break;case g.LINK:case g.META:case g.NOSCRIPT:case g.SCRIPT:case g.STYLE:i=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:i,newChildProps:s,nestedChildren:a});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:a})}}}),this.mapArrayTypeChildrenToProps(i,t)},n.render=function(){var e=this.props,t=e.children,n=m(e,K),i=h({},n),a=n.helmetData;return t&&(i=this.mapChildrenToProps(t,i)),!a||a instanceof F||(a=new F(a.context,a.instances)),a?r.createElement(W,h({},i,{context:a.value,helmetData:void 0})):r.createElement(B.Consumer,null,function(e){return r.createElement(W,h({},i,{context:e}))})},t}(r.Component);Y.propTypes={base:a().object,bodyAttributes:a().object,children:a().oneOfType([a().arrayOf(a().node),a().node]),defaultTitle:a().string,defer:a().bool,encodeSpecialCharacters:a().bool,htmlAttributes:a().object,link:a().arrayOf(a().object),meta:a().arrayOf(a().object),noscript:a().arrayOf(a().object),onChangeClientState:a().func,script:a().arrayOf(a().object),style:a().arrayOf(a().object),title:a().string,titleAttributes:a().object,titleTemplate:a().string,prioritizeSeoTags:a().bool,helmetData:a().object},Y.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},Y.displayName="Helmet"},3040:function(e,t,n){"use strict";t.lazyWithPreload=void 0;var r,i=n("7294");function a(e){var t,n,r=(0,i.lazy)(e),a=(0,i.forwardRef)(function(e,n){var a=(0,i.useRef)(null!=t?t:r);return(0,i.createElement)(a.current,Object.assign(n?{ref:n}:{},e))});return a.preload=function(){return!n&&(n=e().then(function(e){return t=e.default})),n},a}t.lazyWithPreload=a},6880:function(e,t,n){"use strict";function r(e,t){return -1!==e.listLanguages().indexOf(t)}n.d(t,{Z:function(){return r}})},5382:function(e,t,n){"use strict";n.d(t,{ZP:function(){return u}});var r=n("6019"),i=n("7508"),a=n("7294");function o(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}function s(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return(function(e){if(0===e.length||1===e.length)return e;var t,n,r=e.join(".");if(!l[r]){;l[r]=0===(n=(t=e).length)||1===n?t:2===n?[t[0],t[1],"".concat(t[0],".").concat(t[1]),"".concat(t[1],".").concat(t[0])]:3===n?[t[0],t[1],t[2],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0])]:n>=4?[t[0],t[1],t[2],t[3],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[2],".").concat(t[3]),"".concat(t[3],".").concat(t[0]),"".concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[0]),"".concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[3],".").concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[2],".").concat(t[1],".").concat(t[0])]:void 0}return l[r]})(e.filter(function(e){return"token"!==e})).reduce(function(e,t){return s(s({},e),n[t])},t)}(d.className,Object.assign({},d.style,void 0===i?{}:i),n)})}else v=s(s({},d),{},{className:d.className.join(" ")});var j=y(t.children);return a.createElement(p,(0,r.Z)({key:c},v),j)}}},125:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n("7354"),i=n("4220"),a=n("7508"),o=n("7294"),s=n("5382"),l=n("6880"),c=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function u(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}function d(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=0;a2&&void 0!==arguments[2]?arguments[2]:[];return t||o.length>0?function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return g({children:e,lineNumber:t,lineNumberStyle:l,largestLineNumber:s,showInlineLineNumbers:a,lineProps:n,className:i,showLineNumbers:r,wrapLongLines:c})}(e,i,o):function(e,t){if(r&&t&&a){var n=m(l,t,s);e.unshift(f(t,n))}return e}(e,i)}for(;v>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],a=r.variable[1].inside,o=0;o]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}e.exports=t,t.displayName="clike",t.aliases=[]},2049:function(e){"use strict";function t(e){var t,n,r;n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,(t=e).languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css,(r=t.languages.markup)&&(r.tag.addInlined("style","css"),r.tag.addAttribute("style","css"))}e.exports=t,t.displayName="css",t.aliases=[]},3336:function(e){"use strict";function t(e){var t,n;(t=e).languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]},Object.keys(n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"}).forEach(function(e){var r=n[e],i=[];!/^\w+$/.test(e)&&i.push(/\w+/.exec(e)[0]),"diff"===e&&i.push("bold"),t.languages.diff[e]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(e)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})}e.exports=t,t.displayName="diff",t.aliases=[]},6155:function(e){"use strict";function t(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|")+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}e.exports=t,t.displayName="javascript",t.aliases=["js"]},5950:function(e){"use strict";function t(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}e.exports=t,t.displayName="json",t.aliases=["webmanifest"]},6412:function(e){"use strict";function t(e){!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function a(e,t){return RegExp(e=e.replace(//g,function(){return n}).replace(//g,function(){return r}).replace(//g,function(){return i}),t)}i=a(i).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=a(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:a(//.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var o=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(o).join(""):""},s=function(t){for(var n=[],r=0;r0&&n[n.length-1].tagName===o(i.content[0].content[1])&&n.pop():"/>"===i.content[i.content.length-1].content||n.push({tagName:o(i.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===i.type&&"{"===i.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===i.type&&"}"===i.content?n[n.length-1].openedBraces--:a=!0),(a||"string"==typeof i)&&n.length>0&&0===n[n.length-1].openedBraces){var l=o(i);r0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(l=o(t[r-1])+l,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",l,null,l)}i.content&&"string"!=typeof i.content&&s(i.content)}};e.hooks.add("after-tokenize",function(e){("jsx"===e.language||"tsx"===e.language)&&s(e.tokens)})}(e)}e.exports=t,t.displayName="jsx",t.aliases=[]},1701:function(e){"use strict";function t(e){e.languages.less=e.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),e.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}e.exports=t,t.displayName="less",t.aliases=[]},542:function(e){"use strict";function t(e){!function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(//g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+a+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+a+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(t){["url","bold","italic","strike","code-snippet"].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add("after-tokenize",function(e){("markdown"===e.language||"md"===e.language)&&function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(e)}e.exports=t,t.displayName="markdown",t.aliases=["md"]},2717:function(e){"use strict";function t(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(t,n){var r={};r["language-"+n]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[n]},r.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:r}};i["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var a={};a[t]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return t}),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}e.exports=t,t.displayName="markup",t.aliases=["html","mathml","svg","xml","ssml","atom","rss"]},4296:function(e){"use strict";function t(e){e.languages.scss=e.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),e.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),e.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),e.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),e.languages.scss.atrule.inside.rest=e.languages.scss}e.exports=t,t.displayName="scss",t.aliases=[]},7041:function(e,t,n){"use strict";var r=n("6412"),i=n("4979");function a(e){var t,n,a;e.register(r),e.register(i),n=(t=e).util.clone(t.languages.typescript),t.languages.tsx=t.languages.extend("jsx",n),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"],(a=t.languages.tsx.tag).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+a.pattern.source+")",a.pattern.flags),a.lookbehind=!0}e.exports=a,a.displayName="tsx",a.aliases=[]},4979:function(e){"use strict";function t(e){var t,n;(t=e).languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"],n=t.languages.extend("typescript",{}),delete n["class-name"],t.languages.typescript["class-name"].inside=n,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),t.languages.ts=t.languages.typescript}e.exports=t,t.displayName="typescript",t.aliases=["ts"]},3808:function(e){"use strict";function t(e){!function(e){function t(t,n){e.languages[t]&&e.languages.insertBefore(t,"comment",{"doc-comment":n})}var n=e.languages.markup.tag,r={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:n}};t("csharp",r),t("fsharp",r),t("vbnet",{pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:n}})}(e)}e.exports=t,t.displayName="xmlDoc",t.aliases=[]},5039:function(e){"use strict";function t(e){!function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ ]+"+t.source+")?|"+t.source+"(?:[ ]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(e,t){return t=(t||"").replace(/m/g,"")+"m",RegExp(/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return r}).replace(/<>/g,function(){return e}),t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return r})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return r}).replace(/<>/g,function(){return"(?:"+i+"|"+a+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(a),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(e)}e.exports=t,t.displayName="yaml",t.aliases=["yml"]},7003:function(e,t){"use strict";t.parse=function(e){for(var t,n=[],r=String(e||""),i=r.indexOf(","),a=0,o=!1;!o;)-1===i&&(i=r.length,o=!0),((t=r.slice(a,i).trim())||!o)&&n.push(t),a=i+1,i=r.indexOf(",",a);return n};function n(e,t){var n=t||{},r=!1===n.padLeft?"":" ",i=n.padRight?" ":"";return""===e[e.length-1]&&(e=e.concat("")),e.join(i+","+r).trim()}},4995:function(e){"use strict";e.exports=function(e,n){for(var r,i,a,o=e||"",s=n||"div",l={},c=0;c=97&&t<=122||t>=65&&t<=90}},2783:function(e,t,n){"use strict";var r=n("166"),i=n("1250");e.exports=function(e){return r(e)||i(e)}},1250:function(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},9956:function(e){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},1e3:function(e){"use strict";var t;e.exports=function(e){var n,r="&"+e+";";return(t=t||document.createElement("i")).innerHTML=r,(59!==(n=t.textContent).charCodeAt(n.length-1)||"semi"===e)&&n!==r&&n}},2921:function(e,t,n){"use strict";var r=n("7854"),i=n("1636"),a=n("1250"),o=n("9956"),s=n("2783"),l=n("1000");e.exports=function(e,t){var n,a,o={};for(a in!t&&(t={}),h)n=t[a],o[a]=null==n?h[a]:n;return(o.position.indent||o.position.start)&&(o.indent=o.position.indent||[],o.position=o.position.start),function(e,t){var n,a,o,h,y,b,w,k,j,E,S,N,C,A,I,T,_,P,O,L=t.additional,M=t.nonTerminated,z=t.text,R=t.reference,$=t.warning,F=t.textContext,B=t.referenceContext,H=t.warningContext,D=t.position,Z=t.indent||[],q=e.length,U=0,V=-1,W=D.column||1,G=D.line||1,K="",Y=[];for("string"==typeof L&&(L=L.charCodeAt(0)),T=J(),k=$?function(e,t){var n=J();n.column+=t,n.offset+=t,$.call(H,v[e],n,e)}:d,U--,q++;++U=55296&&e<=57343||e>1114111}(b=parseInt(h,g[A]))?(k(7,P),b=u(65533)):b in i?(k(6,P),b=i[b]):(E="",function(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(65535&e)==65535||(65535&e)==65534}(b)&&k(6,P),b>65535&&(b-=65536,E+=u(b>>>10|55296),b=56320|1023&b),b=E+u(b))):A!==p&&k(4,P);b?(Q(),T=J(),U=O-1,W+=O-C+1,Y.push(b),_=J(),_.offset++,R&&R.call(B,b,{start:T,end:_},e.slice(C-1,O)),T=_):(h=e.slice(C-1,O),K+=h,W+=h.length,U=O-1)}else 10===y&&(G++,V++,W=0),y==y?(K+=u(y),W++):Q();return Y.join("");function J(){return{line:G,column:W,offset:U+(D.offset||0)}}function Q(){K&&(Y.push(K),z&&z.call(F,K,{start:T,end:J()}),K="")}}(e,o)};var c={}.hasOwnProperty,u=String.fromCharCode,d=Function.prototype,h={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},p="named",f="hexadecimal",m="decimal",g={};g[f]=16,g[m]=10;var x={};x[p]=s,x[m]=a,x[f]=o;var v={};v[1]="Named character references must be terminated by a semicolon",v[2]="Numeric character references must be terminated by a semicolon",v[3]="Named character references cannot be empty",v[4]="Numeric character references cannot be empty",v[5]="Named character references must be known",v[6]="Numeric character references cannot be disallowed",v[7]="Numeric character references cannot be outside the permissible Unicode range"},9216:function(e,t,n){var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=u.reach));k+=w.value.length,w=w.next){var j,E=w.value;if(n.length>t.length)return;if(!(E instanceof a)){var S=1;if(x){if(!(j=o(b,k,t,g))||j.index>=t.length)break;var N=j.index,C=j.index+j[0].length,A=k;for(A+=w.value.length;N>=A;)A+=(w=w.next).value.length;if(A-=w.value.length,k=A,w.value instanceof a)continue;for(var I=w;I!==n.tail&&(Au.reach&&(u.reach=O);var L=w.prev;if(_&&(L=l(n,L,_),k+=_.length),function(e,t,n){for(var r=t.next,i=0;i1){var M={cause:d+","+p,reach:O};e(t,n,r,w.prev,k,M),u&&M.reach>u.reach&&(u.reach=M.reach)}}}}}}(e,c,t,c.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(c)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(n&&n.length)for(var r,a=0;r=n[a++];)r(t)}},Token:a};function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function o(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}e.Prism=i,a.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=e(t,n)}),r}var a={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(a.classes,o):a.classes.push(o)),i.hooks.run("wrap",a);var s="";for(var l in a.attributes)s+=" "+l+'="'+(a.attributes[l]||"").replace(/"/g,""")+'"';return"<"+a.tag+' class="'+a.classes.join(" ")+'"'+s+">"+a.content+""};function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function l(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}if(!e.document)return e.addEventListener?(!i.disableWorkerMessageHandler&&e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,a=n.code,o=n.immediateClose;e.postMessage(i.highlight(a,i.languages[r],r)),o&&e.close()},!1),i):i;var c=i.util.currentScript();function u(){!i.manual&&i.highlightAll()}if(c&&(i.filename=c.src,c.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var d=document.readyState;"loading"===d||"interactive"===d&&c&&c.defer?document.addEventListener("DOMContentLoaded",u):window.requestAnimationFrame?window.requestAnimationFrame(u):window.setTimeout(u,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r)},5605:function(e,t,n){"use strict";var r=n("3343"),i=n("3405"),a=n("3806"),o="data";e.exports=function(e,t){var n=r(t),h=t,p=a;return n in e.normal?e.property[e.normal[n]]:(n.length>4&&n.slice(0,4)===o&&s.test(t)&&("-"===t.charAt(4)?h=function(e){var t=e.slice(5).replace(l,d);return o+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);return l.test(t)?e:("-"!==(t=t.replace(c,u)).charAt(0)&&(t="-"+t),o+t)}(t),p=i),new p(h,t))};var s=/^data[-\w.:]+$/i,l=/-[a-z]/g,c=/[A-Z]/g;function u(e){return"-"+e.toLowerCase()}function d(e){return e.charAt(1).toUpperCase()}},7034:function(e,t,n){"use strict";var r=n("2627"),i=n("9501"),a=n("822"),o=n("7109"),s=n("5956"),l=n("4330");e.exports=r([a,i,o,s,l])},5956:function(e,t,n){"use strict";var r=n("3941"),i=n("5260"),a=r.booleanish,o=r.number,s=r.spaceSeparated;e.exports=i({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:a,ariaAutoComplete:null,ariaBusy:a,ariaChecked:a,ariaColCount:o,ariaColIndex:o,ariaColSpan:o,ariaControls:s,ariaCurrent:null,ariaDescribedBy:s,ariaDetails:null,ariaDisabled:a,ariaDropEffect:s,ariaErrorMessage:null,ariaExpanded:a,ariaFlowTo:s,ariaGrabbed:a,ariaHasPopup:null,ariaHidden:a,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:s,ariaLevel:o,ariaLive:null,ariaModal:a,ariaMultiLine:a,ariaMultiSelectable:a,ariaOrientation:null,ariaOwns:s,ariaPlaceholder:null,ariaPosInSet:o,ariaPressed:a,ariaReadOnly:a,ariaRelevant:null,ariaRequired:a,ariaRoleDescription:s,ariaRowCount:o,ariaRowIndex:o,ariaRowSpan:o,ariaSelected:a,ariaSetSize:o,ariaSort:null,ariaValueMax:o,ariaValueMin:o,ariaValueNow:o,ariaValueText:null,role:null}})},4330:function(e,t,n){"use strict";var r=n("3941"),i=n("5260"),a=n("6716"),o=r.boolean,s=r.overloadedBoolean,l=r.booleanish,c=r.number,u=r.spaceSeparated,d=r.commaSeparated;e.exports=i({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:a,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:d,acceptCharset:u,accessKey:u,action:null,allow:null,allowFullScreen:o,allowPaymentRequest:o,allowUserMedia:o,alt:null,as:null,async:o,autoCapitalize:null,autoComplete:u,autoFocus:o,autoPlay:o,capture:o,charSet:null,checked:o,cite:null,className:u,cols:c,colSpan:null,content:null,contentEditable:l,controls:o,controlsList:u,coords:c|d,crossOrigin:null,data:null,dateTime:null,decoding:null,default:o,defer:o,dir:null,dirName:null,disabled:o,download:s,draggable:l,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:o,formTarget:null,headers:u,height:c,hidden:o,high:c,href:null,hrefLang:null,htmlFor:u,httpEquiv:u,id:null,imageSizes:null,imageSrcSet:d,inputMode:null,integrity:null,is:null,isMap:o,itemId:null,itemProp:u,itemRef:u,itemScope:o,itemType:u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:o,low:c,manifest:null,max:null,maxLength:c,media:null,method:null,min:null,minLength:c,multiple:o,muted:o,name:null,nonce:null,noModule:o,noValidate:o,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:o,optimum:c,pattern:null,ping:u,placeholder:null,playsInline:o,poster:null,preload:null,readOnly:o,referrerPolicy:null,rel:u,required:o,reversed:o,rows:c,rowSpan:c,sandbox:u,scope:null,scoped:o,seamless:o,selected:o,shape:null,size:c,sizes:null,slot:null,span:c,spellCheck:l,src:null,srcDoc:null,srcLang:null,srcSet:d,start:c,step:null,style:null,tabIndex:c,target:null,title:null,translate:null,type:null,typeMustMatch:o,useMap:null,value:l,width:c,wrap:null,align:null,aLink:null,archive:u,axis:null,background:null,bgColor:null,border:c,borderColor:null,bottomMargin:c,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:o,declare:o,event:null,face:null,frame:null,frameBorder:null,hSpace:c,leftMargin:c,link:null,longDesc:null,lowSrc:null,marginHeight:c,marginWidth:c,noResize:o,noHref:o,noShade:o,noWrap:o,object:null,profile:null,prompt:null,rev:null,rightMargin:c,rules:null,scheme:null,scrolling:l,standby:null,summary:null,text:null,topMargin:c,valueType:null,version:null,vAlign:null,vLink:null,vSpace:c,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:o,disableRemotePlayback:o,prefix:null,property:null,results:c,security:null,unselectable:null}})},6716:function(e,t,n){"use strict";var r=n("3532");e.exports=function(e,t){return r(e,t.toLowerCase())}},3532:function(e){"use strict";e.exports=function(e,t){return t in e?e[t]:t}},5260:function(e,t,n){"use strict";var r=n("3343"),i=n("5815"),a=n("3405");e.exports=function(e){var t,n,o=e.space,s=e.mustUseProperty||[],l=e.attributes||{},c=e.properties,u=e.transform,d={},h={};for(t in c)n=new a(t,u(l,t),c[t],o),-1!==s.indexOf(t)&&(n.mustUseProperty=!0),d[t]=n,h[r(t)]=t,h[r(n.attribute)]=t;return new i(d,h,o)}},3405:function(e,t,n){"use strict";var r=n("3806"),i=n("3941");e.exports=s,s.prototype=new r,s.prototype.defined=!0;var a=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],o=a.length;function s(e,t,n,s){var l,c=-1;for(function(e,t,n){n&&(e[t]=n)}(this,"space",s),r.call(this,e,t);++cn.e("271").then(n.bind(n,"1605"))),o=(0,i.lazyWithPreload)(()=>n.e("757").then(n.bind(n,"6739"))),s=(0,i.lazyWithPreload)(()=>n.e("986").then(n.bind(n,"1985"))),l=(0,i.lazyWithPreload)(()=>n.e("541").then(n.bind(n,"9439"))),c=(0,i.lazyWithPreload)(()=>n.e("494").then(n.bind(n,"9136"))),u=(0,i.lazyWithPreload)(()=>n.e("2").then(n.bind(n,"8978"))),d=(0,i.lazyWithPreload)(()=>n.e("777").then(n.bind(n,"9935"))),h=(0,i.lazyWithPreload)(()=>n.e("325").then(n.bind(n,"5049"))),p=(0,i.lazyWithPreload)(()=>n.e("103").then(n.bind(n,"3075"))),f=(0,i.lazyWithPreload)(()=>n.e("333").then(n.bind(n,"5309"))),m=(0,i.lazyWithPreload)(()=>n.e("606").then(n.bind(n,"149"))),g=(0,i.lazyWithPreload)(()=>n.e("145").then(n.bind(n,"5348"))),x=(0,i.lazyWithPreload)(()=>n.e("607").then(n.bind(n,"8593"))),v=(0,i.lazyWithPreload)(()=>n.e("354").then(n.bind(n,"2074"))),y=(0,i.lazyWithPreload)(()=>n.e("287").then(n.bind(n,"9347"))),b=(0,i.lazyWithPreload)(()=>n.e("628").then(n.bind(n,"9674"))),w=(0,i.lazyWithPreload)(()=>n.e("119").then(n.bind(n,"5477"))),k=(0,i.lazyWithPreload)(()=>n.e("929").then(n.bind(n,"9475"))),j=(0,i.lazyWithPreload)(()=>n.e("102").then(n.bind(n,"866"))),E=(0,i.lazyWithPreload)(()=>n.e("697").then(n.bind(n,"1990"))),S=(0,i.lazyWithPreload)(()=>n.e("969").then(n.bind(n,"4165"))),N=(0,i.lazyWithPreload)(()=>n.e("82").then(n.bind(n,"5894"))),C=(0,i.lazyWithPreload)(()=>n.e("631").then(n.bind(n,"4833"))),A=(0,i.lazyWithPreload)(()=>n.e("817").then(n.bind(n,"6432"))),I=(0,i.lazyWithPreload)(()=>n.e("836").then(n.bind(n,"1637"))),T=(0,i.lazyWithPreload)(()=>n.e("871").then(n.bind(n,"9668"))),_=(0,i.lazyWithPreload)(()=>n.e("684").then(n.bind(n,"4577"))),P=(0,i.lazyWithPreload)(()=>n.e("795").then(n.bind(n,"5585"))),O=(0,i.lazyWithPreload)(()=>n.e("806").then(n.bind(n,"4671"))),L=(0,i.lazyWithPreload)(()=>n.e("540").then(n.bind(n,"174"))),M=(0,i.lazyWithPreload)(()=>n.e("747").then(n.bind(n,"9997"))),z=(0,i.lazyWithPreload)(()=>n.e("272").then(n.bind(n,"2470"))),R=(0,i.lazyWithPreload)(()=>n.e("714").then(n.bind(n,"55"))),$=[{path:"/react-native-testing-library/cookbook/advanced/network-requests",element:r.createElement(a),filePath:"12.x/cookbook/advanced/network-requests.md",preload:async()=>(await a.preload(),n.e("271").then(n.bind(n,"1605"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/cookbook/basics/async-tests",element:r.createElement(o),filePath:"12.x/cookbook/basics/async-tests.md",preload:async()=>(await o.preload(),n.e("757").then(n.bind(n,"6739"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/cookbook/basics/custom-render",element:r.createElement(s),filePath:"12.x/cookbook/basics/custom-render.md",preload:async()=>(await s.preload(),n.e("986").then(n.bind(n,"1985"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/cookbook/",element:r.createElement(l),filePath:"12.x/cookbook/index.md",preload:async()=>(await l.preload(),n.e("541").then(n.bind(n,"9439"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/cookbook/state-management/jotai",element:r.createElement(c),filePath:"12.x/cookbook/state-management/jotai.md",preload:async()=>(await c.preload(),n.e("494").then(n.bind(n,"9136"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/advanced/testing-env",element:r.createElement(u),filePath:"12.x/docs/advanced/testing-env.mdx",preload:async()=>(await u.preload(),n.e("2").then(n.bind(n,"8978"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/advanced/understanding-act",element:r.createElement(d),filePath:"12.x/docs/advanced/understanding-act.mdx",preload:async()=>(await d.preload(),n.e("777").then(n.bind(n,"9935"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/api",element:r.createElement(h),filePath:"12.x/docs/api.md",preload:async()=>(await h.preload(),n.e("325").then(n.bind(n,"5049"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/api/events/fire-event",element:r.createElement(p),filePath:"12.x/docs/api/events/fire-event.mdx",preload:async()=>(await p.preload(),n.e("103").then(n.bind(n,"3075"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/api/events/user-event",element:r.createElement(f),filePath:"12.x/docs/api/events/user-event.mdx",preload:async()=>(await f.preload(),n.e("333").then(n.bind(n,"5309"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/api/jest-matchers",element:r.createElement(m),filePath:"12.x/docs/api/jest-matchers.mdx",preload:async()=>(await m.preload(),n.e("606").then(n.bind(n,"149"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/api/misc/accessibility",element:r.createElement(g),filePath:"12.x/docs/api/misc/accessibility.mdx",preload:async()=>(await g.preload(),n.e("145").then(n.bind(n,"5348"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/api/misc/async",element:r.createElement(x),filePath:"12.x/docs/api/misc/async.mdx",preload:async()=>(await x.preload(),n.e("607").then(n.bind(n,"8593"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/api/misc/config",element:r.createElement(v),filePath:"12.x/docs/api/misc/config.mdx",preload:async()=>(await v.preload(),n.e("354").then(n.bind(n,"2074"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/api/misc/other",element:r.createElement(y),filePath:"12.x/docs/api/misc/other.mdx",preload:async()=>(await y.preload(),n.e("287").then(n.bind(n,"9347"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/api/misc/render-hook",element:r.createElement(b),filePath:"12.x/docs/api/misc/render-hook.mdx",preload:async()=>(await b.preload(),n.e("628").then(n.bind(n,"9674"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/api/queries",element:r.createElement(w),filePath:"12.x/docs/api/queries.mdx",preload:async()=>(await w.preload(),n.e("119").then(n.bind(n,"5477"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/api/render",element:r.createElement(k),filePath:"12.x/docs/api/render.mdx",preload:async()=>(await k.preload(),n.e("929").then(n.bind(n,"9475"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/api/screen",element:r.createElement(j),filePath:"12.x/docs/api/screen.mdx",preload:async()=>(await j.preload(),n.e("102").then(n.bind(n,"866"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/guides/community-resources",element:r.createElement(E),filePath:"12.x/docs/guides/community-resources.mdx",preload:async()=>(await E.preload(),n.e("697").then(n.bind(n,"1990"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/guides/faq",element:r.createElement(S),filePath:"12.x/docs/guides/faq.mdx",preload:async()=>(await S.preload(),n.e("969").then(n.bind(n,"4165"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/guides/how-to-query",element:r.createElement(N),filePath:"12.x/docs/guides/how-to-query.mdx",preload:async()=>(await N.preload(),n.e("82").then(n.bind(n,"5894"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/guides/troubleshooting",element:r.createElement(C),filePath:"12.x/docs/guides/troubleshooting.mdx",preload:async()=>(await C.preload(),n.e("631").then(n.bind(n,"4833"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/migration/jest-matchers",element:r.createElement(A),filePath:"12.x/docs/migration/jest-matchers.mdx",preload:async()=>(await A.preload(),n.e("817").then(n.bind(n,"6432"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/migration/previous/v11",element:r.createElement(I),filePath:"12.x/docs/migration/previous/v11.mdx",preload:async()=>(await I.preload(),n.e("836").then(n.bind(n,"1637"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/migration/previous/v2",element:r.createElement(T),filePath:"12.x/docs/migration/previous/v2.mdx",preload:async()=>(await T.preload(),n.e("871").then(n.bind(n,"9668"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/migration/previous/v7",element:r.createElement(_),filePath:"12.x/docs/migration/previous/v7.mdx",preload:async()=>(await _.preload(),n.e("684").then(n.bind(n,"4577"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/migration/previous/v9",element:r.createElement(P),filePath:"12.x/docs/migration/previous/v9.mdx",preload:async()=>(await P.preload(),n.e("795").then(n.bind(n,"5585"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/migration/v12",element:r.createElement(O),filePath:"12.x/docs/migration/v12.mdx",preload:async()=>(await O.preload(),n.e("806").then(n.bind(n,"4671"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/start/intro",element:r.createElement(L),filePath:"12.x/docs/start/intro.md",preload:async()=>(await L.preload(),n.e("540").then(n.bind(n,"174"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/docs/start/quick-start",element:r.createElement(M),filePath:"12.x/docs/start/quick-start.mdx",preload:async()=>(await M.preload(),n.e("747").then(n.bind(n,"9997"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/",element:r.createElement(z),filePath:"12.x/index.md",preload:async()=>(await z.preload(),n.e("272").then(n.bind(n,"2470"))),lang:"",version:"12.x"},{path:"/react-native-testing-library/404",element:r.createElement(R),filePath:"404.mdx",preload:async()=>(await R.preload(),n.e("714").then(n.bind(n,"55"))),lang:"",version:"12.x"}]},5831:function(e,t,n){"use strict";n.d(t,{H:function(){return r}});let r=()=>{}},8390:function(e,t){"use strict";t.Z={"12.x###":"cefcd521"}},6780:function(e,t){"use strict";t.Z={title:"React Native Testing Library",description:"Helps you to write better tests with less effort.",icon:"/img/owl.png",route:{cleanUrls:!0},themeConfig:{enableContentAnimation:!0,enableScrollToTop:!0,outlineTitle:"Contents",footer:{message:"Copyright \xa9 2024 Callstack Open Source"},socialLinks:[{icon:"github",mode:"link",content:"https://github.com/callstack/react-native-testing-library"}],locales:[],nav:{"12.x":[{text:"Docs",link:"/docs/start/intro",activeMatch:"^/docs/"},{text:"Cookbook",link:"/cookbook/",activeMatch:"^/cookbook/"},{text:"Examples",link:"https://github.com/callstack/react-native-testing-library/tree/main/examples"}]},sidebar:{"/cookbook":[{text:"Introduction",link:"/cookbook/index",_fileKey:"12.x/cookbook/index"},{text:"Basic Recipes",collapsible:!0,collapsed:!1,items:[{text:"Async tests",link:"/cookbook/basics/async-tests",_fileKey:"12.x/cookbook/basics/async-tests"},{text:"Custom `render` function",link:"/cookbook/basics/custom-render",_fileKey:"12.x/cookbook/basics/custom-render"}],link:"",_fileKey:""},{text:"Advanced Recipes",collapsible:!0,collapsed:!1,items:[{text:"Network Requests",link:"/cookbook/advanced/network-requests",_fileKey:"12.x/cookbook/advanced/network-requests"}],link:"",_fileKey:""},{text:"State Management Recipes",collapsible:!0,collapsed:!1,items:[{text:"Jotai",link:"/cookbook/state-management/jotai",_fileKey:"12.x/cookbook/state-management/jotai"}],link:"",_fileKey:""}],"/docs":[{text:"Getting started",collapsible:!0,collapsed:!1,items:[{text:"Introduction",link:"/docs/start/intro",_fileKey:"12.x/docs/start/intro"},{text:"Quick Start",link:"/docs/start/quick-start",_fileKey:"12.x/docs/start/quick-start"}],link:"",_fileKey:""},{text:"API reference",collapsible:!0,collapsed:!1,items:[{text:"Render function",link:"/docs/api/render",_fileKey:"12.x/docs/api/render.mdx"},{text:"Screen object",link:"/docs/api/screen",_fileKey:"12.x/docs/api/screen.mdx"},{text:"Queries",link:"/docs/api/queries",_fileKey:"12.x/docs/api/queries"},{text:"Jest matchers",link:"/docs/api/jest-matchers",_fileKey:"12.x/docs/api/jest-matchers"},{text:"Triggering events",collapsible:!0,collapsed:!1,items:[{text:"User Event",link:"/docs/api/events/user-event",_fileKey:"12.x/docs/api/events/user-event.mdx"},{text:"Fire Event",link:"/docs/api/events/fire-event",_fileKey:"12.x/docs/api/events/fire-event.mdx"}],link:"",_fileKey:""},{text:"Miscellaneous",collapsible:!0,collapsed:!1,items:[{text:"Render Hook function",link:"/docs/api/misc/render-hook",_fileKey:"12.x/docs/api/misc/render-hook.mdx"},{text:"Async utilities",link:"/docs/api/misc/async",_fileKey:"12.x/docs/api/misc/async"},{text:"Configuration",link:"/docs/api/misc/config",_fileKey:"12.x/docs/api/misc/config"},{text:"Accessibility",link:"/docs/api/misc/accessibility",_fileKey:"12.x/docs/api/misc/accessibility"},{text:"Other helpers",link:"/docs/api/misc/other",_fileKey:"12.x/docs/api/misc/other"}],link:"",_fileKey:""}],link:"/docs/api",_fileKey:"12.x/docs/api.md"},{text:"Guides",collapsible:!0,collapsed:!1,items:[{text:"How should I query?",link:"/docs/guides/how-to-query",_fileKey:"12.x/docs/guides/how-to-query"},{text:"Troubleshooting",link:"/docs/guides/troubleshooting",_fileKey:"12.x/docs/guides/troubleshooting"},{text:"FAQ",link:"/docs/guides/faq",_fileKey:"12.x/docs/guides/faq"},{text:"Community resources",link:"/docs/guides/community-resources",_fileKey:"12.x/docs/guides/community-resources"}],link:"",_fileKey:""},{text:"Advanced Guides",collapsible:!0,collapsed:!1,items:[{text:"Testing environment",link:"/docs/advanced/testing-env",_fileKey:"12.x/docs/advanced/testing-env"},{text:"Understanding `act` function",link:"/docs/advanced/understanding-act",_fileKey:"12.x/docs/advanced/understanding-act"}],link:"",_fileKey:""},{text:"Migration Guides",collapsible:!0,collapsed:!0,items:[{text:"Migration to 12.x",link:"/docs/migration/v12",_fileKey:"12.x/docs/migration/v12"},{text:"Migration to built-in Jest matchers",link:"/docs/migration/jest-matchers",_fileKey:"12.x/docs/migration/jest-matchers"},{text:"Previous versions",collapsible:!0,collapsed:!0,items:[{text:"Migration to 11.x",link:"/docs/migration/previous/v11",_fileKey:"12.x/docs/migration/previous/v11"},{text:"Migration to 9.x",link:"/docs/migration/previous/v9",_fileKey:"12.x/docs/migration/previous/v9"},{text:"Migration to 7.x",link:"/docs/migration/previous/v7",_fileKey:"12.x/docs/migration/previous/v7"},{text:"Migration to 2.x",link:"/docs/migration/previous/v2",_fileKey:"12.x/docs/migration/previous/v2"}],link:"",_fileKey:""}],link:"",_fileKey:""}]}},base:"/react-native-testing-library/",lang:"",locales:[],logo:"/img/owl.png",logoText:"React Native Testing Library",ssg:!0,multiVersion:{default:"12.x",versions:["12.x"]},search:{versioned:!0},pages:[{title:"Network Requests",routePath:"/react-native-testing-library/cookbook/advanced/network-requests",lang:"",toc:[{text:"Introduction",id:"introduction",depth:2,charIndex:3},{text:"Phonebook Example",id:"phonebook-example",depth:2,charIndex:568},{text:"Start testing with a simple test",id:"start-testing-with-a-simple-test",depth:2,charIndex:1294},{text:"Testing error handling",id:"testing-error-handling",depth:2,charIndex:2353},{text:"Global guarding against unwanted API requests",id:"global-guarding-against-unwanted-api-requests",depth:2,charIndex:2920},{text:"Conclusion",id:"conclusion",depth:2,charIndex:3508},{text:"Further Reading and Alternatives",id:"further-reading-and-alternatives",depth:2,charIndex:4130}],frontmatter:{},version:"12.x",_relativePath:"12.x/cookbook/advanced/network-requests.md"},{title:"Async tests",routePath:"/react-native-testing-library/cookbook/basics/async-tests",lang:"",toc:[{text:"Summary",id:"summary",depth:2,charIndex:3},{text:"Example",id:"example",depth:3,charIndex:911},{text:"Async utilities",id:"async-utilities",depth:2,charIndex:1008},{text:"`findBy*` queries",id:"findby-queries",depth:3,charIndex:-1},{text:"Example",id:"example-1",depth:4,charIndex:1622},{text:"`waitFor` function",id:"waitfor-function",depth:3,charIndex:-1},{text:"Example",id:"example-2",depth:4,charIndex:2128},{text:"`waitForElementToBeRemoved` function",id:"waitforelementtoberemoved-function",depth:3,charIndex:-1},{text:"Example",id:"example-3",depth:4,charIndex:2743},{text:"Fake Timers",id:"fake-timers",depth:2,charIndex:2756}],frontmatter:{},version:"12.x",_relativePath:"12.x/cookbook/basics/async-tests.md"},{title:"Custom `render` function",routePath:"/react-native-testing-library/cookbook/basics/custom-render",lang:"",toc:[{text:"Summary",id:"summary",depth:3,charIndex:25},{text:"Example",id:"example",depth:3,charIndex:318},{text:"More info",id:"more-info",depth:3,charIndex:360},{text:"Additional params",id:"additional-params",depth:4,charIndex:372},{text:"Multiple functions",id:"multiple-functions",depth:4,charIndex:571},{text:"Async function",id:"async-function",depth:4,charIndex:787}],frontmatter:{},version:"12.x",_relativePath:"12.x/cookbook/basics/custom-render.md"},{title:"Introduction",routePath:"/react-native-testing-library/cookbook/",lang:"",toc:[{text:"What's Inside the Cookbook?",id:"whats-inside-the-cookbook",depth:2,charIndex:434},{text:"What's Next?",id:"whats-next",depth:2,charIndex:1045}],frontmatter:{},version:"12.x",_relativePath:"12.x/cookbook/index.md"},{title:"Jotai",routePath:"/react-native-testing-library/cookbook/state-management/jotai",lang:"",toc:[{text:"Introduction",id:"introduction",depth:2,charIndex:3},{text:"Task List Example",id:"task-list-example",depth:2,charIndex:337},{text:"Starting with a Simple Test",id:"starting-with-a-simple-test",depth:2,charIndex:566},{text:"Custom Render Function to populate Jotai Atoms with Initial Values",id:"custom-render-function-to-populate-jotai-atoms-with-initial-values",depth:2,charIndex:860},{text:"Testing the `TaskList` Component with initial tasks",id:"testing-the-tasklist-component-with-initial-tasks",depth:2,charIndex:-1},{text:"Modifying atom outside of React components",id:"modifying-atom-outside-of-react-components",depth:2,charIndex:1773},{text:"Testing atom outside of React components",id:"testing-atom-outside-of-react-components",depth:2,charIndex:2022},{text:"Conclusion",id:"conclusion",depth:2,charIndex:2358}],frontmatter:{},version:"12.x",_relativePath:"12.x/cookbook/state-management/jotai.md"},{title:"Testing environment",routePath:"/react-native-testing-library/docs/advanced/testing-env",lang:"",toc:[{text:"React renderers",id:"react-renderers",depth:2,charIndex:659},{text:"React Test Renderer",id:"react-test-renderer",depth:2,charIndex:1382},{text:"Element tree",id:"element-tree",depth:2,charIndex:2783},{text:"Host and composite components",id:"host-and-composite-components",depth:2,charIndex:3389},{text:"Differentiating between host and composite elements",id:"differentiating-between-host-and-composite-elements",depth:3,charIndex:5076},{text:"Tree nodes",id:"tree-nodes",depth:2,charIndex:5501},{text:"Asserting props",id:"asserting-props",depth:3,charIndex:5817},{text:"Tree navigation",id:"tree-navigation",depth:2,charIndex:6520},{text:"Queries",id:"queries",depth:2,charIndex:7253}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/advanced/testing-env.mdx"},{title:"Understanding `act` function",routePath:"/react-native-testing-library/docs/advanced/understanding-act",lang:"",toc:[{text:"`act` warnings",id:"act-warnings",depth:2,charIndex:-1},{text:"Synchronous `act`",id:"synchronous-act",depth:2,charIndex:-1},{text:"Responsibility",id:"responsibility",depth:3,charIndex:575},{text:"When to use act",id:"when-to-use-act",depth:3,charIndex:1673},{text:"Implementation",id:"implementation",depth:3,charIndex:2765},{text:"Asynchronous `act`",id:"asynchronous-act",depth:2,charIndex:-1},{text:"Asynchronous code",id:"asynchronous-code",depth:3,charIndex:3756},{text:"Solution with fake timers",id:"solution-with-fake-timers",depth:3,charIndex:4462},{text:"Solution with real timers",id:"solution-with-real-timers",depth:3,charIndex:4772},{text:"Async act warning",id:"async-act-warning",depth:3,charIndex:5594},{text:"References",id:"references",depth:2,charIndex:6029}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/advanced/understanding-act.mdx"},{title:"API Overview",routePath:"/react-native-testing-library/docs/api",lang:"",toc:[],frontmatter:{uri:"/api"},version:"12.x",_relativePath:"12.x/docs/api.md"},{title:"Fire Event API",routePath:"/react-native-testing-library/docs/api/events/fire-event",lang:"",toc:[{text:"`fireEvent.press` ",id:"fireeventpress-",depth:3,charIndex:-1},{text:"`fireEvent.changeText` ",id:"fireeventchangetext-",depth:3,charIndex:-1},{text:"`fireEvent.scroll` ",id:"fireeventscroll-",depth:3,charIndex:-1},{text:"On a `ScrollView`",id:"on-a-scrollview",depth:4,charIndex:-1}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/api/events/fire-event.mdx"},{title:"User Event interactions",routePath:"/react-native-testing-library/docs/api/events/user-event",lang:"",toc:[{text:"Comparison with Fire Event API",id:"comparison-with-fire-event-api",depth:2,charIndex:81},{text:"`setup()`",id:"setup",depth:2,charIndex:-1},{text:"Options ",id:"options-",depth:3,charIndex:1386},{text:"`press()`",id:"press",depth:2,charIndex:-1},{text:"`longPress()`",id:"longpress",depth:2,charIndex:-1},{text:"Options ",id:"options--1",depth:3,charIndex:2976},{text:"`type()`",id:"type",depth:2,charIndex:-1},{text:"Options ",id:"options--2",depth:3,charIndex:3520},{text:"Sequence of events ",id:"sequence-of-events-",depth:3,charIndex:3700},{text:"`clear()`",id:"clear",depth:2,charIndex:-1},{text:"Sequence of events ",id:"sequence-of-events--1",depth:3,charIndex:4573},{text:"`paste()`",id:"paste",depth:2,charIndex:-1},{text:"Sequence of events ",id:"sequence-of-events--2",depth:3,charIndex:5076},{text:"`scrollTo()`",id:"scroll-to",depth:2,charIndex:-1},{text:"Options ",id:"options--3",depth:3,charIndex:6357},{text:"Sequence of events ",id:"sequence-of-events--3",depth:3,charIndex:7342}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/api/events/user-event.mdx"},{title:"Jest matchers",routePath:"/react-native-testing-library/docs/api/jest-matchers",lang:"",toc:[{text:"Setup",id:"setup",depth:2,charIndex:250},{text:"Migration from legacy Jest Native matchers.",id:"migration-from-legacy-jest-native-matchers",depth:2,charIndex:563},{text:"Checking element existence",id:"checking-element-existence",depth:2,charIndex:727},{text:"`toBeOnTheScreen()`",id:"tobeonthescreen",depth:3,charIndex:-1},{text:"Element Content",id:"element-content",depth:2,charIndex:981},{text:"`toHaveTextContent()`",id:"tohavetextcontent",depth:3,charIndex:-1},{text:"`toContainElement()`",id:"tocontainelement",depth:3,charIndex:-1},{text:"`toBeEmptyElement()`",id:"tobeemptyelement",depth:3,charIndex:-1},{text:"Checking element state",id:"checking-element-state",depth:2,charIndex:1467},{text:"`toHaveDisplayValue()`",id:"tohavedisplayvalue",depth:3,charIndex:-1},{text:"`toHaveAccessibilityValue()`",id:"tohaveaccessibilityvalue",depth:3,charIndex:-1},{text:"`toBeEnabled()` / `toBeDisabled` ",id:"tobeenabled--tobedisabled-",depth:3,charIndex:-1},{text:"`toBeSelected()`",id:"tobeselected",depth:3,charIndex:-1},{text:"`toBeChecked()` / `toBePartiallyChecked()` ",id:"tobechecked--tobepartiallychecked-",depth:3,charIndex:-1},{text:"`toBeExpanded()` / `toBeCollapsed()` ",id:"tobeexpanded--tobecollapsed-",depth:3,charIndex:-1},{text:"`toBeBusy()`",id:"tobebusy",depth:3,charIndex:-1},{text:"Checking element style",id:"checking-element-style",depth:2,charIndex:4079},{text:"`toBeVisible()`",id:"tobevisible",depth:3,charIndex:-1},{text:"`toHaveStyle()`",id:"tohavestyle",depth:3,charIndex:-1},{text:"Other matchers",id:"other-matchers",depth:2,charIndex:-1},{text:"`toHaveAccessibleName()`",id:"tohaveaccessiblename",depth:3,charIndex:-1},{text:"`toHaveProp()`",id:"tohaveprop",depth:3,charIndex:-1}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/api/jest-matchers.mdx"},{title:"Accessibility",routePath:"/react-native-testing-library/docs/api/misc/accessibility",lang:"",toc:[{text:"`isHiddenFromAccessibility`",id:"ishiddenfromaccessibility",depth:2,charIndex:-1}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/api/misc/accessibility.mdx"},{title:"Async utilities",routePath:"/react-native-testing-library/docs/api/misc/async",lang:"",toc:[{text:"`findBy*` queries",id:"findby-queries",depth:2,charIndex:-1},{text:"`waitFor`",id:"waitfor",depth:2,charIndex:-1},{text:"Using a React Native version < 0.71 with Jest fake timers",id:"using-a-react-native-version--071-with-jest-fake-timers",depth:3,charIndex:1885},{text:"`waitForElementToBeRemoved`",id:"waitforelementtoberemoved",depth:2,charIndex:-1}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/api/misc/async.mdx"},{title:"Configuration",routePath:"/react-native-testing-library/docs/api/misc/config",lang:"",toc:[{text:"`configure`",id:"configure",depth:2,charIndex:-1},{text:"`asyncUtilTimeout` option",id:"asyncutiltimeout-option",depth:3,charIndex:-1},{text:"`defaultIncludeHiddenElements` option",id:"defaultincludehiddenelements-option",depth:3,charIndex:-1},{text:"`defaultDebugOptions` option",id:"defaultdebugoptions-option",depth:3,charIndex:-1},{text:"`resetToDefaults()`",id:"resettodefaults",depth:2,charIndex:-1},{text:"Environment variables",id:"environment-variables",depth:2,charIndex:769},{text:"`RNTL_SKIP_AUTO_CLEANUP`",id:"rntl_skip_auto_cleanup",depth:3,charIndex:-1},{text:"`RNTL_SKIP_AUTO_DETECT_FAKE_TIMERS`",id:"rntl_skip_auto_detect_fake_timers",depth:3,charIndex:-1}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/api/misc/config.mdx"},{title:"Other helpers",routePath:"/react-native-testing-library/docs/api/misc/other",lang:"",toc:[{text:"`within`, `getQueriesForElement` ",id:"within-getqueriesforelement-",depth:2,charIndex:-1},{text:"`act`",id:"act",depth:2,charIndex:-1},{text:"`cleanup`",id:"cleanup",depth:2,charIndex:-1}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/api/misc/other.mdx"},{title:"`renderHook` function",routePath:"/react-native-testing-library/docs/api/misc/render-hook",lang:"",toc:[{text:"`options`",id:"options",depth:2,charIndex:-1},{text:"`initialProps`",id:"initialprops",depth:3,charIndex:-1},{text:"`wrapper`",id:"wrapper",depth:3,charIndex:-1},{text:"`RenderHookResult`",id:"renderhookresult",depth:2,charIndex:-1},{text:"`result`",id:"result",depth:3,charIndex:-1},{text:"`rerender`",id:"rerender",depth:3,charIndex:-1},{text:"`unmount`",id:"unmount",depth:3,charIndex:-1},{text:"Examples",id:"examples",depth:2,charIndex:1779},{text:"With `initialProps`",id:"with-initialprops",depth:3,charIndex:-1},{text:"With `wrapper`",id:"with-wrapper",depth:3,charIndex:-1}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/api/misc/render-hook.mdx"},{title:"Queries",routePath:"/react-native-testing-library/docs/api/queries",lang:"",toc:[{text:"Accessing queries",id:"accessing-queries",depth:2,charIndex:226},{text:"Using `screen` object",id:"using-screen-object",depth:3,charIndex:-1},{text:"Using `render` result",id:"using-render-result",depth:3,charIndex:-1},{text:"Query parts",id:"query-parts",depth:2,charIndex:848},{text:"Query variant",id:"query-variant",depth:2,charIndex:1095},{text:"`getBy*` queries ",id:"getby-queries-",depth:3,charIndex:-1},{text:"`getAllBy*` queries ",id:"getallby-queries-",depth:3,charIndex:-1},{text:"`queryBy*` queries ",id:"queryby-queries-",depth:3,charIndex:-1},{text:"`queryAllBy*` queries ",id:"queryallby-queries-",depth:3,charIndex:-1},{text:"`findBy*` queries ",id:"findby-queries-",depth:3,charIndex:-1},{text:"`findAllBy*` queries ",id:"findallby-queries-",depth:3,charIndex:-1},{text:"Query predicates",id:"query-predicates",depth:2,charIndex:3519},{text:"`*ByRole` ",id:"byrole-",depth:3,charIndex:-1},{text:"Options ",id:"options-",depth:4,charIndex:4218},{text:"`*ByLabelText` ",id:"bylabeltext-",depth:3,charIndex:-1},{text:"`*ByPlaceholderText` ",id:"byplaceholdertext-",depth:3,charIndex:-1},{text:"`*ByDisplayValue` ",id:"bydisplayvalue-",depth:3,charIndex:-1},{text:"`*ByText` ",id:"bytext-",depth:3,charIndex:-1},{text:"`*ByHintText` ",id:"byhinttext-",depth:3,charIndex:-1},{text:"`*ByTestId` ",id:"bytestid-",depth:3,charIndex:-1},{text:"`*ByA11yState`, `ByAccessibilityState` (deprecated) ",id:"bya11ystate-byaccessibilitystate-deprecated-",depth:3,charIndex:-1},{text:"Default state for: `disabled`, `selected`, and `busy` keys",id:"default-state-for-disabled-selected-and-busy-keys",depth:4,charIndex:-1},{text:"Default state for: `checked` and `expanded` keys",id:"default-state-for-checked-and-expanded-keys",depth:4,charIndex:-1},{text:"`*ByA11yValue`, `*ByAccessibilityValue` (deprecated) ",id:"bya11yvalue-byaccessibilityvalue-deprecated-",depth:3,charIndex:-1},{text:"Common options",id:"common-options",depth:3,charIndex:12727},{text:"`includeHiddenElements` option",id:"includehiddenelements-option",depth:4,charIndex:-1},{text:"TextMatch type",id:"textmatch-type",depth:2,charIndex:13441},{text:"Examples",id:"examples",depth:3,charIndex:13576},{text:"Options ",id:"options--1",depth:3,charIndex:13666},{text:"Precision",id:"precision",depth:4,charIndex:13677},{text:"Normalization",id:"normalization",depth:4,charIndex:14460},{text:"Legacy unit testing helpers",id:"legacy-unit-testing-helpers",depth:2,charIndex:15726},{text:"`UNSAFE_ByType`",id:"unsafe_bytype",depth:3,charIndex:-1},{text:"`UNSAFE_ByProps`",id:"unsafe_byprops",depth:3,charIndex:-1}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/api/queries.mdx"},{title:"`render` function",routePath:"/react-native-testing-library/docs/api/render",lang:"",toc:[{text:"Options ",id:"options-",depth:3,charIndex:455},{text:"`wrapper` option",id:"wrapper-option",depth:4,charIndex:-1},{text:"`createNodeMock` option",id:"createnodemock-option",depth:4,charIndex:-1},{text:"`unstable_validateStringsRenderedWithinText` option",id:"unstable_validatestringsrenderedwithintext-option",depth:4,charIndex:-1},{text:"Result ",id:"result-",depth:3,charIndex:1800}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/api/render.mdx"},{title:"`screen` object",routePath:"/react-native-testing-library/docs/api/screen",lang:"",toc:[{text:"`...queries`",id:"queries",depth:3,charIndex:-1},{text:"Example",id:"example",depth:4,charIndex:549},{text:"`rerender`",id:"rerender",depth:3,charIndex:-1},{text:"`unmount`",id:"unmount",depth:3,charIndex:-1},{text:"`debug`",id:"debug",depth:3,charIndex:-1},{text:"`message` option ",id:"message-option-",depth:4,charIndex:-1},{text:"`mapProps` option ",id:"mapprops-option-",depth:4,charIndex:-1},{text:"`toJSON`",id:"tojson",depth:3,charIndex:-1},{text:"`root`",id:"root",depth:3,charIndex:-1},{text:"`UNSAFE_root`",id:"unsafe_root",depth:3,charIndex:-1}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/api/screen.mdx"},{title:"Community resources",routePath:"/react-native-testing-library/docs/guides/community-resources",lang:"",toc:[{text:"Recommended content",id:"recommended-content",depth:2,charIndex:3},{text:"Older, potentially outdated content",id:"older-potentially-outdated-content",depth:2,charIndex:601}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/guides/community-resources.mdx"},{title:"FAQ",routePath:"/react-native-testing-library/docs/guides/faq",lang:"",toc:[{text:"Can I test the native features of React Native apps?",id:"can-i-test-the-native-features-of-react-native-apps",depth:2,charIndex:3},{text:"Should I use/migrate to `screen` queries?",id:"should-i-usemigrate-to-screen-queries",depth:2,charIndex:-1},{text:"Should I use/migrate to User Event interactions?",id:"should-i-usemigrate-to-user-event-interactions",depth:2,charIndex:1595}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/guides/faq.mdx"},{title:"How should I query?",routePath:"/react-native-testing-library/docs/guides/how-to-query",lang:"",toc:[{text:"Query parts",id:"query-parts",depth:2,charIndex:273},{text:"Query variant",id:"query-variant",depth:2,charIndex:521},{text:"Idiomatic query variants",id:"idiomatic-query-variants",depth:3,charIndex:1274},{text:"Query predicate",id:"query-predicate",depth:2,charIndex:2227},{text:"Idiomatic query predicates",id:"idiomatic-query-predicates",depth:3,charIndex:3001},{text:"1. By Role query ",id:"1-by-role-query-",depth:3,charIndex:3499},{text:"Name option ",id:"name-option-",depth:4,charIndex:4575},{text:"2. Text input queries ",id:"2-text-input-queries-",depth:3,charIndex:5099},{text:"3. Other accessible queries ",id:"3-other-accessible-queries-",depth:3,charIndex:5899},{text:"4. Test ID query ",id:"4-test-id-query-",depth:3,charIndex:6313}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/guides/how-to-query.mdx"},{title:"Troubleshooting",routePath:"/react-native-testing-library/docs/guides/troubleshooting",lang:"",toc:[{text:"Matching React Native, React & React Test Renderer versions",id:"matching-react-native-react--react-test-renderer-versions",depth:2,charIndex:116},{text:"Example repository",id:"example-repository",depth:2,charIndex:1005},{text:"Undefined component error",id:"undefined-component-error",depth:2,charIndex:1254},{text:"Mocking React Native",id:"mocking-react-native",depth:3,charIndex:2110},{text:"Act warnings",id:"act-warnings",depth:2,charIndex:2372}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/guides/troubleshooting.mdx"},{title:"Migration to built-in Jest matchers",routePath:"/react-native-testing-library/docs/migration/jest-matchers",lang:"",toc:[{text:"General notes",id:"general-notes",depth:2,charIndex:119},{text:"Usage",id:"usage",depth:2,charIndex:533},{text:"Gradual migration",id:"gradual-migration",depth:3,charIndex:674},{text:"Migration details",id:"migration-details",depth:2,charIndex:905},{text:"Matchers not requiring changes",id:"matchers-not-requiring-changes",depth:3,charIndex:926},{text:"Replaced matchers",id:"replaced-matchers",depth:3,charIndex:1233},{text:"Added matchers",id:"added-matchers",depth:3,charIndex:1626},{text:"Noteworthy details",id:"noteworthy-details",depth:3,charIndex:1688}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/migration/jest-matchers.mdx"},{title:"Migration to 11.x",routePath:"/react-native-testing-library/docs/migration/previous/v11",lang:"",toc:[{text:"Breaking changes",id:"breaking-changes",depth:2,charIndex:153},{text:"Update to Jest 28 if you use fake timers",id:"update-to-jest-28-if-you-use-fake-timers",depth:3,charIndex:173},{text:"Refactor legacy `waitForOptions` position",id:"refactor-legacy-waitforoptions-position",depth:3,charIndex:-1},{text:'Triggering non-touch events on targets with `pointerEvents="box-none"` prop',id:"triggering-non-touch-events-on-targets-with-pointereventsbox-none-prop",depth:3,charIndex:-1},{text:"Full Changelog",id:"full-changelog",depth:2,charIndex:1263}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/migration/previous/v11.mdx"},{title:"Migration to 2.x",routePath:"/react-native-testing-library/docs/migration/previous/v2",lang:"",toc:[{text:"Dropping Node 8",id:"dropping-node-8",depth:2,charIndex:100},{text:"Auto Cleanup",id:"auto-cleanup",depth:2,charIndex:325},{text:"WaitFor API changes",id:"waitfor-api-changes",depth:2,charIndex:1248},{text:"Removed global `debug` function",id:"removed-global-debug-function",depth:2,charIndex:-1},{text:"Removed global `shallow` function",id:"removed-global-shallow-function",depth:2,charIndex:-1},{text:"Removed functions",id:"removed-functions",depth:2,charIndex:2145},{text:"Some `ByTestId` queries behavior changes",id:"some-bytestid-queries-behavior-changes",depth:2,charIndex:-1},{text:"Deprecated `flushMicrotasksQueue`",id:"deprecated-flushmicrotasksqueue",depth:2,charIndex:-1}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/migration/previous/v2.mdx"},{title:"Migration to 7.x",routePath:"/react-native-testing-library/docs/migration/previous/v7",lang:"",toc:[{text:"Guide for `react-native-testing-library` users",id:"guide-for-react-native-testing-library-users",depth:2,charIndex:-1},{text:"Renaming the library",id:"renaming-the-library",depth:3,charIndex:452},{text:"New aliases",id:"new-aliases",depth:3,charIndex:1352},{text:"Renaming `ByPlaceholder` queries",id:"renaming-byplaceholder-queries",depth:3,charIndex:-1},{text:"`fireEvent` support for disabled components",id:"fireevent-support-for-disabled-components",depth:3,charIndex:-1},{text:"Guide for `@testing-library/react-native` users",id:"guide-for-testing-libraryreact-native-users",depth:2,charIndex:-1},{text:'Renaming "wait" helpers',id:"renaming-wait-helpers",depth:3,charIndex:2874},{text:"Changes to `ByTestId` queries",id:"changes-to-bytestid-queries",depth:3,charIndex:-1},{text:"No `ByTitle` queries",id:"no-bytitle-queries",depth:3,charIndex:-1},{text:"No custom Jest configuration",id:"no-custom-jest-configuration",depth:3,charIndex:3628},{text:"Cleanup is included by default",id:"cleanup-is-included-by-default",depth:3,charIndex:3917},{text:"No NativeTestInstance abstraction",id:"no-nativetestinstance-abstraction",depth:3,charIndex:4313},{text:"No `container` nor `baseElement` returned from `render`",id:"no-container-nor-baseelement-returned-from-render",depth:3,charIndex:-1},{text:"Firing events changes",id:"firing-events-changes",depth:3,charIndex:4823}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/migration/previous/v7.mdx"},{title:"Migration to 9.x",routePath:"/react-native-testing-library/docs/migration/previous/v9",lang:"",toc:[{text:"Support for text match options a.k.a string precision API",id:"support-for-text-match-options-aka-string-precision-api",depth:2,charIndex:284},{text:"Reverted matching text across several nodes",id:"reverted-matching-text-across-several-nodes",depth:2,charIndex:924},{text:"Future plans",id:"future-plans",depth:2,charIndex:1437}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/migration/previous/v9.mdx"},{title:"Migration to 12.x",routePath:"/react-native-testing-library/docs/migration/v12",lang:"",toc:[{text:"Breaking changes",id:"breaking-changes",depth:2,charIndex:484},{text:"1. All queries exclude elements hidden from accessibility by default",id:"1-all-queries-exclude-elements-hidden-from-accessibility-by-default",depth:3,charIndex:504},{text:"2. `*ByRole` queries now return only accessibility elements",id:"2-byrole-queries-now-return-only-accessibility-elements",depth:3,charIndex:-1},{text:"Examples",id:"examples",depth:4,charIndex:1510},{text:"3. `*ByText`, `*ByDisplayValue`, `*ByPlaceholderText` queries now return host elements",id:"3-bytext-bydisplayvalue-byplaceholdertext-queries-now-return-host-elements",depth:3,charIndex:-1},{text:"4. `container` API has been renamed to `UNSAFE_root`.",id:"4-container-api-has-been-renamed-to-unsafe_root",depth:3,charIndex:-1},{text:"Full Changelog",id:"full-changelog",depth:2,charIndex:2923}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/migration/v12.mdx"},{title:"Introduction",routePath:"/react-native-testing-library/docs/start/intro",lang:"",toc:[{text:"The problem",id:"the-problem",depth:2,charIndex:3},{text:"This solution",id:"this-solution",depth:2,charIndex:479},{text:"Example",id:"example",depth:2,charIndex:988}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/start/intro.md"},{title:"Quick Start",routePath:"/react-native-testing-library/docs/start/quick-start",lang:"",toc:[{text:"Installation",id:"installation",depth:2,charIndex:3},{text:"Jest matchers",id:"jest-matchers",depth:3,charIndex:223},{text:"ESLint plugin",id:"eslint-plugin",depth:3,charIndex:379}],frontmatter:{},version:"12.x",_relativePath:"12.x/docs/start/quick-start.mdx"},{title:"",routePath:"/react-native-testing-library/",lang:"",toc:[],frontmatter:{pageType:"home",hero:{name:"React Native",text:"Testing Library",image:{src:"/img/owl.png"},tagline:"Helps you to write better tests with less effort.",actions:[{theme:"brand",text:'Quick Start',link:"/docs/start/quick-start"},{theme:"alt",text:"Explore API",link:"/docs/api"}]},features:[{title:"Maintainable",details:"Write maintainable tests for your React Native apps.",icon:"\u2728"},{title:"Reliable",details:"Promotes testing public APIs and avoiding implementation details.",icon:"\u2705"},{title:"Community Driven",details:"Supported by React Native community and its core contributors.",icon:"\u2764\uFE0F"}]},version:"12.x",_relativePath:"12.x/index.md"},{title:"",routePath:"/react-native-testing-library/404",lang:"",toc:[],frontmatter:{pageType:"custom"},version:"12.x",_relativePath:"404.mdx"}],markdown:{showLineNumbers:!1,defaultWrapCode:!1,codeHighlighter:"prism"}}},4353:function(e,t,n){"use strict";n.d(t,{$X:function(){return g},gV:function(){return x}}),n("793"),n("102"),n("5123"),n("9710"),n("6330"),n("8221"),n("5863"),n("9560"),n("9734");var r,i=n("5893"),a=n("6780"),o=n("2599"),s=n("8028"),l=n("5687"),c=n("9250"),u=n("405"),d=n("7294"),h=n("8995"),p=n("353"),f=n("5293");n("3906");var m=((r=m||{}).Show="1",r.Hide="0",r);async function g(e){var t,r;let{routes:i}=n("6118"),l=(0,o.fp)(i,e);if(l){let t=l[0].route,n=await t.preload(),i=(0,h.bw)(l[0].route.filePath),o=a.Z.pages.find(t=>{let n=e=>e.replace(/\/$/,"").toLowerCase();return(0,s.pV)(n(t.routePath),n(e))}),c=encodeURIComponent(i),u=(null===(r=n.default.__RSPRESS_PAGE_META)||void 0===r?void 0:r[c])||{},{toc:d=[],title:p="",frontmatter:f={},...m}=h.kv.test(t.filePath)?u:n;return{siteData:a.Z,page:{...m,pagePath:i,...o,pageType:(null==f?void 0:f.pageType)||"doc",title:p,frontmatter:f,toc:d}}}let c=a.Z.lang||"",u=(null===(t=a.Z.multiVersion)||void 0===t?void 0:t.default)||"";if(a.Z.lang&&"undefined"!=typeof window){let e=location.pathname.replace(a.Z.base,"").split("/").slice(0,2);if(a.Z.locales.length){let t=a.Z.locales.find(t=>{let{lang:n}=t;return e.includes(n)});t&&(c=t.lang)}if(a.Z.multiVersion.versions){let t=a.Z.multiVersion.versions.find(t=>e.includes(t));t&&(u=t)}}return{siteData:a.Z,page:{pagePath:"",pageType:"404",routePath:"/404",lang:c,frontmatter:{},title:"404",toc:[],version:u,_filepath:"",_relativePath:""}}}function x(e){let{helmetContext:t}=e,{setData:n,data:r}=(0,d.useContext)(l.R0),a=r.page.frontmatter||{},{pathname:o,search:h}=(0,c.TH)(),m=new URLSearchParams(h),x="globalUIComponents",v=!1===a[x]||"0"===m.get(x);return(0,d.useLayoutEffect)(()=>{(async function e(){try{let e=await g((0,s.Tm)(o));n(e)}catch(e){console.log(e)}})()},[o,n]),(0,i.jsxs)(u.B6,{context:t,children:[(0,i.jsx)(f.default.Layout,{}),!v&&p.Z.map((e,t)=>{if(Array.isArray(e)){let[n,r]=e;return d.createElement(n,{key:t,...r})}return d.createElement(e,{key:t})})]})}},243:function(e,t,n){"use strict";var r=n("5893"),i=n("7294"),a=n("8995"),o=n("6780"),s=n("8028"),l=n("5687"),c=n("9655"),u=n("4353");let d=o.Z.ssg,{default:h,useThemeState:p}=n("5293");(async function e(){let e=document.getElementById("root"),t=async()=>{let e=await (0,u.$X)((0,s.Tm)(window.location.pathname));return function(){let[t,n]=(0,i.useState)(e),[a,o]=p();return(0,r.jsx)(l.Ni.Provider,{value:(0,i.useMemo)(()=>({theme:a,setTheme:o}),[a,o]),children:(0,r.jsx)(l.R0.Provider,{value:(0,i.useMemo)(()=>({data:t,setData:n}),[t,n]),children:(0,r.jsx)(c.VK,{children:(0,r.jsx)(u.gV,{})})})})}},o=await t();{let{createRoot:t,hydrateRoot:i}=n("745");(0,a.yv)()&&d?i(e,(0,r.jsx)(o,{})):t(e).render((0,r.jsx)(o,{}))}})().then(()=>{h.setup()})},6835:function(e,t,n){"use strict";n.d(t,{AV:function(){return r.AV},Ar:function(){return r.Ar},BZ:function(){return r.BZ},CF:function(){return r.CF},CU:function(){return r.CU},Ct:function(){return r.Ct},EG:function(){return r.EG},H_:function(){return r.H_},JL:function(){return r.JL},KO:function(){return r.KO},M4:function(){return r.M4},NG:function(){return r.NG},O9:function(){return r.O9},OK:function(){return r.OK},Os:function(){return r.Os},Qn:function(){return r.Qn},RY:function(){return r.RY},Rg:function(){return r.Rg},SU:function(){return r.SU},TJ:function(){return r.TJ},UQ:function(){return r.UQ},VA:function(){return r.VA},Vl:function(){return r.Vl},Vp:function(){return r.Vp},WG:function(){return r.WG},WS:function(){return r.WS},YE:function(){return r.YE},YS:function(){return r.YS},ZB:function(){return r.ZB},cY:function(){return r.cY},eE:function(){return r.eE},eF:function(){return r.eF},g2:function(){return r.g2},ls:function(){return r.ls},mQ:function(){return r.mQ},mi:function(){return r.mi},of:function(){return r.of},ol:function(){return r.ol},pU:function(){return r.pU},qx:function(){return r.qx},s2:function(){return r.s2},tx:function(){return r.tx},xB:function(){return r.xB},xK:function(){return r.xK},xN:function(){return r.xN},y2:function(){return r.y2},zh:function(){return r.zh},zx:function(){return r.zx}});var r=n("2179")},4089:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n("9250"),i=n("2557"),a=n("7294");function o(e){let{pathname:t}=(0,r.TH)(),{selector:n=".rspress-doc img",options:o={}}=e;return(0,a.useEffect)(()=>{let e;let t=setTimeout(()=>{let t=document.querySelectorAll(n);e=(0,i.Z)(t,{...o,background:"var(--rp-c-bg)"})},100);return()=>{clearTimeout(t),null==e||e.detach(),null==e||e.close()}},[t]),null}n("4902")},2198:function(e,t,n){"use strict";var r=n("7294"),i=n("3372");t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.useLayoutEffect(()=>{i.ZP.inject(e)},[]),null}},1823:function(e,t,n){"use strict";n.d(t,{AV:function(){return r.AV},Ar:function(){return r.Ar},BZ:function(){return r.BZ},CF:function(){return r.CF},CU:function(){return r.CU},Ct:function(){return r.Ct},EG:function(){return r.EG},H_:function(){return r.H_},JL:function(){return r.JL},KO:function(){return r.KO},M4:function(){return r.M4},NG:function(){return r.NG},O9:function(){return r.O9},OK:function(){return r.OK},Os:function(){return r.Os},Qn:function(){return r.Qn},RY:function(){return r.RY},Rg:function(){return r.Rg},SU:function(){return r.SU},TJ:function(){return r.TJ},UQ:function(){return r.UQ},VA:function(){return r.VA},Vl:function(){return r.Vl},Vp:function(){return r.Vp},WG:function(){return r.WG},WS:function(){return r.WS},YE:function(){return r.YE},YS:function(){return r.YS},ZB:function(){return r.ZB},cY:function(){return r.cY},eE:function(){return r.eE},eF:function(){return r.eF},g2:function(){return r.g2},ls:function(){return r.ls},mQ:function(){return r.mQ},mi:function(){return r.mi},of:function(){return r.of},ol:function(){return r.ol},pU:function(){return r.pU},qx:function(){return r.qx},s2:function(){return r.s2},tx:function(){return r.tx},xB:function(){return r.xB},xK:function(){return r.xK},xN:function(){return r.xN},y2:function(){return r.y2},zh:function(){return r.zh},zx:function(){return r.zx}});var r=n("6835")},65:function(e,t,n){"use strict";n.d(t,{Zo:function(){return s},ah:function(){return a}});var r=n("7294");let i=r.createContext({});function a(e){let t=r.useContext(i);return r.useMemo(()=>"function"==typeof e?e(t):{...t,...e},[t,e])}let o={};function s({components:e,children:t,disableParentContext:n}){let s;return s=n?"function"==typeof e?e({}):e||o:a(e),r.createElement(i.Provider,{value:s},t)}},8995:function(e,t,n){"use strict";n.d(t,{$U:function(){return th},E9:function(){return tv},Kw:function(){return tc},_f:function(){return to},bw:function(){return ti},kv:function(){return te},lm:function(){return ta},mi:function(){return tl},pJ:function(){return tx},pZ:function(){return td},rp:function(){return tt},t6:function(){return tn},tz:function(){return tg},xM:function(){return tp},xf:function(){return tu},yc:function(){return tm},yv:function(){return tr}});var r,i,a,o,s,l,c,u,d,h="object"==typeof global&&global&&global.Object===Object&&global,p="object"==typeof self&&self&&self.Object===Object&&self,f=h||p||Function("return this")(),m=f.Symbol,g=Object.prototype,x=g.hasOwnProperty,v=g.toString,y=m?m.toStringTag:void 0,b=function(e){var t=x.call(e,y),n=e[y];try{e[y]=void 0;var r=!0}catch(e){}var i=v.call(e);return r&&(t?e[y]=n:delete e[y]),i},w=Object.prototype.toString,k=m?m.toStringTag:void 0,j=function(e){var t;if(null==e)return void 0===e?"[object Undefined]":"[object Null]";return k&&k in Object(e)?b(e):(t=e,w.call(t))},E=function(e){return null!=e&&"object"==typeof e},S=Array.isArray,N=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},C=function(e){return e},A=function(e){if(!N(e))return!1;var t=j(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},I=f["__core-js_shared__"];var T=(r=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",_=Function.prototype.toString,P=function(e){if(null!=e){try{return _.call(e)}catch(e){}try{return e+""}catch(e){}}return""},O=/^\[object .+?Constructor\]$/,L=Object.prototype,M=Function.prototype.toString,z=L.hasOwnProperty,R=RegExp("^"+M.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$=function(e){var t;return!!N(e)&&(t=e,!T||!(T in t))&&(A(e)?R:O).test(P(e))},F=function(e,t){var n,r,i=(n=e,r=t,null==n?void 0:n[r]);return $(i)?i:void 0},B=Object.create,H=function(){function e(){}return function(t){if(!N(t))return{};if(B)return B(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),D=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},Z=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n0){if(++a>=800)return arguments[0]}else a=0;return i.apply(void 0,arguments)}),W=/^(?:0|[1-9]\d*)$/,G=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&W.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},er=function(e){return null!=e&&en(e.length)&&!A(e)},ei=function(e,t,n){if(!N(n))return!1;var r=typeof t;return("number"==r?!!(er(n)&&G(t,n.length)):"string"==r&&t in n)&&Y(n[t],e)},ea=Object.prototype,eo=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ea)},es=function(e,t){for(var n=-1,r=Array(e);++n-1},eR.prototype.set=function(e,t){var n=this.__data__,r=eM(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var e$=F(f,"Map"),eF=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},eB=function(e,t){var n=e.__data__;return eF(t)?n["string"==typeof t?"string":"hash"]:n.map};function eH(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t1?t[r-1]:void 0,a=r>2?t[2]:void 0;for(i=d.length>3&&"function"==typeof i?(r--,i):void 0,a&&ei(t[0],t[1],a)&&(i=r<3?void 0:i,r=1),e=Object(e);++n!0,ti=e=>e.replace(e9,"").replace(e8,"");function ta(e){return e.replace(/#.*$/,"")}var to=()=>!0;function ts(e){return"/"===e.charAt(0)||tu(e)?e:`/${e}`}function tl(e){return"/"===e.charAt(e.length-1)?e:`${e}/`}function tc(e){var t;return"/"===(t=ts(function(e){let t=e.replace(/\\/g,"/"),n=t.startsWith("/"),r=t.split("/"),i=[];for(let e of r)"."===e||""===e||(".."===e?i.length>0&&".."!==i[i.length-1]?i.pop():n&&i.push(".."):i.push(e));let a=i.join("/");return n&&(a=`/${a}`),a}(e))).charAt(t.length-1)?t.slice(0,-1):t}function tu(e=""){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("mailto:")||e.startsWith("tel:")}function td(e=""){return/^\s*data:/i.test(e)}function th(e,t,n,r="",i=!1,a=!1){let o=tv(e,r);(!o||a)&&(o=i?"/index":"/index.html"),o.endsWith("/")&&(o+=i?"/index":"/index.html");let s="",l="",c="",u=o.split("/").filter(Boolean);return n.current&&n.current!==n.default&&(s=u.shift()||""),t.target!==t.default?(l=t.target,t.current!==t.default&&u.shift()):u.shift(),c=u.join("/")||"",(s||l)&&!c&&(c=i?"index":"index.html"),tx(ts([s,l,c].filter(Boolean).join("/")),r)}function tp(e,t,n="",r=!1,i=!1){let a=tv(e,n);(!a||i)&&(a=r?"/index":"/index.html");let o="",s=a.split("/").filter(Boolean);t.target!==t.default?(o=t.target,t.current!==t.default&&s.shift()):s.shift();let l=s.join("/")||"";return o&&!l&&(l=r?"index":"index.html"),tx(ts([o,l].filter(Boolean).join("/")),n)}var tf=e=>{let[t,n=""]=e.split("#");return{url:t,hash:n}};function tm(e,t=!1){if(!e)return"/";if(tu(e))return e;let{url:n,hash:r}=tf(decodeURIComponent(e));return!t&&!n.endsWith(".html")&&(n.endsWith("/")?n+="index.html":n+=".html"),t&&n.endsWith("/")&&(n+="index"),t&&n.endsWith(".html")&&(n=n.replace(/\.html$/,"")),ts(r?`${n}#${r}`:n)}function tg(e,t=""){return ts(e).replace(tc(t),"")}function tx(e="/",t=""){let n=ts(e),r=tc(t);return n.startsWith(r)?n:`${r}${n}`}function tv(e,t){return ts(e).replace(RegExp(`^${tc(t)}`),"")}},5375:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M16 22 6 12l1.4-1.4 8.6 8.6 8.6-8.6L26 12z"})})},5999:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M22 16 12 26l-1.4-1.4 8.6-8.6-8.6-8.6L12 6z"})})},6164:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 32 32",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M24 9.4 22.6 8 16 14.6 9.4 8 8 9.4l6.6 6.6L8 22.6 9.4 24l6.6-6.6 6.6 6.6 1.4-1.4-6.6-6.6L24 9.4z"})})},2294:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 30 30",...e,children:[(0,r.jsx)("path",{fill:"currentColor",d:"M28 10v18H10V10h18m0-2H10a2 2 0 0 0-2 2v18a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2Z"}),(0,r.jsx)("path",{fill:"currentColor",d:"M4 18H2V4a2 2 0 0 1 2-2h14v2H4Z"})]})},4146:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M16 22 6 12l1.4-1.4 8.6 8.6 8.6-8.6L26 12z"})})},3020:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:48,height:48,fill:"none",viewBox:"0 0 48 48",...e,children:[(0,r.jsx)("path",{stroke:"currentColor",strokeWidth:4,d:"M24 5v6m7 1 4-4m-18 4-4-4m27 33H8a2 2 0 0 1-2-2v-8.46a2 2 0 0 1 .272-1.007l6.15-10.54A2 2 0 0 1 14.148 18H33.85a2 2 0 0 1 1.728.992l6.149 10.541A2 2 0 0 1 42 30.541V39a2 2 0 0 1-2 2Z"}),(0,r.jsx)("path",{stroke:"currentColor",strokeWidth:4,d:"M41.5 30H28s-1 3-4 3-4-3-4-3H6.5"})]})},9174:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 32 32",...e,children:[(0,r.jsx)("circle",{cx:22,cy:24,r:2,fill:"currentColor"}),(0,r.jsx)("path",{fill:"none",d:"M22 28a4 4 0 1 1 4-4 4.004 4.004 0 0 1-4 4Zm0-6a2 2 0 1 0 2 2 2.003 2.003 0 0 0-2-2Z"}),(0,r.jsx)("path",{fill:"currentColor",d:"M29.777 23.479A8.64 8.64 0 0 0 22 18a8.64 8.64 0 0 0-7.777 5.479L14 24l.223.521A8.64 8.64 0 0 0 22 30a8.64 8.64 0 0 0 7.777-5.479L30 24ZM22 28a4 4 0 1 1 4-4 4.005 4.005 0 0 1-4 4Z"}),(0,r.jsx)("path",{fill:"currentColor",d:"M12 28H8V4h8v6a2.006 2.006 0 0 0 2 2h6v4h2v-6a.91.91 0 0 0-.3-.7l-7-7A.909.909 0 0 0 18 2H8a2.006 2.006 0 0 0-2 2v24a2.006 2.006 0 0 0 2 2h4Zm6-23.6 5.6 5.6H18Z"})]})},8438:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})})},3856:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"m21.94 13.11-1.05-3.22c0-.03-.01-.06-.02-.09l-2.11-6.48a.859.859 0 0 0-.8-.57c-.36 0-.68.25-.79.58l-2 6.17H8.84L6.83 3.33a.851.851 0 0 0-.79-.58c-.37 0-.69.25-.8.58L3.13 9.82v.01l-1.07 3.28c-.16.5.01 1.04.44 1.34l9.22 6.71c.17.12.39.12.56-.01l9.22-6.7c.43-.3.6-.84.44-1.34M8.15 10.45l2.57 7.91-6.17-7.91m8.73 7.92 2.47-7.59.1-.33h3.61l-5.59 7.16m4.1-13.67 1.81 5.56h-3.62m-1.3.95-1.79 5.51L12 19.24l-2.86-8.79M6.03 3.94 7.84 9.5H4.23m-1.18 4.19c-.09-.07-.13-.19-.09-.29l.79-2.43 5.82 7.45m11.38-4.73-6.51 4.73.02-.03 5.79-7.42.79 2.43c.04.1 0 .22-.09.29"})})},876:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 32 32",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M28 12v-2h-6V4h-2v6h-8V4h-2v6H4v2h6v8H4v2h6v6h2v-6h8v6h2v-6h6v-2h-6v-8Zm-8 8h-8v-8h8Z"})})},9887:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 32 32",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M13.414 17.586 18 22.172V8H8V6h10a2.002 2.002 0 0 1 2 2v14.172l4.586-4.586L26 19l-7 7-7-7Z"})})},4191:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{width:32,height:32,viewBox:"0 0 24 24",...e,children:(0,r.jsxs)("g",{fill:"none",stroke:"var(--rp-c-brand)",strokeLinecap:"round",strokeWidth:2,children:[(0,r.jsx)("path",{strokeDasharray:60,strokeDashoffset:60,strokeOpacity:.3,d:"M12 3a9 9 0 1 1 0 18 9 9 0 0 1 0-18Z",children:(0,r.jsx)("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"1.3s",values:"60;0"})}),(0,r.jsxs)("path",{strokeDasharray:15,strokeDashoffset:15,d:"M12 3a9 9 0 0 1 9 9",children:[(0,r.jsx)("animate",{fill:"freeze",attributeName:"stroke-dashoffset",dur:"0.3s",values:"15;0"}),(0,r.jsx)("animateTransform",{attributeName:"transform",dur:"1.5s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"})]})]})})},6633:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M4 6h24v2H4zm0 18h24v2H4zm0-12h24v2H4zm0 6h24v2H4z"})})},4009:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M12.1 22h-.9c-5.5-.5-9.5-5.4-9-10.9.4-4.8 4.2-8.6 9-9 .4 0 .8.2 1 .5.2.3.2.8-.1 1.1-2 2.7-1.4 6.4 1.3 8.4 2.1 1.6 5 1.6 7.1 0 .3-.2.7-.3 1.1-.1.3.2.5.6.5 1-.2 2.7-1.5 5.1-3.6 6.8-1.9 1.4-4.1 2.2-6.4 2.2zM9.3 4.4c-2.9 1-5 3.6-5.2 6.8-.4 4.4 2.8 8.3 7.2 8.7 2.1.2 4.2-.4 5.8-1.8 1.1-.9 1.9-2.1 2.4-3.4-2.5.9-5.3.5-7.5-1.1-2.8-2.2-3.9-5.9-2.7-9.2z"})})},921:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{width:24,height:24,viewBox:"0 0 32 32",...e,children:(0,r.jsx)("path",{fill:"var(--rp-c-gray)",d:"m29 27.586-7.552-7.552a11.018 11.018 0 1 0-1.414 1.414L27.586 29ZM4 13a9 9 0 1 1 9 9 9.01 9.01 0 0 1-9-9Z"})})},7281:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 32 32",...e,children:[(0,r.jsx)("circle",{cx:8,cy:16,r:2,fill:"currentColor"}),(0,r.jsx)("circle",{cx:16,cy:16,r:2,fill:"currentColor"}),(0,r.jsx)("circle",{cx:24,cy:16,r:2,fill:"currentColor"})]})},6445:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{width:32,height:32,viewBox:"0 0 30 30",...e,children:(0,r.jsx)("path",{fill:"#49cd37",d:"m13 24-9-9 1.414-1.414L13 21.171 26.586 7.586 28 9 13 24z"})})},8332:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{d:"M12 18c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6zm0-10c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zM12 4c-.6 0-1-.4-1-1V1c0-.6.4-1 1-1s1 .4 1 1v2c0 .6-.4 1-1 1zM12 24c-.6 0-1-.4-1-1v-2c0-.6.4-1 1-1s1 .4 1 1v2c0 .6-.4 1-1 1zM5.6 6.6c-.3 0-.5-.1-.7-.3L3.5 4.9c-.4-.4-.4-1 0-1.4s1-.4 1.4 0l1.4 1.4c.4.4.4 1 0 1.4-.1.2-.4.3-.7.3zM19.8 20.8c-.3 0-.5-.1-.7-.3l-1.4-1.4c-.4-.4-.4-1 0-1.4s1-.4 1.4 0l1.4 1.4c.4.4.4 1 0 1.4-.2.2-.5.3-.7.3zM3 13H1c-.6 0-1-.4-1-1s.4-1 1-1h2c.6 0 1 .4 1 1s-.4 1-1 1zM23 13h-2c-.6 0-1-.4-1-1s.4-1 1-1h2c.6 0 1 .4 1 1s-.4 1-1 1zM4.2 20.8c-.3 0-.5-.1-.7-.3-.4-.4-.4-1 0-1.4l1.4-1.4c.4-.4 1-.4 1.4 0s.4 1 0 1.4l-1.4 1.4c-.2.2-.4.3-.7.3zM18.4 6.6c-.3 0-.5-.1-.7-.3-.4-.4-.4-1 0-1.4l1.4-1.4c.4-.4 1-.4 1.4 0s.4 1 0 1.4l-1.4 1.4c-.2.2-.5.3-.7.3z"})})},9022:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M4 4a2 2 0 0 1 2-2h8a1 1 0 0 1 .707.293l5 5A1 1 0 0 1 20 8v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4zm13.586 4L14 4.414V8h3.586zM12 4H6v16h12V10h-5a1 1 0 0 1-1-1V4z"})})},5247:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{width:18,height:18,viewBox:"0 0 32 32",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M27.85 29H30l-6-15h-2.35l-6 15h2.15l1.6-4h6.85zm-7.65-6 2.62-6.56L25.45 23zM18 7V5h-7V2H9v3H2v2h10.74a14.71 14.71 0 0 1-3.19 6.18A13.5 13.5 0 0 1 7.26 9h-2.1a16.47 16.47 0 0 0 3 5.58A16.84 16.84 0 0 1 3 18l.75 1.86A18.47 18.47 0 0 0 9.53 16a16.92 16.92 0 0 0 5.76 3.84L16 18a14.48 14.48 0 0 1-5.12-3.37A17.64 17.64 0 0 0 14.8 7z"})})},9530:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{fill:"currentColor",d:"M16 7H3V5h13v2M3 19h13v-2H3v2m19-7-4-3v2H3v2h15v2l4-3Z"})})},8279:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}}),n("7294");var r=n("5893"),i=e=>(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:32,height:32,viewBox:"0 0 24 24",...e,children:(0,r.jsx)("path",{fill:"#22a041",d:"M21 5H3v2h18zM3 19h7v-2H3zm0-6h15c1 0 2 .43 2 2s-1 2-2 2h-2v-2l-4 3 4 3v-2h2c2.95 0 4-1.27 4-4 0-2.72-1-4-4-4H3z"})})},8942:function(e,t,n){"use strict";n.d(t,{AV:function(){return ta},Ar:function(){return tT},BZ:function(){return na},CF:function(){return eU},CU:function(){return eq},Ct:function(){return t8},EG:function(){return n8},H_:function(){return ty},JL:function(){return nB},KO:function(){return nx},M4:function(){return eB},NG:function(){return tf},O9:function(){return nh},OK:function(){return n3},Os:function(){return t_},Qe:function(){return nY},Qn:function(){return tj},RY:function(){return tA},Rg:function(){return rf},SU:function(){return nG},TJ:function(){return t6},UQ:function(){return eK},VA:function(){return tv},Vl:function(){return eV},Vp:function(){return rm},WG:function(){return nj},WS:function(){return eZ},YE:function(){return ru},YS:function(){return ti},ZB:function(){return rh},ZP:function(){return rv},cY:function(){return eY},eE:function(){return eJ},eF:function(){return eG},g2:function(){return nD},ls:function(){return td},mQ:function(){return n2},mi:function(){return nn},of:function(){return rx},ol:function(){return n9},pU:function(){return nQ},qx:function(){return eF},rU:function(){return nf},s2:function(){return tp},tx:function(){return eD},xB:function(){return nu},xK:function(){return no},xN:function(){return tb},y2:function(){return tn},zh:function(){return th},zx:function(){return ne}});var r,i,a,o,s,l,c,u,d,h,p,f,m,g,x,v,y,b,w,k,j,E,S=n("5687"),N=n("8028"),C=n("5893");n("8228");var A=n("405"),I=n("5293"),T=n("7213"),_=n("7294"),P=n("65"),O=n("8183"),L=n("9250"),M=n("8995"),z=n("8709"),R=n("8481"),$=n("8390"),F=n("6780"),B=n("5598"),H=n("3306"),D=n("33"),Z=n("6633"),q=n("5999"),U=n("9697"),V=n("9530"),W=n("8279"),G=n("6824"),K=n("3216"),Y=n("640"),J=n("2294"),Q=n("6445"),X=n("2599"),ee=n("4865"),et=n("6118"),en=n("7281"),er=n("8509"),ei=n("8332"),ea=n("4009"),eo=n("5375"),es=n("5247"),el=n("4146"),ec=n("921"),eu=n("3283"),ed=n("4777"),eh=n("3935"),ep=n("5831"),ef=n("6164"),em=n("4191"),eg=n("3020"),ex=n("9174"),ev=n("9887"),ey=n("876"),eb=n("9022"),ew=n("8438"),ek=n("3856"),ej=Object.defineProperty,eE=Object.defineProperties,eS=Object.getOwnPropertyDescriptors,eN=Object.getOwnPropertySymbols,eC=Object.prototype.hasOwnProperty,eA=Object.prototype.propertyIsEnumerable,eI=(e,t,n)=>t in e?ej(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eT=(e,t)=>{for(var n in t||(t={}))eC.call(t,n)&&eI(e,n,t[n]);if(eN)for(var n of eN(t))eA.call(t,n)&&eI(e,n,t[n]);return e},e_=(e,t)=>eE(e,eS(t)),eP=(e,t)=>{var n={};for(var r in e)eC.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&eN)for(var r of eN(e))0>t.indexOf(r)&&eA.call(e,r)&&(n[r]=e[r]);return n},eO=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},eL=(e,t,n)=>(eO(e,t,"read from private field"),n?n.call(e):t.get(e)),eM=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},ez=(e,t,n,r)=>(eO(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),eR=(e,t,n)=>(eO(e,t,"access private method"),n),e$=(e,t,n)=>new Promise((r,i)=>{var a=e=>{try{s(n.next(e))}catch(e){i(e)}},o=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,o);s((n=n.apply(e,t)).next())});function eF(){let{siteData:e,page:t}=(0,S.Vi)(),n=e.lang,r=e.multiVersion.default;if(n&&"undefined"!=typeof window&&location.pathname.includes(`/${n}/`)){let e=location.pathname.replace(`/${n}/`,"/");return window.location.replace(e),(0,C.jsx)(C.Fragment,{})}let i="/";return r&&t.version!==r&&(i+=`${t.version}/`),n&&t.lang!==n&&(i+=`${t.lang}/`),(0,C.jsxs)("div",{className:"m-auto mt-50 p-16 sm:p-8 sm:pt-24 sm:pb-40 text-center flex-center flex-col",children:[(0,C.jsx)("p",{className:"text-6xl font-semibold",children:"404"}),(0,C.jsx)("h1",{className:"leading-5 pt-3 text-xl font-bold",children:"PAGE NOT FOUND"}),(0,C.jsx)("div",{style:{height:"1px"},className:"mt-6 mx-auto mb-4.5 w-16 bg-gray-light-1"}),(0,C.jsx)("div",{className:"pt-5",children:(0,C.jsx)("a",{className:"py-2 px-4 rounded-2xl inline-block border-solid border-brand text-brand font-medium hover:border-brand-dark hover:text-brand-dark transition-colors duration-300",href:(0,N.pJ)(i),"aria-label":"go to home",children:"Take me home"})})]})}function eB(){var e,t,n;let r=(0,S.Vi)(),{page:{lang:i}}=r,a=null!=(t=null==(e=null==r?void 0:r.siteData)?void 0:e.themeConfig)?t:{},o=null!=(n=r.siteData.lang)?n:"",s=null==a?void 0:a.locales;return s&&0!==s.length?e_(eT({},s.find(e=>e.lang===i)),{langRoutePrefix:i===o?"/":i}):{nav:a.nav,sidebar:a.sidebar,prevPageText:a.prevPageText,nextPageText:a.nextPageText,sourceCodeText:a.sourceCodeText,searchPlaceholderText:a.searchPlaceholderText}}var eH=(e,t)=>{let n;for(let r of Object.keys(e)){if(n&&n!==r)continue;if((0,N.pV)((0,N.pJ)(r),t))return{group:"Documentation",items:e[r]};let i=e[r].find(i=>{let a=i=>{if(!t.startsWith((0,N.pJ)(r))){for(let i of Object.keys(e))if(i!==r&&t.startsWith((0,M.mi)((0,N.pJ)(i))))return n=i,!1}let o=()=>"link"in i&&(0,N.pV)((0,N.pJ)(i.link),t);if("items"in i)return!!o()||i.items.some(e=>a(e));return o()};return a(i)});if(i){let t=e[r];return{group:"text"in i&&i.text||"",items:t}}}return{group:"Documentation",items:[]}};function eD(){var e;let t=eB(),n=null!=(e=t.sidebar)?e:{},{pathname:r}=(0,L.TH)(),i=decodeURIComponent(r),[a,o]=(0,_.useState)(eH(n,i));return(0,_.useEffect)(()=>{o(eH(n,i))},[i,t.lang]),a}function eZ(){let{pathname:e}=(0,L.TH)(),{items:t}=eD(),n=[],r=e=>{"items"in e?(e.link&&n.push({text:e.text,link:e.link}),e.items.forEach(e=>{"dividerType"in e||r(e)})):n.push(e)};t.forEach(e=>!("dividerType"in e)&&r(e));let i=n.findIndex(t=>(0,N.pV)((0,N.pJ)(t.link),e)),a=n[i-1]||null;return{prevPage:a,nextPage:n[i+1]||null}}function eq(){var e,t,n;let{siteData:r,page:i}=(0,S.Vi)(),a=null!=(n=null!=(t=eB().editLink)?t:null==(e=r.themeConfig)?void 0:e.editLink)?n:{};if(!a.docRepoBaseUrl||!a.text)return null;let{docRepoBaseUrl:o}=a;!o.endsWith("/")&&(o+="/");let s=i._relativePath.replace(/\\/g,"/"),l=`${o}${s}`;return{text:a.text,link:l}}function eU(){var e;let{siteData:{themeConfig:t},page:{frontmatter:n={}}}=(0,S.Vi)(),r=(null==(e=null==n?void 0:n.navbar)||e)&&(null==t?void 0:t.hideNavbar)!=="always",[i,a]=(0,_.useState)(r);return[i,a]}function eV(){var e;let{siteData:{themeConfig:t}}=(0,S.Vi)(),n=null!=(e=t.hideNavbar)?e:"never",[r,i]=(0,_.useState)(!1),{pathname:a}=(0,L.TH)(),o=(0,_.useRef)(0);return"never"!==n&&("always"===n||((0,_.useEffect)(()=>{i(!1);let e=(0,z.Z)(()=>{let{scrollTop:e}=document.documentElement;if(e!==o.current)i(o.current>0&&e-o.current>0),o.current=e<=0?0:e},200);return window.addEventListener("mousewheel",e),window.addEventListener("touchmove",e),()=>{window.removeEventListener("mousewheel",e),window.removeEventListener("touchmove",e)}},[a]),r))}function eW(e,t=72){let n=parseInt(window.getComputedStyle(e).paddingTop,10);return Math.round(window.scrollY+e.getBoundingClientRect().top-t-n)}function eG(e,t,n=72){window.scrollTo(eT({left:0,top:eW(e,n)},t?{behavior:"smooth"}:{}))}function eK(){let e=document.getElementById("aside-container"),t=Array.from(document.querySelectorAll(".rspress-doc .header-anchor")).filter(e=>{var t;return(null==(t=e.parentElement)?void 0:t.tagName)!=="H1"});if(!e||!t.length)return;let n=null;if(!Array.from((null==e?void 0:e.getElementsByTagName("a"))||[]).map(e=>decodeURIComponent(e.hash)).length)return;let r=(t,r)=>{if(t[r]){let i=t[r].getAttribute("href"),a=null==e?void 0:e.querySelector(`a[href="#${null==i?void 0:i.slice(1)}"] > span`);a&&(n&&n.classList.remove("aside-active"),(n=a).classList.add("aside-active"))}},i=()=>{if(document.documentElement.scrollTop+window.innerHeight>=document.documentElement.scrollHeight)r(t,t.length-1);else for(let e=0;e=o&&a{n&&n.classList.remove("aside-active"),window.removeEventListener("scroll",a)}}function eY(){(0,M._f)()&&(window.addEventListener("click",e=>{let t=e.target.closest("a");if(t){let{origin:n,hash:r,target:i,pathname:a,search:o}=t,s=window.location;r&&"_blank"!==i&&n===s.origin&&(a===s.pathname&&o===s.search&&r&&t.classList.contains("header-anchor")?(e.preventDefault(),history.pushState(null,"",r),!function(e,t,n=!1){let r=null;try{r=e.classList.contains("header-anchor")?e:document.getElementById(decodeURIComponent(t.slice(1)))}catch(e){console.warn(e)}r&&eG(r,n)}(t,r,!0),window.dispatchEvent(new Event("hashchange"))):window.addEventListener("RspressReloadContent",()=>{location.hash.length>1&&eG(document.getElementById(location.hash.slice(1)),!1)}))}},{capture:!0}),window.addEventListener("hashchange",e=>{e.preventDefault()}))}function eJ(){let e=(0,S.Jr)(),t=(0,S.aw)(),n=(0,S.Vi)(),r=n.siteData.lang,i=n.siteData.multiVersion.default;return{normalizeLinkHref:n=>{let a=n;if((r||i)&&!(0,M.xf)(a)&&!a.startsWith("#")){let n=(a=(0,N.E9)(a)).split("/").filter(Boolean),o="",s="",l="";return i&&(t!==i?(o=t,n[0]===t&&n.shift()):n[0]===i&&n.shift()),r&&(e!==r?(s=e,n[0]===e&&n.shift()):n[0]===r&&n.shift()),l=n.join("/"),(0,N.AP)((0,N.pJ)([o,s,l].filter(Boolean).join("/")))}return a}}}var eQ="default",eX=/[\u3131-\u314e|\u314f-\u3163|\uac00-\ud7a3]/u,e0=/[\u0400-\u04FF]/u;function e1(e){let t=e.toString().toLowerCase().normalize("NFD"),n=t.replace(/[\u0300-\u036f]/g,"");return e0.test(String(e))?t.normalize("NFC"):eX.test(String(e))?n.normalize("NFC"):n}function e2(e){return e.replace(/https?:\/\/[^/]+/,"")}function e3(e){return e.charCodeAt(0)>255?3:1}var e4=e=>e.map(e=>"string"==typeof e?{value:e,label:e}:e);function e5(e,t){let n=0,r=0;for(let i=0;i=t);i++)r+=e3(e.charAt(i)),n++;return n}function e6(e){let t=0;for(let n=0;ne_(eT({},e),{normalizedContent:e1(e.content),headers:e.toc.map(e=>e1(e.text)).join(" "),normalizedTitle:e1(e.title)})),u={tokenize:"full",async:!0,doc:{id:"routePath",field:["normalizedTitle","headers","normalizedContent"]},cache:100,split:/\W+/};ez(this,i,R.create(u)),ez(this,a,R.create(e_(eT({},u),{tokenize:e=>e9(e,e7)}))),ez(this,o,R.create(e_(eT({},u),{tokenize:e=>e9(e,e8)}))),eL(this,i).add(c),eL(this,a).add(c),eL(this,o).add(c)})}search(e){return e$(this,null,function*(){var t,n;let{keyword:r,limit:s}=e,l={query:r,limit:s,field:["normalizedTitle","headers","normalizedContent"]};return[{index:eQ,hits:(yield Promise.all([null==(t=eL(this,i))?void 0:t.search(l),null==(n=eL(this,a))?void 0:n.search(l),eL(this,o).search(l)])).flat(2).filter(Boolean)}]})}};i=new WeakMap,a=new WeakMap,o=new WeakMap,s=new WeakSet,l=function(e,t){return e$(this,null,function*(){let n=`${t}###${e}`,r=t?`.${t.replace(".","_")}`:"",i=e?`.${e}`:"";return(yield fetch(`/react-native-testing-library/static/${M.t6}${r}${i}.${$.Z[n]}.json`)).json()})};var tt=class{constructor(){eM(this,c,void 0)}init(e){return e$(this,null,function*(){ez(this,c,e)})}search(e){return e$(this,null,function*(){let{apiUrl:t,searchIndexes:n}=eL(this,c),{keyword:r,limit:i}=e,a=Object.entries({keyword:r,limit:i.toString(),searchIndexes:(null==n?void 0:n.map(e=>"string"==typeof e?e:e.value).join(","))||"",lang:eL(this,c).currentLang}).map(e=>e.map(encodeURIComponent).join("=")).join("&");try{return(yield fetch(`${t}?${a}`)).json()}catch(e){return console.error(e),[]}})}};c=new WeakMap;var tn=((r=tn||{}).Default="default",r.Custom="custom",r),tr=class{constructor(e){if(eM(this,p),eM(this,m),eM(this,x),eM(this,y),eM(this,w),eM(this,j),eM(this,u,void 0),eM(this,d,eQ),eM(this,h,void 0),ez(this,u,e),ez(this,d,e.indexName),"remote"===e.mode)ez(this,h,new tt);else ez(this,h,new te)}init(){return e$(this,null,function*(){var e;yield null==(e=eL(this,h))?void 0:e.init(eL(this,u))})}match(e,t=7){return e$(this,null,function*(){var n;let r=yield null==(n=eL(this,h))?void 0:n.search({keyword:e,limit:t}),i=e1(e),a=(null==r?void 0:r.find(e=>eR(this,j,E).call(this,e.index)))||{index:eQ,renderType:"default",hits:[]};return[{group:eL(this,d),renderType:"default",result:eR(this,p,f).call(this,i,a)},...((null==r?void 0:r.filter(e=>!eR(this,j,E).call(this,e.index)))||[]).map(e=>({group:e.index,renderType:"default",result:eR(this,p,f).call(this,i,e)}))]})}};function ti(){var e;let{siteData:t,page:n}=(0,S.Vi)(),[r,i]=(0,_.useState)(!1),{sidebar:a}=eB(),o=e=>eH(a,e).group,s=(0,_.useRef)(null);return(0,_.useEffect)(()=>{!function(){e$(this,null,function*(){if(!r){let e=new tr(e_(eT({},t.search),{mode:"local",currentLang:n.lang,currentVersion:n.version,extractGroupName:o}));s.current=e,yield e.init(),i(!0)}})}()},[]),{initialized:r,search:null==(e=s.current)?void 0:e.match.bind(s.current)}}function ta(){let{siteData:e,page:t}=(0,S.Vi)(),n=e.lang||"",r=Object.values(e.themeConfig.locales||{}).map(e=>e.lang)||[],i=t.lang;(0,_.useEffect)(()=>{var t;let a;if("auto"!==(null!=(t=e.themeConfig.localeRedirect)?t:"auto")||!n)return;let{pathname:o,search:s}=window.location,l=(0,N.E9)(o),c="rspress-visited";if(localStorage.getItem(c))return;localStorage.setItem(c,"1");let u=window.navigator.language.split("-")[0];if(!!r.includes(u))u!==i&&(a=u===n?o.replace(`/${i}`,""):i===n?(0,N.pJ)(`/${u}${l}`):o.replace(`/${i}`,`/${u}`))&&window.location.replace(a+s)},[])}u=new WeakMap,d=new WeakMap,h=new WeakMap,p=new WeakSet,f=function(e,t){let n=[];return null==t||t.hits.forEach(t=>{eR(this,m,g).call(this,t,e,n),!eR(this,x,v).call(this,t,e,n)&&eR(this,y,b).call(this,t,e,n)}),n},m=new WeakSet,g=function(e,t,n){let{title:r=""}=e,i=e1(r);return!!i.includes(t)&&(n.push({type:"title",title:r,header:r,link:`${e.domain}${(0,N.AP)(e.routePath)}`,query:t,highlightInfoList:[{start:i.indexOf(t),length:e6(t)}],group:eL(this,u).extractGroupName(e.routePath)}),!0)},x=new WeakSet,v=function(e,t,n){let{toc:r=[],domain:i="",title:a=""}=e;for(let[o,s]of r.entries())if(e1(s.text).includes(t)){let l=(function(e,t){let n=e[t],r=t,i=[n];for(;n&&n.depth>2;){let t=!1;for(let a=r-1;a>=0;a--){let o=e[a];if(o.depth>1&&o.depth===n.depth-1){n=o,r=a,i.unshift(n),t=!0;break}}if(!t)break}return i})(r,o).map(e=>e.text).join(" > "),c=e1(l).indexOf(t),d=`${a} > `;return n.push({type:"header",title:e.title,header:`${d}${l}`,highlightInfoList:[{start:c+d.length,length:e6(t)}],link:`${i}${(0,N.AP)(e.routePath)}#${s.id}`,query:t,group:eL(this,u).extractGroupName(e.routePath)}),!0}return!1},y=new WeakSet,b=function(e,t,n){var r,i,a;let{content:o,toc:s,domain:l}=e;if(!o.length)return;let c=e1(o),d=c.indexOf(t),h=s.map(e=>e.charIndex),p=e=>s[h.findIndex((t,n)=>{if(!(n=e)return!0}return!1})];if(-1===d){let a=null==(r=e._matchesPosition)?void 0:r.content;if(!(null==a?void 0:a.length))return;let s=e._matchesPosition.content[0].start,c=p(s),d=e5(o,s),h=e5(o,s+100),f=o.slice(d,h),m=e._matchesPosition.content.filter(e=>e.start>=s&&e.start+e.length<=s+100).map(e=>({start:e5(o,e.start)-d+3,length:e.length}));n.push({type:"content",title:e.title,header:null!=(i=null==c?void 0:c.text)?i:e.title,link:`${l}${(0,N.AP)(e.routePath)}${c?`#${c.id}`:""}`,query:t,highlightInfoList:m,group:eL(this,u).extractGroupName(e.routePath),statement:`...${f}...`});return}for(;-1!==d;){let r=p(d),i=o.slice(0,d).lastIndexOf("\n");i=-1===i?0:i;let s=o.indexOf("\n\n",d+t.length),h=o.slice(i,s);h.length>100&&(h=eR(this,w,k).call(this,h,t));let f=e1(h).indexOf(t),m=[{start:f,length:e6(t)}];n.push({type:"content",title:e.title,header:null!=(a=null==r?void 0:r.text)?a:e.title,statement:h,highlightInfoList:m,link:`${l}${(0,N.AP)(e.routePath)}${r?`#${r.id}`:""}`,query:t,group:eL(this,u).extractGroupName(e.routePath)}),d=c.indexOf(t,d+h.length-f)}},w=new WeakSet,k=function(e,t){let n=e1(e).indexOf(e1(t)),r=Math.floor((100-t.length)/2),i=e.slice(0,n);i.length>r&&(i=`...${e.slice(n-r+3,n)}`);let a=e.slice(n+t.length);return a.length>r&&(a=`${e.slice(n+t.length,n+r-3)}...`),i+t+a},j=new WeakSet,E=function(e){return e===eL(this,d)||e===eQ};var to=e=>{let t=(0,_.useRef)(e);return t.current=e,(0,_.useRef)((...e)=>t.current(...e)).current},ts=e=>{let[t,n]=(0,_.useState)(()=>"undefined"!=typeof window&&window.matchMedia(e).matches);return(0,_.useEffect)(()=>{let t=window.matchMedia(e),r=e=>n(e.matches);return t.addEventListener("change",r),()=>t.removeEventListener("change",r)},[e]),t},tl=(e,t=null)=>{let[n,r]=(0,_.useState)(()=>{var n;return"undefined"==typeof window?t:null!=(n=localStorage.getItem(e))?n:t}),i=(0,_.useCallback)(t=>{r(n=>{let r="function"==typeof t?t(n):t;return null==r?localStorage.removeItem(e):localStorage.setItem(e,r),r})},[e]);return(0,_.useEffect)(()=>{let n=n=>{var i;n.key===e&&r(null!=(i=localStorage.getItem(e))?i:t)};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}},[e,t]),[n,i]},tc=e=>["light","dark","auto"].includes(e)?e:"auto",tu=!1===F.Z.themeConfig.darkMode,td=()=>{let e=ts("(prefers-color-scheme: dark)"),[t,n]=tl(M.rp),r=to(()=>{if(tu)return"light";let n=tc(t);return"auto"===n?e?"dark":"light":n}),[i,a]=(0,_.useState)(()=>{var e;if("undefined"==typeof window)return"light";let t=null!=(e=window.RSPRESS_THEME)?e:window.MODERN_THEME;return t?"dark"===t?"dark":"light":r()}),o=(0,_.useCallback)((e,t=e)=>{!tu&&(a(e),n(t),l(!0))},[]);(0,_.useEffect)(()=>{document.documentElement.classList.toggle("dark","dark"===i),document.documentElement.style.colorScheme=i},[i]);let[s,l]=(0,_.useState)(!0);return(0,_.useEffect)(()=>{l(!1)},[s]),(0,_.useEffect)(()=>{!s&&o(r(),tc(t))},[t]),(0,_.useEffect)(()=>{!s&&o(e?"dark":"light","auto")},[e]),[i,o]};function th(e,t,n=!1){return!!t&&(n?(0,N.pV)(e,t):(0,N.pV)(e,t)||e.startsWith(t))}function tp(){return window.innerWidth<=1024}function tf(e){return e?(0,D.Z)(e)?e:(0,H.Z)(e)?B(e):e:""}var tm=/`(.*?)`/g,tg=RegExp("\\*{2}(?!\\*)(.*?)(?$1").replace(tx,"$1").replace(tm,"$1"))}function ty(e){return e.replace(tg,"$1").replace(tx,"$1").replace(tm,"$1")}function tb(e){var t;let{headers:n}=e,r=n.length>0,i=(null==(t=n[0])?void 0:t.depth)||2,a=eV();return(0,_.useEffect)(()=>{let e;setTimeout(()=>{e=eK()},100);let t=decodeURIComponent(window.location.hash);if(t){let e=document.getElementById(t.slice(1));e&&eG(e,!1,a?0:72)}else window.scrollTo(0,0);return()=>{e&&e()}},[n]),(0,C.jsx)("div",{className:"flex flex-col",children:(0,C.jsx)("div",{className:r?"(0,C.jsx)("li",{children:(0,C.jsx)("a",{href:`#${e.id}`,title:ty(e.text),className:"aside-link transition-all duration-300 hover:text-text-1 text-text-2 block",style:{paddingLeft:(e.depth-i)*12,fontWeight:"semibold"},onClick:t=>{t.preventDefault(),window.location.hash=e.id;let n=document.getElementById(e.id);n&&eG(n,!1,a?0:72)},children:(0,C.jsx)("span",{className:"aside-link-text block",children:tv(e.text)})})},e.id))})})]})})})}var tw="prev_e7091",tk="next_e7091";function tj(){let{prevPage:e,nextPage:t}=eZ(),{lastUpdated:n=!1}=eB(),{siteData:r}=(0,S.Vi)(),{themeConfig:i}=r,a=i.lastUpdated||n;return(0,C.jsxs)("footer",{className:"mt-8",children:[(0,C.jsx)("div",{className:"xs:flex pb-5 px-2 justify-end items-center",children:a&&(0,C.jsx)(I.LastUpdated,{})}),(0,C.jsx)("div",{className:"flex flex-col",children:(0,C.jsx)(I.EditLink,{})}),(0,C.jsxs)("div",{className:"flex flex-col sm:flex-row sm:justify-around gap-4 pt-6",children:[(0,C.jsx)("div",{className:`${tw} flex flex-col`,children:e?(0,C.jsx)(I.PrevNextPage,{type:"prev",text:e.text,href:(0,N.AP)(e.link)}):null}),(0,C.jsx)("div",{className:`${tk} flex flex-col`,children:t?(0,C.jsx)(I.PrevNextPage,{type:"next",text:t.text,href:(0,N.AP)(t.link)}):null})]})]})}function tE(e){var{icon:t}=e,n=eP(e,["icon"]);return t?"string"==typeof t?(0,C.jsx)("img",eT({src:t,alt:""},n)):(0,C.jsx)(t,eT({},n)):null}function tS({outlineTitle:e,beforeSidebar:t,afterSidebar:n,uiSwitch:r}){let[i,a]=(0,_.useState)(!1),[o,s]=(0,_.useState)(!1),l=(0,_.useRef)(),c=(0,_.useRef)(),{pathname:u}=(0,L.TH)();(0,_.useEffect)(()=>{a(!1)},[u]),(0,_.useEffect)(()=>(document.addEventListener("mouseup",d),document.addEventListener("touchend",d),()=>{document.addEventListener("mouseup",d),document.removeEventListener("touchend",d)}),[]);let d=e=>{let{current:t}=c;if(null==t?void 0:t.contains(e.target))return;let{current:n}=l;n&&!n.contains(e.target)&&s(!1)};return(0,C.jsxs)(_.Fragment,{children:[(0,C.jsxs)("div",{className:"rspress-sidebar-menu",children:[r.showSidebar?(0,C.jsxs)("button",{onClick:function(){a(!0)},className:"flex-center mr-auto",children:[(0,C.jsx)("div",{className:"text-md mr-2",children:(0,C.jsx)(tE,{icon:Z.Z})}),(0,C.jsx)("span",{className:"text-sm",children:"Menu"})]}):null,r.showAside?(0,C.jsxs)(_.Fragment,{children:[(0,C.jsxs)("button",{onClick:()=>s(e=>!e),className:"flex-center ml-auto",ref:c,children:[(0,C.jsx)("span",{className:"text-sm",children:e}),(0,C.jsx)("div",{className:"text-md mr-2",style:{transform:o?"rotate(90deg)":"rotate(0deg)",transition:"transform 0.2s ease-out",marginTop:"2px"},children:(0,C.jsx)(tE,{icon:q.Z})})]}),(0,C.jsx)(U.Z,{in:o,timeout:300,unmountOnExit:!0,classNames:"fly-in",nodeRef:l,children:(0,C.jsx)("div",{className:"rspress-local-toc-container",ref:l,children:(0,C.jsx)(I.Toc,{onItemClick:()=>{s(!1)}})})})]}):null]}),r.showSidebar?(0,C.jsxs)(_.Fragment,{children:[(0,C.jsx)(I.Sidebar,{isSidebarOpen:i,beforeSidebar:t,afterSidebar:n,uiSwitch:r}),i?(0,C.jsx)("div",{onClick:function(){a(!1)},className:"rspress-sidebar-back-drop",style:{background:"rgba(0, 0, 0, 0.6)"}}):null]}):null]})}var tN=(0,_.createContext)({tabData:{},setTabData:()=>{}}),tC={asideContainer:"aside-container_edeb4",docLayout:"docLayout_edeb4",content:"content_edeb4"};function tA(e){var t,n;let{beforeDocFooter:r,afterDocFooter:i,beforeDoc:a,afterDoc:o,beforeDocContent:s,afterDocContent:l,beforeOutline:c,afterOutline:u,beforeSidebar:d,afterSidebar:h,uiSwitch:p}=e,{siteData:f,page:m}=(0,S.Vi)(),{toc:g=[],frontmatter:x}=m,[v,y]=(0,_.useState)({}),{themeConfig:b}=f,w=null!=(t=b.enableScrollToTop)&&t,k=eB(),j=(null==k?void 0:k.outlineTitle)||(null==b?void 0:b.outlineTitle)||"ON THIS PAGE",E=null!=(n=null==x?void 0:x.overview)&&n,N=(0,C.jsx)(tN.Provider,{value:{tabData:v,setTabData:y},children:(0,C.jsx)(P.Zo,{components:(0,I.getCustomMDXComponent)(),children:(0,C.jsx)(T.V,{})})});return(0,C.jsxs)("div",{className:`${tC.docLayout} pt-0`,style:eT({},p.showNavbar?{}:{marginTop:0}),children:[a,(0,C.jsx)(tS,{outlineTitle:j,beforeSidebar:d,afterSidebar:h,uiSwitch:p}),(0,C.jsxs)("div",{className:`${tC.content} rspress-doc-container flex flex-shrink-0 mx-auto`,children:[(0,C.jsx)("div",{className:"w-full flex-1",children:E?(0,C.jsxs)(C.Fragment,{children:[s,(0,C.jsx)(I.Overview,{content:N}),l]}):(0,C.jsxs)("div",{children:[(0,C.jsxs)("div",{className:"rspress-doc",children:[s,N,l]}),(0,C.jsxs)("div",{className:"rspress-doc-footer",children:[r,p.showDocFooter&&(0,C.jsx)(tj,{}),i]})]})}),w&&(0,C.jsx)(O.r,{children:(0,C.jsx)(I.ScrollToTop,{})}),p.showAside?(0,C.jsx)("div",{className:tC.asideContainer,style:eT({},p.showNavbar?{}:{marginTop:0,paddingTop:"32px"}),children:(0,C.jsxs)("div",{children:[c,(0,C.jsx)(tb,{headers:g,outlineTitle:j}),u]})}):null]}),o]})}var tI=(e,t)=>t?(e=e.trim(),(t=t.trim()).startsWith("-")||t.startsWith("|"))?`${e} ${t}`:`${e} - ${t}`:e,tT=e=>{var t;let{top:n,bottom:r,beforeDocFooter:i,afterDocFooter:a,beforeDoc:o,afterDoc:s,beforeDocContent:l,afterDocContent:c,beforeSidebar:u,afterSidebar:d,beforeOutline:h,afterOutline:p,beforeNavTitle:f,afterNavTitle:m,beforeNav:g,beforeHero:x,afterHero:v,beforeFeatures:y,afterFeatures:b,afterNavMenu:w}=e,k={beforeDocFooter:i,afterDocFooter:a,beforeDocContent:l,afterDocContent:c,beforeDoc:o,afterDoc:s,beforeSidebar:u,afterSidebar:d,beforeOutline:h,afterOutline:p},j={beforeHero:x,afterHero:v,beforeFeatures:y,afterFeatures:b},{siteData:E,page:N}=(0,S.Vi)(),{pageType:P,lang:O,title:M,frontmatter:z={}}=N,R=eB();ta();let $=null!=(t=z.title)?t:M,F=E.title||R.title;$=$&&"doc"===P?tI($,z.titleSuffix||F):"home"===P?tI(F,z.titleSuffix):F;let B=(null==z?void 0:z.description)||E.description||R.description,H=function(){var e,t;let{page:n,siteData:r}=(0,S.Vi)(),{frontmatter:i}=n,{themeConfig:a}=r,o=eB(),s=(0,L.TH)(),l=null!=(e=null==i?void 0:i.overview)&&e,c=()=>{var e,t;let n="undefined"==typeof window||window.top===window.self;return(null!=(t=null!=(e=null==i?void 0:i.outline)?e:null==a?void 0:a.outline)?t:n)&&!l},[u,d]=eU(),[h,p]=(0,_.useState)(c()),[f,m]=(0,_.useState)(null==(t=null==i?void 0:i.footer)||t),g=o.sidebar||{},x=(null==i?void 0:i.sidebar)!==!1&&Object.keys(g).length>0;return(0,_.useEffect)(()=>{p(c())},[n,r]),(0,_.useEffect)(()=>{let e=new URLSearchParams(s.search),t=document.documentElement.style,n=t.getPropertyValue("--rp-sidebar-width"),r=t.getPropertyValue("--rp-aside-width"),i=e.get("navbar"),a=e.get("sidebar"),o=e.get("outline"),l=e.get("footer");return"0"===i&&d(!1),"0"===a&&document.documentElement.style.setProperty("--rp-sidebar-width","0px"),"0"===o&&document.documentElement.style.setProperty("--rp-aside-width","0px"),"0"===l&&m(!1),()=>{document.documentElement.style.setProperty("--rp-sidebar-width",n),document.documentElement.style.setProperty("--rp-aside-width",r),d(u),m(f)}},[s.search]),{showAside:h,showNavbar:u,showSidebar:x,showDocFooter:f}}();return(0,C.jsxs)("div",{children:[(0,C.jsxs)(A.ql,{htmlAttributes:{lang:O||"en"},children:[$?(0,C.jsx)("title",{children:$}):null,B?(0,C.jsx)("meta",{name:"description",content:B}):null]}),n,"blank"!==P&&H.showNavbar&&(0,C.jsx)(I.Nav,{beforeNavTitle:f,afterNavTitle:m,beforeNav:g,afterNavMenu:w}),(0,C.jsx)("section",{children:(()=>{switch(P){case"home":return(0,C.jsx)(I.default.HomeLayout,eT({},j));case"doc":return(0,C.jsx)(tA,e_(eT({},k),{uiSwitch:H}));case"404":return(0,C.jsx)(I.default.NotFoundLayout,{});case"custom":case"blank":return(0,C.jsx)(T.V,{});default:return(0,C.jsx)(tA,eT({},k))}})()}),r]})};function t_(e){let{beforeHero:t,afterHero:n,beforeFeatures:r,afterFeatures:i}=e,{page:{frontmatter:a}}=(0,S.Vi)();return(0,C.jsxs)("div",{className:"relative",style:{minHeight:"calc(100vh - var(--rp-nav-height))",paddingBottom:"80px"},children:[(0,C.jsxs)("div",{className:"pb-12",children:[t,(0,C.jsx)(I.HomeHero,{frontmatter:a}),n,r,(0,C.jsx)(I.HomeFeature,{frontmatter:a}),i]}),(0,C.jsx)(I.HomeFooter,{})]})}var tP={title:"title_3b154",blockquote:"blockquote_3b154",link:"link_3b154","inline-link":"inline-link_3b154"},tO=e=>(0,C.jsx)("h1",e_(eT({},e),{className:`text-3xl mb-10 leading-10 tracking-tight ${tP.title}`})),tL=e=>(0,C.jsx)("h2",e_(eT({},e),{className:`mt-12 mb-6 pt-8 text-2xl tracking-tight border-t-[1px] border-divider-light ${tP.title}`})),tM=e=>(0,C.jsx)("h3",e_(eT({},e),{className:`mt-10 mb-2 leading-7 text-xl ${tP.title}`})),tz=e=>(0,C.jsx)("h4",e_(eT({},e),{className:`mt-8 leading-6 text-base ${tP.title}`})),tR=e=>(0,C.jsx)("h5",e_(eT({},e),{className:tP.title})),t$=e=>(0,C.jsx)("h6",e_(eT({},e),{className:tP.title})),tF=e=>(0,C.jsx)("ol",e_(eT({},e),{className:"list-decimal pl-5 my-4 leading-7"})),tB=e=>(0,C.jsx)("ul",e_(eT({},e),{className:"list-disc pl-5 my-4 leading-7"})),tH=e=>(0,C.jsx)("li",e_(eT({},e),{className:"[&:not(:first-child)]:mt-2"})),tD=e=>(0,C.jsx)("table",e_(eT({},e),{className:"block border-collapse text-base my-5 overflow-x-auto leading-7 border-gray-light-3 dark:border-divider"})),tZ=e=>(0,C.jsx)("tr",e_(eT({},e),{className:"border border-solid transition-colors duration-500 even:bg-soft border-gray-light-3 dark:border-divider"})),tq=e=>(0,C.jsx)("td",e_(eT({},e),{className:"border border-solid px-4 py-2 border-gray-light-3 dark:border-divider"})),tU=e=>(0,C.jsx)("th",e_(eT({},e),{className:"border border-solid px-4 py-2 text-text-1 text-base font-semibold border-gray-light-3 dark:border-divider"})),tV=e=>(0,C.jsx)("hr",e_(eT({},e),{className:"my-12 border-t border-solid border-divider-light"})),tW=e=>{let{href:t="",className:n=""}=e,{normalizeLinkHref:r}=eJ();return n.includes("header-anchor")||t.startsWith("#")?(0,C.jsx)("a",e_(eT({},e),{className:`${tP.link} ${n}`})):(0,C.jsx)(I.Link,e_(eT({},e),{className:`${n} ${tP.link} ${tP["inline-link"]}`,href:r(t)}))},tG=e=>(0,C.jsx)("p",e_(eT({},e),{className:"my-4 leading-7"})),tK=e=>(0,C.jsx)("blockquote",e_(eT({},e),{className:`border-l-2 border-solid border-divider pl-4 my-6 transition-colors duration-500 ${tP.blockquote}`})),tY=e=>(0,C.jsx)("strong",e_(eT({},e),{className:"font-semibold"})),tJ={"code-button-group":"code-button-group_15153",codeButtonGroup:"code-button-group_15153","code-copy-button":"code-copy-button_15153",codeCopyButton:"code-copy-button_15153","icon-success":"icon-success_15153",iconSuccess:"icon-success_15153","code-copied":"code-copied_15153",codeCopied:"code-copied_15153","icon-copy":"icon-copy_15153",iconCopy:"icon-copy_15153","icon-wrapped":"icon-wrapped_15153",iconWrapped:"icon-wrapped_15153","wrapped-btn":"wrapped-btn_15153",wrappedBtn:"wrapped-btn_15153","icon-wrap":"icon-wrap_15153",iconWrap:"icon-wrap_15153"},tQ={doctype:{color:"var(--code-token-text)",fontStyle:"italic"},token:{color:"var(--code-token-text)"},comment:{color:"var(--code-token-comment)"},punctuation:{color:"var(--code-token-punctuation)"},property:{color:"var(--code-token-parameter)"},constant:{color:"var(--code-token-constant)"},string:{color:"var(--code-token-string)"},symbol:{color:"var(--code-token-symbol)"},variable:{color:"var(--code-token-variable)"},"attr-name":{color:"var(--code-token-symbol)"},"attr-value":{color:"var(--code-token-string-expression)"},builtin:{color:"var(--code-token-symbol)"},function:{color:"var(--code-token-function)"},keyword:{color:"var(--code-token-keyword)"},tag:{color:"var(--code-token-function)"},inserted:{color:"#22863a"},deleted:{color:"#b31d28"},regex:{color:"var(--code-token-keyword)"},key:{color:"var(--code-token-variable)"},title:{color:"var(--code-token-keyword)"},important:{color:"#EBCB8B",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"},table:{display:"content"}},tX=!1;function t0(e){var t;let{siteData:n}=(0,S.Vi)(),{meta:r,language:i,codeWrap:a}=e,{showLineNumbers:o}=n.markdown,s="",l=[];return r&&(s=(null==(t=/{[\d,-]*}/i.exec(r))?void 0:t[0])||"")&&(l=s.replace(/[{}]/g,"").split(",").map(e=>{let[t,n]=e.split("-");return n?Array.from({length:Number(n)-Number(t)+1},(e,n)=>n+Number(t)):Number(t)}).flat()),!tX&&(Object.keys(G.Z).forEach(e=>{K.Z.registerLanguage(e,G.Z[e])}),K.Z.alias(G.j),tX=!0),(0,C.jsx)(K.Z,{language:i,style:tQ,wrapLines:!0,className:"code",wrapLongLines:a,customStyle:{backgroundColor:"inherit"},showLineNumbers:o||l.length>0,lineProps:e=>({style:e_(eT({},l.includes(e)?{backgroundColor:"var(--rp-code-line-highlight-color)"}:{}),{display:"block",padding:"0 1.25rem"})}),children:String(e.children).trim()})}var t1=new Map;function t2({codeBlockRef:e}){let t=(0,_.useRef)(null);return(0,C.jsxs)("button",{className:tJ.codeCopyButton,onClick:()=>(function(e,t){let n="",r=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null),i=r.nextNode();for(;i;)!i.parentElement.classList.contains("linenumber")&&(n+=i.nodeValue),i=r.nextNode();if(Y(n)&&t){t.classList.add(tJ.codeCopied),clearTimeout(t1.get(t));let e=setTimeout(()=>{t.classList.remove(tJ.codeCopied),t.blur(),t1.delete(t)},2e3);t1.set(t,e)}})(e.current,t.current),ref:t,children:[(0,C.jsx)(tE,{icon:J.Z,className:tJ.iconCopy}),(0,C.jsx)(tE,{icon:Q.Z,className:tJ.iconSuccess})]})}function t3(e){var t;let{siteData:n}=(0,S.Vi)(),r=null!=(t=e.codeHighlighter)?t:n.markdown.codeHighlighter,{defaultWrapCode:i}=n.markdown,[a,o]=(0,_.useState)(i),s=(0,_.useRef)(null),l=(0,_.useRef)(),{className:c}=e,u=null==c?void 0:c.replace(/language-/,"");if(!u)return(0,C.jsx)("code",eT({},e));let d=e=>{a?null==e||e.classList.remove(tJ.wrappedBtn):null==e||e.classList.add(tJ.wrappedBtn),o(!a)};return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{ref:l,children:(()=>{if("prism"===r)return(0,C.jsx)(t0,e_(eT({},e),{language:u,codeWrap:a}));return(0,C.jsx)("code",eT({},e))})()}),(0,C.jsxs)("div",{className:tJ.codeButtonGroup,children:[(0,C.jsxs)("button",{ref:s,className:tJ.codeWrapButton,onClick:()=>d(s.current),children:[(0,C.jsx)(tE,{icon:W.Z,className:tJ.iconWrapped}),(0,C.jsx)(tE,{icon:V.Z,className:tJ.iconWrap})]}),(0,C.jsx)(t2,{codeBlockRef:l})]})]})}function t4({children:e}){let t=e=>{let{className:t,meta:n}=e.props,r=function(e){var t,n;if(!e)return"";let r=e,i=/{[\d,-]*}/i;return(null==(t=i.exec(e))?void 0:t[0])&&(r=e.replace(i,"").trim()),null==(r=null!=(n=r.split("=")[1])?n:"")?void 0:r.replace(/["'`]/g,"")}(n);return(0,C.jsxs)("div",{className:t||"language-bash",children:[r&&(0,C.jsx)("div",{className:"rspress-code-title",children:r}),(0,C.jsx)("div",{className:"rspress-code-content rspress-scrollbar",children:e})]})};return Array.isArray(e)?(0,C.jsx)("div",{children:e.map(e=>t(e))}):t(e)}var t5=e=>(0,C.jsx)("img",e_(eT({},e),{src:(0,N.i6)(e.src||"")}));function t6(){return{h1:tO,h2:tL,h3:tM,h4:tz,h5:tR,h6:t$,ul:tB,ol:tF,li:tH,table:tD,td:tq,th:tU,tr:tZ,hr:tV,p:tG,blockquote:tK,strong:tY,a:tW,code:t3,pre:t4,img:t5}}var t7={badge:"badge_99dcf",info:"info_99dcf",warning:"warning_99dcf",danger:"danger_99dcf"};function t8(e){let{text:t,type:n="info"}=e;return(0,C.jsx)("span",{className:`inline-block rounded-full border border-solid border-transparent font-medium ${t7.badge} ${t7[n]}`,children:t})}var t9={button:"button_72e53",medium:"medium_72e53",big:"big_72e53",brand:"brand_72e53",alt:"alt_72e53"};function ne(e){let{theme:t="brand",size:n="big",href:r="/",external:i=!1,className:a=""}=e,o=null;return"button"===e.type?o="button":"a"===e.type&&(o=i?"a":I.Link),_.createElement(null!=o?o:"a",{className:`${t9.button} ${t9[t]} ${t9[n]} ${a}`,href:r},e.text)}var nt={editLink:"editLink_2a169"};function nn(){let e=eq();if(!e)return null;let{text:t,link:n}=e;return(0,C.jsx)("a",{href:n,target:"_blank",className:nt.editLink,children:t})}var nr={"grid-2":"grid-2_d48e3",grid2:"grid-2_d48e3","grid-4":"grid-4_d48e3",grid4:"grid-4_d48e3","grid-6":"grid-6_d48e3",grid6:"grid-6_d48e3","grid-3":"grid-3_d48e3",grid3:"grid-3_d48e3",featureCard:"featureCard_d48e3"},ni=e=>{let{span:t}=e;return`grid-${t||4}`};function na({frontmatter:e}){let t=null==e?void 0:e.features;return(0,C.jsx)("div",{className:"overflow-hidden m-auto flex flex-wrap max-w-6xl",children:null==t?void 0:t.map(e=>{let{icon:t,title:n,details:r,link:i}=e;return(0,C.jsx)("div",{className:`${nr[ni(e)]} rounded hover:var(--rp-c-brand)`,children:(0,C.jsx)("div",{className:"h-full p-2",children:(0,C.jsxs)("article",{className:`rspress-home-feature-card ${nr.featureCard} h-full p-8 rounded-4xl border-transparent`,style:{cursor:i?"pointer":"auto"},onClick:()=>{i&&(window.location.href=i)},children:[t?(0,C.jsx)("div",{className:"flex-center",children:(0,C.jsx)("div",{className:"rspress-home-feature-icon w-12 h-12 text-3xl text-center",children:t})}):null,(0,C.jsx)("h2",{className:"rspress-home-feature-title font-bold text-center",children:n}),(0,C.jsx)("p",{className:"rspress-home-feature-detail leading-6 pt-2 text-sm text-text-2 font-medium",children:tf(r)})]},n)})},n)})})}function no(){let{siteData:e}=(0,S.Vi)(),{message:t}=e.themeConfig.footer||{};return(0,C.jsx)("footer",{className:"absolute bottom-0 mt-12 py-8 px-6 sm:p-8 w-full border-t border-solid border-divider-light",children:(0,C.jsx)("div",{className:"m-auto w-full text-center",children:t&&(0,C.jsx)("div",{className:"font-meduim text-sm text-text-2",children:t})})})}var ns="clip_c867a",nl="mask_c867a",nc={name:"modern",text:"modern ssg",tagline:"modern ssg",actions:[],image:void 0};function nu({frontmatter:e}){var t,n,r,i,a;let o=(null==e?void 0:e.hero)||nc,s=void 0!==o.image,l=s?"sm:max-w-xl":"sm:max-w-4xl",c=o.text?o.text.toString().split(/\n/g).filter(e=>""!==e):[];return(0,C.jsxs)("div",{className:"m-auto pt-0 px-6 pb-12 sm:pt-10 sm:px-16 md:pt-16 md:px-16 md:pb-16 relative",children:[(0,C.jsx)("div",{className:nl,style:{left:s?"75%":"50%"}}),(0,C.jsxs)("div",{className:"m-auto flex flex-col md:flex-row max-w-6xl min-h-[50vh] mt-12 sm:mt-0",children:[(0,C.jsxs)("div",{className:"flex flex-col justify-center items-center text-center max-w-xl sm:max-w-4xl m-auto order-2 md:order-1",children:[(0,C.jsx)("h1",{className:"font-bold text-3xl pb-2 sm:text-6xl md:text-7xl m-auto sm:m-4 md:m-0 md:pb-3 lg:pb-2 leading-tight z-10",children:(0,C.jsx)("span",{className:ns,style:{lineHeight:"1.3"},children:tf(o.name)})}),0!==c.length&&c.map(e=>(0,C.jsx)("p",{className:`rspress-home-hero-text mx-auto md:m-0 text-3xl sm:text-5xl md:text-6xl sm:pb-2 font-bold z-10 ${l}`,style:{lineHeight:"1.2"},children:tf(e)},e)),(0,C.jsx)("p",{className:`rspress-home-hero-tagline whitespace-pre-wrap pt-4 m-auto md:m-0 text-sm sm:tex-xl md:text-2xl text-text-2 font-medium z-10 ${l}`,children:tf(o.tagline)}),(null==(t=o.actions)?void 0:t.length)&&(0,C.jsx)("div",{className:"grid md:flex md:flex-wrap md:justify-center gap-3 m--1.5 pt-6 sm:pt-8 z-10",children:o.actions.map(e=>(0,C.jsx)("div",{className:"flex flex-shrink-0 p-1",children:(0,C.jsx)(I.Button,{type:"a",text:tf(e.text),href:(0,N.AP)(e.link),theme:e.theme,className:"w-full"})},e.link))})]}),s?(0,C.jsx)("div",{className:"rspress-home-hero-image md:flex-center m-auto order-1 md:order-2 sm:flex md:none lg:flex",children:(0,C.jsx)("img",{src:(0,N.i6)(null==(n=o.image)?void 0:n.src),alt:null==(r=o.image)?void 0:r.alt,srcSet:nd(null==(i=o.image)?void 0:i.srcset),sizes:nd(null==(a=o.image)?void 0:a.sizes),width:375,height:375})}):null]})]})}function nd(e){return(Array.isArray(e)?e:[e]).filter(Boolean).join(", ")||void 0}function nh(){let{lastUpdatedText:e="Last Updated"}=eB(),{page:{lastUpdatedTime:t},siteData:n}=(0,S.Vi)(),{themeConfig:r}=n,i=(null==r?void 0:r.lastUpdatedText)||e;return(0,C.jsx)("div",{className:"flex text-sm text-text-2 leading-6 sm:leading-8 font-medium",children:(0,C.jsxs)("p",{children:[i,": ",(0,C.jsx)("span",{children:t})]})})}var np={link:"link_03735"};function nf(e){let{href:t="/",children:n,className:r="",onNavigate:i,keepCurrentParams:a=!1}=e,o=eP(e,["href","children","className","onNavigate","keepCurrentParams"]),s=(0,M.xf)(t),l=s?"_blank":"",c=s?"noopener noreferrer":void 0,u=s?t:(0,N.pJ)((0,N.AP)(t)),d=(0,L.s0)(),{pathname:h,search:p}=(0,L.TH)(),f=a?u+p:u,m=(0,N.pV)(h,u);return s?(0,C.jsx)("a",e_(eT({},o),{href:u,target:l,rel:c,className:`${np.link} ${r}`,children:n})):(0,C.jsx)("a",e_(eT({},o),{className:`${np.link} ${r} cursor-pointer`,rel:c,target:l,onClick:e=>e$(this,null,function*(){if(0!==e.button||e.currentTarget.target&&"_self"!==e.currentTarget.target||e.metaKey||e.shiftKey||e.altKey||e.ctrlKey)return;e.preventDefault();let t=u.split("#")[1];if(!s&&m&&t){let e=document.getElementById(t);e&&eG(e,!0);return}if(!m){let e=(0,X.fp)(et.routes,(0,N.Tm)(u));if(null==e?void 0:e.length){let t=setTimeout(()=>{ee.start()},200);yield e[0].route.preload(),clearTimeout(t),ee.done()}null==i||i(),d(f,{replace:!1})}}),href:u,children:n}))}ee.configure({showSpinner:!1});var nm={hidden:"hidden_f6cde",container:"container_f6cde",navContainer:"navContainer_f6cde",leftNav:"leftNav_f6cde",rightNav:"rightNav_f6cde",singleItem:"singleItem_f6cde",activeItem:"activeItem_f6cde",navBarTitle:"navBarTitle_f6cde",menuItem:"menu-item_f6cde",mobileNavMenu:"mobileNavMenu_f6cde"};function ng(e){let{pathname:t,base:n}=e,r=new RegExp(e.activeMatch||e.link).test((0,M.tz)(t,n));return(0,C.jsx)(I.Link,{href:(0,N.AP)(e.link),children:(0,C.jsxs)("div",{className:`rspress-nav-menu-item ${nm.singleItem} ${r?nm.activeItem:""} text-sm font-medium mx-1.5 px-3 py-2 flex items-center`,children:[(0,C.jsx)(I.Tag,{tag:e.tag}),e.text,e.rightIcon]},e.text)})}function nx({onClick:e}){let{theme:t,setTheme:n}=(0,_.useContext)(S.Ni);return(0,C.jsx)("div",{onClick:()=>{n("dark"===t?"light":"dark"),null==e||e()},className:"md:mr-2 rspress-nav-appearance",children:(0,C.jsxs)("div",{className:"p-1 border border-solid border-gray-300 text-gray-400 cursor-pointer rounded-md hover:border-gray-600 hover:text-gray-600 dark:hover:border-gray-200 dark:hover:text-gray-200 transition-all duration-300 w-7 h-7",children:[(0,C.jsx)(tE,{className:"dark:hidden",icon:ei.Z,width:"18",height:"18",fill:"currentColor"}),(0,C.jsx)(tE,{className:"hidden dark:block",icon:ea.Z,width:"18",height:"18",fill:"currentColor"})]})})}var nv={socialLinksIcon:"social-links-icon_93d67",menuItem:"menu-item_93d67"},ny={discord:(0,C.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,C.jsx)("title",{children:"Discord"}),(0,C.jsx)("path",{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z"})]}),facebook:(0,C.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,C.jsx)("title",{children:"Facebook"}),(0,C.jsx)("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})]}),github:(0,C.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,C.jsx)("title",{children:"GitHub"}),(0,C.jsx)("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})]}),gitlab:(0,C.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,C.jsx)("title",{children:"GitLab"}),(0,C.jsx)("path",{fill:"currentColor",d:"m21.94 13.11l-1.05-3.22c0-.03-.01-.06-.02-.09l-2.11-6.48a.859.859 0 0 0-.8-.57c-.36 0-.68.25-.79.58l-2 6.17H8.84L6.83 3.33a.851.851 0 0 0-.79-.58c-.37 0-.69.25-.8.58L3.13 9.82v.01l-1.07 3.28c-.16.5.01 1.04.44 1.34l9.22 6.71c.17.12.39.12.56-.01l9.22-6.7c.43-.3.6-.84.44-1.34M8.15 10.45l2.57 7.91l-6.17-7.91m8.73 7.92l2.47-7.59l.1-.33h3.61l-5.59 7.16m4.1-13.67l1.81 5.56h-3.62m-1.3.95l-1.79 5.51L12 19.24l-2.86-8.79M6.03 3.94L7.84 9.5H4.23m-1.18 4.19c-.09-.07-.13-.19-.09-.29l.79-2.43l5.82 7.45m11.38-4.73l-6.51 4.73l.02-.03l5.79-7.42l.79 2.43c.04.1 0 .22-.09.29"})]}),instagram:(0,C.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,C.jsx)("title",{children:"Instagram"}),(0,C.jsx)("path",{d:"M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z"})]}),linkedin:(0,C.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,C.jsx)("title",{children:"LinkedIn"}),(0,C.jsx)("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})]}),slack:(0,C.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,C.jsx)("title",{children:"Slack"}),(0,C.jsx)("path",{d:"M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z"})]}),twitter:(0,C.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,C.jsx)("title",{children:"Twitter"}),(0,C.jsx)("path",{d:"M23.953 4.57a10 10 0 01-2.825.775 4.958 4.958 0 002.163-2.723c-.951.555-2.005.959-3.127 1.184a4.92 4.92 0 00-8.384 4.482C7.69 8.095 4.067 6.13 1.64 3.162a4.822 4.822 0 00-.666 2.475c0 1.71.87 3.213 2.188 4.096a4.904 4.904 0 01-2.228-.616v.06a4.923 4.923 0 003.946 4.827 4.996 4.996 0 01-2.212.085 4.936 4.936 0 004.604 3.417 9.867 9.867 0 01-6.102 2.105c-.39 0-.779-.023-1.17-.067a13.995 13.995 0 007.557 2.209c9.053 0 13.998-7.496 13.998-13.985 0-.21 0-.42-.015-.63A9.935 9.935 0 0024 4.59z"})]}),youtube:(0,C.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,C.jsx)("title",{children:"YouTube"}),(0,C.jsx)("path",{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})]}),juejin:(0,C.jsxs)("svg",{className:"icon",viewBox:"0 0 1024 1024",version:"1.1",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg","data-spm-anchor-id":"a313x.7781069.0.i5",children:[(0,C.jsx)("path",{d:"M465.189 161.792c-22.967 18.14-44.325 35.109-47.397 37.742l-5.851 4.68 10.971 8.632c5.998 4.827 11.85 9.508 13.02 10.532 1.17 1.024 17.993 14.336 37.156 29.696l34.962 27.795 5.267-3.95c2.925-2.194 23.259-18.432 45.348-35.986 21.943-17.555 41.253-32.768 42.716-33.646 1.609-1.024 2.779-2.194 2.779-2.78 0-0.438-9.655-8.63-21.504-17.846-11.995-9.363-22.674-17.847-23.845-18.871-15.945-13.02-49.737-39.059-50.76-39.059-0.586 0.147-19.896 14.922-42.862 33.061z m233.325 180.37C507.465 493.275 508.928 492.105 505.417 489.911c-3.072-1.902-11.556-8.485-64.073-50.03-9.07-7.168-18.578-14.775-21.358-16.823-2.78-2.194-8.777-6.875-13.312-10.532-4.68-3.657-10.679-8.339-13.312-10.533-13.165-10.24-71.095-56.027-102.107-80.457-5.852-4.681-11.41-8.485-12.142-8.485-0.731 0-10.971 7.754-22.674 17.116-11.703 9.508-22.674 18.286-24.284 19.456-1.755 1.17-5.12 3.95-7.46 6.144-2.34 2.34-4.828 4.096-5.413 4.096-3.072 0-0.731 3.072 6.437 8.777 4.096 3.218 8.777 6.875 10.094 8.046 1.316 1.024 10.24 8.045 19.748 15.506s23.26 18.286 30.428 23.99c19.31 15.215 31.89 25.308 127.853 101.084 47.836 37.742 88.796 69.779 90.844 71.095 3.657 2.487 3.95 2.487 7.46-0.292a1041.42 1041.42 0 0 0 16.092-12.727c6.875-5.413 14.775-11.703 17.554-13.897 30.135-23.699 80.018-63.05 81.774-64.512 1.17-1.024 12.434-9.802 24.868-19.603s37.888-29.696 56.32-44.324c18.579-14.629 46.227-36.425 61.733-48.567 15.506-12.142 27.794-22.528 27.502-23.26-0.878-1.17-57.637-47.104-59.978-48.274-0.731-0.439-18.578 12.727-39.497 29.257z","data-spm-anchor-id":"a313x.7781069.0.i2"}),(0,C.jsx)("path",{d:"M57.93 489.326c-15.215 12.288-28.527 23.405-29.697 24.576-2.34 2.194-5.412-0.44 80.018 66.852 33.207 26.185 32.622 25.747 57.637 45.495 10.386 8.192 36.279 28.672 57.783 45.495 38.18 30.135 44.91 35.401 52.663 41.545 2.048 1.756 22.967 18.14 46.372 36.572 23.26 18.432 74.167 58.514 112.933 89.088 38.912 30.573 71.095 55.734 71.826 56.027 0.732 0.293 7.46-4.389 14.921-10.386 21.797-16.97 90.259-70.949 101.523-79.872 5.705-4.535 12.873-10.24 15.945-12.58 3.072-2.488 6.436-5.12 7.314-5.852 0.878-0.878 11.85-9.509 24.283-19.31 20.773-16.091 59.1-46.226 64.366-50.615 1.17-1.024 5.12-4.096 8.777-6.875 3.657-2.78 7.9-6.29 9.509-7.607 1.609-1.317 14.775-11.703 29.257-23.113 29.11-22.82 42.277-33.207 88.503-69.632 17.262-13.605 32.475-25.454 33.646-26.478 2.486-2.048 31.451-24.869 44.617-35.255 4.827-3.657 9.07-7.168 9.508-7.607 0.44-0.585 5.998-4.827 12.435-9.8 6.436-4.828 13.165-10.24 15.067-11.85l3.365-2.926-9.948-7.753c-5.412-4.388-10.24-8.192-10.679-8.63-1.17-1.317-22.381-18.433-30.135-24.284-3.95-3.072-7.314-5.998-7.606-6.73-1.317-3.071-6.73 0.147-29.258 17.994-13.458 10.532-25.746 20.187-27.355 21.504-1.61 1.463-10.533 8.338-19.749 15.652-9.216 7.168-17.115 13.459-17.554 13.898-0.439 0.438-6.583 5.412-13.897 10.971-7.168 5.559-15.214 11.703-17.7 13.75-4.974 4.097-5.413 4.39-20.334 16.239-5.56 4.388-11.264 8.777-12.435 9.8-1.17 1.025-20.333 16.092-42.422 33.354-22.09 17.408-41.546 32.768-43.155 34.084-1.609 1.463-14.482 11.557-28.525 22.528s-40.814 32.037-59.539 46.812c-18.578 14.775-42.276 33.353-52.516 41.399s-23.26 18.285-28.965 22.82l-10.386 8.339-4.389-3.072c-2.34-1.756-4.68-3.511-5.12-3.95-0.439-0.439-4.973-4.096-10.24-8.046-11.849-9.216-14.482-11.264-16.676-13.166-0.878-0.877-4.243-3.51-7.46-5.851-3.22-2.487-6.145-4.681-6.584-5.12-0.439-0.439-6.875-5.705-14.482-11.703-7.607-5.851-14.921-11.556-16.091-12.58-1.317-1.17-17.116-13.605-35.255-27.795-17.993-14.19-35.109-27.648-38.035-29.842-5.705-4.681-33.499-26.624-125.074-98.743-34.523-27.209-72.704-57.344-84.846-66.852-49.737-39.498-55.15-43.594-56.905-43.447-0.877 0-14.043 10.24-29.257 22.528z","data-spm-anchor-id":"a313x.7781069.0.i3"})]}),qq:(0,C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",className:"iconify iconify--ri",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"24",height:"24",children:(0,C.jsx)("path",{fill:"currentColor",d:"M19.913 14.529a31.977 31.977 0 0 0-.675-1.886l-.91-2.246c0-.026.012-.468.012-.696C18.34 5.86 16.507 2 12 2S5.66 5.86 5.66 9.7c0 .229.011.671.012.697l-.91 2.246a32.777 32.777 0 0 0-.675 1.886c-.86 2.737-.581 3.87-.369 3.895c.455.054 1.771-2.06 1.771-2.06c0 1.224.637 2.822 2.016 3.976c-.515.157-1.147.399-1.554.695c-.365.267-.319.54-.253.65c.289.481 4.955.307 6.303.157c1.347.15 6.014.324 6.302-.158c.066-.11.112-.382-.253-.649c-.407-.296-1.039-.538-1.555-.696c1.379-1.153 2.016-2.751 2.016-3.976c0 0 1.316 2.115 1.771 2.06c.212-.025.49-1.157-.37-3.894"})}),wechat:(0,C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",className:"iconify iconify--ri",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"24",height:"24",children:(0,C.jsx)("path",{fill:"currentColor",d:"M18.574 13.711a.91.91 0 0 0 .898-.898c0-.498-.399-.898-.898-.898s-.898.4-.898.898c0 .5.4.898.898.898zm-4.425 0a.91.91 0 0 0 .898-.898c0-.498-.4-.898-.898-.898c-.5 0-.898.4-.898.898c0 .5.399.898.898.898zm6.567 5.04a.347.347 0 0 0-.172.37c0 .048 0 .097.025.147c.098.417.294 1.081.294 1.106c0 .073.025.122.025.172a.22.22 0 0 1-.221.22c-.05 0-.074-.024-.123-.048l-1.449-.836a.799.799 0 0 0-.344-.098c-.073 0-.147 0-.196.024c-.688.197-1.4.295-2.161.295c-3.66 0-6.607-2.457-6.607-5.505c0-3.047 2.947-5.505 6.607-5.505c3.659 0 6.606 2.458 6.606 5.505c0 1.647-.884 3.146-2.284 4.154zM16.673 8.099a9.105 9.105 0 0 0-.28-.005c-4.174 0-7.606 2.86-7.606 6.505c0 .554.08 1.09.228 1.6h-.089a9.963 9.963 0 0 1-2.584-.368c-.074-.025-.148-.025-.222-.025a.832.832 0 0 0-.418.123l-1.748 1.005c-.05.025-.099.05-.148.05a.273.273 0 0 1-.27-.27c0-.074.024-.123.049-.197c.024-.024.246-.834.369-1.324c0-.05.024-.123.024-.172a.556.556 0 0 0-.221-.442C2.058 13.376 1 11.586 1 9.598C1 5.945 4.57 3 8.95 3c3.765 0 6.93 2.169 7.723 5.098zm-5.154.418c.573 0 1.026-.477 1.026-1.026c0-.573-.453-1.026-1.026-1.026s-1.026.453-1.026 1.026s.453 1.026 1.026 1.026zm-5.26 0c.573 0 1.027-.477 1.027-1.026c0-.573-.454-1.026-1.027-1.026c-.572 0-1.026.453-1.026 1.026s.454 1.026 1.026 1.026z"})}),weibo:(0,C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",className:"iconify iconify--ri",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"24",height:"24",children:(0,C.jsx)("path",{fill:"currentColor",d:"M17.525 11.378c1.263.392 2.669 1.336 2.669 3.004c0 2.763-3.98 6.239-9.964 6.239c-4.565 0-9.23-2.213-9.23-5.852c0-1.902 1.204-4.102 3.277-6.177c2.773-2.77 6.004-4.033 7.219-2.816c.537.537.588 1.464.244 2.572c-.178.557.525.25.525.25c2.24-.938 4.196-.994 4.909.027c.38.543.343 1.306-.008 2.19c-.163.407.048.471.36.563zm-7.282 7.939c3.641-.362 6.401-2.592 6.167-4.983c-.237-2.391-3.382-4.038-7.023-3.677c-3.64.36-6.403 2.59-6.167 4.98c.237 2.394 3.382 4.039 7.023 3.68zM6.16 14.438c.754-1.527 2.712-2.39 4.446-1.94c1.793.463 2.707 2.154 1.976 3.8c-.744 1.682-2.882 2.578-4.695 1.993c-1.752-.566-2.493-2.294-1.727-3.853zm1.446 2.587c.568.257 1.325.013 1.676-.55c.346-.568.163-1.217-.407-1.459c-.563-.237-1.291.008-1.64.553c-.354.547-.189 1.202.371 1.456zm2.206-1.808c.219.092.501-.012.628-.231c.123-.22.044-.466-.178-.548c-.216-.084-.486.018-.613.232c-.123.214-.054.458.163.547zM19.873 9.5a.725.725 0 1 1-1.378-.451a1.38 1.38 0 0 0-.288-1.357a1.395 1.395 0 0 0-1.321-.425a.723.723 0 1 1-.303-1.416a2.836 2.836 0 0 1 3.29 3.649zm-3.916-6.575A5.831 5.831 0 0 1 21.5 4.72a5.836 5.836 0 0 1 1.22 5.704a.838.838 0 0 1-1.06.54a.844.844 0 0 1-.542-1.062a4.143 4.143 0 0 0-4.807-5.327a.845.845 0 0 1-.354-1.65z"})}),zhihu:(0,C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",className:"iconify iconify--ri",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"24",height:"24",children:(0,C.jsx)("path",{fill:"currentColor",d:"m12.344 17.963l-1.688 1.074l-2.131-3.35c-.44 1.402-1.172 2.665-2.139 3.825c-.402.483-.82.918-1.301 1.375c-.155.147-.775.717-.878.82l-1.414-1.414c.139-.139.787-.735.915-.856c.43-.408.795-.79 1.142-1.206c1.266-1.518 2.03-3.21 2.137-5.231H3v-2h4V7h-.868c-.689 1.266-1.558 2.222-2.618 2.857L2.486 8.143c1.395-.838 2.425-2.604 3.038-5.36l1.952.434c-.14.633-.303 1.227-.489 1.783H11.5v2H9v4h2.5v2H9.185l3.159 4.963zm3.838-.07L17.298 17H19V7h-4v10h.736l.446.893zM13 5h8v14h-3l-2.5 2l-1-2H13V5z"})}),bilibili:(0,C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",className:"iconify iconify--ri",preserveAspectRatio:"xMidYMid meet",viewBox:"0 0 24 24",width:"24",height:"24",children:(0,C.jsx)("path",{fill:"currentColor",d:"M18.223 3.086a1.25 1.25 0 0 1 0 1.768L17.08 5.996h1.17A3.75 3.75 0 0 1 22 9.747v7.5a3.75 3.75 0 0 1-3.75 3.75H5.75A3.75 3.75 0 0 1 2 17.247v-7.5a3.75 3.75 0 0 1 3.75-3.75h1.166L5.775 4.855a1.25 1.25 0 1 1 1.767-1.768l2.652 2.652c.079.079.145.165.198.257h3.213c.053-.092.12-.18.199-.258l2.651-2.652a1.25 1.25 0 0 1 1.768 0zm.027 5.42H5.75a1.25 1.25 0 0 0-1.247 1.157l-.003.094v7.5c0 .659.51 1.199 1.157 1.246l.093.004h12.5a1.25 1.25 0 0 0 1.247-1.157l.003-.093v-7.5c0-.69-.56-1.25-1.25-1.25zm-10 2.5c.69 0 1.25.56 1.25 1.25v1.25a1.25 1.25 0 1 1-2.5 0v-1.25c0-.69.56-1.25 1.25-1.25zm7.5 0c.69 0 1.25.56 1.25 1.25v1.25a1.25 1.25 0 1 1-2.5 0v-1.25c0-.69.56-1.25 1.25-1.25z"})}),lark:(0,C.jsxs)("svg",{viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,C.jsx)("title",{children:"Lark"}),(0,C.jsx)("path",{d:"M8.813 5.477c1.038.836 2.286 2.045 3.3 3.495.171.23.377.576.457.71l.034.056a8.803 8.803 0 0 0-.922 1.3l-.271-.494C9.655 7.53 6.3 5.477 6.137 5.377a.447.447 0 0 1-.006-.004l-.666-.393-.107-.086a.499.499 0 0 1 .306-.885L6.084 4h7.997c.159.006.318.037.47.092.174.064.317.174.458.308.134.143.272.296.403.448.622.675 1.324 1.688 1.324 1.688-.573.193-1.349.736-1.349.736a5.095 5.095 0 0 0-.348-.54 20.665 20.665 0 0 0-1.037-1.255H8.813Z",fill:"currentColor"}),(0,C.jsx)("path",{d:"M18.482 7.507a5.42 5.42 0 0 1 4.04.717c.248.168.788.635.242 1.233-1.7 1.67-2.194 3.225-2.63 4.599-.278.873-.541 1.697-1.066 2.424-1.813 2.508-4.114 4-6.837 4.434-.561.089-1.132.131-1.7.131-3.958 0-7.498-2.035-8.75-2.844h.003l-.161-.107c-.534-.378-.61-.723-.623-.989V7.055a.486.486 0 0 1 .827-.317l.482.589c5.082 6.201 9.126 8.063 11.626 8.53 2.246.424 3.631-.165 4.022-.37.333-.51.534-1.143.764-1.865l.006-.021c.406-1.276.898-2.821 2.322-4.477a3.93 3.93 0 0 0-2.28-.168c-1.761.394-3.403 1.96-4.89 4.643a8.27 8.27 0 0 0-.341.671c-.724-.107-1.334-.65-1.334-.65.128-.269.22-.455.345-.672 1.718-3.125 3.714-4.962 5.933-5.441ZM2.477 16.889c1.145.744 5.341 3.232 9.532 2.563 1.56-.247 2.963-.915 4.196-1.99-2.771.254-7.557-.753-13.728-7.666v7.093Z",fill:"currentColor"})]}),X:(0,C.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",width:"24",height:"24",xmlns:"http://www.w3.org/2000/svg",children:[(0,C.jsx)("title",{children:"X"}),(0,C.jsx)("path",{d:"M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"})]})},nb=e=>{let{link:t,popperStyle:n={}}=e,{icon:r,mode:i="link",content:a}=t,o="object"==typeof r?(0,C.jsx)("div",{dangerouslySetInnerHTML:{__html:r.svg}}):ny[r],[s,l]=(0,_.useState)(!1),c=()=>{l(!0)},u=()=>{l(!1)};return"link"===i?(0,C.jsx)("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"social-links",children:(0,C.jsx)("div",{className:`${nv.socialLinksIcon}`,children:o})},a):"text"===i?(0,C.jsxs)("div",{className:`${nv.socialLinksIcon} cursor-pointer relative mx-3`,onMouseEnter:c,onMouseLeave:u,children:[o,s?(0,C.jsx)("div",{style:eT({boxShadow:"var(--rp-shadow-3)",border:"1px solid var(--rp-c-divider-light)"},n),className:"z-[1] p-3 w-50 absolute right-0 bg-white dark:bg-dark",children:(0,C.jsx)("div",{className:"text-md",children:a})}):null]}):"img"===i?(0,C.jsxs)("div",{className:`${nv.socialLinksIcon} cursor-pointer relative`,onMouseEnter:c,onMouseLeave:u,children:[o,s?(0,C.jsx)("div",{className:"break-all z-[1] p-3 w-[50px] h-[50px] absolute right-0 bg-white dark:bg-dark rounded-xl",style:eT({boxShadow:"var(--rp-shadow-3)"},n),children:(0,C.jsx)("img",{src:a,alt:"img"})}):null]}):"dom"===i?(0,C.jsxs)("div",{className:`${nv.socialLinksIcon} cursor-pointer relative`,onMouseEnter:c,onMouseLeave:u,children:[o,s?(0,C.jsx)("div",{className:"break-all z-[1] p-3 absolute right-0 bg-white dark:bg-dark rounded-xl",style:eT({boxShadow:"var(--rp-shadow-3)"},n),children:(0,C.jsx)("div",{dangerouslySetInnerHTML:{__html:a}})}):null]}):(0,C.jsx)("div",{})},nw=e=>{let{links:t,moreIconVisible:n=!1,mouseEnter:r}=e;return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:"flex-center h-full gap-x-4 transition-colors duration-300 md:mr-2",children:t.map((e,t)=>(0,C.jsx)(nb,{link:e,popperStyle:{top:"2.5rem"}},t))}),n?(0,C.jsx)("div",{className:"md:ml-1 p-2",onMouseEnter:r,children:(0,C.jsx)(tE,{icon:eo.Z})}):null]})},nk=e=>{let{links:t}=e;return(0,C.jsx)("div",{style:{boxShadow:"var(--rp-shadow-3)",marginRight:"-2px",border:"1px solid var(--rp-c-divider-light)",background:"var(--rp-c-bg)"},className:"absolute top-8 right-0 z-1 p-3 w-32 rounded-2xl flex flex-wrap gap-4",children:t.map(e=>(0,C.jsx)(nb,{link:e,popperStyle:{top:"1.25rem"}},e.content))})},nj=({socialLinks:e})=>{let t=e.length>3,n=[],r=[];e.forEach((e,t)=>{t<3?n.push(e):r.push(e)});let[i,a]=(0,_.useState)(!1);return(0,C.jsxs)("div",{className:`social-links ${nv.menuItem} flex-center relative`,onMouseLeave:()=>a(!1),children:[(0,C.jsx)(nw,{links:n,moreIconVisible:t,mouseEnter:()=>a(!0)}),i?(0,C.jsx)(nk,{links:r}):null]})};function nE(){var e,t;let{siteData:n,page:r}=(0,S.Vi)(),i=(0,S.aw)(),{pathname:a,search:o}=(0,L.TH)(),s=n.lang||"",l=n.multiVersion.default||"",c=Object.values(n.locales||n.themeConfig.locales||{}),u=(null==(e=n.route)?void 0:e.cleanUrls)||!1,d=c.length>1,{lang:h,pageType:p}=r,{base:f}=n;return d?{text:(0,C.jsx)(tE,{icon:es.Z,style:{width:"18px",height:"18px"}}),items:c.map(e=>({text:null==e?void 0:e.label,link:(0,M.$U)(a+o,{current:h,target:e.lang,default:s},{current:i,default:l},f,u,"404"===p)})),activeValue:null==(t=c.find(e=>h===e.lang))?void 0:t.label}:null}function nS(){var e;let{siteData:t,page:n}=(0,S.Vi)(),r=(0,S.aw)(),{pathname:i}=(0,L.TH)(),a=(null==(e=t.route)?void 0:e.cleanUrls)||!1,o=t.multiVersion.default||"",s=t.multiVersion.versions||[],{base:l}=t;return{items:s.map(e=>({text:e,link:(0,M.xM)(i,{current:r,target:e,default:o},l,a,"404"===n.pageType)})),text:r,activeValue:r}}var nN={navScreen:"navScreen_457e8",active:"active_457e8",container:"container_457e8",navMenu:"navMenu_457e8",navMenuItem:"navMenuItem_457e8",navAppearance:"navAppearance_457e8",socialAndAppearance:"socialAndAppearance_457e8",navScreenMenuGroup:"navScreenMenuGroup_457e8",open:"open_457e8",button:"button_457e8",buttonSpan:"buttonSpan_457e8",items:"items_457e8",down:"down_457e8"};function nC(e){let{activeValue:t}=e,[n,r]=(0,_.useState)(!1);function i({item:e}){return(0,C.jsx)("div",{className:"p-1 text-center",children:(0,C.jsx)("span",{className:"text-brand",children:e.text})})}function a({item:e}){return(0,C.jsx)("div",{className:"py-1 font-medium",children:(0,C.jsx)(I.Link,{href:e.link,children:(0,C.jsx)("div",{children:(0,C.jsx)("div",{className:"flex justify-center",children:(0,C.jsx)("span",{children:e.text})})})})})}let o=e=>t===e.text?(0,C.jsx)(i,{item:e},e.link):(0,C.jsx)(a,{item:e},e.link),s=e=>(0,C.jsxs)("div",{children:["link"in e?o(e):(0,C.jsx)("p",{className:"font-bold text-gray-400 my-1 not:first:border",children:e.text}),e.items.map(o)]});return(0,C.jsxs)("div",{className:`${n?nN.open:""} ${nN.navScreenMenuGroup} relative`,children:[(0,C.jsxs)("button",{className:nN.button,onClick:()=>{r(!n)},children:[(0,C.jsx)("span",{className:nN.buttonSpan,children:e.text}),(0,C.jsx)(el.Z,{className:`${n?nN.open:""} ${nN.down} `})]}),(0,C.jsx)("div",{children:(0,C.jsx)("div",{className:nN.items,children:e.items.map(e=>(0,C.jsx)("div",{children:"items"in e?s(e):o(e)},e.text))})})]})}function nA(){let{nav:e}=eB(),t=(0,S.aw)();return Array.isArray(e)?e:[...e[t.length>0?t:"default"]]}var nI=()=>{let e=nE();return(0,C.jsx)("div",{className:"flex text-sm font-bold justify-center",children:(0,C.jsx)("div",{className:"mx-1.5 my-1",children:(0,C.jsx)(nC,eT({},e))})})},nT=()=>{let e=nS();return(0,C.jsx)("div",{className:`${nN.navTranslations} flex text-sm font-bold justify-center`,children:(0,C.jsx)("div",{className:"mx-1.5 my-1",children:(0,C.jsx)(nC,eT({},e))})})};function n_(e){var t;let{isScreenOpen:n,siteData:r,pathname:i}=e,a=(0,_.useRef)(null),o=r.themeConfig.locales||[],s=o.length>1,l=r.multiVersion.versions.length>1,c=nA(),u=!1!==r.themeConfig.darkMode,d=(null==(t=null==r?void 0:r.themeConfig)?void 0:t.socialLinks)||[],h=d.length>0,p=o.map(e=>e.lang||"zh")||[],{base:f}=r;return(0,_.useEffect)(()=>(a.current&&n&&(0,er.Qp)(a.current,{reserveScrollBarGap:!0}),()=>{(0,er.tP)()}),[n]),(0,C.jsx)("div",{className:`${nN.navScreen} ${n?nN.active:""}`,ref:a,id:"navScreen",children:(0,C.jsxs)("div",{className:nN.container,children:[(0,C.jsx)(({menuItems:e})=>(0,C.jsx)("div",{className:nN.navMenu,children:e.map(e=>(0,C.jsx)("div",{className:`${nN.navMenuItem} w-full`,children:"link"in e?(0,C.jsx)(ng,eT({pathname:i,base:f,langs:p},e),e.text):(0,C.jsx)("div",{className:"mx-3 last:mr-0",children:(0,C.jsx)(nC,e_(eT({},e),{items:"items"in e?e.items:e}))},e.text)},e.text))}),{menuItems:c}),(0,C.jsxs)("div",{className:"flex-center flex-col gap-2",children:[u&&(0,C.jsx)(()=>(0,C.jsx)("div",{className:`mt-2 ${nN.navAppearance} flex justify-center`,children:(0,C.jsx)(O.r,{children:(0,C.jsx)(nx,{})})}),{}),s&&(0,C.jsx)(nI,{}),l&&(0,C.jsx)(nT,{}),h&&(0,C.jsx)(nj,{socialLinks:d})]})]})})}var nP={navHamburger:"navHamburger_e7b06",active:"active_e7b06"};function nO(e){let{siteData:t,pathname:n}=e,{isScreenOpen:r,toggleScreen:i}=function(){let{pathname:e}=(0,L.TH)(),[t,n]=(0,_.useState)(!1);function r(){n(!0),window.addEventListener("resize",a)}function i(){n(!1),window.removeEventListener("resize",a)}function a(){window.outerWidth>=768&&i()}return(0,_.useEffect)(()=>{i()},[e]),{isScreenOpen:t,openScreen:r,closeScreen:i,toggleScreen:function(){t?i():r()}}}();return(0,C.jsxs)(_.Fragment,{children:[(0,C.jsx)(n_,{isScreenOpen:r,siteData:t,pathname:n}),(0,C.jsx)("button",{onClick:i,"aria-label":"mobile hamburger",className:`${r?nP.active:""} ${nP.navHamburger} text-gray-500`,children:(0,C.jsx)(tE,{icon:en.Z,fill:"currentColor"})})]})}function nL({item:e}){return(0,C.jsxs)("div",{className:"rounded-2xl my-1 flex",style:{padding:"0.4rem 1.5rem 0.4rem 0.75rem"},children:[e.tag&&(0,C.jsx)(I.Tag,{tag:e.tag}),(0,C.jsx)("span",{className:"text-brand",children:e.text})]},e.link)}function nM({item:e}){return(0,C.jsx)("div",{className:"font-medium my-1",children:(0,C.jsx)(I.Link,{href:e.link,children:(0,C.jsx)("div",{className:"rounded-2xl hover:bg-mute",style:{padding:"0.4rem 1.5rem 0.4rem 0.75rem"},children:(0,C.jsxs)("div",{className:"flex",children:[e.tag&&(0,C.jsx)(I.Tag,{tag:e.tag}),(0,C.jsx)("span",{children:e.text})]})})})},e.link)}function nz(e){let{activeValue:t,items:n,base:r="",link:i="",pathname:a=""}=e,[o,s]=(0,_.useState)(!1),l=e=>{let n=new RegExp(e.activeMatch||e.link).test((0,M.tz)(a,r));return t===e.text||!t&&n?(0,C.jsx)(nL,{item:e},e.link):(0,C.jsx)(nM,{item:e},e.link)},c=e=>(0,C.jsxs)("div",{children:["link"in e?l(e):(0,C.jsx)("p",{className:"font-bold text-gray-400 my-1 not:first:border",children:e.text}),e.items.map(l)]});return(0,C.jsxs)("div",{className:"relative flex-center h-14",onMouseLeave:()=>s(!1),children:[(0,C.jsx)("button",{onMouseEnter:()=>s(!0),className:"rspress-nav-menu-group-button flex-center items-center font-medium text-sm text-text-1 hover:text-text-2 transition-colors duration-200",children:i?(0,C.jsx)(ng,e_(eT({},e),{rightIcon:(0,C.jsx)(tE,{icon:el.Z})})):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsxs)("span",{className:"text-sm font-medium flex",style:{marginRight:"2px"},children:[(0,C.jsx)(I.Tag,{tag:e.tag}),e.text]}),(0,C.jsx)(tE,{icon:el.Z})]})}),(0,C.jsx)("div",{className:"rspress-nav-menu-group-content absolute mx-0.8 transition-opacity duration-300",style:{opacity:o?1:0,visibility:o?"visible":"hidden",right:0,top:"52px"},children:(0,C.jsx)("div",{className:"p-3 pr-2 w-full h-full max-h-100vh whitespace-nowrap",style:{boxShadow:"var(--rp-shadow-3)",zIndex:100,border:"1px solid var(--rp-c-divider-light)",borderRadius:"var(--rp-radius-large)",background:"var(--rp-c-bg)"},children:n.map(e=>(0,C.jsx)("div",{children:"items"in e?c(e):l(e)},e.text))})})]})}var nR=()=>{var e;let{siteData:t}=(0,S.Vi)(),n=eB(),{logo:r,logoText:i}=t,a=null!=(e=n.title)?e:t.title,o=(0,_.useMemo)(()=>r?"string"==typeof r?(0,C.jsx)("img",{src:(0,N.i6)(r),alt:"logo",id:"logo",className:"mr-4 rspress-logo"}):(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("img",{src:(0,N.i6)(r.light),alt:"logo",id:"logo",className:"mr-4 rspress-logo dark:hidden"}),(0,C.jsx)("img",{src:(0,N.i6)(r.dark),alt:"logo",id:"logo",className:"mr-4 rspress-logo hidden dark:block"})]}):null,[r]);return(0,C.jsx)("div",{className:`${nm.navBarTitle}`,children:(0,C.jsxs)("a",{href:(0,N.pJ)(n.langRoutePrefix||"/"),className:"flex items-center w-full h-full text-base font-semibold transition-opacity duration-300 hover:opacity-60",children:[o,i&&(0,C.jsx)("span",{children:i}),!o&&!i&&(0,C.jsx)("span",{children:a})]})})};function n$(){let e=nE();return(0,C.jsx)("div",{className:`translation ${nm.menuItem} flex text-sm font-bold items-center px-3 py-2`,children:(0,C.jsx)("div",{children:(0,C.jsx)(nz,eT({},e))})})}function nF(){let e=nS();return(0,C.jsx)("div",{className:`translation ${nm.menuItem} flex text-sm font-bold items-center px-3 py-2`,children:(0,C.jsx)("div",{children:(0,C.jsx)(nz,eT({},e))})})}function nB(e){var t;let{beforeNavTitle:n,afterNavTitle:r,beforeNav:i,afterNavMenu:a}=e,{siteData:o}=(0,S.Vi)(),{base:s}=o,{pathname:l}=(0,L.TH)(),[c,u]=(0,_.useState)(!1),d=eV(),h=Object.values(o.locales||o.themeConfig.locales||{}),p=h.length>1,f=o.multiVersion.versions.length>1,m=o.themeConfig.socialLinks||[],g=m.length>0,x=h.map(e=>e.lang||"")||[],v=()=>{u(tp())};(0,_.useEffect)(()=>(window.addEventListener("resize",v),u(tp()),()=>{window.removeEventListener("resize",v)}),[]);let y=({menuItems:e})=>(0,C.jsx)("div",{className:"rspress-nav-menu menu h-14",children:e.map(e=>"items"in e||Array.isArray(e)?(0,C.jsx)("div",{className:"mx-3 last:mr-0",children:(0,C.jsx)(nz,e_(eT({},e),{base:s,pathname:l,langs:x,items:"items"in e?e.items:e}))},e.text):(0,C.jsx)(ng,eT({pathname:l,langs:x,base:s},e),e.link))}),b=nA(),w=e=>{var t;return null!=(t=e.position)?t:"right"},k=b.filter(e=>"left"===w(e)),j=b.filter(e=>"right"===w(e)),E=(null==(t=null==o?void 0:o.themeConfig)?void 0:t.search)!==!1,N=!1!==o.themeConfig.darkMode;return(0,C.jsxs)(C.Fragment,{children:[i,(0,C.jsx)("div",{className:`${nm.navContainer} rspress-nav px-6 ${d&&!c?nm.hidden:""}`,style:{position:c?"relative":"sticky"},children:(0,C.jsxs)("div",{className:`${nm.container} flex justify-between items-center h-full`,children:[n,(0,C.jsx)(nR,{}),r,(0,C.jsxs)("div",{className:"flex flex-1 justify-end items-center",children:[k.length>0?(0,C.jsx)("div",{className:nm.leftNav,children:(0,C.jsx)(y,{menuItems:k})}):null,(0,C.jsxs)("div",{className:nm.rightNav,children:[E&&(0,C.jsx)("div",{className:"flex sm:flex-1 items-center sm:pl-4 sm:pr-2",children:(0,C.jsx)(I.Search,{})}),(0,C.jsx)(y,{menuItems:j}),(0,C.jsxs)("div",{className:"flex-center flex-row",children:[p&&(0,C.jsx)(n$,{}),f&&(0,C.jsx)(nF,{}),N&&(0,C.jsx)("div",{className:"mx-2",children:(0,C.jsx)(nx,{})}),g&&(0,C.jsx)(nj,{socialLinks:m})]})]}),a,(0,C.jsxs)("div",{className:nm.mobileNavMenu,children:[c&&E&&(0,C.jsx)(I.Search,{}),(0,C.jsx)(nO,{siteData:o,pathname:l})]})]})]})})]})}var nH={"header-anchor":"header-anchor_8f375",headerAnchor:"header-anchor_8f375","overview-groups":"overview-groups_8f375",overviewGroups:"overview-groups_8f375","overview-group-li":"overview-group-li_8f375",overviewGroupLi:"overview-group-li_8f375","level-2":"level-2_8f375",level2:"level-2_8f375","level-3":"level-3_8f375",level3:"level-3_8f375","level-4":"level-4_8f375",level4:"level-4_8f375","overview-group":"overview-group_8f375",overviewGroup:"overview-group_8f375",header:"header_8f375"};function nD(e){let{siteData:t,page:{routePath:n,title:r,frontmatter:i}}=(0,S.Vi)(),{content:a,groups:o,defaultGroupTitle:s="Others"}=e,l=e=>(0,N.pJ)(e).startsWith(n.replace(/overview$/,""))&&!(0,N.pV)((0,N.pJ)(e),n),c=e=>"link"in e&&e.link?e.link:"items"in e?c(e.items[0]):"",u=(e,t,n)=>{for(let r of e){if((0,N.pJ)(r.link)===t)return[r];if(r.items){let e=u(r.items,t,n);if(e)return e}}return n},{pages:d}=t,h=d.filter(e=>l(e.routePath)),{items:p}=eD();function f(t,r,i){var a,o,s,l,u;if("dividerType"in t)return t;if((0,N.pJ)(t.link)===`${n}index`&&(null==i?void 0:i.overview)===!0)return!1;let d=null!=(l=null!=(s=null!=(o=null!=(a=null==e?void 0:e.overviewHeaders)?a:t.overviewHeaders)?o:null==i?void 0:i.overviewHeaders)?s:null==r?void 0:r.overviewHeaders)?l:[2],p=h.find(e=>(0,N.pV)(e.routePath,(0,N.pJ)(t.link||""))),f=c(t);return e_(eT({},t),{link:f,headers:(null==(u=null==p?void 0:p.toc)?void 0:u.filter(e=>d.some(t=>e.depth===t)))||[]})}p[0].link!==n&&(p=u(p,n,p));let m=e=>!("items"in e)&&"link"in e,g=null!=o?o:(0,_.useMemo)(()=>p.filter(e=>"items"in e&&e.items?e.items.filter(e=>l(c(e))).length>0:!!(m(e)&&l(c(e)))||!1).map(e=>{var t;let n=[];return(null==e?void 0:e.items)?n=null==(t=null==e?void 0:e.items)?void 0:t.map(t=>f(t,e,i)).filter(Boolean):m(e)&&(n=[f({link:e.link,text:e.text||"",tag:e.tag,_fileKey:e._fileKey,overviewHeaders:e.overviewHeaders},void 0,i)]),{name:e.text||"",items:n}}),[p,n,i]);return(0,C.jsxs)("div",{className:"overview-index mx-auto px-8",children:[(0,C.jsx)("div",{className:"flex items-center justify-between",children:!r&&(0,C.jsx)("h1",{className:"text-3xl leading-10 tracking-tight",children:"Overview"})}),a,g.map(e=>(0,C.jsxs)("div",{className:"mb-16",children:[e.name===s&&1===g.length?(0,C.jsx)("h2",{style:{paddingTop:0}}):(0,C.jsx)("h2",{children:tv(e.name)}),(0,C.jsx)("div",{className:nH.overviewGroups,children:e.items.map(e=>{var t;return(0,C.jsxs)("div",{className:nH.overviewGroup,children:[(0,C.jsx)("div",{className:"flex",children:(0,C.jsx)("h3",{style:{marginBottom:8},children:(0,C.jsx)(I.Link,{href:(0,N.AP)(e.link),children:tv(e.text)})})}),(0,C.jsx)("ul",{className:"list-none",children:null==(t=e.headers)?void 0:t.map(t=>(0,C.jsx)("li",{className:`${nH.overviewGroupLi} ${nH[`level${t.depth}`]} first:mt-2`,children:(0,C.jsx)(I.Link,{href:`${(0,N.AP)(e.link)}#${t.id}`,children:tv(t.text)})},t.id))})]},e.link)})})]},e.name))]})}function nZ(e){return(0,C.jsxs)("svg",e_(eT({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 256 256"},e),{children:[(0,C.jsx)("path",{fill:"#C12127",d:"M0 256V0h256v256z"}),(0,C.jsx)("path",{fill:"#FFF",d:"M48 48h160v160h-32V80h-48v128H48z"})]}))}function nq(e){return(0,C.jsx)("svg",e_(eT({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 128 128"},e),{children:(0,C.jsxs)("g",{fill:"#2c8ebb",children:[(0,C.jsx)("path",{d:"M99.24 80.71C94.9 80.76 91.1 83 87.89 85c-6 3.71-9 3.47-9 3.47l-.1-.17c-.41-.67 1.92-6.68-.69-13.84c-2.82-7.83-7.3-9.72-6.94-10.32c1.53-2.59 5.36-6.7 6.89-14.36c.91-4.64.67-12.28-1.39-16.28c-.38-.74-3.78 1.24-3.78 1.24s-3.18-7.09-4.07-7.66c-2.87-1.84-6 7.61-6 7.61a14 14 0 0 0-11.71 4.5a9.64 9.64 0 0 1-3.85 2.27c-.41.14-.91.12-2.15 3.47c-1.9 5.07 3.24 10.81 3.24 10.81s-6.13 4.33-8.4 9.72a24.78 24.78 0 0 0-1.75 11.68s-4.36 3.78-4.64 7.68a12.87 12.87 0 0 0 1.77 7.83a1.94 1.94 0 0 0 2.63.91s-2.9 3.38-.19 4.81c2.47 1.29 6.63 2 8.83-.19c1.6-1.6 1.92-5.17 2.51-6.63c.14-.34.62.57 1.08 1a10 10 0 0 0 1.36 1s-3.9 1.68-2.3 5.51c.53 1.27 2.42 2.08 5.51 2.06c1.15 0 13.76-.72 17.12-1.53a4.33 4.33 0 0 0 2.61-1.46a63 63 0 0 0 15.49-7c4.74-3.09 6.68-3.93 10.51-4.84c3.16-.75 2.95-5.65-1.24-5.58z"}),(0,C.jsx)("path",{d:"M64 2a62 62 0 1 0 62 62A62 62 0 0 0 64 2zm37.3 87.83c-3.35.81-4.91 1.44-9.41 4.36a67 67 0 0 1-15.56 7.18a8.71 8.71 0 0 1-3.64 1.77c-3.81.93-16.88 1.63-17.91 1.63h-.24c-4 0-6.27-1.24-7.49-2.54c-3.4 1.7-7.8 1-11-.69a5.55 5.55 0 0 1-3-3.9a6 6 0 0 1 0-2.06a6.66 6.66 0 0 1-.79-1A16.38 16.38 0 0 1 30 84.52c.29-3.73 2.87-7.06 4.55-8.83A28.56 28.56 0 0 1 36.61 64a26.82 26.82 0 0 1 6.82-9c-1.65-2.78-3.33-7.06-1.7-11.42c1.17-3.11 2.13-4.84 4.24-5.58a6.84 6.84 0 0 0 2.51-1.34A17.65 17.65 0 0 1 60.34 31c.19-.48.41-1 .65-1.46c1.6-3.4 3.3-5.31 5.29-6a4.88 4.88 0 0 1 4.4.5c.65.43 1.48 1 3.9 6a4.69 4.69 0 0 1 2.85-.1a3.81 3.81 0 0 1 2.39 1.94c2.47 4.74 2.8 13.19 1.72 18.62a33.8 33.8 0 0 1-5.84 13.31a25.73 25.73 0 0 1 5.77 9.43a25.42 25.42 0 0 1 1.41 10.41A28.7 28.7 0 0 0 86 81.91c3.06-1.89 7.68-4.74 13.19-4.81a6.62 6.62 0 0 1 7 5.7a6.35 6.35 0 0 1-4.89 7.03z"})]})}))}function nU(e){return(0,C.jsxs)("svg",e_(eT({xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 128 128"},e),{children:[(0,C.jsx)("path",{fill:"#f8ab00",d:"M0 .004V40h39.996V.004Zm43.996 0V40h40V.004Zm44.008 0V40H128V.004Zm0 43.996v39.996H128V44Z"}),(0,C.jsx)("path",{fill:"#4c4c4c",d:"M43.996 44v39.996h40V44ZM0 87.996v40h39.996v-40Zm43.996 0v40h40v-40Zm44.008 0v40H128v-40Z"})]}))}function nV(e){return(0,C.jsxs)("svg",e_(eT({id:"Bun",width:"1.2em",height:"1.2em",viewBox:"0 0 80 70"},e),{children:[(0,C.jsx)("path",{id:"Shadow",d:"M71.09,20.74c-.16-.17-.33-.34-.5-.5s-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5A26.46,26.46,0,0,1,75.5,35.7c0,16.57-16.82,30.05-37.5,30.05-11.58,0-21.94-4.23-28.83-10.86l.5.5.5.5.5.5.5.5.5.5.5.5.5.5C19.55,65.3,30.14,69.75,42,69.75c20.68,0,37.5-13.48,37.5-30C79.5,32.69,76.46,26,71.09,20.74Z"}),(0,C.jsxs)("g",{id:"Body",children:[(0,C.jsx)("path",{id:"Background",d:"M73,35.7c0,15.21-15.67,27.54-35,27.54S3,50.91,3,35.7C3,26.27,9,17.94,18.22,13S33.18,3,38,3s8.94,4.13,19.78,10C67,17.94,73,26.27,73,35.7Z",style:{fill:"#fbf0df"}}),(0,C.jsx)("path",{id:"Bottom_Shadow","data-name":"Bottom Shadow",d:"M73,35.7a21.67,21.67,0,0,0-.8-5.78c-2.73,33.3-43.35,34.9-59.32,24.94A40,40,0,0,0,38,63.24C57.3,63.24,73,50.89,73,35.7Z",style:{fill:"#f6dece"}}),(0,C.jsx)("path",{id:"Light_Shine","data-name":"Light Shine",d:"M24.53,11.17C29,8.49,34.94,3.46,40.78,3.45A9.29,9.29,0,0,0,38,3c-2.42,0-5,1.25-8.25,3.13-1.13.66-2.3,1.39-3.54,2.15-2.33,1.44-5,3.07-8,4.7C8.69,18.13,3,26.62,3,35.7c0,.4,0,.8,0,1.19C9.06,15.48,20.07,13.85,24.53,11.17Z",style:{fill:"#fffefc"}}),(0,C.jsx)("path",{id:"Top",d:"M35.12,5.53A16.41,16.41,0,0,1,29.49,18c-.28.25-.06.73.3.59,3.37-1.31,7.92-5.23,6-13.14C35.71,5,35.12,5.12,35.12,5.53Zm2.27,0A16.24,16.24,0,0,1,39,19c-.12.35.31.65.55.36C41.74,16.56,43.65,11,37.93,5,37.64,4.74,37.19,5.14,37.39,5.49Zm2.76-.17A16.42,16.42,0,0,1,47,17.12a.33.33,0,0,0,.65.11c.92-3.49.4-9.44-7.17-12.53C40.08,4.54,39.82,5.08,40.15,5.32ZM21.69,15.76a16.94,16.94,0,0,0,10.47-9c.18-.36.75-.22.66.18-1.73,8-7.52,9.67-11.12,9.45C21.32,16.4,21.33,15.87,21.69,15.76Z",style:{fill:"#ccbea7",fillRule:"evenodd"}}),(0,C.jsx)("path",{id:"Outline",d:"M38,65.75C17.32,65.75.5,52.27.5,35.7c0-10,6.18-19.33,16.53-24.92,3-1.6,5.57-3.21,7.86-4.62,1.26-.78,2.45-1.51,3.6-2.19C32,1.89,35,.5,38,.5s5.62,1.2,8.9,3.14c1,.57,2,1.19,3.07,1.87,2.49,1.54,5.3,3.28,9,5.27C69.32,16.37,75.5,25.69,75.5,35.7,75.5,52.27,58.68,65.75,38,65.75ZM38,3c-2.42,0-5,1.25-8.25,3.13-1.13.66-2.3,1.39-3.54,2.15-2.33,1.44-5,3.07-8,4.7C8.69,18.13,3,26.62,3,35.7,3,50.89,18.7,63.25,38,63.25S73,50.89,73,35.7C73,26.62,67.31,18.13,57.78,13,54,11,51.05,9.12,48.66,7.64c-1.09-.67-2.09-1.29-3-1.84C42.63,4,40.42,3,38,3Z"})]}),(0,C.jsxs)("g",{id:"Mouth",children:[(0,C.jsx)("g",{id:"Background-2","data-name":"Background",children:(0,C.jsx)("path",{d:"M45.05,43a8.93,8.93,0,0,1-2.92,4.71,6.81,6.81,0,0,1-4,1.88A6.84,6.84,0,0,1,34,47.71,8.93,8.93,0,0,1,31.12,43a.72.72,0,0,1,.8-.81H44.26A.72.72,0,0,1,45.05,43Z",style:{fill:"#b71422"}})}),(0,C.jsxs)("g",{id:"Tongue",children:[(0,C.jsx)("path",{id:"Background-3","data-name":"Background",d:"M34,47.79a6.91,6.91,0,0,0,4.12,1.9,6.91,6.91,0,0,0,4.11-1.9,10.63,10.63,0,0,0,1-1.07,6.83,6.83,0,0,0-4.9-2.31,6.15,6.15,0,0,0-5,2.78C33.56,47.4,33.76,47.6,34,47.79Z",style:{fill:"#ff6164"}}),(0,C.jsx)("path",{id:"Outline-2","data-name":"Outline",d:"M34.16,47a5.36,5.36,0,0,1,4.19-2.08,6,6,0,0,1,4,1.69c.23-.25.45-.51.66-.77a7,7,0,0,0-4.71-1.93,6.36,6.36,0,0,0-4.89,2.36A9.53,9.53,0,0,0,34.16,47Z"})]}),(0,C.jsx)("path",{id:"Outline-3","data-name":"Outline",d:"M38.09,50.19a7.42,7.42,0,0,1-4.45-2,9.52,9.52,0,0,1-3.11-5.05,1.2,1.2,0,0,1,.26-1,1.41,1.41,0,0,1,1.13-.51H44.26a1.44,1.44,0,0,1,1.13.51,1.19,1.19,0,0,1,.25,1h0a9.52,9.52,0,0,1-3.11,5.05A7.42,7.42,0,0,1,38.09,50.19Zm-6.17-7.4c-.16,0-.2.07-.21.09a8.29,8.29,0,0,0,2.73,4.37A6.23,6.23,0,0,0,38.09,49a6.28,6.28,0,0,0,3.65-1.73,8.3,8.3,0,0,0,2.72-4.37.21.21,0,0,0-.2-.09Z"})]}),(0,C.jsxs)("g",{id:"Face",children:[(0,C.jsx)("ellipse",{id:"Right_Blush","data-name":"Right Blush",cx:"53.22",cy:"40.18",rx:"5.85",ry:"3.44",style:{fill:"#febbd0"}}),(0,C.jsx)("ellipse",{id:"Left_Bluch","data-name":"Left Bluch",cx:"22.95",cy:"40.18",rx:"5.85",ry:"3.44",style:{fill:"#febbd0"}}),(0,C.jsx)("path",{id:"Eyes",d:"M25.7,38.8a5.51,5.51,0,1,0-5.5-5.51A5.51,5.51,0,0,0,25.7,38.8Zm24.77,0A5.51,5.51,0,1,0,45,33.29,5.5,5.5,0,0,0,50.47,38.8Z",style:{fillRule:"evenodd"}}),(0,C.jsx)("path",{id:"Iris",d:"M24,33.64a2.07,2.07,0,1,0-2.06-2.07A2.07,2.07,0,0,0,24,33.64Zm24.77,0a2.07,2.07,0,1,0-2.06-2.07A2.07,2.07,0,0,0,48.75,33.64Z",style:{fill:"#fff",fillRule:"evenodd"}})]})]}))}function nW(e){if(!(null==e?void 0:e.includes("install")))return e;let t=e.split(" ").filter(e=>!e.startsWith("-")&&!e.startsWith("--")).join(" ");return"yarn install"===t||"bun install"===t?e:e.replace("install","add")}function nG({command:e,additionalTabs:t=[]}){let n;let r={npm:(0,C.jsx)(nZ,{}),yarn:(0,C.jsx)(nq,{}),pnpm:(0,C.jsx)(nU,{}),bun:(0,C.jsx)(nV,{})};return t.forEach(e=>{r[e.tool]=e.icon}),"string"==typeof e?(n={npm:`npm ${e}`,yarn:`yarn ${e}`,pnpm:`pnpm ${e}`,bun:`bun ${e}`},t.forEach(t=>{n[t.tool]=`${t.tool} ${e}`})):n=e,n.yarn&&(n.yarn=nW(n.yarn)),n.bun&&(n.bun=nW(n.bun)),(0,C.jsx)(I.Tabs,{groupId:"package.manager",values:Object.entries(n).map(([e])=>(0,C.jsxs)("div",{style:{display:"flex",alignItems:"center",fontSize:15},children:[r[e],(0,C.jsx)("span",{style:{marginLeft:6,marginBottom:2},children:e})]},e)),children:Object.entries(n).map(([e,t])=>(0,C.jsx)(I.Tab,{children:(0,C.jsx)(t4,{children:(0,C.jsx)(t3,{className:"language-js",codeHighlighter:"prism",children:t})})},e))})}var nK={pagerLink:"pager-link_9b9a7",title:"title_9b9a7",next:"next_9b9a7",desc:"desc_9b9a7"};function nY(e){let{type:t,text:n,href:r}=e,{prevPageText:i="Previous Page",nextPageText:a="Next page"}=eB(),o="prev"===t?nK.pagerLink:`${nK.pagerLink} ${nK.next}`;return(0,C.jsxs)(I.Link,{href:r,className:o,children:[(0,C.jsx)("span",{className:nK.desc,children:"prev"===t?i:a}),(0,C.jsx)("span",{className:nK.title,children:n})]})}var nJ={scrollToTop:"scroll-to-top_1a167",entered:"entered_1a167"};function nQ(){let[e,t]=(0,_.useState)(!1),n=()=>{t((window.scrollY||document.documentElement.scrollTop)>0)};return(0,_.useEffect)(()=>{window.addEventListener("scroll",n)},[]),(0,C.jsx)("button",{className:`${nJ.scrollToTop} ${e?nJ.entered:""}`,onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},children:(0,C.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",className:"w-6 h-6",children:(0,C.jsx)("path",{fillRule:"evenodd",d:"M11.47 2.47a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 1 1-1.06 1.06l-6.22-6.22V21a.75.75 0 0 1-1.5 0V4.81l-6.22 6.22a.75.75 0 1 1-1.06-1.06l7.5-7.5Z",clipRule:"evenodd"})})})}var nX={mask:"mask_6e282",modal:"modal_6e282",inputForm:"inputForm_6e282",input:"input_6e282",close:"close_6e282",searchHits:"searchHits_6e282",groupTitle:"groupTitle_6e282",navSearchButton:"navSearchButton_6e282",searchWord:"searchWord_6e282",suggestItem:"suggestItem_6e282",suggestItemContainer:"suggestItemContainer_6e282",contentWrapper:"contentWrapper_6e282",mark:"mark_6e282",titleForContent:"titleForContent_6e282",actionIcon:"actionIcon_6e282",current:"current_6e282",tabClassName:"tabClassName_6e282",mobileNavSearchButton:"mobileNavSearchButton_6e282"},n0={container:"container_fa768",tabList:"tab-list_fa768",tab:"tab_fa768",notSelected:"not-selected_fa768",selected:"selected_fa768",noScrollbar:"no-scrollbar_fa768"},n1=e=>{var t;return(t=e)&&"object"==typeof t&&"label"in t?e.label||e.value:e},n2=(0,_.forwardRef)((e,t)=>{let{values:n,defaultValue:r,onChange:i,children:a,groupId:o,tabPosition:s="left",tabContainerClassName:l}=e,c=_.Children.toArray(a).filter(e=>!("string"==typeof e&&""===e.trim())),u=n||[];0===u.length&&(u=_.Children.map(c,e=>{var t,n,r;return(0,_.isValidElement)(e)?{label:null==(t=e.props)?void 0:t.label,value:(null==(n=e.props)?void 0:n.value)||(null==(r=e.props)?void 0:r.label)}:{label:void 0,value:void 0}}));let{tabData:d,setTabData:h}=(0,_.useContext)(tN),[p,f]=(0,_.useState)(()=>void 0===r?0:u.findIndex(e=>"string"==typeof e?e===r:!!e&&"object"==typeof e&&"value"in e&&e.value===r)),[m,g]=tl(`rspress.tabs.${o}`,p),x=(0,_.useMemo)(()=>{if(o)return void 0!==d[o]?d[o]:parseInt(m);return p},[d[o]]);(0,_.useEffect)(()=>{if(o){let e=parseInt(m);x!==e&&h(e_(eT({},d),{[o]:e}))}},[m]);let v=o?x:p;return(0,C.jsxs)("div",{className:n0.container,ref:t,children:[(0,C.jsx)("div",{className:l,children:u.length?(0,C.jsx)("div",{className:`${n0.tabList} ${n0.noScrollbar}`,style:{justifyContent:"center"===s?"center":"flex-start"},children:u.map((e,t)=>(0,C.jsx)("div",{className:`${n0.tab} ${v===t?n0.selected:n0.notSelected}`,onClick:()=>{null==i||i(t),o?(h(e_(eT({},d),{[o]:t})),g(t)):f(t)},children:n1(e)},t))}):null}),(0,C.jsx)("div",{children:_.Children.toArray(c)[v]})]})});function n3(e){var{children:t}=e,n=eP(e,["children"]);return(0,C.jsx)("div",e_(eT({},n),{className:"rounded px-2",children:t}))}function n4({query:e}){return(0,C.jsxs)("div",{className:"flex flex-col items-center pt-8 pb-2",children:[(0,C.jsx)(tE,{icon:eg.Z,className:"mb-4 opacity-80"}),(0,C.jsxs)("p",{className:"mb-2",children:["No results for ",(0,C.jsxs)("b",{children:['"',e,'"']}),"."]}),(0,C.jsx)("p",{children:"Please try again with a different keyword."})]})}var n5={title:eb.Z,header:ey.Z,content:ex.Z};function n6({suggestion:e,closeSearch:t,isCurrent:n,setCurrentSuggestionIndex:r,inCurrentDocIndex:i,scrollTo:a}){var o,s;let l=n5[e.type],c=i&&!(0,M.yv)()?e2(e.link):e.link,u=(0,_.useRef)(null);n&&a(null==(o=null==u?void 0:u.current)?void 0:o.offsetTop,null==(s=null==u?void 0:u.current)?void 0:s.offsetHeight);let d=(e,t)=>{let n=[],r=0;for(let s of t){var i,a,o;let{start:t,length:l}=s,c=e.slice(r,t);let u=(i=e,a=t,o=l,function(e,t,n){let r="",i=0,a=e.length;for(let o=0;o0+n);o++){;i>t&&(r+=e.charAt(o))}return r}(i.slice(a),0,o));n.push(c),n.push((0,C.jsx)("span",{className:nX.mark,children:u},t)),r=t+u.length}return r{if("header"===e.type||"title"===e.type){let{header:t,highlightInfoList:n}=e;return(0,C.jsx)("div",{className:"font-medium",children:d(t,n)})}return(0,C.jsx)("div",{className:"font-medium",children:e.header})})();break;case"content":h=(0,C.jsxs)(C.Fragment,{children:[(()=>{if("content"!==e.type)return(0,C.jsx)("div",{});let{statement:t,highlightInfoList:n}=e;return(0,C.jsx)("div",{className:"text-sm text-gray-light w-full",children:d(t,n)})})(),(0,C.jsx)("p",{className:nX.titleForContent,children:e.title})]})}return(0,C.jsx)("li",{className:`${nX.suggestItem} ${n?nX.current:""}`,onMouseEnter:r,ref:u,children:(0,C.jsx)("a",{href:c,onClick:e=>{t(),e.stopPropagation()},target:i?"_self":"_blank",children:(0,C.jsxs)("div",{className:nX.suggestItemContainer,children:[(0,C.jsx)("div",{className:nX.hitIcon,children:(0,C.jsx)(tE,{icon:l})}),(0,C.jsx)("div",{className:nX.contentWrapper,children:(0,C.jsx)("span",{children:h})}),(0,C.jsx)("div",{className:nX.actionIcon,children:(0,C.jsx)(tE,{icon:ev.Z})})]})})},e.link)}var n7={ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ENTER:"Enter",SEARCH:"KeyK",ESC:"Escape"};function n8({focused:e,setFocused:t}){let[n,r]=(0,_.useState)(""),[i,a]=(0,_.useState)([]),o=(0,_.useRef)(null),[s,l]=(0,_.useState)(!0),[c,u]=(0,_.useState)(0),d=(0,_.useRef)(null),h=(0,_.useRef)(null),p=(0,_.useRef)(null),f=(0,_.useRef)(null),[m,g]=(0,_.useState)(!1),x=(e,t)=>{var n,r,a,o,s;if(m){let l=e+t-(null==(n=null==p?void 0:p.current)?void 0:n.offsetHeight)-(1===i.length?50:-10);l>(null==(r=null==p?void 0:p.current)?void 0:r.scrollTop)&&(null==(a=null==p?void 0:p.current)||a.scrollTo({top:l}));let c=1===i.length?e-70:e-10;c<(null==(o=null==p?void 0:p.current)?void 0:o.scrollTop)&&(null==(s=null==p?void 0:p.current)||s.scrollTo({top:c}))}},{siteData:v,page:{lang:y,version:b}}=(0,S.Vi)(),{sidebar:w,searchPlaceholderText:k="Search Docs"}=eB(),{search:j,title:E}=v,N=j&&"remote"!==j.mode&&j.versioned,A=[{group:E,result:[],renderType:"default"}],[I,T]=(0,_.useState)([]),[P,O]=(0,_.useState)("default"),L=e=>eH(w,e).group;function z(){return e$(this,null,function*(){var e,t;if(!1===j)return;let n={currentLang:y,currentVersion:b,extractGroupName:L},r=new tr(eT(eT({indexName:E},j),n));d.current=r,h.current=n,yield Promise.all([d.current.init(),new Promise(e=>setTimeout(e,1e3))]),l(!1);let i=null==(e=o.current)?void 0:e.value;i&&a((yield null==(t=d.current)?void 0:t.match(i))||A)})}(0,_.useEffect)(()=>{let n=n=>{switch(n.code){case n7.SEARCH:(n.ctrlKey||n.metaKey)&&(n.preventDefault(),t(!e));break;case n7.ARROW_DOWN:e&&(n.preventDefault(),I&&"default"===P&&(g(!0),u((c+1)%I.length)));break;case n7.ARROW_UP:if(e&&(n.preventDefault(),"default"===P)){let e=I.length;g(!0),u((c-1+e)%e)}break;case n7.ENTER:if(c>=0&&"default"===P){let e=I[c];I===i[0].result?(window.location.href=(0,M.yv)()?e.link:e2(e.link),t(!1)):window.open(e.link)}break;case n7.ESC:t(!1)}};return document.addEventListener("keydown",n),()=>{document.removeEventListener("keydown",n)}},[u,t,I,c]),(0,_.useEffect)(()=>{e?(a(A),!d.current&&z()):r("")},[e]),(0,_.useEffect)(()=>{var e;let{currentLang:t,currentVersion:n}=null!=(e=h.current)?e:{},r=y!==t,i=N&&b!==n;!s&&(r||i)&&z()},[y,b,N]);let R=e=>e$(this,null,function*(){var t;let n=e;if(r(n),n){let e=[];if(ep.beforeSearch){let e=yield ep.beforeSearch(n);e&&(n=e)}let r=yield null==(t=d.current)?void 0:t.match(n);if(r&&e.push(...r),ep.H){let t=yield ep.H(n,e);t&&e.push(...t.map(e=>eT({renderType:"custom"},e)))}a(e||A),ep.afterSearch&&(yield ep.afterSearch(n,e)),e.length>0&&T(e[0].result)}}),$=(0,_.useMemo)(()=>(0,eu.Z)(R,150),[]),F=e=>(0,ed.Z)(e,"group"),B=-1,H=e=>{if(0===e.length&&!s)return(0,C.jsx)("div",{className:"mt-4 flex-center",children:(0,C.jsx)("div",{className:"p-2 font-bold text-md",style:{color:"#2c3e50"},children:"No results found"})});let n=F(e);return(0,C.jsx)("ul",{className:nX.suggestList,children:Object.keys(n).map(e=>{let r=n[e]||[];return(0,C.jsx)("li",{children:(0,C.jsx)("ul",{className:"pb-2",children:r.map(e=>{let n=++B;return(0,C.jsx)(n6,{suggestion:e,isCurrent:n===c,setCurrentSuggestionIndex:()=>{g(!1),u(n)},closeSearch:()=>t(!1),inCurrentDocIndex:I===i[0].result,scrollTo:x},`${e.title}-${n}`)})})},e)})})};return(0,C.jsx)(C.Fragment,{children:e&&(0,eh.createPortal)((0,C.jsx)("div",{className:nX.mask,onClick:()=>t(!1),children:(0,C.jsxs)("div",{className:`${nX.modal}`,onClick:e=>{t(!0),e.stopPropagation()},children:[(0,C.jsxs)("div",{className:"flex items-center",children:[(0,C.jsxs)("div",{className:nX.inputForm,children:[(0,C.jsx)("label",{children:(0,C.jsx)(tE,{icon:ec.Z})}),(0,C.jsx)("input",{className:nX.input,ref:o,placeholder:k,"aria-label":"Search",autoComplete:"off",autoFocus:!0,onChange:e=>$(e.target.value)}),(0,C.jsx)("label",{children:(0,C.jsx)(tE,{icon:ef.Z,className:nX.close,onClick:e=>{o.current&&(e.stopPropagation(),n?(o.current.value="",r("")):t(!1))}})})]}),(0,C.jsx)("h2",{className:"text-brand ml-2 sm:hidden cursor-pointer",onClick:e=>{e.stopPropagation(),t(!1)},children:"Cancel"})]}),n?(0,C.jsx)("div",{className:`${nX.searchHits} rspress-scrollbar`,ref:p,children:((e,t)=>{if(1===e.length){let t=e[0].result;return 0===t.length?(0,C.jsx)(n4,{query:n}):(0,C.jsx)("div",{ref:f,children:H(t)})}let r=e.map(e=>t&&"remote"===t.mode?e4(t.searchIndexes||[]).find(t=>t.value===e.group).label:e.group);return(0,C.jsx)(n2,{values:r,tabContainerClassName:nX.tabClassName,onChange:t=>{T(e[t].result),u(0),O(e[t].renderType)},ref:f,children:e.map(e=>(0,C.jsxs)(n3,{children:["default"===e.renderType&&H(e.result),"custom"===e.renderType&&ep.render(e.result)]},e.group))})})(i,j)}):null,s&&(0,C.jsx)("div",{className:"flex-center",children:(0,C.jsx)("div",{className:"p-2 text-sm",children:(0,C.jsx)(tE,{icon:em.Z})})})]})}),document.getElementById("search-container"))})}function n9(){let[e,t]=(0,_.useState)(!1),[n,r]=(0,_.useState)(null),{searchPlaceholderText:i="Search Docs"}=eB();return(0,_.useEffect)(()=>{r(/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)?"\u2318":"Ctrl")},[]),(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)("div",{className:`rspress-nav-search-button ${nX.navSearchButton}`,onClick:()=>t(!0),children:(0,C.jsxs)("button",{children:[(0,C.jsx)(tE,{icon:ec.Z,width:"18",height:"18"}),(0,C.jsx)("p",{className:nX.searchWord,children:i}),(0,C.jsxs)("div",{style:{opacity:n?1:0},children:[(0,C.jsx)("span",{children:n}),(0,C.jsx)("span",{children:"K"})]})]})}),(0,C.jsx)("div",{className:nX.mobileNavSearchButton,onClick:()=>t(!0),children:(0,C.jsx)(tE,{icon:ec.Z})}),(0,C.jsx)(n8,{focused:e,setFocused:t})]})}var re={navTitleMask:"navTitleMask_71eca",sidebar:"sidebar_71eca",sidebarContainer:"sidebarContainer_71eca",sidebarContent:"sidebarContent_71eca",open:"open_71eca",menuLink:"menuLink_71eca",menuItem:"menuItem_71eca",collapseContainer:"collapseContainer_71eca",menuItemActive:"menuItemActive_71eca"};function rt(e){let{depth:t,dividerType:n}=e;return(0,C.jsx)("div",{className:`${"dashed"===n?"border-dashed":"border-solid"} border-t border-divider-light my-3`,style:{marginLeft:0===t?0:"18px"}})}function rn(e){var t;let{item:n,depth:r=0,activeMatcher:i,id:a,setSidebarData:o}=e,s=(0,L.s0)(),l=(0,_.useRef)(null),c=(0,_.useRef)(null),u=(0,_.useRef)(null),d=(0,_.useRef)(!0),h=(0,_.useRef)(n.collapsed),p=n.link&&i(n.link),{collapsed:f,collapsible:m=!0}=n,g=(0,C.jsx)("div",{style:{cursor:"pointer",transition:"transform 0.2s ease-out",transform:f?"rotate(0deg)":"rotate(90deg)"},children:(0,C.jsx)(tE,{icon:q.Z})});(0,_.useEffect)(()=>{if(d.current||!l.current||!u.current)return;c.current&&clearTimeout(c.current);let e=l.current,t=u.current,n=t.clientHeight+4;f?(e.style.maxHeight=`${n}px`,e.style.transitionDuration="0.5s",t.style.opacity="0",c.current=setTimeout(()=>{l.current&&(l.current.style.maxHeight="0px")},0)):(e.style.maxHeight=`${n}px`,e.style.transitionDuration="0.3s",t.style.opacity="1",c.current=setTimeout(()=>{l.current&&l.current.style.removeProperty("max-height")},300))},[f]),(0,_.useEffect)(()=>{d.current=!1},[]);let x=e=>{e.stopPropagation(),o(e=>{let t=[...e],n=a.split("-").map(Number),r=t[n.shift()];for(let e of n)r=r.items[e];return"items"in r&&(r.collapsed=!r.collapsed),t})};return(0,C.jsxs)("section",{className:"mt-0.5 block",style:{marginLeft:0===r?0:"18px"},children:[(0,C.jsxs)("div",{className:`flex justify-between items-center ${p?re.menuItemActive:re.menuItem}`,onMouseEnter:()=>n.link&&e.preloadLink(n.link),onClick:e=>{n.link&&s((0,N.pJ)((0,N.AP)(n.link))),m&&x(e)},style:{borderRadius:0===r?"0 var(--rp-radius) var(--rp-radius) 0":void 0,cursor:m||n.link?"pointer":"normal"},children:[(0,C.jsxs)("h2",{className:"py-2 px-3 text-sm font-medium flex",style:eT({},0===r?rl:{}),children:[(0,C.jsx)(I.Tag,{tag:n.tag}),(0,C.jsx)("span",{className:"flex-center",children:tv(n.text)})]}),m&&(0,C.jsx)("div",{className:`${re.collapseContainer} p-2 rounded-xl`,onClick:x,children:g})]}),(0,C.jsx)("div",{ref:l,className:"transition-all duration-300 ease-in-out",style:{overflow:"hidden",maxHeight:h.current?0:void 0},children:(0,C.jsx)("div",{ref:u,className:"rspress-sidebar-group transition-opacity duration-500 ease-in-out",style:{opacity:h.current?0:1,marginLeft:0===r?"12px":0},children:null==(t=null==n?void 0:n.items)?void 0:t.map((t,n)=>"dividerType"in t?(0,C.jsx)(rt,{depth:r+1,dividerType:t.dividerType},n):(0,C.jsx)("div",{children:(0,C.jsx)(ri,e_(eT({},e),{item:t,depth:r+1,id:`${a}-${n}`,preloadLink:e.preloadLink}))},n))})})]},a)}var rr=e=>e.replace(/\.(mdx?)$/,"");function ri(e){let{item:t,depth:n=0,activeMatcher:r,id:i,setSidebarData:a}=e,o="link"in t&&t.link&&r(t.link),{page:s}=(0,S.Vi)(),l=(0,_.useRef)(null),c=(0,_.useRef)(t.text),u=function(){let[,e]=(0,_.useState)(0);return()=>{e(e=>e+1)}}();return((0,_.useEffect)(()=>{var e;o&&(null==(e=l.current)||e.scrollIntoView({block:"center"}))},[]),!(0,M.yv)()&&t._fileKey===rr(s.pagePath)&&s.title&&(c.current=s.title),(0,_.useEffect)(()=>{t.text!==c.current&&(c.current=t.text,u())},[t.text]),"items"in t)?(0,C.jsx)(rn,{id:i,item:t,depth:n,activeMatcher:r,collapsed:t.collapsed,setSidebarData:a,preloadLink:e.preloadLink},`${t.text}-${i}`):(0,C.jsx)(I.Link,{href:(0,N.AP)(t.link),className:re.menuLink,children:(0,C.jsxs)("div",{ref:l,onMouseEnter:()=>e.preloadLink(t.link),className:`${o?re.menuItemActive:re.menuItem} mt-0.5 py-2 px-3 font-medium flex`,style:eT({fontSize:0===n?"14px":"13px",marginLeft:0===n?0:"18px",borderRadius:"0 var(--rp-radius) var(--rp-radius) 0"},0===n?rl:{}),children:[(0,C.jsx)(I.Tag,{tag:t.tag}),(0,C.jsx)("span",{children:tv(c.current)})]})})}function ra({sectionHeaderText:e,tag:t}){return(0,C.jsxs)("div",{className:"rspress-sidebar-section-header",children:[(0,C.jsx)(I.Tag,{tag:t}),(0,C.jsx)("span",{children:tv(e)})]})}var ro=e=>"dividerType"in e,rs=e=>"sectionHeaderText"in e,rl={fontSize:"14px",paddingLeft:"24px",fontWeight:"bold"},rc=new WeakMap;function ru(e){let{isSidebarOpen:t,beforeSidebar:n,afterSidebar:r,uiSwitch:i}=e,{items:a}=eD(),o=eB(),{pathname:s}=(0,L.TH)(),l=(0,M.Kw)(o.langRoutePrefix||""),[c,u]=(0,_.useState)(a.filter(Boolean).flat()),d=decodeURIComponent(s);(0,_.useEffect)(()=>{if(a===c)return;rc=new WeakMap;let e=t=>rc.has(t)?rc.get(t):"link"in t&&t.link&&p(t.link)||"items"in t&&t.items.some(t=>e(t))?(rc.set(t,!0),!0):(rc.set(t,!1),!1),t=n=>{"items"in n&&(n.items.forEach(t),e(n)&&(n.collapsed=!1))},n=a.filter(Boolean).flat();n.forEach(t),u(n)},[a,d]);let h=e=>e.replace(l,""),p=e=>th((0,N.E9)(h(d)),h(e),!0),f=e=>{let t=(0,X.fp)(et.routes,e);if(null==t?void 0:t.length){let{route:e}=t[0];e.preload()}};return(0,C.jsx)("aside",{className:`${re.sidebar} rspress-sidebar ${t?re.open:""}`,children:(0,C.jsxs)("div",{className:`${re.sidebarContainer}`,children:[i.showNavbar?(0,C.jsx)("div",{className:re.navTitleMask,children:(0,C.jsx)(nR,{})}):null,(0,C.jsx)("div",{className:`mt-1 ${re.sidebarContent}`,children:(0,C.jsx)("div",{className:"rspress-scrollbar",style:{maxHeight:"calc(100vh - var(--rp-nav-height) - 8px)",overflow:"auto"},children:(0,C.jsxs)("nav",{className:"pb-2",children:[n,c.map((e,t)=>{var n;return ro(e)?(0,C.jsx)(rt,{depth:0,dividerType:e.dividerType},t):rs(e)?(0,C.jsx)(ra,{sectionHeaderText:e.sectionHeaderText,tag:e.tag},t):(0,C.jsx)(ri,{id:String(t),item:e,depth:0,activeMatcher:p,collapsed:null==(n=e.collapsed)||n,setSidebarData:u,preloadLink:f},t)}),r]})})})]})})}var rd="sourceCode_bf1b0";function rh(e){let{href:t,platform:n="github"}=e,{sourceCodeText:r="Source"}=eB();return(0,C.jsx)("div",{className:`inline-block rounded border border-solid border-gray-300 text-gray-400 ${rd}`,children:(0,C.jsxs)("a",{href:t,target:"_blank",className:"flex items-center content-center transition-all duration-300 text-xs block px-2 py-1 ",children:[(0,C.jsx)("span",{className:"mr-2 inline-flex w-4 h-4",children:(0,C.jsx)(tE,{icon:"gitlab"===n?ek.Z:ew.Z})}),(0,C.jsx)("span",{children:r})]})})}var rp="rspressSteps_38f64";function rf({children:e}){return(0,C.jsx)("div",{className:`ml-4 mb-11 border-l pl-6 ${rp} [counter-reset:step]`,children:e})}var rm=({tag:e})=>e?e.trim().startsWith("(0,C.jsx)("li",{children:(0,C.jsx)("a",{href:`#${e.id}`,className:"rspress-toc-link sm:text-normal text-sm",style:{marginLeft:(e.depth-2)*12},onClick:n=>{n.preventDefault(),window.location.hash=e.id;let r=document.getElementById(e.id);r&&eG(r,!1),null==t||t(e)},children:(0,C.jsx)("span",{className:"rspress-toc-link-text block",children:tv(e.text)})})},e.id);function rx({onItemClick:e}){let{page:t}=(0,S.Vi)();return(0,C.jsx)("ul",{children:t.toc.map(t=>(0,C.jsx)(rg,{header:t,onItemClick:e},t.id))})}var rv={Layout:tT,NotFoundLayout:eF,HomeLayout:t_,setup:eY}},2179:function(e,t,n){"use strict";n.d(t,{AV:function(){return r.AV},Ar:function(){return r.Ar},BZ:function(){return r.BZ},CF:function(){return r.CF},CU:function(){return r.CU},Ct:function(){return r.Ct},EG:function(){return r.EG},H_:function(){return r.H_},JL:function(){return r.JL},KO:function(){return r.KO},M4:function(){return r.M4},NG:function(){return r.NG},O9:function(){return r.O9},OK:function(){return r.OK},Os:function(){return r.Os},Qe:function(){return r.Qe},Qn:function(){return r.Qn},RY:function(){return r.RY},Rg:function(){return r.Rg},SU:function(){return r.SU},TJ:function(){return r.TJ},UQ:function(){return r.UQ},VA:function(){return r.VA},Vl:function(){return r.Vl},Vp:function(){return r.Vp},WG:function(){return r.WG},WS:function(){return r.WS},YE:function(){return r.YE},YS:function(){return r.YS},ZB:function(){return r.ZB},ZP:function(){return r.ZP},cY:function(){return r.cY},eE:function(){return r.eE},eF:function(){return r.eF},g2:function(){return r.g2},ls:function(){return r.ls},mQ:function(){return r.mQ},mi:function(){return r.mi},of:function(){return r.of},ol:function(){return r.ol},pU:function(){return r.pU},qx:function(){return r.qx},rU:function(){return r.rU},s2:function(){return r.s2},tx:function(){return r.tx},xB:function(){return r.xB},xK:function(){return r.xK},xN:function(){return r.xN},y2:function(){return r.y2},zh:function(){return r.zh},zx:function(){return r.zx}}),n("8701");var r=n("8942")},3372:function(e,t,n){"use strict";n.d(t,{ZP:function(){return c}});var r=()=>{!window.va&&(window.va=function(...e){(window.vaq=window.vaq||[]).push(e)})};function i(){return"undefined"!=typeof window}function a(){try{let e="production";!1}catch(e){}return"production"}function o(){return(i()?window.vam:a())||"production"}function s(){return"production"===o()}function l(){return"development"===o()}var c={inject:function(e={debug:!0}){var t;if(!i())return;!function(e="auto"){if("auto"===e){window.vam=a();return}window.vam=e}(e.mode),r(),e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend));let n=e.scriptSrc||(l()?"https://va.vercel-scripts.com/v1/script.debug.js":"/_vercel/insights/script.js");if(document.head.querySelector(`script[src*="${n}"]`))return;let o=document.createElement("script");o.src=n,o.defer=!0,o.dataset.sdkn="@vercel/analytics"+(e.framework?`/${e.framework}`:""),o.dataset.sdkv="1.3.0",e.disableAutoTrack&&(o.dataset.disableAutoTrack="1"),e.endpoint&&(o.dataset.endpoint=e.endpoint),e.dsn&&(o.dataset.dsn=e.dsn),o.onerror=()=>{let e=l()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${n}. ${e}`)},l()&&!1===e.debug&&(o.dataset.debug="false"),document.head.appendChild(o)},track:function(e,t,n){var r,a;if(!i()){let e="[Vercel Web Analytics] Please import `track` from `@vercel/analytics/server` when using this function in a server environment";if(s())console.warn(e);else throw Error(e);return}if(!t){null==(r=window.va)||r.call(window,"event",{name:e,options:n});return}try{let r=function(e,t){if(!e)return;let n=e,r=[];for(let[i,a]of Object.entries(e))"object"==typeof a&&null!==a&&(t.strip?n=function(e,{[e]:t,...n}){return n}(i,n):r.push(i));if(r.length>0&&!t.strip)throw Error(`The following properties are not valid: ${r.join(", ")}. Only strings, numbers, booleans, and null are allowed.`);return n}(t,{strip:s()});null==(a=window.va)||a.call(window,"event",{name:e,data:r,options:n})}catch(e){e instanceof Error&&l()&&console.error(e)}}}},3306:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n("2988");let i=/\s?|(]*>|]*>|]+>)+/i,a=RegExp(r.map(e=>`<${e}\\b[^>]*>`).join("|"),"i");function o(e){return e=e.trim().slice(0,1e3),i.test(e)||a.test(e)}},4224:function(e){"use strict";e.exports=JSON.parse('["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"]')},7854:function(e){"use strict";e.exports=JSON.parse('{"AElig":"\xc6","AMP":"&","Aacute":"\xc1","Acirc":"\xc2","Agrave":"\xc0","Aring":"\xc5","Atilde":"\xc3","Auml":"\xc4","COPY":"\xa9","Ccedil":"\xc7","ETH":"\xd0","Eacute":"\xc9","Ecirc":"\xca","Egrave":"\xc8","Euml":"\xcb","GT":">","Iacute":"\xcd","Icirc":"\xce","Igrave":"\xcc","Iuml":"\xcf","LT":"<","Ntilde":"\xd1","Oacute":"\xd3","Ocirc":"\xd4","Ograve":"\xd2","Oslash":"\xd8","Otilde":"\xd5","Ouml":"\xd6","QUOT":"\\"","REG":"\xae","THORN":"\xde","Uacute":"\xda","Ucirc":"\xdb","Ugrave":"\xd9","Uuml":"\xdc","Yacute":"\xdd","aacute":"\xe1","acirc":"\xe2","acute":"\xb4","aelig":"\xe6","agrave":"\xe0","amp":"&","aring":"\xe5","atilde":"\xe3","auml":"\xe4","brvbar":"\xa6","ccedil":"\xe7","cedil":"\xb8","cent":"\xa2","copy":"\xa9","curren":"\xa4","deg":"\xb0","divide":"\xf7","eacute":"\xe9","ecirc":"\xea","egrave":"\xe8","eth":"\xf0","euml":"\xeb","frac12":"\xbd","frac14":"\xbc","frac34":"\xbe","gt":">","iacute":"\xed","icirc":"\xee","iexcl":"\xa1","igrave":"\xec","iquest":"\xbf","iuml":"\xef","laquo":"\xab","lt":"<","macr":"\xaf","micro":"\xb5","middot":"\xb7","nbsp":"\xa0","not":"\xac","ntilde":"\xf1","oacute":"\xf3","ocirc":"\xf4","ograve":"\xf2","ordf":"\xaa","ordm":"\xba","oslash":"\xf8","otilde":"\xf5","ouml":"\xf6","para":"\xb6","plusmn":"\xb1","pound":"\xa3","quot":"\\"","raquo":"\xbb","reg":"\xae","sect":"\xa7","shy":"\xad","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","szlig":"\xdf","thorn":"\xfe","times":"\xd7","uacute":"\xfa","ucirc":"\xfb","ugrave":"\xf9","uml":"\xa8","uuml":"\xfc","yacute":"\xfd","yen":"\xa5","yuml":"\xff"}')},1636:function(e){"use strict";e.exports=JSON.parse('{"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}')}}]); \ No newline at end of file diff --git a/static/js/539.060c9ab6.js.LICENSE.txt b/static/js/539.b030ae28.js.LICENSE.txt similarity index 100% rename from static/js/539.060c9ab6.js.LICENSE.txt rename to static/js/539.b030ae28.js.LICENSE.txt diff --git a/static/js/async/119.4f60f763.js b/static/js/async/119.4f60f763.js new file mode 100644 index 000000000..b16af415f --- /dev/null +++ b/static/js/async/119.4f60f763.js @@ -0,0 +1 @@ +(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["119"],{5477:function(e,n,s){"use strict";s.r(n);var i=s("5893"),t=s("65");function r(e){let n=Object.assign({h1:"h1",a:"a",p:"p",h2:"h2",code:"code",h3:"h3",pre:"pre",table:"table",thead:"thead",tr:"tr",th:"th",tbody:"tbody",td:"td",div:"div",em:"em",blockquote:"blockquote",ol:"ol",li:"li",h4:"h4",ul:"ul",strong:"strong",h5:"h5"},(0,t.ah)(),e.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(n.h1,{id:"queries",children:["Queries",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#queries",children:"#"})]}),"\n",(0,i.jsx)(n.p,{children:"Queries are one of the main building blocks for the React Native Testing Library. They enable you to find relevant elements in the element tree, which represents your application's user interface when running under tests."}),"\n",(0,i.jsxs)(n.h2,{id:"accessing-queries",children:["Accessing queries",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#accessing-queries",children:"#"})]}),"\n",(0,i.jsxs)(n.p,{children:["All queries described below are accessible in two main ways: through the ",(0,i.jsx)(n.code,{children:"screen"})," object or by capturing the ",(0,i.jsx)(n.code,{children:"render"})," function call result."]}),"\n",(0,i.jsxs)(n.h3,{id:"using-screen-object",children:["Using ",(0,i.jsx)(n.code,{children:"screen"})," object",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#using-screen-object",children:"#"})]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-tsx",children:'import { render, screen } from \'@testing-library/react-native\';\n\ntest(\'accessing queries using "screen" object\', () => {\n render(...);\n\n screen.getByRole("button", { name: "Start" });\n})\n'})}),"\n",(0,i.jsxs)(n.p,{children:["The modern and recommended way of accessing queries is to use the ",(0,i.jsx)(n.code,{children:"screen"})," object exported by the ",(0,i.jsx)(n.code,{children:"@testing-library/react-native"})," package. This object will contain methods of all available queries bound to the most recently rendered UI."]}),"\n",(0,i.jsxs)(n.h3,{id:"using-render-result",children:["Using ",(0,i.jsx)(n.code,{children:"render"})," result",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#using-render-result",children:"#"})]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-tsx",children:'import { render } from \'@testing-library/react-native\';\n\ntest(\'accessing queries using "render" result\', () => {\n const { getByRole } = render(...);\n getByRole("button", { name: "Start" });\n})\n'})}),"\n",(0,i.jsxs)(n.p,{children:["The classic way is to capture query functions, as they are returned from the ",(0,i.jsx)(n.code,{children:"render"})," function call. This provides access to the same functions as in the case of the ",(0,i.jsx)(n.code,{children:"screen"})," object."]}),"\n",(0,i.jsxs)(n.h2,{id:"query-parts",children:["Query parts",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#query-parts",children:"#"})]}),"\n",(0,i.jsxs)(n.p,{children:["Each query is composed of two parts: variant and predicate, which are separated by the ",(0,i.jsx)(n.code,{children:"by"})," word in the middle of the name."]}),"\n",(0,i.jsx)(n.p,{children:"Consider the following query:"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{children:"getByRole()\n"})}),"\n",(0,i.jsxs)(n.p,{children:["For this query, ",(0,i.jsx)(n.code,{children:"getBy*"})," is the query variant, and ",(0,i.jsx)(n.code,{children:"*ByRole"})," is the predicate."]}),"\n",(0,i.jsxs)(n.h2,{id:"query-variant",children:["Query variant",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#query-variant",children:"#"})]}),"\n",(0,i.jsx)(n.p,{children:"The query variants describe the expected number (and timing) of matching elements, so they differ in their return type."}),"\n",(0,i.jsxs)(n.table,{children:["\n",(0,i.jsxs)(n.thead,{children:["\n",(0,i.jsxs)(n.tr,{children:["\n",(0,i.jsx)(n.th,{children:"Variant"}),"\n",(0,i.jsx)(n.th,{children:"Assertion"}),"\n",(0,i.jsx)(n.th,{children:"Return type"}),"\n",(0,i.jsx)(n.th,{children:"Is Async?"}),"\n"]}),"\n"]}),"\n",(0,i.jsxs)(n.tbody,{children:["\n",(0,i.jsxs)(n.tr,{children:["\n",(0,i.jsx)(n.td,{children:(0,i.jsx)(n.a,{href:"/docs/api/queries#get-by",children:(0,i.jsx)(n.code,{children:"getBy*"})})}),"\n",(0,i.jsx)(n.td,{children:"Exactly one matching element"}),"\n",(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"ReactTestInstance"})}),"\n",(0,i.jsx)(n.td,{children:"No"}),"\n"]}),"\n",(0,i.jsxs)(n.tr,{children:["\n",(0,i.jsx)(n.td,{children:(0,i.jsx)(n.a,{href:"/docs/api/queries#get-all-by",children:(0,i.jsx)(n.code,{children:"getAllBy*"})})}),"\n",(0,i.jsx)(n.td,{children:"At least one matching element"}),"\n",(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"Array"})}),"\n",(0,i.jsx)(n.td,{children:"No"}),"\n"]}),"\n",(0,i.jsxs)(n.tr,{children:["\n",(0,i.jsx)(n.td,{children:(0,i.jsx)(n.a,{href:"/docs/api/queries#query-by",children:(0,i.jsx)(n.code,{children:"queryBy*"})})}),"\n",(0,i.jsx)(n.td,{children:"Zero or one matching element"}),"\n",(0,i.jsx)(n.td,{children:(0,i.jsx)("code",{children:"ReactTestInstance | null"})}),"\n",(0,i.jsx)(n.td,{children:"No"}),"\n"]}),"\n",(0,i.jsxs)(n.tr,{children:["\n",(0,i.jsx)(n.td,{children:(0,i.jsx)(n.a,{href:"/docs/api/queries#query-all-by",children:(0,i.jsx)(n.code,{children:"queryAllBy*"})})}),"\n",(0,i.jsx)(n.td,{children:"No assertion"}),"\n",(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"Array"})}),"\n",(0,i.jsx)(n.td,{children:"No"}),"\n"]}),"\n",(0,i.jsxs)(n.tr,{children:["\n",(0,i.jsx)(n.td,{children:(0,i.jsx)(n.a,{href:"/docs/api/queries#find-by",children:(0,i.jsx)(n.code,{children:"findBy*"})})}),"\n",(0,i.jsx)(n.td,{children:"Exactly one matching element"}),"\n",(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"Promise"})}),"\n",(0,i.jsx)(n.td,{children:"Yes"}),"\n"]}),"\n",(0,i.jsxs)(n.tr,{children:["\n",(0,i.jsx)(n.td,{children:(0,i.jsx)(n.a,{href:"/docs/api/queries#find-all-by",children:(0,i.jsx)(n.code,{children:"findAllBy*"})})}),"\n",(0,i.jsx)(n.td,{children:"At least one matching element"}),"\n",(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"Promise>"})}),"\n",(0,i.jsx)(n.td,{children:"Yes"}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"Queries work as implicit assertions on the number of matching elements and will throw an error when the assertion fails."}),"\n",(0,i.jsxs)(n.h3,{id:"get-by",children:[(0,i.jsx)(n.code,{children:"getBy*"})," queries",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#get-by",children:"#"})]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"getByX(...): ReactTestInstance\n"})}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"getBy*"})," queries return the single matching element for a query, and throw an error if no elements match or if more than one match is found. If you need to find more than one element, then use ",(0,i.jsx)(n.code,{children:"getAllBy"}),"."]}),"\n",(0,i.jsxs)(n.h3,{id:"get-all-by",children:[(0,i.jsx)(n.code,{children:"getAllBy*"})," queries",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#get-all-by",children:"#"})]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"getAllByX(...): ReactTestInstance[]\n"})}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"getAllBy*"})," queries return an array of all matching elements for a query and throw an error if no elements match."]}),"\n",(0,i.jsxs)(n.h3,{id:"query-by",children:[(0,i.jsx)(n.code,{children:"queryBy*"})," queries",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#query-by",children:"#"})]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"queryByX(...): ReactTestInstance | null\n"})}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"queryBy*"})," queries return the first matching node for a query, and return ",(0,i.jsx)(n.code,{children:"null"})," if no elements match. This is useful for asserting an element that is not present. This throws if more than one match is found (use ",(0,i.jsx)(n.code,{children:"queryAllBy"})," instead)."]}),"\n",(0,i.jsxs)(n.h3,{id:"query-all-by",children:[(0,i.jsx)(n.code,{children:"queryAllBy*"})," queries",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#query-all-by",children:"#"})]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"queryAllByX(...): ReactTestInstance[]\n"})}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"queryAllBy*"})," queries return an array of all matching nodes for a query and return an empty array (",(0,i.jsx)(n.code,{children:"[]"}),") when no elements match."]}),"\n",(0,i.jsxs)(n.h3,{id:"find-by",children:[(0,i.jsx)(n.code,{children:"findBy*"})," queries",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#find-by",children:"#"})]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"findByX(\n ...,\n waitForOptions?: {\n timeout?: number,\n interval?: number,\n },\n): Promise\n"})}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"findBy*"})," queries return a promise which resolves when a matching element is found. The promise is rejected if no elements match or if more than one match is found after a default timeout of 1000 ms. If you need to find more than one element use ",(0,i.jsx)(n.code,{children:"findAllBy*"})," queries."]}),"\n",(0,i.jsxs)(n.h3,{id:"find-all-by",children:[(0,i.jsx)(n.code,{children:"findAllBy*"})," queries",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#find-all-by",children:"#"})]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"findAllByX(\n ...,\n waitForOptions?: {\n timeout?: number,\n interval?: number,\n },\n): Promise\n"})}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"findAllBy*"})," queries return a promise which resolves to an array of matching elements. The promise is rejected if no elements match after a default timeout of 1000 ms."]}),"\n",(0,i.jsxs)(n.div,{className:"rspress-directive info",children:[(0,i.jsx)(n.div,{className:"rspress-directive-title",children:"INFO"}),(0,i.jsx)(n.div,{className:"rspress-directive-content",children:(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"findBy*"})," and ",(0,i.jsx)(n.code,{children:"findAllBy*"})," queries accept optional ",(0,i.jsx)(n.code,{children:"waitForOptions"})," object arguments, which can contain ",(0,i.jsx)(n.code,{children:"timeout"}),", ",(0,i.jsx)(n.code,{children:"interval"})," and ",(0,i.jsx)(n.code,{children:"onTimeout"})," properties which have the same meaning as respective options for ",(0,i.jsx)(n.a,{href:"/docs/api/misc/async#waitfor",children:(0,i.jsx)(n.code,{children:"waitFor"})})," function.\n"]})})]}),"\n",(0,i.jsxs)(n.div,{className:"rspress-directive info",children:[(0,i.jsx)(n.div,{className:"rspress-directive-title",children:"INFO"}),(0,i.jsx)(n.div,{className:"rspress-directive-content",children:(0,i.jsxs)(n.p,{children:["In cases when your ",(0,i.jsx)(n.code,{children:"findBy*"})," and ",(0,i.jsx)(n.code,{children:"findAllBy*"})," queries throw when unable to find matching elements, it is helpful to pass ",(0,i.jsx)(n.code,{children:"onTimeout: () => { screen.debug(); }"})," callback using the ",(0,i.jsx)(n.code,{children:"waitForOptions"})," parameter.\n"]})})]}),"\n",(0,i.jsxs)(n.h2,{id:"query-predicates",children:["Query predicates",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#query-predicates",children:"#"})]}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsxs)(n.em,{children:["Note: most methods like this one return a ",(0,i.jsx)(n.a,{href:"https://reactjs.org/docs/test-renderer.html#testinstance",target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)(n.code,{children:"ReactTestInstance"})})," with following properties that you may be interested in:"]})}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-typescript",children:"type ReactTestInstance = {\n type: string | Function;\n props: { [propName: string]: any };\n parent: ReactTestInstance | null;\n children: Array;\n};\n"})}),"\n",(0,i.jsxs)(n.h3,{id:"by-role",children:[(0,i.jsx)(n.code,{children:"*ByRole"}),(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#by-role",children:"#"})]}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"getByRole, getAllByRole, queryByRole, queryAllByRole, findByRole, findAllByRole"}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"getByRole(\n role: TextMatch,\n options?: {\n name?: TextMatch\n disabled?: boolean,\n selected?: boolean,\n checked?: boolean | 'mixed',\n busy?: boolean,\n expanded?: boolean,\n value: {\n min?: number;\n max?: number;\n now?: number;\n text?: TextMatch;\n },\n includeHiddenElements?: boolean;\n }\n): ReactTestInstance;\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Returns a ",(0,i.jsx)(n.code,{children:"ReactTestInstance"})," with matching ",(0,i.jsx)(n.code,{children:"role"})," or ",(0,i.jsx)(n.code,{children:"accessibilityRole"})," prop."]}),"\n",(0,i.jsxs)(n.div,{className:"rspress-directive info",children:[(0,i.jsx)(n.div,{className:"rspress-directive-title",children:"INFO"}),(0,i.jsxs)(n.div,{className:"rspress-directive-content",children:[(0,i.jsxs)(n.p,{children:["In order for ",(0,i.jsx)(n.code,{children:"*ByRole"})," queries to match an element it needs to be considered an accessibility element:"]}),"\n",(0,i.jsxs)(n.ol,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"Text"}),", ",(0,i.jsx)(n.code,{children:"TextInput"})," and ",(0,i.jsx)(n.code,{children:"Switch"})," host elements are these by default."]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"View"})," host elements need an explicit ",(0,i.jsx)(n.a,{href:"https://reactnative.dev/docs/accessibility#accessible",target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)(n.code,{children:"accessible"})})," prop set to ",(0,i.jsx)(n.code,{children:"true"})]}),"\n",(0,i.jsxs)(n.li,{children:["Some React Native composite components like ",(0,i.jsx)(n.code,{children:"Pressable"})," & ",(0,i.jsx)(n.code,{children:"TouchableOpacity"})," render host ",(0,i.jsx)(n.code,{children:"View"})," element with ",(0,i.jsx)(n.code,{children:"accessible"})," prop already set."]}),"\n"]}),"\n"]})]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-jsx",children:"import { render, screen } from '@testing-library/react-native';\n\nrender(\n \n Hello\n \n);\nconst element = screen.getByRole('button');\nconst element2 = screen.getByRole('button', { name: 'Hello' });\nconst element3 = screen.getByRole('button', { name: 'Hello', disabled: true });\n"})}),"\n",(0,i.jsxs)(n.h4,{id:"by-role-options",children:["Options",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#by-role-options",children:"#"})]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"name"}),": Finds an element with given ",(0,i.jsx)(n.code,{children:"role"}),"/",(0,i.jsx)(n.code,{children:"accessibilityRole"})," and an accessible name (= accessability label or text content)."]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"disabled"}),": You can filter elements by their disabled state (coming either from ",(0,i.jsx)(n.code,{children:"aria-disabled"})," prop or ",(0,i.jsx)(n.code,{children:"accessbilityState.disabled"})," prop). The possible values are ",(0,i.jsx)(n.code,{children:"true"})," or ",(0,i.jsx)(n.code,{children:"false"}),". Querying ",(0,i.jsx)(n.code,{children:"disabled: false"})," will also match elements with ",(0,i.jsx)(n.code,{children:"disabled: undefined"})," (see the ",(0,i.jsx)(n.a,{href:"https://github.com/callstack/react-native-testing-library/wiki/Accessibility:-State",target:"_blank",rel:"noopener noreferrer",children:"wiki"})," for more details)."]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["See ",(0,i.jsx)(n.a,{href:"https://reactnative.dev/docs/accessibility#accessibilitystate",target:"_blank",rel:"noopener noreferrer",children:"React Native's accessibilityState"})," docs to learn more about the ",(0,i.jsx)(n.code,{children:"disabled"})," state."]}),"\n",(0,i.jsxs)(n.li,{children:["This option can alternatively be expressed using the ",(0,i.jsxs)(n.a,{href:"/docs/api/jest-matchers#tobeenabled",children:[(0,i.jsx)(n.code,{children:"toBeEnabled()"})," / ",(0,i.jsx)(n.code,{children:"toBeDisabled()"})]})," Jest matchers."]}),"\n"]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"selected"}),": You can filter elements by their selected state (coming either from ",(0,i.jsx)(n.code,{children:"aria-selected"})," prop or ",(0,i.jsx)(n.code,{children:"accessbilityState.selected"})," prop). The possible values are ",(0,i.jsx)(n.code,{children:"true"})," or ",(0,i.jsx)(n.code,{children:"false"}),". Querying ",(0,i.jsx)(n.code,{children:"selected: false"})," will also match elements with ",(0,i.jsx)(n.code,{children:"selected: undefined"})," (see the ",(0,i.jsx)(n.a,{href:"https://github.com/callstack/react-native-testing-library/wiki/Accessibility:-State",target:"_blank",rel:"noopener noreferrer",children:"wiki"})," for more details)."]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["See ",(0,i.jsx)(n.a,{href:"https://reactnative.dev/docs/accessibility#accessibilitystate",target:"_blank",rel:"noopener noreferrer",children:"React Native's accessibilityState"})," docs to learn more about the ",(0,i.jsx)(n.code,{children:"selected"})," state."]}),"\n",(0,i.jsxs)(n.li,{children:["This option can alternatively be expressed using the ",(0,i.jsx)(n.a,{href:"/docs/api/jest-matchers#tobeselected",children:(0,i.jsx)(n.code,{children:"toBeSelected()"})})," Jest matcher."]}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"checked"}),": You can filter elements by their checked state (coming either from ",(0,i.jsx)(n.code,{children:"aria-checked"})," prop or ",(0,i.jsx)(n.code,{children:"accessbilityState.checked"})," prop). The possible values are ",(0,i.jsx)(n.code,{children:"true"}),", ",(0,i.jsx)(n.code,{children:"false"}),", or ",(0,i.jsx)(n.code,{children:'"mixed"'}),"."]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["See ",(0,i.jsx)(n.a,{href:"https://reactnative.dev/docs/accessibility#accessibilitystate",target:"_blank",rel:"noopener noreferrer",children:"React Native's accessibilityState"})," docs to learn more about the ",(0,i.jsx)(n.code,{children:"checked"})," state."]}),"\n",(0,i.jsxs)(n.li,{children:["This option can alternatively be expressed using the ",(0,i.jsxs)(n.a,{href:"/docs/api/jest-matchers#tobechecked",children:[(0,i.jsx)(n.code,{children:"toBeChecked()"})," / ",(0,i.jsx)(n.code,{children:"toBePartiallyChecked()"})]})," Jest matchers."]}),"\n"]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"busy"}),": You can filter elements by their busy state (coming either from ",(0,i.jsx)(n.code,{children:"aria-busy"})," prop or ",(0,i.jsx)(n.code,{children:"accessbilityState.busy"})," prop). The possible values are ",(0,i.jsx)(n.code,{children:"true"})," or ",(0,i.jsx)(n.code,{children:"false"}),". Querying ",(0,i.jsx)(n.code,{children:"busy: false"})," will also match elements with ",(0,i.jsx)(n.code,{children:"busy: undefined"})," (see the ",(0,i.jsx)(n.a,{href:"https://github.com/callstack/react-native-testing-library/wiki/Accessibility:-State",target:"_blank",rel:"noopener noreferrer",children:"wiki"})," for more details)."]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["See ",(0,i.jsx)(n.a,{href:"https://reactnative.dev/docs/accessibility#accessibilitystate",target:"_blank",rel:"noopener noreferrer",children:"React Native's accessibilityState"})," docs to learn more about the ",(0,i.jsx)(n.code,{children:"busy"})," state."]}),"\n",(0,i.jsxs)(n.li,{children:["This option can alternatively be expressed using the ",(0,i.jsx)(n.a,{href:"/docs/api/jest-matchers#tobebusy",children:(0,i.jsx)(n.code,{children:"toBeBusy()"})})," Jest matcher."]}),"\n"]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"expanded"}),": You can filter elements by their expanded state (coming either from ",(0,i.jsx)(n.code,{children:"aria-expanded"})," prop or ",(0,i.jsx)(n.code,{children:"accessbilityState.expanded"})," prop). The possible values are ",(0,i.jsx)(n.code,{children:"true"})," or ",(0,i.jsx)(n.code,{children:"false"}),"."]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["See ",(0,i.jsx)(n.a,{href:"https://reactnative.dev/docs/accessibility#accessibilitystate",target:"_blank",rel:"noopener noreferrer",children:"React Native's accessibilityState"})," docs to learn more about the ",(0,i.jsx)(n.code,{children:"expanded"})," state."]}),"\n",(0,i.jsxs)(n.li,{children:["This option can alternatively be expressed using the ",(0,i.jsxs)(n.a,{href:"/docs/api/jest-matchers#tobeexpanded",children:[(0,i.jsx)(n.code,{children:"toBeExpanded()"})," / ",(0,i.jsx)(n.code,{children:"toBeCollapsed()"})]})," Jest matchers."]}),"\n"]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"value"}),": Filter elements by their accessibility value, based on either ",(0,i.jsx)(n.code,{children:"aria-valuemin"}),", ",(0,i.jsx)(n.code,{children:"aria-valuemax"}),", ",(0,i.jsx)(n.code,{children:"aria-valuenow"}),", ",(0,i.jsx)(n.code,{children:"aria-valuetext"})," or ",(0,i.jsx)(n.code,{children:"accessibilityValue"})," props. Accessiblity value conceptually consists of numeric ",(0,i.jsx)(n.code,{children:"min"}),", ",(0,i.jsx)(n.code,{children:"max"})," and ",(0,i.jsx)(n.code,{children:"now"})," entries, as well as string ",(0,i.jsx)(n.code,{children:"text"})," entry."]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["See React Native ",(0,i.jsx)(n.a,{href:"https://reactnative.dev/docs/accessibility#accessibilityvalue",target:"_blank",rel:"noopener noreferrer",children:"accessibilityValue"})," docs to learn more about the accessibility value concept."]}),"\n",(0,i.jsxs)(n.li,{children:["This option can alternatively be expressed using the ",(0,i.jsx)(n.a,{href:"/docs/api/jest-matchers#tohaveaccessibilityvalue",children:(0,i.jsx)(n.code,{children:"toHaveAccessibilityValue()"})})," Jest matcher."]}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,i.jsxs)(n.h3,{id:"by-label-text",children:[(0,i.jsx)(n.code,{children:"*ByLabelText"}),(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#by-label-text",children:"#"})]}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"getByLabelText, getAllByLabelText, queryByLabelText, queryAllByLabelText, findByLabelText, findAllByLabelText"}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"getByLabelText(\n text: TextMatch,\n options?: {\n exact?: boolean;\n normalizer?: (text: string) => string;\n includeHiddenElements?: boolean;\n },\n): ReactTestInstance;\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Returns a ",(0,i.jsx)(n.code,{children:"ReactTestInstance"})," with matching label:"]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["either by matching ",(0,i.jsx)(n.a,{href:"https://reactnative.dev/docs/accessibility#aria-label",target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)(n.code,{children:"aria-label"})}),"/",(0,i.jsx)(n.a,{href:"https://reactnative.dev/docs/accessibility#accessibilitylabel",target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)(n.code,{children:"accessibilityLabel"})})," prop"]}),"\n",(0,i.jsxs)(n.li,{children:["or by matching text content of view referenced by ",(0,i.jsx)(n.a,{href:"https://reactnative.dev/docs/accessibility#aria-labelledby-android",target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)(n.code,{children:"aria-labelledby"})}),"/",(0,i.jsx)(n.a,{href:"https://reactnative.dev/docs/accessibility#accessibilitylabelledby-android",target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)(n.code,{children:"accessibilityLabelledBy"})})," prop"]}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-jsx",children:"import { render, screen } from '@testing-library/react-native';\n\nrender();\nconst element = screen.getByLabelText('my-label');\n"})}),"\n",(0,i.jsxs)(n.h3,{id:"by-placeholder-text",children:[(0,i.jsx)(n.code,{children:"*ByPlaceholderText"}),(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#by-placeholder-text",children:"#"})]}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"getByPlaceholderText, getAllByPlaceholderText, queryByPlaceholderText, queryAllByPlaceholderText, findByPlaceholderText, findAllByPlaceholderText"}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"getByPlaceholderText(\n text: TextMatch,\n options?: {\n exact?: boolean;\n normalizer?: (text: string) => string;\n includeHiddenElements?: boolean;\n }\n): ReactTestInstance;\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Returns a ",(0,i.jsx)(n.code,{children:"ReactTestInstance"})," for a ",(0,i.jsx)(n.code,{children:"TextInput"})," with a matching placeholder \u2013 may be a string or regular expression."]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-jsx",children:"import { render, screen } from '@testing-library/react-native';\n\nrender();\nconst element = screen.getByPlaceholderText('username');\n"})}),"\n",(0,i.jsxs)(n.h3,{id:"by-display-value",children:[(0,i.jsx)(n.code,{children:"*ByDisplayValue"}),(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#by-display-value",children:"#"})]}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"getByDisplayValue, getAllByDisplayValue, queryByDisplayValue, queryAllByDisplayValue, findByDisplayValue, findAllByDisplayValue"}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"getByDisplayValue(\n value: TextMatch,\n options?: {\n exact?: boolean;\n normalizer?: (text: string) => string;\n includeHiddenElements?: boolean;\n },\n): ReactTestInstance;\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Returns a ",(0,i.jsx)(n.code,{children:"ReactTestInstance"})," for a ",(0,i.jsx)(n.code,{children:"TextInput"})," with a matching display value \u2013 may be a string or regular expression."]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-jsx",children:"import { render, screen } from '@testing-library/react-native';\n\nrender();\nconst element = screen.getByDisplayValue('username');\n"})}),"\n",(0,i.jsxs)(n.h3,{id:"by-text",children:[(0,i.jsx)(n.code,{children:"*ByText"}),(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#by-text",children:"#"})]}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"getByText, getAllByText, queryByText, queryAllByText, findByText, findAllByText"}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"getByText(\n text: TextMatch,\n options?: {\n exact?: boolean;\n normalizer?: (text: string) => string;\n includeHiddenElements?: boolean;\n }\n): ReactTestInstance;\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Returns a ",(0,i.jsx)(n.code,{children:"ReactTestInstance"})," with matching text \u2013 may be a string or regular expression."]}),"\n",(0,i.jsxs)(n.p,{children:["This method will join ",(0,i.jsx)(n.code,{children:""})," siblings to find matches, similarly to ",(0,i.jsx)(n.a,{href:"https://reactnative.dev/docs/text#containers",target:"_blank",rel:"noopener noreferrer",children:"how React Native handles these components"}),". This will allow for querying for strings that will be visually rendered together, but may be semantically separate React components."]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-jsx",children:"import { render, screen } from '@testing-library/react-native';\n\nrender();\nconst element = screen.getByText('banana');\n"})}),"\n",(0,i.jsxs)(n.h3,{id:"by-hint-text",children:[(0,i.jsx)(n.code,{children:"*ByHintText"}),(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#by-hint-text",children:"#"})]}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"getByA11yHint, getAllByA11yHint, queryByA11yHint, queryAllByA11yHint, findByA11yHint, findAllByA11yHint\ngetByAccessibilityHint, getAllByAccessibilityHint, queryByAccessibilityHint, queryAllByAccessibilityHint, findByAccessibilityHint, findAllByAccessibilityHint\ngetByHintText, getAllByHintText, queryByHintText, queryAllByHintText, findByHintText, findAllByHintText"}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"getByHintText(\n hint: TextMatch,\n options?: {\n exact?: boolean;\n normalizer?: (text: string) => string;\n includeHiddenElements?: boolean;\n },\n): ReactTestInstance;\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Returns a ",(0,i.jsx)(n.code,{children:"ReactTestInstance"})," with matching ",(0,i.jsx)(n.code,{children:"accessibilityHint"})," prop."]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-jsx",children:"import { render, screen } from '@testing-library/react-native';\n\nrender();\nconst element = screen.getByHintText('Plays a song');\n"})}),"\n",(0,i.jsxs)(n.div,{className:"rspress-directive info",children:[(0,i.jsx)(n.div,{className:"rspress-directive-title",children:"INFO"}),(0,i.jsx)(n.div,{className:"rspress-directive-content",children:(0,i.jsxs)(n.p,{children:["Please consult ",(0,i.jsxs)(n.a,{href:"https://developer.apple.com/documentation/objectivec/nsobject/1615093-accessibilityhint",target:"_blank",rel:"noopener noreferrer",children:["Apple guidelines on how ",(0,i.jsx)(n.code,{children:"accessibilityHint"})," should be used"]}),".\n"]})})]}),"\n",(0,i.jsxs)(n.h3,{id:"by-test-id",children:[(0,i.jsx)(n.code,{children:"*ByTestId"}),(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#by-test-id",children:"#"})]}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"getByTestId, getAllByTestId, queryByTestId, queryAllByTestId, findByTestId, findAllByTestId"}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"getByTestId(\n testId: TextMatch,\n options?: {\n exact?: boolean;\n normalizer?: (text: string) => string;\n includeHiddenElements?: boolean;\n },\n): ReactTestInstance;\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Returns a ",(0,i.jsx)(n.code,{children:"ReactTestInstance"})," with matching ",(0,i.jsx)(n.code,{children:"testID"})," prop. ",(0,i.jsx)(n.code,{children:"testID"})," \u2013 may be a string or a regular expression."]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-jsx",children:"import { render, screen } from '@testing-library/react-native';\n\nrender();\nconst element = screen.getByTestId('unique-id');\n"})}),"\n",(0,i.jsxs)(n.div,{className:"rspress-directive info",children:[(0,i.jsx)(n.div,{className:"rspress-directive-title",children:"INFO"}),(0,i.jsx)(n.div,{className:"rspress-directive-content",children:(0,i.jsxs)(n.p,{children:["In the spirit of ",(0,i.jsx)(n.a,{href:"https://testing-library.com/docs/guiding-principles",target:"_blank",rel:"noopener noreferrer",children:"the guiding principles"}),", it is recommended to use this only after the other queries don't work for your use case. Using ",(0,i.jsx)(n.code,{children:"testID"})," attributes do not resemble how your software is used and should be avoided if possible. However, they are particularly useful for end-to-end testing on real devices, e.g. using Detox and it's an encouraged technique to use there. Learn more from the blog post ",(0,i.jsx)(n.a,{href:"https://kentcdodds.com/blog/making-your-ui-tests-resilient-to-change",target:"_blank",rel:"noopener noreferrer",children:'"Making your UI tests resilient to change"'}),".\n"]})})]}),"\n",(0,i.jsxs)(n.h3,{id:"by-accessibility-state",children:[(0,i.jsx)(n.code,{children:"*ByA11yState"}),", ",(0,i.jsx)(n.code,{children:"ByAccessibilityState"})," (deprecated)",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#by-accessibility-state",children:"#"})]}),"\n",(0,i.jsxs)(n.div,{className:"rspress-directive caution",children:[(0,i.jsx)(n.div,{className:"rspress-directive-title",children:"CAUTION"}),(0,i.jsxs)(n.div,{className:"rspress-directive-content",children:[(0,i.jsx)(n.p,{children:"This query has been marked deprecated, as is typically too general to give meaningful results. Therefore, it's better to use one of following options:"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.a,{href:"#by-role",children:(0,i.jsx)(n.code,{children:"*ByRole"})})," query with relevant state options: ",(0,i.jsx)(n.code,{children:"disabled"}),", ",(0,i.jsx)(n.code,{children:"selected"}),", ",(0,i.jsx)(n.code,{children:"checked"}),", ",(0,i.jsx)(n.code,{children:"expanded"})," and ",(0,i.jsx)(n.code,{children:"busy"})]}),"\n",(0,i.jsxs)(n.li,{children:["use built-in Jest matchers to check the state of element found using some other query:","\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["enabled state: ",(0,i.jsxs)(n.a,{href:"/docs/api/jest-matchers#tobeenabled",children:[(0,i.jsx)(n.code,{children:"toBeEnabled()"})," / ",(0,i.jsx)(n.code,{children:"toBeDisabled()"})]})]}),"\n",(0,i.jsxs)(n.li,{children:["checked state: ",(0,i.jsxs)(n.a,{href:"/docs/api/jest-matchers#tobechecked",children:[(0,i.jsx)(n.code,{children:"toBeChecked()"})," / ",(0,i.jsx)(n.code,{children:"toBePartiallyChecked()"})]})]}),"\n",(0,i.jsxs)(n.li,{children:["selected state: ",(0,i.jsx)(n.a,{href:"/docs/api/jest-matchers#tobeselected",children:(0,i.jsx)(n.code,{children:"toBeSelected()"})})]}),"\n",(0,i.jsxs)(n.li,{children:["expanded state: ",(0,i.jsxs)(n.a,{href:"/docs/api/jest-matchers#tobeexpanded",children:[(0,i.jsx)(n.code,{children:"toBeExpanded()"})," / ",(0,i.jsx)(n.code,{children:"toBeCollapsed()"})]})]}),"\n",(0,i.jsxs)(n.li,{children:["busy state: ",(0,i.jsx)(n.a,{href:"/docs/api/jest-matchers#tobebusy",children:(0,i.jsx)(n.code,{children:"toBeBusy()"})})]}),"\n"]}),"\n"]}),"\n"]}),"\n"]})]}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"getByA11yState, getAllByA11yState, queryByA11yState, queryAllByA11yState, findByA11yState, findAllByA11yState\ngetByAccessibilityState, getAllByAccessibilityState, queryByAccessibilityState, queryAllByAccessibilityState, findByAccessibilityState, findAllByAccessibilityState"}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"getByA11yState(\n state: {\n disabled?: boolean,\n selected?: boolean,\n checked?: boolean | 'mixed',\n busy?: boolean,\n expanded?: boolean,\n },\n options?: {\n includeHiddenElements?: boolean;\n },\n): ReactTestInstance;\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Returns a ",(0,i.jsx)(n.code,{children:"ReactTestInstance"})," with matching ",(0,i.jsx)(n.code,{children:"accessibilityState"})," prop or ARIA state props: ",(0,i.jsx)(n.code,{children:"aria-disabled"}),", ",(0,i.jsx)(n.code,{children:"aria-selected"}),", ",(0,i.jsx)(n.code,{children:"aria-checked"}),", ",(0,i.jsx)(n.code,{children:"aria-busy"}),", and ",(0,i.jsx)(n.code,{children:"aria-expanded"}),"."]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-jsx",children:"import { render, screen } from '@testing-library/react-native';\n\nrender();\nconst element = screen.getByA11yState({ disabled: true });\n"})}),"\n",(0,i.jsxs)(n.div,{className:"rspress-directive note",children:[(0,i.jsx)(n.div,{className:"rspress-directive-title",children:"NOTE"}),(0,i.jsxs)(n.div,{className:"rspress-directive-content",children:["\n",(0,i.jsxs)(n.h4,{id:"default-state-for-disabled-selected-and-busy-keys",children:["Default state for: ",(0,i.jsx)(n.code,{children:"disabled"}),", ",(0,i.jsx)(n.code,{children:"selected"}),", and ",(0,i.jsx)(n.code,{children:"busy"})," keys",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#default-state-for-disabled-selected-and-busy-keys",children:"#"})]}),"\n",(0,i.jsxs)(n.p,{children:["Passing ",(0,i.jsx)(n.code,{children:"false"})," matcher value will match both elements with explicit ",(0,i.jsx)(n.code,{children:"false"})," state value and without explicit state value."]}),"\n",(0,i.jsxs)(n.p,{children:["For instance, ",(0,i.jsx)(n.code,{children:"getByA11yState({ disabled: false })"})," will match elements with following props:"]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsx)(n.li,{children:(0,i.jsx)(n.code,{children:"accessibilityState={{ disabled: false, ... }}"})}),"\n",(0,i.jsxs)(n.li,{children:["no ",(0,i.jsx)(n.code,{children:"disabled"})," key under ",(0,i.jsx)(n.code,{children:"accessibilityState"})," prop, e.g. ",(0,i.jsx)(n.code,{children:"accessibilityState={{}}"})]}),"\n",(0,i.jsxs)(n.li,{children:["no ",(0,i.jsx)(n.code,{children:"accessibilityState"})," prop at all"]}),"\n"]}),"\n",(0,i.jsxs)(n.h4,{id:"default-state-for-checked-and-expanded-keys",children:["Default state for: ",(0,i.jsx)(n.code,{children:"checked"})," and ",(0,i.jsx)(n.code,{children:"expanded"})," keys",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#default-state-for-checked-and-expanded-keys",children:"#"})]}),"\n",(0,i.jsxs)(n.p,{children:["Passing ",(0,i.jsx)(n.code,{children:"false"})," matcher value will only match elements with explicit ",(0,i.jsx)(n.code,{children:"false"})," state value."]}),"\n",(0,i.jsxs)(n.p,{children:["For instance, ",(0,i.jsx)(n.code,{children:"getByA11yState({ checked: false })"})," will only match elements with:"]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsx)(n.li,{children:(0,i.jsx)(n.code,{children:"accessibilityState={{ checked: false, ... }}"})}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"but will not match elements with following props:"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["no ",(0,i.jsx)(n.code,{children:"checked"})," key under ",(0,i.jsx)(n.code,{children:"accessibilityState"})," prop, e.g. ",(0,i.jsx)(n.code,{children:"accessibilityState={{}}"})]}),"\n",(0,i.jsxs)(n.li,{children:["no ",(0,i.jsx)(n.code,{children:"accessibilityState"})," prop at all"]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"The difference in handling default values is made to reflect observed accessibility behaviour on iOS and Android platforms.\n"})]})]}),"\n",(0,i.jsxs)(n.h3,{id:"by-accessibility-value",children:[(0,i.jsx)(n.code,{children:"*ByA11yValue"}),", ",(0,i.jsx)(n.code,{children:"*ByAccessibilityValue"})," (deprecated)",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#by-accessibility-value",children:"#"})]}),"\n",(0,i.jsxs)(n.div,{className:"rspress-directive caution",children:[(0,i.jsx)(n.div,{className:"rspress-directive-title",children:"CAUTION"}),(0,i.jsxs)(n.div,{className:"rspress-directive-content",children:[(0,i.jsx)(n.p,{children:"This query has been marked deprecated, as is typically too general to give meaningful results. Therefore, it's better to use one of following options:"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.a,{href:"/docs/api/jest-matchers#tohaveaccessibilityvalue",children:(0,i.jsx)(n.code,{children:"toHaveAccessibilityValue()"})})," Jest matcher to check the state of element found using some other query"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.a,{href:"#by-role",children:(0,i.jsx)(n.code,{children:"*ByRole"})})," query with ",(0,i.jsx)(n.code,{children:"value"})," option"]}),"\n"]}),"\n"]})]}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"getByA11yValue, getAllByA11yValue, queryByA11yValue, queryAllByA11yValue, findByA11yValue, findAllByA11yValue\ngetByAccessibilityValue, getAllByAccessibilityValue, queryByAccessibilityValue, queryAllByAccessibilityValue, findByAccessibilityValue, findAllByAccessibilityValue"}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"getByA11yValue(\n value: {\n min?: number;\n max?: number;\n now?: number;\n text?: TextMatch;\n },\n options?: {\n includeHiddenElements?: boolean;\n },\n): ReactTestInstance;\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Returns a host element with matching accessibility value based on ",(0,i.jsx)(n.code,{children:"aria-valuemin"}),", ",(0,i.jsx)(n.code,{children:"aria-valuemax"}),", ",(0,i.jsx)(n.code,{children:"aria-valuenow"}),", ",(0,i.jsx)(n.code,{children:"aria-valuetext"})," & ",(0,i.jsx)(n.code,{children:"accessibilityValue"})," props. Only value entires provided to the query will be used to match elements. Element might have additional accessibility value entries and still be matched."]}),"\n",(0,i.jsxs)(n.p,{children:["When querying by ",(0,i.jsx)(n.code,{children:"text"})," entry a string or regex might be used."]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-jsx",children:"import { render, screen } from '@testing-library/react-native';\n\nrender();\nconst element = screen.getByA11yValue({ now: 25 });\nconst element2 = screen.getByA11yValue({ text: /25/ });\n"})}),"\n",(0,i.jsxs)(n.h3,{id:"common-options",children:["Common options",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#common-options",children:"#"})]}),"\n",(0,i.jsxs)(n.p,{children:["Usually query first argument can be a ",(0,i.jsx)(n.strong,{children:"string"})," or a ",(0,i.jsx)(n.strong,{children:"regex"}),". All queries take at least the ",(0,i.jsx)(n.a,{href:"#hidden-option",children:(0,i.jsx)(n.code,{children:"hidden"})})," option as an optionnal second argument and some queries accept more options which change string matching behaviour. See ",(0,i.jsx)(n.a,{href:"#textmatch",children:"TextMatch"})," for more info."]}),"\n",(0,i.jsxs)(n.h4,{id:"includehiddenelements-option",children:[(0,i.jsx)(n.code,{children:"includeHiddenElements"})," option",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#includehiddenelements-option",children:"#"})]}),"\n",(0,i.jsxs)(n.p,{children:["All queries have the ",(0,i.jsx)(n.code,{children:"includeHiddenElements"})," option which affects whether ",(0,i.jsx)(n.a,{href:"/docs/api/misc/accessibility#ishiddenfromaccessibility",children:"elements hidden from accessibility"})," are matched by the query. By default queries will not match hidden elements, because the users of the app would not be able to see such elements."]}),"\n",(0,i.jsxs)(n.p,{children:["You can configure the default value with the ",(0,i.jsxs)(n.a,{href:"/docs/api/misc/config#configure",children:[(0,i.jsx)(n.code,{children:"configure"})," function"]}),"."]}),"\n",(0,i.jsxs)(n.p,{children:["This option is also available as ",(0,i.jsx)(n.code,{children:"hidden"})," alias for compatibility with ",(0,i.jsx)(n.a,{href:"https://testing-library.com/docs/queries/byrole#hidden",target:"_blank",rel:"noopener noreferrer",children:"React Testing Library"}),"."]}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.strong,{children:"Examples"})}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-tsx",children:"render(Hidden from accessibility);\n\n// Exclude hidden elements\nexpect(\n screen.queryByText('Hidden from accessibility', {\n includeHiddenElements: false,\n })\n).not.toBeOnTheScreen();\n\n// Include hidden elements\nexpect(screen.getByText('Hidden from accessibility')).toBeOnTheScreen();\nexpect(\n screen.getByText('Hidden from accessibility', { includeHiddenElements: true })\n).toBeOnTheScreen();\n"})}),"\n",(0,i.jsxs)(n.h2,{id:"textmatch-type",children:["TextMatch type",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#textmatch-type",children:"#"})]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"type TextMatch = string | RegExp;\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Most of the query APIs take a ",(0,i.jsx)(n.code,{children:"TextMatch"})," as an argument, which means the argument can be either a ",(0,i.jsx)(n.em,{children:"string"})," or ",(0,i.jsx)(n.em,{children:"regex"}),"."]}),"\n",(0,i.jsxs)(n.h3,{id:"examples",children:["Examples",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#examples",children:"#"})]}),"\n",(0,i.jsx)(n.p,{children:"Given the following render:"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-jsx",children:"render(Hello World);\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Will ",(0,i.jsx)(n.strong,{children:"find a match"}),":"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-js",children:"// Matching a string:\nscreen.getByText('Hello World'); // full string match\nscreen.getByText('llo Worl', { exact: false }); // substring match\nscreen.getByText('hello world', { exact: false }); // ignore case-sensitivity\n\n// Matching a regex:\nscreen.getByText(/World/); // substring match\nscreen.getByText(/world/i); // substring match, ignore case\nscreen.getByText(/^hello world$/i); // full string match, ignore case-sensitivity\nscreen.getByText(/Hello W?oRlD/i); // advanced regex\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Will ",(0,i.jsx)(n.strong,{children:"NOT find a match"})]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-js",children:"// substring does not match\nscreen.getByText('llo Worl');\n// full string does not match\nscreen.getByText('Goodbye World');\n\n// case-sensitive regex with different case\nscreen.getByText(/hello world/);\n"})}),"\n",(0,i.jsxs)(n.h3,{id:"text-match-options",children:["Options",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#text-match-options",children:"#"})]}),"\n",(0,i.jsxs)(n.h4,{id:"precision",children:["Precision",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#precision",children:"#"})]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-typescript",children:"type TextMatchOptions = {\n exact?: boolean;\n normalizer?: (text: string) => string;\n};\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Queries that take a ",(0,i.jsx)(n.code,{children:"TextMatch"})," also accept an object as the second argument that can contain options that affect the precision of string matching:"]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"exact"}),": Defaults to ",(0,i.jsx)(n.code,{children:"true"}),"; matches full strings, case-sensitive. When false, matches substrings and is not case-sensitive.","\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"exact"})," has no effect on regex argument."]}),"\n",(0,i.jsxs)(n.li,{children:["In most cases using a ",(0,i.jsx)(n.code,{children:"regex"})," instead of a string gives you more control over fuzzy matching and should be preferred over ",(0,i.jsx)(n.code,{children:"{ exact: false }"}),"."]}),"\n"]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"normalizer"}),": An optional function which overrides normalization behavior. See ",(0,i.jsx)(n.a,{href:"#normalization",children:"Normalization"}),"."]}),"\n"]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"exact"})," option defaults to ",(0,i.jsx)(n.code,{children:"true"})," but if you want to search for a text slice or make text matching case-insensitive you can override it. That being said we advise you to use regex in more complex scenarios."]}),"\n",(0,i.jsxs)(n.h4,{id:"normalization",children:["Normalization",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#normalization",children:"#"})]}),"\n",(0,i.jsx)(n.p,{children:"Before running any matching logic against text, it is automatically normalized. By default, normalization consists of trimming whitespace from the start and end of text, and collapsing multiple adjacent whitespace characters into a single space."}),"\n",(0,i.jsxs)(n.p,{children:["If you want to prevent that normalization, or provide alternative normalization (e.g. to remove Unicode control characters), you can provide a ",(0,i.jsx)(n.code,{children:"normalizer"})," function in the options object. This function will be given a string and is expected to return a normalized version of that string."]}),"\n",(0,i.jsxs)(n.div,{className:"rspress-directive info",children:[(0,i.jsx)(n.div,{className:"rspress-directive-title",children:"INFO"}),(0,i.jsx)(n.div,{className:"rspress-directive-content",children:(0,i.jsxs)(n.p,{children:["Specifying a value for ",(0,i.jsx)(n.code,{children:"normalizer"})," replaces the built-in normalization, but you can call ",(0,i.jsx)(n.code,{children:"getDefaultNormalizer"})," to obtain a built-in normalizer, either to adjust that normalization or to call it from your own normalizer.\n"]})})]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"getDefaultNormalizer"})," take options object which allows the selection of behaviour:"]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"trim"}),": Defaults to ",(0,i.jsx)(n.code,{children:"true"}),". Trims leading and trailing whitespace."]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"collapseWhitespace"}),": Defaults to ",(0,i.jsx)(n.code,{children:"true"}),". Collapses inner whitespace (newlines, tabs repeated spaces) into a single space."]}),"\n"]}),"\n",(0,i.jsxs)(n.h5,{id:"normalization-examples",children:["Normalization Examples",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#normalization-examples",children:"#"})]}),"\n",(0,i.jsx)(n.p,{children:"To perform a match against text without trimming:"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-typescript",children:"screen.getByText(node, 'text', {\n normalizer: getDefaultNormalizer({ trim: false }),\n});\n"})}),"\n",(0,i.jsx)(n.p,{children:"To override normalization to remove some Unicode characters whilst keeping some (but not all) of the built-in normalization behavior:"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-typescript",children:"screen.getByText(node, 'text', {\n normalizer: (str) => getDefaultNormalizer({ trim: false })(str).replace(/[\\u200E-\\u200F]*/g, ''),\n});\n"})}),"\n",(0,i.jsxs)(n.h2,{id:"legacy-unit-testing-helpers",children:["Legacy unit testing helpers",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#legacy-unit-testing-helpers",children:"#"})]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"render"})," from ",(0,i.jsx)(n.code,{children:"@testing-library/react-native"})," exposes additional queries that ",(0,i.jsx)(n.strong,{children:"should not be used in integration or component testing"}),", but some users (like component library creators) interested in unit testing some components may find helpful."]}),"\n",(0,i.jsx)(n.p,{children:"The interface is the same as for other queries, but we won't provide full names so that they're harder to find by search engines."}),"\n",(0,i.jsxs)(n.h3,{id:"unsafe_bytype",children:[(0,i.jsx)(n.code,{children:"UNSAFE_ByType"}),(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#unsafe_bytype",children:"#"})]}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"UNSAFE_getByType, UNSAFE_getAllByType, UNSAFE_queryByType, UNSAFE_queryAllByType"}),"\n"]}),"\n",(0,i.jsxs)(n.p,{children:["Returns a ",(0,i.jsx)(n.code,{children:"ReactTestInstance"})," with matching a React component type."]}),"\n",(0,i.jsxs)(n.div,{className:"rspress-directive caution",children:[(0,i.jsx)(n.div,{className:"rspress-directive-title",children:"CAUTION"}),(0,i.jsx)(n.div,{className:"rspress-directive-content",children:(0,i.jsx)(n.p,{children:"This query has been marked unsafe, since it requires knowledge about implementation details of the component. Use responsibly."})})]}),"\n",(0,i.jsxs)(n.h3,{id:"unsafe_byprops",children:[(0,i.jsx)(n.code,{children:"UNSAFE_ByProps"}),(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#unsafe_byprops",children:"#"})]}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"UNSAFE_getByProps, UNSAFE_getAllByProps, UNSAFE_queryByProps, UNSAFE_queryAllByProps"}),"\n"]}),"\n",(0,i.jsxs)(n.p,{children:["Returns a ",(0,i.jsx)(n.code,{children:"ReactTestInstance"})," with matching props object."]}),"\n",(0,i.jsxs)(n.div,{className:"rspress-directive caution",children:[(0,i.jsx)(n.div,{className:"rspress-directive-title",children:"CAUTION"}),(0,i.jsx)(n.div,{className:"rspress-directive-content",children:(0,i.jsx)(n.p,{children:"This query has been marked unsafe, since it requires knowledge about implementation details of the component. Use responsibly."})})]})]})}function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,t.ah)(),e.components);return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(r,{...e})}):r(e)}n.default=c,c.__RSPRESS_PAGE_META={},c.__RSPRESS_PAGE_META["12.x%2Fdocs%2Fapi%2Fqueries.mdx"]={toc:[{text:"Accessing queries",id:"accessing-queries",depth:2},{text:"Using `screen` object",id:"using-screen-object",depth:3},{text:"Using `render` result",id:"using-render-result",depth:3},{text:"Query parts",id:"query-parts",depth:2},{text:"Query variant",id:"query-variant",depth:2},{text:"`getBy*` queries",id:"get-by",depth:3},{text:"`getAllBy*` queries",id:"get-all-by",depth:3},{text:"`queryBy*` queries",id:"query-by",depth:3},{text:"`queryAllBy*` queries",id:"query-all-by",depth:3},{text:"`findBy*` queries",id:"find-by",depth:3},{text:"`findAllBy*` queries",id:"find-all-by",depth:3},{text:"Query predicates",id:"query-predicates",depth:2},{text:"`*ByRole`",id:"by-role",depth:3},{text:"Options",id:"by-role-options",depth:4},{text:"`*ByLabelText`",id:"by-label-text",depth:3},{text:"`*ByPlaceholderText`",id:"by-placeholder-text",depth:3},{text:"`*ByDisplayValue`",id:"by-display-value",depth:3},{text:"`*ByText`",id:"by-text",depth:3},{text:"`*ByHintText`",id:"by-hint-text",depth:3},{text:"`*ByTestId`",id:"by-test-id",depth:3},{text:"`*ByA11yState`, `ByAccessibilityState` (deprecated)",id:"by-accessibility-state",depth:3},{text:"Default state for: `disabled`, `selected`, and `busy` keys",id:"default-state-for-disabled-selected-and-busy-keys",depth:4},{text:"Default state for: `checked` and `expanded` keys",id:"default-state-for-checked-and-expanded-keys",depth:4},{text:"`*ByA11yValue`, `*ByAccessibilityValue` (deprecated)",id:"by-accessibility-value",depth:3},{text:"Common options",id:"common-options",depth:3},{text:"`includeHiddenElements` option",id:"includehiddenelements-option",depth:4},{text:"TextMatch type",id:"textmatch-type",depth:2},{text:"Examples",id:"examples",depth:3},{text:"Options",id:"text-match-options",depth:3},{text:"Precision",id:"precision",depth:4},{text:"Normalization",id:"normalization",depth:4},{text:"Legacy unit testing helpers",id:"legacy-unit-testing-helpers",depth:2},{text:"`UNSAFE_ByType`",id:"unsafe_bytype",depth:3},{text:"`UNSAFE_ByProps`",id:"unsafe_byprops",depth:3}],title:"Queries",frontmatter:{}}}}]); \ No newline at end of file diff --git a/static/js/async/119.ae252a60.js b/static/js/async/119.ae252a60.js deleted file mode 100644 index a8e83da46..000000000 --- a/static/js/async/119.ae252a60.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["119"],{5477:function(e,n,s){"use strict";s.r(n);var i=s("5893"),t=s("65");function r(e){let n=Object.assign({h1:"h1",a:"a",p:"p",h2:"h2",code:"code",h3:"h3",pre:"pre",table:"table",thead:"thead",tr:"tr",th:"th",tbody:"tbody",td:"td",div:"div",em:"em",blockquote:"blockquote",ol:"ol",li:"li",h4:"h4",ul:"ul",strong:"strong",h5:"h5"},(0,t.ah)(),e.components);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(n.h1,{id:"queries",children:["Queries",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#queries",children:"#"})]}),"\n",(0,i.jsx)(n.p,{children:"Queries are one of the main building blocks for the React Native Testing Library. They enable you to find relevant elements in the element tree, which represents the your application's user interface when running under tests."}),"\n",(0,i.jsxs)(n.h2,{id:"accessing-queries",children:["Accessing queries",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#accessing-queries",children:"#"})]}),"\n",(0,i.jsxs)(n.p,{children:["All queries described below are accessible in two main ways: through the ",(0,i.jsx)(n.code,{children:"screen"})," object or by capturing the ",(0,i.jsx)(n.code,{children:"render"})," function call result."]}),"\n",(0,i.jsxs)(n.h3,{id:"using-screen-object",children:["Using ",(0,i.jsx)(n.code,{children:"screen"})," object",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#using-screen-object",children:"#"})]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-tsx",children:'import { render, screen } from \'@testing-library/react-native\';\n\ntest(\'accessing queries using "screen" object\', () => {\n render(...);\n\n screen.getByRole("button", { name: "Start" });\n})\n'})}),"\n",(0,i.jsxs)(n.p,{children:["The modern and recommended way of accessing queries is to use the ",(0,i.jsx)(n.code,{children:"screen"})," object exported by the ",(0,i.jsx)(n.code,{children:"@testing-library/react-native"})," package. This object will contain methods of all available queries bound to the most recently rendered UI."]}),"\n",(0,i.jsxs)(n.h3,{id:"using-render-result",children:["Using ",(0,i.jsx)(n.code,{children:"render"})," result",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#using-render-result",children:"#"})]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-tsx",children:'import { render } from \'@testing-library/react-native\';\n\ntest(\'accessing queries using "render" result\', () => {\n const { getByRole } = render(...);\n getByRole("button", { name: "Start" });\n})\n'})}),"\n",(0,i.jsxs)(n.p,{children:["The classic way is to capture query functions, as they are returned from the ",(0,i.jsx)(n.code,{children:"render"})," function call. This provides access to the same functions as in the case of the ",(0,i.jsx)(n.code,{children:"screen"})," object."]}),"\n",(0,i.jsxs)(n.h2,{id:"query-parts",children:["Query parts",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#query-parts",children:"#"})]}),"\n",(0,i.jsxs)(n.p,{children:["Each query is composed of two parts: variant and predicate, which are separated by the ",(0,i.jsx)(n.code,{children:"by"})," word in the middle of the name."]}),"\n",(0,i.jsx)(n.p,{children:"Consider the following query:"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{children:"getByRole()\n"})}),"\n",(0,i.jsxs)(n.p,{children:["For this query, ",(0,i.jsx)(n.code,{children:"getBy*"})," is the query variant, and ",(0,i.jsx)(n.code,{children:"*ByRole"})," is the predicate."]}),"\n",(0,i.jsxs)(n.h2,{id:"query-variant",children:["Query variant",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#query-variant",children:"#"})]}),"\n",(0,i.jsx)(n.p,{children:"The query variants describe the expected number (and timing) of matching elements, so they differ in their return type."}),"\n",(0,i.jsxs)(n.table,{children:["\n",(0,i.jsxs)(n.thead,{children:["\n",(0,i.jsxs)(n.tr,{children:["\n",(0,i.jsx)(n.th,{children:"Variant"}),"\n",(0,i.jsx)(n.th,{children:"Assertion"}),"\n",(0,i.jsx)(n.th,{children:"Return type"}),"\n",(0,i.jsx)(n.th,{children:"Is Async?"}),"\n"]}),"\n"]}),"\n",(0,i.jsxs)(n.tbody,{children:["\n",(0,i.jsxs)(n.tr,{children:["\n",(0,i.jsx)(n.td,{children:(0,i.jsx)(n.a,{href:"/docs/api/queries#get-by",children:(0,i.jsx)(n.code,{children:"getBy*"})})}),"\n",(0,i.jsx)(n.td,{children:"Exactly one matching element"}),"\n",(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"ReactTestInstance"})}),"\n",(0,i.jsx)(n.td,{children:"No"}),"\n"]}),"\n",(0,i.jsxs)(n.tr,{children:["\n",(0,i.jsx)(n.td,{children:(0,i.jsx)(n.a,{href:"/docs/api/queries#get-all-by",children:(0,i.jsx)(n.code,{children:"getAllBy*"})})}),"\n",(0,i.jsx)(n.td,{children:"At least one matching element"}),"\n",(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"Array"})}),"\n",(0,i.jsx)(n.td,{children:"No"}),"\n"]}),"\n",(0,i.jsxs)(n.tr,{children:["\n",(0,i.jsx)(n.td,{children:(0,i.jsx)(n.a,{href:"/docs/api/queries#query-by",children:(0,i.jsx)(n.code,{children:"queryBy*"})})}),"\n",(0,i.jsx)(n.td,{children:"Zero or one matching element"}),"\n",(0,i.jsx)(n.td,{children:(0,i.jsx)("code",{children:"ReactTestInstance | null"})}),"\n",(0,i.jsx)(n.td,{children:"No"}),"\n"]}),"\n",(0,i.jsxs)(n.tr,{children:["\n",(0,i.jsx)(n.td,{children:(0,i.jsx)(n.a,{href:"/docs/api/queries#query-all-by",children:(0,i.jsx)(n.code,{children:"queryAllBy*"})})}),"\n",(0,i.jsx)(n.td,{children:"No assertion"}),"\n",(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"Array"})}),"\n",(0,i.jsx)(n.td,{children:"No"}),"\n"]}),"\n",(0,i.jsxs)(n.tr,{children:["\n",(0,i.jsx)(n.td,{children:(0,i.jsx)(n.a,{href:"/docs/api/queries#find-by",children:(0,i.jsx)(n.code,{children:"findBy*"})})}),"\n",(0,i.jsx)(n.td,{children:"Exactly one matching element"}),"\n",(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"Promise"})}),"\n",(0,i.jsx)(n.td,{children:"Yes"}),"\n"]}),"\n",(0,i.jsxs)(n.tr,{children:["\n",(0,i.jsx)(n.td,{children:(0,i.jsx)(n.a,{href:"/docs/api/queries#find-all-by",children:(0,i.jsx)(n.code,{children:"findAllBy*"})})}),"\n",(0,i.jsx)(n.td,{children:"At least one matching element"}),"\n",(0,i.jsx)(n.td,{children:(0,i.jsx)(n.code,{children:"Promise>"})}),"\n",(0,i.jsx)(n.td,{children:"Yes"}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"Queries work as implicit assertions on the number of matching elements and will throw an error when the assertion fails."}),"\n",(0,i.jsxs)(n.h3,{id:"get-by",children:[(0,i.jsx)(n.code,{children:"getBy*"})," queries",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#get-by",children:"#"})]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"getByX(...): ReactTestInstance\n"})}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"getBy*"})," queries return the single matching element for a query, and throw an error if no elements match or if more than one match is found. If you need to find more than one element, then use ",(0,i.jsx)(n.code,{children:"getAllBy"}),"."]}),"\n",(0,i.jsxs)(n.h3,{id:"get-all-by",children:[(0,i.jsx)(n.code,{children:"getAllBy*"})," queries",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#get-all-by",children:"#"})]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"getAllByX(...): ReactTestInstance[]\n"})}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"getAllBy*"})," queries return an array of all matching elements for a query and throw an error if no elements match."]}),"\n",(0,i.jsxs)(n.h3,{id:"query-by",children:[(0,i.jsx)(n.code,{children:"queryBy*"})," queries",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#query-by",children:"#"})]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"queryByX(...): ReactTestInstance | null\n"})}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"queryBy*"})," queries return the first matching node for a query, and return ",(0,i.jsx)(n.code,{children:"null"})," if no elements match. This is useful for asserting an element that is not present. This throws if more than one match is found (use ",(0,i.jsx)(n.code,{children:"queryAllBy"})," instead)."]}),"\n",(0,i.jsxs)(n.h3,{id:"query-all-by",children:[(0,i.jsx)(n.code,{children:"queryAllBy*"})," queries",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#query-all-by",children:"#"})]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"queryAllByX(...): ReactTestInstance[]\n"})}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"queryAllBy*"})," queries return an array of all matching nodes for a query and return an empty array (",(0,i.jsx)(n.code,{children:"[]"}),") when no elements match."]}),"\n",(0,i.jsxs)(n.h3,{id:"find-by",children:[(0,i.jsx)(n.code,{children:"findBy*"})," queries",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#find-by",children:"#"})]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"findByX(\n ...,\n waitForOptions?: {\n timeout?: number,\n interval?: number,\n },\n): Promise\n"})}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"findBy*"})," queries return a promise which resolves when a matching element is found. The promise is rejected if no elements match or if more than one match is found after a default timeout of 1000 ms. If you need to find more than one element use ",(0,i.jsx)(n.code,{children:"findAllBy*"})," queries."]}),"\n",(0,i.jsxs)(n.h3,{id:"find-all-by",children:[(0,i.jsx)(n.code,{children:"findAllBy*"})," queries",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#find-all-by",children:"#"})]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"findAllByX(\n ...,\n waitForOptions?: {\n timeout?: number,\n interval?: number,\n },\n): Promise\n"})}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"findAllBy*"})," queries return a promise which resolves to an array of matching elements. The promise is rejected if no elements match after a default timeout of 1000 ms."]}),"\n",(0,i.jsxs)(n.div,{className:"rspress-directive info",children:[(0,i.jsx)(n.div,{className:"rspress-directive-title",children:"INFO"}),(0,i.jsx)(n.div,{className:"rspress-directive-content",children:(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"findBy*"})," and ",(0,i.jsx)(n.code,{children:"findAllBy*"})," queries accept optional ",(0,i.jsx)(n.code,{children:"waitForOptions"})," object arguments, which can contain ",(0,i.jsx)(n.code,{children:"timeout"}),", ",(0,i.jsx)(n.code,{children:"interval"})," and ",(0,i.jsx)(n.code,{children:"onTimeout"})," properties which have the same meaning as respective options for ",(0,i.jsx)(n.a,{href:"/docs/api/misc/async#waitfor",children:(0,i.jsx)(n.code,{children:"waitFor"})})," function.\n"]})})]}),"\n",(0,i.jsxs)(n.div,{className:"rspress-directive info",children:[(0,i.jsx)(n.div,{className:"rspress-directive-title",children:"INFO"}),(0,i.jsx)(n.div,{className:"rspress-directive-content",children:(0,i.jsxs)(n.p,{children:["In cases when your ",(0,i.jsx)(n.code,{children:"findBy*"})," and ",(0,i.jsx)(n.code,{children:"findAllBy*"})," queries throw when unable to find matching elements, it is helpful to pass ",(0,i.jsx)(n.code,{children:"onTimeout: () => { screen.debug(); }"})," callback using the ",(0,i.jsx)(n.code,{children:"waitForOptions"})," parameter.\n"]})})]}),"\n",(0,i.jsxs)(n.h2,{id:"query-predicates",children:["Query predicates",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#query-predicates",children:"#"})]}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsxs)(n.em,{children:["Note: most methods like this one return a ",(0,i.jsx)(n.a,{href:"https://reactjs.org/docs/test-renderer.html#testinstance",target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)(n.code,{children:"ReactTestInstance"})})," with following properties that you may be interested in:"]})}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-typescript",children:"type ReactTestInstance = {\n type: string | Function;\n props: { [propName: string]: any };\n parent: ReactTestInstance | null;\n children: Array;\n};\n"})}),"\n",(0,i.jsxs)(n.h3,{id:"by-role",children:[(0,i.jsx)(n.code,{children:"*ByRole"}),(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#by-role",children:"#"})]}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"getByRole, getAllByRole, queryByRole, queryAllByRole, findByRole, findAllByRole"}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"getByRole(\n role: TextMatch,\n options?: {\n name?: TextMatch\n disabled?: boolean,\n selected?: boolean,\n checked?: boolean | 'mixed',\n busy?: boolean,\n expanded?: boolean,\n value: {\n min?: number;\n max?: number;\n now?: number;\n text?: TextMatch;\n },\n includeHiddenElements?: boolean;\n }\n): ReactTestInstance;\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Returns a ",(0,i.jsx)(n.code,{children:"ReactTestInstance"})," with matching ",(0,i.jsx)(n.code,{children:"role"})," or ",(0,i.jsx)(n.code,{children:"accessibilityRole"})," prop."]}),"\n",(0,i.jsxs)(n.div,{className:"rspress-directive info",children:[(0,i.jsx)(n.div,{className:"rspress-directive-title",children:"INFO"}),(0,i.jsxs)(n.div,{className:"rspress-directive-content",children:[(0,i.jsxs)(n.p,{children:["In order for ",(0,i.jsx)(n.code,{children:"*ByRole"})," queries to match an element it needs to be considered an accessibility element:"]}),"\n",(0,i.jsxs)(n.ol,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"Text"}),", ",(0,i.jsx)(n.code,{children:"TextInput"})," and ",(0,i.jsx)(n.code,{children:"Switch"})," host elements are these by default."]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"View"})," host elements need an explicit ",(0,i.jsx)(n.a,{href:"https://reactnative.dev/docs/accessibility#accessible",target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)(n.code,{children:"accessible"})})," prop set to ",(0,i.jsx)(n.code,{children:"true"})]}),"\n",(0,i.jsxs)(n.li,{children:["Some React Native composite components like ",(0,i.jsx)(n.code,{children:"Pressable"})," & ",(0,i.jsx)(n.code,{children:"TouchableOpacity"})," render host ",(0,i.jsx)(n.code,{children:"View"})," element with ",(0,i.jsx)(n.code,{children:"accessible"})," prop already set."]}),"\n"]}),"\n"]})]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-jsx",children:"import { render, screen } from '@testing-library/react-native';\n\nrender(\n \n Hello\n \n);\nconst element = screen.getByRole('button');\nconst element2 = screen.getByRole('button', { name: 'Hello' });\nconst element3 = screen.getByRole('button', { name: 'Hello', disabled: true });\n"})}),"\n",(0,i.jsxs)(n.h4,{id:"by-role-options",children:["Options",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#by-role-options",children:"#"})]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"name"}),": Finds an element with given ",(0,i.jsx)(n.code,{children:"role"}),"/",(0,i.jsx)(n.code,{children:"accessibilityRole"})," and an accessible name (= accessability label or text content)."]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"disabled"}),": You can filter elements by their disabled state (coming either from ",(0,i.jsx)(n.code,{children:"aria-disabled"})," prop or ",(0,i.jsx)(n.code,{children:"accessbilityState.disabled"})," prop). The possible values are ",(0,i.jsx)(n.code,{children:"true"})," or ",(0,i.jsx)(n.code,{children:"false"}),". Querying ",(0,i.jsx)(n.code,{children:"disabled: false"})," will also match elements with ",(0,i.jsx)(n.code,{children:"disabled: undefined"})," (see the ",(0,i.jsx)(n.a,{href:"https://github.com/callstack/react-native-testing-library/wiki/Accessibility:-State",target:"_blank",rel:"noopener noreferrer",children:"wiki"})," for more details)."]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["See ",(0,i.jsx)(n.a,{href:"https://reactnative.dev/docs/accessibility#accessibilitystate",target:"_blank",rel:"noopener noreferrer",children:"React Native's accessibilityState"})," docs to learn more about the ",(0,i.jsx)(n.code,{children:"disabled"})," state."]}),"\n",(0,i.jsxs)(n.li,{children:["This option can alternatively be expressed using the ",(0,i.jsxs)(n.a,{href:"/docs/api/jest-matchers#tobeenabled",children:[(0,i.jsx)(n.code,{children:"toBeEnabled()"})," / ",(0,i.jsx)(n.code,{children:"toBeDisabled()"})]})," Jest matchers."]}),"\n"]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"selected"}),": You can filter elements by their selected state (coming either from ",(0,i.jsx)(n.code,{children:"aria-selected"})," prop or ",(0,i.jsx)(n.code,{children:"accessbilityState.selected"})," prop). The possible values are ",(0,i.jsx)(n.code,{children:"true"})," or ",(0,i.jsx)(n.code,{children:"false"}),". Querying ",(0,i.jsx)(n.code,{children:"selected: false"})," will also match elements with ",(0,i.jsx)(n.code,{children:"selected: undefined"})," (see the ",(0,i.jsx)(n.a,{href:"https://github.com/callstack/react-native-testing-library/wiki/Accessibility:-State",target:"_blank",rel:"noopener noreferrer",children:"wiki"})," for more details)."]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["See ",(0,i.jsx)(n.a,{href:"https://reactnative.dev/docs/accessibility#accessibilitystate",target:"_blank",rel:"noopener noreferrer",children:"React Native's accessibilityState"})," docs to learn more about the ",(0,i.jsx)(n.code,{children:"selected"})," state."]}),"\n",(0,i.jsxs)(n.li,{children:["This option can alternatively be expressed using the ",(0,i.jsx)(n.a,{href:"/docs/api/jest-matchers#tobeselected",children:(0,i.jsx)(n.code,{children:"toBeSelected()"})})," Jest matcher."]}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"checked"}),": You can filter elements by their checked state (coming either from ",(0,i.jsx)(n.code,{children:"aria-checked"})," prop or ",(0,i.jsx)(n.code,{children:"accessbilityState.checked"})," prop). The possible values are ",(0,i.jsx)(n.code,{children:"true"}),", ",(0,i.jsx)(n.code,{children:"false"}),", or ",(0,i.jsx)(n.code,{children:'"mixed"'}),"."]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["See ",(0,i.jsx)(n.a,{href:"https://reactnative.dev/docs/accessibility#accessibilitystate",target:"_blank",rel:"noopener noreferrer",children:"React Native's accessibilityState"})," docs to learn more about the ",(0,i.jsx)(n.code,{children:"checked"})," state."]}),"\n",(0,i.jsxs)(n.li,{children:["This option can alternatively be expressed using the ",(0,i.jsxs)(n.a,{href:"/docs/api/jest-matchers#tobechecked",children:[(0,i.jsx)(n.code,{children:"toBeChecked()"})," / ",(0,i.jsx)(n.code,{children:"toBePartiallyChecked()"})]})," Jest matchers."]}),"\n"]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"busy"}),": You can filter elements by their busy state (coming either from ",(0,i.jsx)(n.code,{children:"aria-busy"})," prop or ",(0,i.jsx)(n.code,{children:"accessbilityState.busy"})," prop). The possible values are ",(0,i.jsx)(n.code,{children:"true"})," or ",(0,i.jsx)(n.code,{children:"false"}),". Querying ",(0,i.jsx)(n.code,{children:"busy: false"})," will also match elements with ",(0,i.jsx)(n.code,{children:"busy: undefined"})," (see the ",(0,i.jsx)(n.a,{href:"https://github.com/callstack/react-native-testing-library/wiki/Accessibility:-State",target:"_blank",rel:"noopener noreferrer",children:"wiki"})," for more details)."]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["See ",(0,i.jsx)(n.a,{href:"https://reactnative.dev/docs/accessibility#accessibilitystate",target:"_blank",rel:"noopener noreferrer",children:"React Native's accessibilityState"})," docs to learn more about the ",(0,i.jsx)(n.code,{children:"busy"})," state."]}),"\n",(0,i.jsxs)(n.li,{children:["This option can alternatively be expressed using the ",(0,i.jsx)(n.a,{href:"/docs/api/jest-matchers#tobebusy",children:(0,i.jsx)(n.code,{children:"toBeBusy()"})})," Jest matcher."]}),"\n"]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"expanded"}),": You can filter elements by their expanded state (coming either from ",(0,i.jsx)(n.code,{children:"aria-expanded"})," prop or ",(0,i.jsx)(n.code,{children:"accessbilityState.expanded"})," prop). The possible values are ",(0,i.jsx)(n.code,{children:"true"})," or ",(0,i.jsx)(n.code,{children:"false"}),"."]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["See ",(0,i.jsx)(n.a,{href:"https://reactnative.dev/docs/accessibility#accessibilitystate",target:"_blank",rel:"noopener noreferrer",children:"React Native's accessibilityState"})," docs to learn more about the ",(0,i.jsx)(n.code,{children:"expanded"})," state."]}),"\n",(0,i.jsxs)(n.li,{children:["This option can alternatively be expressed using the ",(0,i.jsxs)(n.a,{href:"/docs/api/jest-matchers#tobeexpanded",children:[(0,i.jsx)(n.code,{children:"toBeExpanded()"})," / ",(0,i.jsx)(n.code,{children:"toBeCollapsed()"})]})," Jest matchers."]}),"\n"]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"value"}),": Filter elements by their accessibility value, based on either ",(0,i.jsx)(n.code,{children:"aria-valuemin"}),", ",(0,i.jsx)(n.code,{children:"aria-valuemax"}),", ",(0,i.jsx)(n.code,{children:"aria-valuenow"}),", ",(0,i.jsx)(n.code,{children:"aria-valuetext"})," or ",(0,i.jsx)(n.code,{children:"accessibilityValue"})," props. Accessiblity value conceptually consists of numeric ",(0,i.jsx)(n.code,{children:"min"}),", ",(0,i.jsx)(n.code,{children:"max"})," and ",(0,i.jsx)(n.code,{children:"now"})," entries, as well as string ",(0,i.jsx)(n.code,{children:"text"})," entry."]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["See React Native ",(0,i.jsx)(n.a,{href:"https://reactnative.dev/docs/accessibility#accessibilityvalue",target:"_blank",rel:"noopener noreferrer",children:"accessibilityValue"})," docs to learn more about the accessibility value concept."]}),"\n",(0,i.jsxs)(n.li,{children:["This option can alternatively be expressed using the ",(0,i.jsx)(n.a,{href:"/docs/api/jest-matchers#tohaveaccessibilityvalue",children:(0,i.jsx)(n.code,{children:"toHaveAccessibilityValue()"})})," Jest matcher."]}),"\n"]}),"\n"]}),"\n"]}),"\n",(0,i.jsxs)(n.h3,{id:"by-label-text",children:[(0,i.jsx)(n.code,{children:"*ByLabelText"}),(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#by-label-text",children:"#"})]}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"getByLabelText, getAllByLabelText, queryByLabelText, queryAllByLabelText, findByLabelText, findAllByLabelText"}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"getByLabelText(\n text: TextMatch,\n options?: {\n exact?: boolean;\n normalizer?: (text: string) => string;\n includeHiddenElements?: boolean;\n },\n): ReactTestInstance;\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Returns a ",(0,i.jsx)(n.code,{children:"ReactTestInstance"})," with matching label:"]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["either by matching ",(0,i.jsx)(n.a,{href:"https://reactnative.dev/docs/accessibility#aria-label",target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)(n.code,{children:"aria-label"})}),"/",(0,i.jsx)(n.a,{href:"https://reactnative.dev/docs/accessibility#accessibilitylabel",target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)(n.code,{children:"accessibilityLabel"})})," prop"]}),"\n",(0,i.jsxs)(n.li,{children:["or by matching text content of view referenced by ",(0,i.jsx)(n.a,{href:"https://reactnative.dev/docs/accessibility#aria-labelledby-android",target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)(n.code,{children:"aria-labelledby"})}),"/",(0,i.jsx)(n.a,{href:"https://reactnative.dev/docs/accessibility#accessibilitylabelledby-android",target:"_blank",rel:"noopener noreferrer",children:(0,i.jsx)(n.code,{children:"accessibilityLabelledBy"})})," prop"]}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-jsx",children:"import { render, screen } from '@testing-library/react-native';\n\nrender();\nconst element = screen.getByLabelText('my-label');\n"})}),"\n",(0,i.jsxs)(n.h3,{id:"by-placeholder-text",children:[(0,i.jsx)(n.code,{children:"*ByPlaceholderText"}),(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#by-placeholder-text",children:"#"})]}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"getByPlaceholderText, getAllByPlaceholderText, queryByPlaceholderText, queryAllByPlaceholderText, findByPlaceholderText, findAllByPlaceholderText"}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"getByPlaceholderText(\n text: TextMatch,\n options?: {\n exact?: boolean;\n normalizer?: (text: string) => string;\n includeHiddenElements?: boolean;\n }\n): ReactTestInstance;\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Returns a ",(0,i.jsx)(n.code,{children:"ReactTestInstance"})," for a ",(0,i.jsx)(n.code,{children:"TextInput"})," with a matching placeholder \u2013 may be a string or regular expression."]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-jsx",children:"import { render, screen } from '@testing-library/react-native';\n\nrender();\nconst element = screen.getByPlaceholderText('username');\n"})}),"\n",(0,i.jsxs)(n.h3,{id:"by-display-value",children:[(0,i.jsx)(n.code,{children:"*ByDisplayValue"}),(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#by-display-value",children:"#"})]}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"getByDisplayValue, getAllByDisplayValue, queryByDisplayValue, queryAllByDisplayValue, findByDisplayValue, findAllByDisplayValue"}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"getByDisplayValue(\n value: TextMatch,\n options?: {\n exact?: boolean;\n normalizer?: (text: string) => string;\n includeHiddenElements?: boolean;\n },\n): ReactTestInstance;\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Returns a ",(0,i.jsx)(n.code,{children:"ReactTestInstance"})," for a ",(0,i.jsx)(n.code,{children:"TextInput"})," with a matching display value \u2013 may be a string or regular expression."]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-jsx",children:"import { render, screen } from '@testing-library/react-native';\n\nrender();\nconst element = screen.getByDisplayValue('username');\n"})}),"\n",(0,i.jsxs)(n.h3,{id:"by-text",children:[(0,i.jsx)(n.code,{children:"*ByText"}),(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#by-text",children:"#"})]}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"getByText, getAllByText, queryByText, queryAllByText, findByText, findAllByText"}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"getByText(\n text: TextMatch,\n options?: {\n exact?: boolean;\n normalizer?: (text: string) => string;\n includeHiddenElements?: boolean;\n }\n): ReactTestInstance;\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Returns a ",(0,i.jsx)(n.code,{children:"ReactTestInstance"})," with matching text \u2013 may be a string or regular expression."]}),"\n",(0,i.jsxs)(n.p,{children:["This method will join ",(0,i.jsx)(n.code,{children:""})," siblings to find matches, similarly to ",(0,i.jsx)(n.a,{href:"https://reactnative.dev/docs/text#containers",target:"_blank",rel:"noopener noreferrer",children:"how React Native handles these components"}),". This will allow for querying for strings that will be visually rendered together, but may be semantically separate React components."]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-jsx",children:"import { render, screen } from '@testing-library/react-native';\n\nrender();\nconst element = screen.getByText('banana');\n"})}),"\n",(0,i.jsxs)(n.h3,{id:"by-hint-text",children:[(0,i.jsx)(n.code,{children:"*ByHintText"}),(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#by-hint-text",children:"#"})]}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"getByA11yHint, getAllByA11yHint, queryByA11yHint, queryAllByA11yHint, findByA11yHint, findAllByA11yHint\ngetByAccessibilityHint, getAllByAccessibilityHint, queryByAccessibilityHint, queryAllByAccessibilityHint, findByAccessibilityHint, findAllByAccessibilityHint\ngetByHintText, getAllByHintText, queryByHintText, queryAllByHintText, findByHintText, findAllByHintText"}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"getByHintText(\n hint: TextMatch,\n options?: {\n exact?: boolean;\n normalizer?: (text: string) => string;\n includeHiddenElements?: boolean;\n },\n): ReactTestInstance;\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Returns a ",(0,i.jsx)(n.code,{children:"ReactTestInstance"})," with matching ",(0,i.jsx)(n.code,{children:"accessibilityHint"})," prop."]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-jsx",children:"import { render, screen } from '@testing-library/react-native';\n\nrender();\nconst element = screen.getByHintText('Plays a song');\n"})}),"\n",(0,i.jsxs)(n.div,{className:"rspress-directive info",children:[(0,i.jsx)(n.div,{className:"rspress-directive-title",children:"INFO"}),(0,i.jsx)(n.div,{className:"rspress-directive-content",children:(0,i.jsxs)(n.p,{children:["Please consult ",(0,i.jsxs)(n.a,{href:"https://developer.apple.com/documentation/objectivec/nsobject/1615093-accessibilityhint",target:"_blank",rel:"noopener noreferrer",children:["Apple guidelines on how ",(0,i.jsx)(n.code,{children:"accessibilityHint"})," should be used"]}),".\n"]})})]}),"\n",(0,i.jsxs)(n.h3,{id:"by-test-id",children:[(0,i.jsx)(n.code,{children:"*ByTestId"}),(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#by-test-id",children:"#"})]}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"getByTestId, getAllByTestId, queryByTestId, queryAllByTestId, findByTestId, findAllByTestId"}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"getByTestId(\n testId: TextMatch,\n options?: {\n exact?: boolean;\n normalizer?: (text: string) => string;\n includeHiddenElements?: boolean;\n },\n): ReactTestInstance;\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Returns a ",(0,i.jsx)(n.code,{children:"ReactTestInstance"})," with matching ",(0,i.jsx)(n.code,{children:"testID"})," prop. ",(0,i.jsx)(n.code,{children:"testID"})," \u2013 may be a string or a regular expression."]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-jsx",children:"import { render, screen } from '@testing-library/react-native';\n\nrender();\nconst element = screen.getByTestId('unique-id');\n"})}),"\n",(0,i.jsxs)(n.div,{className:"rspress-directive info",children:[(0,i.jsx)(n.div,{className:"rspress-directive-title",children:"INFO"}),(0,i.jsx)(n.div,{className:"rspress-directive-content",children:(0,i.jsxs)(n.p,{children:["In the spirit of ",(0,i.jsx)(n.a,{href:"https://testing-library.com/docs/guiding-principles",target:"_blank",rel:"noopener noreferrer",children:"the guiding principles"}),", it is recommended to use this only after the other queries don't work for your use case. Using ",(0,i.jsx)(n.code,{children:"testID"})," attributes do not resemble how your software is used and should be avoided if possible. However, they are particularly useful for end-to-end testing on real devices, e.g. using Detox and it's an encouraged technique to use there. Learn more from the blog post ",(0,i.jsx)(n.a,{href:"https://kentcdodds.com/blog/making-your-ui-tests-resilient-to-change",target:"_blank",rel:"noopener noreferrer",children:'"Making your UI tests resilient to change"'}),".\n"]})})]}),"\n",(0,i.jsxs)(n.h3,{id:"by-accessibility-state",children:[(0,i.jsx)(n.code,{children:"*ByA11yState"}),", ",(0,i.jsx)(n.code,{children:"ByAccessibilityState"})," (deprecated)",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#by-accessibility-state",children:"#"})]}),"\n",(0,i.jsxs)(n.div,{className:"rspress-directive caution",children:[(0,i.jsx)(n.div,{className:"rspress-directive-title",children:"CAUTION"}),(0,i.jsxs)(n.div,{className:"rspress-directive-content",children:[(0,i.jsx)(n.p,{children:"This query has been marked deprecated, as is typically too general to give meaningful results. Therefore, it's better to use one of following options:"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.a,{href:"#by-role",children:(0,i.jsx)(n.code,{children:"*ByRole"})})," query with relevant state options: ",(0,i.jsx)(n.code,{children:"disabled"}),", ",(0,i.jsx)(n.code,{children:"selected"}),", ",(0,i.jsx)(n.code,{children:"checked"}),", ",(0,i.jsx)(n.code,{children:"expanded"})," and ",(0,i.jsx)(n.code,{children:"busy"})]}),"\n",(0,i.jsxs)(n.li,{children:["use built-in Jest matchers to check the state of element found using some other query:","\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["enabled state: ",(0,i.jsxs)(n.a,{href:"/docs/api/jest-matchers#tobeenabled",children:[(0,i.jsx)(n.code,{children:"toBeEnabled()"})," / ",(0,i.jsx)(n.code,{children:"toBeDisabled()"})]})]}),"\n",(0,i.jsxs)(n.li,{children:["checked state: ",(0,i.jsxs)(n.a,{href:"/docs/api/jest-matchers#tobechecked",children:[(0,i.jsx)(n.code,{children:"toBeChecked()"})," / ",(0,i.jsx)(n.code,{children:"toBePartiallyChecked()"})]})]}),"\n",(0,i.jsxs)(n.li,{children:["selected state: ",(0,i.jsx)(n.a,{href:"/docs/api/jest-matchers#tobeselected",children:(0,i.jsx)(n.code,{children:"toBeSelected()"})})]}),"\n",(0,i.jsxs)(n.li,{children:["expanded state: ",(0,i.jsxs)(n.a,{href:"/docs/api/jest-matchers#tobeexpanded",children:[(0,i.jsx)(n.code,{children:"toBeExpanded()"})," / ",(0,i.jsx)(n.code,{children:"toBeCollapsed()"})]})]}),"\n",(0,i.jsxs)(n.li,{children:["busy state: ",(0,i.jsx)(n.a,{href:"/docs/api/jest-matchers#tobebusy",children:(0,i.jsx)(n.code,{children:"toBeBusy()"})})]}),"\n"]}),"\n"]}),"\n"]}),"\n"]})]}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"getByA11yState, getAllByA11yState, queryByA11yState, queryAllByA11yState, findByA11yState, findAllByA11yState\ngetByAccessibilityState, getAllByAccessibilityState, queryByAccessibilityState, queryAllByAccessibilityState, findByAccessibilityState, findAllByAccessibilityState"}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"getByA11yState(\n state: {\n disabled?: boolean,\n selected?: boolean,\n checked?: boolean | 'mixed',\n busy?: boolean,\n expanded?: boolean,\n },\n options?: {\n includeHiddenElements?: boolean;\n },\n): ReactTestInstance;\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Returns a ",(0,i.jsx)(n.code,{children:"ReactTestInstance"})," with matching ",(0,i.jsx)(n.code,{children:"accessibilityState"})," prop or ARIA state props: ",(0,i.jsx)(n.code,{children:"aria-disabled"}),", ",(0,i.jsx)(n.code,{children:"aria-selected"}),", ",(0,i.jsx)(n.code,{children:"aria-checked"}),", ",(0,i.jsx)(n.code,{children:"aria-busy"}),", and ",(0,i.jsx)(n.code,{children:"aria-expanded"}),"."]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-jsx",children:"import { render, screen } from '@testing-library/react-native';\n\nrender();\nconst element = screen.getByA11yState({ disabled: true });\n"})}),"\n",(0,i.jsxs)(n.div,{className:"rspress-directive note",children:[(0,i.jsx)(n.div,{className:"rspress-directive-title",children:"NOTE"}),(0,i.jsxs)(n.div,{className:"rspress-directive-content",children:["\n",(0,i.jsxs)(n.h4,{id:"default-state-for-disabled-selected-and-busy-keys",children:["Default state for: ",(0,i.jsx)(n.code,{children:"disabled"}),", ",(0,i.jsx)(n.code,{children:"selected"}),", and ",(0,i.jsx)(n.code,{children:"busy"})," keys",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#default-state-for-disabled-selected-and-busy-keys",children:"#"})]}),"\n",(0,i.jsxs)(n.p,{children:["Passing ",(0,i.jsx)(n.code,{children:"false"})," matcher value will match both elements with explicit ",(0,i.jsx)(n.code,{children:"false"})," state value and without explicit state value."]}),"\n",(0,i.jsxs)(n.p,{children:["For instance, ",(0,i.jsx)(n.code,{children:"getByA11yState({ disabled: false })"})," will match elements with following props:"]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsx)(n.li,{children:(0,i.jsx)(n.code,{children:"accessibilityState={{ disabled: false, ... }}"})}),"\n",(0,i.jsxs)(n.li,{children:["no ",(0,i.jsx)(n.code,{children:"disabled"})," key under ",(0,i.jsx)(n.code,{children:"accessibilityState"})," prop, e.g. ",(0,i.jsx)(n.code,{children:"accessibilityState={{}}"})]}),"\n",(0,i.jsxs)(n.li,{children:["no ",(0,i.jsx)(n.code,{children:"accessibilityState"})," prop at all"]}),"\n"]}),"\n",(0,i.jsxs)(n.h4,{id:"default-state-for-checked-and-expanded-keys",children:["Default state for: ",(0,i.jsx)(n.code,{children:"checked"})," and ",(0,i.jsx)(n.code,{children:"expanded"})," keys",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#default-state-for-checked-and-expanded-keys",children:"#"})]}),"\n",(0,i.jsxs)(n.p,{children:["Passing ",(0,i.jsx)(n.code,{children:"false"})," matcher value will only match elements with explicit ",(0,i.jsx)(n.code,{children:"false"})," state value."]}),"\n",(0,i.jsxs)(n.p,{children:["For instance, ",(0,i.jsx)(n.code,{children:"getByA11yState({ checked: false })"})," will only match elements with:"]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsx)(n.li,{children:(0,i.jsx)(n.code,{children:"accessibilityState={{ checked: false, ... }}"})}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"but will not match elements with following props:"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:["no ",(0,i.jsx)(n.code,{children:"checked"})," key under ",(0,i.jsx)(n.code,{children:"accessibilityState"})," prop, e.g. ",(0,i.jsx)(n.code,{children:"accessibilityState={{}}"})]}),"\n",(0,i.jsxs)(n.li,{children:["no ",(0,i.jsx)(n.code,{children:"accessibilityState"})," prop at all"]}),"\n"]}),"\n",(0,i.jsx)(n.p,{children:"The difference in handling default values is made to reflect observed accessibility behaviour on iOS and Android platforms.\n"})]})]}),"\n",(0,i.jsxs)(n.h3,{id:"by-accessibility-value",children:[(0,i.jsx)(n.code,{children:"*ByA11yValue"}),", ",(0,i.jsx)(n.code,{children:"*ByAccessibilityValue"})," (deprecated)",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#by-accessibility-value",children:"#"})]}),"\n",(0,i.jsxs)(n.div,{className:"rspress-directive caution",children:[(0,i.jsx)(n.div,{className:"rspress-directive-title",children:"CAUTION"}),(0,i.jsxs)(n.div,{className:"rspress-directive-content",children:[(0,i.jsx)(n.p,{children:"This query has been marked deprecated, as is typically too general to give meaningful results. Therefore, it's better to use one of following options:"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.a,{href:"/docs/api/jest-matchers#tohaveaccessibilityvalue",children:(0,i.jsx)(n.code,{children:"toHaveAccessibilityValue()"})})," Jest matcher to check the state of element found using some other query"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.a,{href:"#by-role",children:(0,i.jsx)(n.code,{children:"*ByRole"})})," query with ",(0,i.jsx)(n.code,{children:"value"})," option"]}),"\n"]}),"\n"]})]}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"getByA11yValue, getAllByA11yValue, queryByA11yValue, queryAllByA11yValue, findByA11yValue, findAllByA11yValue\ngetByAccessibilityValue, getAllByAccessibilityValue, queryByAccessibilityValue, queryAllByAccessibilityValue, findByAccessibilityValue, findAllByAccessibilityValue"}),"\n"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"getByA11yValue(\n value: {\n min?: number;\n max?: number;\n now?: number;\n text?: TextMatch;\n },\n options?: {\n includeHiddenElements?: boolean;\n },\n): ReactTestInstance;\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Returns a host element with matching accessibility value based on ",(0,i.jsx)(n.code,{children:"aria-valuemin"}),", ",(0,i.jsx)(n.code,{children:"aria-valuemax"}),", ",(0,i.jsx)(n.code,{children:"aria-valuenow"}),", ",(0,i.jsx)(n.code,{children:"aria-valuetext"})," & ",(0,i.jsx)(n.code,{children:"accessibilityValue"})," props. Only value entires provided to the query will be used to match elements. Element might have additional accessibility value entries and still be matched."]}),"\n",(0,i.jsxs)(n.p,{children:["When querying by ",(0,i.jsx)(n.code,{children:"text"})," entry a string or regex might be used."]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-jsx",children:"import { render, screen } from '@testing-library/react-native';\n\nrender();\nconst element = screen.getByA11yValue({ now: 25 });\nconst element2 = screen.getByA11yValue({ text: /25/ });\n"})}),"\n",(0,i.jsxs)(n.h3,{id:"common-options",children:["Common options",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#common-options",children:"#"})]}),"\n",(0,i.jsxs)(n.p,{children:["Usually query first argument can be a ",(0,i.jsx)(n.strong,{children:"string"})," or a ",(0,i.jsx)(n.strong,{children:"regex"}),". All queries take at least the ",(0,i.jsx)(n.a,{href:"#hidden-option",children:(0,i.jsx)(n.code,{children:"hidden"})})," option as an optionnal second argument and some queries accept more options which change string matching behaviour. See ",(0,i.jsx)(n.a,{href:"#textmatch",children:"TextMatch"})," for more info."]}),"\n",(0,i.jsxs)(n.h4,{id:"includehiddenelements-option",children:[(0,i.jsx)(n.code,{children:"includeHiddenElements"})," option",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#includehiddenelements-option",children:"#"})]}),"\n",(0,i.jsxs)(n.p,{children:["All queries have the ",(0,i.jsx)(n.code,{children:"includeHiddenElements"})," option which affects whether ",(0,i.jsx)(n.a,{href:"/docs/api/misc/accessibility#ishiddenfromaccessibility",children:"elements hidden from accessibility"})," are matched by the query. By default queries will not match hidden elements, because the users of the app would not be able to see such elements."]}),"\n",(0,i.jsxs)(n.p,{children:["You can configure the default value with the ",(0,i.jsxs)(n.a,{href:"/docs/api/misc/config#configure",children:[(0,i.jsx)(n.code,{children:"configure"})," function"]}),"."]}),"\n",(0,i.jsxs)(n.p,{children:["This option is also available as ",(0,i.jsx)(n.code,{children:"hidden"})," alias for compatibility with ",(0,i.jsx)(n.a,{href:"https://testing-library.com/docs/queries/byrole#hidden",target:"_blank",rel:"noopener noreferrer",children:"React Testing Library"}),"."]}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.strong,{children:"Examples"})}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-tsx",children:"render(Hidden from accessibility);\n\n// Exclude hidden elements\nexpect(\n screen.queryByText('Hidden from accessibility', {\n includeHiddenElements: false,\n })\n).not.toBeOnTheScreen();\n\n// Include hidden elements\nexpect(screen.getByText('Hidden from accessibility')).toBeOnTheScreen();\nexpect(\n screen.getByText('Hidden from accessibility', { includeHiddenElements: true })\n).toBeOnTheScreen();\n"})}),"\n",(0,i.jsxs)(n.h2,{id:"textmatch-type",children:["TextMatch type",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#textmatch-type",children:"#"})]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-ts",children:"type TextMatch = string | RegExp;\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Most of the query APIs take a ",(0,i.jsx)(n.code,{children:"TextMatch"})," as an argument, which means the argument can be either a ",(0,i.jsx)(n.em,{children:"string"})," or ",(0,i.jsx)(n.em,{children:"regex"}),"."]}),"\n",(0,i.jsxs)(n.h3,{id:"examples",children:["Examples",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#examples",children:"#"})]}),"\n",(0,i.jsx)(n.p,{children:"Given the following render:"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-jsx",children:"render(Hello World);\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Will ",(0,i.jsx)(n.strong,{children:"find a match"}),":"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-js",children:"// Matching a string:\nscreen.getByText('Hello World'); // full string match\nscreen.getByText('llo Worl', { exact: false }); // substring match\nscreen.getByText('hello world', { exact: false }); // ignore case-sensitivity\n\n// Matching a regex:\nscreen.getByText(/World/); // substring match\nscreen.getByText(/world/i); // substring match, ignore case\nscreen.getByText(/^hello world$/i); // full string match, ignore case-sensitivity\nscreen.getByText(/Hello W?oRlD/i); // advanced regex\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Will ",(0,i.jsx)(n.strong,{children:"NOT find a match"})]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-js",children:"// substring does not match\nscreen.getByText('llo Worl');\n// full string does not match\nscreen.getByText('Goodbye World');\n\n// case-sensitive regex with different case\nscreen.getByText(/hello world/);\n"})}),"\n",(0,i.jsxs)(n.h3,{id:"text-match-options",children:["Options",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#text-match-options",children:"#"})]}),"\n",(0,i.jsxs)(n.h4,{id:"precision",children:["Precision",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#precision",children:"#"})]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-typescript",children:"type TextMatchOptions = {\n exact?: boolean;\n normalizer?: (text: string) => string;\n};\n"})}),"\n",(0,i.jsxs)(n.p,{children:["Queries that take a ",(0,i.jsx)(n.code,{children:"TextMatch"})," also accept an object as the second argument that can contain options that affect the precision of string matching:"]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"exact"}),": Defaults to ",(0,i.jsx)(n.code,{children:"true"}),"; matches full strings, case-sensitive. When false, matches substrings and is not case-sensitive.","\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"exact"})," has no effect on regex argument."]}),"\n",(0,i.jsxs)(n.li,{children:["In most cases using a ",(0,i.jsx)(n.code,{children:"regex"})," instead of a string gives you more control over fuzzy matching and should be preferred over ",(0,i.jsx)(n.code,{children:"{ exact: false }"}),"."]}),"\n"]}),"\n"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"normalizer"}),": An optional function which overrides normalization behavior. See ",(0,i.jsx)(n.a,{href:"#normalization",children:"Normalization"}),"."]}),"\n"]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"exact"})," option defaults to ",(0,i.jsx)(n.code,{children:"true"})," but if you want to search for a text slice or make text matching case-insensitive you can override it. That being said we advise you to use regex in more complex scenarios."]}),"\n",(0,i.jsxs)(n.h4,{id:"normalization",children:["Normalization",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#normalization",children:"#"})]}),"\n",(0,i.jsx)(n.p,{children:"Before running any matching logic against text, it is automatically normalized. By default, normalization consists of trimming whitespace from the start and end of text, and collapsing multiple adjacent whitespace characters into a single space."}),"\n",(0,i.jsxs)(n.p,{children:["If you want to prevent that normalization, or provide alternative normalization (e.g. to remove Unicode control characters), you can provide a ",(0,i.jsx)(n.code,{children:"normalizer"})," function in the options object. This function will be given a string and is expected to return a normalized version of that string."]}),"\n",(0,i.jsxs)(n.div,{className:"rspress-directive info",children:[(0,i.jsx)(n.div,{className:"rspress-directive-title",children:"INFO"}),(0,i.jsx)(n.div,{className:"rspress-directive-content",children:(0,i.jsxs)(n.p,{children:["Specifying a value for ",(0,i.jsx)(n.code,{children:"normalizer"})," replaces the built-in normalization, but you can call ",(0,i.jsx)(n.code,{children:"getDefaultNormalizer"})," to obtain a built-in normalizer, either to adjust that normalization or to call it from your own normalizer.\n"]})})]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"getDefaultNormalizer"})," take options object which allows the selection of behaviour:"]}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"trim"}),": Defaults to ",(0,i.jsx)(n.code,{children:"true"}),". Trims leading and trailing whitespace."]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.code,{children:"collapseWhitespace"}),": Defaults to ",(0,i.jsx)(n.code,{children:"true"}),". Collapses inner whitespace (newlines, tabs repeated spaces) into a single space."]}),"\n"]}),"\n",(0,i.jsxs)(n.h5,{id:"normalization-examples",children:["Normalization Examples",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#normalization-examples",children:"#"})]}),"\n",(0,i.jsx)(n.p,{children:"To perform a match against text without trimming:"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-typescript",children:"screen.getByText(node, 'text', {\n normalizer: getDefaultNormalizer({ trim: false }),\n});\n"})}),"\n",(0,i.jsx)(n.p,{children:"To override normalization to remove some Unicode characters whilst keeping some (but not all) of the built-in normalization behavior:"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-typescript",children:"screen.getByText(node, 'text', {\n normalizer: (str) => getDefaultNormalizer({ trim: false })(str).replace(/[\\u200E-\\u200F]*/g, ''),\n});\n"})}),"\n",(0,i.jsxs)(n.h2,{id:"legacy-unit-testing-helpers",children:["Legacy unit testing helpers",(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#legacy-unit-testing-helpers",children:"#"})]}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.code,{children:"render"})," from ",(0,i.jsx)(n.code,{children:"@testing-library/react-native"})," exposes additional queries that ",(0,i.jsx)(n.strong,{children:"should not be used in integration or component testing"}),", but some users (like component library creators) interested in unit testing some components may find helpful."]}),"\n",(0,i.jsx)(n.p,{children:"The interface is the same as for other queries, but we won't provide full names so that they're harder to find by search engines."}),"\n",(0,i.jsxs)(n.h3,{id:"unsafe_bytype",children:[(0,i.jsx)(n.code,{children:"UNSAFE_ByType"}),(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#unsafe_bytype",children:"#"})]}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"UNSAFE_getByType, UNSAFE_getAllByType, UNSAFE_queryByType, UNSAFE_queryAllByType"}),"\n"]}),"\n",(0,i.jsxs)(n.p,{children:["Returns a ",(0,i.jsx)(n.code,{children:"ReactTestInstance"})," with matching a React component type."]}),"\n",(0,i.jsxs)(n.div,{className:"rspress-directive caution",children:[(0,i.jsx)(n.div,{className:"rspress-directive-title",children:"CAUTION"}),(0,i.jsx)(n.div,{className:"rspress-directive-content",children:(0,i.jsx)(n.p,{children:"This query has been marked unsafe, since it requires knowledge about implementation details of the component. Use responsibly."})})]}),"\n",(0,i.jsxs)(n.h3,{id:"unsafe_byprops",children:[(0,i.jsx)(n.code,{children:"UNSAFE_ByProps"}),(0,i.jsx)(n.a,{className:"header-anchor","aria-hidden":"true",href:"#unsafe_byprops",children:"#"})]}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsx)(n.p,{children:"UNSAFE_getByProps, UNSAFE_getAllByProps, UNSAFE_queryByProps, UNSAFE_queryAllByProps"}),"\n"]}),"\n",(0,i.jsxs)(n.p,{children:["Returns a ",(0,i.jsx)(n.code,{children:"ReactTestInstance"})," with matching props object."]}),"\n",(0,i.jsxs)(n.div,{className:"rspress-directive caution",children:[(0,i.jsx)(n.div,{className:"rspress-directive-title",children:"CAUTION"}),(0,i.jsx)(n.div,{className:"rspress-directive-content",children:(0,i.jsx)(n.p,{children:"This query has been marked unsafe, since it requires knowledge about implementation details of the component. Use responsibly."})})]})]})}function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:n}=Object.assign({},(0,t.ah)(),e.components);return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(r,{...e})}):r(e)}n.default=c,c.__RSPRESS_PAGE_META={},c.__RSPRESS_PAGE_META["12.x%2Fdocs%2Fapi%2Fqueries.mdx"]={toc:[{text:"Accessing queries",id:"accessing-queries",depth:2},{text:"Using `screen` object",id:"using-screen-object",depth:3},{text:"Using `render` result",id:"using-render-result",depth:3},{text:"Query parts",id:"query-parts",depth:2},{text:"Query variant",id:"query-variant",depth:2},{text:"`getBy*` queries",id:"get-by",depth:3},{text:"`getAllBy*` queries",id:"get-all-by",depth:3},{text:"`queryBy*` queries",id:"query-by",depth:3},{text:"`queryAllBy*` queries",id:"query-all-by",depth:3},{text:"`findBy*` queries",id:"find-by",depth:3},{text:"`findAllBy*` queries",id:"find-all-by",depth:3},{text:"Query predicates",id:"query-predicates",depth:2},{text:"`*ByRole`",id:"by-role",depth:3},{text:"Options",id:"by-role-options",depth:4},{text:"`*ByLabelText`",id:"by-label-text",depth:3},{text:"`*ByPlaceholderText`",id:"by-placeholder-text",depth:3},{text:"`*ByDisplayValue`",id:"by-display-value",depth:3},{text:"`*ByText`",id:"by-text",depth:3},{text:"`*ByHintText`",id:"by-hint-text",depth:3},{text:"`*ByTestId`",id:"by-test-id",depth:3},{text:"`*ByA11yState`, `ByAccessibilityState` (deprecated)",id:"by-accessibility-state",depth:3},{text:"Default state for: `disabled`, `selected`, and `busy` keys",id:"default-state-for-disabled-selected-and-busy-keys",depth:4},{text:"Default state for: `checked` and `expanded` keys",id:"default-state-for-checked-and-expanded-keys",depth:4},{text:"`*ByA11yValue`, `*ByAccessibilityValue` (deprecated)",id:"by-accessibility-value",depth:3},{text:"Common options",id:"common-options",depth:3},{text:"`includeHiddenElements` option",id:"includehiddenelements-option",depth:4},{text:"TextMatch type",id:"textmatch-type",depth:2},{text:"Examples",id:"examples",depth:3},{text:"Options",id:"text-match-options",depth:3},{text:"Precision",id:"precision",depth:4},{text:"Normalization",id:"normalization",depth:4},{text:"Legacy unit testing helpers",id:"legacy-unit-testing-helpers",depth:2},{text:"`UNSAFE_ByType`",id:"unsafe_bytype",depth:3},{text:"`UNSAFE_ByProps`",id:"unsafe_byprops",depth:3}],title:"Queries",frontmatter:{}}}}]); \ No newline at end of file diff --git a/static/js/index.dd7667e1.js b/static/js/index.9a8995b9.js similarity index 99% rename from static/js/index.dd7667e1.js rename to static/js/index.9a8995b9.js index d2281bb55..d71b5080a 100644 --- a/static/js/index.dd7667e1.js +++ b/static/js/index.9a8995b9.js @@ -1 +1 @@ -!function(){var e,t,n,r,u,o,i,c,a,f,s,l,d,p,b={5293:function(e,t,n){"use strict";n.r(t),n.d(t,{Aside:function(){return o.xN},Badge:function(){return o.Ct},Button:function(){return o.zx},CodeBlock:function(){return a},DocFooter:function(){return o.Qn},DocLayout:function(){return o.RY},EditLink:function(){return o.mi},HomeFeature:function(){return o.BZ},HomeFooter:function(){return o.xK},HomeHero:function(){return o.xB},HomeLayout:function(){return o.Os},LastUpdated:function(){return o.O9},Layout:function(){return o.Ar},Link:function(){return f},Nav:function(){return o.JL},NotFoundLayout:function(){return o.qx},Overview:function(){return o.g2},PackageManagerTabs:function(){return o.SU},PrevNextPage:function(){return s},RenderType:function(){return o.y2},ScrollToTop:function(){return o.pU},Search:function(){return o.ol},SearchPanel:function(){return o.EG},Sidebar:function(){return o.YE},SocialLinks:function(){return o.WG},SourceCode:function(){return o.ZB},Steps:function(){return o.Rg},SwitchAppearance:function(){return o.KO},Tab:function(){return o.OK},Tabs:function(){return o.mQ},Tag:function(){return o.Vp},Toc:function(){return o.of},bindingAsideScroll:function(){return o.UQ},getCustomMDXComponent:function(){return o.TJ},isActive:function(){return o.zh},isMobileDevice:function(){return o.s2},parseInlineMarkdownText:function(){return o.H_},renderHtmlOrText:function(){return o.NG},renderInlineMarkdown:function(){return o.VA},scrollToTarget:function(){return o.eF},setup:function(){return o.cY},useEditLink:function(){return o.CU},useEnableNav:function(){return o.CF},useFullTextSearch:function(){return o.YS},useHiddenNav:function(){return o.Vl},useLocaleSiteData:function(){return o.M4},usePathUtils:function(){return o.eE},usePrevNextPage:function(){return o.WS},useRedirect4FirstVisit:function(){return o.AV},useSidebarData:function(){return o.tx},useThemeState:function(){return o.ls}});var r=n("5893"),u=n("2179"),o=n("1823");t.default={...u.ZP,Layout:()=>(0,r.jsx)(u.ZP.Layout,{})};let{code:i,pre:c}=(0,u.TJ)(),a=e=>{let{children:t,language:n,title:u}=e;return(0,r.jsx)(c,{children:(0,r.jsx)(i,{className:`language-${n}`,meta:u?`title="${u}"`:void 0,children:t})})},f=e=>(0,r.jsx)(u.rU,{...e,className:e.className+" rspress-link"}),s=e=>e.text?(0,r.jsx)(u.Qe,{...e}):null}},v={};function h(e){var t=v[e];if(void 0!==t)return t.exports;var n=v[e]={exports:{}};return b[e].call(n.exports,n,n.exports,h),n.exports}h.m=b,h.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return h.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},h.t=function(n,r){if(1&r&&(n=this(n)),8&r||"object"==typeof n&&n&&(4&r&&n.__esModule||16&r&&"function"==typeof n.then))return n;var u=Object.create(null);h.r(u);var o={};e=e||[null,t({}),t([]),t(t)];for(var i=2&r&&n;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach(function(e){o[e]=function(){return n[e]}});return o.default=function(){return n},h.d(u,o),u},h.d=function(e,t){for(var n in t)h.o(t,n)&&!h.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},h.f={},h.e=function(e){return Promise.all(Object.keys(h.f).reduce(function(t,n){return h.f[n](e,t),t},[]))},h.k=function(e){return""+e+".css"},h.u=function(e){return"static/js/async/"+e+"."+({102:"8adfc1cd",103:"272f053c",119:"ae252a60",145:"232332b9",2:"c16d65ba",271:"c484ff9f",272:"5dc5b028",287:"97a10ce4",325:"202f6fe9",333:"7f87afd7",354:"3e05a758",494:"b48717c7",540:"c72a32f8",541:"285a360d",606:"22d5dfb7",607:"1b127945",628:"404c0e70",631:"e8167e9b",684:"56be34ba",697:"f25b465d",714:"8f2be96b",747:"e36677f7",757:"50b874cb",777:"f3711d2f",795:"a00026a6",806:"e30528ec",817:"40100a08",82:"02d2b3fa",836:"b2f1a943",871:"b2b6ab56",929:"540e500b",969:"4a46f5ec",986:"d90967f8"})[e]+".js"},h.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),h.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},r="website:",h.l=function(e,t,u,o){if(n[e]){n[e].push(t);return}if(void 0!==u){for(var i,c,a=document.getElementsByTagName("script"),f=0;f0&&u[o-1][2]>r;o--)u[o]=u[o-1];u[o]=[t,n,r];return}for(var i=1/0,o=0;o=r&&Object.keys(h.O).every(function(e){return h.O[e](t[a])})?t.splice(a--,1):(c=!1,r(0,r.jsx)(u.ZP.Layout,{})};let{code:i,pre:c}=(0,u.TJ)(),a=e=>{let{children:t,language:n,title:u}=e;return(0,r.jsx)(c,{children:(0,r.jsx)(i,{className:`language-${n}`,meta:u?`title="${u}"`:void 0,children:t})})},f=e=>(0,r.jsx)(u.rU,{...e,className:e.className+" rspress-link"}),s=e=>e.text?(0,r.jsx)(u.Qe,{...e}):null}},v={};function h(e){var t=v[e];if(void 0!==t)return t.exports;var n=v[e]={exports:{}};return b[e].call(n.exports,n,n.exports,h),n.exports}h.m=b,h.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return h.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},h.t=function(n,r){if(1&r&&(n=this(n)),8&r||"object"==typeof n&&n&&(4&r&&n.__esModule||16&r&&"function"==typeof n.then))return n;var u=Object.create(null);h.r(u);var o={};e=e||[null,t({}),t([]),t(t)];for(var i=2&r&&n;"object"==typeof i&&!~e.indexOf(i);i=t(i))Object.getOwnPropertyNames(i).forEach(function(e){o[e]=function(){return n[e]}});return o.default=function(){return n},h.d(u,o),u},h.d=function(e,t){for(var n in t)h.o(t,n)&&!h.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},h.f={},h.e=function(e){return Promise.all(Object.keys(h.f).reduce(function(t,n){return h.f[n](e,t),t},[]))},h.k=function(e){return""+e+".css"},h.u=function(e){return"static/js/async/"+e+"."+({102:"8adfc1cd",103:"272f053c",119:"4f60f763",145:"232332b9",2:"c16d65ba",271:"c484ff9f",272:"5dc5b028",287:"97a10ce4",325:"202f6fe9",333:"7f87afd7",354:"3e05a758",494:"b48717c7",540:"c72a32f8",541:"285a360d",606:"22d5dfb7",607:"1b127945",628:"404c0e70",631:"e8167e9b",684:"56be34ba",697:"f25b465d",714:"8f2be96b",747:"e36677f7",757:"50b874cb",777:"f3711d2f",795:"a00026a6",806:"e30528ec",817:"40100a08",82:"02d2b3fa",836:"b2f1a943",871:"b2b6ab56",929:"540e500b",969:"4a46f5ec",986:"d90967f8"})[e]+".js"},h.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),h.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n={},r="website:",h.l=function(e,t,u,o){if(n[e]){n[e].push(t);return}if(void 0!==u){for(var i,c,a=document.getElementsByTagName("script"),f=0;f0&&u[o-1][2]>r;o--)u[o]=u[o-1];u[o]=[t,n,r];return}for(var i=1/0,o=0;o=r&&Object.keys(h.O).every(function(e){return h.O[e](t[a])})?t.splice(a--,1):(c=!1,r