mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-30 03:00:41 -04:00
chore: cleanup
This commit is contained in:
@@ -56,7 +56,7 @@ const meta: Meta<typeof Button> = {
|
||||
};
|
||||
|
||||
export default meta;
|
||||
type Story = StoryObj<typeof meta>;
|
||||
type Story = StoryObj<typeof Button>;
|
||||
|
||||
// Basic variants
|
||||
export const Primary: Story = {
|
||||
|
||||
26
autogpt_platform/node_modules/.modules.yaml
generated
vendored
26
autogpt_platform/node_modules/.modules.yaml
generated
vendored
@@ -1,26 +0,0 @@
|
||||
hoistPattern:
|
||||
- '*'
|
||||
hoistedDependencies:
|
||||
mitt@3.0.1:
|
||||
mitt: private
|
||||
react@19.1.0:
|
||||
react: private
|
||||
included:
|
||||
dependencies: true
|
||||
devDependencies: true
|
||||
optionalDependencies: true
|
||||
injectedDeps: {}
|
||||
layoutVersion: 5
|
||||
nodeLinker: isolated
|
||||
packageManager: pnpm@10.11.1
|
||||
pendingBuilds: []
|
||||
prunedAt: Fri, 04 Jul 2025 14:59:14 GMT
|
||||
publicHoistPattern: []
|
||||
registries:
|
||||
'@ferry-industrial': https://registry.npmjs.org/
|
||||
'@jsr': https://npm.jsr.io/
|
||||
default: https://registry.npmjs.org/
|
||||
skipped: []
|
||||
storeDir: /Users/lluis/Library/pnpm/store/v10
|
||||
virtualStoreDir: .pnpm
|
||||
virtualStoreDirMaxLength: 120
|
||||
25
autogpt_platform/node_modules/.pnpm-workspace-state.json
generated
vendored
25
autogpt_platform/node_modules/.pnpm-workspace-state.json
generated
vendored
@@ -1,25 +0,0 @@
|
||||
{
|
||||
"lastValidatedTimestamp": 1751641154596,
|
||||
"projects": {},
|
||||
"pnpmfileExists": false,
|
||||
"settings": {
|
||||
"autoInstallPeers": true,
|
||||
"dedupeDirectDeps": false,
|
||||
"dedupeInjectedDeps": true,
|
||||
"dedupePeerDependents": true,
|
||||
"dev": true,
|
||||
"excludeLinksFromLockfile": false,
|
||||
"hoistPattern": [
|
||||
"*"
|
||||
],
|
||||
"hoistWorkspacePackages": true,
|
||||
"injectWorkspacePackages": false,
|
||||
"linkWorkspacePackages": false,
|
||||
"nodeLinker": "isolated",
|
||||
"optional": true,
|
||||
"preferWorkspacePackages": false,
|
||||
"production": true,
|
||||
"publicHoistPattern": []
|
||||
},
|
||||
"filteredInstall": false
|
||||
}
|
||||
51
autogpt_platform/node_modules/.pnpm/lock.yaml
generated
vendored
51
autogpt_platform/node_modules/.pnpm/lock.yaml
generated
vendored
@@ -1,51 +0,0 @@
|
||||
lockfileVersion: '9.0'
|
||||
|
||||
settings:
|
||||
autoInstallPeers: true
|
||||
excludeLinksFromLockfile: false
|
||||
|
||||
importers:
|
||||
|
||||
.:
|
||||
dependencies:
|
||||
nuqs:
|
||||
specifier: ^2.4.3
|
||||
version: 2.4.3(react@19.1.0)
|
||||
|
||||
packages:
|
||||
|
||||
mitt@3.0.1:
|
||||
resolution: {integrity: sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==}
|
||||
|
||||
nuqs@2.4.3:
|
||||
resolution: {integrity: sha512-BgtlYpvRwLYiJuWzxt34q2bXu/AIS66sLU1QePIMr2LWkb+XH0vKXdbLSgn9t6p7QKzwI7f38rX3Wl9llTXQ8Q==}
|
||||
peerDependencies:
|
||||
'@remix-run/react': '>=2'
|
||||
next: '>=14.2.0'
|
||||
react: '>=18.2.0 || ^19.0.0-0'
|
||||
react-router: ^6 || ^7
|
||||
react-router-dom: ^6 || ^7
|
||||
peerDependenciesMeta:
|
||||
'@remix-run/react':
|
||||
optional: true
|
||||
next:
|
||||
optional: true
|
||||
react-router:
|
||||
optional: true
|
||||
react-router-dom:
|
||||
optional: true
|
||||
|
||||
react@19.1.0:
|
||||
resolution: {integrity: sha512-FS+XFBNvn3GTAWq26joslQgWNoFu08F4kl0J4CgdNKADkdSGXQyTCnKteIAJy96Br6YbpEU1LSzV5dYtjMkMDg==}
|
||||
engines: {node: '>=0.10.0'}
|
||||
|
||||
snapshots:
|
||||
|
||||
mitt@3.0.1: {}
|
||||
|
||||
nuqs@2.4.3(react@19.1.0):
|
||||
dependencies:
|
||||
mitt: 3.0.1
|
||||
react: 19.1.0
|
||||
|
||||
react@19.1.0: {}
|
||||
21
autogpt_platform/node_modules/.pnpm/mitt@3.0.1/node_modules/mitt/LICENSE
generated
vendored
21
autogpt_platform/node_modules/.pnpm/mitt@3.0.1/node_modules/mitt/LICENSE
generated
vendored
@@ -1,21 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2021 Jason Miller
|
||||
|
||||
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.
|
||||
205
autogpt_platform/node_modules/.pnpm/mitt@3.0.1/node_modules/mitt/README.md
generated
vendored
205
autogpt_platform/node_modules/.pnpm/mitt@3.0.1/node_modules/mitt/README.md
generated
vendored
@@ -1,205 +0,0 @@
|
||||
<p align="center">
|
||||
<img src="https://i.imgur.com/BqsX9NT.png" width="300" height="300" alt="mitt">
|
||||
<br>
|
||||
<a href="https://www.npmjs.org/package/mitt"><img src="https://img.shields.io/npm/v/mitt.svg" alt="npm"></a>
|
||||
<img src="https://github.com/developit/mitt/workflows/CI/badge.svg" alt="build status">
|
||||
<a href="https://unpkg.com/mitt/dist/mitt.js"><img src="https://img.badgesize.io/https://unpkg.com/mitt/dist/mitt.js?compression=gzip" alt="gzip size"></a>
|
||||
</p>
|
||||
|
||||
# Mitt
|
||||
|
||||
> Tiny 200b functional event emitter / pubsub.
|
||||
|
||||
- **Microscopic:** weighs less than 200 bytes gzipped
|
||||
- **Useful:** a wildcard `"*"` event type listens to all events
|
||||
- **Familiar:** same names & ideas as [Node's EventEmitter](https://nodejs.org/api/events.html#events_class_eventemitter)
|
||||
- **Functional:** methods don't rely on `this`
|
||||
- **Great Name:** somehow [mitt](https://npm.im/mitt) wasn't taken
|
||||
|
||||
Mitt was made for the browser, but works in any JavaScript runtime. It has no dependencies and supports IE9+.
|
||||
|
||||
## Table of Contents
|
||||
|
||||
- [Install](#install)
|
||||
- [Usage](#usage)
|
||||
- [Examples & Demos](#examples--demos)
|
||||
- [API](#api)
|
||||
- [Contribute](#contribute)
|
||||
- [License](#license)
|
||||
|
||||
## Install
|
||||
|
||||
This project uses [node](http://nodejs.org) and [npm](https://npmjs.com). Go check them out if you don't have them locally installed.
|
||||
|
||||
```sh
|
||||
$ npm install --save mitt
|
||||
```
|
||||
|
||||
Then with a module bundler like [rollup](http://rollupjs.org/) or [webpack](https://webpack.js.org/), use as you would anything else:
|
||||
|
||||
```javascript
|
||||
// using ES6 modules
|
||||
import mitt from 'mitt'
|
||||
|
||||
// using CommonJS modules
|
||||
var mitt = require('mitt')
|
||||
```
|
||||
|
||||
The [UMD](https://github.com/umdjs/umd) build is also available on [unpkg](https://unpkg.com):
|
||||
|
||||
```html
|
||||
<script src="https://unpkg.com/mitt/dist/mitt.umd.js"></script>
|
||||
```
|
||||
|
||||
You can find the library on `window.mitt`.
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import mitt from 'mitt'
|
||||
|
||||
const emitter = mitt()
|
||||
|
||||
// listen to an event
|
||||
emitter.on('foo', e => console.log('foo', e) )
|
||||
|
||||
// listen to all events
|
||||
emitter.on('*', (type, e) => console.log(type, e) )
|
||||
|
||||
// fire an event
|
||||
emitter.emit('foo', { a: 'b' })
|
||||
|
||||
// clearing all events
|
||||
emitter.all.clear()
|
||||
|
||||
// working with handler references:
|
||||
function onFoo() {}
|
||||
emitter.on('foo', onFoo) // listen
|
||||
emitter.off('foo', onFoo) // unlisten
|
||||
```
|
||||
|
||||
### Typescript
|
||||
|
||||
Set `"strict": true` in your tsconfig.json to get improved type inference for `mitt` instance methods.
|
||||
|
||||
```ts
|
||||
import mitt from 'mitt';
|
||||
|
||||
type Events = {
|
||||
foo: string;
|
||||
bar?: number;
|
||||
};
|
||||
|
||||
const emitter = mitt<Events>(); // inferred as Emitter<Events>
|
||||
|
||||
emitter.on('foo', (e) => {}); // 'e' has inferred type 'string'
|
||||
|
||||
emitter.emit('foo', 42); // Error: Argument of type 'number' is not assignable to parameter of type 'string'. (2345)
|
||||
```
|
||||
|
||||
Alternatively, you can use the provided `Emitter` type:
|
||||
|
||||
```ts
|
||||
import mitt, { Emitter } from 'mitt';
|
||||
|
||||
type Events = {
|
||||
foo: string;
|
||||
bar?: number;
|
||||
};
|
||||
|
||||
const emitter: Emitter<Events> = mitt<Events>();
|
||||
```
|
||||
|
||||
## Examples & Demos
|
||||
|
||||
<a href="http://codepen.io/developit/pen/rjMEwW?editors=0110">
|
||||
<b>Preact + Mitt Codepen Demo</b>
|
||||
<br>
|
||||
<img src="https://i.imgur.com/CjBgOfJ.png" width="278" alt="preact + mitt preview">
|
||||
</a>
|
||||
|
||||
* * *
|
||||
|
||||
## API
|
||||
|
||||
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
|
||||
|
||||
#### Table of Contents
|
||||
|
||||
- [mitt](#mitt)
|
||||
- [all](#all)
|
||||
- [on](#on)
|
||||
- [Parameters](#parameters)
|
||||
- [off](#off)
|
||||
- [Parameters](#parameters-1)
|
||||
- [emit](#emit)
|
||||
- [Parameters](#parameters-2)
|
||||
|
||||
### mitt
|
||||
|
||||
Mitt: Tiny (~200b) functional event emitter / pubsub.
|
||||
|
||||
Returns **Mitt**
|
||||
|
||||
### all
|
||||
|
||||
A Map of event names to registered handler functions.
|
||||
|
||||
### on
|
||||
|
||||
Register an event handler for the given type.
|
||||
|
||||
#### Parameters
|
||||
|
||||
- `type` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \| [symbol](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol))** Type of event to listen for, or `'*'` for all events
|
||||
- `handler` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** Function to call in response to given event
|
||||
|
||||
### off
|
||||
|
||||
Remove an event handler for the given type.
|
||||
If `handler` is omitted, all handlers of the given type are removed.
|
||||
|
||||
#### Parameters
|
||||
|
||||
- `type` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \| [symbol](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol))** Type of event to unregister `handler` from, or `'*'`
|
||||
- `handler` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)?** Handler function to remove
|
||||
|
||||
### emit
|
||||
|
||||
Invoke all handlers for the given type.
|
||||
If present, `'*'` handlers are invoked after type-matched handlers.
|
||||
|
||||
Note: Manually firing '\*' handlers is not supported.
|
||||
|
||||
#### Parameters
|
||||
|
||||
- `type` **([string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String) \| [symbol](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Symbol))** The event type to invoke
|
||||
- `evt` **Any?** Any value (object is recommended and powerful), passed to each handler
|
||||
|
||||
## Contribute
|
||||
|
||||
First off, thanks for taking the time to contribute!
|
||||
Now, take a moment to be sure your contributions make sense to everyone else.
|
||||
|
||||
### Reporting Issues
|
||||
|
||||
Found a problem? Want a new feature? First of all see if your issue or idea has [already been reported](../../issues).
|
||||
If don't, just open a [new clear and descriptive issue](../../issues/new).
|
||||
|
||||
### Submitting pull requests
|
||||
|
||||
Pull requests are the greatest contributions, so be sure they are focused in scope, and do avoid unrelated commits.
|
||||
|
||||
- Fork it!
|
||||
- Clone your fork: `git clone https://github.com/<your-username>/mitt`
|
||||
- Navigate to the newly cloned directory: `cd mitt`
|
||||
- Create a new branch for the new feature: `git checkout -b my-new-feature`
|
||||
- Install the tools necessary for development: `npm install`
|
||||
- Make your changes.
|
||||
- Commit your changes: `git commit -am 'Add some feature'`
|
||||
- Push to the branch: `git push origin my-new-feature`
|
||||
- Submit a pull request with full remarks documenting your changes.
|
||||
|
||||
## License
|
||||
|
||||
[MIT License](https://opensource.org/licenses/MIT) © [Jason Miller](https://jasonformat.com/)
|
||||
21
autogpt_platform/node_modules/.pnpm/mitt@3.0.1/node_modules/mitt/index.d.ts
generated
vendored
21
autogpt_platform/node_modules/.pnpm/mitt@3.0.1/node_modules/mitt/index.d.ts
generated
vendored
@@ -1,21 +0,0 @@
|
||||
export declare type EventType = string | symbol;
|
||||
export declare type Handler<T = unknown> = (event: T) => void;
|
||||
export declare type WildcardHandler<T = Record<string, unknown>> = (type: keyof T, event: T[keyof T]) => void;
|
||||
export declare type EventHandlerList<T = unknown> = Array<Handler<T>>;
|
||||
export declare type WildCardEventHandlerList<T = Record<string, unknown>> = Array<WildcardHandler<T>>;
|
||||
export declare type EventHandlerMap<Events extends Record<EventType, unknown>> = Map<keyof Events | '*', EventHandlerList<Events[keyof Events]> | WildCardEventHandlerList<Events>>;
|
||||
export interface Emitter<Events extends Record<EventType, unknown>> {
|
||||
all: EventHandlerMap<Events>;
|
||||
on<Key extends keyof Events>(type: Key, handler: Handler<Events[Key]>): void;
|
||||
on(type: '*', handler: WildcardHandler<Events>): void;
|
||||
off<Key extends keyof Events>(type: Key, handler?: Handler<Events[Key]>): void;
|
||||
off(type: '*', handler: WildcardHandler<Events>): void;
|
||||
emit<Key extends keyof Events>(type: Key, event: Events[Key]): void;
|
||||
emit<Key extends keyof Events>(type: undefined extends Events[Key] ? Key : never): void;
|
||||
}
|
||||
/**
|
||||
* Mitt: Tiny (~200b) functional event emitter / pubsub.
|
||||
* @name mitt
|
||||
* @returns {Mitt}
|
||||
*/
|
||||
export default function mitt<Events extends Record<EventType, unknown>>(all?: EventHandlerMap<Events>): Emitter<Events>;
|
||||
85
autogpt_platform/node_modules/.pnpm/mitt@3.0.1/node_modules/mitt/package.json
generated
vendored
85
autogpt_platform/node_modules/.pnpm/mitt@3.0.1/node_modules/mitt/package.json
generated
vendored
@@ -1,85 +0,0 @@
|
||||
{
|
||||
"name": "mitt",
|
||||
"version": "3.0.1",
|
||||
"description": "Tiny 200b functional Event Emitter / pubsub.",
|
||||
"module": "dist/mitt.mjs",
|
||||
"main": "dist/mitt.js",
|
||||
"jsnext:main": "dist/mitt.mjs",
|
||||
"umd:main": "dist/mitt.umd.js",
|
||||
"source": "src/index.ts",
|
||||
"typings": "index.d.ts",
|
||||
"exports": {
|
||||
"types": "./index.d.ts",
|
||||
"module": "./dist/mitt.mjs",
|
||||
"import": "./dist/mitt.mjs",
|
||||
"require": "./dist/mitt.js",
|
||||
"default": "./dist/mitt.mjs"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "npm-run-all --silent typecheck lint mocha test-types",
|
||||
"mocha": "mocha test",
|
||||
"test-types": "tsc test/test-types-compilation.ts --noEmit --strict",
|
||||
"lint": "eslint src test --ext ts --ext js",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"bundle": "microbundle -f es,cjs,umd",
|
||||
"build": "npm-run-all --silent clean -p bundle -s docs",
|
||||
"clean": "rimraf dist",
|
||||
"docs": "documentation readme src/index.ts --section API -q --parse-extension ts",
|
||||
"release": "npm run -s build -s && npm t && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
|
||||
},
|
||||
"repository": "developit/mitt",
|
||||
"keywords": [
|
||||
"events",
|
||||
"eventemitter",
|
||||
"emitter",
|
||||
"pubsub"
|
||||
],
|
||||
"homepage": "https://github.com/developit/mitt",
|
||||
"authors": [
|
||||
"Jason Miller <jason@developit.ca>"
|
||||
],
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
"dist",
|
||||
"index.d.ts"
|
||||
],
|
||||
"mocha": {
|
||||
"extension": [
|
||||
"ts"
|
||||
],
|
||||
"require": [
|
||||
"ts-node/register",
|
||||
"esm"
|
||||
],
|
||||
"spec": [
|
||||
"test/*_test.ts"
|
||||
]
|
||||
},
|
||||
"prettier": {
|
||||
"singleQuote": true,
|
||||
"trailingComma": "none"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/chai": "^4.2.11",
|
||||
"@types/mocha": "^7.0.2",
|
||||
"@types/sinon": "^9.0.4",
|
||||
"@types/sinon-chai": "^3.2.4",
|
||||
"@typescript-eslint/eslint-plugin": "^5.61.0",
|
||||
"@typescript-eslint/parser": "^5.61.0",
|
||||
"chai": "^4.2.0",
|
||||
"documentation": "^14.0.2",
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-config-developit": "^1.2.0",
|
||||
"eslint-plugin-compat": "^4.1.4",
|
||||
"esm": "^3.2.25",
|
||||
"microbundle": "^0.12.3",
|
||||
"mocha": "^8.0.1",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"prettier": "^2.8.8",
|
||||
"rimraf": "^3.0.2",
|
||||
"sinon": "^9.0.2",
|
||||
"sinon-chai": "^3.5.0",
|
||||
"ts-node": "^10.9.1",
|
||||
"typescript": "^4.9.5"
|
||||
}
|
||||
}
|
||||
1
autogpt_platform/node_modules/.pnpm/node_modules/mitt
generated
vendored
1
autogpt_platform/node_modules/.pnpm/node_modules/mitt
generated
vendored
@@ -1 +0,0 @@
|
||||
../mitt@3.0.1/node_modules/mitt
|
||||
1
autogpt_platform/node_modules/.pnpm/node_modules/react
generated
vendored
1
autogpt_platform/node_modules/.pnpm/node_modules/react
generated
vendored
@@ -1 +0,0 @@
|
||||
../react@19.1.0/node_modules/react
|
||||
1
autogpt_platform/node_modules/.pnpm/nuqs@2.4.3_react@19.1.0/node_modules/mitt
generated
vendored
1
autogpt_platform/node_modules/.pnpm/nuqs@2.4.3_react@19.1.0/node_modules/mitt
generated
vendored
@@ -1 +0,0 @@
|
||||
../../mitt@3.0.1/node_modules/mitt
|
||||
21
autogpt_platform/node_modules/.pnpm/nuqs@2.4.3_react@19.1.0/node_modules/nuqs/LICENSE
generated
vendored
21
autogpt_platform/node_modules/.pnpm/nuqs@2.4.3_react@19.1.0/node_modules/nuqs/LICENSE
generated
vendored
@@ -1,21 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2020 François Best <contact@francoisbest.com>
|
||||
|
||||
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.
|
||||
989
autogpt_platform/node_modules/.pnpm/nuqs@2.4.3_react@19.1.0/node_modules/nuqs/README.md
generated
vendored
989
autogpt_platform/node_modules/.pnpm/nuqs@2.4.3_react@19.1.0/node_modules/nuqs/README.md
generated
vendored
@@ -1,989 +0,0 @@
|
||||
# nuqs
|
||||
|
||||
[](https://www.npmjs.com/package/nuqs)
|
||||
[](https://github.com/47ng/nuqs/blob/next/LICENSE)
|
||||
[](https://github.com/sponsors/franky47)
|
||||
[](https://github.com/47ng/nuqs/actions/workflows/ci-cd.yml)
|
||||
[](https://depfu.com/github/47ng/nuqs?project_id=22104)
|
||||
|
||||
Type-safe search params state manager for React frameworks. Like `useState`, but stored in the URL query string.
|
||||
|
||||
## Features
|
||||
|
||||
- 🔀 **new:** Supports Next.js (`app` and `pages` routers), plain React (SPA), Remix, React Router, and custom routers via [adapters](#adapters)
|
||||
- 🧘♀️ Simple: the URL is the source of truth
|
||||
- 🕰 Replace history or [append](#history) to use the Back button to navigate state updates
|
||||
- ⚡️ Built-in [parsers](#parsing) for common state types (integer, float, boolean, Date, and more). Create your own parsers for custom types & pretty URLs
|
||||
- ♊️ Related querystrings with [`useQueryStates`](#usequerystates)
|
||||
- 📡 [Shallow mode](#shallow) by default for URL query updates, opt-in to notify server components
|
||||
- 🗃 [Server cache](#accessing-searchparams-in-server-components) for type-safe searchParams access in nested server components
|
||||
- ⌛️ Support for [`useTransition`](#transitions) to get loading states on server updates
|
||||
|
||||
## Documentation
|
||||
|
||||
Read the complete documentation at [nuqs.47ng.com](https://nuqs.47ng.com).
|
||||
|
||||
## Installation
|
||||
|
||||
```shell
|
||||
pnpm add nuqs
|
||||
```
|
||||
|
||||
```shell
|
||||
yarn add nuqs
|
||||
```
|
||||
|
||||
```shell
|
||||
npm install nuqs
|
||||
```
|
||||
|
||||
## Adapters
|
||||
|
||||
You will need to wrap your React component tree with an adapter for your framework. _(expand the appropriate section below)_
|
||||
|
||||
<details><summary>▲ Next.js (app router)</summary>
|
||||
|
||||
> Supported Next.js versions: `>=14.2.0`. For older versions, install `nuqs@^1` (which doesn't need this adapter code).
|
||||
|
||||
```tsx
|
||||
// src/app/layout.tsx
|
||||
import { NuqsAdapter } from 'nuqs/adapters/next/app'
|
||||
import { type ReactNode } from 'react'
|
||||
|
||||
export default function RootLayout({ children }: { children: ReactNode }) {
|
||||
return (
|
||||
<html>
|
||||
<body>
|
||||
<NuqsAdapter>{children}</NuqsAdapter>
|
||||
</body>
|
||||
</html>
|
||||
)
|
||||
}
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
<details><summary>▲ Next.js (pages router)</summary>
|
||||
|
||||
> Supported Next.js versions: `>=14.2.0`. For older versions, install `nuqs@^1` (which doesn't need this adapter code).
|
||||
|
||||
```tsx
|
||||
// src/pages/_app.tsx
|
||||
import type { AppProps } from 'next/app'
|
||||
import { NuqsAdapter } from 'nuqs/adapters/next/pages'
|
||||
|
||||
export default function MyApp({ Component, pageProps }: AppProps) {
|
||||
return (
|
||||
<NuqsAdapter>
|
||||
<Component {...pageProps} />
|
||||
</NuqsAdapter>
|
||||
)
|
||||
}
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
<details><summary>⚛️ Plain React (SPA)</summary>
|
||||
|
||||
Example: via Vite or create-react-app.
|
||||
|
||||
```tsx
|
||||
import { NuqsAdapter } from 'nuqs/adapters/react'
|
||||
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<NuqsAdapter>
|
||||
<App />
|
||||
</NuqsAdapter>
|
||||
)
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
<details><summary>💿 Remix</summary>
|
||||
|
||||
> Supported Remix versions: `@remix-run/react@>=2`
|
||||
|
||||
```tsx
|
||||
// app/root.tsx
|
||||
import { NuqsAdapter } from 'nuqs/adapters/remix'
|
||||
|
||||
// ...
|
||||
|
||||
export default function App() {
|
||||
return (
|
||||
<NuqsAdapter>
|
||||
<Outlet />
|
||||
</NuqsAdapter>
|
||||
)
|
||||
}
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
<details><summary><img style="width:1em;height:1em;" src="https://reactrouter.com/_brand/React%20Router%20Brand%20Assets/React%20Router%20Logo/Dark.svg" /> React Router v6
|
||||
</summary>
|
||||
|
||||
> Supported React Router versions: `react-router-dom@^6`
|
||||
|
||||
```tsx
|
||||
import { NuqsAdapter } from 'nuqs/adapters/react-router/v6'
|
||||
import { createBrowserRouter, RouterProvider } from 'react-router-dom'
|
||||
import App from './App'
|
||||
|
||||
const router = createBrowserRouter([
|
||||
{
|
||||
path: '/',
|
||||
element: <App />
|
||||
}
|
||||
])
|
||||
|
||||
export function ReactRouter() {
|
||||
return (
|
||||
<NuqsAdapter>
|
||||
<RouterProvider router={router} />
|
||||
</NuqsAdapter>
|
||||
)
|
||||
}
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
<details><summary><img style="width:1em;height:1em;" src="https://reactrouter.com/_brand/React%20Router%20Brand%20Assets/React%20Router%20Logo/Dark.svg" /> React Router v7
|
||||
</summary>
|
||||
|
||||
> Supported React Router versions: `react-router@^7`
|
||||
|
||||
```tsx
|
||||
// app/root.tsx
|
||||
import { NuqsAdapter } from 'nuqs/adapters/react-router/v7'
|
||||
import { Outlet } from 'react-router'
|
||||
|
||||
// ...
|
||||
|
||||
export default function App() {
|
||||
return (
|
||||
<NuqsAdapter>
|
||||
<Outlet />
|
||||
</NuqsAdapter>
|
||||
)
|
||||
}
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
## Usage
|
||||
|
||||
```tsx
|
||||
'use client' // Only works in client components
|
||||
|
||||
import { useQueryState } from 'nuqs'
|
||||
|
||||
export default () => {
|
||||
const [name, setName] = useQueryState('name')
|
||||
return (
|
||||
<>
|
||||
<h1>Hello, {name || 'anonymous visitor'}!</h1>
|
||||
<input value={name || ''} onChange={e => setName(e.target.value)} />
|
||||
<button onClick={() => setName(null)}>Clear</button>
|
||||
</>
|
||||
)
|
||||
}
|
||||
```
|
||||
|
||||

|
||||
|
||||
`useQueryState` takes one required argument: the key to use in the query string.
|
||||
|
||||
Like `React.useState`, it returns an array with the value present in the query
|
||||
string as a string (or `null` if none was found), and a state updater function.
|
||||
|
||||
Example outputs for our hello world example:
|
||||
|
||||
| URL | name value | Notes |
|
||||
| ------------ | ---------- | ----------------------------------------------------------------- |
|
||||
| `/` | `null` | No `name` key in URL |
|
||||
| `/?name=` | `''` | Empty string |
|
||||
| `/?name=foo` | `'foo'` |
|
||||
| `/?name=2` | `'2'` | Always returns a string by default, see [Parsing](#parsing) below |
|
||||
|
||||
## Parsing
|
||||
|
||||
If your state type is not a string, you must pass a parsing function in the
|
||||
second argument object.
|
||||
|
||||
We provide parsers for common and more advanced object types:
|
||||
|
||||
```ts
|
||||
import {
|
||||
parseAsString,
|
||||
parseAsInteger,
|
||||
parseAsFloat,
|
||||
parseAsBoolean,
|
||||
parseAsTimestamp,
|
||||
parseAsIsoDateTime,
|
||||
parseAsArrayOf,
|
||||
parseAsJson,
|
||||
parseAsStringEnum,
|
||||
parseAsStringLiteral,
|
||||
parseAsNumberLiteral
|
||||
} from 'nuqs'
|
||||
|
||||
useQueryState('tag') // defaults to string
|
||||
useQueryState('count', parseAsInteger)
|
||||
useQueryState('brightness', parseAsFloat)
|
||||
useQueryState('darkMode', parseAsBoolean)
|
||||
useQueryState('after', parseAsTimestamp) // state is a Date
|
||||
useQueryState('date', parseAsIsoDateTime) // state is a Date
|
||||
useQueryState('array', parseAsArrayOf(parseAsInteger)) // state is number[]
|
||||
useQueryState('json', parseAsJson<Point>()) // state is a Point
|
||||
|
||||
// Enums (string-based only)
|
||||
enum Direction {
|
||||
up = 'UP',
|
||||
down = 'DOWN',
|
||||
left = 'LEFT',
|
||||
right = 'RIGHT'
|
||||
}
|
||||
|
||||
const [direction, setDirection] = useQueryState(
|
||||
'direction',
|
||||
parseAsStringEnum<Direction>(Object.values(Direction)) // pass a list of allowed values
|
||||
.withDefault(Direction.up)
|
||||
)
|
||||
|
||||
// Literals (string-based only)
|
||||
const colors = ['red', 'green', 'blue'] as const
|
||||
|
||||
const [color, setColor] = useQueryState(
|
||||
'color',
|
||||
parseAsStringLiteral(colors) // pass a readonly list of allowed values
|
||||
.withDefault('red')
|
||||
)
|
||||
|
||||
// Literals (number-based only)
|
||||
const diceSides = [1, 2, 3, 4, 5, 6] as const
|
||||
|
||||
const [side, setSide] = useQueryState(
|
||||
'side',
|
||||
parseAsNumberLiteral(diceSides) // pass a readonly list of allowed values
|
||||
.withDefault(4)
|
||||
)
|
||||
```
|
||||
|
||||
You may pass a custom set of `parse` and `serialize` functions:
|
||||
|
||||
```tsx
|
||||
import { useQueryState } from 'nuqs'
|
||||
|
||||
export default () => {
|
||||
const [hex, setHex] = useQueryState('hex', {
|
||||
// TypeScript will automatically infer it's a number
|
||||
// based on what `parse` returns.
|
||||
parse: (query: string) => parseInt(query, 16),
|
||||
serialize: value => value.toString(16)
|
||||
})
|
||||
}
|
||||
```
|
||||
|
||||
### Using parsers in Server Components
|
||||
|
||||
> Note: see the [Accessing searchParams in server components](#accessing-searchparams-in-server-components)
|
||||
> section for a more user-friendly way to achieve type-safety.
|
||||
|
||||
If you wish to parse the searchParams in server components, you'll need to
|
||||
import the parsers from `nuqs/server`, which doesn't include
|
||||
the `"use client"` directive.
|
||||
|
||||
You can then use the `parseServerSide` method:
|
||||
|
||||
```tsx
|
||||
import { parseAsInteger } from 'nuqs/server'
|
||||
|
||||
type PageProps = {
|
||||
searchParams: {
|
||||
counter?: string | string[]
|
||||
}
|
||||
}
|
||||
|
||||
const counterParser = parseAsInteger.withDefault(1)
|
||||
|
||||
export default function ServerPage({ searchParams }: PageProps) {
|
||||
const counter = counterParser.parseServerSide(searchParams.counter)
|
||||
console.log('Server side counter: %d', counter)
|
||||
return (
|
||||
...
|
||||
)
|
||||
}
|
||||
```
|
||||
|
||||
See the [server-side parsing demo](<./packages/docs/src/app/playground/(demos)/pagination>)
|
||||
for a live example showing how to reuse parser configurations between
|
||||
client and server code.
|
||||
|
||||
> Note: parsers **don't validate** your data. If you expect positive integers
|
||||
> or JSON-encoded objects of a particular shape, you'll need to feed the result
|
||||
> of the parser to a schema validation library, like [Zod](https://zod.dev).
|
||||
|
||||
## Default value
|
||||
|
||||
When the query string is not present in the URL, the default behaviour is to
|
||||
return `null` as state.
|
||||
|
||||
It can make state updating and UI rendering tedious. Take this example of a simple counter stored in the URL:
|
||||
|
||||
```tsx
|
||||
import { useQueryState, parseAsInteger } from 'nuqs'
|
||||
|
||||
export default () => {
|
||||
const [count, setCount] = useQueryState('count', parseAsInteger)
|
||||
return (
|
||||
<>
|
||||
<pre>count: {count}</pre>
|
||||
<button onClick={() => setCount(0)}>Reset</button>
|
||||
{/* handling null values in setCount is annoying: */}
|
||||
<button onClick={() => setCount(c => c ?? 0 + 1)}>+</button>
|
||||
<button onClick={() => setCount(c => c ?? 0 - 1)}>-</button>
|
||||
<button onClick={() => setCount(null)}>Clear</button>
|
||||
</>
|
||||
)
|
||||
}
|
||||
```
|
||||
|
||||
You can specify a default value to be returned in this case:
|
||||
|
||||
```ts
|
||||
const [count, setCount] = useQueryState('count', parseAsInteger.withDefault(0))
|
||||
|
||||
const increment = () => setCount(c => c + 1) // c will never be null
|
||||
const decrement = () => setCount(c => c - 1) // c will never be null
|
||||
const clearCount = () => setCount(null) // Remove query from the URL
|
||||
```
|
||||
|
||||
Note: the default value is internal to React, it will **not** be written to the
|
||||
URL.
|
||||
|
||||
Setting the state to `null` will remove the key in the query string and set the
|
||||
state to the default value.
|
||||
|
||||
## Options
|
||||
|
||||
### History
|
||||
|
||||
By default, state updates are done by replacing the current history entry with
|
||||
the updated query when state changes.
|
||||
|
||||
You can see this as a sort of `git squash`, where all state-changing
|
||||
operations are merged into a single history value.
|
||||
|
||||
You can also opt-in to push a new history item for each state change,
|
||||
per key, which will let you use the Back button to navigate state
|
||||
updates:
|
||||
|
||||
```ts
|
||||
// Default: replace current history with new state
|
||||
useQueryState('foo', { history: 'replace' })
|
||||
|
||||
// Append state changes to history:
|
||||
useQueryState('foo', { history: 'push' })
|
||||
```
|
||||
|
||||
Any other value for the `history` option will fallback to the default.
|
||||
|
||||
You can also override the history mode when calling the state updater function:
|
||||
|
||||
```ts
|
||||
const [query, setQuery] = useQueryState('q', { history: 'push' })
|
||||
|
||||
// This overrides the hook declaration setting:
|
||||
setQuery(null, { history: 'replace' })
|
||||
```
|
||||
|
||||
### Shallow
|
||||
|
||||
> Note: this feature only applies to Next.js
|
||||
|
||||
By default, query state updates are done in a _client-first_ manner: there are
|
||||
no network calls to the server.
|
||||
|
||||
This is equivalent to the `shallow` option of the Next.js pages router set to `true`,
|
||||
or going through the experimental [`windowHistorySupport`](https://github.com/vercel/next.js/discussions/48110)
|
||||
flag in the app router.
|
||||
|
||||
To opt-in to query updates notifying the server (to re-run `getServerSideProps`
|
||||
in the pages router and re-render Server Components on the app router),
|
||||
you can set `shallow` to `false`:
|
||||
|
||||
```ts
|
||||
const [state, setState] = useQueryState('foo', { shallow: false })
|
||||
|
||||
// You can also pass the option on calls to setState:
|
||||
setState('bar', { shallow: false })
|
||||
```
|
||||
|
||||
### Throttling URL updates
|
||||
|
||||
Because of browsers rate-limiting the History API, internal updates to the
|
||||
URL are queued and throttled to a default of 50ms, which seems to satisfy
|
||||
most browsers even when sending high-frequency query updates, like binding
|
||||
to a text input or a slider.
|
||||
|
||||
Safari's rate limits are much higher and would require a throttle of around 340ms.
|
||||
If you end up needing a longer time between updates, you can specify it in the
|
||||
options:
|
||||
|
||||
```ts
|
||||
useQueryState('foo', {
|
||||
// Send updates to the server maximum once every second
|
||||
shallow: false,
|
||||
throttleMs: 1000
|
||||
})
|
||||
|
||||
// You can also pass the option on calls to setState:
|
||||
setState('bar', { throttleMs: 1000 })
|
||||
```
|
||||
|
||||
> Note: the state returned by the hook is always updated instantly, to keep UI responsive.
|
||||
> Only changes to the URL, and server requests when using `shallow: false`, are throttled.
|
||||
|
||||
If multiple hooks set different throttle values on the same event loop tick,
|
||||
the highest value will be used. Also, values lower than 50ms will be ignored,
|
||||
to avoid rate-limiting issues. [Read more](https://francoisbest.com/posts/2023/storing-react-state-in-the-url-with-nextjs#batching--throttling).
|
||||
|
||||
### Transitions
|
||||
|
||||
When combined with `shallow: false`, you can use the `useTransition` hook to get
|
||||
loading states while the server is re-rendering server components with the
|
||||
updated URL.
|
||||
|
||||
Pass in the `startTransition` function from `useTransition` to the options
|
||||
to enable this behaviour:
|
||||
|
||||
```tsx
|
||||
'use client'
|
||||
|
||||
import React from 'react'
|
||||
import { useQueryState, parseAsString } from 'nuqs'
|
||||
|
||||
function ClientComponent({ data }) {
|
||||
// 1. Provide your own useTransition hook:
|
||||
const [isLoading, startTransition] = React.useTransition()
|
||||
const [query, setQuery] = useQueryState(
|
||||
'query',
|
||||
// 2. Pass the `startTransition` as an option:
|
||||
parseAsString().withOptions({
|
||||
startTransition,
|
||||
shallow: false // opt-in to notify the server (Next.js only)
|
||||
})
|
||||
)
|
||||
// 3. `isLoading` will be true while the server is re-rendering
|
||||
// and streaming RSC payloads, when the query is updated via `setQuery`.
|
||||
|
||||
// Indicate loading state
|
||||
if (isLoading) return <div>Loading...</div>
|
||||
|
||||
// Normal rendering with data
|
||||
return <div>{/*...*/}</div>
|
||||
}
|
||||
```
|
||||
|
||||
## Configuring parsers, default value & options
|
||||
|
||||
You can use a builder pattern to facilitate specifying all of those things:
|
||||
|
||||
```ts
|
||||
useQueryState(
|
||||
'counter',
|
||||
parseAsInteger.withDefault(0).withOptions({
|
||||
history: 'push',
|
||||
shallow: false
|
||||
})
|
||||
)
|
||||
```
|
||||
|
||||
You can get this pattern for your custom parsers too, and compose them
|
||||
with others:
|
||||
|
||||
```ts
|
||||
import { createParser, parseAsHex } from 'nuqs'
|
||||
|
||||
// Wrapping your parser/serializer in `createParser`
|
||||
// gives it access to the builder pattern & server-side
|
||||
// parsing capabilities:
|
||||
const hexColorSchema = createParser({
|
||||
parse(query) {
|
||||
if (query.length !== 6) {
|
||||
return null // always return null for invalid inputs
|
||||
}
|
||||
return {
|
||||
// When composing other parsers, they may return null too.
|
||||
r: parseAsHex.parse(query.slice(0, 2)) ?? 0x00,
|
||||
g: parseAsHex.parse(query.slice(2, 4)) ?? 0x00,
|
||||
b: parseAsHex.parse(query.slice(4)) ?? 0x00
|
||||
}
|
||||
},
|
||||
serialize({ r, g, b }) {
|
||||
return (
|
||||
parseAsHex.serialize(r) +
|
||||
parseAsHex.serialize(g) +
|
||||
parseAsHex.serialize(b)
|
||||
)
|
||||
}
|
||||
})
|
||||
// Eg: set common options directly
|
||||
.withOptions({ history: 'push' })
|
||||
|
||||
// Or on usage:
|
||||
useQueryState(
|
||||
'tribute',
|
||||
hexColorSchema.withDefault({
|
||||
r: 0x66,
|
||||
g: 0x33,
|
||||
b: 0x99
|
||||
})
|
||||
)
|
||||
```
|
||||
|
||||
Note: see this example running in the [hex-colors demo](<./packages/docs/src/app/playground/(demos)/hex-colors/page.tsx>).
|
||||
|
||||
## Multiple Queries (batching)
|
||||
|
||||
You can call as many state update function as needed in a single event loop
|
||||
tick, and they will be applied to the URL asynchronously:
|
||||
|
||||
```ts
|
||||
const MultipleQueriesDemo = () => {
|
||||
const [lat, setLat] = useQueryState('lat', parseAsFloat)
|
||||
const [lng, setLng] = useQueryState('lng', parseAsFloat)
|
||||
const randomCoordinates = React.useCallback(() => {
|
||||
setLat(Math.random() * 180 - 90)
|
||||
setLng(Math.random() * 360 - 180)
|
||||
}, [])
|
||||
}
|
||||
```
|
||||
|
||||
If you wish to know when the URL has been updated, and what it contains, you can
|
||||
await the Promise returned by the state updater function, which gives you the
|
||||
updated URLSearchParameters object:
|
||||
|
||||
```ts
|
||||
const randomCoordinates = React.useCallback(() => {
|
||||
setLat(42)
|
||||
return setLng(12)
|
||||
}, [])
|
||||
|
||||
randomCoordinates().then((search: URLSearchParams) => {
|
||||
search.get('lat') // 42
|
||||
search.get('lng') // 12, has been queued and batch-updated
|
||||
})
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary><em>Implementation details (Promise caching)</em></summary>
|
||||
|
||||
The returned Promise is cached until the next flush to the URL occurs,
|
||||
so all calls to a setState (of any hook) in the same event loop tick will
|
||||
return the same Promise reference.
|
||||
|
||||
Due to throttling of calls to the Web History API, the Promise may be cached
|
||||
for several ticks. Batched updates will be merged and flushed once to the URL.
|
||||
This means not every setState will reflect to the URL, if another one comes
|
||||
overriding it before flush occurs.
|
||||
|
||||
The returned React state will reflect all set values instantly,
|
||||
to keep UI responsive.
|
||||
|
||||
---
|
||||
|
||||
</details>
|
||||
|
||||
## `useQueryStates`
|
||||
|
||||
For query keys that should always move together, you can use `useQueryStates`
|
||||
with an object containing each key's type:
|
||||
|
||||
```ts
|
||||
import { useQueryStates, parseAsFloat } from 'nuqs'
|
||||
|
||||
const [coordinates, setCoordinates] = useQueryStates(
|
||||
{
|
||||
lat: parseAsFloat.withDefault(45.18),
|
||||
lng: parseAsFloat.withDefault(5.72)
|
||||
},
|
||||
{
|
||||
history: 'push'
|
||||
}
|
||||
)
|
||||
|
||||
const { lat, lng } = coordinates
|
||||
|
||||
// Set all (or a subset of) the keys in one go:
|
||||
const search = await setCoordinates({
|
||||
lat: Math.random() * 180 - 90,
|
||||
lng: Math.random() * 360 - 180
|
||||
})
|
||||
```
|
||||
|
||||
## Loaders
|
||||
|
||||
To parse search params as a one-off operation, you can use a **loader function**:
|
||||
|
||||
```tsx
|
||||
import { createLoader } from 'nuqs' // or 'nuqs/server'
|
||||
|
||||
const searchParams = {
|
||||
q: parseAsString,
|
||||
page: parseAsInteger.withDefault(1)
|
||||
}
|
||||
|
||||
const loadSearchParams = createLoader(searchParams)
|
||||
|
||||
const { q, page } = loadSearchParams('?q=hello&page=2')
|
||||
```
|
||||
|
||||
It accepts various types of inputs (strings, URL, URLSearchParams, Request, Promises, etc.). [Read more](https://nuqs.47ng.com/docs/server-side#loaders)
|
||||
|
||||
## Accessing searchParams in Server Components
|
||||
|
||||
If you wish to access the searchParams in a deeply nested Server Component
|
||||
(ie: not in the Page component), you can use `createSearchParamsCache`
|
||||
to do so in a type-safe manner.
|
||||
|
||||
> Note: parsers **don't validate** your data. If you expect positive integers
|
||||
> or JSON-encoded objects of a particular shape, you'll need to feed the result
|
||||
> of the parser to a schema validation library, like [Zod](https://zod.dev).
|
||||
|
||||
```tsx
|
||||
// searchParams.ts
|
||||
import {
|
||||
createSearchParamsCache,
|
||||
parseAsInteger,
|
||||
parseAsString
|
||||
} from 'nuqs/server'
|
||||
// Note: import from 'nuqs/server' to avoid the "use client" directive
|
||||
|
||||
export const searchParamsCache = createSearchParamsCache({
|
||||
// List your search param keys and associated parsers here:
|
||||
q: parseAsString.withDefault(''),
|
||||
maxResults: parseAsInteger.withDefault(10)
|
||||
})
|
||||
|
||||
// page.tsx
|
||||
import { searchParamsCache } from './searchParams'
|
||||
|
||||
export default function Page({
|
||||
searchParams
|
||||
}: {
|
||||
searchParams: Record<string, string | string[] | undefined>
|
||||
}) {
|
||||
// ⚠️ Don't forget to call `parse` here.
|
||||
// You can access type-safe values from the returned object:
|
||||
const { q: query } = searchParamsCache.parse(searchParams)
|
||||
return (
|
||||
<div>
|
||||
<h1>Search Results for {query}</h1>
|
||||
<Results />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
function Results() {
|
||||
// Access type-safe search params in children server components:
|
||||
const maxResults = searchParamsCache.get('maxResults')
|
||||
return <span>Showing up to {maxResults} results</span>
|
||||
}
|
||||
```
|
||||
|
||||
The cache will only be valid for the current page render
|
||||
(see React's [`cache`](https://react.dev/reference/react/cache) function).
|
||||
|
||||
Note: the cache only works for **server components**, but you may share your
|
||||
parser declaration with `useQueryStates` for type-safety in client components:
|
||||
|
||||
```tsx
|
||||
// searchParams.ts
|
||||
import { parseAsFloat, createSearchParamsCache } from 'nuqs/server'
|
||||
|
||||
export const coordinatesParsers = {
|
||||
lat: parseAsFloat.withDefault(45.18),
|
||||
lng: parseAsFloat.withDefault(5.72)
|
||||
}
|
||||
export const coordinatesCache = createSearchParamsCache(coordinatesParsers)
|
||||
|
||||
// page.tsx
|
||||
import { coordinatesCache } from './searchParams'
|
||||
import { Server } from './server'
|
||||
import { Client } from './client'
|
||||
|
||||
export default async function Page({ searchParams }) {
|
||||
await coordinatesCache.parse(searchParams)
|
||||
return (
|
||||
<>
|
||||
<Server />
|
||||
<Suspense>
|
||||
<Client />
|
||||
</Suspense>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
// server.tsx
|
||||
import { coordinatesCache } from './searchParams'
|
||||
|
||||
export function Server() {
|
||||
const { lat, lng } = coordinatesCache.all()
|
||||
// or access keys individually:
|
||||
const lat = coordinatesCache.get('lat')
|
||||
const lng = coordinatesCache.get('lng')
|
||||
return (
|
||||
<span>
|
||||
Latitude: {lat} - Longitude: {lng}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
|
||||
// client.tsx
|
||||
// prettier-ignore
|
||||
;'use client'
|
||||
|
||||
import { useQueryStates } from 'nuqs'
|
||||
import { coordinatesParsers } from './searchParams'
|
||||
|
||||
export function Client() {
|
||||
const [{ lat, lng }, setCoordinates] = useQueryStates(coordinatesParsers)
|
||||
// ...
|
||||
}
|
||||
```
|
||||
|
||||
## Serializer helper
|
||||
|
||||
To populate `<Link>` components with state values, you can use the `createSerializer`
|
||||
helper.
|
||||
|
||||
Pass it an object describing your search params, and it will give you a function
|
||||
to call with values, that generates a query string serialized as the hooks would do.
|
||||
|
||||
Example:
|
||||
|
||||
```ts
|
||||
import {
|
||||
createSerializer,
|
||||
parseAsInteger,
|
||||
parseAsIsoDateTime,
|
||||
parseAsString,
|
||||
parseAsStringLiteral
|
||||
} from 'nuqs/server'
|
||||
|
||||
const searchParams = {
|
||||
search: parseAsString,
|
||||
limit: parseAsInteger,
|
||||
from: parseAsIsoDateTime,
|
||||
to: parseAsIsoDateTime,
|
||||
sortBy: parseAsStringLiteral(['asc', 'desc'] as const)
|
||||
}
|
||||
|
||||
// Create a serializer function by passing the description of the search params to accept
|
||||
const serialize = createSerializer(searchParams)
|
||||
|
||||
// Then later, pass it some values (a subset) and render them to a query string
|
||||
serialize({
|
||||
search: 'foo bar',
|
||||
limit: 10,
|
||||
from: new Date('2024-01-01'),
|
||||
// here, we omit `to`, which won't be added
|
||||
sortBy: null // null values are also not rendered
|
||||
})
|
||||
// ?search=foo+bar&limit=10&from=2024-01-01T00:00:00.000Z
|
||||
```
|
||||
|
||||
### Base parameter
|
||||
|
||||
The returned `serialize` function can take a base parameter over which to
|
||||
append/amend the search params:
|
||||
|
||||
```ts
|
||||
serialize('/path?baz=qux', { foo: 'bar' }) // /path?baz=qux&foo=bar
|
||||
|
||||
const search = new URLSearchParams('?baz=qux')
|
||||
serialize(search, { foo: 'bar' }) // ?baz=qux&foo=bar
|
||||
|
||||
const url = new URL('https://example.com/path?baz=qux')
|
||||
serialize(url, { foo: 'bar' }) // https://example.com/path?baz=qux&foo=bar
|
||||
|
||||
// Passing null removes existing values
|
||||
serialize('?remove=me', { foo: 'bar', remove: null }) // ?foo=bar
|
||||
```
|
||||
|
||||
## Parser type inference
|
||||
|
||||
To access the underlying type returned by a parser, you can use the
|
||||
`inferParserType` type helper:
|
||||
|
||||
```ts
|
||||
import { parseAsInteger, type inferParserType } from 'nuqs' // or 'nuqs/server'
|
||||
|
||||
const intNullable = parseAsInteger
|
||||
const intNonNull = parseAsInteger.withDefault(0)
|
||||
|
||||
inferParserType<typeof intNullable> // number | null
|
||||
inferParserType<typeof intNonNull> // number
|
||||
```
|
||||
|
||||
For an object describing parsers (that you'd pass to `createSearchParamsCache`
|
||||
or to `useQueryStates`, `inferParserType` will
|
||||
return the type of the object with the parsers replaced by their inferred types:
|
||||
|
||||
```ts
|
||||
import { parseAsBoolean, parseAsInteger, type inferParserType } from 'nuqs' // or 'nuqs/server'
|
||||
|
||||
const parsers = {
|
||||
a: parseAsInteger,
|
||||
b: parseAsBoolean.withDefault(false)
|
||||
}
|
||||
|
||||
inferParserType<typeof parsers>
|
||||
// { a: number | null, b: boolean }
|
||||
```
|
||||
|
||||
## Testing
|
||||
|
||||
Since nuqs v2, you can use a testing adapter to unit-test components using
|
||||
`useQueryState` and `useQueryStates` in isolation, without needing to mock
|
||||
your framework or router.
|
||||
|
||||
Here's an example using Testing Library and Vitest:
|
||||
|
||||
```tsx
|
||||
import { render, screen } from '@testing-library/react'
|
||||
import userEvent from '@testing-library/user-event'
|
||||
import { NuqsTestingAdapter, type UrlUpdateEvent } from 'nuqs/adapters/testing'
|
||||
import { describe, expect, it, vi } from 'vitest'
|
||||
import { CounterButton } from './counter-button'
|
||||
|
||||
it('should increment the count when clicked', async () => {
|
||||
const user = userEvent.setup()
|
||||
const onUrlUpdate = vi.fn<[UrlUpdateEvent]>()
|
||||
render(<CounterButton />, {
|
||||
// Setup the test by passing initial search params / querystring,
|
||||
// and give it a function to call on URL updates
|
||||
wrapper: ({ children }) => (
|
||||
<NuqsTestingAdapter searchParams="?count=42" onUrlUpdate={onUrlUpdate}>
|
||||
{children}
|
||||
</NuqsTestingAdapter>
|
||||
)
|
||||
})
|
||||
// Initial state assertions: there's a clickable button displaying the count
|
||||
const button = screen.getByRole('button')
|
||||
expect(button).toHaveTextContent('count is 42')
|
||||
// Act
|
||||
await user.click(button)
|
||||
// Assert changes in the state and in the (mocked) URL
|
||||
expect(button).toHaveTextContent('count is 43')
|
||||
expect(onUrlUpdate).toHaveBeenCalledOnce()
|
||||
expect(onUrlUpdate.mock.calls[0][0].queryString).toBe('?count=43')
|
||||
expect(onUrlUpdate.mock.calls[0][0].searchParams.get('count')).toBe('43')
|
||||
expect(onUrlUpdate.mock.calls[0][0].options.history).toBe('push')
|
||||
})
|
||||
```
|
||||
|
||||
See [#259](https://github.com/47ng/nuqs/issues/259) for more testing-related discussions.
|
||||
|
||||
## Debugging
|
||||
|
||||
You can enable debug logs in the browser by setting the `debug` item in localStorage
|
||||
to `nuqs`, and reload the page.
|
||||
|
||||
```js
|
||||
// In your devtools:
|
||||
localStorage.setItem('debug', 'nuqs')
|
||||
```
|
||||
|
||||
> Note: unlike the `debug` package, this will not work with wildcards, but
|
||||
> you can combine it: `localStorage.setItem('debug', '*,nuqs')`
|
||||
|
||||
Log lines will be prefixed with `[nuqs]` for `useQueryState` and `[nuq+]` for
|
||||
`useQueryStates`, along with other internal debug logs.
|
||||
|
||||
User timings markers are also recorded, for advanced performance analysis using
|
||||
your browser's devtools.
|
||||
|
||||
Providing debug logs when opening an [issue](https://github.com/47ng/nuqs/issues)
|
||||
is always appreciated. 🙏
|
||||
|
||||
### SEO
|
||||
|
||||
If your page uses query strings for local-only state, you should add a
|
||||
canonical URL to your page, to tell SEO crawlers to ignore the query string
|
||||
and index the page without it.
|
||||
|
||||
In the app router, this is done via the metadata object:
|
||||
|
||||
```ts
|
||||
import type { Metadata } from 'next'
|
||||
|
||||
export const metadata: Metadata = {
|
||||
alternates: {
|
||||
canonical: '/url/path/without/querystring'
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
If however the query string is defining what content the page is displaying
|
||||
(eg: YouTube's watch URLs, like `https://www.youtube.com/watch?v=dQw4w9WgXcQ`),
|
||||
your canonical URL should contain relevant query strings, and you can still
|
||||
use `useQueryState` to read it:
|
||||
|
||||
```ts
|
||||
// page.tsx
|
||||
import type { Metadata, ResolvingMetadata } from 'next'
|
||||
import { useQueryState } from 'nuqs'
|
||||
import { parseAsString } from 'nuqs/server'
|
||||
|
||||
type Props = {
|
||||
searchParams: { [key: string]: string | string[] | undefined }
|
||||
}
|
||||
|
||||
export async function generateMetadata({
|
||||
searchParams
|
||||
}: Props): Promise<Metadata> {
|
||||
const videoId = parseAsString.parseServerSide(searchParams.v)
|
||||
return {
|
||||
alternates: {
|
||||
canonical: `/watch?v=${videoId}`
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
### Lossy serialization
|
||||
|
||||
If your serializer loses precision or doesn't accurately represent
|
||||
the underlying state value, you will lose this precision when
|
||||
reloading the page or restoring state from the URL (eg: on navigation).
|
||||
|
||||
Example:
|
||||
|
||||
```ts
|
||||
const geoCoordParser = {
|
||||
parse: parseFloat,
|
||||
serialize: v => v.toFixed(4) // Loses precision
|
||||
}
|
||||
|
||||
const [lat, setLat] = useQueryState('lat', geoCoordParser)
|
||||
```
|
||||
|
||||
Here, setting a latitude of 1.23456789 will render a URL query string
|
||||
of `lat=1.2345`, while the internal `lat` state will be correctly
|
||||
set to 1.23456789.
|
||||
|
||||
Upon reloading the page, the state will be incorrectly set to 1.2345.
|
||||
|
||||
## License
|
||||
|
||||
[MIT](https://github.com/47ng/nuqs/blob/next/LICENSE)
|
||||
|
||||
Made with ❤️ by [François Best](https://francoisbest.com)
|
||||
|
||||
Using this package at work ? [Sponsor me](https://github.com/sponsors/franky47)
|
||||
to help with support and maintenance.
|
||||
|
||||

|
||||
@@ -1,7 +0,0 @@
|
||||
// This file is needed for projects that have `moduleResolution` set to `node`
|
||||
// in their tsconfig.json to be able to `import {} from 'nuqs/adapters/custom'`.
|
||||
// Other module resolutions strategies will look for the `exports` in `package.json`,
|
||||
// but with `node`, TypeScript will look for a .d.ts file with that name at the
|
||||
// root of the package.
|
||||
|
||||
export * from '../dist/adapters/custom'
|
||||
@@ -1,7 +0,0 @@
|
||||
// This file is needed for projects that have `moduleResolution` set to `node`
|
||||
// in their tsconfig.json to be able to `import {} from 'nuqs/adpaters/next'`.
|
||||
// Other module resolutions strategies will look for the `exports` in `package.json`,
|
||||
// but with `node`, TypeScript will look for a .d.ts file with that name at the
|
||||
// root of the package.
|
||||
|
||||
export * from '../dist/adapters/next'
|
||||
@@ -1,7 +0,0 @@
|
||||
// This file is needed for projects that have `moduleResolution` set to `node`
|
||||
// in their tsconfig.json to be able to `import {} from 'nuqs/adpaters/next/app'`.
|
||||
// Other module resolutions strategies will look for the `exports` in `package.json`,
|
||||
// but with `node`, TypeScript will look for a .d.ts file with that name at the
|
||||
// root of the package.
|
||||
|
||||
export * from '../../dist/adapters/next/app'
|
||||
@@ -1,7 +0,0 @@
|
||||
// This file is needed for projects that have `moduleResolution` set to `node`
|
||||
// in their tsconfig.json to be able to `import {} from 'nuqs/adpaters/next/pages'`.
|
||||
// Other module resolutions strategies will look for the `exports` in `package.json`,
|
||||
// but with `node`, TypeScript will look for a .d.ts file with that name at the
|
||||
// root of the package.
|
||||
|
||||
export * from '../../dist/adapters/next/pages'
|
||||
@@ -1,10 +0,0 @@
|
||||
// This file is needed for projects that have `moduleResolution` set to `node`
|
||||
// in their tsconfig.json to be able to `import {} from 'nuqs/adapters/react-router'`.
|
||||
// Other module resolutions strategies will look for the `exports` in `package.json`,
|
||||
// but with `node`, TypeScript will look for a .d.ts file with that name at the
|
||||
// root of the package.
|
||||
//
|
||||
// Note: this default react-router adapter is for react-router v6.
|
||||
// If you are using react-router v7, please import from `nuqs/adapters/react-router/v7`
|
||||
|
||||
export * from '../dist/adapters/react-router'
|
||||
@@ -1,7 +0,0 @@
|
||||
// This file is needed for projects that have `moduleResolution` set to `node`
|
||||
// in their tsconfig.json to be able to `import {} from 'nuqs/adapters/react-router/v6'`.
|
||||
// Other module resolutions strategies will look for the `exports` in `package.json`,
|
||||
// but with `node`, TypeScript will look for a .d.ts file with that name at the
|
||||
// root of the package.
|
||||
|
||||
export * from '../../dist/adapters/react-router/v6'
|
||||
@@ -1,7 +0,0 @@
|
||||
// This file is needed for projects that have `moduleResolution` set to `node`
|
||||
// in their tsconfig.json to be able to `import {} from 'nuqs/adapters/react-router/v7'`.
|
||||
// Other module resolutions strategies will look for the `exports` in `package.json`,
|
||||
// but with `node`, TypeScript will look for a .d.ts file with that name at the
|
||||
// root of the package.
|
||||
|
||||
export * from '../../dist/adapters/react-router/v7'
|
||||
@@ -1,7 +0,0 @@
|
||||
// This file is needed for projects that have `moduleResolution` set to `node`
|
||||
// in their tsconfig.json to be able to `import {} from 'nuqs/adapters/react'`.
|
||||
// Other module resolutions strategies will look for the `exports` in `package.json`,
|
||||
// but with `node`, TypeScript will look for a .d.ts file with that name at the
|
||||
// root of the package.
|
||||
|
||||
export * from '../dist/adapters/react'
|
||||
@@ -1,7 +0,0 @@
|
||||
// This file is needed for projects that have `moduleResolution` set to `node`
|
||||
// in their tsconfig.json to be able to `import {} from 'nuqs/adapters/remix'`.
|
||||
// Other module resolutions strategies will look for the `exports` in `package.json`,
|
||||
// but with `node`, TypeScript will look for a .d.ts file with that name at the
|
||||
// root of the package.
|
||||
|
||||
export * from '../dist/adapters/remix'
|
||||
@@ -1,7 +0,0 @@
|
||||
// This file is needed for projects that have `moduleResolution` set to `node`
|
||||
// in their tsconfig.json to be able to `import {} from 'nuqs/adpaters/testing'`.
|
||||
// Other module resolutions strategies will look for the `exports` in `package.json`,
|
||||
// but with `node`, TypeScript will look for a .d.ts file with that name at the
|
||||
// root of the package.
|
||||
|
||||
export * from '../dist/adapters/testing'
|
||||
@@ -1,9 +0,0 @@
|
||||
// ESM only manifesto: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
|
||||
|
||||
// This stub file was added to let some old ESLint plugins resolve
|
||||
// the import paths correctly, as setting exports.*.require: null in package.json didn't work.
|
||||
|
||||
throw new Error(
|
||||
`This package is ESM only.
|
||||
See https://err.47ng.com/NUQS-101 for more details.`
|
||||
)
|
||||
202
autogpt_platform/node_modules/.pnpm/nuqs@2.4.3_react@19.1.0/node_modules/nuqs/package.json
generated
vendored
202
autogpt_platform/node_modules/.pnpm/nuqs@2.4.3_react@19.1.0/node_modules/nuqs/package.json
generated
vendored
@@ -1,202 +0,0 @@
|
||||
{
|
||||
"name": "nuqs",
|
||||
"version": "2.4.3",
|
||||
"description": "Type-safe search params state manager for React - Like useState, but stored in the URL query string",
|
||||
"license": "MIT",
|
||||
"author": {
|
||||
"name": "François Best",
|
||||
"email": "contact@francoisbest.com",
|
||||
"url": "https://francoisbest.com"
|
||||
},
|
||||
"funding": "https://github.com/sponsors/franky47",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/47ng/nuqs.git",
|
||||
"directory": "packages/nuqs"
|
||||
},
|
||||
"homepage": "https://nuqs.47ng.com",
|
||||
"keywords": [
|
||||
"url state",
|
||||
"url",
|
||||
"querystring",
|
||||
"query string",
|
||||
"search params",
|
||||
"next-usequerystate",
|
||||
"useQueryState",
|
||||
"useQueryStates",
|
||||
"nextjs",
|
||||
"react",
|
||||
"remix",
|
||||
"react-router"
|
||||
],
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
"provenance": true
|
||||
},
|
||||
"files": [
|
||||
"dist/",
|
||||
"server.d.ts",
|
||||
"testing.d.ts",
|
||||
"adapters/react.d.ts",
|
||||
"adapters/next.d.ts",
|
||||
"adapters/next/app.d.ts",
|
||||
"adapters/next/pages.d.ts",
|
||||
"adapters/remix.d.ts",
|
||||
"adapters/react-router.d.ts",
|
||||
"adapters/react-router/v6.d.ts",
|
||||
"adapters/react-router/v7.d.ts",
|
||||
"adapters/custom.d.ts",
|
||||
"adapters/testing.d.ts",
|
||||
"esm-only.cjs"
|
||||
],
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"module": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.js",
|
||||
"require": "./esm-only.cjs"
|
||||
},
|
||||
"./server": {
|
||||
"types": "./dist/server.d.ts",
|
||||
"import": "./dist/server.js",
|
||||
"require": "./esm-only.cjs"
|
||||
},
|
||||
"./testing": {
|
||||
"types": "./dist/testing.d.ts",
|
||||
"import": "./dist/testing.js",
|
||||
"require": "./esm-only.cjs"
|
||||
},
|
||||
"./adapters/react": {
|
||||
"types": "./dist/adapters/react.d.ts",
|
||||
"import": "./dist/adapters/react.js",
|
||||
"require": "./esm-only.cjs"
|
||||
},
|
||||
"./adapters/next": {
|
||||
"types": "./dist/adapters/next.d.ts",
|
||||
"import": "./dist/adapters/next.js",
|
||||
"require": "./esm-only.cjs"
|
||||
},
|
||||
"./adapters/next/app": {
|
||||
"types": "./dist/adapters/next/app.d.ts",
|
||||
"import": "./dist/adapters/next/app.js",
|
||||
"require": "./esm-only.cjs"
|
||||
},
|
||||
"./adapters/next/pages": {
|
||||
"types": "./dist/adapters/next/pages.d.ts",
|
||||
"import": "./dist/adapters/next/pages.js",
|
||||
"require": "./esm-only.cjs"
|
||||
},
|
||||
"./adapters/remix": {
|
||||
"types": "./dist/adapters/remix.d.ts",
|
||||
"import": "./dist/adapters/remix.js",
|
||||
"require": "./esm-only.cjs"
|
||||
},
|
||||
"./adapters/react-router": {
|
||||
"types": "./dist/adapters/react-router.d.ts",
|
||||
"import": "./dist/adapters/react-router.js",
|
||||
"require": "./esm-only.cjs"
|
||||
},
|
||||
"./adapters/react-router/v6": {
|
||||
"types": "./dist/adapters/react-router/v6.d.ts",
|
||||
"import": "./dist/adapters/react-router/v6.js",
|
||||
"require": "./esm-only.cjs"
|
||||
},
|
||||
"./adapters/react-router/v7": {
|
||||
"types": "./dist/adapters/react-router/v7.d.ts",
|
||||
"import": "./dist/adapters/react-router/v7.js",
|
||||
"require": "./esm-only.cjs"
|
||||
},
|
||||
"./adapters/custom": {
|
||||
"types": "./dist/adapters/custom.d.ts",
|
||||
"import": "./dist/adapters/custom.js",
|
||||
"require": "./esm-only.cjs"
|
||||
},
|
||||
"./adapters/testing": {
|
||||
"types": "./dist/adapters/testing.d.ts",
|
||||
"import": "./dist/adapters/testing.js",
|
||||
"require": "./esm-only.cjs"
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "tsup --watch",
|
||||
"prebuild": "rm -rf dist",
|
||||
"build": "tsup",
|
||||
"postbuild": "size-limit --json > size.json",
|
||||
"test": "pnpm run --stream '/^test:/'",
|
||||
"test:unit": "vitest run --typecheck",
|
||||
"test:size": "size-limit",
|
||||
"prepack": "./scripts/prepack.sh"
|
||||
},
|
||||
"dependencies": {
|
||||
"mitt": "^3.0.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@remix-run/react": ">=2",
|
||||
"next": ">=14.2.0",
|
||||
"react": ">=18.2.0 || ^19.0.0-0",
|
||||
"react-router": "^6 || ^7",
|
||||
"react-router-dom": "^6 || ^7"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@remix-run/react": {
|
||||
"optional": true
|
||||
},
|
||||
"next": {
|
||||
"optional": true
|
||||
},
|
||||
"react-router": {
|
||||
"optional": true
|
||||
},
|
||||
"react-router-dom": {
|
||||
"optional": true
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"@microsoft/api-extractor": "7.52.3",
|
||||
"@remix-run/react": "^2.16.5",
|
||||
"@size-limit/preset-small-lib": "^11.2.0",
|
||||
"@testing-library/dom": "^10.4.0",
|
||||
"@testing-library/jest-dom": "^6.6.3",
|
||||
"@testing-library/react": "^16.3.0",
|
||||
"@testing-library/user-event": "^14.6.1",
|
||||
"@types/node": "^22.14.1",
|
||||
"@types/react": "catalog:react19",
|
||||
"@types/react-dom": "catalog:react19",
|
||||
"@vitejs/plugin-react": "^4.3.4",
|
||||
"@vitest/coverage-v8": "^3.1.1",
|
||||
"fast-check": "^4.1.1",
|
||||
"jsdom": "^26.1.0",
|
||||
"next": "15.3.0",
|
||||
"react": "catalog:react19",
|
||||
"react-dom": "catalog:react19",
|
||||
"react-router-dom": "6.30.0",
|
||||
"size-limit": "^11.2.0",
|
||||
"tsup": "^8.4.0",
|
||||
"typescript": "^5.8.3",
|
||||
"vitest": "^3.1.1",
|
||||
"vitest-package-exports": "^0.1.1"
|
||||
},
|
||||
"size-limit": [
|
||||
{
|
||||
"name": "Client",
|
||||
"path": "dist/index.js",
|
||||
"limit": "5 kB",
|
||||
"ignore": [
|
||||
"react",
|
||||
"next"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Server",
|
||||
"path": "dist/server.js",
|
||||
"limit": "2.5 kB",
|
||||
"ignore": [
|
||||
"react",
|
||||
"next"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
// This file is needed for projects that have `moduleResolution` set to `node`
|
||||
// in their tsconfig.json to be able to `import {} from 'nuqs/server'`.
|
||||
// Other module resolutions strategies will look for the `exports` in `package.json`,
|
||||
// but with `node`, TypeScript will look for a .d.ts file with that name at the
|
||||
// root of the package.
|
||||
|
||||
export * from './dist/server'
|
||||
@@ -1,7 +0,0 @@
|
||||
// This file is needed for projects that have `moduleResolution` set to `node`
|
||||
// in their tsconfig.json to be able to `import {} from 'nuqs/testing'`.
|
||||
// Other module resolutions strategies will look for the `exports` in `package.json`,
|
||||
// but with `node`, TypeScript will look for a .d.ts file with that name at the
|
||||
// root of the package.
|
||||
|
||||
export * from './dist/testing'
|
||||
1
autogpt_platform/node_modules/.pnpm/nuqs@2.4.3_react@19.1.0/node_modules/react
generated
vendored
1
autogpt_platform/node_modules/.pnpm/nuqs@2.4.3_react@19.1.0/node_modules/react
generated
vendored
@@ -1 +0,0 @@
|
||||
../../react@19.1.0/node_modules/react
|
||||
21
autogpt_platform/node_modules/.pnpm/react@19.1.0/node_modules/react/LICENSE
generated
vendored
21
autogpt_platform/node_modules/.pnpm/react@19.1.0/node_modules/react/LICENSE
generated
vendored
@@ -1,21 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
|
||||
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.
|
||||
37
autogpt_platform/node_modules/.pnpm/react@19.1.0/node_modules/react/README.md
generated
vendored
37
autogpt_platform/node_modules/.pnpm/react@19.1.0/node_modules/react/README.md
generated
vendored
@@ -1,37 +0,0 @@
|
||||
# `react`
|
||||
|
||||
React is a JavaScript library for creating user interfaces.
|
||||
|
||||
The `react` package contains only the functionality necessary to define React components. It is typically used together with a React renderer like `react-dom` for the web, or `react-native` for the native environments.
|
||||
|
||||
**Note:** by default, React will be in development mode. The development version includes extra warnings about common mistakes, whereas the production version includes extra performance optimizations and strips all error messages. Don't forget to use the [production build](https://reactjs.org/docs/optimizing-performance.html#use-the-production-build) when deploying your application.
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import { useState } from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
|
||||
function Counter() {
|
||||
const [count, setCount] = useState(0);
|
||||
return (
|
||||
<>
|
||||
<h1>{count}</h1>
|
||||
<button onClick={() => setCount(count + 1)}>
|
||||
Increment
|
||||
</button>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
const root = createRoot(document.getElementById('root'));
|
||||
root.render(<Counter />);
|
||||
```
|
||||
|
||||
## Documentation
|
||||
|
||||
See https://react.dev/
|
||||
|
||||
## API
|
||||
|
||||
See https://react.dev/reference/react
|
||||
@@ -1,24 +0,0 @@
|
||||
/**
|
||||
* @license React
|
||||
* react-compiler-runtime.development.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
"production" !== process.env.NODE_ENV &&
|
||||
(function () {
|
||||
var ReactSharedInternals =
|
||||
require("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
||||
exports.c = function (size) {
|
||||
var dispatcher = ReactSharedInternals.H;
|
||||
null === dispatcher &&
|
||||
console.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://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
||||
);
|
||||
return dispatcher.useMemoCache(size);
|
||||
};
|
||||
})();
|
||||
@@ -1,16 +0,0 @@
|
||||
/**
|
||||
* @license React
|
||||
* react-compiler-runtime.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
var ReactSharedInternals =
|
||||
require("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
||||
exports.c = function (size) {
|
||||
return ReactSharedInternals.H.useMemoCache(size);
|
||||
};
|
||||
@@ -1,16 +0,0 @@
|
||||
/**
|
||||
* @license React
|
||||
* react-compiler-runtime.profiling.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
var ReactSharedInternals =
|
||||
require("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
||||
exports.c = function (size) {
|
||||
return ReactSharedInternals.H.useMemoCache(size);
|
||||
};
|
||||
@@ -1,349 +0,0 @@
|
||||
/**
|
||||
* @license React
|
||||
* react-jsx-dev-runtime.development.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
"production" !== process.env.NODE_ENV &&
|
||||
(function () {
|
||||
function getComponentNameFromType(type) {
|
||||
if (null == type) return null;
|
||||
if ("function" === typeof type)
|
||||
return type.$$typeof === REACT_CLIENT_REFERENCE
|
||||
? null
|
||||
: type.displayName || type.name || null;
|
||||
if ("string" === typeof type) return type;
|
||||
switch (type) {
|
||||
case REACT_FRAGMENT_TYPE:
|
||||
return "Fragment";
|
||||
case REACT_PROFILER_TYPE:
|
||||
return "Profiler";
|
||||
case REACT_STRICT_MODE_TYPE:
|
||||
return "StrictMode";
|
||||
case REACT_SUSPENSE_TYPE:
|
||||
return "Suspense";
|
||||
case REACT_SUSPENSE_LIST_TYPE:
|
||||
return "SuspenseList";
|
||||
case REACT_ACTIVITY_TYPE:
|
||||
return "Activity";
|
||||
}
|
||||
if ("object" === typeof type)
|
||||
switch (
|
||||
("number" === typeof type.tag &&
|
||||
console.error(
|
||||
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
||||
),
|
||||
type.$$typeof)
|
||||
) {
|
||||
case REACT_PORTAL_TYPE:
|
||||
return "Portal";
|
||||
case REACT_CONTEXT_TYPE:
|
||||
return (type.displayName || "Context") + ".Provider";
|
||||
case REACT_CONSUMER_TYPE:
|
||||
return (type._context.displayName || "Context") + ".Consumer";
|
||||
case REACT_FORWARD_REF_TYPE:
|
||||
var innerType = type.render;
|
||||
type = type.displayName;
|
||||
type ||
|
||||
((type = innerType.displayName || innerType.name || ""),
|
||||
(type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
|
||||
return type;
|
||||
case REACT_MEMO_TYPE:
|
||||
return (
|
||||
(innerType = type.displayName || null),
|
||||
null !== innerType
|
||||
? innerType
|
||||
: getComponentNameFromType(type.type) || "Memo"
|
||||
);
|
||||
case REACT_LAZY_TYPE:
|
||||
innerType = type._payload;
|
||||
type = type._init;
|
||||
try {
|
||||
return getComponentNameFromType(type(innerType));
|
||||
} catch (x) {}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
function testStringCoercion(value) {
|
||||
return "" + value;
|
||||
}
|
||||
function checkKeyStringCoercion(value) {
|
||||
try {
|
||||
testStringCoercion(value);
|
||||
var JSCompiler_inline_result = !1;
|
||||
} catch (e) {
|
||||
JSCompiler_inline_result = !0;
|
||||
}
|
||||
if (JSCompiler_inline_result) {
|
||||
JSCompiler_inline_result = console;
|
||||
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
||||
var JSCompiler_inline_result$jscomp$0 =
|
||||
("function" === typeof Symbol &&
|
||||
Symbol.toStringTag &&
|
||||
value[Symbol.toStringTag]) ||
|
||||
value.constructor.name ||
|
||||
"Object";
|
||||
JSCompiler_temp_const.call(
|
||||
JSCompiler_inline_result,
|
||||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
||||
JSCompiler_inline_result$jscomp$0
|
||||
);
|
||||
return testStringCoercion(value);
|
||||
}
|
||||
}
|
||||
function getTaskName(type) {
|
||||
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
||||
if (
|
||||
"object" === typeof type &&
|
||||
null !== type &&
|
||||
type.$$typeof === REACT_LAZY_TYPE
|
||||
)
|
||||
return "<...>";
|
||||
try {
|
||||
var name = getComponentNameFromType(type);
|
||||
return name ? "<" + name + ">" : "<...>";
|
||||
} catch (x) {
|
||||
return "<...>";
|
||||
}
|
||||
}
|
||||
function getOwner() {
|
||||
var dispatcher = ReactSharedInternals.A;
|
||||
return null === dispatcher ? null : dispatcher.getOwner();
|
||||
}
|
||||
function UnknownOwner() {
|
||||
return Error("react-stack-top-frame");
|
||||
}
|
||||
function hasValidKey(config) {
|
||||
if (hasOwnProperty.call(config, "key")) {
|
||||
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
||||
if (getter && getter.isReactWarning) return !1;
|
||||
}
|
||||
return void 0 !== config.key;
|
||||
}
|
||||
function defineKeyPropWarningGetter(props, displayName) {
|
||||
function warnAboutAccessingKey() {
|
||||
specialPropKeyWarningShown ||
|
||||
((specialPropKeyWarningShown = !0),
|
||||
console.error(
|
||||
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
||||
displayName
|
||||
));
|
||||
}
|
||||
warnAboutAccessingKey.isReactWarning = !0;
|
||||
Object.defineProperty(props, "key", {
|
||||
get: warnAboutAccessingKey,
|
||||
configurable: !0
|
||||
});
|
||||
}
|
||||
function elementRefGetterWithDeprecationWarning() {
|
||||
var componentName = getComponentNameFromType(this.type);
|
||||
didWarnAboutElementRef[componentName] ||
|
||||
((didWarnAboutElementRef[componentName] = !0),
|
||||
console.error(
|
||||
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
||||
));
|
||||
componentName = this.props.ref;
|
||||
return void 0 !== componentName ? componentName : null;
|
||||
}
|
||||
function ReactElement(
|
||||
type,
|
||||
key,
|
||||
self,
|
||||
source,
|
||||
owner,
|
||||
props,
|
||||
debugStack,
|
||||
debugTask
|
||||
) {
|
||||
self = props.ref;
|
||||
type = {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type: type,
|
||||
key: key,
|
||||
props: props,
|
||||
_owner: owner
|
||||
};
|
||||
null !== (void 0 !== self ? self : null)
|
||||
? Object.defineProperty(type, "ref", {
|
||||
enumerable: !1,
|
||||
get: elementRefGetterWithDeprecationWarning
|
||||
})
|
||||
: Object.defineProperty(type, "ref", { enumerable: !1, value: null });
|
||||
type._store = {};
|
||||
Object.defineProperty(type._store, "validated", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: 0
|
||||
});
|
||||
Object.defineProperty(type, "_debugInfo", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: null
|
||||
});
|
||||
Object.defineProperty(type, "_debugStack", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: debugStack
|
||||
});
|
||||
Object.defineProperty(type, "_debugTask", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: debugTask
|
||||
});
|
||||
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
||||
return type;
|
||||
}
|
||||
function jsxDEVImpl(
|
||||
type,
|
||||
config,
|
||||
maybeKey,
|
||||
isStaticChildren,
|
||||
source,
|
||||
self,
|
||||
debugStack,
|
||||
debugTask
|
||||
) {
|
||||
var children = config.children;
|
||||
if (void 0 !== children)
|
||||
if (isStaticChildren)
|
||||
if (isArrayImpl(children)) {
|
||||
for (
|
||||
isStaticChildren = 0;
|
||||
isStaticChildren < children.length;
|
||||
isStaticChildren++
|
||||
)
|
||||
validateChildKeys(children[isStaticChildren]);
|
||||
Object.freeze && Object.freeze(children);
|
||||
} else
|
||||
console.error(
|
||||
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
||||
);
|
||||
else validateChildKeys(children);
|
||||
if (hasOwnProperty.call(config, "key")) {
|
||||
children = getComponentNameFromType(type);
|
||||
var keys = Object.keys(config).filter(function (k) {
|
||||
return "key" !== k;
|
||||
});
|
||||
isStaticChildren =
|
||||
0 < keys.length
|
||||
? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
|
||||
: "{key: someKey}";
|
||||
didWarnAboutKeySpread[children + isStaticChildren] ||
|
||||
((keys =
|
||||
0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
|
||||
console.error(
|
||||
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
|
||||
isStaticChildren,
|
||||
children,
|
||||
keys,
|
||||
children
|
||||
),
|
||||
(didWarnAboutKeySpread[children + isStaticChildren] = !0));
|
||||
}
|
||||
children = null;
|
||||
void 0 !== maybeKey &&
|
||||
(checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
|
||||
hasValidKey(config) &&
|
||||
(checkKeyStringCoercion(config.key), (children = "" + config.key));
|
||||
if ("key" in config) {
|
||||
maybeKey = {};
|
||||
for (var propName in config)
|
||||
"key" !== propName && (maybeKey[propName] = config[propName]);
|
||||
} else maybeKey = config;
|
||||
children &&
|
||||
defineKeyPropWarningGetter(
|
||||
maybeKey,
|
||||
"function" === typeof type
|
||||
? type.displayName || type.name || "Unknown"
|
||||
: type
|
||||
);
|
||||
return ReactElement(
|
||||
type,
|
||||
children,
|
||||
self,
|
||||
source,
|
||||
getOwner(),
|
||||
maybeKey,
|
||||
debugStack,
|
||||
debugTask
|
||||
);
|
||||
}
|
||||
function validateChildKeys(node) {
|
||||
"object" === typeof node &&
|
||||
null !== node &&
|
||||
node.$$typeof === REACT_ELEMENT_TYPE &&
|
||||
node._store &&
|
||||
(node._store.validated = 1);
|
||||
}
|
||||
var React = require("react"),
|
||||
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
||||
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
||||
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
||||
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
||||
REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
||||
Symbol.for("react.provider");
|
||||
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
||||
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
||||
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
||||
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
||||
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
||||
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
||||
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
||||
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
||||
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
||||
ReactSharedInternals =
|
||||
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
||||
hasOwnProperty = Object.prototype.hasOwnProperty,
|
||||
isArrayImpl = Array.isArray,
|
||||
createTask = console.createTask
|
||||
? console.createTask
|
||||
: function () {
|
||||
return null;
|
||||
};
|
||||
React = {
|
||||
"react-stack-bottom-frame": function (callStackForError) {
|
||||
return callStackForError();
|
||||
}
|
||||
};
|
||||
var specialPropKeyWarningShown;
|
||||
var didWarnAboutElementRef = {};
|
||||
var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind(
|
||||
React,
|
||||
UnknownOwner
|
||||
)();
|
||||
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
||||
var didWarnAboutKeySpread = {};
|
||||
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||
exports.jsxDEV = function (
|
||||
type,
|
||||
config,
|
||||
maybeKey,
|
||||
isStaticChildren,
|
||||
source,
|
||||
self
|
||||
) {
|
||||
var trackActualOwner =
|
||||
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
||||
return jsxDEVImpl(
|
||||
type,
|
||||
config,
|
||||
maybeKey,
|
||||
isStaticChildren,
|
||||
source,
|
||||
self,
|
||||
trackActualOwner
|
||||
? Error("react-stack-top-frame")
|
||||
: unknownOwnerDebugStack,
|
||||
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
||||
);
|
||||
};
|
||||
})();
|
||||
@@ -1,14 +0,0 @@
|
||||
/**
|
||||
* @license React
|
||||
* react-jsx-dev-runtime.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
||||
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||
exports.jsxDEV = void 0;
|
||||
@@ -1,14 +0,0 @@
|
||||
/**
|
||||
* @license React
|
||||
* react-jsx-dev-runtime.profiling.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
||||
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||
exports.jsxDEV = void 0;
|
||||
@@ -1,385 +0,0 @@
|
||||
/**
|
||||
* @license React
|
||||
* react-jsx-dev-runtime.react-server.development.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
"production" !== process.env.NODE_ENV &&
|
||||
(function () {
|
||||
function getComponentNameFromType(type) {
|
||||
if (null == type) return null;
|
||||
if ("function" === typeof type)
|
||||
return type.$$typeof === REACT_CLIENT_REFERENCE
|
||||
? null
|
||||
: type.displayName || type.name || null;
|
||||
if ("string" === typeof type) return type;
|
||||
switch (type) {
|
||||
case REACT_FRAGMENT_TYPE:
|
||||
return "Fragment";
|
||||
case REACT_PROFILER_TYPE:
|
||||
return "Profiler";
|
||||
case REACT_STRICT_MODE_TYPE:
|
||||
return "StrictMode";
|
||||
case REACT_SUSPENSE_TYPE:
|
||||
return "Suspense";
|
||||
case REACT_SUSPENSE_LIST_TYPE:
|
||||
return "SuspenseList";
|
||||
case REACT_ACTIVITY_TYPE:
|
||||
return "Activity";
|
||||
}
|
||||
if ("object" === typeof type)
|
||||
switch (
|
||||
("number" === typeof type.tag &&
|
||||
console.error(
|
||||
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
||||
),
|
||||
type.$$typeof)
|
||||
) {
|
||||
case REACT_PORTAL_TYPE:
|
||||
return "Portal";
|
||||
case REACT_CONTEXT_TYPE:
|
||||
return (type.displayName || "Context") + ".Provider";
|
||||
case REACT_CONSUMER_TYPE:
|
||||
return (type._context.displayName || "Context") + ".Consumer";
|
||||
case REACT_FORWARD_REF_TYPE:
|
||||
var innerType = type.render;
|
||||
type = type.displayName;
|
||||
type ||
|
||||
((type = innerType.displayName || innerType.name || ""),
|
||||
(type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
|
||||
return type;
|
||||
case REACT_MEMO_TYPE:
|
||||
return (
|
||||
(innerType = type.displayName || null),
|
||||
null !== innerType
|
||||
? innerType
|
||||
: getComponentNameFromType(type.type) || "Memo"
|
||||
);
|
||||
case REACT_LAZY_TYPE:
|
||||
innerType = type._payload;
|
||||
type = type._init;
|
||||
try {
|
||||
return getComponentNameFromType(type(innerType));
|
||||
} catch (x) {}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
function testStringCoercion(value) {
|
||||
return "" + value;
|
||||
}
|
||||
function checkKeyStringCoercion(value) {
|
||||
try {
|
||||
testStringCoercion(value);
|
||||
var JSCompiler_inline_result = !1;
|
||||
} catch (e) {
|
||||
JSCompiler_inline_result = !0;
|
||||
}
|
||||
if (JSCompiler_inline_result) {
|
||||
JSCompiler_inline_result = console;
|
||||
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
||||
var JSCompiler_inline_result$jscomp$0 =
|
||||
("function" === typeof Symbol &&
|
||||
Symbol.toStringTag &&
|
||||
value[Symbol.toStringTag]) ||
|
||||
value.constructor.name ||
|
||||
"Object";
|
||||
JSCompiler_temp_const.call(
|
||||
JSCompiler_inline_result,
|
||||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
||||
JSCompiler_inline_result$jscomp$0
|
||||
);
|
||||
return testStringCoercion(value);
|
||||
}
|
||||
}
|
||||
function getTaskName(type) {
|
||||
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
||||
if (
|
||||
"object" === typeof type &&
|
||||
null !== type &&
|
||||
type.$$typeof === REACT_LAZY_TYPE
|
||||
)
|
||||
return "<...>";
|
||||
try {
|
||||
var name = getComponentNameFromType(type);
|
||||
return name ? "<" + name + ">" : "<...>";
|
||||
} catch (x) {
|
||||
return "<...>";
|
||||
}
|
||||
}
|
||||
function getOwner() {
|
||||
var dispatcher = ReactSharedInternalsServer.A;
|
||||
return null === dispatcher ? null : dispatcher.getOwner();
|
||||
}
|
||||
function UnknownOwner() {
|
||||
return Error("react-stack-top-frame");
|
||||
}
|
||||
function hasValidKey(config) {
|
||||
if (hasOwnProperty.call(config, "key")) {
|
||||
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
||||
if (getter && getter.isReactWarning) return !1;
|
||||
}
|
||||
return void 0 !== config.key;
|
||||
}
|
||||
function defineKeyPropWarningGetter(props, displayName) {
|
||||
function warnAboutAccessingKey() {
|
||||
specialPropKeyWarningShown ||
|
||||
((specialPropKeyWarningShown = !0),
|
||||
console.error(
|
||||
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
||||
displayName
|
||||
));
|
||||
}
|
||||
warnAboutAccessingKey.isReactWarning = !0;
|
||||
Object.defineProperty(props, "key", {
|
||||
get: warnAboutAccessingKey,
|
||||
configurable: !0
|
||||
});
|
||||
}
|
||||
function elementRefGetterWithDeprecationWarning() {
|
||||
var componentName = getComponentNameFromType(this.type);
|
||||
didWarnAboutElementRef[componentName] ||
|
||||
((didWarnAboutElementRef[componentName] = !0),
|
||||
console.error(
|
||||
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
||||
));
|
||||
componentName = this.props.ref;
|
||||
return void 0 !== componentName ? componentName : null;
|
||||
}
|
||||
function ReactElement(
|
||||
type,
|
||||
key,
|
||||
self,
|
||||
source,
|
||||
owner,
|
||||
props,
|
||||
debugStack,
|
||||
debugTask
|
||||
) {
|
||||
self = props.ref;
|
||||
type = {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type: type,
|
||||
key: key,
|
||||
props: props,
|
||||
_owner: owner
|
||||
};
|
||||
null !== (void 0 !== self ? self : null)
|
||||
? Object.defineProperty(type, "ref", {
|
||||
enumerable: !1,
|
||||
get: elementRefGetterWithDeprecationWarning
|
||||
})
|
||||
: Object.defineProperty(type, "ref", { enumerable: !1, value: null });
|
||||
type._store = {};
|
||||
Object.defineProperty(type._store, "validated", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: 0
|
||||
});
|
||||
Object.defineProperty(type, "_debugInfo", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: null
|
||||
});
|
||||
Object.defineProperty(type, "_debugStack", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: debugStack
|
||||
});
|
||||
Object.defineProperty(type, "_debugTask", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: debugTask
|
||||
});
|
||||
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
||||
return type;
|
||||
}
|
||||
function jsxDEVImpl(
|
||||
type,
|
||||
config,
|
||||
maybeKey,
|
||||
isStaticChildren,
|
||||
source,
|
||||
self,
|
||||
debugStack,
|
||||
debugTask
|
||||
) {
|
||||
var children = config.children;
|
||||
if (void 0 !== children)
|
||||
if (isStaticChildren)
|
||||
if (isArrayImpl(children)) {
|
||||
for (
|
||||
isStaticChildren = 0;
|
||||
isStaticChildren < children.length;
|
||||
isStaticChildren++
|
||||
)
|
||||
validateChildKeys(children[isStaticChildren]);
|
||||
Object.freeze && Object.freeze(children);
|
||||
} else
|
||||
console.error(
|
||||
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
||||
);
|
||||
else validateChildKeys(children);
|
||||
if (hasOwnProperty.call(config, "key")) {
|
||||
children = getComponentNameFromType(type);
|
||||
var keys = Object.keys(config).filter(function (k) {
|
||||
return "key" !== k;
|
||||
});
|
||||
isStaticChildren =
|
||||
0 < keys.length
|
||||
? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
|
||||
: "{key: someKey}";
|
||||
didWarnAboutKeySpread[children + isStaticChildren] ||
|
||||
((keys =
|
||||
0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
|
||||
console.error(
|
||||
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
|
||||
isStaticChildren,
|
||||
children,
|
||||
keys,
|
||||
children
|
||||
),
|
||||
(didWarnAboutKeySpread[children + isStaticChildren] = !0));
|
||||
}
|
||||
children = null;
|
||||
void 0 !== maybeKey &&
|
||||
(checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
|
||||
hasValidKey(config) &&
|
||||
(checkKeyStringCoercion(config.key), (children = "" + config.key));
|
||||
if ("key" in config) {
|
||||
maybeKey = {};
|
||||
for (var propName in config)
|
||||
"key" !== propName && (maybeKey[propName] = config[propName]);
|
||||
} else maybeKey = config;
|
||||
children &&
|
||||
defineKeyPropWarningGetter(
|
||||
maybeKey,
|
||||
"function" === typeof type
|
||||
? type.displayName || type.name || "Unknown"
|
||||
: type
|
||||
);
|
||||
return ReactElement(
|
||||
type,
|
||||
children,
|
||||
self,
|
||||
source,
|
||||
getOwner(),
|
||||
maybeKey,
|
||||
debugStack,
|
||||
debugTask
|
||||
);
|
||||
}
|
||||
function validateChildKeys(node) {
|
||||
"object" === typeof node &&
|
||||
null !== node &&
|
||||
node.$$typeof === REACT_ELEMENT_TYPE &&
|
||||
node._store &&
|
||||
(node._store.validated = 1);
|
||||
}
|
||||
var React = require("react"),
|
||||
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
||||
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
||||
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
||||
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
||||
REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
||||
Symbol.for("react.provider");
|
||||
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
||||
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
||||
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
||||
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
||||
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
||||
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
||||
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
||||
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
||||
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
||||
ReactSharedInternalsServer =
|
||||
React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
||||
if (!ReactSharedInternalsServer)
|
||||
throw Error(
|
||||
'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
|
||||
);
|
||||
var hasOwnProperty = Object.prototype.hasOwnProperty,
|
||||
isArrayImpl = Array.isArray,
|
||||
createTask = console.createTask
|
||||
? console.createTask
|
||||
: function () {
|
||||
return null;
|
||||
};
|
||||
React = {
|
||||
"react-stack-bottom-frame": function (callStackForError) {
|
||||
return callStackForError();
|
||||
}
|
||||
};
|
||||
var specialPropKeyWarningShown;
|
||||
var didWarnAboutElementRef = {};
|
||||
var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind(
|
||||
React,
|
||||
UnknownOwner
|
||||
)();
|
||||
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
||||
var didWarnAboutKeySpread = {};
|
||||
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||
exports.jsx = function (type, config, maybeKey, source, self) {
|
||||
var trackActualOwner =
|
||||
1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++;
|
||||
return jsxDEVImpl(
|
||||
type,
|
||||
config,
|
||||
maybeKey,
|
||||
!1,
|
||||
source,
|
||||
self,
|
||||
trackActualOwner
|
||||
? Error("react-stack-top-frame")
|
||||
: unknownOwnerDebugStack,
|
||||
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
||||
);
|
||||
};
|
||||
exports.jsxDEV = function (
|
||||
type,
|
||||
config,
|
||||
maybeKey,
|
||||
isStaticChildren,
|
||||
source,
|
||||
self
|
||||
) {
|
||||
var trackActualOwner =
|
||||
1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++;
|
||||
return jsxDEVImpl(
|
||||
type,
|
||||
config,
|
||||
maybeKey,
|
||||
isStaticChildren,
|
||||
source,
|
||||
self,
|
||||
trackActualOwner
|
||||
? Error("react-stack-top-frame")
|
||||
: unknownOwnerDebugStack,
|
||||
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
||||
);
|
||||
};
|
||||
exports.jsxs = function (type, config, maybeKey, source, self) {
|
||||
var trackActualOwner =
|
||||
1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++;
|
||||
return jsxDEVImpl(
|
||||
type,
|
||||
config,
|
||||
maybeKey,
|
||||
!0,
|
||||
source,
|
||||
self,
|
||||
trackActualOwner
|
||||
? Error("react-stack-top-frame")
|
||||
: unknownOwnerDebugStack,
|
||||
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
||||
);
|
||||
};
|
||||
})();
|
||||
@@ -1,40 +0,0 @@
|
||||
/**
|
||||
* @license React
|
||||
* react-jsx-dev-runtime.react-server.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
var React = require("react"),
|
||||
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
||||
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
||||
if (!React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)
|
||||
throw Error(
|
||||
'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
|
||||
);
|
||||
function jsxProd(type, config, maybeKey) {
|
||||
var key = null;
|
||||
void 0 !== maybeKey && (key = "" + maybeKey);
|
||||
void 0 !== config.key && (key = "" + config.key);
|
||||
if ("key" in config) {
|
||||
maybeKey = {};
|
||||
for (var propName in config)
|
||||
"key" !== propName && (maybeKey[propName] = config[propName]);
|
||||
} else maybeKey = config;
|
||||
config = maybeKey.ref;
|
||||
return {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type: type,
|
||||
key: key,
|
||||
ref: void 0 !== config ? config : null,
|
||||
props: maybeKey
|
||||
};
|
||||
}
|
||||
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||
exports.jsx = jsxProd;
|
||||
exports.jsxDEV = void 0;
|
||||
exports.jsxs = jsxProd;
|
||||
@@ -1,358 +0,0 @@
|
||||
/**
|
||||
* @license React
|
||||
* react-jsx-runtime.development.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
"production" !== process.env.NODE_ENV &&
|
||||
(function () {
|
||||
function getComponentNameFromType(type) {
|
||||
if (null == type) return null;
|
||||
if ("function" === typeof type)
|
||||
return type.$$typeof === REACT_CLIENT_REFERENCE
|
||||
? null
|
||||
: type.displayName || type.name || null;
|
||||
if ("string" === typeof type) return type;
|
||||
switch (type) {
|
||||
case REACT_FRAGMENT_TYPE:
|
||||
return "Fragment";
|
||||
case REACT_PROFILER_TYPE:
|
||||
return "Profiler";
|
||||
case REACT_STRICT_MODE_TYPE:
|
||||
return "StrictMode";
|
||||
case REACT_SUSPENSE_TYPE:
|
||||
return "Suspense";
|
||||
case REACT_SUSPENSE_LIST_TYPE:
|
||||
return "SuspenseList";
|
||||
case REACT_ACTIVITY_TYPE:
|
||||
return "Activity";
|
||||
}
|
||||
if ("object" === typeof type)
|
||||
switch (
|
||||
("number" === typeof type.tag &&
|
||||
console.error(
|
||||
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
||||
),
|
||||
type.$$typeof)
|
||||
) {
|
||||
case REACT_PORTAL_TYPE:
|
||||
return "Portal";
|
||||
case REACT_CONTEXT_TYPE:
|
||||
return (type.displayName || "Context") + ".Provider";
|
||||
case REACT_CONSUMER_TYPE:
|
||||
return (type._context.displayName || "Context") + ".Consumer";
|
||||
case REACT_FORWARD_REF_TYPE:
|
||||
var innerType = type.render;
|
||||
type = type.displayName;
|
||||
type ||
|
||||
((type = innerType.displayName || innerType.name || ""),
|
||||
(type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
|
||||
return type;
|
||||
case REACT_MEMO_TYPE:
|
||||
return (
|
||||
(innerType = type.displayName || null),
|
||||
null !== innerType
|
||||
? innerType
|
||||
: getComponentNameFromType(type.type) || "Memo"
|
||||
);
|
||||
case REACT_LAZY_TYPE:
|
||||
innerType = type._payload;
|
||||
type = type._init;
|
||||
try {
|
||||
return getComponentNameFromType(type(innerType));
|
||||
} catch (x) {}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
function testStringCoercion(value) {
|
||||
return "" + value;
|
||||
}
|
||||
function checkKeyStringCoercion(value) {
|
||||
try {
|
||||
testStringCoercion(value);
|
||||
var JSCompiler_inline_result = !1;
|
||||
} catch (e) {
|
||||
JSCompiler_inline_result = !0;
|
||||
}
|
||||
if (JSCompiler_inline_result) {
|
||||
JSCompiler_inline_result = console;
|
||||
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
||||
var JSCompiler_inline_result$jscomp$0 =
|
||||
("function" === typeof Symbol &&
|
||||
Symbol.toStringTag &&
|
||||
value[Symbol.toStringTag]) ||
|
||||
value.constructor.name ||
|
||||
"Object";
|
||||
JSCompiler_temp_const.call(
|
||||
JSCompiler_inline_result,
|
||||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
||||
JSCompiler_inline_result$jscomp$0
|
||||
);
|
||||
return testStringCoercion(value);
|
||||
}
|
||||
}
|
||||
function getTaskName(type) {
|
||||
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
||||
if (
|
||||
"object" === typeof type &&
|
||||
null !== type &&
|
||||
type.$$typeof === REACT_LAZY_TYPE
|
||||
)
|
||||
return "<...>";
|
||||
try {
|
||||
var name = getComponentNameFromType(type);
|
||||
return name ? "<" + name + ">" : "<...>";
|
||||
} catch (x) {
|
||||
return "<...>";
|
||||
}
|
||||
}
|
||||
function getOwner() {
|
||||
var dispatcher = ReactSharedInternals.A;
|
||||
return null === dispatcher ? null : dispatcher.getOwner();
|
||||
}
|
||||
function UnknownOwner() {
|
||||
return Error("react-stack-top-frame");
|
||||
}
|
||||
function hasValidKey(config) {
|
||||
if (hasOwnProperty.call(config, "key")) {
|
||||
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
||||
if (getter && getter.isReactWarning) return !1;
|
||||
}
|
||||
return void 0 !== config.key;
|
||||
}
|
||||
function defineKeyPropWarningGetter(props, displayName) {
|
||||
function warnAboutAccessingKey() {
|
||||
specialPropKeyWarningShown ||
|
||||
((specialPropKeyWarningShown = !0),
|
||||
console.error(
|
||||
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
||||
displayName
|
||||
));
|
||||
}
|
||||
warnAboutAccessingKey.isReactWarning = !0;
|
||||
Object.defineProperty(props, "key", {
|
||||
get: warnAboutAccessingKey,
|
||||
configurable: !0
|
||||
});
|
||||
}
|
||||
function elementRefGetterWithDeprecationWarning() {
|
||||
var componentName = getComponentNameFromType(this.type);
|
||||
didWarnAboutElementRef[componentName] ||
|
||||
((didWarnAboutElementRef[componentName] = !0),
|
||||
console.error(
|
||||
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
||||
));
|
||||
componentName = this.props.ref;
|
||||
return void 0 !== componentName ? componentName : null;
|
||||
}
|
||||
function ReactElement(
|
||||
type,
|
||||
key,
|
||||
self,
|
||||
source,
|
||||
owner,
|
||||
props,
|
||||
debugStack,
|
||||
debugTask
|
||||
) {
|
||||
self = props.ref;
|
||||
type = {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type: type,
|
||||
key: key,
|
||||
props: props,
|
||||
_owner: owner
|
||||
};
|
||||
null !== (void 0 !== self ? self : null)
|
||||
? Object.defineProperty(type, "ref", {
|
||||
enumerable: !1,
|
||||
get: elementRefGetterWithDeprecationWarning
|
||||
})
|
||||
: Object.defineProperty(type, "ref", { enumerable: !1, value: null });
|
||||
type._store = {};
|
||||
Object.defineProperty(type._store, "validated", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: 0
|
||||
});
|
||||
Object.defineProperty(type, "_debugInfo", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: null
|
||||
});
|
||||
Object.defineProperty(type, "_debugStack", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: debugStack
|
||||
});
|
||||
Object.defineProperty(type, "_debugTask", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: debugTask
|
||||
});
|
||||
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
||||
return type;
|
||||
}
|
||||
function jsxDEVImpl(
|
||||
type,
|
||||
config,
|
||||
maybeKey,
|
||||
isStaticChildren,
|
||||
source,
|
||||
self,
|
||||
debugStack,
|
||||
debugTask
|
||||
) {
|
||||
var children = config.children;
|
||||
if (void 0 !== children)
|
||||
if (isStaticChildren)
|
||||
if (isArrayImpl(children)) {
|
||||
for (
|
||||
isStaticChildren = 0;
|
||||
isStaticChildren < children.length;
|
||||
isStaticChildren++
|
||||
)
|
||||
validateChildKeys(children[isStaticChildren]);
|
||||
Object.freeze && Object.freeze(children);
|
||||
} else
|
||||
console.error(
|
||||
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
||||
);
|
||||
else validateChildKeys(children);
|
||||
if (hasOwnProperty.call(config, "key")) {
|
||||
children = getComponentNameFromType(type);
|
||||
var keys = Object.keys(config).filter(function (k) {
|
||||
return "key" !== k;
|
||||
});
|
||||
isStaticChildren =
|
||||
0 < keys.length
|
||||
? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
|
||||
: "{key: someKey}";
|
||||
didWarnAboutKeySpread[children + isStaticChildren] ||
|
||||
((keys =
|
||||
0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
|
||||
console.error(
|
||||
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
|
||||
isStaticChildren,
|
||||
children,
|
||||
keys,
|
||||
children
|
||||
),
|
||||
(didWarnAboutKeySpread[children + isStaticChildren] = !0));
|
||||
}
|
||||
children = null;
|
||||
void 0 !== maybeKey &&
|
||||
(checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
|
||||
hasValidKey(config) &&
|
||||
(checkKeyStringCoercion(config.key), (children = "" + config.key));
|
||||
if ("key" in config) {
|
||||
maybeKey = {};
|
||||
for (var propName in config)
|
||||
"key" !== propName && (maybeKey[propName] = config[propName]);
|
||||
} else maybeKey = config;
|
||||
children &&
|
||||
defineKeyPropWarningGetter(
|
||||
maybeKey,
|
||||
"function" === typeof type
|
||||
? type.displayName || type.name || "Unknown"
|
||||
: type
|
||||
);
|
||||
return ReactElement(
|
||||
type,
|
||||
children,
|
||||
self,
|
||||
source,
|
||||
getOwner(),
|
||||
maybeKey,
|
||||
debugStack,
|
||||
debugTask
|
||||
);
|
||||
}
|
||||
function validateChildKeys(node) {
|
||||
"object" === typeof node &&
|
||||
null !== node &&
|
||||
node.$$typeof === REACT_ELEMENT_TYPE &&
|
||||
node._store &&
|
||||
(node._store.validated = 1);
|
||||
}
|
||||
var React = require("react"),
|
||||
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
||||
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
||||
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
||||
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
||||
REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
||||
Symbol.for("react.provider");
|
||||
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
||||
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
||||
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
||||
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
||||
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
||||
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
||||
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
||||
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
||||
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
||||
ReactSharedInternals =
|
||||
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
||||
hasOwnProperty = Object.prototype.hasOwnProperty,
|
||||
isArrayImpl = Array.isArray,
|
||||
createTask = console.createTask
|
||||
? console.createTask
|
||||
: function () {
|
||||
return null;
|
||||
};
|
||||
React = {
|
||||
"react-stack-bottom-frame": function (callStackForError) {
|
||||
return callStackForError();
|
||||
}
|
||||
};
|
||||
var specialPropKeyWarningShown;
|
||||
var didWarnAboutElementRef = {};
|
||||
var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind(
|
||||
React,
|
||||
UnknownOwner
|
||||
)();
|
||||
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
||||
var didWarnAboutKeySpread = {};
|
||||
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||
exports.jsx = function (type, config, maybeKey, source, self) {
|
||||
var trackActualOwner =
|
||||
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
||||
return jsxDEVImpl(
|
||||
type,
|
||||
config,
|
||||
maybeKey,
|
||||
!1,
|
||||
source,
|
||||
self,
|
||||
trackActualOwner
|
||||
? Error("react-stack-top-frame")
|
||||
: unknownOwnerDebugStack,
|
||||
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
||||
);
|
||||
};
|
||||
exports.jsxs = function (type, config, maybeKey, source, self) {
|
||||
var trackActualOwner =
|
||||
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
||||
return jsxDEVImpl(
|
||||
type,
|
||||
config,
|
||||
maybeKey,
|
||||
!0,
|
||||
source,
|
||||
self,
|
||||
trackActualOwner
|
||||
? Error("react-stack-top-frame")
|
||||
: unknownOwnerDebugStack,
|
||||
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
||||
);
|
||||
};
|
||||
})();
|
||||
@@ -1,34 +0,0 @@
|
||||
/**
|
||||
* @license React
|
||||
* react-jsx-runtime.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
||||
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
||||
function jsxProd(type, config, maybeKey) {
|
||||
var key = null;
|
||||
void 0 !== maybeKey && (key = "" + maybeKey);
|
||||
void 0 !== config.key && (key = "" + config.key);
|
||||
if ("key" in config) {
|
||||
maybeKey = {};
|
||||
for (var propName in config)
|
||||
"key" !== propName && (maybeKey[propName] = config[propName]);
|
||||
} else maybeKey = config;
|
||||
config = maybeKey.ref;
|
||||
return {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type: type,
|
||||
key: key,
|
||||
ref: void 0 !== config ? config : null,
|
||||
props: maybeKey
|
||||
};
|
||||
}
|
||||
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||
exports.jsx = jsxProd;
|
||||
exports.jsxs = jsxProd;
|
||||
@@ -1,34 +0,0 @@
|
||||
/**
|
||||
* @license React
|
||||
* react-jsx-runtime.profiling.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
||||
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
||||
function jsxProd(type, config, maybeKey) {
|
||||
var key = null;
|
||||
void 0 !== maybeKey && (key = "" + maybeKey);
|
||||
void 0 !== config.key && (key = "" + config.key);
|
||||
if ("key" in config) {
|
||||
maybeKey = {};
|
||||
for (var propName in config)
|
||||
"key" !== propName && (maybeKey[propName] = config[propName]);
|
||||
} else maybeKey = config;
|
||||
config = maybeKey.ref;
|
||||
return {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type: type,
|
||||
key: key,
|
||||
ref: void 0 !== config ? config : null,
|
||||
props: maybeKey
|
||||
};
|
||||
}
|
||||
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||
exports.jsx = jsxProd;
|
||||
exports.jsxs = jsxProd;
|
||||
@@ -1,385 +0,0 @@
|
||||
/**
|
||||
* @license React
|
||||
* react-jsx-runtime.react-server.development.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
"production" !== process.env.NODE_ENV &&
|
||||
(function () {
|
||||
function getComponentNameFromType(type) {
|
||||
if (null == type) return null;
|
||||
if ("function" === typeof type)
|
||||
return type.$$typeof === REACT_CLIENT_REFERENCE
|
||||
? null
|
||||
: type.displayName || type.name || null;
|
||||
if ("string" === typeof type) return type;
|
||||
switch (type) {
|
||||
case REACT_FRAGMENT_TYPE:
|
||||
return "Fragment";
|
||||
case REACT_PROFILER_TYPE:
|
||||
return "Profiler";
|
||||
case REACT_STRICT_MODE_TYPE:
|
||||
return "StrictMode";
|
||||
case REACT_SUSPENSE_TYPE:
|
||||
return "Suspense";
|
||||
case REACT_SUSPENSE_LIST_TYPE:
|
||||
return "SuspenseList";
|
||||
case REACT_ACTIVITY_TYPE:
|
||||
return "Activity";
|
||||
}
|
||||
if ("object" === typeof type)
|
||||
switch (
|
||||
("number" === typeof type.tag &&
|
||||
console.error(
|
||||
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
||||
),
|
||||
type.$$typeof)
|
||||
) {
|
||||
case REACT_PORTAL_TYPE:
|
||||
return "Portal";
|
||||
case REACT_CONTEXT_TYPE:
|
||||
return (type.displayName || "Context") + ".Provider";
|
||||
case REACT_CONSUMER_TYPE:
|
||||
return (type._context.displayName || "Context") + ".Consumer";
|
||||
case REACT_FORWARD_REF_TYPE:
|
||||
var innerType = type.render;
|
||||
type = type.displayName;
|
||||
type ||
|
||||
((type = innerType.displayName || innerType.name || ""),
|
||||
(type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
|
||||
return type;
|
||||
case REACT_MEMO_TYPE:
|
||||
return (
|
||||
(innerType = type.displayName || null),
|
||||
null !== innerType
|
||||
? innerType
|
||||
: getComponentNameFromType(type.type) || "Memo"
|
||||
);
|
||||
case REACT_LAZY_TYPE:
|
||||
innerType = type._payload;
|
||||
type = type._init;
|
||||
try {
|
||||
return getComponentNameFromType(type(innerType));
|
||||
} catch (x) {}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
function testStringCoercion(value) {
|
||||
return "" + value;
|
||||
}
|
||||
function checkKeyStringCoercion(value) {
|
||||
try {
|
||||
testStringCoercion(value);
|
||||
var JSCompiler_inline_result = !1;
|
||||
} catch (e) {
|
||||
JSCompiler_inline_result = !0;
|
||||
}
|
||||
if (JSCompiler_inline_result) {
|
||||
JSCompiler_inline_result = console;
|
||||
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
||||
var JSCompiler_inline_result$jscomp$0 =
|
||||
("function" === typeof Symbol &&
|
||||
Symbol.toStringTag &&
|
||||
value[Symbol.toStringTag]) ||
|
||||
value.constructor.name ||
|
||||
"Object";
|
||||
JSCompiler_temp_const.call(
|
||||
JSCompiler_inline_result,
|
||||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
||||
JSCompiler_inline_result$jscomp$0
|
||||
);
|
||||
return testStringCoercion(value);
|
||||
}
|
||||
}
|
||||
function getTaskName(type) {
|
||||
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
||||
if (
|
||||
"object" === typeof type &&
|
||||
null !== type &&
|
||||
type.$$typeof === REACT_LAZY_TYPE
|
||||
)
|
||||
return "<...>";
|
||||
try {
|
||||
var name = getComponentNameFromType(type);
|
||||
return name ? "<" + name + ">" : "<...>";
|
||||
} catch (x) {
|
||||
return "<...>";
|
||||
}
|
||||
}
|
||||
function getOwner() {
|
||||
var dispatcher = ReactSharedInternalsServer.A;
|
||||
return null === dispatcher ? null : dispatcher.getOwner();
|
||||
}
|
||||
function UnknownOwner() {
|
||||
return Error("react-stack-top-frame");
|
||||
}
|
||||
function hasValidKey(config) {
|
||||
if (hasOwnProperty.call(config, "key")) {
|
||||
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
||||
if (getter && getter.isReactWarning) return !1;
|
||||
}
|
||||
return void 0 !== config.key;
|
||||
}
|
||||
function defineKeyPropWarningGetter(props, displayName) {
|
||||
function warnAboutAccessingKey() {
|
||||
specialPropKeyWarningShown ||
|
||||
((specialPropKeyWarningShown = !0),
|
||||
console.error(
|
||||
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
||||
displayName
|
||||
));
|
||||
}
|
||||
warnAboutAccessingKey.isReactWarning = !0;
|
||||
Object.defineProperty(props, "key", {
|
||||
get: warnAboutAccessingKey,
|
||||
configurable: !0
|
||||
});
|
||||
}
|
||||
function elementRefGetterWithDeprecationWarning() {
|
||||
var componentName = getComponentNameFromType(this.type);
|
||||
didWarnAboutElementRef[componentName] ||
|
||||
((didWarnAboutElementRef[componentName] = !0),
|
||||
console.error(
|
||||
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
||||
));
|
||||
componentName = this.props.ref;
|
||||
return void 0 !== componentName ? componentName : null;
|
||||
}
|
||||
function ReactElement(
|
||||
type,
|
||||
key,
|
||||
self,
|
||||
source,
|
||||
owner,
|
||||
props,
|
||||
debugStack,
|
||||
debugTask
|
||||
) {
|
||||
self = props.ref;
|
||||
type = {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type: type,
|
||||
key: key,
|
||||
props: props,
|
||||
_owner: owner
|
||||
};
|
||||
null !== (void 0 !== self ? self : null)
|
||||
? Object.defineProperty(type, "ref", {
|
||||
enumerable: !1,
|
||||
get: elementRefGetterWithDeprecationWarning
|
||||
})
|
||||
: Object.defineProperty(type, "ref", { enumerable: !1, value: null });
|
||||
type._store = {};
|
||||
Object.defineProperty(type._store, "validated", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: 0
|
||||
});
|
||||
Object.defineProperty(type, "_debugInfo", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: null
|
||||
});
|
||||
Object.defineProperty(type, "_debugStack", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: debugStack
|
||||
});
|
||||
Object.defineProperty(type, "_debugTask", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: debugTask
|
||||
});
|
||||
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
||||
return type;
|
||||
}
|
||||
function jsxDEVImpl(
|
||||
type,
|
||||
config,
|
||||
maybeKey,
|
||||
isStaticChildren,
|
||||
source,
|
||||
self,
|
||||
debugStack,
|
||||
debugTask
|
||||
) {
|
||||
var children = config.children;
|
||||
if (void 0 !== children)
|
||||
if (isStaticChildren)
|
||||
if (isArrayImpl(children)) {
|
||||
for (
|
||||
isStaticChildren = 0;
|
||||
isStaticChildren < children.length;
|
||||
isStaticChildren++
|
||||
)
|
||||
validateChildKeys(children[isStaticChildren]);
|
||||
Object.freeze && Object.freeze(children);
|
||||
} else
|
||||
console.error(
|
||||
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
||||
);
|
||||
else validateChildKeys(children);
|
||||
if (hasOwnProperty.call(config, "key")) {
|
||||
children = getComponentNameFromType(type);
|
||||
var keys = Object.keys(config).filter(function (k) {
|
||||
return "key" !== k;
|
||||
});
|
||||
isStaticChildren =
|
||||
0 < keys.length
|
||||
? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
|
||||
: "{key: someKey}";
|
||||
didWarnAboutKeySpread[children + isStaticChildren] ||
|
||||
((keys =
|
||||
0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
|
||||
console.error(
|
||||
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
|
||||
isStaticChildren,
|
||||
children,
|
||||
keys,
|
||||
children
|
||||
),
|
||||
(didWarnAboutKeySpread[children + isStaticChildren] = !0));
|
||||
}
|
||||
children = null;
|
||||
void 0 !== maybeKey &&
|
||||
(checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
|
||||
hasValidKey(config) &&
|
||||
(checkKeyStringCoercion(config.key), (children = "" + config.key));
|
||||
if ("key" in config) {
|
||||
maybeKey = {};
|
||||
for (var propName in config)
|
||||
"key" !== propName && (maybeKey[propName] = config[propName]);
|
||||
} else maybeKey = config;
|
||||
children &&
|
||||
defineKeyPropWarningGetter(
|
||||
maybeKey,
|
||||
"function" === typeof type
|
||||
? type.displayName || type.name || "Unknown"
|
||||
: type
|
||||
);
|
||||
return ReactElement(
|
||||
type,
|
||||
children,
|
||||
self,
|
||||
source,
|
||||
getOwner(),
|
||||
maybeKey,
|
||||
debugStack,
|
||||
debugTask
|
||||
);
|
||||
}
|
||||
function validateChildKeys(node) {
|
||||
"object" === typeof node &&
|
||||
null !== node &&
|
||||
node.$$typeof === REACT_ELEMENT_TYPE &&
|
||||
node._store &&
|
||||
(node._store.validated = 1);
|
||||
}
|
||||
var React = require("react"),
|
||||
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
||||
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
||||
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
||||
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
||||
REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
||||
Symbol.for("react.provider");
|
||||
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
||||
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
||||
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
||||
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
||||
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
||||
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
||||
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
||||
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
||||
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
||||
ReactSharedInternalsServer =
|
||||
React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
||||
if (!ReactSharedInternalsServer)
|
||||
throw Error(
|
||||
'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
|
||||
);
|
||||
var hasOwnProperty = Object.prototype.hasOwnProperty,
|
||||
isArrayImpl = Array.isArray,
|
||||
createTask = console.createTask
|
||||
? console.createTask
|
||||
: function () {
|
||||
return null;
|
||||
};
|
||||
React = {
|
||||
"react-stack-bottom-frame": function (callStackForError) {
|
||||
return callStackForError();
|
||||
}
|
||||
};
|
||||
var specialPropKeyWarningShown;
|
||||
var didWarnAboutElementRef = {};
|
||||
var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind(
|
||||
React,
|
||||
UnknownOwner
|
||||
)();
|
||||
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
||||
var didWarnAboutKeySpread = {};
|
||||
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||
exports.jsx = function (type, config, maybeKey, source, self) {
|
||||
var trackActualOwner =
|
||||
1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++;
|
||||
return jsxDEVImpl(
|
||||
type,
|
||||
config,
|
||||
maybeKey,
|
||||
!1,
|
||||
source,
|
||||
self,
|
||||
trackActualOwner
|
||||
? Error("react-stack-top-frame")
|
||||
: unknownOwnerDebugStack,
|
||||
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
||||
);
|
||||
};
|
||||
exports.jsxDEV = function (
|
||||
type,
|
||||
config,
|
||||
maybeKey,
|
||||
isStaticChildren,
|
||||
source,
|
||||
self
|
||||
) {
|
||||
var trackActualOwner =
|
||||
1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++;
|
||||
return jsxDEVImpl(
|
||||
type,
|
||||
config,
|
||||
maybeKey,
|
||||
isStaticChildren,
|
||||
source,
|
||||
self,
|
||||
trackActualOwner
|
||||
? Error("react-stack-top-frame")
|
||||
: unknownOwnerDebugStack,
|
||||
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
||||
);
|
||||
};
|
||||
exports.jsxs = function (type, config, maybeKey, source, self) {
|
||||
var trackActualOwner =
|
||||
1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++;
|
||||
return jsxDEVImpl(
|
||||
type,
|
||||
config,
|
||||
maybeKey,
|
||||
!0,
|
||||
source,
|
||||
self,
|
||||
trackActualOwner
|
||||
? Error("react-stack-top-frame")
|
||||
: unknownOwnerDebugStack,
|
||||
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
||||
);
|
||||
};
|
||||
})();
|
||||
@@ -1,40 +0,0 @@
|
||||
/**
|
||||
* @license React
|
||||
* react-jsx-runtime.react-server.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
var React = require("react"),
|
||||
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
||||
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
||||
if (!React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)
|
||||
throw Error(
|
||||
'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
|
||||
);
|
||||
function jsxProd(type, config, maybeKey) {
|
||||
var key = null;
|
||||
void 0 !== maybeKey && (key = "" + maybeKey);
|
||||
void 0 !== config.key && (key = "" + config.key);
|
||||
if ("key" in config) {
|
||||
maybeKey = {};
|
||||
for (var propName in config)
|
||||
"key" !== propName && (maybeKey[propName] = config[propName]);
|
||||
} else maybeKey = config;
|
||||
config = maybeKey.ref;
|
||||
return {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type: type,
|
||||
key: key,
|
||||
ref: void 0 !== config ? config : null,
|
||||
props: maybeKey
|
||||
};
|
||||
}
|
||||
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||
exports.jsx = jsxProd;
|
||||
exports.jsxDEV = void 0;
|
||||
exports.jsxs = jsxProd;
|
||||
1242
autogpt_platform/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.development.js
generated
vendored
1242
autogpt_platform/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.development.js
generated
vendored
File diff suppressed because it is too large
Load Diff
546
autogpt_platform/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.production.js
generated
vendored
546
autogpt_platform/node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react.production.js
generated
vendored
@@ -1,546 +0,0 @@
|
||||
/**
|
||||
* @license React
|
||||
* react.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
||||
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
||||
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
||||
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
||||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
||||
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
||||
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
||||
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
||||
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
||||
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
||||
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
||||
MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
||||
function getIteratorFn(maybeIterable) {
|
||||
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
||||
maybeIterable =
|
||||
(MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
|
||||
maybeIterable["@@iterator"];
|
||||
return "function" === typeof maybeIterable ? maybeIterable : null;
|
||||
}
|
||||
var ReactNoopUpdateQueue = {
|
||||
isMounted: function () {
|
||||
return !1;
|
||||
},
|
||||
enqueueForceUpdate: function () {},
|
||||
enqueueReplaceState: function () {},
|
||||
enqueueSetState: function () {}
|
||||
},
|
||||
assign = Object.assign,
|
||||
emptyObject = {};
|
||||
function Component(props, context, updater) {
|
||||
this.props = props;
|
||||
this.context = context;
|
||||
this.refs = emptyObject;
|
||||
this.updater = updater || ReactNoopUpdateQueue;
|
||||
}
|
||||
Component.prototype.isReactComponent = {};
|
||||
Component.prototype.setState = function (partialState, callback) {
|
||||
if (
|
||||
"object" !== typeof partialState &&
|
||||
"function" !== typeof partialState &&
|
||||
null != partialState
|
||||
)
|
||||
throw Error(
|
||||
"takes an object of state variables to update or a function which returns an object of state variables."
|
||||
);
|
||||
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
||||
};
|
||||
Component.prototype.forceUpdate = function (callback) {
|
||||
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
||||
};
|
||||
function ComponentDummy() {}
|
||||
ComponentDummy.prototype = Component.prototype;
|
||||
function PureComponent(props, context, updater) {
|
||||
this.props = props;
|
||||
this.context = context;
|
||||
this.refs = emptyObject;
|
||||
this.updater = updater || ReactNoopUpdateQueue;
|
||||
}
|
||||
var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());
|
||||
pureComponentPrototype.constructor = PureComponent;
|
||||
assign(pureComponentPrototype, Component.prototype);
|
||||
pureComponentPrototype.isPureReactComponent = !0;
|
||||
var isArrayImpl = Array.isArray,
|
||||
ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null },
|
||||
hasOwnProperty = Object.prototype.hasOwnProperty;
|
||||
function ReactElement(type, key, self, source, owner, props) {
|
||||
self = props.ref;
|
||||
return {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type: type,
|
||||
key: key,
|
||||
ref: void 0 !== self ? self : null,
|
||||
props: props
|
||||
};
|
||||
}
|
||||
function cloneAndReplaceKey(oldElement, newKey) {
|
||||
return ReactElement(
|
||||
oldElement.type,
|
||||
newKey,
|
||||
void 0,
|
||||
void 0,
|
||||
void 0,
|
||||
oldElement.props
|
||||
);
|
||||
}
|
||||
function isValidElement(object) {
|
||||
return (
|
||||
"object" === typeof object &&
|
||||
null !== object &&
|
||||
object.$$typeof === REACT_ELEMENT_TYPE
|
||||
);
|
||||
}
|
||||
function escape(key) {
|
||||
var escaperLookup = { "=": "=0", ":": "=2" };
|
||||
return (
|
||||
"$" +
|
||||
key.replace(/[=:]/g, function (match) {
|
||||
return escaperLookup[match];
|
||||
})
|
||||
);
|
||||
}
|
||||
var userProvidedKeyEscapeRegex = /\/+/g;
|
||||
function getElementKey(element, index) {
|
||||
return "object" === typeof element && null !== element && null != element.key
|
||||
? escape("" + element.key)
|
||||
: index.toString(36);
|
||||
}
|
||||
function noop$1() {}
|
||||
function resolveThenable(thenable) {
|
||||
switch (thenable.status) {
|
||||
case "fulfilled":
|
||||
return thenable.value;
|
||||
case "rejected":
|
||||
throw thenable.reason;
|
||||
default:
|
||||
switch (
|
||||
("string" === typeof thenable.status
|
||||
? thenable.then(noop$1, noop$1)
|
||||
: ((thenable.status = "pending"),
|
||||
thenable.then(
|
||||
function (fulfilledValue) {
|
||||
"pending" === thenable.status &&
|
||||
((thenable.status = "fulfilled"),
|
||||
(thenable.value = fulfilledValue));
|
||||
},
|
||||
function (error) {
|
||||
"pending" === thenable.status &&
|
||||
((thenable.status = "rejected"), (thenable.reason = error));
|
||||
}
|
||||
)),
|
||||
thenable.status)
|
||||
) {
|
||||
case "fulfilled":
|
||||
return thenable.value;
|
||||
case "rejected":
|
||||
throw thenable.reason;
|
||||
}
|
||||
}
|
||||
throw thenable;
|
||||
}
|
||||
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
||||
var type = typeof children;
|
||||
if ("undefined" === type || "boolean" === type) children = null;
|
||||
var invokeCallback = !1;
|
||||
if (null === children) invokeCallback = !0;
|
||||
else
|
||||
switch (type) {
|
||||
case "bigint":
|
||||
case "string":
|
||||
case "number":
|
||||
invokeCallback = !0;
|
||||
break;
|
||||
case "object":
|
||||
switch (children.$$typeof) {
|
||||
case REACT_ELEMENT_TYPE:
|
||||
case REACT_PORTAL_TYPE:
|
||||
invokeCallback = !0;
|
||||
break;
|
||||
case REACT_LAZY_TYPE:
|
||||
return (
|
||||
(invokeCallback = children._init),
|
||||
mapIntoArray(
|
||||
invokeCallback(children._payload),
|
||||
array,
|
||||
escapedPrefix,
|
||||
nameSoFar,
|
||||
callback
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
if (invokeCallback)
|
||||
return (
|
||||
(callback = callback(children)),
|
||||
(invokeCallback =
|
||||
"" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar),
|
||||
isArrayImpl(callback)
|
||||
? ((escapedPrefix = ""),
|
||||
null != invokeCallback &&
|
||||
(escapedPrefix =
|
||||
invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
|
||||
mapIntoArray(callback, array, escapedPrefix, "", function (c) {
|
||||
return c;
|
||||
}))
|
||||
: null != callback &&
|
||||
(isValidElement(callback) &&
|
||||
(callback = cloneAndReplaceKey(
|
||||
callback,
|
||||
escapedPrefix +
|
||||
(null == callback.key ||
|
||||
(children && children.key === callback.key)
|
||||
? ""
|
||||
: ("" + callback.key).replace(
|
||||
userProvidedKeyEscapeRegex,
|
||||
"$&/"
|
||||
) + "/") +
|
||||
invokeCallback
|
||||
)),
|
||||
array.push(callback)),
|
||||
1
|
||||
);
|
||||
invokeCallback = 0;
|
||||
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
||||
if (isArrayImpl(children))
|
||||
for (var i = 0; i < children.length; i++)
|
||||
(nameSoFar = children[i]),
|
||||
(type = nextNamePrefix + getElementKey(nameSoFar, i)),
|
||||
(invokeCallback += mapIntoArray(
|
||||
nameSoFar,
|
||||
array,
|
||||
escapedPrefix,
|
||||
type,
|
||||
callback
|
||||
));
|
||||
else if (((i = getIteratorFn(children)), "function" === typeof i))
|
||||
for (
|
||||
children = i.call(children), i = 0;
|
||||
!(nameSoFar = children.next()).done;
|
||||
|
||||
)
|
||||
(nameSoFar = nameSoFar.value),
|
||||
(type = nextNamePrefix + getElementKey(nameSoFar, i++)),
|
||||
(invokeCallback += mapIntoArray(
|
||||
nameSoFar,
|
||||
array,
|
||||
escapedPrefix,
|
||||
type,
|
||||
callback
|
||||
));
|
||||
else if ("object" === type) {
|
||||
if ("function" === typeof children.then)
|
||||
return mapIntoArray(
|
||||
resolveThenable(children),
|
||||
array,
|
||||
escapedPrefix,
|
||||
nameSoFar,
|
||||
callback
|
||||
);
|
||||
array = String(children);
|
||||
throw Error(
|
||||
"Objects are not valid as a React child (found: " +
|
||||
("[object Object]" === array
|
||||
? "object with keys {" + Object.keys(children).join(", ") + "}"
|
||||
: array) +
|
||||
"). If you meant to render a collection of children, use an array instead."
|
||||
);
|
||||
}
|
||||
return invokeCallback;
|
||||
}
|
||||
function mapChildren(children, func, context) {
|
||||
if (null == children) return children;
|
||||
var result = [],
|
||||
count = 0;
|
||||
mapIntoArray(children, result, "", "", function (child) {
|
||||
return func.call(context, child, count++);
|
||||
});
|
||||
return result;
|
||||
}
|
||||
function lazyInitializer(payload) {
|
||||
if (-1 === payload._status) {
|
||||
var ctor = payload._result;
|
||||
ctor = ctor();
|
||||
ctor.then(
|
||||
function (moduleObject) {
|
||||
if (0 === payload._status || -1 === payload._status)
|
||||
(payload._status = 1), (payload._result = moduleObject);
|
||||
},
|
||||
function (error) {
|
||||
if (0 === payload._status || -1 === payload._status)
|
||||
(payload._status = 2), (payload._result = error);
|
||||
}
|
||||
);
|
||||
-1 === payload._status && ((payload._status = 0), (payload._result = ctor));
|
||||
}
|
||||
if (1 === payload._status) return payload._result.default;
|
||||
throw payload._result;
|
||||
}
|
||||
var reportGlobalError =
|
||||
"function" === typeof reportError
|
||||
? reportError
|
||||
: function (error) {
|
||||
if (
|
||||
"object" === typeof window &&
|
||||
"function" === typeof window.ErrorEvent
|
||||
) {
|
||||
var event = new window.ErrorEvent("error", {
|
||||
bubbles: !0,
|
||||
cancelable: !0,
|
||||
message:
|
||||
"object" === typeof error &&
|
||||
null !== error &&
|
||||
"string" === typeof error.message
|
||||
? String(error.message)
|
||||
: String(error),
|
||||
error: error
|
||||
});
|
||||
if (!window.dispatchEvent(event)) return;
|
||||
} else if (
|
||||
"object" === typeof process &&
|
||||
"function" === typeof process.emit
|
||||
) {
|
||||
process.emit("uncaughtException", error);
|
||||
return;
|
||||
}
|
||||
console.error(error);
|
||||
};
|
||||
function noop() {}
|
||||
exports.Children = {
|
||||
map: mapChildren,
|
||||
forEach: function (children, forEachFunc, forEachContext) {
|
||||
mapChildren(
|
||||
children,
|
||||
function () {
|
||||
forEachFunc.apply(this, arguments);
|
||||
},
|
||||
forEachContext
|
||||
);
|
||||
},
|
||||
count: function (children) {
|
||||
var n = 0;
|
||||
mapChildren(children, function () {
|
||||
n++;
|
||||
});
|
||||
return n;
|
||||
},
|
||||
toArray: function (children) {
|
||||
return (
|
||||
mapChildren(children, function (child) {
|
||||
return child;
|
||||
}) || []
|
||||
);
|
||||
},
|
||||
only: function (children) {
|
||||
if (!isValidElement(children))
|
||||
throw Error(
|
||||
"React.Children.only expected to receive a single React element child."
|
||||
);
|
||||
return children;
|
||||
}
|
||||
};
|
||||
exports.Component = Component;
|
||||
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||
exports.Profiler = REACT_PROFILER_TYPE;
|
||||
exports.PureComponent = PureComponent;
|
||||
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
||||
exports.Suspense = REACT_SUSPENSE_TYPE;
|
||||
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
||||
ReactSharedInternals;
|
||||
exports.__COMPILER_RUNTIME = {
|
||||
__proto__: null,
|
||||
c: function (size) {
|
||||
return ReactSharedInternals.H.useMemoCache(size);
|
||||
}
|
||||
};
|
||||
exports.cache = function (fn) {
|
||||
return function () {
|
||||
return fn.apply(null, arguments);
|
||||
};
|
||||
};
|
||||
exports.cloneElement = function (element, config, children) {
|
||||
if (null === element || void 0 === element)
|
||||
throw Error(
|
||||
"The argument must be a React element, but you passed " + element + "."
|
||||
);
|
||||
var props = assign({}, element.props),
|
||||
key = element.key,
|
||||
owner = void 0;
|
||||
if (null != config)
|
||||
for (propName in (void 0 !== config.ref && (owner = void 0),
|
||||
void 0 !== config.key && (key = "" + config.key),
|
||||
config))
|
||||
!hasOwnProperty.call(config, propName) ||
|
||||
"key" === propName ||
|
||||
"__self" === propName ||
|
||||
"__source" === propName ||
|
||||
("ref" === propName && void 0 === config.ref) ||
|
||||
(props[propName] = config[propName]);
|
||||
var propName = arguments.length - 2;
|
||||
if (1 === propName) props.children = children;
|
||||
else if (1 < propName) {
|
||||
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
||||
childArray[i] = arguments[i + 2];
|
||||
props.children = childArray;
|
||||
}
|
||||
return ReactElement(element.type, key, void 0, void 0, owner, props);
|
||||
};
|
||||
exports.createContext = function (defaultValue) {
|
||||
defaultValue = {
|
||||
$$typeof: REACT_CONTEXT_TYPE,
|
||||
_currentValue: defaultValue,
|
||||
_currentValue2: defaultValue,
|
||||
_threadCount: 0,
|
||||
Provider: null,
|
||||
Consumer: null
|
||||
};
|
||||
defaultValue.Provider = defaultValue;
|
||||
defaultValue.Consumer = {
|
||||
$$typeof: REACT_CONSUMER_TYPE,
|
||||
_context: defaultValue
|
||||
};
|
||||
return defaultValue;
|
||||
};
|
||||
exports.createElement = function (type, config, children) {
|
||||
var propName,
|
||||
props = {},
|
||||
key = null;
|
||||
if (null != config)
|
||||
for (propName in (void 0 !== config.key && (key = "" + config.key), config))
|
||||
hasOwnProperty.call(config, propName) &&
|
||||
"key" !== propName &&
|
||||
"__self" !== propName &&
|
||||
"__source" !== propName &&
|
||||
(props[propName] = config[propName]);
|
||||
var childrenLength = arguments.length - 2;
|
||||
if (1 === childrenLength) props.children = children;
|
||||
else if (1 < childrenLength) {
|
||||
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
||||
childArray[i] = arguments[i + 2];
|
||||
props.children = childArray;
|
||||
}
|
||||
if (type && type.defaultProps)
|
||||
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
||||
void 0 === props[propName] &&
|
||||
(props[propName] = childrenLength[propName]);
|
||||
return ReactElement(type, key, void 0, void 0, null, props);
|
||||
};
|
||||
exports.createRef = function () {
|
||||
return { current: null };
|
||||
};
|
||||
exports.forwardRef = function (render) {
|
||||
return { $$typeof: REACT_FORWARD_REF_TYPE, render: render };
|
||||
};
|
||||
exports.isValidElement = isValidElement;
|
||||
exports.lazy = function (ctor) {
|
||||
return {
|
||||
$$typeof: REACT_LAZY_TYPE,
|
||||
_payload: { _status: -1, _result: ctor },
|
||||
_init: lazyInitializer
|
||||
};
|
||||
};
|
||||
exports.memo = function (type, compare) {
|
||||
return {
|
||||
$$typeof: REACT_MEMO_TYPE,
|
||||
type: type,
|
||||
compare: void 0 === compare ? null : compare
|
||||
};
|
||||
};
|
||||
exports.startTransition = function (scope) {
|
||||
var prevTransition = ReactSharedInternals.T,
|
||||
currentTransition = {};
|
||||
ReactSharedInternals.T = currentTransition;
|
||||
try {
|
||||
var returnValue = scope(),
|
||||
onStartTransitionFinish = ReactSharedInternals.S;
|
||||
null !== onStartTransitionFinish &&
|
||||
onStartTransitionFinish(currentTransition, returnValue);
|
||||
"object" === typeof returnValue &&
|
||||
null !== returnValue &&
|
||||
"function" === typeof returnValue.then &&
|
||||
returnValue.then(noop, reportGlobalError);
|
||||
} catch (error) {
|
||||
reportGlobalError(error);
|
||||
} finally {
|
||||
ReactSharedInternals.T = prevTransition;
|
||||
}
|
||||
};
|
||||
exports.unstable_useCacheRefresh = function () {
|
||||
return ReactSharedInternals.H.useCacheRefresh();
|
||||
};
|
||||
exports.use = function (usable) {
|
||||
return ReactSharedInternals.H.use(usable);
|
||||
};
|
||||
exports.useActionState = function (action, initialState, permalink) {
|
||||
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
||||
};
|
||||
exports.useCallback = function (callback, deps) {
|
||||
return ReactSharedInternals.H.useCallback(callback, deps);
|
||||
};
|
||||
exports.useContext = function (Context) {
|
||||
return ReactSharedInternals.H.useContext(Context);
|
||||
};
|
||||
exports.useDebugValue = function () {};
|
||||
exports.useDeferredValue = function (value, initialValue) {
|
||||
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
||||
};
|
||||
exports.useEffect = function (create, createDeps, update) {
|
||||
var dispatcher = ReactSharedInternals.H;
|
||||
if ("function" === typeof update)
|
||||
throw Error(
|
||||
"useEffect CRUD overload is not enabled in this build of React."
|
||||
);
|
||||
return dispatcher.useEffect(create, createDeps);
|
||||
};
|
||||
exports.useId = function () {
|
||||
return ReactSharedInternals.H.useId();
|
||||
};
|
||||
exports.useImperativeHandle = function (ref, create, deps) {
|
||||
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
||||
};
|
||||
exports.useInsertionEffect = function (create, deps) {
|
||||
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
||||
};
|
||||
exports.useLayoutEffect = function (create, deps) {
|
||||
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
||||
};
|
||||
exports.useMemo = function (create, deps) {
|
||||
return ReactSharedInternals.H.useMemo(create, deps);
|
||||
};
|
||||
exports.useOptimistic = function (passthrough, reducer) {
|
||||
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
||||
};
|
||||
exports.useReducer = function (reducer, initialArg, init) {
|
||||
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
||||
};
|
||||
exports.useRef = function (initialValue) {
|
||||
return ReactSharedInternals.H.useRef(initialValue);
|
||||
};
|
||||
exports.useState = function (initialState) {
|
||||
return ReactSharedInternals.H.useState(initialState);
|
||||
};
|
||||
exports.useSyncExternalStore = function (
|
||||
subscribe,
|
||||
getSnapshot,
|
||||
getServerSnapshot
|
||||
) {
|
||||
return ReactSharedInternals.H.useSyncExternalStore(
|
||||
subscribe,
|
||||
getSnapshot,
|
||||
getServerSnapshot
|
||||
);
|
||||
};
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.1.0";
|
||||
@@ -1,815 +0,0 @@
|
||||
/**
|
||||
* @license React
|
||||
* react.react-server.development.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
"production" !== process.env.NODE_ENV &&
|
||||
(function () {
|
||||
function getIteratorFn(maybeIterable) {
|
||||
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
||||
return null;
|
||||
maybeIterable =
|
||||
(MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
|
||||
maybeIterable["@@iterator"];
|
||||
return "function" === typeof maybeIterable ? maybeIterable : null;
|
||||
}
|
||||
function testStringCoercion(value) {
|
||||
return "" + value;
|
||||
}
|
||||
function checkKeyStringCoercion(value) {
|
||||
try {
|
||||
testStringCoercion(value);
|
||||
var JSCompiler_inline_result = !1;
|
||||
} catch (e) {
|
||||
JSCompiler_inline_result = !0;
|
||||
}
|
||||
if (JSCompiler_inline_result) {
|
||||
JSCompiler_inline_result = console;
|
||||
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
||||
var JSCompiler_inline_result$jscomp$0 =
|
||||
("function" === typeof Symbol &&
|
||||
Symbol.toStringTag &&
|
||||
value[Symbol.toStringTag]) ||
|
||||
value.constructor.name ||
|
||||
"Object";
|
||||
JSCompiler_temp_const.call(
|
||||
JSCompiler_inline_result,
|
||||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
||||
JSCompiler_inline_result$jscomp$0
|
||||
);
|
||||
return testStringCoercion(value);
|
||||
}
|
||||
}
|
||||
function getComponentNameFromType(type) {
|
||||
if (null == type) return null;
|
||||
if ("function" === typeof type)
|
||||
return type.$$typeof === REACT_CLIENT_REFERENCE
|
||||
? null
|
||||
: type.displayName || type.name || null;
|
||||
if ("string" === typeof type) return type;
|
||||
switch (type) {
|
||||
case REACT_FRAGMENT_TYPE:
|
||||
return "Fragment";
|
||||
case REACT_PROFILER_TYPE:
|
||||
return "Profiler";
|
||||
case REACT_STRICT_MODE_TYPE:
|
||||
return "StrictMode";
|
||||
case REACT_SUSPENSE_TYPE:
|
||||
return "Suspense";
|
||||
case REACT_SUSPENSE_LIST_TYPE:
|
||||
return "SuspenseList";
|
||||
case REACT_ACTIVITY_TYPE:
|
||||
return "Activity";
|
||||
}
|
||||
if ("object" === typeof type)
|
||||
switch (
|
||||
("number" === typeof type.tag &&
|
||||
console.error(
|
||||
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
||||
),
|
||||
type.$$typeof)
|
||||
) {
|
||||
case REACT_PORTAL_TYPE:
|
||||
return "Portal";
|
||||
case REACT_CONTEXT_TYPE:
|
||||
return (type.displayName || "Context") + ".Provider";
|
||||
case REACT_CONSUMER_TYPE:
|
||||
return (type._context.displayName || "Context") + ".Consumer";
|
||||
case REACT_FORWARD_REF_TYPE:
|
||||
var innerType = type.render;
|
||||
type = type.displayName;
|
||||
type ||
|
||||
((type = innerType.displayName || innerType.name || ""),
|
||||
(type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
|
||||
return type;
|
||||
case REACT_MEMO_TYPE:
|
||||
return (
|
||||
(innerType = type.displayName || null),
|
||||
null !== innerType
|
||||
? innerType
|
||||
: getComponentNameFromType(type.type) || "Memo"
|
||||
);
|
||||
case REACT_LAZY_TYPE:
|
||||
innerType = type._payload;
|
||||
type = type._init;
|
||||
try {
|
||||
return getComponentNameFromType(type(innerType));
|
||||
} catch (x) {}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
function getTaskName(type) {
|
||||
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
||||
if (
|
||||
"object" === typeof type &&
|
||||
null !== type &&
|
||||
type.$$typeof === REACT_LAZY_TYPE
|
||||
)
|
||||
return "<...>";
|
||||
try {
|
||||
var name = getComponentNameFromType(type);
|
||||
return name ? "<" + name + ">" : "<...>";
|
||||
} catch (x) {
|
||||
return "<...>";
|
||||
}
|
||||
}
|
||||
function getOwner() {
|
||||
var dispatcher = ReactSharedInternals.A;
|
||||
return null === dispatcher ? null : dispatcher.getOwner();
|
||||
}
|
||||
function UnknownOwner() {
|
||||
return Error("react-stack-top-frame");
|
||||
}
|
||||
function hasValidKey(config) {
|
||||
if (hasOwnProperty.call(config, "key")) {
|
||||
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
||||
if (getter && getter.isReactWarning) return !1;
|
||||
}
|
||||
return void 0 !== config.key;
|
||||
}
|
||||
function defineKeyPropWarningGetter(props, displayName) {
|
||||
function warnAboutAccessingKey() {
|
||||
specialPropKeyWarningShown ||
|
||||
((specialPropKeyWarningShown = !0),
|
||||
console.error(
|
||||
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
||||
displayName
|
||||
));
|
||||
}
|
||||
warnAboutAccessingKey.isReactWarning = !0;
|
||||
Object.defineProperty(props, "key", {
|
||||
get: warnAboutAccessingKey,
|
||||
configurable: !0
|
||||
});
|
||||
}
|
||||
function elementRefGetterWithDeprecationWarning() {
|
||||
var componentName = getComponentNameFromType(this.type);
|
||||
didWarnAboutElementRef[componentName] ||
|
||||
((didWarnAboutElementRef[componentName] = !0),
|
||||
console.error(
|
||||
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
||||
));
|
||||
componentName = this.props.ref;
|
||||
return void 0 !== componentName ? componentName : null;
|
||||
}
|
||||
function ReactElement(
|
||||
type,
|
||||
key,
|
||||
self,
|
||||
source,
|
||||
owner,
|
||||
props,
|
||||
debugStack,
|
||||
debugTask
|
||||
) {
|
||||
self = props.ref;
|
||||
type = {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type: type,
|
||||
key: key,
|
||||
props: props,
|
||||
_owner: owner
|
||||
};
|
||||
null !== (void 0 !== self ? self : null)
|
||||
? Object.defineProperty(type, "ref", {
|
||||
enumerable: !1,
|
||||
get: elementRefGetterWithDeprecationWarning
|
||||
})
|
||||
: Object.defineProperty(type, "ref", { enumerable: !1, value: null });
|
||||
type._store = {};
|
||||
Object.defineProperty(type._store, "validated", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: 0
|
||||
});
|
||||
Object.defineProperty(type, "_debugInfo", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: null
|
||||
});
|
||||
Object.defineProperty(type, "_debugStack", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: debugStack
|
||||
});
|
||||
Object.defineProperty(type, "_debugTask", {
|
||||
configurable: !1,
|
||||
enumerable: !1,
|
||||
writable: !0,
|
||||
value: debugTask
|
||||
});
|
||||
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
||||
return type;
|
||||
}
|
||||
function cloneAndReplaceKey(oldElement, newKey) {
|
||||
newKey = ReactElement(
|
||||
oldElement.type,
|
||||
newKey,
|
||||
void 0,
|
||||
void 0,
|
||||
oldElement._owner,
|
||||
oldElement.props,
|
||||
oldElement._debugStack,
|
||||
oldElement._debugTask
|
||||
);
|
||||
oldElement._store &&
|
||||
(newKey._store.validated = oldElement._store.validated);
|
||||
return newKey;
|
||||
}
|
||||
function isValidElement(object) {
|
||||
return (
|
||||
"object" === typeof object &&
|
||||
null !== object &&
|
||||
object.$$typeof === REACT_ELEMENT_TYPE
|
||||
);
|
||||
}
|
||||
function escape(key) {
|
||||
var escaperLookup = { "=": "=0", ":": "=2" };
|
||||
return (
|
||||
"$" +
|
||||
key.replace(/[=:]/g, function (match) {
|
||||
return escaperLookup[match];
|
||||
})
|
||||
);
|
||||
}
|
||||
function getElementKey(element, index) {
|
||||
return "object" === typeof element &&
|
||||
null !== element &&
|
||||
null != element.key
|
||||
? (checkKeyStringCoercion(element.key), escape("" + element.key))
|
||||
: index.toString(36);
|
||||
}
|
||||
function noop() {}
|
||||
function resolveThenable(thenable) {
|
||||
switch (thenable.status) {
|
||||
case "fulfilled":
|
||||
return thenable.value;
|
||||
case "rejected":
|
||||
throw thenable.reason;
|
||||
default:
|
||||
switch (
|
||||
("string" === typeof thenable.status
|
||||
? thenable.then(noop, noop)
|
||||
: ((thenable.status = "pending"),
|
||||
thenable.then(
|
||||
function (fulfilledValue) {
|
||||
"pending" === thenable.status &&
|
||||
((thenable.status = "fulfilled"),
|
||||
(thenable.value = fulfilledValue));
|
||||
},
|
||||
function (error) {
|
||||
"pending" === thenable.status &&
|
||||
((thenable.status = "rejected"),
|
||||
(thenable.reason = error));
|
||||
}
|
||||
)),
|
||||
thenable.status)
|
||||
) {
|
||||
case "fulfilled":
|
||||
return thenable.value;
|
||||
case "rejected":
|
||||
throw thenable.reason;
|
||||
}
|
||||
}
|
||||
throw thenable;
|
||||
}
|
||||
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
||||
var type = typeof children;
|
||||
if ("undefined" === type || "boolean" === type) children = null;
|
||||
var invokeCallback = !1;
|
||||
if (null === children) invokeCallback = !0;
|
||||
else
|
||||
switch (type) {
|
||||
case "bigint":
|
||||
case "string":
|
||||
case "number":
|
||||
invokeCallback = !0;
|
||||
break;
|
||||
case "object":
|
||||
switch (children.$$typeof) {
|
||||
case REACT_ELEMENT_TYPE:
|
||||
case REACT_PORTAL_TYPE:
|
||||
invokeCallback = !0;
|
||||
break;
|
||||
case REACT_LAZY_TYPE:
|
||||
return (
|
||||
(invokeCallback = children._init),
|
||||
mapIntoArray(
|
||||
invokeCallback(children._payload),
|
||||
array,
|
||||
escapedPrefix,
|
||||
nameSoFar,
|
||||
callback
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
if (invokeCallback) {
|
||||
invokeCallback = children;
|
||||
callback = callback(invokeCallback);
|
||||
var childKey =
|
||||
"" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
|
||||
isArrayImpl(callback)
|
||||
? ((escapedPrefix = ""),
|
||||
null != childKey &&
|
||||
(escapedPrefix =
|
||||
childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
|
||||
mapIntoArray(callback, array, escapedPrefix, "", function (c) {
|
||||
return c;
|
||||
}))
|
||||
: null != callback &&
|
||||
(isValidElement(callback) &&
|
||||
(null != callback.key &&
|
||||
((invokeCallback && invokeCallback.key === callback.key) ||
|
||||
checkKeyStringCoercion(callback.key)),
|
||||
(escapedPrefix = cloneAndReplaceKey(
|
||||
callback,
|
||||
escapedPrefix +
|
||||
(null == callback.key ||
|
||||
(invokeCallback && invokeCallback.key === callback.key)
|
||||
? ""
|
||||
: ("" + callback.key).replace(
|
||||
userProvidedKeyEscapeRegex,
|
||||
"$&/"
|
||||
) + "/") +
|
||||
childKey
|
||||
)),
|
||||
"" !== nameSoFar &&
|
||||
null != invokeCallback &&
|
||||
isValidElement(invokeCallback) &&
|
||||
null == invokeCallback.key &&
|
||||
invokeCallback._store &&
|
||||
!invokeCallback._store.validated &&
|
||||
(escapedPrefix._store.validated = 2),
|
||||
(callback = escapedPrefix)),
|
||||
array.push(callback));
|
||||
return 1;
|
||||
}
|
||||
invokeCallback = 0;
|
||||
childKey = "" === nameSoFar ? "." : nameSoFar + ":";
|
||||
if (isArrayImpl(children))
|
||||
for (var i = 0; i < children.length; i++)
|
||||
(nameSoFar = children[i]),
|
||||
(type = childKey + getElementKey(nameSoFar, i)),
|
||||
(invokeCallback += mapIntoArray(
|
||||
nameSoFar,
|
||||
array,
|
||||
escapedPrefix,
|
||||
type,
|
||||
callback
|
||||
));
|
||||
else if (((i = getIteratorFn(children)), "function" === typeof i))
|
||||
for (
|
||||
i === children.entries &&
|
||||
(didWarnAboutMaps ||
|
||||
console.warn(
|
||||
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
||||
),
|
||||
(didWarnAboutMaps = !0)),
|
||||
children = i.call(children),
|
||||
i = 0;
|
||||
!(nameSoFar = children.next()).done;
|
||||
|
||||
)
|
||||
(nameSoFar = nameSoFar.value),
|
||||
(type = childKey + getElementKey(nameSoFar, i++)),
|
||||
(invokeCallback += mapIntoArray(
|
||||
nameSoFar,
|
||||
array,
|
||||
escapedPrefix,
|
||||
type,
|
||||
callback
|
||||
));
|
||||
else if ("object" === type) {
|
||||
if ("function" === typeof children.then)
|
||||
return mapIntoArray(
|
||||
resolveThenable(children),
|
||||
array,
|
||||
escapedPrefix,
|
||||
nameSoFar,
|
||||
callback
|
||||
);
|
||||
array = String(children);
|
||||
throw Error(
|
||||
"Objects are not valid as a React child (found: " +
|
||||
("[object Object]" === array
|
||||
? "object with keys {" + Object.keys(children).join(", ") + "}"
|
||||
: array) +
|
||||
"). If you meant to render a collection of children, use an array instead."
|
||||
);
|
||||
}
|
||||
return invokeCallback;
|
||||
}
|
||||
function mapChildren(children, func, context) {
|
||||
if (null == children) return children;
|
||||
var result = [],
|
||||
count = 0;
|
||||
mapIntoArray(children, result, "", "", function (child) {
|
||||
return func.call(context, child, count++);
|
||||
});
|
||||
return result;
|
||||
}
|
||||
function resolveDispatcher() {
|
||||
var dispatcher = ReactSharedInternals.H;
|
||||
null === dispatcher &&
|
||||
console.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://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
||||
);
|
||||
return dispatcher;
|
||||
}
|
||||
function lazyInitializer(payload) {
|
||||
if (-1 === payload._status) {
|
||||
var ctor = payload._result;
|
||||
ctor = ctor();
|
||||
ctor.then(
|
||||
function (moduleObject) {
|
||||
if (0 === payload._status || -1 === payload._status)
|
||||
(payload._status = 1), (payload._result = moduleObject);
|
||||
},
|
||||
function (error) {
|
||||
if (0 === payload._status || -1 === payload._status)
|
||||
(payload._status = 2), (payload._result = error);
|
||||
}
|
||||
);
|
||||
-1 === payload._status &&
|
||||
((payload._status = 0), (payload._result = ctor));
|
||||
}
|
||||
if (1 === payload._status)
|
||||
return (
|
||||
(ctor = payload._result),
|
||||
void 0 === ctor &&
|
||||
console.error(
|
||||
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
|
||||
ctor
|
||||
),
|
||||
"default" in ctor ||
|
||||
console.error(
|
||||
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
|
||||
ctor
|
||||
),
|
||||
ctor.default
|
||||
);
|
||||
throw payload._result;
|
||||
}
|
||||
function createCacheRoot() {
|
||||
return new WeakMap();
|
||||
}
|
||||
function createCacheNode() {
|
||||
return { s: 0, v: void 0, o: null, p: null };
|
||||
}
|
||||
var ReactSharedInternals = {
|
||||
H: null,
|
||||
A: null,
|
||||
getCurrentStack: null,
|
||||
recentlyCreatedOwnerStacks: 0
|
||||
},
|
||||
isArrayImpl = Array.isArray,
|
||||
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
||||
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
||||
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
||||
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
||||
REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
||||
Symbol.for("react.provider");
|
||||
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
||||
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
||||
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
||||
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
||||
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
||||
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
||||
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
||||
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
||||
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
|
||||
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
||||
hasOwnProperty = Object.prototype.hasOwnProperty,
|
||||
assign = Object.assign,
|
||||
createTask = console.createTask
|
||||
? console.createTask
|
||||
: function () {
|
||||
return null;
|
||||
},
|
||||
createFakeCallStack = {
|
||||
"react-stack-bottom-frame": function (callStackForError) {
|
||||
return callStackForError();
|
||||
}
|
||||
},
|
||||
specialPropKeyWarningShown,
|
||||
didWarnAboutOldJSXRuntime;
|
||||
var didWarnAboutElementRef = {};
|
||||
var unknownOwnerDebugStack = createFakeCallStack[
|
||||
"react-stack-bottom-frame"
|
||||
].bind(createFakeCallStack, UnknownOwner)();
|
||||
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
||||
var didWarnAboutMaps = !1,
|
||||
userProvidedKeyEscapeRegex = /\/+/g;
|
||||
exports.Children = {
|
||||
map: mapChildren,
|
||||
forEach: function (children, forEachFunc, forEachContext) {
|
||||
mapChildren(
|
||||
children,
|
||||
function () {
|
||||
forEachFunc.apply(this, arguments);
|
||||
},
|
||||
forEachContext
|
||||
);
|
||||
},
|
||||
count: function (children) {
|
||||
var n = 0;
|
||||
mapChildren(children, function () {
|
||||
n++;
|
||||
});
|
||||
return n;
|
||||
},
|
||||
toArray: function (children) {
|
||||
return (
|
||||
mapChildren(children, function (child) {
|
||||
return child;
|
||||
}) || []
|
||||
);
|
||||
},
|
||||
only: function (children) {
|
||||
if (!isValidElement(children))
|
||||
throw Error(
|
||||
"React.Children.only expected to receive a single React element child."
|
||||
);
|
||||
return children;
|
||||
}
|
||||
};
|
||||
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||
exports.Profiler = REACT_PROFILER_TYPE;
|
||||
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
||||
exports.Suspense = REACT_SUSPENSE_TYPE;
|
||||
exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
||||
ReactSharedInternals;
|
||||
exports.cache = function (fn) {
|
||||
return function () {
|
||||
var dispatcher = ReactSharedInternals.A;
|
||||
if (!dispatcher) return fn.apply(null, arguments);
|
||||
var fnMap = dispatcher.getCacheForType(createCacheRoot);
|
||||
dispatcher = fnMap.get(fn);
|
||||
void 0 === dispatcher &&
|
||||
((dispatcher = createCacheNode()), fnMap.set(fn, dispatcher));
|
||||
fnMap = 0;
|
||||
for (var l = arguments.length; fnMap < l; fnMap++) {
|
||||
var arg = arguments[fnMap];
|
||||
if (
|
||||
"function" === typeof arg ||
|
||||
("object" === typeof arg && null !== arg)
|
||||
) {
|
||||
var objectCache = dispatcher.o;
|
||||
null === objectCache &&
|
||||
(dispatcher.o = objectCache = new WeakMap());
|
||||
dispatcher = objectCache.get(arg);
|
||||
void 0 === dispatcher &&
|
||||
((dispatcher = createCacheNode()),
|
||||
objectCache.set(arg, dispatcher));
|
||||
} else
|
||||
(objectCache = dispatcher.p),
|
||||
null === objectCache && (dispatcher.p = objectCache = new Map()),
|
||||
(dispatcher = objectCache.get(arg)),
|
||||
void 0 === dispatcher &&
|
||||
((dispatcher = createCacheNode()),
|
||||
objectCache.set(arg, dispatcher));
|
||||
}
|
||||
if (1 === dispatcher.s) return dispatcher.v;
|
||||
if (2 === dispatcher.s) throw dispatcher.v;
|
||||
try {
|
||||
var result = fn.apply(null, arguments);
|
||||
fnMap = dispatcher;
|
||||
fnMap.s = 1;
|
||||
return (fnMap.v = result);
|
||||
} catch (error) {
|
||||
throw (
|
||||
((result = dispatcher), (result.s = 2), (result.v = error), error)
|
||||
);
|
||||
}
|
||||
};
|
||||
};
|
||||
exports.captureOwnerStack = function () {
|
||||
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
||||
return null === getCurrentStack ? null : getCurrentStack();
|
||||
};
|
||||
exports.cloneElement = function (element, config, children) {
|
||||
if (null === element || void 0 === element)
|
||||
throw Error(
|
||||
"The argument must be a React element, but you passed " +
|
||||
element +
|
||||
"."
|
||||
);
|
||||
var props = assign({}, element.props),
|
||||
key = element.key,
|
||||
owner = element._owner;
|
||||
if (null != config) {
|
||||
var JSCompiler_inline_result;
|
||||
a: {
|
||||
if (
|
||||
hasOwnProperty.call(config, "ref") &&
|
||||
(JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
|
||||
config,
|
||||
"ref"
|
||||
).get) &&
|
||||
JSCompiler_inline_result.isReactWarning
|
||||
) {
|
||||
JSCompiler_inline_result = !1;
|
||||
break a;
|
||||
}
|
||||
JSCompiler_inline_result = void 0 !== config.ref;
|
||||
}
|
||||
JSCompiler_inline_result && (owner = getOwner());
|
||||
hasValidKey(config) &&
|
||||
(checkKeyStringCoercion(config.key), (key = "" + config.key));
|
||||
for (propName in config)
|
||||
!hasOwnProperty.call(config, propName) ||
|
||||
"key" === propName ||
|
||||
"__self" === propName ||
|
||||
"__source" === propName ||
|
||||
("ref" === propName && void 0 === config.ref) ||
|
||||
(props[propName] = config[propName]);
|
||||
}
|
||||
var propName = arguments.length - 2;
|
||||
if (1 === propName) props.children = children;
|
||||
else if (1 < propName) {
|
||||
JSCompiler_inline_result = Array(propName);
|
||||
for (var i = 0; i < propName; i++)
|
||||
JSCompiler_inline_result[i] = arguments[i + 2];
|
||||
props.children = JSCompiler_inline_result;
|
||||
}
|
||||
props = ReactElement(
|
||||
element.type,
|
||||
key,
|
||||
void 0,
|
||||
void 0,
|
||||
owner,
|
||||
props,
|
||||
element._debugStack,
|
||||
element._debugTask
|
||||
);
|
||||
for (key = 2; key < arguments.length; key++)
|
||||
(owner = arguments[key]),
|
||||
isValidElement(owner) && owner._store && (owner._store.validated = 1);
|
||||
return props;
|
||||
};
|
||||
exports.createElement = function (type, config, children) {
|
||||
for (var i = 2; i < arguments.length; i++) {
|
||||
var node = arguments[i];
|
||||
isValidElement(node) && node._store && (node._store.validated = 1);
|
||||
}
|
||||
i = {};
|
||||
node = null;
|
||||
if (null != config)
|
||||
for (propName in (didWarnAboutOldJSXRuntime ||
|
||||
!("__self" in config) ||
|
||||
"key" in config ||
|
||||
((didWarnAboutOldJSXRuntime = !0),
|
||||
console.warn(
|
||||
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
||||
)),
|
||||
hasValidKey(config) &&
|
||||
(checkKeyStringCoercion(config.key), (node = "" + config.key)),
|
||||
config))
|
||||
hasOwnProperty.call(config, propName) &&
|
||||
"key" !== propName &&
|
||||
"__self" !== propName &&
|
||||
"__source" !== propName &&
|
||||
(i[propName] = config[propName]);
|
||||
var childrenLength = arguments.length - 2;
|
||||
if (1 === childrenLength) i.children = children;
|
||||
else if (1 < childrenLength) {
|
||||
for (
|
||||
var childArray = Array(childrenLength), _i = 0;
|
||||
_i < childrenLength;
|
||||
_i++
|
||||
)
|
||||
childArray[_i] = arguments[_i + 2];
|
||||
Object.freeze && Object.freeze(childArray);
|
||||
i.children = childArray;
|
||||
}
|
||||
if (type && type.defaultProps)
|
||||
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
||||
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
||||
node &&
|
||||
defineKeyPropWarningGetter(
|
||||
i,
|
||||
"function" === typeof type
|
||||
? type.displayName || type.name || "Unknown"
|
||||
: type
|
||||
);
|
||||
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
||||
return ReactElement(
|
||||
type,
|
||||
node,
|
||||
void 0,
|
||||
void 0,
|
||||
getOwner(),
|
||||
i,
|
||||
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
||||
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
||||
);
|
||||
};
|
||||
exports.createRef = function () {
|
||||
var refObject = { current: null };
|
||||
Object.seal(refObject);
|
||||
return refObject;
|
||||
};
|
||||
exports.forwardRef = function (render) {
|
||||
null != render && render.$$typeof === REACT_MEMO_TYPE
|
||||
? console.error(
|
||||
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
||||
)
|
||||
: "function" !== typeof render
|
||||
? console.error(
|
||||
"forwardRef requires a render function but was given %s.",
|
||||
null === render ? "null" : typeof render
|
||||
)
|
||||
: 0 !== render.length &&
|
||||
2 !== render.length &&
|
||||
console.error(
|
||||
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
||||
1 === render.length
|
||||
? "Did you forget to use the ref parameter?"
|
||||
: "Any additional parameter will be undefined."
|
||||
);
|
||||
null != render &&
|
||||
null != render.defaultProps &&
|
||||
console.error(
|
||||
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
||||
);
|
||||
var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render: render },
|
||||
ownName;
|
||||
Object.defineProperty(elementType, "displayName", {
|
||||
enumerable: !1,
|
||||
configurable: !0,
|
||||
get: function () {
|
||||
return ownName;
|
||||
},
|
||||
set: function (name) {
|
||||
ownName = name;
|
||||
render.name ||
|
||||
render.displayName ||
|
||||
(Object.defineProperty(render, "name", { value: name }),
|
||||
(render.displayName = name));
|
||||
}
|
||||
});
|
||||
return elementType;
|
||||
};
|
||||
exports.isValidElement = isValidElement;
|
||||
exports.lazy = function (ctor) {
|
||||
return {
|
||||
$$typeof: REACT_LAZY_TYPE,
|
||||
_payload: { _status: -1, _result: ctor },
|
||||
_init: lazyInitializer
|
||||
};
|
||||
};
|
||||
exports.memo = function (type, compare) {
|
||||
null == type &&
|
||||
console.error(
|
||||
"memo: The first argument must be a component. Instead received: %s",
|
||||
null === type ? "null" : typeof type
|
||||
);
|
||||
compare = {
|
||||
$$typeof: REACT_MEMO_TYPE,
|
||||
type: type,
|
||||
compare: void 0 === compare ? null : compare
|
||||
};
|
||||
var ownName;
|
||||
Object.defineProperty(compare, "displayName", {
|
||||
enumerable: !1,
|
||||
configurable: !0,
|
||||
get: function () {
|
||||
return ownName;
|
||||
},
|
||||
set: function (name) {
|
||||
ownName = name;
|
||||
type.name ||
|
||||
type.displayName ||
|
||||
(Object.defineProperty(type, "name", { value: name }),
|
||||
(type.displayName = name));
|
||||
}
|
||||
});
|
||||
return compare;
|
||||
};
|
||||
exports.use = function (usable) {
|
||||
return resolveDispatcher().use(usable);
|
||||
};
|
||||
exports.useCallback = function (callback, deps) {
|
||||
return resolveDispatcher().useCallback(callback, deps);
|
||||
};
|
||||
exports.useDebugValue = function (value, formatterFn) {
|
||||
return resolveDispatcher().useDebugValue(value, formatterFn);
|
||||
};
|
||||
exports.useId = function () {
|
||||
return resolveDispatcher().useId();
|
||||
};
|
||||
exports.useMemo = function (create, deps) {
|
||||
return resolveDispatcher().useMemo(create, deps);
|
||||
};
|
||||
exports.version = "19.1.0";
|
||||
})();
|
||||
@@ -1,429 +0,0 @@
|
||||
/**
|
||||
* @license React
|
||||
* react.react-server.production.js
|
||||
*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
var ReactSharedInternals = { H: null, A: null };
|
||||
function formatProdErrorMessage(code) {
|
||||
var url = "https://react.dev/errors/" + code;
|
||||
if (1 < arguments.length) {
|
||||
url += "?args[]=" + encodeURIComponent(arguments[1]);
|
||||
for (var i = 2; i < arguments.length; i++)
|
||||
url += "&args[]=" + encodeURIComponent(arguments[i]);
|
||||
}
|
||||
return (
|
||||
"Minified React error #" +
|
||||
code +
|
||||
"; visit " +
|
||||
url +
|
||||
" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
|
||||
);
|
||||
}
|
||||
var isArrayImpl = Array.isArray,
|
||||
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
||||
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
||||
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
||||
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
||||
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
||||
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
||||
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
||||
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
||||
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
||||
MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
||||
function getIteratorFn(maybeIterable) {
|
||||
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
||||
maybeIterable =
|
||||
(MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
|
||||
maybeIterable["@@iterator"];
|
||||
return "function" === typeof maybeIterable ? maybeIterable : null;
|
||||
}
|
||||
var hasOwnProperty = Object.prototype.hasOwnProperty,
|
||||
assign = Object.assign;
|
||||
function ReactElement(type, key, self, source, owner, props) {
|
||||
self = props.ref;
|
||||
return {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type: type,
|
||||
key: key,
|
||||
ref: void 0 !== self ? self : null,
|
||||
props: props
|
||||
};
|
||||
}
|
||||
function cloneAndReplaceKey(oldElement, newKey) {
|
||||
return ReactElement(
|
||||
oldElement.type,
|
||||
newKey,
|
||||
void 0,
|
||||
void 0,
|
||||
void 0,
|
||||
oldElement.props
|
||||
);
|
||||
}
|
||||
function isValidElement(object) {
|
||||
return (
|
||||
"object" === typeof object &&
|
||||
null !== object &&
|
||||
object.$$typeof === REACT_ELEMENT_TYPE
|
||||
);
|
||||
}
|
||||
function escape(key) {
|
||||
var escaperLookup = { "=": "=0", ":": "=2" };
|
||||
return (
|
||||
"$" +
|
||||
key.replace(/[=:]/g, function (match) {
|
||||
return escaperLookup[match];
|
||||
})
|
||||
);
|
||||
}
|
||||
var userProvidedKeyEscapeRegex = /\/+/g;
|
||||
function getElementKey(element, index) {
|
||||
return "object" === typeof element && null !== element && null != element.key
|
||||
? escape("" + element.key)
|
||||
: index.toString(36);
|
||||
}
|
||||
function noop() {}
|
||||
function resolveThenable(thenable) {
|
||||
switch (thenable.status) {
|
||||
case "fulfilled":
|
||||
return thenable.value;
|
||||
case "rejected":
|
||||
throw thenable.reason;
|
||||
default:
|
||||
switch (
|
||||
("string" === typeof thenable.status
|
||||
? thenable.then(noop, noop)
|
||||
: ((thenable.status = "pending"),
|
||||
thenable.then(
|
||||
function (fulfilledValue) {
|
||||
"pending" === thenable.status &&
|
||||
((thenable.status = "fulfilled"),
|
||||
(thenable.value = fulfilledValue));
|
||||
},
|
||||
function (error) {
|
||||
"pending" === thenable.status &&
|
||||
((thenable.status = "rejected"), (thenable.reason = error));
|
||||
}
|
||||
)),
|
||||
thenable.status)
|
||||
) {
|
||||
case "fulfilled":
|
||||
return thenable.value;
|
||||
case "rejected":
|
||||
throw thenable.reason;
|
||||
}
|
||||
}
|
||||
throw thenable;
|
||||
}
|
||||
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
||||
var type = typeof children;
|
||||
if ("undefined" === type || "boolean" === type) children = null;
|
||||
var invokeCallback = !1;
|
||||
if (null === children) invokeCallback = !0;
|
||||
else
|
||||
switch (type) {
|
||||
case "bigint":
|
||||
case "string":
|
||||
case "number":
|
||||
invokeCallback = !0;
|
||||
break;
|
||||
case "object":
|
||||
switch (children.$$typeof) {
|
||||
case REACT_ELEMENT_TYPE:
|
||||
case REACT_PORTAL_TYPE:
|
||||
invokeCallback = !0;
|
||||
break;
|
||||
case REACT_LAZY_TYPE:
|
||||
return (
|
||||
(invokeCallback = children._init),
|
||||
mapIntoArray(
|
||||
invokeCallback(children._payload),
|
||||
array,
|
||||
escapedPrefix,
|
||||
nameSoFar,
|
||||
callback
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
if (invokeCallback)
|
||||
return (
|
||||
(callback = callback(children)),
|
||||
(invokeCallback =
|
||||
"" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar),
|
||||
isArrayImpl(callback)
|
||||
? ((escapedPrefix = ""),
|
||||
null != invokeCallback &&
|
||||
(escapedPrefix =
|
||||
invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
|
||||
mapIntoArray(callback, array, escapedPrefix, "", function (c) {
|
||||
return c;
|
||||
}))
|
||||
: null != callback &&
|
||||
(isValidElement(callback) &&
|
||||
(callback = cloneAndReplaceKey(
|
||||
callback,
|
||||
escapedPrefix +
|
||||
(null == callback.key ||
|
||||
(children && children.key === callback.key)
|
||||
? ""
|
||||
: ("" + callback.key).replace(
|
||||
userProvidedKeyEscapeRegex,
|
||||
"$&/"
|
||||
) + "/") +
|
||||
invokeCallback
|
||||
)),
|
||||
array.push(callback)),
|
||||
1
|
||||
);
|
||||
invokeCallback = 0;
|
||||
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
||||
if (isArrayImpl(children))
|
||||
for (var i = 0; i < children.length; i++)
|
||||
(nameSoFar = children[i]),
|
||||
(type = nextNamePrefix + getElementKey(nameSoFar, i)),
|
||||
(invokeCallback += mapIntoArray(
|
||||
nameSoFar,
|
||||
array,
|
||||
escapedPrefix,
|
||||
type,
|
||||
callback
|
||||
));
|
||||
else if (((i = getIteratorFn(children)), "function" === typeof i))
|
||||
for (
|
||||
children = i.call(children), i = 0;
|
||||
!(nameSoFar = children.next()).done;
|
||||
|
||||
)
|
||||
(nameSoFar = nameSoFar.value),
|
||||
(type = nextNamePrefix + getElementKey(nameSoFar, i++)),
|
||||
(invokeCallback += mapIntoArray(
|
||||
nameSoFar,
|
||||
array,
|
||||
escapedPrefix,
|
||||
type,
|
||||
callback
|
||||
));
|
||||
else if ("object" === type) {
|
||||
if ("function" === typeof children.then)
|
||||
return mapIntoArray(
|
||||
resolveThenable(children),
|
||||
array,
|
||||
escapedPrefix,
|
||||
nameSoFar,
|
||||
callback
|
||||
);
|
||||
array = String(children);
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
31,
|
||||
"[object Object]" === array
|
||||
? "object with keys {" + Object.keys(children).join(", ") + "}"
|
||||
: array
|
||||
)
|
||||
);
|
||||
}
|
||||
return invokeCallback;
|
||||
}
|
||||
function mapChildren(children, func, context) {
|
||||
if (null == children) return children;
|
||||
var result = [],
|
||||
count = 0;
|
||||
mapIntoArray(children, result, "", "", function (child) {
|
||||
return func.call(context, child, count++);
|
||||
});
|
||||
return result;
|
||||
}
|
||||
function lazyInitializer(payload) {
|
||||
if (-1 === payload._status) {
|
||||
var ctor = payload._result;
|
||||
ctor = ctor();
|
||||
ctor.then(
|
||||
function (moduleObject) {
|
||||
if (0 === payload._status || -1 === payload._status)
|
||||
(payload._status = 1), (payload._result = moduleObject);
|
||||
},
|
||||
function (error) {
|
||||
if (0 === payload._status || -1 === payload._status)
|
||||
(payload._status = 2), (payload._result = error);
|
||||
}
|
||||
);
|
||||
-1 === payload._status && ((payload._status = 0), (payload._result = ctor));
|
||||
}
|
||||
if (1 === payload._status) return payload._result.default;
|
||||
throw payload._result;
|
||||
}
|
||||
function createCacheRoot() {
|
||||
return new WeakMap();
|
||||
}
|
||||
function createCacheNode() {
|
||||
return { s: 0, v: void 0, o: null, p: null };
|
||||
}
|
||||
exports.Children = {
|
||||
map: mapChildren,
|
||||
forEach: function (children, forEachFunc, forEachContext) {
|
||||
mapChildren(
|
||||
children,
|
||||
function () {
|
||||
forEachFunc.apply(this, arguments);
|
||||
},
|
||||
forEachContext
|
||||
);
|
||||
},
|
||||
count: function (children) {
|
||||
var n = 0;
|
||||
mapChildren(children, function () {
|
||||
n++;
|
||||
});
|
||||
return n;
|
||||
},
|
||||
toArray: function (children) {
|
||||
return (
|
||||
mapChildren(children, function (child) {
|
||||
return child;
|
||||
}) || []
|
||||
);
|
||||
},
|
||||
only: function (children) {
|
||||
if (!isValidElement(children)) throw Error(formatProdErrorMessage(143));
|
||||
return children;
|
||||
}
|
||||
};
|
||||
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||
exports.Profiler = REACT_PROFILER_TYPE;
|
||||
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
||||
exports.Suspense = REACT_SUSPENSE_TYPE;
|
||||
exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
||||
ReactSharedInternals;
|
||||
exports.cache = function (fn) {
|
||||
return function () {
|
||||
var dispatcher = ReactSharedInternals.A;
|
||||
if (!dispatcher) return fn.apply(null, arguments);
|
||||
var fnMap = dispatcher.getCacheForType(createCacheRoot);
|
||||
dispatcher = fnMap.get(fn);
|
||||
void 0 === dispatcher &&
|
||||
((dispatcher = createCacheNode()), fnMap.set(fn, dispatcher));
|
||||
fnMap = 0;
|
||||
for (var l = arguments.length; fnMap < l; fnMap++) {
|
||||
var arg = arguments[fnMap];
|
||||
if (
|
||||
"function" === typeof arg ||
|
||||
("object" === typeof arg && null !== arg)
|
||||
) {
|
||||
var objectCache = dispatcher.o;
|
||||
null === objectCache && (dispatcher.o = objectCache = new WeakMap());
|
||||
dispatcher = objectCache.get(arg);
|
||||
void 0 === dispatcher &&
|
||||
((dispatcher = createCacheNode()), objectCache.set(arg, dispatcher));
|
||||
} else
|
||||
(objectCache = dispatcher.p),
|
||||
null === objectCache && (dispatcher.p = objectCache = new Map()),
|
||||
(dispatcher = objectCache.get(arg)),
|
||||
void 0 === dispatcher &&
|
||||
((dispatcher = createCacheNode()),
|
||||
objectCache.set(arg, dispatcher));
|
||||
}
|
||||
if (1 === dispatcher.s) return dispatcher.v;
|
||||
if (2 === dispatcher.s) throw dispatcher.v;
|
||||
try {
|
||||
var result = fn.apply(null, arguments);
|
||||
fnMap = dispatcher;
|
||||
fnMap.s = 1;
|
||||
return (fnMap.v = result);
|
||||
} catch (error) {
|
||||
throw ((result = dispatcher), (result.s = 2), (result.v = error), error);
|
||||
}
|
||||
};
|
||||
};
|
||||
exports.captureOwnerStack = function () {
|
||||
return null;
|
||||
};
|
||||
exports.cloneElement = function (element, config, children) {
|
||||
if (null === element || void 0 === element)
|
||||
throw Error(formatProdErrorMessage(267, element));
|
||||
var props = assign({}, element.props),
|
||||
key = element.key,
|
||||
owner = void 0;
|
||||
if (null != config)
|
||||
for (propName in (void 0 !== config.ref && (owner = void 0),
|
||||
void 0 !== config.key && (key = "" + config.key),
|
||||
config))
|
||||
!hasOwnProperty.call(config, propName) ||
|
||||
"key" === propName ||
|
||||
"__self" === propName ||
|
||||
"__source" === propName ||
|
||||
("ref" === propName && void 0 === config.ref) ||
|
||||
(props[propName] = config[propName]);
|
||||
var propName = arguments.length - 2;
|
||||
if (1 === propName) props.children = children;
|
||||
else if (1 < propName) {
|
||||
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
||||
childArray[i] = arguments[i + 2];
|
||||
props.children = childArray;
|
||||
}
|
||||
return ReactElement(element.type, key, void 0, void 0, owner, props);
|
||||
};
|
||||
exports.createElement = function (type, config, children) {
|
||||
var propName,
|
||||
props = {},
|
||||
key = null;
|
||||
if (null != config)
|
||||
for (propName in (void 0 !== config.key && (key = "" + config.key), config))
|
||||
hasOwnProperty.call(config, propName) &&
|
||||
"key" !== propName &&
|
||||
"__self" !== propName &&
|
||||
"__source" !== propName &&
|
||||
(props[propName] = config[propName]);
|
||||
var childrenLength = arguments.length - 2;
|
||||
if (1 === childrenLength) props.children = children;
|
||||
else if (1 < childrenLength) {
|
||||
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
||||
childArray[i] = arguments[i + 2];
|
||||
props.children = childArray;
|
||||
}
|
||||
if (type && type.defaultProps)
|
||||
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
||||
void 0 === props[propName] &&
|
||||
(props[propName] = childrenLength[propName]);
|
||||
return ReactElement(type, key, void 0, void 0, null, props);
|
||||
};
|
||||
exports.createRef = function () {
|
||||
return { current: null };
|
||||
};
|
||||
exports.forwardRef = function (render) {
|
||||
return { $$typeof: REACT_FORWARD_REF_TYPE, render: render };
|
||||
};
|
||||
exports.isValidElement = isValidElement;
|
||||
exports.lazy = function (ctor) {
|
||||
return {
|
||||
$$typeof: REACT_LAZY_TYPE,
|
||||
_payload: { _status: -1, _result: ctor },
|
||||
_init: lazyInitializer
|
||||
};
|
||||
};
|
||||
exports.memo = function (type, compare) {
|
||||
return {
|
||||
$$typeof: REACT_MEMO_TYPE,
|
||||
type: type,
|
||||
compare: void 0 === compare ? null : compare
|
||||
};
|
||||
};
|
||||
exports.use = function (usable) {
|
||||
return ReactSharedInternals.H.use(usable);
|
||||
};
|
||||
exports.useCallback = function (callback, deps) {
|
||||
return ReactSharedInternals.H.useCallback(callback, deps);
|
||||
};
|
||||
exports.useDebugValue = function () {};
|
||||
exports.useId = function () {
|
||||
return ReactSharedInternals.H.useId();
|
||||
};
|
||||
exports.useMemo = function (create, deps) {
|
||||
return ReactSharedInternals.H.useMemo(create, deps);
|
||||
};
|
||||
exports.version = "19.1.0";
|
||||
14
autogpt_platform/node_modules/.pnpm/react@19.1.0/node_modules/react/compiler-runtime.js
generated
vendored
14
autogpt_platform/node_modules/.pnpm/react@19.1.0/node_modules/react/compiler-runtime.js
generated
vendored
@@ -1,14 +0,0 @@
|
||||
/**
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
module.exports = require('./cjs/react-compiler-runtime.production.js');
|
||||
} else {
|
||||
module.exports = require('./cjs/react-compiler-runtime.development.js');
|
||||
}
|
||||
7
autogpt_platform/node_modules/.pnpm/react@19.1.0/node_modules/react/index.js
generated
vendored
7
autogpt_platform/node_modules/.pnpm/react@19.1.0/node_modules/react/index.js
generated
vendored
@@ -1,7 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
module.exports = require('./cjs/react.production.js');
|
||||
} else {
|
||||
module.exports = require('./cjs/react.development.js');
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
module.exports = require('./cjs/react-jsx-dev-runtime.production.js');
|
||||
} else {
|
||||
module.exports = require('./cjs/react-jsx-dev-runtime.development.js');
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
module.exports = require('./cjs/react-jsx-dev-runtime.react-server.production.js');
|
||||
} else {
|
||||
module.exports = require('./cjs/react-jsx-dev-runtime.react-server.development.js');
|
||||
}
|
||||
7
autogpt_platform/node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.js
generated
vendored
7
autogpt_platform/node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.js
generated
vendored
@@ -1,7 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
module.exports = require('./cjs/react-jsx-runtime.production.js');
|
||||
} else {
|
||||
module.exports = require('./cjs/react-jsx-runtime.development.js');
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
module.exports = require('./cjs/react-jsx-runtime.react-server.production.js');
|
||||
} else {
|
||||
module.exports = require('./cjs/react-jsx-runtime.react-server.development.js');
|
||||
}
|
||||
51
autogpt_platform/node_modules/.pnpm/react@19.1.0/node_modules/react/package.json
generated
vendored
51
autogpt_platform/node_modules/.pnpm/react@19.1.0/node_modules/react/package.json
generated
vendored
@@ -1,51 +0,0 @@
|
||||
{
|
||||
"name": "react",
|
||||
"description": "React is a JavaScript library for building user interfaces.",
|
||||
"keywords": [
|
||||
"react"
|
||||
],
|
||||
"version": "19.1.0",
|
||||
"homepage": "https://react.dev/",
|
||||
"bugs": "https://github.com/facebook/react/issues",
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
"LICENSE",
|
||||
"README.md",
|
||||
"index.js",
|
||||
"cjs/",
|
||||
"compiler-runtime.js",
|
||||
"jsx-runtime.js",
|
||||
"jsx-runtime.react-server.js",
|
||||
"jsx-dev-runtime.js",
|
||||
"jsx-dev-runtime.react-server.js",
|
||||
"react.react-server.js"
|
||||
],
|
||||
"main": "index.js",
|
||||
"exports": {
|
||||
".": {
|
||||
"react-server": "./react.react-server.js",
|
||||
"default": "./index.js"
|
||||
},
|
||||
"./package.json": "./package.json",
|
||||
"./jsx-runtime": {
|
||||
"react-server": "./jsx-runtime.react-server.js",
|
||||
"default": "./jsx-runtime.js"
|
||||
},
|
||||
"./jsx-dev-runtime": {
|
||||
"react-server": "./jsx-dev-runtime.react-server.js",
|
||||
"default": "./jsx-dev-runtime.js"
|
||||
},
|
||||
"./compiler-runtime": {
|
||||
"react-server": "./compiler-runtime.js",
|
||||
"default": "./compiler-runtime.js"
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/facebook/react.git",
|
||||
"directory": "packages/react"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
module.exports = require('./cjs/react.react-server.production.js');
|
||||
} else {
|
||||
module.exports = require('./cjs/react.react-server.development.js');
|
||||
}
|
||||
1
autogpt_platform/node_modules/nuqs
generated
vendored
1
autogpt_platform/node_modules/nuqs
generated
vendored
@@ -1 +0,0 @@
|
||||
.pnpm/nuqs@2.4.3_react@19.1.0/node_modules/nuqs
|
||||
Reference in New Issue
Block a user