Repository: ezranbayantemur/react-native-rtmp-publisher Branch: master Commit: 59542fab5f54 Files: 132 Total size: 1010.5 KB Directory structure: gitextract_iogv7721/ ├── .editorconfig ├── .gitattributes ├── .github/ │ ├── ISSUE_TEMPLATE/ │ │ ├── bug_report.yml │ │ └── feature_request.md │ └── workflows/ │ └── build.yml ├── .gitignore ├── .husky/ │ ├── .npmignore │ ├── commit-msg │ └── pre-commit ├── .yarnrc ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── __mocks__/ │ └── RTMPPublisher.js ├── android/ │ ├── build.gradle │ ├── gradle/ │ │ └── wrapper/ │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties │ ├── gradlew │ ├── gradlew.bat │ └── src/ │ └── main/ │ ├── AndroidManifest.xml │ └── java/ │ └── com/ │ └── reactnativertmppublisher/ │ ├── RTMPManager.java │ ├── RTMPModule.java │ ├── RTMPPackage.java │ ├── enums/ │ │ ├── AudioInputType.java │ │ ├── BluetoothDeviceStatuses.java │ │ └── StreamState.java │ ├── interfaces/ │ │ └── ConnectionListener.java │ ├── modules/ │ │ ├── BluetoothDeviceConnector.java │ │ ├── ConnectionChecker.java │ │ ├── Publisher.java │ │ └── SurfaceHolderHelper.java │ └── utils/ │ └── ObjectCaster.java ├── babel.config.js ├── coverage/ │ ├── clover.xml │ ├── coverage-final.json │ ├── lcov-report/ │ │ ├── Component.tsx.html │ │ ├── RTMPPublisher.tsx.html │ │ ├── base.css │ │ ├── block-navigation.js │ │ ├── index.html │ │ ├── prettify.css │ │ ├── prettify.js │ │ └── sorter.js │ └── lcov.info ├── example/ │ ├── README.md │ ├── android/ │ │ ├── app/ │ │ │ ├── build.gradle │ │ │ ├── debug.keystore │ │ │ ├── proguard-rules.pro │ │ │ └── src/ │ │ │ ├── debug/ │ │ │ │ ├── AndroidManifest.xml │ │ │ │ └── java/ │ │ │ │ └── com/ │ │ │ │ └── example/ │ │ │ │ └── reactnativertmp/ │ │ │ │ └── ReactNativeFlipper.java │ │ │ └── main/ │ │ │ ├── AndroidManifest.xml │ │ │ ├── java/ │ │ │ │ └── com/ │ │ │ │ └── example/ │ │ │ │ └── reactnativertmp/ │ │ │ │ ├── MainActivity.java │ │ │ │ ├── MainApplication.java │ │ │ │ └── newarchitecture/ │ │ │ │ ├── MainApplicationReactNativeHost.java │ │ │ │ ├── components/ │ │ │ │ │ └── MainComponentsRegistry.java │ │ │ │ └── modules/ │ │ │ │ └── MainApplicationTurboModuleManagerDelegate.java │ │ │ ├── jni/ │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── MainApplicationModuleProvider.cpp │ │ │ │ ├── MainApplicationModuleProvider.h │ │ │ │ ├── MainApplicationTurboModuleManagerDelegate.cpp │ │ │ │ ├── MainApplicationTurboModuleManagerDelegate.h │ │ │ │ ├── MainComponentsRegistry.cpp │ │ │ │ ├── MainComponentsRegistry.h │ │ │ │ └── OnLoad.cpp │ │ │ └── res/ │ │ │ ├── drawable/ │ │ │ │ └── rn_edit_text_material.xml │ │ │ └── values/ │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ ├── build.gradle │ │ ├── gradle/ │ │ │ └── wrapper/ │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ │ ├── gradle.properties │ │ ├── gradlew │ │ ├── gradlew.bat │ │ └── settings.gradle │ ├── app.json │ ├── babel.config.js │ ├── index.tsx │ ├── ios/ │ │ ├── .xcode.env │ │ ├── File.swift │ │ ├── Podfile │ │ ├── RtmpExample/ │ │ │ ├── AppDelegate.h │ │ │ ├── AppDelegate.mm │ │ │ ├── Images.xcassets/ │ │ │ │ ├── AppIcon.appiconset/ │ │ │ │ │ └── Contents.json │ │ │ │ └── Contents.json │ │ │ ├── Info.plist │ │ │ ├── LaunchScreen.storyboard │ │ │ └── main.m │ │ ├── RtmpExample-Bridging-Header.h │ │ ├── RtmpExample.xcodeproj/ │ │ │ ├── project.pbxproj │ │ │ └── xcshareddata/ │ │ │ └── xcschemes/ │ │ │ └── RtmpExample.xcscheme │ │ ├── RtmpExample.xcworkspace/ │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata/ │ │ │ └── IDEWorkspaceChecks.plist │ │ ├── assets/ │ │ │ └── app.json │ │ └── main.jsbundle │ ├── metro.config.js │ ├── package.json │ └── src/ │ ├── App.styles.tsx │ ├── App.tsx │ ├── components/ │ │ ├── Button/ │ │ │ ├── Button.styles.tsx │ │ │ ├── Button.tsx │ │ │ └── index.ts │ │ ├── LiveBadge/ │ │ │ ├── LiveBadge.styles.tsx │ │ │ ├── LiveBadge.tsx │ │ │ └── index.ts │ │ └── MicrophoneSelectModal/ │ │ ├── MicrophoneSelectModal.styles.tsx │ │ ├── MicrophoneSelectModal.tsx │ │ └── index.ts │ └── hooks/ │ └── usePermissions.ts ├── ios/ │ ├── Podfile │ ├── RTMPCreator.swift │ ├── RTMPManager/ │ │ ├── RTMPView.swift │ │ ├── RTMPViewManager.m │ │ └── RTMPViewManager.swift │ ├── RTMPModule/ │ │ ├── RTMPModule.m │ │ └── RTMPModule.swift │ ├── RtmpPublish-Bridging-Header.h │ ├── RtmpPublish.xcodeproj/ │ │ └── project.pbxproj │ └── RtmpPublish.xcworkspace/ │ ├── contents.xcworkspacedata │ └── xcshareddata/ │ └── IDEWorkspaceChecks.plist ├── jest.config.js ├── package.json ├── react-native-rtmp-publisher.podspec ├── scripts/ │ └── bootstrap.js ├── src/ │ ├── Component.tsx │ ├── RTMPPublisher.tsx │ ├── index.tsx │ ├── test/ │ │ ├── RTMPPublisher.test.tsx │ │ └── __snapshots__/ │ │ └── RTMPPublisher.test.tsx.snap │ └── types.ts ├── tsconfig.build.json └── tsconfig.json ================================================ FILE CONTENTS ================================================ ================================================ FILE: .editorconfig ================================================ # EditorConfig helps developers define and maintain consistent # coding styles between different editors and IDEs # editorconfig.org root = true [*] indent_style = space indent_size = 2 end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true ================================================ FILE: .gitattributes ================================================ *.pbxproj -text # specific for windows script files *.bat text eol=crlf ================================================ FILE: .github/ISSUE_TEMPLATE/bug_report.yml ================================================ name: Bug Report description: File a bug report body: - type: textarea id: describe-the-bug attributes: label: Describe the bug description: A clear and concise description of what the bug is. validations: required: true - type: textarea id: to-reproduce attributes: label: To Reproduce description: Steps to reproduce the behavior placeholder: | 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error validations: required: true - type: textarea id: expected-behavior attributes: label: Expected behavior description: Steps to reproduce the behavior validations: required: true - type: textarea id: version attributes: label: Version description: What version of our software are you running? validations: required: true - type: textarea id: smartphone-info attributes: label: Smartphone info. description: please complete the following information placeholder: | - Device: [e.g. iPhone6] - OS: [e.g. iOS8.1] - type: textarea id: addditional-context attributes: label: Additional context description: Add any other context about the problem here. - type: textarea id: screenshot attributes: label: Screenshots description: If applicable, add screenshots to help explain your problem. - type: textarea id: logs attributes: label: Relevant log output description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks. render: shell ================================================ FILE: .github/ISSUE_TEMPLATE/feature_request.md ================================================ --- name: Feature request about: Suggest an idea for this project title: '' labels: '' assignees: '' --- **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] **Describe the solution you'd like** A clear and concise description of what you want to happen. **Describe alternatives you've considered** A clear and concise description of any alternative solutions or features you've considered. **Additional context** Add any other context or screenshots about the feature request here. ================================================ FILE: .github/workflows/build.yml ================================================ name: Build on: pull_request: branches: - master - dev jobs: build_dependency: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Caching node_modules id: cache-npm uses: actions/cache@v3 env: cache-name: cache-node-modules with: path: ./node_modules key: rtmp-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} - name: Caching Pods id: cache-pods uses: actions/cache@v3 env: cache-name: cache-cocoapods with: path: ./example/ios/Pods key: rtmp-build-${{ env.cache-name }}-${{ hashFiles('./example/ios/Podfile.lock') }} - name: Install dependencies run: | yarn - name: Lint files run: | yarn lint - name: Typescript checking run: | yarn typescript - name: Unit tests run: | yarn test --coverage --updateSnapshot --verbose - name: Building the package run: | yarn prepare build_android: needs: build_dependency runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Caching node_modules id: cache-npm uses: actions/cache@v3 env: cache-name: cache-node-modules with: path: ./node_modules key: rtmp-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} - name: Install dependencies run: | yarn - name: Caching Gradle id: cache-gradle uses: actions/cache@v3 env: cache-name: cache-gradle-files with: path: ./example/android/.gradle key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('./example/android/gradle/wrapper/gradle-wrapper.properties') }} restore-keys: | ${{ runner.os }}-build-${{ env.cache-name }}- - name: Install dependencies run: | yarn - name: Building Android run: | cd example/android && ./gradlew build build_ios: needs: build_dependency runs-on: macos-latest steps: - uses: actions/checkout@v3 - name: Caching node_modules id: cache-npm uses: actions/cache@v3 env: cache-name: cache-node-modules with: path: ./node_modules key: rtmp-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} - name: Caching Pods id: cache-pods uses: actions/cache@v3 env: cache-name: cache-cocoapods with: path: ./example/ios/Pods key: rtmp-build-${{ env.cache-name }}-${{ hashFiles('./example/ios/Podfile.lock') }} - name: Install dependencies run: | yarn - name: Building iOS run: | cd example/ios && xcodebuild -quiet -workspace RtmpExample.xcworkspace -scheme RtmpExample -destination generic/platform=iOS CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO build ================================================ FILE: .gitignore ================================================ # OSX # .DS_Store # XDE .expo/ # VSCode .vscode/ jsconfig.json # Xcode # build/ *.pbxuser !default.pbxuser *.mode1v3 !default.mode1v3 *.mode2v3 !default.mode2v3 *.perspectivev3 !default.perspectivev3 xcuserdata *.xccheckout *.moved-aside DerivedData *.hmap *.ipa *.xcuserstate project.xcworkspace # Android/IJ # .classpath .cxx .gradle .idea .project .settings local.properties android.iml # Cocoapods # example/ios/Pods /ios/Pods # node.js # node_modules/ npm-debug.log yarn-debug.log yarn-error.log # BUCK buck-out/ \.buckd/ android/app/libs android/keystores/debug.keystore # Expo .expo/* # generated by bob lib/ example/.env .env ================================================ FILE: .husky/.npmignore ================================================ _ ================================================ FILE: .husky/commit-msg ================================================ #!/bin/sh . "$(dirname "$0")/_/husky.sh" yarn commitlint -E HUSKY_GIT_PARAMS ================================================ FILE: .husky/pre-commit ================================================ #!/bin/sh . "$(dirname "$0")/_/husky.sh" yarn lint && yarn typescript ================================================ FILE: .yarnrc ================================================ # Override Yarn command so we can automatically setup the repo on running `yarn` yarn-path "scripts/bootstrap.js" ================================================ FILE: CODE_OF_CONDUCT.md ================================================ # Contributor Covenant Code of Conduct ## Our Pledge We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community. ## Our Standards Examples of behavior that contributes to a positive environment for our community include: * Demonstrating empathy and kindness toward other people * Being respectful of differing opinions, viewpoints, and experiences * Giving and gracefully accepting constructive feedback * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience * Focusing on what is best not just for us as individuals, but for the overall community Examples of unacceptable behavior include: * The use of sexualized language or imagery, and sexual attention or advances of any kind * Trolling, insulting or derogatory comments, and personal or political attacks * Public or private harassment * Publishing others' private information, such as a physical or email address, without their explicit permission * Other conduct which could reasonably be considered inappropriate in a professional setting ## Enforcement Responsibilities Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful. Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate. ## Scope This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. ## Enforcement Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at . All complaints will be reviewed and investigated promptly and fairly. All community leaders are obligated to respect the privacy and security of the reporter of any incident. ## Enforcement Guidelines Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct: ### 1. Correction **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community. **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested. ### 2. Warning **Community Impact**: A violation through a single incident or series of actions. **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban. ### 3. Temporary Ban **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior. **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban. ### 4. Permanent Ban **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals. **Consequence**: A permanent ban from any sort of public interaction within the community. ## Attribution This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0, available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity). [homepage]: https://www.contributor-covenant.org For answers to common questions about this code of conduct, see the FAQ at https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations. ================================================ FILE: CONTRIBUTING.md ================================================ # Contributing We want this community to be friendly and respectful to each other. Please follow it in all your interactions with the project. ## Development workflow To get started with the project, run `yarn` in the root directory to install the required dependencies for each package: ```sh yarn ``` > While it's possible to use [`npm`](https://github.com/npm/cli), the tooling is built around [`yarn`](https://classic.yarnpkg.com/), so you'll have an easier time if you use `yarn` for development. While developing, you can run the [example app](/example/) to test your changes. Any changes you make in your library's JavaScript code will be reflected in the example app without a rebuild. If you change any native code, then you'll need to rebuild the example app. To start the packager: ```sh yarn example start ``` To run the example app on Android: ```sh yarn example android ``` To run the example app on iOS: ```sh yarn example ios ``` Make sure your code passes TypeScript and ESLint. Run the following to verify: ```sh yarn typescript yarn lint ``` To fix formatting errors, run the following: ```sh yarn lint --fix ``` Remember to add tests for your change if possible. Run the unit tests by: ```sh yarn test ``` To edit the Objective-C files, open `example/ios/RtmpPublisherExample.xcworkspace` in XCode and find the source files at `Pods > Development Pods > react-native-rtmp-publisher`. To edit the Kotlin files, open `example/android` in Android studio and find the source files at `reactnativertmppublisher` under `Android`. ### Commit message convention We follow the [conventional commits specification](https://www.conventionalcommits.org/en) for our commit messages: - `fix`: bug fixes, e.g. fix crash due to deprecated method. - `feat`: new features, e.g. add new method to the module. - `refactor`: code refactor, e.g. migrate from class components to hooks. - `docs`: changes into documentation, e.g. add usage example for the module.. - `test`: adding or updating tests, e.g. add integration tests using detox. - `chore`: tooling changes, e.g. change CI config. Our pre-commit hooks verify that your commit message matches this format when committing. ### Linting and tests [ESLint](https://eslint.org/), [Prettier](https://prettier.io/), [TypeScript](https://www.typescriptlang.org/) We use [TypeScript](https://www.typescriptlang.org/) for type checking, [ESLint](https://eslint.org/) with [Prettier](https://prettier.io/) for linting and formatting the code, and [Jest](https://jestjs.io/) for testing. Our pre-commit hooks verify that the linter and tests pass when committing. ### Publishing to npm We use [release-it](https://github.com/release-it/release-it) to make it easier to publish new versions. It handles common tasks like bumping version based on semver, creating tags and releases etc. To publish new versions, run the following: ```sh yarn release ``` ### Scripts The `package.json` file contains various scripts for common tasks: - `yarn bootstrap`: setup project by installing all dependencies and pods. - `yarn typescript`: type-check files with TypeScript. - `yarn lint`: lint files with ESLint. - `yarn test`: run unit tests with Jest. - `yarn example start`: start the Metro server for the example app. - `yarn example android`: run the example app on Android. - `yarn example ios`: run the example app on iOS. ### Sending a pull request > **Working on your first pull request?** You can learn how from this _free_ series: [How to Contribute to an Open Source Project on GitHub](https://app.egghead.io/playlists/how-to-contribute-to-an-open-source-project-on-github). When you're sending a pull request: - Prefer small pull requests focused on one change. - Verify that linters and tests are passing. - Review the documentation to make sure it looks good. - Follow the pull request template when opening a pull request. - For pull requests that change the API or implementation, discuss with maintainers first by opening an issue. ## Code of Conduct ### Our Pledge We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community. ### Our Standards Examples of behavior that contributes to a positive environment for our community include: - Demonstrating empathy and kindness toward other people - Being respectful of differing opinions, viewpoints, and experiences - Giving and gracefully accepting constructive feedback - Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience - Focusing on what is best not just for us as individuals, but for the overall community Examples of unacceptable behavior include: - The use of sexualized language or imagery, and sexual attention or advances of any kind - Trolling, insulting or derogatory comments, and personal or political attacks - Public or private harassment - Publishing others' private information, such as a physical or email address, without their explicit permission - Other conduct which could reasonably be considered inappropriate in a professional setting ### Enforcement Responsibilities Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful. Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate. ### Scope This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. ### Enforcement Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [INSERT CONTACT METHOD]. All complaints will be reviewed and investigated promptly and fairly. All community leaders are obligated to respect the privacy and security of the reporter of any incident. ### Enforcement Guidelines Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct: #### 1. Correction **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community. **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested. #### 2. Warning **Community Impact**: A violation through a single incident or series of actions. **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban. #### 3. Temporary Ban **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior. **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban. #### 4. Permanent Ban **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals. **Consequence**: A permanent ban from any sort of public interaction within the community. ### Attribution This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0, available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity). [homepage]: https://www.contributor-covenant.org For answers to common questions about this code of conduct, see the FAQ at https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations. ================================================ FILE: LICENSE ================================================ MIT License Copyright (c) 2021 Ezran Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: README.md ================================================ ### ⚠️⚠️⚠️ THIS PACKAGE CURRENTLY UNMAINTENED. WILL RE-MAINTENED IN SOON WITH NEW ARCH ⚠️⚠️⚠️

logo

github/license github/issues github/issues-pr npm/dw github/followers github/stars github/forks

📹 Live stream RTMP publisher for React Native with built in camera support! ## Installation ```sh npm install react-native-rtmp-publisher ``` or ```sh yarn add react-native-rtmp-publisher ``` and for iOS ```sh cd ios && pod install ``` ## Android Add Android Permission for camera and audio to `AndroidManifest.xml` ```xml ``` ## iOS Add iOS Permission for camera and audio to `Info.plist` ```xml NSCameraUsageDescription CAMERA PERMISSION DESCRIPTION NSMicrophoneUsageDescription AUDIO PERMISSION DESCRIPTION ``` Implement these changes to `AppDelegate.m` (or `AppDelegate.mm`) ```objc #import // <-- Add this import .. .. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { .. .. .. .. // <-- Add this section --> AVAudioSession *session = AVAudioSession.sharedInstance; NSError *error = nil; if (@available(iOS 10.0, *)) { [session setCategory:AVAudioSessionCategoryPlayAndRecord mode:AVAudioSessionModeVoiceChat options:AVAudioSessionCategoryOptionDefaultToSpeaker|AVAudioSessionCategoryOptionAllowBluetooth error:&error]; } else { SEL selector = NSSelectorFromString(@"setCategory:withOptions:error:"); NSArray * optionsArray = [NSArray arrayWithObjects: [NSNumber numberWithInteger:AVAudioSessionCategoryOptionAllowBluetooth], [NSNumber numberWithInteger:AVAudioSessionCategoryOptionDefaultToSpeaker], nil]; [session performSelector:selector withObject: AVAudioSessionCategoryPlayAndRecord withObject: optionsArray ]; [session setMode:AVAudioSessionModeVoiceChat error:&error ]; } [session setActive:YES error:&error ]; // <-- Add this section --> return YES; } ``` ## Example Project Clone the repo and run ```sh yarn ``` and ```sh cd example && yarn ios (or yarn android) ``` You can use Youtube for live stream server. You can check [Live on Youtube](https://support.google.com/youtube/answer/2474026?hl=tr&ref_topic=9257984) ## Usage ```js import RTMPPublisher from 'react-native-rtmp-publisher'; // ... async function publisherActions() { await publisherRef.current.startStream(); await publisherRef.current.stopStream(); await publisherRef.current.mute(); await publisherRef.current.unmute(); await publisherRef.current.switchCamera(); await publisherRef.current.getPublishURL(); await publisherRef.current.isMuted(); await publisherRef.current.isStreaming(); await publisherRef.current.toggleFlash(); await publisherRef.current.hasCongestion(); await publisherRef.current.isAudioPrepared(); await publisherRef.current.isVideoPrepared(); await publisherRef.current.isCameraOnPreview(); await publisherRef.current.setAudioInput(audioInput: AudioInputType); } ...} onConnectionStartedRtmp={() => ...} onConnectionSuccessRtmp={() => ...} onDisconnectRtmp={() => ...} onNewBitrateRtmp={() => ...} onStreamStateChanged={(status: streamState) => ...} /> ``` ## Props | Name | Type | Required | Description | | :----------: | :------: | :------: | :-----------------------------------: | | `streamURL` | `string` | `true` | Publish URL address with RTM Protocol | | `streamName` | `string` | `true` | Stream name or key | ### Youtube Example For live stream, Youtube gives you stream url and stream key, you can place the key on `streamName` parameter **Youtube Stream URL:** `rtmp://a.rtmp.youtube.com/live2` **Youtube Stream Key:** `****-****-****-****-****` ```js ` | Starts the stream | ✅ | ✅ | | `stopStream` | `Promise` | Stops the stream | ✅ | ✅ | | `mute` | `Promise` | Mutes the microphone | ✅ | ✅ | | `unmute` | `Promise` | Unmutes the microphone | ✅ | ✅ | | `switchCamera` | `Promise` | Switches the camera | ✅ | ✅ | | `toggleFlash` | `Promise` | Toggles the flash | ✅ | ✅ | | `getPublishURL` | `Promise` | Gets the publish URL | ✅ | ✅ | | `isMuted` | `Promise` | Returns microphone state | ✅ | ✅ | | `isStreaming` | `Promise` | Returns streaming state | ✅ | ✅ | | `hasCongestion` | `Promise` | Returns if congestion | ✅ | ❌ | | `isAudioPrepared` | `Promise` | Returns audio prepare state | ✅ | ✅ | | `isVideoPrepared` | `Promise` | Returns video prepare state | ✅ | ✅ | | `isCameraOnPreview` | `Promise` | Returns camera is on | ✅ | ❌ | | `setAudioInput` | `Promise`| Sets microphone input | ✅ | ✅ | ## Types | Name | Value | | ------------------------- | :--------------------------------------------------:| | `streamState` | `CONNECTING`, `CONNECTED`, `DISCONNECTED`, `FAILED` | | `BluetoothDeviceStatuses` | `CONNECTING`, `CONNECTED`, `DISCONNECTED` | | `AudioInputType` | `BLUETOOTH_HEADSET`, `SPEAKER`, `WIRED_HEADSET` | * AudioInputType: WIRED_HEADSET type supporting in only iOS. On Android it affects nothing. If a wired headset connected to Android device, device uses it as default. ## Used Native Packages - Android: [rtmp-rtsp-stream-client-java](https://github.com/pedroSG94/rtmp-rtsp-stream-client-java) [2.2.2] - iOS: [HaishinKit.swift](https://github.com/shogo4405/HaishinKit.swift) [1.2.7] ## Contributing See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow. ## License MIT ================================================ FILE: __mocks__/RTMPPublisher.js ================================================ import { NativeModules } from 'react-native'; NativeModules.RTMPPublisher = { startStream: jest.fn(), stopStream: jest.fn(), isStreaming: jest.fn(), isCameraOnPreview: jest.fn(), getPublishURL: jest.fn(), hasCongestion: jest.fn(), isAudioPrepared: jest.fn(), isVideoPrepared: jest.fn(), isMuted: jest.fn(), mute: jest.fn(), unmute: jest.fn(), switchCamera: jest.fn(), toggleFlash: jest.fn(), }; ================================================ FILE: android/build.gradle ================================================ buildscript { if (project == rootProject) { repositories { google() mavenCentral() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.5.3' } } } apply plugin: 'com.android.library' def safeExtGet(prop, fallback) { rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback } android { compileSdkVersion safeExtGet('Rtmp_compileSdkVersion', 31) defaultConfig { minSdkVersion safeExtGet('Rtmp_minSdkVersion', 21) targetSdkVersion safeExtGet('Rtmp_targetSdkVersion', 31) versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false } } lintOptions { disable 'GradleCompatible' } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } repositories { mavenLocal() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url("$rootDir/../node_modules/react-native/android") } google() mavenCentral() jcenter() maven { url 'https://www.jitpack.io' } } dependencies { //noinspection GradleDynamicVersion implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.github.pedroSG94.rtmp-rtsp-stream-client-java:rtplibrary:2.2.2' implementation "com.facebook.react:react-native:+" // From node_modules } ================================================ FILE: android/gradle/wrapper/gradle-wrapper.properties ================================================ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists ================================================ FILE: android/gradlew ================================================ #!/usr/bin/env sh # # Copyright 2015 the original author or authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ############################################################################## ## ## Gradle start up script for UN*X ## ############################################################################## # Attempt to set APP_HOME # Resolve links: $0 may be a link PRG="$0" # Need this for relative symlinks. while [ -h "$PRG" ] ; do ls=`ls -ld "$PRG"` link=`expr "$ls" : '.*-> \(.*\)$'` if expr "$link" : '/.*' > /dev/null; then PRG="$link" else PRG=`dirname "$PRG"`"/$link" fi done SAVED="`pwd`" cd "`dirname \"$PRG\"`/" >/dev/null APP_HOME="`pwd -P`" cd "$SAVED" >/dev/null APP_NAME="Gradle" APP_BASE_NAME=`basename "$0"` # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD="maximum" warn () { echo "$*" } die () { echo echo "$*" echo exit 1 } # OS specific support (must be 'true' or 'false'). cygwin=false msys=false darwin=false nonstop=false case "`uname`" in CYGWIN* ) cygwin=true ;; Darwin* ) darwin=true ;; MINGW* ) msys=true ;; NONSTOP* ) nonstop=true ;; esac CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar # Determine the Java command to use to start the JVM. if [ -n "$JAVA_HOME" ] ; then if [ -x "$JAVA_HOME/jre/sh/java" ] ; then # IBM's JDK on AIX uses strange locations for the executables JAVACMD="$JAVA_HOME/jre/sh/java" else JAVACMD="$JAVA_HOME/bin/java" fi if [ ! -x "$JAVACMD" ] ; then die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME Please set the JAVA_HOME variable in your environment to match the location of your Java installation." fi else JAVACMD="java" which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_HOME variable in your environment to match the location of your Java installation." fi # Increase the maximum file descriptors if we can. if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then MAX_FD_LIMIT=`ulimit -H -n` if [ $? -eq 0 ] ; then if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then MAX_FD="$MAX_FD_LIMIT" fi ulimit -n $MAX_FD if [ $? -ne 0 ] ; then warn "Could not set maximum file descriptor limit: $MAX_FD" fi else warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" fi fi # For Darwin, add options to specify how the application appears in the dock if $darwin; then GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" fi # For Cygwin or MSYS, switch paths to Windows format before running java if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then APP_HOME=`cygpath --path --mixed "$APP_HOME"` CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` JAVACMD=`cygpath --unix "$JAVACMD"` # We build the pattern for arguments to be converted via cygpath ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` SEP="" for dir in $ROOTDIRSRAW ; do ROOTDIRS="$ROOTDIRS$SEP$dir" SEP="|" done OURCYGPATTERN="(^($ROOTDIRS))" # Add a user-defined pattern to the cygpath arguments if [ "$GRADLE_CYGPATTERN" != "" ] ; then OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" fi # Now convert the arguments - kludge to limit ourselves to /bin/sh i=0 for arg in "$@" ; do CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` else eval `echo args$i`="\"$arg\"" fi i=`expr $i + 1` done case $i in 0) set -- ;; 1) set -- "$args0" ;; 2) set -- "$args0" "$args1" ;; 3) set -- "$args0" "$args1" "$args2" ;; 4) set -- "$args0" "$args1" "$args2" "$args3" ;; 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; esac fi # Escape application args save () { for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done echo " " } APP_ARGS=`save "$@"` # Collect all arguments for the java command, following the shell quoting and substitution rules eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" exec "$JAVACMD" "$@" ================================================ FILE: android/gradlew.bat ================================================ @rem @rem Copyright 2015 the original author or authors. @rem @rem Licensed under the Apache License, Version 2.0 (the "License"); @rem you may not use this file except in compliance with the License. @rem You may obtain a copy of the License at @rem @rem https://www.apache.org/licenses/LICENSE-2.0 @rem @rem Unless required by applicable law or agreed to in writing, software @rem distributed under the License is distributed on an "AS IS" BASIS, @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @rem See the License for the specific language governing permissions and @rem limitations under the License. @rem @if "%DEBUG%" == "" @echo off @rem ########################################################################## @rem @rem Gradle startup script for Windows @rem @rem ########################################################################## @rem Set local scope for the variables with windows NT shell if "%OS%"=="Windows_NT" setlocal set DIRNAME=%~dp0 if "%DIRNAME%" == "" set DIRNAME=. set APP_BASE_NAME=%~n0 set APP_HOME=%DIRNAME% @rem Resolve any "." and ".." in APP_HOME to make it shorter. for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" @rem Find java.exe if defined JAVA_HOME goto findJavaFromJavaHome set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 if "%ERRORLEVEL%" == "0" goto execute echo. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. echo. echo Please set the JAVA_HOME variable in your environment to match the echo location of your Java installation. goto fail :findJavaFromJavaHome set JAVA_HOME=%JAVA_HOME:"=% set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto execute echo. echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% echo. echo Please set the JAVA_HOME variable in your environment to match the echo location of your Java installation. goto fail :execute @rem Setup the command line set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar @rem Execute Gradle "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* :end @rem End local scope for the variables with windows NT shell if "%ERRORLEVEL%"=="0" goto mainEnd :fail rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of rem the _cmd.exe /c_ return code! if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 exit /b 1 :mainEnd if "%OS%"=="Windows_NT" endlocal :omega ================================================ FILE: android/src/main/AndroidManifest.xml ================================================ ================================================ FILE: android/src/main/java/com/reactnativertmppublisher/RTMPManager.java ================================================ package com.reactnativertmppublisher; import android.view.SurfaceView; import android.view.View; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import com.facebook.react.common.MapBuilder; import com.facebook.react.uimanager.SimpleViewManager; import com.facebook.react.uimanager.ThemedReactContext; import com.facebook.react.uimanager.annotations.ReactProp; import com.facebook.react.uimanager.events.RCTEventEmitter; import com.reactnativertmppublisher.modules.Publisher; import com.reactnativertmppublisher.modules.SurfaceHolderHelper; import java.util.Map; public class RTMPManager extends SimpleViewManager { //TODO: "Do not place Android context classes in static fields (static reference to Publisher which has field _surfaceView pointing to SurfaceView); this is a memory leak" public static Publisher publisher; public final String REACT_CLASS_NAME = "RTMPPublisher"; SurfaceView surfaceView; private ThemedReactContext _reactContext; View.OnLayoutChangeListener onLayoutChangeListener = new View.OnLayoutChangeListener() { @Override public void onLayoutChange(@NonNull View view, int i, int i1, int i2, int i3, int i4, int i5, int i6, int i7) { } }; @NonNull @Override public String getName() { return REACT_CLASS_NAME; } @NonNull @Override protected SurfaceView createViewInstance(@NonNull ThemedReactContext reactContext) { _reactContext = reactContext; surfaceView = new SurfaceView(_reactContext); publisher = new Publisher(_reactContext, surfaceView); surfaceView.addOnLayoutChangeListener(onLayoutChangeListener); SurfaceHolderHelper surfaceHolderHelper = new SurfaceHolderHelper(_reactContext, publisher.getRtmpCamera(), surfaceView.getId()); surfaceView.getHolder().addCallback(surfaceHolderHelper); return surfaceView; } @ReactProp(name = "streamURL") public void setStreamURL(SurfaceView surfaceView, @Nullable String url) { publisher.setStreamUrl(url); } @ReactProp(name = "streamName") public void setStreamName(SurfaceView surfaceView, @Nullable String name) { publisher.setStreamName(name); } @Nullable @Override public Map getExportedCustomDirectEventTypeConstants() { return MapBuilder.builder() .put("onDisconnect", MapBuilder.of("registrationName", "onDisconnect")) .put("onConnectionFailed", MapBuilder.of("registrationName", "onConnectionFailed")) .put("onConnectionStarted", MapBuilder.of("registrationName", "onConnectionStarted")) .put("onConnectionSuccess", MapBuilder.of("registrationName", "onConnectionSuccess")) .put("onNewBitrateReceived", MapBuilder.of("registrationName", "onNewBitrateReceived")) .put("onStreamStateChanged", MapBuilder.of("registrationName", "onStreamStateChanged")) .put("onBluetoothDeviceStatusChanged", MapBuilder.of("registrationName", "onBluetoothDeviceStatusChanged")) .build(); } } ================================================ FILE: android/src/main/java/com/reactnativertmppublisher/RTMPModule.java ================================================ package com.reactnativertmppublisher; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import com.facebook.react.bridge.Promise; import com.facebook.react.bridge.ReactMethod; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.bridge.ReactContextBaseJavaModule; import com.reactnativertmppublisher.enums.AudioInputType; public class RTMPModule extends ReactContextBaseJavaModule { private final String REACT_MODULE_NAME = "RTMPPublisher"; public RTMPModule(@Nullable ReactApplicationContext reactContext) { super(reactContext); } @NonNull @Override public String getName() { return REACT_MODULE_NAME; } @ReactMethod public void isStreaming(Promise promise) { try { boolean streamStatus = RTMPManager.publisher.isStreaming(); promise.resolve(streamStatus); } catch (Exception e) { promise.reject(e); } } @ReactMethod public void isCameraOnPreview(Promise promise) { try { boolean streamStatus = RTMPManager.publisher.isOnPreview(); promise.resolve(streamStatus); } catch (Exception e) { promise.reject(e); } } @ReactMethod public void getPublishURL(Promise promise) { try { String url = RTMPManager.publisher.getPublishURL(); promise.resolve(url); } catch (Exception e) { promise.reject(e); } } @ReactMethod public void hasCongestion(Promise promise) { try { boolean congestionStatus = RTMPManager.publisher.hasCongestion(); promise.resolve(congestionStatus); } catch (Exception e) { promise.reject(e); } } @ReactMethod public void isAudioPrepared(Promise promise) { try { boolean status = RTMPManager.publisher.isAudioPrepared(); promise.resolve(status); } catch (Exception e) { promise.reject(e); } } @ReactMethod public void isVideoPrepared(Promise promise) { try { boolean status = RTMPManager.publisher.isVideoPrepared(); promise.resolve(status); } catch (Exception e) { promise.reject(e); } } @ReactMethod public void isMuted(Promise promise) { try { boolean status = RTMPManager.publisher.isAudioMuted(); promise.resolve(status); } catch (Exception e) { promise.reject(e); } } @ReactMethod public void mute(Promise promise) { try { if (RTMPManager.publisher.isAudioMuted()) { return; } RTMPManager.publisher.disableAudio(); } catch (Exception e) { promise.reject(e); } } @ReactMethod public void unmute(Promise promise) { try { if (!RTMPManager.publisher.isAudioMuted()) { return; } RTMPManager.publisher.enableAudio(); } catch (Exception e) { promise.reject(e); } } @ReactMethod public void switchCamera(Promise promise) { try { RTMPManager.publisher.switchCamera(); } catch (Exception e) { promise.reject(e); } } @ReactMethod public void startStream(Promise promise) { try { RTMPManager.publisher.startStream(); } catch (Exception e) { promise.reject(e); } } @ReactMethod public void stopStream(Promise promise) { try { RTMPManager.publisher.stopStream(); } catch (Exception e) { promise.reject(e); } } @ReactMethod public void toggleFlash(Promise promise) { try { RTMPManager.publisher.toggleFlash(); } catch (Exception e) { promise.reject(e); } } @ReactMethod public void setAudioInput(int audioInputType, Promise promise) { try { AudioInputType selectedType = AudioInputType.values()[audioInputType]; RTMPManager.publisher.setAudioInput(selectedType); } catch (Exception e) { promise.reject(e); } } } ================================================ FILE: android/src/main/java/com/reactnativertmppublisher/RTMPPackage.java ================================================ package com.reactnativertmppublisher; import androidx.annotation.NonNull; import com.facebook.react.ReactPackage; import com.facebook.react.bridge.NativeModule; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.uimanager.ViewManager; import java.util.ArrayList; import java.util.Collections; import java.util.List; public class RTMPPackage implements ReactPackage { @NonNull @Override public List createNativeModules(@NonNull ReactApplicationContext reactContext) { List modules = new ArrayList<>(); modules.add(new RTMPModule(reactContext)); return modules; } @NonNull @Override public List createViewManagers(@NonNull ReactApplicationContext reactContext) { return Collections.singletonList( new RTMPManager() ); } } ================================================ FILE: android/src/main/java/com/reactnativertmppublisher/enums/AudioInputType.java ================================================ package com.reactnativertmppublisher.enums; public enum AudioInputType { BLUETOOTH_HEADSET, SPEAKER } ================================================ FILE: android/src/main/java/com/reactnativertmppublisher/enums/BluetoothDeviceStatuses.java ================================================ package com.reactnativertmppublisher.enums; public enum BluetoothDeviceStatuses { CONNECTING, CONNECTED, DISCONNECTED } ================================================ FILE: android/src/main/java/com/reactnativertmppublisher/enums/StreamState.java ================================================ package com.reactnativertmppublisher.enums; public enum StreamState { CONNECTING, CONNECTED, DISCONNECTED, FAILED } ================================================ FILE: android/src/main/java/com/reactnativertmppublisher/interfaces/ConnectionListener.java ================================================ package com.reactnativertmppublisher.interfaces; import androidx.annotation.Nullable; public interface ConnectionListener { void onChange(String type, @Nullable Object data); } ================================================ FILE: android/src/main/java/com/reactnativertmppublisher/modules/BluetoothDeviceConnector.java ================================================ package com.reactnativertmppublisher.modules; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothProfile; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.util.Log; import com.reactnativertmppublisher.enums.BluetoothDeviceStatuses; import com.reactnativertmppublisher.interfaces.ConnectionListener; import java.util.ArrayList; import java.util.List; public class BluetoothDeviceConnector extends BroadcastReceiver implements BluetoothProfile.ServiceListener{ private final List listeners = new ArrayList<>(); public void addListener(ConnectionListener listener) { listeners.add(listener); } public BluetoothDeviceConnector(Context context) { BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); mBluetoothAdapter.getProfileProxy(context, this, BluetoothProfile.HEADSET); context.registerReceiver(this, new IntentFilter(BluetoothAdapter.ACTION_CONNECTION_STATE_CHANGED)); } @Override public void onServiceConnected(int i, BluetoothProfile bluetoothProfile) { if(bluetoothProfile.getConnectedDevices().size() > 0) { for (ConnectionListener l : listeners) { l.onChange("onBluetoothDeviceStatusChanged", BluetoothDeviceStatuses.CONNECTED.toString()); } } } @Override public void onServiceDisconnected(int i) { for (ConnectionListener l : listeners) { l.onChange("onBluetoothDeviceStatusChanged", BluetoothDeviceStatuses.DISCONNECTED.toString()); } } @Override public void onReceive(Context context, Intent intent) { int status = intent.getIntExtra(BluetoothAdapter.EXTRA_CONNECTION_STATE, -1); switch (status){ case BluetoothAdapter.STATE_CONNECTING: { for (ConnectionListener l : listeners) { l.onChange("onBluetoothDeviceStatusChanged", BluetoothDeviceStatuses.CONNECTING.toString()); }; break; } case BluetoothAdapter.STATE_CONNECTED: { for (ConnectionListener l : listeners) { l.onChange("onBluetoothDeviceStatusChanged", BluetoothDeviceStatuses.CONNECTED.toString()); }; break; } case BluetoothAdapter.STATE_DISCONNECTED: { for (ConnectionListener l : listeners) { l.onChange("onBluetoothDeviceStatusChanged", BluetoothDeviceStatuses.DISCONNECTED.toString()); }; break; } }; } } ================================================ FILE: android/src/main/java/com/reactnativertmppublisher/modules/ConnectionChecker.java ================================================ package com.reactnativertmppublisher.modules; import androidx.annotation.NonNull; import com.pedro.rtmp.utils.ConnectCheckerRtmp; import com.reactnativertmppublisher.interfaces.ConnectionListener; import java.util.ArrayList; import java.util.List; public class ConnectionChecker implements ConnectCheckerRtmp { private final List listeners = new ArrayList<>(); public void addListener(ConnectionListener listener) { listeners.add(listener); } @Override public void onAuthErrorRtmp() { for (ConnectionListener l : listeners) { l.onChange("onAuthError", null); } } @Override public void onAuthSuccessRtmp() { for (ConnectionListener l : listeners) { l.onChange("onAuthSuccess", null); } } // TODO: Parameters will be send after onChange method updated @Override public void onConnectionFailedRtmp(@NonNull String s) { for (ConnectionListener l : listeners) { l.onChange("onConnectionFailed", s); } } // TODO: Parameters will be send after onChange method updated @Override public void onConnectionStartedRtmp(@NonNull String s) { for (ConnectionListener l : listeners) { l.onChange("onConnectionStarted", s); } } @Override public void onConnectionSuccessRtmp() { for (ConnectionListener l : listeners) { l.onChange("onConnectionSuccess", null); } } @Override public void onDisconnectRtmp() { for (ConnectionListener l : listeners) { l.onChange("onDisconnect", null); } } // TODO: Parameters will be send after onChange method updated @Override public void onNewBitrateRtmp(long b) { for (ConnectionListener l : listeners) { l.onChange("onNewBitrateReceived", b); } } } ================================================ FILE: android/src/main/java/com/reactnativertmppublisher/modules/Publisher.java ================================================ package com.reactnativertmppublisher.modules; import android.content.Context; import android.media.AudioManager; import android.media.MediaRecorder; import android.util.Log; import android.view.SurfaceView; import androidx.annotation.NonNull; import com.facebook.react.bridge.Arguments; import com.facebook.react.bridge.WritableMap; import com.facebook.react.uimanager.ThemedReactContext; import com.facebook.react.uimanager.events.RCTEventEmitter; import com.pedro.rtplibrary.rtmp.RtmpCamera1; import com.reactnativertmppublisher.enums.AudioInputType; import com.reactnativertmppublisher.enums.StreamState; import com.reactnativertmppublisher.interfaces.ConnectionListener; import com.reactnativertmppublisher.utils.ObjectCaster; public class Publisher { private final SurfaceView _surfaceView; private final RtmpCamera1 _rtmpCamera; private final ThemedReactContext _reactContext; private final AudioManager _mAudioManager; private String _streamUrl; private String _streamName; ConnectionChecker _connectionChecker = new ConnectionChecker(); BluetoothDeviceConnector _bluetoothDeviceConnector; public Publisher(ThemedReactContext reactContext, SurfaceView surfaceView) { _reactContext = reactContext; _surfaceView = surfaceView; _rtmpCamera = new RtmpCamera1(surfaceView, _connectionChecker); _bluetoothDeviceConnector = new BluetoothDeviceConnector(reactContext); _bluetoothDeviceConnector.addListener(createBluetoothDeviceListener()); _connectionChecker.addListener(createConnectionListener()); _mAudioManager = (AudioManager) reactContext.getSystemService(Context.AUDIO_SERVICE); setAudioInput(AudioInputType.SPEAKER); } public RtmpCamera1 getRtmpCamera() { return _rtmpCamera; } public ConnectionListener createConnectionListener() { return (type, data) -> { eventEffect(type); WritableMap eventData = ObjectCaster.caster(data); _reactContext .getJSModule(RCTEventEmitter.class) .receiveEvent(_surfaceView.getId(), type, eventData); }; } public ConnectionListener createBluetoothDeviceListener(){ return (type, data) -> { eventEffect(type); WritableMap eventData = ObjectCaster.caster(data); _reactContext .getJSModule(RCTEventEmitter.class) .receiveEvent(_surfaceView.getId(), type, eventData); }; } private void eventEffect(@NonNull String eventType) { switch (eventType) { case "onConnectionStarted": { WritableMap event = Arguments.createMap(); event.putString("data", String.valueOf(StreamState.CONNECTING)); _reactContext .getJSModule(RCTEventEmitter.class) .receiveEvent(_surfaceView.getId(), "onStreamStateChanged", event); break; } case "onConnectionSuccess": { WritableMap event = Arguments.createMap(); event.putString("data", String.valueOf(StreamState.CONNECTED)); _reactContext .getJSModule(RCTEventEmitter.class) .receiveEvent(_surfaceView.getId(), "onStreamStateChanged", event); break; } case "onDisconnect": { WritableMap event = Arguments.createMap(); event.putString("data", String.valueOf(StreamState.DISCONNECTED)); _reactContext .getJSModule(RCTEventEmitter.class) .receiveEvent(_surfaceView.getId(), "onStreamStateChanged", event); break; } case "onConnectionFailed": { WritableMap event = Arguments.createMap(); event.putString("data", String.valueOf(StreamState.FAILED)); _reactContext .getJSModule(RCTEventEmitter.class) .receiveEvent(_surfaceView.getId(), "onStreamStateChanged", event); break; } } } //region COMPONENT METHODS public String getPublishURL() { return _streamUrl + "/" + _streamName; } public void setStreamUrl(String _streamUrl) { this._streamUrl = _streamUrl; } public void setStreamName(String _streamName) { this._streamName = _streamName; } public boolean isStreaming() { return _rtmpCamera.isStreaming(); } public boolean isOnPreview() { return _rtmpCamera.isOnPreview(); } public boolean isAudioPrepared() { return _rtmpCamera.prepareAudio(); } public boolean isVideoPrepared() { return _rtmpCamera.prepareVideo(); } public boolean hasCongestion() { return _rtmpCamera.hasCongestion(); } public boolean isAudioMuted() { return _rtmpCamera.isAudioMuted(); } public void disableAudio() { _rtmpCamera.disableAudio(); } public void enableAudio() { _rtmpCamera.enableAudio(); } public void switchCamera() { _rtmpCamera.switchCamera(); } public void toggleFlash() { try { if(_rtmpCamera.isLanternEnabled()){ _rtmpCamera.disableLantern(); return; } _rtmpCamera.enableLantern(); } catch (Exception e){ e.printStackTrace(); } } public void startStream() { try { boolean isAudioPrepared = _rtmpCamera.prepareAudio(MediaRecorder.AudioSource.DEFAULT, 128 * 1024, 44100, true, false, false); boolean isVideoPrepared = _rtmpCamera.prepareVideo(1280 , 720, 3000 * 1024); if (!isAudioPrepared || !isVideoPrepared || _streamName == null || _streamUrl == null) { return; } String url = _streamUrl + "/" + _streamName; _rtmpCamera.startStream(url); } catch (Exception e) { e.printStackTrace(); } } public void stopStream() { try { boolean isStreaming = _rtmpCamera.isStreaming(); if (!isStreaming) { return; } _rtmpCamera.stopStream(); } catch (Exception e) { e.printStackTrace(); } } public void setAudioInput(@NonNull AudioInputType audioInputType){ System.out.println(audioInputType); switch (audioInputType){ case BLUETOOTH_HEADSET: { System.out.println("ble"); try{ _mAudioManager.startBluetoothSco(); _mAudioManager.setBluetoothScoOn(true); break; } catch (Exception error){ System.out.println(error); break; } } case SPEAKER:{ try{ if(_mAudioManager.isBluetoothScoOn()){ _mAudioManager.stopBluetoothSco(); _mAudioManager.setBluetoothScoOn(false); } _mAudioManager.setSpeakerphoneOn(true); break; } catch (Exception error){ System.out.println(error); break; } } } } //endregion } ================================================ FILE: android/src/main/java/com/reactnativertmppublisher/modules/SurfaceHolderHelper.java ================================================ package com.reactnativertmppublisher.modules; import android.view.SurfaceHolder; import androidx.annotation.NonNull; import com.facebook.react.uimanager.ThemedReactContext; import com.pedro.rtplibrary.rtmp.RtmpCamera1; public class SurfaceHolderHelper implements SurfaceHolder.Callback { private final RtmpCamera1 _rtmpCamera1; public SurfaceHolderHelper(ThemedReactContext reactContext, RtmpCamera1 rtmpCamera1, int surfaceId) { _rtmpCamera1 = rtmpCamera1; } @Override public void surfaceCreated(@NonNull SurfaceHolder surfaceHolder) { } @Override public void surfaceChanged(@NonNull SurfaceHolder surfaceHolder, int i, int i1, int i2) { _rtmpCamera1.startPreview(1280 , 720); } @Override public void surfaceDestroyed(@NonNull SurfaceHolder surfaceHolder) { _rtmpCamera1.stopPreview(); } } ================================================ FILE: android/src/main/java/com/reactnativertmppublisher/utils/ObjectCaster.java ================================================ package com.reactnativertmppublisher.utils; import androidx.annotation.Nullable; import com.facebook.react.bridge.Arguments; import com.facebook.react.bridge.WritableMap; public class ObjectCaster { public static WritableMap caster(@Nullable Object data){ WritableMap event = Arguments.createMap(); if(data == null){ event.putNull("data"); } if(data instanceof String){ event.putString("data", (String) data); } if(data instanceof Integer){ event.putInt("data", (Integer) data); } if(data instanceof Boolean){ event.putBoolean("data", (Boolean) data); } if(data instanceof Long){ event.putDouble("data", (Long) data); } return event; } } ================================================ FILE: babel.config.js ================================================ module.exports = { presets: ['module:metro-react-native-babel-preset'], }; ================================================ FILE: coverage/clover.xml ================================================ ================================================ FILE: coverage/coverage-final.json ================================================ {} ================================================ FILE: coverage/lcov-report/Component.tsx.html ================================================ Code coverage report for Component.tsx

All files Component.tsx

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38                                                                           
import {
  NativeSyntheticEvent,
  requireNativeComponent,
  ViewStyle,
} from 'react-native';
import type { StreamState, BluetoothDeviceStatuses } from './types';
 
type RTMPData<T> = { data: T };
 
export type ConnectionFailedType = NativeSyntheticEvent<RTMPData<string>>;
export type ConnectionStartedType = NativeSyntheticEvent<RTMPData<string>>;
export type ConnectionSuccessType = NativeSyntheticEvent<RTMPData<null>>;
export type DisconnectType = NativeSyntheticEvent<RTMPData<null>>;
export type NewBitrateReceivedType = NativeSyntheticEvent<RTMPData<number>>;
export type StreamStateChangedType = NativeSyntheticEvent<
  RTMPData<StreamState>
>;
export type BluetoothDeviceStatusChangedType = NativeSyntheticEvent<
  RTMPData<BluetoothDeviceStatuses>
>;
export interface NativeRTMPPublisherProps {
  style?: ViewStyle;
  streamURL: string;
  streamName: string;
  onConnectionFailed?: (e: ConnectionFailedType) => void;
  onConnectionStarted?: (e: ConnectionStartedType) => void;
  onConnectionSuccess?: (e: ConnectionSuccessType) => void;
  onDisconnect?: (e: DisconnectType) => void;
  onNewBitrateReceived?: (e: NewBitrateReceivedType) => void;
  onStreamStateChanged?: (e: StreamStateChangedType) => void;
  onBluetoothDeviceStatusChanged?: (
    e: BluetoothDeviceStatusChangedType
  ) => void;
}
export default requireNativeComponent<NativeRTMPPublisherProps>(
  'RTMPPublisher'
);
 
================================================ FILE: coverage/lcov-report/RTMPPublisher.tsx.html ================================================ Code coverage report for RTMPPublisher.tsx

All files RTMPPublisher.tsx

68.08% Statements 32/47
100% Branches 14/14
34.78% Functions 8/23
96.96% Lines 32/33

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163                                    1x                                                                         1x                           8x   8x   8x   8x   8x   8x   8x   8x   8x   8x   8x   8x   8x   8x     8x 1x     8x 1x     8x 1x     8x 1x     8x 1x     8x 1x     8x     1x       8x                                 8x                                
import React, { forwardRef, useImperativeHandle } from 'react';
import { NativeModules, type ViewStyle } from 'react-native';
import PublisherComponent, {
  type DisconnectType,
  type ConnectionFailedType,
  type ConnectionStartedType,
  type ConnectionSuccessType,
  type NewBitrateReceivedType,
  type StreamStateChangedType,
  type BluetoothDeviceStatusChangedType,
} from './Component';
import type {
  RTMPPublisherRefProps,
  StreamState,
  BluetoothDeviceStatuses,
  AudioInputType,
} from './types';
 
const RTMPModule = NativeModules.RTMPPublisher;
export interface RTMPPublisherProps {
  testID?: string;
  style?: ViewStyle;
  streamURL: string;
  streamName: string;
  /**
   * Callback for connection fails on RTMP server
   */
  onConnectionFailed?: (data: string) => void;
  /**
   * Callback for starting connection to RTMP server
   */
  onConnectionStarted?: (data: string) => void;
  /**
   * Callback for connection successfully to RTMP server
   */
  onConnectionSuccess?: (data: null) => void;
  /**
   * Callback for disconnect successfully to RTMP server
   */
  onDisconnect?: (data: null) => void;
  /**
   * Callback for receiving new bitrate value about stream
   */
  onNewBitrateReceived?: (data: number) => void;
  /**
   * Alternatively callback for changing stream state
   * Returns parameter StreamState type
   */
  onStreamStateChanged?: (data: StreamState) => void;
  /**
   * Callback for bluetooth device connection changes
   */
  onBluetoothDeviceStatusChanged?: (data: BluetoothDeviceStatuses) => void;
}
 
const RTMPPublisher = forwardRef<RTMPPublisherRefProps, RTMPPublisherProps>(
  (
    {
      onConnectionFailed,
      onConnectionStarted,
      onConnectionSuccess,
      onDisconnect,
      onNewBitrateReceived,
      onStreamStateChanged,
      onBluetoothDeviceStatusChanged,
      ...props
    },
    ref
  ) => {
    const startStream = async () => await RTMPModule.startStream();
 
    const stopStream = async () => await RTMPModule.stopStream();
 
    const isStreaming = async () => RTMPModule.isStreaming();
 
    const isCameraOnPreview = async () => RTMPModule.isCameraOnPreview();
 
    const getPublishURL = async () => RTMPModule.getPublishURL();
 
    const hasCongestion = async () => RTMPModule.hasCongestion();
 
    const isAudioPrepared = async () => RTMPModule.isAudioPrepared();
 
    const isVideoPrepared = async () => RTMPModule.isVideoPrepared();
 
    const isMuted = async () => RTMPModule.isMuted();
 
    const mute = () => RTMPModule.mute();
 
    const unmute = () => RTMPModule.unmute();
 
    const switchCamera = () => RTMPModule.switchCamera();
 
    const toggleFlash = () => RTMPModule.toggleFlash();
 
    const setAudioInput = (audioInput: AudioInputType) =>
      RTMPModule.setAudioInput(audioInput);
 
    const handleOnConnectionFailed = (e: ConnectionFailedType) => {
      onConnectionFailed && onConnectionFailed(e.nativeEvent.data);
    };
 
    const handleOnConnectionStarted = (e: ConnectionStartedType) => {
      onConnectionStarted && onConnectionStarted(e.nativeEvent.data);
    };
 
    const handleOnConnectionSuccess = (e: ConnectionSuccessType) => {
      onConnectionSuccess && onConnectionSuccess(e.nativeEvent.data);
    };
 
    const handleOnDisconnect = (e: DisconnectType) => {
      onDisconnect && onDisconnect(e.nativeEvent.data);
    };
 
    const handleOnNewBitrateReceived = (e: NewBitrateReceivedType) => {
      onNewBitrateReceived && onNewBitrateReceived(e.nativeEvent.data);
    };
 
    const handleOnStreamStateChanged = (e: StreamStateChangedType) => {
      onStreamStateChanged && onStreamStateChanged(e.nativeEvent.data);
    };
 
    const handleBluetoothDeviceStatusChanged = (
      e: BluetoothDeviceStatusChangedType
    ) => {
      onBluetoothDeviceStatusChanged &&
        onBluetoothDeviceStatusChanged(e.nativeEvent.data);
    };
 
    useImperativeHandle(ref, () => ({
      startStream,
      stopStream,
      isStreaming,
      isCameraOnPreview,
      getPublishURL,
      hasCongestion,
      isAudioPrepared,
      isVideoPrepared,
      isMuted,
      mute,
      unmute,
      switchCamera,
      toggleFlash,
      setAudioInput,
    }));
 
    return (
      <PublisherComponent
        {...props}
        onDisconnect={handleOnDisconnect}
        onConnectionFailed={handleOnConnectionFailed}
        onConnectionStarted={handleOnConnectionStarted}
        onConnectionSuccess={handleOnConnectionSuccess}
        onNewBitrateReceived={handleOnNewBitrateReceived}
        onStreamStateChanged={handleOnStreamStateChanged}
        onBluetoothDeviceStatusChanged={handleBluetoothDeviceStatusChanged}
      />
    );
  }
);
 
export default RTMPPublisher;
 
================================================ FILE: coverage/lcov-report/base.css ================================================ body, html { margin:0; padding: 0; height: 100%; } body { font-family: Helvetica Neue, Helvetica, Arial; font-size: 14px; color:#333; } .small { font-size: 12px; } *, *:after, *:before { -webkit-box-sizing:border-box; -moz-box-sizing:border-box; box-sizing:border-box; } h1 { font-size: 20px; margin: 0;} h2 { font-size: 14px; } pre { font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace; margin: 0; padding: 0; -moz-tab-size: 2; -o-tab-size: 2; tab-size: 2; } a { color:#0074D9; text-decoration:none; } a:hover { text-decoration:underline; } .strong { font-weight: bold; } .space-top1 { padding: 10px 0 0 0; } .pad2y { padding: 20px 0; } .pad1y { padding: 10px 0; } .pad2x { padding: 0 20px; } .pad2 { padding: 20px; } .pad1 { padding: 10px; } .space-left2 { padding-left:55px; } .space-right2 { padding-right:20px; } .center { text-align:center; } .clearfix { display:block; } .clearfix:after { content:''; display:block; height:0; clear:both; visibility:hidden; } .fl { float: left; } @media only screen and (max-width:640px) { .col3 { width:100%; max-width:100%; } .hide-mobile { display:none!important; } } .quiet { color: #7f7f7f; color: rgba(0,0,0,0.5); } .quiet a { opacity: 0.7; } .fraction { font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 10px; color: #555; background: #E8E8E8; padding: 4px 5px; border-radius: 3px; vertical-align: middle; } div.path a:link, div.path a:visited { color: #333; } table.coverage { border-collapse: collapse; margin: 10px 0 0 0; padding: 0; } table.coverage td { margin: 0; padding: 0; vertical-align: top; } table.coverage td.line-count { text-align: right; padding: 0 5px 0 20px; } table.coverage td.line-coverage { text-align: right; padding-right: 10px; min-width:20px; } table.coverage td span.cline-any { display: inline-block; padding: 0 5px; width: 100%; } .missing-if-branch { display: inline-block; margin-right: 5px; border-radius: 3px; position: relative; padding: 0 4px; background: #333; color: yellow; } .skip-if-branch { display: none; margin-right: 10px; position: relative; padding: 0 4px; background: #ccc; color: white; } .missing-if-branch .typ, .skip-if-branch .typ { color: inherit !important; } .coverage-summary { border-collapse: collapse; width: 100%; } .coverage-summary tr { border-bottom: 1px solid #bbb; } .keyline-all { border: 1px solid #ddd; } .coverage-summary td, .coverage-summary th { padding: 10px; } .coverage-summary tbody { border: 1px solid #bbb; } .coverage-summary td { border-right: 1px solid #bbb; } .coverage-summary td:last-child { border-right: none; } .coverage-summary th { text-align: left; font-weight: normal; white-space: nowrap; } .coverage-summary th.file { border-right: none !important; } .coverage-summary th.pct { } .coverage-summary th.pic, .coverage-summary th.abs, .coverage-summary td.pct, .coverage-summary td.abs { text-align: right; } .coverage-summary td.file { white-space: nowrap; } .coverage-summary td.pic { min-width: 120px !important; } .coverage-summary tfoot td { } .coverage-summary .sorter { height: 10px; width: 7px; display: inline-block; margin-left: 0.5em; background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent; } .coverage-summary .sorted .sorter { background-position: 0 -20px; } .coverage-summary .sorted-desc .sorter { background-position: 0 -10px; } .status-line { height: 10px; } /* yellow */ .cbranch-no { background: yellow !important; color: #111; } /* dark red */ .red.solid, .status-line.low, .low .cover-fill { background:#C21F39 } .low .chart { border:1px solid #C21F39 } .highlighted, .highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{ background: #C21F39 !important; } /* medium red */ .cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE } /* light red */ .low, .cline-no { background:#FCE1E5 } /* light green */ .high, .cline-yes { background:rgb(230,245,208) } /* medium green */ .cstat-yes { background:rgb(161,215,106) } /* dark green */ .status-line.high, .high .cover-fill { background:rgb(77,146,33) } .high .chart { border:1px solid rgb(77,146,33) } /* dark yellow (gold) */ .status-line.medium, .medium .cover-fill { background: #f9cd0b; } .medium .chart { border:1px solid #f9cd0b; } /* light yellow */ .medium { background: #fff4c2; } .cstat-skip { background: #ddd; color: #111; } .fstat-skip { background: #ddd; color: #111 !important; } .cbranch-skip { background: #ddd !important; color: #111; } span.cline-neutral { background: #eaeaea; } .coverage-summary td.empty { opacity: .5; padding-top: 4px; padding-bottom: 4px; line-height: 1; color: #888; } .cover-fill, .cover-empty { display:inline-block; height: 12px; } .chart { line-height: 0; } .cover-empty { background: white; } .cover-full { border-right: none !important; } pre.prettyprint { border: none !important; padding: 0 !important; margin: 0 !important; } .com { color: #999 !important; } .ignore-none { color: #999; font-weight: normal; } .wrapper { min-height: 100%; height: auto !important; height: 100%; margin: 0 auto -48px; } .footer, .push { height: 48px; } ================================================ FILE: coverage/lcov-report/block-navigation.js ================================================ /* eslint-disable */ var jumpToCode = (function init() { // Classes of code we would like to highlight in the file view var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no']; // Elements to highlight in the file listing view var fileListingElements = ['td.pct.low']; // We don't want to select elements that are direct descendants of another match var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > ` // Selecter that finds elements on the page to which we can jump var selector = fileListingElements.join(', ') + ', ' + notSelector + missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b` // The NodeList of matching elements var missingCoverageElements = document.querySelectorAll(selector); var currentIndex; function toggleClass(index) { missingCoverageElements .item(currentIndex) .classList.remove('highlighted'); missingCoverageElements.item(index).classList.add('highlighted'); } function makeCurrent(index) { toggleClass(index); currentIndex = index; missingCoverageElements.item(index).scrollIntoView({ behavior: 'smooth', block: 'center', inline: 'center' }); } function goToPrevious() { var nextIndex = 0; if (typeof currentIndex !== 'number' || currentIndex === 0) { nextIndex = missingCoverageElements.length - 1; } else if (missingCoverageElements.length > 1) { nextIndex = currentIndex - 1; } makeCurrent(nextIndex); } function goToNext() { var nextIndex = 0; if ( typeof currentIndex === 'number' && currentIndex < missingCoverageElements.length - 1 ) { nextIndex = currentIndex + 1; } makeCurrent(nextIndex); } return function jump(event) { if ( document.getElementById('fileSearch') === document.activeElement && document.activeElement != null ) { // if we're currently focused on the search input, we don't want to navigate return; } switch (event.which) { case 78: // n case 74: // j goToNext(); break; case 66: // b case 75: // k case 80: // p goToPrevious(); break; } }; })(); window.addEventListener('keydown', jumpToCode); ================================================ FILE: coverage/lcov-report/index.html ================================================ Code coverage report for All files

All files

Unknown% Statements 0/0
Unknown% Branches 0/0
Unknown% Functions 0/0
Unknown% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

File Statements Branches Functions Lines
================================================ FILE: coverage/lcov-report/prettify.css ================================================ .pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} ================================================ FILE: coverage/lcov-report/prettify.js ================================================ /* eslint-disable */ window.PR_SHOULD_USE_CONTINUATION=true;(function(){var h=["break,continue,do,else,for,if,return,while"];var u=[h,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"];var p=[u,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"];var l=[p,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"];var x=[p,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"];var R=[x,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"];var r="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes";var w=[p,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"];var s="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END";var I=[h,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"];var f=[h,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"];var H=[h,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"];var A=[l,R,w,s+I,f,H];var e=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/;var C="str";var z="kwd";var j="com";var O="typ";var G="lit";var L="pun";var F="pln";var m="tag";var E="dec";var J="src";var P="atn";var n="atv";var N="nocode";var M="(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&&=|&=|\\(|\\*|\\*=|\\+=|\\,|\\-=|\\->|\\/|\\/=|:|::|\\;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\@|\\[|\\^|\\^=|\\^\\^|\\^\\^=|\\{|\\||\\|=|\\|\\||\\|\\|=|\\~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function k(Z){var ad=0;var S=false;var ac=false;for(var V=0,U=Z.length;V122)){if(!(al<65||ag>90)){af.push([Math.max(65,ag)|32,Math.min(al,90)|32])}if(!(al<97||ag>122)){af.push([Math.max(97,ag)&~32,Math.min(al,122)&~32])}}}}af.sort(function(av,au){return(av[0]-au[0])||(au[1]-av[1])});var ai=[];var ap=[NaN,NaN];for(var ar=0;arat[0]){if(at[1]+1>at[0]){an.push("-")}an.push(T(at[1]))}}an.push("]");return an.join("")}function W(al){var aj=al.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g"));var ah=aj.length;var an=[];for(var ak=0,am=0;ak=2&&ai==="["){aj[ak]=X(ag)}else{if(ai!=="\\"){aj[ak]=ag.replace(/[a-zA-Z]/g,function(ao){var ap=ao.charCodeAt(0);return"["+String.fromCharCode(ap&~32,ap|32)+"]"})}}}}return aj.join("")}var aa=[];for(var V=0,U=Z.length;V=0;){S[ac.charAt(ae)]=Y}}var af=Y[1];var aa=""+af;if(!ag.hasOwnProperty(aa)){ah.push(af);ag[aa]=null}}ah.push(/[\0-\uffff]/);V=k(ah)})();var X=T.length;var W=function(ah){var Z=ah.sourceCode,Y=ah.basePos;var ad=[Y,F];var af=0;var an=Z.match(V)||[];var aj={};for(var ae=0,aq=an.length;ae=5&&"lang-"===ap.substring(0,5);if(am&&!(ai&&typeof ai[1]==="string")){am=false;ap=J}if(!am){aj[ag]=ap}}var ab=af;af+=ag.length;if(!am){ad.push(Y+ab,ap)}else{var al=ai[1];var ak=ag.indexOf(al);var ac=ak+al.length;if(ai[2]){ac=ag.length-ai[2].length;ak=ac-al.length}var ar=ap.substring(5);B(Y+ab,ag.substring(0,ak),W,ad);B(Y+ab+ak,al,q(ar,al),ad);B(Y+ab+ac,ag.substring(ac),W,ad)}}ah.decorations=ad};return W}function i(T){var W=[],S=[];if(T.tripleQuotedStrings){W.push([C,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""])}else{if(T.multiLineStrings){W.push([C,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"])}else{W.push([C,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"])}}if(T.verbatimStrings){S.push([C,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null])}var Y=T.hashComments;if(Y){if(T.cStyleComments){if(Y>1){W.push([j,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"])}else{W.push([j,/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"])}S.push([C,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,null])}else{W.push([j,/^#[^\r\n]*/,null,"#"])}}if(T.cStyleComments){S.push([j,/^\/\/[^\r\n]*/,null]);S.push([j,/^\/\*[\s\S]*?(?:\*\/|$)/,null])}if(T.regexLiterals){var X=("/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/");S.push(["lang-regex",new RegExp("^"+M+"("+X+")")])}var V=T.types;if(V){S.push([O,V])}var U=(""+T.keywords).replace(/^ | $/g,"");if(U.length){S.push([z,new RegExp("^(?:"+U.replace(/[\s,]+/g,"|")+")\\b"),null])}W.push([F,/^\s+/,null," \r\n\t\xA0"]);S.push([G,/^@[a-z_$][a-z_$@0-9]*/i,null],[O,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[F,/^[a-z_$][a-z_$@0-9]*/i,null],[G,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[F,/^\\[\s\S]?/,null],[L,/^.[^\s\w\.$@\'\"\`\/\#\\]*/,null]);return g(W,S)}var K=i({keywords:A,hashComments:true,cStyleComments:true,multiLineStrings:true,regexLiterals:true});function Q(V,ag){var U=/(?:^|\s)nocode(?:\s|$)/;var ab=/\r\n?|\n/;var ac=V.ownerDocument;var S;if(V.currentStyle){S=V.currentStyle.whiteSpace}else{if(window.getComputedStyle){S=ac.defaultView.getComputedStyle(V,null).getPropertyValue("white-space")}}var Z=S&&"pre"===S.substring(0,3);var af=ac.createElement("LI");while(V.firstChild){af.appendChild(V.firstChild)}var W=[af];function ae(al){switch(al.nodeType){case 1:if(U.test(al.className)){break}if("BR"===al.nodeName){ad(al);if(al.parentNode){al.parentNode.removeChild(al)}}else{for(var an=al.firstChild;an;an=an.nextSibling){ae(an)}}break;case 3:case 4:if(Z){var am=al.nodeValue;var aj=am.match(ab);if(aj){var ai=am.substring(0,aj.index);al.nodeValue=ai;var ah=am.substring(aj.index+aj[0].length);if(ah){var ak=al.parentNode;ak.insertBefore(ac.createTextNode(ah),al.nextSibling)}ad(al);if(!ai){al.parentNode.removeChild(al)}}}break}}function ad(ak){while(!ak.nextSibling){ak=ak.parentNode;if(!ak){return}}function ai(al,ar){var aq=ar?al.cloneNode(false):al;var ao=al.parentNode;if(ao){var ap=ai(ao,1);var an=al.nextSibling;ap.appendChild(aq);for(var am=an;am;am=an){an=am.nextSibling;ap.appendChild(am)}}return aq}var ah=ai(ak.nextSibling,0);for(var aj;(aj=ah.parentNode)&&aj.nodeType===1;){ah=aj}W.push(ah)}for(var Y=0;Y=S){ah+=2}if(V>=ap){Z+=2}}}var t={};function c(U,V){for(var S=V.length;--S>=0;){var T=V[S];if(!t.hasOwnProperty(T)){t[T]=U}else{if(window.console){console.warn("cannot override language handler %s",T)}}}}function q(T,S){if(!(T&&t.hasOwnProperty(T))){T=/^\s*]*(?:>|$)/],[j,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[L,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);c(g([[F,/^[\s]+/,null," \t\r\n"],[n,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[[m,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[P,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[L,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);c(g([],[[n,/^[\s\S]+/]]),["uq.val"]);c(i({keywords:l,hashComments:true,cStyleComments:true,types:e}),["c","cc","cpp","cxx","cyc","m"]);c(i({keywords:"null,true,false"}),["json"]);c(i({keywords:R,hashComments:true,cStyleComments:true,verbatimStrings:true,types:e}),["cs"]);c(i({keywords:x,cStyleComments:true}),["java"]);c(i({keywords:H,hashComments:true,multiLineStrings:true}),["bsh","csh","sh"]);c(i({keywords:I,hashComments:true,multiLineStrings:true,tripleQuotedStrings:true}),["cv","py"]);c(i({keywords:s,hashComments:true,multiLineStrings:true,regexLiterals:true}),["perl","pl","pm"]);c(i({keywords:f,hashComments:true,multiLineStrings:true,regexLiterals:true}),["rb"]);c(i({keywords:w,cStyleComments:true,regexLiterals:true}),["js"]);c(i({keywords:r,hashComments:3,cStyleComments:true,multilineStrings:true,tripleQuotedStrings:true,regexLiterals:true}),["coffee"]);c(g([],[[C,/^[\s\S]+/]]),["regex"]);function d(V){var U=V.langExtension;try{var S=a(V.sourceNode);var T=S.sourceCode;V.sourceCode=T;V.spans=S.spans;V.basePos=0;q(U,T)(V);D(V)}catch(W){if("console" in window){console.log(W&&W.stack?W.stack:W)}}}function y(W,V,U){var S=document.createElement("PRE");S.innerHTML=W;if(U){Q(S,U)}var T={langExtension:V,numberLines:U,sourceNode:S};d(T);return S.innerHTML}function b(ad){function Y(af){return document.getElementsByTagName(af)}var ac=[Y("pre"),Y("code"),Y("xmp")];var T=[];for(var aa=0;aa=0){var ah=ai.match(ab);var am;if(!ah&&(am=o(aj))&&"CODE"===am.tagName){ah=am.className.match(ab)}if(ah){ah=ah[1]}var al=false;for(var ak=aj.parentNode;ak;ak=ak.parentNode){if((ak.tagName==="pre"||ak.tagName==="code"||ak.tagName==="xmp")&&ak.className&&ak.className.indexOf("prettyprint")>=0){al=true;break}}if(!al){var af=aj.className.match(/\blinenums\b(?::(\d+))?/);af=af?af[1]&&af[1].length?+af[1]:true:false;if(af){Q(aj,af)}S={langExtension:ah,sourceNode:aj,numberLines:af};d(S)}}}if(X]*(?:>|$)/],[PR.PR_COMMENT,/^<\!--[\s\S]*?(?:-\->|$)/],[PR.PR_PUNCTUATION,/^(?:<[%?]|[%?]>)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-handlebars",/^]*type\s*=\s*['"]?text\/x-handlebars-template['"]?\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i],[PR.PR_DECLARATION,/^{{[#^>/]?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{&?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{{>?\s*[\w.][^}]*}}}/],[PR.PR_COMMENT,/^{{![^}]*}}/]]),["handlebars","hbs"]);PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[ \t\r\n\f]+/,null," \t\r\n\f"]],[[PR.PR_STRING,/^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/,null],[PR.PR_STRING,/^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/,null],["lang-css-str",/^url\(([^\)\"\']*)\)/i],[PR.PR_KEYWORD,/^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],[PR.PR_COMMENT,/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],[PR.PR_COMMENT,/^(?:)/],[PR.PR_LITERAL,/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],[PR.PR_LITERAL,/^#(?:[0-9a-f]{3}){1,2}/i],[PR.PR_PLAIN,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],[PR.PR_PUNCTUATION,/^[^\s\w\'\"]+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_KEYWORD,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_STRING,/^[^\)\"\']+/]]),["css-str"]); ================================================ FILE: coverage/lcov-report/sorter.js ================================================ /* eslint-disable */ var addSorting = (function() { 'use strict'; var cols, currentSort = { index: 0, desc: false }; // returns the summary table element function getTable() { return document.querySelector('.coverage-summary'); } // returns the thead element of the summary table function getTableHeader() { return getTable().querySelector('thead tr'); } // returns the tbody element of the summary table function getTableBody() { return getTable().querySelector('tbody'); } // returns the th element for nth column function getNthColumn(n) { return getTableHeader().querySelectorAll('th')[n]; } function onFilterInput() { const searchValue = document.getElementById('fileSearch').value; const rows = document.getElementsByTagName('tbody')[0].children; for (let i = 0; i < rows.length; i++) { const row = rows[i]; if ( row.textContent .toLowerCase() .includes(searchValue.toLowerCase()) ) { row.style.display = ''; } else { row.style.display = 'none'; } } } // loads the search box function addSearchBox() { var template = document.getElementById('filterTemplate'); var templateClone = template.content.cloneNode(true); templateClone.getElementById('fileSearch').oninput = onFilterInput; template.parentElement.appendChild(templateClone); } // loads all columns function loadColumns() { var colNodes = getTableHeader().querySelectorAll('th'), colNode, cols = [], col, i; for (i = 0; i < colNodes.length; i += 1) { colNode = colNodes[i]; col = { key: colNode.getAttribute('data-col'), sortable: !colNode.getAttribute('data-nosort'), type: colNode.getAttribute('data-type') || 'string' }; cols.push(col); if (col.sortable) { col.defaultDescSort = col.type === 'number'; colNode.innerHTML = colNode.innerHTML + ''; } } return cols; } // attaches a data attribute to every tr element with an object // of data values keyed by column name function loadRowData(tableRow) { var tableCols = tableRow.querySelectorAll('td'), colNode, col, data = {}, i, val; for (i = 0; i < tableCols.length; i += 1) { colNode = tableCols[i]; col = cols[i]; val = colNode.getAttribute('data-value'); if (col.type === 'number') { val = Number(val); } data[col.key] = val; } return data; } // loads all row data function loadData() { var rows = getTableBody().querySelectorAll('tr'), i; for (i = 0; i < rows.length; i += 1) { rows[i].data = loadRowData(rows[i]); } } // sorts the table using the data for the ith column function sortByIndex(index, desc) { var key = cols[index].key, sorter = function(a, b) { a = a.data[key]; b = b.data[key]; return a < b ? -1 : a > b ? 1 : 0; }, finalSorter = sorter, tableBody = document.querySelector('.coverage-summary tbody'), rowNodes = tableBody.querySelectorAll('tr'), rows = [], i; if (desc) { finalSorter = function(a, b) { return -1 * sorter(a, b); }; } for (i = 0; i < rowNodes.length; i += 1) { rows.push(rowNodes[i]); tableBody.removeChild(rowNodes[i]); } rows.sort(finalSorter); for (i = 0; i < rows.length; i += 1) { tableBody.appendChild(rows[i]); } } // removes sort indicators for current column being sorted function removeSortIndicators() { var col = getNthColumn(currentSort.index), cls = col.className; cls = cls.replace(/ sorted$/, '').replace(/ sorted-desc$/, ''); col.className = cls; } // adds sort indicators for current column being sorted function addSortIndicators() { getNthColumn(currentSort.index).className += currentSort.desc ? ' sorted-desc' : ' sorted'; } // adds event listeners for all sorter widgets function enableUI() { var i, el, ithSorter = function ithSorter(i) { var col = cols[i]; return function() { var desc = col.defaultDescSort; if (currentSort.index === i) { desc = !currentSort.desc; } sortByIndex(i, desc); removeSortIndicators(); currentSort.index = i; currentSort.desc = desc; addSortIndicators(); }; }; for (i = 0; i < cols.length; i += 1) { if (cols[i].sortable) { // add the click event handler on the th so users // dont have to click on those tiny arrows el = getNthColumn(i).querySelector('.sorter').parentElement; if (el.addEventListener) { el.addEventListener('click', ithSorter(i)); } else { el.attachEvent('onclick', ithSorter(i)); } } } } // adds sorting functionality to the UI return function() { if (!getTable()) { return; } cols = loadColumns(); loadData(); addSearchBox(); addSortIndicators(); enableUI(); }; })(); window.addEventListener('load', addSorting); ================================================ FILE: coverage/lcov.info ================================================ ================================================ FILE: example/README.md ================================================ # Example Project Clone the repo and run ```sh yarn ``` and ```sh cd example && yarn ios (or yarn android) ``` You can specify your streaming URL's on the `App.tsx` file. ```tsx ... ... import MicrophoneSelectModal from './components/MicrophoneSelectModal'; const STREAM_URL = 'YOUR_STREAM_URL'; // ex: rtmp://a.rtmp.youtube.com/live2 const STREAM_NAME = 'YOUR_STREAM_NAME'; // ex: abcd-1234-abcd-1234-abcd export default function App() { ... ... ``` ## Contributing See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow. ## License MIT ================================================ FILE: example/android/app/build.gradle ================================================ apply plugin: "com.android.application" import com.android.build.OutputFile import org.apache.tools.ant.taskdefs.condition.Os /** * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets * and bundleReleaseJsAndAssets). * These basically call `react-native bundle` with the correct arguments during the Android build * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the * bundle directly from the development server. Below you can see all the possible configurations * and their defaults. If you decide to add a configuration block, make sure to add it before the * `apply from: "../../node_modules/react-native/react.gradle"` line. * * project.ext.react = [ * // the name of the generated asset file containing your JS bundle * bundleAssetName: "index.android.bundle", * * // the entry file for bundle generation * entryFile: "index.android.js", * * // https://reactnative.dev/docs/performance#enable-the-ram-format * bundleCommand: "ram-bundle", * * // whether to bundle JS and assets in debug mode * bundleInDebug: false, * * // whether to bundle JS and assets in release mode * bundleInRelease: true, * * // whether to bundle JS and assets in another build variant (if configured). * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants * // The configuration property can be in the following formats * // 'bundleIn${productFlavor}${buildType}' * // 'bundleIn${buildType}' * // bundleInFreeDebug: true, * // bundleInPaidRelease: true, * // bundleInBeta: true, * * // whether to disable dev mode in custom build variants (by default only disabled in release) * // for RtmpExample: to disable dev mode in the staging build type (if configured) * devDisabledInStaging: true, * // The configuration property can be in the following formats * // 'devDisabledIn${productFlavor}${buildType}' * // 'devDisabledIn${buildType}' * * // the root of your project, i.e. where "package.json" lives * root: "../../", * * // where to put the JS bundle asset in debug mode * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", * * // where to put the JS bundle asset in release mode * jsBundleDirRelease: "$buildDir/intermediates/assets/release", * * // where to put drawable resources / React Native assets, e.g. the ones you use via * // require('./image.png')), in debug mode * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", * * // where to put drawable resources / React Native assets, e.g. the ones you use via * // require('./image.png')), in release mode * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", * * // by default the gradle tasks are skipped if none of the JS files or assets change; this means * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to * // date; if you have any other folders that you want to ignore for performance reasons (gradle * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ * // for RtmpExample, you might want to remove it from here. * inputExcludes: ["android/**", "ios/**"], * * // override which node gets called and with what additional arguments * nodeExecutableAndArgs: ["node"], * * // supply additional arguments to the packager * extraPackagerArgs: [] * ] */ project.ext.react = [ enableHermes: false, // clean and rebuild if changing entryFile: "index.tsx", ] apply from: "../../node_modules/react-native/react.gradle" /** * Set this to true to create two separate APKs instead of one: * - An APK that only works on ARM devices * - An APK that only works on x86 devices * The advantage is the size of the APK is reduced by about 4MB. * Upload all the APKs to the Play Store and people will download * the correct one based on the CPU architecture of their device. */ def enableSeparateBuildPerCPUArchitecture = false /** * Run Proguard to shrink the Java bytecode in release builds. */ def enableProguardInReleaseBuilds = false /** * The preferred build flavor of JavaScriptCore. * * For RtmpExample, to use the international variant, you can use: * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` * * The international variant includes ICU i18n library and necessary data * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that * give correct results when using with locales other than en-US. Note that * this variant is about 6MiB larger per architecture than default. */ def jscFlavor = 'org.webkit:android-jsc:+' /** * Whether to enable the Hermes VM. * * This should be set on project.ext.react and mirrored here. If it is not set * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode * and the benefits of using Hermes will therefore be sharply reduced. */ def enableHermes = project.ext.react.get("enableHermes", false); def reactNativeArchitectures() { def value = project.getProperties().get("reactNativeArchitectures") return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"] } android { ndkVersion rootProject.ext.ndkVersion compileSdkVersion rootProject.ext.compileSdkVersion defaultConfig { applicationId "com.example.reactnativertmp" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 1 versionName "1.0" buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString() if (isNewArchitectureEnabled()) { // We configure the CMake build only if you decide to opt-in for the New Architecture. externalNativeBuild { cmake { arguments "-DPROJECT_BUILD_DIR=$buildDir", "-DREACT_ANDROID_DIR=$rootDir/../node_modules/react-native/ReactAndroid", "-DREACT_ANDROID_BUILD_DIR=$rootDir/../node_modules/react-native/ReactAndroid/build", "-DNODE_MODULES_DIR=$rootDir/../node_modules", "-DANDROID_STL=c++_shared" } } if (!enableSeparateBuildPerCPUArchitecture) { ndk { abiFilters (*reactNativeArchitectures()) } } } } if (isNewArchitectureEnabled()) { // We configure the NDK build only if you decide to opt-in for the New Architecture. externalNativeBuild { cmake { path "$projectDir/src/main/jni/CMakeLists.txt" } } def reactAndroidProjectDir = project(':ReactAndroid').projectDir def packageReactNdkDebugLibs = tasks.register("packageReactNdkDebugLibs", Copy) { dependsOn(":ReactAndroid:packageReactNdkDebugLibsForBuck") from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib") into("$buildDir/react-ndk/exported") } def packageReactNdkReleaseLibs = tasks.register("packageReactNdkReleaseLibs", Copy) { dependsOn(":ReactAndroid:packageReactNdkReleaseLibsForBuck") from("$reactAndroidProjectDir/src/main/jni/prebuilt/lib") into("$buildDir/react-ndk/exported") } afterEvaluate { // If you wish to add a custom TurboModule or component locally, // you should uncomment this line. // preBuild.dependsOn("generateCodegenArtifactsFromSchema") preDebugBuild.dependsOn(packageReactNdkDebugLibs) preReleaseBuild.dependsOn(packageReactNdkReleaseLibs) // Due to a bug inside AGP, we have to explicitly set a dependency // between configureCMakeDebug* tasks and the preBuild tasks. // This can be removed once this is solved: https://issuetracker.google.com/issues/207403732 configureCMakeRelWithDebInfo.dependsOn(preReleaseBuild) configureCMakeDebug.dependsOn(preDebugBuild) reactNativeArchitectures().each { architecture -> tasks.findByName("configureCMakeDebug[${architecture}]")?.configure { dependsOn("preDebugBuild") } tasks.findByName("configureCMakeRelWithDebInfo[${architecture}]")?.configure { dependsOn("preReleaseBuild") } } } } splits { abi { reset() enable enableSeparateBuildPerCPUArchitecture universalApk false // If true, also generate a universal APK include (*reactNativeArchitectures()) } } signingConfigs { debug { storeFile file('debug.keystore') storePassword 'android' keyAlias 'androiddebugkey' keyPassword 'android' } } buildTypes { debug { signingConfig signingConfigs.debug } release { // Caution! In production, you need to generate your own keystore file. // see https://reactnative.dev/docs/signed-apk-android. signingConfig signingConfigs.debug minifyEnabled enableProguardInReleaseBuilds proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" } } // applicationVariants are e.g. debug, release applicationVariants.all { variant -> variant.outputs.each { output -> // For each separate APK per architecture, set a unique version code as described here: // https://developer.android.com/studio/build/configure-apk-splits.html def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] def abi = output.getFilter(OutputFile.ABI) if (abi != null) { // null for the universal-debug, universal-release variants output.versionCodeOverride = defaultConfig.versionCode * 1000 + versionCodes.get(abi) } } } } dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) //noinspection GradleDynamicVersion implementation "com.facebook.react:react-native:+" // From node_modules implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0" debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { exclude group:'com.facebook.fbjni' } debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { exclude group:'com.facebook.flipper' exclude group:'com.squareup.okhttp3', module:'okhttp' } debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { exclude group:'com.facebook.flipper' } if (enableHermes) { //noinspection GradleDynamicVersion implementation("com.facebook.react:hermes-engine:+") { // From node_modules exclude group:'com.facebook.fbjni' } } else { implementation jscFlavor } implementation project(':reactnativertmp') } if (isNewArchitectureEnabled()) { // If new architecture is enabled, we let you build RN from source // Otherwise we fallback to a prebuilt .aar bundled in the NPM package. // This will be applied to all the imported transtitive dependency. configurations.all { resolutionStrategy.dependencySubstitution { substitute(module("com.facebook.react:react-native")) .using(project(":ReactAndroid")) .because("On New Architecture we're building React Native from source") substitute(module("com.facebook.react:hermes-engine")) .using(project(":ReactAndroid:hermes-engine")) .because("On New Architecture we're building Hermes from source") } } } // Run this once to be able to run the application with BUCK // puts all compile dependencies into folder libs for BUCK to use task copyDownloadableDepsToLibs(type: Copy) { from configurations.implementation into 'libs' } apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) def isNewArchitectureEnabled() { // To opt-in for the New Architecture, you can either: // - Set `newArchEnabled` to true inside the `gradle.properties` file // - Invoke gradle with `-newArchEnabled=true` // - Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true` return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true" } ================================================ FILE: example/android/app/proguard-rules.pro ================================================ # Add project specific ProGuard rules here. # By default, the flags in this file are appended to flags specified # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt # You can edit the include path and order by changing the proguardFiles # directive in build.gradle. # # For more details, see # http://developer.android.com/guide/developing/tools/proguard.html # Add any project specific keep options here: ================================================ FILE: example/android/app/src/debug/AndroidManifest.xml ================================================ ================================================ FILE: example/android/app/src/debug/java/com/example/reactnativertmp/ReactNativeFlipper.java ================================================ /** * Copyright (c) Facebook, Inc. and its affiliates. * *

This source code is licensed under the MIT license found in the LICENSE file in the root * directory of this source tree. */ package com.example.reactnativertmp; import android.content.Context; import com.facebook.flipper.android.AndroidFlipperClient; import com.facebook.flipper.android.utils.FlipperUtils; import com.facebook.flipper.core.FlipperClient; import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin; import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin; import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin; import com.facebook.flipper.plugins.inspector.DescriptorMapping; import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin; import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor; import com.facebook.flipper.plugins.network.NetworkFlipperPlugin; import com.facebook.flipper.plugins.react.ReactFlipperPlugin; import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin; import com.facebook.react.ReactInstanceEventListener; import com.facebook.react.ReactInstanceManager; import com.facebook.react.bridge.ReactContext; import com.facebook.react.modules.network.NetworkingModule; import okhttp3.OkHttpClient; public class ReactNativeFlipper { public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) { if (FlipperUtils.shouldEnableFlipper(context)) { final FlipperClient client = AndroidFlipperClient.getInstance(context); client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults())); client.addPlugin(new ReactFlipperPlugin()); client.addPlugin(new DatabasesFlipperPlugin(context)); client.addPlugin(new SharedPreferencesFlipperPlugin(context)); client.addPlugin(CrashReporterPlugin.getInstance()); NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin(); NetworkingModule.setCustomClientBuilder( new NetworkingModule.CustomClientBuilder() { @Override public void apply(OkHttpClient.Builder builder) { builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin)); } }); client.addPlugin(networkFlipperPlugin); client.start(); // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized // Hence we run if after all native modules have been initialized ReactContext reactContext = reactInstanceManager.getCurrentReactContext(); if (reactContext == null) { reactInstanceManager.addReactInstanceEventListener( new ReactInstanceEventListener() { @Override public void onReactContextInitialized(ReactContext reactContext) { reactInstanceManager.removeReactInstanceEventListener(this); reactContext.runOnNativeModulesQueueThread( new Runnable() { @Override public void run() { client.addPlugin(new FrescoFlipperPlugin()); } }); } }); } else { client.addPlugin(new FrescoFlipperPlugin()); } } } } ================================================ FILE: example/android/app/src/main/AndroidManifest.xml ================================================ ================================================ FILE: example/android/app/src/main/java/com/example/reactnativertmp/MainActivity.java ================================================ package com.example.reactnativertmp; import com.facebook.react.ReactActivity; import com.facebook.react.ReactActivityDelegate; import com.facebook.react.ReactRootView; public class MainActivity extends ReactActivity { /** * Returns the name of the main component registered from JavaScript. This is used to schedule * rendering of the component. */ @Override protected String getMainComponentName() { return "RtmpExample"; } /** * Returns the instance of the {@link ReactActivityDelegate}. There the RootView is created and * you can specify the renderer you wish to use - the new renderer (Fabric) or the old renderer * (Paper). */ @Override protected ReactActivityDelegate createReactActivityDelegate() { return new MainActivityDelegate(this, getMainComponentName()); } public static class MainActivityDelegate extends ReactActivityDelegate { public MainActivityDelegate(ReactActivity activity, String mainComponentName) { super(activity, mainComponentName); } @Override protected ReactRootView createRootView() { ReactRootView reactRootView = new ReactRootView(getContext()); // If you opted-in for the New Architecture, we enable the Fabric Renderer. reactRootView.setIsFabric(BuildConfig.IS_NEW_ARCHITECTURE_ENABLED); return reactRootView; } @Override protected boolean isConcurrentRootEnabled() { // If you opted-in for the New Architecture, we enable Concurrent Root (i.e. React 18). // More on this on https://reactjs.org/blog/2022/03/29/react-v18.html return BuildConfig.IS_NEW_ARCHITECTURE_ENABLED; } } } ================================================ FILE: example/android/app/src/main/java/com/example/reactnativertmp/MainApplication.java ================================================ package com.example.reactnativertmp; import android.app.Application; import android.content.Context; import com.facebook.react.PackageList; import com.facebook.react.ReactApplication; import com.facebook.react.ReactNativeHost; import com.facebook.react.ReactPackage; import com.facebook.react.ReactInstanceManager; import com.facebook.react.config.ReactFeatureFlags; import com.facebook.soloader.SoLoader; import com.example.reactnativertmp.newarchitecture.MainApplicationReactNativeHost; import java.lang.reflect.InvocationTargetException; import java.util.List; import com.reactnativertmppublisher.RTMPPackage; public class MainApplication extends Application implements ReactApplication { private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { @Override public boolean getUseDeveloperSupport() { return BuildConfig.DEBUG; } @Override protected List getPackages() { @SuppressWarnings("UnnecessaryLocalVariable") List packages = new PackageList(this).getPackages(); // Packages that cannot be autolinked yet can be added manually here, for RtmpExample: // packages.add(new MyReactNativePackage()); packages.add(new RTMPPackage()); return packages; } @Override protected String getJSMainModuleName() { return "index"; } }; private final ReactNativeHost mNewArchitectureNativeHost = new MainApplicationReactNativeHost(this); @Override public ReactNativeHost getReactNativeHost() { if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) { return mNewArchitectureNativeHost; } else { return mReactNativeHost; } } @Override public void onCreate() { super.onCreate(); // If you opted-in for the New Architecture, we enable the TurboModule system ReactFeatureFlags.useTurboModules = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED; SoLoader.init(this, /* native exopackage */ false); initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); // Remove this line if you don't want Flipper enabled } /** * Loads Flipper in React Native templates. * * @param context */ private static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) { if (BuildConfig.DEBUG) { try { /* We use reflection here to pick up the class that initializes Flipper, since Flipper library is not available in release mode */ Class aClass = Class.forName("com.example.reactnativertmp.ReactNativeFlipper"); aClass .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class) .invoke(null, context, reactInstanceManager); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } } } } ================================================ FILE: example/android/app/src/main/java/com/example/reactnativertmp/newarchitecture/MainApplicationReactNativeHost.java ================================================ package com.example.reactnativertmp.newarchitecture; import android.app.Application; import androidx.annotation.NonNull; import com.facebook.react.PackageList; import com.facebook.react.ReactInstanceManager; import com.facebook.react.ReactNativeHost; import com.facebook.react.ReactPackage; import com.facebook.react.ReactPackageTurboModuleManagerDelegate; import com.facebook.react.bridge.JSIModulePackage; import com.facebook.react.bridge.JSIModuleProvider; import com.facebook.react.bridge.JSIModuleSpec; import com.facebook.react.bridge.JSIModuleType; import com.facebook.react.bridge.JavaScriptContextHolder; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.bridge.UIManager; import com.facebook.react.fabric.ComponentFactory; import com.facebook.react.fabric.CoreComponentsRegistry; import com.facebook.react.fabric.FabricJSIModuleProvider; import com.facebook.react.fabric.ReactNativeConfig; import com.facebook.react.uimanager.ViewManagerRegistry; import com.example.reactnativertmp.BuildConfig; import com.example.reactnativertmp.newarchitecture.components.MainComponentsRegistry; import com.example.reactnativertmp.newarchitecture.modules.MainApplicationTurboModuleManagerDelegate; import java.util.ArrayList; import java.util.List; /** * A {@link ReactNativeHost} that helps you load everything needed for the New Architecture, both * TurboModule delegates and the Fabric Renderer. * *

Please note that this class is used ONLY if you opt-in for the New Architecture (see the * `newArchEnabled` property). Is ignored otherwise. */ public class MainApplicationReactNativeHost extends ReactNativeHost { public MainApplicationReactNativeHost(Application application) { super(application); } @Override public boolean getUseDeveloperSupport() { return BuildConfig.DEBUG; } @Override protected List getPackages() { List packages = new PackageList(this).getPackages(); // Packages that cannot be autolinked yet can be added manually here, for example: // packages.add(new MyReactNativePackage()); // TurboModules must also be loaded here providing a valid TurboReactPackage implementation: // packages.add(new TurboReactPackage() { ... }); // If you have custom Fabric Components, their ViewManagers should also be loaded here // inside a ReactPackage. return packages; } @Override protected String getJSMainModuleName() { return "index"; } @NonNull @Override protected ReactPackageTurboModuleManagerDelegate.Builder getReactPackageTurboModuleManagerDelegateBuilder() { // Here we provide the ReactPackageTurboModuleManagerDelegate Builder. This is necessary // for the new architecture and to use TurboModules correctly. return new MainApplicationTurboModuleManagerDelegate.Builder(); } @Override protected JSIModulePackage getJSIModulePackage() { return new JSIModulePackage() { @Override public List getJSIModules( final ReactApplicationContext reactApplicationContext, final JavaScriptContextHolder jsContext) { final List specs = new ArrayList<>(); // Here we provide a new JSIModuleSpec that will be responsible of providing the // custom Fabric Components. specs.add( new JSIModuleSpec() { @Override public JSIModuleType getJSIModuleType() { return JSIModuleType.UIManager; } @Override public JSIModuleProvider getJSIModuleProvider() { final ComponentFactory componentFactory = new ComponentFactory(); CoreComponentsRegistry.register(componentFactory); // Here we register a Components Registry. // The one that is generated with the template contains no components // and just provides you the one from React Native core. MainComponentsRegistry.register(componentFactory); final ReactInstanceManager reactInstanceManager = getReactInstanceManager(); ViewManagerRegistry viewManagerRegistry = new ViewManagerRegistry( reactInstanceManager.getOrCreateViewManagers(reactApplicationContext)); return new FabricJSIModuleProvider( reactApplicationContext, componentFactory, ReactNativeConfig.DEFAULT_CONFIG, viewManagerRegistry); } }); return specs; } }; } } ================================================ FILE: example/android/app/src/main/java/com/example/reactnativertmp/newarchitecture/components/MainComponentsRegistry.java ================================================ package com.example.reactnativertmp.newarchitecture.components; import com.facebook.jni.HybridData; import com.facebook.proguard.annotations.DoNotStrip; import com.facebook.react.fabric.ComponentFactory; import com.facebook.soloader.SoLoader; /** * Class responsible to load the custom Fabric Components. This class has native methods and needs a * corresponding C++ implementation/header file to work correctly (already placed inside the jni/ * folder for you). * *

Please note that this class is used ONLY if you opt-in for the New Architecture (see the * `newArchEnabled` property). Is ignored otherwise. */ @DoNotStrip public class MainComponentsRegistry { static { SoLoader.loadLibrary("fabricjni"); } @DoNotStrip private final HybridData mHybridData; @DoNotStrip private native HybridData initHybrid(ComponentFactory componentFactory); @DoNotStrip private MainComponentsRegistry(ComponentFactory componentFactory) { mHybridData = initHybrid(componentFactory); } @DoNotStrip public static MainComponentsRegistry register(ComponentFactory componentFactory) { return new MainComponentsRegistry(componentFactory); } } ================================================ FILE: example/android/app/src/main/java/com/example/reactnativertmp/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.java ================================================ package com.example.reactnativertmp.newarchitecture.modules; import com.facebook.jni.HybridData; import com.facebook.react.ReactPackage; import com.facebook.react.ReactPackageTurboModuleManagerDelegate; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.soloader.SoLoader; import java.util.List; /** * Class responsible to load the TurboModules. This class has native methods and needs a * corresponding C++ implementation/header file to work correctly (already placed inside the jni/ * folder for you). * *

Please note that this class is used ONLY if you opt-in for the New Architecture (see the * `newArchEnabled` property). Is ignored otherwise. */ public class MainApplicationTurboModuleManagerDelegate extends ReactPackageTurboModuleManagerDelegate { private static volatile boolean sIsSoLibraryLoaded; protected MainApplicationTurboModuleManagerDelegate( ReactApplicationContext reactApplicationContext, List packages) { super(reactApplicationContext, packages); } protected native HybridData initHybrid(); native boolean canCreateTurboModule(String moduleName); public static class Builder extends ReactPackageTurboModuleManagerDelegate.Builder { protected MainApplicationTurboModuleManagerDelegate build( ReactApplicationContext context, List packages) { return new MainApplicationTurboModuleManagerDelegate(context, packages); } } @Override protected synchronized void maybeLoadOtherSoLibraries() { if (!sIsSoLibraryLoaded) { // If you change the name of your application .so file in the Android.mk file, // make sure you update the name here as well. SoLoader.loadLibrary("reactnativertmp_appmodules"); sIsSoLibraryLoaded = true; } } } ================================================ FILE: example/android/app/src/main/jni/CMakeLists.txt ================================================ cmake_minimum_required(VERSION 3.13) # Define the library name here. project(reactnativertmp_appmodules) # This file includes all the necessary to let you build your application with the New Architecture. include(${REACT_ANDROID_DIR}/cmake-utils/ReactNative-application.cmake) ================================================ FILE: example/android/app/src/main/jni/MainApplicationModuleProvider.cpp ================================================ #include "MainApplicationModuleProvider.h" #include #include namespace facebook { namespace react { std::shared_ptr MainApplicationModuleProvider( const std::string &moduleName, const JavaTurboModule::InitParams ¶ms) { // Here you can provide your own module provider for TurboModules coming from // either your application or from external libraries. The approach to follow // is similar to the following (for a library called `samplelibrary`: // // auto module = samplelibrary_ModuleProvider(moduleName, params); // if (module != nullptr) { // return module; // } // return rncore_ModuleProvider(moduleName, params); // Module providers autolinked by RN CLI auto rncli_module = rncli_ModuleProvider(moduleName, params); if (rncli_module != nullptr) { return rncli_module; } return rncore_ModuleProvider(moduleName, params); } } // namespace react } // namespace facebook ================================================ FILE: example/android/app/src/main/jni/MainApplicationModuleProvider.h ================================================ #pragma once #include #include #include namespace facebook { namespace react { std::shared_ptr MainApplicationModuleProvider( const std::string &moduleName, const JavaTurboModule::InitParams ¶ms); } // namespace react } // namespace facebook ================================================ FILE: example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.cpp ================================================ #include "MainApplicationTurboModuleManagerDelegate.h" #include "MainApplicationModuleProvider.h" namespace facebook { namespace react { jni::local_ref MainApplicationTurboModuleManagerDelegate::initHybrid( jni::alias_ref) { return makeCxxInstance(); } void MainApplicationTurboModuleManagerDelegate::registerNatives() { registerHybrid({ makeNativeMethod( "initHybrid", MainApplicationTurboModuleManagerDelegate::initHybrid), makeNativeMethod( "canCreateTurboModule", MainApplicationTurboModuleManagerDelegate::canCreateTurboModule), }); } std::shared_ptr MainApplicationTurboModuleManagerDelegate::getTurboModule( const std::string &name, const std::shared_ptr &jsInvoker) { // Not implemented yet: provide pure-C++ NativeModules here. return nullptr; } std::shared_ptr MainApplicationTurboModuleManagerDelegate::getTurboModule( const std::string &name, const JavaTurboModule::InitParams ¶ms) { return MainApplicationModuleProvider(name, params); } bool MainApplicationTurboModuleManagerDelegate::canCreateTurboModule( const std::string &name) { return getTurboModule(name, nullptr) != nullptr || getTurboModule(name, {.moduleName = name}) != nullptr; } } // namespace react } // namespace facebook ================================================ FILE: example/android/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.h ================================================ #include #include #include #include namespace facebook { namespace react { class MainApplicationTurboModuleManagerDelegate : public jni::HybridClass< MainApplicationTurboModuleManagerDelegate, TurboModuleManagerDelegate> { public: // Adapt it to the package you used for your Java class. static constexpr auto kJavaDescriptor = "Lcom/example/reactnativertmp/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate;"; static jni::local_ref initHybrid(jni::alias_ref); static void registerNatives(); std::shared_ptr getTurboModule( const std::string &name, const std::shared_ptr &jsInvoker) override; std::shared_ptr getTurboModule( const std::string &name, const JavaTurboModule::InitParams ¶ms) override; /** * Test-only method. Allows user to verify whether a TurboModule can be * created by instances of this class. */ bool canCreateTurboModule(const std::string &name); }; } // namespace react } // namespace facebook ================================================ FILE: example/android/app/src/main/jni/MainComponentsRegistry.cpp ================================================ #include "MainComponentsRegistry.h" #include #include #include #include #include namespace facebook { namespace react { MainComponentsRegistry::MainComponentsRegistry(ComponentFactory *delegate) {} std::shared_ptr MainComponentsRegistry::sharedProviderRegistry() { auto providerRegistry = CoreComponentsRegistry::sharedProviderRegistry(); // Autolinked providers registered by RN CLI rncli_registerProviders(providerRegistry); // Custom Fabric Components go here. You can register custom // components coming from your App or from 3rd party libraries here. // // providerRegistry->add(concreteComponentDescriptorProvider< // AocViewerComponentDescriptor>()); return providerRegistry; } jni::local_ref MainComponentsRegistry::initHybrid( jni::alias_ref, ComponentFactory *delegate) { auto instance = makeCxxInstance(delegate); auto buildRegistryFunction = [](EventDispatcher::Weak const &eventDispatcher, ContextContainer::Shared const &contextContainer) -> ComponentDescriptorRegistry::Shared { auto registry = MainComponentsRegistry::sharedProviderRegistry() ->createComponentDescriptorRegistry( {eventDispatcher, contextContainer}); auto mutableRegistry = std::const_pointer_cast(registry); mutableRegistry->setFallbackComponentDescriptor( std::make_shared( ComponentDescriptorParameters{ eventDispatcher, contextContainer, nullptr})); return registry; }; delegate->buildRegistryFunction = buildRegistryFunction; return instance; } void MainComponentsRegistry::registerNatives() { registerHybrid({ makeNativeMethod("initHybrid", MainComponentsRegistry::initHybrid), }); } } // namespace react } // namespace facebook ================================================ FILE: example/android/app/src/main/jni/MainComponentsRegistry.h ================================================ #pragma once #include #include #include #include namespace facebook { namespace react { class MainComponentsRegistry : public facebook::jni::HybridClass { public: // Adapt it to the package you used for your Java class. constexpr static auto kJavaDescriptor = "Lcom/example/reactnativertmp/newarchitecture/components/MainComponentsRegistry;"; static void registerNatives(); MainComponentsRegistry(ComponentFactory *delegate); private: static std::shared_ptr sharedProviderRegistry(); static jni::local_ref initHybrid( jni::alias_ref, ComponentFactory *delegate); }; } // namespace react } // namespace facebook ================================================ FILE: example/android/app/src/main/jni/OnLoad.cpp ================================================ #include #include "MainApplicationTurboModuleManagerDelegate.h" #include "MainComponentsRegistry.h" JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *) { return facebook::jni::initialize(vm, [] { facebook::react::MainApplicationTurboModuleManagerDelegate:: registerNatives(); facebook::react::MainComponentsRegistry::registerNatives(); }); } ================================================ FILE: example/android/app/src/main/res/drawable/rn_edit_text_material.xml ================================================ ================================================ FILE: example/android/app/src/main/res/values/strings.xml ================================================ Rtmp Example ================================================ FILE: example/android/app/src/main/res/values/styles.xml ================================================ ================================================ FILE: example/android/build.gradle ================================================ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext { buildToolsVersion = "31.0.0" minSdkVersion = 21 compileSdkVersion = 31 targetSdkVersion = 31 if (System.properties['os.arch'] == "aarch64") { // For M1 Users we need to use the NDK 24 which added support for aarch64 ndkVersion = "24.0.8215888" } else { // Otherwise we default to the side-by-side NDK version from AGP. ndkVersion = "21.4.7075529" } } repositories { google() mavenCentral() // jcenter() } dependencies { classpath("com.android.tools.build:gradle:7.2.1") classpath("com.facebook.react:react-native-gradle-plugin") classpath("de.undercouch:gradle-download-task:5.0.1") // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { // mavenLocal() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url("$rootDir/../node_modules/react-native/android") } maven { // Android JSC is installed from npm url("$rootDir/../node_modules/jsc-android/dist") } mavenCentral { // We don't want to fetch react-native from Maven Central as there are // older versions over there. content { excludeGroup "com.facebook.react" } } google() mavenCentral() // jcenter() maven { url 'https://www.jitpack.io' } } } ================================================ FILE: example/android/gradle/wrapper/gradle-wrapper.properties ================================================ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists ================================================ FILE: example/android/gradle.properties ================================================ # Project-wide Gradle settings. # IDE (e.g. Android Studio) users: # Gradle settings configured through the IDE *will override* # any settings specified in this file. # For more details on how to configure your build environment visit # http://www.gradle.org/docs/current/userguide/build_environment.html # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. # Default value: -Xmx512m -XX:MaxMetaspaceSize=256m org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # org.gradle.parallel=true android.useAndroidX=true android.enableJetifier=true FLIPPER_VERSION=0.125.0 # Use this property to specify which architecture you want to build. # You can also override it from the CLI using # ./gradlew -PreactNativeArchitectures=x86_64 reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64 # Use this property to enable support to the new architecture. # This will allow you to use TurboModules and the Fabric render in # your application. You should enable this flag either if you want # to write custom TurboModules/Fabric components OR use libraries that # are providing them. newArchEnabled=false ================================================ FILE: example/android/gradlew ================================================ #!/bin/sh # # Copyright © 2015-2021 the original authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # ############################################################################## # # Gradle start up script for POSIX generated by Gradle. # # Important for running: # # (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is # noncompliant, but you have some other compliant shell such as ksh or # bash, then to run this script, type that shell name before the whole # command line, like: # # ksh Gradle # # Busybox and similar reduced shells will NOT work, because this script # requires all of these POSIX shell features: # * functions; # * expansions «$var», «${var}», «${var:-default}», «${var+SET}», # «${var#prefix}», «${var%suffix}», and «$( cmd )»; # * compound commands having a testable exit status, especially «case»; # * various built-in commands including «command», «set», and «ulimit». # # Important for patching: # # (2) This script targets any POSIX shell, so it avoids extensions provided # by Bash, Ksh, etc; in particular arrays are avoided. # # The "traditional" practice of packing multiple parameters into a # space-separated string is a well documented source of bugs and security # problems, so this is (mostly) avoided, by progressively accumulating # options in "$@", and eventually passing that to Java. # # Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, # and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; # see the in-line comments for details. # # There are tweaks for specific operating systems such as AIX, CygWin, # Darwin, MinGW, and NonStop. # # (3) This script is generated from the Groovy template # https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt # within the Gradle project. # # You can find Gradle at https://github.com/gradle/gradle/. # ############################################################################## # Attempt to set APP_HOME # Resolve links: $0 may be a link app_path=$0 # Need this for daisy-chained symlinks. while APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path [ -h "$app_path" ] do ls=$( ls -ld "$app_path" ) link=${ls#*' -> '} case $link in #( /*) app_path=$link ;; #( *) app_path=$APP_HOME$link ;; esac done APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit APP_NAME="Gradle" APP_BASE_NAME=${0##*/} # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum warn () { echo "$*" } >&2 die () { echo echo "$*" echo exit 1 } >&2 # OS specific support (must be 'true' or 'false'). cygwin=false msys=false darwin=false nonstop=false case "$( uname )" in #( CYGWIN* ) cygwin=true ;; #( Darwin* ) darwin=true ;; #( MSYS* | MINGW* ) msys=true ;; #( NONSTOP* ) nonstop=true ;; esac CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar # Determine the Java command to use to start the JVM. if [ -n "$JAVA_HOME" ] ; then if [ -x "$JAVA_HOME/jre/sh/java" ] ; then # IBM's JDK on AIX uses strange locations for the executables JAVACMD=$JAVA_HOME/jre/sh/java else JAVACMD=$JAVA_HOME/bin/java fi if [ ! -x "$JAVACMD" ] ; then die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME Please set the JAVA_HOME variable in your environment to match the location of your Java installation." fi else JAVACMD=java which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_HOME variable in your environment to match the location of your Java installation." fi # Increase the maximum file descriptors if we can. if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then case $MAX_FD in #( max*) MAX_FD=$( ulimit -H -n ) || warn "Could not query maximum file descriptor limit" esac case $MAX_FD in #( '' | soft) :;; #( *) ulimit -n "$MAX_FD" || warn "Could not set maximum file descriptor limit to $MAX_FD" esac fi # Collect all arguments for the java command, stacking in reverse order: # * args from the command line # * the main class name # * -classpath # * -D...appname settings # * --module-path (only if needed) # * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. # For Cygwin or MSYS, switch paths to Windows format before running java if "$cygwin" || "$msys" ; then APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) JAVACMD=$( cygpath --unix "$JAVACMD" ) # Now convert the arguments - kludge to limit ourselves to /bin/sh for arg do if case $arg in #( -*) false ;; # don't mess with options #( /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath [ -e "$t" ] ;; #( *) false ;; esac then arg=$( cygpath --path --ignore --mixed "$arg" ) fi # Roll the args list around exactly as many times as the number of # args, so each arg winds up back in the position where it started, but # possibly modified. # # NB: a `for` loop captures its iteration list before it begins, so # changing the positional parameters here affects neither the number of # iterations, nor the values presented in `arg`. shift # remove old arg set -- "$@" "$arg" # push replacement arg done fi # Collect all arguments for the java command; # * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of # shell script including quotes and variable substitutions, so put them in # double quotes to make sure that they get re-expanded; and # * put everything else in single quotes, so that it's not re-expanded. set -- \ "-Dorg.gradle.appname=$APP_BASE_NAME" \ -classpath "$CLASSPATH" \ org.gradle.wrapper.GradleWrapperMain \ "$@" # Use "xargs" to parse quoted args. # # With -n1 it outputs one arg per line, with the quotes and backslashes removed. # # In Bash we could simply go: # # readarray ARGS < <( xargs -n1 <<<"$var" ) && # set -- "${ARGS[@]}" "$@" # # but POSIX shell has neither arrays nor command substitution, so instead we # post-process each arg (as a line of input to sed) to backslash-escape any # character that might be a shell metacharacter, then use eval to reverse # that process (while maintaining the separation between arguments), and wrap # the whole thing up as a single "set" statement. # # This will of course break if any of these variables contains a newline or # an unmatched quote. # eval "set -- $( printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | xargs -n1 | sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | tr '\n' ' ' )" '"$@"' exec "$JAVACMD" "$@" ================================================ FILE: example/android/gradlew.bat ================================================ @rem @rem Copyright 2015 the original author or authors. @rem @rem Licensed under the Apache License, Version 2.0 (the "License"); @rem you may not use this file except in compliance with the License. @rem You may obtain a copy of the License at @rem @rem https://www.apache.org/licenses/LICENSE-2.0 @rem @rem Unless required by applicable law or agreed to in writing, software @rem distributed under the License is distributed on an "AS IS" BASIS, @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @rem See the License for the specific language governing permissions and @rem limitations under the License. @rem @if "%DEBUG%" == "" @echo off @rem ########################################################################## @rem @rem Gradle startup script for Windows @rem @rem ########################################################################## @rem Set local scope for the variables with windows NT shell if "%OS%"=="Windows_NT" setlocal set DIRNAME=%~dp0 if "%DIRNAME%" == "" set DIRNAME=. set APP_BASE_NAME=%~n0 set APP_HOME=%DIRNAME% @rem Resolve any "." and ".." in APP_HOME to make it shorter. for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" @rem Find java.exe if defined JAVA_HOME goto findJavaFromJavaHome set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 if "%ERRORLEVEL%" == "0" goto execute echo. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. echo. echo Please set the JAVA_HOME variable in your environment to match the echo location of your Java installation. goto fail :findJavaFromJavaHome set JAVA_HOME=%JAVA_HOME:"=% set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto execute echo. echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% echo. echo Please set the JAVA_HOME variable in your environment to match the echo location of your Java installation. goto fail :execute @rem Setup the command line set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar @rem Execute Gradle "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* :end @rem End local scope for the variables with windows NT shell if "%ERRORLEVEL%"=="0" goto mainEnd :fail rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of rem the _cmd.exe /c_ return code! if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 exit /b 1 :mainEnd if "%OS%"=="Windows_NT" endlocal :omega ================================================ FILE: example/android/settings.gradle ================================================ rootProject.name = 'RtmpExample' apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) include ':app' includeBuild('../node_modules/react-native-gradle-plugin') if (settings.hasProperty("newArchEnabled") && settings.newArchEnabled == "true") { include(":ReactAndroid") project(":ReactAndroid").projectDir = file('../node_modules/react-native/ReactAndroid') include(":ReactAndroid:hermes-engine") project(":ReactAndroid:hermes-engine").projectDir = file('../node_modules/react-native/ReactAndroid/hermes-engine') } include ':reactnativertmp' project(':reactnativertmp').projectDir = new File(rootProject.projectDir, '../../android') ================================================ FILE: example/app.json ================================================ { "name": "RtmpExample", "displayName": "Rtmp Example" } ================================================ FILE: example/babel.config.js ================================================ const path = require('path'); const pak = require('../package.json'); module.exports = { presets: ['module:metro-react-native-babel-preset'], plugins: [ [ 'module-resolver', { extensions: ['.tsx', '.ts', '.js', '.json'], alias: { [pak.name]: path.join(__dirname, '..', pak.source), }, }, ], ], }; ================================================ FILE: example/index.tsx ================================================ import { AppRegistry } from 'react-native'; import App from './src/App'; import { name as appName } from './app.json'; AppRegistry.registerComponent(appName, () => App); ================================================ FILE: example/ios/.xcode.env ================================================ # This `.xcode.env` file is versioned and is used to source the environment # used when running script phases inside Xcode. # To customize your local environment, you can create an `.xcode.env.local` # file that is not versioned. # NODE_BINARY variable contains the PATH to the node executable. # # Customize the NODE_BINARY variable here. # For example, to use nvm with brew, add the following line # . "$(brew --prefix nvm)/nvm.sh" --no-use export NODE_BINARY=$(command -v node) ================================================ FILE: example/ios/File.swift ================================================ // // File.swift // RtmpExample // import Foundation ================================================ FILE: example/ios/Podfile ================================================ require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' platform :ios, '12.4' install! 'cocoapods', :deterministic_uuids => false target 'RtmpExample' do config = use_native_modules! # Flags change depending on the env values. flags = get_default_flags() use_react_native!( :path => config[:reactNativePath], # Hermes is now enabled by default. Disable by setting this flag to false. # Upcoming versions of React Native may rely on get_default_flags(), but # we make it explicit here to aid in the React Native upgrade process. :hermes_enabled => true, :fabric_enabled => flags[:fabric_enabled], # Enables Flipper. # # Note that if you have use_frameworks! enabled, Flipper will not work and # you should disable the next line. :flipper_configuration => FlipperConfiguration.enabled, # An absolute path to your application root. :app_path => "#{Pod::Config.instance.installation_root}/.." ) pod 'react-native-rtmp-publisher', :path => '../..' # Enables Flipper. # # Note that if you have use_frameworks! enabled, Flipper will not work and # you should disable these next few lines. # use_flipper!({ 'Flipper' => '0.80.0' }) # post_install do |installer| # flipper_post_install(installer) # end post_install do |installer| react_native_post_install(installer) installer.pods_project.build_configurations.each do |config| config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" end react_native_post_install( installer, # Set `mac_catalyst_enabled` to `true` in order to apply patches # necessary for Mac Catalyst builds :mac_catalyst_enabled => false ) __apply_Xcode_12_5_M1_post_install_workaround(installer) end end ================================================ FILE: example/ios/RtmpExample/AppDelegate.h ================================================ /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import #import @interface AppDelegate : UIResponder @property (nonatomic, strong) UIWindow *window; @end ================================================ FILE: example/ios/RtmpExample/AppDelegate.mm ================================================ #import "AppDelegate.h" #import #import #import #import #import #if RCT_NEW_ARCH_ENABLED #import #import #import #import #import #import #import static NSString *const kRNConcurrentRoot = @"concurrentRoot"; @interface AppDelegate () { RCTTurboModuleManager *_turboModuleManager; RCTSurfacePresenterBridgeAdapter *_bridgeAdapter; std::shared_ptr _reactNativeConfig; facebook::react::ContextContainer::Shared _contextContainer; } @end #endif @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { RCTAppSetupPrepareApp(application); RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; #if RCT_NEW_ARCH_ENABLED _contextContainer = std::make_shared(); _reactNativeConfig = std::make_shared(); _contextContainer->insert("ReactNativeConfig", _reactNativeConfig); _bridgeAdapter = [[RCTSurfacePresenterBridgeAdapter alloc] initWithBridge:bridge contextContainer:_contextContainer]; bridge.surfacePresenter = _bridgeAdapter.surfacePresenter; #endif NSDictionary *initProps = [self prepareInitialProps]; UIView *rootView = RCTAppSetupDefaultRootView(bridge, @"RtmpExample", initProps); if (@available(iOS 13.0, *)) { rootView.backgroundColor = [UIColor systemBackgroundColor]; } else { rootView.backgroundColor = [UIColor whiteColor]; } self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; UIViewController *rootViewController = [UIViewController new]; rootViewController.view = rootView; self.window.rootViewController = rootViewController; [self.window makeKeyAndVisible]; // Implementation for bluetooth headset AVAudioSession *session = AVAudioSession.sharedInstance; NSError *error = nil; if (@available(iOS 10.0, *)) { [session setCategory:AVAudioSessionCategoryPlayAndRecord mode:AVAudioSessionModeVoiceChat options:AVAudioSessionCategoryOptionDefaultToSpeaker|AVAudioSessionCategoryOptionAllowBluetooth error:&error]; } else { SEL selector = NSSelectorFromString(@"setCategory:withOptions:error:"); NSArray * optionsArray = [NSArray arrayWithObjects: [NSNumber numberWithInteger:AVAudioSessionCategoryOptionAllowBluetooth], [NSNumber numberWithInteger:AVAudioSessionCategoryOptionDefaultToSpeaker], nil]; [session performSelector:selector withObject: AVAudioSessionCategoryPlayAndRecord withObject: optionsArray ]; [session setMode:AVAudioSessionModeVoiceChat error:&error]; } [session setActive: YES error:&error]; // Implementation for bluetooth headset return YES; } /// This method controls whether the `concurrentRoot`feature of React18 is turned on or off. /// /// @see: https://reactjs.org/blog/2022/03/29/react-v18.html /// @note: This requires to be rendering on Fabric (i.e. on the New Architecture). /// @return: `true` if the `concurrentRoot` feture is enabled. Otherwise, it returns `false`. - (BOOL)concurrentRootEnabled { // Switch this bool to turn on and off the concurrent root return true; } - (NSDictionary *)prepareInitialProps { NSMutableDictionary *initProps = [NSMutableDictionary new]; #ifdef RCT_NEW_ARCH_ENABLED initProps[kRNConcurrentRoot] = @([self concurrentRootEnabled]); #endif return initProps; } - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge { #if DEBUG return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"]; #else return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; #endif } #if RCT_NEW_ARCH_ENABLED #pragma mark - RCTCxxBridgeDelegate - (std::unique_ptr)jsExecutorFactoryForBridge:(RCTBridge *)bridge { _turboModuleManager = [[RCTTurboModuleManager alloc] initWithBridge:bridge delegate:self jsInvoker:bridge.jsCallInvoker]; return RCTAppSetupDefaultJsExecutorFactory(bridge, _turboModuleManager); } #pragma mark RCTTurboModuleManagerDelegate - (Class)getModuleClassFromName:(const char *)name { return RCTCoreModulesClassProvider(name); } - (std::shared_ptr)getTurboModule:(const std::string &)name jsInvoker:(std::shared_ptr)jsInvoker { return nullptr; } - (std::shared_ptr)getTurboModule:(const std::string &)name initParams: (const facebook::react::ObjCTurboModule::InitParams &)params { return nullptr; } - (id)getModuleInstanceFromClass:(Class)moduleClass { return RCTAppSetupDefaultModuleFromClass(moduleClass); } #endif @end ================================================ FILE: example/ios/RtmpExample/Images.xcassets/AppIcon.appiconset/Contents.json ================================================ { "images": [ { "idiom": "iphone", "scale": "2x", "size": "20x20" }, { "idiom": "iphone", "scale": "3x", "size": "20x20" }, { "idiom": "iphone", "scale": "2x", "size": "29x29" }, { "idiom": "iphone", "scale": "3x", "size": "29x29" }, { "idiom": "iphone", "scale": "2x", "size": "40x40" }, { "idiom": "iphone", "scale": "3x", "size": "40x40" }, { "idiom": "iphone", "scale": "2x", "size": "60x60" }, { "idiom": "iphone", "scale": "3x", "size": "60x60" }, { "idiom": "ios-marketing", "scale": "1x", "size": "1024x1024" } ], "info": { "author": "xcode", "version": 1 } } ================================================ FILE: example/ios/RtmpExample/Images.xcassets/Contents.json ================================================ { "info" : { "version" : 1, "author" : "xcode" } } ================================================ FILE: example/ios/RtmpExample/Info.plist ================================================ CFBundleDevelopmentRegion en CFBundleDisplayName Rtmp Example CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName $(PRODUCT_NAME) CFBundlePackageType APPL CFBundleShortVersionString 1.0 CFBundleSignature ???? CFBundleVersion 1 LSRequiresIPhoneOS NSAppTransportSecurity NSExceptionDomains localhost NSExceptionAllowsInsecureHTTPLoads NSLocationWhenInUseUsageDescription UILaunchStoryboardName LaunchScreen UIRequiredDeviceCapabilities armv7 UISupportedInterfaceOrientations UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight NSCameraUsageDescription Publishing the video NSMicrophoneUsageDescription Publishing the audio UIViewControllerBasedStatusBarAppearance ================================================ FILE: example/ios/RtmpExample/LaunchScreen.storyboard ================================================ ================================================ FILE: example/ios/RtmpExample/main.m ================================================ /** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import #import "AppDelegate.h" int main(int argc, char *argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); } } ================================================ FILE: example/ios/RtmpExample-Bridging-Header.h ================================================ // // Use this file to import your target's public headers that you would like to expose to Swift. // ================================================ FILE: example/ios/RtmpExample.xcodeproj/project.pbxproj ================================================ // !$*UTF8*$! { archiveVersion = 1; classes = { }; objectVersion = 46; objects = { /* Begin PBXBuildFile section */ 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.mm */; }; 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 32194B3928AA67C80076996C /* main.jsbundle in Resources */ = {isa = PBXBuildFile; fileRef = 008F07F21AC5B25A0029DE68 /* main.jsbundle */; }; 4C39C56BAD484C67AA576FFA /* libPods-RtmpExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = CA3E69C5B9553B26FBA2DF04 /* libPods-RtmpExample.a */; }; 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; proxyType = 1; remoteGlobalIDString = 13B07F861A680F5B00A75B9A; remoteInfo = RtmpExample; }; /* End PBXContainerItemProxy section */ /* Begin PBXFileReference section */ 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 00E356EE1AD99517003FC87E /* RtmpExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RtmpExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 13B07F961A680F5B00A75B9A /* RtmpExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RtmpExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = RtmpExample/AppDelegate.h; sourceTree = ""; }; 13B07FB01A68108700A75B9A /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.mm; path = RtmpExample/AppDelegate.mm; sourceTree = ""; }; 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = RtmpExample/Images.xcassets; sourceTree = ""; }; 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = RtmpExample/Info.plist; sourceTree = ""; }; 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = RtmpExample/main.m; sourceTree = ""; }; 47F7ED3B7971BE374F7B8635 /* Pods-RtmpExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RtmpExample.debug.xcconfig"; path = "Target Support Files/Pods-RtmpExample/Pods-RtmpExample.debug.xcconfig"; sourceTree = ""; }; 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = RtmpExample/LaunchScreen.storyboard; sourceTree = ""; }; CA3E69C5B9553B26FBA2DF04 /* libPods-RtmpExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RtmpExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; E00ACF0FDA8BF921659E2F9A /* Pods-RtmpExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RtmpExample.release.xcconfig"; path = "Target Support Files/Pods-RtmpExample/Pods-RtmpExample.release.xcconfig"; sourceTree = ""; }; ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ 00E356EB1AD99517003FC87E /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( 4C39C56BAD484C67AA576FFA /* libPods-RtmpExample.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ 13B07FAE1A68108700A75B9A /* RtmpExample */ = { isa = PBXGroup; children = ( 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 13B07FB01A68108700A75B9A /* AppDelegate.mm */, 13B07FB51A68108700A75B9A /* Images.xcassets */, 13B07FB61A68108700A75B9A /* Info.plist */, 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */, 13B07FB71A68108700A75B9A /* main.m */, ); name = RtmpExample; sourceTree = ""; }; 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { isa = PBXGroup; children = ( ED297162215061F000B7C4FE /* JavaScriptCore.framework */, ED2971642150620600B7C4FE /* JavaScriptCore.framework */, CA3E69C5B9553B26FBA2DF04 /* libPods-RtmpExample.a */, ); name = Frameworks; sourceTree = ""; }; 6B9684456A2045ADE5A6E47E /* Pods */ = { isa = PBXGroup; children = ( 47F7ED3B7971BE374F7B8635 /* Pods-RtmpExample.debug.xcconfig */, E00ACF0FDA8BF921659E2F9A /* Pods-RtmpExample.release.xcconfig */, ); path = Pods; sourceTree = ""; }; 832341AE1AAA6A7D00B99B32 /* Libraries */ = { isa = PBXGroup; children = ( ); name = Libraries; sourceTree = ""; }; 83CBB9F61A601CBA00E9B192 = { isa = PBXGroup; children = ( 13B07FAE1A68108700A75B9A /* RtmpExample */, 832341AE1AAA6A7D00B99B32 /* Libraries */, 83CBBA001A601CBA00E9B192 /* Products */, 2D16E6871FA4F8E400B85C8A /* Frameworks */, 6B9684456A2045ADE5A6E47E /* Pods */, ); indentWidth = 2; sourceTree = ""; tabWidth = 2; usesTabs = 0; }; 83CBBA001A601CBA00E9B192 /* Products */ = { isa = PBXGroup; children = ( 13B07F961A680F5B00A75B9A /* RtmpExample.app */, 00E356EE1AD99517003FC87E /* RtmpExampleTests.xctest */, ); name = Products; sourceTree = ""; }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ 00E356ED1AD99517003FC87E /* RtmpExampleTests */ = { isa = PBXNativeTarget; buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "RtmpExampleTests" */; buildPhases = ( 00E356EA1AD99517003FC87E /* Sources */, 00E356EB1AD99517003FC87E /* Frameworks */, 00E356EC1AD99517003FC87E /* Resources */, ); buildRules = ( ); dependencies = ( 00E356F51AD99517003FC87E /* PBXTargetDependency */, ); name = RtmpExampleTests; productName = RtmpExampleTests; productReference = 00E356EE1AD99517003FC87E /* RtmpExampleTests.xctest */; productType = "com.apple.product-type.bundle.unit-test"; }; 13B07F861A680F5B00A75B9A /* RtmpExample */ = { isa = PBXNativeTarget; buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "RtmpExample" */; buildPhases = ( 4F0A6FC082772762E3E4C96C /* [CP] Check Pods Manifest.lock */, FD10A7F022414F080027D42C /* Start Packager */, 13B07F871A680F5B00A75B9A /* Sources */, 13B07F8C1A680F5B00A75B9A /* Frameworks */, 13B07F8E1A680F5B00A75B9A /* Resources */, 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, C1D60D28B925C94BD88E79D7 /* [CP] Copy Pods Resources */, 6087906DD584743E3F49BD7C /* [CP] Embed Pods Frameworks */, ); buildRules = ( ); dependencies = ( ); name = RtmpExample; productName = RtmpExample; productReference = 13B07F961A680F5B00A75B9A /* RtmpExample.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ 83CBB9F71A601CBA00E9B192 /* Project object */ = { isa = PBXProject; attributes = { LastUpgradeCheck = 1130; TargetAttributes = { 00E356ED1AD99517003FC87E = { CreatedOnToolsVersion = 6.2; DevelopmentTeam = 4336WAVNB4; TestTargetID = 13B07F861A680F5B00A75B9A; }; 13B07F861A680F5B00A75B9A = { DevelopmentTeam = 4336WAVNB4; LastSwiftMigration = 1120; }; }; }; buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "RtmpExample" */; compatibilityVersion = "Xcode 3.2"; developmentRegion = en; hasScannedForEncodings = 0; knownRegions = ( en, Base, ); mainGroup = 83CBB9F61A601CBA00E9B192; productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; projectDirPath = ""; projectRoot = ""; targets = ( 13B07F861A680F5B00A75B9A /* RtmpExample */, 00E356ED1AD99517003FC87E /* RtmpExampleTests */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ 00E356EC1AD99517003FC87E /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; 13B07F8E1A680F5B00A75B9A /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( 32194B3928AA67C80076996C /* main.jsbundle in Resources */, 81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */, 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( ); name = "Bundle React Native code and images"; outputPaths = ( ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; }; 4F0A6FC082772762E3E4C96C /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( ); inputPaths = ( "${PODS_PODFILE_DIR_PATH}/Podfile.lock", "${PODS_ROOT}/Manifest.lock", ); name = "[CP] Check Pods Manifest.lock"; outputFileListPaths = ( ); outputPaths = ( "$(DERIVED_FILE_DIR)/Pods-RtmpExample-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; showEnvVarsInLog = 0; }; 6087906DD584743E3F49BD7C /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( "${PODS_ROOT}/Target Support Files/Pods-RtmpExample/Pods-RtmpExample-frameworks.sh", "${PODS_XCFRAMEWORKS_BUILD_DIR}/Flipper-DoubleConversion/double-conversion.framework/double-conversion", "${PODS_XCFRAMEWORKS_BUILD_DIR}/Flipper-Glog/glog.framework/glog", "${PODS_XCFRAMEWORKS_BUILD_DIR}/OpenSSL-Universal/OpenSSL.framework/OpenSSL", "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/hermes.framework/hermes", ); name = "[CP] Embed Pods Frameworks"; outputPaths = ( "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/double-conversion.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/glog.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/OpenSSL.framework", "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/hermes.framework", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-RtmpExample/Pods-RtmpExample-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; C1D60D28B925C94BD88E79D7 /* [CP] Copy Pods Resources */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( "${PODS_ROOT}/Target Support Files/Pods-RtmpExample/Pods-RtmpExample-resources.sh", "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle", ); name = "[CP] Copy Pods Resources"; outputPaths = ( "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/AccessibilityResources.bundle", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-RtmpExample/Pods-RtmpExample-resources.sh\"\n"; showEnvVarsInLog = 0; }; FD10A7F022414F080027D42C /* Start Packager */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputFileListPaths = ( ); inputPaths = ( ); name = "Start Packager"; outputFileListPaths = ( ); outputPaths = ( ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; showEnvVarsInLog = 0; }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ 00E356EA1AD99517003FC87E /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( ); runOnlyForDeploymentPostprocessing = 0; }; 13B07F871A680F5B00A75B9A /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( 13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */, 13B07FC11A68108700A75B9A /* main.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 13B07F861A680F5B00A75B9A /* RtmpExample */; targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; }; /* End PBXTargetDependency section */ /* Begin XCBuildConfiguration section */ 00E356F61AD99517003FC87E /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; DEVELOPMENT_TEAM = 4336WAVNB4; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", "$(inherited)", ); INFOPLIST_FILE = RtmpExampleTests/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 11.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; OTHER_LDFLAGS = ( "-ObjC", "-lc++", "$(inherited)", ); PRODUCT_BUNDLE_IDENTIFIER = com.example.reactnativertmp; PRODUCT_NAME = "$(TARGET_NAME)"; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RtmpExample.app/RtmpExample"; }; name = Debug; }; 00E356F71AD99517003FC87E /* Release */ = { isa = XCBuildConfiguration; buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; COPY_PHASE_STRIP = NO; DEVELOPMENT_TEAM = 4336WAVNB4; DISABLE_MANUAL_TARGET_ORDER_BUILD_WARNING = YES; INFOPLIST_FILE = RtmpExampleTests/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 11.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; OTHER_LDFLAGS = ( "-ObjC", "-lc++", "$(inherited)", ); PRODUCT_BUNDLE_IDENTIFIER = com.example.reactnativertmp; PRODUCT_NAME = "$(TARGET_NAME)"; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RtmpExample.app/RtmpExample"; }; name = Release; }; 13B07F941A680F5B00A75B9A /* Debug */ = { isa = XCBuildConfiguration; baseConfigurationReference = 47F7ED3B7971BE374F7B8635 /* Pods-RtmpExample.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = 4336WAVNB4; ENABLE_BITCODE = NO; "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64; INFOPLIST_FILE = RtmpExample/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; OTHER_LDFLAGS = ( "$(inherited)", "-ObjC", "-lc++", ); PRODUCT_BUNDLE_IDENTIFIER = com.example.reactnativertmp; PRODUCT_NAME = RtmpExample; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; }; name = Debug; }; 13B07F951A680F5B00A75B9A /* Release */ = { isa = XCBuildConfiguration; baseConfigurationReference = E00ACF0FDA8BF921659E2F9A /* Pods-RtmpExample.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = 4336WAVNB4; "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = arm64; INFOPLIST_FILE = RtmpExample/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; OTHER_LDFLAGS = ( "$(inherited)", "-ObjC", "-lc++", ); PRODUCT_BUNDLE_IDENTIFIER = com.example.reactnativertmp; PRODUCT_NAME = RtmpExample; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; }; name = Release; }; 83CBBA201A601CBA00E9B192 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_CXX_LANGUAGE_STANDARD = "c++17"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; GCC_NO_COMMON_BLOCKS = YES; GCC_OPTIMIZATION_LEVEL = 0; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", "$(inherited)", ); GCC_SYMBOLS_PRIVATE_EXTERN = NO; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 11.0; LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; LIBRARY_SEARCH_PATHS = ( "$(SDKROOT)/usr/lib/swift", "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", "\"$(inherited)\"", ); MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; SDKROOT = iphoneos; }; name = Debug; }; 83CBBA211A601CBA00E9B192 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; CLANG_CXX_LANGUAGE_STANDARD = "c++17"; CLANG_CXX_LIBRARY = "libc++"; CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_ARC = YES; CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_COMMA = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; CLANG_WARN_EMPTY_BODY = YES; CLANG_WARN_ENUM_CONVERSION = YES; CLANG_WARN_INFINITE_RECURSION = YES; CLANG_WARN_INT_CONVERSION = YES; CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; CLANG_WARN_STRICT_PROTOTYPES = YES; CLANG_WARN_SUSPICIOUS_MOVE = YES; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; COPY_PHASE_STRIP = YES; DISABLE_MANUAL_TARGET_ORDER_BUILD_WARNING = YES; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 11.0; LD_RUNPATH_SEARCH_PATHS = "/usr/lib/swift $(inherited)"; LIBRARY_SEARCH_PATHS = ( "$(SDKROOT)/usr/lib/swift", "\"$(TOOLCHAIN_DIR)/usr/lib/swift/$(PLATFORM_NAME)\"", "\"$(inherited)\"", ); MTL_ENABLE_DEBUG_INFO = NO; REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native"; SDKROOT = iphoneos; VALIDATE_PRODUCT = YES; }; name = Release; }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "RtmpExampleTests" */ = { isa = XCConfigurationList; buildConfigurations = ( 00E356F61AD99517003FC87E /* Debug */, 00E356F71AD99517003FC87E /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "RtmpExample" */ = { isa = XCConfigurationList; buildConfigurations = ( 13B07F941A680F5B00A75B9A /* Debug */, 13B07F951A680F5B00A75B9A /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "RtmpExample" */ = { isa = XCConfigurationList; buildConfigurations = ( 83CBBA201A601CBA00E9B192 /* Debug */, 83CBBA211A601CBA00E9B192 /* Release */, ); defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; } ================================================ FILE: example/ios/RtmpExample.xcodeproj/xcshareddata/xcschemes/RtmpExample.xcscheme ================================================ ================================================ FILE: example/ios/RtmpExample.xcworkspace/contents.xcworkspacedata ================================================ ================================================ FILE: example/ios/RtmpExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist ================================================ IDEDidComputeMac32BitWarning ================================================ FILE: example/ios/assets/app.json ================================================ { "name": "RtmpExample", "displayName": "Rtmp Example" } ================================================ FILE: example/ios/main.jsbundle ================================================ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.now(),__DEV__=false,process=this.process||{};process.env=process.env||{};process.env.NODE_ENV=process.env.NODE_ENV||"production"; !(function(r){"use strict";r.__r=o,r.__d=function(r,i,n){if(null!=e[i])return;var o={dependencyMap:n,factory:r,hasError:!1,importedAll:t,importedDefault:t,isInitialized:!1,publicModule:{exports:{}}};e[i]=o},r.__c=n,r.__registerSegment=function(r,e){s[r]=e};var e=n(),t={},i={}.hasOwnProperty;function n(){return e=Object.create(null)}function o(r){var t=r,i=e[t];return i&&i.isInitialized?i.publicModule.exports:d(t,i)}function l(r){var i=r;if(e[i]&&e[i].importedDefault!==t)return e[i].importedDefault;var n=o(i),l=n&&n.__esModule?n.default:n;return e[i].importedDefault=l}function u(r){var n=r;if(e[n]&&e[n].importedAll!==t)return e[n].importedAll;var l,u=o(n);if(u&&u.__esModule)l=u;else{if(l={},u)for(var a in u)i.call(u,a)&&(l[a]=u[a]);l.default=u}return e[n].importedAll=l}o.importDefault=l,o.importAll=u;var a=!1;function d(e,t){if(!a&&r.ErrorUtils){var i;a=!0;try{i=v(e,t)}catch(e){r.ErrorUtils.reportFatalError(e)}return a=!1,i}return v(e,t)}var c=16,f=65535;function p(r){return{segmentId:r>>>c,localId:r&f}}o.unpackModuleId=p,o.packModuleId=function(r){return(r.segmentId<0){var n=p(t),a=n.segmentId,d=n.localId,c=s[a];null!=c&&(c(d),i=e[t])}var f=r.nativeRequire;if(!i&&f){var v=p(t),h=v.segmentId;f(v.localId,h),i=e[t]}if(!i)throw Error('Requiring unknown module "'+t+'".');if(i.hasError)throw m(t,i.error);i.isInitialized=!0;var I=i,g=I.factory,y=I.dependencyMap;try{var _=i.publicModule;return _.id=t,g(r,o,l,u,_,_.exports,y),i.factory=void 0,i.dependencyMap=void 0,_.exports}catch(r){throw i.hasError=!0,i.error=r,i.isInitialized=!1,i.publicModule.exports=void 0,r}}function m(r,e){return Error('Requiring module "'+r+'", which threw an exception: '+e)}})('undefined'!=typeof globalThis?globalThis:'undefined'!=typeof global?global:'undefined'!=typeof window?window:this); !(function(n){var e=(function(){function n(n,e){return n}function e(n){var e={};return n.forEach(function(n,r){e[n]=!0}),e}function r(n,r,u){if(n.formatValueCalls++,n.formatValueCalls>200)return"[TOO BIG formatValueCalls "+n.formatValueCalls+" exceeded limit of 200]";var f=t(n,r);if(f)return f;var c=Object.keys(r),s=e(c);if(d(r)&&(c.indexOf('message')>=0||c.indexOf('description')>=0))return o(r);if(0===c.length){if(v(r)){var g=r.name?': '+r.name:'';return n.stylize('[Function'+g+']','special')}if(p(r))return n.stylize(RegExp.prototype.toString.call(r),'regexp');if(y(r))return n.stylize(Date.prototype.toString.call(r),'date');if(d(r))return o(r)}var h,b,m='',j=!1,O=['{','}'];(h=r,Array.isArray(h)&&(j=!0,O=['[',']']),v(r))&&(m=' [Function'+(r.name?': '+r.name:'')+']');return p(r)&&(m=' '+RegExp.prototype.toString.call(r)),y(r)&&(m=' '+Date.prototype.toUTCString.call(r)),d(r)&&(m=' '+o(r)),0!==c.length||j&&0!=r.length?u<0?p(r)?n.stylize(RegExp.prototype.toString.call(r),'regexp'):n.stylize('[Object]','special'):(n.seen.push(r),b=j?i(n,r,u,s,c):c.map(function(e){return l(n,r,u,s,e,j)}),n.seen.pop(),a(b,m,O)):O[0]+m+O[1]}function t(n,e){if(s(e))return n.stylize('undefined','undefined');if('string'==typeof e){var r="'"+JSON.stringify(e).replace(/^"|"$/g,'').replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return n.stylize(r,'string')}return c(e)?n.stylize(''+e,'number'):u(e)?n.stylize(''+e,'boolean'):f(e)?n.stylize('null','null'):void 0}function o(n){return'['+Error.prototype.toString.call(n)+']'}function i(n,e,r,t,o){for(var i=[],a=0,u=e.length;a-1&&(u=l?u.split('\n').map(function(n){return' '+n}).join('\n').substr(2):'\n'+u.split('\n').map(function(n){return' '+n}).join('\n')):u=n.stylize('[Circular]','special')),s(a)){if(l&&i.match(/^\d+$/))return u;(a=JSON.stringify(''+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=n.stylize(a,'name')):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=n.stylize(a,'string'))}return a+': '+u}function a(n,e,r){return n.reduce(function(n,e){return 0,e.indexOf('\n')>=0&&0,n+e.replace(/\u001b\[\d\d?m/g,'').length+1},0)>60?r[0]+(''===e?'':e+'\n ')+' '+n.join(',\n ')+' '+r[1]:r[0]+e+' '+n.join(', ')+' '+r[1]}function u(n){return'boolean'==typeof n}function f(n){return null===n}function c(n){return'number'==typeof n}function s(n){return void 0===n}function p(n){return g(n)&&'[object RegExp]'===h(n)}function g(n){return'object'==typeof n&&null!==n}function y(n){return g(n)&&'[object Date]'===h(n)}function d(n){return g(n)&&('[object Error]'===h(n)||n instanceof Error)}function v(n){return'function'==typeof n}function h(n){return Object.prototype.toString.call(n)}function b(n,e){return Object.prototype.hasOwnProperty.call(n,e)}return function(e,t){return r({seen:[],formatValueCalls:0,stylize:n},e,t.depth)}})(),r='(index)',t={trace:0,info:1,warn:2,error:3},o=[];o[t.trace]='debug',o[t.info]='log',o[t.warn]='warning',o[t.error]='error';var i=1;function l(r){return function(){var l;l=1===arguments.length&&'string'==typeof arguments[0]?arguments[0]:Array.prototype.map.call(arguments,function(n){return e(n,{depth:10})}).join(', ');var a=arguments[0],u=r;'string'==typeof a&&'Warning: '===a.slice(0,9)&&u>=t.error&&(u=t.warn),n.__inspectorLog&&n.__inspectorLog(o[u],l,[].slice.call(arguments),i),s.length&&(l=p('',l)),n.nativeLoggingHook(l,u)}}function a(n,e){return Array.apply(null,Array(e)).map(function(){return n})}var u="\u2502",f="\u2510",c="\u2518",s=[];function p(n,e){return s.join('')+n+' '+(e||'')}if(n.nativeLoggingHook){n.console;n.console={error:l(t.error),info:l(t.info),log:l(t.info),warn:l(t.warn),trace:l(t.trace),debug:l(t.trace),table:function(e){if(!Array.isArray(e)){var o=e;for(var i in e=[],o)if(o.hasOwnProperty(i)){var l=o[i];l[r]=i,e.push(l)}}if(0!==e.length){var u=Object.keys(e[0]).sort(),f=[],c=[];u.forEach(function(n,r){c[r]=n.length;for(var t=0;t';return function(){for(var r=arguments.length,u=new Array(r),e=0;e0?l[l.length-1]:null,c=l.length>1?l[l.length-2]:null,v='function'==typeof s,h='function'==typeof c;h&&r(d[1])(v,'Cannot have a non-function arg after a function arg.');var y=v?s:null,C=h?c:null,M=v+h;if(l=l.slice(0,l.length-M),'sync'===o)return r(d[3]).callNativeSyncHook(n,t,l,C,y);r(d[3]).enqueueNativeCall(n,t,l,C,y)}).type=o,u}function u(n,t){return-1!==n.indexOf(t)}function l(n,t){return r(d[2])(t,n||{})}g.__fbGenNativeModule=n;var f={};if(g.nativeModuleProxy)f=g.nativeModuleProxy;else if(!g.nativeExtensions){var s=g.__fbBatchedBridgeConfig;r(d[1])(s,'__fbBatchedBridgeConfig is not set, cannot invoke native modules');var c=r(d[4]);(s.remoteModuleConfig||[]).forEach(function(o,u){var l=n(o,u);l&&(l.module?f[l.name]=l.module:c(f,l.name,{get:function(){return t(l.name,u)}}))})}m.exports=f},7,[8,6,14,15,26]); __d(function(g,r,i,a,m,e,d){m.exports=function(t,o){return r(d[0])(t)||r(d[1])(t,o)||r(d[2])(t,o)||r(d[3])()},m.exports.__esModule=!0,m.exports.default=m.exports},8,[9,10,11,13]); __d(function(g,r,i,a,m,e,d){m.exports=function(t){if(Array.isArray(t))return t},m.exports.__esModule=!0,m.exports.default=m.exports},9,[]); __d(function(g,r,i,a,m,e,d){m.exports=function(t,l){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,u,f=[],y=!0,p=!1;try{for(n=n.call(t);!(y=(o=n.next()).done)&&(f.push(o.value),!l||f.length!==l);y=!0);}catch(t){p=!0,u=t}finally{try{y||null==n.return||n.return()}finally{if(p)throw u}}return f}},m.exports.__esModule=!0,m.exports.default=m.exports},10,[]); __d(function(g,r,i,a,m,e,d){m.exports=function(t,o){if(t){if("string"==typeof t)return r(d[0])(t,o);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(d[0])(t,o):void 0}},m.exports.__esModule=!0,m.exports.default=m.exports},11,[12]); __d(function(g,r,i,a,m,e,d){m.exports=function(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,l=new Array(n);o=5){var o=this._queue;this._queue=[[],[],[],this._callID],this._lastFlush=h,g.nativeFlushQueueImmediate(o)}r(d[2]).counterEvent('pending_js_to_native_queue',this._queue[0].length),this.__spy&&this.__spy({type:1,module:t+'',method:l,args:u})}},{key:"createDebugLookup",value:function(t,l,u){}},{key:"setImmediatesCallback",value:function(t){this._immediatesCallback=t}},{key:"__guard",value:function(t){if(this.__shouldPauseOnThrow())t();else try{t()}catch(t){r(d[3]).reportFatalError(t)}}},{key:"__shouldPauseOnThrow",value:function(){return'undefined'!=typeof DebuggerInternal&&!0===DebuggerInternal.shouldPauseOnThrow}},{key:"__callImmediates",value:function(){r(d[2]).beginEvent('JSTimers.callImmediates()'),null!=this._immediatesCallback&&this._immediatesCallback(),r(d[2]).endEvent()}},{key:"__callFunction",value:function(t,l,u){this._lastFlush=Date.now(),this._eventLoopStartTime=this._lastFlush,this.__spy?r(d[2]).beginEvent(t+"."+l+"("+r(d[4]).default(u)+")"):r(d[2]).beginEvent(t+"."+l+"(...)"),this.__spy&&this.__spy({type:0,module:t,method:l,args:u});var s=this.getCallableModule(t);r(d[5])(!!s,'Module %s is not a registered callable module (calling %s)',t,l),r(d[5])(!!s[l],'Method %s does not exist on module %s',l,t),s[l].apply(s,u),r(d[2]).endEvent()}},{key:"__invokeCallback",value:function(t,l){this._lastFlush=Date.now(),this._eventLoopStartTime=this._lastFlush;var u=t>>>1,s=1&t?this._successCallbacks.get(u):this._failureCallbacks.get(u);s&&(this._successCallbacks.delete(u),this._failureCallbacks.delete(u),s.apply(void 0,r(d[6])(l)))}}],[{key:"spy",value:function(l){t.prototype.__spy=!0===l?function(t){console.log((0===t.type?'N->JS':'JS->N')+" : "+(t.module?t.module+'.':'')+t.method+"("+JSON.stringify(t.args)+")")}:!1===l?null:l}}]),t})();m.exports=t},16,[17,18,19,20,21,6,22]); __d(function(g,r,i,a,m,e,d){m.exports=function(o,n){if(!(o instanceof n))throw new TypeError("Cannot call a class as a function")},m.exports.__esModule=!0,m.exports.default=m.exports},17,[]); __d(function(g,r,i,a,m,e,d){function t(t,o){for(var n=0;n=t.length?{done:!0}:{done:!1,value:t[f++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,n){if(t){if("string"==typeof t)return u(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?u(t,n):void 0}}function u(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,u=new Array(n);oc+"...(truncated)...".length?u.substring(0,c)+"...(truncated)...":u}if('object'!=typeof u||null===u)return u;var l=u;if(Array.isArray(u))b.length>=f?l="[ ... array with "+u.length+" values ... ]":u.length>y&&(l=u.slice(0,y).concat(["... extra "+(u.length-y)+" values truncated ..."]));else{(0,t.default)('object'==typeof u,'This was already found earlier');var s=Object.keys(u);if(b.length>=f)l="{ ... object with "+s.length+" keys ... }";else if(s.length>v){l={};for(var h,I=n(s.slice(0,v));!(h=I()).done;){var p=h.value;l[p]=u[p]}l['...(truncated keys)...']=s.length-v}}return b.unshift(l),l}return function(t){if(void 0===t)return'undefined';if(null===t)return'null';if('function'==typeof t)try{return t.toString()}catch(t){return'[function unknown]'}else{if(t instanceof Error)return t.name+': '+t.message;try{var n=JSON.stringify(t,I);return void 0===n?'["'+typeof t+'" failed to stringify]':n}catch(n){if('function'==typeof t.toString)try{return t.toString()}catch(t){}}}return'["'+typeof t+'" failed to stringify]'}}var l=f({maxDepth:10,maxStringLimit:100,maxArrayLimit:50,maxObjectKeysLimit:50});e.default=l},21,[3,6]); __d(function(g,r,i,a,m,e,d){m.exports=function(t){return r(d[0])(t)||r(d[1])(t)||r(d[2])(t)||r(d[3])()},m.exports.__esModule=!0,m.exports.default=m.exports},22,[23,24,11,25]); __d(function(g,r,i,a,m,e,d){m.exports=function(t){if(Array.isArray(t))return r(d[0])(t)},m.exports.__esModule=!0,m.exports.default=m.exports},23,[12]); __d(function(g,r,i,a,m,e,d){m.exports=function(o){if("undefined"!=typeof Symbol&&null!=o[Symbol.iterator]||null!=o["@@iterator"])return Array.from(o)},m.exports.__esModule=!0,m.exports.default=m.exports},24,[]); __d(function(g,r,i,a,m,e,d){m.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},m.exports.__esModule=!0,m.exports.default=m.exports},25,[]); __d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t,n,u){var b,c=u.get,o=!1!==u.enumerable,f=!1!==u.writable,l=!1;function s(u){b=u,l=!0,Object.defineProperty(t,n,{value:u,configurable:!0,enumerable:o,writable:f})}Object.defineProperty(t,n,{get:function(){return l||(l=!0,s(c())),b},set:s,configurable:!0,enumerable:o})}},26,[]); __d(function(g,r,i,a,m,e,d){'use strict';r(d[0]),r(d[1]),m.exports=r(d[2])},27,[28,30,31]); __d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0]),r(d[0]).prototype.done=function(t,n){(arguments.length?this.then.apply(this,arguments):this).then(null,function(t){setTimeout(function(){throw t},0)})}},28,[29]); __d(function(g,r,i,a,m,e,d){'use strict';function n(){}var t=null,o={};function u(n){try{return n.then}catch(n){return t=n,o}}function f(n,u){try{return n(u)}catch(n){return t=n,o}}function c(n,u,f){try{n(u,f)}catch(n){return t=n,o}}function _(t){if('object'!=typeof this)throw new TypeError('Promises must be constructed via new');if('function'!=typeof t)throw new TypeError('Promise constructor\'s argument is not a function');this._U=0,this._V=0,this._W=null,this._X=null,t!==n&&X(t,this)}function s(t,o,u){return new t.constructor(function(f,c){var s=new _(n);s.then(f,c),l(t,new w(o,u,s))})}function l(n,t){for(;3===n._V;)n=n._W;if(_._Y&&_._Y(n),0===n._V)return 0===n._U?(n._U=1,void(n._X=t)):1===n._U?(n._U=2,void(n._X=[n._X,t])):void n._X.push(t);h(n,t)}function h(n,u){setImmediate(function(){var c=1===n._V?u.onFulfilled:u.onRejected;if(null!==c){var _=f(c,n._W);_===o?v(u.promise,t):p(u.promise,_)}else 1===n._V?p(u.promise,n._W):v(u.promise,n._W)})}function p(n,f){if(f===n)return v(n,new TypeError('A promise cannot be resolved with itself.'));if(f&&('object'==typeof f||'function'==typeof f)){var c=u(f);if(c===o)return v(n,t);if(c===n.then&&f instanceof _)return n._V=3,n._W=f,void y(n);if('function'==typeof c)return void X(c.bind(f),n)}n._V=1,n._W=f,y(n)}function v(n,t){n._V=2,n._W=t,_._Z&&_._Z(n,t),y(n)}function y(n){if(1===n._U&&(l(n,n._X),n._X=null),2===n._U){for(var t=0;tq.length&&q.push(t)}function M(t,u,f,c){var l=typeof t;"undefined"!==l&&"boolean"!==l||(t=null);var s=!1;if(null===t)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case n:case o:s=!0}}if(s)return f(c,t,""===u?"."+V(t,0):u),1;if(s=0,u=""===u?".":u+":",Array.isArray(t))for(var p=0;p0&&(A=new Set,z(-1))},e.clearErrors=function(){var t=Array.from(A).filter(function(t){return'error'!==t.level&&'fatal'!==t.level});t.length!==A.size&&(A=new Set(t),z(-1))},e.clearWarnings=function(){var t=Array.from(A).filter(function(t){return'warn'!==t.level});t.length!==A.size&&(A=new Set(t),z(-1),P())},e.dismiss=B,e.getAppInfo=function(){return null!=x?x():null},e.isDisabled=function(){return I},e.isLogBoxErrorMessage=function(t){return'string'==typeof t&&t.includes(_)},e.isMessageIgnored=M,e.observe=C,e.reportLogBoxError=j,e.retrySymbolicateLogNow=function(t){t.retrySymbolicate(function(){P()})},e.setAppInfo=function(t){x=t},e.setDisabled=function(t){if(t===I)return;I=t,P()},e.setSelectedLog=z,e.setWarningFilter=function(t){D=t},e.symbolicateLogLazy=function(t){t.symbolicate()},e.symbolicateLogNow=function(t){t.symbolicate(function(){P()})},e.withSubscription=function(s){return(function(f){(0,o.default)(b,f);var p,y,h=(p=b,y=v(),function(){var t,n=(0,l.default)(p);if(y){var o=(0,l.default)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,u.default)(this,t)});function b(){var n;(0,t.default)(this,b);for(var o=arguments.length,u=new Array(o),l=0;l=l.length-1&&z(o-1),B(l[o]))},n._handleMinimize=function(){z(-1)},n._handleSetSelectedLog=function(t){z(t)},n}return(0,n.default)(b,[{key:"componentDidCatch",value:function(t,n){j(t,n.componentStack)}},{key:"render",value:function(){return this.state.hasError?null:c.createElement(s,{logs:Array.from(this.state.logs),isDisabled:this.state.isDisabled,selectedLogIndex:this.state.selectedLogIndex})}},{key:"componentDidMount",value:function(){var t=this;this._subscription=C(function(n){t.setState(n)})}},{key:"componentWillUnmount",value:function(){null!=this._subscription&&this._subscription.unsubscribe()}}],[{key:"getDerivedStateFromError",value:function(){return{hasError:!0}}}]),b})(c.Component)};var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),l=r(d[0])(r(d[5])),c=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=y(n);if(o&&o.has(t))return o.get(t);var u={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var s=l?Object.getOwnPropertyDescriptor(t,c):null;s&&(s.get||s.set)?Object.defineProperty(u,c,s):u[c]=t[c]}u.default=t,o&&o.set(t,u);return u})(r(d[6])),s=r(d[0])(r(d[7])),f=r(d[0])(r(d[8])),p=r(d[0])(r(d[9]));function y(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(y=function(t){return t?o:n})(t)}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function h(t,n){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=b(t))||n&&t&&"number"==typeof t.length){o&&(t=o);var u=0;return function(){return u>=t.length?{done:!0}:{done:!1,value:t[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function b(t,n){if(t){if("string"==typeof t)return w(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?w(t,n):void 0}}function w(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,u=new Array(n);o=0;){if('syntax'===u[l].level){o=l;break}l-=1}k=o,P(),p.default&&setTimeout(function(){n<0&&o>=0?p.default.show():n>=0&&o<0&&p.default.hide()},0)}function B(t){A.has(t)&&(A.delete(t),P())}function C(t){var n={observer:t};return S.add(n),t(O()),{unsubscribe:function(){S.delete(n)}}}},59,[3,17,18,37,34,33,46,60,69,72,54,73]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),s=r(d[0])(r(d[2])),n=(function(t,s){if(!s&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=l(s);if(n&&n.has(t))return n.get(t);var u={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var y=o?Object.getOwnPropertyDescriptor(t,c):null;y&&(y.get||y.set)?Object.defineProperty(u,c,y):u[c]=t[c]}u.default=t,n&&n.set(t,u);return u})(r(d[3]));function l(t){if("function"!=typeof WeakMap)return null;var s=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:s})(t)}var u=(function(){function l(s){(0,t.default)(this,l),this.symbolicated={error:null,stack:null,status:'NONE'},this.level=s.level,this.type=s.type,this.message=s.message,this.stack=s.stack,this.category=s.category,this.componentStack=s.componentStack,this.codeFrame=s.codeFrame,this.isComponentError=s.isComponentError,this.count=1}return(0,s.default)(l,[{key:"incrementCount",value:function(){this.count+=1}},{key:"getAvailableStack",value:function(){return'COMPLETE'===this.symbolicated.status?this.symbolicated.stack:this.stack}},{key:"retrySymbolicate",value:function(t){'COMPLETE'!==this.symbolicated.status&&(n.deleteStack(this.stack),this.handleSymbolicate(t))}},{key:"symbolicate",value:function(t){'NONE'===this.symbolicated.status&&this.handleSymbolicate(t)}},{key:"handleSymbolicate",value:function(t){var s=this;'PENDING'!==this.symbolicated.status&&(this.updateStatus(null,null,null,t),n.symbolicate(this.stack).then(function(n){s.updateStatus(null,null==n?void 0:n.stack,null==n?void 0:n.codeFrame,t)},function(n){s.updateStatus(n,null,null,t)}))}},{key:"updateStatus",value:function(t,s,n,l){var u=this.symbolicated.status;null!=t?this.symbolicated={error:t,stack:null,status:'FAILED'}:null!=s?(n&&(this.codeFrame=n),this.symbolicated={error:null,stack:s,status:'COMPLETE'}):this.symbolicated={error:null,stack:null,status:'PENDING'},l&&u!==this.symbolicated.status&&l(this.symbolicated.status)}}]),l})();e.default=u},60,[3,17,18,61]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.deleteStack=function(t){c.delete(t)},e.symbolicate=function(n){var o=c.get(n);null==o&&(o=(0,t.default)(n).then(u),c.set(n,o));return o};var t=r(d[0])(r(d[1]));function n(t,n){var l="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(l)return(l=l.call(t)).next.bind(l);if(Array.isArray(t)||(l=o(t))||n&&t&&"number"==typeof t.length){l&&(t=l);var c=0;return function(){return c>=t.length?{done:!0}:{done:!1,value:t[c++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,n){if(t){if("string"==typeof t)return l(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?l(t,n):void 0}}function l(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,l=new Array(n);o=0;--h){var f=this.tryEntries[h],l=f.completion;if("root"===f.tryLoc)return u("end");if(f.tryLoc<=this.prev){var s=c.call(f,"catchLoc"),p=c.call(f,"finallyLoc");if(s&&p){if(this.prev=0;--o){var u=this.tryEntries[o];if(u.tryLoc<=this.prev&&c.call(u,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),R(o),b}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var c=o.completion;if("throw"===c.type){var u=c.arg;R(o)}return u}}throw new Error("illegal catch attempt")},delegateYield:function(t,o,c){return this.delegate={iterator:Y(t),resultName:o,nextLoc:c},"next"===this.method&&(this.arg=n),b}},t})("object"==typeof m?m.exports:{});try{regeneratorRuntime=t}catch(n){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},64,[]); __d(function(g,r,i,a,m,e,d){'use strict';function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).getEnforcing('SourceCode');e.default=n},65,[5]); __d(function(g,r,i,a,m,e,d){'use strict';r(d[0]),m.exports={fetch:fetch,Headers:Headers,Request:Request,Response:Response}},66,[67]); __d(function(g,r,i,a,m,e,d){var t,o;t=this,o=function(t){'use strict';var o='undefined'!=typeof globalThis&&globalThis||'undefined'!=typeof self&&self||void 0!==o&&o,n={searchParams:'URLSearchParams'in o,iterable:'Symbol'in o&&'iterator'in Symbol,blob:'FileReader'in o&&'Blob'in o&&(function(){try{return new Blob,!0}catch(t){return!1}})(),formData:'FormData'in o,arrayBuffer:'ArrayBuffer'in o};if(n.arrayBuffer)var s=['[object Int8Array]','[object Uint8Array]','[object Uint8ClampedArray]','[object Int16Array]','[object Uint16Array]','[object Int32Array]','[object Uint32Array]','[object Float32Array]','[object Float64Array]'],h=ArrayBuffer.isView||function(t){return t&&s.indexOf(Object.prototype.toString.call(t))>-1};function f(t){if('string'!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||''===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function u(t){return'string'!=typeof t&&(t=String(t)),t}function c(t){var o={next:function(){var o=t.shift();return{done:void 0===o,value:o}}};return n.iterable&&(o[Symbol.iterator]=function(){return o}),o}function y(t){this.map={},t instanceof y?t.forEach(function(t,o){this.append(o,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(o){this.append(o,t[o])},this)}function l(t){if(t.bodyUsed)return Promise.reject(new TypeError('Already read'));t.bodyUsed=!0}function p(t){return new Promise(function(o,n){t.onload=function(){o(t.result)},t.onerror=function(){n(t.error)}})}function b(t){var o=new FileReader,n=p(o);return o.readAsArrayBuffer(t),n}function w(t){for(var o=new Uint8Array(t),n=new Array(o.length),s=0;s-1?s:n),this.mode=o.mode||this.mode||null,this.signal=o.signal||this.signal,this.referrer=null,('GET'===this.method||'HEAD'===this.method)&&h)throw new TypeError('Body not allowed for GET or HEAD requests');if(this._initBody(h),!('GET'!==this.method&&'HEAD'!==this.method||'no-store'!==o.cache&&'no-cache'!==o.cache)){var f=/([?&])_=[^&]*/;if(f.test(this.url))this.url=this.url.replace(f,'$1_='+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?'&':'?')+'_='+(new Date).getTime()}}}function A(t){var o=new FormData;return t.trim().split('&').forEach(function(t){if(t){var n=t.split('='),s=n.shift().replace(/\+/g,' '),h=n.join('=').replace(/\+/g,' ');o.append(decodeURIComponent(s),decodeURIComponent(h))}}),o}function B(t,o){if(!(this instanceof B))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');o||(o={}),this.type='default',this.status=void 0===o.status?200:o.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===o.statusText?'':''+o.statusText,this.headers=new y(o.headers),this.url=o.url||'',this._initBody(t)}T.prototype.clone=function(){return new T(this,{body:this._bodyInit})},_.call(T.prototype),_.call(B.prototype),B.prototype.clone=function(){return new B(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},B.error=function(){var t=new B(null,{status:0,statusText:''});return t.type='error',t};var x=[301,302,303,307,308];B.redirect=function(t,o){if(-1===x.indexOf(o))throw new RangeError('Invalid status code');return new B(null,{status:o,headers:{location:t}})},t.DOMException=o.DOMException;try{new t.DOMException}catch(o){t.DOMException=function(t,o){this.message=t,this.name=o;var n=Error(t);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function O(s,h){return new Promise(function(f,c){var l=new T(s,h);if(l.signal&&l.signal.aborted)return c(new t.DOMException('Aborted','AbortError'));var p=new XMLHttpRequest;function b(){p.abort()}p.onload=function(){var t,o,n={status:p.status,statusText:p.statusText,headers:(t=p.getAllResponseHeaders()||'',o=new y,t.replace(/\r?\n[\t ]+/g,' ').split('\r').map(function(t){return 0===t.indexOf('\n')?t.substr(1,t.length):t}).forEach(function(t){var n=t.split(':'),s=n.shift().trim();if(s){var h=n.join(':').trim();o.append(s,h)}}),o)};n.url='responseURL'in p?p.responseURL:n.headers.get('X-Request-URL');var s='response'in p?p.response:p.responseText;setTimeout(function(){f(new B(s,n))},0)},p.onerror=function(){setTimeout(function(){c(new TypeError('Network request failed'))},0)},p.ontimeout=function(){setTimeout(function(){c(new TypeError('Network request failed'))},0)},p.onabort=function(){setTimeout(function(){c(new t.DOMException('Aborted','AbortError'))},0)},p.open(l.method,(function(t){try{return''===t&&o.location.href?o.location.href:t}catch(o){return t}})(l.url),!0),'include'===l.credentials?p.withCredentials=!0:'omit'===l.credentials&&(p.withCredentials=!1),'responseType'in p&&(n.blob?p.responseType='blob':n.arrayBuffer&&l.headers.get('Content-Type')&&-1!==l.headers.get('Content-Type').indexOf('application/octet-stream')&&(p.responseType='arraybuffer')),!h||'object'!=typeof h.headers||h.headers instanceof y?l.headers.forEach(function(t,o){p.setRequestHeader(o,t)}):Object.getOwnPropertyNames(h.headers).forEach(function(t){p.setRequestHeader(t,u(h.headers[t]))}),l.signal&&(l.signal.addEventListener('abort',b),p.onreadystatechange=function(){4===p.readyState&&l.signal.removeEventListener('abort',b)}),p.send(void 0===l._bodyInit?null:l._bodyInit)})}O.polyfill=!0,o.fetch||(o.fetch=O,o.Headers=y,o.Request=T,o.Response=B),t.Headers=y,t.Request=T,t.Response=B,t.fetch=O,Object.defineProperty(t,'__esModule',{value:!0})},'object'==typeof e&&void 0!==m?o(e):'function'==typeof define&&define.amd?define(['exports'],o):o(t.WHATWGFetch={})},67,[]); __d(function(g,r,i,a,m,e,d){'use strict';var t,n=r(d[0])(r(d[1])),l='http://localhost:8081/';m.exports=function(){if(void 0===t){var o=n.default.getConstants().scriptURL.match(/^https?:\/\/.*?\//);t=o?o[0]:null}return{url:t||l,bundleLoadedFromServer:null!==t}}},68,[3,65]); __d(function(g,r,i,a,m,e,d){'use strict';function t(t,o){var u="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(u)return(u=u.call(t)).next.bind(u);if(Array.isArray(t)||(u=n(t))||o&&t&&"number"==typeof t.length){u&&(t=u);var l=0;return function(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return o(t,n);var u=Object.prototype.toString.call(t).slice(8,-1);return"Object"===u&&t.constructor&&(u=t.constructor.name),"Map"===u||"Set"===u?Array.from(t):"Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?o(t,n):void 0}}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,u=new Array(n);o|\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,u=/\((\S*)(?::(\d+))(?::(\d+))\)/;function t(t){var o=l.exec(t);if(!o)return null;var c=o[2]&&0===o[2].indexOf('native'),s=o[2]&&0===o[2].indexOf('eval'),v=u.exec(o[2]);return s&&null!=v&&(o[2]=v[1],o[3]=v[2],o[4]=v[3]),{file:c?null:o[2],methodName:o[1]||n,arguments:c?[o[2]]:[],lineNumber:o[3]?+o[3]:null,column:o[4]?+o[4]:null}}var o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function c(l){var u=o.exec(l);return u?{file:u[2],methodName:u[1]||n,arguments:[],lineNumber:+u[3],column:u[4]?+u[4]:null}:null}var s=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,v=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function f(l){var u=s.exec(l);if(!u)return null;var t=u[3]&&u[3].indexOf(' > eval')>-1,o=v.exec(u[3]);return t&&null!=o&&(u[3]=o[1],u[4]=o[2],u[5]=null),{file:u[3],methodName:u[1]||n,arguments:u[2]?u[2].split(','):[],lineNumber:u[4]?+u[4]:null,column:u[5]?+u[5]:null}}var b=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;function p(l){var u=b.exec(l);return u?{file:u[3],methodName:u[1]||n,arguments:[],lineNumber:+u[4],column:u[5]?+u[5]:null}:null}var x=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;function h(l){var u=x.exec(l);return u?{file:u[2],methodName:u[1]||n,arguments:[],lineNumber:+u[3],column:u[4]?+u[4]:null}:null}e.parse=function(n){return n.split('\n').reduce(function(n,l){var u=t(l)||c(l)||f(l)||h(l)||p(l);return u&&n.push(u),n},[])}},70,[]); __d(function(g,r,i,a,m,e,d){'use strict';var t=/^ {4}at (.+?)(?: \((native)\)?| \((address at )?(.+?):(\d+):(\d+)\))$/,n=/^ {4}... skipping (\d+) frames$/;function s(s){var u=s.match(t);if(u)return{type:'FRAME',functionName:u[1],location:'native'===u[2]?{type:'NATIVE'}:'address at '===u[3]?{type:'BYTECODE',sourceUrl:u[4],line1Based:Number.parseInt(u[5],10),virtualOffset0Based:Number.parseInt(u[6],10)}:{type:'SOURCE',sourceUrl:u[4],line1Based:Number.parseInt(u[5],10),column1Based:Number.parseInt(u[6],10)}};var p=s.match(n);return p?{type:'SKIPPED',count:Number.parseInt(p[1],10)}:void 0}m.exports=function(t){for(var n=t.split(/\n/),u=[],p=-1,o=0;o=u.length?{done:!0}:{done:!1,value:u[F++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function D(u,t){if(u){if("string"==typeof u)return l(u,t);var n=Object.prototype.toString.call(u).slice(8,-1);return"Object"===n&&u.constructor&&(n=u.constructor.name),"Map"===n||"Set"===n?Array.from(u):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(u,t):void 0}}function l(u,t){(null==t||t>u.length)&&(t=u.length);for(var n=0,F=new Array(t);n]{2}[\t-\r 0-9\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+ \|(?:[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+|\x1B(?:[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)/,p=/^(?:InternalError Metro has encountered an error:) ((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*): ((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*) \(([0-9]+):([0-9]+)\)\n\n((?:[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)/,C=F.default.BOM+'%s';function v(u){var t=[],F=[],D=[],l=(0,n.default)(u);if('string'==typeof l[0]){for(var c,f=String(l.shift()).split('%s'),p=f.length-1,v=l.splice(0,p),B='',E='',y=0,h=s(f);!(c=h()).done;){var x=c.value;if(B+=x,E+=x,y0){var D=t[t.length-1];'string'==typeof D&&/\s{4}in/.test(D)&&((F=t.slice(0,-1))[0]=n.slice(0,-2),o=B(D))}if(0===o.length)for(var l,c=s(t);!(l=c()).done;){var f=l.value;if('string'==typeof f&&/\n {4}in /.exec(f)){var p=f.indexOf('\n in ');p>0&&F.push(f.slice(0,p)),o=B(f)}else F.push(f)}return(0,u.default)({},v(F),{componentStack:o})}},73,[3,14,8,22,74,21]); __d(function(g,r,i,a,m,e,d){'use strict';var A=r(d[0])({BOM:"\ufeff",BULLET:"\u2022",BULLET_SP:"\xa0\u2022\xa0",MIDDOT:"\xb7",MIDDOT_SP:"\xa0\xb7\xa0",MIDDOT_KATAKANA:"\u30fb",MDASH:"\u2014",MDASH_SP:"\xa0\u2014\xa0",NDASH:"\u2013",NDASH_SP:"\xa0\u2013\xa0",NBSP:"\xa0",PIZZA:"\ud83c\udf55",TRIANGLE_LEFT:"\u25c0",TRIANGLE_RIGHT:"\u25b6"});m.exports=A},74,[75]); __d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t){return t}},75,[]); __d(function(g,r,i,a,m,e,d){'use strict';function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,p=new WeakMap;return(t=function(t){return t?p:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var p=t(o);if(p&&p.has(n))return p.get(n);var c={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in n)if("default"!==u&&Object.prototype.hasOwnProperty.call(n,u)){var s=f?Object.getOwnPropertyDescriptor(n,u):null;s&&(s.get||s.set)?Object.defineProperty(c,u,s):c[u]=n[u]}c.default=n,p&&p.set(n,c);return c})(r(d[0])).getEnforcing('ExceptionsManager'),o={reportFatalException:function(t,o,p){n.reportFatalException(t,o,p)},reportSoftException:function(t,o,p){n.reportSoftException(t,o,p)},updateExceptionMessage:function(t,o,p){n.updateExceptionMessage(t,o,p)},dismissRedbox:function(){},reportException:function(t){n.reportException?n.reportException(t):t.isFatal?o.reportFatalException(t.message,t.stack,t.id):o.reportSoftException(t.message,t.stack,t.id)}},p=o;e.default=p},76,[5]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),n={__constants:null,OS:'ios',get Version(){return this.constants.osVersion},get constants(){return null==this.__constants&&(this.__constants=t.default.getConstants()),this.__constants},get isPad(){return'pad'===this.constants.interfaceIdiom},get isTVOS(){return n.isTV},get isTV(){return'tv'===this.constants.interfaceIdiom},get isTesting(){return!1},select:function(t){return'ios'in t?t.ios:'native'in t?t.native:t.default}};m.exports=n},77,[3,78]); __d(function(g,r,i,a,m,e,d){'use strict';function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(u,l,p):u[l]=n[l]}u.default=n,f&&f.set(n,u);return u})(r(d[0])).getEnforcing('PlatformConstants');e.default=n},78,[5]); __d(function(g,r,i,a,m,e,d){'use strict';var t={register:function(t){r(d[0]).registerCallableModule('RCTEventEmitter',t)}};m.exports=t},79,[15]); __d(function(g,r,i,a,m,e,d){'use strict';var t={},n={};e.customBubblingEventTypes=t,e.customDirectEventTypes=n;var o=new Map,s=new Map;function u(o){var s=o.bubblingEventTypes,u=o.directEventTypes;if(null!=s)for(var l in s)null==t[l]&&(t[l]=s[l]);if(null!=u)for(var c in u)null==n[c]&&(n[c]=u[c])}e.register=function(t,n){return r(d[0])(!o.has(t),'Tried to register two views with the same name %s',t),r(d[0])('function'==typeof n,'View config getter callback for component `%s` must be a function (received `%s`)',t,null===n?'null':typeof n),o.set(t,n),t},e.get=function(t){var n;if(s.has(t))n=s.get(t);else{var l=o.get(t);'function'!=typeof l&&r(d[0])(!1,'View config getter callback for component `%s` must be a function (received `%s`).%s',t,null===l?'null':typeof l,'string'==typeof t[0]&&/[a-z]/.test(t[0])?' Make sure to start component names with a capital letter.':''),u(n=l()),s.set(t,n),o.set(t,null)}return r(d[0])(n,'View config not found for name %s',t),n}},80,[6]); __d(function(g,r,i,a,m,e,d){'use strict';r(d[0]);var n=null,u=new Set;function t(u){n!==u&&null!=u&&(n=u)}function o(u){n===u&&null!=u&&(n=null)}m.exports={currentlyFocusedInput:function(){return n},focusInput:t,blurInput:o,currentlyFocusedField:function(){return r(d[1]).findNodeHandle(n)},focusField:function(n){},blurField:function(n){},focusTextInput:function(u){'number'!=typeof u&&n!==u&&null!=u&&(t(u),r(d[2]).Commands.focus(u))},blurTextInput:function(u){'number'!=typeof u&&n===u&&null!=u&&(o(u),r(d[2]).Commands.blur(u))},registerInput:function(n){'number'!=typeof n&&u.add(n)},unregisterInput:function(n){'number'!=typeof n&&u.delete(n)},isTextInput:function(n){return'number'!=typeof n&&u.has(n)}}},81,[46,82,147]); __d(function(g,r,i,a,m,e,d){'use strict';var t;t=r(d[0]),m.exports=t},82,[83]); __d(function(e,t,n,r,i,l,a){"use strict";t(a[0]);var o=t(a[1]);function u(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function s(e,t,n){for(var r=[];e;)r.push(e),e=u(e);for(e=r.length;0this.eventPool.length&&this.eventPool.push(e)}function U(e){e.eventPool=[],e.getPooled=M,e.release=A}t(a[2])(I.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=N)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=N)},persist:function(){this.isPersistent=N},isPersistent:z,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=z,this._dispatchInstances=this._dispatchListeners=null}}),I.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},I.extend=function(e){function n(){}function r(){return i.apply(this,arguments)}var i=this;n.prototype=i.prototype;var l=new n;return t(a[2])(l,r.prototype),r.prototype=l,r.prototype.constructor=r,r.Interface=t(a[2])({},i.Interface,e),r.extend=i.extend,U(r),r},U(I);var D=I.extend({touchHistory:function(){return null}});function F(e){return"topTouchStart"===e}function Q(e){return"topTouchMove"===e}var O=["topTouchStart"],j=["topTouchMove"],H=["topTouchCancel","topTouchEnd"],W=[],L={touchBank:W,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};function B(e){return e.timeStamp||e.timestamp}function V(e){if(null==(e=e.identifier))throw Error("Touch object is missing identifier.");return e}function Y(e){var t=V(e),n=W[t];n?(n.touchActive=!0,n.startPageX=e.pageX,n.startPageY=e.pageY,n.startTimeStamp=B(e),n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=B(e),n.previousPageX=e.pageX,n.previousPageY=e.pageY,n.previousTimeStamp=B(e)):(n={touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:B(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:B(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:B(e)},W[t]=n),L.mostRecentTimeStamp=B(e)}function q(e){var t=W[V(e)];t&&(t.touchActive=!0,t.previousPageX=t.currentPageX,t.previousPageY=t.currentPageY,t.previousTimeStamp=t.currentTimeStamp,t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=B(e),L.mostRecentTimeStamp=B(e))}function X(e){var t=W[V(e)];t&&(t.touchActive=!1,t.previousPageX=t.currentPageX,t.previousPageY=t.currentPageY,t.previousTimeStamp=t.currentTimeStamp,t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=B(e),L.mostRecentTimeStamp=B(e))}var $={recordTouchTrack:function(e,t){if(Q(e))t.changedTouches.forEach(q);else if(F(e))t.changedTouches.forEach(Y),L.numberActiveTouches=t.touches.length,1===L.numberActiveTouches&&(L.indexOfSingleActiveTouch=t.touches[0].identifier);else if(("topTouchEnd"===e||"topTouchCancel"===e)&&(t.changedTouches.forEach(X),L.numberActiveTouches=t.touches.length,1===L.numberActiveTouches))for(e=0;ea||(l=a),ke(l,e,i)}}}),b=function(e){return ge.get(e._nativeTag)||null},y=ve,T=function(e){var t=(e=e.stateNode)._nativeTag;if(void 0===t&&(t=(e=e.canonical)._nativeTag),!t)throw Error("All native instances should have a tag.");return e},te.injection.injectGlobalResponderHandler({onChange:function(e,n,r){null!==n?t(a[3]).UIManager.setJSResponder(n.stateNode._nativeTag,r):t(a[3]).UIManager.clearJSResponder()}});var we=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;we.hasOwnProperty("ReactCurrentDispatcher")||(we.ReactCurrentDispatcher={current:null}),we.hasOwnProperty("ReactCurrentBatchConfig")||(we.ReactCurrentBatchConfig={suspense:null});var Pe="function"==typeof Symbol&&Symbol.for,_e=Pe?Symbol.for("react.element"):60103,Re=Pe?Symbol.for("react.portal"):60106,Ce=Pe?Symbol.for("react.fragment"):60107,Ne=Pe?Symbol.for("react.strict_mode"):60108,ze=Pe?Symbol.for("react.profiler"):60114,Ie=Pe?Symbol.for("react.provider"):60109,Me=Pe?Symbol.for("react.context"):60110,Ae=Pe?Symbol.for("react.concurrent_mode"):60111,Ue=Pe?Symbol.for("react.forward_ref"):60112,De=Pe?Symbol.for("react.suspense"):60113,Fe=Pe?Symbol.for("react.suspense_list"):60120,Qe=Pe?Symbol.for("react.memo"):60115,Oe=Pe?Symbol.for("react.lazy"):60116,je=Pe?Symbol.for("react.block"):60121,He="function"==typeof Symbol&&Symbol.iterator;function We(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=He&&e[He]||e["@@iterator"])?e:null}function Le(e){if(-1===e._status){var t=e._result;t||(t=e._ctor),t=t(),e._status=0,e._result=t,t.then(function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)},function(t){0===e._status&&(e._status=2,e._result=t)})}}function Be(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Ce:return"Fragment";case Re:return"Portal";case ze:return"Profiler";case Ne:return"StrictMode";case De:return"Suspense";case Fe:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Me:return(e.displayName||"Context")+".Consumer";case Ie:return(e._context.displayName||"Context")+".Provider";case Ue:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case Qe:return Be(e.type);case je:return Be(e.render);case Oe:if(e=1===e._status?e._result:null)return Be(e)}return null}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ye(e){if(Ve(e)!==e)throw Error("Unable to find node on an unmounted component.")}function qe(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var l=i.alternate;if(null===l){if(null!==(r=i.return)){n=r;continue}break}if(i.child===l.child){for(l=i.child;l;){if(l===n)return Ye(i),e;if(l===r)return Ye(i),t;l=l.sibling}throw Error("Unable to find node on an unmounted component.")}if(n.return!==r.return)n=i,r=l;else{for(var a=!1,o=i.child;o;){if(o===n){a=!0,n=i,r=l;break}if(o===r){a=!0,r=i,n=l;break}o=o.sibling}if(!a){for(o=l.child;o;){if(o===n){a=!0,n=l,r=i;break}if(o===r){a=!0,r=l,n=i;break}o=o.sibling}if(!a)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(n.alternate!==r)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(3!==n.tag)throw Error("Unable to find node on an unmounted component.");return n.stateNode.current===n?e:t}function Xe(e){if(!(e=qe(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var $e={},Ke=null,Ge=0,Je={unsafelyIgnoreFunctions:!0};function Ze(e,n){return"object"!=typeof n||null===n||t(a[3]).deepDiffer(e,n,Je)}function et(e,t,n){if(Array.isArray(t))for(var r=t.length;r--&&0vt||(e.current=gt[vt],gt[vt]=null,vt--)}function yt(e,t){gt[++vt]=e.current,e.current=t}var Tt={},xt={current:Tt},Et={current:!1},St=Tt;function kt(e,t){var n=e.type.contextTypes;if(!n)return Tt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,l={};for(i in n)l[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function wt(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Pt(){bt(Et),bt(xt)}function _t(e,t,n){if(xt.current!==Tt)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");yt(xt,t),yt(Et,n)}function Rt(e,n,r){var i=e.stateNode;if(e=n.childContextTypes,"function"!=typeof i.getChildContext)return r;for(var l in i=i.getChildContext())if(!(l in e))throw Error((Be(n)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');return t(a[2])({},r,{},i)}function Ct(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Tt,St=xt.current,yt(xt,e),yt(Et,Et.current),!0}function Nt(e,t,n){var r=e.stateNode;if(!r)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");n?(e=Rt(e,t,St),r.__reactInternalMemoizedMergedChildContext=e,bt(Et),bt(xt),yt(xt,e)):bt(Et),yt(Et,n)}var zt={},It=void 0!==t(a[4]).unstable_requestPaint?t(a[4]).unstable_requestPaint:function(){},Mt=null,At=null,Ut=!1,Dt=t(a[4]).unstable_now(),Ft=1e4>Dt?t(a[4]).unstable_now:function(){return t(a[4]).unstable_now()-Dt};function Qt(){switch(t(a[4]).unstable_getCurrentPriorityLevel()){case t(a[4]).unstable_ImmediatePriority:return 99;case t(a[4]).unstable_UserBlockingPriority:return 98;case t(a[4]).unstable_NormalPriority:return 97;case t(a[4]).unstable_LowPriority:return 96;case t(a[4]).unstable_IdlePriority:return 95;default:throw Error("Unknown priority level.")}}function Ot(e){switch(e){case 99:return t(a[4]).unstable_ImmediatePriority;case 98:return t(a[4]).unstable_UserBlockingPriority;case 97:return t(a[4]).unstable_NormalPriority;case 96:return t(a[4]).unstable_LowPriority;case 95:return t(a[4]).unstable_IdlePriority;default:throw Error("Unknown priority level.")}}function jt(e,n){return e=Ot(e),t(a[4]).unstable_runWithPriority(e,n)}function Ht(e,n,r){return e=Ot(e),t(a[4]).unstable_scheduleCallback(e,n,r)}function Wt(e){return null===Mt?(Mt=[e],At=t(a[4]).unstable_scheduleCallback(t(a[4]).unstable_ImmediatePriority,Bt)):Mt.push(e),zt}function Lt(){if(null!==At){var e=At;At=null,t(a[4]).unstable_cancelCallback(e)}Bt()}function Bt(){if(!Ut&&null!==Mt){Ut=!0;var e=0;try{var n=Mt;jt(99,function(){for(;e=t&&(kr=!0),e.firstContext=null)}function an(e,t){if(en!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(en=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Zt){if(null===Jt)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Zt=t,Jt.dependencies={expirationTime:0,firstContext:t,responders:null}}else Zt=Zt.next=t;return e._currentValue}var on=!1;function un(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function sn(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function cn(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function fn(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function dn(e,t){var n=e.alternate;null!==n&&sn(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function pn(e,n,r,i){var l=e.updateQueue;on=!1;var o=l.baseQueue,u=l.shared.pending;if(null!==u){if(null!==o){var s=o.next;o.next=u.next,u.next=s}o=u,l.shared.pending=null,null!==(s=e.alternate)&&(null!==(s=s.updateQueue)&&(s.baseQueue=u))}if(null!==o){s=o.next;var c=l.baseState,f=0,d=null,p=null,h=null;if(null!==s)for(var m=s;;){if((u=m.expirationTime)f&&(f=u)}else{null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:m.suspenseConfig,tag:m.tag,payload:m.payload,callback:m.callback,next:null}),sl(u,m.suspenseConfig);e:{var v=e,b=m;switch(u=n,g=r,b.tag){case 1:if("function"==typeof(v=b.payload)){c=v.call(g,c,u);break e}c=v;break e;case 3:v.effectTag=-4097&v.effectTag|64;case 0:if(null===(u="function"==typeof(v=b.payload)?v.call(g,c,u):v)||void 0===u)break e;c=t(a[2])({},c,u);break e;case 2:on=!0}}null!==m.callback&&(e.effectTag|=32,null===(u=l.effects)?l.effects=[m]:u.push(m))}if(null===(m=m.next)||m===s){if(null===(u=l.shared.pending))break;m=o.next=u.next,u.next=s,l.baseQueue=o=u,l.shared.pending=null}}null===h?d=c:h.next=p,l.baseState=d,l.baseQueue=h,cl(f),e.expirationTime=f,e.memoizedState=c}}function hn(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;tm?(g=h,h=null):g=h.sibling;var v=d(i,h,o[m],u);if(null===v){null===h&&(h=g);break}e&&h&&null===v.alternate&&t(i,h),a=l(v,a,m),null===c?s=v:c.sibling=v,c=v,h=g}if(m===o.length)return n(i,h),s;if(null===h){for(;mm?(g=h,h=null):g=h.sibling;var b=d(i,h,v.value,u);if(null===b){null===h&&(h=g);break}e&&h&&null===b.alternate&&t(i,h),a=l(b,a,m),null===c?s=b:c.sibling=b,c=b,h=g}if(v.done)return n(i,h),s;if(null===h){for(;!v.done;m++,v=o.next())null!==(v=f(i,v.value,u))&&(a=l(v,a,m),null===c?s=v:c.sibling=v,c=v);return s}for(h=r(i,h);!v.done;m++,v=o.next())null!==(v=p(h,i,m,v.value,u))&&(e&&null!==v.alternate&&h.delete(null===v.key?m:v.key),a=l(v,a,m),null===c?s=v:c.sibling=v,c=v);return e&&h.forEach(function(e){return t(i,e)}),s}return function(e,r,l,o){var u="object"==typeof l&&null!==l&&l.type===Ce&&null===l.key;u&&(l=l.props.children);var s="object"==typeof l&&null!==l;if(s)switch(l.$$typeof){case _e:e:{for(s=l.key,u=r;null!==u;){if(u.key===s){switch(u.tag){case 7:if(l.type===Ce){n(e,u.sibling),(r=i(u,l.props.children)).return=e,e=r;break e}break;default:if(u.elementType===l.type){n(e,u.sibling),(r=i(u,l.props)).ref=kn(e,u,l),r.return=e,e=r;break e}}n(e,u);break}t(e,u),u=u.sibling}l.type===Ce?((r=Al(l.props.children,e.mode,o,l.key)).return=e,e=r):((o=Ml(l.type,l.key,l.props,null,e.mode,o)).ref=kn(e,r,l),o.return=e,e=o)}return a(e);case Re:e:{for(u=l.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===l.containerInfo&&r.stateNode.implementation===l.implementation){n(e,r.sibling),(r=i(r,l.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Dl(l,e.mode,o)).return=e,e=r}return a(e)}if("string"==typeof l||"number"==typeof l)return l=""+l,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,l)).return=e,e=r):(n(e,r),(r=Ul(l,e.mode,o)).return=e,e=r),a(e);if(Sn(l))return h(e,r,l,o);if(We(l))return m(e,r,l,o);if(s&&wn(e,l),void 0===l&&!u)switch(e.tag){case 1:case 0:throw e=e.type,Error((e.displayName||e.name||"Component")+"(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.")}return n(e,r)}}var _n=Pn(!0),Rn=Pn(!1),Cn={},Nn={current:Cn},zn={current:Cn},In={current:Cn};function Mn(e){if(e===Cn)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function An(e,t){yt(In,t),yt(zn,e),yt(Nn,Cn),bt(Nn),yt(Nn,{isInAParentText:!1})}function Un(){bt(Nn),bt(zn),bt(In)}function Dn(e){Mn(In.current);var t=Mn(Nn.current),n=e.type;n="AndroidTextInput"===n||"RCTMultilineTextInputView"===n||"RCTSinglelineTextInputView"===n||"RCTText"===n||"RCTVirtualText"===n,t!==(n=t.isInAParentText!==n?{isInAParentText:n}:t)&&(yt(zn,e),yt(Nn,n))}function Fn(e){zn.current===e&&(bt(Nn),bt(zn))}var Qn={current:0};function On(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===n.dehydrated||ot()||ot()))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function jn(e,t){return{responder:e,props:t}}var Hn=we.ReactCurrentDispatcher,Wn=we.ReactCurrentBatchConfig,Ln=0,Bn=null,Vn=null,Yn=null,qn=!1;function Xn(){throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.")}function $n(e,t){if(null===t)return!1;for(var n=0;nl))throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");l+=1,Yn=Vn=null,t.updateQueue=null,Hn.current=Er,e=n(r,i)}while(t.expirationTime===Ln)}if(Hn.current=yr,t=null!==Vn&&null!==Vn.next,Ln=0,Yn=Vn=Bn=null,qn=!1,t)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return e}function Gn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Yn?Bn.memoizedState=Yn=e:Yn=Yn.next=e,Yn}function Jn(){if(null===Vn){var e=Bn.alternate;e=null!==e?e.memoizedState:null}else e=Vn.next;var t=null===Yn?Bn.memoizedState:Yn.next;if(null!==t)Yn=t,Vn=e;else{if(null===e)throw Error("Rendered more hooks than during the previous render.");e={memoizedState:(Vn=e).memoizedState,baseState:Vn.baseState,baseQueue:Vn.baseQueue,queue:Vn.queue,next:null},null===Yn?Bn.memoizedState=Yn=e:Yn=Yn.next=e}return Yn}function Zn(e,t){return"function"==typeof t?t(e):t}function er(e){var t=Jn(),n=t.queue;if(null===n)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");n.lastRenderedReducer=e;var r=Vn,i=r.baseQueue,l=n.pending;if(null!==l){if(null!==i){var a=i.next;i.next=l.next,l.next=a}r.baseQueue=i=l,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var o=a=l=null,u=i;do{var s=u.expirationTime;if(sBn.expirationTime&&(Bn.expirationTime=s,cl(s))}else null!==o&&(o=o.next={expirationTime:1073741823,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),sl(s,u.suspenseConfig),r=u.eagerReducer===e?u.eagerState:e(r,u.action);u=u.next}while(null!==u&&u!==i);null===o?l=r:o.next=a,Vt(r,t.memoizedState)||(kr=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=o,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function tr(e){var t=Jn(),n=t.queue;if(null===n)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,l=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{l=e(l,a.action),a=a.next}while(a!==i);Vt(l,t.memoizedState)||(kr=!0),t.memoizedState=l,null===t.baseQueue&&(t.baseState=l),n.lastRenderedState=l}return[l,r]}function nr(e){var t=Gn();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Zn,lastRenderedState:e}).dispatch=vr.bind(null,Bn,e),[t.memoizedState,e]}function rr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Bn.updateQueue)?(t={lastEffect:null},Bn.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ir(){return Jn().memoizedState}function lr(e,t,n,r){var i=Gn();Bn.effectTag|=e,i.memoizedState=rr(1|t,n,void 0,void 0===r?null:r)}function ar(e,t,n,r){var i=Jn();r=void 0===r?null:r;var l=void 0;if(null!==Vn){var a=Vn.memoizedState;if(l=a.destroy,null!==r&&$n(r,a.deps))return void rr(t,n,l,r)}Bn.effectTag|=e,i.memoizedState=rr(1|t,n,l,r)}function or(e,t){return lr(516,4,e,t)}function ur(e,t){return ar(516,4,e,t)}function sr(e,t){return ar(4,2,e,t)}function cr(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function fr(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ar(4,2,cr.bind(null,t,e),n)}function dr(){}function pr(e,t){return Gn().memoizedState=[e,void 0===t?null:t],e}function hr(e,t){var n=Jn();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&$n(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function mr(e,t){var n=Jn();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&$n(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function gr(e,t,n){var r=Qt();jt(98>r?98:r,function(){e(!0)}),jt(97 component.");l=ft(),t(a[3]).UIManager.createView(l,"RCTRawText",e,{text:i}),me.set(l,n),n.stateNode=l}return null;case 13:return bt(Qn),i=n.memoizedState,0!=(64&n.effectTag)?(n.expirationTime=r,n):(i=null!==i,l=!1,null!==e&&(l=null!==(r=e.memoizedState),i||null===r||null!==(r=e.child.sibling)&&(null!==(o=n.firstEffect)?(n.firstEffect=r,r.nextEffect=o):(n.firstEffect=n.lastEffect=r,r.nextEffect=null),r.effectTag=8)),i&&!l&&0!=(2&n.mode)&&(null===e&&!0!==n.memoizedProps.unstable_avoidThisFallback||0!=(1&Qn.current)?Ii===Ei&&(Ii=wi):(Ii!==Ei&&Ii!==wi||(Ii=Pi),0!==Fi&&null!==Ci&&(Ol(Ci,zi),jl(Ci,Fi)))),(i||l)&&(n.effectTag|=4),null);case 4:return Un(),Ur(n),null;case 10:return nn(n),null;case 17:return wt(n.type)&&Pt(),null;case 19:if(bt(Qn),null===(i=n.memoizedState))return null;if(l=0!=(64&n.effectTag),null===(o=i.rendering)){if(l)Br(i,!1);else if(Ii!==Ei||null!==e&&0!=(64&e.effectTag))for(e=n.child;null!==e;){if(null!==(o=On(e))){for(n.effectTag|=64,Br(i,!1),null!==(e=o.updateQueue)&&(n.updateQueue=e,n.effectTag|=4),null===i.lastEffect&&(n.firstEffect=null),n.lastEffect=i.lastEffect,e=r,i=n.child;null!==i;)r=e,(l=i).effectTag&=2,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(o=l.alternate)?(l.childExpirationTime=0,l.expirationTime=r,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null):(l.childExpirationTime=o.childExpirationTime,l.expirationTime=o.expirationTime,l.child=o.child,l.memoizedProps=o.memoizedProps,l.memoizedState=o.memoizedState,l.updateQueue=o.updateQueue,r=o.dependencies,l.dependencies=null===r?null:{expirationTime:r.expirationTime,firstContext:r.firstContext,responders:r.responders}),i=i.sibling;return yt(Qn,1&Qn.current|2),n.child}e=e.sibling}}else{if(!l)if(null!==(e=On(o))){if(n.effectTag|=64,l=!0,null!==(e=e.updateQueue)&&(n.updateQueue=e,n.effectTag|=4),Br(i,!0),null===i.tail&&"hidden"===i.tailMode&&!o.alternate)return null!==(n=n.lastEffect=i.lastEffect)&&(n.nextEffect=null),null}else 2*Ft()-i.renderingStartTime>i.tailExpiration&&1t)&&Xi.set(e,t))}}function tl(e,t){e.expirationTime=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function rl(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Wt(ll.bind(null,e));else{var n=nl(e),r=e.callbackNode;if(0===n)null!==r&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var i=Ji();if(1073741823===n?i=99:1===n||2===n?i=95:i=0>=(i=10*(1073741821-n)-10*(1073741821-i))?99:250>=i?98:5250>=i?97:95,null!==r){var l=e.callbackPriority;if(e.callbackExpirationTime===n&&l>=i)return;r!==zt&&t(a[4]).unstable_cancelCallback(r)}e.callbackExpirationTime=n,e.callbackPriority=i,n=1073741823===n?Wt(ll.bind(null,e)):Ht(i,il.bind(null,e),{timeout:10*(1073741821-n)-Ft()}),e.callbackNode=n}}}function il(e,t){if(Gi=0,t){t=Ji();var n=e.lastExpiredTime;return(0===n||n>t)&&(e.lastExpiredTime=t),rl(e),null}if(0===(n=nl(e)))return null;if(t=e.callbackNode,(48&Ri)!==bi)throw Error("Should not already be working.");Tl();var r=n,i=Ri;Ri|=Ti;var l=ul();for(e===Ci&&r===zi||al(e,r);;)try{pl();break}catch(t){ol(e,t)}if(tn(),gi.current=l,Ri=i,null!==Ni?i=Ei:(Ci=null,i=Ii),i!==Ei){if(i===ki&&(i=fl(e,n=2=n)){e.lastPingedTime=n,al(e,n);break}if(0!==(l=nl(e))&&l!==n)break;if(0!==i&&i!==n){e.lastPingedTime=i;break}e.timeoutHandle=ht(vl.bind(null,e),r);break}vl(e);break;case Pi:if(Ol(e,n),n===(i=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=gl(r)),Qi&&(0===(r=e.lastPingedTime)||r>=n)){e.lastPingedTime=n,al(e,n);break}if(0!==(r=nl(e))&&r!==n)break;if(0!==i&&i!==n){e.lastPingedTime=i;break}if(1073741823!==Ui?r=10*(1073741821-Ui)-Ft():1073741823===Ai?r=0:(r=10*(1073741821-Ai)-5e3,n=10*(1073741821-n)-(i=Ft()),0>(r=i-r)&&(r=0),n<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*mi(r/1960))-r)&&(r=n)),10=(r=0|a.busyMinDurationMs)?r=0:(i=0|a.busyDelayMs,r=(l=Ft()-(10*(1073741821-l)-(0|a.timeoutMs||5e3)))<=i?0:i+r-l),10=t?zi:t:1073741823);if(0!==e.tag&&n===ki&&(n=fl(e,t=2 component higher in the tree to provide a loading indicator or placeholder to display."+$t(a))}Ii!==_i&&(Ii=ki),o=qr(o,a),f=l;do{switch(f.tag){case 3:u=o,f.effectTag|=4096,f.expirationTime=t,dn(f,di(f,u,t));break e;case 1:u=o;var T=f.type,x=f.stateNode;if(0==(64&f.effectTag)&&("function"==typeof T.getDerivedStateFromError||null!==x&&"function"==typeof x.componentDidCatch&&(null===Bi||!Bi.has(x)))){f.effectTag|=4096,f.expirationTime=t,dn(f,pi(f,u,t));break e}}f=f.return}while(null!==f)}Ni=ml(Ni)}catch(e){t=e;continue}break}}function ul(){var e=gi.current;return gi.current=yr,null===e?yr:e}function sl(e,t){eFi&&(Fi=e)}function fl(e,t){var n=Ri;Ri|=Ti;var r=ul();for(e===Ci&&t===zi||al(e,t);;)try{dl();break}catch(t){ol(e,t)}if(tn(),Ri=n,gi.current=r,null!==Ni)throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Ci=null,Ii}function dl(){for(;null!==Ni;)Ni=hl(Ni)}function pl(){for(;null!==Ni&&!t(a[4]).unstable_shouldYield();)Ni=hl(Ni)}function hl(e){var t=hi(e.alternate,e,zi);return e.memoizedProps=e.pendingProps,null===t&&(t=ml(e)),vi.current=null,t}function ml(e){Ni=e;do{var t=Ni.alternate;if(e=Ni.return,0==(2048&Ni.effectTag)){if(t=Vr(t,Ni,zi),1===zi||1!==Ni.childExpirationTime){for(var n=0,r=Ni.child;null!==r;){var i=r.expirationTime,l=r.childExpirationTime;i>n&&(n=i),l>n&&(n=l),r=r.sibling}Ni.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Ni.firstEffect),null!==Ni.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Ni.firstEffect),e.lastEffect=Ni.lastEffect),1(e=e.childExpirationTime)?t:e}function vl(e){var t=Qt();return jt(99,bl.bind(null,e,t)),null}function bl(e,t){do{Tl()}while(null!==Yi);if((48&Ri)!==bi)throw Error("Should not already be working.");var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=gl(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Ci&&(Ni=Ci=null,zi=0),1=n?Or(e,t,n):(yt(Qn,1&Qn.current),null!==(t=Lr(e,t,n))?t.sibling:null);yt(Qn,1&Qn.current);break;case 19:if(r=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(r)return Wr(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),yt(Qn,Qn.current),!r)return null}return Lr(e,t,n)}kr=!1}else kr=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=kt(t,xt.current),ln(t,n),i=Kn(null,t,r,e,i,n),t.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,wt(r)){var l=!0;Ct(t)}else l=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,un(t);var a=r.getDerivedStateFromProps;"function"==typeof a&&vn(t,r,a,e),i.updater=bn,t.stateNode=i,i._reactInternalFiber=t,En(t,r,e,n),t=Ir(null,t,r,!0,l,n)}else t.tag=0,wr(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,Le(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,l=t.tag=zl(i),e=Kt(i,e),l){case 0:t=Nr(null,t,i,e,n);break e;case 1:t=zr(null,t,i,e,n);break e;case 11:t=Pr(null,t,i,e,n);break e;case 14:t=_r(null,t,i,Kt(i.type,e),r,n);break e}throw Error("Element type is invalid. Received a promise that resolves to: "+i+". Lazy element type must resolve to a class or function.")}return t;case 0:return r=t.type,i=t.pendingProps,Nr(e,t,r,i=t.elementType===r?i:Kt(r,i),n);case 1:return r=t.type,i=t.pendingProps,zr(e,t,r,i=t.elementType===r?i:Kt(r,i),n);case 3:if(Mr(t),r=t.updateQueue,null===e||null===r)throw Error("If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue.");return r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,sn(e,t),pn(t,r,null,n),(r=t.memoizedState.element)===i?t=Lr(e,t,n):(wr(e,t,r,n),t=t.child),t;case 5:return Dn(t),r=t.pendingProps.children,Cr(e,t),wr(e,t,r,n),t=t.child;case 6:return null;case 13:return Or(e,t,n);case 4:return An(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=_n(t,null,r,n):wr(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Pr(e,t,r,i=t.elementType===r?i:Kt(r,i),n);case 7:return wr(e,t,t.pendingProps,n),t.child;case 8:case 12:return wr(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,a=t.memoizedProps,l=i.value;var o=t.type._context;if(yt(Gt,o._currentValue),o._currentValue=l,null!==a)if(o=a.value,0===(l=Vt(o,l)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(o,l):1073741823))){if(a.children===i.children&&!Et.current){t=Lr(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var u=o.dependencies;if(null!==u){a=o.child;for(var s=u.firstContext;null!==s;){if(s.context===r&&0!=(s.observedBits&l)){1===o.tag&&((s=cn(n,null)).tag=2,fn(o,s)),o.expirationTime=t&&e<=t}function Ol(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;nt||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function jl(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Hl(e){var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw Error("Unable to find node on an unmounted component.");throw Error("Argument appears to not be a ReactComponent. Keys: "+Object.keys(e))}return null===(e=Xe(t))?null:e.stateNode}function Wl(e,t,n,r){var i=t.current,l=Ji(),a=mn.suspense;l=Zi(l,i,a);e:if(n){n=n._reactInternalFiber;t:{if(Ve(n)!==n||1!==n.tag)throw Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var o=n;do{switch(o.tag){case 3:o=o.stateNode.context;break t;case 1:if(wt(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break t}}o=o.return}while(null!==o);throw Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}if(1===n.tag){var u=n.type;if(wt(u)){n=Rt(n,u,o);break e}}n=o}else n=Tt;return null===t.context?t.context=n:t.pendingContext=n,(t=cn(l,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),fn(i,t),el(i,l),l}function Ll(e,t,n){var r=30}function y(t){f[t]=null,o[t]=null,c[t]=null}function C(t){if(null!=t){var n=f.indexOf(t);if(-1!==n){var l=c[n];y(n),'setImmediate'!==l&&'requestIdleCallback'!==l&&O(t)}}}var q,A={setTimeout:function(t,n){for(var l=arguments.length,u=new Array(l>2?l-2:0),o=2;o2?l-2:0),o=2;o1?n-1:0),u=1;u-1&&(v.splice(t,1),k(o,l(),!0)),delete h[o],0===v.length&&F(!1)},u);h[o]=c}return o},cancelIdleCallback:function(t){C(t);var n=v.indexOf(t);-1!==n&&v.splice(n,1);var l=h[t];l&&(A.clearTimeout(l),delete h[t]),0===v.length&&F(!1)},clearTimeout:function(t){C(t)},clearInterval:function(t){C(t)},clearImmediate:function(t){C(t);var n=s.indexOf(t);-1!==n&&s.splice(n,1)},cancelAnimationFrame:function(t){C(t)},callTimers:function(t){r(d[4])(0!==t.length,'Cannot call `callTimers` with an empty list of IDs.'),T=null;for(var n=0;n1)for(var u=1;u0){var n=v;v=[];for(var o=0;o=0,loaded:s,total:n})}},{key:"__didCompleteResponse",value:function(t,s,n){t===this._requestId&&(s&&(''!==this._responseType&&'text'!==this._responseType||(this._response=s),this._hasError=!0,n&&(this._timedOut=!0)),this._clearSubscriptions(),this._requestId=null,this.setReadyState(this.DONE),s?l._interceptor&&l._interceptor.loadingFailed(t,s):l._interceptor&&l._interceptor.loadingFinished(t,this._response.length))}},{key:"_clearSubscriptions",value:function(){(this._subscriptions||[]).forEach(function(t){t&&t.remove()}),this._subscriptions=[]}},{key:"getAllResponseHeaders",value:function(){if(!this.responseHeaders)return null;var t=this.responseHeaders||{};return Object.keys(t).map(function(s){return s+': '+t[s]}).join('\r\n')}},{key:"getResponseHeader",value:function(t){var s=this._lowerCaseResponseHeaders[t.toLowerCase()];return void 0!==s?s:null}},{key:"setRequestHeader",value:function(t,s){if(this.readyState!==this.OPENED)throw new Error('Request has not been opened');this._headers[t.toLowerCase()]=String(s)}},{key:"setTrackingName",value:function(t){return this._trackingName=t,this}},{key:"open",value:function(t,s,n){if(this.readyState!==this.UNSENT)throw new Error('Cannot open, already sending');if(void 0!==n&&!n)throw new Error('Synchronous http requests are not supported');if(!s)throw new Error('Cannot load an empty url');this._method=t.toUpperCase(),this._url=s,this._aborted=!1,this.setReadyState(this.OPENED)}},{key:"send",value:function(t){var s=this;if(this.readyState!==this.OPENED)throw new Error('Request has not been opened');if(this._sent)throw new Error('Request has already been sent');this._sent=!0;var n=this._incrementalEvents||!!this.onreadystatechange||!!this.onprogress;this._subscriptions.push(r(d[11]).addListener('didSendNetworkData',function(t){return s.__didUploadProgress.apply(s,r(d[12])(t))})),this._subscriptions.push(r(d[11]).addListener('didReceiveNetworkResponse',function(t){return s.__didReceiveResponse.apply(s,r(d[12])(t))})),this._subscriptions.push(r(d[11]).addListener('didReceiveNetworkData',function(t){return s.__didReceiveData.apply(s,r(d[12])(t))})),this._subscriptions.push(r(d[11]).addListener('didReceiveNetworkIncrementalData',function(t){return s.__didReceiveIncrementalData.apply(s,r(d[12])(t))})),this._subscriptions.push(r(d[11]).addListener('didReceiveNetworkDataProgress',function(t){return s.__didReceiveDataProgress.apply(s,r(d[12])(t))})),this._subscriptions.push(r(d[11]).addListener('didCompleteNetworkResponse',function(t){return s.__didCompleteResponse.apply(s,r(d[12])(t))}));var o='text';'arraybuffer'===this._responseType&&(o='base64'),'blob'===this._responseType&&(o='blob');var h;h='unknown'!==s._trackingName?s._trackingName:s._url,s._perfKey='network_XMLHttpRequest_'+String(h),r(d[10]).startTimespan(s._perfKey),r(d[8])(s._method,'XMLHttpRequest method needs to be defined (%s).',h),r(d[8])(s._url,'XMLHttpRequest URL needs to be defined (%s).',h),r(d[11]).sendRequest(s._method,s._trackingName,s._url,s._headers,t,o,n,s.timeout,s.__didCreateRequest.bind(s),s.withCredentials)}},{key:"abort",value:function(){this._aborted=!0,this._requestId&&r(d[11]).abortRequest(this._requestId),this.readyState===this.UNSENT||this.readyState===this.OPENED&&!this._sent||this.readyState===this.DONE||(this._reset(),this.setReadyState(this.DONE)),this._reset()}},{key:"setResponseHeaders",value:function(t){this.responseHeaders=t||null;var s=t||{};this._lowerCaseResponseHeaders=Object.keys(s).reduce(function(t,n){return t[n.toLowerCase()]=s[n],t},{})}},{key:"setReadyState",value:function(t){this.readyState=t,this.dispatchEvent({type:'readystatechange'}),t===this.DONE&&(this._aborted?this.dispatchEvent({type:'abort'}):this._hasError?this._timedOut?this.dispatchEvent({type:'timeout'}):this.dispatchEvent({type:'error'}):this.dispatchEvent({type:'load'}),this.dispatchEvent({type:'loadend'}))}},{key:"addEventListener",value:function(t,s){'readystatechange'!==t&&'progress'!==t||(this._incrementalEvents=!0),r(d[13])(r(d[0])(l.prototype),"addEventListener",this).call(this,t,s)}}],[{key:"setInterceptor",value:function(t){l._interceptor=t}}]),l})(r(d[6]).apply(void 0,r(d[12])(l)));f.UNSENT=n,f.OPENED=o,f.HEADERS_RECEIVED=h,f.LOADING=p,f.DONE=u,f._interceptor=null,m.exports=f},102,[33,34,103,37,17,18,107,99,6,108,109,111,22,40]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),l=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),n=r(d[0])(r(d[5]));var f=(function(){function f(){(0,l.default)(this,f)}return(0,o.default)(f,null,[{key:"createFromParts",value:function(t,l){(0,n.default)(u.default,'NativeBlobModule is available.');var o='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,function(t){var l=16*Math.random()|0;return('x'==t?l:3&l|8).toString(16)}),c=t.map(function(t){if(t instanceof ArrayBuffer||g.ArrayBufferView&&t instanceof g.ArrayBufferView)throw new Error("Creating blobs from 'ArrayBuffer' and 'ArrayBufferView' are not supported");return t instanceof r(d[6])?{data:t.data,type:'blob'}:{data:String(t),type:'string'}}),s=c.reduce(function(t,l){return'string'===l.type?t+g.unescape(encodeURI(l.data)).length:t+l.data.size},0);return u.default.createFromParts(c,o),f.createFromOptions({blobId:o,offset:0,size:s,type:l?l.type:'',lastModified:l?l.lastModified:Date.now()})}},{key:"createFromOptions",value:function(l){return r(d[7]).register(l.blobId),(0,t.default)(Object.create(r(d[6]).prototype),{data:null==l.__collector?(0,t.default)({},l,{__collector:(o=l.blobId,null==g.__blobCollectorProvider?null:g.__blobCollectorProvider(o))}):l});var o}},{key:"release",value:function(t){(0,n.default)(u.default,'NativeBlobModule is available.'),r(d[7]).unregister(t),r(d[7]).has(t)||u.default.release(t)}},{key:"addNetworkingHandler",value:function(){(0,n.default)(u.default,'NativeBlobModule is available.'),u.default.addNetworkingHandler()}},{key:"addWebSocketHandler",value:function(t){(0,n.default)(u.default,'NativeBlobModule is available.'),u.default.addWebSocketHandler(t)}},{key:"removeWebSocketHandler",value:function(t){(0,n.default)(u.default,'NativeBlobModule is available.'),u.default.removeWebSocketHandler(t)}},{key:"sendOverSocket",value:function(t,l){(0,n.default)(u.default,'NativeBlobModule is available.'),u.default.sendOverSocket(t.data,l)}}]),f})();f.isAvailable=!!u.default,m.exports=f},103,[3,14,17,18,104,6,105,106]); __d(function(g,r,i,a,m,e,d){'use strict';function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('BlobModule');e.default=n},104,[5]); __d(function(g,r,i,a,m,e,d){'use strict';var t=(function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=arguments.length>1?arguments[1]:void 0;r(d[0])(this,t);var o=r(d[1]);this.data=o.createFromParts(n,s).data}return r(d[2])(t,[{key:"data",get:function(){if(!this._data)throw new Error('Blob has been closed and is no longer available');return this._data},set:function(t){this._data=t}},{key:"slice",value:function(t,n){var s=r(d[1]),o=this.data,u=o.offset,l=o.size;return'number'==typeof t&&(t>l&&(t=l),u+=t,l-=t,'number'==typeof n&&(n<0&&(n=this.size+n),l=n-t)),s.createFromOptions({blobId:this.data.blobId,offset:u,size:l})}},{key:"close",value:function(){r(d[1]).release(this.data.blobId),this.data=null}},{key:"size",get:function(){return this.data.size}},{key:"type",get:function(){return this.data.type||''}}]),t})();m.exports=t},105,[17,103,18]); __d(function(g,r,i,a,m,e,d){var n={};m.exports={register:function(t){n[t]?n[t]++:n[t]=1},unregister:function(t){n[t]&&(n[t]--,n[t]<=0&&delete n[t])},has:function(t){return n[t]&&n[t]>0}}},106,[]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var t=new WeakMap,n=new WeakMap;function o(n){var o=t.get(n);return console.assert(null!=o,"'this' is expected an Event object, but got",n),o}function l(t){null==t.passiveListener?t.event.cancelable&&(t.canceled=!0,"function"==typeof t.event.preventDefault&&t.event.preventDefault()):"undefined"!=typeof console&&"function"==typeof console.error&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener)}function u(n,o){t.set(this,{eventTarget:n,event:o,eventPhase:2,currentTarget:n,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:o.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});for(var l=Object.keys(o),u=0;u0){for(var t=new Array(arguments.length),n=0;n0?C-4:C;for(u=0;u>16&255,s[v++]=h>>8&255,s[v++]=255&h;2===y&&(h=n[t.charCodeAt(u)]<<2|n[t.charCodeAt(u+1)]>>4,s[v++]=255&h);1===y&&(h=n[t.charCodeAt(u)]<<10|n[t.charCodeAt(u+1)]<<4|n[t.charCodeAt(u+2)]>>2,s[v++]=h>>8&255,s[v++]=255&h);return s},e.fromByteArray=function(n){for(var o,h=n.length,u=h%3,c=[],f=0,A=h-u;fA?A:f+16383));1===u?(o=n[h-1],c.push(t[o>>2]+t[o<<4&63]+'==')):2===u&&(o=(n[h-2]<<8)+n[h-1],c.push(t[o>>10]+t[o>>4&63]+t[o<<2&63]+'='));return c.join('')};for(var t=[],n=[],o='undefined'!=typeof Uint8Array?Uint8Array:Array,h='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',u=0,c=h.length;u0)throw new Error('Invalid string. Length must be a multiple of 4');var o=t.indexOf('=');return-1===o&&(o=n),[o,o===n?0:4-o%4]}function A(t,n,o){return 3*(n+o)/4-o}function C(n,o,h){for(var u,c,f=[],A=o;A>18&63]+t[c>>12&63]+t[c>>6&63]+t[63&c]);return f.join('')}n['-'.charCodeAt(0)]=62,n['_'.charCodeAt(0)]=63},108,[]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])();m.exports=t},109,[110]); __d(function(g,r,i,a,m,e,d){'use strict';var t=g.nativeQPLTimestamp||g.nativePerformanceNow||r(d[0]),s={};m.exports=function(){return{_timespans:{},_extras:{},_points:{},addTimespan:function(t,s,n){this._timespans[t]||(this._timespans[t]={description:n,totalTime:s})},startTimespan:function(n,o){this._timespans[n]||(this._timespans[n]={description:o,startTime:t()},s[n]=r(d[1]).beginAsyncEvent(n))},stopTimespan:function(n,o){var p=this._timespans[n];p&&p.startTime&&(!p.endTime||null!=o&&o.update)&&(p.endTime=t(),p.totalTime=p.endTime-(p.startTime||0),null!=s[n]&&(r(d[1]).endAsyncEvent(n,s[n]),delete s[n]))},clear:function(){this._timespans={},this._extras={},this._points={}},clearCompleted:function(){for(var t in this._timespans)this._timespans[t].totalTime&&delete this._timespans[t];this._extras={},this._points={}},clearExceptTimespans:function(t){this._timespans=Object.keys(this._timespans).reduce(function(s,n){return-1!==t.indexOf(n)&&(s[n]=this._timespans[n]),s},{}),this._extras={},this._points={}},currentTimestamp:function(){return t()},getTimespans:function(){return this._timespans},hasTimespan:function(t){return!!this._timespans[t]},logTimespans:function(){},addTimespans:function(t,s){for(var n=0,o=t.length;n0&&console.warn('Unrecognized WebSocket connection option(s) `'+Object.keys(I).join('`, `')+"`. Did you mean to put these under `headers`?"),Array.isArray(o)||(o=null),u._eventEmitter=new(r(d[8]))(l.default),u._socketId=_++,u._registerEvents(),l.default.connect(n,o,{headers:k},u._socketId),u}return(0,n.default)(N,[{key:"binaryType",get:function(){return this._binaryType},set:function(t){if('blob'!==t&&'arraybuffer'!==t)throw new Error("binaryType must be either 'blob' or 'arraybuffer'");'blob'!==this._binaryType&&'blob'!==t||(r(d[9])(r(d[10]).isAvailable,'Native module BlobModule is required for blob support'),'blob'===t?r(d[10]).addWebSocketHandler(this._socketId):r(d[10]).removeWebSocketHandler(this._socketId)),this._binaryType=t}},{key:"close",value:function(t,s){this.readyState!==this.CLOSING&&this.readyState!==this.CLOSED&&(this.readyState=this.CLOSING,this._close(t,s))}},{key:"send",value:function(t){if(this.readyState===this.CONNECTING)throw new Error('INVALID_STATE_ERR');if(t instanceof r(d[11]))return r(d[9])(r(d[10]).isAvailable,'Native module BlobModule is required for blob support'),void r(d[10]).sendOverSocket(t,this._socketId);if('string'!=typeof t){if(!(t instanceof ArrayBuffer||ArrayBuffer.isView(t)))throw new Error('Unsupported data type');l.default.sendBinary(r(d[12])(t),this._socketId)}else l.default.send(t,this._socketId)}},{key:"ping",value:function(){if(this.readyState===this.CONNECTING)throw new Error('INVALID_STATE_ERR');l.default.ping(this._socketId)}},{key:"_close",value:function(t,s){var n='number'==typeof t?t:1e3,o='string'==typeof s?s:'';l.default.close(n,o,this._socketId),r(d[10]).isAvailable&&'blob'===this._binaryType&&r(d[10]).removeWebSocketHandler(this._socketId)}},{key:"_unregisterEvents",value:function(){this._subscriptions.forEach(function(t){return t.remove()}),this._subscriptions=[]}},{key:"_registerEvents",value:function(){var t=this;this._subscriptions=[this._eventEmitter.addListener('websocketMessage',function(s){if(s.id===t._socketId){var n=s.data;switch(s.type){case'binary':n=r(d[13]).toByteArray(s.data).buffer;break;case'blob':n=r(d[10]).createFromOptions(s.data)}t.dispatchEvent(new(r(d[14]))('message',{data:n}))}}),this._eventEmitter.addListener('websocketOpen',function(s){s.id===t._socketId&&(t.readyState=t.OPEN,t.protocol=s.protocol,t.dispatchEvent(new(r(d[14]))('open')))}),this._eventEmitter.addListener('websocketClosed',function(s){s.id===t._socketId&&(t.readyState=t.CLOSED,t.dispatchEvent(new(r(d[14]))('close',{code:s.code,reason:s.reason})),t._unregisterEvents(),t.close())}),this._eventEmitter.addListener('websocketFailed',function(s){s.id===t._socketId&&(t.readyState=t.CLOSED,t.dispatchEvent(new(r(d[14]))('error',{message:s.message})),t.dispatchEvent(new(r(d[14]))('close',{message:s.message})),t._unregisterEvents(),t.close())})]}}]),N})(r(d[15]).apply(void 0,['close','error','message','open']));E.CONNECTING=y,E.OPEN=b,E.CLOSING=p,E.CLOSED=v,m.exports=E},117,[3,118,17,18,37,34,33,120,116,6,103,105,115,108,121,107]); __d(function(g,r,i,a,m,e,d){m.exports=function(t,o){if(null==t)return{};var n,l,p=r(d[0])(t,o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(l=0;l=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(p[n]=t[n])}return p},m.exports.__esModule=!0,m.exports.default=m.exports},118,[119]); __d(function(g,r,i,a,m,e,d){m.exports=function(t,n){if(null==t)return{};var o,u,f={},s=Object.keys(t);for(u=0;u=0||(f[o]=t[o]);return f},m.exports.__esModule=!0,m.exports.default=m.exports},119,[]); __d(function(g,r,i,a,m,e,d){'use strict';function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).getEnforcing('WebSocketModule');e.default=n},120,[5]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(function t(s,n){r(d[1])(this,t),this.type=s.toString(),r(d[2])(this,n)});m.exports=t},121,[18,17,14]); __d(function(g,r,i,a,m,e,d){'use strict';function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var n=(function(n){r(d[2])(s,n);var u,c,o=(u=s,c=t(),function(){var t,n=r(d[0])(u);if(c){var o=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function s(t,n,u){var c;return r(d[3])(this,s),r(d[4])(null!=t&&null!=n,'Failed to construct `File`: Must pass both `parts` and `name` arguments.'),(c=o.call(this,t,u)).data.name=n,c}return r(d[5])(s,[{key:"name",get:function(){return r(d[4])(null!=this.data.name,'Files must have a name set.'),this.data.name}},{key:"lastModified",get:function(){return this.data.lastModified||0}}]),s})(r(d[6]));m.exports=n},122,[33,34,37,17,6,18,105]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),s=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),l=r(d[0])(r(d[6]));function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var f=0,h=1,y=2,_=(function(_){(0,o.default)(R,_);var p,v,b=(p=R,v=c(),function(){var t,n=(0,u.default)(p);if(v){var o=(0,u.default)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,s.default)(this,t)});function R(){var n;return(0,t.default)(this,R),(n=b.call(this)).EMPTY=f,n.LOADING=h,n.DONE=y,n._aborted=!1,n._subscriptions=[],n._reset(),n}return(0,n.default)(R,[{key:"_reset",value:function(){this._readyState=f,this._error=null,this._result=null}},{key:"_clearSubscriptions",value:function(){this._subscriptions.forEach(function(t){return t.remove()}),this._subscriptions=[]}},{key:"_setReadyState",value:function(t){this._readyState=t,this.dispatchEvent({type:'readystatechange'}),t===y&&(this._aborted?this.dispatchEvent({type:'abort'}):this._error?this.dispatchEvent({type:'error'}):this.dispatchEvent({type:'load'}),this.dispatchEvent({type:'loadend'}))}},{key:"readAsArrayBuffer",value:function(){throw new Error('FileReader.readAsArrayBuffer is not implemented')}},{key:"readAsDataURL",value:function(t){var n=this;if(this._aborted=!1,null==t)throw new TypeError("Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'");l.default.readAsDataURL(t.data).then(function(t){n._aborted||(n._result=t,n._setReadyState(y))},function(t){n._aborted||(n._error=t,n._setReadyState(y))})}},{key:"readAsText",value:function(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'UTF-8';if(this._aborted=!1,null==t)throw new TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'");l.default.readAsText(t.data,o).then(function(t){n._aborted||(n._result=t,n._setReadyState(y))},function(t){n._aborted||(n._error=t,n._setReadyState(y))})}},{key:"abort",value:function(){this._aborted=!0,this._readyState!==f&&this._readyState!==y&&(this._reset(),this._setReadyState(y)),this._reset()}},{key:"readyState",get:function(){return this._readyState}},{key:"error",get:function(){return this._error}},{key:"result",get:function(){return this._result}}]),R})(r(d[7]).apply(void 0,['abort','error','load','loadstart','loadend','progress']));_.EMPTY=f,_.LOADING=h,_.DONE=y,m.exports=_},123,[3,17,18,37,34,33,124,107]); __d(function(g,r,i,a,m,e,d){'use strict';function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).getEnforcing('FileReaderModule');e.default=n},124,[5]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.URLSearchParams=e.URL=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),u=null;if(o.default&&'string'==typeof o.default.getConstants().BLOB_URI_SCHEME){var s=o.default.getConstants();u=s.BLOB_URI_SCHEME+':','string'==typeof s.BLOB_URI_HOST&&(u+="//"+s.BLOB_URI_HOST+"/")}var f=(function(o){function u(n){var o=this;(0,t.default)(this,u),this._searchParams=[],'object'==typeof n&&Object.keys(n).forEach(function(t){return o.append(t,n[t])})}return(0,n.default)(u,[{key:"append",value:function(t,n){this._searchParams.push([t,n])}},{key:"delete",value:function(t){throw new Error('not implemented')}},{key:"get",value:function(t){throw new Error('not implemented')}},{key:"getAll",value:function(t){throw new Error('not implemented')}},{key:"has",value:function(t){throw new Error('not implemented')}},{key:"set",value:function(t,n){throw new Error('not implemented')}},{key:"sort",value:function(){throw new Error('not implemented')}},{key:o,value:function(){return this._searchParams[Symbol.iterator]()}},{key:"toString",value:function(){if(0===this._searchParams.length)return'';var t=this._searchParams.length-1;return this._searchParams.reduce(function(n,o,u){return n+o.join('=')+(u===t?'':'&')},'')}}]),u})(Symbol.iterator);function h(t){return/^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(t)}e.URLSearchParams=f;var l=(function(){function o(n,u){(0,t.default)(this,o),this._searchParamsInstance=null;var s=null;if(!u||h(n))this._url=n,this._url.endsWith('/')||(this._url+='/');else{if('string'==typeof u){if(!h(s=u))throw new TypeError("Invalid base URL: "+s)}else'object'==typeof u&&(s=u.toString());s.endsWith('/')&&(s=s.slice(0,s.length-1)),n.startsWith('/')||(n="/"+n),s.endsWith(n)&&(n=''),this._url=""+s+n}}return(0,n.default)(o,[{key:"hash",get:function(){throw new Error('not implemented')}},{key:"host",get:function(){throw new Error('not implemented')}},{key:"hostname",get:function(){throw new Error('not implemented')}},{key:"href",get:function(){return this.toString()}},{key:"origin",get:function(){throw new Error('not implemented')}},{key:"password",get:function(){throw new Error('not implemented')}},{key:"pathname",get:function(){throw new Error('not implemented')}},{key:"port",get:function(){throw new Error('not implemented')}},{key:"protocol",get:function(){throw new Error('not implemented')}},{key:"search",get:function(){throw new Error('not implemented')}},{key:"searchParams",get:function(){return null==this._searchParamsInstance&&(this._searchParamsInstance=new f),this._searchParamsInstance}},{key:"toJSON",value:function(){return this.toString()}},{key:"toString",value:function(){if(null===this._searchParamsInstance)return this._url;var t=this._url.indexOf('?')>-1?'&':'?';return this._url+t+this._searchParamsInstance.toString()}},{key:"username",get:function(){throw new Error('not implemented')}}],[{key:"createObjectURL",value:function(t){if(null===u)throw new Error('Cannot create URL for blob!');return""+u+t.data.blobId+"?offset="+t.data.offset+"&size="+t.size}},{key:"revokeObjectURL",value:function(t){}}]),o})();e.URL=l},125,[3,17,18,104]); __d(function(g,r,i,a,m,e,d){'use strict';function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}Object.defineProperty(e,'__esModule',{value:!0});var o=(function(o){r(d[2])(f,o);var l,u,c=(l=f,u=t(),function(){var t,o=r(d[0])(l);if(u){var n=r(d[0])(this).constructor;t=Reflect.construct(o,arguments,n)}else t=o.apply(this,arguments);return r(d[1])(this,t)});function f(){throw r(d[3])(this,f),c.call(this),new TypeError("AbortSignal cannot be constructed directly")}return r(d[4])(f,[{key:"aborted",get:function(){var t=n.get(this);if("boolean"!=typeof t)throw new TypeError("Expected 'this' to be an 'AbortSignal' object, but got "+(null===this?"null":typeof this));return t}}]),f})(r(d[5]).EventTarget);r(d[5]).defineEventAttribute(o.prototype,"abort");var n=new WeakMap;Object.defineProperties(o.prototype,{aborted:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(o.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var l=(function(){function t(){var l;r(d[3])(this,t),u.set(this,(l=Object.create(o.prototype),r(d[5]).EventTarget.call(l),n.set(l,!1),l))}return r(d[4])(t,[{key:"signal",get:function(){return c(this)}},{key:"abort",value:function(){var t;t=c(this),!1===n.get(t)&&(n.set(t,!0),t.dispatchEvent({type:"abort"}))}}]),t})(),u=new WeakMap;function c(t){var o=u.get(t);if(null==o)throw new TypeError("Expected 'this' to be an 'AbortController' object, but got "+(null===t?"null":typeof t));return o}Object.defineProperties(l.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(l.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"}),e.AbortController=l,e.AbortSignal=o,e.default=l,m.exports=l,m.exports.AbortController=m.exports.default=l,m.exports.AbortSignal=o},126,[33,34,37,17,18,107]); __d(function(g,r,i,a,m,e,d){'use strict';g.alert||(g.alert=function(t){r(d[0]).alert('Alert',''+t)})},127,[128]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),s=r(d[0])(r(d[4])),l=r(d[0])(r(d[5])),u=(function(){function u(){(0,t.default)(this,u)}return(0,n.default)(u,null,[{key:"alert",value:function(t,n,l,c){if('ios'===o.default.OS)u.prompt(t,n,l,'default');else if('android'===o.default.OS){if(!s.default)return;var f=s.default.getConstants(),v={title:t||'',message:n||'',cancelable:!1};c&&c.cancelable&&(v.cancelable=c.cancelable);var p=l?l.slice(0,3):[{text:"OK"}],b=p.pop(),y=p.pop(),h=p.pop();h&&(v.buttonNeutral=h.text||''),y&&(v.buttonNegative=y.text||''),b&&(v.buttonPositive=b.text||"OK");s.default.showAlert(v,function(t){return console.warn(t)},function(t,n){t===f.buttonClicked?n===f.buttonNeutral?h.onPress&&h.onPress():n===f.buttonNegative?y.onPress&&y.onPress():n===f.buttonPositive&&b.onPress&&b.onPress():t===f.dismissed&&c&&c.onDismiss&&c.onDismiss()})}}},{key:"prompt",value:function(t,n,s){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:'plain-text',c=arguments.length>4?arguments[4]:void 0,f=arguments.length>5?arguments[5]:void 0;if('ios'===o.default.OS){var v,p,b=[],y=[];'function'==typeof s?b=[s]:Array.isArray(s)&&s.forEach(function(t,n){if(b[n]=t.onPress,'cancel'===t.style?v=String(n):'destructive'===t.style&&(p=String(n)),t.text||n<(s||[]).length-1){var o={};o[n]=t.text||'',y.push(o)}}),l.default.alertWithArgs({title:t||'',message:n||void 0,buttons:y,type:u||void 0,defaultValue:c,cancelButtonKey:v,destructiveButtonKey:p,keyboardType:f},function(t,n){var o=b[t];o&&o(n)})}}}]),u})();m.exports=u},128,[3,17,18,77,129,130]); __d(function(g,r,i,a,m,e,d){'use strict';function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('DialogManagerAndroid');e.default=n},129,[5]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1]));m.exports={alertWithArgs:function(l,u){null!=t.default&&t.default.alertWithArgs(l,u)}}},130,[3,131]); __d(function(g,r,i,a,m,e,d){'use strict';function t(n){if("function"!=typeof WeakMap)return null;var u=new WeakMap,o=new WeakMap;return(t=function(t){return t?o:u})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,u){if(!u&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var o=t(u);if(o&&o.has(n))return o.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,o&&o.set(n,f);return f})(r(d[0])).get('AlertManager');e.default=n},131,[5]); __d(function(g,r,i,a,m,e,d){'use strict';var t=g.navigator;void 0===t&&(g.navigator=t={}),r(d[0]).polyfillObjectProperty(t,'product',function(){return'ReactNative'})},132,[91]); __d(function(g,r,i,a,m,e,d){'use strict';var n;if(g.RN$Bridgeless&&g.RN$registerCallableModule)n=g.RN$registerCallableModule;else{var t=r(d[0]);n=function(n,u){return t.registerLazyCallableModule(n,u)}}n('Systrace',function(){return r(d[1])}),n('JSTimers',function(){return r(d[2])}),n('HeapCapture',function(){return r(d[3])}),n('SamplingProfiler',function(){return r(d[4])}),n('RCTLog',function(){return r(d[5])}),n('RCTDeviceEventEmitter',function(){return r(d[6])}),n('RCTNativeAppEventEmitter',function(){return r(d[7])}),n('GlobalPerformanceLogger',function(){return r(d[8])}),n('JSDevSupportModule',function(){return r(d[9])}),n('HMRClient',function(){return r(d[10])})},133,[15,19,94,134,136,138,32,139,109,140,142]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),p={captureHeap:function(p){var u=null;try{g.nativeCaptureHeap(p),console.log('HeapCapture.captureHeap succeeded: '+p)}catch(t){console.log('HeapCapture.captureHeap error: '+t.toString()),u=t.toString()}t.default&&t.default.captureComplete(p,u)}};m.exports=p},134,[3,135]); __d(function(g,r,i,a,m,e,d){'use strict';function t(n){if("function"!=typeof WeakMap)return null;var u=new WeakMap,o=new WeakMap;return(t=function(t){return t?o:u})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,u){if(!u&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var o=t(u);if(o&&o.has(n))return o.get(n);var f={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var l=p?Object.getOwnPropertyDescriptor(n,c):null;l&&(l.get||l.set)?Object.defineProperty(f,c,l):f[c]=n[c]}f.default=n,o&&o.set(n,f);return f})(r(d[0])).get('JSCHeapCapture');e.default=n},135,[5]); __d(function(g,r,i,a,m,e,d){'use strict';var o={poke:function(o){var l=null,n=null;try{null===(n=g.pokeSamplingProfiler())?console.log('The JSC Sampling Profiler has started'):console.log('The JSC Sampling Profiler has stopped')}catch(o){console.log('Error occurred when restarting Sampling Profiler: '+o.toString()),l=o.toString()}var t=r(d[0]).default;t&&t.operationComplete(o,n,l)}};m.exports=o},136,[137]); __d(function(g,r,i,a,m,e,d){'use strict';function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var p=l?Object.getOwnPropertyDescriptor(n,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=n[c]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('JSCSamplingProfiler');e.default=n},137,[5]); __d(function(g,r,i,a,m,e,d){'use strict';var o={log:'log',info:'info',warn:'warn',error:'error',fatal:'error'},n=null,l={logIfNoNativeHook:function(o){for(var t=arguments.length,f=new Array(t>1?t-1:0),c=1;c1?f-1:0),v=1;v=F},u=function(){},e.unstable_forceFrameRate=function(n){0>n||125>>1,u=n[l];if(!(void 0!==u&&0q(c,o))void 0!==b&&0>q(b,c)?(n[l]=b,n[f]=o,l=f):(n[l]=c,n[s]=o,l=s);else{if(!(void 0!==b&&0>q(b,o)))break n;n[l]=b,n[f]=o,l=f}}}return t}return null}function q(n,t){var o=n.sortIndex-t.sortIndex;return 0!==o?o:n.id-t.id}var D=[],R=[],j=1,E=null,N=3,B=!1,U=!1,W=!1;function Y(n){for(var t=A(R);null!==t;){if(null===t.callback)L(R);else{if(!(t.startTime<=n))break;L(R),t.sortIndex=t.expirationTime,C(D,t)}t=A(R)}}function z(o){if(W=!1,Y(o),!U)if(null!==A(D))U=!0,n(G);else{var l=A(R);null!==l&&t(z,l.startTime-o)}}function G(n,u){U=!1,W&&(W=!1,o()),B=!0;var s=N;try{for(Y(u),E=A(D);null!==E&&(!(E.expirationTime>u)||n&&!l());){var c=E.callback;if(null!==c){E.callback=null,N=E.priorityLevel;var f=c(E.expirationTime<=u);u=e.unstable_now(),"function"==typeof f?E.callback=f:E===A(D)&&L(D),Y(u)}else L(D);E=A(D)}if(null!==E)var b=!0;else{var p=A(R);null!==p&&t(z,p.startTime-u),b=!1}return b}finally{E=null,N=s,B=!1}}function H(n){switch(n){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var J=u;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(n){n.callback=null},e.unstable_continueExecution=function(){U||B||(U=!0,n(G))},e.unstable_getCurrentPriorityLevel=function(){return N},e.unstable_getFirstCallbackNode=function(){return A(D)},e.unstable_next=function(n){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var o=N;N=t;try{return n()}finally{N=o}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=J,e.unstable_runWithPriority=function(n,t){switch(n){case 1:case 2:case 3:case 4:case 5:break;default:n=3}var o=N;N=n;try{return t()}finally{N=o}},e.unstable_scheduleCallback=function(l,u,s){var c=e.unstable_now();if("object"==typeof s&&null!==s){var f=s.delay;f="number"==typeof f&&0c?(l.sortIndex=f,C(R,l),null===A(D)&&l===A(R)&&(W?o():W=!0,t(z,f-c))):(l.sortIndex=s,C(D,l),U||B||(U=!0,n(G))),l},e.unstable_shouldYield=function(){var n=e.unstable_now();Y(n);var t=A(D);return t!==E&&null!==E&&null!==t&&null!==t.callback&&t.startTime<=n&&t.expirationTime1?o-1:0),f=1;f>>8)>>>0}}},152,[153,154]); __d(function(g,r,i,a,m,e,d){'use strict';function l(l,n,o){return o<0&&(o+=1),o>1&&(o-=1),o<.16666666666666666?l+6*(n-l)*o:o<.5?n:o<.6666666666666666?l+(n-l)*(.6666666666666666-o)*6:l}function n(n,o,t){var u=t<.5?t*(1+o):t+o-t*o,s=2*t-u,h=l(s,u,n+.3333333333333333),c=l(s,u,n),b=l(s,u,n-.3333333333333333);return Math.round(255*h)<<24|Math.round(255*c)<<16|Math.round(255*b)<<8}var o,t='[-+]?\\d*\\.?\\d+',u="[-+]?\\d*\\.?\\d+%";function s(){for(var l=arguments.length,n=new Array(l),o=0;o255?255:n}function c(l){return(parseFloat(l)%360+360)%360/360}function b(l){var n=parseFloat(l);return n<0?0:n>1?255:Math.round(255*n)}function p(l){var n=parseFloat(l);return n<0?0:n>100?1:n/100}var y={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199};m.exports=function(l){var f,k=(void 0===o&&(o={rgb:new RegExp('rgb'+s(t,t,t)),rgba:new RegExp('rgba'+s(t,t,t,t)),hsl:new RegExp('hsl'+s(t,u,u)),hsla:new RegExp('hsla'+s(t,u,u,t)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/}),o);return'number'==typeof l?l>>>0===l&&l>=0&&l<=4294967295?l:null:'object'==typeof l&&null!=l&&null!=(0,r(d[0]).normalizeColorObject)(l)?l:'string'!=typeof l?null:(f=k.hex6.exec(l))?parseInt(f[1]+'ff',16)>>>0:y.hasOwnProperty(l)?y[l]:(f=k.rgb.exec(l))?(h(f[1])<<24|h(f[2])<<16|h(f[3])<<8|255)>>>0:(f=k.rgba.exec(l))?(h(f[1])<<24|h(f[2])<<16|h(f[3])<<8|b(f[4]))>>>0:(f=k.hex3.exec(l))?parseInt(f[1]+f[1]+f[2]+f[2]+f[3]+f[3]+'ff',16)>>>0:(f=k.hex8.exec(l))?parseInt(f[1],16)>>>0:(f=k.hex4.exec(l))?parseInt(f[1]+f[1]+f[2]+f[2]+f[3]+f[3]+f[4]+f[4],16)>>>0:(f=k.hsl.exec(l))?(255|n(c(f[1]),p(f[2]),p(f[3])))>>>0:(f=k.hsla.exec(l))?(n(c(f[1]),p(f[2]),p(f[3]))|b(f[4]))>>>0:null}},153,[154]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.processColorObject=e.normalizeColorObject=e.PlatformColor=e.DynamicColorIOSPrivate=void 0;e.PlatformColor=function(){for(var n=arguments.length,t=new Array(n),o=0;o.49999*x?[0,2*Math.atan2(c,h)*T,90]:p<-.49999*x?[0,-2*Math.atan2(c,h)*T,-90]:[t.roundTo3Places(Math.atan2(2*c*h-2*v*f,1-2*M-2*C)*T),t.roundTo3Places(Math.atan2(2*v*h-2*c*f,1-2*l-2*C)*T),t.roundTo3Places(Math.asin(2*c*v+2*f*h)*T)]},roundTo3Places:function(t){var n=t.toString().split('e');return.001*Math.round(n[0]+'e'+(n[1]?+n[1]-3:3))},decomposeMatrix:function(n){r(d[1])(16===n.length,'Matrix decomposition needs a list of 3d matrix values, received %s',n);var o=[],u=[],s=[],c=[],v=[];if(n[15]){for(var f=[],h=[],M=0;M<4;M++){f.push([]);for(var l=0;l<4;l++){var C=n[4*M+l]/n[15];f[M].push(C),h.push(3===l?0:C)}}if(h[15]=1,t.determinant(h)){if(0!==f[0][3]||0!==f[1][3]||0!==f[2][3]){var p=[f[0][3],f[1][3],f[2][3],f[3][3]],x=t.inverse(h),T=t.transpose(x);o=t.multiplyVectorByMatrix(p,T)}else o[0]=o[1]=o[2]=0,o[3]=1;for(var y=0;y<3;y++)v[y]=f[3][y];for(var S=[],P=0;P<3;P++)S[P]=[f[P][0],f[P][1],f[P][2]];s[0]=t.v3Length(S[0]),S[0]=t.v3Normalize(S[0],s[0]),c[0]=t.v3Dot(S[0],S[1]),S[1]=t.v3Combine(S[1],S[0],1,-c[0]),s[1]=t.v3Length(S[1]),S[1]=t.v3Normalize(S[1],s[1]),c[0]/=s[1],c[1]=t.v3Dot(S[0],S[2]),S[2]=t.v3Combine(S[2],S[0],1,-c[1]),c[2]=t.v3Dot(S[1],S[2]),S[2]=t.v3Combine(S[2],S[1],1,-c[2]),s[2]=t.v3Length(S[2]),S[2]=t.v3Normalize(S[2],s[2]),c[1]/=s[2],c[2]/=s[2];var q,D=t.v3Cross(S[1],S[2]);if(t.v3Dot(S[0],D)<0)for(var X=0;X<3;X++)s[X]*=-1,S[X][0]*=-1,S[X][1]*=-1,S[X][2]*=-1;return u[0]=.5*Math.sqrt(Math.max(1+S[0][0]-S[1][1]-S[2][2],0)),u[1]=.5*Math.sqrt(Math.max(1-S[0][0]+S[1][1]-S[2][2],0)),u[2]=.5*Math.sqrt(Math.max(1-S[0][0]-S[1][1]+S[2][2],0)),u[3]=.5*Math.sqrt(Math.max(1+S[0][0]+S[1][1]+S[2][2],0)),S[2][1]>S[1][2]&&(u[0]=-u[0]),S[0][2]>S[2][0]&&(u[1]=-u[1]),S[1][0]>S[0][1]&&(u[2]=-u[2]),{rotationDegrees:q=u[0]<.001&&u[0]>=0&&u[1]<.001&&u[1]>=0?[0,0,t.roundTo3Places(180*Math.atan2(S[0][1],S[0][0])/Math.PI)]:t.quaternionToDegreesXYZ(u,f,S),perspective:o,quaternion:u,scale:s,skew:c,translation:v,rotate:q[2],rotateX:q[0],rotateY:q[1],scaleX:s[0],scaleY:s[1],translateX:v[0],translateY:v[1]}}}}};m.exports=t},159,[8,6]); __d(function(g,r,i,a,m,e,d){'use strict';var s=!0===g.RN$Bridgeless?r(d[0]):r(d[1]);m.exports=s},160,[161,162]); __d(function(g,r,i,a,m,e,d){'use strict';m.exports={getViewManagerConfig:function(n){return console.warn('Attempting to get config for view manager: '+n),'RCTVirtualText'===n?{}:null},getConstants:function(){return{}},getConstantsForViewManager:function(n){},getDefaultEventTypes:function(){return[]},playTouchSound:function(){},lazilyLoadView:function(n){},createView:function(n,t,o,u){},updateView:function(n,t,o){},focus:function(n){},blur:function(n){},findSubviewIn:function(n,t,o){},dispatchViewManagerCommand:function(n,t,o){},measure:function(n,t){},measureInWindow:function(n,t){},viewIsDescendantOf:function(n,t,o){},measureLayout:function(n,t,o,u){},measureLayoutRelativeToParent:function(n,t,o){},setJSResponder:function(n,t){},clearJSResponder:function(){},configureNextLayoutAnimation:function(n,t,o){},removeSubviewsFromContainerWithID:function(n){},replaceExistingNonRootView:function(n,t){},setChildren:function(n,t){},manageChildren:function(n,t,o,u,c,f){},setLayoutAnimationEnabledExperimental:function(n){},sendAccessibilityEvent:function(n,t){},showPopupMenu:function(n,t,o,u){},dismissPopupMenu:function(){}}},161,[]); __d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),o={},f=new Set,u={},c=!1;function s(){return c||(u=t.default.getConstants(),c=!0),u}var l=(0,n.default)({},t.default,{getConstants:function(){return s()},getViewManagerConfig:function(n){if(void 0===o[n]&&t.default.getConstantsForViewManager)try{o[n]=t.default.getConstantsForViewManager(n)}catch(t){o[n]=null}var u=o[n];if(u)return u;if(!g.nativeCallSyncHook)return u;if(t.default.lazilyLoadView&&!f.has(n)){var c=t.default.lazilyLoadView(n);f.add(n),c.viewConfig&&(s()[n]=c.viewConfig,v(n))}return o[n]}});function v(n){var t=s()[n];o[n]=t,t.Manager&&(r(d[3])(t,'Constants',{get:function(){var n=r(d[4])[t.Manager],o={};return n&&Object.keys(n).forEach(function(t){var f=n[t];'function'!=typeof f&&(o[t]=f)}),o}}),r(d[3])(t,'Commands',{get:function(){var n=r(d[4])[t.Manager],o={},f=0;return n&&Object.keys(n).forEach(function(t){'function'==typeof n[t]&&(o[t]=f++)}),o}}))}t.default.getViewManagerConfig=l.getViewManagerConfig,Object.keys(s()).forEach(function(n){v(n)}),g.nativeCallSyncHook||Object.keys(s()).forEach(function(n){r(d[5]).includes(n)||(o[n]||(o[n]=s()[n]),r(d[3])(t.default,n,{get:function(){return console.warn("Accessing view manager configs directly off UIManager via UIManager['"+n+"'] is no longer supported. Use UIManager.getViewManagerConfig('"+n+"') instead."),l.getViewManagerConfig(n)}}))}),m.exports=l},162,[3,14,163,26,7,164]); __d(function(g,r,i,a,m,e,d){'use strict';function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).getEnforcing('UIManager');e.default=n},163,[5]); __d(function(g,r,i,a,m,e,d){'use strict';m.exports=['clearJSResponder','configureNextLayoutAnimation','createView','dismissPopupMenu','dispatchViewManagerCommand','findSubviewIn','getConstantsForViewManager','getDefaultEventTypes','manageChildren','measure','measureInWindow','measureLayout','measureLayoutRelativeToParent','playTouchSound','removeRootView','removeSubviewsFromContainerWithID','replaceExistingNonRootView','sendAccessibilityEvent','setChildren','setJSResponder','setLayoutAnimationEnabledExperimental','showPopupMenu','updateView','viewIsDescendantOf','PopupMenu','LazyViewManagersEnabled','ViewManagerNames','StyleConstants','AccessibilityEventTypes','UIView','getViewManagerConfig','blur','focus','genericBubblingEventTypes','genericDirectEventTypes','lazilyLoadView']},164,[]); __d(function(g,r,i,a,m,e,d){'use strict';var n;m.exports=function t(o,u){var f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,s=arguments.length>3?arguments[3]:void 0,c='number'==typeof f?s:f,l='number'==typeof f?f:-1;if(0===l)return!0;if(o===u)return!1;if('function'==typeof o&&'function'==typeof u){var v=null==c?void 0:c.unsafelyIgnoreFunctions;return null==v&&(!n||!n.onDifferentFunctionsIgnored||c&&'unsafelyIgnoreFunctions'in c||n.onDifferentFunctionsIgnored(o.name,u.name),v=!0),!v}if('object'!=typeof o||null===o)return o!==u;if('object'!=typeof u||null===u)return!0;if(o.constructor!==u.constructor)return!0;if(Array.isArray(o)){var y=o.length;if(u.length!==y)return!0;for(var p=0;p3?u-3:0),f=3;f=s)return t[n];return t[t.length-1]||1}}]),n})();m.exports=n},185,[186,189,17,18,6]); __d(function(g,r,i,a,m,e,d){'use strict';var t=(function(){function t(){r(d[0])(this,t)}return r(d[1])(t,null,[{key:"get",value:function(){return r(d[2]).get('window').scale}},{key:"getFontScale",value:function(){return r(d[2]).get('window').fontScale||t.get()}},{key:"getPixelSizeForLayoutSize",value:function(n){return Math.round(n*t.get())}},{key:"roundToNearestPixel",value:function(n){var u=t.get();return Math.round(n*u)/u}},{key:"startDetecting",value:function(){}}]),t})();m.exports=t},186,[17,18,187]); __d(function(g,r,i,a,m,e,d){'use strict';var n,t=r(d[0])(r(d[1])),s=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),c=r(d[0])(r(d[5])),u=r(d[0])(r(d[6])),f=new o.default,v=!1,h=(function(){function o(){(0,t.default)(this,o)}return(0,s.default)(o,null,[{key:"get",value:function(t){return(0,u.default)(n[t],'No dimension set for key '+t),n[t]}},{key:"set",value:function(t){var s=t.screen,o=t.window,l=t.windowPhysicalPixels;l&&(o={width:l.width/l.scale,height:l.height/l.scale,scale:l.scale,fontScale:l.fontScale});var c=t.screenPhysicalPixels;c?s={width:c.width/c.scale,height:c.height/c.scale,scale:c.scale,fontScale:c.fontScale}:null==s&&(s=o),n={window:o,screen:s},v?f.emit('change',n):v=!0}},{key:"addEventListener",value:function(n,t){(0,u.default)('change'===n,'Trying to subscribe to unknown event: "%s"',n),f.addListener(n,t)}},{key:"removeEventListener",value:function(n,t){(0,u.default)('change'===n,'Trying to remove listener for unknown event: "%s"',n),f.removeListener(n,t)}}]),o})(),w=g.nativeExtensions&&g.nativeExtensions.DeviceInfo&&g.nativeExtensions.DeviceInfo.Dimensions;w||(l.default.addListener('didUpdateDimensions',function(n){h.set(n)}),w=c.default.getConstants().Dimensions),h.set(w),m.exports=h},187,[3,17,18,42,32,188,6]); __d(function(g,r,i,a,m,e,d){'use strict';function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(u,l,p):u[l]=n[l]}u.default=n,f&&f.set(n,u);return u})(r(d[0])).getEnforcing('DeviceInfo');e.default=n},188,[5]); __d(function(g,r,i,a,m,e,d){'use strict';var t={.75:'ldpi',1:'mdpi',1.5:'hdpi',2:'xhdpi',3:'xxhdpi',4:'xxxhdpi'};function n(n){if(n.toString()in t)return t[n.toString()];throw new Error('no such scale '+n.toString())}var o=new Set(['gif','jpeg','jpg','png','svg','webp','xml']);function s(t){var n=t.httpServerLocation;return'/'===n[0]&&(n=n.substr(1)),n}m.exports={getAndroidAssetSuffix:n,getAndroidResourceFolderName:function(s,u){if(!o.has(s.type))return'raw';var c=n(u);if(!c)throw new Error("Don't know which android drawable suffix to use for scale: "+u+'\nAsset: '+JSON.stringify(s,null,'\t')+'\nPossible scales are:'+JSON.stringify(t,null,'\t'));return'drawable-'+c},getAndroidResourceIdentifier:function(t){return(s(t)+'/'+t.name).toLowerCase().replace(/\//g,'_').replace(/([^a-z0-9_])/g,'').replace(/^assets_/,'')},getBasePath:s}},189,[]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),f=r(d[0])(r(d[2])),n=r(d[3]),u=n.forwardRef(function(u,l){return n.createElement(r(d[4]).Provider,{value:!1},n.createElement(f.default,(0,t.default)({},u,{ref:l})))});u.displayName='View',m.exports=u},190,[3,14,191,46,194]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=e.Commands=void 0;!(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=u(n);if(o&&o.has(t))return o.get(t);var f={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in t)if("default"!==p&&Object.prototype.hasOwnProperty.call(t,p)){var l=s?Object.getOwnPropertyDescriptor(t,p):null;l&&(l.get||l.set)?Object.defineProperty(f,p,l):f[p]=t[p]}f.default=t,o&&o.set(t,f)})(r(d[0]));var t,n,o=r(d[1])(r(d[2]));function u(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(u=function(t){return t?o:n})(t)}g.RN$Bridgeless?(n={},r(d[3])('RCTView',{uiViewClassName:'RCTView'}),t='RCTView'):t=r(d[4])('RCTView');var f=n;e.__INTERNAL_VIEW_CONFIG=f;var s=(0,o.default)({supportedCommands:['hotspotUpdate','setPressed']});e.Commands=s;var p=t;e.default=p},191,[46,3,148,192,51]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2]));m.exports=function(s,u){var b={uiViewClassName:s,Commands:{},bubblingEventTypes:(0,t.default)({},r(d[3]).bubblingEventTypes,u.bubblingEventTypes||{}),directEventTypes:(0,t.default)({},r(d[3]).directEventTypes,u.directEventTypes||{}),validAttributes:(0,t.default)({},r(d[3]).validAttributes,u.validAttributes||{})};r(d[4]).register(s,function(){return(0,n.default)(s,b),b})}},192,[3,14,193,150,80]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.getConfigWithoutViewProps=function(n,f){if(!n[f])return{};return Object.keys(n[f]).filter(function(n){return!t.default[f][n]}).reduce(function(t,o){return t[o]=n[f][o],t},{})},e.lefthandObjectDiff=f,e.stringifyViewConfig=function(t){return JSON.stringify(t,function(t,n){return'function'==typeof n?"\u0192 "+n.name:n},2)};var t=r(d[0])(r(d[1])),n=['transform','hitSlop'];function f(t,o){var u={};function c(t,n,o){if(typeof t==typeof n||null==t)if('object'!=typeof t)t===n||(u[o]=n);else{var c=f(t,n);Object.keys(c).length>1&&(u[o]=c)}else u[o]=n}for(var s in t)n.includes(s)||(o?t.hasOwnProperty(s)&&c(t[s],o[s],s):u[s]={});return u}var o=function(t,n){if(!g.RN$Bridgeless){var o=r(d[2])(t);['validAttributes','bubblingEventTypes','directEventTypes'].forEach(function(u){var c=Object.keys(f(o[u],n[u]));c.length&&console.error(t+" generated view config for "+u+" does not match native, missing: "+c.join(' '))})}};e.default=o},193,[3,150,168]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);m.exports=t.createContext(!1)},194,[46]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]).roundToNearestPixel(.4);0===t&&(t=1/r(d[0]).get());var o={position:'absolute',left:0,right:0,top:0,bottom:0};m.exports={hairlineWidth:t,absoluteFill:o,absoluteFillObject:o,compose:function(t,o){return null!=t&&null!=o?[t,o]:null!=t?t:o},flatten:r(d[1]),setStyleAttributePreprocessor:function(t,o){var l;if(!0===r(d[2])[t])l={};else{if('object'!=typeof r(d[2])[t])return void console.error(t+" is not a valid style attribute");l=r(d[2])[t]}r(d[2])[t]=r(d[3])({},l,{process:o})},create:function(t){return t}}},195,[186,166,169,14]); __d(function(g,r,i,a,m,e,d){'use strict';function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var n=r(d[2]),o=(function(o){r(d[3])(f,o);var c,u,l=(c=f,u=t(),function(){var t,n=r(d[0])(c);if(u){var o=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function f(){return r(d[4])(this,f),l.apply(this,arguments)}return r(d[5])(f,[{key:"render",value:function(){var t=this.props,o=t.accessibilityLabel,c=t.color,u=t.onPress,l=t.touchSoundDisabled,f=t.title,b=t.hasTVPreferredFocus,p=t.nextFocusDown,h=t.nextFocusForward,x=t.nextFocusLeft,F=t.nextFocusRight,y=t.nextFocusUp,D=t.disabled,v=t.testID,R=[s.button],P=[s.text];c&&P.push({color:c});var w={};D&&(R.push(s.buttonDisabled),P.push(s.textDisabled),w.disabled=!0),r(d[6])('string'==typeof f,'The title prop of a Button must be a string');var L=f,S=r(d[7]);return n.createElement(S,{accessibilityLabel:o,accessibilityRole:"button",accessibilityState:w,hasTVPreferredFocus:b,nextFocusDown:p,nextFocusForward:h,nextFocusLeft:x,nextFocusRight:F,nextFocusUp:y,testID:v,disabled:D,onPress:u,touchSoundDisabled:l},n.createElement(r(d[8]),{style:R},n.createElement(r(d[9]),{style:P,disabled:D},L)))}}]),f})(n.Component),s=r(d[10]).create({button:{},text:r(d[11])({textAlign:'center',margin:8},{color:'#007AFF',fontSize:18}),buttonDisabled:{},textDisabled:{color:'#cdcdcd'}});m.exports=o},196,[33,34,46,37,17,18,6,197,190,283,195,14]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),s=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),n=r(d[0])(r(d[4])),c=r(d[0])(r(d[5])),l=r(d[0])(r(d[6])),p=r(d[0])(r(d[7])),u=r(d[0])(r(d[8])),f=r(d[0])(r(d[9])),y=r(d[0])(r(d[10])),h=r(d[0])(r(d[11])),b=r(d[0])(r(d[12])),v=r(d[0])(r(d[13])),P=(function(t,s){if(!s&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=O(s);if(o&&o.has(t))return o.get(t);var n={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var p=c?Object.getOwnPropertyDescriptor(t,l):null;p&&(p.get||p.set)?Object.defineProperty(n,l,p):n[l]=t[l]}n.default=t,o&&o.set(t,n);return n})(r(d[14])),F=["onBlur","onFocus"];function O(t){if("function"!=typeof WeakMap)return null;var s=new WeakMap,o=new WeakMap;return(O=function(t){return t?o:s})(t)}function _(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var R=(function(O){(0,c.default)(I,O);var R,w,D=(R=I,w=_(),function(){var t,s=(0,p.default)(R);if(w){var o=(0,p.default)(this).constructor;t=Reflect.construct(s,arguments,o)}else t=s.apply(this,arguments);return(0,l.default)(this,t)});function I(){var t;(0,o.default)(this,I);for(var s=arguments.length,n=new Array(s),c=0;c0?t._pressDelayTimeout=setTimeout(function(){t._receiveSignal('DELAY',E)},n):t._receiveSignal('DELAY',E);var R=v(t._config.delayLongPress,10,500-n);t._longPressDelayTimeout=setTimeout(function(){t._handleLongPress(E)},R+n)},onResponderMove:function(E){null!=t._config.onPressMove&&t._config.onPressMove(E);var n=t._responderRegion;if(null!=n){var R=I(E);if(null==R)return t._cancelLongPressDelayTimeout(),void t._receiveSignal('LEAVE_PRESS_RECT',E);if(null!=t._touchActivatePosition){var _=t._touchActivatePosition.pageX-R.pageX,o=t._touchActivatePosition.pageY-R.pageY;Math.hypot(_,o)>10&&t._cancelLongPressDelayTimeout()}t._isTouchWithinResponderRegion(R,n)?t._receiveSignal('ENTER_PRESS_RECT',E):(t._cancelLongPressDelayTimeout(),t._receiveSignal('LEAVE_PRESS_RECT',E))}},onResponderRelease:function(E){t._receiveSignal('RESPONDER_RELEASE',E)},onResponderTerminate:function(E){t._receiveSignal('RESPONDER_TERMINATED',E)},onResponderTerminationRequest:function(){var E=t._config.cancelable;if(null==E){var n=t._config.onResponderTerminationRequest_DEPRECATED;return null==n||n()}return E},onClick:function(E){var n=t._config.onPress;null!=n&&n(E)}},_='ios'===o.default.OS||'android'===o.default.OS?null:{onMouseEnter:function(E){if((0,r(d[9]).isHoverEnabled)()){t._isHovered=!0,t._cancelHoverOutDelayTimeout();var n=t._config.onHoverIn;if(null!=n){var R=v(t._config.delayHoverIn);R>0?t._hoverInDelayTimeout=setTimeout(function(){n(E)},R):n(E)}}},onMouseLeave:function(E){if(t._isHovered){t._isHovered=!1,t._cancelHoverInDelayTimeout();var n=t._config.onHoverOut;if(null!=n){var R=v(t._config.delayHoverOut);R>0?t._hoverInDelayTimeout=setTimeout(function(){n(E)},R):n(E)}}}};return(0,E.default)({},n,R,_)}},{key:"_receiveSignal",value:function(E,t){var n,_=this._touchState,o=null==(n=s[_])?void 0:n[E];null==this._responderID&&'RESPONDER_RELEASE'===E||((0,R.default)(null!=o&&'ERROR'!==o,'Pressability: Invalid signal `%s` for state `%s` on responder: %s',E,_,'number'==typeof this._responderID?this._responderID:'<>'),_!==o&&(this._performTransitionSideEffects(_,o,E,t),this._touchState=o))}},{key:"_performTransitionSideEffects",value:function(E,t,n,R){O(n)&&(this._touchActivatePosition=null,this._cancelLongPressDelayTimeout());var l='NOT_RESPONDER'===E&&'RESPONDER_INACTIVE_PRESS_IN'===t,u=!T(E)&&T(t);if((l||u)&&this._measureResponderRegion(),P(E)&&'LONG_PRESS_DETECTED'===n){var s=this._config.onLongPress;null!=s&&s(R)}var c=S(E),N=S(t);if(!c&&N?this._activate(R):c&&!N&&this._deactivate(R),P(E)&&'RESPONDER_RELEASE'===n){var D=this._config,h=D.onLongPress,f=D.onPress,v=D.android_disableSound;if(null!=f)null!=h&&'RESPONDER_ACTIVE_LONG_PRESS_IN'===E&&this._shouldLongPressCancelPress()||(N||c||(this._activate(R),this._deactivate(R)),'android'===o.default.OS&&!0!==v&&_.default.playTouchSound(),f(R))}this._cancelPressDelayTimeout()}},{key:"_activate",value:function(E){var t=this._config.onPressIn,n=I(E);this._touchActivatePosition={pageX:n.pageX,pageY:n.pageY},this._touchActivateTime=Date.now(),null!=t&&t(E)}},{key:"_deactivate",value:function(E){var t=this._config.onPressOut;if(null!=t){var n,R=v(this._config.minPressDuration,0,130),_=Date.now()-(null!=(n=this._touchActivateTime)?n:0),o=Math.max(R-_,v(this._config.delayPressOut));o>0?this._pressOutDelayTimeout=setTimeout(function(){t(E)},o):t(E)}this._touchActivateTime=null}},{key:"_measureResponderRegion",value:function(){null!=this._responderID&&('number'==typeof this._responderID?l.default.measure(this._responderID,this._measureCallback):this._responderID.measure(this._measureCallback))}},{key:"_isTouchWithinResponderRegion",value:function(E,t){var n,R,_,o,l=(0,r(d[10]).normalizeRect)(this._config.hitSlop),u=(0,r(d[10]).normalizeRect)(this._config.pressRectOffset),s=t.bottom,S=t.left,T=t.right,P=t.top;return null!=l&&(null!=l.bottom&&(s+=l.bottom),null!=l.left&&(S-=l.left),null!=l.right&&(T+=l.right),null!=l.top&&(P-=l.top)),s+=null!=(n=null==u?void 0:u.bottom)?n:c,S-=null!=(R=null==u?void 0:u.left)?R:N,T+=null!=(_=null==u?void 0:u.right)?_:D,P-=null!=(o=null==u?void 0:u.top)?o:h,E.pageX>S&&E.pageXP&&E.pageY1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.max(t,null!=E?E:n)}e.default=f;var I=function(E){var t=E.nativeEvent,n=t.changedTouches,R=t.touches;return null!=R&&R.length>0?R[0]:null!=n&&n.length>0?n[0]:E.nativeEvent}},198,[3,14,17,18,6,199,77,160,46,201,202]); __d(function(g,r,i,a,m,e,d){'use strict';var u=r(d[0])(r(d[1])),o={playTouchSound:function(){u.default&&u.default.playTouchSound()}};m.exports=o},199,[3,200]); __d(function(g,r,i,a,m,e,d){'use strict';function t(n){if("function"!=typeof WeakMap)return null;var u=new WeakMap,o=new WeakMap;return(t=function(t){return t?o:u})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,u){if(!u&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var o=t(u);if(o&&o.has(n))return o.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,o&&o.set(n,f);return f})(r(d[0])).get('SoundManager');e.default=n},200,[5]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.isHoverEnabled=function(){return n};var n=!1;if('web'===r(d[0])(r(d[1])).default.OS&&Boolean('undefined'!=typeof window&&window.document&&window.document.createElement)){var t=0,o=function(){t=Date.now(),n&&(n=!1)};document.addEventListener('touchstart',o,!0),document.addEventListener('touchmove',o,!0),document.addEventListener('mousemove',function(){n||Date.now()-t<1e3||(n=!0)},!0)}},201,[3,77]); __d(function(g,r,i,a,m,e,d){'use strict';function t(t){return{bottom:t,left:t,right:t,top:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.createSquare=t,e.normalizeRect=function(n){return'number'==typeof n?t(n):n}},202,[]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),s=r(d[0])(r(d[5])),f=r(d[0])(r(d[6])),o=(function(){function o(n,v){(0,t.default)(this,o),(0,u.default)(s.default.isTV,'TVTouchable: Requires `Platform.isTV`.'),this._tvEventHandler=new f.default,this._tvEventHandler.enable(n,function(t,u){u.dispatchConfig={},l.default.findNodeHandle(n)===u.tag&&('focus'===u.eventType?v.onFocus(u):'blur'===u.eventType?v.onBlur(u):'select'===u.eventType&&(v.getDisabled()||v.onPress(u)))})}return(0,n.default)(o,[{key:"destroy",value:function(){this._tvEventHandler.disable()}}]),o})();e.default=o},203,[3,17,18,6,82,77,204]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),v=r(d[0])(r(d[3])),_=(function(){function _(){(0,t.default)(this,_),this.__nativeTVNavigationEventListener=null,this.__nativeTVNavigationEventEmitter=null}return(0,n.default)(_,[{key:"enable",value:function(t,n){v.default&&(this.__nativeTVNavigationEventEmitter=new(r(d[4]))(v.default),this.__nativeTVNavigationEventListener=this.__nativeTVNavigationEventEmitter.addListener('onHWKeyEvent',function(v){n&&n(t,v)}))}},{key:"disable",value:function(){this.__nativeTVNavigationEventListener&&(this.__nativeTVNavigationEventListener.remove(),delete this.__nativeTVNavigationEventListener),this.__nativeTVNavigationEventEmitter&&delete this.__nativeTVNavigationEventEmitter}}]),_})();m.exports=_},204,[3,17,18,205,116]); __d(function(g,r,i,a,m,e,d){'use strict';function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('TVNavigationEventEmitter');e.default=n},205,[5]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=(r(d[3]),n.default.isTesting||g.RN$Bridgeless?r(d[4]):r(d[5]));m.exports=(0,t.default)({get FlatList(){return r(d[6])},get Image(){return r(d[7])},get ScrollView(){return r(d[8])},get SectionList(){return r(d[9])},get Text(){return r(d[10])},get View(){return r(d[11])}},u)},206,[3,14,77,46,207,219,240,268,278,279,282,291]); __d(function(g,r,i,a,m,e,d){'use strict';var t={start:function(){},stop:function(){},reset:function(){},_startNativeLoop:function(){},_isUsingNativeDriver:function(){return!1}};m.exports={Value:r(d[1]),ValueXY:r(d[2]),Interpolation:r(d[3]),Node:r(d[4]),decay:function(n,u){return t},timing:function(n,u){var o=n;return r(d[0])({},t,{start:function(t){o.setValue(u.toValue),t&&t({finished:!0})}})},spring:function(n,u){var o=n;return r(d[0])({},t,{start:function(t){o.setValue(u.toValue),t&&t({finished:!0})}})},add:r(d[5]).add,subtract:r(d[5]).subtract,divide:r(d[5]).divide,multiply:r(d[5]).multiply,modulo:r(d[5]).modulo,diffClamp:r(d[5]).diffClamp,delay:function(n){return t},sequence:function(n){return t},parallel:function(n,u){return t},stagger:function(n,u){return t},loop:function(n){(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).iterations;return t},event:function(t,n){return null},createAnimatedComponent:r(d[6]),attachNativeEvent:r(d[7]).attachNativeEvent,forkEvent:r(d[5]).forkEvent,unforkEvent:r(d[5]).unforkEvent,Event:r(d[7]).AnimatedEvent,__PropsOnlyForTests:r(d[8])}},207,[14,208,218,211,213,219,235,234,237]); __d(function(g,r,i,a,m,e,d){'use strict';function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function n(t){var n=new Set;!(function t(s){'function'==typeof s.update?n.add(s):s.__getChildren().forEach(t)})(t),n.forEach(function(t){return t.update()})}var s=(function(s){r(d[2])(f,s);var u,o,l=(u=f,o=t(),function(){var t,n=r(d[0])(u);if(o){var s=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,s)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function f(t){var n;if(r(d[3])(this,f),n=l.call(this),'number'!=typeof t)throw new Error('AnimatedValue: Attempting to set value to undefined');return n._startingValue=n._value=t,n._offset=0,n._animation=null,n}return r(d[4])(f,[{key:"__detach",value:function(){this.stopAnimation(),r(d[5])(r(d[0])(f.prototype),"__detach",this).call(this)}},{key:"__getValue",value:function(){return this._value+this._offset}},{key:"setValue",value:function(t){this._animation&&(this._animation.stop(),this._animation=null),this._updateValue(t,!this.__isNative),this.__isNative&&r(d[6]).API.setAnimatedNodeValue(this.__getNativeTag(),t)}},{key:"setOffset",value:function(t){this._offset=t,this.__isNative&&r(d[6]).API.setAnimatedNodeOffset(this.__getNativeTag(),t)}},{key:"flattenOffset",value:function(){this._value+=this._offset,this._offset=0,this.__isNative&&r(d[6]).API.flattenAnimatedNodeOffset(this.__getNativeTag())}},{key:"extractOffset",value:function(){this._offset+=this._value,this._value=0,this.__isNative&&r(d[6]).API.extractAnimatedNodeOffset(this.__getNativeTag())}},{key:"stopAnimation",value:function(t){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,t&&t(this.__getValue())}},{key:"resetAnimation",value:function(t){this.stopAnimation(t),this._value=this._startingValue}},{key:"_onAnimatedValueUpdateReceived",value:function(t){this._updateValue(t,!1)}},{key:"interpolate",value:function(t){return new(r(d[7]))(this,t)}},{key:"animate",value:function(t,n){var s=this,u=null;t.__isInteraction&&(u=r(d[8]).createInteractionHandle());var o=this._animation;this._animation&&this._animation.stop(),this._animation=t,t.start(this._value,function(t){s._updateValue(t,!0)},function(t){s._animation=null,null!==u&&r(d[8]).clearInteractionHandle(u),n&&n(t)},o,this)}},{key:"stopTracking",value:function(){this._tracking&&this._tracking.__detach(),this._tracking=null}},{key:"track",value:function(t){this.stopTracking(),this._tracking=t}},{key:"_updateValue",value:function(t,s){if(void 0===t)throw new Error('AnimatedValue: Attempting to set value to undefined');this._value=t,s&&n(this),r(d[5])(r(d[0])(f.prototype),"__callListeners",this).call(this,this.__getValue())}},{key:"__getNativeConfig",value:function(){return{type:'value',value:this._value,offset:this._offset}}}]),f})(r(d[9]));m.exports=s},208,[33,34,37,17,18,40,209,211,214,212]); __d(function(g,r,i,a,m,e,d){'use strict';var t,n=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),l=r(d[0])(r(d[3])),u=1,s=1,f=!1,v=[],c={enableQueue:function(){f=!0},disableQueue:function(){(0,l.default)(o.default,'Native animated module is not available'),f=!1;for(var t=0,n=v.length;to){if('identity'===f)return h;'clamp'===f&&(h=o)}return u===c?u:n===o?t<=n?u:c:(n===-1/0?h=-h:o===1/0?h-=n:h=(h-n)/(o-n),h=l(h),u===-1/0?h=-h:c===1/0?h+=u:h=h*(c-u)+u,h)}function c(t){var n=r(d[3])(t);return null===n||'number'!=typeof n?t:"rgba("+((4278190080&(n=n||0))>>>24)+", "+((16711680&n)>>>16)+", "+((65280&n)>>>8)+", "+(255&n)/255+")"}var l=/[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;function p(t){var n=t.outputRange;r(d[2])(n.length>=2,'Bad output range'),f(n=n.map(c));var u=n[0].match(l).map(function(){return[]});n.forEach(function(t){t.match(l).forEach(function(t,n){u[n].push(+t)})});var p,h=n[0].match(l).map(function(n,c){return o(r(d[4])({},t,{outputRange:u[c]}))}),s='string'==typeof(p=n[0])&&p.startsWith('rgb');return function(t){var o=0;return n[0].replace(l,function(){var n=+h[o++](t);return s&&(n=o<4?Math.round(n):Math.round(1e3*n)/1e3),String(n)})}}function f(t){for(var n=t[0].replace(l,''),o=1;o=t);++o);return o-1}function s(t){r(d[2])(t.length>=2,'inputRange must have at least 2 elements');for(var n=1;n=t[n-1],'inputRange must be monotonically non-decreasing '+t)}function v(t,n){r(d[2])(n.length>=2,t+' must have at least 2 elements'),r(d[2])(2!==n.length||n[0]!==-1/0||n[1]!==1/0,t+'cannot be ]-infinity;+infinity[ '+n)}var _=(function(n){r(d[5])(p,n);var u,c,l=(u=p,c=t(),function(){var t,n=r(d[0])(u);if(c){var o=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function p(t,n){var u;return r(d[6])(this,p),(u=l.call(this))._parent=t,u._config=n,u._interpolation=o(n),u}return r(d[7])(p,[{key:"__makeNative",value:function(){this._parent.__makeNative(),r(d[8])(r(d[0])(p.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){var t=this._parent.__getValue();return r(d[2])('number'==typeof t,'Cannot interpolate an input which is not a number.'),this._interpolation(t)}},{key:"interpolate",value:function(t){return new p(this,t)}},{key:"__attach",value:function(){this._parent.__addChild(this)}},{key:"__detach",value:function(){this._parent.__removeChild(this),r(d[8])(r(d[0])(p.prototype),"__detach",this).call(this)}},{key:"__transformDataType",value:function(t){return t.map(r(d[9]).transformDataType)}},{key:"__getNativeConfig",value:function(){return{inputRange:this._config.inputRange,outputRange:this.__transformDataType(this._config.outputRange),extrapolateLeft:this._config.extrapolateLeft||this._config.extrapolate||'extend',extrapolateRight:this._config.extrapolateRight||this._config.extrapolate||'extend',type:'interpolation'}}}]),p})(r(d[10]));_.__createInterpolation=o,m.exports=_},211,[33,34,6,153,14,37,17,18,40,209,212]); __d(function(g,r,i,a,m,e,d){'use strict';function t(t,o){var c="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(c)return(c=c.call(t)).next.bind(c);if(Array.isArray(t)||(c=n(t))||o&&t&&"number"==typeof t.length){c&&(t=c);var l=0;return function(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return o(t,n);var c=Object.prototype.toString.call(t).slice(8,-1);return"Object"===c&&t.constructor&&(c=t.constructor.name),"Map"===c||"Set"===c?Array.from(t):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?o(t,n):void 0}}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,c=new Array(n);o0?setTimeout(h,0):setImmediate(h))}function h(){l=0;var f=o.size;c.forEach(function(n){return o.add(n)}),s.forEach(function(n){return o.delete(n)});var h=o.size;if(0!==f&&0===h?n.emit(t.Events.interactionComplete):0===f&&0!==h&&n.emit(t.Events.interactionStart),0===h)for(;u.hasTasksToProcess();)if(u.processNext(),p>0&&r(d[4]).getEventLoopRunningTime()>=p){v();break}c.clear(),s.clear()}m.exports=t},214,[42,215,6,217,15]); __d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(n){var t,o={};for(t in n instanceof Object&&!Array.isArray(n)||r(d[0])(!1),n)n.hasOwnProperty(t)&&(o[t]=t);return o}},215,[216]); __d(function(g,r,i,a,m,e,d){'use strict';var n=function(n){if(void 0===n)throw new Error('invariant(...): Second argument must be a string.')};m.exports=function(o,t){for(var f=arguments.length,s=new Array(f>2?f-2:0),u=2;u0||0===u})}},{key:"hasTasksToProcess",value:function(){return this._getCurrentQueue().length>0}},{key:"processNext",value:function(){var t=this._getCurrentQueue();if(t.length){var u=t.shift();try{u.gen?this._genPromise(u):u.run?u.run():(r(d[3])('function'==typeof u,'Expected Function, SimpleTask, or PromiseTask, but got:\n'+JSON.stringify(u,null,2)),u())}catch(t){throw t.message='TaskQueue: Error with task '+(u.name||'')+': '+t.message,t}}}},{key:"_getCurrentQueue",value:function(){var t=this._queueStack.length-1,u=this._queueStack[t];return u.popable&&0===u.tasks.length&&this._queueStack.length>1?(this._queueStack.pop(),this._getCurrentQueue()):u.tasks}},{key:"_genPromise",value:function(t){var u=this;this._queueStack.push({tasks:[],popable:!1});var s=this._queueStack.length-1;t.gen().then(function(){u._queueStack[s].popable=!0,u.hasTasksToProcess()&&u._onMoreTasks()}).catch(function(u){throw u.message="TaskQueue: Error resolving Promise in task "+t.name+": "+u.message,u}).done()}}]),t})();m.exports=t},217,[17,18,14,6]); __d(function(g,r,i,a,m,e,d){'use strict';function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var n=1,s=(function(s){r(d[2])(l,s);var u,f,o=(u=l,f=t(),function(){var t,n=r(d[0])(u);if(f){var s=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,s)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function l(t){var n;r(d[3])(this,l),n=o.call(this);var s=t||{x:0,y:0};return'number'==typeof s.x&&'number'==typeof s.y?(n.x=new(r(d[4]))(s.x),n.y=new(r(d[4]))(s.y)):(r(d[5])(s.x instanceof r(d[4])&&s.y instanceof r(d[4]),"AnimatedValueXY must be initialized with an object of numbers or AnimatedValues."),n.x=s.x,n.y=s.y),n._listeners={},n}return r(d[6])(l,[{key:"setValue",value:function(t){this.x.setValue(t.x),this.y.setValue(t.y)}},{key:"setOffset",value:function(t){this.x.setOffset(t.x),this.y.setOffset(t.y)}},{key:"flattenOffset",value:function(){this.x.flattenOffset(),this.y.flattenOffset()}},{key:"extractOffset",value:function(){this.x.extractOffset(),this.y.extractOffset()}},{key:"__getValue",value:function(){return{x:this.x.__getValue(),y:this.y.__getValue()}}},{key:"resetAnimation",value:function(t){this.x.resetAnimation(),this.y.resetAnimation(),t&&t(this.__getValue())}},{key:"stopAnimation",value:function(t){this.x.stopAnimation(),this.y.stopAnimation(),t&&t(this.__getValue())}},{key:"addListener",value:function(t){var s=this,u=String(n++),f=function(n){n.value;t(s.__getValue())};return this._listeners[u]={x:this.x.addListener(f),y:this.y.addListener(f)},u}},{key:"removeListener",value:function(t){this.x.removeListener(this._listeners[t].x),this.y.removeListener(this._listeners[t].y),delete this._listeners[t]}},{key:"removeAllListeners",value:function(){this.x.removeAllListeners(),this.y.removeAllListeners(),this._listeners={}}},{key:"getLayout",value:function(){return{left:this.x,top:this.y}}},{key:"getTranslateTransform",value:function(){return[{translateX:this.x},{translateY:this.y}]}}]),l})(r(d[7]));m.exports=s},218,[33,34,37,17,208,6,18,212]); __d(function(g,r,i,a,m,e,d){'use strict';var n=function(n,t){return n&&t.onComplete?function(){t.onComplete&&t.onComplete.apply(t,arguments),n&&n.apply(void 0,arguments)}:n||t.onComplete},t=function(n,t,o){if(n instanceof r(d[6])){var u=r(d[7])({},t),c=r(d[7])({},t);for(var f in t){var v=t[f],p=v.x,l=v.y;void 0!==p&&void 0!==l&&(u[f]=p,c[f]=l)}var h=o(n.x,u),_=o(n.y,c);return s([h,_],{stopTogether:!1})}return null},o=function o(u,s){var c=function(t,o,u){u=n(u,o);var s=t,c=o;s.stopTracking(),o.toValue instanceof r(d[8])?s.track(new(r(d[9]))(s,o.toValue,r(d[11]),c,u)):s.animate(new(r(d[11]))(c),u)};return t(u,s,o)||{start:function(n){c(u,s,n)},stop:function(){u.stopAnimation()},reset:function(){u.resetAnimation()},_startNativeLoop:function(n){var t=r(d[7])({},s,{iterations:n});c(u,t)},_isUsingNativeDriver:function(){return s.useNativeDriver||!1}}},u=function(n){var t=0;return{start:function(o){0===n.length?o&&o({finished:!0}):n[t].start(function u(s){s.finished&&++t!==n.length?n[t].start(u):o&&o(s)})},stop:function(){t1&&void 0!==arguments[1]?arguments[1]:{},o=t.iterations,u=void 0===o?-1:o,s=t.resetBeforeIteration,c=void 0===s||s,f=!1,v=0;return{start:function(t){n&&0!==u?n._isUsingNativeDriver()?n._startNativeLoop(u):(function o(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{finished:!0};f||v===u||!1===s.finished?t&&t(s):(v++,c&&n.reset(),n.start(o))})():t&&t({finished:!0})},stop:function(){f=!0,n.stop()},reset:function(){v=0,f=!1,n.reset()},_startNativeLoop:function(){throw new Error('Loops run using the native driver cannot contain Animated.loop animations')},_isUsingNativeDriver:function(){return n._isUsingNativeDriver()}}},event:function(n,t){var o=new(r(d[14]).AnimatedEvent)(n,t);return o.__isNative?o:o.__getHandler()},createAnimatedComponent:r(d[16]),attachNativeEvent:r(d[14]).attachNativeEvent,forkEvent:function(n,t){return n?n instanceof r(d[14]).AnimatedEvent?(n.__addListener(t),n):function(){'function'==typeof n&&n.apply(void 0,arguments),t.apply(void 0,arguments)}:t},unforkEvent:function(n,t){n&&n instanceof r(d[14]).AnimatedEvent&&n.__removeListener(t)},Event:r(d[14]).AnimatedEvent,__PropsOnlyForTests:r(d[17])}},219,[220,221,222,223,224,225,218,14,213,226,227,230,233,208,234,211,235,237]); __d(function(g,r,i,a,m,e,d){'use strict';function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var n=(function(n){r(d[2])(c,n);var _,u,o=(_=c,u=t(),function(){var t,n=r(d[0])(_);if(u){var o=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function c(t,n){var _;return r(d[3])(this,c),(_=o.call(this))._a='number'==typeof t?new(r(d[4]))(t):t,_._b='number'==typeof n?new(r(d[4]))(n):n,_}return r(d[5])(c,[{key:"__makeNative",value:function(){this._a.__makeNative(),this._b.__makeNative(),r(d[6])(r(d[0])(c.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){return this._a.__getValue()+this._b.__getValue()}},{key:"interpolate",value:function(t){return new(r(d[7]))(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),r(d[6])(r(d[0])(c.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'addition',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),c})(r(d[8]));m.exports=n},220,[33,34,37,17,208,18,40,211,212]); __d(function(g,r,i,a,m,e,d){'use strict';function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var n=(function(n){r(d[2])(c,n);var _,u,o=(_=c,u=t(),function(){var t,n=r(d[0])(_);if(u){var o=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function c(t,n){var _;return r(d[3])(this,c),(_=o.call(this))._a='number'==typeof t?new(r(d[4]))(t):t,_._b='number'==typeof n?new(r(d[4]))(n):n,_}return r(d[5])(c,[{key:"__makeNative",value:function(){this._a.__makeNative(),this._b.__makeNative(),r(d[6])(r(d[0])(c.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){return this._a.__getValue()-this._b.__getValue()}},{key:"interpolate",value:function(t){return new(r(d[7]))(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),r(d[6])(r(d[0])(c.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'subtraction',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),c})(r(d[8]));m.exports=n},221,[33,34,37,17,208,18,40,211,212]); __d(function(g,r,i,a,m,e,d){'use strict';function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var n=(function(n){r(d[2])(c,n);var _,o,u=(_=c,o=t(),function(){var t,n=r(d[0])(_);if(o){var u=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,u)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function c(t,n){var _;return r(d[3])(this,c),(_=u.call(this))._a='number'==typeof t?new(r(d[4]))(t):t,_._b='number'==typeof n?new(r(d[4]))(n):n,_}return r(d[5])(c,[{key:"__makeNative",value:function(){this._a.__makeNative(),this._b.__makeNative(),r(d[6])(r(d[0])(c.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){var t=this._a.__getValue(),n=this._b.__getValue();return 0===n&&console.error('Detected division by zero in AnimatedDivision'),t/n}},{key:"interpolate",value:function(t){return new(r(d[7]))(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),r(d[6])(r(d[0])(c.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'division',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),c})(r(d[8]));m.exports=n},222,[33,34,37,17,208,18,40,211,212]); __d(function(g,r,i,a,m,e,d){'use strict';function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var n=(function(n){r(d[2])(c,n);var _,u,o=(_=c,u=t(),function(){var t,n=r(d[0])(_);if(u){var o=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function c(t,n){var _;return r(d[3])(this,c),(_=o.call(this))._a='number'==typeof t?new(r(d[4]))(t):t,_._b='number'==typeof n?new(r(d[4]))(n):n,_}return r(d[5])(c,[{key:"__makeNative",value:function(){this._a.__makeNative(),this._b.__makeNative(),r(d[6])(r(d[0])(c.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){return this._a.__getValue()*this._b.__getValue()}},{key:"interpolate",value:function(t){return new(r(d[7]))(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),r(d[6])(r(d[0])(c.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'multiplication',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),c})(r(d[8]));m.exports=n},223,[33,34,37,17,208,18,40,211,212]); __d(function(g,r,i,a,m,e,d){'use strict';function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var u=(function(u){r(d[2])(s,u);var n,o,c=(n=s,o=t(),function(){var t,u=r(d[0])(n);if(o){var c=r(d[0])(this).constructor;t=Reflect.construct(u,arguments,c)}else t=u.apply(this,arguments);return r(d[1])(this,t)});function s(t,u){var n;return r(d[3])(this,s),(n=c.call(this))._a=t,n._modulus=u,n}return r(d[4])(s,[{key:"__makeNative",value:function(){this._a.__makeNative(),r(d[5])(r(d[0])(s.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){return(this._a.__getValue()%this._modulus+this._modulus)%this._modulus}},{key:"interpolate",value:function(t){return new(r(d[6]))(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),r(d[5])(r(d[0])(s.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'modulus',input:this._a.__getNativeTag(),modulus:this._modulus}}}]),s})(r(d[7]));m.exports=u},224,[33,34,37,17,18,40,211,212]); __d(function(g,r,i,a,m,e,d){'use strict';function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var n=(function(n){r(d[2])(c,n);var u,_,l=(u=c,_=t(),function(){var t,n=r(d[0])(u);if(_){var l=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,l)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function c(t,n,u){var _;return r(d[3])(this,c),(_=l.call(this))._a=t,_._min=n,_._max=u,_._value=_._lastValue=_._a.__getValue(),_}return r(d[4])(c,[{key:"__makeNative",value:function(){this._a.__makeNative(),r(d[5])(r(d[0])(c.prototype),"__makeNative",this).call(this)}},{key:"interpolate",value:function(t){return new(r(d[6]))(this,t)}},{key:"__getValue",value:function(){var t=this._a.__getValue(),n=t-this._lastValue;return this._lastValue=t,this._value=Math.min(Math.max(this._value+n,this._min),this._max),this._value}},{key:"__attach",value:function(){this._a.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),r(d[5])(r(d[0])(c.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'diffclamp',input:this._a.__getNativeTag(),min:this._min,max:this._max}}}]),c})(r(d[7]));m.exports=n},225,[33,34,37,17,18,40,211,212]); __d(function(g,r,i,a,m,e,d){'use strict';function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var n=(function(n){r(d[2])(s,n);var _,o,u=(_=s,o=t(),function(){var t,n=r(d[0])(_);if(o){var u=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,u)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function s(t,n,_,o,l){var c;return r(d[3])(this,s),(c=u.call(this))._value=t,c._parent=n,c._animationClass=_,c._animationConfig=o,c._useNativeDriver=r(d[4]).shouldUseNativeDriver(o),c._callback=l,c.__attach(),c}return r(d[5])(s,[{key:"__makeNative",value:function(){this.__isNative=!0,this._parent.__makeNative(),r(d[6])(r(d[0])(s.prototype),"__makeNative",this).call(this),this._value.__makeNative()}},{key:"__getValue",value:function(){return this._parent.__getValue()}},{key:"__attach",value:function(){this._parent.__addChild(this),this._useNativeDriver&&this.__makeNative()}},{key:"__detach",value:function(){this._parent.__removeChild(this),r(d[6])(r(d[0])(s.prototype),"__detach",this).call(this)}},{key:"update",value:function(){this._value.animate(new this._animationClass(r(d[7])({},this._animationConfig,{toValue:this._animationConfig.toValue.__getValue()})),this._callback)}},{key:"__getNativeConfig",value:function(){var t=new this._animationClass(r(d[7])({},this._animationConfig,{toValue:void 0})).__getNativeAnimationConfig();return{type:'tracking',animationId:r(d[4]).generateNewAnimationId(),animationConfig:t,toValue:this._parent.__getNativeTag(),value:this._value.__getNativeTag()}}}]),s})(r(d[8]));m.exports=n},226,[33,34,37,17,209,18,40,14,213]); __d(function(g,r,i,a,m,e,d){'use strict';function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var s=(function(s){r(d[2])(h,s);var n,o,l=(n=h,o=t(),function(){var t,s=r(d[0])(n);if(o){var l=r(d[0])(this).constructor;t=Reflect.construct(s,arguments,l)}else t=s.apply(this,arguments);return r(d[1])(this,t)});function h(t){var s,n,o,_,u,f,c,v,p,y,V,T;if(r(d[3])(this,h),(p=l.call(this))._overshootClamping=null!=(s=t.overshootClamping)&&s,p._restDisplacementThreshold=null!=(n=t.restDisplacementThreshold)?n:.001,p._restSpeedThreshold=null!=(o=t.restSpeedThreshold)?o:.001,p._initialVelocity=null!=(_=t.velocity)?_:0,p._lastVelocity=null!=(u=t.velocity)?u:0,p._toValue=t.toValue,p._delay=null!=(f=t.delay)?f:0,p._useNativeDriver=r(d[4]).shouldUseNativeDriver(t),p.__isInteraction=null!=(c=t.isInteraction)?c:!p._useNativeDriver,p.__iterations=null!=(v=t.iterations)?v:1,void 0!==t.stiffness||void 0!==t.damping||void 0!==t.mass)r(d[5])(void 0===t.bounciness&&void 0===t.speed&&void 0===t.tension&&void 0===t.friction,'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one'),p._stiffness=null!=(y=t.stiffness)?y:100,p._damping=null!=(V=t.damping)?V:10,p._mass=null!=(T=t.mass)?T:1;else if(void 0!==t.bounciness||void 0!==t.speed){var b,M;r(d[5])(void 0===t.tension&&void 0===t.friction&&void 0===t.stiffness&&void 0===t.damping&&void 0===t.mass,'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one');var D=r(d[6]).fromBouncinessAndSpeed(null!=(b=t.bounciness)?b:8,null!=(M=t.speed)?M:12);p._stiffness=D.stiffness,p._damping=D.damping,p._mass=1}else{var P,S,U=r(d[6]).fromOrigamiTensionAndFriction(null!=(P=t.tension)?P:40,null!=(S=t.friction)?S:7);p._stiffness=U.stiffness,p._damping=U.damping,p._mass=1}return r(d[5])(p._stiffness>0,'Stiffness value must be greater than 0'),r(d[5])(p._damping>0,'Damping value must be greater than 0'),r(d[5])(p._mass>0,'Mass value must be greater than 0'),p}return r(d[7])(h,[{key:"__getNativeAnimationConfig",value:function(){var t;return{type:'spring',overshootClamping:this._overshootClamping,restDisplacementThreshold:this._restDisplacementThreshold,restSpeedThreshold:this._restSpeedThreshold,stiffness:this._stiffness,damping:this._damping,mass:this._mass,initialVelocity:null!=(t=this._initialVelocity)?t:this._lastVelocity,toValue:this._toValue,iterations:this.__iterations}}},{key:"start",value:function(t,s,n,o,l){var _=this;if(this.__active=!0,this._startPosition=t,this._lastPosition=this._startPosition,this._onUpdate=s,this.__onEnd=n,this._lastTime=Date.now(),this._frameTime=0,o instanceof h){var u=o.getInternalState();this._lastPosition=u.lastPosition,this._lastVelocity=u.lastVelocity,this._initialVelocity=this._lastVelocity,this._lastTime=u.lastTime}var f=function(){_._useNativeDriver?_.__startNativeAnimation(l):_.onUpdate()};this._delay?this._timeout=setTimeout(f,this._delay):f()}},{key:"getInternalState",value:function(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}}},{key:"onUpdate",value:function(){var t=Date.now();t>this._lastTime+64&&(t=this._lastTime+64);var s=(t-this._lastTime)/1e3;this._frameTime+=s;var n=this._damping,o=this._mass,l=this._stiffness,h=-this._initialVelocity,_=n/(2*Math.sqrt(l*o)),u=Math.sqrt(l/o),f=u*Math.sqrt(1-_*_),c=this._toValue-this._startPosition,v=0,p=0,y=this._frameTime;if(_<1){var V=Math.exp(-_*u*y);v=this._toValue-V*((h+_*u*c)/f*Math.sin(f*y)+c*Math.cos(f*y)),p=_*u*V*(Math.sin(f*y)*(h+_*u*c)/f+c*Math.cos(f*y))-V*(Math.cos(f*y)*(h+_*u*c)-f*c*Math.sin(f*y))}else{var T=Math.exp(-u*y);v=this._toValue-T*(c+(h+u*c)*y),p=T*(h*(y*u-1)+y*c*(u*u))}if(this._lastTime=t,this._lastPosition=v,this._lastVelocity=p,this._onUpdate(v),this.__active){var b=!1;this._overshootClamping&&0!==this._stiffness&&(b=this._startPositionthis._toValue:v18&&A<=44?p(A):h(A),s(2*M-M*M,v,.01));return{stiffness:n(x),damping:t(B)}}}},228,[]); __d(function(g,r,i,a,m,e,d){'use strict';var n=(function(){function n(){r(d[0])(this,n)}return r(d[1])(n,[{key:"start",value:function(n,t,o,_,u){}},{key:"stop",value:function(){this.__nativeId&&r(d[2]).API.stopAnimation(this.__nativeId)}},{key:"__getNativeAnimationConfig",value:function(){throw new Error('This animation type cannot be offloaded to native')}},{key:"__debouncedOnEnd",value:function(n){var t=this.__onEnd;this.__onEnd=null,t&&t(n)}},{key:"__startNativeAnimation",value:function(n){r(d[2]).API.enableQueue(),n.__makeNative(),r(d[2]).API.disableQueue(),this.__nativeId=r(d[2]).generateNewAnimationId(),r(d[2]).API.startAnimatingNode(this.__nativeId,n.__getNativeTag(),this.__getNativeAnimationConfig(),this.__debouncedOnEnd.bind(this))}}]),n})();m.exports=n},229,[17,18,209]); __d(function(g,r,i,a,m,e,d){'use strict';function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var n;function s(){if(!n){var t=r(d[2]);n=t.inOut(t.ease)}return n}var o=(function(n){r(d[3])(h,n);var o,u,_=(o=h,u=t(),function(){var t,n=r(d[0])(o);if(u){var s=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,s)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function h(t){var n,o,u,l,c,f;return r(d[4])(this,h),(f=_.call(this))._toValue=t.toValue,f._easing=null!=(n=t.easing)?n:s(),f._duration=null!=(o=t.duration)?o:500,f._delay=null!=(u=t.delay)?u:0,f.__iterations=null!=(l=t.iterations)?l:1,f._useNativeDriver=r(d[5]).shouldUseNativeDriver(t),f.__isInteraction=null!=(c=t.isInteraction)?c:!f._useNativeDriver,f}return r(d[6])(h,[{key:"__getNativeAnimationConfig",value:function(){for(var t=[],n=Math.round(this._duration/16.666666666666668),s=0;s=this._startTime+this._duration)return 0===this._duration?this._onUpdate(this._toValue):this._onUpdate(this._fromValue+this._easing(1)*(this._toValue-this._fromValue)),void this.__debouncedOnEnd({finished:!0});this._onUpdate(this._fromValue+this._easing((t-this._startTime)/this._duration)*(this._toValue-this._fromValue)),this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this)))}},{key:"stop",value:function(){r(d[7])(r(d[0])(h.prototype),"stop",this).call(this),this.__active=!1,clearTimeout(this._timeout),g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}]),h})(r(d[8]));m.exports=o},230,[33,34,231,37,17,209,18,40,229]); __d(function(g,r,i,a,m,e,d){'use strict';var n,u=(function(){function u(){r(d[0])(this,u)}return r(d[1])(u,null,[{key:"step0",value:function(n){return n>0?1:0}},{key:"step1",value:function(n){return n>=1?1:0}},{key:"linear",value:function(n){return n}},{key:"ease",value:function(t){return n||(n=u.bezier(.42,0,1,1)),n(t)}},{key:"quad",value:function(n){return n*n}},{key:"cubic",value:function(n){return n*n*n}},{key:"poly",value:function(n){return function(u){return Math.pow(u,n)}}},{key:"sin",value:function(n){return 1-Math.cos(n*Math.PI/2)}},{key:"circle",value:function(n){return 1-Math.sqrt(1-n*n)}},{key:"exp",value:function(n){return Math.pow(2,10*(n-1))}},{key:"elastic",value:function(){var n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)*Math.PI;return function(u){return 1-Math.pow(Math.cos(u*Math.PI/2),3)*Math.cos(u*n)}}},{key:"back",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.70158;return function(u){return u*u*((n+1)*u-n)}}},{key:"bounce",value:function(n){if(n<.36363636363636365)return 7.5625*n*n;if(n<.7272727272727273){var u=n-.5454545454545454;return 7.5625*u*u+.75}if(n<.9090909090909091){var t=n-.8181818181818182;return 7.5625*t*t+.9375}var o=n-.9545454545454546;return 7.5625*o*o+.984375}},{key:"bezier",value:function(n,u,t,o){return r(d[2])(n,u,t,o)}},{key:"in",value:function(n){return n}},{key:"out",value:function(n){return function(u){return 1-n(1-u)}}},{key:"inOut",value:function(n){return function(u){return u<.5?n(2*u)/2:1-n(2*(1-u))/2}}}]),u})();m.exports=u},231,[17,18,232]); __d(function(g,r,i,a,m,e,d){'use strict';var n=4,t=.001,u=1e-7,o=10,f=.1,c='function'==typeof Float32Array;function v(n,t){return 1-3*t+3*n}function s(n,t){return 3*t-6*n}function w(n){return 3*n}function l(n,t,u){return((v(t,u)*n+s(t,u))*n+w(t))*n}function y(n,t,u){return 3*v(t,u)*n*n+2*s(t,u)*n+w(t)}function b(n,t,f,c,v){var s,w,y=0,b=t,h=f;do{(s=l(w=b+(h-b)/2,c,v)-n)>0?h=w:b=w}while(Math.abs(s)>u&&++y=0&&n<=1&&o>=0&&o<=1))throw new Error('bezier x values must be in [0, 1] range');var s=c?new Float32Array(11):new Array(11);if(n!==u||o!==v)for(var w=0;w<11;++w)s[w]=l(w*f,n,o);function A(u){for(var c=0,v=1;10!==v&&s[v]<=u;++v)c+=f;var w=c+(u-s[--v])/(s[v+1]-s[v])*f,l=y(w,n,o);return l>=t?h(u,w,n,o):0===l?w:b(u,c,c+f,n,o)}return function(t){return n===u&&o===v?t:0===t?0:1===t?1:l(A(t),u,v)}}},232,[]); __d(function(g,r,i,a,m,e,d){'use strict';function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var n=(function(n){r(d[2])(u,n);var s,o,c=(s=u,o=t(),function(){var t,n=r(d[0])(s);if(o){var c=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,c)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function u(t){var n,s,o,l;return r(d[3])(this,u),(l=c.call(this))._deceleration=null!=(n=t.deceleration)?n:.998,l._velocity=t.velocity,l._useNativeDriver=r(d[4]).shouldUseNativeDriver(t),l.__isInteraction=null!=(s=t.isInteraction)?s:!l._useNativeDriver,l.__iterations=null!=(o=t.iterations)?o:1,l}return r(d[5])(u,[{key:"__getNativeAnimationConfig",value:function(){return{type:'decay',deceleration:this._deceleration,velocity:this._velocity,iterations:this.__iterations}}},{key:"start",value:function(t,n,s,o,c){this.__active=!0,this._lastValue=t,this._fromValue=t,this._onUpdate=n,this.__onEnd=s,this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(c):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}},{key:"onUpdate",value:function(){var t=Date.now(),n=this._fromValue+this._velocity/(1-this._deceleration)*(1-Math.exp(-(1-this._deceleration)*(t-this._startTime)));this._onUpdate(n),Math.abs(this._lastValue-n)<.1?this.__debouncedOnEnd({finished:!0}):(this._lastValue=n,this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))))}},{key:"stop",value:function(){r(d[6])(r(d[0])(u.prototype),"stop",this).call(this),this.__active=!1,g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}]),u})(r(d[7]));m.exports=n},233,[33,34,37,17,209,18,40,229]); __d(function(g,r,i,a,m,e,d){'use strict';function t(t,n,s){var v=[];r(d[1])(s[0]&&s[0].nativeEvent,'Native driven events only support animated values contained inside `nativeEvent`.'),(function t(n,s){if(n instanceof r(d[0]))n.__makeNative(),v.push({nativeEventPath:s,animatedValueTag:n.__getNativeTag()});else if('object'==typeof n)for(var o in n)t(n[o],s.concat(o))})(s[0].nativeEvent,[]);var o=r(d[2]).findNodeHandle(t);return null!=o&&v.forEach(function(t){r(d[3]).API.addAnimatedEventToView(o,n,t)}),{detach:function(){null!=o&&v.forEach(function(t){r(d[3]).API.removeAnimatedEventFromView(o,n,t.animatedValueTag)})}}}var n=(function(){function n(t,s){r(d[4])(this,n),this._listeners=[],this._argMapping=t,null==s&&(console.warn('Animated.event now requires a second argument for options'),s={useNativeDriver:!1}),s.listener&&this.__addListener(s.listener),this._callListeners=this._callListeners.bind(this),this._attachedEvent=null,this.__isNative=r(d[3]).shouldUseNativeDriver(s)}return r(d[5])(n,[{key:"__addListener",value:function(t){this._listeners.push(t)}},{key:"__removeListener",value:function(t){this._listeners=this._listeners.filter(function(n){return n!==t})}},{key:"__attach",value:function(n,s){r(d[1])(this.__isNative,'Only native driven events need to be attached.'),this._attachedEvent=t(n,s,this._argMapping)}},{key:"__detach",value:function(t,n){r(d[1])(this.__isNative,'Only native driven events need to be detached.'),this._attachedEvent&&this._attachedEvent.detach()}},{key:"__getHandler",value:function(){var t=this;if(this.__isNative)return this._callListeners;return function(){for(var n=arguments.length,s=new Array(n),v=0;v>'),n})}}),t}return r(d[7])(u,[{key:"_attachNativeEvents",value:function(){var t,n=this,o=null!=(t=this._component)&&t.getScrollableNode?this._component.getScrollableNode():this._component,l=function(t){var l=n.props[t];l instanceof r(d[8]).AnimatedEvent&&l.__isNative&&(l.__attach(o,t),n._eventDetachers.push(function(){return l.__detach(o,t)}))};for(var c in this.props)l(c)}},{key:"_detachNativeEvents",value:function(){this._eventDetachers.forEach(function(t){return t()}),this._eventDetachers=[]}},{key:"_attachProps",value:function(t){var n=this._propsAnimated;this._propsAnimated=new(r(d[9]))(t,this._animatedPropsCallback),n&&(n.__restoreDefaultValues(),n.__detach())}},{key:"render",value:function(){var t=this._propsAnimated.__getValue();return n.createElement(o,r(d[10])({},t,{ref:this._setComponentRef,collapsable:!this._propsAnimated.__isNative&&t.collapsable}))}},{key:"UNSAFE_componentWillMount",value:function(){this._attachProps(this.props)}},{key:"componentDidMount",value:function(){this._invokeAnimatedPropsCallbackOnMount&&(this._invokeAnimatedPropsCallbackOnMount=!1,this._animatedPropsCallback()),this._propsAnimated.setNativeView(this._component),this._attachNativeEvents()}},{key:"UNSAFE_componentWillReceiveProps",value:function(t){this._attachProps(t)}},{key:"componentDidUpdate",value:function(t){this._component!==this._prevComponent&&this._propsAnimated.setNativeView(this._component),this._component===this._prevComponent&&t===this.props||(this._detachNativeEvents(),this._attachNativeEvents())}},{key:"componentWillUnmount",value:function(){this._propsAnimated&&this._propsAnimated.__detach(),this._detachNativeEvents()}}]),u})(n.Component);return n.forwardRef(function(t,o){return n.createElement(l,r(d[10])({},t,null==o?null:{forwardedRef:o}))})}},235,[33,34,46,6,37,17,236,18,234,237,14]); __d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t){var n=t.getForwardedRef,o=t.setLocalRef;return function(t){var c=n();o(t),'function'==typeof c?c(t):'object'==typeof c&&null!=c&&(c.current=t)}}},236,[]); __d(function(g,r,i,a,m,e,d){'use strict';function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var n=(function(n){r(d[2])(c,n);var s,o,_=(s=c,o=t(),function(){var t,n=r(d[0])(s);if(o){var _=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,_)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function c(t,n){var s;return r(d[3])(this,c),s=_.call(this),t.style&&(t=r(d[4])({},t,{style:new(r(d[5]))(t.style)})),s._props=t,s._callback=n,s.__attach(),s}return r(d[6])(c,[{key:"__getValue",value:function(){var t={};for(var n in this._props){var s=this._props[n];s instanceof r(d[7])?(!s.__isNative||s instanceof r(d[5]))&&(t[n]=s.__getValue()):s instanceof r(d[8]).AnimatedEvent?t[n]=s.__getHandler():t[n]=s}return t}},{key:"__getAnimatedValue",value:function(){var t={};for(var n in this._props){var s=this._props[n];s instanceof r(d[7])&&(t[n]=s.__getAnimatedValue())}return t}},{key:"__attach",value:function(){for(var t in this._props){var n=this._props[t];n instanceof r(d[7])&&n.__addChild(this)}}},{key:"__detach",value:function(){for(var t in this.__isNative&&this._animatedView&&this.__disconnectAnimatedView(),this._props){var n=this._props[t];n instanceof r(d[7])&&n.__removeChild(this)}r(d[9])(r(d[0])(c.prototype),"__detach",this).call(this)}},{key:"update",value:function(){this._callback()}},{key:"__makeNative",value:function(){if(!this.__isNative){for(var t in this.__isNative=!0,this._props){var n=this._props[t];n instanceof r(d[7])&&n.__makeNative()}this._animatedView&&this.__connectAnimatedView()}}},{key:"setNativeView",value:function(t){this._animatedView!==t&&(this._animatedView=t,this.__isNative&&this.__connectAnimatedView())}},{key:"__connectAnimatedView",value:function(){r(d[10])(this.__isNative,'Expected node to be marked as "native"');var t=r(d[11]).findNodeHandle(this._animatedView);r(d[10])(null!=t,'Unable to locate attached view in the native tree'),r(d[12]).API.connectAnimatedNodeToView(this.__getNativeTag(),t)}},{key:"__disconnectAnimatedView",value:function(){r(d[10])(this.__isNative,'Expected node to be marked as "native"');var t=r(d[11]).findNodeHandle(this._animatedView);r(d[10])(null!=t,'Unable to locate attached view in the native tree'),r(d[12]).API.disconnectAnimatedNodeFromView(this.__getNativeTag(),t)}},{key:"__restoreDefaultValues",value:function(){this.__isNative&&r(d[12]).API.restoreDefaultValues(this.__getNativeTag())}},{key:"__getNativeConfig",value:function(){var t={};for(var n in this._props){var s=this._props[n];s instanceof r(d[7])&&(s.__makeNative(),t[n]=s.__getNativeTag())}return{type:'props',props:t}}}]),c})(r(d[7]));m.exports=n},237,[33,34,37,17,14,238,18,213,234,40,6,82,209]); __d(function(g,r,i,a,m,e,d){'use strict';function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var n=(function(n){r(d[2])(u,n);var s,l,o=(s=u,l=t(),function(){var t,n=r(d[0])(s);if(l){var o=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function u(t){var n;return r(d[3])(this,u),n=o.call(this),(t=r(d[4])(t)||{}).transform&&(t=r(d[5])({},t,{transform:new(r(d[6]))(t.transform)})),n._style=t,n}return r(d[7])(u,[{key:"_walkStyleAndGetValues",value:function(t){var n={};for(var s in t){var l=t[s];l instanceof r(d[8])?l.__isNative||(n[s]=l.__getValue()):l&&!Array.isArray(l)&&'object'==typeof l?n[s]=this._walkStyleAndGetValues(l):n[s]=l}return n}},{key:"__getValue",value:function(){return this._walkStyleAndGetValues(this._style)}},{key:"_walkStyleAndGetAnimatedValues",value:function(t){var n={};for(var s in t){var l=t[s];l instanceof r(d[8])?n[s]=l.__getAnimatedValue():l&&!Array.isArray(l)&&'object'==typeof l&&(n[s]=this._walkStyleAndGetAnimatedValues(l))}return n}},{key:"__getAnimatedValue",value:function(){return this._walkStyleAndGetAnimatedValues(this._style)}},{key:"__attach",value:function(){for(var t in this._style){var n=this._style[t];n instanceof r(d[8])&&n.__addChild(this)}}},{key:"__detach",value:function(){for(var t in this._style){var n=this._style[t];n instanceof r(d[8])&&n.__removeChild(this)}r(d[9])(r(d[0])(u.prototype),"__detach",this).call(this)}},{key:"__makeNative",value:function(){for(var t in this._style){var n=this._style[t];n instanceof r(d[8])&&n.__makeNative()}r(d[9])(r(d[0])(u.prototype),"__makeNative",this).call(this)}},{key:"__getNativeConfig",value:function(){var t={};for(var n in this._style)if(this._style[n]instanceof r(d[8])){var s=this._style[n];s.__makeNative(),t[n]=s.__getNativeTag()}return r(d[10]).validateStyles(t),{type:'style',style:t}}}]),u})(r(d[11]));m.exports=n},238,[33,34,37,17,166,14,239,18,213,40,209,212]); __d(function(g,r,i,a,m,e,d){'use strict';function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var n=(function(n){r(d[2])(s,n);var o,f,c=(o=s,f=t(),function(){var t,n=r(d[0])(o);if(f){var c=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,c)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function s(t){var n;return r(d[3])(this,s),(n=c.call(this))._transforms=t,n}return r(d[4])(s,[{key:"__makeNative",value:function(){this._transforms.forEach(function(t){for(var n in t){var o=t[n];o instanceof r(d[5])&&o.__makeNative()}}),r(d[6])(r(d[0])(s.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){return this._transforms.map(function(t){var n={};for(var o in t){var f=t[o];f instanceof r(d[5])?n[o]=f.__getValue():n[o]=f}return n})}},{key:"__getAnimatedValue",value:function(){return this._transforms.map(function(t){var n={};for(var o in t){var f=t[o];f instanceof r(d[5])?n[o]=f.__getAnimatedValue():n[o]=f}return n})}},{key:"__attach",value:function(){var t=this;this._transforms.forEach(function(n){for(var o in n){var f=n[o];f instanceof r(d[5])&&f.__addChild(t)}})}},{key:"__detach",value:function(){var t=this;this._transforms.forEach(function(n){for(var o in n){var f=n[o];f instanceof r(d[5])&&f.__removeChild(t)}}),r(d[6])(r(d[0])(s.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){var t=[];return this._transforms.forEach(function(n){for(var o in n){var f=n[o];f instanceof r(d[5])?t.push({type:'animated',property:o,nodeTag:f.__getNativeTag()}):t.push({type:'static',property:o,value:r(d[7]).transformDataType(f)})}}),r(d[7]).validateTransform(t),{type:'transform',transforms:t}}}]),s})(r(d[8]));m.exports=n},239,[33,34,37,17,18,213,40,209,212]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),n=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var f=o(n);if(f&&f.has(t))return f.get(t);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var p=c?Object.getOwnPropertyDescriptor(t,l):null;p&&(p.get||p.set)?Object.defineProperty(u,l,p):u[l]=t[l]}u.default=t,f&&f.set(t,u);return u})(r(d[2]));function o(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,f=new WeakMap;return(o=function(t){return t?f:n})(t)}var f=n.forwardRef(function(o,f){return n.createElement(r(d[3]),(0,t.default)({scrollEventThrottle:1e-4},o,{ref:f}))});m.exports=r(d[4])(f)},240,[3,14,46,241,235]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),s=r(d[0])(r(d[5])),u=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),f=r(d[0])(r(d[8])),p=["numColumns","columnWrapperStyle"];function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var C=r(d[9]),v=(0,f.default)({},r(d[10]).defaultProps,{numColumns:1,removeClippedSubviews:!1}),y=(function(v){(0,s.default)(I,v);var y,_,w=(y=I,_=h(),function(){var t,n=(0,c.default)(y);if(_){var o=(0,c.default)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,u.default)(this,t)});function I(t){var l;return(0,o.default)(this,I),(l=w.call(this,t))._virtualizedListPairs=[],l._captureRef=function(t){l._listRef=t},l._getItem=function(t,n){var o=l.props.numColumns;if(o>1){for(var s=[],u=0;u1?Math.ceil(t.length/n):t.length}return 0},l._keyExtractor=function(t,n){var o=l.props,s=o.keyExtractor,u=o.numColumns;return u>1?(r(d[11])(Array.isArray(t),"FlatList: Encountered internal consistency error, expected each item to consist of an array with 1-%s columns; instead, received a single item.",u),t.map(function(t,o){return s(t,n*u+o)}).join(':')):s(t,n)},l._renderer=function(){var t=l.props,o=t.ListItemComponent,s=t.renderItem,u=t.numColumns,c=t.columnWrapperStyle,f=o?'ListItemComponent':'renderItem',p=function(t){return o?C.createElement(o,t):s?s(t):null};return(0,n.default)({},f,function(t){if(u>1){var n=t.item,o=t.index;return r(d[11])(Array.isArray(n),'Expected array of items with numColumns > 1'),C.createElement(r(d[12]),{style:r(d[13]).compose(b.row,c)},n.map(function(n,l){var s=p({item:n,index:o*u+l,separators:t.separators});return null!=s?C.createElement(C.Fragment,{key:l},s):null}))}return p(t)})},l._checkProps(l.props),l.props.viewabilityConfigCallbackPairs?l._virtualizedListPairs=l.props.viewabilityConfigCallbackPairs.map(function(t){return{viewabilityConfig:t.viewabilityConfig,onViewableItemsChanged:l._createOnViewableItemsChanged(t.onViewableItemsChanged)}}):l.props.onViewableItemsChanged&&l._virtualizedListPairs.push({viewabilityConfig:l.props.viewabilityConfig,onViewableItemsChanged:l._createOnViewableItemsChanged(l.props.onViewableItemsChanged)}),l}return(0,l.default)(I,[{key:"scrollToEnd",value:function(t){this._listRef&&this._listRef.scrollToEnd(t)}},{key:"scrollToIndex",value:function(t){this._listRef&&this._listRef.scrollToIndex(t)}},{key:"scrollToItem",value:function(t){this._listRef&&this._listRef.scrollToItem(t)}},{key:"scrollToOffset",value:function(t){this._listRef&&this._listRef.scrollToOffset(t)}},{key:"recordInteraction",value:function(){this._listRef&&this._listRef.recordInteraction()}},{key:"flashScrollIndicators",value:function(){this._listRef&&this._listRef.flashScrollIndicators()}},{key:"getScrollResponder",value:function(){if(this._listRef)return this._listRef.getScrollResponder()}},{key:"getNativeScrollRef",value:function(){if(this._listRef)return this._listRef.getScrollRef()}},{key:"getScrollableNode",value:function(){if(this._listRef)return this._listRef.getScrollableNode()}},{key:"setNativeProps",value:function(t){this._listRef&&this._listRef.setNativeProps(t)}},{key:"componentDidUpdate",value:function(t){r(d[11])(t.numColumns===this.props.numColumns,"Changing numColumns on the fly is not supported. Change the key prop on FlatList when changing the number of columns to force a fresh render of the component."),r(d[11])(t.onViewableItemsChanged===this.props.onViewableItemsChanged,'Changing onViewableItemsChanged on the fly is not supported'),r(d[11])(!r(d[14])(t.viewabilityConfig,this.props.viewabilityConfig),'Changing viewabilityConfig on the fly is not supported'),r(d[11])(t.viewabilityConfigCallbackPairs===this.props.viewabilityConfigCallbackPairs,'Changing viewabilityConfigCallbackPairs on the fly is not supported'),this._checkProps(this.props)}},{key:"_checkProps",value:function(t){var n=t.getItem,o=t.getItemCount,l=t.horizontal,s=t.numColumns,u=t.columnWrapperStyle,c=t.onViewableItemsChanged,f=t.viewabilityConfigCallbackPairs;r(d[11])(!n&&!o,'FlatList does not support custom data formats.'),s>1?r(d[11])(!l,'numColumns does not support horizontal.'):r(d[11])(!u,'columnWrapperStyle not supported for single column lists'),r(d[11])(!(c&&f),"FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.")}},{key:"_pushMultiColumnViewable",value:function(t,n){var o=this.props,l=o.numColumns,s=o.keyExtractor;n.item.forEach(function(o,u){r(d[11])(null!=n.index,'Missing index!');var c=n.index*l+u;t.push((0,f.default)({},n,{item:o,key:s(o,c),index:c}))})}},{key:"_createOnViewableItemsChanged",value:function(t){var n=this;return function(o){var l=n.props.numColumns;if(t)if(l>1){var s=[],u=[];o.viewableItems.forEach(function(t){return n._pushMultiColumnViewable(u,t)}),o.changed.forEach(function(t){return n._pushMultiColumnViewable(s,t)}),t({viewableItems:u,changed:s})}else t(o)}}},{key:"render",value:function(){var n=this.props,o=(n.numColumns,n.columnWrapperStyle,(0,t.default)(n,p));return C.createElement(r(d[10]),(0,f.default)({},o,{getItem:this._getItem,getItemCount:this._getItemCount,keyExtractor:this._keyExtractor,ref:this._captureRef,viewabilityConfigCallbackPairs:this._virtualizedListPairs},this._renderer()))}}]),I})(C.PureComponent);y.defaultProps=v;var b=r(d[13]).create({row:{flexDirection:'row'}});m.exports=y},241,[3,118,242,17,18,37,34,33,14,46,243,6,190,195,165]); __d(function(g,r,i,a,m,e,d){m.exports=function(t,n,o){return n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t},m.exports.__esModule=!0,m.exports.default=m.exports},242,[]); __d(function(g,r,i,a,m,e,d){'use strict';function t(t,n){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=s(t))||n&&t&&"number"==typeof t.length){o&&(t=o);var l=0;return function(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,s){if(t){if("string"==typeof t)return n(t,s);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(t,s):void 0}}function n(t,s){(null==s||s>t.length)&&(s=t.length);for(var n=0,o=new Array(s);n0&&s>0&&null!=h.props.initialScrollIndex&&h.props.initialScrollIndex>0&&!h._hasDoneInitialScroll&&(h.scrollToIndex({animated:!1,index:h.props.initialScrollIndex}),h._hasDoneInitialScroll=!0),h.props.onContentSizeChange&&h.props.onContentSizeChange(t,s),h._scrollMetrics.contentLength=h._selectLength({height:s,width:t}),h._scheduleCellsToRenderUpdate(),h._maybeCallOnEndReached()},h._convertParentScrollMetrics=function(t){var s=t.offset-h._offsetFromParentVirtualizedList,n=t.visibleLength,o=s-h._scrollMetrics.offset;return{visibleLength:n,contentLength:h._scrollMetrics.contentLength,offset:s,dOffset:o}},h._onScroll=function(t){h._nestedChildLists.forEach(function(s){s.ref&&s.ref._onScroll(t)}),h.props.onScroll&&h.props.onScroll(t);var s=t.timeStamp,n=h._selectLength(t.nativeEvent.layoutMeasurement),o=h._selectLength(t.nativeEvent.contentSize),l=h._selectOffset(t.nativeEvent.contentOffset),c=l-h._scrollMetrics.offset;if(h._isNestedWithSameOrientation()){if(0===h._scrollMetrics.contentLength)return;var u=h._convertParentScrollMetrics({visibleLength:n,offset:l});n=u.visibleLength,o=u.contentLength,l=u.offset,c=u.dOffset}var p=h._scrollMetrics.timestamp?Math.max(1,s-h._scrollMetrics.timestamp):1,f=c/p;p>500&&h._scrollMetrics.dt>500&&o>5*n&&!h._hasWarned.perf&&(r(d[11])("VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders components that follow React performance best practices like PureComponent, shouldComponentUpdate, etc.",{dt:p,prevDt:h._scrollMetrics.dt,contentLength:o}),h._hasWarned.perf=!0),h._scrollMetrics={contentLength:o,dt:p,dOffset:c,offset:l,timestamp:s,velocity:f,visibleLength:n},h._updateViewableItems(h.props.data),h.props&&(h._maybeCallOnEndReached(),0!==f&&h._fillRateHelper.activate(),h._computeBlankness(),h._scheduleCellsToRenderUpdate())},h._onScrollBeginDrag=function(t){h._nestedChildLists.forEach(function(s){s.ref&&s.ref._onScrollBeginDrag(t)}),h._viewabilityTuples.forEach(function(t){t.viewabilityHelper.recordInteraction()}),h._hasInteracted=!0,h.props.onScrollBeginDrag&&h.props.onScrollBeginDrag(t)},h._onScrollEndDrag=function(t){var s=t.nativeEvent.velocity;s&&(h._scrollMetrics.velocity=h._selectOffset(s)),h._computeBlankness(),h.props.onScrollEndDrag&&h.props.onScrollEndDrag(t)},h._onMomentumScrollEnd=function(t){h._scrollMetrics.velocity=0,h._computeBlankness(),h.props.onMomentumScrollEnd&&h.props.onMomentumScrollEnd(t)},h._updateCellsToRender=function(){var s=h.props,n=s.data,o=s.getItemCount,l=s.onEndReachedThreshold,c=h._isVirtualizationDisabled();h._updateViewableItems(n),n&&h.setState(function(s){var u,p=h._scrollMetrics,f=p.contentLength,_=p.offset,y=p.visibleLength;if(c){var v=f-y-_0&&f>0&&(h.props.initialScrollIndex&&!h._scrollMetrics.offset||(u=r(d[12]).computeWindowedRenderLimits(h.props,s,h._getFrameMetricsApprox,h._scrollMetrics)));if(u&&h._nestedChildLists.size>0)for(var C=u.first,L=u.last,b=C;b<=L;b++){var S=h._indicesToKeys.get(b),I=S&&h._cellKeysToChildListKeys.get(S);if(I){for(var R,x=!1,M=t(I);!(R=M()).done;){var k=R.value,w=h._nestedChildLists.get(k);if(w&&w.ref&&w.ref.hasMore()){x=!0;break}}if(x){u.last=b;break}}}return null!=u&&u.first===s.first&&u.last===s.last&&(u=null),u})},h._createViewToken=function(t,s){var n=h.props,o=n.data,l=n.getItem,c=n.keyExtractor,u=l(o,t);return{index:t,item:u,key:c(u,t),isViewable:s}},h._getFrameMetricsApprox=function(t){var s=h._getFrameMetrics(t);if(s&&s.index===t)return s;var n=h.props.getItemLayout;return r(d[8])(!n,'Should not have to estimate frames when a measurement metrics function is provided'),{length:h._averageCellLength,offset:h._averageCellLength*t}},h._getFrameMetrics=function(t){var s=h.props,n=s.data,o=s.getItem,l=s.getItemCount,c=s.getItemLayout,u=s.keyExtractor;r(d[8])(l(n)>t,'Tried to get frame for out of range index '+t);var p=o(n,t),f=p&&h._frames[u(p,t)];return f&&f.index===t||c&&(f=c(n,t)),f},r(d[8])(!s.onScroll||!s.onScroll.__isNative,"Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent to support native onScroll events with useNativeDriver"),r(d[8])(s.windowSize>0,'VirtualizedList: The windowSize prop must be present and set to a value greater than 0.'),h._fillRateHelper=new(r(d[13]))(h._getFrameMetrics),h._updateCellsToRenderBatcher=new(r(d[14]))(h._updateCellsToRender,h.props.updateCellsBatchingPeriod),h.props.viewabilityConfigCallbackPairs?h._viewabilityTuples=h.props.viewabilityConfigCallbackPairs.map(function(t){return{viewabilityHelper:new(r(d[15]))(t.viewabilityConfig),onViewableItemsChanged:t.onViewableItemsChanged}}):h.props.onViewableItemsChanged&&h._viewabilityTuples.push({viewabilityHelper:new(r(d[15]))(h.props.viewabilityConfig),onViewableItemsChanged:h.props.onViewableItemsChanged});var u={first:h.props.initialScrollIndex||0,last:Math.min(h.props.getItemCount(h.props.data),(h.props.initialScrollIndex||0)+h.props.initialNumToRender)-1};if(h._isNestedWithSameOrientation()){var p=h.context.virtualizedList.getNestedChildState(h._getListKey());p&&(u=p,h.state=p,h._frames=p.frames)}return h.state=u,h}return r(d[16])(l,[{key:"scrollToEnd",value:function(t){var s=!t||t.animated,n=this.props.getItemCount(this.props.data)-1,o=this._getFrameMetricsApprox(n),l=Math.max(0,o.offset+o.length+this._footerLength-this._scrollMetrics.visibleLength);null!=this._scrollRef&&this._scrollRef.scrollTo(this.props.horizontal?{x:l,animated:s}:{y:l,animated:s})}},{key:"scrollToIndex",value:function(t){var s=this.props,n=s.data,o=s.horizontal,l=s.getItemCount,c=s.getItemLayout,h=s.onScrollToIndexFailed,u=t.animated,p=t.index,f=t.viewOffset,_=t.viewPosition;if(r(d[8])(p>=0&&pthis._highestMeasuredFrameIndex)return r(d[8])(!!h,"scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures."),void h({averageItemLength:this._averageCellLength,highestMeasuredFrameIndex:this._highestMeasuredFrameIndex,index:p});var y=this._getFrameMetricsApprox(p),v=Math.max(0,y.offset-(_||0)*(this._scrollMetrics.visibleLength-y.length))-(f||0);null!=this._scrollRef&&this._scrollRef.scrollTo(o?{x:v,animated:u}:{y:v,animated:u})}},{key:"scrollToItem",value:function(t){for(var s=t.item,n=this.props,o=n.data,l=n.getItem,c=(0,n.getItemCount)(o),h=0;h0){h=!1,u='';var M=y?'width':'height',k=this.props.initialScrollIndex?-1:this.props.initialNumToRender-1,w=this.state,E=w.first,z=w.last;this._pushCells(b,I,S,0,k,L);var T=Math.max(k+1,E);if(!C&&E>k+1){var K=!1;if(S.size>0)for(var F=l?1:0,O=T-1;O>k;O--)if(S.has(O+F)){var P=this._getFrameMetricsApprox(k),V=this._getFrameMetricsApprox(O),N=V.offset-P.offset-(this.props.initialScrollIndex?0:P.length);b.push(c.createElement(r(d[7]),{key:"$sticky_lead",style:r(d[19])({},M,N)})),this._pushCells(b,I,S,O,O,L);var A=this._getFrameMetricsApprox(E).offset-(V.offset+V.length);b.push(c.createElement(r(d[7]),{key:"$sticky_trail",style:r(d[19])({},M,A)})),K=!0;break}if(!K){var D=this._getFrameMetricsApprox(k),B=this._getFrameMetricsApprox(E).offset-(D.offset+D.length);b.push(c.createElement(r(d[7]),{key:"$lead_spacer",style:r(d[19])({},M,B)}))}}if(this._pushCells(b,I,S,T,z,L),!this._hasWarned.keys&&h&&(console.warn("VirtualizedList: missing keys for items, make sure to specify a key or id property on each item or provide a custom keyExtractor.",u),this._hasWarned.keys=!0),!C&&zf&&(this._sentEndForContentLength=0)}},{key:"_scheduleCellsToRenderUpdate",value:function(){var t=this.state,s=t.first,n=t.last,o=this._scrollMetrics,l=o.offset,c=o.visibleLength,h=o.velocity,u=this.props.getItemCount(this.props.data),p=!1,f=this.props.onEndReachedThreshold*c/2;if(s>0){var _=l-this._getFrameMetricsApprox(s).offset;p=p||_<0||h<-2&&_2&&y0&&(this._scrollAnimatedValueAttachment=r(d[15]).attachNativeEvent(this._scrollViewRef,'onScroll',[{nativeEvent:{contentOffset:{y:this._scrollAnimatedValue}}}]))}},{key:"_setStickyHeaderRef",value:function(t,n){n?this._stickyHeaderRefs.set(t,n):this._stickyHeaderRefs.delete(t)}},{key:"_onStickyHeaderLayout",value:function(t,n,o){var l=this.props.stickyHeaderIndices;if(l){var s=v.Children.toArray(this.props.children);if(o===this._getKeyForIndex(t,s)){var c=n.nativeEvent.layout.y;this._headerLayoutYs.set(o,c);var u=l[l.indexOf(t)-1];if(null!=u){var p=this._stickyHeaderRefs.get(this._getKeyForIndex(u,s));p&&p.setNextHeaderY&&p.setNextHeaderY(c)}}}}},{key:"render",value:function(){var t,n,o=this;t=R,n=y,r(d[17])(void 0!==t,'ScrollViewClass must not be undefined'),r(d[17])(void 0!==n,'ScrollContentContainerViewClass must not be undefined');var l=[!0===this.props.horizontal&&E.contentContainerHorizontal,this.props.contentContainerStyle],s={};this.props.onContentSizeChange&&(s={onLayout:this._handleContentOnLayout});var c=this.props.stickyHeaderIndices,p=this.props.children;if(null!=c&&c.length>0){var h=v.Children.toArray(this.props.children);p=h.map(function(t,n){var l=t?c.indexOf(n):-1;if(l>-1){var s=t.key,u=c[l+1],p=o.props.StickyHeaderComponent||r(d[18]);return v.createElement(p,{key:s,ref:function(t){return o._setStickyHeaderRef(s,t)},nextHeaderLayoutY:o._headerLayoutYs.get(o._getKeyForIndex(u,h)),onLayout:function(t){return o._onStickyHeaderLayout(n,t,s)},scrollAnimatedValue:o._scrollAnimatedValue,inverted:o.props.invertStickyHeaders,scrollViewHeight:o.state.layoutHeight},t)}return t})}p=v.createElement(S.Provider,{value:!0===this.props.horizontal?w:H},p);var f=Array.isArray(c)&&c.length>0,_=v.createElement(n,(0,u.default)({},s,{ref:this._setInnerViewRef,style:l,removeClippedSubviews:this.props.removeClippedSubviews,collapsable:!1}),p),V=void 0!==this.props.alwaysBounceHorizontal?this.props.alwaysBounceHorizontal:this.props.horizontal,T=void 0!==this.props.alwaysBounceVertical?this.props.alwaysBounceVertical:!this.props.horizontal,C=!!this.props.DEPRECATED_sendUpdatedChildFrames,k=!0===this.props.horizontal?E.baseHorizontal:E.baseVertical,x=(0,u.default)({},this.props,{alwaysBounceHorizontal:V,alwaysBounceVertical:T,style:[k,this.props.style],onContentSizeChange:null,onLayout:this._handleLayout,onMomentumScrollBegin:this._scrollResponder.scrollResponderHandleMomentumScrollBegin,onMomentumScrollEnd:this._scrollResponder.scrollResponderHandleMomentumScrollEnd,onResponderGrant:this._scrollResponder.scrollResponderHandleResponderGrant,onResponderReject:this._scrollResponder.scrollResponderHandleResponderReject,onResponderRelease:this._scrollResponder.scrollResponderHandleResponderRelease,onResponderTerminationRequest:this._scrollResponder.scrollResponderHandleTerminationRequest,onScrollBeginDrag:this._scrollResponder.scrollResponderHandleScrollBeginDrag,onScrollEndDrag:this._scrollResponder.scrollResponderHandleScrollEndDrag,onScrollShouldSetResponder:this._scrollResponder.scrollResponderHandleScrollShouldSetResponder,onStartShouldSetResponder:this._scrollResponder.scrollResponderHandleStartShouldSetResponder,onStartShouldSetResponderCapture:this._scrollResponder.scrollResponderHandleStartShouldSetResponderCapture,onTouchEnd:this._scrollResponder.scrollResponderHandleTouchEnd,onTouchMove:this._scrollResponder.scrollResponderHandleTouchMove,onTouchStart:this._scrollResponder.scrollResponderHandleTouchStart,onTouchCancel:this._scrollResponder.scrollResponderHandleTouchCancel,onScroll:this._handleScroll,scrollBarThumbImage:r(d[19])(this.props.scrollBarThumbImage),scrollEventThrottle:f?1:this.props.scrollEventThrottle,sendMomentumEvents:!(!this.props.onMomentumScrollBegin&&!this.props.onMomentumScrollEnd),DEPRECATED_sendUpdatedChildFrames:C,snapToStart:!1!==this.props.snapToStart,snapToEnd:!1!==this.props.snapToEnd,pagingEnabled:!0===this.props.pagingEnabled&&null==this.props.snapToInterval&&null==this.props.snapToOffsets}),A=this.props.decelerationRate;null!=A&&(x.decelerationRate=r(d[20])(A));var I=this.props.refreshControl;return I?v.createElement(t,(0,u.default)({},x,{ref:this._setNativeRef}),r(d[21]).isTV?null:I,_):v.createElement(t,(0,u.default)({},x,{ref:this._setNativeRef}),_)}}]),C})(v.Component);V.Context=S;var E=r(d[22]).create({baseVertical:{flexGrow:1,flexShrink:1,flexDirection:'column',overflow:'scroll'},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:'row',overflow:'scroll'},contentContainerHorizontal:{flexDirection:'row'}});function T(t,n){return v.createElement(V,(0,u.default)({},t,{scrollViewRef:n}))}T.displayName='ScrollView';var C=v.forwardRef(T);C.Context=S,C.displayName='ScrollView',m.exports=C},244,[3,17,18,36,37,34,33,14,245,247,248,249,46,82,250,219,236,6,258,183,259,77,195]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l,t=r(d[0])(r(d[1]));g.RN$Bridgeless?(r(d[2])('RCTScrollView',t.default),l='RCTScrollView'):l=r(d[3])('RCTScrollView');var o=l;e.default=o},245,[3,246,192,51]); __d(function(g,r,i,a,m,e,d){'use strict';var o={uiViewClassName:'RCTScrollView',bubblingEventTypes:{},directEventTypes:{topScrollToTop:{registrationName:'onScrollToTop'}},validAttributes:{alwaysBounceHorizontal:!0,alwaysBounceVertical:!0,automaticallyAdjustContentInsets:!0,bounces:!0,bouncesZoom:!0,canCancelContentTouches:!0,centerContent:!0,contentInset:{diff:r(d[0])},contentOffset:{diff:r(d[0])},contentInsetAdjustmentBehavior:!0,decelerationRate:!0,directionalLockEnabled:!0,disableIntervalMomentum:!0,endFillColor:{process:r(d[1])},fadingEdgeLength:!0,indicatorStyle:!0,keyboardDismissMode:!0,maintainVisibleContentPosition:!0,maximumZoomScale:!0,minimumZoomScale:!0,nestedScrollEnabled:!0,onMomentumScrollBegin:!0,onMomentumScrollEnd:!0,onScroll:!0,onScrollBeginDrag:!0,onScrollEndDrag:!0,onScrollToTop:!0,overScrollMode:!0,pagingEnabled:!0,persistentScrollbar:!0,pinchGestureEnabled:!0,scrollEnabled:!0,scrollEventThrottle:!0,scrollIndicatorInsets:{diff:r(d[0])},scrollPerfTag:!0,scrollToOverflowEnabled:!0,scrollsToTop:!0,sendMomentumEvents:!0,showsHorizontalScrollIndicator:!0,showsVerticalScrollIndicator:!0,snapToAlignment:!0,snapToEnd:!0,snapToInterval:!0,snapToOffsets:!0,snapToStart:!0,zoomScale:!0,DEPRECATED_sendUpdatedChildFrames:!0}};m.exports=o},246,[181,152]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t;g.RN$Bridgeless?(r(d[0])('RCTScrollContentView',{uiViewClassName:'RCTScrollContentView',bubblingEventTypes:{},directEventTypes:{},validAttributes:{}}),t='RCTScrollContentView'):t=r(d[1])('RCTScrollContentView');var l=t;e.default=l},247,[192,51]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l,o={uiViewClassName:'AndroidHorizontalScrollView',bubblingEventTypes:{},directEventTypes:{},validAttributes:{decelerationRate:!0,disableIntervalMomentum:!0,endFillColor:{process:r(d[0])},fadingEdgeLength:!0,nestedScrollEnabled:!0,overScrollMode:!0,pagingEnabled:!0,persistentScrollbar:!0,scrollEnabled:!0,scrollPerfTag:!0,sendMomentumEvents:!0,showsHorizontalScrollIndicator:!0,snapToEnd:!0,snapToInterval:!0,snapToStart:!0,snapToOffsets:!0,contentOffset:!0}};g.RN$Bridgeless?(r(d[1])('AndroidHorizontalScrollView',o),l='AndroidHorizontalScrollView'):l=r(d[2])('AndroidHorizontalScrollView');var n=l;e.default=n},248,[152,192,51]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t;g.RN$Bridgeless?(r(d[0])('AndroidHorizontalScrollContentView',{uiViewClassName:'AndroidHorizontalScrollContentView',bubblingEventTypes:{},directEventTypes:{},validAttributes:{}}),t='AndroidHorizontalScrollContentView'):t=r(d[1])('AndroidHorizontalScrollContentView');var o=t;e.default=o},249,[192,51]); __d(function(g,r,i,a,m,e,d){'use strict';var o=r(d[0])(r(d[1])),l=(r(d[2]),{Mixin:{_subscriptionKeyboardWillShow:null,_subscriptionKeyboardWillHide:null,_subscriptionKeyboardDidShow:null,_subscriptionKeyboardDidHide:null,scrollResponderMixinGetInitialState:function(){return{isTouching:!1,lastMomentumScrollBeginTime:0,lastMomentumScrollEndTime:0,observedScrollSinceBecomingResponder:!1,becameResponderWhileAnimating:!1}},scrollResponderHandleScrollShouldSetResponder:function(){return!0!==this.props.disableScrollViewPanResponder&&this.state.isTouching},scrollResponderHandleStartShouldSetResponder:function(o){if(!0===this.props.disableScrollViewPanResponder)return!1;var l=r(d[3]).currentlyFocusedInput();return'handled'===this.props.keyboardShouldPersistTaps&&null!=l&&o.target!==l},scrollResponderHandleStartShouldSetResponderCapture:function(o){if(this.scrollResponderIsAnimating())return!0;if(!0===this.props.disableScrollViewPanResponder)return!1;var l=r(d[3]).currentlyFocusedInput(),s=this.props.keyboardShouldPersistTaps,n=!s||'never'===s;return'number'!=typeof o.target&&!(!n||null==l||null==o.target||r(d[3]).isTextInput(o.target))},scrollResponderHandleResponderReject:function(){},scrollResponderHandleTerminationRequest:function(){return!this.state.observedScrollSinceBecomingResponder},scrollResponderHandleTouchEnd:function(o){var l=o.nativeEvent;this.state.isTouching=0!==l.touches.length,this.props.onTouchEnd&&this.props.onTouchEnd(o)},scrollResponderHandleTouchCancel:function(o){this.state.isTouching=!1,this.props.onTouchCancel&&this.props.onTouchCancel(o)},scrollResponderHandleResponderRelease:function(o){if(this.props.onResponderRelease&&this.props.onResponderRelease(o),'number'!=typeof o.target){var l=r(d[3]).currentlyFocusedInput();!0===this.props.keyboardShouldPersistTaps||'always'===this.props.keyboardShouldPersistTaps||null==l||o.target===l||this.state.observedScrollSinceBecomingResponder||this.state.becameResponderWhileAnimating||(this.props.onScrollResponderKeyboardDismissed&&this.props.onScrollResponderKeyboardDismissed(o),r(d[3]).blurTextInput(l))}},scrollResponderHandleScroll:function(o){this.state.observedScrollSinceBecomingResponder=!0,this.props.onScroll&&this.props.onScroll(o)},scrollResponderHandleResponderGrant:function(o){this.state.observedScrollSinceBecomingResponder=!1,this.props.onResponderGrant&&this.props.onResponderGrant(o),this.state.becameResponderWhileAnimating=this.scrollResponderIsAnimating()},scrollResponderHandleScrollBeginDrag:function(o){r(d[4]).beginScroll(),this.props.onScrollBeginDrag&&this.props.onScrollBeginDrag(o)},scrollResponderHandleScrollEndDrag:function(o){var l=o.nativeEvent.velocity;this.scrollResponderIsAnimating()||l&&(0!==l.x||0!==l.y)||r(d[4]).endScroll(),this.props.onScrollEndDrag&&this.props.onScrollEndDrag(o)},scrollResponderHandleMomentumScrollBegin:function(o){this.state.lastMomentumScrollBeginTime=r(d[5])(),this.props.onMomentumScrollBegin&&this.props.onMomentumScrollBegin(o)},scrollResponderHandleMomentumScrollEnd:function(o){r(d[4]).endScroll(),this.state.lastMomentumScrollEndTime=r(d[5])(),this.props.onMomentumScrollEnd&&this.props.onMomentumScrollEnd(o)},scrollResponderHandleTouchStart:function(o){this.state.isTouching=!0,this.props.onTouchStart&&this.props.onTouchStart(o)},scrollResponderHandleTouchMove:function(o){this.props.onTouchMove&&this.props.onTouchMove(o)},scrollResponderIsAnimating:function(){return r(d[5])()-this.state.lastMomentumScrollEndTime<16||this.state.lastMomentumScrollEndTime0){v.push(x),L.push(0),v.push(x+1),L.push(1);var H=(f||0)-h-l;H>x&&(v.push(H,H+1),L.push(H-x,H-x))}}}else{v.push(y),L.push(0);var Y=(f||0)-h;Y>=y?(v.push(Y,Y+1),L.push(Y-y,Y-y)):(v.push(y+1),L.push(1))}var R=this.props.scrollAnimatedValue.interpolate({inputRange:v,outputRange:L}),C=n.Children.only(this.props.children);return n.createElement(o,{collapsable:!1,onLayout:this._onLayout,style:[C.props.style,s.header,{transform:[{translateY:R}]}]},n.cloneElement(C,{style:s.fill,onLayout:void 0}))}}]),h})(n.Component),s=r(d[8]).create({header:{zIndex:10},fill:{flex:1}});m.exports=u},258,[33,34,46,219,190,37,17,18,195]); __d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t){return'normal'===t?.998:'fast'===t?.99:t}},259,[]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),f=r(d[0])(r(d[5])),u=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),l=(v(r(d[8])),v(r(d[9]))),p=["enabled","colors","progressBackgroundColor","size","progressViewOffset"];function h(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,s=new WeakMap;return(h=function(t){return t?s:n})(t)}function v(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var s=h(n);if(s&&s.has(t))return s.get(t);var o={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var c=f?Object.getOwnPropertyDescriptor(t,u):null;c&&(c.get||c.set)?Object.defineProperty(o,u,c):o[u]=t[u]}return o.default=t,s&&s.set(t,o),o}function R(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var y,_=r(d[10]);y={SIZE:{}};var O=(function(h){(0,f.default)(N,h);var v,y,O=(v=N,y=R(),function(){var t,n=(0,c.default)(v);if(y){var s=(0,c.default)(this).constructor;t=Reflect.construct(n,arguments,s)}else t=n.apply(this,arguments);return(0,u.default)(this,t)});function N(){var t;(0,s.default)(this,N);for(var n=arguments.length,o=new Array(n),f=0;f=t[v]&&(f[v]=o,l++,v===t.length-1))return r(d[0])(l===t.length,'bad offsets input, should be in increasing order: %s',JSON.stringify(t)),f;return f}function n(t,n){return n.last-n.first+1-Math.max(0,1+Math.min(n.last,t.last)-Math.max(n.first,t.first))}var s={computeWindowedRenderLimits:function(s,f,l,o){var u=s.data,h=s.getItemCount,v=s.maxToRenderPerBatch,c=s.windowSize,x=h(u);if(0===x)return f;var M=o.offset,w=o.velocity,b=o.visibleLength,p=Math.max(0,M),C=p+b,O=(c-1)*b,y=w>1?'after':w<-1?'before':'none',L=Math.max(0,p-.5*O),R=Math.max(0,C+.5*O);if(l(x-1).offset=T);){var z=k>=v,E=J<=f.first||J>f.last,F=J>I&&(!z||!E),P=N>=f.last||N=J&&J>=0&&N=I&&N<=T&&J<=_.first&&N>=_.last))throw new Error('Bad window calculation '+JSON.stringify({first:J,last:N,itemCount:x,overscanFirst:I,overscanLast:T,visible:_}));return{first:J,last:N}},elementsThatOverlapOffsets:t,newRangeCount:n};m.exports=s},264,[6,8]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(function t(){r(d[1])(this,t),this.any_blank_count=0,this.any_blank_ms=0,this.any_blank_speed_sum=0,this.mostly_blank_count=0,this.mostly_blank_ms=0,this.pixels_blank=0,this.pixels_sampled=0,this.pixels_scrolled=0,this.total_time_spent=0,this.sample_count=0}),n=[],s=10,l=null,_=(function(){function _(n){r(d[1])(this,_),this._anyBlankStartTime=null,this._enabled=!1,this._info=new t,this._mostlyBlankStartTime=null,this._samplesStartTime=null,this._getFrameMetrics=n,this._enabled=(l||0)>Math.random(),this._resetData()}return r(d[0])(_,[{key:"activate",value:function(){this._enabled&&null==this._samplesStartTime&&(this._samplesStartTime=r(d[2])())}},{key:"deactivateAndFlush",value:function(){if(this._enabled){var t=this._samplesStartTime;if(null!=t)if(this._info.sample_count0&&(c=Math.min(o,Math.max(0,y.offset-_)));for(var p=0,b=n.last,v=this._getFrameMetrics(b);b>=n.first&&(!v||!v.inLayout);)v=this._getFrameMetrics(b),b--;if(v&&b0?(this._anyBlankStartTime=f,this._info.any_blank_speed_sum+=u,this._info.any_blank_count++,this._info.pixels_blank+=M,T>.5&&(this._mostlyBlankStartTime=f,this._info.mostly_blank_count++)):(u<.01||Math.abs(l)<1)&&this.deactivateAndFlush(),T}},{key:"enabled",value:function(){return this._enabled}},{key:"_resetData",value:function(){this._anyBlankStartTime=null,this._info=new t,this._mostlyBlankStartTime=null,this._samplesStartTime=null}}],[{key:"addListener",value:function(t){return r(d[4])(null!==l,'Call `FillRateHelper.setSampleRate` before `addListener`.'),n.push(t),{remove:function(){n=n.filter(function(n){return t!==n})}}}},{key:"setSampleRate",value:function(t){l=t}},{key:"setMinSampleCount",value:function(t){s=t}}]),_})();m.exports=_},265,[18,17,96,14,99]); __d(function(g,r,i,a,m,e,d){'use strict';var t=(function(){function t(n,l){r(d[0])(this,t),this._delay=l,this._callback=n}return r(d[1])(t,[{key:"dispose",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{abort:!1};this._taskHandle&&(this._taskHandle.cancel(),t.abort||this._callback(),this._taskHandle=null)}},{key:"schedule",value:function(){var t=this;if(!this._taskHandle){var n=setTimeout(function(){t._taskHandle=r(d[2]).runAfterInteractions(function(){t._taskHandle=null,t._callback()})},this._delay);this._taskHandle={cancel:function(){return clearTimeout(n)}}}}}]),t})();m.exports=t},266,[17,18,214]); __d(function(g,r,i,a,m,e,d){'use strict';function t(t,o){var s="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(s)return(s=s.call(t)).next.bind(s);if(Array.isArray(t)||(s=n(t))||o&&t&&"number"==typeof t.length){s&&(t=s);var l=0;return function(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return o(t,n);var s=Object.prototype.toString.call(t).slice(8,-1);return"Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s?Array.from(t):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?o(t,n):void 0}}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,s=new Array(n);o0&&void 0!==arguments[0]?arguments[0]:{viewAreaCoveragePercentThreshold:0};r(d[0])(this,n),this._hasInteracted=!1,this._timers=new Set,this._viewableIndices=[],this._viewableItems=new Map,this._config=t}return r(d[1])(n,[{key:"dispose",value:function(){this._timers.forEach(clearTimeout)}},{key:"computeViewableItems",value:function(t,n,o,s,u){var c=this._config,h=c.itemVisiblePercentThreshold,f=c.viewAreaCoveragePercentThreshold,v=null!=f,b=v?f:h;r(d[2])(null!=b&&null!=h!=(null!=f),'Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold');var y=[];if(0===t)return y;var w=-1,_=u||{first:0,last:t-1},p=_.first,I=_.last;if(I>=t)return console.warn('Invalid render range computing viewability '+JSON.stringify({renderRange:u,itemCount:t})),[];for(var A=p;A<=I;A++){var S=s(A);if(S){var T=S.offset-n,k=T+S.length;if(T0)w=A,l(v,b,T,k,o,S.length)&&y.push(A);else if(w>=0)break}}return y}},{key:"onUpdate",value:function(t,n,o,s,l,u,c){var h=this;if((!this._config.waitForInteraction||this._hasInteracted)&&0!==t&&s(0)){var f=[];if(t&&(f=this.computeViewableItems(t,n,o,s,c)),this._viewableIndices.length!==f.length||!this._viewableIndices.every(function(t,n){return t===f[n]}))if(this._viewableIndices=f,this._config.minimumViewTime){var v=setTimeout(function(){h._timers.delete(v),h._onUpdateSync(f,u,l)},this._config.minimumViewTime);this._timers.add(v)}else this._onUpdateSync(f,u,l)}}},{key:"resetViewableIndices",value:function(){this._viewableIndices=[]}},{key:"recordInteraction",value:function(){this._hasInteracted=!0}},{key:"_onUpdateSync",value:function(n,o,s){var l=this;n=n.filter(function(t){return l._viewableIndices.includes(t)});for(var u,c=this._viewableItems,h=new Map(n.map(function(t){var n=s(t,!0);return[n.key,n]})),f=[],v=t(h);!(u=v()).done;){var b=u.value,y=r(d[3])(b,2),w=y[0],_=y[1];c.has(w)||f.push(_)}for(var p,I=t(c);!(p=I()).done;){var A=p.value,S=r(d[3])(A,2),T=S[0],k=S[1];h.has(T)||f.push(r(d[4])({},k,{isViewable:!1}))}f.length>0&&(this._viewableItems=h,o({viewableItems:Array.from(h.values()),changed:f,viewabilityConfig:this._config}))}}]),n})();function l(t,n,o,s,l,h){if(c(o,s,l))return!0;var f=u(o,s,l);return 100*(t?f/l:f/h)>=n}function u(t,n,o){var s=Math.min(n,o)-Math.max(t,0);return Math.max(0,s)}function c(t,n,o){return t>=0&&n<=o&&n>t}m.exports=s},267,[17,18,6,8,14]); __d(function(g,r,i,a,m,e,d){'use strict';!(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var f=t(o);if(f&&f.has(n))return f.get(n);var u={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in n)if("default"!==p&&Object.prototype.hasOwnProperty.call(n,p)){var l=c?Object.getOwnPropertyDescriptor(n,p):null;l&&(l.get||l.set)?Object.defineProperty(u,p,l):u[p]=n[p]}u.default=n,f&&f.set(n,u)})(r(d[0]));function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,f=new WeakMap;return(t=function(t){return t?f:o})(n)}m.exports=r(d[1])(r(d[2]))},268,[46,235,269]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),c=r(d[0])(r(d[5])),s=r(d[6]);var l=function(t,o){var u,l,f=r(d[7])(t.source)||{uri:void 0,width:void 0,height:void 0};if(Array.isArray(f))l=r(d[8])([h.base,t.style])||{},u=f;else{var p=f.width,w=f.height,v=f.uri;l=r(d[8])([{width:p,height:w},h.base,t.style])||{},u=[f],''===v&&console.warn('source.uri should not be an empty string')}var y=t.resizeMode||l.resizeMode||'cover',z=l.tintColor;if(null!=t.src&&console.warn('The component requires a `source` property rather than `src`.'),null!=t.children)throw new Error('The component cannot contain children. If you want to render content on top of the image, consider using the component or absolute positioning.');return s.createElement(c.default,(0,n.default)({},t,{ref:o,style:l,resizeMode:y,tintColor:z,source:u}))};(l=s.forwardRef(l)).displayName='Image',l.getSize=function(t,n,c){u.default.getSize(t).then(function(t){var u=(0,o.default)(t,2),c=u[0],s=u[1];return n(c,s)}).catch(c||function(){console.warn('Failed to get size for image '+t)})},l.getSizeWithHeaders=function(t,n,o,c){return u.default.getSizeWithHeaders(t,n).then(function(t){o(t.width,t.height)}).catch(c||function(){console.warn('Failed to get size for image: '+t)})},l.prefetch=function(t){return u.default.prefetchImage(t)},l.queryCache=function(n){return t.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,t.default.awrap(u.default.queryCache(n));case 2:return o.abrupt("return",o.sent);case 3:case"end":return o.stop()}},null,null,null,Promise)},l.resolveAssetSource=r(d[7]),l.propTypes=r(d[9]);var h=r(d[10]).create({base:{overflow:'hidden'}});m.exports=l},269,[3,63,14,8,270,271,46,183,166,273,195]); __d(function(g,r,i,a,m,e,d){'use strict';function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).getEnforcing('ImageLoader');e.default=n},270,[5]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,u=r(d[0])(r(d[1]));g.RN$Bridgeless?(r(d[2]).register('RCTImageView',function(){return u.default}),t='RCTImageView'):t=r(d[3])('RCTImageView');var f=t;e.default=f},271,[3,272,80,51]); __d(function(g,r,i,a,m,e,d){'use strict';var o=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),s={uiViewClassName:'RCTImageView',bubblingEventTypes:{},directEventTypes:{topLoadStart:{registrationName:'onLoadStart'},topProgress:{registrationName:'onProgress'},topError:{registrationName:'onError'},topPartialLoad:{registrationName:'onPartialLoad'},topLoad:{registrationName:'onLoad'},topLoadEnd:{registrationName:'onLoadEnd'}},validAttributes:(0,o.default)({},t.default.validAttributes,{blurRadius:!0,capInsets:{diff:r(d[3])},defaultSource:{process:r(d[4])},defaultSrc:!0,fadeDuration:!0,headers:!0,loadingIndicatorSrc:!0,onError:!0,onLoad:!0,onLoadEnd:!0,onLoadStart:!0,onPartialLoad:!0,onProgress:!0,overlayColor:{process:r(d[5])},progressiveRenderingEnabled:!0,resizeMethod:!0,resizeMode:!0,shouldNotifyLoadEvents:!0,source:!0,src:!0,tintColor:{process:r(d[5])}})};m.exports=s},272,[3,14,150,155,183,152]); __d(function(g,r,i,a,m,e,d){'use strict';m.exports={style:r(d[0])(r(d[1])),source:r(d[2]),defaultSource:r(d[3]).oneOfType([r(d[3]).shape({uri:r(d[3]).string,width:r(d[3]).number,height:r(d[3]).number,scale:r(d[3]).number}),r(d[3]).number]),accessible:r(d[3]).bool,accessibilityLabel:r(d[3]).node,blurRadius:r(d[3]).number,capInsets:r(d[4]),resizeMethod:r(d[3]).oneOf(['auto','resize','scale']),resizeMode:r(d[3]).oneOf(['cover','contain','stretch','repeat','center']),testID:r(d[3]).string,onLayout:r(d[3]).func,onLoadStart:r(d[3]).func,onProgress:r(d[3]).func,onError:r(d[3]).func,onPartialLoad:r(d[3]).func,onLoad:r(d[3]).func,onLoadEnd:r(d[3]).func}},273,[274,180,276,172,277]); __d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(n){var t=r(d[0])(n);return function(n,o,c,u){var f=n;n[o]&&((f={})[o]=r(d[1])(n[o]));for(var v=arguments.length,p=new Array(v>4?v-4:0),s=4;s5?v-5:0),j=5;j4?s-4:0),p=4;p0&&this.props.stickySectionHeadersEnabled&&(s+=this._listRef._getFrameMetricsApprox(n-t.itemIndex).length);var c=r(d[6])({},t,{viewOffset:s,index:n});this._listRef.scrollToIndex(c)}},{key:"getListRef",value:function(){return this._listRef}},{key:"UNSAFE_componentWillReceiveProps",value:function(t){this.setState(this._computeState(t))}},{key:"_computeState",value:function(n){var o=this,s=n.ListHeaderComponent?1:0,c=[],l=n.sections?n.sections.reduce(function(t,o){return c.push(t+s),t+n.getItemCount(o.data)+2},0):0,p=(n.SectionSeparatorComponent,n.renderItem,n.renderSectionFooter,n.renderSectionHeader,n.sections,n.stickySectionHeadersEnabled,r(d[9])(n,t));return{childProps:r(d[6])({},p,{renderItem:this._renderItem,ItemSeparatorComponent:void 0,data:n.sections,getItemCount:function(){return l},getItem:function(t,s){return o._getItem(n,t,s)},keyExtractor:this._keyExtractor,onViewableItemsChanged:n.onViewableItemsChanged?this._onViewableItemsChanged:void 0,stickyHeaderIndices:n.stickySectionHeadersEnabled?c:void 0})}}},{key:"render",value:function(){return s.createElement(r(d[10]),r(d[6])({},this.state.childProps,{ref:this._captureRef}))}},{key:"_subExtractor",value:function(t){for(var n=t,o=this.props,s=o.getItem,c=o.getItemCount,l=o.keyExtractor,p=o.sections,u=0;u=c(h)+1)n-=c(h)+1;else return-1===n?{section:f,key:S+':header',index:null,header:!0,trailingSection:p[u+1]}:n===c(h)?{section:f,key:S+':footer',index:null,header:!1,trailingSection:p[u+1]}:{section:f,key:S+':'+(f.keyExtractor||l)(s(h,n),n),index:n,leadingItem:s(h,n-1),leadingSection:p[u-1],trailingItem:s(h,n+1),trailingSection:p[u+1]}}}},{key:"_getSeparatorComponent",value:function(t,n){if(!(n=n||this._subExtractor(t)))return null;var o=n.section.ItemSeparatorComponent||this.props.ItemSeparatorComponent,s=this.props.SectionSeparatorComponent,c=t===this.state.childProps.getItemCount()-1,l=n.index===this.props.getItemCount(n.section.data)-1;return s&&l?s:!o||l||c?null:o}}]),p})(s.PureComponent);c.defaultProps=r(d[6])({},r(d[10]).defaultProps,{data:[]});var l=(function(t){r(d[3])(c,t);var o=n(c);function c(){var t;r(d[4])(this,c);for(var n=arguments.length,s=new Array(n),l=0;l0,_=R&&R.length>0;return!s&&_?R[0]:s?t[0]:E},t=r(d[1])({NOT_RESPONDER:null,RESPONDER_INACTIVE_PRESS_IN:null,RESPONDER_INACTIVE_PRESS_OUT:null,RESPONDER_ACTIVE_PRESS_IN:null,RESPONDER_ACTIVE_PRESS_OUT:null,RESPONDER_ACTIVE_LONG_PRESS_IN:null,RESPONDER_ACTIVE_LONG_PRESS_OUT:null,ERROR:null}),R={NOT_RESPONDER:!1,RESPONDER_INACTIVE_PRESS_IN:!1,RESPONDER_INACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_PRESS_IN:!1,RESPONDER_ACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_LONG_PRESS_IN:!1,RESPONDER_ACTIVE_LONG_PRESS_OUT:!1,ERROR:!1},s=r(d[2])({},R,{RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0}),_=r(d[2])({},R,{RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),o=r(d[2])({},R,{RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),S=r(d[1])({DELAY:null,RESPONDER_GRANT:null,RESPONDER_RELEASE:null,RESPONDER_TERMINATED:null,ENTER_PRESS_RECT:null,LEAVE_PRESS_RECT:null,LONG_PRESS_DETECTED:null}),n={NOT_RESPONDER:{DELAY:t.ERROR,RESPONDER_GRANT:t.RESPONDER_INACTIVE_PRESS_IN,RESPONDER_RELEASE:t.ERROR,RESPONDER_TERMINATED:t.ERROR,ENTER_PRESS_RECT:t.ERROR,LEAVE_PRESS_RECT:t.ERROR,LONG_PRESS_DETECTED:t.ERROR},RESPONDER_INACTIVE_PRESS_IN:{DELAY:t.RESPONDER_ACTIVE_PRESS_IN,RESPONDER_GRANT:t.ERROR,RESPONDER_RELEASE:t.NOT_RESPONDER,RESPONDER_TERMINATED:t.NOT_RESPONDER,ENTER_PRESS_RECT:t.RESPONDER_INACTIVE_PRESS_IN,LEAVE_PRESS_RECT:t.RESPONDER_INACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:t.ERROR},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:t.RESPONDER_ACTIVE_PRESS_OUT,RESPONDER_GRANT:t.ERROR,RESPONDER_RELEASE:t.NOT_RESPONDER,RESPONDER_TERMINATED:t.NOT_RESPONDER,ENTER_PRESS_RECT:t.RESPONDER_INACTIVE_PRESS_IN,LEAVE_PRESS_RECT:t.RESPONDER_INACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:t.ERROR},RESPONDER_ACTIVE_PRESS_IN:{DELAY:t.ERROR,RESPONDER_GRANT:t.ERROR,RESPONDER_RELEASE:t.NOT_RESPONDER,RESPONDER_TERMINATED:t.NOT_RESPONDER,ENTER_PRESS_RECT:t.RESPONDER_ACTIVE_PRESS_IN,LEAVE_PRESS_RECT:t.RESPONDER_ACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:t.RESPONDER_ACTIVE_LONG_PRESS_IN},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:t.ERROR,RESPONDER_GRANT:t.ERROR,RESPONDER_RELEASE:t.NOT_RESPONDER,RESPONDER_TERMINATED:t.NOT_RESPONDER,ENTER_PRESS_RECT:t.RESPONDER_ACTIVE_PRESS_IN,LEAVE_PRESS_RECT:t.RESPONDER_ACTIVE_PRESS_OUT,LONG_PRESS_DETECTED:t.ERROR},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:t.ERROR,RESPONDER_GRANT:t.ERROR,RESPONDER_RELEASE:t.NOT_RESPONDER,RESPONDER_TERMINATED:t.NOT_RESPONDER,ENTER_PRESS_RECT:t.RESPONDER_ACTIVE_LONG_PRESS_IN,LEAVE_PRESS_RECT:t.RESPONDER_ACTIVE_LONG_PRESS_OUT,LONG_PRESS_DETECTED:t.RESPONDER_ACTIVE_LONG_PRESS_IN},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:t.ERROR,RESPONDER_GRANT:t.ERROR,RESPONDER_RELEASE:t.NOT_RESPONDER,RESPONDER_TERMINATED:t.NOT_RESPONDER,ENTER_PRESS_RECT:t.RESPONDER_ACTIVE_LONG_PRESS_IN,LEAVE_PRESS_RECT:t.RESPONDER_ACTIVE_LONG_PRESS_OUT,LONG_PRESS_DETECTED:t.ERROR},error:{DELAY:t.NOT_RESPONDER,RESPONDER_GRANT:t.RESPONDER_INACTIVE_PRESS_IN,RESPONDER_RELEASE:t.NOT_RESPONDER,RESPONDER_TERMINATED:t.NOT_RESPONDER,ENTER_PRESS_RECT:t.NOT_RESPONDER,LEAVE_PRESS_RECT:t.NOT_RESPONDER,LONG_PRESS_DETECTED:t.NOT_RESPONDER}},l={componentDidMount:function(){r(d[3]).isTV&&(this._tvEventHandler=new(r(d[4])),this._tvEventHandler.enable(this,function(E,t){var R=r(d[5]).findNodeHandle(E);t.dispatchConfig={},R===t.tag&&('focus'===t.eventType?E.touchableHandleFocus(t):'blur'===t.eventType?E.touchableHandleBlur(t):'select'===t.eventType&&E.touchableHandlePress&&!E.props.disabled&&E.touchableHandlePress(t))}))},componentWillUnmount:function(){this._tvEventHandler&&(this._tvEventHandler.disable(),delete this._tvEventHandler),this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout)},touchableGetInitialState:function(){return{touchable:{touchState:void 0,responderID:null}}},touchableHandleResponderTerminationRequest:function(){return!this.props.rejectResponderTermination},touchableHandleStartShouldSetResponder:function(){return!this.props.disabled},touchableLongPressCancelsPress:function(){return!0},touchableHandleResponderGrant:function(E){var R=E.currentTarget;E.persist(),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null,this.state.touchable.touchState=t.NOT_RESPONDER,this.state.touchable.responderID=R,this._receiveSignal(S.RESPONDER_GRANT,E);var s=void 0!==this.touchableGetHighlightDelayMS?Math.max(this.touchableGetHighlightDelayMS(),0):130;0!==(s=isNaN(s)?130:s)?this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,E),s):this._handleDelay(E);var _=void 0!==this.touchableGetLongPressDelayMS?Math.max(this.touchableGetLongPressDelayMS(),10):370;_=isNaN(_)?370:_,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,E),_+s)},touchableHandleResponderRelease:function(E){this.pressInLocation=null,this._receiveSignal(S.RESPONDER_RELEASE,E)},touchableHandleResponderTerminate:function(E){this.pressInLocation=null,this._receiveSignal(S.RESPONDER_TERMINATED,E)},touchableHandleResponderMove:function(R){if(this.state.touchable.positionOnActivate){var s=this.state.touchable.positionOnActivate,_=this.state.touchable.dimensionsOnActivate,o=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:20,right:20,top:20,bottom:20},n=o.left,l=o.top,h=o.right,N=o.bottom,u=this.touchableGetHitSlop?this.touchableGetHitSlop():null;u&&(n+=u.left||0,l+=u.top||0,h+=u.right||0,N+=u.bottom||0);var T=E(R.nativeEvent),P=T&&T.pageX,O=T&&T.pageY;if(this.pressInLocation)this._getDistanceBetweenPoints(P,O,this.pressInLocation.pageX,this.pressInLocation.pageY)>10&&this._cancelLongPressDelayTimeout();if(P>s.left-n&&O>s.top-l&&P>`");_!==o&&(this._performSideEffectsForTransition(_,o,E,R),this.state.touchable.touchState=o)}},_cancelLongPressDelayTimeout:function(){this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.longPressDelayTimeout=null},_isHighlight:function(E){return E===t.RESPONDER_ACTIVE_PRESS_IN||E===t.RESPONDER_ACTIVE_LONG_PRESS_IN},_savePressInLocation:function(t){var R=E(t.nativeEvent),s=R&&R.pageX,_=R&&R.pageY,o=R&&R.locationX,S=R&&R.locationY;this.pressInLocation={pageX:s,pageY:_,locationX:o,locationY:S}},_getDistanceBetweenPoints:function(E,t,R,s){var _=E-R,o=t-s;return Math.sqrt(_*_+o*o)},_performSideEffectsForTransition:function(E,R,n,l){var h=this._isHighlight(E),N=this._isHighlight(R);(n===S.RESPONDER_TERMINATED||n===S.RESPONDER_RELEASE)&&this._cancelLongPressDelayTimeout();var u=E===t.NOT_RESPONDER&&R===t.RESPONDER_INACTIVE_PRESS_IN,T=!s[E]&&s[R];if((u||T)&&this._remeasureMetricsOnActivation(),_[E]&&n===S.LONG_PRESS_DETECTED&&this.touchableHandleLongPress&&this.touchableHandleLongPress(l),N&&!h?this._startHighlight(l):!N&&h&&this._endHighlight(l),_[E]&&n===S.RESPONDER_RELEASE){var P=!!this.props.onLongPress,O=o[E]&&(!P||!this.touchableLongPressCancelsPress());(!o[E]||O)&&this.touchableHandlePress&&(N||h||(this._startHighlight(l),this._endHighlight(l)),this.touchableHandlePress(l))}this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.touchableDelayTimeout=null},_startHighlight:function(E){this._savePressInLocation(E),this.touchableHandleActivePressIn&&this.touchableHandleActivePressIn(E)},_endHighlight:function(E){var t=this;this.touchableHandleActivePressOut&&(this.touchableGetPressOutDelayMS&&this.touchableGetPressOutDelayMS()?this.pressOutDelayTimeout=setTimeout(function(){t.touchableHandleActivePressOut(E)},this.touchableGetPressOutDelayMS()):this.touchableHandleActivePressOut(E))},withoutDefaultFocusAndBlur:{}},h=(l.touchableHandleFocus,l.touchableHandleBlur,r(d[9])(l,["touchableHandleFocus","touchableHandleBlur"]));l.withoutDefaultFocusAndBlur=h;var N={Mixin:l,TOUCH_TARGET_DEBUG:!1,renderDebugView:function(E){E.color,E.hitSlop;if(!N.TOUCH_TARGET_DEBUG)return null;throw Error('Touchable.TOUCH_TARGET_DEBUG should not be enabled in prod!')}};r(d[12]).create({debug:{position:'absolute',borderWidth:1,borderStyle:'dashed'}});m.exports=N},285,[46,215,14,77,204,82,160,286,288,118,153,190,195]); __d(function(g,r,i,a,m,e,d){'use strict';function t(t,o){this.left=t,this.top=o}t.prototype.destructor=function(){this.left=null,this.top=null},r(d[0]).addPoolingTo(t,r(d[0]).twoArgumentPooler),m.exports=t},286,[287]); __d(function(g,r,i,a,m,e,d){'use strict';var t=function(t){if(this.instancePool.length){var n=this.instancePool.pop();return this.call(n,t),n}return new this(t)},n=function(t){r(d[0])(t instanceof this,'Trying to release an instance into a pool of a different type.'),t.destructor(),this.instancePool.length10?o:10,update:{duration:o>10?o:10,type:r(d[5]).Types[s]||'keyboard'}}),n.setState({bottom:c}))}else n.setState({bottom:0})},n._onLayout=function(t){n._frame=t.nativeEvent.layout,n._initialFrameHeight||(n._initialFrameHeight=n._frame.height)},n.state={bottom:0},n.viewRef=o.createRef(),n}return r(d[6])(f,[{key:"_relativeKeyboardHeight",value:function(t){var n=this._frame;if(!n||!t)return 0;var o=t.screenY-this.props.keyboardVerticalOffset;return Math.max(n.y+n.height-o,0)}},{key:"componentDidMount",value:function(){this._subscriptions=[r(d[7]).addListener('keyboardWillChangeFrame',this._onKeyboardChange)]}},{key:"componentWillUnmount",value:function(){this._subscriptions.forEach(function(t){t.remove()})}},{key:"render",value:function(){var n=this.props,s=n.behavior,u=n.children,c=n.contentContainerStyle,l=n.enabled,f=(n.keyboardVerticalOffset,n.style),h=r(d[8])(n,t),y=l?this.state.bottom:0;switch(s){case'height':var v;return null!=this._frame&&this.state.bottom>0&&(v={height:this._initialFrameHeight-y,flex:0}),o.createElement(r(d[9]),r(d[10])({ref:this.viewRef,style:r(d[11]).compose(f,v),onLayout:this._onLayout},h),u);case'position':return o.createElement(r(d[9]),r(d[10])({ref:this.viewRef,style:f,onLayout:this._onLayout},h),o.createElement(r(d[9]),{style:r(d[11]).compose(c,{bottom:y})},u));case'padding':return o.createElement(r(d[9]),r(d[10])({ref:this.viewRef,style:r(d[11]).compose(f,{paddingBottom:y}),onLayout:this._onLayout},h),u);default:return o.createElement(r(d[9]),r(d[10])({ref:this.viewRef,onLayout:this._onLayout,style:f},h),u)}}}]),f})(o.Component);s.defaultProps={enabled:!0,keyboardVerticalOffset:0},m.exports=s},301,[33,34,46,37,17,257,18,254,118,190,14,195]); __d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),l=r(d[0])(r(d[3])),c=r(d[0])(r(d[4])),o=r(d[0])(r(d[5])),s=r(d[0])(r(d[6])),u=r(d[0])(r(d[7])),f=["maskElement","children"];function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var h=r(d[8]),v=(function(v){(0,c.default)(R,v);var k,y,E=(k=R,y=p(),function(){var t,n=(0,s.default)(k);if(y){var l=(0,s.default)(this).constructor;t=Reflect.construct(n,arguments,l)}else t=n.apply(this,arguments);return(0,o.default)(this,t)});function R(){var t;(0,n.default)(this,R);for(var l=arguments.length,c=new Array(l),o=0;o=21&&(null!=c||v||null!=p)){var o=(0,t.processColor)(c);return(0,n.default)(null==o||'number'==typeof o,'Unexpected color given for Ripple color'),{viewProps:{nativeBackgroundAndroid:{type:'RippleAndroid',color:o,borderless:v,rippleRadius:p}},onPressIn:function(n){var t,o,l=u.current;null!=l&&(r(d[4]).Commands.setPressed(l,!0),r(d[4]).Commands.hotspotUpdate(l,null!=(t=n.nativeEvent.locationX)?t:0,null!=(o=n.nativeEvent.locationY)?o:0))},onPressMove:function(n){var t,o,l=u.current;null!=l&&r(d[4]).Commands.hotspotUpdate(l,null!=(t=n.nativeEvent.locationX)?t:0,null!=(o=n.nativeEvent.locationY)?o:0)},onPressOut:function(n){var t=u.current;null!=t&&r(d[4]).Commands.setPressed(t,!1)}}}return null},[c,v,p,u])};var n=r(d[0])(r(d[1])),t=r(d[2]),o=(function(n,t){if(!t&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var o=l(t);if(o&&o.has(n))return o.get(n);var u={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var f=s?Object.getOwnPropertyDescriptor(n,c):null;f&&(f.get||f.set)?Object.defineProperty(u,c,f):u[c]=n[c]}u.default=n,o&&o.set(n,u);return u})(r(d[3]));function l(n){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(l=function(n){return n?o:t})(n)}},312,[3,6,1,46,191]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u){var f=(0,t.useRef)(null);null==f.current&&(f.current=new n.default(u));var c=f.current;return(0,t.useEffect)(function(){c.configure(u)},[u,c]),(0,t.useEffect)(function(){return function(){c.reset()}},[c]),c.getEventHandlers()};var n=r(d[0])(r(d[1])),t=r(d[2])},313,[3,198,46]); __d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},314,[294]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),s=r(d[0])(r(d[2])),f=r(d[3]),n=r(d[4]).create({progressView:{height:2}}),o=f.forwardRef(function(o,u){return f.createElement(s.default,(0,t.default)({},o,{style:[n.progressView,o.style],ref:u}))});m.exports=o},315,[3,14,316,46,195]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=(0,r(d[0])(r(d[1])).default)('RCTProgressView');e.default=t},316,[3,50]); __d(function(g,r,i,a,m,e,d){var t,n=r(d[0]),f=r(d[1]).default;t=n.forwardRef(function(t,u){return n.createElement(f,r(d[2])({emulateUnlessSupported:!0},t,{ref:u}))}),m.exports=t},317,[46,318,14]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=(0,r(d[0])(r(d[1])).default)('SafeAreaView',{paperComponentName:'RCTSafeAreaView',interfaceOnly:!0});e.default=t},318,[3,50]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),f=r(d[0])(r(d[5])),l=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),p=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=v(n);if(o&&o.has(t))return o.get(t);var u={},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var c=f?Object.getOwnPropertyDescriptor(t,l):null;c&&(c.get||c.set)?Object.defineProperty(u,l,c):u[l]=t[l]}u.default=t,o&&o.set(t,u);return u})(r(d[8])),s=r(d[0])(r(d[9])),h=r(d[0])(r(d[10])),y=["forwardedRef","onValueChange","style"];function v(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(v=function(t){return t?o:n})(t)}function C(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var w=(function(s){(0,f.default)(b,s);var v,w,R=(v=b,w=C(),function(){var t,n=(0,c.default)(v);if(w){var o=(0,c.default)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,l.default)(this,t)});function b(){var t;(0,o.default)(this,b);for(var n=arguments.length,u=new Array(n),f=0;f0&&this._nativeSwitchRef&&this._nativeSwitchRef.setNativeProps&&('android'===f.default.OS?v.Commands.setNativeValue(this._nativeSwitchRef,t.value):C.Commands.setValue(this._nativeSwitchRef,t.value))}}]),V})(h.Component),S=function(){return!1},k=function(){return!0};m.exports=w},323,[3,14,118,17,18,37,34,33,77,46,195,324,325]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Commands=void 0;!(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=o(n);if(u&&u.has(t))return u.get(t);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var p=l?Object.getOwnPropertyDescriptor(t,c):null;p&&(p.get||p.set)?Object.defineProperty(f,c,p):f[c]=t[c]}f.default=t,u&&u.set(t,f)})(r(d[0]));var t=r(d[1])(r(d[2])),n=r(d[1])(r(d[3]));function o(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(o=function(t){return t?u:n})(t)}var u=(0,t.default)({supportedCommands:['setNativeValue']});e.Commands=u;var f=(0,n.default)('AndroidSwitch',{interfaceOnly:!0});e.default=f},324,[46,3,148,50]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Commands=void 0;!(function(t,o){if(!o&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=n(o);if(u&&u.has(t))return u.get(t);var f={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in t)if("default"!==p&&Object.prototype.hasOwnProperty.call(t,p)){var c=l?Object.getOwnPropertyDescriptor(t,p):null;c&&(c.get||c.set)?Object.defineProperty(f,p,c):f[p]=t[p]}f.default=t,u&&u.set(t,f)})(r(d[0]));var t=r(d[1])(r(d[2]));function n(t){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(n=function(t){return t?u:o})(t)}var o=(0,r(d[1])(r(d[3])).default)({supportedCommands:['setValue']});e.Commands=o;var u=(0,t.default)('Switch',{paperComponentName:'RCTSwitch',excludedPlatform:'android'});e.default=u},325,[46,3,50,148]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),l=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),c=r(d[0])(r(d[6])),s=(r(d[0])(r(d[7])),r(d[0])(r(d[8])));function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function p(t){return{backgroundColor:null!=t.backgroundColor?{value:t.backgroundColor,animated:t.animated}:null,barStyle:null!=t.barStyle?{value:t.barStyle,animated:t.animated}:null,translucent:t.translucent,hidden:null!=t.hidden?{value:t.hidden,animated:t.animated,transition:t.showHideTransition}:null,networkActivityIndicatorVisible:t.networkActivityIndicatorVisible}}var y=(function(c){(0,l.default)(h,c);var y,k,v=(y=h,k=f(),function(){var t,n=(0,u.default)(y);if(k){var l=(0,u.default)(this).constructor;t=Reflect.construct(n,arguments,l)}else t=n.apply(this,arguments);return(0,o.default)(this,t)});function h(){var n;(0,t.default)(this,h);for(var l=arguments.length,o=new Array(l),u=0;u=t.length?{done:!0}:{done:!1,value:t[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function O(t,n){if(t){if("string"==typeof t)return w(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?w(t,n):void 0}}function w(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,s=new Array(n);o=23};var _='android'===b.default.OS?function(t,s){return s&&S.canUseNativeForeground()?{nativeForegroundAndroid:t}:{nativeBackgroundAndroid:t}}:function(t,s){return null};m.exports=S},336,[3,14,118,17,18,37,34,33,198,203,82,77,190,152,46,6,191]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),l=["tintColor","destructiveButtonIndex"],u={showActionSheetWithOptions:function(u,s){r(d[4])('object'==typeof u&&null!==u,'Options must be a valid object'),r(d[4])('function'==typeof s,'Must provide a valid callback'),r(d[4])(n.default,"ActionSheetManager does't exist");var c=u.tintColor,f=u.destructiveButtonIndex,h=(0,o.default)(u,l),p=null;Array.isArray(f)?p=f:'number'==typeof f&&(p=[f]);var v=r(d[5])(c);r(d[4])(null==v||'number'==typeof v,'Unexpected color given for ActionSheetIOS.showActionSheetWithOptions tintColor'),n.default.showActionSheetWithOptions((0,t.default)({},h,{tintColor:v,destructiveButtonIndices:p}),s)},showShareActionSheetWithOptions:function(o,l,u){r(d[4])('object'==typeof o&&null!==o,'Options must be a valid object'),r(d[4])('function'==typeof l,'Must provide a valid failureCallback'),r(d[4])('function'==typeof u,'Must provide a valid successCallback'),r(d[4])(n.default,"ActionSheetManager does't exist"),n.default.showShareActionSheetWithOptions((0,t.default)({},o,{tintColor:r(d[5])(o.tintColor)}),l,u)}};m.exports=u},337,[3,14,118,338,6,152]); __d(function(g,r,i,a,m,e,d){'use strict';function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('ActionSheetManager');e.default=n},338,[5]); __d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),l=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),c=new n.default;l.default&&new t.default(l.default).addListener('appearanceChanged',function(n){var t=n.colorScheme;(0,o.default)('dark'===t||'light'===t||null==t,"Unrecognized color scheme. Did you mean 'dark' or 'light'?"),c.emit('change',{colorScheme:t})});m.exports={getColorScheme:function(){var n=null==l.default?null:l.default.getColorScheme()||null;return(0,o.default)('dark'===n||'light'===n||null==n,"Unrecognized color scheme. Did you mean 'dark' or 'light'?"),n},addChangeListener:function(n){c.addListener('change',n)},removeChangeListener:function(n){c.removeListener('change',n)}}},339,[3,42,116,340,6]); __d(function(g,r,i,a,m,e,d){'use strict';function t(n){if("function"!=typeof WeakMap)return null;var u=new WeakMap,o=new WeakMap;return(t=function(t){return t?o:u})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,u){if(!u&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var o=t(u);if(o&&o.has(n))return o.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in n)if("default"!==p&&Object.prototype.hasOwnProperty.call(n,p)){var l=c?Object.getOwnPropertyDescriptor(n,p):null;l&&(l.get||l.set)?Object.defineProperty(f,p,l):f[p]=n[p]}f.default=n,o&&o.set(n,f);return f})(r(d[0])).get('Appearance');e.default=n},340,[5]); __d(function(g,r,i,a,m,e,d){'use strict';var n,t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),u={},c=1,f={},l=new Map,p=new Map,y=function(n){return n()},h=!1,k={setWrapperComponentProvider:function(t){n=t},enableArchitectureIndicator:function(n){h=n},registerConfig:function(n){n.forEach(function(n){n.run?k.registerRunnable(n.appKey,n.run):(r(d[4])(null!=n.component,"AppRegistry.registerConfig(...): Every config is expected to set either `run` or `component`, but `%s` has neither.",n.appKey),k.registerComponent(n.appKey,n.component,n.section))})},registerComponent:function(t,o,s){var c=r(d[5])();return u[t]={componentProvider:o,run:function(s){r(d[6])(y(o,c),s.initialProps,s.rootTag,n&&n(s),s.fabric,h,c,'LogBox'===t)}},s&&(f[t]=u[t]),t},registerRunnable:function(n,t){return u[n]={run:t},n},registerSection:function(n,t){k.registerComponent(n,t,!0)},getAppKeys:function(){return Object.keys(u)},getSectionKeys:function(){return Object.keys(f)},getSections:function(){return(0,t.default)({},f)},getRunnable:function(n){return u[n]},getRegistry:function(){return{sections:k.getSectionKeys(),runnables:(0,t.default)({},u)}},setComponentProviderInstrumentationHook:function(n){y=n},runApplication:function(n,t){if('LogBox'!==n){var o='Running "'+n+'" with '+JSON.stringify(t);r(d[7])(o),r(d[8]).addSource('AppRegistry.runApplication'+c++,function(){return o})}r(d[4])(u[n]&&u[n].run,"\""+n+"\" has not been registered. This can happen if:\n* Metro (the local dev server) is run from the wrong folder. Check if Metro is running, stop it and restart it in the current project.\n* A module failed to load due to an error and `AppRegistry.registerComponent` wasn't called."),r(d[9]).setActiveScene({name:n}),u[n].run(t)},unmountApplicationComponentAtRootTag:function(n){r(d[10]).unmountComponentAtNodeAndRemoveContainer(n)},registerHeadlessTask:function(n,t){this.registerCancellableHeadlessTask(n,t,function(){return function(){}})},registerCancellableHeadlessTask:function(n,t,o){l.has(n)&&console.warn("registerHeadlessTask or registerCancellableHeadlessTask called multiple times for same key '"+n+"'"),l.set(n,t),p.set(n,o)},startHeadlessTask:function(n,t,u){var c=l.get(t);if(!c)return console.warn("No task registered for key "+t),void(o.default&&o.default.notifyTaskFinished(n));c()(u).then(function(){o.default&&o.default.notifyTaskFinished(n)}).catch(function(t){console.error(t),o.default&&t instanceof s.default&&o.default.notifyTaskRetry(n).then(function(t){t||o.default.notifyTaskFinished(n)})})},cancelHeadlessTask:function(n,t){var o=p.get(t);if(!o)throw new Error("No task canceller registered for key '"+t+"'");o()()}};r(d[11]).registerCallableModule('AppRegistry',k),k.registerComponent('LogBox',function(){return function(){return null}}),m.exports=k},341,[3,14,342,343,6,110,344,263,351,355,82,15]); __d(function(g,r,i,a,m,e,d){'use strict';function t(n){if("function"!=typeof WeakMap)return null;var u=new WeakMap,o=new WeakMap;return(t=function(t){return t?o:u})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,u){if(!u&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var o=t(u);if(o&&o.has(n))return o.get(n);var f={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in n)if("default"!==c&&Object.prototype.hasOwnProperty.call(n,c)){var l=p?Object.getOwnPropertyDescriptor(n,c):null;l&&(l.get||l.set)?Object.defineProperty(f,c,l):f[c]=n[c]}f.default=n,o&&o.set(n,f);return f})(r(d[0])).get('HeadlessJsTaskSupport');e.default=n},342,[5]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),u=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),f=r(d[0])(r(d[4])),c=r(d[0])(r(d[5]));function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var l=(function(l){(0,n.default)(y,l);var s,p,v=(s=y,p=o(),function(){var t,u=(0,c.default)(s);if(p){var n=(0,c.default)(this).constructor;t=Reflect.construct(u,arguments,n)}else t=u.apply(this,arguments);return(0,f.default)(this,t)});function y(){return(0,u.default)(this,y),v.apply(this,arguments)}return(0,t.default)(y)})((0,r(d[0])(r(d[6])).default)(Error));e.default=l},343,[3,18,17,37,34,33,55]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),c=r(d[4]);r(d[5]),m.exports=function(l,p,u,s,f,_,v,T){r(d[6])(u,'Expect to have a valid rootTag, instead got ',u);var x=c.createElement(o.default.Provider,{value:null!=v?v:n.default},c.createElement(r(d[7]),{rootTag:u,fabric:f,showArchitectureIndicator:_,WrapperComponent:s,internal_excludeLogBox:T},c.createElement(l,(0,t.default)({},p,{rootTag:u}))));n.default.startTimespan('renderApplication_React_render'),f?r(d[8]).render(x,u):r(d[9]).render(x,u),n.default.stopTimespan('renderApplication_React_render')}},344,[3,14,109,345,46,346,6,347,349,82]); __d(function(g,r,i,a,m,e,d){'use strict';var t=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var u=o(n);if(u&&u.has(t))return u.get(t);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in t)if("default"!==p&&Object.prototype.hasOwnProperty.call(t,p)){var l=c?Object.getOwnPropertyDescriptor(t,p):null;l&&(l.get||l.set)?Object.defineProperty(f,p,l):f[p]=t[p]}f.default=t,u&&u.set(t,f);return f})(r(d[0])),n=r(d[1])(r(d[2]));function o(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,u=new WeakMap;return(o=function(t){return t?u:n})(t)}var u=t.createContext(n.default);m.exports=u},345,[46,3,109]); __d(function(g,r,i,a,m,e,d){'use strict';function n(){}var t;if(r(d[0]).isTV){var o=new(r(d[1])),v=new Set;o.enable(this,function(n,o){if(o&&'menu'===o.eventType){for(var u=!0,f=Array.from(v.values()).reverse(),s=0;sthis.eventPool.length&&this.eventPool.push(e)}function D(e){e.eventPool=[],e.getPooled=A,e.release=M}n(a[2])(I.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=N)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=N)},persist:function(){this.isPersistent=N},isPersistent:z,destructor:function(){var e,n=this.constructor.Interface;for(e in n)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=z,this._dispatchInstances=this._dispatchListeners=null}}),I.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},I.extend=function(e){function t(){}function r(){return i.apply(this,arguments)}var i=this;t.prototype=i.prototype;var l=new t;return n(a[2])(l,r.prototype),r.prototype=l,r.prototype.constructor=r,r.Interface=n(a[2])({},i.Interface,e),r.extend=i.extend,D(r),r},D(I);var U=I.extend({touchHistory:function(){return null}});function F(e){return"topTouchStart"===e}function Q(e){return"topTouchMove"===e}var H=["topTouchStart"],j=["topTouchMove"],W=["topTouchCancel","topTouchEnd"],O=[],B={touchBank:O,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};function L(e){return e.timeStamp||e.timestamp}function V(e){if(null==(e=e.identifier))throw Error("Touch object is missing identifier.");return e}function Y(e){var n=V(e),t=O[n];t?(t.touchActive=!0,t.startPageX=e.pageX,t.startPageY=e.pageY,t.startTimeStamp=L(e),t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=L(e),t.previousPageX=e.pageX,t.previousPageY=e.pageY,t.previousTimeStamp=L(e)):(t={touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:L(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:L(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:L(e)},O[n]=t),B.mostRecentTimeStamp=L(e)}function q(e){var n=O[V(e)];n&&(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=L(e),B.mostRecentTimeStamp=L(e))}function X(e){var n=O[V(e)];n&&(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=L(e),B.mostRecentTimeStamp=L(e))}var $={recordTouchTrack:function(e,n){if(Q(e))n.changedTouches.forEach(q);else if(F(e))n.changedTouches.forEach(Y),B.numberActiveTouches=n.touches.length,1===B.numberActiveTouches&&(B.indexOfSingleActiveTouch=n.touches[0].identifier);else if(("topTouchEnd"===e||"topTouchCancel"===e)&&(n.changedTouches.forEach(X),B.numberActiveTouches=n.touches.length,1===B.numberActiveTouches))for(e=0;e component.");return t=bn,bn+=2,{node:ln(t,"RCTRawText",n,{text:e},r)}}var Sn=setTimeout,En=clearTimeout;function kn(e){var n=e.node,t=Ke(null,We,{style:{display:"none"}},e.canonical.viewConfig.validAttributes);return{node:sn(n,t),canonical:e.canonical}}var wn=[],Pn=-1;function Rn(e){0>Pn||(e.current=wn[Pn],wn[Pn]=null,Pn--)}function _n(e,n){wn[++Pn]=e.current,e.current=n}var Cn={},Nn={current:Cn},zn={current:!1},In=Cn;function An(e,n){var t=e.type.contextTypes;if(!t)return Cn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var i,l={};for(i in t)l[i]=n[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function Mn(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Dn(){Rn(zn),Rn(Nn)}function Un(e,n,t){if(Nn.current!==Cn)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");_n(Nn,n),_n(zn,t)}function Fn(e,t,r){var i=e.stateNode;if(e=t.childContextTypes,"function"!=typeof i.getChildContext)return r;for(var l in i=i.getChildContext())if(!(l in e))throw Error((De(t)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');return n(a[2])({},r,{},i)}function Qn(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cn,In=Nn.current,_n(Nn,e),_n(zn,zn.current),!0}function Hn(e,n,t){var r=e.stateNode;if(!r)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");t?(e=Fn(e,n,In),r.__reactInternalMemoizedMergedChildContext=e,Rn(zn),Rn(Nn),_n(Nn,e)):Rn(zn),_n(zn,t)}var jn={},Wn=void 0!==n(a[4]).unstable_requestPaint?n(a[4]).unstable_requestPaint:function(){},On=null,Bn=null,Ln=!1,Vn=n(a[4]).unstable_now(),Yn=1e4>Vn?n(a[4]).unstable_now:function(){return n(a[4]).unstable_now()-Vn};function qn(){switch(n(a[4]).unstable_getCurrentPriorityLevel()){case n(a[4]).unstable_ImmediatePriority:return 99;case n(a[4]).unstable_UserBlockingPriority:return 98;case n(a[4]).unstable_NormalPriority:return 97;case n(a[4]).unstable_LowPriority:return 96;case n(a[4]).unstable_IdlePriority:return 95;default:throw Error("Unknown priority level.")}}function Xn(e){switch(e){case 99:return n(a[4]).unstable_ImmediatePriority;case 98:return n(a[4]).unstable_UserBlockingPriority;case 97:return n(a[4]).unstable_NormalPriority;case 96:return n(a[4]).unstable_LowPriority;case 95:return n(a[4]).unstable_IdlePriority;default:throw Error("Unknown priority level.")}}function $n(e,t){return e=Xn(e),n(a[4]).unstable_runWithPriority(e,t)}function Kn(e,t,r){return e=Xn(e),n(a[4]).unstable_scheduleCallback(e,t,r)}function Gn(e){return null===On?(On=[e],Bn=n(a[4]).unstable_scheduleCallback(n(a[4]).unstable_ImmediatePriority,Zn)):On.push(e),jn}function Jn(){if(null!==Bn){var e=Bn;Bn=null,n(a[4]).unstable_cancelCallback(e)}Zn()}function Zn(){if(!Ln&&null!==On){Ln=!0;var e=0;try{var t=On;$n(99,function(){for(;e=n&&(Ir=!0),e.firstContext=null)}function ht(e,n){if(st!==e&&!1!==n&&0!==n)if("number"==typeof n&&1073741823!==n||(st=e,n=1073741823),n={context:e,observedBits:n,next:null},null===ut){if(null===ot)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");ut=n,ot.dependencies={expirationTime:0,firstContext:n,responders:null}}else ut=ut.next=n;return e._currentValue2}var mt=!1;function gt(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function vt(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function yt(e,n){return(e={expirationTime:e,suspenseConfig:n,tag:0,payload:null,callback:null,next:null}).next=e}function bt(e,n){if(null!==(e=e.updateQueue)){var t=(e=e.shared).pending;null===t?n.next=n:(n.next=t.next,t.next=n),e.pending=n}}function Tt(e,n){var t=e.alternate;null!==t&&vt(t,e),null===(t=(e=e.updateQueue).baseQueue)?(e.baseQueue=n.next=n,n.next=n):(n.next=t.next,t.next=n)}function xt(e,t,r,i){var l=e.updateQueue;mt=!1;var o=l.baseQueue,u=l.shared.pending;if(null!==u){if(null!==o){var s=o.next;o.next=u.next,u.next=s}o=u,l.shared.pending=null,null!==(s=e.alternate)&&(null!==(s=s.updateQueue)&&(s.baseQueue=u))}if(null!==o){s=o.next;var c=l.baseState,f=0,d=null,p=null,h=null;if(null!==s)for(var m=s;;){if((u=m.expirationTime)f&&(f=u)}else{null!==h&&(h=h.next={expirationTime:1073741823,suspenseConfig:m.suspenseConfig,tag:m.tag,payload:m.payload,callback:m.callback,next:null}),pl(u,m.suspenseConfig);e:{var v=e,y=m;switch(u=t,g=r,y.tag){case 1:if("function"==typeof(v=y.payload)){c=v.call(g,c,u);break e}c=v;break e;case 3:v.effectTag=-4097&v.effectTag|64;case 0:if(null===(u="function"==typeof(v=y.payload)?v.call(g,c,u):v)||void 0===u)break e;c=n(a[2])({},c,u);break e;case 2:mt=!0}}null!==m.callback&&(e.effectTag|=32,null===(u=l.effects)?l.effects=[m]:u.push(m))}if(null===(m=m.next)||m===s){if(null===(u=l.shared.pending))break;m=o.next=u.next,u.next=s,l.baseQueue=o=u,l.shared.pending=null}}null===h?d=c:h.next=p,l.baseState=d,l.baseQueue=h,hl(f),e.expirationTime=f,e.memoizedState=c}}function St(e,n,t){if(e=n.effects,n.effects=null,null!==e)for(n=0;nm?(g=h,h=null):g=h.sibling;var v=d(i,h,o[m],u);if(null===v){null===h&&(h=g);break}e&&h&&null===v.alternate&&n(i,h),a=l(v,a,m),null===c?s=v:c.sibling=v,c=v,h=g}if(m===o.length)return t(i,h),s;if(null===h){for(;mm?(g=h,h=null):g=h.sibling;var y=d(i,h,v.value,u);if(null===y){null===h&&(h=g);break}e&&h&&null===y.alternate&&n(i,h),a=l(y,a,m),null===c?s=y:c.sibling=y,c=y,h=g}if(v.done)return t(i,h),s;if(null===h){for(;!v.done;m++,v=o.next())null!==(v=f(i,v.value,u))&&(a=l(v,a,m),null===c?s=v:c.sibling=v,c=v);return s}for(h=r(i,h);!v.done;m++,v=o.next())null!==(v=p(h,i,m,v.value,u))&&(e&&null!==v.alternate&&h.delete(null===v.key?m:v.key),a=l(v,a,m),null===c?s=v:c.sibling=v,c=v);return e&&h.forEach(function(e){return n(i,e)}),s}return function(e,r,l,o){var u="object"==typeof l&&null!==l&&l.type===Te&&null===l.key;u&&(l=l.props.children);var s="object"==typeof l&&null!==l;if(s)switch(l.$$typeof){case ye:e:{for(s=l.key,u=r;null!==u;){if(u.key===s){switch(u.tag){case 7:if(l.type===Te){t(e,u.sibling),(r=i(u,l.props.children)).return=e,e=r;break e}break;default:if(u.elementType===l.type){t(e,u.sibling),(r=i(u,l.props)).ref=It(e,u,l),r.return=e,e=r;break e}}t(e,u);break}n(e,u),u=u.sibling}l.type===Te?((r=Ql(l.props.children,e.mode,o,l.key)).return=e,e=r):((o=Fl(l.type,l.key,l.props,null,e.mode,o)).ref=It(e,r,l),o.return=e,e=o)}return a(e);case be:e:{for(u=l.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===l.containerInfo&&r.stateNode.implementation===l.implementation){t(e,r.sibling),(r=i(r,l.children||[])).return=e,e=r;break e}t(e,r);break}n(e,r),r=r.sibling}(r=jl(l,e.mode,o)).return=e,e=r}return a(e)}if("string"==typeof l||"number"==typeof l)return l=""+l,null!==r&&6===r.tag?(t(e,r.sibling),(r=i(r,l)).return=e,e=r):(t(e,r),(r=Hl(l,e.mode,o)).return=e,e=r),a(e);if(zt(l))return h(e,r,l,o);if(Ae(l))return m(e,r,l,o);if(s&&At(e,l),void 0===l&&!u)switch(e.tag){case 1:case 0:throw e=e.type,Error((e.displayName||e.name||"Component")+"(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.")}return t(e,r)}}var Dt=Mt(!0),Ut=Mt(!1),Ft={},Qt={current:Ft},Ht={current:Ft},jt={current:Ft};function Wt(e){if(e===Ft)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function Ot(e,n){_n(jt,n),_n(Ht,e),_n(Qt,Ft),Rn(Qt),_n(Qt,{isInAParentText:!1})}function Bt(){Rn(Qt),Rn(Ht),Rn(jt)}function Lt(e){Wt(jt.current);var n=Wt(Qt.current),t=e.type;t="AndroidTextInput"===t||"RCTMultilineTextInputView"===t||"RCTSinglelineTextInputView"===t||"RCTText"===t||"RCTVirtualText"===t,n!==(t=n.isInAParentText!==t?{isInAParentText:t}:n)&&(_n(Ht,e),_n(Qt,t))}function Vt(e){Ht.current===e&&(Rn(Qt),Rn(Ht))}var Yt={current:0};function qt(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===t.dehydrated||tn()||tn()))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(64&n.effectTag))return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function Xt(e,n){return{responder:e,props:n}}var $t=ge.ReactCurrentDispatcher,Kt=ge.ReactCurrentBatchConfig,Gt=0,Jt=null,Zt=null,er=null,nr=!1;function tr(){throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.")}function rr(e,n){if(null===n)return!1;for(var t=0;tl))throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");l+=1,er=Zt=null,n.updateQueue=null,$t.current=Nr,e=t(r,i)}while(n.expirationTime===Gt)}if($t.current=Rr,n=null!==Zt&&null!==Zt.next,Gt=0,er=Zt=Jt=null,nr=!1,n)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return e}function lr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===er?Jt.memoizedState=er=e:er=er.next=e,er}function ar(){if(null===Zt){var e=Jt.alternate;e=null!==e?e.memoizedState:null}else e=Zt.next;var n=null===er?Jt.memoizedState:er.next;if(null!==n)er=n,Zt=e;else{if(null===e)throw Error("Rendered more hooks than during the previous render.");e={memoizedState:(Zt=e).memoizedState,baseState:Zt.baseState,baseQueue:Zt.baseQueue,queue:Zt.queue,next:null},null===er?Jt.memoizedState=er=e:er=er.next=e}return er}function or(e,n){return"function"==typeof n?n(e):n}function ur(e){var n=ar(),t=n.queue;if(null===t)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");t.lastRenderedReducer=e;var r=Zt,i=r.baseQueue,l=t.pending;if(null!==l){if(null!==i){var a=i.next;i.next=l.next,l.next=a}r.baseQueue=i=l,t.pending=null}if(null!==i){i=i.next,r=r.baseState;var o=a=l=null,u=i;do{var s=u.expirationTime;if(sJt.expirationTime&&(Jt.expirationTime=s,hl(s))}else null!==o&&(o=o.next={expirationTime:1073741823,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),pl(s,u.suspenseConfig),r=u.eagerReducer===e?u.eagerState:e(r,u.action);u=u.next}while(null!==u&&u!==i);null===o?l=r:o.next=a,et(r,n.memoizedState)||(Ir=!0),n.memoizedState=r,n.baseState=l,n.baseQueue=o,t.lastRenderedState=r}return[n.memoizedState,t.dispatch]}function sr(e){var n=ar(),t=n.queue;if(null===t)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");t.lastRenderedReducer=e;var r=t.dispatch,i=t.pending,l=n.memoizedState;if(null!==i){t.pending=null;var a=i=i.next;do{l=e(l,a.action),a=a.next}while(a!==i);et(l,n.memoizedState)||(Ir=!0),n.memoizedState=l,null===n.baseQueue&&(n.baseState=l),t.lastRenderedState=l}return[l,r]}function cr(e){var n=lr();return"function"==typeof e&&(e=e()),n.memoizedState=n.baseState=e,e=(e=n.queue={pending:null,dispatch:null,lastRenderedReducer:or,lastRenderedState:e}).dispatch=wr.bind(null,Jt,e),[n.memoizedState,e]}function fr(e,n,t,r){return e={tag:e,create:n,destroy:t,deps:r,next:null},null===(n=Jt.updateQueue)?(n={lastEffect:null},Jt.updateQueue=n,n.lastEffect=e.next=e):null===(t=n.lastEffect)?n.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,n.lastEffect=e),e}function dr(){return ar().memoizedState}function pr(e,n,t,r){var i=lr();Jt.effectTag|=e,i.memoizedState=fr(1|n,t,void 0,void 0===r?null:r)}function hr(e,n,t,r){var i=ar();r=void 0===r?null:r;var l=void 0;if(null!==Zt){var a=Zt.memoizedState;if(l=a.destroy,null!==r&&rr(r,a.deps))return void fr(n,t,l,r)}Jt.effectTag|=e,i.memoizedState=fr(1|n,t,l,r)}function mr(e,n){return pr(516,4,e,n)}function gr(e,n){return hr(516,4,e,n)}function vr(e,n){return hr(4,2,e,n)}function yr(e,n){return"function"==typeof n?(e=e(),n(e),function(){n(null)}):null!==n&&void 0!==n?(e=e(),n.current=e,function(){n.current=null}):void 0}function br(e,n,t){return t=null!==t&&void 0!==t?t.concat([e]):null,hr(4,2,yr.bind(null,n,e),t)}function Tr(){}function xr(e,n){return lr().memoizedState=[e,void 0===n?null:n],e}function Sr(e,n){var t=ar();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&rr(n,r[1])?r[0]:(t.memoizedState=[e,n],e)}function Er(e,n){var t=ar();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&rr(n,r[1])?r[0]:(e=e(),t.memoizedState=[e,n],e)}function kr(e,n,t){var r=qn();$n(98>r?98:r,function(){e(!0)}),$n(97r.tailExpiration&&1n)&&Ji.set(e,n))}}function ll(e,n){e.expirationTime=(e=t>(e=e.nextKnownPendingLevel)?t:e)&&n!==e?0:e}function ol(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Gn(sl.bind(null,e));else{var t=al(e),r=e.callbackNode;if(0===t)null!==r&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var i=tl();if(1073741823===t?i=99:1===t||2===t?i=95:i=0>=(i=10*(1073741821-t)-10*(1073741821-i))?99:250>=i?98:5250>=i?97:95,null!==r){var l=e.callbackPriority;if(e.callbackExpirationTime===t&&l>=i)return;r!==jn&&n(a[4]).unstable_cancelCallback(r)}e.callbackExpirationTime=t,e.callbackPriority=i,t=1073741823===t?Gn(sl.bind(null,e)):Kn(i,ul.bind(null,e),{timeout:10*(1073741821-t)-Yn()}),e.callbackNode=t}}}function ul(e,n){if(nl=0,n){n=tl();var t=e.lastExpiredTime;return(0===t||t>n)&&(e.lastExpiredTime=n),ol(e),null}if(0===(t=al(e)))return null;if(n=e.callbackNode,(48&Ii)!==Si)throw Error("Should not already be working.");kl();var r=t,i=Ii;Ii|=ki;var l=dl();for(e===Ai&&r===Di||cl(e,r);;)try{vl();break}catch(n){fl(e,n)}if(ct(),Ti.current=l,Ii=i,null!==Mi?i=Pi:(Ai=null,i=Ui),i!==Pi){if(i===_i&&(i=ml(e,t=2=t)){e.lastPingedTime=t,cl(e,t);break}if(0!==(l=al(e))&&l!==t)break;if(0!==i&&i!==t){e.lastPingedTime=i;break}e.timeoutHandle=Sn(xl.bind(null,e),r);break}xl(e);break;case Ni:if(Bl(e,t),t===(i=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=Tl(r)),Oi&&(0===(r=e.lastPingedTime)||r>=t)){e.lastPingedTime=t,cl(e,t);break}if(0!==(r=al(e))&&r!==t)break;if(0!==i&&i!==t){e.lastPingedTime=i;break}if(1073741823!==Hi?r=10*(1073741821-Hi)-Yn():1073741823===Qi?r=0:(r=10*(1073741821-Qi)-5e3,t=10*(1073741821-t)-(i=Yn()),0>(r=i-r)&&(r=0),t<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*bi(r/1960))-r)&&(r=t)),10=(r=0|a.busyMinDurationMs)?r=0:(i=0|a.busyDelayMs,r=(l=Yn()-(10*(1073741821-l)-(0|a.timeoutMs||5e3)))<=i?0:i+r-l),10=n?Di:n:1073741823);if(0!==e.tag&&t===_i&&(t=ml(e,n=2 component higher in the tree to provide a loading indicator or placeholder to display."+it(a))}Ui!==zi&&(Ui=_i),o=ti(o,a),f=l;do{switch(f.tag){case 3:u=o,f.effectTag|=4096,f.expirationTime=n,Tt(f,gi(f,u,n));break e;case 1:u=o;var T=f.type,x=f.stateNode;if(0==(64&f.effectTag)&&("function"==typeof T.getDerivedStateFromError||null!==x&&"function"==typeof x.componentDidCatch&&(null===Xi||!Xi.has(x)))){f.effectTag|=4096,f.expirationTime=n,Tt(f,vi(f,u,n));break e}}f=f.return}while(null!==f)}Mi=bl(Mi)}catch(e){n=e;continue}break}}function dl(){var e=Ti.current;return Ti.current=Rr,null===e?Rr:e}function pl(e,n){eWi&&(Wi=e)}function ml(e,n){var t=Ii;Ii|=ki;var r=dl();for(e===Ai&&n===Di||cl(e,n);;)try{gl();break}catch(n){fl(e,n)}if(ct(),Ii=t,Ti.current=r,null!==Mi)throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Ai=null,Ui}function gl(){for(;null!==Mi;)Mi=yl(Mi)}function vl(){for(;null!==Mi&&!n(a[4]).unstable_shouldYield();)Mi=yl(Mi)}function yl(e){var n=yi(e.alternate,e,Di);return e.memoizedProps=e.pendingProps,null===n&&(n=bl(e)),xi.current=null,n}function bl(e){Mi=e;do{var n=Mi.alternate;if(e=Mi.return,0==(2048&Mi.effectTag)){if(n=ei(n,Mi,Di),1===Di||1!==Mi.childExpirationTime){for(var t=0,r=Mi.child;null!==r;){var i=r.expirationTime,l=r.childExpirationTime;i>t&&(t=i),l>t&&(t=l),r=r.sibling}Mi.childExpirationTime=t}if(null!==n)return n;null!==e&&0==(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Mi.firstEffect),null!==Mi.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Mi.firstEffect),e.lastEffect=Mi.lastEffect),1(e=e.childExpirationTime)?n:e}function xl(e){var n=qn();return $n(99,Sl.bind(null,e,n)),null}function Sl(e,n){do{kl()}while(null!==Ki);if((48&Ii)!==Si)throw Error("Should not already be working.");var t=e.finishedWork,r=e.finishedExpirationTime;if(null===t)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=Tl(t);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Ai&&(Mi=Ai=null,Di=0),1=t?qr(e,n,t):(_n(Yt,1&Yt.current),null!==(n=Gr(e,n,t))?n.sibling:null);_n(Yt,1&Yt.current);break;case 19:if(r=n.childExpirationTime>=t,0!=(64&e.effectTag)){if(r)return Kr(e,n,t);n.effectTag|=64}if(null!==(i=n.memoizedState)&&(i.rendering=null,i.tail=null),_n(Yt,Yt.current),!r)return null}return Gr(e,n,t)}Ir=!1}else Ir=!1;switch(n.expirationTime=0,n.tag){case 2:if(r=n.type,null!==e&&(e.alternate=null,n.alternate=null,n.effectTag|=2),e=n.pendingProps,i=An(n,Nn.current),pt(n,t),i=ir(null,n,r,e,i,t),n.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(n.tag=1,n.memoizedState=null,n.updateQueue=null,Mn(r)){var l=!0;Qn(n)}else l=!1;n.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,gt(n);var a=r.getDerivedStateFromProps;"function"==typeof a&&wt(n,r,a,e),i.updater=Pt,n.stateNode=i,i._reactInternalFiber=n,Nt(n,r,e,t),n=jr(null,n,r,!0,l,t)}else n.tag=0,Ar(null,n,i,t),n=n.child;return n;case 16:e:{if(i=n.elementType,null!==e&&(e.alternate=null,n.alternate=null,n.effectTag|=2),e=n.pendingProps,Me(i),1!==i._status)throw i._result;switch(i=i._result,n.type=i,l=n.tag=Dl(i),e=lt(i,e),l){case 0:n=Qr(null,n,i,e,t);break e;case 1:n=Hr(null,n,i,e,t);break e;case 11:n=Mr(null,n,i,e,t);break e;case 14:n=Dr(null,n,i,lt(i.type,e),r,t);break e}throw Error("Element type is invalid. Received a promise that resolves to: "+i+". Lazy element type must resolve to a class or function.")}return n;case 0:return r=n.type,i=n.pendingProps,Qr(e,n,r,i=n.elementType===r?i:lt(r,i),t);case 1:return r=n.type,i=n.pendingProps,Hr(e,n,r,i=n.elementType===r?i:lt(r,i),t);case 3:if(Wr(n),r=n.updateQueue,null===e||null===r)throw Error("If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue.");return r=n.pendingProps,i=null!==(i=n.memoizedState)?i.element:null,vt(e,n),xt(n,r,null,t),(r=n.memoizedState.element)===i?n=Gr(e,n,t):(Ar(e,n,r,t),n=n.child),n;case 5:return Lt(n),r=n.pendingProps.children,Fr(e,n),Ar(e,n,r,t),n=n.child;case 6:return null;case 13:return qr(e,n,t);case 4:return Ot(n,n.stateNode.containerInfo),r=n.pendingProps,null===e?n.child=Dt(n,null,r,t):Ar(e,n,r,t),n.child;case 11:return r=n.type,i=n.pendingProps,Mr(e,n,r,i=n.elementType===r?i:lt(r,i),t);case 7:return Ar(e,n,n.pendingProps,t),n.child;case 8:case 12:return Ar(e,n,n.pendingProps.children,t),n.child;case 10:e:{r=n.type._context,i=n.pendingProps,a=n.memoizedProps,l=i.value;var o=n.type._context;if(_n(at,o._currentValue2),o._currentValue2=l,null!==a)if(o=a.value,0===(l=et(o,l)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(o,l):1073741823))){if(a.children===i.children&&!zn.current){n=Gr(e,n,t);break e}}else for(null!==(o=n.child)&&(o.return=n);null!==o;){var u=o.dependencies;if(null!==u){a=o.child;for(var s=u.firstContext;null!==s;){if(s.context===r&&0!=(s.observedBits&l)){1===o.tag&&((s=yt(t,null)).tag=2,bt(o,s)),o.expirationTime=n&&e<=n}function Bl(e,n){var t=e.firstSuspendedTime,r=e.lastSuspendedTime;tn||0===t)&&(e.lastSuspendedTime=n),n<=e.lastPingedTime&&(e.lastPingedTime=0),n<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Ll(e,n){n>e.firstPendingTime&&(e.firstPendingTime=n);var t=e.firstSuspendedTime;0!==t&&(n>=t?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:n>=e.lastSuspendedTime&&(e.lastSuspendedTime=n+1),n>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=n))}function Vl(e){var n=e._reactInternalFiber;if(void 0===n){if("function"==typeof e.render)throw Error("Unable to find node on an unmounted component.");throw Error("Argument appears to not be a ReactComponent. Keys: "+Object.keys(e))}return null===(e=He(n))?null:e.stateNode}function Yl(e,n,t,r){var i=n.current,l=tl(),a=Et.suspense;l=rl(l,i,a);e:if(t){t=t._reactInternalFiber;n:{if(Ue(t)!==t||1!==t.tag)throw Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var o=t;do{switch(o.tag){case 3:o=o.stateNode.context;break n;case 1:if(Mn(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break n}}o=o.return}while(null!==o);throw Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}if(1===t.tag){var u=t.type;if(Mn(u)){t=Fn(t,u,o);break e}}t=o}else t=Cn;return null===n.context?n.context=t:n.pendingContext=t,(n=yt(l,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(n.callback=r),bt(i,n),il(i,l),l}function ql(e,n,t){var r=3=t.length?{done:!0}:{done:!1,value:t[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,n){if(t){if("string"==typeof t)return f(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?f(t,n):void 0}}function f(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,u=new Array(n);oo&&(s+=c&&u?v.currentPageX:c&&!u?v.currentPageY:!c&&u?v.previousPageX:v.previousPageY,h=1);else for(var C=0;C=o){s+=c&&u?l.currentPageX:c&&!u?l.currentPageY:!c&&u?l.previousPageX:l.previousPageY,h++}}return h>0?s/h:n.noCentroid},currentCentroidXOfTouchesChangedAfter:function(t,o){return n.centroidDimension(t,o,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(t,o){return n.centroidDimension(t,o,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(t,o){return n.centroidDimension(t,o,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(t,o){return n.centroidDimension(t,o,!1,!1)},currentCentroidX:function(t){return n.centroidDimension(t,0,!0,!0)},currentCentroidY:function(t){return n.centroidDimension(t,0,!1,!0)},noCentroid:-1};m.exports=n},373,[]); __d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0])(r(d[1])),s=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),t=r(d[0])(r(d[4])),E=r(d[0])(r(d[5])),A=r(d[0])(r(d[6])),u=r(d[0])(r(d[7])),_=Object.freeze({GRANTED:'granted',DENIED:'denied',NEVER_ASK_AGAIN:'never_ask_again'}),S=Object.freeze({READ_CALENDAR:'android.permission.READ_CALENDAR',WRITE_CALENDAR:'android.permission.WRITE_CALENDAR',CAMERA:'android.permission.CAMERA',READ_CONTACTS:'android.permission.READ_CONTACTS',WRITE_CONTACTS:'android.permission.WRITE_CONTACTS',GET_ACCOUNTS:'android.permission.GET_ACCOUNTS',ACCESS_FINE_LOCATION:'android.permission.ACCESS_FINE_LOCATION',ACCESS_COARSE_LOCATION:'android.permission.ACCESS_COARSE_LOCATION',ACCESS_BACKGROUND_LOCATION:'android.permission.ACCESS_BACKGROUND_LOCATION',RECORD_AUDIO:'android.permission.RECORD_AUDIO',READ_PHONE_STATE:'android.permission.READ_PHONE_STATE',CALL_PHONE:'android.permission.CALL_PHONE',READ_CALL_LOG:'android.permission.READ_CALL_LOG',WRITE_CALL_LOG:'android.permission.WRITE_CALL_LOG',ADD_VOICEMAIL:'com.android.voicemail.permission.ADD_VOICEMAIL',USE_SIP:'android.permission.USE_SIP',PROCESS_OUTGOING_CALLS:'android.permission.PROCESS_OUTGOING_CALLS',BODY_SENSORS:'android.permission.BODY_SENSORS',SEND_SMS:'android.permission.SEND_SMS',RECEIVE_SMS:'android.permission.RECEIVE_SMS',READ_SMS:'android.permission.READ_SMS',RECEIVE_WAP_PUSH:'android.permission.RECEIVE_WAP_PUSH',RECEIVE_MMS:'android.permission.RECEIVE_MMS',READ_EXTERNAL_STORAGE:'android.permission.READ_EXTERNAL_STORAGE',WRITE_EXTERNAL_STORAGE:'android.permission.WRITE_EXTERNAL_STORAGE'}),l=new((function(){function l(){(0,o.default)(this,l),this.PERMISSIONS=S,this.RESULTS=_}return(0,t.default)(l,[{key:"checkPermission",value:function(n){return console.warn('"PermissionsAndroid.checkPermission" is deprecated. Use "PermissionsAndroid.check" instead'),console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve(!1)}},{key:"check",value:function(n){return console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve(!1)}},{key:"requestPermission",value:function(s,o){var t;return n.default.async(function(E){for(;;)switch(E.prev=E.next){case 0:return console.warn('"PermissionsAndroid.requestPermission" is deprecated. Use "PermissionsAndroid.request" instead'),console.warn('"PermissionsAndroid" module works only for Android platform.'),E.abrupt("return",Promise.resolve(!1));case 4:return E.next=6,n.default.awrap(this.request(s,o));case 6:return t=E.sent,E.abrupt("return",t===this.RESULTS.GRANTED);case 8:case"end":return E.stop()}},null,this,null,Promise)}},{key:"request",value:function(o,t){return n.default.async(function(_){for(;;)switch(_.prev=_.next){case 0:return console.warn('"PermissionsAndroid" module works only for Android platform.'),_.abrupt("return",Promise.resolve(this.RESULTS.DENIED));case 3:if((0,u.default)(A.default,'PermissionsAndroid is not installed correctly.'),!t){_.next=10;break}return _.next=7,n.default.awrap(A.default.shouldShowRequestPermissionRationale(o));case 7:if(!_.sent||!E.default){_.next=10;break}return _.abrupt("return",new Promise(function(n,u){var _=(0,s.default)({},t);E.default.showAlert(_,function(){return u(new Error('Error showing rationale'))},function(){return n(A.default.requestPermission(o))})}));case 10:return _.abrupt("return",A.default.requestPermission(o));case 11:case"end":return _.stop()}},null,this,null,Promise)}},{key:"requestMultiple",value:function(n){return console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve({})}}]),l})());m.exports=l},374,[3,63,14,17,18,129,375,6]); __d(function(g,r,i,a,m,e,d){'use strict';function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('PermissionsAndroid');e.default=n},375,[5]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),l=new(r(d[4]))(n.default),c=new Map,u=(function(){function u(o){var n=this;(0,t.default)(this,u),this._data={},this._remoteNotificationCompleteCallbackCalled=!1,this._isRemote=o.remote,this._isRemote&&(this._notificationId=o.notificationId),o.remote?Object.keys(o).forEach(function(t){var l=o[t];'aps'===t?(n._alert=l.alert,n._sound=l.sound,n._badgeCount=l.badge,n._category=l.category,n._contentAvailable=l['content-available'],n._threadID=l['thread-id']):n._data[t]=l}):(this._badgeCount=o.applicationIconBadgeNumber,this._sound=o.soundName,this._alert=o.alertBody,this._data=o.userInfo,this._category=o.category)}return(0,o.default)(u,[{key:"finish",value:function(t){this._isRemote&&this._notificationId&&!this._remoteNotificationCompleteCallbackCalled&&(this._remoteNotificationCompleteCallbackCalled=!0,r(d[5])(n.default,'PushNotificationManager is not available.'),n.default.onFinishRemoteNotification(this._notificationId,t))}},{key:"getMessage",value:function(){return this._alert}},{key:"getSound",value:function(){return this._sound}},{key:"getCategory",value:function(){return this._category}},{key:"getAlert",value:function(){return this._alert}},{key:"getContentAvailable",value:function(){return this._contentAvailable}},{key:"getBadgeCount",value:function(){return this._badgeCount}},{key:"getData",value:function(){return this._data}},{key:"getThreadID",value:function(){return this._threadID}}],[{key:"presentLocalNotification",value:function(t){r(d[5])(n.default,'PushNotificationManager is not available.'),n.default.presentLocalNotification(t)}},{key:"scheduleLocalNotification",value:function(t){r(d[5])(n.default,'PushNotificationManager is not available.'),n.default.scheduleLocalNotification(t)}},{key:"cancelAllLocalNotifications",value:function(){r(d[5])(n.default,'PushNotificationManager is not available.'),n.default.cancelAllLocalNotifications()}},{key:"removeAllDeliveredNotifications",value:function(){r(d[5])(n.default,'PushNotificationManager is not available.'),n.default.removeAllDeliveredNotifications()}},{key:"getDeliveredNotifications",value:function(t){r(d[5])(n.default,'PushNotificationManager is not available.'),n.default.getDeliveredNotifications(t)}},{key:"removeDeliveredNotifications",value:function(t){r(d[5])(n.default,'PushNotificationManager is not available.'),n.default.removeDeliveredNotifications(t)}},{key:"setApplicationIconBadgeNumber",value:function(t){r(d[5])(n.default,'PushNotificationManager is not available.'),n.default.setApplicationIconBadgeNumber(t)}},{key:"getApplicationIconBadgeNumber",value:function(t){r(d[5])(n.default,'PushNotificationManager is not available.'),n.default.getApplicationIconBadgeNumber(t)}},{key:"cancelLocalNotifications",value:function(t){r(d[5])(n.default,'PushNotificationManager is not available.'),n.default.cancelLocalNotifications(t)}},{key:"getScheduledLocalNotifications",value:function(t){r(d[5])(n.default,'PushNotificationManager is not available.'),n.default.getScheduledLocalNotifications(t)}},{key:"addEventListener",value:function(t,o){var n;r(d[5])('notification'===t||'register'===t||'registrationError'===t||'localNotification'===t,'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events'),'notification'===t?n=l.addListener("remoteNotificationReceived",function(t){o(new u(t))}):'localNotification'===t?n=l.addListener("localNotificationReceived",function(t){o(new u(t))}):'register'===t?n=l.addListener("remoteNotificationsRegistered",function(t){o(t.deviceToken)}):'registrationError'===t&&(n=l.addListener("remoteNotificationRegistrationError",function(t){o(t)})),c.set(t,n)}},{key:"removeEventListener",value:function(t,o){r(d[5])('notification'===t||'register'===t||'registrationError'===t||'localNotification'===t,'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events');var n=c.get(t);n&&(n.remove(),c.delete(t))}},{key:"requestPermissions",value:function(t){var o={alert:!0,badge:!0,sound:!0};return t&&(o={alert:!!t.alert,badge:!!t.badge,sound:!!t.sound}),r(d[5])(n.default,'PushNotificationManager is not available.'),n.default.requestPermissions(o)}},{key:"abandonPermissions",value:function(){r(d[5])(n.default,'PushNotificationManager is not available.'),n.default.abandonPermissions()}},{key:"checkPermissions",value:function(t){r(d[5])('function'==typeof t,'Must provide a valid callback'),r(d[5])(n.default,'PushNotificationManager is not available.'),n.default.checkPermissions(t)}},{key:"getInitialNotification",value:function(){return r(d[5])(n.default,'PushNotificationManager is not available.'),n.default.getInitialNotification().then(function(t){return t&&new u(t)})}}]),u})();u.FetchResult={NewData:'UIBackgroundFetchResultNewData',NoData:'UIBackgroundFetchResultNoData',ResultFailed:'UIBackgroundFetchResultFailed'},m.exports=u},376,[3,17,18,377,116,6]); __d(function(g,r,i,a,m,e,d){function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).get('PushNotificationManager');e.default=n},377,[5]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),s=r(d[0])(r(d[2])),n=[],c={_settings:s.default&&s.default.getConstants().settings,get:function(t){return this._settings[t]},set:function(n){this._settings=(0,t.default)(this._settings,n),s.default.setValues(n)},watchKeys:function(t,s){'string'==typeof t&&(t=[t]),r(d[3])(Array.isArray(t),'keys should be a string or array of strings');var c=n.length;return n.push({keys:t,callback:s}),c},clearWatch:function(t){t1&&void 0!==arguments[1]?arguments[1]:{};return r(d[5])('object'==typeof t&&null!==t,'Content to share must be a valid object'),r(d[5])('string'==typeof t.url||'string'==typeof t.message,'At least one of URL and message is required'),r(d[5])('object'==typeof o&&null!==o,'Options must be a valid object'),new Promise(function(s,u){var c=r(d[6])(o.tintColor);r(d[5])(null==c||'number'==typeof c,'Unexpected color given for options.tintColor'),r(d[5])(n.default,'NativeActionSheetManager is not registered on iOS, but it should be.'),n.default.showShareActionSheetWithOptions({message:'string'==typeof t.message?t.message:void 0,url:'string'==typeof t.url?t.url:void 0,subject:o.subject,tintColor:'number'==typeof c?c:void 0,excludedActivityTypes:o.excludedActivityTypes},function(t){return u(t)},function(t,o){s(t?{action:'sharedAction',activityType:o}:{action:'dismissedAction'})})})}}]),s})());s.sharedAction='sharedAction',s.dismissedAction='dismissedAction',m.exports=s},380,[3,17,18,338,381,6,152]); __d(function(g,r,i,a,m,e,d){'use strict';function t(n){if("function"!=typeof WeakMap)return null;var u=new WeakMap,o=new WeakMap;return(t=function(t){return t?o:u})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,u){if(!u&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var o=t(u);if(o&&o.has(n))return o.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,o&&o.set(n,f);return f})(r(d[0])).get('ShareModule');e.default=n},381,[5]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),f=r(d[0])(r(d[4])),c=r(d[0])(r(d[5])),o=r(d[0])(r(d[6]));function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var s=(function(o){(0,u.default)(y,o);var s,p,h=(s=y,p=l(),function(){var t,n=(0,c.default)(s);if(p){var u=(0,c.default)(this).constructor;t=Reflect.construct(n,arguments,u)}else t=n.apply(this,arguments);return(0,f.default)(this,t)});function y(){return(0,n.default)(this,y),h.apply(this,arguments)}return(0,t.default)(y)})(r(d[7]));m.exports=new s(o.default)},382,[3,18,17,37,34,33,328,116]); __d(function(g,r,i,a,m,e,d){'use strict';var t={show:function(t,o){r(d[0])(!1,'ToastAndroid is not supported on this platform.')},showWithGravity:function(t,o,s){r(d[0])(!1,'ToastAndroid is not supported on this platform.')},showWithGravityAndOffset:function(t,o,s,n,p){r(d[0])(!1,'ToastAndroid is not supported on this platform.')}};m.exports=t},383,[99]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var u=(0,t.useMemo)(function(){return{getCurrentValue:function(){return n.default.getColorScheme()},subscribe:function(t){return n.default.addChangeListener(t),function(){return n.default.removeChangeListener(t)}}}},[]);return(0,r(d[3]).useSubscription)(u)};var t=r(d[0]),n=r(d[1])(r(d[2]))},384,[46,3,339,385]); __d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},385,[386]); __d(function(g,r,i,a,m,e,d){'use strict';var u=r(d[0]);e.useSubscription=function(t){var n=t.getCurrentValue,s=t.subscribe,c=u.useState(function(){return{getCurrentValue:n,subscribe:s,value:n()}});t=c[0];var b=c[1];return c=t.value,t.getCurrentValue===n&&t.subscribe===s||(c=n(),b({getCurrentValue:n,subscribe:s,value:c})),u.useDebugValue(c),u.useEffect(function(){function u(){if(!t){var u=n();b(function(t){return t.getCurrentValue!==n||t.subscribe!==s||t.value===u?t:r(d[1])({},t,{value:u})})}}var t=!1,c=s(u);return u(),function(){t=!0,c()}},[n,s]),c}},386,[46,48]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var f=(0,u.useState)(function(){return n.default.get('window')}),c=(0,t.default)(f,2),o=c[0],l=c[1];return(0,u.useEffect)(function(){function t(t){var n=t.window;o.width===n.width&&o.height===n.height&&o.scale===n.scale&&o.fontScale===n.fontScale||l(n)}return n.default.addEventListener('change',t),t({window:n.default.get('window')}),function(){n.default.removeEventListener('change',t)}},[o]),o};var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[3])},387,[3,8,187,46]); __d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),n=!1,o=0,u=400;function f(f){var v=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n||(n=!0,0===f[0]&&(t.default.vibrate(u),f=f.slice(1)),0!==f.length?setTimeout(function(){return l(++o,f,v,1)},f[0]):n=!1)}function l(f,v,c,s){if(n&&f===o){if(t.default.vibrate(u),s>=v.length){if(!c)return void(n=!1);s=0}setTimeout(function(){return l(f,v,c,s+1)},v[s])}}var v={vibrate:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!n)if('number'==typeof o)t.default.vibrate(o);else{if(!Array.isArray(o))throw new Error('Vibration pattern should be a number or array');f(o,l)}},cancel:function(){n=!1}};m.exports=v},388,[3,389]); __d(function(g,r,i,a,m,e,d){'use strict';function t(n){if("function"!=typeof WeakMap)return null;var o=new WeakMap,u=new WeakMap;return(t=function(t){return t?u:o})(n)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=(function(n,o){if(!o&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=t(o);if(u&&u.has(n))return u.get(n);var f={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in n)if("default"!==l&&Object.prototype.hasOwnProperty.call(n,l)){var p=c?Object.getOwnPropertyDescriptor(n,l):null;p&&(p.get||p.set)?Object.defineProperty(f,l,p):f[l]=n[l]}f.default=n,u&&u.set(n,f);return f})(r(d[0])).getEnforcing('Vibration');e.default=n},389,[5]); __d(function(g,r,i,a,m,e,d){'use strict';function t(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}var n;n=(function(n){r(d[3])(f,n);var u,c,o=(u=f,c=t(),function(){var t,n=r(d[0])(u);if(c){var o=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function f(){return r(d[4])(this,f),o.apply(this,arguments)}return r(d[5])(f,[{key:"render",value:function(){return null}}],[{key:"ignoreWarnings",value:function(t){}},{key:"install",value:function(){}},{key:"uninstall",value:function(){}}]),f})(r(d[2]).Component),m.exports=n},390,[33,34,46,37,17,18]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.DynamicColorIOS=void 0;e.DynamicColorIOS=function(o){return(0,r(d[0]).DynamicColorIOSPrivate)({light:o.light,dark:o.dark})}},391,[154]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.ColorAndroid=void 0;e.ColorAndroid=function(o){throw new Error('ColorAndroid is not available on this platform.')}},392,[]); __d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]).shape({x:r(d[0]).number,y:r(d[0]).number});m.exports=n},393,[172]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var o=(0,n.useRef)(null),E=(0,n.useState)(!1),S=(0,t.default)(E,2),C=S[0],P=S[1],_=(0,n.useState)(!1),O=(0,t.default)(_,2),b=O[0],h=O[1],D=(0,n.useState)(!1),M=(0,t.default)(D,2),N=M[0],j=M[1],R=(0,n.useState)(!1),B=(0,t.default)(R,2),V=B[0],k=B[1],A=(0,p.default)().permissionGranted,T=function(){k(!V)};return n.default.createElement(l.View,{style:c.default.container},A&&n.default.createElement(u.default,{ref:o,streamURL:v,streamName:w,style:c.default.publisher_camera,onDisconnect:function(){console.log('Disconnected'),P(!1)},onConnectionFailed:function(t){console.log('Connection Failed: '+t)},onConnectionStarted:function(t){console.log('Connection Started: '+t)},onConnectionSuccess:function(){console.log('Connected'),P(!0)},onNewBitrateReceived:function(t){console.log('New Bitrate Received: '+t)},onStreamStateChanged:function(t){console.log('Stream Status: '+t)},onBluetoothDeviceStatusChanged:function(t){switch(t){case u.BluetoothDeviceStatuses.CONNECTED:j(!0);break;case u.BluetoothDeviceStatuses.DISCONNECTED:j(!1)}}}),n.default.createElement(l.View,{style:c.default.footer_container},n.default.createElement(l.View,{style:c.default.mute_container},b?n.default.createElement(f.default,{type:"circle",title:"\ud83d\udd07",onPress:function(){o.current&&o.current.unmute(),h(!1)}}):n.default.createElement(f.default,{type:"circle",title:"\ud83d\udd08",onPress:function(){o.current&&o.current.mute(),h(!0)}})),n.default.createElement(l.View,{style:c.default.stream_container},C?n.default.createElement(f.default,{type:"circle",title:"\ud83d\udfe5",onPress:function(){o.current&&o.current.stopStream()}}):n.default.createElement(f.default,{type:"circle",title:"\ud83d\udd34",onPress:function(){o.current&&o.current.startStream()}})),n.default.createElement(l.View,{style:c.default.controller_container},n.default.createElement(f.default,{type:"circle",title:"\ud83d\udcf7",onPress:function(){o.current&&o.current.switchCamera()}}),('ios'===l.Platform.OS||N)&&n.default.createElement(f.default,{type:"circle",title:"\ud83c\udf99",onPress:T}))),C&&n.default.createElement(s.default,null),n.default.createElement(y.default,{onSelect:function(t){o.current&&o.current.setAudioInput(t)},visible:V,onClose:T}))};var t=r(d[0])(r(d[1])),n=S(r(d[2])),l=r(d[3]),u=S(r(d[4])),o=r(d[0])(r(d[5])),c=r(d[0])(r(d[6])),f=r(d[0])(r(d[7])),s=r(d[0])(r(d[8])),p=r(d[0])(r(d[9])),y=r(d[0])(r(d[10]));function E(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,l=new WeakMap;return(E=function(t){return t?l:n})(t)}function S(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var l=E(n);if(l&&l.has(t))return l.get(t);var u={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var f=o?Object.getOwnPropertyDescriptor(t,c):null;f&&(f.get||f.set)?Object.defineProperty(u,c,f):u[c]=t[c]}return u.default=t,l&&l.set(t,u),u}var v=o.default.STREAM_URL,w=o.default.STREAM_NAME},394,[3,8,46,1,395,405,406,407,410,413,414]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AudioInputType",{enumerable:!0,get:function(){return r(d[0]).AudioInputType}}),Object.defineProperty(e,"BluetoothDeviceStatuses",{enumerable:!0,get:function(){return r(d[0]).BluetoothDeviceStatuses}}),Object.defineProperty(e,"RTMPPublisherProps",{enumerable:!0,get:function(){return r(d[0]).RTMPPublisherProps}}),Object.defineProperty(e,"RTMPPublisherRefProps",{enumerable:!0,get:function(){return r(d[0]).RTMPPublisherRefProps}}),Object.defineProperty(e,"StreamState",{enumerable:!0,get:function(){return r(d[0]).StreamState}}),Object.defineProperty(e,"StreamStatus",{enumerable:!0,get:function(){return r(d[0]).StreamStatus}}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}});var t=r(d[1])(r(d[2]))},395,[396,397,398]); __d(function(g,r,i,a,m,e,d){var E,t,N;Object.defineProperty(e,"__esModule",{value:!0}),e.StreamState=e.BluetoothDeviceStatuses=e.AudioInputType=void 0,e.StreamState=E,(function(E){E.CONNECTING="CONNECTING",E.CONNECTED="CONNECTED",E.DISCONNECTED="DISCONNECTED",E.FAILED="FAILED"})(E||(e.StreamState=E={})),e.BluetoothDeviceStatuses=t,(function(E){E.CONNECTING="CONNECTING",E.CONNECTED="CONNECTED",E.DISCONNECTED="DISCONNECTED"})(t||(e.BluetoothDeviceStatuses=t={})),e.AudioInputType=N,(function(E){E[E.BLUETOOTH_HEADSET=0]="BLUETOOTH_HEADSET",E[E.SPEAKER=1]="SPEAKER",E[E.WIRED_HEADSET=2]="WIRED_HEADSET"})(N||(e.AudioInputType=N={}))},396,[]); __d(function(g,r,i,a,m,e,d){m.exports=function(t){return t&&t.__esModule?t:{default:t}},m.exports.__esModule=!0,m.exports.default=m.exports},397,[]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),o=(function(n,t){if(!t&&n&&n.__esModule)return n;if(null===n||"object"!=typeof n&&"function"!=typeof n)return{default:n};var u=f(t);if(u&&u.has(n))return u.get(n);var o={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in n)if("default"!==s&&Object.prototype.hasOwnProperty.call(n,s)){var l=c?Object.getOwnPropertyDescriptor(n,s):null;l&&(l.get||l.set)?Object.defineProperty(o,s,l):o[s]=n[s]}o.default=n,u&&u.set(n,o);return o})(r(d[4])),c=r(d[5]),s=r(d[0])(r(d[6])),l=["onConnectionFailed","onConnectionStarted","onConnectionSuccess","onDisconnect","onNewBitrateReceived","onStreamStateChanged","onBluetoothDeviceStatusChanged"];function f(n){if("function"!=typeof WeakMap)return null;var t=new WeakMap,u=new WeakMap;return(f=function(n){return n?u:t})(n)}var p=c.NativeModules.RTMPPublisher,v=(0,o.forwardRef)(function(c,f){var v=c.onConnectionFailed,h=c.onConnectionStarted,P=c.onConnectionSuccess,w=c.onDisconnect,C=c.onNewBitrateReceived,S=c.onStreamStateChanged,b=c.onBluetoothDeviceStatusChanged,y=(0,u.default)(c,l),x=function(){return n.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.default.awrap(p.startStream());case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},null,null,null,Promise)},O=function(){return n.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.default.awrap(p.stopStream());case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}},null,null,null,Promise)},M=function(){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",p.isStreaming());case 1:case"end":return n.stop()}},null,null,null,Promise)},D=function(){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",p.isCameraOnPreview());case 1:case"end":return n.stop()}},null,null,null,Promise)},E=function(){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",p.getPublishURL());case 1:case"end":return n.stop()}},null,null,null,Promise)},j=function(){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",p.hasCongestion());case 1:case"end":return n.stop()}},null,null,null,Promise)},R=function(){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",p.isAudioPrepared());case 1:case"end":return n.stop()}},null,null,null,Promise)},B=function(){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",p.isVideoPrepared());case 1:case"end":return n.stop()}},null,null,null,Promise)},_=function(){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",p.isMuted());case 1:case"end":return n.stop()}},null,null,null,Promise)},F=function(){return p.mute()},A=function(){return p.unmute()},N=function(){return p.switchCamera()},k=function(){return p.toggleFlash()},I=function(n){return p.setAudioInput(n)};return(0,o.useImperativeHandle)(f,function(){return{startStream:x,stopStream:O,isStreaming:M,isCameraOnPreview:D,getPublishURL:E,hasCongestion:j,isAudioPrepared:R,isVideoPrepared:B,isMuted:_,mute:F,unmute:A,switchCamera:N,toggleFlash:k,setAudioInput:I}}),o.default.createElement(s.default,(0,t.default)({},y,{onDisconnect:function(n){w&&w(n.nativeEvent.data)},onConnectionFailed:function(n){v&&v(n.nativeEvent.data)},onConnectionStarted:function(n){h&&h(n.nativeEvent.data)},onConnectionSuccess:function(n){P&&P(n.nativeEvent.data)},onNewBitrateReceived:function(n){C&&C(n.nativeEvent.data)},onStreamStateChanged:function(n){S&&S(n.nativeEvent.data)},onBluetoothDeviceStatusChanged:function(n){b&&b(n.nativeEvent.data)}}))});e.default=v},398,[397,399,401,402,46,1,404]); __d(function(g,r,i,a,m,e,d){m.exports=r(d[0])},399,[400]); __d(function(g,r,i,a,m,e,d){var t=(function(t){"use strict";var n,o=Object.prototype,c=o.hasOwnProperty,u="function"==typeof Symbol?Symbol:{},h=u.iterator||"@@iterator",f=u.asyncIterator||"@@asyncIterator",l=u.toStringTag||"@@toStringTag";function s(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{s({},"")}catch(t){s=function(t,n,o){return t[n]=o}}function p(t,n,o,c){var u=n&&n.prototype instanceof E?n:E,h=Object.create(u.prototype),f=new A(c||[]);return h._invoke=P(t,o,f),h}function y(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var v="suspendedStart",w="suspendedYield",L="executing",x="completed",b={};function E(){}function _(){}function j(){}var O={};s(O,h,function(){return this});var k=Object.getPrototypeOf,G=k&&k(k(Y([])));G&&G!==o&&c.call(G,h)&&(O=G);var N=j.prototype=E.prototype=Object.create(O);function T(t){["next","throw","return"].forEach(function(n){s(t,n,function(t){return this._invoke(n,t)})})}function F(t,n){function o(u,h,f,l){var s=y(t[u],t,h);if("throw"!==s.type){var p=s.arg,v=p.value;return v&&"object"==typeof v&&c.call(v,"__await")?n.resolve(v.__await).then(function(t){o("next",t,f,l)},function(t){o("throw",t,f,l)}):n.resolve(v).then(function(t){p.value=t,f(p)},function(t){return o("throw",t,f,l)})}l(s.arg)}var u;this._invoke=function(t,c){function h(){return new n(function(n,u){o(t,c,n,u)})}return u=u?u.then(h,h):h()}}function P(t,n,o){var c=v;return function(u,h){if(c===L)throw new Error("Generator is already running");if(c===x){if("throw"===u)throw h;return q()}for(o.method=u,o.arg=h;;){var f=o.delegate;if(f){var l=S(f,o);if(l){if(l===b)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(c===v)throw c=x,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);c=L;var s=y(t,n,o);if("normal"===s.type){if(c=o.done?x:w,s.arg===b)continue;return{value:s.arg,done:o.done}}"throw"===s.type&&(c=x,o.method="throw",o.arg=s.arg)}}}function S(t,o){var c=t.iterator[o.method];if(c===n){if(o.delegate=null,"throw"===o.method){if(t.iterator.return&&(o.method="return",o.arg=n,S(t,o),"throw"===o.method))return b;o.method="throw",o.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var u=y(c,t.iterator,o.arg);if("throw"===u.type)return o.method="throw",o.arg=u.arg,o.delegate=null,b;var h=u.arg;return h?h.done?(o[t.resultName]=h.value,o.next=t.nextLoc,"return"!==o.method&&(o.method="next",o.arg=n),o.delegate=null,b):h:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,b)}function I(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function R(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function Y(t){if(t){var o=t[h];if(o)return o.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var u=-1,f=function o(){for(;++u=0;--h){var f=this.tryEntries[h],l=f.completion;if("root"===f.tryLoc)return u("end");if(f.tryLoc<=this.prev){var s=c.call(f,"catchLoc"),p=c.call(f,"finallyLoc");if(s&&p){if(this.prev=0;--o){var u=this.tryEntries[o];if(u.tryLoc<=this.prev&&c.call(u,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),R(o),b}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var c=o.completion;if("throw"===c.type){var u=c.arg;R(o)}return u}}throw new Error("illegal catch attempt")},delegateYield:function(t,o,c){return this.delegate={iterator:Y(t),resultName:o,nextLoc:c},"next"===this.method&&(this.arg=n),b}},t})("object"==typeof m?m.exports:{});try{regeneratorRuntime=t}catch(n){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},400,[]); __d(function(g,r,i,a,m,e,d){function t(){return m.exports=t=Object.assign||function(t){for(var o=1;o=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(p[n]=t[n])}return p},m.exports.__esModule=!0,m.exports.default=m.exports},402,[403]); __d(function(g,r,i,a,m,e,d){m.exports=function(t,n){if(null==t)return{};var o,u,f={},s=Object.keys(t);for(u=0;u=0||(f[o]=t[o]);return f},m.exports.__esModule=!0,m.exports.default=m.exports},403,[]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=(0,r(d[0]).requireNativeComponent)('RTMPPublisher');e.default=t},404,[1]); __d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Config=void 0;var t=r(d[0]).NativeModules.ReactNativeConfigModule||{};e.Config=t;var o=t;e.default=o},405,[1]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0]).StyleSheet.create({container:{flex:1},publisher_camera:{flex:1,width:'100%',height:'100%'},footer_container:{position:'absolute',bottom:10,left:0,right:0,justifyContent:'space-between',padding:10,flexDirection:'row'},mute_container:{flex:1,alignItems:'flex-start'},stream_container:{flex:1,alignItems:'center'},controller_container:{flex:1,flexDirection:'row',justifyContent:'flex-end'}});e.default=t},406,[1]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}});var t=r(d[0])(r(d[1]))},407,[3,408]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),l=r(d[2]),u=r(d[0])(r(d[3])),n=function(n){var f=n.title,o=n.type,c=void 0===o?'default':o,s=n.onPress;return t.default.createElement(l.TouchableOpacity,{style:u.default[c].container,onPress:s},t.default.createElement(l.Text,{style:u.default[c].title},f))};e.default=n},408,[3,46,1,409]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0]),n={default:t.StyleSheet.create({container:{backgroundColor:'#039be5',alignItems:'center',justifyContent:'center',padding:5,borderRadius:5},title:{color:'#FFFFFF'}}),circle:t.StyleSheet.create({container:{backgroundColor:'#039be5',alignItems:'center',justifyContent:'center',padding:8,borderRadius:50,margin:5},title:{color:'#FFFFFF',fontSize:20}})};e.default=n},409,[1]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}});var t=r(d[0])(r(d[1]))},410,[3,411]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),l=r(d[2]),u=r(d[0])(r(d[3])),f=function(){return t.default.createElement(l.View,{style:u.default.container},t.default.createElement(l.View,{style:u.default.dot}),t.default.createElement(l.Text,{style:u.default.title},"LIVE"))};e.default=f},411,[3,46,1,412]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(d[0]).StyleSheet.create({container:{backgroundColor:'#eceff1',alignItems:'center',justifyContent:'center',flexDirection:'row',padding:5,borderRadius:10,position:'absolute',margin:10,borderColor:'#bdbdbd',borderWidth:1},title:{color:'#000',fontWeight:'bold'},dot:{backgroundColor:'red',padding:6,borderRadius:20,marginRight:5}});e.default=o},412,[1]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),s=r(d[3]),u=r(d[4]),o=u.PermissionsAndroid.PERMISSIONS.CAMERA,c=u.PermissionsAndroid.PERMISSIONS.CAMERA;var f=function(){var f=(0,s.useState)(!1),l=(0,t.default)(f,2),p=l[0],P=l[1];return(0,s.useEffect)(function(){var t,s;n.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:if('android'===u.Platform.OS){f.next=3;break}return P(!0),f.abrupt("return");case 3:return f.next=5,n.default.awrap(u.PermissionsAndroid.check(o));case 5:return t=f.sent,f.next=8,n.default.awrap(u.PermissionsAndroid.check(c));case 8:if(s=f.sent,!t||!s){f.next=11;break}return f.abrupt("return",P(!0));case 11:return f.next=13,n.default.awrap(u.PermissionsAndroid.requestMultiple([o,c]));case 13:if(!f.sent){f.next=16;break}return f.abrupt("return",P(!0));case 16:case"end":return f.stop()}},null,null,null,Promise)},[]),{permissionGranted:p}};e.default=f},413,[3,63,8,46,1]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.default}});var t=r(d[0])(r(d[1]))},414,[3,415]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=c(r(d[2])),l=r(d[3]),u=r(d[0])(r(d[4])),o=c(r(d[5]));function f(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,l=new WeakMap;return(f=function(t){return t?l:n})(t)}function c(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var l=f(n);if(l&&l.has(t))return l.get(t);var u={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in t)if("default"!==c&&Object.prototype.hasOwnProperty.call(t,c)){var s=o?Object.getOwnPropertyDescriptor(t,c):null;s&&(s.get||s.set)?Object.defineProperty(u,c,s):u[c]=t[c]}return u.default=t,l&&l.set(t,u),u}var s=[{key:r(d[6]).AudioInputType.SPEAKER,title:'Speaker'},{key:r(d[6]).AudioInputType.BLUETOOTH_HEADSET,title:'Bluetooth Headset'},{key:r(d[6]).AudioInputType.WIRED_HEADSET,title:'Wired Headset'}],y=function(f){var c=f.visible,y=f.onSelect,p=f.onClose,E=(0,n.useState)(),_=(0,t.default)(E,2),v=_[0],O=_[1],k=function(t){y(t),O(t)};return n.default.createElement(l.Modal,{visible:c,transparent:!0,animationType:"slide",onRequestClose:p},n.default.createElement(l.View,{style:o.default.container},n.default.createElement(l.View,{style:o.default.inner_container},s.map(function(t){if('android'!==l.Platform.OS||t.key!==r(d[6]).AudioInputType.WIRED_HEADSET){var u=v===t.key?'selected':'not_selected';return n.default.createElement(l.TouchableOpacity,{key:t.key,style:o.itemStyles[u].item_container,onPress:function(){return k(t.key)}},n.default.createElement(l.Text,{style:o.itemStyles[u].item_title},t.title))}}),n.default.createElement(l.View,{style:o.default.footer_container},n.default.createElement(u.default,{title:"Close",onPress:p})))))};e.default=y},415,[3,8,46,1,407,416,395]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.itemStyles=e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[2]),o=n.StyleSheet.create({container:{flex:1,justifyContent:'flex-end'},inner_container:{backgroundColor:'white',padding:10},footer_container:{margin:10}}),l={not_selected:n.StyleSheet.create((0,t.default)({item_container:{padding:5},item_title:{}},o)),selected:n.StyleSheet.create((0,t.default)({item_container:{padding:5,backgroundColor:'#eceff1'},item_title:{fontWeight:'bold'}},o))};e.itemStyles=l;var c=o;e.default=c},416,[3,14,1]); __d(function(m,p,a,e,t,l,n){t.exports={name:"RtmpExample",displayName:"Rtmp Example"}},417,[]); __r(85); __r(0); ================================================ FILE: example/metro.config.js ================================================ const path = require('path'); const blacklist = require('metro-config/src/defaults/blacklist'); const escape = require('escape-string-regexp'); const pak = require('../package.json'); const root = path.resolve(__dirname, '..'); const modules = Object.keys({ ...pak.peerDependencies, }); module.exports = { projectRoot: __dirname, watchFolders: [root], // We need to make sure that only one version is loaded for peerDependencies // So we blacklist them at the root, and alias them to the versions in example's node_modules resolver: { blacklistRE: blacklist( modules.map( (m) => new RegExp(`^${escape(path.join(root, 'node_modules', m))}\\/.*$`) ) ), extraNodeModules: modules.reduce((acc, name) => { acc[name] = path.join(__dirname, 'node_modules', name); return acc; }, {}), }, transformer: { getTransformOptions: async () => ({ transform: { experimentalImportSupport: false, inlineRequires: true, }, }), }, }; ================================================ FILE: example/package.json ================================================ { "name": "react-native-rtmp-publisher-example", "description": "Example app for react-native-rtmp-publisher", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "start": "react-native start" }, "dependencies": { "react": "18.1.0", "react-native": "0.70.6" }, "devDependencies": { "@babel/core": "^7.12.9", "@babel/runtime": "^7.12.5", "@react-native-community/eslint-config": "^2.0.0", "babel-jest": "^26.6.3", "babel-plugin-module-resolver": "^4.1.0", "eslint": "^7.32.0", "jest": "^26.6.3", "metro-react-native-babel-preset": "0.72.3", "react-test-renderer": "18.1.0" } } ================================================ FILE: example/src/App.styles.tsx ================================================ import { StyleSheet } from 'react-native'; export default StyleSheet.create({ container: { flex: 1, }, publisher_camera: { flex: 1, width: '100%', height: '100%', }, footer_container: { position: 'absolute', bottom: 10, left: 0, right: 0, justifyContent: 'space-between', padding: 10, flexDirection: 'row', }, mute_container: { flex: 1, alignItems: 'flex-start', }, stream_container: { flex: 1, alignItems: 'center', }, controller_container: { flex: 1, flexDirection: 'row', justifyContent: 'flex-end', }, }); ================================================ FILE: example/src/App.tsx ================================================ import React, { useRef, useState } from 'react'; import { View, Platform } from 'react-native'; import RTMPPublisher, { RTMPPublisherRefProps, StreamState, AudioInputType, BluetoothDeviceStatuses, } from 'react-native-rtmp-publisher'; import styles from './App.styles'; import Button from './components/Button'; import LiveBadge from './components/LiveBadge'; import usePermissions from './hooks/usePermissions'; import MicrophoneSelectModal from './components/MicrophoneSelectModal'; const STREAM_URL = 'YOUR_STREAM_URL'; // ex: rtmp://a.rtmp.youtube.com/live2 const STREAM_NAME = 'YOUR_STREAM_NAME'; // ex: abcd-1234-abcd-1234-abcd export default function App() { const publisherRef = useRef(null); const [isStreaming, setIsStreaming] = useState(false); const [isMuted, setIsMuted] = useState(false); const [hasBluetoothDevice, setHasBluetoothDevice] = useState(false); const [microphoneModalVisibility, setMicrophoneModalVisibility] = useState(false); const { permissionGranted } = usePermissions(); const handleOnConnectionFailed = (data: String) => { console.log('Connection Failed: ' + data); }; const handleOnConnectionStarted = (data: String) => { console.log('Connection Started: ' + data); }; const handleOnConnectionSuccess = () => { console.log('Connected'); setIsStreaming(true); }; const handleOnDisconnect = () => { console.log('Disconnected'); setIsStreaming(false); }; const handleOnNewBitrateReceived = (data: number) => { console.log('New Bitrate Received: ' + data); }; const handleOnStreamStateChanged = (data: StreamState) => { console.log('Stream Status: ' + data); }; const handleUnmute = () => { publisherRef.current && publisherRef.current.unmute(); setIsMuted(false); }; const handleMute = () => { publisherRef.current && publisherRef.current.mute(); setIsMuted(true); }; const handleStartStream = () => { publisherRef.current && publisherRef.current.startStream(); }; const handleStopStream = () => { publisherRef.current && publisherRef.current.stopStream(); }; const handleSwitchCamera = () => { publisherRef.current && publisherRef.current.switchCamera(); }; const handleToggleMicrophoneModal = () => { setMicrophoneModalVisibility(!microphoneModalVisibility); }; const handleMicrophoneSelect = (selectedMicrophone: AudioInputType) => { publisherRef.current && publisherRef.current.setAudioInput(selectedMicrophone); }; const handleBluetoothDeviceStatusChange = ( status: BluetoothDeviceStatuses ) => { switch (status) { case BluetoothDeviceStatuses.CONNECTED: { setHasBluetoothDevice(true); break; } case BluetoothDeviceStatuses.DISCONNECTED: { setHasBluetoothDevice(false); break; } default: break; } }; return ( {permissionGranted && ( )} {isMuted ? (