Repository: jpb12/react-tree-graph Branch: master Commit: 2e0a62d1d782 Files: 95 Total size: 5.9 MB Directory structure: gitextract_xm1rgv6b/ ├── .babelrc ├── .browserslistrc ├── .editorconfig ├── .eslintrc.json ├── .github/ │ └── workflows/ │ ├── build.yml │ ├── coverage.yml │ ├── storybook.yml │ └── test.yml ├── .gitignore ├── .npmignore ├── .storybook/ │ ├── .eslintrc.json │ ├── main.js │ ├── manager-head.html │ ├── manager.js │ ├── preview.js │ ├── stories/ │ │ ├── animatedTree.stories.js │ │ ├── argTypes.js │ │ ├── intro.mdx │ │ ├── labels.stories.js │ │ ├── nodes.stories.js │ │ └── tree.stories.js │ └── styles/ │ ├── nodeProps.css │ ├── polygon.css │ └── styles.css ├── CHANGELOG.md ├── LICENSE ├── README.md ├── __tests__/ │ ├── .eslintrc.json │ ├── Components/ │ │ ├── __snapshots__/ │ │ │ ├── animatedTests.js.snap │ │ │ ├── animatedTreeTests.js.snap │ │ │ ├── containerTests.js.snap │ │ │ ├── linkTests.js.snap │ │ │ ├── nodeTests.js.snap │ │ │ └── treeTests.js.snap │ │ ├── animatedTests.js │ │ ├── animatedTreeTests.js │ │ ├── containerTests.js │ │ ├── linkTests.js │ │ ├── nodeTests.js │ │ └── treeTests.js │ ├── d3Tests.js │ ├── startup.js │ └── wrapHandlersTests.js ├── dist/ │ ├── index.js │ ├── module/ │ │ ├── components/ │ │ │ ├── animated.js │ │ │ ├── animatedTree.js │ │ │ ├── container.js │ │ │ ├── link.js │ │ │ ├── node.js │ │ │ └── tree.js │ │ ├── d3.js │ │ ├── index.js │ │ └── wrapHandlers.js │ └── style.css ├── docs/ │ ├── 161.a4718455.iframe.bundle.js │ ├── 294.bd1debad.iframe.bundle.js │ ├── 357.c654aade.iframe.bundle.js │ ├── 434.8aa01134.iframe.bundle.js │ ├── 688.1553505b.iframe.bundle.js │ ├── 688.1553505b.iframe.bundle.js.LICENSE.txt │ ├── 735.697195c4.iframe.bundle.js │ ├── animatedTree-stories.fcd27f04.iframe.bundle.js │ ├── iframe.html │ ├── index.html │ ├── index.json │ ├── intro-mdx.158e5140.iframe.bundle.js │ ├── labels-stories.c283c343.iframe.bundle.js │ ├── main.539c4757.iframe.bundle.js │ ├── mocker-runtime-injected.js │ ├── mocker-runtime-injected.js.LICENSE.txt │ ├── nodes-stories.e7851c9e.iframe.bundle.js │ ├── project.json │ ├── runtime~main.d380d272.iframe.bundle.js │ ├── sb-addons/ │ │ ├── docs-1/ │ │ │ └── manager-bundle.js │ │ ├── storybook-2/ │ │ │ └── manager-bundle.js │ │ └── storybook-core-server-presets-0/ │ │ └── common-manager-bundle.js │ ├── sb-manager/ │ │ ├── globals-module-info.js │ │ ├── globals-runtime.js │ │ ├── globals.js │ │ └── runtime.js │ ├── sb-preview/ │ │ ├── globals.js │ │ └── runtime.js │ └── tree-stories.4e3a1159.iframe.bundle.js ├── package.json ├── rollup.config.mjs ├── src/ │ ├── components/ │ │ ├── animated.js │ │ ├── animatedTree.js │ │ ├── container.js │ │ ├── link.js │ │ ├── node.js │ │ └── tree.js │ ├── d3.js │ ├── index.js │ └── wrapHandlers.js └── styles/ └── style.css ================================================ FILE CONTENTS ================================================ ================================================ FILE: .babelrc ================================================ { "presets": [ "@babel/env", "@babel/react" ] } ================================================ FILE: .browserslistrc ================================================ last 2 Chrome version last 2 Edge version last 2 Firefox version last 2 Safari version maintained node versions ================================================ FILE: .editorconfig ================================================ root = true [*] indent_style = tab insert_final_newline = false trim_trailing_whitespace = true [{package.json,package-lock.json,.github/workflows/*.yml}] indent_style = space indent_size = 2 ================================================ FILE: .eslintrc.json ================================================ { "env": { "browser": true }, "extends": [ "eslint:recommended", "plugin:react/recommended" ], "parser": "@babel/eslint-parser", "parserOptions": { "ecmaVersion": 2021, "ecmaFeatures": { "jsx": true }, "sourceType": "module" }, "plugins": [ "react" ], "rules": { "array-bracket-newline": [ "error", "consistent" ], "array-bracket-spacing": [ "error", "never" ], "array-element-newline": [ "error", "consistent" ], "arrow-body-style": [ "error", "as-needed" ], "arrow-parens": [ "error", "as-needed" ], "arrow-spacing": "error", "block-spacing": "error", "brace-style": [ "error", "1tbs", { "allowSingleLine": true } ], "camelcase": "error", "comma-dangle": [ "error", "never" ], "comma-spacing": [ "error", { "before": false, "after": true } ], "comma-style": [ "error", "last" ], "computed-property-spacing": [ "error", "never" ], "curly": "error", "dot-location": [ "error", "property" ], "eol-last": [ "error", "never" ], "func-call-spacing": [ "error", "never" ], "func-names": [ "error", "always" ], "func-style": [ "error", "declaration" ], "function-paren-newline": [ "error", "consistent" ], "indent": [ "error", "tab", { "SwitchCase": 1 } ], "jsx-quotes": [ "error", "prefer-double" ], "key-spacing": [ "error", { "mode": "strict" } ], "keyword-spacing": "error", "lines-between-class-members": [ "error", "always" ], "no-array-constructor": "error", "no-bitwise": "error", "no-duplicate-imports": "error", "no-lonely-if": "error", "no-multi-assign": "error", "no-multiple-empty-lines": "error", "no-multi-spaces": [ "error", { "exceptions": { "Property": false } } ], "no-trailing-spaces": "error", "no-unneeded-ternary": [ "error", { "defaultAssignment": false } ], "no-useless-computed-key": "error", "no-useless-constructor": "error", "no-useless-rename": "error", "no-var": "error", "no-whitespace-before-property": "error", "object-curly-newline": [ "error", { "consistent": true } ], "object-curly-spacing": [ "error", "always" ], "operator-linebreak": [ "error", "before" ], "padded-blocks": [ "error", "never" ], "prefer-arrow-callback": "error", "prefer-rest-params": "error", "prefer-spread": "error", "prefer-template": "error", "quotes": [ "error", "single" ], "react/jsx-boolean-value": "error", "react/jsx-closing-bracket-location": [ "error", "after-props" ], "react/jsx-closing-tag-location": "error", "react/jsx-curly-spacing": "error", "react/jsx-equals-spacing": "error", "react/jsx-first-prop-new-line": [ "error", "multiline" ], "react/jsx-handler-names": "error", "react/jsx-indent": [ "error", "tab" ], "react/jsx-indent-props": [ "error", "tab" ], "react/jsx-no-bind": "error", "react/jsx-curly-brace-presence": "error", "react/jsx-pascal-case": "error", "react/jsx-props-no-multi-spaces": "error", "react/jsx-tag-spacing": [ "error", { "beforeSelfClosing": "never", "beforeClosing": "never" } ], "react/no-access-state-in-setstate": "error", "react/no-typos": "error", "react/no-unused-state": "error", "react/prefer-es6-class": "error", "react/prop-types": "off", "react/self-closing-comp": "error", "react/sort-comp": "error", "react/style-prop-object": "error", "rest-spread-spacing": [ "error", "never" ], "semi": [ "error", "always" ], "semi-spacing": "error", "semi-style": [ "error", "last" ], "space-before-blocks": "error", "space-before-function-paren": [ "error", "never" ], "space-in-parens": [ "error", "never" ], "space-infix-ops": "error", "switch-colon-spacing": "error", "template-curly-spacing": "error" }, "settings": { "react": { "version": "18" } } } ================================================ FILE: .github/workflows/build.yml ================================================ name: Build on: push: branches: [ 'master' ] pull_request: branches: [ 'master' ] permissions: contents: read jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Use Node.js 22.x uses: actions/setup-node@v4 with: node-version: 22.x cache: 'npm' - name: Install run: npm ci - name: Lint run: npm run eslint - name: Build run: npm run build - name: Check Git changes uses: multani/git-changes-action@v1 ================================================ FILE: .github/workflows/coverage.yml ================================================ name: Coverage on: push: branches: [ 'master' ] pull_request: branches: [ 'master' ] permissions: contents: read jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Use Node.js 22.x uses: actions/setup-node@v4 with: node-version: 22.x cache: 'npm' - name: Install run: npm ci - name: Test run: npm test -- --coverage - name: Coveralls uses: coverallsapp/github-action@v2.0.0 ================================================ FILE: .github/workflows/storybook.yml ================================================ name: Storybook on: push: branches: [ 'master' ] pull_request: branches: [ 'master' ] permissions: contents: read jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Use Node.js 22.x uses: actions/setup-node@v4 with: node-version: 22.x cache: 'npm' - name: Install run: npm ci - name: Storybook run: npm run storybook-build ================================================ FILE: .github/workflows/test.yml ================================================ name: Test on: push: branches: [ 'master' ] pull_request: branches: [ 'master' ] permissions: contents: read jobs: build: runs-on: ubuntu-latest strategy: matrix: node-version: [ 20.x, 22.x, 23.x ] steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'npm' - name: Install run: npm ci - name: Test run: npm test ================================================ FILE: .gitignore ================================================ .idea /coverage /node_modules/ ================================================ FILE: .npmignore ================================================ .babelrc .browserslistrc .editorconfig .eslintrc.json .github .gitignore .npmignore .storybook docs rollup.config.mjs src styles __tests__ coverage ================================================ FILE: .storybook/.eslintrc.json ================================================ { "extends": [ "plugin:storybook/recommended", "../.eslintrc.json" ], "rules": { "react/react-in-jsx-scope": "off" } } ================================================ FILE: .storybook/main.js ================================================ export default { addons: ['@storybook/addon-docs', '@storybook/addon-webpack5-compiler-babel'], framework: { name: '@storybook/react-webpack5' }, staticDirs: ['./images'], stories: ['./stories/**/*.(stories.js|mdx)'], webpackFinal(config) { config.target = 'web'; return config; }, features: { actions: false, backgrounds: false, measure: false, outline: false, viewport: false } }; ================================================ FILE: .storybook/manager-head.html ================================================ ================================================ FILE: .storybook/manager.js ================================================ import { addons } from 'storybook/manager-api'; import { create } from 'storybook/theming'; addons.setConfig({ theme: create({ base: 'light', brandTitle: 'react-tree-graph' }) }); ================================================ FILE: .storybook/preview.js ================================================ import { Title, Subtitle, Description, Primary, Controls, Stories } from '@storybook/addon-docs/blocks'; import React from 'react'; import '../styles/style.css'; export default { parameters: { controls: { expanded: true }, docs: { page: () => ( <> <Subtitle/> <Description/> <Primary/> <Controls/> <Stories includePrimary={false}/> </> ) }, layout: 'centered', options: { storySort: { order: ['Introduction', 'Tree', 'AnimatedTree'] } }, viewMode: 'docs' }, tags: ['autodocs'] }; ================================================ FILE: .storybook/stories/animatedTree.stories.js ================================================ import React, { useEffect, useState } from 'react'; import { AnimatedTree } from '../../src'; import { AnimatedTreeArgTypes } from './argTypes'; export default { title: 'AnimatedTree/Animations', component: AnimatedTree, argTypes: AnimatedTreeArgTypes, parameters: { docs: { description: { component: 'The AnimatedTree component has all the same props as the Tree component, and additional props to customise animation behaviour. Animations are automatically triggered when changes to the `data` prop are made. This demo works by using `setTimeout` to change the `data` prop every 2 seconds.' } } } }; const order = [0, 1, 0, 2]; const data = [ { name: 'Parent', children: [{ name: 'Child One' }, { name: 'Child Two' }, { name: 'Child Three', children: [{ name: 'Grandchild One' }, { name: 'Grandchild Two' }] }] }, { name: 'Child Three', children: [{ name: 'Grandchild One' }, { name: 'Grandchild Two' }] }, { name: 'Parent', children: [{ name: 'Child One' }, { name: 'Child Two' }] } ]; export const Animations = { args: { height: 400, width: 600 }, parameters: { controls: { include: ['duration', 'easing', 'steps'] } }, render: args => { const [position, setPosition] = useState(0); useEffect(() => { setTimeout(() => { if (position >= order.length - 1) { return setPosition(0); } return setPosition(position + 1); }, 2000); }); return <AnimatedTree data={data[order[position]]} {...args}/>; } }; ================================================ FILE: .storybook/stories/argTypes.js ================================================ import { easeBack, easeBackIn, easeBackOut, easeBounce, easeBounceIn, easeBounceInOut, easeCircle, easeCircleIn, easeCircleOut, easeCubic, easeCubicIn, easeCubicOut, easeElastic, easeElasticIn, easeElasticInOut, easeExp, easeExpIn, easeExpOut, easeLinear, easePoly, easePolyIn, easePolyOut, easeQuad, easeQuadIn, easeQuadOut, easeSin, easeSinIn, easeSinOut } from 'd3-ease'; const categories = { animation: 'Animation', data: 'Data', properties: 'SVG Properties', rendering: 'Tree Rendering' }; export const TreeArgTypes = { data: { table: { category: categories.data }, type: { name: 'object', required: true }, description: 'The data to be rendered as a tree. Must be in a format accepted by d3.hierarchy.' }, getChildren: { control: { disable: true }, table: { category: categories.data, defaultValue: { summary: 'node => node.children' } }, description: 'A function that returns the children for a node, or null/undefined if no children exist.' }, direction: { options: ['ltr', 'rtl'], table: { category: categories.rendering, defaultValue: { summary: 'ltr' } }, type: { name: 'string' }, description: 'The direction of the tree, left-to-right or right-to-left.' }, keyProp: { table: { category: categories.data, defaultValue: { summary: 'name' } }, type: { name: 'string' }, description: 'The property on each node to use as a key.' }, labelProp: { table: { category: categories.data, defaultValue: { summary: 'name' } }, type: { name: 'string' }, description: 'The property on each node to render as a label.' }, height: { table: { category: categories.rendering }, type: { name: 'number', required: true }, description: 'The height of the rendered tree, including margins.' }, width: { table: { category: categories.rendering }, type: { name: 'number', required: true }, description: 'The width of the rendered tree, including margins.' }, margins: { table: { category: categories.rendering, defaultValue: { summary: '{ bottom: 10, left: 20, right: 150, top: 10 }' } }, type: { name: 'object' }, description: 'The margins around the content. The right margin should be larger to include the rendered label text.' }, children: { table: { category: categories.rendering }, control: { disable: true }, description: 'Will be rendered as children of the SVG, before the links and nodes.' }, nodeShape: { options: ['circle', 'image', 'polygon', 'rect'], table: { category: categories.rendering, defaultValue: { summary: 'circle' } }, type: { name: 'select' }, description: 'The shape of the node icons. Additional nodeProps must be specifed for polygon and rect.' }, pathFunc: { control: { disable: true }, table: { category: categories.rendering, defaultValue: { summary: 'function(x1,y1,x2,y2)' } }, description: 'Function to calculate the co-ordinates of the path between nodes.' }, gProps: { table: { category: categories.properties, defaultValue: { summary: '{ className: \'node\' }' } }, type: { name: 'object' }, description: 'Props to be added to the `<g>` element. The default className will still be applied if a className property is not set.' }, nodeProps: { table: { category: categories.properties }, type: { name: 'object' }, description: 'Props to be added to the `<circle>`, `<image>`, `<polygon>` or `<rect>` element. These will take priority over the default r added to circle and height, width, x and y added to image and rect.' }, pathProps: { table: { category: categories.properties, defaultValue: { summary: '{ className: \'link\' }' } }, type: { name: 'object' }, description: 'Props to be added to the `<path>` element. The default className will still be applied if a className property is not set.' }, svgProps: { table: { category: categories.properties }, type: { name: 'object' }, description: 'Props to be added to the `<svg>` element.' }, textProps: { table: { category: categories.properties }, type: { name: 'object' }, description: 'Props to be added to the `<text>` element.' } }; export const AnimatedTreeArgTypes = { duration: { table: { category: categories.animation, defaultValue: { summary: 500 } }, type: { name: 'number' }, description: 'The duration in milliseconds of animations.' }, easing: { mapping: { easeBack, easeBackIn, easeBackOut, easeBounce, easeBounceIn, easeBounceInOut, easeCircle, easeCircleIn, easeCircleOut, easeCubic, easeCubicIn, easeCubicOut, easeElastic, easeElasticIn, easeElasticInOut, easeExp, easeExpIn, easeExpOut, easeLinear, easePoly, easePolyIn, easePolyOut, easeQuad, easeQuadIn, easeQuadOut, easeSin, easeSinIn, easeSinOut }, options: [ 'easeBack', 'easeBackIn', 'easeBackOut', 'easeBounce', 'easeBounceIn', 'easeBounceInOut', 'easeCircle', 'easeCircleIn', 'easeCircleOut', 'easeCubic', 'easeCubicIn', 'easeCubicOut', 'easeElastic', 'easeElasticIn', 'easeElasticInOut', 'easeExp', 'easeExpIn', 'easeExpOut', 'easeLinear', 'easePoly', 'easePolyIn', 'easePolyOut', 'easeQuad', 'easeQuadIn', 'easeQuadOut', 'easeSin', 'easeSinIn', 'easeSinOut' ], table: { category: categories.animation, defaultValue: { summary: 'easeQuadOut' } }, type: { name: 'select' }, description: 'The easing function for animations. Takes in a number between 0 and 1 and returns a number between 0 and 1. The options here are all from the d3-ease library.' }, steps: { table: { category: categories.animation, defaultValue: { summary: 20 } }, type: { name: 'number' }, description: 'The number of steps in animations. A higher number will result in a smoother animation, but too high will cause performance issues.' }, ...TreeArgTypes }; ================================================ FILE: .storybook/stories/intro.mdx ================================================ import { Meta } from '@storybook/addon-docs/blocks'; <Meta title="Introduction" /> # react-tree-graph [![Github](https://img.shields.io/github/stars/jpb12/react-tree-graph?style=social)](https://github.com/jpb12/react-tree-graph) [![Build Status](https://img.shields.io/github/actions/workflow/status/jpb12/react-tree-graph/build.yml)](https://github.com/jpb12/react-tree-graph/actions/workflows/build.yml?query=branch%3Amaster) [![Coverage Status](https://coveralls.io/repos/github/jpb12/react-tree-graph/badge.svg?branch=master)](https://coveralls.io/github/jpb12/react-tree-graph?branch=master) [![npm version](https://img.shields.io/npm/v/react-tree-graph.svg)](https://www.npmjs.com/package/react-tree-graph) [![npm](https://img.shields.io/npm/dt/react-tree-graph.svg)](https://www.npmjs.com/package/react-tree-graph) [![bundle size](https://img.shields.io/bundlephobia/minzip/react-tree-graph)](https://bundlephobia.com/result?p=react-tree-graph) [![license](https://img.shields.io/npm/l/react-tree-graph)](https://github.com/jpb12/react-tree-graph/blob/master/LICENSE) A simple react component which renders data as a tree using svg. The source code for these examples can be found on [github](https://github.com/jpb12/react-tree-graph/tree/master/.storybook/stories). ## Installation ```sh npm install react-tree-graph --save ``` ## Usage ```javascript import { Tree } from 'react-tree-graph'; const data = { name: 'Parent', children: [{ name: 'Child One' }, { name: 'Child Two' }] }; <Tree data={data} height={400} width={400}/>); import { AnimatedTree } from 'react-tree-graph'; <AnimatedTree data={data} height={400} width={400}/>); ``` If you are using webpack, and have [css-loader](https://www.npmjs.com/package/css-loader), you can include some default styles with: ```javascript import 'react-tree-graph/dist/style.css' ``` Alternatively, both the JavaScript and CSS can be included directly from the dist folder with script tags. ================================================ FILE: .storybook/stories/labels.stories.js ================================================ import React from 'react'; import { Tree } from '../../src'; import { TreeArgTypes } from './argTypes'; export default { title: 'Tree/Labels', component: Tree, argTypes: TreeArgTypes, parameters: { docs: { description: { component: 'Setting a `labelProp` allows multiple nodes to have the same label. You can also achieve the same result by setting a `keyProp` instead.' } } } }; export const Duplicate = { args: { height: 400, width: 600, data: { name: 'Parent', label: 'Parent', children: [{ label: 'Child', name: 'Child One' }, { label: 'Child', name: 'Child Two' }] }, labelProp: 'label' }, parameters: { controls: { include: ['data', 'labelProp'] } } }; export const JSX = { args: { height: 400, width: 600, data: { name: 'Parent', label: 'String', children: [{ label: <><rect height="18" width="32" y="-15"/><text dx="2">JSX</text></>, name: 'Child One' }, { label: () => <text>Custom component</text>, name: 'Child Two' }] }, labelProp: 'label' }, parameters: { controls: { include: ['data', 'labelProp'] }, docs: { description: { story: 'Setting a `labelProp` allows labels to be JSX. They must return valid SVG elements.' } } } }; ================================================ FILE: .storybook/stories/nodes.stories.js ================================================ import { Tree } from '../../src'; import { TreeArgTypes } from './argTypes'; import '../styles/nodeProps.css'; import '../styles/polygon.css'; export default { title: 'Tree/Nodes', subtitle: 'Rectangular Nodes', component: Tree, argTypes: TreeArgTypes }; const defaultArgs = { height: 400, width: 600, data: { name: 'Parent', children: [{ name: 'Child One' }, { name: 'Child Two' }] } }; export const RectangularNodes = { args: { ...defaultArgs, nodeShape: 'rect', nodeProps: { rx: 2 } }, parameters: { componentSubtitle: 'Rectangular Nodes', controls: { include: ['data', 'nodeShape', 'nodeProps'] } } }; export const PolygonNodes = { args: { ...defaultArgs, nodeShape: 'polygon', nodeProps: { points: [ 10, 0, 12.351141009169893, 6.76393202250021, 19.510565162951536, 6.9098300562505255, 13.804226065180615, 11.23606797749979, 15.877852522924734, 18.090169943749473, 10, 14, 4.12214747707527, 18.090169943749473, 6.195773934819385, 11.23606797749979, 0.4894348370484636, 6.909830056250527, 7.648858990830107, 6.76393202250021 ].join(','), transform: 'translate(-10,-10)' }, svgProps: { className: 'star' }, textProps: { dx: 10.5 } }, parameters: { controls: { include: ['data', 'nodeShape', 'nodeProps', 'svgProps', 'textProps'] }, docs: { description: { story: 'For polygons, you will have to pass additional props to position the polygon and text. The polygon should be translated by half it\'s width and height, and the text should be offset by half the polygon\'s width plus some spacing for a gap.' } } } }; export const ImageNodes = { args: { ...defaultArgs, nodeShape: 'image', nodeProps: { height: 20, width: 20, href: 'disc.png' } }, parameters: { controls: { include: ['data', 'nodeShape', 'nodeProps'] } } }; export const CustomNodeProps = { args: { ...defaultArgs, data: { name: 'Parent', children: [ { label: 'First Child', labelProp: 'label', name: 'Child One', shape: 'rect' }, { name: 'Child Two', gProps: { className: 'red-node' } } ] }, gProps: { onClick: (event, node) => alert(`Clicked ${node}!`) } }, parameters: { controls: { include: ['data', 'nodeProps', 'gProps', 'pathProps', 'textProps', 'labelProp', 'keyProp', 'nodeShape'] }, docs: { description: { story: 'You can override props for individual nodes by setting them inside the `data` prop. `nodeProps`, `gProps`, `pathProps` (taken from the target node) and `textProps` on each node will be combined with those passed into `<Tree>`. `keyProp`, `labelProp` and `shape` (overrides `nodeShape`) will override those passed into `<Tree>`' } } } }; ================================================ FILE: .storybook/stories/tree.stories.js ================================================ import React from 'react'; import { Tree } from '../../src'; import { TreeArgTypes } from './argTypes'; import '../styles/styles.css'; export default { title: 'Tree', component: Tree, argTypes: TreeArgTypes, parameters: { docs: { description: { component: 'The Tree component should be used when animations are not needed. The only required props are data, height and width.' } } } }; export const Simple = { args: { height: 400, width: 600, data: { name: 'Parent', children: [{ name: 'Child One' }, { name: 'Child Two' }] } } }; export const Events = { args: { ...Simple.args, gProps: { onClick: (event, nodeKey) => alert(`Left clicked ${nodeKey}`), onContextMenu: (event, nodeKey) => { event.preventDefault(); alert(`Right clicked ${nodeKey}`); } } }, parameters: { controls: { include: ['data', 'gProps', 'pathProps', 'svgProps', 'textProps'] }, docs: { description: { story: 'Click on a node to trigger the custom event. You can also configure custom events on any of the rendered SVG elements.' } } } }; export const CustomChildren = { args: { ...Simple.args, children: <text dy="15" dx="5">Custom Title</text> }, parameters: { controls: { include: ['data', 'children'] }, docs: { description: { story: 'Children will be rendered before the tree.' } } } }; export const CustomPaths = { args: { ...Simple.args, pathFunc: (x1, y1, x2, y2) => `M${x1},${y1} ${x2},${y2}` }, parameters: { controls: { include: ['data', 'pathFunc'] }, docs: { description: { story: 'You can pass in a custom function for calculating the shape of a path between two nodes.' } } } }; export const RightToLeft = { args: { ...Simple.args, direction: 'rtl' }, parameters: { controls: { include: ['data', 'direction'] }, docs: { description: { story: 'The tree can be rendered right-to-left.' } } } }; export const Transformations = { args: { ...Simple.args, width: 400, svgProps: { transform: 'rotate(90)' } }, parameters: { controls: { include: ['data', 'svgProps'] }, docs: { description: { story: 'You can apply transformations to the tree, such as rotating it to display vertically.' } } } }; export const CustomStyles = { args: { ...Simple.args, svgProps: { className: 'custom' } }, parameters: { controls: { include: ['data', 'svgProps'] }, docs: { description: { story: 'CSS used here is available at https://github.com/jpb12/react-tree-graph/blob/master/.storybook/styles/styles.css' } } }, render: args => <div className="custom-container"><Tree {...args}/></div> }; ================================================ FILE: .storybook/styles/nodeProps.css ================================================ .red-node { fill: red; stroke: red; } ================================================ FILE: .storybook/styles/polygon.css ================================================ svg.star polygon { fill: white; stroke: black; } ================================================ FILE: .storybook/styles/styles.css ================================================ div.custom-container { background-color: #242424; padding: 20px; } svg.custom .node circle { fill: #F3F3FF; stroke: #2593B8; stroke-width: 1.5px; } svg.custom .node text { font-size: 11px; background-color: #444; fill: #F4F4F4; text-shadow: 0 1px 4px black; } svg.custom .node { cursor: pointer; } svg.custom path.link { fill: none; stroke: #2593B8; stroke-width: 1.5px; } ================================================ FILE: CHANGELOG.md ================================================ # Changelog ## 8.0.3 (13 Jan 2025) * Fixing defaultProps error in react 19 ## 8.0.2 (30 Apr 2024) * Support for react 19 * Dropped support for react < 16.8 (already broken in a pervious update) ## 8.0.1 (10 Jan 2023) * Fixing overriding of unrelated props ## 8.0.0 (25 Oct 2022) * Breaking change: Fixed x and y co-ordinates being flipped in pathfunc * Right-to-left support * Fixed margins not being applied properly ## 7.0.6 (21 Oct 2022) * Fixing cleanup of finished animations ## 7.0.5 (21 Oct 2022) * Fixing cleanup of unfinished animations ## 7.0.4 (21 Oct 2022) * Reducing bundle size * Rewriting to use functional components ## 7.0.3 (11 Feb 2022) * Moving RFDC from dependency to dev dependency ## 7.0.2 (9 Feb 2022) * Fixing preinstall script causes install failure ## 7.0.1 (9 Feb 2022) * Fixing non-string node labels ## 7.0.0 (10 Jan 2022) * Breaking change: Single default export replaced with two named exports * Support for tree shaking * Significantly reduces bundle size, reduced even further if not using animations ### Migrating * If you were using `animated=true`, use the named `AnimatedTree` export * Otherwise, use the named `Tree` export * The `animated` prop is no longer used and can be removed ## 6.1.0 (29 Nov 2021) * Support for react 18 ## 6.0.1 (17 Jun 2021) * Removing unneeded files from npm package ## 6.0.0 (9 Feb 2021) * Breaking change: Dropped support for IE (reduces bundle size by about 1/3) * Updated to d3 2.0.0 ## 5.1.1 (8 Feb 2021) * Added support for react 17 as a peer dependency ## 5.1.0 (27 Jun 2020) * Adding support for image ## 5.0.0 (19 Jun 2020) * Breaking change: Adding support for rect and polygon * Breaking change: Allowing textProps to override default offsets * Breaking change: Fixing incorrect default offsets * Breaking change: Wrapping nodes and links in a <g> node for easier transformations ### Migrating * If you were using `circleProps`, use `nodeProps` instead. The format is the same * If you were using `nodeRadius`, instead pass an `r` prop through `nodeProps` * If you were using `nodeOffset`, instead pass a `dy` prop through `textProps` * If you had css selectors relying on the `path` and `g` nodes being immediate children of `svg`, you will have to modify these due to the additional `g` node inbetween * If you weren't using `nodeOffset`, node text position will change slightly ## 4.1.1 (5 Jun 2020) * Fixed incorrect proptype (thanks @josh-stevens) ## 4.1.0 (16 Mar 2020) * Added pathFunc prop to configure custom paths ## 4.0.1 (12 Aug 2019) * Fixing default classname being removed when any props configured ## 4.0.0 (11 Feb 2019) * Breaking change: additional parameters are now passed in after the event parameter * Added support for additional parameters in arbitrary event handlers ## 3.3.0 (7 Feb 2019) * onContextMenu handlers for nodes and links now have the same additional parameters as onClick (thanks @Linton-Samuel-Dawson) ## 3.2.0 (24 Sep 2018) * Adding rendering of custom children ## 3.1.1 (21 Apr 2018) * Replaced webpack with rollup for smaller bundle size and better performance ## 3.1.0 (21 Dec 2017) * Changed babel transform settings to reduce minified bundle size ## 3.0.0 (16 Dec 2017) * New props for adding any prop to any DOM element * circleProps * gProps * pathProps * svgProps * textProps * Redundant props have been removed * linkClassName * linkClassHandler * nodeClassName * nodeClassHandler * treeClassName * treeClickHandler ## 2.0.0 (12 Jul 2017) * Animations * Significant performance improvements on large trees (tested with > 150 nodes) * Added nodes now animate from the position of the closest, previously visible, ancestor * Removed nodes now animate to the position of the closest, remaining ancestor * Renamed Class props to ClassName props * Added importing of polyfills for IE support ## 1.7.2 (7 Jul 2017) * Fixing initial position of added animated nodes when root moves ## 1.7.1 (4 Jul 2017) * Updating built files to include change in previous version ## 1.7.0 (26 Jun 2017) * Added treeClass and treeClickHandler props ## 1.6.0 (24 Jun 2017) * Adding animations ## 1.5.0 (13 May 2017) * Removed warnings in react 15.5+ ## 1.4.0 (29 Apr 2017) * Added getChildren prop ## 1.3.0 (14 Apr 2017) * Node and click handlers now have event as a second parameter (thanks @ronaldborman) ## 1.2.3 (11 Apr 2017) * Updating built files to include change in previous version ## 1.2.2 (11 Apr 2017) * Fixed undefined being passed into Link's onClick handler ## 1.2.1 (29 Mar 2017) * Using d3-hierarchy instead of d3. This should significantly reduce bundle size ## 1.2.0 (5 Mar 2017) * Upgraded dependencies, including webpack to 2.x * Included a CSS file for basic styling ## 1.1.0 (14 Dec 2016) * Upgraded d3 dependency to 4.4.0 * Included a minified file ## 1.0.1 (11 Dec 2016) * Removing an npm shrinkwrap file. Its presence caused duplicate dependencies to be installed when react-tree-graph was installed ## 1.0.0 (11 Dec 2016) * Initial release ================================================ FILE: LICENSE ================================================ The MIT License (MIT) Copyright (c) 2016 James Brierley Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: README.md ================================================ react-tree-graph [![Github](https://img.shields.io/github/stars/jpb12/react-tree-graph?style=social)](https://github.com/jpb12/react-tree-graph) ================================================================================================================================================ [![Build Status](https://img.shields.io/github/actions/workflow/status/jpb12/react-tree-graph/build.yml)](https://github.com/jpb12/react-tree-graph/actions/workflows/build.yml?query=branch%3Amaster) [![Coverage Status](https://coveralls.io/repos/github/jpb12/react-tree-graph/badge.svg?branch=master)](https://coveralls.io/github/jpb12/react-tree-graph?branch=master) [![npm version](https://img.shields.io/npm/v/react-tree-graph.svg)](https://www.npmjs.com/package/react-tree-graph) [![npm](https://img.shields.io/npm/dt/react-tree-graph.svg)](https://www.npmjs.com/package/react-tree-graph) [![bundle size](https://img.shields.io/bundlephobia/minzip/react-tree-graph)](https://bundlephobia.com/result?p=react-tree-graph) [![license](https://img.shields.io/npm/l/react-tree-graph)](https://github.com/jpb12/react-tree-graph/blob/master/LICENSE) [![Storybook](https://cdn.jsdelivr.net/gh/storybookjs/brand@main/badge/badge-storybook.svg)](https://jpb12.github.io/react-tree-graph) A simple react component which renders data as a tree using svg. Supports react 16.8+. Check out the [examples](https://jpb12.github.io/react-tree-graph) and the [demo](https://jpb12.github.io/tree-viewer/). Older Versions -------------- [7.X](https://github.com/jpb12/react-tree-graph/tree/v7.0.6) [6.X](https://github.com/jpb12/react-tree-graph/tree/v6.1.0) [5.X](https://github.com/jpb12/react-tree-graph/tree/v5.1.1) [4.X](https://github.com/jpb12/react-tree-graph/tree/v4.1.1) [3.X](https://github.com/jpb12/react-tree-graph/tree/v3.3.0) [2.X](https://github.com/jpb12/react-tree-graph/tree/v2.0.0) [1.X](https://github.com/jpb12/react-tree-graph/tree/v1.7.2) Installation ---------- ```sh npm install react-tree-graph --save ``` Usage ----- ```javascript import { Tree } from 'react-tree-graph'; const data = { name: 'Parent', children: [{ name: 'Child One' }, { name: 'Child Two' }] }; <Tree data={data} height={400} width={400}/>); import { AnimatedTree } from 'react-tree-graph'; <AnimatedTree data={data} height={400} width={400}/>); ``` If you are using webpack, and have [css-loader](https://www.npmjs.com/package/css-loader), you can include some default styles with: ```javascript import 'react-tree-graph/dist/style.css' ``` Alternatively, both the JavaScript and CSS can be included directly from the dist folder with script tags. Configuration ------------- Tree | Property | Type | Mandatory | Default | Description | |:---|:---|:---|:---|:---| | `data` | object | yes | | The data to be rendered as a tree. Must be in a format accepted by [d3.hierarchy](https://github.com/d3/d3-hierarchy/blob/master/README.md#hierarchy). | | `margins` | object | | `{ bottom : 10, left : 20, right : 150, top : 10}` | The margins around the content. The right margin should be larger to include the rendered label text. | | `height` | number | yes | | The height of the rendered tree, including margins. | | `width` | number | yes | | The width of the rendered tree, including margins. | | `direction` | `ltr`,`rtl` | | `ltr` | The direction the tree will be rendered in. Either left-to-right or right-to-left. | | `children` | node | | | Will be rendered as children of the SVG, before the links and nodes. | | `getChildren` | function(node) | | node => node.children | A function that returns the children for a node, or null/undefined if no children exist. | | `keyProp` | string | | "name" | The property on each node to use as a key. | | `labelProp` | string | | "name" | The property on each node to render as a label. | | `nodeShape` | `circle`,`image`,`polygon`,`rect` | | `circle` | The shape of the node icons. | | `nodeProps` | object | | `{}` | Props to be added to the `<circle>`, `<image>`, `<polygon>` or `<rect>` element. These will take priority over the default `r` added to `circle` and `height`, `width`, `x` and `y` added to `image` and `rect`. | | `gProps` | object | | `{ className: 'node' }` | Props to be added to the `<g>` element. The default className will still be applied if a className property is not set. | | `pathProps` | object | | `{ className: 'link' }` | Props to be added to the `<path>` element. The default className will still be applied if a className property is not set. | | `pathFunc` | function(x1,y1,x2,y2) | | curved | Function to calculate the co-ordinates of the path between nodes. | | `svgProps` | object | | `{}` | Props to be added to the `<svg>` element. | | `textProps` | object | | `{}` | Props to be added to the `<text>` element. | AnimatedTree has the following properties in addition to the above. | Property | Type | Mandatory | Default | Description | |:---|:---|:---|:---|:---| | `duration` | number | | 500 | The duration in milliseconds of animations. | | `easing` | function(interval) | | [d3-ease](https://www.npmjs.com/package/d3-ease).easeQuadOut | The easing function for animations. Takes in a number between 0 and 1, and returns a number between 0 and 1. | | `steps` | number | | 20 | The number of steps in animations. A higher number will result in a smoother animation, but too high will cause performance issues. | ### Events Event handlers in `nodeProps`, `gProps` and `textProps` will be called with the node ID as an additional parameter. `function(event, nodeId) { ... }` Event handlers in `pathProps` will be called with the source and target node IDs as additional parameters. `function(event, sourceNodeId, targetNodeId) { ... }` ### Overriding props The following properties can also be overridden by setting then for individual nodes. | Global Prop | Node Prop | |:---|:---| | `keyProp` | `keyProp` | | `labelProp` | `labelProp` | | `nodeShape` | `shape` | The following object properties, if set on individual nodes, will be combined with the object properties set on the tree. If a property exists in both objects, the value from the node will be taken. | Prop | Description | |:---|:---| | `nodeProps` | | | `gProps` | | | `pathProps` | Props for a path are taken from the target node. | | `textProps` | | TypeScript ---------- [Type definitions](https://www.npmjs.com/package/@types/react-tree-graph) are available as a separate package. (thanks @PCOffline) ================================================ FILE: __tests__/.eslintrc.json ================================================ { "env": { "jest": true, "node": true }, "extends": "../.eslintrc.json" } ================================================ FILE: __tests__/Components/__snapshots__/animatedTests.js.snap ================================================ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`<Animated> does not animate when props other than nodes or links change 1`] = ` <Container direction="ltr" duration={1} easing={[Function]} gProps={{}} getChildren={[Function]} height={100} keyProp="name" labelProp="name" links={ [ { "source": { "data": { "name": "Colour", }, "x": 1, "y": 2, }, "target": { "data": { "name": "Black", }, "x": 1, "y": 2, }, }, ] } margins={ { "left": 20, "top": 10, } } nodeProps={{}} nodeShape="rect" nodes={ [ { "data": { "name": "Colour", }, "x": 1, "y": 2, }, { "data": { "name": "Black", }, "x": 1, "y": 2, }, ] } pathProps={{}} steps={1} svgProps={{}} textProps={{}} width={100} /> `; exports[`<Animated> renders correctly and sets initial state 1`] = ` <Container direction="ltr" duration={1} easing={[Function]} gProps={{}} getChildren={[Function]} height={100} keyProp="name" labelProp="name" links={ [ { "source": { "data": { "name": "Colour", }, "x": 1, "y": 2, }, "target": { "data": { "name": "Black", }, "x": 1, "y": 2, }, }, ] } margins={ { "left": 20, "top": 10, } } nodeProps={{}} nodeShape="circle" nodes={ [ { "data": { "name": "Colour", }, "x": 1, "y": 2, }, { "data": { "name": "Black", }, "x": 1, "y": 2, }, ] } pathProps={{}} steps={1} svgProps={{}} textProps={{}} width={100} /> `; ================================================ FILE: __tests__/Components/__snapshots__/animatedTreeTests.js.snap ================================================ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`<AnimatedTree> renders correctly 1`] = ` <Animated direction="ltr" duration={500} easing={[Function]} gProps={ { "className": "node", } } getChildren={[Function]} height={100} keyProp="name" labelProp="name" links={ [ { "source": { "children": [ Node { "data": { "name": "Black", }, "depth": 1, "height": 0, "parent": Node { "children": [Circular], "data": { "children": [ { "name": "Black", }, ], "name": "Colour", }, "depth": 0, "height": 1, "parent": null, "x": 40, "y": 0, }, "x": 40, "y": 30, }, ], "data": { "children": [ { "name": "Black", }, ], "name": "Colour", }, "depth": 0, "height": 1, "parent": null, "x": 0, "y": 40, }, "target": { "data": { "name": "Black", }, "depth": 1, "height": 0, "parent": Node { "children": [ Node { "data": { "name": "Black", }, "depth": 1, "height": 0, "parent": [Circular], "x": 40, "y": 30, }, ], "data": { "children": [ { "name": "Black", }, ], "name": "Colour", }, "depth": 0, "height": 1, "parent": null, "x": 40, "y": 0, }, "x": 30, "y": 40, }, }, ] } margins={ { "bottom": 10, "left": 20, "right": 150, "top": 10, } } nodeProps={{}} nodeShape="circle" nodes={ [ { "children": [ Node { "data": { "name": "Black", }, "depth": 1, "height": 0, "parent": Node { "children": [Circular], "data": { "children": [ { "name": "Black", }, ], "name": "Colour", }, "depth": 0, "height": 1, "parent": null, "x": 40, "y": 0, }, "x": 40, "y": 30, }, ], "data": { "children": [ { "name": "Black", }, ], "name": "Colour", }, "depth": 0, "height": 1, "parent": null, "x": 0, "y": 40, }, { "data": { "name": "Black", }, "depth": 1, "height": 0, "parent": Node { "children": [ Node { "data": { "name": "Black", }, "depth": 1, "height": 0, "parent": [Circular], "x": 40, "y": 30, }, ], "data": { "children": [ { "name": "Black", }, ], "name": "Colour", }, "depth": 0, "height": 1, "parent": null, "x": 40, "y": 0, }, "x": 30, "y": 40, }, ] } pathProps={ { "className": "link", } } steps={20} svgProps={{}} textProps={{}} width={200} /> `; ================================================ FILE: __tests__/Components/__snapshots__/containerTests.js.snap ================================================ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`<Container> html tree props added 1`] = ` <svg className="test-class" height={100} stoke="none" width={200} > <g transform="translate(20, 10)" /> </svg> `; exports[`<Container> renders children 1`] = ` <svg height={100} width={200} > <text> Extra child </text> <g transform="translate(20, 10)" > <Link key="Black" keyProp="name" pathProps={{}} source={ { "data": { "name": "Colour", }, "x": 1, "y": 2, } } target={ { "data": { "name": "Black", }, "x": 100, "y": 50, } } x1={1} x2={100} y1={2} y2={50} /> <Node direction="ltr" gProps={{}} key="Colour" keyProp="name" labelProp="name" name="Colour" nodeProps={{}} shape="circle" textProps={{}} x={1} y={2} /> <Node direction="ltr" gProps={{}} key="Black" keyProp="name" labelProp="name" name="Black" nodeProps={{}} shape="circle" textProps={{}} x={100} y={50} /> </g> </svg> `; exports[`<Container> renders correctly 1`] = ` <svg height={100} width={200} > <g transform="translate(20, 10)" > <Link key="Black" keyProp="name" pathProps={{}} source={ { "data": { "name": "Colour", }, "x": 1, "y": 2, } } target={ { "data": { "name": "Black", }, "x": 100, "y": 50, } } x1={1} x2={100} y1={2} y2={50} /> <Node direction="ltr" gProps={{}} key="Colour" keyProp="name" labelProp="name" name="Colour" nodeProps={{}} shape="circle" textProps={{}} x={1} y={2} /> <Node direction="ltr" gProps={{}} key="Black" keyProp="name" labelProp="name" name="Black" nodeProps={{}} shape="circle" textProps={{}} x={100} y={50} /> </g> </svg> `; ================================================ FILE: __tests__/Components/__snapshots__/linkTests.js.snap ================================================ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`<Link> renders correctly 1`] = ` <path className="Link" d="M1,2C3,2 3,9 5,9" /> `; exports[`<Link> renders correctly with custom path 1`] = ` <path className="Link" d="M1,2 5,9" /> `; ================================================ FILE: __tests__/Components/__snapshots__/nodeTests.js.snap ================================================ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`<Node> htmlProps applied to all elements 1`] = ` <g className="g" direction={null} transform="translate(1, 2)" > <circle className="circle" r={5} /> <text className="text" dx={5.5} dy={5} > Test Node </text> </g> `; exports[`<Node> renders circle correctly 1`] = ` <g className="test" direction={null} transform="translate(1, 2)" > <circle r={5} /> <text dx={5.5} dy={5} > Test Node </text> </g> `; exports[`<Node> renders circle correctly with custom radius 1`] = ` <g className="test" direction={null} transform="translate(1, 2)" > <circle r={10} /> <text dx={10.5} dy={5} > Test Node </text> </g> `; exports[`<Node> renders custom label correctly 1`] = ` <g className="test" direction={null} transform="translate(1, 2)" > <circle r={5} /> <g transform="translate(5.5, 5)" > <circle r="5" /> </g> </g> `; exports[`<Node> renders image correctly 1`] = ` <g className="test" direction={null} transform="translate(1, 2)" > <image height={10} href="http://example.com" width={10} x={-5} y={-5} /> <text dx={5.5} dy={5} > Test Node </text> </g> `; exports[`<Node> renders image correctly with custom size 1`] = ` <g className="test" direction={null} transform="translate(1, 2)" > <image height={20} href="http://example.com" width={30} x={-15} y={-10} /> <text dx={15.5} dy={5} > Test Node </text> </g> `; exports[`<Node> renders rect correctly 1`] = ` <g className="test" direction={null} transform="translate(1, 2)" > <rect height={10} width={10} x={-5} y={-5} /> <text dx={5.5} dy={5} > Test Node </text> </g> `; exports[`<Node> renders rect correctly with custom size 1`] = ` <g className="test" direction={null} transform="translate(1, 2)" > <rect height={20} width={30} x={-15} y={-10} /> <text dx={15.5} dy={5} > Test Node </text> </g> `; exports[`<Node> renders rtl correctly 1`] = ` <g className="test" direction="rtl" transform="translate(1, 2)" > <circle r={5} /> <text dx={-5.5} dy={5} > Test Node </text> </g> `; ================================================ FILE: __tests__/Components/__snapshots__/treeTests.js.snap ================================================ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`<Tree> renders correctly 1`] = ` <Container direction="ltr" gProps={ { "className": "node", } } getChildren={[Function]} height={100} keyProp="name" labelProp="name" links={ [ { "source": { "children": [ Node { "data": { "name": "Black", }, "depth": 1, "height": 0, "parent": Node { "children": [Circular], "data": { "children": [ { "name": "Black", }, ], "name": "Colour", }, "depth": 0, "height": 1, "parent": null, "x": 40, "y": 0, }, "x": 40, "y": 30, }, ], "data": { "children": [ { "name": "Black", }, ], "name": "Colour", }, "depth": 0, "height": 1, "parent": null, "x": 0, "y": 40, }, "target": { "data": { "name": "Black", }, "depth": 1, "height": 0, "parent": Node { "children": [ Node { "data": { "name": "Black", }, "depth": 1, "height": 0, "parent": [Circular], "x": 40, "y": 30, }, ], "data": { "children": [ { "name": "Black", }, ], "name": "Colour", }, "depth": 0, "height": 1, "parent": null, "x": 40, "y": 0, }, "x": 30, "y": 40, }, }, ] } margins={ { "bottom": 10, "left": 20, "right": 150, "top": 10, } } nodeProps={{}} nodeShape="circle" nodes={ [ { "children": [ Node { "data": { "name": "Black", }, "depth": 1, "height": 0, "parent": Node { "children": [Circular], "data": { "children": [ { "name": "Black", }, ], "name": "Colour", }, "depth": 0, "height": 1, "parent": null, "x": 40, "y": 0, }, "x": 40, "y": 30, }, ], "data": { "children": [ { "name": "Black", }, ], "name": "Colour", }, "depth": 0, "height": 1, "parent": null, "x": 0, "y": 40, }, { "data": { "name": "Black", }, "depth": 1, "height": 0, "parent": Node { "children": [ Node { "data": { "name": "Black", }, "depth": 1, "height": 0, "parent": [Circular], "x": 40, "y": 30, }, ], "data": { "children": [ { "name": "Black", }, ], "name": "Colour", }, "depth": 0, "height": 1, "parent": null, "x": 40, "y": 0, }, "x": 30, "y": 40, }, ] } pathProps={ { "className": "link", } } svgProps={{}} textProps={{}} width={200} /> `; ================================================ FILE: __tests__/Components/animatedTests.js ================================================ import React, { act } from 'react'; import { mount, shallow } from 'enzyme'; import { easeQuadOut } from 'd3-ease'; import Animated from '../../src/components/animated'; import Container from '../../src/components/container'; jest.useFakeTimers(); const nodes = [ { x: 1, y: 2, data: { name: 'Colour' } }, { x: 100, y: 50, data: { name: 'Black' } } ]; const links = [{ source: nodes[0], target: nodes[1] }]; const defaultProps = { direction: 'ltr', getChildren: n => n.children, height: 100, width: 100, keyProp: 'name', labelProp: 'name', nodeShape: 'circle', duration: 1, easing: easeQuadOut, links: links, nodes: nodes, margins: { top: 10, left: 20 }, steps: 1, nodeProps: {}, gProps: {}, pathProps: {}, svgProps: {}, textProps: {} }; describe('<Animated>', () => { test('renders correctly and sets initial state', () => { const tree = shallow(<Animated {...defaultProps}/>); expect(tree).toMatchSnapshot(); expect(tree.find(Container).props().nodes[1].x).toBe(1); expect(tree.find(Container).props().nodes[1].y).toBe(2); expect(tree.find(Container).props().links[0].target.x).toBe(1); expect(tree.find(Container).props().links[0].target.y).toBe(2); }); test('animates node when moved', () => { const tree = mount(<Animated {...defaultProps} steps={2} duration={100}/>); act(() => jest.advanceTimersByTime(100)); tree.update(); expect(tree.find(Container).props().nodes[1].x).toBe(100); expect(tree.find(Container).props().nodes[1].y).toBe(50); tree.setProps({ nodes: [ nodes[0], { x: 120, y: 80, data: { name: 'Black' } } ] }); act(() => jest.advanceTimersByTime(50)); tree.update(); expect(tree.find(Container).props().nodes[1].x).toBe(115); expect(tree.find(Container).props().nodes[1].y).toBe(72.5); act(() => jest.advanceTimersByTime(50)); tree.update(); expect(tree.find(Container).props().nodes[1].x).toBe(120); expect(tree.find(Container).props().nodes[1].y).toBe(80); }); test('animates link when moved', () => { const tree = mount(<Animated {...defaultProps} steps={2} duration={100}/>); act(() => jest.advanceTimersByTime(100)); tree.update(); expect(tree.find(Container).props().links[0].source.x).toBe(1); expect(tree.find(Container).props().links[0].source.y).toBe(2); expect(tree.find(Container).props().links[0].target.x).toBe(100); expect(tree.find(Container).props().links[0].target.y).toBe(50); tree.setProps({ links: [{ source: { x: 5, y: 10, data: { name: 'Colour' } }, target: { x: 200, y: 100, data: { name: 'Black' } } }] }); act(() => jest.advanceTimersByTime(50)); tree.update(); expect(tree.find(Container).props().links[0].source.x).toBe(4); expect(tree.find(Container).props().links[0].source.y).toBe(8); expect(tree.find(Container).props().links[0].target.x).toBe(175); expect(tree.find(Container).props().links[0].target.y).toBe(87.5); act(() => jest.advanceTimersByTime(50)); tree.update(); expect(tree.find(Container).props().links[0].source.x).toBe(5); expect(tree.find(Container).props().links[0].source.y).toBe(10); expect(tree.find(Container).props().links[0].target.x).toBe(200); expect(tree.find(Container).props().links[0].target.y).toBe(100); }); test('animates node when added', () => { const tree = mount(<Animated {...defaultProps} steps={2} duration={100}/>); tree.setProps({ nodes: [ nodes[0], nodes[1], { x: 120, y: 80, data: { name: 'Purple' } } ] }); act(() => jest.advanceTimersByTime(50)); tree.update(); expect(tree.find(Container).props().nodes[2].x).toBe(90.25); expect(tree.find(Container).props().nodes[2].y).toBe(60.5); act(() => jest.advanceTimersByTime(50)); tree.update(); expect(tree.find(Container).props().nodes[2].x).toBe(120); expect(tree.find(Container).props().nodes[2].y).toBe(80); }); test('animates node from parent when added', () => { const tree = mount(<Animated {...defaultProps} steps={2} duration={100}/>); act(() => jest.advanceTimersByTime(100)); tree.setProps({ nodes: [ nodes[0], { x: 100, y: 50, data: { name: 'Black' }, children: [{ data: { name: 'Purple' } }] }, { x: 120, y: 80, data: { name: 'Purple' } } ] }); act(() => jest.advanceTimersByTime(50)); tree.update(); expect(tree.find(Container).props().nodes[2].x).toBe(115); expect(tree.find(Container).props().nodes[2].y).toBe(72.5); act(() => jest.advanceTimersByTime(50)); tree.update(); expect(tree.find(Container).props().nodes[2].x).toBe(120); expect(tree.find(Container).props().nodes[2].y).toBe(80); }); test('animates link when added', () => { const tree = mount(<Animated {...defaultProps} steps={2} duration={100}/>); tree.setProps({ links: [ links[0], { source: { x: 5, y: 10, data: { name: 'Colour' } }, target: { x: 200, y: 100, data: { name: 'Purple' } } } ] }); act(() => jest.advanceTimersByTime(50)); tree.update(); expect(tree.find(Container).props().links[1].source.x).toBe(4); expect(tree.find(Container).props().links[1].source.y).toBe(8); expect(tree.find(Container).props().links[1].target.x).toBe(150.25); expect(tree.find(Container).props().links[1].target.y).toBe(75.5); act(() => jest.advanceTimersByTime(50)); tree.update(); expect(tree.find(Container).props().links[1].source.x).toBe(5); expect(tree.find(Container).props().links[1].source.y).toBe(10); expect(tree.find(Container).props().links[1].target.x).toBe(200); expect(tree.find(Container).props().links[1].target.y).toBe(100); }); test('animates node when removed', () => { const tree = mount(<Animated {...defaultProps} steps={2} duration={100}/>); act(() => jest.advanceTimersByTime(100)); tree.setProps({ nodes: [ nodes[0] ] }); act(() => jest.advanceTimersByTime(50)); tree.update(); expect(tree.find(Container).props().nodes[1].x).toBe(25.75); expect(tree.find(Container).props().nodes[1].y).toBe(14); act(() => jest.advanceTimersByTime(50)); tree.update(); expect(tree.find(Container).props().nodes.length).toBe(1); }); test('animates link when removed', () => { const tree = mount(<Animated {...defaultProps} steps={2} duration={100}/>); act(() => jest.advanceTimersByTime(100)); tree.setProps({ links: [] }); act(() => jest.advanceTimersByTime(50)); tree.update(); expect(tree.find(Container).props().links[0].source.x).toBe(75.25); expect(tree.find(Container).props().links[0].source.y).toBe(38); expect(tree.find(Container).props().links[0].target.x).toBe(100); expect(tree.find(Container).props().links[0].target.y).toBe(50); act(() => jest.advanceTimersByTime(50)); tree.update(); expect(tree.find(Container).props().links.length).toBe(0); }); test('animates from inital value on mount', () => { const tree = mount(<Animated {...defaultProps} duration={100}/>); expect(tree.find(Container).props().nodes[1].x).toBe(1); expect(tree.find(Container).props().nodes[1].y).toBe(2); act(() => jest.advanceTimersByTime(100)); tree.update(); expect(tree.find(Container).props().nodes[1].x).toBe(100); expect(tree.find(Container).props().nodes[1].y).toBe(50); }); test('does not animate when props other than nodes or links change', () => { const tree = shallow(<Animated {...defaultProps}/>); tree.setProps({ nodeShape: 'rect' }); expect(tree).toMatchSnapshot(); }); }); ================================================ FILE: __tests__/Components/animatedTreeTests.js ================================================ import React from 'react'; import { shallow } from 'enzyme'; import AnimatedTree from '../../src/components/animatedTree'; describe('<AnimatedTree>', () => { test('renders correctly', () => { const props = { data: { name: 'Colour', children: [{ name: 'Black' }] }, height: 100, width: 200 }; const tree = shallow(<AnimatedTree {...props}/>); expect(tree).toMatchSnapshot(); }); }); ================================================ FILE: __tests__/Components/containerTests.js ================================================ import React from 'react'; import { shallow } from 'enzyme'; import Container from '../../src/components/container'; import Link from '../../src/components/link'; import Node from '../../src/components/node'; const nodes = [ { x: 1, y: 2, data: { name: 'Colour' } }, { x: 100, y: 50, data: { name: 'Black' } } ]; const defaultProps = { nodes: [], links: [], direction: 'ltr', height: 100, keyProp: 'name', labelProp: 'name', margins: { top: 10, left: 20 }, nodeShape: 'circle', width: 200, nodeProps: {}, gProps: {}, pathProps: {}, svgProps: {}, textProps: {} }; describe('<Container>', () => { test('renders correctly', () => { const props = { nodes: nodes, links: [{ source: nodes[0], target: nodes[1] }] }; const tree = shallow(<Container {...defaultProps} {...props}/>); expect(tree).toMatchSnapshot(); }); test('renders children', () => { const props = { nodes: nodes, links: [{ source: nodes[0], target: nodes[1] }] }; const tree = shallow(<Container {...defaultProps} {...props}><text>Extra child</text></Container>); expect(tree).toMatchSnapshot(); }); test('html tree props added', () => { const props = { svgProps: { className: 'test-class', stoke: 'none' } }; const tree = shallow(<Container {...defaultProps} {...props}/>); expect(tree).toMatchSnapshot(); }); test('path props combined', () => { const props = { links: [{ source: nodes[0], target: { ...nodes[1], data: { name: 1 } } }, { name: 2, source: nodes[0], target: { ...nodes[1], data: { name: 1, pathProps: { className: 'override' } } } }], pathProps: { className: 'default' } }; const tree = shallow(<Container {...defaultProps} {...props}/>); const links = tree.find(Link); expect(links.length).toBe(2); expect(links.at(0).props().pathProps).toEqual({ className: 'default' }); expect(links.at(1).props().pathProps).toEqual({ className: 'override' }); }); test('node props combined', () => { function onClick() { } const props = { nodes: [ { ...nodes[0], data: { name: 1 } }, { ...nodes[1], data: { name: 2, gProps: { className: 'override' } } } ] }; const tree = shallow(<Container {...defaultProps} {...props} gProps={{ className: 'default', onClick }}/>); const domNodes = tree.find(Node); expect(domNodes.length).toBe(2); expect(domNodes.at(0).props().gProps).toEqual({ className: 'default', onClick }); expect(domNodes.at(1).props().gProps).toEqual({ className: 'override', onClick }); }); }); ================================================ FILE: __tests__/Components/linkTests.js ================================================ import React from 'react'; import { shallow } from 'enzyme'; import Link from '../../src/components/link'; const defaultProps = { source: { data: { id: 'origin' } }, target: { data: { id: 'target' } }, keyProp: 'id', pathProps: { className: 'Link' }, x1: 1, x2: 5, y1: 2, y2: 9 }; function straightPath(x1, y1, x2, y2) { return `M${x1},${y1} ${x2},${y2}`; } describe('<Link>', () => { test('renders correctly', () => { const tree = shallow(<Link {...defaultProps}/>); expect(tree).toMatchSnapshot(); }); test('renders correctly with custom path', () => { const tree = shallow(<Link {...defaultProps} pathFunc={straightPath}/>); expect(tree).toMatchSnapshot(); }); test('click event has correct parameters', () => { const clickMock = jest.fn(); const event = {}; const props = { pathProps: { onClick: clickMock } }; const tree = shallow(<Link {...defaultProps} {...props}/>); tree.find('path').simulate('click', event); expect(clickMock).toHaveBeenCalledTimes(1); expect(clickMock).toHaveBeenCalledWith(event, 'origin', 'target'); }); test('right click event has correct parameters', () => { const rightClickMock = jest.fn(); const event = {}; const props = { pathProps: { onContextMenu: rightClickMock } }; const tree = shallow(<Link {...defaultProps} {...props}/>); tree.find('path').simulate('contextmenu', event); expect(rightClickMock).toHaveBeenCalledTimes(1); expect(rightClickMock).toHaveBeenCalledWith(event, 'origin', 'target'); }); test('clicking with no prop handler does nothing', () => { const tree = shallow(<Link {...defaultProps}/>); tree.find('path').simulate('click'); }); }); ================================================ FILE: __tests__/Components/nodeTests.js ================================================ import React from 'react'; import { shallow } from 'enzyme'; import Node from '../../src/components/node'; const defaultProps = { x: 1, y: 2, keyProp: '', labelProp: 'name', direction: 'ltr', shape: 'circle', gProps: { className: 'test' }, nodeProps: {}, textProps: {}, name: 'Test Node' }; describe('<Node>', () => { test('renders circle correctly', () => { const tree = shallow(<Node {...defaultProps}/>); expect(tree).toMatchSnapshot(); }); test('renders circle correctly with custom radius', () => { const tree = shallow(<Node {...defaultProps} nodeProps={{ r: 10 }}/>); expect(tree).toMatchSnapshot(); }); test('renders rect correctly', () => { const tree = shallow(<Node {...defaultProps} shape="rect"/>); expect(tree).toMatchSnapshot(); }); test('renders rect correctly with custom size', () => { const tree = shallow(<Node {...defaultProps} shape="rect" nodeProps={{ height: 20, width: 30 }}/>); expect(tree).toMatchSnapshot(); }); test('renders image correctly', () => { const tree = shallow(<Node {...defaultProps} shape="image" nodeProps={{ href: 'http://example.com' }}/>); expect(tree).toMatchSnapshot(); }); test('renders image correctly with custom size', () => { const tree = shallow( <Node {...defaultProps} shape="image" nodeProps={{ href: 'http://example.com', height: 20, width: 30 }}/> ); expect(tree).toMatchSnapshot(); }); test('renders custom label correctly', () => { const tree = shallow( <Node {...defaultProps} labelProp="label" label={<circle r="5"/>}/> ); expect(tree).toMatchSnapshot(); }); test('renders rtl correctly', () => { const tree = shallow(<Node {...defaultProps} direction="rtl"/>); expect(tree).toMatchSnapshot(); }); test('click event has correct parameters', () => { const clickMock = jest.fn(); const event = {}; const props = { keyProp: 'id', gProps: { onClick: clickMock }, id: 'testKey' }; const tree = shallow(<Node {...defaultProps} {...props}/>); tree.find('g').simulate('click', event); expect(clickMock).toHaveBeenCalledTimes(1); expect(clickMock).toHaveBeenCalledWith(event, 'testKey'); }); test('right click event has correct parameters', () => { const rightClickMock = jest.fn(); const event = {}; const props = { keyProp: 'id', gProps: { onContextMenu: rightClickMock }, id: 'testKey' }; const tree = shallow(<Node {...defaultProps} {...props}/>); tree.find('g').simulate('contextmenu', event); expect(rightClickMock).toHaveBeenCalledTimes(1); expect(rightClickMock).toHaveBeenCalledWith(event, 'testKey'); }); test('clicking with no prop handler does nothing', () => { const props = { keyProp: 'id', id: 'testKey' }; const tree = shallow(<Node {...defaultProps} {...props}/>); tree.find('g').simulate('click'); }); test('htmlProps applied to all elements', () => { const props = { gProps: { className: 'g' }, nodeProps: { className: 'circle' }, textProps: { className: 'text' } }; const tree = shallow(<Node {...defaultProps} {...props}/>); expect(tree).toMatchSnapshot(); }); }); ================================================ FILE: __tests__/Components/treeTests.js ================================================ import React from 'react'; import { shallow } from 'enzyme'; import Tree from '../../src/components/tree'; describe('<Tree>', () => { test('renders correctly', () => { const props = { data: { name: 'Colour', children: [{ name: 'Black' }] }, height: 100, width: 200 }; const tree = shallow(<Tree {...props}/>); expect(tree).toMatchSnapshot(); }); }); ================================================ FILE: __tests__/d3Tests.js ================================================ import getTreeData from '../src/d3'; const defaultProps = { getChildren: n => n.children, direction: 'ltr', height: 100, width: 300 }; describe('getTreeData', () => { test('does not mutate prop data', () => { const data = { name: 'Colour', children: [{ name: 'Black' }] }; const clonedData = structuredClone(data); getTreeData({ ...defaultProps, data }); expect(data).toMatchObject(clonedData); }); test('calculates tree data correctly', () => { const data = { name: 'Colour', children: [{ name: 'Black' }] }; const result = getTreeData({ ...defaultProps, data }); expect(result).toMatchObject({ nodes: [{ x: 0, y: 40 }, { x: 130, y: 40 }] }); }); test('calculates rtl tree data correctly', () => { const data = { name: 'Colour', children: [{ name: 'Black' }] }; const result = getTreeData({ ...defaultProps, data, direction: 'rtl' }); expect(result).toMatchObject({ nodes: [{ x: 130, y: 40 }, { x: 0, y: 40 }] }); }); }); ================================================ FILE: __tests__/startup.js ================================================ import Enzyme from 'enzyme'; import Adapter from '@cfaester/enzyme-adapter-react-18'; // JSDom does not have structuredClone method global.structuredClone = val => JSON.parse(JSON.stringify(val)); Enzyme.configure({ adapter: new Adapter() }); ================================================ FILE: __tests__/wrapHandlersTests.js ================================================ import wrapHandlers from '../src/wrapHandlers'; describe('wrapHandlers', () => { test('does nothing if no events', () => { const result = wrapHandlers({ x: 5 }, 1, 2); expect(result).toMatchObject({ x: 5 }); }); test.each(['onBlur', 'onClick', 'onContextMenu', 'onFocus'])( 'wraps %s', name => { const handlerMock = jest.fn(); const result = wrapHandlers({ [name]: handlerMock }, 1, 2); result[name](0); expect(handlerMock).toHaveBeenCalledWith(0, 1, 2); } ); }); ================================================ FILE: dist/index.js ================================================ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory( exports, require('@babel/runtime/helpers/extends'), require('d3-ease'), require('react'), require('d3-hierarchy'), ) : typeof define === 'function' && define.amd ? define( [ 'exports', '@babel/runtime/helpers/extends', 'd3-ease', 'react', 'd3-hierarchy', ], factory, ) : ((global = typeof globalThis !== 'undefined' ? globalThis : global || self), factory( (global.ReactTreeGraph = {}), global._extends, global.d3, global.React, global.d3, )); })(this, function (exports, _extends, d3Ease, React, d3Hierarchy) { 'use strict'; function _interopDefault(e) { return e && e.__esModule ? e : { default: e }; } var _extends__default = /*#__PURE__*/ _interopDefault(_extends); var React__default = /*#__PURE__*/ _interopDefault(React); function getTreeData(props) { const margins = props.margins || { bottom: 10, left: props.direction !== 'rtl' ? 20 : 150, right: props.direction !== 'rtl' ? 150 : 20, top: 10, }; const contentWidth = props.width - margins.left - margins.right; const contentHeight = props.height - margins.top - margins.bottom; const data = d3Hierarchy.hierarchy(props.data, props.getChildren); const root = d3Hierarchy.tree().size([contentHeight, contentWidth])(data); // d3 gives us a top to down tree, but we will display it left to right/right to left, so x and y need to be swapped const links = root.links().map((link) => ({ ...link, source: { ...link.source, x: props.direction !== 'rtl' ? link.source.y : contentWidth - link.source.y, y: link.source.x, }, target: { ...link.target, x: props.direction !== 'rtl' ? link.target.y : contentWidth - link.target.y, y: link.target.x, }, })); const nodes = root.descendants().map((node) => ({ ...node, x: props.direction !== 'rtl' ? node.y : contentWidth - node.y, y: node.x, })); return { links, margins, nodes, }; } const regex = /on[A-Z]/; function wrapper(func, args) { return (event) => func(event, ...args); } // Wraps any event handlers passed in as props with a function that passes additional arguments function wrapHandlers(props, ...args) { const handlers = Object.keys(props).filter( (propName) => regex.test(propName) && typeof props[propName] === 'function', ); const wrappedHandlers = handlers.reduce((acc, handler) => { acc[handler] = wrapper(props[handler], args); return acc; }, {}); return { ...props, ...wrappedHandlers, }; } function diagonal(x1, y1, x2, y2) { return `M${x1},${y1}C${(x1 + x2) / 2},${y1} ${(x1 + x2) / 2},${y2} ${x2},${y2}`; } function Link(props) { const wrappedProps = wrapHandlers( props.pathProps, props.source.data[props.keyProp], props.target.data[props.keyProp], ); const pathFunc = props.pathFunc || diagonal; const d = pathFunc(props.x1, props.y1, props.x2, props.y2); return /*#__PURE__*/ React__default.default.createElement( 'path', _extends__default.default({}, wrappedProps, { d: d, }), ); } function Node(props) { function getTransform() { return `translate(${props.x}, ${props.y})`; } let offset = 0.5; let nodePropsWithDefaults = props.nodeProps; switch (props.shape) { case 'circle': nodePropsWithDefaults = { r: 5, ...nodePropsWithDefaults, }; offset += nodePropsWithDefaults.r; break; case 'image': case 'rect': nodePropsWithDefaults = { height: 10, width: 10, ...nodePropsWithDefaults, }; nodePropsWithDefaults = { x: -nodePropsWithDefaults.width / 2, y: -nodePropsWithDefaults.height / 2, ...nodePropsWithDefaults, }; offset += nodePropsWithDefaults.width / 2; break; } if (props.direction === 'rtl') { offset = -offset; } const wrappedNodeProps = wrapHandlers( nodePropsWithDefaults, props[props.keyProp], ); const wrappedGProps = wrapHandlers(props.gProps, props[props.keyProp]); const wrappedTextProps = wrapHandlers( props.textProps, props[props.keyProp], ); const label = typeof props[props.labelProp] === 'string' ? /*#__PURE__*/ React__default.default.createElement( 'text', _extends__default.default( { dx: offset, dy: 5, }, wrappedTextProps, ), props[props.labelProp], ) : /*#__PURE__*/ React__default.default.createElement( 'g', _extends__default.default( { transform: `translate(${offset}, 5)`, }, wrappedTextProps, ), props[props.labelProp], ); return /*#__PURE__*/ React__default.default.createElement( 'g', _extends__default.default({}, wrappedGProps, { transform: getTransform(), direction: props.direction === 'rtl' ? 'rtl' : null, }), /*#__PURE__*/ React__default.default.createElement( props.shape, wrappedNodeProps, ), label, ); } function Container(props) { return /*#__PURE__*/ React__default.default.createElement( 'svg', _extends__default.default({}, props.svgProps, { height: props.height, width: props.width, }), props.children, /*#__PURE__*/ React__default.default.createElement( 'g', { transform: `translate(${props.margins.left}, ${props.margins.top})`, }, props.links.map((link) => /*#__PURE__*/ React__default.default.createElement(Link, { key: link.target.data[props.keyProp], keyProp: props.keyProp, pathFunc: props.pathFunc, source: link.source, target: link.target, x1: link.source.x, x2: link.target.x, y1: link.source.y, y2: link.target.y, pathProps: { ...props.pathProps, ...link.target.data.pathProps, }, }), ), props.nodes.map((node) => /*#__PURE__*/ React__default.default.createElement( Node, _extends__default.default( { key: node.data[props.keyProp], keyProp: props.keyProp, labelProp: props.labelProp, direction: props.direction, shape: props.nodeShape, x: node.x, y: node.y, }, node.data, { nodeProps: { ...props.nodeProps, ...node.data.nodeProps, }, gProps: { ...props.gProps, ...node.data.gProps, }, textProps: { ...props.textProps, ...node.data.textProps, }, }, ), ), ), ), ); } function Animated(props) { const initialX = props.nodes[0].x; const initialY = props.nodes[0].y; const [state, setState] = React.useState({ nodes: props.nodes.map((n) => ({ ...n, x: initialX, y: initialY, })), links: props.links.map((l) => ({ source: { ...l.source, x: initialX, y: initialY, }, target: { ...l.target, x: initialX, y: initialY, }, })), }); const [animation, setAnimation] = React.useState(null); React.useEffect(animate, [props.nodes, props.links]); function animate() { // Stop previous animation if one is already in progress. We will start the next animation // from the position we are currently in clearInterval(animation); let counter = 0; // Do as much one-time calculation outside of the animation step, which needs to be fast const animationContext = getAnimationContext(state, props); const interval = setInterval(() => { counter++; if (counter === props.steps) { clearInterval(interval); setState({ nodes: props.nodes, links: props.links, }); return; } setState(calculateNewState(animationContext, counter / props.steps)); }, props.duration / props.steps); setAnimation(interval); return () => clearInterval(animation); } function getAnimationContext(initialState, newState) { // Nodes/links that are in both states need to be moved from the old position to the new one // Nodes/links only in the initial state are being removed, and should be moved to the position // of the closest ancestor that still exists, or the new root // Nodes/links only in the new state are being added, and should be moved from the position of // the closest ancestor that previously existed, or the old root // The base determines which node/link the data (like classes and labels) comes from for rendering // We only run this once at the start of the animation, so optimisation is less important const addedNodes = newState.nodes .filter((n1) => initialState.nodes.every((n2) => !areNodesSame(n1, n2))) .map((n1) => ({ base: n1, old: getClosestAncestor(n1, newState, initialState), new: n1, })); const changedNodes = newState.nodes .filter((n1) => initialState.nodes.some((n2) => areNodesSame(n1, n2))) .map((n1) => ({ base: n1, old: initialState.nodes.find((n2) => areNodesSame(n1, n2)), new: n1, })); const removedNodes = initialState.nodes .filter((n1) => newState.nodes.every((n2) => !areNodesSame(n1, n2))) .map((n1) => ({ base: n1, old: n1, new: getClosestAncestor(n1, initialState, newState), })); const addedLinks = newState.links .filter((l1) => initialState.links.every((l2) => !areLinksSame(l1, l2))) .map((l1) => ({ base: l1, old: getClosestAncestor(l1.target, newState, initialState), new: l1, })); const changedLinks = newState.links .filter((l1) => initialState.links.some((l2) => areLinksSame(l1, l2))) .map((l1) => ({ base: l1, old: initialState.links.find((l2) => areLinksSame(l1, l2)), new: l1, })); const removedLinks = initialState.links .filter((l1) => newState.links.every((l2) => !areLinksSame(l1, l2))) .map((l1) => ({ base: l1, old: l1, new: getClosestAncestor(l1.target, initialState, newState), })); return { nodes: changedNodes.concat(addedNodes).concat(removedNodes), links: changedLinks.concat(addedLinks).concat(removedLinks), }; } function getClosestAncestor(node, stateWithNode, stateWithoutNode) { let oldParent = node; while (oldParent) { let newParent = stateWithoutNode.nodes.find((n) => areNodesSame(oldParent, n), ); if (newParent) { return newParent; } oldParent = stateWithNode.nodes.find((n) => (props.getChildren(n) || []).some((c) => areNodesSame(oldParent, c)), ); } return stateWithoutNode.nodes[0]; } function areNodesSame(a, b) { return a.data[props.keyProp] === b.data[props.keyProp]; } function areLinksSame(a, b) { return ( a.source.data[props.keyProp] === b.source.data[props.keyProp] && a.target.data[props.keyProp] === b.target.data[props.keyProp] ); } function calculateNewState(animationContext, interval) { return { nodes: animationContext.nodes.map((n) => calculateNodePosition(n.base, n.old, n.new, interval), ), links: animationContext.links.map((l) => calculateLinkPosition(l.base, l.old, l.new, interval), ), }; } function calculateLinkPosition(link, start, end, interval) { return { source: { ...link.source, x: calculateNewValue( start.source ? start.source.x : start.x, end.source ? end.source.x : end.x, interval, ), y: calculateNewValue( start.source ? start.source.y : start.y, end.source ? end.source.y : end.y, interval, ), }, target: { ...link.target, x: calculateNewValue( start.target ? start.target.x : start.x, end.target ? end.target.x : end.x, interval, ), y: calculateNewValue( start.target ? start.target.y : start.y, end.target ? end.target.y : end.y, interval, ), }, }; } function calculateNodePosition(node, start, end, interval) { return { ...node, x: calculateNewValue(start.x, end.x, interval), y: calculateNewValue(start.y, end.y, interval), }; } function calculateNewValue(start, end, interval) { return start + (end - start) * props.easing(interval); } return /*#__PURE__*/ React__default.default.createElement( Container, _extends__default.default({}, props, state), ); } function AnimatedTree(props) { const propsWithDefaults = { direction: 'ltr', duration: 500, easing: d3Ease.easeQuadOut, getChildren: (n) => n.children, steps: 20, keyProp: 'name', labelProp: 'name', nodeShape: 'circle', nodeProps: {}, gProps: {}, pathProps: {}, svgProps: {}, textProps: {}, ...props, }; return /*#__PURE__*/ React__default.default.createElement( Animated, _extends__default.default( { duration: propsWithDefaults.duration, easing: propsWithDefaults.easing, getChildren: propsWithDefaults.getChildren, direction: propsWithDefaults.direction, height: propsWithDefaults.height, keyProp: propsWithDefaults.keyProp, labelProp: propsWithDefaults.labelProp, nodeShape: propsWithDefaults.nodeShape, nodeProps: propsWithDefaults.nodeProps, pathFunc: propsWithDefaults.pathFunc, steps: propsWithDefaults.steps, width: propsWithDefaults.width, gProps: { className: 'node', ...propsWithDefaults.gProps, }, pathProps: { className: 'link', ...propsWithDefaults.pathProps, }, svgProps: propsWithDefaults.svgProps, textProps: propsWithDefaults.textProps, }, getTreeData(propsWithDefaults), ), propsWithDefaults.children, ); } function Tree(props) { const propsWithDefaults = { direction: 'ltr', getChildren: (n) => n.children, keyProp: 'name', labelProp: 'name', nodeShape: 'circle', nodeProps: {}, gProps: {}, pathProps: {}, svgProps: {}, textProps: {}, ...props, }; return /*#__PURE__*/ React__default.default.createElement( Container, _extends__default.default( { getChildren: propsWithDefaults.getChildren, direction: propsWithDefaults.direction, height: propsWithDefaults.height, keyProp: propsWithDefaults.keyProp, labelProp: propsWithDefaults.labelProp, nodeShape: propsWithDefaults.nodeShape, nodeProps: propsWithDefaults.nodeProps, pathFunc: propsWithDefaults.pathFunc, width: propsWithDefaults.width, gProps: { className: 'node', ...propsWithDefaults.gProps, }, pathProps: { className: 'link', ...propsWithDefaults.pathProps, }, svgProps: propsWithDefaults.svgProps, textProps: propsWithDefaults.textProps, }, getTreeData(propsWithDefaults), ), propsWithDefaults.children, ); } exports.AnimatedTree = AnimatedTree; exports.Tree = Tree; }); ================================================ FILE: dist/module/components/animated.js ================================================ import _extends from '@babel/runtime/helpers/extends'; import React, { useState, useEffect } from 'react'; import Container from './container.js'; function Animated(props) { const initialX = props.nodes[0].x; const initialY = props.nodes[0].y; const [state, setState] = useState({ nodes: props.nodes.map(n => ({ ...n, x: initialX, y: initialY })), links: props.links.map(l => ({ source: { ...l.source, x: initialX, y: initialY }, target: { ...l.target, x: initialX, y: initialY } })) }); const [animation, setAnimation] = useState(null); useEffect(animate, [props.nodes, props.links]); function animate() { // Stop previous animation if one is already in progress. We will start the next animation // from the position we are currently in clearInterval(animation); let counter = 0; // Do as much one-time calculation outside of the animation step, which needs to be fast const animationContext = getAnimationContext(state, props); const interval = setInterval(() => { counter++; if (counter === props.steps) { clearInterval(interval); setState({ nodes: props.nodes, links: props.links }); return; } setState(calculateNewState(animationContext, counter / props.steps)); }, props.duration / props.steps); setAnimation(interval); return () => clearInterval(animation); } function getAnimationContext(initialState, newState) { // Nodes/links that are in both states need to be moved from the old position to the new one // Nodes/links only in the initial state are being removed, and should be moved to the position // of the closest ancestor that still exists, or the new root // Nodes/links only in the new state are being added, and should be moved from the position of // the closest ancestor that previously existed, or the old root // The base determines which node/link the data (like classes and labels) comes from for rendering // We only run this once at the start of the animation, so optimisation is less important const addedNodes = newState.nodes.filter(n1 => initialState.nodes.every(n2 => !areNodesSame(n1, n2))).map(n1 => ({ base: n1, old: getClosestAncestor(n1, newState, initialState), new: n1 })); const changedNodes = newState.nodes.filter(n1 => initialState.nodes.some(n2 => areNodesSame(n1, n2))).map(n1 => ({ base: n1, old: initialState.nodes.find(n2 => areNodesSame(n1, n2)), new: n1 })); const removedNodes = initialState.nodes.filter(n1 => newState.nodes.every(n2 => !areNodesSame(n1, n2))).map(n1 => ({ base: n1, old: n1, new: getClosestAncestor(n1, initialState, newState) })); const addedLinks = newState.links.filter(l1 => initialState.links.every(l2 => !areLinksSame(l1, l2))).map(l1 => ({ base: l1, old: getClosestAncestor(l1.target, newState, initialState), new: l1 })); const changedLinks = newState.links.filter(l1 => initialState.links.some(l2 => areLinksSame(l1, l2))).map(l1 => ({ base: l1, old: initialState.links.find(l2 => areLinksSame(l1, l2)), new: l1 })); const removedLinks = initialState.links.filter(l1 => newState.links.every(l2 => !areLinksSame(l1, l2))).map(l1 => ({ base: l1, old: l1, new: getClosestAncestor(l1.target, initialState, newState) })); return { nodes: changedNodes.concat(addedNodes).concat(removedNodes), links: changedLinks.concat(addedLinks).concat(removedLinks) }; } function getClosestAncestor(node, stateWithNode, stateWithoutNode) { let oldParent = node; while (oldParent) { let newParent = stateWithoutNode.nodes.find(n => areNodesSame(oldParent, n)); if (newParent) { return newParent; } oldParent = stateWithNode.nodes.find(n => (props.getChildren(n) || []).some(c => areNodesSame(oldParent, c))); } return stateWithoutNode.nodes[0]; } function areNodesSame(a, b) { return a.data[props.keyProp] === b.data[props.keyProp]; } function areLinksSame(a, b) { return a.source.data[props.keyProp] === b.source.data[props.keyProp] && a.target.data[props.keyProp] === b.target.data[props.keyProp]; } function calculateNewState(animationContext, interval) { return { nodes: animationContext.nodes.map(n => calculateNodePosition(n.base, n.old, n.new, interval)), links: animationContext.links.map(l => calculateLinkPosition(l.base, l.old, l.new, interval)) }; } function calculateLinkPosition(link, start, end, interval) { return { source: { ...link.source, x: calculateNewValue(start.source ? start.source.x : start.x, end.source ? end.source.x : end.x, interval), y: calculateNewValue(start.source ? start.source.y : start.y, end.source ? end.source.y : end.y, interval) }, target: { ...link.target, x: calculateNewValue(start.target ? start.target.x : start.x, end.target ? end.target.x : end.x, interval), y: calculateNewValue(start.target ? start.target.y : start.y, end.target ? end.target.y : end.y, interval) } }; } function calculateNodePosition(node, start, end, interval) { return { ...node, x: calculateNewValue(start.x, end.x, interval), y: calculateNewValue(start.y, end.y, interval) }; } function calculateNewValue(start, end, interval) { return start + (end - start) * props.easing(interval); } return /*#__PURE__*/React.createElement(Container, _extends({}, props, state)); } export { Animated as default }; ================================================ FILE: dist/module/components/animatedTree.js ================================================ import _extends from '@babel/runtime/helpers/extends'; import { easeQuadOut } from 'd3-ease'; import React from 'react'; import getTreeData from '../d3.js'; import Animated from './animated.js'; function AnimatedTree(props) { const propsWithDefaults = { direction: 'ltr', duration: 500, easing: easeQuadOut, getChildren: n => n.children, steps: 20, keyProp: 'name', labelProp: 'name', nodeShape: 'circle', nodeProps: {}, gProps: {}, pathProps: {}, svgProps: {}, textProps: {}, ...props }; return /*#__PURE__*/React.createElement(Animated, _extends({ duration: propsWithDefaults.duration, easing: propsWithDefaults.easing, getChildren: propsWithDefaults.getChildren, direction: propsWithDefaults.direction, height: propsWithDefaults.height, keyProp: propsWithDefaults.keyProp, labelProp: propsWithDefaults.labelProp, nodeShape: propsWithDefaults.nodeShape, nodeProps: propsWithDefaults.nodeProps, pathFunc: propsWithDefaults.pathFunc, steps: propsWithDefaults.steps, width: propsWithDefaults.width, gProps: { className: 'node', ...propsWithDefaults.gProps }, pathProps: { className: 'link', ...propsWithDefaults.pathProps }, svgProps: propsWithDefaults.svgProps, textProps: propsWithDefaults.textProps }, getTreeData(propsWithDefaults)), propsWithDefaults.children); } export { AnimatedTree as default }; ================================================ FILE: dist/module/components/container.js ================================================ import _extends from '@babel/runtime/helpers/extends'; import React from 'react'; import Link from './link.js'; import Node from './node.js'; function Container(props) { return /*#__PURE__*/React.createElement("svg", _extends({}, props.svgProps, { height: props.height, width: props.width }), props.children, /*#__PURE__*/React.createElement("g", { transform: `translate(${props.margins.left}, ${props.margins.top})` }, props.links.map(link => /*#__PURE__*/React.createElement(Link, { key: link.target.data[props.keyProp], keyProp: props.keyProp, pathFunc: props.pathFunc, source: link.source, target: link.target, x1: link.source.x, x2: link.target.x, y1: link.source.y, y2: link.target.y, pathProps: { ...props.pathProps, ...link.target.data.pathProps } })), props.nodes.map(node => /*#__PURE__*/React.createElement(Node, _extends({ key: node.data[props.keyProp], keyProp: props.keyProp, labelProp: props.labelProp, direction: props.direction, shape: props.nodeShape, x: node.x, y: node.y }, node.data, { nodeProps: { ...props.nodeProps, ...node.data.nodeProps }, gProps: { ...props.gProps, ...node.data.gProps }, textProps: { ...props.textProps, ...node.data.textProps } }))))); } export { Container as default }; ================================================ FILE: dist/module/components/link.js ================================================ import _extends from '@babel/runtime/helpers/extends'; import React from 'react'; import wrapHandlers from '../wrapHandlers.js'; function diagonal(x1, y1, x2, y2) { return `M${x1},${y1}C${(x1 + x2) / 2},${y1} ${(x1 + x2) / 2},${y2} ${x2},${y2}`; } function Link(props) { const wrappedProps = wrapHandlers(props.pathProps, props.source.data[props.keyProp], props.target.data[props.keyProp]); const pathFunc = props.pathFunc || diagonal; const d = pathFunc(props.x1, props.y1, props.x2, props.y2); return /*#__PURE__*/React.createElement("path", _extends({}, wrappedProps, { d: d })); } export { Link as default }; ================================================ FILE: dist/module/components/node.js ================================================ import _extends from '@babel/runtime/helpers/extends'; import React from 'react'; import wrapHandlers from '../wrapHandlers.js'; function Node(props) { function getTransform() { return `translate(${props.x}, ${props.y})`; } let offset = 0.5; let nodePropsWithDefaults = props.nodeProps; switch (props.shape) { case 'circle': nodePropsWithDefaults = { r: 5, ...nodePropsWithDefaults }; offset += nodePropsWithDefaults.r; break; case 'image': case 'rect': nodePropsWithDefaults = { height: 10, width: 10, ...nodePropsWithDefaults }; nodePropsWithDefaults = { x: -nodePropsWithDefaults.width / 2, y: -nodePropsWithDefaults.height / 2, ...nodePropsWithDefaults }; offset += nodePropsWithDefaults.width / 2; break; } if (props.direction === 'rtl') { offset = -offset; } const wrappedNodeProps = wrapHandlers(nodePropsWithDefaults, props[props.keyProp]); const wrappedGProps = wrapHandlers(props.gProps, props[props.keyProp]); const wrappedTextProps = wrapHandlers(props.textProps, props[props.keyProp]); const label = typeof props[props.labelProp] === 'string' ? /*#__PURE__*/React.createElement("text", _extends({ dx: offset, dy: 5 }, wrappedTextProps), props[props.labelProp]) : /*#__PURE__*/React.createElement("g", _extends({ transform: `translate(${offset}, 5)` }, wrappedTextProps), props[props.labelProp]); return /*#__PURE__*/React.createElement("g", _extends({}, wrappedGProps, { transform: getTransform(), direction: props.direction === 'rtl' ? 'rtl' : null }), /*#__PURE__*/React.createElement(props.shape, wrappedNodeProps), label); } export { Node as default }; ================================================ FILE: dist/module/components/tree.js ================================================ import _extends from '@babel/runtime/helpers/extends'; import React from 'react'; import getTreeData from '../d3.js'; import Container from './container.js'; function Tree(props) { const propsWithDefaults = { direction: 'ltr', getChildren: n => n.children, keyProp: 'name', labelProp: 'name', nodeShape: 'circle', nodeProps: {}, gProps: {}, pathProps: {}, svgProps: {}, textProps: {}, ...props }; return /*#__PURE__*/React.createElement(Container, _extends({ getChildren: propsWithDefaults.getChildren, direction: propsWithDefaults.direction, height: propsWithDefaults.height, keyProp: propsWithDefaults.keyProp, labelProp: propsWithDefaults.labelProp, nodeShape: propsWithDefaults.nodeShape, nodeProps: propsWithDefaults.nodeProps, pathFunc: propsWithDefaults.pathFunc, width: propsWithDefaults.width, gProps: { className: 'node', ...propsWithDefaults.gProps }, pathProps: { className: 'link', ...propsWithDefaults.pathProps }, svgProps: propsWithDefaults.svgProps, textProps: propsWithDefaults.textProps }, getTreeData(propsWithDefaults)), propsWithDefaults.children); } export { Tree as default }; ================================================ FILE: dist/module/d3.js ================================================ import { hierarchy, tree } from 'd3-hierarchy'; function getTreeData(props) { const margins = props.margins || { bottom: 10, left: props.direction !== 'rtl' ? 20 : 150, right: props.direction !== 'rtl' ? 150 : 20, top: 10 }; const contentWidth = props.width - margins.left - margins.right; const contentHeight = props.height - margins.top - margins.bottom; const data = hierarchy(props.data, props.getChildren); const root = tree().size([contentHeight, contentWidth])(data); // d3 gives us a top to down tree, but we will display it left to right/right to left, so x and y need to be swapped const links = root.links().map(link => ({ ...link, source: { ...link.source, x: props.direction !== 'rtl' ? link.source.y : contentWidth - link.source.y, y: link.source.x }, target: { ...link.target, x: props.direction !== 'rtl' ? link.target.y : contentWidth - link.target.y, y: link.target.x } })); const nodes = root.descendants().map(node => ({ ...node, x: props.direction !== 'rtl' ? node.y : contentWidth - node.y, y: node.x })); return { links, margins, nodes }; } export { getTreeData as default }; ================================================ FILE: dist/module/index.js ================================================ export { default as AnimatedTree } from './components/animatedTree.js'; export { default as Tree } from './components/tree.js'; ================================================ FILE: dist/module/wrapHandlers.js ================================================ const regex = /on[A-Z]/; function wrapper(func, args) { return event => func(event, ...args); } // Wraps any event handlers passed in as props with a function that passes additional arguments function wrapHandlers(props, ...args) { const handlers = Object.keys(props).filter(propName => regex.test(propName) && typeof props[propName] === 'function'); const wrappedHandlers = handlers.reduce((acc, handler) => { acc[handler] = wrapper(props[handler], args); return acc; }, {}); return { ...props, ...wrappedHandlers }; } export { wrapHandlers as default }; ================================================ FILE: dist/style.css ================================================ .node circle, .node rect { fill: white; stroke: black; } path.link { fill: none; stroke: black; } ================================================ FILE: docs/161.a4718455.iframe.bundle.js ================================================ "use strict";(self.webpackChunkreact_tree_graph=self.webpackChunkreact_tree_graph||[]).push([[161,735],{"./node_modules/@storybook/addon-docs/dist/DocsRenderer-PQXLIZUC.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{DocsRenderer:()=>DocsRenderer});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_storybook_react_dom_shim__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/react-dom-shim/dist/react-18.mjs"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.mjs"),defaultComponents={code:_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_2__.XA,a:_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_2__.zE,..._storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_2__.Sw},ErrorBoundary=class extends react__WEBPACK_IMPORTED_MODULE_0__.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(err){let{showException}=this.props;showException(err)}render(){let{hasError}=this.state,{children}=this.props;return hasError?null:react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,children)}},DocsRenderer=class{constructor(){this.render=async(context,docsParameter,element)=>{let components={...defaultComponents,...docsParameter?.components},TDocs=_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_2__.kQ;return new Promise(((resolve,reject)=>{__webpack_require__.e(294).then(__webpack_require__.bind(__webpack_require__,"./node_modules/@mdx-js/react/index.js")).then((({MDXProvider})=>(0,_storybook_react_dom_shim__WEBPACK_IMPORTED_MODULE_1__.renderElement)(react__WEBPACK_IMPORTED_MODULE_0__.createElement(ErrorBoundary,{showException:reject,key:Math.random()},react__WEBPACK_IMPORTED_MODULE_0__.createElement(MDXProvider,{components},react__WEBPACK_IMPORTED_MODULE_0__.createElement(TDocs,{context,docsParameter}))),element))).then((()=>resolve()))}))},this.unmount=element=>{(0,_storybook_react_dom_shim__WEBPACK_IMPORTED_MODULE_1__.unmountElement)(element)}}}},"./node_modules/@storybook/react-dom-shim/dist/react-18.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{renderElement:()=>renderElement,unmountElement:()=>unmountElement});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react_dom_client__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react-dom/client.js"),nodes=new Map;var WithCallback=({callback,children})=>{let once=react__WEBPACK_IMPORTED_MODULE_0__.useRef();return react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect((()=>{once.current!==callback&&(once.current=callback,callback())}),[callback]),children};typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let resolve=null,reject=null;return{promise:new Promise(((res,rej)=>{resolve=res,reject=rej})),resolve,reject}});var renderElement=async(node,el,rootOptions)=>{let root=await getReactRoot(el,rootOptions);if(function getIsReactActEnvironment(){return globalThis.IS_REACT_ACT_ENVIRONMENT}())return void root.render(node);let{promise,resolve}=Promise.withResolvers();return root.render(react__WEBPACK_IMPORTED_MODULE_0__.createElement(WithCallback,{callback:resolve},node)),promise},unmountElement=(el,shouldUseNewRootApi)=>{let root=nodes.get(el);root&&(root.unmount(),nodes.delete(el))},getReactRoot=async(el,rootOptions)=>{let root=nodes.get(el);return root||(root=react_dom_client__WEBPACK_IMPORTED_MODULE_1__.H(el,rootOptions),nodes.set(el,root)),root}},"./node_modules/react-dom/client.js":(__unused_webpack_module,exports,__webpack_require__)=>{var m=__webpack_require__("./node_modules/react-dom/index.js");exports.H=m.createRoot,m.hydrateRoot}}]); ================================================ FILE: docs/294.bd1debad.iframe.bundle.js ================================================ "use strict";(self.webpackChunkreact_tree_graph=self.webpackChunkreact_tree_graph||[]).push([[294],{"./node_modules/@mdx-js/react/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{MDXProvider:()=>_lib_index_js__WEBPACK_IMPORTED_MODULE_0__.x,useMDXComponents:()=>_lib_index_js__WEBPACK_IMPORTED_MODULE_0__.R});var _lib_index_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js")},"./node_modules/@mdx-js/react/lib/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{R:()=>useMDXComponents,x:()=>MDXProvider});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");const emptyComponents={},MDXContext=react__WEBPACK_IMPORTED_MODULE_0__.createContext(emptyComponents);function useMDXComponents(components){const contextComponents=react__WEBPACK_IMPORTED_MODULE_0__.useContext(MDXContext);return react__WEBPACK_IMPORTED_MODULE_0__.useMemo((function(){return"function"==typeof components?components(contextComponents):{...contextComponents,...components}}),[contextComponents,components])}function MDXProvider(properties){let allComponents;return allComponents=properties.disableParentContext?"function"==typeof properties.components?properties.components(emptyComponents):properties.components||emptyComponents:useMDXComponents(properties.components),react__WEBPACK_IMPORTED_MODULE_0__.createElement(MDXContext.Provider,{value:allComponents},properties.children)}}}]); ================================================ FILE: docs/357.c654aade.iframe.bundle.js ================================================ "use strict";(self.webpackChunkreact_tree_graph=self.webpackChunkreact_tree_graph||[]).push([[357],{"./node_modules/@storybook/addon-docs/dist/Color-AVL7NMMY.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{ColorControl:()=>ColorControl,default:()=>Color_default});var _chunk_SPFYY5GD_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/chunk-SPFYY5GD.mjs"),_chunk_QUZPS4B6_mjs__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/chunk-QUZPS4B6.mjs"),react__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/index.js"),storybook_internal_components__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/storybook/dist/components/index.js"),_storybook_icons__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@storybook/icons/dist/index.mjs"),storybook_theming__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/storybook/dist/theming/index.js"),require_color_name=(0,_chunk_QUZPS4B6_mjs__WEBPACK_IMPORTED_MODULE_1__.P$)({"../../node_modules/color-name/index.js"(exports,module){module.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}}),require_conversions=(0,_chunk_QUZPS4B6_mjs__WEBPACK_IMPORTED_MODULE_1__.P$)({"../../node_modules/color-convert/conversions.js"(exports,module){var cssKeywords=require_color_name(),reverseKeywords={};for(let key of Object.keys(cssKeywords))reverseKeywords[cssKeywords[key]]=key;var convert2={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};module.exports=convert2;for(let model of Object.keys(convert2)){if(!("channels"in convert2[model]))throw new Error("missing channels property: "+model);if(!("labels"in convert2[model]))throw new Error("missing channel labels property: "+model);if(convert2[model].labels.length!==convert2[model].channels)throw new Error("channel and label counts mismatch: "+model);let{channels,labels}=convert2[model];delete convert2[model].channels,delete convert2[model].labels,Object.defineProperty(convert2[model],"channels",{value:channels}),Object.defineProperty(convert2[model],"labels",{value:labels})}convert2.rgb.hsl=function(rgb){let h2,s2,r2=rgb[0]/255,g2=rgb[1]/255,b2=rgb[2]/255,min=Math.min(r2,g2,b2),max=Math.max(r2,g2,b2),delta=max-min;max===min?h2=0:r2===max?h2=(g2-b2)/delta:g2===max?h2=2+(b2-r2)/delta:b2===max&&(h2=4+(r2-g2)/delta),h2=Math.min(60*h2,360),h2<0&&(h2+=360);let l2=(min+max)/2;return s2=max===min?0:l2<=.5?delta/(max+min):delta/(2-max-min),[h2,100*s2,100*l2]},convert2.rgb.hsv=function(rgb){let rdif,gdif,bdif,h2,s2,r2=rgb[0]/255,g2=rgb[1]/255,b2=rgb[2]/255,v2=Math.max(r2,g2,b2),diff=v2-Math.min(r2,g2,b2),diffc=function(c2){return(v2-c2)/6/diff+.5};return 0===diff?(h2=0,s2=0):(s2=diff/v2,rdif=diffc(r2),gdif=diffc(g2),bdif=diffc(b2),r2===v2?h2=bdif-gdif:g2===v2?h2=1/3+rdif-bdif:b2===v2&&(h2=2/3+gdif-rdif),h2<0?h2+=1:h2>1&&(h2-=1)),[360*h2,100*s2,100*v2]},convert2.rgb.hwb=function(rgb){let r2=rgb[0],g2=rgb[1],b2=rgb[2],h2=convert2.rgb.hsl(rgb)[0],w2=1/255*Math.min(r2,Math.min(g2,b2));return b2=1-1/255*Math.max(r2,Math.max(g2,b2)),[h2,100*w2,100*b2]},convert2.rgb.cmyk=function(rgb){let r2=rgb[0]/255,g2=rgb[1]/255,b2=rgb[2]/255,k2=Math.min(1-r2,1-g2,1-b2);return[100*((1-r2-k2)/(1-k2)||0),100*((1-g2-k2)/(1-k2)||0),100*((1-b2-k2)/(1-k2)||0),100*k2]},convert2.rgb.keyword=function(rgb){let reversed=reverseKeywords[rgb];if(reversed)return reversed;let currentClosestKeyword,currentClosestDistance=1/0;for(let keyword of Object.keys(cssKeywords)){let value=cssKeywords[keyword],distance=(y2=value,((x2=rgb)[0]-y2[0])**2+(x2[1]-y2[1])**2+(x2[2]-y2[2])**2);distance<currentClosestDistance&&(currentClosestDistance=distance,currentClosestKeyword=keyword)}var x2,y2;return currentClosestKeyword},convert2.keyword.rgb=function(keyword){return cssKeywords[keyword]},convert2.rgb.xyz=function(rgb){let r2=rgb[0]/255,g2=rgb[1]/255,b2=rgb[2]/255;return r2=r2>.04045?((r2+.055)/1.055)**2.4:r2/12.92,g2=g2>.04045?((g2+.055)/1.055)**2.4:g2/12.92,b2=b2>.04045?((b2+.055)/1.055)**2.4:b2/12.92,[100*(.4124*r2+.3576*g2+.1805*b2),100*(.2126*r2+.7152*g2+.0722*b2),100*(.0193*r2+.1192*g2+.9505*b2)]},convert2.rgb.lab=function(rgb){let xyz=convert2.rgb.xyz(rgb),x2=xyz[0],y2=xyz[1],z2=xyz[2];return x2/=95.047,y2/=100,z2/=108.883,x2=x2>.008856?x2**(1/3):7.787*x2+16/116,y2=y2>.008856?y2**(1/3):7.787*y2+16/116,z2=z2>.008856?z2**(1/3):7.787*z2+16/116,[116*y2-16,500*(x2-y2),200*(y2-z2)]},convert2.hsl.rgb=function(hsl){let t2,t3,val,h2=hsl[0]/360,s2=hsl[1]/100,l2=hsl[2]/100;if(0===s2)return val=255*l2,[val,val,val];t2=l2<.5?l2*(1+s2):l2+s2-l2*s2;let t1=2*l2-t2,rgb=[0,0,0];for(let i2=0;i2<3;i2++)t3=h2+1/3*-(i2-1),t3<0&&t3++,t3>1&&t3--,val=6*t3<1?t1+6*(t2-t1)*t3:2*t3<1?t2:3*t3<2?t1+(t2-t1)*(2/3-t3)*6:t1,rgb[i2]=255*val;return rgb},convert2.hsl.hsv=function(hsl){let h2=hsl[0],s2=hsl[1]/100,l2=hsl[2]/100,smin=s2,lmin=Math.max(l2,.01);return l2*=2,s2*=l2<=1?l2:2-l2,smin*=lmin<=1?lmin:2-lmin,[h2,100*(0===l2?2*smin/(lmin+smin):2*s2/(l2+s2)),100*((l2+s2)/2)]},convert2.hsv.rgb=function(hsv){let h2=hsv[0]/60,s2=hsv[1]/100,v2=hsv[2]/100,hi=Math.floor(h2)%6,f2=h2-Math.floor(h2),p2=255*v2*(1-s2),q2=255*v2*(1-s2*f2),t2=255*v2*(1-s2*(1-f2));switch(v2*=255,hi){case 0:return[v2,t2,p2];case 1:return[q2,v2,p2];case 2:return[p2,v2,t2];case 3:return[p2,q2,v2];case 4:return[t2,p2,v2];case 5:return[v2,p2,q2]}},convert2.hsv.hsl=function(hsv){let sl,l2,h2=hsv[0],s2=hsv[1]/100,v2=hsv[2]/100,vmin=Math.max(v2,.01);l2=(2-s2)*v2;let lmin=(2-s2)*vmin;return sl=s2*vmin,sl/=lmin<=1?lmin:2-lmin,sl=sl||0,l2/=2,[h2,100*sl,100*l2]},convert2.hwb.rgb=function(hwb){let f2,h2=hwb[0]/360,wh=hwb[1]/100,bl=hwb[2]/100,ratio=wh+bl;ratio>1&&(wh/=ratio,bl/=ratio);let i2=Math.floor(6*h2),v2=1-bl;f2=6*h2-i2,1&i2&&(f2=1-f2);let r2,g2,b2,n2=wh+f2*(v2-wh);switch(i2){default:case 6:case 0:r2=v2,g2=n2,b2=wh;break;case 1:r2=n2,g2=v2,b2=wh;break;case 2:r2=wh,g2=v2,b2=n2;break;case 3:r2=wh,g2=n2,b2=v2;break;case 4:r2=n2,g2=wh,b2=v2;break;case 5:r2=v2,g2=wh,b2=n2}return[255*r2,255*g2,255*b2]},convert2.cmyk.rgb=function(cmyk){let c2=cmyk[0]/100,m2=cmyk[1]/100,y2=cmyk[2]/100,k2=cmyk[3]/100;return[255*(1-Math.min(1,c2*(1-k2)+k2)),255*(1-Math.min(1,m2*(1-k2)+k2)),255*(1-Math.min(1,y2*(1-k2)+k2))]},convert2.xyz.rgb=function(xyz){let r2,g2,b2,x2=xyz[0]/100,y2=xyz[1]/100,z2=xyz[2]/100;return r2=3.2406*x2+-1.5372*y2+-.4986*z2,g2=-.9689*x2+1.8758*y2+.0415*z2,b2=.0557*x2+-.204*y2+1.057*z2,r2=r2>.0031308?1.055*r2**(1/2.4)-.055:12.92*r2,g2=g2>.0031308?1.055*g2**(1/2.4)-.055:12.92*g2,b2=b2>.0031308?1.055*b2**(1/2.4)-.055:12.92*b2,r2=Math.min(Math.max(0,r2),1),g2=Math.min(Math.max(0,g2),1),b2=Math.min(Math.max(0,b2),1),[255*r2,255*g2,255*b2]},convert2.xyz.lab=function(xyz){let x2=xyz[0],y2=xyz[1],z2=xyz[2];return x2/=95.047,y2/=100,z2/=108.883,x2=x2>.008856?x2**(1/3):7.787*x2+16/116,y2=y2>.008856?y2**(1/3):7.787*y2+16/116,z2=z2>.008856?z2**(1/3):7.787*z2+16/116,[116*y2-16,500*(x2-y2),200*(y2-z2)]},convert2.lab.xyz=function(lab){let x2,y2,z2;y2=(lab[0]+16)/116,x2=lab[1]/500+y2,z2=y2-lab[2]/200;let y22=y2**3,x22=x2**3,z22=z2**3;return y2=y22>.008856?y22:(y2-16/116)/7.787,x2=x22>.008856?x22:(x2-16/116)/7.787,z2=z22>.008856?z22:(z2-16/116)/7.787,x2*=95.047,y2*=100,z2*=108.883,[x2,y2,z2]},convert2.lab.lch=function(lab){let h2,l2=lab[0],a2=lab[1],b2=lab[2];return h2=360*Math.atan2(b2,a2)/2/Math.PI,h2<0&&(h2+=360),[l2,Math.sqrt(a2*a2+b2*b2),h2]},convert2.lch.lab=function(lch){let l2=lch[0],c2=lch[1],hr=lch[2]/360*2*Math.PI;return[l2,c2*Math.cos(hr),c2*Math.sin(hr)]},convert2.rgb.ansi16=function(args,saturation=null){let[r2,g2,b2]=args,value=null===saturation?convert2.rgb.hsv(args)[2]:saturation;if(value=Math.round(value/50),0===value)return 30;let ansi=30+(Math.round(b2/255)<<2|Math.round(g2/255)<<1|Math.round(r2/255));return 2===value&&(ansi+=60),ansi},convert2.hsv.ansi16=function(args){return convert2.rgb.ansi16(convert2.hsv.rgb(args),args[2])},convert2.rgb.ansi256=function(args){let r2=args[0],g2=args[1],b2=args[2];return r2===g2&&g2===b2?r2<8?16:r2>248?231:Math.round((r2-8)/247*24)+232:16+36*Math.round(r2/255*5)+6*Math.round(g2/255*5)+Math.round(b2/255*5)},convert2.ansi16.rgb=function(args){let color=args%10;if(0===color||7===color)return args>50&&(color+=3.5),color=color/10.5*255,[color,color,color];let mult=.5*(1+~~(args>50));return[(1&color)*mult*255,(color>>1&1)*mult*255,(color>>2&1)*mult*255]},convert2.ansi256.rgb=function(args){if(args>=232){let c2=10*(args-232)+8;return[c2,c2,c2]}let rem;return args-=16,[Math.floor(args/36)/5*255,Math.floor((rem=args%36)/6)/5*255,rem%6/5*255]},convert2.rgb.hex=function(args){let string=(((255&Math.round(args[0]))<<16)+((255&Math.round(args[1]))<<8)+(255&Math.round(args[2]))).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert2.hex.rgb=function(args){let match=args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!match)return[0,0,0];let colorString=match[0];3===match[0].length&&(colorString=colorString.split("").map((char=>char+char)).join(""));let integer=parseInt(colorString,16);return[integer>>16&255,integer>>8&255,255&integer]},convert2.rgb.hcg=function(rgb){let grayscale,hue,r2=rgb[0]/255,g2=rgb[1]/255,b2=rgb[2]/255,max=Math.max(Math.max(r2,g2),b2),min=Math.min(Math.min(r2,g2),b2),chroma=max-min;return grayscale=chroma<1?min/(1-chroma):0,hue=chroma<=0?0:max===r2?(g2-b2)/chroma%6:max===g2?2+(b2-r2)/chroma:4+(r2-g2)/chroma,hue/=6,hue%=1,[360*hue,100*chroma,100*grayscale]},convert2.hsl.hcg=function(hsl){let s2=hsl[1]/100,l2=hsl[2]/100,c2=l2<.5?2*s2*l2:2*s2*(1-l2),f2=0;return c2<1&&(f2=(l2-.5*c2)/(1-c2)),[hsl[0],100*c2,100*f2]},convert2.hsv.hcg=function(hsv){let s2=hsv[1]/100,v2=hsv[2]/100,c2=s2*v2,f2=0;return c2<1&&(f2=(v2-c2)/(1-c2)),[hsv[0],100*c2,100*f2]},convert2.hcg.rgb=function(hcg){let h2=hcg[0]/360,c2=hcg[1]/100,g2=hcg[2]/100;if(0===c2)return[255*g2,255*g2,255*g2];let pure=[0,0,0],hi=h2%1*6,v2=hi%1,w2=1-v2,mg=0;switch(Math.floor(hi)){case 0:pure[0]=1,pure[1]=v2,pure[2]=0;break;case 1:pure[0]=w2,pure[1]=1,pure[2]=0;break;case 2:pure[0]=0,pure[1]=1,pure[2]=v2;break;case 3:pure[0]=0,pure[1]=w2,pure[2]=1;break;case 4:pure[0]=v2,pure[1]=0,pure[2]=1;break;default:pure[0]=1,pure[1]=0,pure[2]=w2}return mg=(1-c2)*g2,[255*(c2*pure[0]+mg),255*(c2*pure[1]+mg),255*(c2*pure[2]+mg)]},convert2.hcg.hsv=function(hcg){let c2=hcg[1]/100,v2=c2+hcg[2]/100*(1-c2),f2=0;return v2>0&&(f2=c2/v2),[hcg[0],100*f2,100*v2]},convert2.hcg.hsl=function(hcg){let c2=hcg[1]/100,l2=hcg[2]/100*(1-c2)+.5*c2,s2=0;return l2>0&&l2<.5?s2=c2/(2*l2):l2>=.5&&l2<1&&(s2=c2/(2*(1-l2))),[hcg[0],100*s2,100*l2]},convert2.hcg.hwb=function(hcg){let c2=hcg[1]/100,v2=c2+hcg[2]/100*(1-c2);return[hcg[0],100*(v2-c2),100*(1-v2)]},convert2.hwb.hcg=function(hwb){let w2=hwb[1]/100,v2=1-hwb[2]/100,c2=v2-w2,g2=0;return c2<1&&(g2=(v2-c2)/(1-c2)),[hwb[0],100*c2,100*g2]},convert2.apple.rgb=function(apple){return[apple[0]/65535*255,apple[1]/65535*255,apple[2]/65535*255]},convert2.rgb.apple=function(rgb){return[rgb[0]/255*65535,rgb[1]/255*65535,rgb[2]/255*65535]},convert2.gray.rgb=function(args){return[args[0]/100*255,args[0]/100*255,args[0]/100*255]},convert2.gray.hsl=function(args){return[0,0,args[0]]},convert2.gray.hsv=convert2.gray.hsl,convert2.gray.hwb=function(gray){return[0,100,gray[0]]},convert2.gray.cmyk=function(gray){return[0,0,0,gray[0]]},convert2.gray.lab=function(gray){return[gray[0],0,0]},convert2.gray.hex=function(gray){let val=255&Math.round(gray[0]/100*255),string=((val<<16)+(val<<8)+val).toString(16).toUpperCase();return"000000".substring(string.length)+string},convert2.rgb.gray=function(rgb){return[(rgb[0]+rgb[1]+rgb[2])/3/255*100]}}}),require_route=(0,_chunk_QUZPS4B6_mjs__WEBPACK_IMPORTED_MODULE_1__.P$)({"../../node_modules/color-convert/route.js"(exports,module){var conversions=require_conversions();function deriveBFS(fromModel){let graph=function buildGraph(){let graph={},models=Object.keys(conversions);for(let len=models.length,i2=0;i2<len;i2++)graph[models[i2]]={distance:-1,parent:null};return graph}(),queue=[fromModel];for(graph[fromModel].distance=0;queue.length;){let current=queue.pop(),adjacents=Object.keys(conversions[current]);for(let len=adjacents.length,i2=0;i2<len;i2++){let adjacent=adjacents[i2],node=graph[adjacent];-1===node.distance&&(node.distance=graph[current].distance+1,node.parent=current,queue.unshift(adjacent))}}return graph}function link(from,to){return function(args){return to(from(args))}}function wrapConversion(toModel,graph){let path=[graph[toModel].parent,toModel],fn=conversions[graph[toModel].parent][toModel],cur=graph[toModel].parent;for(;graph[cur].parent;)path.unshift(graph[cur].parent),fn=link(conversions[graph[cur].parent][cur],fn),cur=graph[cur].parent;return fn.conversion=path,fn}module.exports=function(fromModel){let graph=deriveBFS(fromModel),conversion={},models=Object.keys(graph);for(let len=models.length,i2=0;i2<len;i2++){let toModel=models[i2];null!==graph[toModel].parent&&(conversion[toModel]=wrapConversion(toModel,graph))}return conversion}}}),require_color_convert=(0,_chunk_QUZPS4B6_mjs__WEBPACK_IMPORTED_MODULE_1__.P$)({"../../node_modules/color-convert/index.js"(exports,module){var conversions=require_conversions(),route=require_route(),convert2={};Object.keys(conversions).forEach((fromModel=>{convert2[fromModel]={},Object.defineProperty(convert2[fromModel],"channels",{value:conversions[fromModel].channels}),Object.defineProperty(convert2[fromModel],"labels",{value:conversions[fromModel].labels});let routes=route(fromModel);Object.keys(routes).forEach((toModel=>{let fn=routes[toModel];convert2[fromModel][toModel]=function wrapRounded(fn){let wrappedFn=function(...args){let arg0=args[0];if(null==arg0)return arg0;arg0.length>1&&(args=arg0);let result=fn(args);if("object"==typeof result)for(let len=result.length,i2=0;i2<len;i2++)result[i2]=Math.round(result[i2]);return result};return"conversion"in fn&&(wrappedFn.conversion=fn.conversion),wrappedFn}(fn),convert2[fromModel][toModel].raw=function wrapRaw(fn){let wrappedFn=function(...args){let arg0=args[0];return null==arg0?arg0:(arg0.length>1&&(args=arg0),fn(args))};return"conversion"in fn&&(wrappedFn.conversion=fn.conversion),wrappedFn}(fn)}))})),module.exports=convert2}}),import_color_convert=(0,_chunk_QUZPS4B6_mjs__WEBPACK_IMPORTED_MODULE_1__.f1)(require_color_convert());function u(){return(u=Object.assign||function(e2){for(var r2=1;r2<arguments.length;r2++){var t2=arguments[r2];for(var n2 in t2)Object.prototype.hasOwnProperty.call(t2,n2)&&(e2[n2]=t2[n2])}return e2}).apply(this,arguments)}function c(e2,r2){if(null==e2)return{};var t2,n2,o2={},a2=Object.keys(e2);for(n2=0;n2<a2.length;n2++)r2.indexOf(t2=a2[n2])>=0||(o2[t2]=e2[t2]);return o2}function i(e2){var t2=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(e2),n2=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)((function(e3){t2.current&&t2.current(e3)}));return t2.current=e2,n2.current}var s=function(e2,r2,t2){return void 0===r2&&(r2=0),void 0===t2&&(t2=1),e2>t2?t2:e2<r2?r2:e2},f=function(e2){return"touches"in e2},v=function(e2){return e2&&e2.ownerDocument.defaultView||self},d=function(e2,r2,t2){var n2=e2.getBoundingClientRect(),o2=f(r2)?function(e3,r3){for(var t3=0;t3<e3.length;t3++)if(e3[t3].identifier===r3)return e3[t3];return e3[0]}(r2.touches,t2):r2;return{left:s((o2.pageX-(n2.left+v(e2).pageXOffset))/n2.width),top:s((o2.pageY-(n2.top+v(e2).pageYOffset))/n2.height)}},h=function(e2){!f(e2)&&e2.preventDefault()},m=react__WEBPACK_IMPORTED_MODULE_2__.memo((function(o2){var a2=o2.onMove,l2=o2.onKey,s2=c(o2,["onMove","onKey"]),m2=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null),g2=i(a2),p2=i(l2),b2=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null),_2=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(!1),x2=(0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)((function(){var e2=function(e3){h(e3),(f(e3)?e3.touches.length>0:e3.buttons>0)&&m2.current?g2(d(m2.current,e3,b2.current)):t2(!1)},r2=function(){return t2(!1)};function t2(t3){var n2=_2.current,o3=v(m2.current),a3=t3?o3.addEventListener:o3.removeEventListener;a3(n2?"touchmove":"mousemove",e2),a3(n2?"touchend":"mouseup",r2)}return[function(e3){var e4,r3=e3.nativeEvent,n2=m2.current;if(n2&&(h(r3),e4=r3,(!_2.current||f(e4))&&n2)){if(f(r3)){_2.current=!0;var o3=r3.changedTouches||[];o3.length&&(b2.current=o3[0].identifier)}n2.focus(),g2(d(n2,r3,b2.current)),t2(!0)}},function(e3){var r3=e3.which||e3.keyCode;r3<37||r3>40||(e3.preventDefault(),p2({left:39===r3?.05:37===r3?-.05:0,top:40===r3?.05:38===r3?-.05:0}))},t2]}),[p2,g2]),C2=x2[0],E2=x2[1],H2=x2[2];return(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)((function(){return H2}),[H2]),react__WEBPACK_IMPORTED_MODULE_2__.createElement("div",u({},s2,{onTouchStart:C2,onMouseDown:C2,className:"react-colorful__interactive",ref:m2,onKeyDown:E2,tabIndex:0,role:"slider"}))})),g=function(e2){return e2.filter(Boolean).join(" ")},p=function(r2){var t2=r2.color,n2=r2.left,o2=r2.top,a2=void 0===o2?.5:o2,l2=g(["react-colorful__pointer",r2.className]);return react__WEBPACK_IMPORTED_MODULE_2__.createElement("div",{className:l2,style:{top:100*a2+"%",left:100*n2+"%"}},react__WEBPACK_IMPORTED_MODULE_2__.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t2}}))},b=function(e2,r2,t2){return void 0===r2&&(r2=0),void 0===t2&&(t2=Math.pow(10,r2)),Math.round(t2*e2)/t2},_={grad:.9,turn:360,rad:360/(2*Math.PI)},C=function(e2){return"#"===e2[0]&&(e2=e2.substring(1)),e2.length<6?{r:parseInt(e2[0]+e2[0],16),g:parseInt(e2[1]+e2[1],16),b:parseInt(e2[2]+e2[2],16),a:4===e2.length?b(parseInt(e2[3]+e2[3],16)/255,2):1}:{r:parseInt(e2.substring(0,2),16),g:parseInt(e2.substring(2,4),16),b:parseInt(e2.substring(4,6),16),a:8===e2.length?b(parseInt(e2.substring(6,8),16)/255,2):1}},E=function(e2,r2){return void 0===r2&&(r2="deg"),Number(e2)*(_[r2]||1)},N=function(e2){var r2=e2.s,t2=e2.l;return{h:e2.h,s:(r2*=(t2<50?t2:100-t2)/100)>0?2*r2/(t2+r2)*100:0,v:t2+r2,a:e2.a}},y=function(e2){var r2=e2.s,t2=e2.v,n2=e2.a,o2=(200-r2)*t2/100;return{h:b(e2.h),s:b(o2>0&&o2<200?r2*t2/100/(o2<=100?o2:200-o2)*100:0),l:b(o2/2),a:b(n2,2)}},q=function(e2){var r2=y(e2);return"hsl("+r2.h+", "+r2.s+"%, "+r2.l+"%)"},k=function(e2){var r2=y(e2);return"hsla("+r2.h+", "+r2.s+"%, "+r2.l+"%, "+r2.a+")"},I=function(e2){var r2=e2.h,t2=e2.s,n2=e2.v,o2=e2.a;r2=r2/360*6,t2/=100,n2/=100;var a2=Math.floor(r2),l2=n2*(1-t2),u2=n2*(1-(r2-a2)*t2),c2=n2*(1-(1-r2+a2)*t2),i2=a2%6;return{r:b(255*[n2,u2,l2,l2,c2,n2][i2]),g:b(255*[c2,n2,n2,u2,l2,l2][i2]),b:b(255*[l2,l2,c2,n2,n2,u2][i2]),a:b(o2,2)}},D=function(e2){var r2=e2.toString(16);return r2.length<2?"0"+r2:r2},K=function(e2){var r2=e2.r,t2=e2.g,n2=e2.b,o2=e2.a,a2=o2<1?D(b(255*o2)):"";return"#"+D(r2)+D(t2)+D(n2)+a2},L=function(e2){var r2=e2.r,t2=e2.g,n2=e2.b,o2=e2.a,a2=Math.max(r2,t2,n2),l2=a2-Math.min(r2,t2,n2),u2=l2?a2===r2?(t2-n2)/l2:a2===t2?2+(n2-r2)/l2:4+(r2-t2)/l2:0;return{h:b(60*(u2<0?u2+6:u2)),s:b(a2?l2/a2*100:0),v:b(a2/255*100),a:o2}},S=react__WEBPACK_IMPORTED_MODULE_2__.memo((function(r2){var t2=r2.hue,n2=r2.onChange,o2=g(["react-colorful__hue",r2.className]);return react__WEBPACK_IMPORTED_MODULE_2__.createElement("div",{className:o2},react__WEBPACK_IMPORTED_MODULE_2__.createElement(m,{onMove:function(e2){n2({h:360*e2.left})},onKey:function(e2){n2({h:s(t2+360*e2.left,0,360)})},"aria-label":"Hue","aria-valuenow":b(t2),"aria-valuemax":"360","aria-valuemin":"0"},react__WEBPACK_IMPORTED_MODULE_2__.createElement(p,{className:"react-colorful__hue-pointer",left:t2/360,color:q({h:t2,s:100,v:100,a:1})})))})),T=react__WEBPACK_IMPORTED_MODULE_2__.memo((function(r2){var t2=r2.hsva,n2=r2.onChange,o2={backgroundColor:q({h:t2.h,s:100,v:100,a:1})};return react__WEBPACK_IMPORTED_MODULE_2__.createElement("div",{className:"react-colorful__saturation",style:o2},react__WEBPACK_IMPORTED_MODULE_2__.createElement(m,{onMove:function(e2){n2({s:100*e2.left,v:100-100*e2.top})},onKey:function(e2){n2({s:s(t2.s+100*e2.left,0,100),v:s(t2.v-100*e2.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+b(t2.s)+"%, Brightness "+b(t2.v)+"%"},react__WEBPACK_IMPORTED_MODULE_2__.createElement(p,{className:"react-colorful__saturation-pointer",top:1-t2.v/100,left:t2.s/100,color:q(t2)})))})),F=function(e2,r2){if(e2===r2)return!0;for(var t2 in e2)if(e2[t2]!==r2[t2])return!1;return!0},P=function(e2,r2){return e2.replace(/\s/g,"")===r2.replace(/\s/g,"")};function Y(e2,t2,l2){var u2=i(l2),c2=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)((function(){return e2.toHsva(t2)})),s2=c2[0],f2=c2[1],v2=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)({color:t2,hsva:s2});(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)((function(){if(!e2.equal(t2,v2.current.color)){var r2=e2.toHsva(t2);v2.current={hsva:r2,color:t2},f2(r2)}}),[t2,e2]),(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)((function(){var r2;F(s2,v2.current.hsva)||e2.equal(r2=e2.fromHsva(s2),v2.current.color)||(v2.current={hsva:s2,color:r2},u2(r2))}),[s2,e2,u2]);var d2=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)((function(e3){f2((function(r2){return Object.assign({},r2,e3)}))}),[]);return[s2,d2]}var ColorSpace2,V=typeof window<"u"?react__WEBPACK_IMPORTED_MODULE_2__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_2__.useEffect,J=new Map,Q=function(e2){V((function(){var r2=e2.current?e2.current.ownerDocument:document;if(void 0!==r2&&!J.has(r2)){var t2=r2.createElement("style");t2.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',J.set(r2,t2);var n2=__webpack_require__.nc;n2&&t2.setAttribute("nonce",n2),r2.head.appendChild(t2)}}),[])},U=function(t2){var n2=t2.className,o2=t2.colorModel,a2=t2.color,l2=void 0===a2?o2.defaultColor:a2,i2=t2.onChange,s2=c(t2,["className","colorModel","color","onChange"]),f2=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);Q(f2);var v2=Y(o2,l2,i2),d2=v2[0],h2=v2[1],m2=g(["react-colorful",n2]);return react__WEBPACK_IMPORTED_MODULE_2__.createElement("div",u({},s2,{ref:f2,className:m2}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(T,{hsva:d2,onChange:h2}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(S,{hue:d2.h,onChange:h2,className:"react-colorful__last-control"}))},W={defaultColor:"000",toHsva:function(e2){return L(C(e2))},fromHsva:function(e2){return function(e2){return K(I(e2))}({h:e2.h,s:e2.s,v:e2.v,a:1})},equal:function(e2,r2){return e2.toLowerCase()===r2.toLowerCase()||F(C(e2),C(r2))}},ee=function(r2){var t2=r2.className,n2=r2.hsva,o2=r2.onChange,a2={backgroundImage:"linear-gradient(90deg, "+k(Object.assign({},n2,{a:0}))+", "+k(Object.assign({},n2,{a:1}))+")"},l2=g(["react-colorful__alpha",t2]),u2=b(100*n2.a);return react__WEBPACK_IMPORTED_MODULE_2__.createElement("div",{className:l2},react__WEBPACK_IMPORTED_MODULE_2__.createElement("div",{className:"react-colorful__alpha-gradient",style:a2}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(m,{onMove:function(e2){o2({a:e2.left})},onKey:function(e2){o2({a:s(n2.a+e2.left)})},"aria-label":"Alpha","aria-valuetext":u2+"%","aria-valuenow":u2,"aria-valuemin":"0","aria-valuemax":"100"},react__WEBPACK_IMPORTED_MODULE_2__.createElement(p,{className:"react-colorful__alpha-pointer",left:n2.a,color:k(n2)})))},re=function(t2){var n2=t2.className,o2=t2.colorModel,a2=t2.color,l2=void 0===a2?o2.defaultColor:a2,i2=t2.onChange,s2=c(t2,["className","colorModel","color","onChange"]),f2=(0,react__WEBPACK_IMPORTED_MODULE_2__.useRef)(null);Q(f2);var v2=Y(o2,l2,i2),d2=v2[0],h2=v2[1],m2=g(["react-colorful",n2]);return react__WEBPACK_IMPORTED_MODULE_2__.createElement("div",u({},s2,{ref:f2,className:m2}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(T,{hsva:d2,onChange:h2}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(S,{hue:d2.h,onChange:h2}),react__WEBPACK_IMPORTED_MODULE_2__.createElement(ee,{hsva:d2,onChange:h2,className:"react-colorful__last-control"}))},le={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:function(e2){var r2=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e2);return r2?N({h:E(r2[1],r2[2]),s:Number(r2[3]),l:Number(r2[4]),a:void 0===r2[5]?1:Number(r2[5])/(r2[6]?100:1)}):{h:0,s:0,v:0,a:1}},fromHsva:k,equal:P},Ee={defaultColor:"rgba(0, 0, 0, 1)",toHsva:function(e2){var r2=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e2);return r2?L({r:Number(r2[1])/(r2[2]?100/255:1),g:Number(r2[3])/(r2[4]?100/255:1),b:Number(r2[5])/(r2[6]?100/255:1),a:void 0===r2[7]?1:Number(r2[7])/(r2[8]?100:1)}):{h:0,s:0,v:0,a:1}},fromHsva:function(e2){var r2=I(e2);return"rgba("+r2.r+", "+r2.g+", "+r2.b+", "+r2.a+")"},equal:P},Wrapper=storybook_theming__WEBPACK_IMPORTED_MODULE_5__.I4.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),PickerTooltip=(0,storybook_theming__WEBPACK_IMPORTED_MODULE_5__.I4)(storybook_internal_components__WEBPACK_IMPORTED_MODULE_3__.kR)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),TooltipContent=storybook_theming__WEBPACK_IMPORTED_MODULE_5__.I4.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Note=(0,storybook_theming__WEBPACK_IMPORTED_MODULE_5__.I4)(storybook_internal_components__WEBPACK_IMPORTED_MODULE_3__._)((({theme})=>({fontFamily:theme.typography.fonts.base}))),Swatches=storybook_theming__WEBPACK_IMPORTED_MODULE_5__.I4.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),SwatchColor=storybook_theming__WEBPACK_IMPORTED_MODULE_5__.I4.div((({theme,active})=>({width:16,height:16,boxShadow:active?`${theme.appBorderColor} 0 0 0 1px inset, ${theme.textMutedColor}50 0 0 0 4px`:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:theme.appBorderRadius}))),Swatch=({value,style,...props})=>{let backgroundImage=`linear-gradient(${value}, ${value}), url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>'), linear-gradient(#fff, #fff)`;return react__WEBPACK_IMPORTED_MODULE_2__.createElement(SwatchColor,{...props,style:{...style,backgroundImage}})},Input=(0,storybook_theming__WEBPACK_IMPORTED_MODULE_5__.I4)(storybook_internal_components__WEBPACK_IMPORTED_MODULE_3__.lV.Input)((({theme,readOnly})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:theme.typography.fonts.base}))),ToggleIcon=(0,storybook_theming__WEBPACK_IMPORTED_MODULE_5__.I4)(_storybook_icons__WEBPACK_IMPORTED_MODULE_4__.QDE)((({theme})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:theme.input.color}))),ColorSpace=((ColorSpace2=ColorSpace||{}).RGB="rgb",ColorSpace2.HSL="hsl",ColorSpace2.HEX="hex",ColorSpace2),COLOR_SPACES=Object.values(ColorSpace),COLOR_REGEXP=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,RGB_REGEXP=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,HSL_REGEXP=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,HEX_REGEXP=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,SHORTHEX_REGEXP=/^\s*#?([0-9a-f]{3})\s*$/i,ColorPicker={hex:function(r2){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(U,u({},r2,{colorModel:W}))},rgb:function(r2){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(re,u({},r2,{colorModel:Ee}))},hsl:function(r2){return react__WEBPACK_IMPORTED_MODULE_2__.createElement(re,u({},r2,{colorModel:le}))}},fallbackColor={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},stringToArgs=value=>{let match=value?.match(COLOR_REGEXP);if(!match)return[0,0,0,1];let[,x2,y2,z2,a2=1]=match;return[x2,y2,z2,a2].map(Number)},parseValue=value=>{if(value)return RGB_REGEXP.test(value)?(value=>{let[r2,g2,b2,a2]=stringToArgs(value),[h2,s2,l2]=import_color_convert.default.rgb.hsl([r2,g2,b2])||[0,0,0];return{valid:!0,value,keyword:import_color_convert.default.rgb.keyword([r2,g2,b2]),colorSpace:"rgb",rgb:value,hsl:`hsla(${h2}, ${s2}%, ${l2}%, ${a2})`,hex:`#${import_color_convert.default.rgb.hex([r2,g2,b2]).toLowerCase()}`}})(value):HSL_REGEXP.test(value)?(value=>{let[h2,s2,l2,a2]=stringToArgs(value),[r2,g2,b2]=import_color_convert.default.hsl.rgb([h2,s2,l2])||[0,0,0];return{valid:!0,value,keyword:import_color_convert.default.hsl.keyword([h2,s2,l2]),colorSpace:"hsl",rgb:`rgba(${r2}, ${g2}, ${b2}, ${a2})`,hsl:value,hex:`#${import_color_convert.default.hsl.hex([h2,s2,l2]).toLowerCase()}`}})(value):(value=>{let plain=value.replace("#",""),rgb=import_color_convert.default.keyword.rgb(plain)||import_color_convert.default.hex.rgb(plain),hsl=import_color_convert.default.rgb.hsl(rgb),mapped=value;/[^#a-f0-9]/i.test(value)?mapped=plain:HEX_REGEXP.test(value)&&(mapped=`#${plain}`);let valid=!0;if(mapped.startsWith("#"))valid=HEX_REGEXP.test(mapped);else try{import_color_convert.default.keyword.hex(mapped)}catch{valid=!1}return{valid,value:mapped,keyword:import_color_convert.default.rgb.keyword(rgb),colorSpace:"hex",rgb:`rgba(${rgb[0]}, ${rgb[1]}, ${rgb[2]}, 1)`,hsl:`hsla(${hsl[0]}, ${hsl[1]}%, ${hsl[2]}%, 1)`,hex:mapped}})(value)},useColorInput=(initialValue,onChange)=>{let[value,setValue]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(initialValue||""),[color,setColor]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)((()=>parseValue(value))),[colorSpace,setColorSpace]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(color?.colorSpace||"hex");(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)((()=>{let nextValue=initialValue||"",nextColor=parseValue(nextValue);setValue(nextValue),setColor(nextColor),setColorSpace(nextColor?.colorSpace||"hex")}),[initialValue]);let realValue=(0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)((()=>((value,color,colorSpace)=>{if(!value||!color?.valid)return fallbackColor[colorSpace];if("hex"!==colorSpace)return color?.[colorSpace]||fallbackColor[colorSpace];if(!color.hex.startsWith("#"))try{return`#${import_color_convert.default.keyword.hex(color.hex)}`}catch{return fallbackColor.hex}let short=color.hex.match(SHORTHEX_REGEXP);if(!short)return HEX_REGEXP.test(color.hex)?color.hex:fallbackColor.hex;let[r2,g2,b2]=short[1].split("");return`#${r2}${r2}${g2}${g2}${b2}${b2}`})(value,color,colorSpace).toLowerCase()),[value,color,colorSpace]),updateValue=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)((update=>{let parsed=parseValue(update),v2=parsed?.value||update||"";setValue(v2),""===v2&&(setColor(void 0),onChange(void 0)),parsed&&(setColor(parsed),setColorSpace(parsed.colorSpace),onChange(parsed.value))}),[onChange]),cycleColorSpace=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)((()=>{let nextIndex=(COLOR_SPACES.indexOf(colorSpace)+1)%COLOR_SPACES.length,nextSpace=COLOR_SPACES[nextIndex];setColorSpace(nextSpace);let updatedValue=color?.[nextSpace]||"";setValue(updatedValue),onChange(updatedValue)}),[color,colorSpace,onChange]);return{value,realValue,updateValue,color,colorSpace,cycleColorSpace}},id=value=>value.replace(/\s*/,"").toLowerCase(),ColorControl=({name,value:initialValue,onChange,onFocus,onBlur,presetColors,startOpen=!1,argType})=>{let debouncedOnChange=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)((0,_chunk_SPFYY5GD_mjs__WEBPACK_IMPORTED_MODULE_0__.sg)(onChange,200),[onChange]),{value,realValue,updateValue,color,colorSpace,cycleColorSpace}=useColorInput(initialValue,debouncedOnChange),{presets,addPreset}=((presetColors,currentColor,colorSpace)=>{let[selectedColors,setSelectedColors]=(0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(currentColor?.valid?[currentColor]:[]);(0,react__WEBPACK_IMPORTED_MODULE_2__.useEffect)((()=>{void 0===currentColor&&setSelectedColors([])}),[currentColor]);let presets=(0,react__WEBPACK_IMPORTED_MODULE_2__.useMemo)((()=>(presetColors||[]).map((preset=>"string"==typeof preset?parseValue(preset):preset.title?{...parseValue(preset.color),keyword:preset.title}:parseValue(preset.color))).concat(selectedColors).filter(Boolean).slice(-27)),[presetColors,selectedColors]),addPreset=(0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)((color=>{color?.valid&&(presets.some((preset=>preset&&preset[colorSpace]&&id(preset[colorSpace]||"")===id(color[colorSpace]||"")))||setSelectedColors((arr=>arr.concat(color))))}),[colorSpace,presets]);return{presets,addPreset}})(presetColors??[],color,colorSpace),Picker=ColorPicker[colorSpace],readonly=!!argType?.table?.readonly;return react__WEBPACK_IMPORTED_MODULE_2__.createElement(Wrapper,{"aria-readonly":readonly},react__WEBPACK_IMPORTED_MODULE_2__.createElement(PickerTooltip,{startOpen,trigger:readonly?null:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>color&&addPreset(color),tooltip:react__WEBPACK_IMPORTED_MODULE_2__.createElement(TooltipContent,null,react__WEBPACK_IMPORTED_MODULE_2__.createElement(Picker,{color:"transparent"===realValue?"#000000":realValue,onChange:updateValue,onFocus,onBlur}),presets.length>0&&react__WEBPACK_IMPORTED_MODULE_2__.createElement(Swatches,null,presets.map(((preset,index)=>react__WEBPACK_IMPORTED_MODULE_2__.createElement(storybook_internal_components__WEBPACK_IMPORTED_MODULE_3__.kR,{key:`${preset?.value||index}-${index}`,hasChrome:!1,tooltip:react__WEBPACK_IMPORTED_MODULE_2__.createElement(Note,{note:preset?.keyword||preset?.value||""})},react__WEBPACK_IMPORTED_MODULE_2__.createElement(Swatch,{value:preset?.[colorSpace]||"",active:!!(color&&preset&&preset[colorSpace]&&id(preset[colorSpace]||"")===id(color[colorSpace])),onClick:()=>preset&&updateValue(preset.value||"")}))))))},react__WEBPACK_IMPORTED_MODULE_2__.createElement(Swatch,{value:realValue,style:{margin:4}})),react__WEBPACK_IMPORTED_MODULE_2__.createElement(Input,{id:(0,_chunk_SPFYY5GD_mjs__WEBPACK_IMPORTED_MODULE_0__.ZA)(name),value,onChange:e2=>updateValue(e2.target.value),onFocus:e2=>e2.target.select(),readOnly:readonly,placeholder:"Choose color..."}),value?react__WEBPACK_IMPORTED_MODULE_2__.createElement(ToggleIcon,{onClick:cycleColorSpace}):null)},Color_default=ColorControl}}]); ================================================ FILE: docs/434.8aa01134.iframe.bundle.js ================================================ "use strict";(self.webpackChunkreact_tree_graph=self.webpackChunkreact_tree_graph||[]).push([[434],{"./.storybook/stories/argTypes.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{z:()=>AnimatedTreeArgTypes,c:()=>TreeArgTypes});var backIn=function custom(s){function backIn(t){return(t=+t)*t*(s*(t-1)+t)}return s=+s,backIn.overshoot=custom,backIn}(1.70158),backOut=function custom(s){function backOut(t){return--t*t*((t+1)*s+t)+1}return s=+s,backOut.overshoot=custom,backOut}(1.70158),backInOut=function custom(s){function backInOut(t){return((t*=2)<1?t*t*((s+1)*t-s):(t-=2)*t*((s+1)*t+s)+2)/2}return s=+s,backInOut.overshoot=custom,backInOut}(1.70158),b1=4/11,b2=6/11,b3=8/11,b5=9/11,b6=10/11,b8=21/22,b0=7.5625;function bounceOut(t){return(t=+t)<b1?b0*t*t:t<b3?b0*(t-=b2)*t+.75:t<b6?b0*(t-=b5)*t+.9375:b0*(t-=b8)*t+.984375}function tpmt(x){return 1.0009775171065494*(Math.pow(2,-10*x)-.0009765625)}var tau=2*Math.PI,elasticIn=function custom(a,p){var s=Math.asin(1/(a=Math.max(1,a)))*(p/=tau);function elasticIn(t){return a*tpmt(- --t)*Math.sin((s-t)/p)}return elasticIn.amplitude=function(a){return custom(a,p*tau)},elasticIn.period=function(p){return custom(a,p)},elasticIn}(1,.3),elasticOut=function custom(a,p){var s=Math.asin(1/(a=Math.max(1,a)))*(p/=tau);function elasticOut(t){return 1-a*tpmt(t=+t)*Math.sin((t+s)/p)}return elasticOut.amplitude=function(a){return custom(a,p*tau)},elasticOut.period=function(p){return custom(a,p)},elasticOut}(1,.3),elasticInOut=function custom(a,p){var s=Math.asin(1/(a=Math.max(1,a)))*(p/=tau);function elasticInOut(t){return((t=2*t-1)<0?a*tpmt(-t)*Math.sin((s-t)/p):2-a*tpmt(t)*Math.sin((s+t)/p))/2}return elasticInOut.amplitude=function(a){return custom(a,p*tau)},elasticInOut.period=function(p){return custom(a,p)},elasticInOut}(1,.3);var polyIn=function custom(e){function polyIn(t){return Math.pow(t,e)}return e=+e,polyIn.exponent=custom,polyIn}(3),polyOut=function custom(e){function polyOut(t){return 1-Math.pow(1-t,e)}return e=+e,polyOut.exponent=custom,polyOut}(3),polyInOut=function custom(e){function polyInOut(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,polyInOut.exponent=custom,polyInOut}(3),quad=__webpack_require__("./node_modules/d3-ease/src/quad.js"),pi=Math.PI,halfPi=pi/2;const categories_animation="Animation",categories_data="Data",categories_properties="SVG Properties",categories_rendering="Tree Rendering",TreeArgTypes={data:{table:{category:categories_data},type:{name:"object",required:!0},description:"The data to be rendered as a tree. Must be in a format accepted by d3.hierarchy."},getChildren:{control:{disable:!0},table:{category:categories_data,defaultValue:{summary:"node => node.children"}},description:"A function that returns the children for a node, or null/undefined if no children exist."},direction:{options:["ltr","rtl"],table:{category:categories_rendering,defaultValue:{summary:"ltr"}},type:{name:"string"},description:"The direction of the tree, left-to-right or right-to-left."},keyProp:{table:{category:categories_data,defaultValue:{summary:"name"}},type:{name:"string"},description:"The property on each node to use as a key."},labelProp:{table:{category:categories_data,defaultValue:{summary:"name"}},type:{name:"string"},description:"The property on each node to render as a label."},height:{table:{category:categories_rendering},type:{name:"number",required:!0},description:"The height of the rendered tree, including margins."},width:{table:{category:categories_rendering},type:{name:"number",required:!0},description:"The width of the rendered tree, including margins."},margins:{table:{category:categories_rendering,defaultValue:{summary:"{ bottom: 10, left: 20, right: 150, top: 10 }"}},type:{name:"object"},description:"The margins around the content. The right margin should be larger to include the rendered label text."},children:{table:{category:categories_rendering},control:{disable:!0},description:"Will be rendered as children of the SVG, before the links and nodes."},nodeShape:{options:["circle","image","polygon","rect"],table:{category:categories_rendering,defaultValue:{summary:"circle"}},type:{name:"select"},description:"The shape of the node icons. Additional nodeProps must be specifed for polygon and rect."},pathFunc:{control:{disable:!0},table:{category:categories_rendering,defaultValue:{summary:"function(x1,y1,x2,y2)"}},description:"Function to calculate the co-ordinates of the path between nodes."},gProps:{table:{category:categories_properties,defaultValue:{summary:"{ className: 'node' }"}},type:{name:"object"},description:"Props to be added to the `<g>` element. The default className will still be applied if a className property is not set."},nodeProps:{table:{category:categories_properties},type:{name:"object"},description:"Props to be added to the `<circle>`, `<image>`, `<polygon>` or `<rect>` element. These will take priority over the default r added to circle and height, width, x and y added to image and rect."},pathProps:{table:{category:categories_properties,defaultValue:{summary:"{ className: 'link' }"}},type:{name:"object"},description:"Props to be added to the `<path>` element. The default className will still be applied if a className property is not set."},svgProps:{table:{category:categories_properties},type:{name:"object"},description:"Props to be added to the `<svg>` element."},textProps:{table:{category:categories_properties},type:{name:"object"},description:"Props to be added to the `<text>` element."}},AnimatedTreeArgTypes={duration:{table:{category:categories_animation,defaultValue:{summary:500}},type:{name:"number"},description:"The duration in milliseconds of animations."},easing:{mapping:{easeBack:backInOut,easeBackIn:backIn,easeBackOut:backOut,easeBounce:bounceOut,easeBounceIn:function bounceIn(t){return 1-bounceOut(1-t)},easeBounceInOut:function bounceInOut(t){return((t*=2)<=1?1-bounceOut(1-t):bounceOut(t-1)+1)/2},easeCircle:function circleInOut(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2},easeCircleIn:function circleIn(t){return 1-Math.sqrt(1-t*t)},easeCircleOut:function circleOut(t){return Math.sqrt(1- --t*t)},easeCubic:function cubicInOut(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2},easeCubicIn:function cubicIn(t){return t*t*t},easeCubicOut:function cubicOut(t){return--t*t*t+1},easeElastic:elasticOut,easeElasticIn:elasticIn,easeElasticInOut:elasticInOut,easeExp:function expInOut(t){return((t*=2)<=1?tpmt(1-t):2-tpmt(t-1))/2},easeExpIn:function expIn(t){return tpmt(1-+t)},easeExpOut:function expOut(t){return 1-tpmt(t)},easeLinear:t=>+t,easePoly:polyInOut,easePolyIn:polyIn,easePolyOut:polyOut,easeQuad:quad.T_,easeQuadIn:quad.bl,easeQuadOut:quad.yv,easeSin:function sinInOut(t){return(1-Math.cos(pi*t))/2},easeSinIn:function sinIn(t){return 1==+t?1:1-Math.cos(t*halfPi)},easeSinOut:function sinOut(t){return Math.sin(t*halfPi)}},options:["easeBack","easeBackIn","easeBackOut","easeBounce","easeBounceIn","easeBounceInOut","easeCircle","easeCircleIn","easeCircleOut","easeCubic","easeCubicIn","easeCubicOut","easeElastic","easeElasticIn","easeElasticInOut","easeExp","easeExpIn","easeExpOut","easeLinear","easePoly","easePolyIn","easePolyOut","easeQuad","easeQuadIn","easeQuadOut","easeSin","easeSinIn","easeSinOut"],table:{category:categories_animation,defaultValue:{summary:"easeQuadOut"}},type:{name:"select"},description:"The easing function for animations. Takes in a number between 0 and 1 and returns a number between 0 and 1. The options here are all from the d3-ease library."},steps:{table:{category:categories_animation,defaultValue:{summary:20}},type:{name:"number"},description:"The number of steps in animations. A higher number will result in a smoother animation, but too high will cause performance issues."},...TreeArgTypes}},"./node_modules/d3-ease/src/quad.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function quadIn(t){return t*t}function quadOut(t){return t*(2-t)}function quadInOut(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}__webpack_require__.d(__webpack_exports__,{T_:()=>quadInOut,bl:()=>quadIn,yv:()=>quadOut})},"./src/components/container.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>Container});var react=__webpack_require__("./node_modules/react/index.js");const regex=/on[A-Z]/;function wrapHandlers(props,...args){const wrappedHandlers=Object.keys(props).filter((propName=>regex.test(propName)&&"function"==typeof props[propName])).reduce(((acc,handler)=>(acc[handler]=function wrapper(func,args){return event=>func(event,...args)}(props[handler],args),acc)),{});return{...props,...wrappedHandlers}}function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}function diagonal(x1,y1,x2,y2){return`M${x1},${y1}C${(x1+x2)/2},${y1} ${(x1+x2)/2},${y2} ${x2},${y2}`}function Link(props){const wrappedProps=wrapHandlers(props.pathProps,props.source.data[props.keyProp],props.target.data[props.keyProp]),d=(props.pathFunc||diagonal)(props.x1,props.y1,props.x2,props.y2);return react.createElement("path",_extends({},wrappedProps,{d}))}function node_extends(){return node_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},node_extends.apply(null,arguments)}function Node(props){let offset=.5,nodePropsWithDefaults=props.nodeProps;switch(props.shape){case"circle":nodePropsWithDefaults={r:5,...nodePropsWithDefaults},offset+=nodePropsWithDefaults.r;break;case"image":case"rect":nodePropsWithDefaults={height:10,width:10,...nodePropsWithDefaults},nodePropsWithDefaults={x:-nodePropsWithDefaults.width/2,y:-nodePropsWithDefaults.height/2,...nodePropsWithDefaults},offset+=nodePropsWithDefaults.width/2}"rtl"===props.direction&&(offset=-offset);const wrappedNodeProps=wrapHandlers(nodePropsWithDefaults,props[props.keyProp]),wrappedGProps=wrapHandlers(props.gProps,props[props.keyProp]),wrappedTextProps=wrapHandlers(props.textProps,props[props.keyProp]),label="string"==typeof props[props.labelProp]?react.createElement("text",node_extends({dx:offset,dy:5},wrappedTextProps),props[props.labelProp]):react.createElement("g",node_extends({transform:`translate(${offset}, 5)`},wrappedTextProps),props[props.labelProp]);return react.createElement("g",node_extends({},wrappedGProps,{transform:function getTransform(){return`translate(${props.x}, ${props.y})`}(),direction:"rtl"===props.direction?"rtl":null}),react.createElement(props.shape,wrappedNodeProps),label)}function container_extends(){return container_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},container_extends.apply(null,arguments)}function Container(props){return react.createElement("svg",container_extends({},props.svgProps,{height:props.height,width:props.width}),props.children,react.createElement("g",{transform:`translate(${props.margins.left}, ${props.margins.top})`},props.links.map((link=>react.createElement(Link,{key:link.target.data[props.keyProp],keyProp:props.keyProp,pathFunc:props.pathFunc,source:link.source,target:link.target,x1:link.source.x,x2:link.target.x,y1:link.source.y,y2:link.target.y,pathProps:{...props.pathProps,...link.target.data.pathProps}}))),props.nodes.map((node=>react.createElement(Node,container_extends({key:node.data[props.keyProp],keyProp:props.keyProp,labelProp:props.labelProp,direction:props.direction,shape:props.nodeShape,x:node.x,y:node.y},node.data,{nodeProps:{...props.nodeProps,...node.data.nodeProps},gProps:{...props.gProps,...node.data.gProps},textProps:{...props.textProps,...node.data.textProps}}))))))}Link.__docgenInfo={description:"",methods:[],displayName:"Link"},Node.__docgenInfo={description:"",methods:[],displayName:"Node"},Container.__docgenInfo={description:"",methods:[],displayName:"Container"}},"./src/d3.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function count(node){var sum=0,children=node.children,i=children&&children.length;if(i)for(;--i>=0;)sum+=children[i].value;else sum=1;node.value=sum}function hierarchy(data,children){data instanceof Map?(data=[void 0,data],void 0===children&&(children=mapChildren)):void 0===children&&(children=objectChildren);for(var node,child,childs,i,n,root=new Node(data),nodes=[root];node=nodes.pop();)if((childs=children(node.data))&&(n=(childs=Array.from(childs)).length))for(node.children=childs,i=n-1;i>=0;--i)nodes.push(child=childs[i]=new Node(childs[i])),child.parent=node,child.depth=node.depth+1;return root.eachBefore(computeHeight)}function objectChildren(d){return d.children}function mapChildren(d){return Array.isArray(d)?d[1]:null}function copyData(node){void 0!==node.data.value&&(node.value=node.data.value),node.data=node.data.data}function computeHeight(node){var height=0;do{node.height=height}while((node=node.parent)&&node.height<++height)}function Node(data){this.data=data,this.depth=this.height=0,this.parent=null}function defaultSeparation(a,b){return a.parent===b.parent?1:2}function nextLeft(v){var children=v.children;return children?children[0]:v.t}function nextRight(v){var children=v.children;return children?children[children.length-1]:v.t}function moveSubtree(wm,wp,shift){var change=shift/(wp.i-wm.i);wp.c-=change,wp.s+=shift,wm.c+=change,wp.z+=shift,wp.m+=shift}function nextAncestor(vim,v,ancestor){return vim.a.parent===v.parent?vim.a:ancestor}function TreeNode(node,i){this._=node,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=i}function tree(){var separation=defaultSeparation,dx=1,dy=1,nodeSize=null;function tree(root){var t=function treeRoot(root){for(var node,child,children,i,n,tree=new TreeNode(root,0),nodes=[tree];node=nodes.pop();)if(children=node._.children)for(node.children=new Array(n=children.length),i=n-1;i>=0;--i)nodes.push(child=node.children[i]=new TreeNode(children[i],i)),child.parent=node;return(tree.parent=new TreeNode(null,0)).children=[tree],tree}(root);if(t.eachAfter(firstWalk),t.parent.m=-t.z,t.eachBefore(secondWalk),nodeSize)root.eachBefore(sizeNode);else{var left=root,right=root,bottom=root;root.eachBefore((function(node){node.x<left.x&&(left=node),node.x>right.x&&(right=node),node.depth>bottom.depth&&(bottom=node)}));var s=left===right?1:separation(left,right)/2,tx=s-left.x,kx=dx/(right.x+s+tx),ky=dy/(bottom.depth||1);root.eachBefore((function(node){node.x=(node.x+tx)*kx,node.y=node.depth*ky}))}return root}function firstWalk(v){var children=v.children,siblings=v.parent.children,w=v.i?siblings[v.i-1]:null;if(children){!function executeShifts(v){for(var w,shift=0,change=0,children=v.children,i=children.length;--i>=0;)(w=children[i]).z+=shift,w.m+=shift,shift+=w.s+(change+=w.c)}(v);var midpoint=(children[0].z+children[children.length-1].z)/2;w?(v.z=w.z+separation(v._,w._),v.m=v.z-midpoint):v.z=midpoint}else w&&(v.z=w.z+separation(v._,w._));v.parent.A=function apportion(v,w,ancestor){if(w){for(var shift,vip=v,vop=v,vim=w,vom=vip.parent.children[0],sip=vip.m,sop=vop.m,sim=vim.m,som=vom.m;vim=nextRight(vim),vip=nextLeft(vip),vim&&vip;)vom=nextLeft(vom),(vop=nextRight(vop)).a=v,(shift=vim.z+sim-vip.z-sip+separation(vim._,vip._))>0&&(moveSubtree(nextAncestor(vim,v,ancestor),v,shift),sip+=shift,sop+=shift),sim+=vim.m,sip+=vip.m,som+=vom.m,sop+=vop.m;vim&&!nextRight(vop)&&(vop.t=vim,vop.m+=sim-sop),vip&&!nextLeft(vom)&&(vom.t=vip,vom.m+=sip-som,ancestor=v)}return ancestor}(v,w,v.parent.A||siblings[0])}function secondWalk(v){v._.x=v.z+v.parent.m,v.m+=v.parent.m}function sizeNode(node){node.x*=dx,node.y=node.depth*dy}return tree.separation=function(x){return arguments.length?(separation=x,tree):separation},tree.size=function(x){return arguments.length?(nodeSize=!1,dx=+x[0],dy=+x[1],tree):nodeSize?null:[dx,dy]},tree.nodeSize=function(x){return arguments.length?(nodeSize=!0,dx=+x[0],dy=+x[1],tree):nodeSize?[dx,dy]:null},tree}function getTreeData(props){const margins=props.margins||{bottom:10,left:"rtl"!==props.direction?20:150,right:"rtl"!==props.direction?150:20,top:10},contentWidth=props.width-margins.left-margins.right,contentHeight=props.height-margins.top-margins.bottom,data=hierarchy(props.data,props.getChildren),root=tree().size([contentHeight,contentWidth])(data);return{links:root.links().map((link=>({...link,source:{...link.source,x:"rtl"!==props.direction?link.source.y:contentWidth-link.source.y,y:link.source.x},target:{...link.target,x:"rtl"!==props.direction?link.target.y:contentWidth-link.target.y,y:link.target.x}}))),margins,nodes:root.descendants().map((node=>({...node,x:"rtl"!==props.direction?node.y:contentWidth-node.y,y:node.x})))}}__webpack_require__.d(__webpack_exports__,{A:()=>getTreeData}),Node.prototype=hierarchy.prototype={constructor:Node,count:function hierarchy_count(){return this.eachAfter(count)},each:function each(callback,that){let index=-1;for(const node of this)callback.call(that,node,++index,this);return this},eachAfter:function eachAfter(callback,that){for(var children,i,n,node=this,nodes=[node],next=[],index=-1;node=nodes.pop();)if(next.push(node),children=node.children)for(i=0,n=children.length;i<n;++i)nodes.push(children[i]);for(;node=next.pop();)callback.call(that,node,++index,this);return this},eachBefore:function eachBefore(callback,that){for(var children,i,node=this,nodes=[node],index=-1;node=nodes.pop();)if(callback.call(that,node,++index,this),children=node.children)for(i=children.length-1;i>=0;--i)nodes.push(children[i]);return this},find:function find(callback,that){let index=-1;for(const node of this)if(callback.call(that,node,++index,this))return node},sum:function sum(value){return this.eachAfter((function(node){for(var sum=+value(node.data)||0,children=node.children,i=children&&children.length;--i>=0;)sum+=children[i].value;node.value=sum}))},sort:function sort(compare){return this.eachBefore((function(node){node.children&&node.children.sort(compare)}))},path:function path(end){for(var start=this,ancestor=function leastCommonAncestor(a,b){if(a===b)return a;var aNodes=a.ancestors(),bNodes=b.ancestors(),c=null;a=aNodes.pop(),b=bNodes.pop();for(;a===b;)c=a,a=aNodes.pop(),b=bNodes.pop();return c}(start,end),nodes=[start];start!==ancestor;)start=start.parent,nodes.push(start);for(var k=nodes.length;end!==ancestor;)nodes.splice(k,0,end),end=end.parent;return nodes},ancestors:function ancestors(){for(var node=this,nodes=[node];node=node.parent;)nodes.push(node);return nodes},descendants:function descendants(){return Array.from(this)},leaves:function leaves(){var leaves=[];return this.eachBefore((function(node){node.children||leaves.push(node)})),leaves},links:function links(){var root=this,links=[];return root.each((function(node){node!==root&&links.push({source:node.parent,target:node})})),links},copy:function node_copy(){return hierarchy(this).eachBefore(copyData)},[Symbol.iterator]:function*iterator(){var current,children,i,n,node=this,next=[node];do{for(current=next.reverse(),next=[];node=current.pop();)if(yield node,children=node.children)for(i=0,n=children.length;i<n;++i)next.push(children[i])}while(next.length)}},TreeNode.prototype=Object.create(Node.prototype)}}]); ================================================ FILE: docs/688.1553505b.iframe.bundle.js ================================================ /*! For license information please see 688.1553505b.iframe.bundle.js.LICENSE.txt */ "use strict";(self.webpackChunkreact_tree_graph=self.webpackChunkreact_tree_graph||[]).push([[688],{"./node_modules/@storybook/addon-docs/dist/blocks.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{zE:()=>AnchorMdx,XA:()=>CodeOrSourceMdx,H2:()=>Controls3,VY:()=>DescriptionContainer,kQ:()=>Docs,Sw:()=>HeadersMdx,W8:()=>Meta,Tn:()=>Primary,om:()=>Stories,Pd:()=>Subtitle2,hE:()=>Title3});var chunk_SPFYY5GD=__webpack_require__("./node_modules/@storybook/addon-docs/dist/chunk-SPFYY5GD.mjs"),chunk_QUZPS4B6=__webpack_require__("./node_modules/@storybook/addon-docs/dist/chunk-QUZPS4B6.mjs"),react=__webpack_require__("./node_modules/react/index.js"),external_STORYBOOK_MODULE_CLIENT_LOGGER_=__webpack_require__("storybook/internal/client-logger"),components=__webpack_require__("./node_modules/storybook/dist/components/index.js"),csf=__webpack_require__("./node_modules/storybook/dist/csf/index.js"),dist=__webpack_require__("./node_modules/@storybook/icons/dist/index.mjs"),theming=__webpack_require__("./node_modules/storybook/dist/theming/index.js"),external_STORYBOOK_MODULE_CORE_EVENTS_=__webpack_require__("storybook/internal/core-events"),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("storybook/preview-api"),docs_tools=__webpack_require__("./node_modules/storybook/dist/docs-tools/index.js");function dedent(templ){for(var values=[],_i=1;_i<arguments.length;_i++)values[_i-1]=arguments[_i];var strings=Array.from("string"==typeof templ?[templ]:templ);strings[strings.length-1]=strings[strings.length-1].replace(/\r?\n([\t ]*)$/,"");var indentLengths=strings.reduce((function(arr,str){var matches=str.match(/\n([\t ]+|(?!\s).)/g);return matches?arr.concat(matches.map((function(match){var _a,_b;return null!==(_b=null===(_a=match.match(/[\t ]/g))||void 0===_a?void 0:_a.length)&&void 0!==_b?_b:0}))):arr}),[]);if(indentLengths.length){var pattern_1=new RegExp("\n[\t ]{"+Math.min.apply(Math,indentLengths)+"}","g");strings=strings.map((function(str){return str.replace(pattern_1,"\n")}))}strings[0]=strings[0].replace(/^\r?\n/,"");var string=strings[0];return values.forEach((function(value,i){var endentations=string.match(/(?:^|\n)( *)$/),endentation=endentations?endentations[1]:"",indentedValue=value;"string"==typeof value&&value.includes("\n")&&(indentedValue=String(value).split("\n").map((function(str,i){return 0===i?str:""+endentation+str})).join("\n")),string+=indentedValue+strings[i+1]})),string}var external_STORYBOOK_MODULE_CHANNELS_=__webpack_require__("storybook/internal/channels"),require_memoizerific=(0,chunk_QUZPS4B6.P$)({"../../node_modules/memoizerific/memoizerific.js"(exports,module){!function(f2){if("object"==typeof exports&&typeof module<"u")module.exports=f2();else if("function"==typeof define&&__webpack_require__.amdO)define([],f2);else{(typeof window<"u"?window:typeof __webpack_require__.g<"u"?__webpack_require__.g:typeof self<"u"?self:this).memoizerific=f2()}}((function(){return function e2(t2,n2,r2){function s2(o3,u2){if(!n2[o3]){if(!t2[o3]){var a2="function"==typeof chunk_QUZPS4B6.ki&&chunk_QUZPS4B6.ki;if(!u2&&a2)return a2(o3,!0);if(i2)return i2(o3,!0);var f2=new Error("Cannot find module '"+o3+"'");throw f2.code="MODULE_NOT_FOUND",f2}var l2=n2[o3]={exports:{}};t2[o3][0].call(l2.exports,(function(e3){return s2(t2[o3][1][e3]||e3)}),l2,l2.exports,e2,t2,n2,r2)}return n2[o3].exports}for(var i2="function"==typeof chunk_QUZPS4B6.ki&&chunk_QUZPS4B6.ki,o2=0;o2<r2.length;o2++)s2(r2[o2]);return s2}({1:[function(_dereq_,module3,exports3){module3.exports=function(forceSimilar){return"function"!=typeof Map||forceSimilar?new(_dereq_("./similar")):new Map}},{"./similar":2}],2:[function(_dereq_,module3,exports3){function Similar(){return this.list=[],this.lastItem=void 0,this.size=0,this}Similar.prototype.get=function(key){var index;return this.lastItem&&this.isEqual(this.lastItem.key,key)?this.lastItem.val:(index=this.indexOf(key))>=0?(this.lastItem=this.list[index],this.list[index].val):void 0},Similar.prototype.set=function(key,val){var index;return this.lastItem&&this.isEqual(this.lastItem.key,key)?(this.lastItem.val=val,this):(index=this.indexOf(key))>=0?(this.lastItem=this.list[index],this.list[index].val=val,this):(this.lastItem={key,val},this.list.push(this.lastItem),this.size++,this)},Similar.prototype.delete=function(key){var index;if(this.lastItem&&this.isEqual(this.lastItem.key,key)&&(this.lastItem=void 0),(index=this.indexOf(key))>=0)return this.size--,this.list.splice(index,1)[0]},Similar.prototype.has=function(key){var index;return!(!this.lastItem||!this.isEqual(this.lastItem.key,key))||(index=this.indexOf(key))>=0&&(this.lastItem=this.list[index],!0)},Similar.prototype.forEach=function(callback,thisArg){var i2;for(i2=0;i2<this.size;i2++)callback.call(thisArg||this,this.list[i2].val,this.list[i2].key,this)},Similar.prototype.indexOf=function(key){var i2;for(i2=0;i2<this.size;i2++)if(this.isEqual(this.list[i2].key,key))return i2;return-1},Similar.prototype.isEqual=function(val1,val2){return val1===val2||val1!=val1&&val2!=val2},module3.exports=Similar},{}],3:[function(_dereq_,module3,exports3){var MapOrSimilar=_dereq_("map-or-similar");function isEqual(val1,val2){return val1===val2||val1!=val1&&val2!=val2}module3.exports=function(limit){var cache=new MapOrSimilar(!1),lru=[];return function(fn){var memoizerific=function(){var newMap,fnResult,i2,currentCache=cache,argsLengthMinusOne=arguments.length-1,lruPath=Array(argsLengthMinusOne+1),isMemoized=!0;if((memoizerific.numArgs||0===memoizerific.numArgs)&&memoizerific.numArgs!==argsLengthMinusOne+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(i2=0;i2<argsLengthMinusOne;i2++)lruPath[i2]={cacheItem:currentCache,arg:arguments[i2]},currentCache.has(arguments[i2])?currentCache=currentCache.get(arguments[i2]):(isMemoized=!1,newMap=new MapOrSimilar(!1),currentCache.set(arguments[i2],newMap),currentCache=newMap);return isMemoized&&(currentCache.has(arguments[argsLengthMinusOne])?fnResult=currentCache.get(arguments[argsLengthMinusOne]):isMemoized=!1),isMemoized||(fnResult=fn.apply(null,arguments),currentCache.set(arguments[argsLengthMinusOne],fnResult)),limit>0&&(lruPath[argsLengthMinusOne]={cacheItem:currentCache,arg:arguments[argsLengthMinusOne]},isMemoized?function moveToMostRecentLru(lru,lruPath){var isMatch,i2,ii,lruLen=lru.length,lruPathLen=lruPath.length;for(i2=0;i2<lruLen;i2++){for(isMatch=!0,ii=0;ii<lruPathLen;ii++)if(!isEqual(lru[i2][ii].arg,lruPath[ii].arg)){isMatch=!1;break}if(isMatch)break}lru.push(lru.splice(i2,1)[0])}(lru,lruPath):lru.push(lruPath),lru.length>limit&&function removeCachedResult(removedLru){var tmp,i2,removedLruLen=removedLru.length,currentLru=removedLru[removedLruLen-1];for(currentLru.cacheItem.delete(currentLru.arg),i2=removedLruLen-2;i2>=0&&(currentLru=removedLru[i2],!(tmp=currentLru.cacheItem.get(currentLru.arg))||!tmp.size);i2--)currentLru.cacheItem.delete(currentLru.arg)}(lru.shift())),memoizerific.wasMemoized=isMemoized,memoizerific.numArgs=argsLengthMinusOne+1,fnResult};return memoizerific.limit=limit,memoizerific.wasMemoized=!1,memoizerific.cache=cache,memoizerific.lru=lru,memoizerific}}},{"map-or-similar":1}]},{},[3])(3)}))}});function _extends(){return _extends=Object.assign?Object.assign.bind():function(n2){for(var e2=1;e2<arguments.length;e2++){var t2=arguments[e2];for(var r2 in t2)({}).hasOwnProperty.call(t2,r2)&&(n2[r2]=t2[r2])}return n2},_extends.apply(null,arguments)}function _setPrototypeOf(t2,e2){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t3,e3){return t3.__proto__=e3,t3})(t2,e2)}function _getPrototypeOf(t2){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t3){return t3.__proto__||Object.getPrototypeOf(t3)})(t2)}function _isNativeReflectConstruct(){try{var t2=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(_isNativeReflectConstruct=function(){return!!t2})()}function _wrapNativeSuper(t2){var r2="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(t3){if(null===t3||!function _isNativeFunction(t2){try{return-1!==Function.toString.call(t2).indexOf("[native code]")}catch{return"function"==typeof t2}}(t3))return t3;if("function"!=typeof t3)throw new TypeError("Super expression must either be null or a function");if(void 0!==r2){if(r2.has(t3))return r2.get(t3);r2.set(t3,Wrapper11)}function Wrapper11(){return function _construct(t2,e2,r2){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o2=[null];o2.push.apply(o2,e2);var p2=new(t2.bind.apply(t2,o2));return r2&&_setPrototypeOf(p2,r2.prototype),p2}(t3,arguments,_getPrototypeOf(this).constructor)}return Wrapper11.prototype=Object.create(t3.prototype,{constructor:{value:Wrapper11,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper11,t3)},_wrapNativeSuper(t2)}var ERRORS={1:"Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n",2:"Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n",3:"Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",4:"Couldn't generate valid rgb string from %s, it returned %s.\n\n",5:"Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n",6:"Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\n\n",7:"Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\n\n",8:"Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n",9:"Please provide a number of steps to the modularScale helper.\n\n",10:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",11:'Invalid value passed as base to modularScale, expected number or em string but got "%s"\n\n',12:'Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.\n\n',13:'Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.\n\n',14:'Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',15:'Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',16:"You must provide a template to this method.\n\n",17:"You passed an unsupported selector state to this method.\n\n",18:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",19:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",20:"expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:"fontFace expects a name of a font-family.\n\n",24:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",25:"fontFace expects localFonts to be an array.\n\n",26:"fontFace expects fileFormats to be an array.\n\n",27:"radialGradient requries at least 2 color-stops to properly render.\n\n",28:"Please supply a filename to retinaImage() as the first argument.\n\n",29:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n",32:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n",33:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n",34:"borderRadius expects a radius value as a string or number as the second argument.\n\n",35:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',36:"Property must be a string value.\n\n",37:"Syntax Error at %s.\n\n",38:"Formula contains a function that needs parentheses at %s.\n\n",39:"Formula is missing closing parenthesis at %s.\n\n",40:"Formula has too many closing parentheses at %s.\n\n",41:"All values in a formula must have the same unit or be unitless.\n\n",42:"Please provide a number of steps to the modularScale helper.\n\n",43:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",44:"Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n",45:"Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n",46:"Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n",47:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",48:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",49:"Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",50:"Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n",51:"Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n",52:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",53:"fontFace expects localFonts to be an array.\n\n",54:"fontFace expects fileFormats to be an array.\n\n",55:"fontFace expects a name of a font-family.\n\n",56:"linearGradient requries at least 2 color-stops to properly render.\n\n",57:"radialGradient requries at least 2 color-stops to properly render.\n\n",58:"Please supply a filename to retinaImage() as the first argument.\n\n",59:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:"Property must be a string value.\n\n",62:"borderRadius expects a radius value as a string or number as the second argument.\n\n",63:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',64:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n",65:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\n\n",66:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n",67:"You must provide a template to this method.\n\n",68:"You passed an unsupported selector state to this method.\n\n",69:'Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.\n\n',70:'Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.\n\n',71:'Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.\n\n',72:'Passed invalid base value %s to %s(), please pass a value like "12px" or 12.\n\n',73:"Please provide a valid CSS variable.\n\n",74:"CSS variable not found and no default was provided.\n\n",75:"important requires a valid style object, got a %s instead.\n\n",76:"fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n\n",77:'remToPx expects a value in "rem" but you provided it in "%s".\n\n',78:'base must be set in "px" or "%" but you set it in "%s".\n'};function format(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];var c2,a2=args[0],b2=[];for(c2=1;c2<args.length;c2+=1)b2.push(args[c2]);return b2.forEach((function(d2){a2=a2.replace(/%[a-z]/,d2)})),a2}var PolishedError=function(_Error){function PolishedError2(code){for(var _len2=arguments.length,args=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)args[_key2-1]=arguments[_key2];return function _assertThisInitialized(e2){if(void 0===e2)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e2}(_Error.call(this,format.apply(void 0,[ERRORS[code]].concat(args)))||this)}return function _inheritsLoose(t2,o2){t2.prototype=Object.create(o2.prototype),t2.prototype.constructor=t2,_setPrototypeOf(t2,o2)}(PolishedError2,_Error),PolishedError2}(_wrapNativeSuper(Error));function colorToInt(color){return Math.round(255*color)}function convertToInt(red,green,blue){return colorToInt(red)+","+colorToInt(green)+","+colorToInt(blue)}function hslToRgb(hue,saturation,lightness,convert2){if(void 0===convert2&&(convert2=convertToInt),0===saturation)return convert2(lightness,lightness,lightness);var huePrime=(hue%360+360)%360/60,chroma=(1-Math.abs(2*lightness-1))*saturation,secondComponent=chroma*(1-Math.abs(huePrime%2-1)),red=0,green=0,blue=0;huePrime>=0&&huePrime<1?(red=chroma,green=secondComponent):huePrime>=1&&huePrime<2?(red=secondComponent,green=chroma):huePrime>=2&&huePrime<3?(green=chroma,blue=secondComponent):huePrime>=3&&huePrime<4?(green=secondComponent,blue=chroma):huePrime>=4&&huePrime<5?(red=secondComponent,blue=chroma):huePrime>=5&&huePrime<6&&(red=chroma,blue=secondComponent);var lightnessModification=lightness-chroma/2;return convert2(red+lightnessModification,green+lightnessModification,blue+lightnessModification)}var namedColorMap={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var hexRegex=/^#[a-fA-F0-9]{6}$/,hexRgbaRegex=/^#[a-fA-F0-9]{8}$/,reducedHexRegex=/^#[a-fA-F0-9]{3}$/,reducedRgbaHexRegex=/^#[a-fA-F0-9]{4}$/,rgbRegex=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,rgbaRegex=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,hslRegex=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,hslaRegex=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function parseToRgb(color){if("string"!=typeof color)throw new PolishedError(3);var normalizedColor=function nameToHex(color){if("string"!=typeof color)return color;var normalizedColorName=color.toLowerCase();return namedColorMap[normalizedColorName]?"#"+namedColorMap[normalizedColorName]:color}(color);if(normalizedColor.match(hexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16)};if(normalizedColor.match(hexRgbaRegex)){var alpha=parseFloat((parseInt(""+normalizedColor[7]+normalizedColor[8],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[2],16),green:parseInt(""+normalizedColor[3]+normalizedColor[4],16),blue:parseInt(""+normalizedColor[5]+normalizedColor[6],16),alpha}}if(normalizedColor.match(reducedHexRegex))return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16)};if(normalizedColor.match(reducedRgbaHexRegex)){var _alpha=parseFloat((parseInt(""+normalizedColor[4]+normalizedColor[4],16)/255).toFixed(2));return{red:parseInt(""+normalizedColor[1]+normalizedColor[1],16),green:parseInt(""+normalizedColor[2]+normalizedColor[2],16),blue:parseInt(""+normalizedColor[3]+normalizedColor[3],16),alpha:_alpha}}var rgbMatched=rgbRegex.exec(normalizedColor);if(rgbMatched)return{red:parseInt(""+rgbMatched[1],10),green:parseInt(""+rgbMatched[2],10),blue:parseInt(""+rgbMatched[3],10)};var rgbaMatched=rgbaRegex.exec(normalizedColor.substring(0,50));if(rgbaMatched)return{red:parseInt(""+rgbaMatched[1],10),green:parseInt(""+rgbaMatched[2],10),blue:parseInt(""+rgbaMatched[3],10),alpha:parseFloat(""+rgbaMatched[4])>1?parseFloat(""+rgbaMatched[4])/100:parseFloat(""+rgbaMatched[4])};var hslMatched=hslRegex.exec(normalizedColor);if(hslMatched){var rgbColorString="rgb("+hslToRgb(parseInt(""+hslMatched[1],10),parseInt(""+hslMatched[2],10)/100,parseInt(""+hslMatched[3],10)/100)+")",hslRgbMatched=rgbRegex.exec(rgbColorString);if(!hslRgbMatched)throw new PolishedError(4,normalizedColor,rgbColorString);return{red:parseInt(""+hslRgbMatched[1],10),green:parseInt(""+hslRgbMatched[2],10),blue:parseInt(""+hslRgbMatched[3],10)}}var hslaMatched=hslaRegex.exec(normalizedColor.substring(0,50));if(hslaMatched){var _rgbColorString="rgb("+hslToRgb(parseInt(""+hslaMatched[1],10),parseInt(""+hslaMatched[2],10)/100,parseInt(""+hslaMatched[3],10)/100)+")",_hslRgbMatched=rgbRegex.exec(_rgbColorString);if(!_hslRgbMatched)throw new PolishedError(4,normalizedColor,_rgbColorString);return{red:parseInt(""+_hslRgbMatched[1],10),green:parseInt(""+_hslRgbMatched[2],10),blue:parseInt(""+_hslRgbMatched[3],10),alpha:parseFloat(""+hslaMatched[4])>1?parseFloat(""+hslaMatched[4])/100:parseFloat(""+hslaMatched[4])}}throw new PolishedError(5)}function parseToHsl(color){return function rgbToHsl(color){var red=color.red/255,green=color.green/255,blue=color.blue/255,max=Math.max(red,green,blue),min=Math.min(red,green,blue),lightness=(max+min)/2;if(max===min)return void 0!==color.alpha?{hue:0,saturation:0,lightness,alpha:color.alpha}:{hue:0,saturation:0,lightness};var hue,delta=max-min,saturation=lightness>.5?delta/(2-max-min):delta/(max+min);switch(max){case red:hue=(green-blue)/delta+(green<blue?6:0);break;case green:hue=(blue-red)/delta+2;break;default:hue=(red-green)/delta+4}return hue*=60,void 0!==color.alpha?{hue,saturation,lightness,alpha:color.alpha}:{hue,saturation,lightness}}(parseToRgb(color))}var reduceHexValue$1=function(value2){return 7===value2.length&&value2[1]===value2[2]&&value2[3]===value2[4]&&value2[5]===value2[6]?"#"+value2[1]+value2[3]+value2[5]:value2};function numberToHex(value2){var hex=value2.toString(16);return 1===hex.length?"0"+hex:hex}function colorToHex(color){return numberToHex(Math.round(255*color))}function convertToHex(red,green,blue){return reduceHexValue$1("#"+colorToHex(red)+colorToHex(green)+colorToHex(blue))}function hslToHex(hue,saturation,lightness){return hslToRgb(hue,saturation,lightness,convertToHex)}function rgb(value2,green,blue){if("number"==typeof value2&&"number"==typeof green&&"number"==typeof blue)return reduceHexValue$1("#"+numberToHex(value2)+numberToHex(green)+numberToHex(blue));if("object"==typeof value2&&void 0===green&&void 0===blue)return reduceHexValue$1("#"+numberToHex(value2.red)+numberToHex(value2.green)+numberToHex(value2.blue));throw new PolishedError(6)}function rgba(firstValue,secondValue,thirdValue,fourthValue){if("string"==typeof firstValue&&"number"==typeof secondValue){var rgbValue=parseToRgb(firstValue);return"rgba("+rgbValue.red+","+rgbValue.green+","+rgbValue.blue+","+secondValue+")"}if("number"==typeof firstValue&&"number"==typeof secondValue&&"number"==typeof thirdValue&&"number"==typeof fourthValue)return fourthValue>=1?rgb(firstValue,secondValue,thirdValue):"rgba("+firstValue+","+secondValue+","+thirdValue+","+fourthValue+")";if("object"==typeof firstValue&&void 0===secondValue&&void 0===thirdValue&&void 0===fourthValue)return firstValue.alpha>=1?rgb(firstValue.red,firstValue.green,firstValue.blue):"rgba("+firstValue.red+","+firstValue.green+","+firstValue.blue+","+firstValue.alpha+")";throw new PolishedError(7)}function toColorString(color){if("object"!=typeof color)throw new PolishedError(8);if(function(color){return"number"==typeof color.red&&"number"==typeof color.green&&"number"==typeof color.blue&&"number"==typeof color.alpha}(color))return rgba(color);if(function(color){return"number"==typeof color.red&&"number"==typeof color.green&&"number"==typeof color.blue&&("number"!=typeof color.alpha||typeof color.alpha>"u")}(color))return rgb(color);if(function(color){return"number"==typeof color.hue&&"number"==typeof color.saturation&&"number"==typeof color.lightness&&"number"==typeof color.alpha}(color))return function hsla(value2,saturation,lightness,alpha){if("number"==typeof value2&&"number"==typeof saturation&&"number"==typeof lightness&&"number"==typeof alpha)return alpha>=1?hslToHex(value2,saturation,lightness):"rgba("+hslToRgb(value2,saturation,lightness)+","+alpha+")";if("object"==typeof value2&&void 0===saturation&&void 0===lightness&&void 0===alpha)return value2.alpha>=1?hslToHex(value2.hue,value2.saturation,value2.lightness):"rgba("+hslToRgb(value2.hue,value2.saturation,value2.lightness)+","+value2.alpha+")";throw new PolishedError(2)}(color);if(function(color){return"number"==typeof color.hue&&"number"==typeof color.saturation&&"number"==typeof color.lightness&&("number"!=typeof color.alpha||typeof color.alpha>"u")}(color))return function hsl(value2,saturation,lightness){if("number"==typeof value2&&"number"==typeof saturation&&"number"==typeof lightness)return hslToHex(value2,saturation,lightness);if("object"==typeof value2&&void 0===saturation&&void 0===lightness)return hslToHex(value2.hue,value2.saturation,value2.lightness);throw new PolishedError(1)}(color);throw new PolishedError(8)}function curried(f2,length,acc){return function(){var combined=acc.concat(Array.prototype.slice.call(arguments));return combined.length>=length?f2.apply(this,combined):curried(f2,length,combined)}}function curry(f2){return curried(f2,f2.length,[])}function guard(lowerBoundary,upperBoundary,value2){return Math.max(lowerBoundary,Math.min(upperBoundary,value2))}curry((function adjustHue(degree,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{hue:hslColor.hue+parseFloat(degree)}))}));var curriedDarken$1=curry((function darken(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness-parseFloat(amount))}))}));curry((function desaturate(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{saturation:guard(0,1,hslColor.saturation-parseFloat(amount))}))}));var curriedLighten$1=curry((function lighten(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{lightness:guard(0,1,hslColor.lightness+parseFloat(amount))}))}));var mix$1=curry((function mix(weight,color,otherColor){if("transparent"===color)return otherColor;if("transparent"===otherColor)return color;if(0===weight)return otherColor;var parsedColor1=parseToRgb(color),color1=_extends({},parsedColor1,{alpha:"number"==typeof parsedColor1.alpha?parsedColor1.alpha:1}),parsedColor2=parseToRgb(otherColor),color2=_extends({},parsedColor2,{alpha:"number"==typeof parsedColor2.alpha?parsedColor2.alpha:1}),alphaDelta=color1.alpha-color2.alpha,x2=2*parseFloat(weight)-1,weight1=((x2*alphaDelta==-1?x2:x2+alphaDelta)/(1+x2*alphaDelta)+1)/2,weight2=1-weight1;return rgba({red:Math.floor(color1.red*weight1+color2.red*weight2),green:Math.floor(color1.green*weight1+color2.green*weight2),blue:Math.floor(color1.blue*weight1+color2.blue*weight2),alpha:color1.alpha*parseFloat(weight)+color2.alpha*(1-parseFloat(weight))})}));var curriedOpacify$1=curry((function opacify(amount,color){if("transparent"===color)return color;var parsedColor=parseToRgb(color);return rgba(_extends({},parsedColor,{alpha:guard(0,1,(100*("number"==typeof parsedColor.alpha?parsedColor.alpha:1)+100*parseFloat(amount))/100)}))}));curry((function saturate(amount,color){if("transparent"===color)return color;var hslColor=parseToHsl(color);return toColorString(_extends({},hslColor,{saturation:guard(0,1,hslColor.saturation+parseFloat(amount))}))})),curry((function setHue(hue,color){return"transparent"===color?color:toColorString(_extends({},parseToHsl(color),{hue:parseFloat(hue)}))})),curry((function setLightness(lightness,color){return"transparent"===color?color:toColorString(_extends({},parseToHsl(color),{lightness:parseFloat(lightness)}))})),curry((function setSaturation(saturation,color){return"transparent"===color?color:toColorString(_extends({},parseToHsl(color),{saturation:parseFloat(saturation)}))})),curry((function shade(percentage,color){return"transparent"===color?color:mix$1(parseFloat(percentage),"rgb(0, 0, 0)",color)})),curry((function tint(percentage,color){return"transparent"===color?color:mix$1(parseFloat(percentage),"rgb(255, 255, 255)",color)}));var curriedTransparentize$1=curry((function transparentize(amount,color){if("transparent"===color)return color;var parsedColor=parseToRgb(color);return rgba(_extends({},parsedColor,{alpha:guard(0,1,+(100*("number"==typeof parsedColor.alpha?parsedColor.alpha:1)-100*parseFloat(amount)).toFixed(2)/100)}))})),Wrapper=theming.I4.div(components.YV,(({theme})=>({backgroundColor:"light"===theme.base?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:theme.appBorderRadius,border:`1px dashed ${theme.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:curriedTransparentize$1(.3,theme.color.defaultText),fontSize:theme.typography.size.s2}))),EmptyBlock=props=>react.createElement(Wrapper,{...props,className:"docblock-emptyblock sb-unstyled"}),StyledSyntaxHighlighter=(0,theming.I4)(components.bF)((({theme})=>({fontSize:theme.typography.size.s2-1+"px",lineHeight:"19px",margin:"25px 0 40px",borderRadius:theme.appBorderRadius,boxShadow:"light"===theme.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}}))),SourceSkeletonWrapper=theming.I4.div((({theme})=>({background:theme.background.content,borderRadius:theme.appBorderRadius,border:`1px solid ${theme.appBorderColor}`,boxShadow:"light"===theme.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"}))),SourceSkeletonPlaceholder=theming.I4.div((({theme})=>({animation:`${theme.animation.glow} 1.5s ease-in-out infinite`,background:theme.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${theming.v_}`]:{margin:0}}))),SourceSkeleton=()=>react.createElement(SourceSkeletonWrapper,null,react.createElement(SourceSkeletonPlaceholder,null),react.createElement(SourceSkeletonPlaceholder,{style:{width:"80%"}}),react.createElement(SourceSkeletonPlaceholder,{style:{width:"30%"}}),react.createElement(SourceSkeletonPlaceholder,{style:{width:"80%"}})),Source=({isLoading,error,language,code,dark,format:format3=!0,...rest})=>{let{typography}=(0,theming.DP)();if(isLoading)return react.createElement(SourceSkeleton,null);if(error)return react.createElement(EmptyBlock,null,error);let syntaxHighlighter=react.createElement(StyledSyntaxHighlighter,{bordered:!0,copyable:!0,format:format3,language:language??"jsx",className:"docblock-source sb-unstyled",...rest},code);if(typeof dark>"u")return syntaxHighlighter;let overrideTheme=dark?theming.Zj.dark:theming.Zj.light;return react.createElement(theming.NP,{theme:(0,theming.C6)({...overrideTheme,fontCode:typography.fonts.mono,fontBase:typography.fonts.base})},syntaxHighlighter)},toGlobalSelector=element=>`& :where(${element}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${element}))`,Title=theming.I4.h1(components.YV,(({theme})=>({color:theme.color.defaultText,fontSize:theme.typography.size.m3,fontWeight:theme.typography.weight.bold,lineHeight:"32px","@media (min-width: 600px)":{fontSize:theme.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}}))),Subtitle=theming.I4.h2(components.YV,(({theme})=>({fontWeight:theme.typography.weight.regular,fontSize:theme.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,"@media (min-width: 600px)":{fontSize:theme.typography.size.m1,lineHeight:"28px",marginBottom:24},color:curriedTransparentize$1(.25,theme.color.defaultText)}))),DocsContent=theming.I4.div((({theme})=>{let reset={fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},headers={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:theme.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},code={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:theme.typography.size.s2-1,border:"light"===theme.base?`1px solid ${theme.color.mediumlight}`:`1px solid ${theme.color.darker}`,color:"light"===theme.base?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),backgroundColor:"light"===theme.base?theme.color.lighter:theme.color.border};return{maxWidth:1e3,width:"100%",minWidth:0,[toGlobalSelector("a")]:{...reset,fontSize:"inherit",lineHeight:"24px",color:theme.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[toGlobalSelector("blockquote")]:{...reset,margin:"16px 0",borderLeft:`4px solid ${theme.color.medium}`,padding:"0 15px",color:theme.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[toGlobalSelector("div")]:reset,[toGlobalSelector("dl")]:{...reset,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[toGlobalSelector("h1")]:{...reset,...headers,fontSize:`${theme.typography.size.l1}px`,fontWeight:theme.typography.weight.bold},[toGlobalSelector("h2")]:{...reset,...headers,fontSize:`${theme.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${theme.appBorderColor}`},[toGlobalSelector("h3")]:{...reset,...headers,fontSize:`${theme.typography.size.m1}px`,fontWeight:theme.typography.weight.bold},[toGlobalSelector("h4")]:{...reset,...headers,fontSize:`${theme.typography.size.s3}px`},[toGlobalSelector("h5")]:{...reset,...headers,fontSize:`${theme.typography.size.s2}px`},[toGlobalSelector("h6")]:{...reset,...headers,fontSize:`${theme.typography.size.s2}px`,color:theme.color.dark},[toGlobalSelector("hr")]:{border:"0 none",borderTop:`1px solid ${theme.appBorderColor}`,height:4,padding:0},[toGlobalSelector("img")]:{maxWidth:"100%"},[toGlobalSelector("li")]:{...reset,fontSize:theme.typography.size.s2,color:theme.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":code},[toGlobalSelector("ol")]:{...reset,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[toGlobalSelector("p")]:{...reset,margin:"16px 0",fontSize:theme.typography.size.s2,lineHeight:"24px",color:theme.color.defaultText,"& code":code},[toGlobalSelector("pre")]:{...reset,fontFamily:theme.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[toGlobalSelector("span")]:{...reset,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${theme.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:theme.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[toGlobalSelector("table")]:{...reset,margin:"16px 0",fontSize:theme.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${theme.appBorderColor}`,backgroundColor:theme.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:"dark"===theme.base?theme.color.darker:theme.color.lighter},"& tr th":{fontWeight:"bold",color:theme.color.defaultText,border:`1px solid ${theme.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${theme.appBorderColor}`,color:theme.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[toGlobalSelector("ul")]:{...reset,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}})),DocsWrapper=theming.I4.div((({theme})=>({background:theme.background.content,display:"flex",flexDirection:"row-reverse",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem","@media (min-width: 600px)":{}}))),DocsPageWrapper=({children,toc})=>react.createElement(DocsWrapper,{className:"sbdocs sbdocs-wrapper"},toc,react.createElement(DocsContent,{className:"sbdocs sbdocs-content"},children)),getBlockBackgroundStyle=theme=>({borderRadius:theme.appBorderRadius,background:theme.background.content,boxShadow:"light"===theme.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${theme.appBorderColor}`}),{window:globalWindow}=globalThis,IFrame=class extends react.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{id}=this.props;this.iframe=globalWindow.document.getElementById(id)}shouldComponentUpdate(nextProps){let{scale}=nextProps;return scale!==this.props.scale&&this.setIframeBodyStyle({width:100*scale+"%",height:100*scale+"%",transform:`scale(${1/scale})`,transformOrigin:"top left"}),!1}setIframeBodyStyle(style){return Object.assign(this.iframe.contentDocument.body.style,style)}render(){let{id,title,src,allowFullScreen,scale,...rest}=this.props;return react.createElement("iframe",{id,title,src,...allowFullScreen?{allow:"fullscreen"}:{},loading:"lazy",...rest})}},ZoomContext=(0,react.createContext)({scale:1}),{PREVIEW_URL}=globalThis,BASE_URL=PREVIEW_URL||"iframe.html",storyBlockIdFromId=({story,primary})=>`story--${story.id}${primary?"--primary":""}`,InlineStory=props=>{let storyRef=(0,react.useRef)(),[showLoader,setShowLoader]=(0,react.useState)(!0),[error,setError]=(0,react.useState)(),{story,height,autoplay,forceInitialArgs,renderStoryToElement}=props;return(0,react.useEffect)((()=>{if(!story||!storyRef.current)return()=>{};let element=storyRef.current,cleanup=renderStoryToElement(story,element,{showMain:()=>{},showError:({title,description})=>setError(new Error(`${title} - ${description}`)),showException:err=>setError(err)},{autoplay,forceInitialArgs});return setShowLoader(!1),()=>{Promise.resolve().then((()=>cleanup()))}}),[autoplay,renderStoryToElement,story]),error?react.createElement("pre",null,react.createElement(components.Df,{error})):react.createElement(react.Fragment,null,height?react.createElement("style",null,`#${storyBlockIdFromId(props)} { min-height: ${height}; transform: translateZ(0); overflow: auto }`):null,showLoader&&react.createElement(StorySkeleton,null),react.createElement("div",{ref:storyRef,id:`${storyBlockIdFromId(props)}-inner`,"data-name":story.name}))},IFrameStory=({story,height="500px"})=>react.createElement("div",{style:{width:"100%",height}},react.createElement(ZoomContext.Consumer,null,(({scale})=>react.createElement(IFrame,{key:"iframe",id:`iframe--${story.id}`,title:story.name,src:(0,components.jZ)(BASE_URL,story.id,{viewMode:"story"}),allowFullScreen:!0,scale,style:{width:"100%",height:"100%",border:"0 none"}})))),ErrorMessage=theming.I4.strong((({theme})=>({color:theme.color.orange}))),Story=props=>{let{inline,story}=props;return inline&&!props.autoplay&&story.usesMount?react.createElement(ErrorMessage,null,"This story mounts inside of play. Set"," ",react.createElement("a",{href:"https://storybook.js.org/docs/api/doc-blocks/doc-block-story?ref=ui#autoplay"},"autoplay")," ","to true to view this story."):react.createElement("div",{id:storyBlockIdFromId(props),className:"sb-story sb-unstyled","data-story-block":"true"},inline?react.createElement(InlineStory,{...props}):react.createElement(IFrameStory,{...props}))},StorySkeleton=()=>react.createElement(components.aH,null),Bar=(0,theming.I4)(components.px)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),Wrapper2=theming.I4.div({display:"flex",alignItems:"center",gap:4}),IconPlaceholder=theming.I4.div((({theme})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:theme.appBorderColor,animation:`${theme.animation.glow} 1.5s ease-in-out infinite`}))),ChildrenContainer=theming.I4.div((({isColumn,columns,layout})=>({display:isColumn||!columns?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:isColumn?"column":"row","& .innerZoomElementWrapper > *":isColumn?{width:"fullscreen"!==layout?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:"fullscreen"!==layout?"calc(100% - 20px)":"100%",display:"inline-block"}})),(({layout="padded",inline})=>"centered"===layout||"padded"===layout?{padding:inline?"32px 22px":"0px","& .innerZoomElementWrapper > *":{width:"auto",border:"8px solid transparent!important"}}:{}),(({layout="padded",inline})=>"centered"===layout&&inline?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{}),(({columns})=>columns&&columns>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${columns} - 20px)`}}:{})),StyledSource=(0,theming.I4)(Source)((({theme})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:theme.appBorderRadius,borderBottomRightRadius:theme.appBorderRadius,border:"none",background:"light"===theme.base?"rgba(0, 0, 0, 0.85)":curriedDarken$1(.05,theme.background.content),color:theme.color.lightest,button:{background:"light"===theme.base?"rgba(0, 0, 0, 0.85)":curriedDarken$1(.05,theme.background.content)}}))),PreviewContainer=theming.I4.div((({theme,withSource,isExpanded})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...getBlockBackgroundStyle(theme),borderBottomLeftRadius:withSource&&isExpanded&&0,borderBottomRightRadius:withSource&&isExpanded&&0,borderBottomWidth:isExpanded&&0,"h3 + &":{marginTop:"16px"}})),(({withToolbar})=>withToolbar&&{paddingTop:40}));function getStoryId(children){if(1===react.Children.count(children)){let elt=children;if(elt.props)return elt.props.id}return null}var PositionedToolbar=(0,theming.I4)((({isLoading,storyId,baseUrl,zoom,resetZoom,...rest})=>react.createElement(Bar,{...rest},react.createElement(Wrapper2,{key:"left"},isLoading?[1,2,3].map((key=>react.createElement(IconPlaceholder,{key}))):react.createElement(react.Fragment,null,react.createElement(components.K0,{key:"zoomin",onClick:e2=>{e2.preventDefault(),zoom(.8)},title:"Zoom in"},react.createElement(dist.PU,null)),react.createElement(components.K0,{key:"zoomout",onClick:e2=>{e2.preventDefault(),zoom(1.25)},title:"Zoom out"},react.createElement(dist.LoD,null)),react.createElement(components.K0,{key:"zoomreset",onClick:e2=>{e2.preventDefault(),resetZoom()},title:"Reset zoom"},react.createElement(dist.wV5,null)))))))({position:"absolute",top:0,left:0,right:0,height:40}),Relative=theming.I4.div({overflow:"hidden",position:"relative"}),Preview=({isLoading,isColumn,columns,children,withSource,withToolbar=!1,isExpanded=!1,additionalActions,className,layout="padded",inline=!1,...props})=>{let[expanded,setExpanded]=(0,react.useState)(isExpanded),{source,actionItem}=((withSource,expanded,setExpanded)=>{switch(!0){case!(!withSource||!withSource.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:()=>setExpanded(!1)}};case expanded:return{source:react.createElement(StyledSource,{...withSource,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:()=>setExpanded(!1)}};default:return{source:react.createElement(StyledSource,{...withSource,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:()=>setExpanded(!0)}}}})(withSource,expanded,setExpanded),[scale,setScale]=(0,react.useState)(1),previewClasses=[className].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),defaultActionItems=withSource?[actionItem]:[],[additionalActionItems,setAdditionalActionItems]=(0,react.useState)(additionalActions?[...additionalActions]:[]),actionItems=[...defaultActionItems,...additionalActionItems],{window:globalWindow4}=globalThis,copyToClipboard=(0,react.useCallback)((async text=>{let{createCopyToClipboardFunction}=await Promise.resolve().then(__webpack_require__.bind(__webpack_require__,"./node_modules/storybook/dist/components/index.js"));createCopyToClipboardFunction()}),[]);return react.createElement(PreviewContainer,{withSource,withToolbar,...props,className:previewClasses.join(" ")},withToolbar&&react.createElement(PositionedToolbar,{isLoading,border:!0,zoom:z2=>setScale(scale*z2),resetZoom:()=>setScale(1),storyId:getStoryId(children),baseUrl:"./iframe.html"}),react.createElement(ZoomContext.Provider,{value:{scale}},react.createElement(Relative,{className:"docs-story",onCopyCapture:withSource&&(e2=>{let selection=globalWindow4.getSelection();selection&&"Range"===selection.type||(e2.preventDefault(),0===additionalActionItems.filter((item=>"Copied"===item.title)).length&©ToClipboard(source?.props.code??"").then((()=>{setAdditionalActionItems([...additionalActionItems,{title:"Copied",onClick:()=>{}}]),globalWindow4.setTimeout((()=>setAdditionalActionItems(additionalActionItems.filter((item=>"Copied"!==item.title)))),1500)})))})},react.createElement(ChildrenContainer,{isColumn:isColumn||!Array.isArray(children),columns,layout,inline},react.createElement(components.GP.Element,{centered:"centered"===layout,scale:inline?scale:1},Array.isArray(children)?children.map(((child,i2)=>react.createElement("div",{key:i2},child))):react.createElement("div",null,children))),react.createElement(components.E7,{actionItems}))),withSource&&expanded&&source)};(0,theming.I4)(Preview)((()=>({".docs-story":{paddingTop:32,paddingBottom:40}})));var TabbedArgsTable=({tabs,...props})=>{let entries=Object.entries(tabs);return 1===entries.length?react.createElement(ArgsTable,{...entries[0][1],...props}):react.createElement(components._j,null,entries.map(((entry,index)=>{let[label,table]=entry,id=`prop_table_div_${label}`,argsTableProps=0===index?props:{sort:props.sort};return react.createElement("div",{key:id,id,title:label},(({active})=>active?react.createElement(ArgsTable,{key:`prop_table_${label}`,...table,...argsTableProps}):null))})))};theming.I4.div((({theme})=>({marginRight:30,fontSize:`${theme.typography.size.s1}px`,color:"light"===theme.base?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)}))),theming.I4.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),theming.I4.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}}),theming.I4.div(components.YV,(({theme})=>({...getBlockBackgroundStyle(theme),margin:"25px 0 40px",padding:"30px 20px"}))),theming.I4.div((({theme})=>({fontWeight:theme.typography.weight.bold,color:theme.color.defaultText}))),theming.I4.div((({theme})=>({color:"light"===theme.base?curriedTransparentize$1(.2,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)}))),theming.I4.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5}),theming.I4.div((({theme})=>({flex:1,textAlign:"center",fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,lineHeight:1,overflow:"hidden",color:"light"===theme.base?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}}))),theming.I4.div({display:"flex",flexDirection:"row"}),theming.I4.div((({background})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background,content:'""'}}))),theming.I4.div((({theme})=>({...getBlockBackgroundStyle(theme),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"}))),theming.I4.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30}),theming.I4.div({flex:1,display:"flex",flexDirection:"row"}),theming.I4.div({display:"flex",alignItems:"flex-start"}),theming.I4.div({flex:"0 0 30%"}),theming.I4.div({flex:1}),theming.I4.div((({theme})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:theme.typography.weight.bold,color:"light"===theme.base?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText)}))),theming.I4.div((({theme})=>({fontSize:theme.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"})));theming.I4.div((({theme})=>({fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s1,color:theme.color.defaultText,marginLeft:10,lineHeight:1.2,display:"-webkit-box",overflow:"hidden",wordBreak:"break-word",textOverflow:"ellipsis",WebkitLineClamp:2,WebkitBoxOrient:"vertical"}))),theming.I4.div((({theme})=>({...getBlockBackgroundStyle(theme),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}}))),theming.I4.div({display:"inline-flex",flexDirection:"row",alignItems:"center",width:"100%"}),theming.I4.div({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gridGap:"8px 16px",gridAutoFlow:"row dense",gridAutoRows:50});function build_html_default(options){let tocElement,forEach=[].forEach,some=[].some,body=typeof window<"u"&&document.body,currentlyHighlighting=!0,eventCount=0;function createEl(d2,container){let link=container.appendChild(function createLink(data){let item=document.createElement("li"),a2=document.createElement("a");return options.listItemClass&&item.setAttribute("class",options.listItemClass),options.onClick&&(a2.onclick=options.onClick),options.includeTitleTags&&a2.setAttribute("title",data.textContent),options.includeHtml&&data.childNodes.length?forEach.call(data.childNodes,(node=>{a2.appendChild(node.cloneNode(!0))})):a2.textContent=data.textContent,a2.setAttribute("href",`${options.basePath}#${data.id}`),a2.setAttribute("class",`${options.linkClass+" "}node-name--${data.nodeName} ${options.extraLinkClasses}`),item.appendChild(a2),item}(d2));if(d2.children.length){let list=createList(d2.isCollapsed);d2.children.forEach((child=>{createEl(child,list)})),link.appendChild(list)}}function createList(isCollapsed){let listElement=options.orderedList?"ol":"ul",list=document.createElement(listElement),classes=options.listClass+" "+options.extraListClasses;return isCollapsed&&(classes=classes+" "+options.collapsibleClass,classes=classes+" "+options.isCollapsedClass),list.setAttribute("class",classes),list}function getHeadingTopPos(obj){let position=0;return null!==obj&&(position=obj.offsetTop,options.hasInnerContainers&&(position+=getHeadingTopPos(obj.offsetParent))),position}function updateClassname(obj,className){return obj&&obj.className!==className&&(obj.className=className),obj}function removeCollapsedFromParents(element){return element&&-1!==element.className.indexOf(options.collapsibleClass)&&-1!==element.className.indexOf(options.isCollapsedClass)?(updateClassname(element,element.className.replace(" "+options.isCollapsedClass,"")),removeCollapsedFromParents(element.parentNode.parentNode)):element}function getIsHeaderBottomMode(headerId){let scrollEl=getScrollEl();return(document?.getElementById(headerId)).offsetTop>scrollEl.offsetHeight-1.4*scrollEl.clientHeight-options.bottomModeThreshold}function getIsPageBottomMode(){let scrollEl=getScrollEl(),isScrollable=scrollEl.scrollHeight>scrollEl.clientHeight,isBottomMode=getScrollTop()+scrollEl.clientHeight>scrollEl.offsetHeight-options.bottomModeThreshold;return isScrollable&&isBottomMode}function getScrollEl(){let el;return el=options.scrollContainer&&document.querySelector(options.scrollContainer)?document.querySelector(options.scrollContainer):document.documentElement||body,el}function getScrollTop(){return getScrollEl()?.scrollTop||0}function getTopHeader(headings,scrollTop=getScrollTop()){let topHeader;return some.call(headings,((heading,i2)=>{if(getHeadingTopPos(heading)>scrollTop+options.headingsOffset+10){return topHeader=headings[0===i2?i2:i2-1],!0}if(i2===headings.length-1)return topHeader=headings[headings.length-1],!0})),topHeader}return{enableTocAnimation:function enableTocAnimation(){currentlyHighlighting=!0},disableTocAnimation:function disableTocAnimation(event){let target=event.target||event.srcElement;"string"!=typeof target.className||-1===target.className.indexOf(options.linkClass)||(currentlyHighlighting=!1)},render:function render(parent,data){let container=createList(!1);if(data.forEach((d2=>{createEl(d2,container)})),tocElement=parent||tocElement,null!==tocElement)return tocElement.firstChild&&tocElement.removeChild(tocElement.firstChild),0===data.length?tocElement:tocElement.appendChild(container)},updateToc:function updateToc(headingsArray,event){options.positionFixedSelector&&function updateFixedSidebarClass(){let scrollTop=getScrollTop(),posFixedEl=document.querySelector(options.positionFixedSelector);"auto"===options.fixedSidebarOffset&&(options.fixedSidebarOffset=tocElement.offsetTop),scrollTop>options.fixedSidebarOffset?-1===posFixedEl.className.indexOf(options.positionFixedClass)&&(posFixedEl.className+=" "+options.positionFixedClass):posFixedEl.className=posFixedEl.className.replace(" "+options.positionFixedClass,"")}();let headings=headingsArray,clickedHref=event?.target?.getAttribute?event?.target?.getAttribute("href"):null,isBottomMode=!(!clickedHref||"#"!==clickedHref.charAt(0))&&getIsHeaderBottomMode(clickedHref.replace("#",""));if(event&&eventCount<5&&eventCount++,(currentlyHighlighting||isBottomMode)&&tocElement&&headings.length>0){let topHeader=getTopHeader(headings),oldActiveTocLink=tocElement.querySelector(`.${options.activeLinkClass}`),topHeaderId=topHeader.id.replace(/([ #;&,.+*~':"!^$[\]()=>|/\\@])/g,"\\$1"),hashId=window.location.hash.replace("#",""),activeId=topHeaderId,isPageBottomMode=getIsPageBottomMode();clickedHref&&isBottomMode?activeId=clickedHref.replace("#",""):hashId&&hashId!==topHeaderId&&isPageBottomMode&&(getIsHeaderBottomMode(topHeaderId)||eventCount<=2)&&(activeId=hashId);let activeTocLink=tocElement.querySelector(`.${options.linkClass}[href="${options.basePath}#${activeId}"]`);if(oldActiveTocLink===activeTocLink)return;let tocLinks=tocElement.querySelectorAll(`.${options.linkClass}`);forEach.call(tocLinks,(tocLink=>{updateClassname(tocLink,tocLink.className.replace(" "+options.activeLinkClass,""))}));let tocLis=tocElement.querySelectorAll(`.${options.listItemClass}`);forEach.call(tocLis,(tocLi=>{updateClassname(tocLi,tocLi.className.replace(" "+options.activeListItemClass,""))})),activeTocLink&&-1===activeTocLink.className.indexOf(options.activeLinkClass)&&(activeTocLink.className+=" "+options.activeLinkClass);let li=activeTocLink?.parentNode;li&&-1===li.className.indexOf(options.activeListItemClass)&&(li.className+=" "+options.activeListItemClass);let tocLists=tocElement.querySelectorAll(`.${options.listClass}.${options.collapsibleClass}`);forEach.call(tocLists,(list=>{-1===list.className.indexOf(options.isCollapsedClass)&&(list.className+=" "+options.isCollapsedClass)})),activeTocLink?.nextSibling&&-1!==activeTocLink.nextSibling.className.indexOf(options.isCollapsedClass)&&updateClassname(activeTocLink.nextSibling,activeTocLink.nextSibling.className.replace(" "+options.isCollapsedClass,"")),removeCollapsedFromParents(activeTocLink?.parentNode.parentNode)}},getCurrentlyHighlighting:function getCurrentlyHighlighting(){return currentlyHighlighting},getTopHeader,getScrollTop,updateUrlHashForHeader:function updateUrlHashForHeader(headingsArray){let scrollTop=getScrollTop(),topHeader=getTopHeader(headingsArray,scrollTop),isPageBottomMode=getIsPageBottomMode();if(topHeader&&!(scrollTop<5)||isPageBottomMode){if(topHeader&&!isPageBottomMode){let newHash=`#${topHeader.id}`;window.location.hash!==newHash&&window.history.pushState(null,null,newHash)}}else"#"===window.location.hash||""===window.location.hash||window.history.pushState(null,null,"#")}}}var default_options_default={tocSelector:".js-toc",tocElement:null,contentSelector:".js-toc-content",contentElement:null,headingSelector:"h1, h2, h3",ignoreSelector:".js-toc-ignore",hasInnerContainers:!1,linkClass:"toc-link",extraLinkClasses:"",activeLinkClass:"is-active-link",listClass:"toc-list",extraListClasses:"",isCollapsedClass:"is-collapsed",collapsibleClass:"is-collapsible",listItemClass:"toc-list-item",activeListItemClass:"is-active-li",collapseDepth:0,scrollSmooth:!0,scrollSmoothDuration:420,scrollSmoothOffset:0,scrollEndCallback:function(e2){},headingsOffset:1,enableUrlHashUpdateOnScroll:!1,scrollHandlerType:"auto",scrollHandlerTimeout:50,throttleTimeout:50,positionFixedSelector:null,positionFixedClass:"is-position-fixed",fixedSidebarOffset:"auto",includeHtml:!1,includeTitleTags:!1,onClick:function(e2){},orderedList:!0,scrollContainer:null,skipRendering:!1,headingLabelCallback:!1,ignoreHiddenElements:!1,headingObjectCallback:null,basePath:"",disableTocScrollSync:!1,tocScrollingWrapper:null,tocScrollOffset:30,bottomModeThreshold:30};function parseContent(options){let reduce=[].reduce;function getLastItem(array2){return array2[array2.length-1]}function getHeadingLevel(heading){return+heading.nodeName.toUpperCase().replace("H","")}function getHeadingObject(heading){if(!function isHTMLElement(maybeElement){try{return maybeElement instanceof window.HTMLElement||maybeElement instanceof window.parent.HTMLElement}catch{return maybeElement instanceof window.HTMLElement}}(heading))return heading;if(options.ignoreHiddenElements&&(!heading.offsetHeight||!heading.offsetParent))return null;let headingLabel=heading.getAttribute("data-heading-label")||(options.headingLabelCallback?String(options.headingLabelCallback(heading.innerText)):(heading.innerText||heading.textContent).trim()),obj={id:heading.id,children:[],nodeName:heading.nodeName,headingLevel:getHeadingLevel(heading),textContent:headingLabel};return options.includeHtml&&(obj.childNodes=heading.childNodes),options.headingObjectCallback?options.headingObjectCallback(obj,heading):obj}return{nestHeadingsArray:function nestHeadingsArray(headingsArray){return reduce.call(headingsArray,(function(prev,curr){let currentHeading=getHeadingObject(curr);return currentHeading&&function addNode(node,nest){let obj=getHeadingObject(node),level=obj.headingLevel,array2=nest,lastItem=getLastItem(array2),counter=level-(lastItem?lastItem.headingLevel:0);for(;counter>0&&(lastItem=getLastItem(array2),!lastItem||level!==lastItem.headingLevel);)lastItem&&void 0!==lastItem.children&&(array2=lastItem.children),counter--;return level>=options.collapseDepth&&(obj.isCollapsed=!0),array2.push(obj),array2}(currentHeading,prev.nest),prev}),{nest:[]})},selectHeadings:function selectHeadings(contentElement,headingSelector){let selectors=headingSelector;options.ignoreSelector&&(selectors=headingSelector.split(",").map((function(selector){return`${selector.trim()}:not(${options.ignoreSelector})`})));try{return contentElement.querySelectorAll(selectors)}catch{return console.warn(`Headers not found with selector: ${selectors}`),null}}}}function initSmoothScrolling(options){var duration=options.duration,offset=options.offset;if(!(typeof window>"u"||typeof location>"u")){var pageUrl=location.hash?stripHash(location.href):location.href;!function delegatedLinkHijacking(){document.body.addEventListener("click",(function onClick(e2){!function isInPageLink(n2){return"a"===n2.tagName.toLowerCase()&&(n2.hash.length>0||"#"===n2.href.charAt(n2.href.length-1))&&(stripHash(n2.href)===pageUrl||stripHash(n2.href)+"#"===pageUrl)}(e2.target)||e2.target.className.indexOf("no-smooth-scroll")>-1||"#"===e2.target.href.charAt(e2.target.href.length-2)&&"!"===e2.target.href.charAt(e2.target.href.length-1)||-1===e2.target.className.indexOf(options.linkClass)||function jump(target,options){var timeStart,timeElapsed,start=window.pageYOffset,opt={duration:options.duration,offset:options.offset||0,callback:options.callback,easing:options.easing||easeInOutQuad},tgt=document.querySelector('[id="'+decodeURI(target).split("#").join("")+'"]')||document.querySelector('[id="'+target.split("#").join("")+'"]'),distance="string"==typeof target?opt.offset+(target?tgt&&tgt.getBoundingClientRect().top||0:-(document.documentElement.scrollTop||document.body.scrollTop)):target,duration="function"==typeof opt.duration?opt.duration(distance):opt.duration;function loop(time){timeElapsed=time-timeStart,window.scrollTo(0,opt.easing(timeElapsed,start,distance,duration)),timeElapsed<duration?requestAnimationFrame(loop):end()}function end(){window.scrollTo(0,start+distance),"function"==typeof opt.callback&&opt.callback()}function easeInOutQuad(t2,b2,c2,d2){return(t2/=d2/2)<1?c2/2*t2*t2+b2:-c2/2*(--t2*(t2-2)-1)+b2}requestAnimationFrame((function(time){timeStart=time,loop(time)}))}(e2.target.hash,{duration,offset,callback:function(){!function setFocus(hash){var element=document.getElementById(hash.substring(1));element&&(/^(?:a|select|input|button|textarea)$/i.test(element.tagName)||(element.tabIndex=-1),element.focus())}(e2.target.hash)}})}),!1)}()}function stripHash(url){return url.slice(0,url.lastIndexOf("#"))}}var _buildHtml,_parseContent,_headingsArray,_scrollListener,clickListener,_options={};function init(customOptions){let hasInitialized=!1;(_options=function extend(...args){let target={};for(let i2=0;i2<args.length;i2++){let source=args[i2];for(let key in source)hasOwnProp.call(source,key)&&(target[key]=source[key])}return target}(default_options_default,customOptions||{})).scrollSmooth&&(_options.duration=_options.scrollSmoothDuration,_options.offset=_options.scrollSmoothOffset,initSmoothScrolling(_options)),_buildHtml=build_html_default(_options),_parseContent=parseContent(_options),destroy();let contentElement=function getContentElement(options){try{return options.contentElement||document.querySelector(options.contentSelector)}catch{return console.warn(`Contents element not found: ${options.contentSelector}`),null}}(_options);if(null===contentElement)return;let tocElement=getTocElement(_options);if(null===tocElement||null===(_headingsArray=_parseContent.selectHeadings(contentElement,_options.headingSelector)))return;let nestedHeadings=_parseContent.nestHeadingsArray(_headingsArray).nest;if(_options.skipRendering)return this;_buildHtml.render(tocElement,nestedHeadings);let isClick=!1,scrollHandlerTimeout=_options.scrollHandlerTimeout||_options.throttleTimeout;_scrollListener=function getScrollHandler(func,timeout,type="auto"){switch(type){case"debounce":return debounce(func,timeout);case"throttle":return throttle(func,timeout);default:return timeout<334?debounce(func,timeout):throttle(func,timeout)}}((e2=>{_buildHtml.updateToc(_headingsArray,e2),!_options.disableTocScrollSync&&!isClick&&function updateTocScroll(options){let toc=options.tocScrollingWrapper||options.tocElement||document.querySelector(options.tocSelector);if(toc&&toc.scrollHeight>toc.clientHeight){let activeItem=toc.querySelector(`.${options.activeListItemClass}`);if(activeItem){let scrollAmount=activeItem.offsetTop-options.tocScrollOffset;toc.scrollTop=scrollAmount>0?scrollAmount:0}}}(_options),_options.enableUrlHashUpdateOnScroll&&hasInitialized&&_buildHtml.getCurrentlyHighlighting()&&_buildHtml.updateUrlHashForHeader(_headingsArray);let isTop=0===e2?.target?.scrollingElement?.scrollTop;(e2&&(0===e2.eventPhase||null===e2.currentTarget)||isTop)&&(_buildHtml.updateToc(_headingsArray),_options.scrollEndCallback?.(e2))}),scrollHandlerTimeout,_options.scrollHandlerType),hasInitialized||(_scrollListener(),hasInitialized=!0),window.onhashchange=window.onscrollend=e2=>{_scrollListener(e2)},_options.scrollContainer&&document.querySelector(_options.scrollContainer)?(document.querySelector(_options.scrollContainer).addEventListener("scroll",_scrollListener,!1),document.querySelector(_options.scrollContainer).addEventListener("resize",_scrollListener,!1)):(document.addEventListener("scroll",_scrollListener,!1),document.addEventListener("resize",_scrollListener,!1));let timeout=null;clickListener=throttle((event=>{isClick=!0,_options.scrollSmooth&&_buildHtml.disableTocAnimation(event),_buildHtml.updateToc(_headingsArray,event),timeout&&clearTimeout(timeout),timeout=setTimeout((()=>{_buildHtml.enableTocAnimation()}),_options.scrollSmoothDuration),setTimeout((()=>{isClick=!1}),_options.scrollSmoothDuration+100)}),_options.throttleTimeout),_options.scrollContainer&&document.querySelector(_options.scrollContainer)?document.querySelector(_options.scrollContainer).addEventListener("click",clickListener,!1):document.addEventListener("click",clickListener,!1)}function destroy(){let tocElement=getTocElement(_options);null!==tocElement&&(_options.skipRendering||tocElement&&(tocElement.innerHTML=""),_options.scrollContainer&&document.querySelector(_options.scrollContainer)?(document.querySelector(_options.scrollContainer).removeEventListener("scroll",_scrollListener,!1),document.querySelector(_options.scrollContainer).removeEventListener("resize",_scrollListener,!1),_buildHtml&&document.querySelector(_options.scrollContainer).removeEventListener("click",clickListener,!1)):(document.removeEventListener("scroll",_scrollListener,!1),document.removeEventListener("resize",_scrollListener,!1),_buildHtml&&document.removeEventListener("click",clickListener,!1)))}var hasOwnProp=Object.prototype.hasOwnProperty;function throttle(fn,threshold,scope){let last,deferTimer;return threshold||(threshold=250),function(...args){let context=scope||this,now=+new Date;last&&now<last+threshold?(clearTimeout(deferTimer),deferTimer=setTimeout((()=>{last=now,fn.apply(context,args)}),threshold)):(last=now,fn.apply(context,args))}}function debounce(func,wait){let timeout;return(...args)=>{clearTimeout(timeout),timeout=setTimeout((()=>func.apply(this,args)),wait)}}function getTocElement(options){try{return options.tocElement||document.querySelector(options.tocSelector)}catch{return console.warn(`TOC element not found: ${options.tocSelector}`),null}}var tocbot_default={destroy,init,refresh:function refresh(customOptions){destroy(),init(customOptions||_options)}},Aside=theming.I4.aside((()=>({width:"10rem","@media (max-width: 768px)":{display:"none"}}))),Nav=theming.I4.nav((({theme})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:theme.typography.fonts.base,fontSize:theme.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${theme.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${theme.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:theme.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:theme.color.secondary,textDecoration:"none"}}))),Heading=theming.I4.p((({theme})=>({fontWeight:600,fontSize:"0.875em",color:theme.textColor,textTransform:"uppercase",marginBottom:10}))),Title2=({headingId,title})=>"string"!=typeof title&&title?react.createElement("div",{id:headingId},title):react.createElement(Heading,{as:"h2",id:headingId,className:title?"":"sb-sr-only"},title||"Table of contents"),TableOfContents=({title,disable,headingSelector,contentsSelector,ignoreSelector,unsafeTocbotOptions,channel,className})=>{(0,react.useEffect)((()=>{if(disable)return()=>{};let configuration={tocSelector:".toc-wrapper",contentSelector:contentsSelector??".sbdocs-content",headingSelector:headingSelector??"h3",ignoreSelector:ignoreSelector??".docs-story *, .skip-toc",headingsOffset:40,scrollSmoothOffset:-40,orderedList:!1,onClick:e2=>{if(e2.preventDefault(),e2.currentTarget instanceof HTMLAnchorElement){let[,headerId]=e2.currentTarget.href.split("#");headerId&&channel.emit(external_STORYBOOK_MODULE_CORE_EVENTS_.NAVIGATE_URL,`#${headerId}`)}},...unsafeTocbotOptions},timeout=setTimeout((()=>tocbot_default.init(configuration)),100);return()=>{clearTimeout(timeout),tocbot_default.destroy()}}),[channel,disable,ignoreSelector,contentsSelector,headingSelector,unsafeTocbotOptions]);let headingId=(0,react.useId)();return react.createElement(Aside,{className},disable?null:react.createElement(Nav,{"aria-labelledby":headingId},react.createElement(Title2,{headingId,title}),react.createElement("div",{className:"toc-wrapper"})))};function t(){return t=Object.assign?Object.assign.bind():function(e2){for(var t2=1;t2<arguments.length;t2++){var n2=arguments[t2];for(var r2 in n2)Object.prototype.hasOwnProperty.call(n2,r2)&&(e2[r2]=n2[r2])}return e2},t.apply(this,arguments)}var i,e2,n=["children","options"],r_blockQuote="0",r_breakLine="1",r_breakThematic="2",r_codeBlock="3",r_codeFenced="4",r_codeInline="5",r_footnote="6",r_footnoteReference="7",r_gfmTask="8",r_heading="9",r_headingSetext="10",r_htmlBlock="11",r_htmlComment="12",r_htmlSelfClosing="13",r_image="14",r_link="15",r_linkAngleBraceStyleDetector="16",r_linkBareUrlDetector="17",r_linkMailtoDetector="18",r_newlineCoalescer="19",r_orderedList="20",r_paragraph="21",r_ref="22",r_refImage="23",r_refLink="24",r_table="25",r_text="27",r_textBolded="28",r_textEmphasized="29",r_textEscaped="30",r_textMarked="31",r_textStrikethroughed="32",r_unorderedList="33";(e2=i||(i={}))[e2.MAX=0]="MAX",e2[e2.HIGH=1]="HIGH",e2[e2.MED=2]="MED",e2[e2.LOW=3]="LOW",e2[e2.MIN=4]="MIN";var l=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce(((e2,t2)=>(e2[t2.toLowerCase()]=t2,e2)),{class:"className",for:"htmlFor"}),o={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},a=["style","script"],c=["src","href","data","formAction","srcDoc","action"],s=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,d=/mailto:/i,u=/\n{2,}$/,p=/^(\s*>[\s\S]*?)(?=\n\n|$)/,f=/^ *> ?/gm,h=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,m=/^ {2,}\n/,g=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,y=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,k=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,x=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,b=/^(?:\n *)*\n/,v=/\r\n?/g,C=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,$=/^\[\^([^\]]+)]/,S=/\f/g,w=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,E=/^\s*?\[(x|\s)\]/,z=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,L=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,A=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,O=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,T=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,B=/^<!--[\s\S]*?(?:-->)/,M=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,R=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,I=/^\{.*\}$/,D=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,U=/^<([^ >]+@[^ >]+)>/,N=/^<([^ >]+:\/[^ >]+)>/,j=/-([a-z])?/gi,H=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,P=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,_=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,F=/^\[([^\]]*)\] ?\[([^\]]*)\]/,W=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,G=/\t/g,Z=/(^ *\||\| *$)/g,q=/^ *:-+: *$/,Q=/^ *:-+ *$/,V=/^ *-+: *$/,X="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",J=new RegExp(`^([*_])\\1${X}\\1\\1(?!\\1)`),K=new RegExp(`^([*_])${X}\\1(?!\\1)`),Y=new RegExp(`^(==)${X}\\1`),ee=new RegExp(`^(~~)${X}\\1`),te=/^\\([^0-9A-Za-z\s])/,ne=/\\([^0-9A-Za-z\s])/g,re=/^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/,ie=/^\n+/,le=/^([ \t]*)/,oe=/\\([^\\])/g,ae=/(?:^|\n)( *)$/,ce="(?:\\d+\\.)",se="(?:[*+-])";function de(e2){return"( *)("+(1===e2?ce:se)+") +"}var ue=de(1),pe=de(2);function fe(e2){return new RegExp("^"+(1===e2?ue:pe))}var he=fe(1),me=fe(2);function ge(e2){return new RegExp("^"+(1===e2?ue:pe)+"[^\\n]*(?:\\n(?!\\1"+(1===e2?ce:se)+" )[^\\n]*)*(\\n|$)","gm")}var ye=ge(1),ke=ge(2);function xe(e2){let t2=1===e2?ce:se;return new RegExp("^( *)("+t2+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t2+" (?!"+t2+" ))\\n*|\\s*\\n*$)")}var be=xe(1),ve=xe(2);function Ce(e2,t2){let n2=1===t2,i2=n2?be:ve,l2=n2?ye:ke,o2=n2?he:me;return{match:Me((function(e3,t3){let n3=ae.exec(t3.prevCapture);return n3&&(t3.list||!t3.inline&&!t3.simple)?i2.exec(e3=n3[1]+e3):null})),order:1,parse(e3,t3,r2){let i3=n2?+e3[2]:void 0,a2=e3[0].replace(u,"\n").match(l2),c2=!1;return{items:a2.map((function(e4,n3){let i4=o2.exec(e4)[0].length,l3=new RegExp("^ {1,"+i4+"}","gm"),s2=e4.replace(l3,"").replace(o2,""),d2=n3===a2.length-1,u2=-1!==s2.indexOf("\n\n")||d2&&c2;c2=u2;let h2,p2=r2.inline,f2=r2.list;r2.list=!0,u2?(r2.inline=!1,h2=ze(s2)+"\n\n"):(r2.inline=!0,h2=ze(s2));let m2=t3(h2,r2);return r2.inline=p2,r2.list=f2,m2})),ordered:n2,start:i3}},render:(t3,n3,i3)=>e2(t3.ordered?"ol":"ul",{key:i3.key,start:t3.type===r_orderedList?t3.start:void 0},t3.items.map((function(t4,r2){return e2("li",{key:r2},n3(t4,i3))})))}}var $e=new RegExp("^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*\\)"),Se=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,we=[p,y,k,z,A,L,H,be,ve],Ee=[...we,/^[^\n]+(?: \n|\n{2,})/,O,B,R];function ze(e2){let t2=e2.length;for(;t2>0&&e2[t2-1]<=" ";)t2--;return e2.slice(0,t2)}function Le(e2){return e2.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function Ae(e2){return V.test(e2)?"right":q.test(e2)?"center":Q.test(e2)?"left":null}function Oe(e2,t2,n2,r2){let i2=n2.inTable;n2.inTable=!0;let l2=[[]],o2="";function a2(){if(!o2)return;let e3=l2[l2.length-1];e3.push.apply(e3,t2(o2,n2)),o2=""}return e2.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach(((e3,t3,n3)=>{"|"===e3.trim()&&(a2(),r2)?0!==t3&&t3!==n3.length-1&&l2.push([]):o2+=e3})),a2(),n2.inTable=i2,l2}function Te(e2,t2,n2){n2.inline=!0;let i2=e2[2]?e2[2].replace(Z,"").split("|").map(Ae):[],l2=e2[3]?(e3=e2[3],t3=t2,n3=n2,e3.trim().split("\n").map((function(e4){return Oe(e4,t3,n3,!0)}))):[],o2=Oe(e2[1],t2,n2,!!l2.length);var e3,t3,n3;return n2.inline=!1,l2.length?{align:i2,cells:l2,header:o2,type:r_table}:{children:o2,type:r_paragraph}}function Be(e2,t2){return null==e2.align[t2]?{}:{textAlign:e2.align[t2]}}function Me(e2){return e2.inline=1,e2}function Re(e2){return Me((function(t2,n2){return n2.inline?e2.exec(t2):null}))}function Ie(e2){return Me((function(t2,n2){return n2.inline||n2.simple?e2.exec(t2):null}))}function De(e2){return function(t2,n2){return n2.inline||n2.simple?null:e2.exec(t2)}}function Ue(e2){return Me((function(t2){return e2.exec(t2)}))}function Ne(e2,t2){if(t2.inline||t2.simple)return null;let n2="";e2.split("\n").every((e3=>(e3+="\n",!we.some((t3=>t3.test(e3)))&&(n2+=e3,!!e3.trim()))));let r2=ze(n2);return""==r2?null:[n2,,r2]}var je=/(javascript|vbscript|data(?!:image)):/i;function He(e2){try{let t2=decodeURIComponent(e2).replace(/[^A-Za-z0-9/:]/g,"");if(je.test(t2))return null}catch{return null}return e2}function Pe(e2){return e2.replace(oe,"$1")}function _e(e2,t2,n2){let r2=n2.inline||!1,i2=n2.simple||!1;n2.inline=!0,n2.simple=!0;let l2=e2(t2,n2);return n2.inline=r2,n2.simple=i2,l2}function Fe(e2,t2,n2){let r2=n2.inline||!1,i2=n2.simple||!1;n2.inline=!1,n2.simple=!0;let l2=e2(t2,n2);return n2.inline=r2,n2.simple=i2,l2}function We(e2,t2,n2){let r2=n2.inline||!1;n2.inline=!1;let i2=e2(t2,n2);return n2.inline=r2,i2}var Ge=(e2,t2,n2)=>({children:_e(t2,e2[2],n2)});function Ze(){return{}}function qe(){return null}function Qe(...e2){return e2.filter(Boolean).join(" ")}function Ve(e2,t2,n2){let r2=e2,i2=t2.split(".");for(;i2.length&&(r2=r2[i2[0]],void 0!==r2);)i2.shift();return r2||n2}var index_modern_default=t2=>{let{children:r2="",options:i2}=t2,l2=function(e2,t3){if(null==e2)return{};var n2,r3,i3={},l3=Object.keys(e2);for(r3=0;r3<l3.length;r3++)t3.indexOf(n2=l3[r3])>=0||(i3[n2]=e2[n2]);return i3}(t2,n);return react.cloneElement(function Xe(n2="",i2={}){function u2(e2,n3,...r2){let l2=Ve(i2.overrides,`${e2}.props`,{});return i2.createElement(function(e3,t2){let n4=Ve(t2,e3);return n4?"function"==typeof n4||"object"==typeof n4&&"render"in n4?n4:Ve(t2,`${e3}.component`,e3):e3}(e2,i2.overrides),t({},n3,l2,{className:Qe(n3?.className,l2.className)||void 0}),...r2)}function Z2(e2){e2=e2.replace(w,"");let t2=!1;i2.forceInline?t2=!0:i2.forceBlock||(t2=!1===W.test(e2));let n3=ae2(oe2(t2?e2:`${ze(e2).replace(ie,"")}\n\n`,{inline:t2}));for(;"string"==typeof n3[n3.length-1]&&!n3[n3.length-1].trim();)n3.pop();if(null===i2.wrapper)return n3;let l2,r2=i2.wrapper||(t2?"span":"div");if(n3.length>1||i2.forceWrapper)l2=n3;else{if(1===n3.length)return l2=n3[0],"string"==typeof l2?u2("span",{key:"outer"},l2):l2;l2=null}return i2.createElement(r2,{key:"outer"},l2)}function q2(e2,t2){let n3=t2.match(s);return n3?n3.reduce((function(t3,n4){let r2=n4.indexOf("=");if(-1!==r2){let o2=(e3=n4.slice(0,r2),-1!==e3.indexOf("-")&&null===e3.match(M)&&(e3=e3.replace(j,(function(e4,t4){return t4.toUpperCase()}))),e3).trim(),a2=function(e3){let t4=e3[0];return('"'===t4||"'"===t4)&&e3.length>=2&&e3[e3.length-1]===t4?e3.slice(1,-1):e3}(n4.slice(r2+1).trim()),s2=l[o2]||o2;if("ref"===s2)return t3;let d2=t3[s2]=function(e3,t4,n5,r3){return"style"===t4?function(e4){let t5=[],n6="",r4=!1,i3=!1,l2="";if(!e4)return t5;for(let o4=0;o4<e4.length;o4++){let a3=e4[o4];if('"'!==a3&&"'"!==a3||r4||(i3?a3===l2&&(i3=!1,l2=""):(i3=!0,l2=a3)),"("===a3&&n6.endsWith("url")?r4=!0:")"===a3&&r4&&(r4=!1),";"!==a3||i3||r4)n6+=a3;else{let e5=n6.trim();if(e5){let n7=e5.indexOf(":");if(n7>0){let r5=e5.slice(0,n7).trim(),i4=e5.slice(n7+1).trim();t5.push([r5,i4])}}n6=""}}let o3=n6.trim();if(o3){let e5=o3.indexOf(":");if(e5>0){let n7=o3.slice(0,e5).trim(),r5=o3.slice(e5+1).trim();t5.push([n7,r5])}}return t5}(n5).reduce((function(t5,[n6,i3]){return t5[n6.replace(/(-[a-z])/g,(e4=>e4[1].toUpperCase()))]=r3(i3,e3,n6),t5}),{}):-1!==c.indexOf(t4)?r3(n5,e3,t4):(n5.match(I)&&(n5=n5.slice(1,n5.length-1)),"true"===n5||"false"!==n5&&n5)}(e2,o2,a2,i2.sanitizer);"string"==typeof d2&&(O.test(d2)||R.test(d2))&&(t3[s2]=Z2(d2.trim()))}else"style"!==n4&&(t3[l[n4]||n4]=!0);var e3;return t3}),{}):null}i2.overrides=i2.overrides||{},i2.sanitizer=i2.sanitizer||He,i2.slugify=i2.slugify||Le,i2.namedCodesToUnicode=i2.namedCodesToUnicode?t({},o,i2.namedCodesToUnicode):o,i2.createElement=i2.createElement||react.createElement;let Q2=[],V2={},X2={[r_blockQuote]:{match:De(p),order:1,parse(e2,t2,n3){let[,r2,i3]=e2[0].replace(f,"").match(h);return{alert:r2,children:t2(i3,n3)}},render(e2,t2,n3){let l2={key:n3.key};return e2.alert&&(l2.className="markdown-alert-"+i2.slugify(e2.alert.toLowerCase(),Le),e2.children.unshift({attrs:{},children:[{type:r_text,text:e2.alert}],noInnerParse:!0,type:r_htmlBlock,tag:"header"})),u2("blockquote",l2,t2(e2.children,n3))}},[r_breakLine]:{match:Ue(m),order:1,parse:Ze,render:(e2,t2,n3)=>u2("br",{key:n3.key})},[r_breakThematic]:{match:De(g),order:1,parse:Ze,render:(e2,t2,n3)=>u2("hr",{key:n3.key})},[r_codeBlock]:{match:De(k),order:0,parse:e2=>({lang:void 0,text:ze(e2[0].replace(/^ {4}/gm,"")).replace(ne,"$1")}),render:(e2,n3,r2)=>u2("pre",{key:r2.key},u2("code",t({},e2.attrs,{className:e2.lang?`lang-${e2.lang}`:""}),e2.text))},[r_codeFenced]:{match:De(y),order:0,parse:e2=>({attrs:q2("code",e2[3]||""),lang:e2[2]||void 0,text:e2[4],type:r_codeBlock})},[r_codeInline]:{match:Ie(x),order:3,parse:e2=>({text:e2[2].replace(ne,"$1")}),render:(e2,t2,n3)=>u2("code",{key:n3.key},e2.text)},[r_footnote]:{match:De(C),order:0,parse:e2=>(Q2.push({footnote:e2[2],identifier:e2[1]}),{}),render:qe},[r_footnoteReference]:{match:Re($),order:1,parse:e2=>({target:`#${i2.slugify(e2[1],Le)}`,text:e2[1]}),render:(e2,t2,n3)=>u2("a",{key:n3.key,href:i2.sanitizer(e2.target,"a","href")},u2("sup",{key:n3.key},e2.text))},[r_gfmTask]:{match:Re(E),order:1,parse:e2=>({completed:"x"===e2[1].toLowerCase()}),render:(e2,t2,n3)=>u2("input",{checked:e2.completed,key:n3.key,readOnly:!0,type:"checkbox"})},[r_heading]:{match:De(i2.enforceAtxHeadings?L:z),order:1,parse:(e2,t2,n3)=>({children:_e(t2,e2[2],n3),id:i2.slugify(e2[2],Le),level:e2[1].length}),render:(e2,t2,n3)=>u2(`h${e2.level}`,{id:e2.id,key:n3.key},t2(e2.children,n3))},[r_headingSetext]:{match:De(A),order:0,parse:(e2,t2,n3)=>({children:_e(t2,e2[1],n3),level:"="===e2[2]?1:2,type:r_heading})},[r_htmlBlock]:{match:Ue(O),order:1,parse(e2,t2,n3){let[,r2]=e2[3].match(le),i3=new RegExp(`^${r2}`,"gm"),l2=e2[3].replace(i3,""),o2=(c2=l2,Ee.some((e3=>e3.test(c2)))?We:_e);var c2;let s2=e2[1].toLowerCase(),d2=-1!==a.indexOf(s2),u3=(d2?s2:e2[1]).trim(),p2={attrs:q2(u3,e2[2]),noInnerParse:d2,tag:u3};return n3.inAnchor=n3.inAnchor||"a"===s2,d2?p2.text=e2[3]:p2.children=o2(t2,l2,n3),n3.inAnchor=!1,p2},render:(e2,n3,r2)=>u2(e2.tag,t({key:r2.key},e2.attrs),e2.text||(e2.children?n3(e2.children,r2):""))},[r_htmlSelfClosing]:{match:Ue(R),order:1,parse(e2){let t2=e2[1].trim();return{attrs:q2(t2,e2[2]||""),tag:t2}},render:(e2,n3,r2)=>u2(e2.tag,t({},e2.attrs,{key:r2.key}))},[r_htmlComment]:{match:Ue(B),order:1,parse:()=>({}),render:qe},[r_image]:{match:Ie(Se),order:1,parse:e2=>({alt:e2[1],target:Pe(e2[2]),title:e2[3]}),render:(e2,t2,n3)=>u2("img",{key:n3.key,alt:e2.alt||void 0,title:e2.title||void 0,src:i2.sanitizer(e2.target,"img","src")})},[r_link]:{match:Re($e),order:3,parse:(e2,t2,n3)=>({children:Fe(t2,e2[1],n3),target:Pe(e2[2]),title:e2[3]}),render:(e2,t2,n3)=>u2("a",{key:n3.key,href:i2.sanitizer(e2.target,"a","href"),title:e2.title},t2(e2.children,n3))},[r_linkAngleBraceStyleDetector]:{match:Re(N),order:0,parse:e2=>({children:[{text:e2[1],type:r_text}],target:e2[1],type:r_link})},[r_linkBareUrlDetector]:{match:Me(((e2,t2)=>t2.inAnchor||i2.disableAutoLink?null:Re(D)(e2,t2))),order:0,parse:e2=>({children:[{text:e2[1],type:r_text}],target:e2[1],title:void 0,type:r_link})},[r_linkMailtoDetector]:{match:Re(U),order:0,parse(e2){let t2=e2[1],n3=e2[1];return d.test(n3)||(n3="mailto:"+n3),{children:[{text:t2.replace("mailto:",""),type:r_text}],target:n3,type:r_link}}},[r_orderedList]:Ce(u2,1),[r_unorderedList]:Ce(u2,2),[r_newlineCoalescer]:{match:De(b),order:3,parse:Ze,render:()=>"\n"},[r_paragraph]:{match:Me(Ne),order:3,parse:Ge,render:(e2,t2,n3)=>u2("p",{key:n3.key},t2(e2.children,n3))},[r_ref]:{match:Re(P),order:0,parse:e2=>(V2[e2[1]]={target:e2[2],title:e2[4]},{}),render:qe},[r_refImage]:{match:Ie(_),order:0,parse:e2=>({alt:e2[1]||void 0,ref:e2[2]}),render:(e2,t2,n3)=>V2[e2.ref]?u2("img",{key:n3.key,alt:e2.alt,src:i2.sanitizer(V2[e2.ref].target,"img","src"),title:V2[e2.ref].title}):null},[r_refLink]:{match:Re(F),order:0,parse:(e2,t2,n3)=>({children:t2(e2[1],n3),fallbackChildren:e2[0],ref:e2[2]}),render:(e2,t2,n3)=>V2[e2.ref]?u2("a",{key:n3.key,href:i2.sanitizer(V2[e2.ref].target,"a","href"),title:V2[e2.ref].title},t2(e2.children,n3)):u2("span",{key:n3.key},e2.fallbackChildren)},[r_table]:{match:De(H),order:1,parse:Te,render(e2,t2,n3){let r2=e2;return u2("table",{key:n3.key},u2("thead",null,u2("tr",null,r2.header.map((function(e3,i3){return u2("th",{key:i3,style:Be(r2,i3)},t2(e3,n3))})))),u2("tbody",null,r2.cells.map((function(e3,i3){return u2("tr",{key:i3},e3.map((function(e4,i4){return u2("td",{key:i4,style:Be(r2,i4)},t2(e4,n3))})))}))))}},[r_text]:{match:Ue(re),order:4,parse:e2=>({text:e2[0].replace(T,((e3,t2)=>i2.namedCodesToUnicode[t2]?i2.namedCodesToUnicode[t2]:e3))}),render:e2=>e2.text},[r_textBolded]:{match:Ie(J),order:2,parse:(e2,t2,n3)=>({children:t2(e2[2],n3)}),render:(e2,t2,n3)=>u2("strong",{key:n3.key},t2(e2.children,n3))},[r_textEmphasized]:{match:Ie(K),order:3,parse:(e2,t2,n3)=>({children:t2(e2[2],n3)}),render:(e2,t2,n3)=>u2("em",{key:n3.key},t2(e2.children,n3))},[r_textEscaped]:{match:Ie(te),order:1,parse:e2=>({text:e2[1],type:r_text})},[r_textMarked]:{match:Ie(Y),order:3,parse:Ge,render:(e2,t2,n3)=>u2("mark",{key:n3.key},t2(e2.children,n3))},[r_textStrikethroughed]:{match:Ie(ee),order:3,parse:Ge,render:(e2,t2,n3)=>u2("del",{key:n3.key},t2(e2.children,n3))}};!0===i2.disableParsingRawHTML&&(delete X2[r_htmlBlock],delete X2[r_htmlSelfClosing]);let oe2=function(e2){let t2=Object.keys(e2);function n3(r2,i3){let l2,o2,a2=[],c2="",s2="";for(i3.prevCapture=i3.prevCapture||"";r2;){let d2=0;for(;d2<t2.length;){if(c2=t2[d2],l2=e2[c2],i3.inline&&!l2.match.inline){d2++;continue}let u3=l2.match(r2,i3);if(u3){s2=u3[0],i3.prevCapture+=s2,r2=r2.substring(s2.length),o2=l2.parse(u3,n3,i3),null==o2.type&&(o2.type=c2),a2.push(o2);break}d2++}}return i3.prevCapture="",a2}return t2.sort((function(t3,n4){let r2=e2[t3].order,i3=e2[n4].order;return r2!==i3?r2-i3:t3<n4?-1:1})),function(e3,t3){return n3(e3.replace(v,"\n").replace(S,"").replace(G," "),t3)}}(X2),ae2=(ce2=function(e2,t2){return function(n3,r2,i3){let l2=e2[n3.type].render;return t2?t2((()=>l2(n3,r2,i3)),n3,r2,i3):l2(n3,r2,i3)}}(X2,i2.renderRule),function e2(t2,n3={}){if(Array.isArray(t2)){let r2=n3.key,i3=[],l2=!1;for(let r3=0;r3<t2.length;r3++){n3.key=r3;let o2=e2(t2[r3],n3),a2="string"==typeof o2;a2&&l2?i3[i3.length-1]+=o2:null!==o2&&i3.push(o2),l2=a2}return n3.key=r2,i3}return ce2(t2,e2,n3)});var ce2;let se2=Z2(n2);return Q2.length?u2("div",null,se2,u2("footer",{key:"footer"},Q2.map((function(e2){return u2("div",{id:i2.slugify(e2.identifier,Le),key:e2.identifier},e2.identifier,ae2(oe2(e2.footnote,{inline:!0})))})))):se2}(r2,i2),l2)},Label2=theming.I4.label((({theme})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:theme.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${theme.color.secondary} 0 0 0 1px inset !important`},"@media (forced-colors: active)":{"&:focus":{outline:"1px solid highlight"}}},span:{textAlign:"center",fontSize:theme.typography.size.s1,fontWeight:theme.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:curriedTransparentize$1(.5,theme.color.defaultText),background:"transparent","&:hover":{boxShadow:`${curriedOpacify$1(.3,theme.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${curriedOpacify$1(.05,theme.appBorderColor)} 0 0 0 2px inset`,color:curriedOpacify$1(1,theme.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:theme.boolean.selectedBackground,boxShadow:"light"===theme.base?`${curriedOpacify$1(.1,theme.appBorderColor)} 0 0 2px`:`${theme.appBorderColor} 0 0 0 1px`,color:theme.color.defaultText,padding:"7px 15px","@media (forced-colors: active)":{textDecoration:"underline"}}}))),FormInput=(0,theming.I4)(components.lV.Input)((({readOnly})=>({opacity:readOnly?.5:1}))),FlexSpaced=theming.I4.div((({theme})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:"light"===theme.base?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}}))),Wrapper4=theming.I4.label({display:"flex"}),FormInput2=(0,theming.I4)(components.lV.Input)((({readOnly})=>({opacity:readOnly?.5:1}))),selectedKey=(value2,options)=>{let entry=options&&Object.entries(options).find((([_key,val])=>val===value2));return entry?entry[0]:void 0},selectedKeys=(value2,options)=>value2&&options?Object.entries(options).filter((entry=>value2.includes(entry[1]))).map((entry=>entry[0])):[],selectedValues=(keys,options)=>keys&&options&&keys.map((key=>options[key])),Wrapper5=theming.I4.div((({isInline})=>isInline?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}}),(props=>{if("true"===props["aria-readonly"])return{input:{cursor:"not-allowed"}}})),Text=theming.I4.span({"[aria-readonly=true] &":{opacity:.5}}),Label3=theming.I4.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),CheckboxControl=({name,options,value:value2,onChange,isInline,argType})=>{if(!options)return external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn(`Checkbox with no options: ${name}`),react.createElement(react.Fragment,null,"-");let initial=selectedKeys(value2||[],options),[selected,setSelected]=(0,react.useState)(initial),readonly=!!argType?.table?.readonly,handleChange=e2=>{let option=e2.target.value,updated=[...selected];updated.includes(option)?updated.splice(updated.indexOf(option),1):updated.push(option),onChange(selectedValues(updated,options)),setSelected(updated)};(0,react.useEffect)((()=>{setSelected(selectedKeys(value2||[],options))}),[value2]);let controlId=(0,chunk_SPFYY5GD.ZA)(name);return react.createElement(Wrapper5,{"aria-readonly":readonly,isInline},Object.keys(options).map(((key,index)=>{let id=`${controlId}-${index}`;return react.createElement(Label3,{key:id,htmlFor:id},react.createElement("input",{type:"checkbox",disabled:readonly,id,name:id,value:key,onChange:handleChange,checked:selected?.includes(key)}),react.createElement(Text,null,key))})))},Wrapper6=theming.I4.div((({isInline})=>isInline?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}}),(props=>{if("true"===props["aria-readonly"])return{input:{cursor:"not-allowed"}}})),Text2=theming.I4.span({"[aria-readonly=true] &":{opacity:.5}}),Label4=theming.I4.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),RadioControl=({name,options,value:value2,onChange,isInline,argType})=>{if(!options)return external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn(`Radio with no options: ${name}`),react.createElement(react.Fragment,null,"-");let selection=selectedKey(value2,options),controlId=(0,chunk_SPFYY5GD.ZA)(name),readonly=!!argType?.table?.readonly;return react.createElement(Wrapper6,{"aria-readonly":readonly,isInline},Object.keys(options).map(((key,index)=>{let id=`${controlId}-${index}`;return react.createElement(Label4,{key:id,htmlFor:id},react.createElement("input",{type:"radio",id,name:controlId,disabled:readonly,value:key,onChange:e2=>onChange(options[e2.currentTarget.value]),checked:key===selection}),react.createElement(Text2,null,key))})))},OptionsSelect=theming.I4.select({appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},(({theme})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:theme.input.color||"inherit",background:theme.input.background,borderRadius:theme.input.borderRadius,boxShadow:`${theme.input.border} 0 0 0 1px inset`,fontSize:theme.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${theme.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:theme.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}}))),SelectWrapper=theming.I4.span((({theme})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:theme.textMutedColor,path:{fill:theme.textMutedColor}}}))),SingleSelect=({name,value:value2,options,onChange,argType})=>{let selection=selectedKey(value2,options)||"Choose option...",controlId=(0,chunk_SPFYY5GD.ZA)(name),readonly=!!argType?.table?.readonly;return react.createElement(SelectWrapper,null,react.createElement(dist.abt,null),react.createElement(OptionsSelect,{disabled:readonly,id:controlId,value:selection,onChange:e2=>{onChange(options[e2.currentTarget.value])}},react.createElement("option",{key:"no-selection",disabled:!0},"Choose option..."),Object.keys(options).map((key=>react.createElement("option",{key,value:key},key)))))},MultiSelect=({name,value:value2,options,onChange,argType})=>{let selection=selectedKeys(value2,options),controlId=(0,chunk_SPFYY5GD.ZA)(name),readonly=!!argType?.table?.readonly;return react.createElement(SelectWrapper,null,react.createElement(OptionsSelect,{disabled:readonly,id:controlId,multiple:!0,value:selection,onChange:e2=>{let selection2=Array.from(e2.currentTarget.options).filter((option=>option.selected)).map((option=>option.value));onChange(selectedValues(selection2,options))}},Object.keys(options).map((key=>react.createElement("option",{key,value:key},key)))))},SelectControl=props=>{let{name,options}=props;return options?props.isMulti?react.createElement(MultiSelect,{...props}):react.createElement(SingleSelect,{...props}):(external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn(`Select with no options: ${name}`),react.createElement(react.Fragment,null,"-"))},normalizeOptions=(options,labels)=>Array.isArray(options)?options.reduce(((acc,item)=>(acc[labels?.[item]||String(item)]=item,acc)),{}):options,Controls={check:CheckboxControl,"inline-check":CheckboxControl,radio:RadioControl,"inline-radio":RadioControl,select:SelectControl,"multi-select":SelectControl},OptionsControl=props=>{let{type="select",labels,argType}=props,normalized={...props,argType,options:argType?normalizeOptions(argType.options,labels):{},isInline:type.includes("inline"),isMulti:type.includes("multi")},Control=Controls[type];if(Control)return react.createElement(Control,{...normalized});throw new Error(`Unknown options type: ${type}`)},Container=theming.I4.div((({theme})=>({position:"relative",":hover":{"& > .rejt-accordion-button::after":{background:theme.color.secondary},"& > .rejt-accordion-region > :is(.rejt-plus-menu, .rejt-minus-menu)":{opacity:1}}}))),Trigger=theming.I4.button((({theme})=>({padding:0,background:"transparent",border:"none",marginRight:"3px",lineHeight:"22px",color:theme.color.secondary,"::after":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",height:"22px",background:"transparent",borderRadius:4,transition:"background 0.2s",opacity:.1,paddingRight:"20px"},"::before":{content:'""',position:"absolute"},'&[aria-expanded="true"]::before':{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},'&[aria-expanded="false"]::before':{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"}}))),Region=theming.I4.div({display:"inline"});function JsonNodeAccordion({children,name,collapsed,keyPath,deep,...props}){let accordionKey=`${keyPath.at(-1)??"root"}-${name}-${deep}`,ids={trigger:`${accordionKey}-trigger`,region:`${accordionKey}-region`},containerTag=keyPath.length>0?"li":"div";return react.createElement(Container,{as:containerTag},react.createElement(Trigger,{type:"button","aria-expanded":!collapsed,id:ids.trigger,"aria-controls":ids.region,className:"rejt-accordion-button",...props},name," :"),react.createElement(Region,{role:"region",id:ids.region,"aria-labelledby":ids.trigger,className:"rejt-accordion-region"},children))}function getObjectType(obj){return null===obj||"object"!=typeof obj||Array.isArray(obj)||"function"!=typeof obj[Symbol.iterator]?Object.prototype.toString.call(obj).slice(8,-1):"Iterable"}function isComponentWillChange(oldValue,newValue){let oldType=getObjectType(oldValue),newType=getObjectType(newValue);return("Function"===oldType||"Function"===newType)&&newType!==oldType}var JsonAddValue=class extends react.Component{constructor(props){super(props),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey,inputRefValue}=this.state,{onlyValue}=this.props;inputRefKey&&"function"==typeof inputRefKey.focus&&inputRefKey.focus(),onlyValue&&inputRefValue&&"function"==typeof inputRefValue.focus&&inputRefValue.focus()}onKeydown(event){if(event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat)return;let{inputRefKey,inputRefValue}=this.state,{addButtonElement,handleCancel}=this.props;[inputRefKey,inputRefValue,addButtonElement].some((elm=>elm===event.target))&&(("Enter"===event.code||"Enter"===event.key)&&(event.preventDefault(),this.onSubmit()),("Escape"===event.code||"Escape"===event.key)&&(event.preventDefault(),handleCancel()))}onSubmit(){let{handleAdd,onlyValue,onSubmitValueParser,keyPath,deep}=this.props,{inputRefKey,inputRefValue}=this.state,result={};if(!onlyValue){if(!inputRefKey.value)return;result.key=inputRefKey.value}result.newValue=onSubmitValueParser(!1,keyPath,deep,result.key,inputRefValue.value),handleAdd(result)}refInputKey(node){this.state.inputRefKey=node}refInputValue(node){this.state.inputRefValue=node}render(){let{handleCancel,onlyValue,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep}=this.props,addButtonElementLayout=addButtonElement&&(0,react.cloneElement)(addButtonElement,{onClick:this.onSubmit}),cancelButtonElementLayout=cancelButtonElement&&(0,react.cloneElement)(cancelButtonElement,{onClick:handleCancel}),inputElementValue=inputElementGenerator("value",keyPath,deep),inputElementValueLayout=(0,react.cloneElement)(inputElementValue,{placeholder:"Value",ref:this.refInputValue,onKeyDown:this.onKeydown}),inputElementKeyLayout=null;if(!onlyValue){let inputElementKey=inputElementGenerator("key",keyPath,deep);inputElementKeyLayout=(0,react.cloneElement)(inputElementKey,{placeholder:"Key",ref:this.refInputKey,onKeyDown:this.onKeydown})}return react.createElement("span",{className:"rejt-add-value-node"},inputElementKeyLayout,inputElementValueLayout,addButtonElementLayout,cancelButtonElementLayout)}};JsonAddValue.defaultProps={onlyValue:!1,addButtonElement:react.createElement("button",null,"+"),cancelButtonElement:react.createElement("button",null,"c")};var JsonArray=class extends react.Component{constructor(props){super(props);let keyPath=[...props.keyPath||[],props.name];this.state={data:props.data,name:props.name,keyPath:keyPath??[],deep:props.deep??0,nextDeep:(props.deep??0)+1,collapsed:props.isCollapsed(keyPath,props.deep??0,props.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}onChildUpdate(childKey,childData){let{data,keyPath=[]}=this.state;data[childKey]=childData,this.setState({data});let{onUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState((state=>({collapsed:!state.collapsed})))}handleRemoveItem(index){return()=>{let{beforeRemoveAction,logger:logger4}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[index];(beforeRemoveAction||Promise.resolve.bind(Promise))(index,keyPath,deep,oldValue).then((()=>{let deltaUpdateResult={keyPath,deep,key:index,oldValue,type:"REMOVE_DELTA_TYPE"};data.splice(index,1),this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate(deltaUpdateResult)})).catch(logger4.error)}}handleAddValueAdd({key,newValue}){let{data,keyPath=[],nextDeep:deep}=this.state,{beforeAddAction,logger:logger4}=this.props;(beforeAddAction||Promise.resolve.bind(Promise))(key,keyPath,deep,newValue).then((()=>{data[key]=newValue,this.setState({data}),this.handleAddValueCancel();let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:"ADD_DELTA_TYPE",keyPath,deep,key,newValue})})).catch(logger4.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key,value:value2}){return new Promise(((resolve,reject)=>{let{beforeUpdateAction}=this.props,{data,keyPath,nextDeep:deep}=this.state,oldValue=data[key];(beforeUpdateAction||Promise.resolve.bind(Promise))(key,keyPath,deep,oldValue,value2).then((()=>{data[key]=value2,this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:"UPDATE_DELTA_TYPE",keyPath,deep,key,newValue:value2,oldValue}),resolve(void 0)})).catch(reject)}))}renderCollapsed(){let{name,data,keyPath,deep}=this.state,{handleRemove,readOnly,getStyle,dataType,minusMenuElement}=this.props,{minus,collapsed}=getStyle(name,data,keyPath,deep,dataType),isReadOnly=readOnly(name,data,keyPath,deep,dataType),removeItemButton=minusMenuElement&&(0,react.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:minus,"aria-label":`remove the array '${String(name)}'`});return react.createElement(react.Fragment,null,react.createElement("span",{style:collapsed},"[...] ",data.length," ",1===data.length?"item":"items"),!isReadOnly&&removeItemButton)}renderNotCollapsed(){let{name,data,keyPath,deep,addFormVisible,nextDeep}=this.state,{isCollapsed,handleRemove,onDeltaUpdate,readOnly,getStyle,dataType,addButtonElement,cancelButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,{minus,plus,delimiter,ul,addForm}=getStyle(name,data,keyPath,deep,dataType),isReadOnly=readOnly(name,data,keyPath,deep,dataType),addItemButton=plusMenuElement&&(0,react.cloneElement)(plusMenuElement,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:plus,"aria-label":`add a new item to the '${String(name)}' array`}),removeItemButton=minusMenuElement&&(0,react.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:minus,"aria-label":`remove the array '${String(name)}'`});return react.createElement(react.Fragment,null,react.createElement("span",{className:"rejt-not-collapsed-delimiter",style:delimiter},"["),!addFormVisible&&addItemButton,react.createElement("ul",{className:"rejt-not-collapsed-list",style:ul},data.map(((item,index)=>react.createElement(JsonNode,{key:index,name:index.toString(),data:item,keyPath,deep:nextDeep,isCollapsed,handleRemove:this.handleRemoveItem(index),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser})))),!isReadOnly&&addFormVisible&&react.createElement("div",{className:"rejt-add-form",style:addForm},react.createElement(JsonAddValue,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep,onSubmitValueParser})),react.createElement("span",{className:"rejt-not-collapsed-delimiter",style:delimiter},"]"),!isReadOnly&&removeItemButton)}render(){let{name,collapsed,keyPath,deep}=this.state,value2=collapsed?this.renderCollapsed():this.renderNotCollapsed();return react.createElement(JsonNodeAccordion,{name,collapsed,deep,keyPath,onClick:this.handleCollapseMode},value2)}};JsonArray.defaultProps={keyPath:[],deep:0,minusMenuElement:react.createElement("span",null," - "),plusMenuElement:react.createElement("span",null," + ")};var JsonFunctionValue=class extends react.Component{constructor(props){super(props);let keyPath=[...props.keyPath||[],props.name];this.state={value:props.value,name:props.name,keyPath:keyPath??[],deep:props.deep??0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(props,state){return props.value!==state.value?{value:props.value}:null}componentDidUpdate(){let{editEnabled,inputRef,name,value:value2,keyPath,deep}=this.state,{readOnly,dataType}=this.props,readOnlyResult=readOnly(name,value2,keyPath,deep,dataType);editEnabled&&!readOnlyResult&&"function"==typeof inputRef.focus&&inputRef.focus()}onKeydown(event){let{inputRef}=this.state;event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||inputRef!==event.target||(("Enter"===event.code||"Enter"===event.key)&&(event.preventDefault(),this.handleEdit()),("Escape"===event.code||"Escape"===event.key)&&(event.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue,originalValue,logger:logger4,onSubmitValueParser,keyPath}=this.props,{inputRef,name,deep}=this.state;if(!inputRef)return;let newValue=onSubmitValueParser(!0,keyPath,deep,name,inputRef.value),result={value:newValue,key:name};(handleUpdateValue||Promise.resolve.bind(Promise))(result).then((()=>{isComponentWillChange(originalValue,newValue)||this.handleCancelEdit()})).catch(logger4.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(node){this.state.inputRef=node}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name,value:value2,editEnabled,keyPath,deep}=this.state,{handleRemove,originalValue,readOnly,dataType,getStyle,textareaElementGenerator,minusMenuElement,keyPath:comeFromKeyPath=[]}=this.props,style=getStyle(name,originalValue,keyPath,deep,dataType),result=null,minusElement=null,resultOnlyResult=readOnly(name,originalValue,keyPath,deep,dataType);if(editEnabled&&!resultOnlyResult){let textareaElement=textareaElementGenerator("value",comeFromKeyPath,deep,name,originalValue,dataType),textareaElementLayout=(0,react.cloneElement)(textareaElement,{ref:this.refInput,defaultValue:value2,onKeyDown:this.onKeydown});result=react.createElement("span",{className:"rejt-edit-form",style:style.editForm},textareaElementLayout),minusElement=null}else{result=react.createElement("span",{className:"rejt-value",style:style.value,onClick:resultOnlyResult?void 0:this.handleEditMode},value2);let parentPropertyName=comeFromKeyPath.at(-1),minusMenuLayout=minusMenuElement&&(0,react.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:style.minus,"aria-label":`remove the function '${String(name)}'${String(parentPropertyName)?` from '${String(parentPropertyName)}'`:""}`});minusElement=resultOnlyResult?null:minusMenuLayout}return react.createElement("li",{className:"rejt-value-node",style:style.li},react.createElement("span",{className:"rejt-name",style:style.name},name," :"," "),result,minusElement)}};JsonFunctionValue.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>{},cancelButtonElement:react.createElement("button",null,"c"),minusMenuElement:react.createElement("span",null," - ")};var JsonNode=class extends react.Component{constructor(props){super(props),this.state={data:props.data,name:props.name,keyPath:props.keyPath??[],deep:props.deep??0}}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}render(){let{data,name,keyPath,deep}=this.state,{isCollapsed,handleRemove,handleUpdateValue,onUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,readOnlyTrue=()=>!0,dataType=getObjectType(data);switch(dataType){case"Error":return react.createElement(JsonObject,{data,name,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly:readOnlyTrue,dataType,getStyle,addButtonElement,cancelButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case"Object":return react.createElement(JsonObject,{data,name,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly,dataType,getStyle,addButtonElement,cancelButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case"Array":return react.createElement(JsonArray,{data,name,isCollapsed,keyPath,deep,handleRemove,onUpdate,onDeltaUpdate,readOnly,dataType,getStyle,addButtonElement,cancelButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser});case"String":return react.createElement(JsonValue,{name,value:`"${data}"`,originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Number":return react.createElement(JsonValue,{name,value:data,originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Boolean":return react.createElement(JsonValue,{name,value:data?"true":"false",originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Date":return react.createElement(JsonValue,{name,value:data.toISOString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly:readOnlyTrue,dataType,getStyle,cancelButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Null":return react.createElement(JsonValue,{name,value:"null",originalValue:"null",keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Undefined":return react.createElement(JsonValue,{name,value:"undefined",originalValue:"undefined",keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Function":return react.createElement(JsonFunctionValue,{name,value:data.toString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly,dataType,getStyle,cancelButtonElement,textareaElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});case"Symbol":return react.createElement(JsonValue,{name,value:data.toString(),originalValue:data,keyPath,deep,handleRemove,handleUpdateValue,readOnly:readOnlyTrue,dataType,getStyle,cancelButtonElement,inputElementGenerator,minusMenuElement,logger:logger4,onSubmitValueParser});default:return null}}};JsonNode.defaultProps={keyPath:[],deep:0};var JsonObject=class extends react.Component{constructor(props){super(props);let keyPath=-1===props.deep?[]:[...props.keyPath||[],props.name];this.state={name:props.name,data:props.data,keyPath:keyPath??[],deep:props.deep??0,nextDeep:(props.deep??0)+1,collapsed:props.isCollapsed(keyPath,props.deep??0,props.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(props,state){return props.data!==state.data?{data:props.data}:null}onChildUpdate(childKey,childData){let{data,keyPath=[]}=this.state;data[childKey]=childData,this.setState({data});let{onUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key,newValue}){let{data,keyPath=[],nextDeep:deep}=this.state,{beforeAddAction,logger:logger4}=this.props;(beforeAddAction||Promise.resolve.bind(Promise))(key,keyPath,deep,newValue).then((()=>{data[key]=newValue,this.setState({data}),this.handleAddValueCancel();let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:"ADD_DELTA_TYPE",keyPath,deep,key,newValue})})).catch(logger4.error)}handleRemoveValue(key){return()=>{let{beforeRemoveAction,logger:logger4}=this.props,{data,keyPath=[],nextDeep:deep}=this.state,oldValue=data[key];(beforeRemoveAction||Promise.resolve.bind(Promise))(key,keyPath,deep,oldValue).then((()=>{let deltaUpdateResult={keyPath,deep,key,oldValue,type:"REMOVE_DELTA_TYPE"};delete data[key],this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate(deltaUpdateResult)})).catch(logger4.error)}}handleCollapseMode(){this.setState((state=>({collapsed:!state.collapsed})))}handleEditValue({key,value:value2}){return new Promise(((resolve,reject)=>{let{beforeUpdateAction}=this.props,{data,keyPath=[],nextDeep:deep}=this.state,oldValue=data[key];(beforeUpdateAction||Promise.resolve.bind(Promise))(key,keyPath,deep,oldValue,value2).then((()=>{data[key]=value2,this.setState({data});let{onUpdate,onDeltaUpdate}=this.props;onUpdate(keyPath[keyPath.length-1],data),onDeltaUpdate({type:"UPDATE_DELTA_TYPE",keyPath,deep,key,newValue:value2,oldValue}),resolve()})).catch(reject)}))}renderCollapsed(){let{name,keyPath,deep,data}=this.state,{handleRemove,readOnly,dataType,getStyle,minusMenuElement}=this.props,{minus,collapsed}=getStyle(name,data,keyPath,deep,dataType),keyList=Object.getOwnPropertyNames(data),isReadOnly=readOnly(name,data,keyPath,deep,dataType),removeItemButton=minusMenuElement&&(0,react.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:minus,"aria-label":`remove the object '${String(name)}'`});return react.createElement(react.Fragment,null,react.createElement("span",{style:collapsed},"{...}"," ",keyList.length," ",1===keyList.length?"key":"keys"),!isReadOnly&&removeItemButton)}renderNotCollapsed(){let{name,data,keyPath,deep,nextDeep,addFormVisible}=this.state,{isCollapsed,handleRemove,onDeltaUpdate,readOnly,getStyle,dataType,addButtonElement,cancelButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser}=this.props,{minus,plus,addForm,ul,delimiter}=getStyle(name,data,keyPath,deep,dataType),keyList=Object.getOwnPropertyNames(data),isReadOnly=readOnly(name,data,keyPath,deep,dataType),addItemButton=plusMenuElement&&(0,react.cloneElement)(plusMenuElement,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:plus,"aria-label":`add a new property to the object '${String(name)}'`}),removeItemButton=minusMenuElement&&(0,react.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:minus,"aria-label":`remove the object '${String(name)}'`}),list=keyList.map((key=>react.createElement(JsonNode,{key,name:key,data:data[key],keyPath,deep:nextDeep,isCollapsed,handleRemove:this.handleRemoveValue(key),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,inputElementGenerator,textareaElementGenerator,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser})));return react.createElement(react.Fragment,null,react.createElement("span",{className:"rejt-not-collapsed-delimiter",style:delimiter},"{"),!isReadOnly&&addItemButton,react.createElement("ul",{className:"rejt-not-collapsed-list",style:ul},list),!isReadOnly&&addFormVisible&&react.createElement("div",{className:"rejt-add-form",style:addForm},react.createElement(JsonAddValue,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement,cancelButtonElement,inputElementGenerator,keyPath,deep,onSubmitValueParser})),react.createElement("span",{className:"rejt-not-collapsed-delimiter",style:delimiter},"}"),!isReadOnly&&removeItemButton)}render(){let{name,collapsed,keyPath,deep=0}=this.state,value2=collapsed?this.renderCollapsed():this.renderNotCollapsed();return react.createElement(JsonNodeAccordion,{name,collapsed,deep,keyPath,onClick:this.handleCollapseMode},value2)}};JsonObject.defaultProps={keyPath:[],deep:0,minusMenuElement:react.createElement("span",null," - "),plusMenuElement:react.createElement("span",null," + ")};var JsonValue=class extends react.Component{constructor(props){super(props);let keyPath=[...props.keyPath||[],props.name];this.state={value:props.value,name:props.name,keyPath:keyPath??[],deep:props.deep??0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(props,state){return props.value!==state.value?{value:props.value}:null}componentDidUpdate(){let{editEnabled,inputRef,name,value:value2,keyPath,deep}=this.state,{readOnly,dataType}=this.props,isReadOnly=readOnly(name,value2,keyPath,deep,dataType);editEnabled&&!isReadOnly&&"function"==typeof inputRef.focus&&inputRef.focus()}onKeydown(event){let{inputRef}=this.state;event.altKey||event.ctrlKey||event.metaKey||event.shiftKey||event.repeat||inputRef!==event.target||(("Enter"===event.code||"Enter"===event.key)&&(event.preventDefault(),this.handleEdit()),("Escape"===event.code||"Escape"===event.key)&&(event.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue,originalValue,logger:logger4,onSubmitValueParser,keyPath}=this.props,{inputRef,name,deep}=this.state;if(!inputRef)return;let newValue=onSubmitValueParser(!0,keyPath,deep,name,inputRef.value),result={value:newValue,key:name};(handleUpdateValue||Promise.resolve.bind(Promise))(result).then((()=>{isComponentWillChange(originalValue,newValue)||this.handleCancelEdit()})).catch(logger4.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(node){this.state.inputRef=node}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name,value:value2,editEnabled,keyPath,deep}=this.state,{handleRemove,originalValue,readOnly,dataType,getStyle,inputElementGenerator,minusMenuElement,keyPath:comeFromKeyPath}=this.props,style=getStyle(name,originalValue,keyPath,deep,dataType),isReadOnly=readOnly(name,originalValue,keyPath,deep,dataType),isEditing=editEnabled&&!isReadOnly,inputElement=inputElementGenerator("value",comeFromKeyPath,deep,name,originalValue,dataType),inputElementLayout=(0,react.cloneElement)(inputElement,{ref:this.refInput,defaultValue:JSON.stringify(originalValue),onKeyDown:this.onKeydown}),parentPropertyName=keyPath.at(-2),minusMenuLayout=minusMenuElement&&(0,react.cloneElement)(minusMenuElement,{onClick:handleRemove,className:"rejt-minus-menu",style:style.minus,"aria-label":`remove the property '${String(name)}' with value '${String(originalValue)}'${String(parentPropertyName)?` from '${String(parentPropertyName)}'`:""}`});return react.createElement("li",{className:"rejt-value-node",style:style.li},react.createElement("span",{className:"rejt-name",style:style.name},name," : "),isEditing?react.createElement("span",{className:"rejt-edit-form",style:style.editForm},inputElementLayout):react.createElement("span",{className:"rejt-value",style:style.value,onClick:isReadOnly?void 0:this.handleEditMode},String(value2)),!isReadOnly&&!isEditing&&minusMenuLayout)}};JsonValue.defaultProps={keyPath:[],deep:0,handleUpdateValue:()=>Promise.resolve(),cancelButtonElement:react.createElement("button",null,"c"),minusMenuElement:react.createElement("span",null," - ")};var object={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},array={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},value={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}},JsonTree=class extends react.Component{constructor(props){super(props),this.state={data:props.data,rootName:props.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(props,state){return props.data!==state.data||props.rootName!==state.rootName?{data:props.data,rootName:props.rootName}:null}onUpdate(key,data){this.setState({data}),this.props.onFullyUpdate?.(data)}removeRoot(){this.onUpdate(null,null)}render(){let{data,rootName}=this.state,{isCollapsed,onDeltaUpdate,readOnly,getStyle,addButtonElement,cancelButtonElement,inputElement,textareaElement,minusMenuElement,plusMenuElement,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4,onSubmitValueParser,fallback=null}=this.props,dataType=getObjectType(data),readOnlyFunction=readOnly;"Boolean"===getObjectType(readOnly)&&(readOnlyFunction=()=>readOnly);let inputElementFunction=inputElement;inputElement&&"Function"!==getObjectType(inputElement)&&(inputElementFunction=()=>inputElement);let textareaElementFunction=textareaElement;return textareaElement&&"Function"!==getObjectType(textareaElement)&&(textareaElementFunction=()=>textareaElement),"Object"===dataType||"Array"===dataType?react.createElement("div",{className:"rejt-tree"},react.createElement(JsonNode,{data,name:rootName||"root",deep:-1,isCollapsed:isCollapsed??(()=>!1),onUpdate:this.onUpdate,onDeltaUpdate:onDeltaUpdate??(()=>{}),readOnly:readOnlyFunction,getStyle:getStyle??(()=>({})),addButtonElement,cancelButtonElement,inputElementGenerator:inputElementFunction,textareaElementGenerator:textareaElementFunction,minusMenuElement,plusMenuElement,handleRemove:this.removeRoot,beforeRemoveAction,beforeAddAction,beforeUpdateAction,logger:logger4??{},onSubmitValueParser:onSubmitValueParser??(val=>val)})):fallback}};JsonTree.defaultProps={rootName:"root",isCollapsed:(keyPath,deep)=>-1!==deep,getStyle:(keyName,data,keyPath,deep,dataType)=>{switch(dataType){case"Object":case"Error":return object;case"Array":return array;default:return value}},readOnly:()=>!1,onFullyUpdate:()=>{},onDeltaUpdate:()=>{},beforeRemoveAction:()=>Promise.resolve(),beforeAddAction:()=>Promise.resolve(),beforeUpdateAction:()=>Promise.resolve(),logger:{error:()=>{}},onSubmitValueParser:(isEditMode,keyPath,deep,name,rawValue)=>function parse3(string){let result=string;if(0===result.indexOf("function"))return(0,eval)(`(${result})`);try{result=JSON.parse(string)}catch{}return result}(rawValue),inputElement:()=>react.createElement("input",null),textareaElement:()=>react.createElement("textarea",null),fallback:null};var{window:globalWindow2}=globalThis,Wrapper7=theming.I4.div((({theme})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px",listStyleType:"none"},".rejt-value-node:hover":{"& > button":{opacity:1}},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:theme.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:theme.color.lighter,borderColor:theme.appBorderColor}}))),ButtonInline=theming.I4.button((({theme,primary})=>({border:0,height:20,margin:1,borderRadius:4,background:primary?theme.color.secondary:"transparent",color:primary?theme.color.lightest:theme.color.dark,fontWeight:primary?"bold":"normal",cursor:"pointer"}))),ActionButton=theming.I4.button((({theme})=>({background:"none",border:0,display:"inline-flex",verticalAlign:"middle",padding:3,marginLeft:5,color:theme.textMutedColor,opacity:0,transition:"opacity 0.2s",cursor:"pointer",position:"relative",svg:{width:9,height:9},":disabled":{cursor:"not-allowed"},":hover, :focus-visible":{opacity:1},"&:hover:not(:disabled), &:focus-visible:not(:disabled)":{"&.rejt-plus-menu":{color:theme.color.ancillary},"&.rejt-minus-menu":{color:theme.color.negative}}}))),Input=theming.I4.input((({theme,placeholder})=>({outline:0,margin:placeholder?1:"1px 0",padding:"3px 4px",color:theme.color.defaultText,background:theme.background.app,border:`1px solid ${theme.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:"Key"===placeholder?80:120,"&:focus":{border:`1px solid ${theme.color.secondary}`}}))),RawButton=(0,theming.I4)(components.K0)((({theme})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:theme.background.bar,border:`1px solid ${theme.appBorderColor}`,borderRadius:3,color:theme.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}}))),RawInput=(0,theming.I4)(components.lV.Textarea)((({theme})=>({flex:1,padding:"7px 6px",fontFamily:theme.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:theme.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}}))),ENTER_EVENT={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},dispatchEnterKey=event=>{event.currentTarget.dispatchEvent(new globalWindow2.KeyboardEvent("keydown",ENTER_EVENT))},selectValue=event=>{event.currentTarget.select()},getCustomStyleFunction=theme=>()=>({name:{color:theme.color.secondary},collapsed:{color:theme.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),ObjectControl=({name,value:value2,onChange,argType})=>{let theme=(0,theming.DP)(),data=(0,react.useMemo)((()=>value2&&(0,chunk_SPFYY5GD.mg)(value2)),[value2]),hasData=null!=data,[showRaw,setShowRaw]=(0,react.useState)(!hasData),[parseError,setParseError]=(0,react.useState)(null),readonly=!!argType?.table?.readonly,updateRaw=(0,react.useCallback)((raw=>{try{raw&&onChange(JSON.parse(raw)),setParseError(null)}catch(e2){setParseError(e2)}}),[onChange]),[forceVisible,setForceVisible]=(0,react.useState)(!1),onForceVisible=(0,react.useCallback)((()=>{onChange({}),setForceVisible(!0)}),[setForceVisible]),htmlElRef=(0,react.useRef)(null);if((0,react.useEffect)((()=>{forceVisible&&htmlElRef.current&&htmlElRef.current.select()}),[forceVisible]),!hasData)return react.createElement(components.$n,{disabled:readonly,id:(0,chunk_SPFYY5GD.Yq)(name),onClick:onForceVisible},"Set object");let rawJSONForm=react.createElement(RawInput,{ref:htmlElRef,id:(0,chunk_SPFYY5GD.ZA)(name),name,defaultValue:null===value2?"":JSON.stringify(value2,null,2),onBlur:event=>updateRaw(event.target.value),placeholder:"Edit JSON string...",autoFocus:forceVisible,valid:parseError?"error":void 0,readOnly:readonly}),isObjectOrArray=Array.isArray(value2)||"object"==typeof value2&&value2?.constructor===Object;return react.createElement(Wrapper7,{"aria-readonly":readonly},isObjectOrArray&&react.createElement(RawButton,{role:"switch","aria-checked":showRaw,"aria-label":`Edit the ${name} properties in text format`,onClick:e2=>{e2.preventDefault(),setShowRaw((isRaw=>!isRaw))}},showRaw?react.createElement(dist.dbI,null):react.createElement(dist.bMW,null),react.createElement("span",null,"RAW")),showRaw?rawJSONForm:react.createElement(JsonTree,{readOnly:readonly||!isObjectOrArray,isCollapsed:isObjectOrArray?void 0:()=>!0,data,rootName:name,onFullyUpdate:onChange,getStyle:getCustomStyleFunction(theme),cancelButtonElement:react.createElement(ButtonInline,{type:"button"},"Cancel"),addButtonElement:react.createElement(ButtonInline,{type:"submit",primary:!0},"Save"),plusMenuElement:react.createElement(ActionButton,{type:"button"},react.createElement(dist.REV,null)),minusMenuElement:react.createElement(ActionButton,{type:"button"},react.createElement(dist.Qpb,null)),inputElement:(_2,__,___,key)=>key?react.createElement(Input,{onFocus:selectValue,onBlur:dispatchEnterKey}):react.createElement(Input,null),fallback:rawJSONForm}))},RangeInput=theming.I4.input((({theme,min,max,value:value2,disabled})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:"light"===theme.base?`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} 100%)`:`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:disabled?"not-allowed":"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${rgba(theme.appBorderColor,.2)}`,cursor:disabled?"not-allowed":"grab",appearance:"none",background:`${theme.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${curriedDarken$1(.05,theme.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${theme.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:disabled?"not-allowed":"grab"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:rgba(theme.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:theme.color.secondary,boxShadow:`0 0px 5px 0px ${theme.color.secondary}`}},"&::-moz-range-track":{background:"light"===theme.base?`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} 100%)`:`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:disabled?"not-allowed":"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${rgba(theme.appBorderColor,.2)}`,cursor:disabled?"not-allowed":"grap",background:`${theme.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${curriedDarken$1(.05,theme.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${theme.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:"light"===theme.base?`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${curriedDarken$1(.02,theme.input.background)} 100%)`:`linear-gradient(to right, \n ${theme.color.green} 0%, ${theme.color.green} ${(value2-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} ${(value2-min)/(max-min)*100}%, \n ${curriedLighten$1(.02,theme.input.background)} 100%)`,boxShadow:`${theme.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${theme.input.background}`,border:`1px solid ${rgba(theme.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}}))),RangeLabel=theming.I4.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),RangeCurrentAndMaxLabel=(0,theming.I4)(RangeLabel)((({numberOFDecimalsPlaces,max})=>({width:`${numberOFDecimalsPlaces+2*max.toString().length+3}ch`,textAlign:"right",flexShrink:0}))),RangeWrapper=theming.I4.div({display:"flex",alignItems:"center",width:"100%"});var Wrapper8=theming.I4.label({display:"flex"}),MaxLength=theming.I4.div((({isMaxed})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:isMaxed?"red":void 0}))),FileInput=(0,theming.I4)(components.lV.Input)({padding:10});var LazyColorControl=(0,react.lazy)((()=>__webpack_require__.e(357).then(__webpack_require__.bind(__webpack_require__,"./node_modules/@storybook/addon-docs/dist/Color-AVL7NMMY.mjs")))),Controls2={array:ObjectControl,object:ObjectControl,boolean:({name,value:value2,onChange,onBlur,onFocus,argType})=>{let onSetFalse=(0,react.useCallback)((()=>onChange(!1)),[onChange]),readonly=!!argType?.table?.readonly;if(void 0===value2)return react.createElement(components.$n,{variant:"outline",size:"medium",id:(0,chunk_SPFYY5GD.Yq)(name),onClick:onSetFalse,disabled:readonly},"Set boolean");let controlId=(0,chunk_SPFYY5GD.ZA)(name),parsedValue="string"==typeof value2?(value2=>"true"===value2)(value2):value2;return react.createElement(Label2,{"aria-disabled":readonly,htmlFor:controlId,"aria-label":name},react.createElement("input",{id:controlId,type:"checkbox",onChange:e2=>onChange(e2.target.checked),checked:parsedValue,role:"switch",disabled:readonly,name,onBlur,onFocus}),react.createElement("span",{"aria-hidden":"true"},"False"),react.createElement("span",{"aria-hidden":"true"},"True"))},color:props=>react.createElement(react.Suspense,{fallback:react.createElement("div",null)},react.createElement(LazyColorControl,{...props})),date:({name,value:value2,onChange,onFocus,onBlur,argType})=>{let[valid,setValid]=(0,react.useState)(!0),dateRef=(0,react.useRef)(),timeRef=(0,react.useRef)(),readonly=!!argType?.table?.readonly;(0,react.useEffect)((()=>{!1!==valid&&(dateRef&&dateRef.current&&(dateRef.current.value=value2?(value2=>{let date=new Date(value2);return`${`000${date.getFullYear()}`.slice(-4)}-${`0${date.getMonth()+1}`.slice(-2)}-${`0${date.getDate()}`.slice(-2)}`})(value2):""),timeRef&&timeRef.current&&(timeRef.current.value=value2?(value2=>{let date=new Date(value2);return`${`0${date.getHours()}`.slice(-2)}:${`0${date.getMinutes()}`.slice(-2)}`})(value2):""))}),[value2]);let controlId=(0,chunk_SPFYY5GD.ZA)(name);return react.createElement(FlexSpaced,null,react.createElement(FormInput,{type:"date",max:"9999-12-31",ref:dateRef,id:`${controlId}-date`,name:`${controlId}-date`,readOnly:readonly,onChange:e2=>{if(!e2.target.value)return onChange();let parsed=(value2=>{let[year,month,day]=value2.split("-"),result=new Date;return result.setFullYear(parseInt(year,10),parseInt(month,10)-1,parseInt(day,10)),result})(e2.target.value),result=new Date(value2??"");result.setFullYear(parsed.getFullYear(),parsed.getMonth(),parsed.getDate());let time=result.getTime();time&&onChange(time),setValid(!!time)},onFocus,onBlur}),react.createElement(FormInput,{type:"time",id:`${controlId}-time`,name:`${controlId}-time`,ref:timeRef,onChange:e2=>{if(!e2.target.value)return onChange();let parsed=(value2=>{let[hours,minutes]=value2.split(":"),result=new Date;return result.setHours(parseInt(hours,10)),result.setMinutes(parseInt(minutes,10)),result})(e2.target.value),result=new Date(value2??"");result.setHours(parsed.getHours()),result.setMinutes(parsed.getMinutes());let time=result.getTime();time&&onChange(time),setValid(!!time)},readOnly:readonly,onFocus,onBlur}),valid?null:react.createElement("div",null,"invalid"))},number:({name,value:value2,onChange,min,max,step,onBlur,onFocus,argType})=>{let[inputValue,setInputValue]=(0,react.useState)("number"==typeof value2?value2:""),[forceVisible,setForceVisible]=(0,react.useState)(!1),[parseError,setParseError]=(0,react.useState)(null),readonly=!!argType?.table?.readonly,handleChange=(0,react.useCallback)((event=>{setInputValue(event.target.value);let result=parseFloat(event.target.value);Number.isNaN(result)?setParseError(new Error(`'${event.target.value}' is not a number`)):(onChange(result),setParseError(null))}),[onChange,setParseError]),onForceVisible=(0,react.useCallback)((()=>{setInputValue("0"),onChange(0),setForceVisible(!0)}),[setForceVisible]),htmlElRef=(0,react.useRef)(null);return(0,react.useEffect)((()=>{forceVisible&&htmlElRef.current&&htmlElRef.current.select()}),[forceVisible]),(0,react.useEffect)((()=>{let newInputValue="number"==typeof value2?value2:"";inputValue!==newInputValue&&setInputValue(newInputValue)}),[value2]),void 0===value2?react.createElement(components.$n,{variant:"outline",size:"medium",id:(0,chunk_SPFYY5GD.Yq)(name),onClick:onForceVisible,disabled:readonly},"Set number"):react.createElement(Wrapper4,null,react.createElement(FormInput2,{ref:htmlElRef,id:(0,chunk_SPFYY5GD.ZA)(name),type:"number",onChange:handleChange,size:"flex",placeholder:"Edit number...",value:inputValue,valid:parseError?"error":void 0,autoFocus:forceVisible,readOnly:readonly,name,min,max,step,onFocus,onBlur}))},check:OptionsControl,"inline-check":OptionsControl,radio:OptionsControl,"inline-radio":OptionsControl,select:OptionsControl,"multi-select":OptionsControl,range:({name,value:value2,onChange,min=0,max=100,step=1,onBlur,onFocus,argType})=>{let hasValue=void 0!==value2,numberOFDecimalsPlaces=(0,react.useMemo)((()=>function getNumberOfDecimalPlaces(number){let match=number.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return match?Math.max(0,(match[1]?match[1].length:0)-(match[2]?+match[2]:0)):0}(step)),[step]),readonly=!!argType?.table?.readonly;return react.createElement(RangeWrapper,{"aria-readonly":readonly},react.createElement(RangeLabel,null,min),react.createElement(RangeInput,{id:(0,chunk_SPFYY5GD.ZA)(name),type:"range",disabled:readonly,onChange:event=>{onChange((value2=>{let result=parseFloat(value2);return Number.isNaN(result)?void 0:result})(event.target.value))},name,min,max,step,onFocus,onBlur,value:value2??min}),react.createElement(RangeCurrentAndMaxLabel,{numberOFDecimalsPlaces,max},hasValue?value2.toFixed(numberOFDecimalsPlaces):"--"," / ",max))},text:({name,value:value2,onChange,onFocus,onBlur,maxLength,argType})=>{let readonly=!!argType?.table?.readonly,[forceVisible,setForceVisible]=(0,react.useState)(!1),onForceVisible=(0,react.useCallback)((()=>{onChange(""),setForceVisible(!0)}),[setForceVisible]);if(void 0===value2)return react.createElement(components.$n,{variant:"outline",size:"medium",disabled:readonly,id:(0,chunk_SPFYY5GD.Yq)(name),onClick:onForceVisible},"Set string");let isValid="string"==typeof value2;return react.createElement(Wrapper8,null,react.createElement(components.lV.Textarea,{id:(0,chunk_SPFYY5GD.ZA)(name),maxLength,onChange:event=>{onChange(event.target.value)},disabled:readonly,size:"flex",placeholder:"Edit string...",autoFocus:forceVisible,valid:isValid?void 0:"error",name,value:isValid?value2:"",onFocus,onBlur}),maxLength&&react.createElement(MaxLength,{isMaxed:value2?.length===maxLength},value2?.length??0," / ",maxLength))},file:({onChange,name,accept="image/*",value:value2,argType})=>{let inputElement=(0,react.useRef)(null),readonly=argType?.control?.readOnly;return(0,react.useEffect)((()=>{null==value2&&inputElement.current&&(inputElement.current.value="")}),[value2,name]),react.createElement(FileInput,{ref:inputElement,id:(0,chunk_SPFYY5GD.ZA)(name),type:"file",name,multiple:!0,disabled:readonly,onChange:function handleFileChange(e2){if(!e2.target.files)return;let fileUrls=Array.from(e2.target.files).map((file=>URL.createObjectURL(file)));onChange(fileUrls),function revokeOldUrls(urls){urls.forEach((url=>{url.startsWith("blob:")&&URL.revokeObjectURL(url)}))}(value2||[])},accept,size:"flex"})}},NoControl=()=>react.createElement(react.Fragment,null,"-"),ArgControl=({row,arg,updateArgs,isHovered})=>{let{key,control}=row,[isFocused,setFocused]=(0,react.useState)(!1),[boxedValue,setBoxedValue]=(0,react.useState)({value:arg});(0,react.useEffect)((()=>{isFocused||setBoxedValue({value:arg})}),[isFocused,arg]);let onChange=(0,react.useCallback)((argVal=>(setBoxedValue({value:argVal}),updateArgs({[key]:argVal}),argVal)),[updateArgs,key]),onBlur=(0,react.useCallback)((()=>setFocused(!1)),[]),onFocus=(0,react.useCallback)((()=>setFocused(!0)),[]);if(!control||control.disable){return isHovered&&(!0!==control?.disable&&"function"!==row?.type?.name)?react.createElement(components.N_,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},"Setup controls"):react.createElement(NoControl,null)}let props={name:key,argType:row,value:boxedValue.value,onChange,onBlur,onFocus},Control=Controls2[control.type]||NoControl;return react.createElement(Control,{...props,...control,controlType:control.type})},Table=theming.I4.table((({theme})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:(0,components.zb)({theme}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:theme.typography.size.s1}}}))),ArgJsDoc=({tags})=>{let params=(tags.params||[]).filter((x2=>x2.description)),hasDisplayableParams=0!==params.length,hasDisplayableDeprecated=null!=tags.deprecated,hasDisplayableReturns=null!=tags.returns&&null!=tags.returns.description;return hasDisplayableParams||hasDisplayableReturns||hasDisplayableDeprecated?react.createElement(react.Fragment,null,react.createElement(Table,null,react.createElement("tbody",null,hasDisplayableDeprecated&&react.createElement("tr",{key:"deprecated"},react.createElement("td",{colSpan:2},react.createElement("strong",null,"Deprecated"),": ",tags.deprecated?.toString())),hasDisplayableParams&¶ms.map((x2=>react.createElement("tr",{key:x2.name},react.createElement("td",null,react.createElement("code",null,x2.name)),react.createElement("td",null,x2.description)))),hasDisplayableReturns&&react.createElement("tr",{key:"returns"},react.createElement("td",null,react.createElement("code",null,"Returns")),react.createElement("td",null,tags.returns?.description))))):null},import_memoizerific=(0,chunk_QUZPS4B6.f1)(require_memoizerific()),Summary=theming.I4.div((({isExpanded})=>({display:"flex",flexDirection:isExpanded?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100}))),Text3=theming.I4.span(components.zb,(({theme,simple=!1})=>({flex:"0 0 auto",fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...simple&&{background:"transparent",border:"0 none",paddingLeft:0}}))),ExpandButton=theming.I4.button((({theme})=>({fontFamily:theme.typography.fonts.mono,color:theme.color.secondary,marginBottom:"4px",background:"none",border:"none"}))),Expandable=theming.I4.div(components.zb,(({theme})=>({fontFamily:theme.typography.fonts.mono,color:theme.color.secondary,fontSize:theme.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"}))),Detail=theming.I4.div((({theme,width})=>({width,minWidth:200,maxWidth:800,padding:15,fontFamily:theme.typography.fonts.mono,fontSize:theme.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}}))),ChevronUpIcon=(0,theming.I4)(dist.tN5)({marginLeft:4}),ChevronDownIcon=(0,theming.I4)(dist.abt)({marginLeft:4}),EmptyArg=()=>react.createElement("span",null,"-"),ArgText=({text,simple})=>react.createElement(Text3,{simple},text),calculateDetailWidth=(0,import_memoizerific.default)(1e3)((detail=>{let lines=detail.split(/\r?\n/);return`${Math.max(...lines.map((x2=>x2.length)))}ch`})),renderSummaryItems=(summaryItems,isExpanded=!0)=>{let items=summaryItems;return isExpanded||(items=summaryItems.slice(0,8)),items.map((item=>react.createElement(ArgText,{key:item,text:""===item?'""':item})))},ArgSummary=({value:value2,initialExpandedArgs})=>{let{summary,detail}=value2,[isOpen,setIsOpen]=(0,react.useState)(!1),[isExpanded,setIsExpanded]=(0,react.useState)(initialExpandedArgs||!1);if(null==summary)return null;let summaryAsString="function"==typeof summary.toString?summary.toString():summary;if(null==detail){if(/[(){}[\]<>]/.test(summaryAsString))return react.createElement(ArgText,{text:summaryAsString});let summaryItems=(summary=>{if(!summary)return[summary];let summaryItems=summary.split("|").map((value2=>value2.trim()));return(0,chunk_SPFYY5GD.sb)(summaryItems)})(summaryAsString),itemsCount=summaryItems.length;return itemsCount>8?react.createElement(Summary,{isExpanded},renderSummaryItems(summaryItems,isExpanded),react.createElement(ExpandButton,{onClick:()=>setIsExpanded(!isExpanded)},isExpanded?"Show less...":`Show ${itemsCount-8} more...`)):react.createElement(Summary,null,renderSummaryItems(summaryItems))}return react.createElement(components.o4,{closeOnOutsideClick:!0,placement:"bottom",visible:isOpen,onVisibleChange:isVisible=>{setIsOpen(isVisible)},tooltip:react.createElement(Detail,{width:calculateDetailWidth(detail)},react.createElement(components.bF,{language:"jsx",format:!1},detail))},react.createElement(Expandable,{className:"sbdocs-expandable"},react.createElement("span",null,summaryAsString),isOpen?react.createElement(ChevronUpIcon,null):react.createElement(ChevronDownIcon,null)))},ArgValue=({value:value2,initialExpandedArgs})=>null==value2?react.createElement(EmptyArg,null):react.createElement(ArgSummary,{value:value2,initialExpandedArgs}),Name=theming.I4.span({fontWeight:"bold"}),Required=theming.I4.span((({theme})=>({color:theme.color.negative,fontFamily:theme.typography.fonts.mono,cursor:"help"}))),Description=theming.I4.div((({theme})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:theme.color.secondary}},code:{...(0,components.zb)({theme}),fontSize:12,fontFamily:theme.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}}))),Type=theming.I4.div((({theme,hasDescription})=>({color:"light"===theme.base?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.2,theme.color.defaultText),marginTop:hasDescription?4:0}))),TypeWithJsDoc=theming.I4.div((({theme,hasDescription})=>({color:"light"===theme.base?curriedTransparentize$1(.1,theme.color.defaultText):curriedTransparentize$1(.2,theme.color.defaultText),marginTop:hasDescription?12:0,marginBottom:12}))),StyledTd=theming.I4.td((({expandable})=>({paddingLeft:expandable?"40px !important":"20px !important"}))),ArgRow=props=>{let[isHovered,setIsHovered]=(0,react.useState)(!1),{row,updateArgs,compact,expandable,initialExpandedArgs}=props,{name,description}=row,table=row.table||{},type=table.type||(value2=row.type)&&{summary:"string"==typeof value2?value2:value2.name},defaultValue=table.defaultValue||row.defaultValue,required=row.type?.required,hasDescription=null!=description&&""!==description;var value2;return react.createElement("tr",{onMouseEnter:()=>setIsHovered(!0),onMouseLeave:()=>setIsHovered(!1)},react.createElement(StyledTd,{expandable:expandable??!1},react.createElement(Name,null,name),required?react.createElement(Required,{title:"Required"},"*"):null),compact?null:react.createElement("td",null,hasDescription&&react.createElement(Description,null,react.createElement(index_modern_default,null,description)),null!=table.jsDocTags?react.createElement(react.Fragment,null,react.createElement(TypeWithJsDoc,{hasDescription},react.createElement(ArgValue,{value:type,initialExpandedArgs})),react.createElement(ArgJsDoc,{tags:table.jsDocTags})):react.createElement(Type,{hasDescription},react.createElement(ArgValue,{value:type,initialExpandedArgs}))),compact?null:react.createElement("td",null,react.createElement(ArgValue,{value:defaultValue,initialExpandedArgs})),updateArgs?react.createElement("td",null,react.createElement(ArgControl,{...props,isHovered})):null)},Wrapper9=theming.I4.div((({inAddonPanel,theme})=>({height:inAddonPanel?"100%":"auto",display:"flex",border:inAddonPanel?"none":`1px solid ${theme.appBorderColor}`,borderRadius:inAddonPanel?0:theme.appBorderRadius,padding:inAddonPanel?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:theme.background.content}))),Links=theming.I4.div((({theme})=>({display:"flex",fontSize:theme.typography.size.s2-1,gap:25}))),Empty=({inAddonPanel})=>{let[isLoading,setIsLoading]=(0,react.useState)(!0);return(0,react.useEffect)((()=>{let load=setTimeout((()=>{setIsLoading(!1)}),100);return()=>clearTimeout(load)}),[]),isLoading?null:react.createElement(Wrapper9,{inAddonPanel},react.createElement(components.Q2,{title:inAddonPanel?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:react.createElement(react.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:react.createElement(Links,null,inAddonPanel&&react.createElement(react.Fragment,null,react.createElement(components.N_,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},react.createElement(dist.pyG,null)," Read docs")),!inAddonPanel&&react.createElement(components.N_,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},react.createElement(dist.pyG,null)," Learn how to set that up"))}))},ExpanderIconDown=(0,theming.I4)(dist.D3D)((({theme})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:"light"===theme.base?curriedTransparentize$1(.25,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),border:"none",display:"inline-block"}))),ExpanderIconRight=(0,theming.I4)(dist.vKP)((({theme})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:"light"===theme.base?curriedTransparentize$1(.25,theme.color.defaultText):curriedTransparentize$1(.3,theme.color.defaultText),border:"none",display:"inline-block"}))),FlexWrapper=theming.I4.span((({theme})=>({display:"flex",lineHeight:"20px",alignItems:"center"}))),Section=theming.I4.td((({theme})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s1-1,color:"light"===theme.base?curriedTransparentize$1(.4,theme.color.defaultText):curriedTransparentize$1(.6,theme.color.defaultText),background:`${theme.background.app} !important`,"& ~ td":{background:`${theme.background.app} !important`}}))),Subsection=theming.I4.td((({theme})=>({position:"relative",fontWeight:theme.typography.weight.bold,fontSize:theme.typography.size.s2-1,background:theme.background.app}))),StyledTd2=theming.I4.td({position:"relative"}),StyledTr=theming.I4.tr((({theme})=>({"&:hover > td":{backgroundColor:`${curriedLighten$1(.005,theme.background.app)} !important`,boxShadow:`${theme.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}}))),ClickIntercept=theming.I4.button({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}),SectionRow=({level="section",label,children,initialExpanded=!0,colSpan=3})=>{let[expanded,setExpanded]=(0,react.useState)(initialExpanded),Level="subsection"===level?Subsection:Section,itemCount=children?.length||0,caption="subsection"===level?`${itemCount} item${1!==itemCount?"s":""}`:"",helperText=`${expanded?"Hide":"Show"} ${"subsection"===level?itemCount:label} item${1!==itemCount?"s":""}`;return react.createElement(react.Fragment,null,react.createElement(StyledTr,{title:helperText},react.createElement(Level,{colSpan:1},react.createElement(ClickIntercept,{onClick:e2=>setExpanded(!expanded),tabIndex:0},helperText),react.createElement(FlexWrapper,null,expanded?react.createElement(ExpanderIconDown,null):react.createElement(ExpanderIconRight,null),label)),react.createElement(StyledTd2,{colSpan:colSpan-1},react.createElement(ClickIntercept,{onClick:e2=>setExpanded(!expanded),tabIndex:-1,style:{outline:"none"}},helperText),expanded?null:caption)),expanded?children:null)},TableWrapper=theming.I4.div((({theme})=>({width:"100%",borderSpacing:0,color:theme.color.defaultText}))),Row=theming.I4.div((({theme})=>({display:"flex",borderBottom:`1px solid ${theme.appBorderColor}`,"&:last-child":{borderBottom:0}}))),Column=theming.I4.div((({position,theme})=>{let baseStyles={display:"flex",flexDirection:"column",gap:5,padding:"10px 15px",alignItems:"flex-start"};switch(position){case"first":return{...baseStyles,width:"25%",paddingLeft:20};case"second":return{...baseStyles,width:"35%"};case"third":return{...baseStyles,width:"15%"};case"last":return{...baseStyles,width:"25%",paddingRight:20}}})),SkeletonText=theming.I4.div((({theme,width,height})=>({animation:`${theme.animation.glow} 1.5s ease-in-out infinite`,background:theme.appBorderColor,width:width||"100%",height:height||16,borderRadius:3}))),Skeleton=()=>react.createElement(TableWrapper,null,react.createElement(Row,null,react.createElement(Column,{position:"first"},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{position:"second"},react.createElement(SkeletonText,{width:"30%"})),react.createElement(Column,{position:"third"},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{position:"last"},react.createElement(SkeletonText,{width:"60%"}))),react.createElement(Row,null,react.createElement(Column,{position:"first"},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{position:"second"},react.createElement(SkeletonText,{width:"80%"}),react.createElement(SkeletonText,{width:"30%"})),react.createElement(Column,{position:"third"},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{position:"last"},react.createElement(SkeletonText,{width:"60%"}))),react.createElement(Row,null,react.createElement(Column,{position:"first"},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{position:"second"},react.createElement(SkeletonText,{width:"80%"}),react.createElement(SkeletonText,{width:"30%"})),react.createElement(Column,{position:"third"},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{position:"last"},react.createElement(SkeletonText,{width:"60%"}))),react.createElement(Row,null,react.createElement(Column,{position:"first"},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{position:"second"},react.createElement(SkeletonText,{width:"80%"}),react.createElement(SkeletonText,{width:"30%"})),react.createElement(Column,{position:"third"},react.createElement(SkeletonText,{width:"60%"})),react.createElement(Column,{position:"last"},react.createElement(SkeletonText,{width:"60%"})))),TableWrapper2=theming.I4.table((({theme,compact,inAddonPanel})=>({"&&":{borderSpacing:0,color:theme.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:theme.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:inAddonPanel?0:25,marginBottom:inAddonPanel?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...compact?null:{width:"35%"}},"td:nth-of-type(3)":{...compact?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...compact?null:{width:"25%"}},th:{color:"light"===theme.base?curriedTransparentize$1(.25,theme.color.defaultText):curriedTransparentize$1(.45,theme.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:inAddonPanel?0:1,marginRight:inAddonPanel?0:1,tbody:{...inAddonPanel?null:{filter:"light"===theme.base?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:theme.background.content,borderTop:`1px solid ${theme.appBorderColor}`},...inAddonPanel?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${theme.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${theme.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${theme.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${theme.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:theme.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:theme.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:theme.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:theme.appBorderRadius}}}}}))),TablePositionWrapper=theming.I4.div({position:"relative"}),ButtonPositionWrapper=theming.I4.div({position:"absolute",right:8,top:6}),sortFns={alpha:(a2,b2)=>(a2.name??"").localeCompare(b2.name??""),requiredFirst:(a2,b2)=>+!!b2.type?.required-+!!a2.type?.required||(a2.name??"").localeCompare(b2.name??""),none:null},ArgsTable=props=>{let{updateArgs,resetArgs,compact,inAddonPanel,initialExpandedArgs,sort="none",isLoading}=props;if("error"in props){let{error}=props;return react.createElement(EmptyBlock,null,error," ",react.createElement(components.N_,{href:"http://storybook.js.org/docs/?ref=ui",target:"_blank",withArrow:!0},react.createElement(dist.pyG,null)," Read the docs"))}if(isLoading)return react.createElement(Skeleton,null);let{rows,args,globals}="rows"in props?props:{rows:void 0,args:void 0,globals:void 0},groups=((rows,sort)=>{let sections={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!rows)return sections;Object.entries(rows).forEach((([key,row])=>{let{category,subcategory}=row?.table||{};if(category){let section=sections.sections[category]||{ungrouped:[],subsections:{}};if(subcategory){let subsection=section.subsections[subcategory]||[];subsection.push({key,...row}),section.subsections[subcategory]=subsection}else section.ungrouped.push({key,...row});sections.sections[category]=section}else if(subcategory){let subsection=sections.ungroupedSubsections[subcategory]||[];subsection.push({key,...row}),sections.ungroupedSubsections[subcategory]=subsection}else sections.ungrouped.push({key,...row})}));let sortFn=sortFns[sort],sortSubsection=record=>sortFn?Object.keys(record).reduce(((acc,cur)=>({...acc,[cur]:record[cur].sort(sortFn)})),{}):record;return{ungrouped:sortFn?sections.ungrouped.sort(sortFn):sections.ungrouped,ungroupedSubsections:sortSubsection(sections.ungroupedSubsections),sections:Object.keys(sections.sections).reduce(((acc,cur)=>({...acc,[cur]:{ungrouped:sortFn?sections.sections[cur].ungrouped.sort(sortFn):sections.sections[cur].ungrouped,subsections:sortSubsection(sections.sections[cur].subsections)}})),{})}})((0,chunk_SPFYY5GD.fN)(rows||{},(row=>!row?.table?.disable&&((row,args,globals)=>{try{return(0,csf.hX)(row,args,globals)}catch(err){return external_STORYBOOK_MODULE_CLIENT_LOGGER_.once.warn(err.message),!1}})(row,args||{},globals||{}))),sort),hasNoUngrouped=0===groups.ungrouped.length,hasNoSections=0===Object.entries(groups.sections).length,hasNoUngroupedSubsections=0===Object.entries(groups.ungroupedSubsections).length;if(hasNoUngrouped&&hasNoSections&&hasNoUngroupedSubsections)return react.createElement(Empty,{inAddonPanel});let colSpan=1;updateArgs&&(colSpan+=1),compact||(colSpan+=2);let expandable=Object.keys(groups.sections).length>0,common={updateArgs,compact,inAddonPanel,initialExpandedArgs};return react.createElement(components.dL,null,react.createElement(TablePositionWrapper,null,updateArgs&&!isLoading&&resetArgs&&react.createElement(ButtonPositionWrapper,null,react.createElement(components.K0,{onClick:()=>resetArgs(),"aria-label":"Reset controls",title:"Reset controls"},react.createElement(dist.ejX,null))),react.createElement(TableWrapper2,{compact,inAddonPanel,className:"docblock-argstable sb-unstyled"},react.createElement("thead",{className:"docblock-argstable-head"},react.createElement("tr",null,react.createElement("th",null,react.createElement("span",null,"Name")),compact?null:react.createElement("th",null,react.createElement("span",null,"Description")),compact?null:react.createElement("th",null,react.createElement("span",null,"Default")),updateArgs?react.createElement("th",null,react.createElement("span",null,"Control")):null)),react.createElement("tbody",{className:"docblock-argstable-body"},groups.ungrouped.map((row=>react.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],...common}))),Object.entries(groups.ungroupedSubsections).map((([subcategory,subsection])=>react.createElement(SectionRow,{key:subcategory,label:subcategory,level:"subsection",colSpan},subsection.map((row=>react.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],expandable,...common})))))),Object.entries(groups.sections).map((([category,section])=>react.createElement(SectionRow,{key:category,label:category,level:"section",colSpan},section.ungrouped.map((row=>react.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],...common}))),Object.entries(section.subsections).map((([subcategory,subsection])=>react.createElement(SectionRow,{key:subcategory,label:subcategory,level:"subsection",colSpan},subsection.map((row=>react.createElement(ArgRow,{key:row.key,row,arg:args&&args[row.key],expandable,...common})))))))))))))},anchorBlockIdFromId=storyId=>`anchor--${storyId}`,Anchor=({storyId,children})=>react.createElement("div",{id:anchorBlockIdFromId(storyId),className:"sb-anchor"},children);globalThis&&void 0===globalThis.__DOCS_CONTEXT__&&(globalThis.__DOCS_CONTEXT__=(0,react.createContext)(null),globalThis.__DOCS_CONTEXT__.displayName="DocsContext");var DocsContext=globalThis?globalThis.__DOCS_CONTEXT__:(0,react.createContext)(null),useOf=(moduleExportOrType,validTypes)=>(0,react.useContext)(DocsContext).resolveOf(moduleExportOrType,validTypes),getComponentName=component=>{if(component)return"string"==typeof component?component.includes("-")?component.split("-").map((part=>part.charAt(0).toUpperCase()+part.slice(1))).join(""):component:component.__docgenInfo&&component.__docgenInfo.displayName?component.__docgenInfo.displayName:component.name};var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__commonJS2=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},__toESM2=(mod,isNodeMode,target)=>(target=null!=mod?__create(__getProtoOf(mod)):{},((to,from,except,desc)=>{if(from&&"object"==typeof from||"function"==typeof from)for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to})(!isNodeMode&&mod&&mod.__esModule?target:__defProp(target,"default",{value:mod,enumerable:!0}),mod)),eventProperties=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],customEventSpecificProperties=["detail"];var require_es_object_atoms=__commonJS2({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(exports,module){module.exports=Object}}),require_es_errors=__commonJS2({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(exports,module){module.exports=Error}}),require_eval=__commonJS2({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(exports,module){module.exports=EvalError}}),require_range=__commonJS2({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(exports,module){module.exports=RangeError}}),require_ref=__commonJS2({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(exports,module){module.exports=ReferenceError}}),require_syntax=__commonJS2({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(exports,module){module.exports=SyntaxError}}),require_type=__commonJS2({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(exports,module){module.exports=TypeError}}),require_uri=__commonJS2({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(exports,module){module.exports=URIError}}),require_abs=__commonJS2({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(exports,module){module.exports=Math.abs}}),require_floor=__commonJS2({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(exports,module){module.exports=Math.floor}}),require_max=__commonJS2({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(exports,module){module.exports=Math.max}}),require_min=__commonJS2({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(exports,module){module.exports=Math.min}}),require_pow=__commonJS2({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(exports,module){module.exports=Math.pow}}),require_round=__commonJS2({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(exports,module){module.exports=Math.round}}),require_isNaN=__commonJS2({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(exports,module){module.exports=Number.isNaN||function(a2){return a2!=a2}}}),require_sign=__commonJS2({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(exports,module){var $isNaN=require_isNaN();module.exports=function(number){return $isNaN(number)||0===number?number:number<0?-1:1}}}),require_gOPD=__commonJS2({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(exports,module){module.exports=Object.getOwnPropertyDescriptor}}),require_gopd=__commonJS2({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(exports,module){var $gOPD=require_gOPD();if($gOPD)try{$gOPD([],"length")}catch{$gOPD=null}module.exports=$gOPD}}),require_es_define_property=__commonJS2({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(exports,module){var $defineProperty=Object.defineProperty||!1;if($defineProperty)try{$defineProperty({},"a",{value:1})}catch{$defineProperty=!1}module.exports=$defineProperty}}),require_shams=__commonJS2({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(exports,module){module.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var obj={},sym=Symbol("test"),symObj=Object(sym);if("string"==typeof sym||"[object Symbol]"!==Object.prototype.toString.call(sym)||"[object Symbol]"!==Object.prototype.toString.call(symObj))return!1;for(var _2 in obj[sym]=42,obj)return!1;if("function"==typeof Object.keys&&0!==Object.keys(obj).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(obj).length)return!1;var syms=Object.getOwnPropertySymbols(obj);if(1!==syms.length||syms[0]!==sym||!Object.prototype.propertyIsEnumerable.call(obj,sym))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var descriptor=Object.getOwnPropertyDescriptor(obj,sym);if(42!==descriptor.value||!0!==descriptor.enumerable)return!1}return!0}}}),require_has_symbols=__commonJS2({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(exports,module){var origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=require_shams();module.exports=function(){return"function"==typeof origSymbol&&"function"==typeof Symbol&&"symbol"==typeof origSymbol("foo")&&"symbol"==typeof Symbol("bar")&&hasSymbolSham()}}}),require_Reflect_getPrototypeOf=__commonJS2({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(exports,module){module.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),require_Object_getPrototypeOf=__commonJS2({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(exports,module){var $Object=require_es_object_atoms();module.exports=$Object.getPrototypeOf||null}}),require_implementation=__commonJS2({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(exports,module){var toStr=Object.prototype.toString,max=Math.max,concatty=function(a2,b2){for(var arr=[],i2=0;i2<a2.length;i2+=1)arr[i2]=a2[i2];for(var j2=0;j2<b2.length;j2+=1)arr[j2+a2.length]=b2[j2];return arr};module.exports=function(that){var target=this;if("function"!=typeof target||"[object Function]"!==toStr.apply(target))throw new TypeError("Function.prototype.bind called on incompatible "+target);for(var bound,args=function(arrLike,offset){for(var arr=[],i2=offset||0,j2=0;i2<arrLike.length;i2+=1,j2+=1)arr[j2]=arrLike[i2];return arr}(arguments,1),boundLength=max(0,target.length-args.length),boundArgs=[],i2=0;i2<boundLength;i2++)boundArgs[i2]="$"+i2;if(bound=Function("binder","return function ("+function(arr,joiner){for(var str="",i2=0;i2<arr.length;i2+=1)str+=arr[i2],i2+1<arr.length&&(str+=joiner);return str}(boundArgs,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof bound){var result=target.apply(this,concatty(args,arguments));return Object(result)===result?result:this}return target.apply(that,concatty(args,arguments))})),target.prototype){var Empty2=function(){};Empty2.prototype=target.prototype,bound.prototype=new Empty2,Empty2.prototype=null}return bound}}}),require_function_bind=__commonJS2({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(exports,module){var implementation=require_implementation();module.exports=Function.prototype.bind||implementation}}),require_functionCall=__commonJS2({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(exports,module){module.exports=Function.prototype.call}}),require_functionApply=__commonJS2({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(exports,module){module.exports=Function.prototype.apply}}),require_reflectApply=__commonJS2({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(exports,module){module.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),require_actualApply=__commonJS2({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(exports,module){var bind=require_function_bind(),$apply=require_functionApply(),$call=require_functionCall(),$reflectApply=require_reflectApply();module.exports=$reflectApply||bind.call($call,$apply)}}),require_call_bind_apply_helpers=__commonJS2({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(exports,module){var bind=require_function_bind(),$TypeError=require_type(),$call=require_functionCall(),$actualApply=require_actualApply();module.exports=function(args){if(args.length<1||"function"!=typeof args[0])throw new $TypeError("a function is required");return $actualApply(bind,$call,args)}}}),require_get=__commonJS2({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(exports,module){var hasProtoAccessor,callBind=require_call_bind_apply_helpers(),gOPD=require_gopd();try{hasProtoAccessor=[].__proto__===Array.prototype}catch(e2){if(!e2||"object"!=typeof e2||!("code"in e2)||"ERR_PROTO_ACCESS"!==e2.code)throw e2}var desc=!!hasProtoAccessor&&gOPD&&gOPD(Object.prototype,"__proto__"),$Object=Object,$getPrototypeOf=$Object.getPrototypeOf;module.exports=desc&&"function"==typeof desc.get?callBind([desc.get]):"function"==typeof $getPrototypeOf&&function(value2){return $getPrototypeOf(null==value2?value2:$Object(value2))}}}),require_get_proto=__commonJS2({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(exports,module){var reflectGetProto=require_Reflect_getPrototypeOf(),originalGetProto=require_Object_getPrototypeOf(),getDunderProto=require_get();module.exports=reflectGetProto?function(O2){return reflectGetProto(O2)}:originalGetProto?function(O2){if(!O2||"object"!=typeof O2&&"function"!=typeof O2)throw new TypeError("getProto: not an object");return originalGetProto(O2)}:getDunderProto?function(O2){return getDunderProto(O2)}:null}}),require_hasown=__commonJS2({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(exports,module){var call=Function.prototype.call,$hasOwn=Object.prototype.hasOwnProperty,bind=require_function_bind();module.exports=bind.call(call,$hasOwn)}}),require_get_intrinsic=__commonJS2({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(exports,module){var $Object=require_es_object_atoms(),$Error=require_es_errors(),$EvalError=require_eval(),$RangeError=require_range(),$ReferenceError=require_ref(),$SyntaxError=require_syntax(),$TypeError=require_type(),$URIError=require_uri(),abs=require_abs(),floor=require_floor(),max=require_max(),min=require_min(),pow=require_pow(),round=require_round(),sign=require_sign(),$Function=Function,getEvalledConstructor=function(expressionSyntax){try{return $Function('"use strict"; return ('+expressionSyntax+").constructor;")()}catch{}},$gOPD=require_gopd(),$defineProperty=require_es_define_property(),throwTypeError=function(){throw new $TypeError},ThrowTypeError=$gOPD?function(){try{return throwTypeError}catch{try{return $gOPD(arguments,"callee").get}catch{return throwTypeError}}}():throwTypeError,hasSymbols=require_has_symbols()(),getProto=require_get_proto(),$ObjectGPO=require_Object_getPrototypeOf(),$ReflectGPO=require_Reflect_getPrototypeOf(),$apply=require_functionApply(),$call=require_functionCall(),needsEval={},TypedArray=typeof Uint8Array>"u"||!getProto?undefined:getProto(Uint8Array),INTRINSICS={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?undefined:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto?getProto([][Symbol.iterator]()):undefined,"%AsyncFromSyncIteratorPrototype%":undefined,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined:Atomics,"%BigInt%":typeof BigInt>"u"?undefined:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":$Error,"%eval%":eval,"%EvalError%":$EvalError,"%Float16Array%":typeof Float16Array>"u"?undefined:Float16Array,"%Float32Array%":typeof Float32Array>"u"?undefined:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols&&getProto?getProto(getProto([][Symbol.iterator]())):undefined,"%JSON%":"object"==typeof JSON?JSON:undefined,"%Map%":typeof Map>"u"?undefined:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols||!getProto?undefined:getProto((new Map)[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":$Object,"%Object.getOwnPropertyDescriptor%":$gOPD,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined:Promise,"%Proxy%":typeof Proxy>"u"?undefined:Proxy,"%RangeError%":$RangeError,"%ReferenceError%":$ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols||!getProto?undefined:getProto((new Set)[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto?getProto(""[Symbol.iterator]()):undefined,"%Symbol%":hasSymbols?Symbol:undefined,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError,"%Uint8Array%":typeof Uint8Array>"u"?undefined:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined:Uint32Array,"%URIError%":$URIError,"%WeakMap%":typeof WeakMap>"u"?undefined:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined:WeakSet,"%Function.prototype.call%":$call,"%Function.prototype.apply%":$apply,"%Object.defineProperty%":$defineProperty,"%Object.getPrototypeOf%":$ObjectGPO,"%Math.abs%":abs,"%Math.floor%":floor,"%Math.max%":max,"%Math.min%":min,"%Math.pow%":pow,"%Math.round%":round,"%Math.sign%":sign,"%Reflect.getPrototypeOf%":$ReflectGPO};if(getProto)try{null.error}catch(e2){errorProto=getProto(getProto(e2)),INTRINSICS["%Error.prototype%"]=errorProto}var errorProto,doEval=function doEval2(name){var value2;if("%AsyncFunction%"===name)value2=getEvalledConstructor("async function () {}");else if("%GeneratorFunction%"===name)value2=getEvalledConstructor("function* () {}");else if("%AsyncGeneratorFunction%"===name)value2=getEvalledConstructor("async function* () {}");else if("%AsyncGenerator%"===name){var fn=doEval2("%AsyncGeneratorFunction%");fn&&(value2=fn.prototype)}else if("%AsyncIteratorPrototype%"===name){var gen=doEval2("%AsyncGenerator%");gen&&getProto&&(value2=getProto(gen.prototype))}return INTRINSICS[name]=value2,value2},LEGACY_ALIASES={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind=require_function_bind(),hasOwn=require_hasown(),$concat=bind.call($call,Array.prototype.concat),$spliceApply=bind.call($apply,Array.prototype.splice),$replace=bind.call($call,String.prototype.replace),$strSlice=bind.call($call,String.prototype.slice),$exec=bind.call($call,RegExp.prototype.exec),rePropName2=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar2=/\\(\\)?/g,getBaseIntrinsic=function(name,allowMissing){var alias,intrinsicName=name;if(hasOwn(LEGACY_ALIASES,intrinsicName)&&(intrinsicName="%"+(alias=LEGACY_ALIASES[intrinsicName])[0]+"%"),hasOwn(INTRINSICS,intrinsicName)){var value2=INTRINSICS[intrinsicName];if(value2===needsEval&&(value2=doEval(intrinsicName)),typeof value2>"u"&&!allowMissing)throw new $TypeError("intrinsic "+name+" exists, but is not available. Please file an issue!");return{alias,name:intrinsicName,value:value2}}throw new $SyntaxError("intrinsic "+name+" does not exist!")};module.exports=function(name,allowMissing){if("string"!=typeof name||0===name.length)throw new $TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof allowMissing)throw new $TypeError('"allowMissing" argument must be a boolean');if(null===$exec(/^%?[^%]*%?$/,name))throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var parts=function(string){var first=$strSlice(string,0,1),last=$strSlice(string,-1);if("%"===first&&"%"!==last)throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if("%"===last&&"%"!==first)throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var result=[];return $replace(string,rePropName2,(function(match,number,quote,subString){result[result.length]=quote?$replace(subString,reEscapeChar2,"$1"):number||match})),result}(name),intrinsicBaseName=parts.length>0?parts[0]:"",intrinsic=getBaseIntrinsic("%"+intrinsicBaseName+"%",allowMissing),intrinsicRealName=intrinsic.name,value2=intrinsic.value,skipFurtherCaching=!1,alias=intrinsic.alias;alias&&(intrinsicBaseName=alias[0],$spliceApply(parts,$concat([0,1],alias)));for(var i2=1,isOwn=!0;i2<parts.length;i2+=1){var part=parts[i2],first=$strSlice(part,0,1),last=$strSlice(part,-1);if(('"'===first||"'"===first||"`"===first||'"'===last||"'"===last||"`"===last)&&first!==last)throw new $SyntaxError("property names with quotes must have matching quotes");if(("constructor"===part||!isOwn)&&(skipFurtherCaching=!0),hasOwn(INTRINSICS,intrinsicRealName="%"+(intrinsicBaseName+="."+part)+"%"))value2=INTRINSICS[intrinsicRealName];else if(null!=value2){if(!(part in value2)){if(!allowMissing)throw new $TypeError("base intrinsic for "+name+" exists, but the property is not available.");return}if($gOPD&&i2+1>=parts.length){var desc=$gOPD(value2,part);value2=(isOwn=!!desc)&&"get"in desc&&!("originalValue"in desc.get)?desc.get:value2[part]}else isOwn=hasOwn(value2,part),value2=value2[part];isOwn&&!skipFurtherCaching&&(INTRINSICS[intrinsicRealName]=value2)}}return value2}}}),require_call_bound=__commonJS2({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(exports,module){var GetIntrinsic=require_get_intrinsic(),callBindBasic=require_call_bind_apply_helpers(),$indexOf=callBindBasic([GetIntrinsic("%String.prototype.indexOf%")]);module.exports=function(name,allowMissing){var intrinsic=GetIntrinsic(name,!!allowMissing);return"function"==typeof intrinsic&&$indexOf(name,".prototype.")>-1?callBindBasic([intrinsic]):intrinsic}}}),require_shams2=__commonJS2({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(exports,module){var hasSymbols=require_shams();module.exports=function(){return hasSymbols()&&!!Symbol.toStringTag}}}),require_is_regex=__commonJS2({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(exports,module){var fn,$exec,isRegexMarker,throwRegexMarker,badStringifier,$toString,callBound=require_call_bound(),hasToStringTag=require_shams2()(),hasOwn=require_hasown(),gOPD=require_gopd();hasToStringTag?($exec=callBound("RegExp.prototype.exec"),isRegexMarker={},badStringifier={toString:throwRegexMarker=function(){throw isRegexMarker},valueOf:throwRegexMarker},"symbol"==typeof Symbol.toPrimitive&&(badStringifier[Symbol.toPrimitive]=throwRegexMarker),fn=function(value2){if(!value2||"object"!=typeof value2)return!1;var descriptor=gOPD(value2,"lastIndex");if(!(descriptor&&hasOwn(descriptor,"value")))return!1;try{$exec(value2,badStringifier)}catch(e2){return e2===isRegexMarker}}):($toString=callBound("Object.prototype.toString"),fn=function(value2){return!(!value2||"object"!=typeof value2&&"function"!=typeof value2)&&"[object RegExp]"===$toString(value2)}),module.exports=fn}}),require_is_function=__commonJS2({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(exports,module){module.exports=function isFunction3(fn){if(!fn)return!1;var string=toString2.call(fn);return"[object Function]"===string||"function"==typeof fn&&"[object RegExp]"!==string||typeof window<"u"&&(fn===window.setTimeout||fn===window.alert||fn===window.confirm||fn===window.prompt)};var toString2=Object.prototype.toString}}),require_safe_regex_test=__commonJS2({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(exports,module){var callBound=require_call_bound(),isRegex=require_is_regex(),$exec=callBound("RegExp.prototype.exec"),$TypeError=require_type();module.exports=function(regex2){if(!isRegex(regex2))throw new $TypeError("`regex` must be a RegExp");return function(s2){return null!==$exec(regex2,s2)}}}}),require_is_symbol=__commonJS2({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(exports,module){var $symToStr,isSymString,isSymbolObject,callBound=require_call_bound(),$toString=callBound("Object.prototype.toString"),hasSymbols=require_has_symbols()(),safeRegexTest=require_safe_regex_test();hasSymbols?($symToStr=callBound("Symbol.prototype.toString"),isSymString=safeRegexTest(/^Symbol\(.*\)$/),isSymbolObject=function(value2){return"symbol"==typeof value2.valueOf()&&isSymString($symToStr(value2))},module.exports=function(value2){if("symbol"==typeof value2)return!0;if(!value2||"object"!=typeof value2||"[object Symbol]"!==$toString(value2))return!1;try{return isSymbolObject(value2)}catch{return!1}}):module.exports=function(value2){return!1}}}),import_is_regex=__toESM2(require_is_regex()),import_is_function=__toESM2(require_is_function()),import_is_symbol=__toESM2(require_is_symbol());var freeGlobal_default="object"==typeof __webpack_require__.g&&__webpack_require__.g&&__webpack_require__.g.Object===Object&&__webpack_require__.g,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root_default=freeGlobal_default||freeSelf||Function("return this")(),Symbol_default=root_default.Symbol,objectProto=Object.prototype,blocks_hasOwnProperty=objectProto.hasOwnProperty,nativeObjectToString=objectProto.toString,symToStringTag=Symbol_default?Symbol_default.toStringTag:void 0;var getRawTag_default=function getRawTag(value2){var isOwn=blocks_hasOwnProperty.call(value2,symToStringTag),tag=value2[symToStringTag];try{value2[symToStringTag]=void 0;var unmasked=!0}catch{}var result=nativeObjectToString.call(value2);return unmasked&&(isOwn?value2[symToStringTag]=tag:delete value2[symToStringTag]),result},nativeObjectToString2=Object.prototype.toString;var objectToString_default=function objectToString(value2){return nativeObjectToString2.call(value2)},symToStringTag2=Symbol_default?Symbol_default.toStringTag:void 0;var baseGetTag_default=function baseGetTag(value2){return null==value2?void 0===value2?"[object Undefined]":"[object Null]":symToStringTag2&&symToStringTag2 in Object(value2)?getRawTag_default(value2):objectToString_default(value2)},symbolProto=Symbol_default?Symbol_default.prototype:void 0;symbolProto&&symbolProto.toString;var isObject_default=function isObject2(value2){var type=typeof value2;return null!=value2&&("object"==type||"function"==type)};var uid,isFunction_default=function isFunction(value2){if(!isObject_default(value2))return!1;var tag=baseGetTag_default(value2);return"[object Function]"==tag||"[object GeneratorFunction]"==tag||"[object AsyncFunction]"==tag||"[object Proxy]"==tag},coreJsData_default=root_default["__core-js_shared__"],maskSrcKey=(uid=/[^.]+$/.exec(coreJsData_default&&coreJsData_default.keys&&coreJsData_default.keys.IE_PROTO||""))?"Symbol(src)_1."+uid:"";var isMasked_default=function isMasked(func){return!!maskSrcKey&&maskSrcKey in func},funcToString=Function.prototype.toString;var toSource_default=function toSource(func){if(null!=func){try{return funcToString.call(func)}catch{}try{return func+""}catch{}}return""},reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto2=Function.prototype,objectProto3=Object.prototype,funcToString2=funcProto2.toString,hasOwnProperty2=objectProto3.hasOwnProperty,reIsNative=RegExp("^"+funcToString2.call(hasOwnProperty2).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var baseIsNative_default=function baseIsNative(value2){return!(!isObject_default(value2)||isMasked_default(value2))&&(isFunction_default(value2)?reIsNative:reIsHostCtor).test(toSource_default(value2))};var getValue_default=function getValue(object2,key){return object2?.[key]};var getNative_default=function getNative(object2,key){var value2=getValue_default(object2,key);return baseIsNative_default(value2)?value2:void 0};var eq_default=function eq(value2,other){return value2===other||value2!=value2&&other!=other},nativeCreate_default=getNative_default(Object,"create");var hashClear_default=function hashClear(){this.__data__=nativeCreate_default?nativeCreate_default(null):{},this.size=0};var hashDelete_default=function hashDelete(key){var result=this.has(key)&&delete this.__data__[key];return this.size-=result?1:0,result},hasOwnProperty3=Object.prototype.hasOwnProperty;var hashGet_default=function hashGet(key){var data=this.__data__;if(nativeCreate_default){var result=data[key];return"__lodash_hash_undefined__"===result?void 0:result}return hasOwnProperty3.call(data,key)?data[key]:void 0},hasOwnProperty4=Object.prototype.hasOwnProperty;var hashHas_default=function hashHas(key){var data=this.__data__;return nativeCreate_default?void 0!==data[key]:hasOwnProperty4.call(data,key)};var hashSet_default=function hashSet(key,value2){var data=this.__data__;return this.size+=this.has(key)?0:1,data[key]=nativeCreate_default&&void 0===value2?"__lodash_hash_undefined__":value2,this};function Hash(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}Hash.prototype.clear=hashClear_default,Hash.prototype.delete=hashDelete_default,Hash.prototype.get=hashGet_default,Hash.prototype.has=hashHas_default,Hash.prototype.set=hashSet_default;var Hash_default=Hash;var listCacheClear_default=function listCacheClear(){this.__data__=[],this.size=0};var assocIndexOf_default=function assocIndexOf(array2,key){for(var length=array2.length;length--;)if(eq_default(array2[length][0],key))return length;return-1},splice=Array.prototype.splice;var listCacheDelete_default=function listCacheDelete(key){var data=this.__data__,index=assocIndexOf_default(data,key);return!(index<0)&&(index==data.length-1?data.pop():splice.call(data,index,1),--this.size,!0)};var listCacheGet_default=function listCacheGet(key){var data=this.__data__,index=assocIndexOf_default(data,key);return index<0?void 0:data[index][1]};var listCacheHas_default=function listCacheHas(key){return assocIndexOf_default(this.__data__,key)>-1};var listCacheSet_default=function listCacheSet(key,value2){var data=this.__data__,index=assocIndexOf_default(data,key);return index<0?(++this.size,data.push([key,value2])):data[index][1]=value2,this};function ListCache(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}ListCache.prototype.clear=listCacheClear_default,ListCache.prototype.delete=listCacheDelete_default,ListCache.prototype.get=listCacheGet_default,ListCache.prototype.has=listCacheHas_default,ListCache.prototype.set=listCacheSet_default;var ListCache_default=ListCache,Map_default=getNative_default(root_default,"Map");var mapCacheClear_default=function mapCacheClear(){this.size=0,this.__data__={hash:new Hash_default,map:new(Map_default||ListCache_default),string:new Hash_default}};var isKeyable_default=function isKeyable(value2){var type=typeof value2;return"string"==type||"number"==type||"symbol"==type||"boolean"==type?"__proto__"!==value2:null===value2};var getMapData_default=function getMapData(map,key){var data=map.__data__;return isKeyable_default(key)?data["string"==typeof key?"string":"hash"]:data.map};var mapCacheDelete_default=function mapCacheDelete(key){var result=getMapData_default(this,key).delete(key);return this.size-=result?1:0,result};var mapCacheGet_default=function mapCacheGet(key){return getMapData_default(this,key).get(key)};var mapCacheHas_default=function mapCacheHas(key){return getMapData_default(this,key).has(key)};var mapCacheSet_default=function mapCacheSet(key,value2){var data=getMapData_default(this,key),size=data.size;return data.set(key,value2),this.size+=data.size==size?0:1,this};function MapCache(entries){var index=-1,length=null==entries?0:entries.length;for(this.clear();++index<length;){var entry=entries[index];this.set(entry[0],entry[1])}}MapCache.prototype.clear=mapCacheClear_default,MapCache.prototype.delete=mapCacheDelete_default,MapCache.prototype.get=mapCacheGet_default,MapCache.prototype.has=mapCacheHas_default,MapCache.prototype.set=mapCacheSet_default;var MapCache_default=MapCache;function memoize2(func,resolver){if("function"!=typeof func||null!=resolver&&"function"!=typeof resolver)throw new TypeError("Expected a function");var memoized=function(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=memoized.cache;if(cache.has(key))return cache.get(key);var result=func.apply(this,args);return memoized.cache=cache.set(key,result)||cache,result};return memoized.cache=new(memoize2.Cache||MapCache_default),memoized}memoize2.Cache=MapCache_default;var memoize_default=memoize2;var rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g;(function memoizeCapped(func){var result=memoize_default(func,(function(key){return 500===cache.size&&cache.clear(),key})),cache=result.cache;return result})((function(string){var result=[];return 46===string.charCodeAt(0)&&result.push(""),string.replace(rePropName,(function(match,number,quote,subString){result.push(quote?subString.replace(reEscapeChar,"$1"):number||match)})),result}));var isObject3=function isObject(val){return null!=val&&"object"==typeof val&&!1===Array.isArray(val)},dateFormat=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/;function convertUnconventionalData(data){if(!isObject3(data))return data;let result=data,wasMutated=!1;return typeof Event<"u"&&data instanceof Event&&(result=function extractEventHiddenProperties(event){let rebuildEvent=eventProperties.filter((value2=>void 0!==event[value2])).reduce(((acc,value2)=>(acc[value2]=event[value2],acc)),{});if(event instanceof CustomEvent)for(let value2 of customEventSpecificProperties.filter((value22=>void 0!==event[value22])))rebuildEvent[value2]=event[value2];return rebuildEvent}(result),wasMutated=!0),result=Object.keys(result).reduce(((acc,key)=>{try{result[key]&&result[key].toJSON,acc[key]=result[key]}catch{wasMutated=!0}return acc}),{}),wasMutated?result:data}var defaultOptions={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},stringify=(data,options={})=>{let mergedOptions={...defaultOptions,...options};return JSON.stringify(convertUnconventionalData(data),function(options){let objects,map,stack,keys;return function(key,value2){try{if(""===key)return keys=[],objects=new Map([[value2,"[]"]]),map=new Map,stack=[],value2;let origin=map.get(this)||this;for(;stack.length&&origin!==stack[0];)stack.shift(),keys.pop();if("boolean"==typeof value2)return value2;if(void 0===value2)return options.allowUndefined?"_undefined_":void 0;if(null===value2)return null;if("number"==typeof value2)return value2===Number.NEGATIVE_INFINITY?"_-Infinity_":value2===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(value2)?"_NaN_":value2;if("bigint"==typeof value2)return`_bigint_${value2.toString()}`;if("string"==typeof value2)return dateFormat.test(value2)?options.allowDate?`_date_${value2}`:void 0:value2;if((0,import_is_regex.default)(value2))return options.allowRegExp?`_regexp_${value2.flags}|${value2.source}`:void 0;if((0,import_is_function.default)(value2))return;if((0,import_is_symbol.default)(value2)){if(!options.allowSymbol)return;let globalRegistryKey=Symbol.keyFor(value2);return void 0!==globalRegistryKey?`_gsymbol_${globalRegistryKey}`:`_symbol_${value2.toString().slice(7,-1)}`}if(stack.length>=options.maxDepth)return Array.isArray(value2)?`[Array(${value2.length})]`:"[Object]";if(value2===this)return`_duplicate_${JSON.stringify(keys)}`;if(value2 instanceof Error&&options.allowError)return{__isConvertedError__:!0,errorProperties:{...value2.cause?{cause:value2.cause}:{},...value2,name:value2.name,message:value2.message,stack:value2.stack,"_constructor-name_":value2.constructor.name}};if(value2?.constructor?.name&&"Object"!==value2.constructor.name&&!Array.isArray(value2)){let found2=objects.get(value2);if(!found2){let plainObject={__isClassInstance__:!0,__className__:value2.constructor.name,...Object.getOwnPropertyNames(value2).reduce(((acc,prop)=>{try{acc[prop]=value2[prop]}catch{}return acc}),{})};return keys.push(key),stack.unshift(plainObject),objects.set(value2,JSON.stringify(keys)),value2!==plainObject&&map.set(value2,plainObject),plainObject}return`_duplicate_${found2}`}let found=objects.get(value2);if(!found){let converted=Array.isArray(value2)?value2:convertUnconventionalData(value2);return keys.push(key),stack.unshift(converted),objects.set(value2,JSON.stringify(keys)),value2!==converted&&map.set(value2,converted),converted}return`_duplicate_${found}`}catch{return}}}(mergedOptions),options.space)};function argsHash(args){return stringify(args,{maxDepth:50})}var SourceContext=(0,react.createContext)({sources:{}}),SourceContainer=({children,channel})=>{let[sources,setSources]=(0,react.useState)({});return(0,react.useEffect)((()=>{let handleSnippetRendered=(idOrEvent,inputSource=null,inputFormat=!1)=>{let{id,args,source,format:format3}="string"==typeof idOrEvent?{id:idOrEvent,source:inputSource,format:inputFormat}:idOrEvent,hash=args?argsHash(args):"--unknown--";setSources((current=>({...current,[id]:{...current[id],[hash]:{code:source||"",format:format3}}})))};return channel.on(docs_tools.Op,handleSnippetRendered),()=>channel.off(docs_tools.Op,handleSnippetRendered)}),[]),react.createElement(SourceContext.Provider,{value:{sources}},children)};var useCode=({snippet,storyContext,typeFromProps,transformFromProps})=>{let parameters=storyContext.parameters??{},{__isArgsStory:isArgsStory}=parameters,sourceParameters=parameters.docs?.source||{},type=typeFromProps||sourceParameters.type||docs_tools.Y1.AUTO,code=type===docs_tools.Y1.DYNAMIC||type===docs_tools.Y1.AUTO&&snippet&&isArgsStory?snippet:sourceParameters.originalSource||"",transformer=transformFromProps??sourceParameters.transform,transformedCode=transformer?function useTransformCode(source,transform,storyContext){let[transformedCode,setTransformedCode]=(0,react.useState)("Transforming..."),transformed=transform?transform?.(source,storyContext):source;return(0,react.useEffect)((()=>{!async function getTransformedCode(){let transformResult=await transformed;transformResult!==transformedCode&&setTransformedCode(transformResult)}()})),"object"==typeof transformed&&"function"==typeof transformed.then?transformedCode:transformed}(code,transformer,storyContext):code;return void 0!==sourceParameters.code?sourceParameters.code:transformedCode},useSourceProps=(props,docsContext,sourceContext)=>{let{of}=props,story=(0,react.useMemo)((()=>{if(of)return docsContext.resolveOf(of,["story"]).story;try{return docsContext.storyById()}catch{}}),[docsContext,of]),storyContext=story?docsContext.getStoryContext(story):{},argsForSource=props.__forceInitialArgs?storyContext.initialArgs:storyContext.unmappedArgs,source=story?((storyId,args,sourceContext)=>{let{sources}=sourceContext,sourceMap=sources?.[storyId];return sourceMap?.[argsHash(args)]||sourceMap?.["--unknown--"]||{code:""}})(story.id,argsForSource,sourceContext):null,transformedCode=useCode({snippet:source?source.code:"",storyContext:{...storyContext,args:argsForSource},typeFromProps:props.type,transformFromProps:props.transform});if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let sourceParameters=story?.parameters?.docs?.source||{},format3=props.format,language=props.language??sourceParameters.language??"jsx",dark=props.dark??sourceParameters.dark??!1;return props.code||story?props.code?{code:props.code,format:format3,language,dark}:(format3=source?.format??!0,{code:transformedCode,format:format3,language,dark}):{error:"Oh no! The source is not available."}};function useStory(storyId,context){let stories=function useStories(storyIds,context){let[storiesById,setStories]=(0,react.useState)({});return(0,react.useEffect)((()=>{Promise.all(storyIds.map((async storyId=>{let story=await context.loadStory(storyId);setStories((current=>current[storyId]===story?current:{...current,[storyId]:story}))})))})),storyIds.map((storyId=>{if(storiesById[storyId])return storiesById[storyId];try{return context.storyById(storyId)}catch{return}}))}([storyId],context);return stories&&stories[0]}var Story2=(props={__forceInitialArgs:!1,__primary:!1})=>{let context=(0,react.useContext)(DocsContext),storyId=((props,context)=>{let{of,meta}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");return meta&&context.referenceMeta(meta,!1),context.resolveOf(of||"story",["story"]).story.id})(props,context),story=useStory(storyId,context);if(!story)return react.createElement(StorySkeleton,null);let storyProps=((props,story,context)=>{let{parameters={}}=story||{},{docs={}}=parameters,storyParameters=docs.story||{};if(docs.disable)return null;if(props.inline??storyParameters.inline)return{story,inline:!0,height:props.height??storyParameters.height,autoplay:props.autoplay??storyParameters.autoplay??!1,forceInitialArgs:!!props.__forceInitialArgs,primary:!!props.__primary,renderStoryToElement:context.renderStoryToElement};return{story,inline:!1,height:props.height??storyParameters.height??storyParameters.iframeHeight??"100px",primary:!!props.__primary}})(props,story,context);return storyProps?react.createElement(Story,{...storyProps}):null},Canvas=props=>{let docsContext=(0,react.useContext)(DocsContext),sourceContext=(0,react.useContext)(SourceContext),{of,source}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{story}=useOf(of||"story",["story"]),sourceProps=useSourceProps({...source,...of&&{of}},docsContext,sourceContext),layout=props.layout??story.parameters.layout??story.parameters.docs?.canvas?.layout??"padded",withToolbar=props.withToolbar??story.parameters.docs?.canvas?.withToolbar??!1,additionalActions=props.additionalActions??story.parameters.docs?.canvas?.additionalActions,sourceState=props.sourceState??story.parameters.docs?.canvas?.sourceState??"hidden",className=props.className??story.parameters.docs?.canvas?.className,inline=props.story?.inline??story.parameters?.docs?.story?.inline??!1;return react.createElement(Preview,{withSource:"none"===sourceState?void 0:sourceProps,isExpanded:"shown"===sourceState,withToolbar,additionalActions,className,layout,inline},react.createElement(Story2,{of:of||story.moduleExport,meta:props.meta,...props.story}))},useArgsIfDefined=(story,context)=>{let storyContext=story?context.getStoryContext(story):{args:{}},{id:storyId}=story||{id:"none"},[args,setArgs]=(0,react.useState)(storyContext.args);(0,react.useEffect)((()=>{let onArgsUpdated=changed=>{changed.storyId===storyId&&setArgs(changed.args)};return context.channel.on(external_STORYBOOK_MODULE_CORE_EVENTS_.STORY_ARGS_UPDATED,onArgsUpdated),()=>context.channel.off(external_STORYBOOK_MODULE_CORE_EVENTS_.STORY_ARGS_UPDATED,onArgsUpdated)}),[storyId,context.channel]);let updateArgs=(0,react.useCallback)((updatedArgs=>context.channel.emit(external_STORYBOOK_MODULE_CORE_EVENTS_.UPDATE_STORY_ARGS,{storyId,updatedArgs})),[storyId,context.channel]),resetArgs=(0,react.useCallback)((argNames=>context.channel.emit(external_STORYBOOK_MODULE_CORE_EVENTS_.RESET_STORY_ARGS,{storyId,argNames})),[storyId,context.channel]);return story&&[args,updateArgs,resetArgs]};function extractComponentArgTypes2(component,parameters){let{extractArgTypes}=parameters.docs||{};if(!extractArgTypes)throw new Error("Args unsupported. See Args documentation for your framework.");return extractArgTypes(component)}var Controls3=props=>{let{of}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let context=(0,react.useContext)(DocsContext),{story}=context.resolveOf(of||"story",["story"]),{parameters,argTypes,component,subcomponents}=story,controlsParameters=parameters.docs?.controls||{},include=props.include??controlsParameters.include,exclude=props.exclude??controlsParameters.exclude,sort=props.sort??controlsParameters.sort,[args,updateArgs,resetArgs]=((story,context)=>{let result=useArgsIfDefined(story,context);if(!result)throw new Error("No result when story was defined");return result})(story,context),[globals]=((story,context)=>{let storyContext=context.getStoryContext(story),[globals,setGlobals]=(0,react.useState)(storyContext.globals);return(0,react.useEffect)((()=>{let onGlobalsUpdated=changed=>{setGlobals(changed.globals)};return context.channel.on(external_STORYBOOK_MODULE_CORE_EVENTS_.GLOBALS_UPDATED,onGlobalsUpdated),()=>context.channel.off(external_STORYBOOK_MODULE_CORE_EVENTS_.GLOBALS_UPDATED,onGlobalsUpdated)}),[context.channel]),[globals]})(story,context),filteredArgTypes=(0,external_STORYBOOK_MODULE_PREVIEW_API_.filterArgTypes)(argTypes,include,exclude);if(!(subcomponents&&Object.keys(subcomponents||{}).length>0))return Object.keys(filteredArgTypes).length>0||Object.keys(args).length>0?react.createElement(ArgsTable,{rows:filteredArgTypes,sort,args,globals,updateArgs,resetArgs}):null;let mainComponentName=getComponentName(component)||"Story",subcomponentTabs=Object.fromEntries(Object.entries(subcomponents||{}).map((([key,comp])=>[key,{rows:(0,external_STORYBOOK_MODULE_PREVIEW_API_.filterArgTypes)(extractComponentArgTypes2(comp,parameters),include,exclude),sort}]))),tabs={[mainComponentName]:{rows:filteredArgTypes,sort},...subcomponentTabs};return react.createElement(TabbedArgsTable,{tabs,sort,args,globals,updateArgs,resetArgs})},{document:document2}=globalThis,CodeOrSourceMdx=({className,children,...rest})=>{if("string"!=typeof className&&("string"!=typeof children||!children.match(/[\n\r]/g)))return react.createElement(components.Cy,null,children);let language=className&&className.split("-");return react.createElement(Source,{language:language&&language[1]||"text",format:!1,code:children,...rest})};function blocks_navigate(context,url){context.channel.emit(external_STORYBOOK_MODULE_CORE_EVENTS_.NAVIGATE_URL,url)}var DescriptionType2,A2=components.dK.a,AnchorInPage=({hash,children})=>{let context=(0,react.useContext)(DocsContext);return react.createElement(A2,{href:hash,target:"_self",onClick:event=>{let id=hash.substring(1);document2.getElementById(id)&&blocks_navigate(context,hash)}},children)},AnchorMdx=props=>{let{href,target,children,...rest}=props,context=(0,react.useContext)(DocsContext);return!href||"_blank"===target||/^https?:\/\//.test(href)?react.createElement(A2,{...props}):href.startsWith("#")?react.createElement(AnchorInPage,{hash:href},children):react.createElement(A2,{href,onClick:event=>{0===event.button&&!event.altKey&&!event.ctrlKey&&!event.metaKey&&!event.shiftKey&&(event.preventDefault(),blocks_navigate(context,event.currentTarget.getAttribute("href")||""))},target,...rest},children)},SUPPORTED_MDX_HEADERS=["h1","h2","h3","h4","h5","h6"],OcticonHeaders=SUPPORTED_MDX_HEADERS.reduce(((acc,headerType)=>({...acc,[headerType]:(0,theming.I4)(headerType)({"& svg":{position:"relative",top:"-0.1em",visibility:"hidden"},"&:hover svg":{visibility:"visible"}})})),{}),OcticonAnchor=theming.I4.a((()=>({float:"left",lineHeight:"inherit",paddingRight:"10px",marginLeft:"-24px",color:"inherit"}))),HeaderWithOcticonAnchor=({as,id,children,...rest})=>{let context=(0,react.useContext)(DocsContext),OcticonHeader=OcticonHeaders[as],hash=`#${id}`;return react.createElement(OcticonHeader,{id,...rest},react.createElement(OcticonAnchor,{"aria-hidden":"true",href:hash,tabIndex:-1,target:"_self",onClick:event=>{document2.getElementById(id)&&blocks_navigate(context,hash)}},react.createElement(dist.qYV,null)),children)},HeaderMdx=props=>{let{as,id,children,...rest}=props;if(id)return react.createElement(HeaderWithOcticonAnchor,{as,id,...rest},children);let Component4=as,{as:omittedAs,...withoutAs}=props;return react.createElement(Component4,{...(0,components.mc)(withoutAs,as)})},HeadersMdx=SUPPORTED_MDX_HEADERS.reduce(((acc,headerType)=>({...acc,[headerType]:props=>react.createElement(HeaderMdx,{as:headerType,...props})})),{}),Markdown=props=>{if(!props.children)return null;if("string"!=typeof props.children)throw new Error(dedent`The Markdown block only accepts children as a single string, but children were of type: '${typeof props.children}' This is often caused by not wrapping the child in a template string. This is invalid: <Markdown> # Some heading A paragraph </Markdown> Instead do: <Markdown> {\` # Some heading A paragraph \`} </Markdown> `);return react.createElement(index_modern_default,{...props,options:{forceBlock:!0,overrides:{code:CodeOrSourceMdx,a:AnchorMdx,...HeadersMdx,...props?.options?.overrides},...props?.options}})},DescriptionType=((DescriptionType2=DescriptionType||{}).INFO="info",DescriptionType2.NOTES="notes",DescriptionType2.DOCGEN="docgen",DescriptionType2.AUTO="auto",DescriptionType2),DescriptionContainer=props=>{let{of}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let markdown=(resolvedOf=>{switch(resolvedOf.type){case"story":return resolvedOf.story.parameters.docs?.description?.story||null;case"meta":{let{parameters,component}=resolvedOf.preparedMeta,metaDescription=parameters.docs?.description?.component;return metaDescription||parameters.docs?.extractComponentDescription?.(component,{component,parameters})||null}case"component":{let{component,projectAnnotations:{parameters}}=resolvedOf;return parameters?.docs?.extractComponentDescription?.(component,{component,parameters})||null}default:throw new Error(`Unrecognized module type resolved from 'useOf', got: ${resolvedOf.type}`)}})(useOf(of||"meta"));return markdown?react.createElement(Markdown,null,markdown):null},{document:document3,window:globalWindow3}=globalThis,DocsContainer=({context,theme,children})=>{let toc;try{toc=context.resolveOf("meta",["meta"]).preparedMeta.parameters?.docs?.toc}catch{toc=context?.projectAnnotations?.parameters?.docs?.toc}return(0,react.useEffect)((()=>{let url;try{if(url=new URL(globalWindow3.parent.location.toString()),url.hash){let element=document3.getElementById(decodeURIComponent(url.hash.substring(1)));element&&setTimeout((()=>{!function scrollToElement(element,block="start"){element.scrollIntoView({behavior:"smooth",block,inline:"nearest"})}(element)}),200)}}catch{}})),react.createElement(DocsContext.Provider,{value:context},react.createElement(SourceContainer,{channel:context.channel},react.createElement(theming.NP,{theme:(0,theming.D8)(theme)},react.createElement(DocsPageWrapper,{toc:toc?react.createElement(TableOfContents,{className:"sbdocs sbdocs-toc--custom",channel:context.channel,...toc}):null},children))))},regex=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,own=Object.hasOwnProperty;var slugs=new class{constructor(){this.occurrences,this.reset()}slug(value2,maintainCase){let self2=this,result=function slug(value2,maintainCase){return"string"!=typeof value2?"":(maintainCase||(value2=value2.toLowerCase()),value2.replace(regex,"").replace(/ /g,"-"))}(value2,!0===maintainCase),originalSlug=result;for(;own.call(self2.occurrences,result);)self2.occurrences[originalSlug]++,result=originalSlug+"-"+self2.occurrences[originalSlug];return self2.occurrences[result]=0,result}reset(){this.occurrences=Object.create(null)}},Subheading=({children,disableAnchor})=>{if(disableAnchor||"string"!=typeof children)return react.createElement(components.H3,null,children);let tagID=slugs.slug(children.toLowerCase());return react.createElement(HeaderMdx,{as:"h3",id:tagID},children)},DocsStory=({of,expanded=!0,withToolbar:withToolbarProp=!1,__forceInitialArgs=!1,__primary=!1})=>{let{story}=useOf(of||"story",["story"]),withToolbar=story.parameters.docs?.canvas?.withToolbar??withToolbarProp;return react.createElement(Anchor,{storyId:story.id},expanded&&react.createElement(react.Fragment,null,react.createElement(Subheading,null,story.name),react.createElement(DescriptionContainer,{of})),react.createElement(Canvas,{of,withToolbar,story:{__forceInitialArgs,__primary},source:{__forceInitialArgs}}))},Primary=props=>{let{of}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");let{csfFile}=useOf(of||"meta",["meta"]),primaryStory=(0,react.useContext)(DocsContext).componentStoriesFromCSFFile(csfFile)[0];return primaryStory?react.createElement(DocsStory,{of:primaryStory.moduleExport,expanded:!1,__primary:!0,withToolbar:!0}):null},StyledHeading=(0,theming.I4)((({children,disableAnchor,...props})=>{if(disableAnchor||"string"!=typeof children)return react.createElement(components.H2,null,children);let tagID=slugs.slug(children.toLowerCase());return react.createElement(HeaderMdx,{as:"h2",id:tagID,...props},children)}))((({theme})=>({fontSize:theme.typography.size.s2-1+"px",fontWeight:theme.typography.weight.bold,lineHeight:"16px",letterSpacing:"0.35em",textTransform:"uppercase",color:theme.textMutedColor,border:0,marginBottom:"12px","&:first-of-type":{marginTop:"56px"}}))),Stories=({title="Stories",includePrimary=!0})=>{let{componentStories,projectAnnotations,getStoryContext}=(0,react.useContext)(DocsContext),stories=componentStories(),{stories:{filter}={filter:void 0}}=projectAnnotations.parameters?.docs||{};return filter&&(stories=stories.filter((story=>filter(story,getStoryContext(story))))),stories.some((story=>story.tags?.includes("autodocs")))&&(stories=stories.filter((story=>story.tags?.includes("autodocs")&&!story.usesMount))),includePrimary||(stories=stories.slice(1)),stories&&0!==stories.length?react.createElement(react.Fragment,null,"string"==typeof title?react.createElement(StyledHeading,null,title):title,stories.map((story=>story&&react.createElement(DocsStory,{key:story.id,of:story.moduleExport,expanded:!0,__forceInitialArgs:!0})))):null},Subtitle2=props=>{let preparedMeta,{of,children}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");try{preparedMeta=useOf(of||"meta",["meta"]).preparedMeta}catch(error){if(children&&!error.message.includes("did you forget to use <Meta of={} />?"))throw error}let{componentSubtitle,docs}=preparedMeta?.parameters||{};componentSubtitle&&(0,external_STORYBOOK_MODULE_CLIENT_LOGGER_.deprecate)("Using 'parameters.componentSubtitle' property to subtitle stories is deprecated. See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#subtitle-block-and-parameterscomponentsubtitle");let content=children||docs?.subtitle||componentSubtitle;return content?react.createElement(Subtitle,{className:"sbdocs-subtitle sb-unstyled"},content):null},STORY_KIND_PATH_SEPARATOR=/\s*\/\s*/,Title3=props=>{let preparedMeta,{children,of}=props;if("of"in props&&void 0===of)throw new Error("Unexpected `of={undefined}`, did you mistype a CSF file reference?");try{preparedMeta=useOf(of||"meta",["meta"]).preparedMeta}catch(error){if(children&&error instanceof Error&&!error.message.includes("did you forget to use <Meta of={} />?"))throw error}let content=children||(title=>{let groups=title.trim().split(STORY_KIND_PATH_SEPARATOR);return groups?.[groups?.length-1]||title})(preparedMeta?.title||"");return content?react.createElement(Title,{className:"sbdocs-title sb-unstyled"},content):null},DocsPage=()=>{let resolvedOf=useOf("meta",["meta"]),{stories}=resolvedOf.csfFile,isSingleStory=1===Object.keys(stories).length;return react.createElement(react.Fragment,null,react.createElement(Title3,null),react.createElement(Subtitle2,null),react.createElement(DescriptionContainer,{of:"meta"}),isSingleStory?react.createElement(DescriptionContainer,{of:"story"}):null,react.createElement(Primary,null),react.createElement(Controls3,null),isSingleStory?null:react.createElement(Stories,null))};function Docs({context,docsParameter}){let Container2=docsParameter.container||DocsContainer,Page=docsParameter.page||DocsPage;return react.createElement(Container2,{context,theme:docsParameter.theme},react.createElement(Page,null))}var ExternalDocsContext=class extends external_STORYBOOK_MODULE_PREVIEW_API_.DocsContext{constructor(channel,store,renderStoryToElement,processMetaExports){super(channel,store,renderStoryToElement,[]),this.channel=channel,this.store=store,this.renderStoryToElement=renderStoryToElement,this.processMetaExports=processMetaExports,this.referenceMeta=(metaExports,attach)=>{let csfFile=this.processMetaExports(metaExports);this.referenceCSFFile(csfFile),super.referenceMeta(metaExports,attach)}}},ConstantMap=class{constructor(prefix){this.prefix=prefix,this.entries=new Map}get(key){return this.entries.has(key)||this.entries.set(key,`${this.prefix}${this.entries.size}`),this.entries.get(key)}};external_STORYBOOK_MODULE_PREVIEW_API_.Preview;var Meta=({of})=>{let context=(0,react.useContext)(DocsContext);of&&context.referenceMeta(of,!0);try{let primary=context.storyById();return react.createElement(Anchor,{storyId:primary.id})}catch{return null}}},"./node_modules/@storybook/addon-docs/dist/chunk-QUZPS4B6.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{P$:()=>__commonJS,f1:()=>__toESM,ki:()=>__require});var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__require=__webpack_require__("./node_modules/@storybook/addon-docs/dist sync recursive"),__commonJS=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},__toESM=(mod,isNodeMode,target)=>(target=null!=mod?__create(__getProtoOf(mod)):{},((to,from,except,desc)=>{if(from&&"object"==typeof from||"function"==typeof from)for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to})(!isNodeMode&&mod&&mod.__esModule?target:__defProp(target,"default",{value:mod,enumerable:!0}),mod))},"./node_modules/@storybook/addon-docs/dist/chunk-SPFYY5GD.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function debounce(func,debounceMs,{signal,edges}={}){let pendingThis,pendingArgs=null,leading=null!=edges&&edges.includes("leading"),trailing=null==edges||edges.includes("trailing"),invoke=()=>{null!==pendingArgs&&(func.apply(pendingThis,pendingArgs),pendingThis=void 0,pendingArgs=null)},timeoutId=null,schedule=()=>{null!=timeoutId&&clearTimeout(timeoutId),timeoutId=setTimeout((()=>{timeoutId=null,trailing&&invoke(),cancel()}),debounceMs)},cancelTimer=()=>{null!==timeoutId&&(clearTimeout(timeoutId),timeoutId=null)},cancel=()=>{cancelTimer(),pendingThis=void 0,pendingArgs=null},debounced=function(...args){if(signal?.aborted)return;pendingThis=this,pendingArgs=args;let isFirstCall=null==timeoutId;schedule(),leading&&isFirstCall&&invoke()};return debounced.schedule=schedule,debounced.cancel=cancel,debounced.flush=()=>{cancelTimer(),invoke()},signal?.addEventListener("abort",cancel,{once:!0}),debounced}function debounce2(func,debounceMs=0,options={}){"object"!=typeof options&&(options={});let{signal,leading=!1,trailing=!0,maxWait}=options,edges=Array(2);leading&&(edges[0]="leading"),trailing&&(edges[1]="trailing");let result,pendingAt=null,_debounced=debounce((function(...args){result=func.apply(this,args),pendingAt=null}),debounceMs,{signal,edges}),debounced=function(...args){if(null!=maxWait)if(null===pendingAt)pendingAt=Date.now();else if(Date.now()-pendingAt>=maxWait)return result=func.apply(this,args),pendingAt=Date.now(),_debounced.cancel(),_debounced.schedule(),result;return _debounced.apply(this,args),result};return debounced.cancel=_debounced.cancel,debounced.flush=()=>(_debounced.flush(),result),debounced}function isSymbol(value){return"symbol"==typeof value||value instanceof Symbol}function toFinite(value){return value?(value=function toNumber(value){return isSymbol(value)?NaN:Number(value)}(value))===1/0||value===-1/0?(value<0?-1:1)*Number.MAX_VALUE:value==value?value:0:0===value?value:0}function isTypedArray(x){return ArrayBuffer.isView(x)&&!(x instanceof DataView)}function getSymbols(object){return Object.getOwnPropertySymbols(object).filter((symbol=>Object.prototype.propertyIsEnumerable.call(object,symbol)))}__webpack_require__.d(__webpack_exports__,{Yq:()=>getControlSetterButtonId,ZA:()=>getControlId,fN:()=>pickBy,mg:()=>cloneDeep,sb:()=>uniq2,sg:()=>debounce2});var regexpTag="[object RegExp]",stringTag="[object String]",numberTag="[object Number]",booleanTag="[object Boolean]",argumentsTag="[object Arguments]",symbolTag="[object Symbol]",dateTag="[object Date]",mapTag="[object Map]",setTag="[object Set]",arrayTag="[object Array]",arrayBufferTag="[object ArrayBuffer]",objectTag="[object Object]",dataViewTag="[object DataView]",uint8ArrayTag="[object Uint8Array]",uint8ClampedArrayTag="[object Uint8ClampedArray]",uint16ArrayTag="[object Uint16Array]",uint32ArrayTag="[object Uint32Array]",int8ArrayTag="[object Int8Array]",int16ArrayTag="[object Int16Array]",int32ArrayTag="[object Int32Array]",float32ArrayTag="[object Float32Array]",float64ArrayTag="[object Float64Array]";function cloneDeepWithImpl(valueToClone,keyToClone,objectToClone,stack=new Map,cloneValue=void 0){let cloned=cloneValue?.(valueToClone,keyToClone,objectToClone,stack);if(null!=cloned)return cloned;if(function isPrimitive(value){return null==value||"object"!=typeof value&&"function"!=typeof value}(valueToClone))return valueToClone;if(stack.has(valueToClone))return stack.get(valueToClone);if(Array.isArray(valueToClone)){let result=new Array(valueToClone.length);stack.set(valueToClone,result);for(let i=0;i<valueToClone.length;i++)result[i]=cloneDeepWithImpl(valueToClone[i],i,objectToClone,stack,cloneValue);return Object.hasOwn(valueToClone,"index")&&(result.index=valueToClone.index),Object.hasOwn(valueToClone,"input")&&(result.input=valueToClone.input),result}if(valueToClone instanceof Date)return new Date(valueToClone.getTime());if(valueToClone instanceof RegExp){let result=new RegExp(valueToClone.source,valueToClone.flags);return result.lastIndex=valueToClone.lastIndex,result}if(valueToClone instanceof Map){let result=new Map;stack.set(valueToClone,result);for(let[key,value]of valueToClone)result.set(key,cloneDeepWithImpl(value,key,objectToClone,stack,cloneValue));return result}if(valueToClone instanceof Set){let result=new Set;stack.set(valueToClone,result);for(let value of valueToClone)result.add(cloneDeepWithImpl(value,void 0,objectToClone,stack,cloneValue));return result}if(typeof Buffer<"u"&&Buffer.isBuffer(valueToClone))return valueToClone.subarray();if(isTypedArray(valueToClone)){let result=new(Object.getPrototypeOf(valueToClone).constructor)(valueToClone.length);stack.set(valueToClone,result);for(let i=0;i<valueToClone.length;i++)result[i]=cloneDeepWithImpl(valueToClone[i],i,objectToClone,stack,cloneValue);return result}if(valueToClone instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&valueToClone instanceof SharedArrayBuffer)return valueToClone.slice(0);if(valueToClone instanceof DataView){let result=new DataView(valueToClone.buffer.slice(0),valueToClone.byteOffset,valueToClone.byteLength);return stack.set(valueToClone,result),copyProperties(result,valueToClone,objectToClone,stack,cloneValue),result}if(typeof File<"u"&&valueToClone instanceof File){let result=new File([valueToClone],valueToClone.name,{type:valueToClone.type});return stack.set(valueToClone,result),copyProperties(result,valueToClone,objectToClone,stack,cloneValue),result}if(valueToClone instanceof Blob){let result=new Blob([valueToClone],{type:valueToClone.type});return stack.set(valueToClone,result),copyProperties(result,valueToClone,objectToClone,stack,cloneValue),result}if(valueToClone instanceof Error){let result=new valueToClone.constructor;return stack.set(valueToClone,result),result.message=valueToClone.message,result.name=valueToClone.name,result.stack=valueToClone.stack,result.cause=valueToClone.cause,copyProperties(result,valueToClone,objectToClone,stack,cloneValue),result}if("object"==typeof valueToClone&&function isCloneableObject(object){switch(function getTag(value){return null==value?void 0===value?"[object Undefined]":"[object Null]":Object.prototype.toString.call(value)}(object)){case argumentsTag:case arrayTag:case arrayBufferTag:case dataViewTag:case booleanTag:case dateTag:case float32ArrayTag:case float64ArrayTag:case int8ArrayTag:case int16ArrayTag:case int32ArrayTag:case mapTag:case numberTag:case objectTag:case regexpTag:case setTag:case stringTag:case symbolTag:case uint8ArrayTag:case uint8ClampedArrayTag:case uint16ArrayTag:case uint32ArrayTag:return!0;default:return!1}}(valueToClone)){let result=Object.create(Object.getPrototypeOf(valueToClone));return stack.set(valueToClone,result),copyProperties(result,valueToClone,objectToClone,stack,cloneValue),result}return valueToClone}function copyProperties(target,source,objectToClone=target,stack,cloneValue){let keys=[...Object.keys(source),...getSymbols(source)];for(let i=0;i<keys.length;i++){let key=keys[i],descriptor=Object.getOwnPropertyDescriptor(target,key);(null==descriptor||descriptor.writable)&&(target[key]=cloneDeepWithImpl(source[key],key,objectToClone,stack,cloneValue))}}function isArrayLike(value){return null!=value&&"function"!=typeof value&&function isLength(value){return Number.isSafeInteger(value)&&value>=0}(value.length)}function cloneDeepWith2(obj,cloneValue){return function cloneDeepWith(obj,cloneValue){return cloneDeepWithImpl(obj,void 0,obj,new Map,cloneValue)}(obj,((value,key,object,stack)=>{let cloned=cloneValue?.(value,key,object,stack);if(null!=cloned)return cloned;if("object"==typeof obj)switch(Object.prototype.toString.call(obj)){case numberTag:case stringTag:case booleanTag:{let result=new obj.constructor(obj?.valueOf());return copyProperties(result,obj),result}case argumentsTag:{let result={};return copyProperties(result,obj),result.length=obj.length,result[Symbol.iterator]=obj[Symbol.iterator],result}default:return}}))}function cloneDeep(obj){return cloneDeepWith2(obj)}function uniq2(arr){return isArrayLike(arr)?function uniq(arr){return Array.from(new Set(arr))}(Array.from(arr)):[]}function times(n,getValue){if((n=function toInteger(value){let finite=toFinite(value),remainder=finite%1;return remainder?finite-remainder:finite}(n))<1||!Number.isSafeInteger(n))return[];let result=new Array(n);for(let i=0;i<n;i++)result[i]="function"==typeof getValue?getValue(i):i;return result}function keysIn(object){if(null==object)return[];switch(typeof object){case"object":case"function":return isArrayLike(object)?function arrayLikeKeysIn(object){let indices=times(object.length,(index=>`${index}`)),filteredKeys=new Set(indices);return function isBuffer(x){return typeof Buffer<"u"&&Buffer.isBuffer(x)}(object)&&(filteredKeys.add("offset"),filteredKeys.add("parent")),function isTypedArray2(x){return isTypedArray(x)}(object)&&(filteredKeys.add("buffer"),filteredKeys.add("byteLength"),filteredKeys.add("byteOffset")),[...indices,...keysInImpl(object).filter((key=>!filteredKeys.has(key)))]}(object):function isPrototype(value){let constructor=value?.constructor;return value===("function"==typeof constructor?constructor.prototype:Object.prototype)}(object)?function prototypeKeysIn(object){return keysInImpl(object).filter((key=>"constructor"!==key))}(object):keysInImpl(object);default:return keysInImpl(Object(object))}}function keysInImpl(object){let result=[];for(let key in object)result.push(key);return result}function getSymbolsIn(object){let result=[];for(;object;)result.push(...getSymbols(object)),object=Object.getPrototypeOf(object);return result}function pickBy(obj,shouldPick){if(null==obj)return{};let result={};if(null==shouldPick)return obj;let keys=isArrayLike(obj)?function range(start,end,step=1){if(null==end&&(end=start,start=0),!Number.isInteger(step)||0===step)throw new Error("The step value must be a non-zero integer.");let length=Math.max(Math.ceil((end-start)/step),0),result=new Array(length);for(let i=0;i<length;i++)result[i]=start+i*step;return result}(0,obj.length):[...keysIn(obj),...getSymbolsIn(obj)];for(let i=0;i<keys.length;i++){let key=isSymbol(keys[i])?keys[i]:keys[i].toString(),value=obj[key];shouldPick(value,key,obj)&&(result[key]=value)}return result}var getControlId=value=>`control-${value.replace(/\s+/g,"-")}`,getControlSetterButtonId=value=>`set-${value.replace(/\s+/g,"-")}`},"./node_modules/@storybook/addon-docs/dist/preview.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{parameters:()=>parameters});var excludeTags=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce(((acc,entry)=>{let[tag,option]=entry;return option.excludeFromDocsStories&&(acc[tag]=!0),acc}),{}),parameters={docs:{renderer:async()=>{let{DocsRenderer}=await __webpack_require__.e(161).then(__webpack_require__.bind(__webpack_require__,"./node_modules/@storybook/addon-docs/dist/DocsRenderer-PQXLIZUC.mjs"));return new DocsRenderer},stories:{filter:story=>0===(story.tags||[]).filter((tag=>excludeTags[tag])).length&&!story.parameters.docs?.disable}}}},"./node_modules/@storybook/icons/dist/index.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{D3D:()=>ChevronDownIcon,LoD:()=>ZoomOutIcon,PU:()=>ZoomIcon,QDE:()=>MarkupIcon,Qpb:()=>SubtractIcon,REV:()=>AddIcon,abt:()=>ChevronSmallDownIcon,bMW:()=>EyeIcon,dbI:()=>EyeCloseIcon,ejX:()=>UndoIcon,pyG:()=>DocumentIcon,qYV:()=>LinkIcon,tN5:()=>ChevronSmallUpIcon,vKP:()=>ChevronRightIcon,wV5:()=>ZoomResetIcon});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),ZoomIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M6 3.5a.5.5 0 01.5.5v1.5H8a.5.5 0 010 1H6.5V8a.5.5 0 01-1 0V6.5H4a.5.5 0 010-1h1.5V4a.5.5 0 01.5-.5z",fill:color}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.544 10.206a5.5 5.5 0 11.662-.662.5.5 0 01.148.102l3 3a.5.5 0 01-.708.708l-3-3a.5.5 0 01-.102-.148zM10.5 6a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0z",fill:color})))),ZoomOutIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M4 5.5a.5.5 0 000 1h4a.5.5 0 000-1H4z",fill:color}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 11.5c1.35 0 2.587-.487 3.544-1.294a.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 106 11.5zm0-1a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",fill:color})))),ZoomResetIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M1.5 2.837V1.5a.5.5 0 00-1 0V4a.5.5 0 00.5.5h2.5a.5.5 0 000-1H2.258a4.5 4.5 0 11-.496 4.016.5.5 0 10-.942.337 5.502 5.502 0 008.724 2.353.5.5 0 00.102.148l3 3a.5.5 0 00.708-.708l-3-3a.5.5 0 00-.148-.102A5.5 5.5 0 101.5 2.837z",fill:color})))),EyeIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M7 9.5a2.5 2.5 0 100-5 2.5 2.5 0 000 5z",fill:color}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7l-.21.293C13.669 7.465 10.739 11.5 7 11.5S.332 7.465.21 7.293L0 7l.21-.293C.331 6.536 3.261 2.5 7 2.5s6.668 4.036 6.79 4.207L14 7zM2.896 5.302A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5c1.518 0 2.958-.83 4.104-1.802A12.72 12.72 0 0012.755 7c-.297-.37-.875-1.04-1.65-1.698C9.957 4.33 8.517 3.5 7 3.5c-1.519 0-2.958.83-4.104 1.802z",fill:color})))),EyeCloseIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11zM11.104 8.698c-.177.15-.362.298-.553.439l.714.714a13.25 13.25 0 002.526-2.558L14 7l-.21-.293C13.669 6.536 10.739 2.5 7 2.5c-.89 0-1.735.229-2.506.58l.764.763A4.859 4.859 0 017 3.5c1.518 0 2.958.83 4.104 1.802A12.724 12.724 0 0112.755 7a12.72 12.72 0 01-1.65 1.698zM.21 6.707c.069-.096 1.03-1.42 2.525-2.558l.714.714c-.191.141-.376.288-.553.439A12.725 12.725 0 001.245 7c.296.37.874 1.04 1.65 1.698C4.043 9.67 5.482 10.5 7 10.5a4.86 4.86 0 001.742-.344l.764.764c-.772.351-1.616.58-2.506.58C3.262 11.5.332 7.465.21 7.293L0 7l.21-.293z",fill:color}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M4.5 7c0-.322.061-.63.172-.914l3.242 3.242A2.5 2.5 0 014.5 7zM9.328 7.914L6.086 4.672a2.5 2.5 0 013.241 3.241z",fill:color})))),DocumentIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M4 5.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5zM4.5 7.5a.5.5 0 000 1h5a.5.5 0 000-1h-5zM4 10.5a.5.5 0 01.5-.5h5a.5.5 0 010 1h-5a.5.5 0 01-.5-.5z",fill:color}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 0a.5.5 0 00-.5.5v13a.5.5 0 00.5.5h11a.5.5 0 00.5-.5V3.207a.5.5 0 00-.146-.353L10.146.146A.5.5 0 009.793 0H1.5zM2 1h7.5v2a.5.5 0 00.5.5h2V13H2V1z",fill:color})))),MarkupIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M8.982 1.632a.5.5 0 00-.964-.263l-3 11a.5.5 0 10.964.263l3-11zM3.32 3.616a.5.5 0 01.064.704L1.151 7l2.233 2.68a.5.5 0 11-.768.64l-2.5-3a.5.5 0 010-.64l2.5-3a.5.5 0 01.704-.064zM10.68 3.616a.5.5 0 00-.064.704L12.849 7l-2.233 2.68a.5.5 0 00.768.64l2.5-3a.5.5 0 000-.64l-2.5-3a.5.5 0 00-.704-.064z",fill:color})))),AddIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M7 3a.5.5 0 01.5.5v3h3a.5.5 0 010 1h-3v3a.5.5 0 01-1 0v-3h-3a.5.5 0 010-1h3v-3A.5.5 0 017 3z",fill:color}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z",fill:color})))),SubtractIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M3.5 6.5a.5.5 0 000 1h7a.5.5 0 000-1h-7z",fill:color}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 7A7 7 0 110 7a7 7 0 0114 0zm-1 0A6 6 0 111 7a6 6 0 0112 0z",fill:color})))),LinkIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M11.841 2.159a2.25 2.25 0 00-3.182 0l-2.5 2.5a2.25 2.25 0 000 3.182.5.5 0 01-.707.707 3.25 3.25 0 010-4.596l2.5-2.5a3.25 3.25 0 014.596 4.596l-2.063 2.063a4.27 4.27 0 00-.094-1.32l1.45-1.45a2.25 2.25 0 000-3.182z",fill:color}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M3.61 7.21c-.1-.434-.132-.88-.095-1.321L1.452 7.952a3.25 3.25 0 104.596 4.596l2.5-2.5a3.25 3.25 0 000-4.596.5.5 0 00-.707.707 2.25 2.25 0 010 3.182l-2.5 2.5A2.25 2.25 0 112.159 8.66l1.45-1.45z",fill:color})))),ChevronDownIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M1.146 4.604l5.5 5.5a.5.5 0 00.708 0l5.5-5.5a.5.5 0 00-.708-.708L7 9.043 1.854 3.896a.5.5 0 10-.708.708z",fill:color})))),ChevronRightIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",fill:color})))),ChevronSmallUpIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M3.854 9.104a.5.5 0 11-.708-.708l3.5-3.5a.5.5 0 01.708 0l3.5 3.5a.5.5 0 01-.708.708L7 5.957 3.854 9.104z",fill:color})))),ChevronSmallDownIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M3.854 4.896a.5.5 0 10-.708.708l3.5 3.5a.5.5 0 00.708 0l3.5-3.5a.5.5 0 00-.708-.708L7 8.043 3.854 4.896z",fill:color})))),UndoIcon=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color="currentColor",size=14,...props},forwardedRef)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:size,height:size,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:forwardedRef,...props},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M1.146 3.854a.5.5 0 010-.708l2-2a.5.5 0 11.708.708L2.707 3h6.295A4 4 0 019 11H3a.5.5 0 010-1h6a3 3 0 100-6H2.707l1.147 1.146a.5.5 0 11-.708.708l-2-2z",fill:color}))))},"./node_modules/@storybook/react/dist/chunk-6BNVLEVL.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{HA:()=>reactElementToJsxString,Jz:()=>isForwardRef,Rf:()=>isMemo});var _chunk_XP5HYGXS_mjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@storybook/react/dist/chunk-XP5HYGXS.mjs"),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/index.js"),require_dist=(0,_chunk_XP5HYGXS_mjs__WEBPACK_IMPORTED_MODULE_0__.P$)({"../../node_modules/@base2/pretty-print-object/dist/index.js"(exports){var __assign=exports&&exports.__assign||function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},__assign.apply(this,arguments)},__spreadArrays=exports&&exports.__spreadArrays||function(){for(var s=0,i=0,il=arguments.length;i<il;i++)s+=arguments[i].length;var r=Array(s),k=0;for(i=0;i<il;i++)for(var a=arguments[i],j=0,jl=a.length;j<jl;j++,k++)r[k]=a[j];return r};Object.defineProperty(exports,"__esModule",{value:!0});var seen=[];exports.prettyPrint=function prettyPrint2(input,options,pad){void 0===pad&&(pad="");var tokens,combinedOptions=__assign(__assign({},{indent:"\t",singleQuotes:!0}),options);tokens=void 0===combinedOptions.inlineCharacterLimit?{newLine:"\n",newLineOrSpace:"\n",pad,indent:pad+combinedOptions.indent}:{newLine:"@@__PRETTY_PRINT_NEW_LINE__@@",newLineOrSpace:"@@__PRETTY_PRINT_NEW_LINE_OR_SPACE__@@",pad:"@@__PRETTY_PRINT_PAD__@@",indent:"@@__PRETTY_PRINT_INDENT__@@"};var expandWhiteSpace=function(string){if(void 0===combinedOptions.inlineCharacterLimit)return string;var oneLined=string.replace(new RegExp(tokens.newLine,"g"),"").replace(new RegExp(tokens.newLineOrSpace,"g")," ").replace(new RegExp(tokens.pad+"|"+tokens.indent,"g"),"");return oneLined.length<=combinedOptions.inlineCharacterLimit?oneLined:string.replace(new RegExp(tokens.newLine+"|"+tokens.newLineOrSpace,"g"),"\n").replace(new RegExp(tokens.pad,"g"),pad).replace(new RegExp(tokens.indent,"g"),pad+combinedOptions.indent)};if(-1!==seen.indexOf(input))return'"[Circular]"';if(null==input||"number"==typeof input||"boolean"==typeof input||"function"==typeof input||"symbol"==typeof input||function isRegexp(value){return"[object RegExp]"===Object.prototype.toString.call(value)}(input))return String(input);if(input instanceof Date)return"new Date('"+input.toISOString()+"')";if(Array.isArray(input)){if(0===input.length)return"[]";seen.push(input);var ret="["+tokens.newLine+input.map((function(el,i){var eol=input.length-1===i?tokens.newLine:","+tokens.newLineOrSpace,value=prettyPrint2(el,combinedOptions,pad+combinedOptions.indent);return combinedOptions.transform&&(value=combinedOptions.transform(input,i,value)),tokens.indent+value+eol})).join("")+tokens.pad+"]";return seen.pop(),expandWhiteSpace(ret)}if(function isObj(value){var type=typeof value;return null!==value&&("object"===type||"function"===type)}(input)){var objKeys_1=__spreadArrays(Object.keys(input),function getOwnEnumPropSymbols(object){return Object.getOwnPropertySymbols(object).filter((function(keySymbol){return Object.prototype.propertyIsEnumerable.call(object,keySymbol)}))}(input));if(combinedOptions.filter&&(objKeys_1=objKeys_1.filter((function(el){return combinedOptions.filter&&combinedOptions.filter(input,el)}))),0===objKeys_1.length)return"{}";seen.push(input);ret="{"+tokens.newLine+objKeys_1.map((function(el,i){var eol=objKeys_1.length-1===i?tokens.newLine:","+tokens.newLineOrSpace,isSymbol="symbol"==typeof el,isClassic=!isSymbol&&/^[a-z$_][a-z$_0-9]*$/i.test(el.toString()),key=isSymbol||isClassic?el:prettyPrint2(el,combinedOptions),value=prettyPrint2(input[el],combinedOptions,pad+combinedOptions.indent);return combinedOptions.transform&&(value=combinedOptions.transform(input,el,value)),tokens.indent+String(key)+": "+value+eol})).join("")+tokens.pad+"}";return seen.pop(),expandWhiteSpace(ret)}return input=String(input).replace(/[\r\n]/g,(function(x){return"\n"===x?"\\n":"\\r"})),combinedOptions.singleQuotes?"'"+(input=input.replace(/\\?'/g,"\\'"))+"'":'"'+(input=input.replace(/"/g,'\\"'))+'"'}}}),require_react_is_production_min=(0,_chunk_XP5HYGXS_mjs__WEBPACK_IMPORTED_MODULE_0__.P$)({"../../node_modules/react-element-to-jsx-string/node_modules/react-is/cjs/react-is.production.min.js"(exports){var u,b=Symbol.for("react.element"),c=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),h=Symbol.for("react.context"),k=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),n=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),t=Symbol.for("react.offscreen");function v(a){if("object"==typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}u=Symbol.for("react.module.reference"),exports.ContextConsumer=h,exports.ContextProvider=g,exports.Element=b,exports.ForwardRef=l,exports.Fragment=d,exports.Lazy=q,exports.Memo=p,exports.Portal=c,exports.Profiler=f,exports.StrictMode=e,exports.Suspense=m,exports.SuspenseList=n,exports.isAsyncMode=function(){return!1},exports.isConcurrentMode=function(){return!1},exports.isContextConsumer=function(a){return v(a)===h},exports.isContextProvider=function(a){return v(a)===g},exports.isElement=function(a){return"object"==typeof a&&null!==a&&a.$$typeof===b},exports.isForwardRef=function(a){return v(a)===l},exports.isFragment=function(a){return v(a)===d},exports.isLazy=function(a){return v(a)===q},exports.isMemo=function(a){return v(a)===p},exports.isPortal=function(a){return v(a)===c},exports.isProfiler=function(a){return v(a)===f},exports.isStrictMode=function(a){return v(a)===e},exports.isSuspense=function(a){return v(a)===m},exports.isSuspenseList=function(a){return v(a)===n},exports.isValidElementType=function(a){return"string"==typeof a||"function"==typeof a||a===d||a===f||a===e||a===m||a===n||a===t||"object"==typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)},exports.typeOf=v}}),require_react_is=((0,_chunk_XP5HYGXS_mjs__WEBPACK_IMPORTED_MODULE_0__.P$)({"../../node_modules/react-element-to-jsx-string/node_modules/react-is/cjs/react-is.development.js"(exports){}}),(0,_chunk_XP5HYGXS_mjs__WEBPACK_IMPORTED_MODULE_0__.P$)({"../../node_modules/react-element-to-jsx-string/node_modules/react-is/index.js"(exports,module){module.exports=require_react_is_production_min()}})),isMemo=component=>component.$$typeof===Symbol.for("react.memo"),isForwardRef=component=>component.$$typeof===Symbol.for("react.forward_ref");function isObject(o){return"[object Object]"===Object.prototype.toString.call(o)}var import_pretty_print_object=(0,_chunk_XP5HYGXS_mjs__WEBPACK_IMPORTED_MODULE_0__.f1)(require_dist()),import_react_is=(0,_chunk_XP5HYGXS_mjs__WEBPACK_IMPORTED_MODULE_0__.f1)(require_react_is()),spacer=function(times,tabStop){return 0===times?"":new Array(times*tabStop).fill(" ").join("")};function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n}function _defineProperty(e,r,t){return(r=function _toPropertyKey(t){var i=function _toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==typeof i?i:i+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r2){return Object.getOwnPropertyDescriptor(e,r2).enumerable}))),t.push.apply(t,o)}return t}function _toConsumableArray(r){return function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r)}(r)||function _iterableToArray(r){if(typeof Symbol<"u"&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}(r)||function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0}}(r)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _typeof(o){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o2){return typeof o2}:function(o2){return o2&&"function"==typeof Symbol&&o2.constructor===Symbol&&o2!==Symbol.prototype?"symbol":typeof o2})(o)}function safeSortObject(value,seen){if(null===value||"object"!==_typeof(value)||value instanceof Date||value instanceof RegExp)return value;if(react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(value)){var copyObj=function _objectSpread2(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r2){_defineProperty(e,r2,t[r2])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach((function(r2){Object.defineProperty(e,r2,Object.getOwnPropertyDescriptor(t,r2))}))}return e}({},value);return delete copyObj._owner,copyObj}return seen.add(value),Array.isArray(value)?value.map((function(v){return safeSortObject(v,seen)})):Object.keys(value).sort().reduce((function(result,key){return"current"===key||seen.has(value[key])?result[key]="[Circular]":result[key]=safeSortObject(value[key],seen),result}),{})}var createStringTreeNode=function(value){return{type:"string",value}},supportFragment=!!react__WEBPACK_IMPORTED_MODULE_1__.Fragment,getFunctionTypeName=function(functionType){return functionType.name&&"_default"!==functionType.name?functionType.name:"No Display Name"},_getWrappedComponentDisplayName=function(Component){switch(!0){case!!Component.displayName:return Component.displayName;case Component.$$typeof===import_react_is.Memo:return _getWrappedComponentDisplayName(Component.type);case Component.$$typeof===import_react_is.ForwardRef:return _getWrappedComponentDisplayName(Component.render);default:return getFunctionTypeName(Component)}},getReactElementDisplayName=function(element){switch(!0){case"string"==typeof element.type:return element.type;case"function"==typeof element.type:return element.type.displayName?element.type.displayName:getFunctionTypeName(element.type);case(0,import_react_is.isForwardRef)(element):case(0,import_react_is.isMemo)(element):return _getWrappedComponentDisplayName(element.type);case(0,import_react_is.isContextConsumer)(element):return"".concat(element.type._context.displayName||"Context",".Consumer");case(0,import_react_is.isContextProvider)(element):return"".concat(element.type._context.displayName||"Context",".Provider");case(0,import_react_is.isLazy)(element):return"Lazy";case(0,import_react_is.isProfiler)(element):return"Profiler";case(0,import_react_is.isStrictMode)(element):return"StrictMode";case(0,import_react_is.isSuspense)(element):return"Suspense";default:return"UnknownElementType"}},noChildren=function(propsValue,propName){return"children"!==propName},onlyMeaningfulChildren=function(children){return!0!==children&&!1!==children&&null!==children&&""!==children},filterProps=function(originalProps,cb){var filteredProps={};return Object.keys(originalProps).filter((function(key){return cb(originalProps[key],key)})).forEach((function(key){return filteredProps[key]=originalProps[key]})),filteredProps},_parseReactElement=function(element,options){var _options$displayName=options.displayName,displayNameFn=void 0===_options$displayName?getReactElementDisplayName:_options$displayName;if("string"==typeof element)return createStringTreeNode(element);if("number"==typeof element)return{type:"number",value:element};if(!react__WEBPACK_IMPORTED_MODULE_1__.isValidElement(element))throw new Error("react-element-to-jsx-string: Expected a React.Element, got `".concat(_typeof(element),"`"));var displayName=displayNameFn(element),props=filterProps(element.props,noChildren);null!==element.ref&&(props.ref=element.ref);var key=element.key;"string"==typeof key&&key.search(/^\./)&&(props.key=key);var defaultProps=filterProps(element.type.defaultProps||{},noChildren),childrens=react__WEBPACK_IMPORTED_MODULE_1__.Children.toArray(element.props.children).filter(onlyMeaningfulChildren).map((function(child){return _parseReactElement(child,options)}));return supportFragment&&element.type===react__WEBPACK_IMPORTED_MODULE_1__.Fragment?function(key,childrens){return{type:"ReactFragment",key,childrens}}(key,childrens):function(displayName,props,defaultProps,childrens){return{type:"ReactElement",displayName,props,defaultProps,childrens}}(displayName,props,defaultProps,childrens)};function noRefCheck(){}var defaultFunctionValue=function(fn){return fn.toString().split("\n").map((function(line){return line.trim()})).join("")},formatFunction=function(fn,options){var _options$functionValu=options.functionValue,functionValue=void 0===_options$functionValu?defaultFunctionValue:_options$functionValu;return functionValue(options.showFunctions||functionValue!==defaultFunctionValue?fn:noRefCheck)},formatComplexDataStructure=function(value,inline,lvl,options){var normalizedValue=function sortObject(value){return safeSortObject(value,new WeakSet)}(value),stringifiedValue=(0,import_pretty_print_object.prettyPrint)(normalizedValue,{transform:function(currentObj,prop,originalResult){var currentValue=currentObj[prop];return currentValue&&(0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(currentValue)?formatTreeNode(_parseReactElement(currentValue,options),!0,lvl,options):"function"==typeof currentValue?formatFunction(currentValue,options):originalResult}});return inline?stringifiedValue.replace(/\s+/g," ").replace(/{ /g,"{").replace(/ }/g,"}").replace(/\[ /g,"[").replace(/ ]/g,"]"):stringifiedValue.replace(/\t/g,spacer(1,options.tabStop)).replace(/\n([^$])/g,"\n".concat(spacer(lvl+1,options.tabStop),"$1"))},formatPropValue=function(propValue,inline,lvl,options){if("number"==typeof propValue)return"{".concat(String(propValue),"}");if("string"==typeof propValue)return'"'.concat(propValue.replace(/"/g,"""),'"');if("symbol"===_typeof(propValue)){var symbolDescription=propValue.valueOf().toString().replace(/Symbol\((.*)\)/,"$1");return symbolDescription?"{Symbol('".concat(symbolDescription,"')}"):"{Symbol()}"}return"function"==typeof propValue?"{".concat(formatFunction(propValue,options),"}"):(0,react__WEBPACK_IMPORTED_MODULE_1__.isValidElement)(propValue)?"{".concat(formatTreeNode(_parseReactElement(propValue,options),!0,lvl,options),"}"):propValue instanceof Date?isNaN(propValue.valueOf())?"{new Date(NaN)}":'{new Date("'.concat(propValue.toISOString(),'")}'):function isPlainObject(o){var ctor,prot;return!1!==isObject(o)&&(void 0===(ctor=o.constructor)||!(!1===isObject(prot=ctor.prototype)||!1===prot.hasOwnProperty("isPrototypeOf")))}(propValue)||Array.isArray(propValue)?"{".concat(formatComplexDataStructure(propValue,inline,lvl,options),"}"):"{".concat(String(propValue),"}")},mergeSiblingPlainStringChildrenReducer=function(previousNodes,currentNode){var nodes=previousNodes.slice(0,previousNodes.length>0?previousNodes.length-1:0),previousNode=previousNodes[previousNodes.length-1];return!previousNode||"string"!==currentNode.type&&"number"!==currentNode.type||"string"!==previousNode.type&&"number"!==previousNode.type?(previousNode&&nodes.push(previousNode),nodes.push(currentNode)):nodes.push(createStringTreeNode(String(previousNode.value)+String(currentNode.value))),nodes};var formatOneChildren=function(inline,lvl,options){return function(element){return function(element,formattedElement,inline,lvl,options){var tabStop=options.tabStop;return"string"===element.type?formattedElement.split("\n").map((function(line,offset){return 0===offset?line:"".concat(spacer(lvl,tabStop)).concat(line)})).join("\n"):formattedElement}(element,formatTreeNode(element,inline,lvl,options),0,lvl,options)}},isInlineAttributeTooLong=function(attributes,inlineAttributeString,lvl,tabStop,maxInlineAttributesLineLength){return maxInlineAttributesLineLength?spacer(lvl,tabStop).length+inlineAttributeString.length>maxInlineAttributesLineLength:attributes.length>1},formatReactElementNode=function(node,inline,lvl,options){var type=node.type,_node$displayName=node.displayName,displayName=void 0===_node$displayName?"":_node$displayName,childrens=node.childrens,_node$props=node.props,props=void 0===_node$props?{}:_node$props,_node$defaultProps=node.defaultProps,defaultProps=void 0===_node$defaultProps?{}:_node$defaultProps;if("ReactElement"!==type)throw new Error('The "formatReactElementNode" function could only format node of type "ReactElement". Given: '.concat(type));var filterProps3=options.filterProps,maxInlineAttributesLineLength=options.maxInlineAttributesLineLength,showDefaultProps=options.showDefaultProps,sortProps=options.sortProps,tabStop=options.tabStop,out="<".concat(displayName),outInlineAttr=out,outMultilineAttr=out,containsMultilineAttr=!1,visibleAttributeNames=[],propFilter=function createPropFilter(props,filter){return Array.isArray(filter)?function(key){return-1===filter.indexOf(key)}:function(key){return filter(props[key],key)}}(props,filterProps3);Object.keys(props).filter(propFilter).filter(function(defaultProps,props){return function(propName){var haveDefaultValue=Object.keys(defaultProps).includes(propName);return!haveDefaultValue||haveDefaultValue&&defaultProps[propName]!==props[propName]}}(defaultProps,props)).forEach((function(propName){return visibleAttributeNames.push(propName)})),Object.keys(defaultProps).filter(propFilter).filter((function(){return showDefaultProps})).filter((function(defaultPropName){return!visibleAttributeNames.includes(defaultPropName)})).forEach((function(defaultPropName){return visibleAttributeNames.push(defaultPropName)}));var shouldSortUserProps,attributes=(shouldSortUserProps=sortProps,function(props){var haveKeyProp=props.includes("key"),haveRefProp=props.includes("ref"),userPropsOnly=props.filter((function(oneProp){return!["key","ref"].includes(oneProp)})),sortedProps=_toConsumableArray(shouldSortUserProps?userPropsOnly.sort():userPropsOnly);return haveRefProp&&sortedProps.unshift("ref"),haveKeyProp&&sortedProps.unshift("key"),sortedProps})(visibleAttributeNames);if(attributes.forEach((function(attributeName){var _formatProp=function(name,hasValue,value,hasDefaultValue,defaultValue,inline,lvl,options){if(!hasValue&&!hasDefaultValue)throw new Error('The prop "'.concat(name,'" has no value and no default: could not be formatted'));var usedValue=hasValue?value:defaultValue,useBooleanShorthandSyntax=options.useBooleanShorthandSyntax,tabStop=options.tabStop,formattedPropValue=formatPropValue(usedValue,inline,lvl,options),attributeFormattedInline=" ",attributeFormattedMultiline="\n".concat(spacer(lvl+1,tabStop)),isMultilineAttribute=formattedPropValue.includes("\n");return useBooleanShorthandSyntax&&"{false}"===formattedPropValue&&!hasDefaultValue?(attributeFormattedInline="",attributeFormattedMultiline=""):useBooleanShorthandSyntax&&"{true}"===formattedPropValue?(attributeFormattedInline+="".concat(name),attributeFormattedMultiline+="".concat(name)):(attributeFormattedInline+="".concat(name,"=").concat(formattedPropValue),attributeFormattedMultiline+="".concat(name,"=").concat(formattedPropValue)),{attributeFormattedInline,attributeFormattedMultiline,isMultilineAttribute}}(attributeName,Object.keys(props).includes(attributeName),props[attributeName],Object.keys(defaultProps).includes(attributeName),defaultProps[attributeName],inline,lvl,options),attributeFormattedInline=_formatProp.attributeFormattedInline,attributeFormattedMultiline=_formatProp.attributeFormattedMultiline;_formatProp.isMultilineAttribute&&(containsMultilineAttr=!0),outInlineAttr+=attributeFormattedInline,outMultilineAttr+=attributeFormattedMultiline})),outMultilineAttr+="\n".concat(spacer(lvl,tabStop)),out=function(attributes,inlineAttributeString,containsMultilineAttr,inline,lvl,tabStop,maxInlineAttributesLineLength){return(isInlineAttributeTooLong(attributes,inlineAttributeString,lvl,tabStop,maxInlineAttributesLineLength)||containsMultilineAttr)&&!inline}(attributes,outInlineAttr,containsMultilineAttr,inline,lvl,tabStop,maxInlineAttributesLineLength)?outMultilineAttr:outInlineAttr,childrens&&childrens.length>0){var newLvl=lvl+1;out+=">",inline||(out+="\n",out+=spacer(newLvl,tabStop)),out+=childrens.reduce(mergeSiblingPlainStringChildrenReducer,[]).map(formatOneChildren(inline,newLvl,options)).join(inline?"":"\n".concat(spacer(newLvl,tabStop))),inline||(out+="\n",out+=spacer(newLvl-1,tabStop)),out+="</".concat(displayName,">")}else isInlineAttributeTooLong(attributes,outInlineAttr,lvl,tabStop,maxInlineAttributesLineLength)||(out+=" "),out+="/>";return out},jsxStopChars=["<",">","{","}"],escape2=function(s){return function(s){return jsxStopChars.some((function(jsxStopChar){return s.includes(jsxStopChar)}))}(s)?"{`".concat(s,"`}"):s},formatTreeNode=function(node,inline,lvl,options){if("number"===node.type)return String(node.value);if("string"===node.type)return node.value?"".concat((s=escape2(String(node.value)),(result=s).endsWith(" ")&&(result=result.replace(/^(.*?)(\s+)$/,"$1{'$2'}")),result.startsWith(" ")&&(result=result.replace(/^(\s+)(.*)$/,"{'$1'}$2")),result)):"";var s,result;if("ReactElement"===node.type)return formatReactElementNode(node,inline,lvl,options);if("ReactFragment"===node.type)return function(node,inline,lvl,options){var displayName,type=node.type,key=node.key,childrens=node.childrens;if("ReactFragment"!==type)throw new Error('The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: '.concat(type));return displayName=options.useFragmentShortSyntax?0===node.childrens.length||node.key?"React.Fragment":"":"React.Fragment",formatReactElementNode(function(displayName,key,childrens){var props={};return key&&(props={key}),{type:"ReactElement",displayName,props,defaultProps:{},childrens}}(displayName,key,childrens),inline,lvl,options)}(node,inline,lvl,options);throw new TypeError('Unknow format type "'.concat(node.type,'"'))},reactElementToJsxString=function(element){var _ref=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},_ref$filterProps=_ref.filterProps,filterProps3=void 0===_ref$filterProps?[]:_ref$filterProps,_ref$showDefaultProps=_ref.showDefaultProps,showDefaultProps=void 0===_ref$showDefaultProps||_ref$showDefaultProps,_ref$showFunctions=_ref.showFunctions,showFunctions=void 0!==_ref$showFunctions&&_ref$showFunctions,functionValue=_ref.functionValue,_ref$tabStop=_ref.tabStop,tabStop=void 0===_ref$tabStop?2:_ref$tabStop,_ref$useBooleanShorth=_ref.useBooleanShorthandSyntax,useBooleanShorthandSyntax=void 0===_ref$useBooleanShorth||_ref$useBooleanShorth,_ref$useFragmentShort=_ref.useFragmentShortSyntax,useFragmentShortSyntax=void 0===_ref$useFragmentShort||_ref$useFragmentShort,_ref$sortProps=_ref.sortProps,sortProps=void 0===_ref$sortProps||_ref$sortProps,maxInlineAttributesLineLength=_ref.maxInlineAttributesLineLength,displayName=_ref.displayName;if(!element)throw new Error("react-element-to-jsx-string: Expected a ReactElement");var options={filterProps:filterProps3,showDefaultProps,showFunctions,functionValue,tabStop,useBooleanShorthandSyntax,useFragmentShortSyntax,sortProps,maxInlineAttributesLineLength,displayName};return function(node,options){return formatTreeNode(node,!1,0,options)}(_parseReactElement(element,options),options)}},"./node_modules/@storybook/react/dist/chunk-XLZBPYSH.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{t:()=>applyDecorators});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),storybook_preview_api__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("storybook/preview-api"),applyDecorators=(storyFn,decorators)=>(0,storybook_preview_api__WEBPACK_IMPORTED_MODULE_1__.defaultDecorateStory)((context=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(storyFn,context)),decorators)},"./node_modules/@storybook/react/dist/chunk-XP5HYGXS.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{E:()=>__esm,P$:()=>__commonJS,VA:()=>__export,Yp:()=>__toCommonJS,f1:()=>__toESM});var __create=Object.create,__defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty,__esm=(fn,res)=>function(){return fn&&(res=(0,fn[__getOwnPropNames(fn)[0]])(fn=0)),res},__commonJS=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports},__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&"object"==typeof from||"function"==typeof from)for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toESM=(mod,isNodeMode,target)=>(target=null!=mod?__create(__getProtoOf(mod)):{},__copyProps(!isNodeMode&&mod&&mod.__esModule?target:__defProp(target,"default",{value:mod,enumerable:!0}),mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod)},"./node_modules/@storybook/react/dist/entry-preview-argtypes.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{argTypesEnhancers:()=>argTypesEnhancers,parameters:()=>parameters});var chunk_6BNVLEVL=__webpack_require__("./node_modules/@storybook/react/dist/chunk-6BNVLEVL.mjs"),chunk_XP5HYGXS=__webpack_require__("./node_modules/@storybook/react/dist/chunk-XP5HYGXS.mjs"),docs_tools=__webpack_require__("./node_modules/storybook/dist/docs-tools/index.js"),require_estraverse=(0,chunk_XP5HYGXS.P$)({"../../node_modules/estraverse/estraverse.js"(exports){!function clone(exports2){var Syntax,VisitorOption,VisitorKeys,BREAK,SKIP,REMOVE;function deepCopy(obj){var key,val,ret={};for(key in obj)obj.hasOwnProperty(key)&&(val=obj[key],ret[key]="object"==typeof val&&null!==val?deepCopy(val):val);return ret}function Reference(parent,key){this.parent=parent,this.key=key}function Element(node,path,wrap,ref2){this.node=node,this.path=path,this.wrap=wrap,this.ref=ref2}function Controller(){}function isNode(node){return null!=node&&("object"==typeof node&&"string"==typeof node.type)}function isProperty(nodeType,key){return(nodeType===Syntax.ObjectExpression||nodeType===Syntax.ObjectPattern)&&"properties"===key}function candidateExistsInLeaveList(leavelist,candidate){for(var i=leavelist.length-1;i>=0;--i)if(leavelist[i].node===candidate)return!0;return!1}function traverse(root,visitor){return(new Controller).traverse(root,visitor)}function extendCommentRange(comment,tokens){var target;return target=function upperBound(array,func){var diff,len,i,current2;for(len=array.length,i=0;len;)func(array[current2=i+(diff=len>>>1)])?len=diff:(i=current2+1,len-=diff+1);return i}(tokens,(function(token){return token.range[0]>comment.range[0]})),comment.extendedRange=[comment.range[0],comment.range[1]],target!==tokens.length&&(comment.extendedRange[1]=tokens[target].range[0]),(target-=1)>=0&&(comment.extendedRange[0]=tokens[target].range[1]),comment}return Syntax={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},VisitorKeys={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},VisitorOption={Break:BREAK={},Skip:SKIP={},Remove:REMOVE={}},Reference.prototype.replace=function(node){this.parent[this.key]=node},Reference.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},Controller.prototype.path=function(){var i,iz,j,jz,result;function addToPath(result2,path2){if(Array.isArray(path2))for(j=0,jz=path2.length;j<jz;++j)result2.push(path2[j]);else result2.push(path2)}if(!this.__current.path)return null;for(result=[],i=2,iz=this.__leavelist.length;i<iz;++i)addToPath(result,this.__leavelist[i].path);return addToPath(result,this.__current.path),result},Controller.prototype.type=function(){return this.current().type||this.__current.wrap},Controller.prototype.parents=function(){var i,iz,result;for(result=[],i=1,iz=this.__leavelist.length;i<iz;++i)result.push(this.__leavelist[i].node);return result},Controller.prototype.current=function(){return this.__current.node},Controller.prototype.__execute=function(callback,element){var previous,result;return result=void 0,previous=this.__current,this.__current=element,this.__state=null,callback&&(result=callback.call(this,element.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=previous,result},Controller.prototype.notify=function(flag){this.__state=flag},Controller.prototype.skip=function(){this.notify(SKIP)},Controller.prototype.break=function(){this.notify(BREAK)},Controller.prototype.remove=function(){this.notify(REMOVE)},Controller.prototype.__initialize=function(root,visitor){this.visitor=visitor,this.root=root,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,"iteration"===visitor.fallback?this.__fallback=Object.keys:"function"==typeof visitor.fallback&&(this.__fallback=visitor.fallback),this.__keys=VisitorKeys,visitor.keys&&(this.__keys=Object.assign(Object.create(this.__keys),visitor.keys))},Controller.prototype.traverse=function(root,visitor){var worklist,leavelist,element,node,nodeType,ret,key,current2,current22,candidates,candidate,sentinel;for(this.__initialize(root,visitor),sentinel={},worklist=this.__worklist,leavelist=this.__leavelist,worklist.push(new Element(root,null,null,null)),leavelist.push(new Element(null,null,null,null));worklist.length;)if((element=worklist.pop())!==sentinel){if(element.node){if(ret=this.__execute(visitor.enter,element),this.__state===BREAK||ret===BREAK)return;if(worklist.push(sentinel),leavelist.push(element),this.__state===SKIP||ret===SKIP)continue;if(nodeType=(node=element.node).type||element.wrap,!(candidates=this.__keys[nodeType])){if(!this.__fallback)throw new Error("Unknown node type "+nodeType+".");candidates=this.__fallback(node)}for(current2=candidates.length;(current2-=1)>=0;)if(candidate=node[key=candidates[current2]])if(Array.isArray(candidate)){for(current22=candidate.length;(current22-=1)>=0;)if(candidate[current22]&&!candidateExistsInLeaveList(leavelist,candidate[current22])){if(isProperty(nodeType,candidates[current2]))element=new Element(candidate[current22],[key,current22],"Property",null);else{if(!isNode(candidate[current22]))continue;element=new Element(candidate[current22],[key,current22],null,null)}worklist.push(element)}}else if(isNode(candidate)){if(candidateExistsInLeaveList(leavelist,candidate))continue;worklist.push(new Element(candidate,key,null,null))}}}else if(element=leavelist.pop(),ret=this.__execute(visitor.leave,element),this.__state===BREAK||ret===BREAK)return},Controller.prototype.replace=function(root,visitor){var worklist,leavelist,node,nodeType,target,element,current2,current22,candidates,candidate,sentinel,outer,key;function removeElem(element2){var i,key2,nextElem,parent;if(element2.ref.remove())for(key2=element2.ref.key,parent=element2.ref.parent,i=worklist.length;i--;)if((nextElem=worklist[i]).ref&&nextElem.ref.parent===parent){if(nextElem.ref.key<key2)break;--nextElem.ref.key}}for(this.__initialize(root,visitor),sentinel={},worklist=this.__worklist,leavelist=this.__leavelist,element=new Element(root,null,null,new Reference(outer={root},"root")),worklist.push(element),leavelist.push(element);worklist.length;)if((element=worklist.pop())!==sentinel){if(void 0!==(target=this.__execute(visitor.enter,element))&&target!==BREAK&&target!==SKIP&&target!==REMOVE&&(element.ref.replace(target),element.node=target),(this.__state===REMOVE||target===REMOVE)&&(removeElem(element),element.node=null),this.__state===BREAK||target===BREAK)return outer.root;if((node=element.node)&&(worklist.push(sentinel),leavelist.push(element),this.__state!==SKIP&&target!==SKIP)){if(nodeType=node.type||element.wrap,!(candidates=this.__keys[nodeType])){if(!this.__fallback)throw new Error("Unknown node type "+nodeType+".");candidates=this.__fallback(node)}for(current2=candidates.length;(current2-=1)>=0;)if(candidate=node[key=candidates[current2]])if(Array.isArray(candidate)){for(current22=candidate.length;(current22-=1)>=0;)if(candidate[current22]){if(isProperty(nodeType,candidates[current2]))element=new Element(candidate[current22],[key,current22],"Property",new Reference(candidate,current22));else{if(!isNode(candidate[current22]))continue;element=new Element(candidate[current22],[key,current22],null,new Reference(candidate,current22))}worklist.push(element)}}else isNode(candidate)&&worklist.push(new Element(candidate,key,null,new Reference(node,key)))}}else if(element=leavelist.pop(),void 0!==(target=this.__execute(visitor.leave,element))&&target!==BREAK&&target!==SKIP&&target!==REMOVE&&element.ref.replace(target),(this.__state===REMOVE||target===REMOVE)&&removeElem(element),this.__state===BREAK||target===BREAK)return outer.root;return outer.root},exports2.Syntax=Syntax,exports2.traverse=traverse,exports2.replace=function replace(root,visitor){return(new Controller).replace(root,visitor)},exports2.attachComments=function attachComments(tree,providedComments,tokens){var comment,len,i,cursor,comments=[];if(!tree.range)throw new Error("attachComments needs range information");if(!tokens.length){if(providedComments.length){for(i=0,len=providedComments.length;i<len;i+=1)(comment=deepCopy(providedComments[i])).extendedRange=[0,tree.range[0]],comments.push(comment);tree.leadingComments=comments}return tree}for(i=0,len=providedComments.length;i<len;i+=1)comments.push(extendCommentRange(deepCopy(providedComments[i]),tokens));return cursor=0,traverse(tree,{enter:function(node){for(var comment2;cursor<comments.length&&!((comment2=comments[cursor]).extendedRange[1]>node.range[0]);)comment2.extendedRange[1]===node.range[0]?(node.leadingComments||(node.leadingComments=[]),node.leadingComments.push(comment2),comments.splice(cursor,1)):cursor+=1;return cursor===comments.length?VisitorOption.Break:comments[cursor].extendedRange[0]>node.range[1]?VisitorOption.Skip:void 0}}),cursor=0,traverse(tree,{leave:function(node){for(var comment2;cursor<comments.length&&(comment2=comments[cursor],!(node.range[1]<comment2.extendedRange[0]));)node.range[1]===comment2.extendedRange[0]?(node.trailingComments||(node.trailingComments=[]),node.trailingComments.push(comment2),comments.splice(cursor,1)):cursor+=1;return cursor===comments.length?VisitorOption.Break:comments[cursor].extendedRange[0]>node.range[1]?VisitorOption.Skip:void 0}}),tree},exports2.VisitorKeys=VisitorKeys,exports2.VisitorOption=VisitorOption,exports2.Controller=Controller,exports2.cloneEnvironment=function(){return clone({})},exports2}(exports)}}),require_ast=(0,chunk_XP5HYGXS.P$)({"../../node_modules/esutils/lib/ast.js"(exports,module){!function(){function isStatement(node){if(null==node)return!1;switch(node.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function trailingStatement(node){switch(node.type){case"IfStatement":return null!=node.alternate?node.alternate:node.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return node.body}return null}module.exports={isExpression:function isExpression(node){if(null==node)return!1;switch(node.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement,isIterationStatement:function isIterationStatement(node){if(null==node)return!1;switch(node.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function isSourceElement(node){return isStatement(node)||null!=node&&"FunctionDeclaration"===node.type},isProblematicIfStatement:function isProblematicIfStatement(node){var current2;if("IfStatement"!==node.type||null==node.alternate)return!1;current2=node.consequent;do{if("IfStatement"===current2.type&&null==current2.alternate)return!0;current2=trailingStatement(current2)}while(current2);return!1},trailingStatement}}()}}),require_code=(0,chunk_XP5HYGXS.P$)({"../../node_modules/esutils/lib/code.js"(exports,module){!function(){var ES6Regex,ES5Regex,NON_ASCII_WHITESPACES,IDENTIFIER_START,IDENTIFIER_PART,ch;function fromCodePoint(cp){return cp<=65535?String.fromCharCode(cp):String.fromCharCode(Math.floor((cp-65536)/1024)+55296)+String.fromCharCode((cp-65536)%1024+56320)}for(ES5Regex={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},ES6Regex={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},NON_ASCII_WHITESPACES=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],IDENTIFIER_START=new Array(128),ch=0;ch<128;++ch)IDENTIFIER_START[ch]=ch>=97&&ch<=122||ch>=65&&ch<=90||36===ch||95===ch;for(IDENTIFIER_PART=new Array(128),ch=0;ch<128;++ch)IDENTIFIER_PART[ch]=ch>=97&&ch<=122||ch>=65&&ch<=90||ch>=48&&ch<=57||36===ch||95===ch;module.exports={isDecimalDigit:function isDecimalDigit2(ch2){return 48<=ch2&&ch2<=57},isHexDigit:function isHexDigit2(ch2){return 48<=ch2&&ch2<=57||97<=ch2&&ch2<=102||65<=ch2&&ch2<=70},isOctalDigit:function isOctalDigit2(ch2){return ch2>=48&&ch2<=55},isWhiteSpace:function isWhiteSpace(ch2){return 32===ch2||9===ch2||11===ch2||12===ch2||160===ch2||ch2>=5760&&NON_ASCII_WHITESPACES.indexOf(ch2)>=0},isLineTerminator:function isLineTerminator(ch2){return 10===ch2||13===ch2||8232===ch2||8233===ch2},isIdentifierStartES5:function isIdentifierStartES5(ch2){return ch2<128?IDENTIFIER_START[ch2]:ES5Regex.NonAsciiIdentifierStart.test(fromCodePoint(ch2))},isIdentifierPartES5:function isIdentifierPartES5(ch2){return ch2<128?IDENTIFIER_PART[ch2]:ES5Regex.NonAsciiIdentifierPart.test(fromCodePoint(ch2))},isIdentifierStartES6:function isIdentifierStartES6(ch2){return ch2<128?IDENTIFIER_START[ch2]:ES6Regex.NonAsciiIdentifierStart.test(fromCodePoint(ch2))},isIdentifierPartES6:function isIdentifierPartES6(ch2){return ch2<128?IDENTIFIER_PART[ch2]:ES6Regex.NonAsciiIdentifierPart.test(fromCodePoint(ch2))}}}()}}),require_keyword=(0,chunk_XP5HYGXS.P$)({"../../node_modules/esutils/lib/keyword.js"(exports,module){!function(){var code=require_code();function isKeywordES5(id,strict){return!(!strict&&"yield"===id)&&isKeywordES6(id,strict)}function isKeywordES6(id,strict){if(strict&&function isStrictModeReservedWordES6(id){switch(id){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(id))return!0;switch(id.length){case 2:return"if"===id||"in"===id||"do"===id;case 3:return"var"===id||"for"===id||"new"===id||"try"===id;case 4:return"this"===id||"else"===id||"case"===id||"void"===id||"with"===id||"enum"===id;case 5:return"while"===id||"break"===id||"catch"===id||"throw"===id||"const"===id||"yield"===id||"class"===id||"super"===id;case 6:return"return"===id||"typeof"===id||"delete"===id||"switch"===id||"export"===id||"import"===id;case 7:return"default"===id||"finally"===id||"extends"===id;case 8:return"function"===id||"continue"===id||"debugger"===id;case 10:return"instanceof"===id;default:return!1}}function isReservedWordES5(id,strict){return"null"===id||"true"===id||"false"===id||isKeywordES5(id,strict)}function isReservedWordES6(id,strict){return"null"===id||"true"===id||"false"===id||isKeywordES6(id,strict)}function isIdentifierNameES5(id){var i,iz,ch;if(0===id.length||(ch=id.charCodeAt(0),!code.isIdentifierStartES5(ch)))return!1;for(i=1,iz=id.length;i<iz;++i)if(ch=id.charCodeAt(i),!code.isIdentifierPartES5(ch))return!1;return!0}function isIdentifierNameES6(id){var i,iz,ch,lowCh,check;if(0===id.length)return!1;for(check=code.isIdentifierStartES6,i=0,iz=id.length;i<iz;++i){if(55296<=(ch=id.charCodeAt(i))&&ch<=56319){if(++i>=iz||!(56320<=(lowCh=id.charCodeAt(i))&&lowCh<=57343))return!1;ch=1024*(ch-55296)+(lowCh-56320)+65536}if(!check(ch))return!1;check=code.isIdentifierPartES6}return!0}module.exports={isKeywordES5,isKeywordES6,isReservedWordES5,isReservedWordES6,isRestrictedWord:function isRestrictedWord(id){return"eval"===id||"arguments"===id},isIdentifierNameES5,isIdentifierNameES6,isIdentifierES5:function isIdentifierES5(id,strict){return isIdentifierNameES5(id)&&!isReservedWordES5(id,strict)},isIdentifierES6:function isIdentifierES6(id,strict){return isIdentifierNameES6(id)&&!isReservedWordES6(id,strict)}}}()}}),require_utils=(0,chunk_XP5HYGXS.P$)({"../../node_modules/esutils/lib/utils.js"(exports){exports.ast=require_ast(),exports.code=require_code(),exports.keyword=require_keyword()}}),require_base64=(0,chunk_XP5HYGXS.P$)({"../../node_modules/escodegen/node_modules/source-map/lib/base64.js"(exports){var intToCharMap="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");exports.encode=function(number){if(0<=number&&number<intToCharMap.length)return intToCharMap[number];throw new TypeError("Must be between 0 and 63: "+number)},exports.decode=function(charCode){return 65<=charCode&&charCode<=90?charCode-65:97<=charCode&&charCode<=122?charCode-97+26:48<=charCode&&charCode<=57?charCode-48+52:43==charCode?62:47==charCode?63:-1}}}),require_base64_vlq=(0,chunk_XP5HYGXS.P$)({"../../node_modules/escodegen/node_modules/source-map/lib/base64-vlq.js"(exports){var base64=require_base64();exports.encode=function(aValue){var digit,encoded="",vlq=function toVLQSigned(aValue){return aValue<0?1+(-aValue<<1):0+(aValue<<1)}(aValue);do{digit=31&vlq,(vlq>>>=5)>0&&(digit|=32),encoded+=base64.encode(digit)}while(vlq>0);return encoded},exports.decode=function(aStr,aIndex,aOutParam){var continuation,digit,strLen=aStr.length,result=0,shift=0;do{if(aIndex>=strLen)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(digit=base64.decode(aStr.charCodeAt(aIndex++))))throw new Error("Invalid base64 digit: "+aStr.charAt(aIndex-1));continuation=!!(32&digit),result+=(digit&=31)<<shift,shift+=5}while(continuation);aOutParam.value=function fromVLQSigned(aValue){var shifted=aValue>>1;return 1&~aValue?shifted:-shifted}(result),aOutParam.rest=aIndex}}}),require_util=(0,chunk_XP5HYGXS.P$)({"../../node_modules/escodegen/node_modules/source-map/lib/util.js"(exports){exports.getArg=function getArg(aArgs,aName,aDefaultValue){if(aName in aArgs)return aArgs[aName];if(3===arguments.length)return aDefaultValue;throw new Error('"'+aName+'" is a required argument.')};var urlRegexp=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,dataUrlRegexp=/^data:.+\,.+$/;function urlParse(aUrl){var match=aUrl.match(urlRegexp);return match?{scheme:match[1],auth:match[2],host:match[3],port:match[4],path:match[5]}:null}function urlGenerate(aParsedUrl){var url="";return aParsedUrl.scheme&&(url+=aParsedUrl.scheme+":"),url+="//",aParsedUrl.auth&&(url+=aParsedUrl.auth+"@"),aParsedUrl.host&&(url+=aParsedUrl.host),aParsedUrl.port&&(url+=":"+aParsedUrl.port),aParsedUrl.path&&(url+=aParsedUrl.path),url}function normalize(aPath){var path=aPath,url=urlParse(aPath);if(url){if(!url.path)return aPath;path=url.path}for(var part,isAbsolute=exports.isAbsolute(path),parts=path.split(/\/+/),up=0,i=parts.length-1;i>=0;i--)"."===(part=parts[i])?parts.splice(i,1):".."===part?up++:up>0&&(""===part?(parts.splice(i+1,up),up=0):(parts.splice(i,2),up--));return""===(path=parts.join("/"))&&(path=isAbsolute?"/":"."),url?(url.path=path,urlGenerate(url)):path}function join(aRoot,aPath){""===aRoot&&(aRoot="."),""===aPath&&(aPath=".");var aPathUrl=urlParse(aPath),aRootUrl=urlParse(aRoot);if(aRootUrl&&(aRoot=aRootUrl.path||"/"),aPathUrl&&!aPathUrl.scheme)return aRootUrl&&(aPathUrl.scheme=aRootUrl.scheme),urlGenerate(aPathUrl);if(aPathUrl||aPath.match(dataUrlRegexp))return aPath;if(aRootUrl&&!aRootUrl.host&&!aRootUrl.path)return aRootUrl.host=aPath,urlGenerate(aRootUrl);var joined="/"===aPath.charAt(0)?aPath:normalize(aRoot.replace(/\/+$/,"")+"/"+aPath);return aRootUrl?(aRootUrl.path=joined,urlGenerate(aRootUrl)):joined}exports.urlParse=urlParse,exports.urlGenerate=urlGenerate,exports.normalize=normalize,exports.join=join,exports.isAbsolute=function(aPath){return"/"===aPath.charAt(0)||urlRegexp.test(aPath)},exports.relative=function relative(aRoot,aPath){""===aRoot&&(aRoot="."),aRoot=aRoot.replace(/\/$/,"");for(var level=0;0!==aPath.indexOf(aRoot+"/");){var index=aRoot.lastIndexOf("/");if(index<0||(aRoot=aRoot.slice(0,index)).match(/^([^\/]+:\/)?\/*$/))return aPath;++level}return Array(level+1).join("../")+aPath.substr(aRoot.length+1)};var supportsNullProto=!("__proto__"in Object.create(null));function identity(s){return s}function isProtoString(s){if(!s)return!1;var length=s.length;if(length<9||95!==s.charCodeAt(length-1)||95!==s.charCodeAt(length-2)||111!==s.charCodeAt(length-3)||116!==s.charCodeAt(length-4)||111!==s.charCodeAt(length-5)||114!==s.charCodeAt(length-6)||112!==s.charCodeAt(length-7)||95!==s.charCodeAt(length-8)||95!==s.charCodeAt(length-9))return!1;for(var i=length-10;i>=0;i--)if(36!==s.charCodeAt(i))return!1;return!0}function strcmp(aStr1,aStr2){return aStr1===aStr2?0:null===aStr1?1:null===aStr2?-1:aStr1>aStr2?1:-1}exports.toSetString=supportsNullProto?identity:function toSetString(aStr){return isProtoString(aStr)?"$"+aStr:aStr},exports.fromSetString=supportsNullProto?identity:function fromSetString(aStr){return isProtoString(aStr)?aStr.slice(1):aStr},exports.compareByOriginalPositions=function compareByOriginalPositions(mappingA,mappingB,onlyCompareOriginal){var cmp=strcmp(mappingA.source,mappingB.source);return 0!==cmp||0!==(cmp=mappingA.originalLine-mappingB.originalLine)||(0!==(cmp=mappingA.originalColumn-mappingB.originalColumn)||onlyCompareOriginal)||0!==(cmp=mappingA.generatedColumn-mappingB.generatedColumn)||0!==(cmp=mappingA.generatedLine-mappingB.generatedLine)?cmp:strcmp(mappingA.name,mappingB.name)},exports.compareByGeneratedPositionsDeflated=function compareByGeneratedPositionsDeflated(mappingA,mappingB,onlyCompareGenerated){var cmp=mappingA.generatedLine-mappingB.generatedLine;return 0!==cmp||(0!==(cmp=mappingA.generatedColumn-mappingB.generatedColumn)||onlyCompareGenerated)||0!==(cmp=strcmp(mappingA.source,mappingB.source))||0!==(cmp=mappingA.originalLine-mappingB.originalLine)||0!==(cmp=mappingA.originalColumn-mappingB.originalColumn)?cmp:strcmp(mappingA.name,mappingB.name)},exports.compareByGeneratedPositionsInflated=function compareByGeneratedPositionsInflated(mappingA,mappingB){var cmp=mappingA.generatedLine-mappingB.generatedLine;return 0!==cmp||0!==(cmp=mappingA.generatedColumn-mappingB.generatedColumn)||0!==(cmp=strcmp(mappingA.source,mappingB.source))||0!==(cmp=mappingA.originalLine-mappingB.originalLine)||0!==(cmp=mappingA.originalColumn-mappingB.originalColumn)?cmp:strcmp(mappingA.name,mappingB.name)},exports.parseSourceMapInput=function parseSourceMapInput(str){return JSON.parse(str.replace(/^\)]}'[^\n]*\n/,""))},exports.computeSourceURL=function computeSourceURL(sourceRoot,sourceURL,sourceMapURL){if(sourceURL=sourceURL||"",sourceRoot&&("/"!==sourceRoot[sourceRoot.length-1]&&"/"!==sourceURL[0]&&(sourceRoot+="/"),sourceURL=sourceRoot+sourceURL),sourceMapURL){var parsed=urlParse(sourceMapURL);if(!parsed)throw new Error("sourceMapURL could not be parsed");if(parsed.path){var index=parsed.path.lastIndexOf("/");index>=0&&(parsed.path=parsed.path.substring(0,index+1))}sourceURL=join(urlGenerate(parsed),sourceURL)}return normalize(sourceURL)}}}),require_array_set=(0,chunk_XP5HYGXS.P$)({"../../node_modules/escodegen/node_modules/source-map/lib/array-set.js"(exports){var util=require_util(),has2=Object.prototype.hasOwnProperty,hasNativeMap=typeof Map<"u";function ArraySet(){this._array=[],this._set=hasNativeMap?new Map:Object.create(null)}ArraySet.fromArray=function(aArray,aAllowDuplicates){for(var set=new ArraySet,i=0,len=aArray.length;i<len;i++)set.add(aArray[i],aAllowDuplicates);return set},ArraySet.prototype.size=function(){return hasNativeMap?this._set.size:Object.getOwnPropertyNames(this._set).length},ArraySet.prototype.add=function(aStr,aAllowDuplicates){var sStr=hasNativeMap?aStr:util.toSetString(aStr),isDuplicate=hasNativeMap?this.has(aStr):has2.call(this._set,sStr),idx=this._array.length;(!isDuplicate||aAllowDuplicates)&&this._array.push(aStr),isDuplicate||(hasNativeMap?this._set.set(aStr,idx):this._set[sStr]=idx)},ArraySet.prototype.has=function(aStr){if(hasNativeMap)return this._set.has(aStr);var sStr=util.toSetString(aStr);return has2.call(this._set,sStr)},ArraySet.prototype.indexOf=function(aStr){if(hasNativeMap){var idx=this._set.get(aStr);if(idx>=0)return idx}else{var sStr=util.toSetString(aStr);if(has2.call(this._set,sStr))return this._set[sStr]}throw new Error('"'+aStr+'" is not in the set.')},ArraySet.prototype.at=function(aIdx){if(aIdx>=0&&aIdx<this._array.length)return this._array[aIdx];throw new Error("No element indexed by "+aIdx)},ArraySet.prototype.toArray=function(){return this._array.slice()},exports.ArraySet=ArraySet}}),require_mapping_list=(0,chunk_XP5HYGXS.P$)({"../../node_modules/escodegen/node_modules/source-map/lib/mapping-list.js"(exports){var util=require_util();function MappingList(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function(aCallback,aThisArg){this._array.forEach(aCallback,aThisArg)},MappingList.prototype.add=function(aMapping){!function generatedPositionAfter(mappingA,mappingB){var lineA=mappingA.generatedLine,lineB=mappingB.generatedLine,columnA=mappingA.generatedColumn,columnB=mappingB.generatedColumn;return lineB>lineA||lineB==lineA&&columnB>=columnA||util.compareByGeneratedPositionsInflated(mappingA,mappingB)<=0}(this._last,aMapping)?(this._sorted=!1,this._array.push(aMapping)):(this._last=aMapping,this._array.push(aMapping))},MappingList.prototype.toArray=function(){return this._sorted||(this._array.sort(util.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},exports.MappingList=MappingList}}),require_source_map_generator=(0,chunk_XP5HYGXS.P$)({"../../node_modules/escodegen/node_modules/source-map/lib/source-map-generator.js"(exports){var base64VLQ=require_base64_vlq(),util=require_util(),ArraySet=require_array_set().ArraySet,MappingList=require_mapping_list().MappingList;function SourceMapGenerator(aArgs){aArgs||(aArgs={}),this._file=util.getArg(aArgs,"file",null),this._sourceRoot=util.getArg(aArgs,"sourceRoot",null),this._skipValidation=util.getArg(aArgs,"skipValidation",!1),this._sources=new ArraySet,this._names=new ArraySet,this._mappings=new MappingList,this._sourcesContents=null}SourceMapGenerator.prototype._version=3,SourceMapGenerator.fromSourceMap=function(aSourceMapConsumer){var sourceRoot=aSourceMapConsumer.sourceRoot,generator=new SourceMapGenerator({file:aSourceMapConsumer.file,sourceRoot});return aSourceMapConsumer.eachMapping((function(mapping){var newMapping={generated:{line:mapping.generatedLine,column:mapping.generatedColumn}};null!=mapping.source&&(newMapping.source=mapping.source,null!=sourceRoot&&(newMapping.source=util.relative(sourceRoot,newMapping.source)),newMapping.original={line:mapping.originalLine,column:mapping.originalColumn},null!=mapping.name&&(newMapping.name=mapping.name)),generator.addMapping(newMapping)})),aSourceMapConsumer.sources.forEach((function(sourceFile){var sourceRelative=sourceFile;null!==sourceRoot&&(sourceRelative=util.relative(sourceRoot,sourceFile)),generator._sources.has(sourceRelative)||generator._sources.add(sourceRelative);var content=aSourceMapConsumer.sourceContentFor(sourceFile);null!=content&&generator.setSourceContent(sourceFile,content)})),generator},SourceMapGenerator.prototype.addMapping=function(aArgs){var generated=util.getArg(aArgs,"generated"),original=util.getArg(aArgs,"original",null),source=util.getArg(aArgs,"source",null),name=util.getArg(aArgs,"name",null);this._skipValidation||this._validateMapping(generated,original,source,name),null!=source&&(source=String(source),this._sources.has(source)||this._sources.add(source)),null!=name&&(name=String(name),this._names.has(name)||this._names.add(name)),this._mappings.add({generatedLine:generated.line,generatedColumn:generated.column,originalLine:null!=original&&original.line,originalColumn:null!=original&&original.column,source,name})},SourceMapGenerator.prototype.setSourceContent=function(aSourceFile,aSourceContent){var source=aSourceFile;null!=this._sourceRoot&&(source=util.relative(this._sourceRoot,source)),null!=aSourceContent?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[util.toSetString(source)]=aSourceContent):this._sourcesContents&&(delete this._sourcesContents[util.toSetString(source)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},SourceMapGenerator.prototype.applySourceMap=function(aSourceMapConsumer,aSourceFile,aSourceMapPath){var sourceFile=aSourceFile;if(null==aSourceFile){if(null==aSourceMapConsumer.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');sourceFile=aSourceMapConsumer.file}var sourceRoot=this._sourceRoot;null!=sourceRoot&&(sourceFile=util.relative(sourceRoot,sourceFile));var newSources=new ArraySet,newNames=new ArraySet;this._mappings.unsortedForEach((function(mapping){if(mapping.source===sourceFile&&null!=mapping.originalLine){var original=aSourceMapConsumer.originalPositionFor({line:mapping.originalLine,column:mapping.originalColumn});null!=original.source&&(mapping.source=original.source,null!=aSourceMapPath&&(mapping.source=util.join(aSourceMapPath,mapping.source)),null!=sourceRoot&&(mapping.source=util.relative(sourceRoot,mapping.source)),mapping.originalLine=original.line,mapping.originalColumn=original.column,null!=original.name&&(mapping.name=original.name))}var source=mapping.source;null!=source&&!newSources.has(source)&&newSources.add(source);var name=mapping.name;null!=name&&!newNames.has(name)&&newNames.add(name)}),this),this._sources=newSources,this._names=newNames,aSourceMapConsumer.sources.forEach((function(sourceFile2){var content=aSourceMapConsumer.sourceContentFor(sourceFile2);null!=content&&(null!=aSourceMapPath&&(sourceFile2=util.join(aSourceMapPath,sourceFile2)),null!=sourceRoot&&(sourceFile2=util.relative(sourceRoot,sourceFile2)),this.setSourceContent(sourceFile2,content))}),this)},SourceMapGenerator.prototype._validateMapping=function(aGenerated,aOriginal,aSource,aName){if(aOriginal&&"number"!=typeof aOriginal.line&&"number"!=typeof aOriginal.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(aGenerated&&"line"in aGenerated&&"column"in aGenerated&&aGenerated.line>0&&aGenerated.column>=0)||aOriginal||aSource||aName){if(aGenerated&&"line"in aGenerated&&"column"in aGenerated&&aOriginal&&"line"in aOriginal&&"column"in aOriginal&&aGenerated.line>0&&aGenerated.column>=0&&aOriginal.line>0&&aOriginal.column>=0&&aSource)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:aGenerated,source:aSource,original:aOriginal,name:aName}))}},SourceMapGenerator.prototype._serializeMappings=function(){for(var next,mapping,nameIdx,sourceIdx,previousGeneratedColumn=0,previousGeneratedLine=1,previousOriginalColumn=0,previousOriginalLine=0,previousName=0,previousSource=0,result="",mappings=this._mappings.toArray(),i=0,len=mappings.length;i<len;i++){if(next="",(mapping=mappings[i]).generatedLine!==previousGeneratedLine)for(previousGeneratedColumn=0;mapping.generatedLine!==previousGeneratedLine;)next+=";",previousGeneratedLine++;else if(i>0){if(!util.compareByGeneratedPositionsInflated(mapping,mappings[i-1]))continue;next+=","}next+=base64VLQ.encode(mapping.generatedColumn-previousGeneratedColumn),previousGeneratedColumn=mapping.generatedColumn,null!=mapping.source&&(sourceIdx=this._sources.indexOf(mapping.source),next+=base64VLQ.encode(sourceIdx-previousSource),previousSource=sourceIdx,next+=base64VLQ.encode(mapping.originalLine-1-previousOriginalLine),previousOriginalLine=mapping.originalLine-1,next+=base64VLQ.encode(mapping.originalColumn-previousOriginalColumn),previousOriginalColumn=mapping.originalColumn,null!=mapping.name&&(nameIdx=this._names.indexOf(mapping.name),next+=base64VLQ.encode(nameIdx-previousName),previousName=nameIdx)),result+=next}return result},SourceMapGenerator.prototype._generateSourcesContent=function(aSources,aSourceRoot){return aSources.map((function(source){if(!this._sourcesContents)return null;null!=aSourceRoot&&(source=util.relative(aSourceRoot,source));var key=util.toSetString(source);return Object.prototype.hasOwnProperty.call(this._sourcesContents,key)?this._sourcesContents[key]:null}),this)},SourceMapGenerator.prototype.toJSON=function(){var map={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(map.file=this._file),null!=this._sourceRoot&&(map.sourceRoot=this._sourceRoot),this._sourcesContents&&(map.sourcesContent=this._generateSourcesContent(map.sources,map.sourceRoot)),map},SourceMapGenerator.prototype.toString=function(){return JSON.stringify(this.toJSON())},exports.SourceMapGenerator=SourceMapGenerator}}),require_binary_search=(0,chunk_XP5HYGXS.P$)({"../../node_modules/escodegen/node_modules/source-map/lib/binary-search.js"(exports){function recursiveSearch(aLow,aHigh,aNeedle,aHaystack,aCompare,aBias){var mid=Math.floor((aHigh-aLow)/2)+aLow,cmp=aCompare(aNeedle,aHaystack[mid],!0);return 0===cmp?mid:cmp>0?aHigh-mid>1?recursiveSearch(mid,aHigh,aNeedle,aHaystack,aCompare,aBias):aBias==exports.LEAST_UPPER_BOUND?aHigh<aHaystack.length?aHigh:-1:mid:mid-aLow>1?recursiveSearch(aLow,mid,aNeedle,aHaystack,aCompare,aBias):aBias==exports.LEAST_UPPER_BOUND?mid:aLow<0?-1:aLow}exports.GREATEST_LOWER_BOUND=1,exports.LEAST_UPPER_BOUND=2,exports.search=function(aNeedle,aHaystack,aCompare,aBias){if(0===aHaystack.length)return-1;var index=recursiveSearch(-1,aHaystack.length,aNeedle,aHaystack,aCompare,aBias||exports.GREATEST_LOWER_BOUND);if(index<0)return-1;for(;index-1>=0&&0===aCompare(aHaystack[index],aHaystack[index-1],!0);)--index;return index}}}),require_quick_sort=(0,chunk_XP5HYGXS.P$)({"../../node_modules/escodegen/node_modules/source-map/lib/quick-sort.js"(exports){function swap(ary,x,y){var temp=ary[x];ary[x]=ary[y],ary[y]=temp}function doQuickSort(ary,comparator,p,r){if(p<r){var i=p-1;swap(ary,function randomIntInRange(low,high){return Math.round(low+Math.random()*(high-low))}(p,r),r);for(var pivot=ary[r],j=p;j<r;j++)comparator(ary[j],pivot)<=0&&swap(ary,i+=1,j);swap(ary,i+1,j);var q=i+1;doQuickSort(ary,comparator,p,q-1),doQuickSort(ary,comparator,q+1,r)}}exports.quickSort=function(ary,comparator){doQuickSort(ary,comparator,0,ary.length-1)}}}),require_source_map_consumer=(0,chunk_XP5HYGXS.P$)({"../../node_modules/escodegen/node_modules/source-map/lib/source-map-consumer.js"(exports){var util=require_util(),binarySearch=require_binary_search(),ArraySet=require_array_set().ArraySet,base64VLQ=require_base64_vlq(),quickSort=require_quick_sort().quickSort;function SourceMapConsumer(aSourceMap,aSourceMapURL){var sourceMap=aSourceMap;return"string"==typeof aSourceMap&&(sourceMap=util.parseSourceMapInput(aSourceMap)),null!=sourceMap.sections?new IndexedSourceMapConsumer(sourceMap,aSourceMapURL):new BasicSourceMapConsumer(sourceMap,aSourceMapURL)}function BasicSourceMapConsumer(aSourceMap,aSourceMapURL){var sourceMap=aSourceMap;"string"==typeof aSourceMap&&(sourceMap=util.parseSourceMapInput(aSourceMap));var version2=util.getArg(sourceMap,"version"),sources=util.getArg(sourceMap,"sources"),names=util.getArg(sourceMap,"names",[]),sourceRoot=util.getArg(sourceMap,"sourceRoot",null),sourcesContent=util.getArg(sourceMap,"sourcesContent",null),mappings=util.getArg(sourceMap,"mappings"),file=util.getArg(sourceMap,"file",null);if(version2!=this._version)throw new Error("Unsupported version: "+version2);sourceRoot&&(sourceRoot=util.normalize(sourceRoot)),sources=sources.map(String).map(util.normalize).map((function(source){return sourceRoot&&util.isAbsolute(sourceRoot)&&util.isAbsolute(source)?util.relative(sourceRoot,source):source})),this._names=ArraySet.fromArray(names.map(String),!0),this._sources=ArraySet.fromArray(sources,!0),this._absoluteSources=this._sources.toArray().map((function(s){return util.computeSourceURL(sourceRoot,s,aSourceMapURL)})),this.sourceRoot=sourceRoot,this.sourcesContent=sourcesContent,this._mappings=mappings,this._sourceMapURL=aSourceMapURL,this.file=file}function Mapping(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function IndexedSourceMapConsumer(aSourceMap,aSourceMapURL){var sourceMap=aSourceMap;"string"==typeof aSourceMap&&(sourceMap=util.parseSourceMapInput(aSourceMap));var version2=util.getArg(sourceMap,"version"),sections=util.getArg(sourceMap,"sections");if(version2!=this._version)throw new Error("Unsupported version: "+version2);this._sources=new ArraySet,this._names=new ArraySet;var lastOffset={line:-1,column:0};this._sections=sections.map((function(s){if(s.url)throw new Error("Support for url field in sections not implemented.");var offset2=util.getArg(s,"offset"),offsetLine=util.getArg(offset2,"line"),offsetColumn=util.getArg(offset2,"column");if(offsetLine<lastOffset.line||offsetLine===lastOffset.line&&offsetColumn<lastOffset.column)throw new Error("Section offsets must be ordered and non-overlapping.");return lastOffset=offset2,{generatedOffset:{generatedLine:offsetLine+1,generatedColumn:offsetColumn+1},consumer:new SourceMapConsumer(util.getArg(s,"map"),aSourceMapURL)}}))}SourceMapConsumer.fromSourceMap=function(aSourceMap,aSourceMapURL){return BasicSourceMapConsumer.fromSourceMap(aSourceMap,aSourceMapURL)},SourceMapConsumer.prototype._version=3,SourceMapConsumer.prototype.__generatedMappings=null,Object.defineProperty(SourceMapConsumer.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),SourceMapConsumer.prototype.__originalMappings=null,Object.defineProperty(SourceMapConsumer.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),SourceMapConsumer.prototype._charIsMappingSeparator=function(aStr,index){var c=aStr.charAt(index);return";"===c||","===c},SourceMapConsumer.prototype._parseMappings=function(aStr,aSourceRoot){throw new Error("Subclasses must implement _parseMappings")},SourceMapConsumer.GENERATED_ORDER=1,SourceMapConsumer.ORIGINAL_ORDER=2,SourceMapConsumer.GREATEST_LOWER_BOUND=1,SourceMapConsumer.LEAST_UPPER_BOUND=2,SourceMapConsumer.prototype.eachMapping=function(aCallback,aContext,aOrder){var mappings,context=aContext||null;switch(aOrder||SourceMapConsumer.GENERATED_ORDER){case SourceMapConsumer.GENERATED_ORDER:mappings=this._generatedMappings;break;case SourceMapConsumer.ORIGINAL_ORDER:mappings=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var sourceRoot=this.sourceRoot;mappings.map((function(mapping){var source=null===mapping.source?null:this._sources.at(mapping.source);return{source:source=util.computeSourceURL(sourceRoot,source,this._sourceMapURL),generatedLine:mapping.generatedLine,generatedColumn:mapping.generatedColumn,originalLine:mapping.originalLine,originalColumn:mapping.originalColumn,name:null===mapping.name?null:this._names.at(mapping.name)}}),this).forEach(aCallback,context)},SourceMapConsumer.prototype.allGeneratedPositionsFor=function(aArgs){var line=util.getArg(aArgs,"line"),needle={source:util.getArg(aArgs,"source"),originalLine:line,originalColumn:util.getArg(aArgs,"column",0)};if(needle.source=this._findSourceIndex(needle.source),needle.source<0)return[];var mappings=[],index=this._findMapping(needle,this._originalMappings,"originalLine","originalColumn",util.compareByOriginalPositions,binarySearch.LEAST_UPPER_BOUND);if(index>=0){var mapping=this._originalMappings[index];if(void 0===aArgs.column)for(var originalLine=mapping.originalLine;mapping&&mapping.originalLine===originalLine;)mappings.push({line:util.getArg(mapping,"generatedLine",null),column:util.getArg(mapping,"generatedColumn",null),lastColumn:util.getArg(mapping,"lastGeneratedColumn",null)}),mapping=this._originalMappings[++index];else for(var originalColumn=mapping.originalColumn;mapping&&mapping.originalLine===line&&mapping.originalColumn==originalColumn;)mappings.push({line:util.getArg(mapping,"generatedLine",null),column:util.getArg(mapping,"generatedColumn",null),lastColumn:util.getArg(mapping,"lastGeneratedColumn",null)}),mapping=this._originalMappings[++index]}return mappings},exports.SourceMapConsumer=SourceMapConsumer,BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype),BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer,BasicSourceMapConsumer.prototype._findSourceIndex=function(aSource){var i,relativeSource=aSource;if(null!=this.sourceRoot&&(relativeSource=util.relative(this.sourceRoot,relativeSource)),this._sources.has(relativeSource))return this._sources.indexOf(relativeSource);for(i=0;i<this._absoluteSources.length;++i)if(this._absoluteSources[i]==aSource)return i;return-1},BasicSourceMapConsumer.fromSourceMap=function(aSourceMap,aSourceMapURL){var smc=Object.create(BasicSourceMapConsumer.prototype),names=smc._names=ArraySet.fromArray(aSourceMap._names.toArray(),!0),sources=smc._sources=ArraySet.fromArray(aSourceMap._sources.toArray(),!0);smc.sourceRoot=aSourceMap._sourceRoot,smc.sourcesContent=aSourceMap._generateSourcesContent(smc._sources.toArray(),smc.sourceRoot),smc.file=aSourceMap._file,smc._sourceMapURL=aSourceMapURL,smc._absoluteSources=smc._sources.toArray().map((function(s){return util.computeSourceURL(smc.sourceRoot,s,aSourceMapURL)}));for(var generatedMappings=aSourceMap._mappings.toArray().slice(),destGeneratedMappings=smc.__generatedMappings=[],destOriginalMappings=smc.__originalMappings=[],i=0,length=generatedMappings.length;i<length;i++){var srcMapping=generatedMappings[i],destMapping=new Mapping;destMapping.generatedLine=srcMapping.generatedLine,destMapping.generatedColumn=srcMapping.generatedColumn,srcMapping.source&&(destMapping.source=sources.indexOf(srcMapping.source),destMapping.originalLine=srcMapping.originalLine,destMapping.originalColumn=srcMapping.originalColumn,srcMapping.name&&(destMapping.name=names.indexOf(srcMapping.name)),destOriginalMappings.push(destMapping)),destGeneratedMappings.push(destMapping)}return quickSort(smc.__originalMappings,util.compareByOriginalPositions),smc},BasicSourceMapConsumer.prototype._version=3,Object.defineProperty(BasicSourceMapConsumer.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),BasicSourceMapConsumer.prototype._parseMappings=function(aStr,aSourceRoot){for(var mapping,str,segment,end,value,generatedLine=1,previousGeneratedColumn=0,previousOriginalLine=0,previousOriginalColumn=0,previousSource=0,previousName=0,length=aStr.length,index=0,cachedSegments={},temp={},originalMappings=[],generatedMappings=[];index<length;)if(";"===aStr.charAt(index))generatedLine++,index++,previousGeneratedColumn=0;else if(","===aStr.charAt(index))index++;else{for((mapping=new Mapping).generatedLine=generatedLine,end=index;end<length&&!this._charIsMappingSeparator(aStr,end);end++);if(segment=cachedSegments[str=aStr.slice(index,end)])index+=str.length;else{for(segment=[];index<end;)base64VLQ.decode(aStr,index,temp),value=temp.value,index=temp.rest,segment.push(value);if(2===segment.length)throw new Error("Found a source, but no line and column");if(3===segment.length)throw new Error("Found a source and line, but no column");cachedSegments[str]=segment}mapping.generatedColumn=previousGeneratedColumn+segment[0],previousGeneratedColumn=mapping.generatedColumn,segment.length>1&&(mapping.source=previousSource+segment[1],previousSource+=segment[1],mapping.originalLine=previousOriginalLine+segment[2],previousOriginalLine=mapping.originalLine,mapping.originalLine+=1,mapping.originalColumn=previousOriginalColumn+segment[3],previousOriginalColumn=mapping.originalColumn,segment.length>4&&(mapping.name=previousName+segment[4],previousName+=segment[4])),generatedMappings.push(mapping),"number"==typeof mapping.originalLine&&originalMappings.push(mapping)}quickSort(generatedMappings,util.compareByGeneratedPositionsDeflated),this.__generatedMappings=generatedMappings,quickSort(originalMappings,util.compareByOriginalPositions),this.__originalMappings=originalMappings},BasicSourceMapConsumer.prototype._findMapping=function(aNeedle,aMappings,aLineName,aColumnName,aComparator,aBias){if(aNeedle[aLineName]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+aNeedle[aLineName]);if(aNeedle[aColumnName]<0)throw new TypeError("Column must be greater than or equal to 0, got "+aNeedle[aColumnName]);return binarySearch.search(aNeedle,aMappings,aComparator,aBias)},BasicSourceMapConsumer.prototype.computeColumnSpans=function(){for(var index=0;index<this._generatedMappings.length;++index){var mapping=this._generatedMappings[index];if(index+1<this._generatedMappings.length){var nextMapping=this._generatedMappings[index+1];if(mapping.generatedLine===nextMapping.generatedLine){mapping.lastGeneratedColumn=nextMapping.generatedColumn-1;continue}}mapping.lastGeneratedColumn=1/0}},BasicSourceMapConsumer.prototype.originalPositionFor=function(aArgs){var needle={generatedLine:util.getArg(aArgs,"line"),generatedColumn:util.getArg(aArgs,"column")},index=this._findMapping(needle,this._generatedMappings,"generatedLine","generatedColumn",util.compareByGeneratedPositionsDeflated,util.getArg(aArgs,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(index>=0){var mapping=this._generatedMappings[index];if(mapping.generatedLine===needle.generatedLine){var source=util.getArg(mapping,"source",null);null!==source&&(source=this._sources.at(source),source=util.computeSourceURL(this.sourceRoot,source,this._sourceMapURL));var name=util.getArg(mapping,"name",null);return null!==name&&(name=this._names.at(name)),{source,line:util.getArg(mapping,"originalLine",null),column:util.getArg(mapping,"originalColumn",null),name}}}return{source:null,line:null,column:null,name:null}},BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(sc){return null==sc})))},BasicSourceMapConsumer.prototype.sourceContentFor=function(aSource,nullOnMissing){if(!this.sourcesContent)return null;var index=this._findSourceIndex(aSource);if(index>=0)return this.sourcesContent[index];var url,relativeSource=aSource;if(null!=this.sourceRoot&&(relativeSource=util.relative(this.sourceRoot,relativeSource)),null!=this.sourceRoot&&(url=util.urlParse(this.sourceRoot))){var fileUriAbsPath=relativeSource.replace(/^file:\/\//,"");if("file"==url.scheme&&this._sources.has(fileUriAbsPath))return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)];if((!url.path||"/"==url.path)&&this._sources.has("/"+relativeSource))return this.sourcesContent[this._sources.indexOf("/"+relativeSource)]}if(nullOnMissing)return null;throw new Error('"'+relativeSource+'" is not in the SourceMap.')},BasicSourceMapConsumer.prototype.generatedPositionFor=function(aArgs){var source=util.getArg(aArgs,"source");if((source=this._findSourceIndex(source))<0)return{line:null,column:null,lastColumn:null};var needle={source,originalLine:util.getArg(aArgs,"line"),originalColumn:util.getArg(aArgs,"column")},index=this._findMapping(needle,this._originalMappings,"originalLine","originalColumn",util.compareByOriginalPositions,util.getArg(aArgs,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(index>=0){var mapping=this._originalMappings[index];if(mapping.source===needle.source)return{line:util.getArg(mapping,"generatedLine",null),column:util.getArg(mapping,"generatedColumn",null),lastColumn:util.getArg(mapping,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},exports.BasicSourceMapConsumer=BasicSourceMapConsumer,IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype),IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer,IndexedSourceMapConsumer.prototype._version=3,Object.defineProperty(IndexedSourceMapConsumer.prototype,"sources",{get:function(){for(var sources=[],i=0;i<this._sections.length;i++)for(var j=0;j<this._sections[i].consumer.sources.length;j++)sources.push(this._sections[i].consumer.sources[j]);return sources}}),IndexedSourceMapConsumer.prototype.originalPositionFor=function(aArgs){var needle={generatedLine:util.getArg(aArgs,"line"),generatedColumn:util.getArg(aArgs,"column")},sectionIndex=binarySearch.search(needle,this._sections,(function(needle2,section2){return needle2.generatedLine-section2.generatedOffset.generatedLine||needle2.generatedColumn-section2.generatedOffset.generatedColumn})),section=this._sections[sectionIndex];return section?section.consumer.originalPositionFor({line:needle.generatedLine-(section.generatedOffset.generatedLine-1),column:needle.generatedColumn-(section.generatedOffset.generatedLine===needle.generatedLine?section.generatedOffset.generatedColumn-1:0),bias:aArgs.bias}):{source:null,line:null,column:null,name:null}},IndexedSourceMapConsumer.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(s){return s.consumer.hasContentsOfAllSources()}))},IndexedSourceMapConsumer.prototype.sourceContentFor=function(aSource,nullOnMissing){for(var i=0;i<this._sections.length;i++){var content=this._sections[i].consumer.sourceContentFor(aSource,!0);if(content)return content}if(nullOnMissing)return null;throw new Error('"'+aSource+'" is not in the SourceMap.')},IndexedSourceMapConsumer.prototype.generatedPositionFor=function(aArgs){for(var i=0;i<this._sections.length;i++){var section=this._sections[i];if(-1!==section.consumer._findSourceIndex(util.getArg(aArgs,"source"))){var generatedPosition=section.consumer.generatedPositionFor(aArgs);if(generatedPosition)return{line:generatedPosition.line+(section.generatedOffset.generatedLine-1),column:generatedPosition.column+(section.generatedOffset.generatedLine===generatedPosition.line?section.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},IndexedSourceMapConsumer.prototype._parseMappings=function(aStr,aSourceRoot){this.__generatedMappings=[],this.__originalMappings=[];for(var i=0;i<this._sections.length;i++)for(var section=this._sections[i],sectionMappings=section.consumer._generatedMappings,j=0;j<sectionMappings.length;j++){var mapping=sectionMappings[j],source=section.consumer._sources.at(mapping.source);source=util.computeSourceURL(section.consumer.sourceRoot,source,this._sourceMapURL),this._sources.add(source),source=this._sources.indexOf(source);var name=null;mapping.name&&(name=section.consumer._names.at(mapping.name),this._names.add(name),name=this._names.indexOf(name));var adjustedMapping={source,generatedLine:mapping.generatedLine+(section.generatedOffset.generatedLine-1),generatedColumn:mapping.generatedColumn+(section.generatedOffset.generatedLine===mapping.generatedLine?section.generatedOffset.generatedColumn-1:0),originalLine:mapping.originalLine,originalColumn:mapping.originalColumn,name};this.__generatedMappings.push(adjustedMapping),"number"==typeof adjustedMapping.originalLine&&this.__originalMappings.push(adjustedMapping)}quickSort(this.__generatedMappings,util.compareByGeneratedPositionsDeflated),quickSort(this.__originalMappings,util.compareByOriginalPositions)},exports.IndexedSourceMapConsumer=IndexedSourceMapConsumer}}),require_source_node=(0,chunk_XP5HYGXS.P$)({"../../node_modules/escodegen/node_modules/source-map/lib/source-node.js"(exports){var SourceMapGenerator=require_source_map_generator().SourceMapGenerator,util=require_util(),REGEX_NEWLINE=/(\r?\n)/,isSourceNode="$$$isSourceNode$$$";function SourceNode(aLine,aColumn,aSource,aChunks,aName){this.children=[],this.sourceContents={},this.line=aLine??null,this.column=aColumn??null,this.source=aSource??null,this.name=aName??null,this[isSourceNode]=!0,null!=aChunks&&this.add(aChunks)}SourceNode.fromStringWithSourceMap=function(aGeneratedCode,aSourceMapConsumer,aRelativePath){var node=new SourceNode,remainingLines=aGeneratedCode.split(REGEX_NEWLINE),remainingLinesIndex=0,shiftNextLine=function(){return getNextLine()+(getNextLine()||"");function getNextLine(){return remainingLinesIndex<remainingLines.length?remainingLines[remainingLinesIndex++]:void 0}},lastGeneratedLine=1,lastGeneratedColumn=0,lastMapping=null;return aSourceMapConsumer.eachMapping((function(mapping){if(null!==lastMapping){if(!(lastGeneratedLine<mapping.generatedLine)){var code=(nextLine=remainingLines[remainingLinesIndex]||"").substr(0,mapping.generatedColumn-lastGeneratedColumn);return remainingLines[remainingLinesIndex]=nextLine.substr(mapping.generatedColumn-lastGeneratedColumn),lastGeneratedColumn=mapping.generatedColumn,addMappingWithCode(lastMapping,code),void(lastMapping=mapping)}addMappingWithCode(lastMapping,shiftNextLine()),lastGeneratedLine++,lastGeneratedColumn=0}for(;lastGeneratedLine<mapping.generatedLine;)node.add(shiftNextLine()),lastGeneratedLine++;if(lastGeneratedColumn<mapping.generatedColumn){var nextLine=remainingLines[remainingLinesIndex]||"";node.add(nextLine.substr(0,mapping.generatedColumn)),remainingLines[remainingLinesIndex]=nextLine.substr(mapping.generatedColumn),lastGeneratedColumn=mapping.generatedColumn}lastMapping=mapping}),this),remainingLinesIndex<remainingLines.length&&(lastMapping&&addMappingWithCode(lastMapping,shiftNextLine()),node.add(remainingLines.splice(remainingLinesIndex).join(""))),aSourceMapConsumer.sources.forEach((function(sourceFile){var content=aSourceMapConsumer.sourceContentFor(sourceFile);null!=content&&(null!=aRelativePath&&(sourceFile=util.join(aRelativePath,sourceFile)),node.setSourceContent(sourceFile,content))})),node;function addMappingWithCode(mapping,code){if(null===mapping||void 0===mapping.source)node.add(code);else{var source=aRelativePath?util.join(aRelativePath,mapping.source):mapping.source;node.add(new SourceNode(mapping.originalLine,mapping.originalColumn,source,code,mapping.name))}}},SourceNode.prototype.add=function(aChunk){if(Array.isArray(aChunk))aChunk.forEach((function(chunk){this.add(chunk)}),this);else{if(!aChunk[isSourceNode]&&"string"!=typeof aChunk)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+aChunk);aChunk&&this.children.push(aChunk)}return this},SourceNode.prototype.prepend=function(aChunk){if(Array.isArray(aChunk))for(var i=aChunk.length-1;i>=0;i--)this.prepend(aChunk[i]);else{if(!aChunk[isSourceNode]&&"string"!=typeof aChunk)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+aChunk);this.children.unshift(aChunk)}return this},SourceNode.prototype.walk=function(aFn){for(var chunk,i=0,len=this.children.length;i<len;i++)(chunk=this.children[i])[isSourceNode]?chunk.walk(aFn):""!==chunk&&aFn(chunk,{source:this.source,line:this.line,column:this.column,name:this.name})},SourceNode.prototype.join=function(aSep){var newChildren,i,len=this.children.length;if(len>0){for(newChildren=[],i=0;i<len-1;i++)newChildren.push(this.children[i]),newChildren.push(aSep);newChildren.push(this.children[i]),this.children=newChildren}return this},SourceNode.prototype.replaceRight=function(aPattern,aReplacement){var lastChild=this.children[this.children.length-1];return lastChild[isSourceNode]?lastChild.replaceRight(aPattern,aReplacement):"string"==typeof lastChild?this.children[this.children.length-1]=lastChild.replace(aPattern,aReplacement):this.children.push("".replace(aPattern,aReplacement)),this},SourceNode.prototype.setSourceContent=function(aSourceFile,aSourceContent){this.sourceContents[util.toSetString(aSourceFile)]=aSourceContent},SourceNode.prototype.walkSourceContents=function(aFn){for(var i=0,len=this.children.length;i<len;i++)this.children[i][isSourceNode]&&this.children[i].walkSourceContents(aFn);var sources=Object.keys(this.sourceContents);for(i=0,len=sources.length;i<len;i++)aFn(util.fromSetString(sources[i]),this.sourceContents[sources[i]])},SourceNode.prototype.toString=function(){var str="";return this.walk((function(chunk){str+=chunk})),str},SourceNode.prototype.toStringWithSourceMap=function(aArgs){var generated={code:"",line:1,column:0},map=new SourceMapGenerator(aArgs),sourceMappingActive=!1,lastOriginalSource=null,lastOriginalLine=null,lastOriginalColumn=null,lastOriginalName=null;return this.walk((function(chunk,original){generated.code+=chunk,null!==original.source&&null!==original.line&&null!==original.column?((lastOriginalSource!==original.source||lastOriginalLine!==original.line||lastOriginalColumn!==original.column||lastOriginalName!==original.name)&&map.addMapping({source:original.source,original:{line:original.line,column:original.column},generated:{line:generated.line,column:generated.column},name:original.name}),lastOriginalSource=original.source,lastOriginalLine=original.line,lastOriginalColumn=original.column,lastOriginalName=original.name,sourceMappingActive=!0):sourceMappingActive&&(map.addMapping({generated:{line:generated.line,column:generated.column}}),lastOriginalSource=null,sourceMappingActive=!1);for(var idx=0,length=chunk.length;idx<length;idx++)10===chunk.charCodeAt(idx)?(generated.line++,generated.column=0,idx+1===length?(lastOriginalSource=null,sourceMappingActive=!1):sourceMappingActive&&map.addMapping({source:original.source,original:{line:original.line,column:original.column},generated:{line:generated.line,column:generated.column},name:original.name})):generated.column++})),this.walkSourceContents((function(sourceFile,sourceContent){map.setSourceContent(sourceFile,sourceContent)})),{code:generated.code,map}},exports.SourceNode=SourceNode}}),require_source_map=(0,chunk_XP5HYGXS.P$)({"../../node_modules/escodegen/node_modules/source-map/source-map.js"(exports){exports.SourceMapGenerator=require_source_map_generator().SourceMapGenerator,exports.SourceMapConsumer=require_source_map_consumer().SourceMapConsumer,exports.SourceNode=require_source_node().SourceNode}}),require_package=(0,chunk_XP5HYGXS.P$)({"../../node_modules/escodegen/package.json"(exports,module){module.exports={name:"escodegen",description:"ECMAScript code generator",homepage:"http://github.com/estools/escodegen",main:"escodegen.js",bin:{esgenerate:"./bin/esgenerate.js",escodegen:"./bin/escodegen.js"},files:["LICENSE.BSD","README.md","bin","escodegen.js","package.json"],version:"2.1.0",engines:{node:">=6.0"},maintainers:[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"http://github.com/Constellation"}],repository:{type:"git",url:"http://github.com/estools/escodegen.git"},dependencies:{estraverse:"^5.2.0",esutils:"^2.0.2",esprima:"^4.0.1"},optionalDependencies:{"source-map":"~0.6.1"},devDependencies:{acorn:"^8.0.4",bluebird:"^3.4.7","bower-registry-client":"^1.0.0",chai:"^4.2.0","chai-exclude":"^2.0.2","commonjs-everywhere":"^0.9.7",gulp:"^4.0.2","gulp-eslint":"^6.0.0","gulp-mocha":"^7.0.2",minimist:"^1.2.5",optionator:"^0.9.1",semver:"^7.3.4"},license:"BSD-2-Clause",scripts:{test:"gulp travis","unit-test":"gulp test",lint:"gulp lint",release:"node tools/release.js","build-min":"./node_modules/.bin/cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js",build:"./node_modules/.bin/cjsify -a path: tools/entry-point.js > escodegen.browser.js"}}}}),require_escodegen=(0,chunk_XP5HYGXS.P$)({"../../node_modules/escodegen/escodegen.js"(exports){!function(){var Syntax,Precedence,BinaryPrecedence,SourceNode,estraverse,esutils,base2,indent,json,renumber,hexadecimal,quotes,escapeless,newline,space,parentheses,semicolons,safeConcatenation,directive,extra,parse5,sourceMap,sourceCode,preserveBlankLines,FORMAT_MINIFY,FORMAT_DEFAULTS;function isStatement(node){return CodeGenerator.Statement.hasOwnProperty(node.type)}estraverse=require_estraverse(),esutils=require_utils(),Syntax=estraverse.Syntax,BinaryPrecedence={"??":(Precedence={Sequence:0,Yield:1,Assignment:1,Conditional:2,ArrowFunction:2,Coalesce:3,LogicalOR:4,LogicalAND:5,BitwiseOR:6,BitwiseXOR:7,BitwiseAND:8,Equality:9,Relational:10,BitwiseSHIFT:11,Additive:12,Multiplicative:13,Exponentiation:14,Await:15,Unary:15,Postfix:16,OptionalChaining:17,Call:18,New:19,TaggedTemplate:20,Member:21,Primary:22}).Coalesce,"||":Precedence.LogicalOR,"&&":Precedence.LogicalAND,"|":Precedence.BitwiseOR,"^":Precedence.BitwiseXOR,"&":Precedence.BitwiseAND,"==":Precedence.Equality,"!=":Precedence.Equality,"===":Precedence.Equality,"!==":Precedence.Equality,is:Precedence.Equality,isnt:Precedence.Equality,"<":Precedence.Relational,">":Precedence.Relational,"<=":Precedence.Relational,">=":Precedence.Relational,in:Precedence.Relational,instanceof:Precedence.Relational,"<<":Precedence.BitwiseSHIFT,">>":Precedence.BitwiseSHIFT,">>>":Precedence.BitwiseSHIFT,"+":Precedence.Additive,"-":Precedence.Additive,"*":Precedence.Multiplicative,"%":Precedence.Multiplicative,"/":Precedence.Multiplicative,"**":Precedence.Exponentiation};function stringRepeat(str,num){var result="";for(num|=0;num>0;num>>>=1,str+=str)1&num&&(result+=str);return result}function endsWithLineTerminator(str){var len=str.length;return len&&esutils.code.isLineTerminator(str.charCodeAt(len-1))}function merge(target,override){var key;for(key in override)override.hasOwnProperty(key)&&(target[key]=override[key]);return target}function updateDeeply(target,override){var key,val;function isHashObject(target2){return"object"==typeof target2&&target2 instanceof Object&&!(target2 instanceof RegExp)}for(key in override)override.hasOwnProperty(key)&&(isHashObject(val=override[key])?isHashObject(target[key])?updateDeeply(target[key],val):target[key]=updateDeeply({},val):target[key]=val);return target}function escapeRegExpCharacter(ch,previousIsBackslash){return 8232==(-2&ch)?(previousIsBackslash?"u":"\\u")+(8232===ch?"2028":"2029"):10===ch||13===ch?(previousIsBackslash?"":"\\")+(10===ch?"n":"r"):String.fromCharCode(ch)}function escapeAllowedCharacter(code,next){var hex;return 8===code?"\\b":12===code?"\\f":9===code?"\\t":(hex=code.toString(16).toUpperCase(),json||code>255?"\\u"+"0000".slice(hex.length)+hex:0!==code||esutils.code.isDecimalDigit(next)?11===code?"\\x0B":"\\x"+"00".slice(hex.length)+hex:"\\0")}function escapeDisallowedCharacter(code){if(92===code)return"\\\\";if(10===code)return"\\n";if(13===code)return"\\r";if(8232===code)return"\\u2028";if(8233===code)return"\\u2029";throw new Error("Incorrectly classified character")}function flattenToString(arr){var i,iz,elem,result="";for(i=0,iz=arr.length;i<iz;++i)elem=arr[i],result+=Array.isArray(elem)?flattenToString(elem):elem;return result}function toSourceNodeWhenNeeded(generated,node){if(!sourceMap)return Array.isArray(generated)?flattenToString(generated):generated;if(null==node){if(generated instanceof SourceNode)return generated;node={}}return null==node.loc?new SourceNode(null,null,sourceMap,generated,node.name||null):new SourceNode(node.loc.start.line,node.loc.start.column,!0===sourceMap?node.loc.source||null:sourceMap,generated,node.name||null)}function noEmptySpace(){return space||" "}function join(left,right){var leftSource,rightSource,leftCharCode,rightCharCode;return 0===(leftSource=toSourceNodeWhenNeeded(left).toString()).length?[right]:0===(rightSource=toSourceNodeWhenNeeded(right).toString()).length?[left]:(leftCharCode=leftSource.charCodeAt(leftSource.length-1),rightCharCode=rightSource.charCodeAt(0),(43===leftCharCode||45===leftCharCode)&&leftCharCode===rightCharCode||esutils.code.isIdentifierPartES5(leftCharCode)&&esutils.code.isIdentifierPartES5(rightCharCode)||47===leftCharCode&&105===rightCharCode?[left,noEmptySpace(),right]:esutils.code.isWhiteSpace(leftCharCode)||esutils.code.isLineTerminator(leftCharCode)||esutils.code.isWhiteSpace(rightCharCode)||esutils.code.isLineTerminator(rightCharCode)?[left,right]:[left,space,right])}function addIndent(stmt){return[base2,stmt]}function withIndent(fn){var previousBase;previousBase=base2,fn(base2+=indent),base2=previousBase}function generateComment(comment,specialBase){if("Line"===comment.type){if(endsWithLineTerminator(comment.value))return"//"+comment.value;var result="//"+comment.value;return preserveBlankLines||(result+="\n"),result}return extra.format.indent.adjustMultilineComment&&/[\n\r]/.test(comment.value)?function adjustMultilineComment(value,specialBase){var array,i,len,line,j,spaces,previousBase,sn;for(array=value.split(/\r\n|[\r\n]/),spaces=Number.MAX_VALUE,i=1,len=array.length;i<len;++i){for(line=array[i],j=0;j<line.length&&esutils.code.isWhiteSpace(line.charCodeAt(j));)++j;spaces>j&&(spaces=j)}for(typeof specialBase<"u"?(previousBase=base2,"*"===array[1][spaces]&&(specialBase+=" "),base2=specialBase):(1&spaces&&--spaces,previousBase=base2),i=1,len=array.length;i<len;++i)sn=toSourceNodeWhenNeeded(addIndent(array[i].slice(spaces))),array[i]=sourceMap?sn.join(""):sn;return base2=previousBase,array.join("\n")}("/*"+comment.value+"*/",specialBase):"/*"+comment.value+"*/"}function addComments(stmt,result){var i,len,comment,save,tailingToStatement,specialBase,fragment,extRange,range,prevRange,prefix,count;if(stmt.leadingComments&&stmt.leadingComments.length>0){if(save=result,preserveBlankLines){for(result=[],extRange=(comment=stmt.leadingComments[0]).extendedRange,range=comment.range,(count=((prefix=sourceCode.substring(extRange[0],range[0])).match(/\n/g)||[]).length)>0?(result.push(stringRepeat("\n",count)),result.push(addIndent(generateComment(comment)))):(result.push(prefix),result.push(generateComment(comment))),prevRange=range,i=1,len=stmt.leadingComments.length;i<len;i++)range=(comment=stmt.leadingComments[i]).range,count=(sourceCode.substring(prevRange[1],range[0]).match(/\n/g)||[]).length,result.push(stringRepeat("\n",count)),result.push(addIndent(generateComment(comment))),prevRange=range;count=(sourceCode.substring(range[1],extRange[1]).match(/\n/g)||[]).length,result.push(stringRepeat("\n",count))}else for(comment=stmt.leadingComments[0],result=[],safeConcatenation&&stmt.type===Syntax.Program&&0===stmt.body.length&&result.push("\n"),result.push(generateComment(comment)),endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())||result.push("\n"),i=1,len=stmt.leadingComments.length;i<len;++i)endsWithLineTerminator(toSourceNodeWhenNeeded(fragment=[generateComment(comment=stmt.leadingComments[i])]).toString())||fragment.push("\n"),result.push(addIndent(fragment));result.push(addIndent(save))}if(stmt.trailingComments)if(preserveBlankLines)extRange=(comment=stmt.trailingComments[0]).extendedRange,range=comment.range,(count=((prefix=sourceCode.substring(extRange[0],range[0])).match(/\n/g)||[]).length)>0?(result.push(stringRepeat("\n",count)),result.push(addIndent(generateComment(comment)))):(result.push(prefix),result.push(generateComment(comment)));else for(tailingToStatement=!endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString()),specialBase=stringRepeat(" ",function calculateSpaces(str){var i;for(i=str.length-1;i>=0&&!esutils.code.isLineTerminator(str.charCodeAt(i));--i);return str.length-1-i}(toSourceNodeWhenNeeded([base2,result,indent]).toString())),i=0,len=stmt.trailingComments.length;i<len;++i)comment=stmt.trailingComments[i],tailingToStatement?(result=0===i?[result,indent]:[result,specialBase]).push(generateComment(comment,specialBase)):result=[result,addIndent(generateComment(comment))],i!==len-1&&!endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())&&(result=[result,"\n"]);return result}function generateBlankLines(start,end,result){var j,newlineCount=0;for(j=start;j<end;j++)"\n"===sourceCode[j]&&newlineCount++;for(j=1;j<newlineCount;j++)result.push(newline)}function parenthesize(text,current2,should){return current2<should?["(",text,")"]:text}function generateVerbatimString(string){var i,iz,result;for(i=1,iz=(result=string.split(/\r\n|\n/)).length;i<iz;i++)result[i]=newline+base2+result[i];return result}function CodeGenerator(){}function generateIdentifier(node){return toSourceNodeWhenNeeded(node.name,node)}function generateAsyncPrefix(node,spaceRequired){return node.async?"async"+(spaceRequired?noEmptySpace():space):""}function generateStarSuffix(node){return node.generator&&!extra.moz.starlessGenerator?"*"+space:""}function generateMethodPrefix(prop){var func=prop.value,prefix="";return func.async&&(prefix+=generateAsyncPrefix(func,!prop.computed)),func.generator&&(prefix+=generateStarSuffix(func)?"*":""),prefix}function generateInternal(node){var codegen;if(codegen=new CodeGenerator,isStatement(node))return codegen.generateStatement(node,1);if(function isExpression(node){return CodeGenerator.Expression.hasOwnProperty(node.type)}(node))return codegen.generateExpression(node,Precedence.Sequence,7);throw new Error("Unknown node type: "+node.type)}CodeGenerator.prototype.maybeBlock=function(stmt,flags){var result,noLeadingComment,that=this;return noLeadingComment=!extra.comment||!stmt.leadingComments,stmt.type===Syntax.BlockStatement&&noLeadingComment?[space,this.generateStatement(stmt,flags)]:stmt.type===Syntax.EmptyStatement&&noLeadingComment?";":(withIndent((function(){result=[newline,addIndent(that.generateStatement(stmt,flags))]})),result)},CodeGenerator.prototype.maybeBlockSuffix=function(stmt,result){var ends=endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString());return stmt.type!==Syntax.BlockStatement||extra.comment&&stmt.leadingComments||ends?ends?[result,base2]:[result,newline,base2]:[result,space]},CodeGenerator.prototype.generatePattern=function(node,precedence,flags){return node.type===Syntax.Identifier?generateIdentifier(node):this.generateExpression(node,precedence,flags)},CodeGenerator.prototype.generateFunctionParams=function(node){var i,iz,result,hasDefault;if(hasDefault=!1,node.type!==Syntax.ArrowFunctionExpression||node.rest||node.defaults&&0!==node.defaults.length||1!==node.params.length||node.params[0].type!==Syntax.Identifier){for((result=node.type===Syntax.ArrowFunctionExpression?[generateAsyncPrefix(node,!1)]:[]).push("("),node.defaults&&(hasDefault=!0),i=0,iz=node.params.length;i<iz;++i)hasDefault&&node.defaults[i]?result.push(this.generateAssignment(node.params[i],node.defaults[i],"=",Precedence.Assignment,7)):result.push(this.generatePattern(node.params[i],Precedence.Assignment,7)),i+1<iz&&result.push(","+space);node.rest&&(node.params.length&&result.push(","+space),result.push("..."),result.push(generateIdentifier(node.rest))),result.push(")")}else result=[generateAsyncPrefix(node,!0),generateIdentifier(node.params[0])];return result},CodeGenerator.prototype.generateFunctionBody=function(node){var result,expr;return result=this.generateFunctionParams(node),node.type===Syntax.ArrowFunctionExpression&&(result.push(space),result.push("=>")),node.expression?(result.push(space),"{"===(expr=this.generateExpression(node.body,Precedence.Assignment,7)).toString().charAt(0)&&(expr=["(",expr,")"]),result.push(expr)):result.push(this.maybeBlock(node.body,9)),result},CodeGenerator.prototype.generateIterationForStatement=function(operator,stmt,flags){var result=["for"+(stmt.await?noEmptySpace()+"await":"")+space+"("],that=this;return withIndent((function(){stmt.left.type===Syntax.VariableDeclaration?withIndent((function(){result.push(stmt.left.kind+noEmptySpace()),result.push(that.generateStatement(stmt.left.declarations[0],0))})):result.push(that.generateExpression(stmt.left,Precedence.Call,7)),result=join(result,operator),result=[join(result,that.generateExpression(stmt.right,Precedence.Assignment,7)),")"]})),result.push(this.maybeBlock(stmt.body,flags)),result},CodeGenerator.prototype.generatePropertyKey=function(expr,computed){var result=[];return computed&&result.push("["),result.push(this.generateExpression(expr,Precedence.Assignment,7)),computed&&result.push("]"),result},CodeGenerator.prototype.generateAssignment=function(left,right,operator,precedence,flags){return Precedence.Assignment<precedence&&(flags|=1),parenthesize([this.generateExpression(left,Precedence.Call,flags),space+operator+space,this.generateExpression(right,Precedence.Assignment,flags)],Precedence.Assignment,precedence)},CodeGenerator.prototype.semicolon=function(flags){return!semicolons&&32&flags?"":";"},CodeGenerator.Statement={BlockStatement:function(stmt,flags){var range,content,result=["{",newline],that=this;return withIndent((function(){var i,iz,fragment,bodyFlags;for(0===stmt.body.length&&preserveBlankLines&&((range=stmt.range)[1]-range[0]>2&&("\n"===(content=sourceCode.substring(range[0]+1,range[1]-1))[0]&&(result=["{"]),result.push(content))),bodyFlags=1,8&flags&&(bodyFlags|=16),i=0,iz=stmt.body.length;i<iz;++i)preserveBlankLines&&(0===i&&(stmt.body[0].leadingComments&&(range=stmt.body[0].leadingComments[0].extendedRange,"\n"===(content=sourceCode.substring(range[0],range[1]))[0]&&(result=["{"])),stmt.body[0].leadingComments||generateBlankLines(stmt.range[0],stmt.body[0].range[0],result)),i>0&&!stmt.body[i-1].trailingComments&&!stmt.body[i].leadingComments&&generateBlankLines(stmt.body[i-1].range[1],stmt.body[i].range[0],result)),i===iz-1&&(bodyFlags|=32),fragment=stmt.body[i].leadingComments&&preserveBlankLines?that.generateStatement(stmt.body[i],bodyFlags):addIndent(that.generateStatement(stmt.body[i],bodyFlags)),result.push(fragment),endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString())||preserveBlankLines&&i<iz-1&&stmt.body[i+1].leadingComments||result.push(newline),preserveBlankLines&&i===iz-1&&(stmt.body[i].trailingComments||generateBlankLines(stmt.body[i].range[1],stmt.range[1],result))})),result.push(addIndent("}")),result},BreakStatement:function(stmt,flags){return stmt.label?"break "+stmt.label.name+this.semicolon(flags):"break"+this.semicolon(flags)},ContinueStatement:function(stmt,flags){return stmt.label?"continue "+stmt.label.name+this.semicolon(flags):"continue"+this.semicolon(flags)},ClassBody:function(stmt,flags){var result=["{",newline],that=this;return withIndent((function(indent2){var i,iz;for(i=0,iz=stmt.body.length;i<iz;++i)result.push(indent2),result.push(that.generateExpression(stmt.body[i],Precedence.Sequence,7)),i+1<iz&&result.push(newline)})),endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())||result.push(newline),result.push(base2),result.push("}"),result},ClassDeclaration:function(stmt,flags){var result,fragment;return result=["class"],stmt.id&&(result=join(result,this.generateExpression(stmt.id,Precedence.Sequence,7))),stmt.superClass&&(fragment=join("extends",this.generateExpression(stmt.superClass,Precedence.Unary,7)),result=join(result,fragment)),result.push(space),result.push(this.generateStatement(stmt.body,33)),result},DirectiveStatement:function(stmt,flags){return extra.raw&&stmt.raw?stmt.raw+this.semicolon(flags):function escapeDirective(str){var i,iz,code,quote;for(quote="double"===quotes?'"':"'",i=0,iz=str.length;i<iz;++i){if(39===(code=str.charCodeAt(i))){quote='"';break}if(34===code){quote="'";break}92===code&&++i}return quote+str+quote}(stmt.directive)+this.semicolon(flags)},DoWhileStatement:function(stmt,flags){var result=join("do",this.maybeBlock(stmt.body,1));return join(result=this.maybeBlockSuffix(stmt.body,result),["while"+space+"(",this.generateExpression(stmt.test,Precedence.Sequence,7),")"+this.semicolon(flags)])},CatchClause:function(stmt,flags){var result,that=this;return withIndent((function(){var guard;stmt.param?(result=["catch"+space+"(",that.generateExpression(stmt.param,Precedence.Sequence,7),")"],stmt.guard&&(guard=that.generateExpression(stmt.guard,Precedence.Sequence,7),result.splice(2,0," if ",guard))):result=["catch"]})),result.push(this.maybeBlock(stmt.body,1)),result},DebuggerStatement:function(stmt,flags){return"debugger"+this.semicolon(flags)},EmptyStatement:function(stmt,flags){return";"},ExportDefaultDeclaration:function(stmt,flags){var bodyFlags,result=["export"];return bodyFlags=32&flags?33:1,result=join(result,"default"),result=isStatement(stmt.declaration)?join(result,this.generateStatement(stmt.declaration,bodyFlags)):join(result,this.generateExpression(stmt.declaration,Precedence.Assignment,7)+this.semicolon(flags))},ExportNamedDeclaration:function(stmt,flags){var bodyFlags,result=["export"],that=this;return bodyFlags=32&flags?33:1,stmt.declaration?join(result,this.generateStatement(stmt.declaration,bodyFlags)):(stmt.specifiers&&(0===stmt.specifiers.length?result=join(result,"{"+space+"}"):stmt.specifiers[0].type===Syntax.ExportBatchSpecifier?result=join(result,this.generateExpression(stmt.specifiers[0],Precedence.Sequence,7)):(result=join(result,"{"),withIndent((function(indent2){var i,iz;for(result.push(newline),i=0,iz=stmt.specifiers.length;i<iz;++i)result.push(indent2),result.push(that.generateExpression(stmt.specifiers[i],Precedence.Sequence,7)),i+1<iz&&result.push(","+newline)})),endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())||result.push(newline),result.push(base2+"}")),stmt.source?result=join(result,["from"+space,this.generateExpression(stmt.source,Precedence.Sequence,7),this.semicolon(flags)]):result.push(this.semicolon(flags))),result)},ExportAllDeclaration:function(stmt,flags){return["export"+space,"*"+space,"from"+space,this.generateExpression(stmt.source,Precedence.Sequence,7),this.semicolon(flags)]},ExpressionStatement:function(stmt,flags){var result,fragment;return 123===(fragment=toSourceNodeWhenNeeded(result=[this.generateExpression(stmt.expression,Precedence.Sequence,7)]).toString()).charCodeAt(0)||function isClassPrefixed(fragment2){var code;return"class"===fragment2.slice(0,5)&&(123===(code=fragment2.charCodeAt(5))||esutils.code.isWhiteSpace(code)||esutils.code.isLineTerminator(code))}(fragment)||function isFunctionPrefixed(fragment2){var code;return"function"===fragment2.slice(0,8)&&(40===(code=fragment2.charCodeAt(8))||esutils.code.isWhiteSpace(code)||42===code||esutils.code.isLineTerminator(code))}(fragment)||function isAsyncPrefixed(fragment2){var code,i,iz;if("async"!==fragment2.slice(0,5)||!esutils.code.isWhiteSpace(fragment2.charCodeAt(5)))return!1;for(i=6,iz=fragment2.length;i<iz&&esutils.code.isWhiteSpace(fragment2.charCodeAt(i));++i);return i!==iz&&"function"===fragment2.slice(i,i+8)&&(40===(code=fragment2.charCodeAt(i+8))||esutils.code.isWhiteSpace(code)||42===code||esutils.code.isLineTerminator(code))}(fragment)||directive&&16&flags&&stmt.expression.type===Syntax.Literal&&"string"==typeof stmt.expression.value?result=["(",result,")"+this.semicolon(flags)]:result.push(this.semicolon(flags)),result},ImportDeclaration:function(stmt,flags){var result,cursor,that=this;return 0===stmt.specifiers.length?["import",space,this.generateExpression(stmt.source,Precedence.Sequence,7),this.semicolon(flags)]:(result=["import"],cursor=0,stmt.specifiers[cursor].type===Syntax.ImportDefaultSpecifier&&(result=join(result,[this.generateExpression(stmt.specifiers[cursor],Precedence.Sequence,7)]),++cursor),stmt.specifiers[cursor]&&(0!==cursor&&result.push(","),stmt.specifiers[cursor].type===Syntax.ImportNamespaceSpecifier?result=join(result,[space,this.generateExpression(stmt.specifiers[cursor],Precedence.Sequence,7)]):(result.push(space+"{"),stmt.specifiers.length-cursor==1?(result.push(space),result.push(this.generateExpression(stmt.specifiers[cursor],Precedence.Sequence,7)),result.push(space+"}"+space)):(withIndent((function(indent2){var i,iz;for(result.push(newline),i=cursor,iz=stmt.specifiers.length;i<iz;++i)result.push(indent2),result.push(that.generateExpression(stmt.specifiers[i],Precedence.Sequence,7)),i+1<iz&&result.push(","+newline)})),endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())||result.push(newline),result.push(base2+"}"+space)))),result=join(result,["from"+space,this.generateExpression(stmt.source,Precedence.Sequence,7),this.semicolon(flags)]))},VariableDeclarator:function(stmt,flags){var itemFlags=1&flags?7:6;return stmt.init?[this.generateExpression(stmt.id,Precedence.Assignment,itemFlags),space,"=",space,this.generateExpression(stmt.init,Precedence.Assignment,itemFlags)]:this.generatePattern(stmt.id,Precedence.Assignment,itemFlags)},VariableDeclaration:function(stmt,flags){var result,i,iz,node,bodyFlags,that=this;function block(){for(node=stmt.declarations[0],extra.comment&&node.leadingComments?(result.push("\n"),result.push(addIndent(that.generateStatement(node,bodyFlags)))):(result.push(noEmptySpace()),result.push(that.generateStatement(node,bodyFlags))),i=1,iz=stmt.declarations.length;i<iz;++i)node=stmt.declarations[i],extra.comment&&node.leadingComments?(result.push(","+newline),result.push(addIndent(that.generateStatement(node,bodyFlags)))):(result.push(","+space),result.push(that.generateStatement(node,bodyFlags)))}return result=[stmt.kind],bodyFlags=1&flags?1:0,stmt.declarations.length>1?withIndent(block):block(),result.push(this.semicolon(flags)),result},ThrowStatement:function(stmt,flags){return[join("throw",this.generateExpression(stmt.argument,Precedence.Sequence,7)),this.semicolon(flags)]},TryStatement:function(stmt,flags){var result,i,iz,guardedHandlers;if(result=["try",this.maybeBlock(stmt.block,1)],result=this.maybeBlockSuffix(stmt.block,result),stmt.handlers)for(i=0,iz=stmt.handlers.length;i<iz;++i)result=join(result,this.generateStatement(stmt.handlers[i],1)),(stmt.finalizer||i+1!==iz)&&(result=this.maybeBlockSuffix(stmt.handlers[i].body,result));else{for(i=0,iz=(guardedHandlers=stmt.guardedHandlers||[]).length;i<iz;++i)result=join(result,this.generateStatement(guardedHandlers[i],1)),(stmt.finalizer||i+1!==iz)&&(result=this.maybeBlockSuffix(guardedHandlers[i].body,result));if(stmt.handler)if(Array.isArray(stmt.handler))for(i=0,iz=stmt.handler.length;i<iz;++i)result=join(result,this.generateStatement(stmt.handler[i],1)),(stmt.finalizer||i+1!==iz)&&(result=this.maybeBlockSuffix(stmt.handler[i].body,result));else result=join(result,this.generateStatement(stmt.handler,1)),stmt.finalizer&&(result=this.maybeBlockSuffix(stmt.handler.body,result))}return stmt.finalizer&&(result=join(result,["finally",this.maybeBlock(stmt.finalizer,1)])),result},SwitchStatement:function(stmt,flags){var result,fragment,i,iz,bodyFlags,that=this;if(withIndent((function(){result=["switch"+space+"(",that.generateExpression(stmt.discriminant,Precedence.Sequence,7),")"+space+"{"+newline]})),stmt.cases)for(bodyFlags=1,i=0,iz=stmt.cases.length;i<iz;++i)i===iz-1&&(bodyFlags|=32),fragment=addIndent(this.generateStatement(stmt.cases[i],bodyFlags)),result.push(fragment),endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString())||result.push(newline);return result.push(addIndent("}")),result},SwitchCase:function(stmt,flags){var result,fragment,i,iz,bodyFlags,that=this;return withIndent((function(){for(result=stmt.test?[join("case",that.generateExpression(stmt.test,Precedence.Sequence,7)),":"]:["default:"],i=0,(iz=stmt.consequent.length)&&stmt.consequent[0].type===Syntax.BlockStatement&&(fragment=that.maybeBlock(stmt.consequent[0],1),result.push(fragment),i=1),i!==iz&&!endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())&&result.push(newline),bodyFlags=1;i<iz;++i)i===iz-1&&32&flags&&(bodyFlags|=32),fragment=addIndent(that.generateStatement(stmt.consequent[i],bodyFlags)),result.push(fragment),i+1!==iz&&!endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString())&&result.push(newline)})),result},IfStatement:function(stmt,flags){var result,bodyFlags,that=this;return withIndent((function(){result=["if"+space+"(",that.generateExpression(stmt.test,Precedence.Sequence,7),")"]})),bodyFlags=1,32&flags&&(bodyFlags|=32),stmt.alternate?(result.push(this.maybeBlock(stmt.consequent,1)),result=this.maybeBlockSuffix(stmt.consequent,result),result=stmt.alternate.type===Syntax.IfStatement?join(result,["else ",this.generateStatement(stmt.alternate,bodyFlags)]):join(result,join("else",this.maybeBlock(stmt.alternate,bodyFlags)))):result.push(this.maybeBlock(stmt.consequent,bodyFlags)),result},ForStatement:function(stmt,flags){var result,that=this;return withIndent((function(){result=["for"+space+"("],stmt.init?stmt.init.type===Syntax.VariableDeclaration?result.push(that.generateStatement(stmt.init,0)):(result.push(that.generateExpression(stmt.init,Precedence.Sequence,6)),result.push(";")):result.push(";"),stmt.test&&(result.push(space),result.push(that.generateExpression(stmt.test,Precedence.Sequence,7))),result.push(";"),stmt.update&&(result.push(space),result.push(that.generateExpression(stmt.update,Precedence.Sequence,7))),result.push(")")})),result.push(this.maybeBlock(stmt.body,32&flags?33:1)),result},ForInStatement:function(stmt,flags){return this.generateIterationForStatement("in",stmt,32&flags?33:1)},ForOfStatement:function(stmt,flags){return this.generateIterationForStatement("of",stmt,32&flags?33:1)},LabeledStatement:function(stmt,flags){return[stmt.label.name+":",this.maybeBlock(stmt.body,32&flags?33:1)]},Program:function(stmt,flags){var result,fragment,i,iz,bodyFlags;for(iz=stmt.body.length,result=[safeConcatenation&&iz>0?"\n":""],bodyFlags=17,i=0;i<iz;++i)!safeConcatenation&&i===iz-1&&(bodyFlags|=32),preserveBlankLines&&(0===i&&(stmt.body[0].leadingComments||generateBlankLines(stmt.range[0],stmt.body[i].range[0],result)),i>0&&!stmt.body[i-1].trailingComments&&!stmt.body[i].leadingComments&&generateBlankLines(stmt.body[i-1].range[1],stmt.body[i].range[0],result)),fragment=addIndent(this.generateStatement(stmt.body[i],bodyFlags)),result.push(fragment),i+1<iz&&!endsWithLineTerminator(toSourceNodeWhenNeeded(fragment).toString())&&(preserveBlankLines&&stmt.body[i+1].leadingComments||result.push(newline)),preserveBlankLines&&i===iz-1&&(stmt.body[i].trailingComments||generateBlankLines(stmt.body[i].range[1],stmt.range[1],result));return result},FunctionDeclaration:function(stmt,flags){return[generateAsyncPrefix(stmt,!0),"function",generateStarSuffix(stmt)||noEmptySpace(),stmt.id?generateIdentifier(stmt.id):"",this.generateFunctionBody(stmt)]},ReturnStatement:function(stmt,flags){return stmt.argument?[join("return",this.generateExpression(stmt.argument,Precedence.Sequence,7)),this.semicolon(flags)]:["return"+this.semicolon(flags)]},WhileStatement:function(stmt,flags){var result,that=this;return withIndent((function(){result=["while"+space+"(",that.generateExpression(stmt.test,Precedence.Sequence,7),")"]})),result.push(this.maybeBlock(stmt.body,32&flags?33:1)),result},WithStatement:function(stmt,flags){var result,that=this;return withIndent((function(){result=["with"+space+"(",that.generateExpression(stmt.object,Precedence.Sequence,7),")"]})),result.push(this.maybeBlock(stmt.body,32&flags?33:1)),result}},merge(CodeGenerator.prototype,CodeGenerator.Statement),CodeGenerator.Expression={SequenceExpression:function(expr,precedence,flags){var result,i,iz;for(Precedence.Sequence<precedence&&(flags|=1),result=[],i=0,iz=expr.expressions.length;i<iz;++i)result.push(this.generateExpression(expr.expressions[i],Precedence.Assignment,flags)),i+1<iz&&result.push(","+space);return parenthesize(result,Precedence.Sequence,precedence)},AssignmentExpression:function(expr,precedence,flags){return this.generateAssignment(expr.left,expr.right,expr.operator,precedence,flags)},ArrowFunctionExpression:function(expr,precedence,flags){return parenthesize(this.generateFunctionBody(expr),Precedence.ArrowFunction,precedence)},ConditionalExpression:function(expr,precedence,flags){return Precedence.Conditional<precedence&&(flags|=1),parenthesize([this.generateExpression(expr.test,Precedence.Coalesce,flags),space+"?"+space,this.generateExpression(expr.consequent,Precedence.Assignment,flags),space+":"+space,this.generateExpression(expr.alternate,Precedence.Assignment,flags)],Precedence.Conditional,precedence)},LogicalExpression:function(expr,precedence,flags){return"??"===expr.operator&&(flags|=64),this.BinaryExpression(expr,precedence,flags)},BinaryExpression:function(expr,precedence,flags){var result,leftPrecedence,rightPrecedence,currentPrecedence,fragment,leftSource;return currentPrecedence=BinaryPrecedence[expr.operator],leftPrecedence="**"===expr.operator?Precedence.Postfix:currentPrecedence,rightPrecedence="**"===expr.operator?currentPrecedence:currentPrecedence+1,currentPrecedence<precedence&&(flags|=1),result=47===(leftSource=(fragment=this.generateExpression(expr.left,leftPrecedence,flags)).toString()).charCodeAt(leftSource.length-1)&&esutils.code.isIdentifierPartES5(expr.operator.charCodeAt(0))?[fragment,noEmptySpace(),expr.operator]:join(fragment,expr.operator),fragment=this.generateExpression(expr.right,rightPrecedence,flags),"/"===expr.operator&&"/"===fragment.toString().charAt(0)||"<"===expr.operator.slice(-1)&&"!--"===fragment.toString().slice(0,3)?(result.push(noEmptySpace()),result.push(fragment)):result=join(result,fragment),"in"!==expr.operator||1&flags?("||"===expr.operator||"&&"===expr.operator)&&64&flags?["(",result,")"]:parenthesize(result,currentPrecedence,precedence):["(",result,")"]},CallExpression:function(expr,precedence,flags){var result,i,iz;for(result=[this.generateExpression(expr.callee,Precedence.Call,3)],expr.optional&&result.push("?."),result.push("("),i=0,iz=expr.arguments.length;i<iz;++i)result.push(this.generateExpression(expr.arguments[i],Precedence.Assignment,7)),i+1<iz&&result.push(","+space);return result.push(")"),2&flags?parenthesize(result,Precedence.Call,precedence):["(",result,")"]},ChainExpression:function(expr,precedence,flags){return Precedence.OptionalChaining<precedence&&(flags|=2),parenthesize(this.generateExpression(expr.expression,Precedence.OptionalChaining,flags),Precedence.OptionalChaining,precedence)},NewExpression:function(expr,precedence,flags){var result,length,i,iz,itemFlags;if(length=expr.arguments.length,itemFlags=4&flags&&!parentheses&&0===length?5:1,result=join("new",this.generateExpression(expr.callee,Precedence.New,itemFlags)),!(4&flags)||parentheses||length>0){for(result.push("("),i=0,iz=length;i<iz;++i)result.push(this.generateExpression(expr.arguments[i],Precedence.Assignment,7)),i+1<iz&&result.push(","+space);result.push(")")}return parenthesize(result,Precedence.New,precedence)},MemberExpression:function(expr,precedence,flags){var result,fragment;return result=[this.generateExpression(expr.object,Precedence.Call,2&flags?3:1)],expr.computed?(expr.optional&&result.push("?."),result.push("["),result.push(this.generateExpression(expr.property,Precedence.Sequence,2&flags?7:5)),result.push("]")):(!expr.optional&&expr.object.type===Syntax.Literal&&"number"==typeof expr.object.value&&((fragment=toSourceNodeWhenNeeded(result).toString()).indexOf(".")<0&&!/[eExX]/.test(fragment)&&esutils.code.isDecimalDigit(fragment.charCodeAt(fragment.length-1))&&!(fragment.length>=2&&48===fragment.charCodeAt(0))&&result.push(" ")),result.push(expr.optional?"?.":"."),result.push(generateIdentifier(expr.property))),parenthesize(result,Precedence.Member,precedence)},MetaProperty:function(expr,precedence,flags){var result;return(result=[]).push("string"==typeof expr.meta?expr.meta:generateIdentifier(expr.meta)),result.push("."),result.push("string"==typeof expr.property?expr.property:generateIdentifier(expr.property)),parenthesize(result,Precedence.Member,precedence)},UnaryExpression:function(expr,precedence,flags){var result,fragment,rightCharCode,leftSource,leftCharCode;return fragment=this.generateExpression(expr.argument,Precedence.Unary,7),""===space?result=join(expr.operator,fragment):(result=[expr.operator],expr.operator.length>2?result=join(result,fragment):(leftCharCode=(leftSource=toSourceNodeWhenNeeded(result).toString()).charCodeAt(leftSource.length-1),rightCharCode=fragment.toString().charCodeAt(0),((43===leftCharCode||45===leftCharCode)&&leftCharCode===rightCharCode||esutils.code.isIdentifierPartES5(leftCharCode)&&esutils.code.isIdentifierPartES5(rightCharCode))&&result.push(noEmptySpace()),result.push(fragment))),parenthesize(result,Precedence.Unary,precedence)},YieldExpression:function(expr,precedence,flags){var result;return result=expr.delegate?"yield*":"yield",expr.argument&&(result=join(result,this.generateExpression(expr.argument,Precedence.Yield,7))),parenthesize(result,Precedence.Yield,precedence)},AwaitExpression:function(expr,precedence,flags){return parenthesize(join(expr.all?"await*":"await",this.generateExpression(expr.argument,Precedence.Await,7)),Precedence.Await,precedence)},UpdateExpression:function(expr,precedence,flags){return expr.prefix?parenthesize([expr.operator,this.generateExpression(expr.argument,Precedence.Unary,7)],Precedence.Unary,precedence):parenthesize([this.generateExpression(expr.argument,Precedence.Postfix,7),expr.operator],Precedence.Postfix,precedence)},FunctionExpression:function(expr,precedence,flags){var result=[generateAsyncPrefix(expr,!0),"function"];return expr.id?(result.push(generateStarSuffix(expr)||noEmptySpace()),result.push(generateIdentifier(expr.id))):result.push(generateStarSuffix(expr)||space),result.push(this.generateFunctionBody(expr)),result},ArrayPattern:function(expr,precedence,flags){return this.ArrayExpression(expr,precedence,flags,!0)},ArrayExpression:function(expr,precedence,flags,isPattern){var result,multiline,that=this;return expr.elements.length?(multiline=!isPattern&&expr.elements.length>1,result=["[",multiline?newline:""],withIndent((function(indent2){var i,iz;for(i=0,iz=expr.elements.length;i<iz;++i)expr.elements[i]?(result.push(multiline?indent2:""),result.push(that.generateExpression(expr.elements[i],Precedence.Assignment,7))):(multiline&&result.push(indent2),i+1===iz&&result.push(",")),i+1<iz&&result.push(","+(multiline?newline:space))})),multiline&&!endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())&&result.push(newline),result.push(multiline?base2:""),result.push("]"),result):"[]"},RestElement:function(expr,precedence,flags){return"..."+this.generatePattern(expr.argument)},ClassExpression:function(expr,precedence,flags){var result,fragment;return result=["class"],expr.id&&(result=join(result,this.generateExpression(expr.id,Precedence.Sequence,7))),expr.superClass&&(fragment=join("extends",this.generateExpression(expr.superClass,Precedence.Unary,7)),result=join(result,fragment)),result.push(space),result.push(this.generateStatement(expr.body,33)),result},MethodDefinition:function(expr,precedence,flags){var result,fragment;return result=expr.static?["static"+space]:[],fragment="get"===expr.kind||"set"===expr.kind?[join(expr.kind,this.generatePropertyKey(expr.key,expr.computed)),this.generateFunctionBody(expr.value)]:[generateMethodPrefix(expr),this.generatePropertyKey(expr.key,expr.computed),this.generateFunctionBody(expr.value)],join(result,fragment)},Property:function(expr,precedence,flags){return"get"===expr.kind||"set"===expr.kind?[expr.kind,noEmptySpace(),this.generatePropertyKey(expr.key,expr.computed),this.generateFunctionBody(expr.value)]:expr.shorthand?"AssignmentPattern"===expr.value.type?this.AssignmentPattern(expr.value,Precedence.Sequence,7):this.generatePropertyKey(expr.key,expr.computed):expr.method?[generateMethodPrefix(expr),this.generatePropertyKey(expr.key,expr.computed),this.generateFunctionBody(expr.value)]:[this.generatePropertyKey(expr.key,expr.computed),":"+space,this.generateExpression(expr.value,Precedence.Assignment,7)]},ObjectExpression:function(expr,precedence,flags){var multiline,result,fragment,that=this;return expr.properties.length?(multiline=expr.properties.length>1,withIndent((function(){fragment=that.generateExpression(expr.properties[0],Precedence.Sequence,7)})),multiline||function hasLineTerminator(str){return/[\r\n]/g.test(str)}(toSourceNodeWhenNeeded(fragment).toString())?(withIndent((function(indent2){var i,iz;if(result=["{",newline,indent2,fragment],multiline)for(result.push(","+newline),i=1,iz=expr.properties.length;i<iz;++i)result.push(indent2),result.push(that.generateExpression(expr.properties[i],Precedence.Sequence,7)),i+1<iz&&result.push(","+newline)})),endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())||result.push(newline),result.push(base2),result.push("}"),result):["{",space,fragment,space,"}"]):"{}"},AssignmentPattern:function(expr,precedence,flags){return this.generateAssignment(expr.left,expr.right,"=",precedence,flags)},ObjectPattern:function(expr,precedence,flags){var result,i,iz,multiline,property,that=this;if(!expr.properties.length)return"{}";if(multiline=!1,1===expr.properties.length)(property=expr.properties[0]).type===Syntax.Property&&property.value.type!==Syntax.Identifier&&(multiline=!0);else for(i=0,iz=expr.properties.length;i<iz;++i)if((property=expr.properties[i]).type===Syntax.Property&&!property.shorthand){multiline=!0;break}return result=["{",multiline?newline:""],withIndent((function(indent2){var i2,iz2;for(i2=0,iz2=expr.properties.length;i2<iz2;++i2)result.push(multiline?indent2:""),result.push(that.generateExpression(expr.properties[i2],Precedence.Sequence,7)),i2+1<iz2&&result.push(","+(multiline?newline:space))})),multiline&&!endsWithLineTerminator(toSourceNodeWhenNeeded(result).toString())&&result.push(newline),result.push(multiline?base2:""),result.push("}"),result},ThisExpression:function(expr,precedence,flags){return"this"},Super:function(expr,precedence,flags){return"super"},Identifier:function(expr,precedence,flags){return generateIdentifier(expr)},ImportDefaultSpecifier:function(expr,precedence,flags){return generateIdentifier(expr.id||expr.local)},ImportNamespaceSpecifier:function(expr,precedence,flags){var result=["*"],id=expr.id||expr.local;return id&&result.push(space+"as"+noEmptySpace()+generateIdentifier(id)),result},ImportSpecifier:function(expr,precedence,flags){var imported=expr.imported,result=[imported.name],local=expr.local;return local&&local.name!==imported.name&&result.push(noEmptySpace()+"as"+noEmptySpace()+generateIdentifier(local)),result},ExportSpecifier:function(expr,precedence,flags){var local=expr.local,result=[local.name],exported=expr.exported;return exported&&exported.name!==local.name&&result.push(noEmptySpace()+"as"+noEmptySpace()+generateIdentifier(exported)),result},Literal:function(expr,precedence,flags){var raw;if(expr.hasOwnProperty("raw")&&parse5&&extra.raw)try{if((raw=parse5(expr.raw).body[0].expression).type===Syntax.Literal&&raw.value===expr.value)return expr.raw}catch{}return expr.regex?"/"+expr.regex.pattern+"/"+expr.regex.flags:"bigint"==typeof expr.value?expr.value.toString()+"n":expr.bigint?expr.bigint+"n":null===expr.value?"null":"string"==typeof expr.value?function escapeString(str){var i,len,code,single,quote,result="",singleQuotes=0,doubleQuotes=0;for(i=0,len=str.length;i<len;++i){if(39===(code=str.charCodeAt(i)))++singleQuotes;else if(34===code)++doubleQuotes;else if(47===code&&json)result+="\\";else{if(esutils.code.isLineTerminator(code)||92===code){result+=escapeDisallowedCharacter(code);continue}if(!esutils.code.isIdentifierPartES5(code)&&(json&&code<32||!json&&!escapeless&&(code<32||code>126))){result+=escapeAllowedCharacter(code,str.charCodeAt(i+1));continue}}result+=String.fromCharCode(code)}if(quote=(single=!("double"===quotes||"auto"===quotes&&doubleQuotes<singleQuotes))?"'":'"',!(single?singleQuotes:doubleQuotes))return quote+result+quote;for(str=result,result=quote,i=0,len=str.length;i<len;++i)(39===(code=str.charCodeAt(i))&&single||34===code&&!single)&&(result+="\\"),result+=String.fromCharCode(code);return result+quote}(expr.value):"number"==typeof expr.value?function generateNumber(value){var result,point,temp,exponent,pos;if(value!=value)throw new Error("Numeric literal whose value is NaN");if(value<0||0===value&&1/value<0)throw new Error("Numeric literal whose value is negative");if(value===1/0)return json?"null":renumber?"1e400":"1e+400";if(result=""+value,!renumber||result.length<3)return result;for(point=result.indexOf("."),!json&&48===result.charCodeAt(0)&&1===point&&(point=0,result=result.slice(1)),temp=result,result=result.replace("e+","e"),exponent=0,(pos=temp.indexOf("e"))>0&&(exponent=+temp.slice(pos+1),temp=temp.slice(0,pos)),point>=0&&(exponent-=temp.length-point-1,temp=+(temp.slice(0,point)+temp.slice(point+1))+""),pos=0;48===temp.charCodeAt(temp.length+pos-1);)--pos;return 0!==pos&&(exponent-=pos,temp=temp.slice(0,pos)),0!==exponent&&(temp+="e"+exponent),(temp.length<result.length||hexadecimal&&value>1e12&&Math.floor(value)===value&&(temp="0x"+value.toString(16)).length<result.length)&&+temp===value&&(result=temp),result}(expr.value):"boolean"==typeof expr.value?expr.value?"true":"false":function generateRegExp(reg){var match,result,flags,i,iz,ch,characterInBrack,previousIsBackslash;if(result=reg.toString(),reg.source){if(!(match=result.match(/\/([^/]*)$/)))return result;for(flags=match[1],result="",characterInBrack=!1,previousIsBackslash=!1,i=0,iz=reg.source.length;i<iz;++i)ch=reg.source.charCodeAt(i),previousIsBackslash?(result+=escapeRegExpCharacter(ch,previousIsBackslash),previousIsBackslash=!1):(characterInBrack?93===ch&&(characterInBrack=!1):47===ch?result+="\\":91===ch&&(characterInBrack=!0),result+=escapeRegExpCharacter(ch,previousIsBackslash),previousIsBackslash=92===ch);return"/"+result+"/"+flags}return result}(expr.value)},GeneratorExpression:function(expr,precedence,flags){return this.ComprehensionExpression(expr,precedence,flags)},ComprehensionExpression:function(expr,precedence,flags){var result,i,iz,fragment,that=this;return result=expr.type===Syntax.GeneratorExpression?["("]:["["],extra.moz.comprehensionExpressionStartsWithAssignment&&(fragment=this.generateExpression(expr.body,Precedence.Assignment,7),result.push(fragment)),expr.blocks&&withIndent((function(){for(i=0,iz=expr.blocks.length;i<iz;++i)fragment=that.generateExpression(expr.blocks[i],Precedence.Sequence,7),i>0||extra.moz.comprehensionExpressionStartsWithAssignment?result=join(result,fragment):result.push(fragment)})),expr.filter&&(result=join(result,"if"+space),fragment=this.generateExpression(expr.filter,Precedence.Sequence,7),result=join(result,["(",fragment,")"])),extra.moz.comprehensionExpressionStartsWithAssignment||(fragment=this.generateExpression(expr.body,Precedence.Assignment,7),result=join(result,fragment)),result.push(expr.type===Syntax.GeneratorExpression?")":"]"),result},ComprehensionBlock:function(expr,precedence,flags){var fragment;return fragment=join(fragment=expr.left.type===Syntax.VariableDeclaration?[expr.left.kind,noEmptySpace(),this.generateStatement(expr.left.declarations[0],0)]:this.generateExpression(expr.left,Precedence.Call,7),expr.of?"of":"in"),fragment=join(fragment,this.generateExpression(expr.right,Precedence.Sequence,7)),["for"+space+"(",fragment,")"]},SpreadElement:function(expr,precedence,flags){return["...",this.generateExpression(expr.argument,Precedence.Assignment,7)]},TaggedTemplateExpression:function(expr,precedence,flags){var itemFlags=3;return 2&flags||(itemFlags=1),parenthesize([this.generateExpression(expr.tag,Precedence.Call,itemFlags),this.generateExpression(expr.quasi,Precedence.Primary,4)],Precedence.TaggedTemplate,precedence)},TemplateElement:function(expr,precedence,flags){return expr.value.raw},TemplateLiteral:function(expr,precedence,flags){var result,i,iz;for(result=["`"],i=0,iz=expr.quasis.length;i<iz;++i)result.push(this.generateExpression(expr.quasis[i],Precedence.Primary,7)),i+1<iz&&(result.push("${"+space),result.push(this.generateExpression(expr.expressions[i],Precedence.Sequence,7)),result.push(space+"}"));return result.push("`"),result},ModuleSpecifier:function(expr,precedence,flags){return this.Literal(expr,precedence,flags)},ImportExpression:function(expr,precedence,flag){return parenthesize(["import(",this.generateExpression(expr.source,Precedence.Assignment,7),")"],Precedence.Call,precedence)}},merge(CodeGenerator.prototype,CodeGenerator.Expression),CodeGenerator.prototype.generateExpression=function(expr,precedence,flags){var result,type;return type=expr.type||Syntax.Property,extra.verbatim&&expr.hasOwnProperty(extra.verbatim)?function generateVerbatim(expr,precedence){var verbatim,result;return result="string"==typeof(verbatim=expr[extra.verbatim])?parenthesize(generateVerbatimString(verbatim),Precedence.Sequence,precedence):parenthesize(result=generateVerbatimString(verbatim.content),null!=verbatim.precedence?verbatim.precedence:Precedence.Sequence,precedence),toSourceNodeWhenNeeded(result,expr)}(expr,precedence):(result=this[type](expr,precedence,flags),extra.comment&&(result=addComments(expr,result)),toSourceNodeWhenNeeded(result,expr))},CodeGenerator.prototype.generateStatement=function(stmt,flags){var result,fragment;return result=this[stmt.type](stmt,flags),extra.comment&&(result=addComments(stmt,result)),fragment=toSourceNodeWhenNeeded(result).toString(),stmt.type===Syntax.Program&&!safeConcatenation&&""===newline&&"\n"===fragment.charAt(fragment.length-1)&&(result=sourceMap?toSourceNodeWhenNeeded(result).replaceRight(/\s+$/,""):fragment.replace(/\s+$/,"")),toSourceNodeWhenNeeded(result,stmt)},FORMAT_MINIFY={indent:{style:"",base:0},renumber:!0,hexadecimal:!0,quotes:"auto",escapeless:!0,compact:!0,parentheses:!1,semicolons:!1},FORMAT_DEFAULTS={indent:{style:" ",base:0,adjustMultilineComment:!1},newline:"\n",space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},exports.version=require_package().version,exports.generate=function generate2(node,options){var result,pair,defaultOptions2={indent:null,base:null,parse:null,comment:!1,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:"\n",space:" ",json:!1,renumber:!1,hexadecimal:!1,quotes:"single",escapeless:!1,compact:!1,parentheses:!0,semicolons:!0,safeConcatenation:!1,preserveBlankLines:!1},moz:{comprehensionExpressionStartsWithAssignment:!1,starlessGenerator:!1},sourceMap:null,sourceMapRoot:null,sourceMapWithCode:!1,directive:!1,raw:!0,verbatim:null,sourceCode:null};return null!=options?("string"==typeof options.indent&&(defaultOptions2.format.indent.style=options.indent),"number"==typeof options.base&&(defaultOptions2.format.indent.base=options.base),options=updateDeeply(defaultOptions2,options),indent=options.format.indent.style,base2="string"==typeof options.base?options.base:stringRepeat(indent,options.format.indent.base)):(indent=(options=defaultOptions2).format.indent.style,base2=stringRepeat(indent,options.format.indent.base)),json=options.format.json,renumber=options.format.renumber,hexadecimal=!json&&options.format.hexadecimal,quotes=json?"double":options.format.quotes,escapeless=options.format.escapeless,newline=options.format.newline,space=options.format.space,options.format.compact&&(newline=space=indent=base2=""),parentheses=options.format.parentheses,semicolons=options.format.semicolons,safeConcatenation=options.format.safeConcatenation,directive=options.directive,parse5=json?null:options.parse,sourceMap=options.sourceMap,sourceCode=options.sourceCode,preserveBlankLines=options.format.preserveBlankLines&&null!==sourceCode,extra=options,sourceMap&&(SourceNode=exports.browser?__webpack_require__.g.sourceMap.SourceNode:require_source_map().SourceNode),result=generateInternal(node),sourceMap?(pair=result.toStringWithSourceMap({file:options.file,sourceRoot:options.sourceMapRoot}),options.sourceContent&&pair.map.setSourceContent(options.sourceMap,options.sourceContent),options.sourceMapWithCode?pair:pair.map.toString()):(pair={code:result.toString(),map:null},options.sourceMapWithCode?pair:pair.code)},exports.attachComments=estraverse.attachComments,exports.Precedence=updateDeeply({},Precedence),exports.browser=!1,exports.FORMAT_MINIFY=FORMAT_MINIFY,exports.FORMAT_DEFAULTS=FORMAT_DEFAULTS}()}}),acorn_exports={};function isInAstralSet(code,set){for(var pos=65536,i=0;i<set.length;i+=2){if((pos+=set[i])>code)return!1;if((pos+=set[i+1])>=code)return!0}}function isIdentifierStart(code,astral){return code<65?36===code:code<91||(code<97?95===code:code<123||(code<=65535?code>=170&&nonASCIIidentifierStart.test(String.fromCharCode(code)):!1!==astral&&isInAstralSet(code,astralIdentifierStartCodes)))}function isIdentifierChar(code,astral){return code<48?36===code:code<58||!(code<65)&&(code<91||(code<97?95===code:code<123||(code<=65535?code>=170&&nonASCIIidentifier.test(String.fromCharCode(code)):!1!==astral&&(isInAstralSet(code,astralIdentifierStartCodes)||isInAstralSet(code,astralIdentifierCodes)))))}function binop(name,prec){return new TokenType(name,{beforeExpr:!0,binop:prec})}function kw(name,options){return void 0===options&&(options={}),options.keyword=name,keywords$1[name]=new TokenType(name,options)}function isNewLine(code,ecma2019String){return 10===code||13===code||!ecma2019String&&(8232===code||8233===code)}function has(obj,propName){return chunk_JQQVJC7C_hasOwnProperty.call(obj,propName)}function wordsRegexp(words){return new RegExp("^(?:"+words.replace(/ /g,"|")+")$")}function getLineInfo(input,offset2){for(var line=1,cur=0;;){lineBreakG.lastIndex=cur;var match=lineBreakG.exec(input);if(!(match&&match.index<offset2))return new Position(line,offset2-cur);++line,cur=match.index+match[0].length}}function getOptions(opts){var options={};for(var opt in defaultOptions)options[opt]=opts&&has(opts,opt)?opts[opt]:defaultOptions[opt];if(options.ecmaVersion>=2015&&(options.ecmaVersion-=2009),null==options.allowReserved&&(options.allowReserved=options.ecmaVersion<5),isArray(options.onToken)){var tokens=options.onToken;options.onToken=function(token){return tokens.push(token)}}return isArray(options.onComment)&&(options.onComment=function pushComment(options,array){return function(block,text,start,end,startLoc,endLoc){var comment={type:block?"Block":"Line",value:text,start,end};options.locations&&(comment.loc=new SourceLocation(this,startLoc,endLoc)),options.ranges&&(comment.range=[start,end]),array.push(comment)}}(options,options.onComment)),options}function functionFlags(async,generator){return SCOPE_FUNCTION|(async?SCOPE_ASYNC:0)|(generator?SCOPE_GENERATOR:0)}function DestructuringErrors(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}function finishNodeAt(node,type,pos,loc){return node.type=type,node.end=pos,this.options.locations&&(node.loc.end=loc),this.options.ranges&&(node.range[1]=pos),node}function buildUnicodeData(ecmaVersion){var d=data[ecmaVersion]={binary:wordsRegexp(unicodeBinaryProperties[ecmaVersion]+" "+unicodeGeneralCategoryValues),nonBinary:{General_Category:wordsRegexp(unicodeGeneralCategoryValues),Script:wordsRegexp(unicodeScriptValues[ecmaVersion])}};d.nonBinary.Script_Extensions=d.nonBinary.Script,d.nonBinary.gc=d.nonBinary.General_Category,d.nonBinary.sc=d.nonBinary.Script,d.nonBinary.scx=d.nonBinary.Script_Extensions}function codePointToString(ch){return ch<=65535?String.fromCharCode(ch):(ch-=65536,String.fromCharCode(55296+(ch>>10),56320+(1023&ch)))}function isSyntaxCharacter(ch){return 36===ch||ch>=40&&ch<=43||46===ch||63===ch||ch>=91&&ch<=94||ch>=123&&ch<=125}function isControlLetter(ch){return ch>=65&&ch<=90||ch>=97&&ch<=122}function isUnicodePropertyNameCharacter(ch){return isControlLetter(ch)||95===ch}function isUnicodePropertyValueCharacter(ch){return isUnicodePropertyNameCharacter(ch)||isDecimalDigit(ch)}function isDecimalDigit(ch){return ch>=48&&ch<=57}function isHexDigit(ch){return ch>=48&&ch<=57||ch>=65&&ch<=70||ch>=97&&ch<=102}function hexToInt(ch){return ch>=65&&ch<=70?ch-65+10:ch>=97&&ch<=102?ch-97+10:ch-48}function isOctalDigit(ch){return ch>=48&&ch<=55}function stringToBigInt(str){return"function"!=typeof BigInt?null:BigInt(str.replace(/_/g,""))}function codePointToString$1(code){return code<=65535?String.fromCharCode(code):(code-=65536,String.fromCharCode(55296+(code>>10),56320+(1023&code)))}function parse3(input,options){return Parser.parse(input,options)}function parseExpressionAt2(input,pos,options){return Parser.parseExpressionAt(input,pos,options)}function tokenizer2(input,options){return Parser.tokenizer(input,options)}(0,chunk_XP5HYGXS.VA)(acorn_exports,{Node:()=>Node,Parser:()=>Parser,Position:()=>Position,SourceLocation:()=>SourceLocation,TokContext:()=>TokContext,Token:()=>Token,TokenType:()=>TokenType,defaultOptions:()=>defaultOptions,getLineInfo:()=>getLineInfo,isIdentifierChar:()=>isIdentifierChar,isIdentifierStart:()=>isIdentifierStart,isNewLine:()=>isNewLine,keywordTypes:()=>keywords$1,lineBreak:()=>lineBreak,lineBreakG:()=>lineBreakG,nonASCIIwhitespace:()=>nonASCIIwhitespace,parse:()=>parse3,parseExpressionAt:()=>parseExpressionAt2,tokContexts:()=>types$1,tokTypes:()=>types,tokenizer:()=>tokenizer2,version:()=>version});var reservedWords,ecma5AndLessKeywords,keywords,keywordRelationalOperator,nonASCIIidentifierStartChars,nonASCIIidentifierChars,nonASCIIidentifierStart,nonASCIIidentifier,astralIdentifierStartCodes,astralIdentifierCodes,TokenType,beforeExpr,startsExpr,keywords$1,types,lineBreak,lineBreakG,nonASCIIwhitespace,skipWhiteSpace,ref,chunk_JQQVJC7C_hasOwnProperty,chunk_JQQVJC7C_toString,isArray,Position,SourceLocation,defaultOptions,SCOPE_FUNCTION,SCOPE_VAR,SCOPE_ASYNC,SCOPE_GENERATOR,Parser,prototypeAccessors,pp,literal,pp$1,loopLabel,switchLabel,empty,FUNC_STATEMENT,FUNC_HANGING_STATEMENT,pp$2,pp$3,empty$1,pp$4,pp$5,Scope,Node,pp$6,TokContext,types$1,pp$7,ecma9BinaryProperties,ecma10BinaryProperties,unicodeBinaryProperties,unicodeGeneralCategoryValues,ecma9ScriptValues,ecma10ScriptValues,unicodeScriptValues,data,pp$8,RegExpValidationState,Token,pp$9,INVALID_TEMPLATE_ESCAPE_ERROR,version,init_acorn=(0,chunk_XP5HYGXS.E)({"../../node_modules/acorn/dist/acorn.mjs"(){reservedWords={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},keywords={5:ecma5AndLessKeywords="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this","5module":ecma5AndLessKeywords+" export import",6:ecma5AndLessKeywords+" const class extends export import super"},keywordRelationalOperator=/^in(stanceof)?$/,nonASCIIidentifierStartChars="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",nonASCIIidentifierChars="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",nonASCIIidentifierStart=new RegExp("["+nonASCIIidentifierStartChars+"]"),nonASCIIidentifier=new RegExp("["+nonASCIIidentifierStartChars+nonASCIIidentifierChars+"]"),nonASCIIidentifierStartChars=nonASCIIidentifierChars=null,astralIdentifierStartCodes=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,157,310,10,21,11,7,153,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,107,20,28,22,13,52,76,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,85,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,230,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,35,56,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,190,0,80,921,103,110,18,195,2749,1070,4050,582,8634,568,8,30,114,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8952,286,50,2,18,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,2357,44,11,6,17,0,370,43,1301,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42717,35,4148,12,221,3,5761,15,7472,3104,541,1507,4938],astralIdentifierCodes=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,154,10,176,2,54,14,32,9,16,3,46,10,54,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,161,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,19306,9,135,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,5319,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,262,6,10,9,419,13,1495,6,110,6,6,9,4759,9,787719,239],beforeExpr={beforeExpr:!0},keywords$1={},types={num:new(TokenType=function(label,conf){void 0===conf&&(conf={}),this.label=label,this.keyword=conf.keyword,this.beforeExpr=!!conf.beforeExpr,this.startsExpr=!!conf.startsExpr,this.isLoop=!!conf.isLoop,this.isAssign=!!conf.isAssign,this.prefix=!!conf.prefix,this.postfix=!!conf.postfix,this.binop=conf.binop||null,this.updateContext=null})("num",startsExpr={startsExpr:!0}),regexp:new TokenType("regexp",startsExpr),string:new TokenType("string",startsExpr),name:new TokenType("name",startsExpr),eof:new TokenType("eof"),bracketL:new TokenType("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new TokenType("]"),braceL:new TokenType("{",{beforeExpr:!0,startsExpr:!0}),braceR:new TokenType("}"),parenL:new TokenType("(",{beforeExpr:!0,startsExpr:!0}),parenR:new TokenType(")"),comma:new TokenType(",",beforeExpr),semi:new TokenType(";",beforeExpr),colon:new TokenType(":",beforeExpr),dot:new TokenType("."),question:new TokenType("?",beforeExpr),questionDot:new TokenType("?."),arrow:new TokenType("=>",beforeExpr),template:new TokenType("template"),invalidTemplate:new TokenType("invalidTemplate"),ellipsis:new TokenType("...",beforeExpr),backQuote:new TokenType("`",startsExpr),dollarBraceL:new TokenType("${",{beforeExpr:!0,startsExpr:!0}),eq:new TokenType("=",{beforeExpr:!0,isAssign:!0}),assign:new TokenType("_=",{beforeExpr:!0,isAssign:!0}),incDec:new TokenType("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new TokenType("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("</>/<=/>=",7),bitShift:binop("<</>>/>>>",8),plusMin:new TokenType("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new TokenType("**",{beforeExpr:!0}),coalesce:binop("??",1),_break:kw("break"),_case:kw("case",beforeExpr),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",beforeExpr),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",beforeExpr),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",startsExpr),_if:kw("if"),_return:kw("return",beforeExpr),_switch:kw("switch"),_throw:kw("throw",beforeExpr),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",startsExpr),_super:kw("super",startsExpr),_class:kw("class",startsExpr),_extends:kw("extends",beforeExpr),_export:kw("export"),_import:kw("import",startsExpr),_null:kw("null",startsExpr),_true:kw("true",startsExpr),_false:kw("false",startsExpr),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},lineBreak=/\r\n?|\n|\u2028|\u2029/,lineBreakG=new RegExp(lineBreak.source,"g"),nonASCIIwhitespace=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,skipWhiteSpace=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ref=Object.prototype,chunk_JQQVJC7C_hasOwnProperty=ref.hasOwnProperty,chunk_JQQVJC7C_toString=ref.toString,isArray=Array.isArray||function(obj){return"[object Array]"===chunk_JQQVJC7C_toString.call(obj)},(Position=function(line,col){this.line=line,this.column=col}).prototype.offset=function(n){return new Position(this.line,this.column+n)},SourceLocation=function(p,start,end){this.start=start,this.end=end,null!==p.sourceFile&&(this.source=p.sourceFile)},defaultOptions={ecmaVersion:10,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:!1,allowHashBang:!1,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},SCOPE_VAR=1|(SCOPE_FUNCTION=2),SCOPE_ASYNC=4,SCOPE_GENERATOR=8,prototypeAccessors={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}},(Parser=function(options,input,startPos){this.options=options=getOptions(options),this.sourceFile=options.sourceFile,this.keywords=wordsRegexp(keywords[options.ecmaVersion>=6?6:"module"===options.sourceType?"5module":5]);var reserved="";if(!0!==options.allowReserved){for(var v=options.ecmaVersion;!(reserved=reservedWords[v]);v--);"module"===options.sourceType&&(reserved+=" await")}this.reservedWords=wordsRegexp(reserved);var reservedStrict=(reserved?reserved+" ":"")+reservedWords.strict;this.reservedWordsStrict=wordsRegexp(reservedStrict),this.reservedWordsStrictBind=wordsRegexp(reservedStrict+" "+reservedWords.strictBind),this.input=String(input),this.containsEsc=!1,startPos?(this.pos=startPos,this.lineStart=this.input.lastIndexOf("\n",startPos-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(lineBreak).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=types.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===options.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports={},0===this.pos&&options.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null}).prototype.parse=function(){var node=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(node)},prototypeAccessors.inFunction.get=function(){return(this.currentVarScope().flags&SCOPE_FUNCTION)>0},prototypeAccessors.inGenerator.get=function(){return(this.currentVarScope().flags&SCOPE_GENERATOR)>0},prototypeAccessors.inAsync.get=function(){return(this.currentVarScope().flags&SCOPE_ASYNC)>0},prototypeAccessors.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0},prototypeAccessors.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},prototypeAccessors.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Parser.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&SCOPE_FUNCTION)>0},Parser.extend=function(){for(var plugins=[],len=arguments.length;len--;)plugins[len]=arguments[len];for(var cls=this,i=0;i<plugins.length;i++)cls=plugins[i](cls);return cls},Parser.parse=function(input,options){return new this(options,input).parse()},Parser.parseExpressionAt=function(input,pos,options){var parser=new this(options,input,pos);return parser.nextToken(),parser.parseExpression()},Parser.tokenizer=function(input,options){return new this(options,input)},Object.defineProperties(Parser.prototype,prototypeAccessors),pp=Parser.prototype,literal=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/,pp.strictDirective=function(start){for(;;){skipWhiteSpace.lastIndex=start,start+=skipWhiteSpace.exec(this.input)[0].length;var match=literal.exec(this.input.slice(start));if(!match)return!1;if("use strict"===(match[1]||match[2])){skipWhiteSpace.lastIndex=start+match[0].length;var spaceAfter=skipWhiteSpace.exec(this.input),end=spaceAfter.index+spaceAfter[0].length,next=this.input.charAt(end);return";"===next||"}"===next||lineBreak.test(spaceAfter[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(next)||"!"===next&&"="===this.input.charAt(end+1))}start+=match[0].length,skipWhiteSpace.lastIndex=start,start+=skipWhiteSpace.exec(this.input)[0].length,";"===this.input[start]&&start++}},pp.eat=function(type){return this.type===type&&(this.next(),!0)},pp.isContextual=function(name){return this.type===types.name&&this.value===name&&!this.containsEsc},pp.eatContextual=function(name){return!!this.isContextual(name)&&(this.next(),!0)},pp.expectContextual=function(name){this.eatContextual(name)||this.unexpected()},pp.canInsertSemicolon=function(){return this.type===types.eof||this.type===types.braceR||lineBreak.test(this.input.slice(this.lastTokEnd,this.start))},pp.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},pp.semicolon=function(){!this.eat(types.semi)&&!this.insertSemicolon()&&this.unexpected()},pp.afterTrailingComma=function(tokType,notNext){if(this.type===tokType)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),notNext||this.next(),!0},pp.expect=function(type){this.eat(type)||this.unexpected()},pp.unexpected=function(pos){this.raise(pos??this.start,"Unexpected token")},pp.checkPatternErrors=function(refDestructuringErrors,isAssign){if(refDestructuringErrors){refDestructuringErrors.trailingComma>-1&&this.raiseRecoverable(refDestructuringErrors.trailingComma,"Comma is not permitted after the rest element");var parens=isAssign?refDestructuringErrors.parenthesizedAssign:refDestructuringErrors.parenthesizedBind;parens>-1&&this.raiseRecoverable(parens,"Parenthesized pattern")}},pp.checkExpressionErrors=function(refDestructuringErrors,andThrow){if(!refDestructuringErrors)return!1;var shorthandAssign=refDestructuringErrors.shorthandAssign,doubleProto=refDestructuringErrors.doubleProto;if(!andThrow)return shorthandAssign>=0||doubleProto>=0;shorthandAssign>=0&&this.raise(shorthandAssign,"Shorthand property assignments are valid only in destructuring patterns"),doubleProto>=0&&this.raiseRecoverable(doubleProto,"Redefinition of __proto__ property")},pp.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},pp.isSimpleAssignTarget=function(expr){return"ParenthesizedExpression"===expr.type?this.isSimpleAssignTarget(expr.expression):"Identifier"===expr.type||"MemberExpression"===expr.type},(pp$1=Parser.prototype).parseTopLevel=function(node){var exports={};for(node.body||(node.body=[]);this.type!==types.eof;){var stmt=this.parseStatement(null,!0,exports);node.body.push(stmt)}if(this.inModule)for(var i=0,list=Object.keys(this.undefinedExports);i<list.length;i+=1){var name=list[i];this.raiseRecoverable(this.undefinedExports[name].start,"Export '"+name+"' is not defined")}return this.adaptDirectivePrologue(node.body),this.next(),node.sourceType=this.options.sourceType,this.finishNode(node,"Program")},loopLabel={kind:"loop"},switchLabel={kind:"switch"},pp$1.isLet=function(context){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;skipWhiteSpace.lastIndex=this.pos;var skip=skipWhiteSpace.exec(this.input),next=this.pos+skip[0].length,nextCh=this.input.charCodeAt(next);if(91===nextCh)return!0;if(context)return!1;if(123===nextCh)return!0;if(isIdentifierStart(nextCh,!0)){for(var pos=next+1;isIdentifierChar(this.input.charCodeAt(pos),!0);)++pos;var ident=this.input.slice(next,pos);if(!keywordRelationalOperator.test(ident))return!0}return!1},pp$1.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;skipWhiteSpace.lastIndex=this.pos;var skip=skipWhiteSpace.exec(this.input),next=this.pos+skip[0].length;return!(lineBreak.test(this.input.slice(this.pos,next))||"function"!==this.input.slice(next,next+8)||next+8!==this.input.length&&isIdentifierChar(this.input.charAt(next+8)))},pp$1.parseStatement=function(context,topLevel,exports){var kind,starttype=this.type,node=this.startNode();switch(this.isLet(context)&&(starttype=types._var,kind="let"),starttype){case types._break:case types._continue:return this.parseBreakContinueStatement(node,starttype.keyword);case types._debugger:return this.parseDebuggerStatement(node);case types._do:return this.parseDoStatement(node);case types._for:return this.parseForStatement(node);case types._function:return context&&(this.strict||"if"!==context&&"label"!==context)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(node,!1,!context);case types._class:return context&&this.unexpected(),this.parseClass(node,!0);case types._if:return this.parseIfStatement(node);case types._return:return this.parseReturnStatement(node);case types._switch:return this.parseSwitchStatement(node);case types._throw:return this.parseThrowStatement(node);case types._try:return this.parseTryStatement(node);case types._const:case types._var:return kind=kind||this.value,context&&"var"!==kind&&this.unexpected(),this.parseVarStatement(node,kind);case types._while:return this.parseWhileStatement(node);case types._with:return this.parseWithStatement(node);case types.braceL:return this.parseBlock(!0,node);case types.semi:return this.parseEmptyStatement(node);case types._export:case types._import:if(this.options.ecmaVersion>10&&starttype===types._import){skipWhiteSpace.lastIndex=this.pos;var skip=skipWhiteSpace.exec(this.input),next=this.pos+skip[0].length,nextCh=this.input.charCodeAt(next);if(40===nextCh||46===nextCh)return this.parseExpressionStatement(node,this.parseExpression())}return this.options.allowImportExportEverywhere||(topLevel||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),starttype===types._import?this.parseImport(node):this.parseExport(node,exports);default:if(this.isAsyncFunction())return context&&this.unexpected(),this.next(),this.parseFunctionStatement(node,!0,!context);var maybeName=this.value,expr=this.parseExpression();return starttype===types.name&&"Identifier"===expr.type&&this.eat(types.colon)?this.parseLabeledStatement(node,maybeName,expr,context):this.parseExpressionStatement(node,expr)}},pp$1.parseBreakContinueStatement=function(node,keyword){var isBreak="break"===keyword;this.next(),this.eat(types.semi)||this.insertSemicolon()?node.label=null:this.type!==types.name?this.unexpected():(node.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var lab=this.labels[i];if((null==node.label||lab.name===node.label.name)&&(null!=lab.kind&&(isBreak||"loop"===lab.kind)||node.label&&isBreak))break}return i===this.labels.length&&this.raise(node.start,"Unsyntactic "+keyword),this.finishNode(node,isBreak?"BreakStatement":"ContinueStatement")},pp$1.parseDebuggerStatement=function(node){return this.next(),this.semicolon(),this.finishNode(node,"DebuggerStatement")},pp$1.parseDoStatement=function(node){return this.next(),this.labels.push(loopLabel),node.body=this.parseStatement("do"),this.labels.pop(),this.expect(types._while),node.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(types.semi):this.semicolon(),this.finishNode(node,"DoWhileStatement")},pp$1.parseForStatement=function(node){this.next();var awaitAt=this.options.ecmaVersion>=9&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction)&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(loopLabel),this.enterScope(0),this.expect(types.parenL),this.type===types.semi)return awaitAt>-1&&this.unexpected(awaitAt),this.parseFor(node,null);var isLet=this.isLet();if(this.type===types._var||this.type===types._const||isLet){var init$1=this.startNode(),kind=isLet?"let":this.value;return this.next(),this.parseVar(init$1,!0,kind),this.finishNode(init$1,"VariableDeclaration"),(this.type===types._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===init$1.declarations.length?(this.options.ecmaVersion>=9&&(this.type===types._in?awaitAt>-1&&this.unexpected(awaitAt):node.await=awaitAt>-1),this.parseForIn(node,init$1)):(awaitAt>-1&&this.unexpected(awaitAt),this.parseFor(node,init$1))}var refDestructuringErrors=new DestructuringErrors,init=this.parseExpression(!0,refDestructuringErrors);return this.type===types._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===types._in?awaitAt>-1&&this.unexpected(awaitAt):node.await=awaitAt>-1),this.toAssignable(init,!1,refDestructuringErrors),this.checkLVal(init),this.parseForIn(node,init)):(this.checkExpressionErrors(refDestructuringErrors,!0),awaitAt>-1&&this.unexpected(awaitAt),this.parseFor(node,init))},pp$1.parseFunctionStatement=function(node,isAsync,declarationPosition){return this.next(),this.parseFunction(node,FUNC_STATEMENT|(declarationPosition?0:FUNC_HANGING_STATEMENT),!1,isAsync)},pp$1.parseIfStatement=function(node){return this.next(),node.test=this.parseParenExpression(),node.consequent=this.parseStatement("if"),node.alternate=this.eat(types._else)?this.parseStatement("if"):null,this.finishNode(node,"IfStatement")},pp$1.parseReturnStatement=function(node){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(types.semi)||this.insertSemicolon()?node.argument=null:(node.argument=this.parseExpression(),this.semicolon()),this.finishNode(node,"ReturnStatement")},pp$1.parseSwitchStatement=function(node){this.next(),node.discriminant=this.parseParenExpression(),node.cases=[],this.expect(types.braceL),this.labels.push(switchLabel),this.enterScope(0);for(var cur,sawDefault=!1;this.type!==types.braceR;)if(this.type===types._case||this.type===types._default){var isCase=this.type===types._case;cur&&this.finishNode(cur,"SwitchCase"),node.cases.push(cur=this.startNode()),cur.consequent=[],this.next(),isCase?cur.test=this.parseExpression():(sawDefault&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),sawDefault=!0,cur.test=null),this.expect(types.colon)}else cur||this.unexpected(),cur.consequent.push(this.parseStatement(null));return this.exitScope(),cur&&this.finishNode(cur,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(node,"SwitchStatement")},pp$1.parseThrowStatement=function(node){return this.next(),lineBreak.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),node.argument=this.parseExpression(),this.semicolon(),this.finishNode(node,"ThrowStatement")},empty=[],pp$1.parseTryStatement=function(node){if(this.next(),node.block=this.parseBlock(),node.handler=null,this.type===types._catch){var clause=this.startNode();if(this.next(),this.eat(types.parenL)){clause.param=this.parseBindingAtom();var simple2="Identifier"===clause.param.type;this.enterScope(simple2?32:0),this.checkLVal(clause.param,simple2?4:2),this.expect(types.parenR)}else this.options.ecmaVersion<10&&this.unexpected(),clause.param=null,this.enterScope(0);clause.body=this.parseBlock(!1),this.exitScope(),node.handler=this.finishNode(clause,"CatchClause")}return node.finalizer=this.eat(types._finally)?this.parseBlock():null,!node.handler&&!node.finalizer&&this.raise(node.start,"Missing catch or finally clause"),this.finishNode(node,"TryStatement")},pp$1.parseVarStatement=function(node,kind){return this.next(),this.parseVar(node,!1,kind),this.semicolon(),this.finishNode(node,"VariableDeclaration")},pp$1.parseWhileStatement=function(node){return this.next(),node.test=this.parseParenExpression(),this.labels.push(loopLabel),node.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(node,"WhileStatement")},pp$1.parseWithStatement=function(node){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),node.object=this.parseParenExpression(),node.body=this.parseStatement("with"),this.finishNode(node,"WithStatement")},pp$1.parseEmptyStatement=function(node){return this.next(),this.finishNode(node,"EmptyStatement")},pp$1.parseLabeledStatement=function(node,maybeName,expr,context){for(var i$1=0,list=this.labels;i$1<list.length;i$1+=1){list[i$1].name===maybeName&&this.raise(expr.start,"Label '"+maybeName+"' is already declared")}for(var kind=this.type.isLoop?"loop":this.type===types._switch?"switch":null,i=this.labels.length-1;i>=0;i--){var label$1=this.labels[i];if(label$1.statementStart!==node.start)break;label$1.statementStart=this.start,label$1.kind=kind}return this.labels.push({name:maybeName,kind,statementStart:this.start}),node.body=this.parseStatement(context?-1===context.indexOf("label")?context+"label":context:"label"),this.labels.pop(),node.label=expr,this.finishNode(node,"LabeledStatement")},pp$1.parseExpressionStatement=function(node,expr){return node.expression=expr,this.semicolon(),this.finishNode(node,"ExpressionStatement")},pp$1.parseBlock=function(createNewLexicalScope,node,exitStrict){for(void 0===createNewLexicalScope&&(createNewLexicalScope=!0),void 0===node&&(node=this.startNode()),node.body=[],this.expect(types.braceL),createNewLexicalScope&&this.enterScope(0);this.type!==types.braceR;){var stmt=this.parseStatement(null);node.body.push(stmt)}return exitStrict&&(this.strict=!1),this.next(),createNewLexicalScope&&this.exitScope(),this.finishNode(node,"BlockStatement")},pp$1.parseFor=function(node,init){return node.init=init,this.expect(types.semi),node.test=this.type===types.semi?null:this.parseExpression(),this.expect(types.semi),node.update=this.type===types.parenR?null:this.parseExpression(),this.expect(types.parenR),node.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(node,"ForStatement")},pp$1.parseForIn=function(node,init){var isForIn=this.type===types._in;return this.next(),"VariableDeclaration"===init.type&&null!=init.declarations[0].init&&(!isForIn||this.options.ecmaVersion<8||this.strict||"var"!==init.kind||"Identifier"!==init.declarations[0].id.type)?this.raise(init.start,(isForIn?"for-in":"for-of")+" loop variable declaration may not have an initializer"):"AssignmentPattern"===init.type&&this.raise(init.start,"Invalid left-hand side in for-loop"),node.left=init,node.right=isForIn?this.parseExpression():this.parseMaybeAssign(),this.expect(types.parenR),node.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(node,isForIn?"ForInStatement":"ForOfStatement")},pp$1.parseVar=function(node,isFor,kind){for(node.declarations=[],node.kind=kind;;){var decl=this.startNode();if(this.parseVarId(decl,kind),this.eat(types.eq)?decl.init=this.parseMaybeAssign(isFor):"const"!==kind||this.type===types._in||this.options.ecmaVersion>=6&&this.isContextual("of")?"Identifier"===decl.id.type||isFor&&(this.type===types._in||this.isContextual("of"))?decl.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),node.declarations.push(this.finishNode(decl,"VariableDeclarator")),!this.eat(types.comma))break}return node},pp$1.parseVarId=function(decl,kind){decl.id=this.parseBindingAtom(),this.checkLVal(decl.id,"var"===kind?1:2,!1)},FUNC_STATEMENT=1,FUNC_HANGING_STATEMENT=2,pp$1.parseFunction=function(node,statement,allowExpressionBody,isAsync){this.initFunction(node),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!isAsync)&&(this.type===types.star&&statement&FUNC_HANGING_STATEMENT&&this.unexpected(),node.generator=this.eat(types.star)),this.options.ecmaVersion>=8&&(node.async=!!isAsync),statement&FUNC_STATEMENT&&(node.id=4&statement&&this.type!==types.name?null:this.parseIdent(),node.id&&!(statement&FUNC_HANGING_STATEMENT)&&this.checkLVal(node.id,this.strict||node.generator||node.async?this.treatFunctionsAsVar?1:2:3));var oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(node.async,node.generator)),statement&FUNC_STATEMENT||(node.id=this.type===types.name?this.parseIdent():null),this.parseFunctionParams(node),this.parseFunctionBody(node,allowExpressionBody,!1),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.awaitIdentPos=oldAwaitIdentPos,this.finishNode(node,statement&FUNC_STATEMENT?"FunctionDeclaration":"FunctionExpression")},pp$1.parseFunctionParams=function(node){this.expect(types.parenL),node.params=this.parseBindingList(types.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},pp$1.parseClass=function(node,isStatement){this.next();var oldStrict=this.strict;this.strict=!0,this.parseClassId(node,isStatement),this.parseClassSuper(node);var classBody=this.startNode(),hadConstructor=!1;for(classBody.body=[],this.expect(types.braceL);this.type!==types.braceR;){var element=this.parseClassElement(null!==node.superClass);element&&(classBody.body.push(element),"MethodDefinition"===element.type&&"constructor"===element.kind&&(hadConstructor&&this.raise(element.start,"Duplicate constructor in the same class"),hadConstructor=!0))}return this.strict=oldStrict,this.next(),node.body=this.finishNode(classBody,"ClassBody"),this.finishNode(node,isStatement?"ClassDeclaration":"ClassExpression")},pp$1.parseClassElement=function(constructorAllowsSuper){var this$1$1=this;if(this.eat(types.semi))return null;var method=this.startNode(),tryContextual=function(k,noLineBreak){void 0===noLineBreak&&(noLineBreak=!1);var start=this$1$1.start,startLoc=this$1$1.startLoc;return!!this$1$1.eatContextual(k)&&(!(this$1$1.type===types.parenL||noLineBreak&&this$1$1.canInsertSemicolon())||(method.key&&this$1$1.unexpected(),method.computed=!1,method.key=this$1$1.startNodeAt(start,startLoc),method.key.name=k,this$1$1.finishNode(method.key,"Identifier"),!1))};method.kind="method",method.static=tryContextual("static");var isGenerator=this.eat(types.star),isAsync=!1;isGenerator||(this.options.ecmaVersion>=8&&tryContextual("async",!0)?(isAsync=!0,isGenerator=this.options.ecmaVersion>=9&&this.eat(types.star)):tryContextual("get")?method.kind="get":tryContextual("set")&&(method.kind="set")),method.key||this.parsePropertyName(method);var key=method.key,allowsDirectSuper=!1;return method.computed||method.static||!("Identifier"===key.type&&"constructor"===key.name||"Literal"===key.type&&"constructor"===key.value)?method.static&&"Identifier"===key.type&&"prototype"===key.name&&this.raise(key.start,"Classes may not have a static property named prototype"):("method"!==method.kind&&this.raise(key.start,"Constructor can't have get/set modifier"),isGenerator&&this.raise(key.start,"Constructor can't be a generator"),isAsync&&this.raise(key.start,"Constructor can't be an async method"),method.kind="constructor",allowsDirectSuper=constructorAllowsSuper),this.parseClassMethod(method,isGenerator,isAsync,allowsDirectSuper),"get"===method.kind&&0!==method.value.params.length&&this.raiseRecoverable(method.value.start,"getter should have no params"),"set"===method.kind&&1!==method.value.params.length&&this.raiseRecoverable(method.value.start,"setter should have exactly one param"),"set"===method.kind&&"RestElement"===method.value.params[0].type&&this.raiseRecoverable(method.value.params[0].start,"Setter cannot use rest params"),method},pp$1.parseClassMethod=function(method,isGenerator,isAsync,allowsDirectSuper){return method.value=this.parseMethod(isGenerator,isAsync,allowsDirectSuper),this.finishNode(method,"MethodDefinition")},pp$1.parseClassId=function(node,isStatement){this.type===types.name?(node.id=this.parseIdent(),isStatement&&this.checkLVal(node.id,2,!1)):(!0===isStatement&&this.unexpected(),node.id=null)},pp$1.parseClassSuper=function(node){node.superClass=this.eat(types._extends)?this.parseExprSubscripts():null},pp$1.parseExport=function(node,exports){if(this.next(),this.eat(types.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(node.exported=this.parseIdent(!0),this.checkExport(exports,node.exported.name,this.lastTokStart)):node.exported=null),this.expectContextual("from"),this.type!==types.string&&this.unexpected(),node.source=this.parseExprAtom(),this.semicolon(),this.finishNode(node,"ExportAllDeclaration");if(this.eat(types._default)){var isAsync;if(this.checkExport(exports,"default",this.lastTokStart),this.type===types._function||(isAsync=this.isAsyncFunction())){var fNode=this.startNode();this.next(),isAsync&&this.next(),node.declaration=this.parseFunction(fNode,4|FUNC_STATEMENT,!1,isAsync)}else if(this.type===types._class){var cNode=this.startNode();node.declaration=this.parseClass(cNode,"nullableID")}else node.declaration=this.parseMaybeAssign(),this.semicolon();return this.finishNode(node,"ExportDefaultDeclaration")}if(this.shouldParseExportStatement())node.declaration=this.parseStatement(null),"VariableDeclaration"===node.declaration.type?this.checkVariableExport(exports,node.declaration.declarations):this.checkExport(exports,node.declaration.id.name,node.declaration.id.start),node.specifiers=[],node.source=null;else{if(node.declaration=null,node.specifiers=this.parseExportSpecifiers(exports),this.eatContextual("from"))this.type!==types.string&&this.unexpected(),node.source=this.parseExprAtom();else{for(var i=0,list=node.specifiers;i<list.length;i+=1){var spec=list[i];this.checkUnreserved(spec.local),this.checkLocalExport(spec.local)}node.source=null}this.semicolon()}return this.finishNode(node,"ExportNamedDeclaration")},pp$1.checkExport=function(exports,name,pos){exports&&(has(exports,name)&&this.raiseRecoverable(pos,"Duplicate export '"+name+"'"),exports[name]=!0)},pp$1.checkPatternExport=function(exports,pat){var type=pat.type;if("Identifier"===type)this.checkExport(exports,pat.name,pat.start);else if("ObjectPattern"===type)for(var i=0,list=pat.properties;i<list.length;i+=1){var prop=list[i];this.checkPatternExport(exports,prop)}else if("ArrayPattern"===type)for(var i$1=0,list$1=pat.elements;i$1<list$1.length;i$1+=1){var elt=list$1[i$1];elt&&this.checkPatternExport(exports,elt)}else"Property"===type?this.checkPatternExport(exports,pat.value):"AssignmentPattern"===type?this.checkPatternExport(exports,pat.left):"RestElement"===type?this.checkPatternExport(exports,pat.argument):"ParenthesizedExpression"===type&&this.checkPatternExport(exports,pat.expression)},pp$1.checkVariableExport=function(exports,decls){if(exports)for(var i=0,list=decls;i<list.length;i+=1){var decl=list[i];this.checkPatternExport(exports,decl.id)}},pp$1.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},pp$1.parseExportSpecifiers=function(exports){var nodes=[],first=!0;for(this.expect(types.braceL);!this.eat(types.braceR);){if(first)first=!1;else if(this.expect(types.comma),this.afterTrailingComma(types.braceR))break;var node=this.startNode();node.local=this.parseIdent(!0),node.exported=this.eatContextual("as")?this.parseIdent(!0):node.local,this.checkExport(exports,node.exported.name,node.exported.start),nodes.push(this.finishNode(node,"ExportSpecifier"))}return nodes},pp$1.parseImport=function(node){return this.next(),this.type===types.string?(node.specifiers=empty,node.source=this.parseExprAtom()):(node.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),node.source=this.type===types.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(node,"ImportDeclaration")},pp$1.parseImportSpecifiers=function(){var nodes=[],first=!0;if(this.type===types.name){var node=this.startNode();if(node.local=this.parseIdent(),this.checkLVal(node.local,2),nodes.push(this.finishNode(node,"ImportDefaultSpecifier")),!this.eat(types.comma))return nodes}if(this.type===types.star){var node$1=this.startNode();return this.next(),this.expectContextual("as"),node$1.local=this.parseIdent(),this.checkLVal(node$1.local,2),nodes.push(this.finishNode(node$1,"ImportNamespaceSpecifier")),nodes}for(this.expect(types.braceL);!this.eat(types.braceR);){if(first)first=!1;else if(this.expect(types.comma),this.afterTrailingComma(types.braceR))break;var node$2=this.startNode();node$2.imported=this.parseIdent(!0),this.eatContextual("as")?node$2.local=this.parseIdent():(this.checkUnreserved(node$2.imported),node$2.local=node$2.imported),this.checkLVal(node$2.local,2),nodes.push(this.finishNode(node$2,"ImportSpecifier"))}return nodes},pp$1.adaptDirectivePrologue=function(statements){for(var i=0;i<statements.length&&this.isDirectiveCandidate(statements[i]);++i)statements[i].directive=statements[i].expression.raw.slice(1,-1)},pp$1.isDirectiveCandidate=function(statement){return"ExpressionStatement"===statement.type&&"Literal"===statement.expression.type&&"string"==typeof statement.expression.value&&('"'===this.input[statement.start]||"'"===this.input[statement.start])},(pp$2=Parser.prototype).toAssignable=function(node,isBinding,refDestructuringErrors){if(this.options.ecmaVersion>=6&&node)switch(node.type){case"Identifier":this.inAsync&&"await"===node.name&&this.raise(node.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"RestElement":break;case"ObjectExpression":node.type="ObjectPattern",refDestructuringErrors&&this.checkPatternErrors(refDestructuringErrors,!0);for(var i=0,list=node.properties;i<list.length;i+=1){var prop=list[i];this.toAssignable(prop,isBinding),"RestElement"===prop.type&&("ArrayPattern"===prop.argument.type||"ObjectPattern"===prop.argument.type)&&this.raise(prop.argument.start,"Unexpected token")}break;case"Property":"init"!==node.kind&&this.raise(node.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(node.value,isBinding);break;case"ArrayExpression":node.type="ArrayPattern",refDestructuringErrors&&this.checkPatternErrors(refDestructuringErrors,!0),this.toAssignableList(node.elements,isBinding);break;case"SpreadElement":node.type="RestElement",this.toAssignable(node.argument,isBinding),"AssignmentPattern"===node.argument.type&&this.raise(node.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==node.operator&&this.raise(node.left.end,"Only '=' operator can be used for specifying default value."),node.type="AssignmentPattern",delete node.operator,this.toAssignable(node.left,isBinding);case"AssignmentPattern":break;case"ParenthesizedExpression":this.toAssignable(node.expression,isBinding,refDestructuringErrors);break;case"ChainExpression":this.raiseRecoverable(node.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!isBinding)break;default:this.raise(node.start,"Assigning to rvalue")}else refDestructuringErrors&&this.checkPatternErrors(refDestructuringErrors,!0);return node},pp$2.toAssignableList=function(exprList,isBinding){for(var end=exprList.length,i=0;i<end;i++){var elt=exprList[i];elt&&this.toAssignable(elt,isBinding)}if(end){var last=exprList[end-1];6===this.options.ecmaVersion&&isBinding&&last&&"RestElement"===last.type&&"Identifier"!==last.argument.type&&this.unexpected(last.argument.start)}return exprList},pp$2.parseSpread=function(refDestructuringErrors){var node=this.startNode();return this.next(),node.argument=this.parseMaybeAssign(!1,refDestructuringErrors),this.finishNode(node,"SpreadElement")},pp$2.parseRestBinding=function(){var node=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==types.name&&this.unexpected(),node.argument=this.parseBindingAtom(),this.finishNode(node,"RestElement")},pp$2.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case types.bracketL:var node=this.startNode();return this.next(),node.elements=this.parseBindingList(types.bracketR,!0,!0),this.finishNode(node,"ArrayPattern");case types.braceL:return this.parseObj(!0)}return this.parseIdent()},pp$2.parseBindingList=function(close,allowEmpty,allowTrailingComma){for(var elts=[],first=!0;!this.eat(close);)if(first?first=!1:this.expect(types.comma),allowEmpty&&this.type===types.comma)elts.push(null);else{if(allowTrailingComma&&this.afterTrailingComma(close))break;if(this.type===types.ellipsis){var rest=this.parseRestBinding();this.parseBindingListItem(rest),elts.push(rest),this.type===types.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(close);break}var elem=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(elem),elts.push(elem)}return elts},pp$2.parseBindingListItem=function(param){return param},pp$2.parseMaybeDefault=function(startPos,startLoc,left){if(left=left||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(types.eq))return left;var node=this.startNodeAt(startPos,startLoc);return node.left=left,node.right=this.parseMaybeAssign(),this.finishNode(node,"AssignmentPattern")},pp$2.checkLVal=function(expr,bindingType,checkClashes){switch(void 0===bindingType&&(bindingType=0),expr.type){case"Identifier":2===bindingType&&"let"===expr.name&&this.raiseRecoverable(expr.start,"let is disallowed as a lexically bound name"),this.strict&&this.reservedWordsStrictBind.test(expr.name)&&this.raiseRecoverable(expr.start,(bindingType?"Binding ":"Assigning to ")+expr.name+" in strict mode"),checkClashes&&(has(checkClashes,expr.name)&&this.raiseRecoverable(expr.start,"Argument name clash"),checkClashes[expr.name]=!0),0!==bindingType&&5!==bindingType&&this.declareName(expr.name,bindingType,expr.start);break;case"ChainExpression":this.raiseRecoverable(expr.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":bindingType&&this.raiseRecoverable(expr.start,"Binding member expression");break;case"ObjectPattern":for(var i=0,list=expr.properties;i<list.length;i+=1){var prop=list[i];this.checkLVal(prop,bindingType,checkClashes)}break;case"Property":this.checkLVal(expr.value,bindingType,checkClashes);break;case"ArrayPattern":for(var i$1=0,list$1=expr.elements;i$1<list$1.length;i$1+=1){var elem=list$1[i$1];elem&&this.checkLVal(elem,bindingType,checkClashes)}break;case"AssignmentPattern":this.checkLVal(expr.left,bindingType,checkClashes);break;case"RestElement":this.checkLVal(expr.argument,bindingType,checkClashes);break;case"ParenthesizedExpression":this.checkLVal(expr.expression,bindingType,checkClashes);break;default:this.raise(expr.start,(bindingType?"Binding":"Assigning to")+" rvalue")}},(pp$3=Parser.prototype).checkPropClash=function(prop,propHash,refDestructuringErrors){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===prop.type||this.options.ecmaVersion>=6&&(prop.computed||prop.method||prop.shorthand))){var name,key=prop.key;switch(key.type){case"Identifier":name=key.name;break;case"Literal":name=String(key.value);break;default:return}var kind=prop.kind;if(this.options.ecmaVersion>=6)return void("__proto__"===name&&"init"===kind&&(propHash.proto&&(refDestructuringErrors?refDestructuringErrors.doubleProto<0&&(refDestructuringErrors.doubleProto=key.start):this.raiseRecoverable(key.start,"Redefinition of __proto__ property")),propHash.proto=!0));var other=propHash[name="$"+name];if(other)("init"===kind?this.strict&&other.init||other.get||other.set:other.init||other[kind])&&this.raiseRecoverable(key.start,"Redefinition of property");else other=propHash[name]={init:!1,get:!1,set:!1};other[kind]=!0}},pp$3.parseExpression=function(noIn,refDestructuringErrors){var startPos=this.start,startLoc=this.startLoc,expr=this.parseMaybeAssign(noIn,refDestructuringErrors);if(this.type===types.comma){var node=this.startNodeAt(startPos,startLoc);for(node.expressions=[expr];this.eat(types.comma);)node.expressions.push(this.parseMaybeAssign(noIn,refDestructuringErrors));return this.finishNode(node,"SequenceExpression")}return expr},pp$3.parseMaybeAssign=function(noIn,refDestructuringErrors,afterLeftParse){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(noIn);this.exprAllowed=!1}var ownDestructuringErrors=!1,oldParenAssign=-1,oldTrailingComma=-1;refDestructuringErrors?(oldParenAssign=refDestructuringErrors.parenthesizedAssign,oldTrailingComma=refDestructuringErrors.trailingComma,refDestructuringErrors.parenthesizedAssign=refDestructuringErrors.trailingComma=-1):(refDestructuringErrors=new DestructuringErrors,ownDestructuringErrors=!0);var startPos=this.start,startLoc=this.startLoc;(this.type===types.parenL||this.type===types.name)&&(this.potentialArrowAt=this.start);var left=this.parseMaybeConditional(noIn,refDestructuringErrors);if(afterLeftParse&&(left=afterLeftParse.call(this,left,startPos,startLoc)),this.type.isAssign){var node=this.startNodeAt(startPos,startLoc);return node.operator=this.value,node.left=this.type===types.eq?this.toAssignable(left,!1,refDestructuringErrors):left,ownDestructuringErrors||(refDestructuringErrors.parenthesizedAssign=refDestructuringErrors.trailingComma=refDestructuringErrors.doubleProto=-1),refDestructuringErrors.shorthandAssign>=node.left.start&&(refDestructuringErrors.shorthandAssign=-1),this.checkLVal(left),this.next(),node.right=this.parseMaybeAssign(noIn),this.finishNode(node,"AssignmentExpression")}return ownDestructuringErrors&&this.checkExpressionErrors(refDestructuringErrors,!0),oldParenAssign>-1&&(refDestructuringErrors.parenthesizedAssign=oldParenAssign),oldTrailingComma>-1&&(refDestructuringErrors.trailingComma=oldTrailingComma),left},pp$3.parseMaybeConditional=function(noIn,refDestructuringErrors){var startPos=this.start,startLoc=this.startLoc,expr=this.parseExprOps(noIn,refDestructuringErrors);if(this.checkExpressionErrors(refDestructuringErrors))return expr;if(this.eat(types.question)){var node=this.startNodeAt(startPos,startLoc);return node.test=expr,node.consequent=this.parseMaybeAssign(),this.expect(types.colon),node.alternate=this.parseMaybeAssign(noIn),this.finishNode(node,"ConditionalExpression")}return expr},pp$3.parseExprOps=function(noIn,refDestructuringErrors){var startPos=this.start,startLoc=this.startLoc,expr=this.parseMaybeUnary(refDestructuringErrors,!1);return this.checkExpressionErrors(refDestructuringErrors)||expr.start===startPos&&"ArrowFunctionExpression"===expr.type?expr:this.parseExprOp(expr,startPos,startLoc,-1,noIn)},pp$3.parseExprOp=function(left,leftStartPos,leftStartLoc,minPrec,noIn){var prec=this.type.binop;if(null!=prec&&(!noIn||this.type!==types._in)&&prec>minPrec){var logical=this.type===types.logicalOR||this.type===types.logicalAND,coalesce=this.type===types.coalesce;coalesce&&(prec=types.logicalAND.binop);var op=this.value;this.next();var startPos=this.start,startLoc=this.startLoc,right=this.parseExprOp(this.parseMaybeUnary(null,!1),startPos,startLoc,prec,noIn),node=this.buildBinary(leftStartPos,leftStartLoc,left,right,op,logical||coalesce);return(logical&&this.type===types.coalesce||coalesce&&(this.type===types.logicalOR||this.type===types.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(node,leftStartPos,leftStartLoc,minPrec,noIn)}return left},pp$3.buildBinary=function(startPos,startLoc,left,right,op,logical){var node=this.startNodeAt(startPos,startLoc);return node.left=left,node.operator=op,node.right=right,this.finishNode(node,logical?"LogicalExpression":"BinaryExpression")},pp$3.parseMaybeUnary=function(refDestructuringErrors,sawUnary){var expr,startPos=this.start,startLoc=this.startLoc;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))expr=this.parseAwait(),sawUnary=!0;else if(this.type.prefix){var node=this.startNode(),update=this.type===types.incDec;node.operator=this.value,node.prefix=!0,this.next(),node.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(refDestructuringErrors,!0),update?this.checkLVal(node.argument):this.strict&&"delete"===node.operator&&"Identifier"===node.argument.type?this.raiseRecoverable(node.start,"Deleting local variable in strict mode"):sawUnary=!0,expr=this.finishNode(node,update?"UpdateExpression":"UnaryExpression")}else{if(expr=this.parseExprSubscripts(refDestructuringErrors),this.checkExpressionErrors(refDestructuringErrors))return expr;for(;this.type.postfix&&!this.canInsertSemicolon();){var node$1=this.startNodeAt(startPos,startLoc);node$1.operator=this.value,node$1.prefix=!1,node$1.argument=expr,this.checkLVal(expr),this.next(),expr=this.finishNode(node$1,"UpdateExpression")}}return!sawUnary&&this.eat(types.starstar)?this.buildBinary(startPos,startLoc,expr,this.parseMaybeUnary(null,!1),"**",!1):expr},pp$3.parseExprSubscripts=function(refDestructuringErrors){var startPos=this.start,startLoc=this.startLoc,expr=this.parseExprAtom(refDestructuringErrors);if("ArrowFunctionExpression"===expr.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return expr;var result=this.parseSubscripts(expr,startPos,startLoc);return refDestructuringErrors&&"MemberExpression"===result.type&&(refDestructuringErrors.parenthesizedAssign>=result.start&&(refDestructuringErrors.parenthesizedAssign=-1),refDestructuringErrors.parenthesizedBind>=result.start&&(refDestructuringErrors.parenthesizedBind=-1)),result},pp$3.parseSubscripts=function(base2,startPos,startLoc,noCalls){for(var maybeAsyncArrow=this.options.ecmaVersion>=8&&"Identifier"===base2.type&&"async"===base2.name&&this.lastTokEnd===base2.end&&!this.canInsertSemicolon()&&base2.end-base2.start==5&&this.potentialArrowAt===base2.start,optionalChained=!1;;){var element=this.parseSubscript(base2,startPos,startLoc,noCalls,maybeAsyncArrow,optionalChained);if(element.optional&&(optionalChained=!0),element===base2||"ArrowFunctionExpression"===element.type){if(optionalChained){var chainNode=this.startNodeAt(startPos,startLoc);chainNode.expression=element,element=this.finishNode(chainNode,"ChainExpression")}return element}base2=element}},pp$3.parseSubscript=function(base2,startPos,startLoc,noCalls,maybeAsyncArrow,optionalChained){var optionalSupported=this.options.ecmaVersion>=11,optional=optionalSupported&&this.eat(types.questionDot);noCalls&&optional&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var computed=this.eat(types.bracketL);if(computed||optional&&this.type!==types.parenL&&this.type!==types.backQuote||this.eat(types.dot)){var node=this.startNodeAt(startPos,startLoc);node.object=base2,node.property=computed?this.parseExpression():this.parseIdent("never"!==this.options.allowReserved),node.computed=!!computed,computed&&this.expect(types.bracketR),optionalSupported&&(node.optional=optional),base2=this.finishNode(node,"MemberExpression")}else if(!noCalls&&this.eat(types.parenL)){var refDestructuringErrors=new DestructuringErrors,oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var exprList=this.parseExprList(types.parenR,this.options.ecmaVersion>=8,!1,refDestructuringErrors);if(maybeAsyncArrow&&!optional&&!this.canInsertSemicolon()&&this.eat(types.arrow))return this.checkPatternErrors(refDestructuringErrors,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.awaitIdentPos=oldAwaitIdentPos,this.parseArrowExpression(this.startNodeAt(startPos,startLoc),exprList,!0);this.checkExpressionErrors(refDestructuringErrors,!0),this.yieldPos=oldYieldPos||this.yieldPos,this.awaitPos=oldAwaitPos||this.awaitPos,this.awaitIdentPos=oldAwaitIdentPos||this.awaitIdentPos;var node$1=this.startNodeAt(startPos,startLoc);node$1.callee=base2,node$1.arguments=exprList,optionalSupported&&(node$1.optional=optional),base2=this.finishNode(node$1,"CallExpression")}else if(this.type===types.backQuote){(optional||optionalChained)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var node$2=this.startNodeAt(startPos,startLoc);node$2.tag=base2,node$2.quasi=this.parseTemplate({isTagged:!0}),base2=this.finishNode(node$2,"TaggedTemplateExpression")}return base2},pp$3.parseExprAtom=function(refDestructuringErrors){this.type===types.slash&&this.readRegexp();var node,canBeArrow=this.potentialArrowAt===this.start;switch(this.type){case types._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),node=this.startNode(),this.next(),this.type===types.parenL&&!this.allowDirectSuper&&this.raise(node.start,"super() call outside constructor of a subclass"),this.type!==types.dot&&this.type!==types.bracketL&&this.type!==types.parenL&&this.unexpected(),this.finishNode(node,"Super");case types._this:return node=this.startNode(),this.next(),this.finishNode(node,"ThisExpression");case types.name:var startPos=this.start,startLoc=this.startLoc,containsEsc=this.containsEsc,id=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!containsEsc&&"async"===id.name&&!this.canInsertSemicolon()&&this.eat(types._function))return this.parseFunction(this.startNodeAt(startPos,startLoc),0,!1,!0);if(canBeArrow&&!this.canInsertSemicolon()){if(this.eat(types.arrow))return this.parseArrowExpression(this.startNodeAt(startPos,startLoc),[id],!1);if(this.options.ecmaVersion>=8&&"async"===id.name&&this.type===types.name&&!containsEsc)return id=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(types.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(startPos,startLoc),[id],!0)}return id;case types.regexp:var value=this.value;return(node=this.parseLiteral(value.value)).regex={pattern:value.pattern,flags:value.flags},node;case types.num:case types.string:return this.parseLiteral(this.value);case types._null:case types._true:case types._false:return(node=this.startNode()).value=this.type===types._null?null:this.type===types._true,node.raw=this.type.keyword,this.next(),this.finishNode(node,"Literal");case types.parenL:var start=this.start,expr=this.parseParenAndDistinguishExpression(canBeArrow);return refDestructuringErrors&&(refDestructuringErrors.parenthesizedAssign<0&&!this.isSimpleAssignTarget(expr)&&(refDestructuringErrors.parenthesizedAssign=start),refDestructuringErrors.parenthesizedBind<0&&(refDestructuringErrors.parenthesizedBind=start)),expr;case types.bracketL:return node=this.startNode(),this.next(),node.elements=this.parseExprList(types.bracketR,!0,!0,refDestructuringErrors),this.finishNode(node,"ArrayExpression");case types.braceL:return this.parseObj(!1,refDestructuringErrors);case types._function:return node=this.startNode(),this.next(),this.parseFunction(node,0);case types._class:return this.parseClass(this.startNode(),!1);case types._new:return this.parseNew();case types.backQuote:return this.parseTemplate();case types._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},pp$3.parseExprImport=function(){var node=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var meta=this.parseIdent(!0);switch(this.type){case types.parenL:return this.parseDynamicImport(node);case types.dot:return node.meta=meta,this.parseImportMeta(node);default:this.unexpected()}},pp$3.parseDynamicImport=function(node){if(this.next(),node.source=this.parseMaybeAssign(),!this.eat(types.parenR)){var errorPos=this.start;this.eat(types.comma)&&this.eat(types.parenR)?this.raiseRecoverable(errorPos,"Trailing comma is not allowed in import()"):this.unexpected(errorPos)}return this.finishNode(node,"ImportExpression")},pp$3.parseImportMeta=function(node){this.next();var containsEsc=this.containsEsc;return node.property=this.parseIdent(!0),"meta"!==node.property.name&&this.raiseRecoverable(node.property.start,"The only valid meta property for import is 'import.meta'"),containsEsc&&this.raiseRecoverable(node.start,"'import.meta' must not contain escaped characters"),"module"!==this.options.sourceType&&this.raiseRecoverable(node.start,"Cannot use 'import.meta' outside a module"),this.finishNode(node,"MetaProperty")},pp$3.parseLiteral=function(value){var node=this.startNode();return node.value=value,node.raw=this.input.slice(this.start,this.end),110===node.raw.charCodeAt(node.raw.length-1)&&(node.bigint=node.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(node,"Literal")},pp$3.parseParenExpression=function(){this.expect(types.parenL);var val=this.parseExpression();return this.expect(types.parenR),val},pp$3.parseParenAndDistinguishExpression=function(canBeArrow){var val,startPos=this.start,startLoc=this.startLoc,allowTrailingComma=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var spreadStart,innerStartPos=this.start,innerStartLoc=this.startLoc,exprList=[],first=!0,lastIsComma=!1,refDestructuringErrors=new DestructuringErrors,oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==types.parenR;){if(first?first=!1:this.expect(types.comma),allowTrailingComma&&this.afterTrailingComma(types.parenR,!0)){lastIsComma=!0;break}if(this.type===types.ellipsis){spreadStart=this.start,exprList.push(this.parseParenItem(this.parseRestBinding())),this.type===types.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}exprList.push(this.parseMaybeAssign(!1,refDestructuringErrors,this.parseParenItem))}var innerEndPos=this.start,innerEndLoc=this.startLoc;if(this.expect(types.parenR),canBeArrow&&!this.canInsertSemicolon()&&this.eat(types.arrow))return this.checkPatternErrors(refDestructuringErrors,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.parseParenArrowList(startPos,startLoc,exprList);(!exprList.length||lastIsComma)&&this.unexpected(this.lastTokStart),spreadStart&&this.unexpected(spreadStart),this.checkExpressionErrors(refDestructuringErrors,!0),this.yieldPos=oldYieldPos||this.yieldPos,this.awaitPos=oldAwaitPos||this.awaitPos,exprList.length>1?((val=this.startNodeAt(innerStartPos,innerStartLoc)).expressions=exprList,this.finishNodeAt(val,"SequenceExpression",innerEndPos,innerEndLoc)):val=exprList[0]}else val=this.parseParenExpression();if(this.options.preserveParens){var par=this.startNodeAt(startPos,startLoc);return par.expression=val,this.finishNode(par,"ParenthesizedExpression")}return val},pp$3.parseParenItem=function(item){return item},pp$3.parseParenArrowList=function(startPos,startLoc,exprList){return this.parseArrowExpression(this.startNodeAt(startPos,startLoc),exprList)},empty$1=[],pp$3.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var node=this.startNode(),meta=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(types.dot)){node.meta=meta;var containsEsc=this.containsEsc;return node.property=this.parseIdent(!0),"target"!==node.property.name&&this.raiseRecoverable(node.property.start,"The only valid meta property for new is 'new.target'"),containsEsc&&this.raiseRecoverable(node.start,"'new.target' must not contain escaped characters"),this.inNonArrowFunction()||this.raiseRecoverable(node.start,"'new.target' can only be used in functions"),this.finishNode(node,"MetaProperty")}var startPos=this.start,startLoc=this.startLoc,isImport=this.type===types._import;return node.callee=this.parseSubscripts(this.parseExprAtom(),startPos,startLoc,!0),isImport&&"ImportExpression"===node.callee.type&&this.raise(startPos,"Cannot use new with import()"),this.eat(types.parenL)?node.arguments=this.parseExprList(types.parenR,this.options.ecmaVersion>=8,!1):node.arguments=empty$1,this.finishNode(node,"NewExpression")},pp$3.parseTemplateElement=function(ref2){var isTagged=ref2.isTagged,elem=this.startNode();return this.type===types.invalidTemplate?(isTagged||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),elem.value={raw:this.value,cooked:null}):elem.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),elem.tail=this.type===types.backQuote,this.finishNode(elem,"TemplateElement")},pp$3.parseTemplate=function(ref2){void 0===ref2&&(ref2={});var isTagged=ref2.isTagged;void 0===isTagged&&(isTagged=!1);var node=this.startNode();this.next(),node.expressions=[];var curElt=this.parseTemplateElement({isTagged});for(node.quasis=[curElt];!curElt.tail;)this.type===types.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(types.dollarBraceL),node.expressions.push(this.parseExpression()),this.expect(types.braceR),node.quasis.push(curElt=this.parseTemplateElement({isTagged}));return this.next(),this.finishNode(node,"TemplateLiteral")},pp$3.isAsyncProp=function(prop){return!prop.computed&&"Identifier"===prop.key.type&&"async"===prop.key.name&&(this.type===types.name||this.type===types.num||this.type===types.string||this.type===types.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===types.star)&&!lineBreak.test(this.input.slice(this.lastTokEnd,this.start))},pp$3.parseObj=function(isPattern,refDestructuringErrors){var node=this.startNode(),first=!0,propHash={};for(node.properties=[],this.next();!this.eat(types.braceR);){if(first)first=!1;else if(this.expect(types.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(types.braceR))break;var prop=this.parseProperty(isPattern,refDestructuringErrors);isPattern||this.checkPropClash(prop,propHash,refDestructuringErrors),node.properties.push(prop)}return this.finishNode(node,isPattern?"ObjectPattern":"ObjectExpression")},pp$3.parseProperty=function(isPattern,refDestructuringErrors){var isGenerator,isAsync,startPos,startLoc,prop=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(types.ellipsis))return isPattern?(prop.argument=this.parseIdent(!1),this.type===types.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(prop,"RestElement")):(this.type===types.parenL&&refDestructuringErrors&&(refDestructuringErrors.parenthesizedAssign<0&&(refDestructuringErrors.parenthesizedAssign=this.start),refDestructuringErrors.parenthesizedBind<0&&(refDestructuringErrors.parenthesizedBind=this.start)),prop.argument=this.parseMaybeAssign(!1,refDestructuringErrors),this.type===types.comma&&refDestructuringErrors&&refDestructuringErrors.trailingComma<0&&(refDestructuringErrors.trailingComma=this.start),this.finishNode(prop,"SpreadElement"));this.options.ecmaVersion>=6&&(prop.method=!1,prop.shorthand=!1,(isPattern||refDestructuringErrors)&&(startPos=this.start,startLoc=this.startLoc),isPattern||(isGenerator=this.eat(types.star)));var containsEsc=this.containsEsc;return this.parsePropertyName(prop),!isPattern&&!containsEsc&&this.options.ecmaVersion>=8&&!isGenerator&&this.isAsyncProp(prop)?(isAsync=!0,isGenerator=this.options.ecmaVersion>=9&&this.eat(types.star),this.parsePropertyName(prop,refDestructuringErrors)):isAsync=!1,this.parsePropertyValue(prop,isPattern,isGenerator,isAsync,startPos,startLoc,refDestructuringErrors,containsEsc),this.finishNode(prop,"Property")},pp$3.parsePropertyValue=function(prop,isPattern,isGenerator,isAsync,startPos,startLoc,refDestructuringErrors,containsEsc){if((isGenerator||isAsync)&&this.type===types.colon&&this.unexpected(),this.eat(types.colon))prop.value=isPattern?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,refDestructuringErrors),prop.kind="init";else if(this.options.ecmaVersion>=6&&this.type===types.parenL)isPattern&&this.unexpected(),prop.kind="init",prop.method=!0,prop.value=this.parseMethod(isGenerator,isAsync);else if(isPattern||containsEsc||!(this.options.ecmaVersion>=5)||prop.computed||"Identifier"!==prop.key.type||"get"!==prop.key.name&&"set"!==prop.key.name||this.type===types.comma||this.type===types.braceR||this.type===types.eq)this.options.ecmaVersion>=6&&!prop.computed&&"Identifier"===prop.key.type?((isGenerator||isAsync)&&this.unexpected(),this.checkUnreserved(prop.key),"await"===prop.key.name&&!this.awaitIdentPos&&(this.awaitIdentPos=startPos),prop.kind="init",isPattern?prop.value=this.parseMaybeDefault(startPos,startLoc,prop.key):this.type===types.eq&&refDestructuringErrors?(refDestructuringErrors.shorthandAssign<0&&(refDestructuringErrors.shorthandAssign=this.start),prop.value=this.parseMaybeDefault(startPos,startLoc,prop.key)):prop.value=prop.key,prop.shorthand=!0):this.unexpected();else{(isGenerator||isAsync)&&this.unexpected(),prop.kind=prop.key.name,this.parsePropertyName(prop),prop.value=this.parseMethod(!1);var paramCount="get"===prop.kind?0:1;if(prop.value.params.length!==paramCount){var start=prop.value.start;"get"===prop.kind?this.raiseRecoverable(start,"getter should have no params"):this.raiseRecoverable(start,"setter should have exactly one param")}else"set"===prop.kind&&"RestElement"===prop.value.params[0].type&&this.raiseRecoverable(prop.value.params[0].start,"Setter cannot use rest params")}},pp$3.parsePropertyName=function(prop){if(this.options.ecmaVersion>=6){if(this.eat(types.bracketL))return prop.computed=!0,prop.key=this.parseMaybeAssign(),this.expect(types.bracketR),prop.key;prop.computed=!1}return prop.key=this.type===types.num||this.type===types.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},pp$3.initFunction=function(node){node.id=null,this.options.ecmaVersion>=6&&(node.generator=node.expression=!1),this.options.ecmaVersion>=8&&(node.async=!1)},pp$3.parseMethod=function(isGenerator,isAsync,allowDirectSuper){var node=this.startNode(),oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;return this.initFunction(node),this.options.ecmaVersion>=6&&(node.generator=isGenerator),this.options.ecmaVersion>=8&&(node.async=!!isAsync),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|functionFlags(isAsync,node.generator)|(allowDirectSuper?128:0)),this.expect(types.parenL),node.params=this.parseBindingList(types.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(node,!1,!0),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.awaitIdentPos=oldAwaitIdentPos,this.finishNode(node,"FunctionExpression")},pp$3.parseArrowExpression=function(node,params,isAsync){var oldYieldPos=this.yieldPos,oldAwaitPos=this.awaitPos,oldAwaitIdentPos=this.awaitIdentPos;return this.enterScope(16|functionFlags(isAsync,!1)),this.initFunction(node),this.options.ecmaVersion>=8&&(node.async=!!isAsync),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,node.params=this.toAssignableList(params,!0),this.parseFunctionBody(node,!0,!1),this.yieldPos=oldYieldPos,this.awaitPos=oldAwaitPos,this.awaitIdentPos=oldAwaitIdentPos,this.finishNode(node,"ArrowFunctionExpression")},pp$3.parseFunctionBody=function(node,isArrowFunction,isMethod){var isExpression=isArrowFunction&&this.type!==types.braceL,oldStrict=this.strict,useStrict=!1;if(isExpression)node.body=this.parseMaybeAssign(),node.expression=!0,this.checkParams(node,!1);else{var nonSimple=this.options.ecmaVersion>=7&&!this.isSimpleParamList(node.params);(!oldStrict||nonSimple)&&((useStrict=this.strictDirective(this.end))&&nonSimple&&this.raiseRecoverable(node.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var oldLabels=this.labels;this.labels=[],useStrict&&(this.strict=!0),this.checkParams(node,!oldStrict&&!useStrict&&!isArrowFunction&&!isMethod&&this.isSimpleParamList(node.params)),this.strict&&node.id&&this.checkLVal(node.id,5),node.body=this.parseBlock(!1,void 0,useStrict&&!oldStrict),node.expression=!1,this.adaptDirectivePrologue(node.body.body),this.labels=oldLabels}this.exitScope()},pp$3.isSimpleParamList=function(params){for(var i=0,list=params;i<list.length;i+=1){if("Identifier"!==list[i].type)return!1}return!0},pp$3.checkParams=function(node,allowDuplicates){for(var nameHash={},i=0,list=node.params;i<list.length;i+=1){var param=list[i];this.checkLVal(param,1,allowDuplicates?null:nameHash)}},pp$3.parseExprList=function(close,allowTrailingComma,allowEmpty,refDestructuringErrors){for(var elts=[],first=!0;!this.eat(close);){if(first)first=!1;else if(this.expect(types.comma),allowTrailingComma&&this.afterTrailingComma(close))break;var elt=void 0;allowEmpty&&this.type===types.comma?elt=null:this.type===types.ellipsis?(elt=this.parseSpread(refDestructuringErrors),refDestructuringErrors&&this.type===types.comma&&refDestructuringErrors.trailingComma<0&&(refDestructuringErrors.trailingComma=this.start)):elt=this.parseMaybeAssign(!1,refDestructuringErrors),elts.push(elt)}return elts},pp$3.checkUnreserved=function(ref2){var start=ref2.start,end=ref2.end,name=ref2.name;(this.inGenerator&&"yield"===name&&this.raiseRecoverable(start,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===name&&this.raiseRecoverable(start,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(name)&&this.raise(start,"Unexpected keyword '"+name+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(start,end).indexOf("\\"))||(this.strict?this.reservedWordsStrict:this.reservedWords).test(name)&&(!this.inAsync&&"await"===name&&this.raiseRecoverable(start,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(start,"The keyword '"+name+"' is reserved"))},pp$3.parseIdent=function(liberal,isBinding){var node=this.startNode();return this.type===types.name?node.name=this.value:this.type.keyword?(node.name=this.type.keyword,("class"===node.name||"function"===node.name)&&(this.lastTokEnd!==this.lastTokStart+1||46!==this.input.charCodeAt(this.lastTokStart))&&this.context.pop()):this.unexpected(),this.next(!!liberal),this.finishNode(node,"Identifier"),liberal||(this.checkUnreserved(node),"await"===node.name&&!this.awaitIdentPos&&(this.awaitIdentPos=node.start)),node},pp$3.parseYield=function(noIn){this.yieldPos||(this.yieldPos=this.start);var node=this.startNode();return this.next(),this.type===types.semi||this.canInsertSemicolon()||this.type!==types.star&&!this.type.startsExpr?(node.delegate=!1,node.argument=null):(node.delegate=this.eat(types.star),node.argument=this.parseMaybeAssign(noIn)),this.finishNode(node,"YieldExpression")},pp$3.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var node=this.startNode();return this.next(),node.argument=this.parseMaybeUnary(null,!1),this.finishNode(node,"AwaitExpression")},(pp$4=Parser.prototype).raise=function(pos,message){var loc=getLineInfo(this.input,pos);message+=" ("+loc.line+":"+loc.column+")";var err=new SyntaxError(message);throw err.pos=pos,err.loc=loc,err.raisedAt=this.pos,err},pp$4.raiseRecoverable=pp$4.raise,pp$4.curPosition=function(){if(this.options.locations)return new Position(this.curLine,this.pos-this.lineStart)},pp$5=Parser.prototype,Scope=function(flags){this.flags=flags,this.var=[],this.lexical=[],this.functions=[]},pp$5.enterScope=function(flags){this.scopeStack.push(new Scope(flags))},pp$5.exitScope=function(){this.scopeStack.pop()},pp$5.treatFunctionsAsVarInScope=function(scope){return scope.flags&SCOPE_FUNCTION||!this.inModule&&1&scope.flags},pp$5.declareName=function(name,bindingType,pos){var redeclared=!1;if(2===bindingType){var scope=this.currentScope();redeclared=scope.lexical.indexOf(name)>-1||scope.functions.indexOf(name)>-1||scope.var.indexOf(name)>-1,scope.lexical.push(name),this.inModule&&1&scope.flags&&delete this.undefinedExports[name]}else if(4===bindingType){this.currentScope().lexical.push(name)}else if(3===bindingType){var scope$2=this.currentScope();redeclared=this.treatFunctionsAsVar?scope$2.lexical.indexOf(name)>-1:scope$2.lexical.indexOf(name)>-1||scope$2.var.indexOf(name)>-1,scope$2.functions.push(name)}else for(var i=this.scopeStack.length-1;i>=0;--i){var scope$3=this.scopeStack[i];if(scope$3.lexical.indexOf(name)>-1&&!(32&scope$3.flags&&scope$3.lexical[0]===name)||!this.treatFunctionsAsVarInScope(scope$3)&&scope$3.functions.indexOf(name)>-1){redeclared=!0;break}if(scope$3.var.push(name),this.inModule&&1&scope$3.flags&&delete this.undefinedExports[name],scope$3.flags&SCOPE_VAR)break}redeclared&&this.raiseRecoverable(pos,"Identifier '"+name+"' has already been declared")},pp$5.checkLocalExport=function(id){-1===this.scopeStack[0].lexical.indexOf(id.name)&&-1===this.scopeStack[0].var.indexOf(id.name)&&(this.undefinedExports[id.name]=id)},pp$5.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},pp$5.currentVarScope=function(){for(var i=this.scopeStack.length-1;;i--){var scope=this.scopeStack[i];if(scope.flags&SCOPE_VAR)return scope}},pp$5.currentThisScope=function(){for(var i=this.scopeStack.length-1;;i--){var scope=this.scopeStack[i];if(scope.flags&SCOPE_VAR&&!(16&scope.flags))return scope}},Node=function(parser,pos,loc){this.type="",this.start=pos,this.end=0,parser.options.locations&&(this.loc=new SourceLocation(parser,loc)),parser.options.directSourceFile&&(this.sourceFile=parser.options.directSourceFile),parser.options.ranges&&(this.range=[pos,0])},(pp$6=Parser.prototype).startNode=function(){return new Node(this,this.start,this.startLoc)},pp$6.startNodeAt=function(pos,loc){return new Node(this,pos,loc)},pp$6.finishNode=function(node,type){return finishNodeAt.call(this,node,type,this.lastTokEnd,this.lastTokEndLoc)},pp$6.finishNodeAt=function(node,type,pos,loc){return finishNodeAt.call(this,node,type,pos,loc)},types$1={b_stat:new(TokContext=function(token,isExpr,preserveSpace,override,generator){this.token=token,this.isExpr=!!isExpr,this.preserveSpace=!!preserveSpace,this.override=override,this.generator=!!generator})("{",!1),b_expr:new TokContext("{",!0),b_tmpl:new TokContext("${",!1),p_stat:new TokContext("(",!1),p_expr:new TokContext("(",!0),q_tmpl:new TokContext("`",!0,!0,(function(p){return p.tryReadTemplateToken()})),f_stat:new TokContext("function",!1),f_expr:new TokContext("function",!0),f_expr_gen:new TokContext("function",!0,!1,null,!0),f_gen:new TokContext("function",!1,!1,null,!0)},(pp$7=Parser.prototype).initialContext=function(){return[types$1.b_stat]},pp$7.braceIsBlock=function(prevType){var parent=this.curContext();return parent===types$1.f_expr||parent===types$1.f_stat||(prevType!==types.colon||parent!==types$1.b_stat&&parent!==types$1.b_expr?prevType===types._return||prevType===types.name&&this.exprAllowed?lineBreak.test(this.input.slice(this.lastTokEnd,this.start)):prevType===types._else||prevType===types.semi||prevType===types.eof||prevType===types.parenR||prevType===types.arrow||(prevType===types.braceL?parent===types$1.b_stat:prevType!==types._var&&prevType!==types._const&&prevType!==types.name&&!this.exprAllowed):!parent.isExpr)},pp$7.inGeneratorContext=function(){for(var i=this.context.length-1;i>=1;i--){var context=this.context[i];if("function"===context.token)return context.generator}return!1},pp$7.updateContext=function(prevType){var update,type=this.type;type.keyword&&prevType===types.dot?this.exprAllowed=!1:(update=type.updateContext)?update.call(this,prevType):this.exprAllowed=type.beforeExpr},types.parenR.updateContext=types.braceR.updateContext=function(){if(1!==this.context.length){var out=this.context.pop();out===types$1.b_stat&&"function"===this.curContext().token&&(out=this.context.pop()),this.exprAllowed=!out.isExpr}else this.exprAllowed=!0},types.braceL.updateContext=function(prevType){this.context.push(this.braceIsBlock(prevType)?types$1.b_stat:types$1.b_expr),this.exprAllowed=!0},types.dollarBraceL.updateContext=function(){this.context.push(types$1.b_tmpl),this.exprAllowed=!0},types.parenL.updateContext=function(prevType){var statementParens=prevType===types._if||prevType===types._for||prevType===types._with||prevType===types._while;this.context.push(statementParens?types$1.p_stat:types$1.p_expr),this.exprAllowed=!0},types.incDec.updateContext=function(){},types._function.updateContext=types._class.updateContext=function(prevType){!prevType.beforeExpr||prevType===types.semi||prevType===types._else||prevType===types._return&&lineBreak.test(this.input.slice(this.lastTokEnd,this.start))||(prevType===types.colon||prevType===types.braceL)&&this.curContext()===types$1.b_stat?this.context.push(types$1.f_stat):this.context.push(types$1.f_expr),this.exprAllowed=!1},types.backQuote.updateContext=function(){this.curContext()===types$1.q_tmpl?this.context.pop():this.context.push(types$1.q_tmpl),this.exprAllowed=!1},types.star.updateContext=function(prevType){if(prevType===types._function){var index=this.context.length-1;this.context[index]===types$1.f_expr?this.context[index]=types$1.f_expr_gen:this.context[index]=types$1.f_gen}this.exprAllowed=!0},types.name.updateContext=function(prevType){var allowed=!1;this.options.ecmaVersion>=6&&prevType!==types.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(allowed=!0),this.exprAllowed=allowed},unicodeBinaryProperties={9:ecma9BinaryProperties="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",10:ecma10BinaryProperties=ecma9BinaryProperties+" Extended_Pictographic",11:ecma10BinaryProperties},unicodeGeneralCategoryValues="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",unicodeScriptValues={9:ecma9ScriptValues="Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",10:ecma10ScriptValues=ecma9ScriptValues+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",11:ecma10ScriptValues+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho"},data={},buildUnicodeData(9),buildUnicodeData(10),buildUnicodeData(11),pp$8=Parser.prototype,(RegExpValidationState=function(parser){this.parser=parser,this.validFlags="gim"+(parser.options.ecmaVersion>=6?"uy":"")+(parser.options.ecmaVersion>=9?"s":""),this.unicodeProperties=data[parser.options.ecmaVersion>=11?11:parser.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]}).prototype.reset=function(start,pattern,flags){var unicode=-1!==flags.indexOf("u");this.start=0|start,this.source=pattern+"",this.flags=flags,this.switchU=unicode&&this.parser.options.ecmaVersion>=6,this.switchN=unicode&&this.parser.options.ecmaVersion>=9},RegExpValidationState.prototype.raise=function(message){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+message)},RegExpValidationState.prototype.at=function(i,forceU){void 0===forceU&&(forceU=!1);var s=this.source,l=s.length;if(i>=l)return-1;var c=s.charCodeAt(i);if(!forceU&&!this.switchU||c<=55295||c>=57344||i+1>=l)return c;var next=s.charCodeAt(i+1);return next>=56320&&next<=57343?(c<<10)+next-56613888:c},RegExpValidationState.prototype.nextIndex=function(i,forceU){void 0===forceU&&(forceU=!1);var s=this.source,l=s.length;if(i>=l)return l;var next,c=s.charCodeAt(i);return!forceU&&!this.switchU||c<=55295||c>=57344||i+1>=l||(next=s.charCodeAt(i+1))<56320||next>57343?i+1:i+2},RegExpValidationState.prototype.current=function(forceU){return void 0===forceU&&(forceU=!1),this.at(this.pos,forceU)},RegExpValidationState.prototype.lookahead=function(forceU){return void 0===forceU&&(forceU=!1),this.at(this.nextIndex(this.pos,forceU),forceU)},RegExpValidationState.prototype.advance=function(forceU){void 0===forceU&&(forceU=!1),this.pos=this.nextIndex(this.pos,forceU)},RegExpValidationState.prototype.eat=function(ch,forceU){return void 0===forceU&&(forceU=!1),this.current(forceU)===ch&&(this.advance(forceU),!0)},pp$8.validateRegExpFlags=function(state){for(var validFlags=state.validFlags,flags=state.flags,i=0;i<flags.length;i++){var flag=flags.charAt(i);-1===validFlags.indexOf(flag)&&this.raise(state.start,"Invalid regular expression flag"),flags.indexOf(flag,i+1)>-1&&this.raise(state.start,"Duplicate regular expression flag")}},pp$8.validateRegExpPattern=function(state){this.regexp_pattern(state),!state.switchN&&this.options.ecmaVersion>=9&&state.groupNames.length>0&&(state.switchN=!0,this.regexp_pattern(state))},pp$8.regexp_pattern=function(state){state.pos=0,state.lastIntValue=0,state.lastStringValue="",state.lastAssertionIsQuantifiable=!1,state.numCapturingParens=0,state.maxBackReference=0,state.groupNames.length=0,state.backReferenceNames.length=0,this.regexp_disjunction(state),state.pos!==state.source.length&&(state.eat(41)&&state.raise("Unmatched ')'"),(state.eat(93)||state.eat(125))&&state.raise("Lone quantifier brackets")),state.maxBackReference>state.numCapturingParens&&state.raise("Invalid escape");for(var i=0,list=state.backReferenceNames;i<list.length;i+=1){var name=list[i];-1===state.groupNames.indexOf(name)&&state.raise("Invalid named capture referenced")}},pp$8.regexp_disjunction=function(state){for(this.regexp_alternative(state);state.eat(124);)this.regexp_alternative(state);this.regexp_eatQuantifier(state,!0)&&state.raise("Nothing to repeat"),state.eat(123)&&state.raise("Lone quantifier brackets")},pp$8.regexp_alternative=function(state){for(;state.pos<state.source.length&&this.regexp_eatTerm(state););},pp$8.regexp_eatTerm=function(state){return this.regexp_eatAssertion(state)?(state.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(state)&&state.switchU&&state.raise("Invalid quantifier"),!0):!!(state.switchU?this.regexp_eatAtom(state):this.regexp_eatExtendedAtom(state))&&(this.regexp_eatQuantifier(state),!0)},pp$8.regexp_eatAssertion=function(state){var start=state.pos;if(state.lastAssertionIsQuantifiable=!1,state.eat(94)||state.eat(36))return!0;if(state.eat(92)){if(state.eat(66)||state.eat(98))return!0;state.pos=start}if(state.eat(40)&&state.eat(63)){var lookbehind=!1;if(this.options.ecmaVersion>=9&&(lookbehind=state.eat(60)),state.eat(61)||state.eat(33))return this.regexp_disjunction(state),state.eat(41)||state.raise("Unterminated group"),state.lastAssertionIsQuantifiable=!lookbehind,!0}return state.pos=start,!1},pp$8.regexp_eatQuantifier=function(state,noError){return void 0===noError&&(noError=!1),!!this.regexp_eatQuantifierPrefix(state,noError)&&(state.eat(63),!0)},pp$8.regexp_eatQuantifierPrefix=function(state,noError){return state.eat(42)||state.eat(43)||state.eat(63)||this.regexp_eatBracedQuantifier(state,noError)},pp$8.regexp_eatBracedQuantifier=function(state,noError){var start=state.pos;if(state.eat(123)){var min=0,max=-1;if(this.regexp_eatDecimalDigits(state)&&(min=state.lastIntValue,state.eat(44)&&this.regexp_eatDecimalDigits(state)&&(max=state.lastIntValue),state.eat(125)))return-1!==max&&max<min&&!noError&&state.raise("numbers out of order in {} quantifier"),!0;state.switchU&&!noError&&state.raise("Incomplete quantifier"),state.pos=start}return!1},pp$8.regexp_eatAtom=function(state){return this.regexp_eatPatternCharacters(state)||state.eat(46)||this.regexp_eatReverseSolidusAtomEscape(state)||this.regexp_eatCharacterClass(state)||this.regexp_eatUncapturingGroup(state)||this.regexp_eatCapturingGroup(state)},pp$8.regexp_eatReverseSolidusAtomEscape=function(state){var start=state.pos;if(state.eat(92)){if(this.regexp_eatAtomEscape(state))return!0;state.pos=start}return!1},pp$8.regexp_eatUncapturingGroup=function(state){var start=state.pos;if(state.eat(40)){if(state.eat(63)&&state.eat(58)){if(this.regexp_disjunction(state),state.eat(41))return!0;state.raise("Unterminated group")}state.pos=start}return!1},pp$8.regexp_eatCapturingGroup=function(state){if(state.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(state):63===state.current()&&state.raise("Invalid group"),this.regexp_disjunction(state),state.eat(41))return state.numCapturingParens+=1,!0;state.raise("Unterminated group")}return!1},pp$8.regexp_eatExtendedAtom=function(state){return state.eat(46)||this.regexp_eatReverseSolidusAtomEscape(state)||this.regexp_eatCharacterClass(state)||this.regexp_eatUncapturingGroup(state)||this.regexp_eatCapturingGroup(state)||this.regexp_eatInvalidBracedQuantifier(state)||this.regexp_eatExtendedPatternCharacter(state)},pp$8.regexp_eatInvalidBracedQuantifier=function(state){return this.regexp_eatBracedQuantifier(state,!0)&&state.raise("Nothing to repeat"),!1},pp$8.regexp_eatSyntaxCharacter=function(state){var ch=state.current();return!!isSyntaxCharacter(ch)&&(state.lastIntValue=ch,state.advance(),!0)},pp$8.regexp_eatPatternCharacters=function(state){for(var start=state.pos,ch=0;-1!==(ch=state.current())&&!isSyntaxCharacter(ch);)state.advance();return state.pos!==start},pp$8.regexp_eatExtendedPatternCharacter=function(state){var ch=state.current();return!(-1===ch||36===ch||ch>=40&&ch<=43||46===ch||63===ch||91===ch||94===ch||124===ch)&&(state.advance(),!0)},pp$8.regexp_groupSpecifier=function(state){if(state.eat(63)){if(this.regexp_eatGroupName(state))return-1!==state.groupNames.indexOf(state.lastStringValue)&&state.raise("Duplicate capture group name"),void state.groupNames.push(state.lastStringValue);state.raise("Invalid group")}},pp$8.regexp_eatGroupName=function(state){if(state.lastStringValue="",state.eat(60)){if(this.regexp_eatRegExpIdentifierName(state)&&state.eat(62))return!0;state.raise("Invalid capture group name")}return!1},pp$8.regexp_eatRegExpIdentifierName=function(state){if(state.lastStringValue="",this.regexp_eatRegExpIdentifierStart(state)){for(state.lastStringValue+=codePointToString(state.lastIntValue);this.regexp_eatRegExpIdentifierPart(state);)state.lastStringValue+=codePointToString(state.lastIntValue);return!0}return!1},pp$8.regexp_eatRegExpIdentifierStart=function(state){var start=state.pos,forceU=this.options.ecmaVersion>=11,ch=state.current(forceU);return state.advance(forceU),92===ch&&this.regexp_eatRegExpUnicodeEscapeSequence(state,forceU)&&(ch=state.lastIntValue),function isRegExpIdentifierStart(ch){return isIdentifierStart(ch,!0)||36===ch||95===ch}(ch)?(state.lastIntValue=ch,!0):(state.pos=start,!1)},pp$8.regexp_eatRegExpIdentifierPart=function(state){var start=state.pos,forceU=this.options.ecmaVersion>=11,ch=state.current(forceU);return state.advance(forceU),92===ch&&this.regexp_eatRegExpUnicodeEscapeSequence(state,forceU)&&(ch=state.lastIntValue),function isRegExpIdentifierPart(ch){return isIdentifierChar(ch,!0)||36===ch||95===ch||8204===ch||8205===ch}(ch)?(state.lastIntValue=ch,!0):(state.pos=start,!1)},pp$8.regexp_eatAtomEscape=function(state){return!!(this.regexp_eatBackReference(state)||this.regexp_eatCharacterClassEscape(state)||this.regexp_eatCharacterEscape(state)||state.switchN&&this.regexp_eatKGroupName(state))||(state.switchU&&(99===state.current()&&state.raise("Invalid unicode escape"),state.raise("Invalid escape")),!1)},pp$8.regexp_eatBackReference=function(state){var start=state.pos;if(this.regexp_eatDecimalEscape(state)){var n=state.lastIntValue;if(state.switchU)return n>state.maxBackReference&&(state.maxBackReference=n),!0;if(n<=state.numCapturingParens)return!0;state.pos=start}return!1},pp$8.regexp_eatKGroupName=function(state){if(state.eat(107)){if(this.regexp_eatGroupName(state))return state.backReferenceNames.push(state.lastStringValue),!0;state.raise("Invalid named reference")}return!1},pp$8.regexp_eatCharacterEscape=function(state){return this.regexp_eatControlEscape(state)||this.regexp_eatCControlLetter(state)||this.regexp_eatZero(state)||this.regexp_eatHexEscapeSequence(state)||this.regexp_eatRegExpUnicodeEscapeSequence(state,!1)||!state.switchU&&this.regexp_eatLegacyOctalEscapeSequence(state)||this.regexp_eatIdentityEscape(state)},pp$8.regexp_eatCControlLetter=function(state){var start=state.pos;if(state.eat(99)){if(this.regexp_eatControlLetter(state))return!0;state.pos=start}return!1},pp$8.regexp_eatZero=function(state){return 48===state.current()&&!isDecimalDigit(state.lookahead())&&(state.lastIntValue=0,state.advance(),!0)},pp$8.regexp_eatControlEscape=function(state){var ch=state.current();return 116===ch?(state.lastIntValue=9,state.advance(),!0):110===ch?(state.lastIntValue=10,state.advance(),!0):118===ch?(state.lastIntValue=11,state.advance(),!0):102===ch?(state.lastIntValue=12,state.advance(),!0):114===ch&&(state.lastIntValue=13,state.advance(),!0)},pp$8.regexp_eatControlLetter=function(state){var ch=state.current();return!!isControlLetter(ch)&&(state.lastIntValue=ch%32,state.advance(),!0)},pp$8.regexp_eatRegExpUnicodeEscapeSequence=function(state,forceU){void 0===forceU&&(forceU=!1);var start=state.pos,switchU=forceU||state.switchU;if(state.eat(117)){if(this.regexp_eatFixedHexDigits(state,4)){var lead=state.lastIntValue;if(switchU&&lead>=55296&&lead<=56319){var leadSurrogateEnd=state.pos;if(state.eat(92)&&state.eat(117)&&this.regexp_eatFixedHexDigits(state,4)){var trail=state.lastIntValue;if(trail>=56320&&trail<=57343)return state.lastIntValue=1024*(lead-55296)+(trail-56320)+65536,!0}state.pos=leadSurrogateEnd,state.lastIntValue=lead}return!0}if(switchU&&state.eat(123)&&this.regexp_eatHexDigits(state)&&state.eat(125)&&function isValidUnicode(ch){return ch>=0&&ch<=1114111}(state.lastIntValue))return!0;switchU&&state.raise("Invalid unicode escape"),state.pos=start}return!1},pp$8.regexp_eatIdentityEscape=function(state){if(state.switchU)return!!this.regexp_eatSyntaxCharacter(state)||!!state.eat(47)&&(state.lastIntValue=47,!0);var ch=state.current();return!(99===ch||state.switchN&&107===ch)&&(state.lastIntValue=ch,state.advance(),!0)},pp$8.regexp_eatDecimalEscape=function(state){state.lastIntValue=0;var ch=state.current();if(ch>=49&&ch<=57){do{state.lastIntValue=10*state.lastIntValue+(ch-48),state.advance()}while((ch=state.current())>=48&&ch<=57);return!0}return!1},pp$8.regexp_eatCharacterClassEscape=function(state){var ch=state.current();if(function isCharacterClassEscape(ch){return 100===ch||68===ch||115===ch||83===ch||119===ch||87===ch}(ch))return state.lastIntValue=-1,state.advance(),!0;if(state.switchU&&this.options.ecmaVersion>=9&&(80===ch||112===ch)){if(state.lastIntValue=-1,state.advance(),state.eat(123)&&this.regexp_eatUnicodePropertyValueExpression(state)&&state.eat(125))return!0;state.raise("Invalid property name")}return!1},pp$8.regexp_eatUnicodePropertyValueExpression=function(state){var start=state.pos;if(this.regexp_eatUnicodePropertyName(state)&&state.eat(61)){var name=state.lastStringValue;if(this.regexp_eatUnicodePropertyValue(state)){var value=state.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(state,name,value),!0}}if(state.pos=start,this.regexp_eatLoneUnicodePropertyNameOrValue(state)){var nameOrValue=state.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(state,nameOrValue),!0}return!1},pp$8.regexp_validateUnicodePropertyNameAndValue=function(state,name,value){has(state.unicodeProperties.nonBinary,name)||state.raise("Invalid property name"),state.unicodeProperties.nonBinary[name].test(value)||state.raise("Invalid property value")},pp$8.regexp_validateUnicodePropertyNameOrValue=function(state,nameOrValue){state.unicodeProperties.binary.test(nameOrValue)||state.raise("Invalid property name")},pp$8.regexp_eatUnicodePropertyName=function(state){var ch=0;for(state.lastStringValue="";isUnicodePropertyNameCharacter(ch=state.current());)state.lastStringValue+=codePointToString(ch),state.advance();return""!==state.lastStringValue},pp$8.regexp_eatUnicodePropertyValue=function(state){var ch=0;for(state.lastStringValue="";isUnicodePropertyValueCharacter(ch=state.current());)state.lastStringValue+=codePointToString(ch),state.advance();return""!==state.lastStringValue},pp$8.regexp_eatLoneUnicodePropertyNameOrValue=function(state){return this.regexp_eatUnicodePropertyValue(state)},pp$8.regexp_eatCharacterClass=function(state){if(state.eat(91)){if(state.eat(94),this.regexp_classRanges(state),state.eat(93))return!0;state.raise("Unterminated character class")}return!1},pp$8.regexp_classRanges=function(state){for(;this.regexp_eatClassAtom(state);){var left=state.lastIntValue;if(state.eat(45)&&this.regexp_eatClassAtom(state)){var right=state.lastIntValue;state.switchU&&(-1===left||-1===right)&&state.raise("Invalid character class"),-1!==left&&-1!==right&&left>right&&state.raise("Range out of order in character class")}}},pp$8.regexp_eatClassAtom=function(state){var start=state.pos;if(state.eat(92)){if(this.regexp_eatClassEscape(state))return!0;if(state.switchU){var ch$1=state.current();(99===ch$1||isOctalDigit(ch$1))&&state.raise("Invalid class escape"),state.raise("Invalid escape")}state.pos=start}var ch=state.current();return 93!==ch&&(state.lastIntValue=ch,state.advance(),!0)},pp$8.regexp_eatClassEscape=function(state){var start=state.pos;if(state.eat(98))return state.lastIntValue=8,!0;if(state.switchU&&state.eat(45))return state.lastIntValue=45,!0;if(!state.switchU&&state.eat(99)){if(this.regexp_eatClassControlLetter(state))return!0;state.pos=start}return this.regexp_eatCharacterClassEscape(state)||this.regexp_eatCharacterEscape(state)},pp$8.regexp_eatClassControlLetter=function(state){var ch=state.current();return!(!isDecimalDigit(ch)&&95!==ch)&&(state.lastIntValue=ch%32,state.advance(),!0)},pp$8.regexp_eatHexEscapeSequence=function(state){var start=state.pos;if(state.eat(120)){if(this.regexp_eatFixedHexDigits(state,2))return!0;state.switchU&&state.raise("Invalid escape"),state.pos=start}return!1},pp$8.regexp_eatDecimalDigits=function(state){var start=state.pos,ch=0;for(state.lastIntValue=0;isDecimalDigit(ch=state.current());)state.lastIntValue=10*state.lastIntValue+(ch-48),state.advance();return state.pos!==start},pp$8.regexp_eatHexDigits=function(state){var start=state.pos,ch=0;for(state.lastIntValue=0;isHexDigit(ch=state.current());)state.lastIntValue=16*state.lastIntValue+hexToInt(ch),state.advance();return state.pos!==start},pp$8.regexp_eatLegacyOctalEscapeSequence=function(state){if(this.regexp_eatOctalDigit(state)){var n1=state.lastIntValue;if(this.regexp_eatOctalDigit(state)){var n2=state.lastIntValue;n1<=3&&this.regexp_eatOctalDigit(state)?state.lastIntValue=64*n1+8*n2+state.lastIntValue:state.lastIntValue=8*n1+n2}else state.lastIntValue=n1;return!0}return!1},pp$8.regexp_eatOctalDigit=function(state){var ch=state.current();return isOctalDigit(ch)?(state.lastIntValue=ch-48,state.advance(),!0):(state.lastIntValue=0,!1)},pp$8.regexp_eatFixedHexDigits=function(state,length){var start=state.pos;state.lastIntValue=0;for(var i=0;i<length;++i){var ch=state.current();if(!isHexDigit(ch))return state.pos=start,!1;state.lastIntValue=16*state.lastIntValue+hexToInt(ch),state.advance()}return!0},Token=function(p){this.type=p.type,this.value=p.value,this.start=p.start,this.end=p.end,p.options.locations&&(this.loc=new SourceLocation(p,p.startLoc,p.endLoc)),p.options.ranges&&(this.range=[p.start,p.end])},(pp$9=Parser.prototype).next=function(ignoreEscapeSequenceInKeyword){!ignoreEscapeSequenceInKeyword&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Token(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},pp$9.getToken=function(){return this.next(),new Token(this)},typeof Symbol<"u"&&(pp$9[Symbol.iterator]=function(){var this$1$1=this;return{next:function(){var token=this$1$1.getToken();return{done:token.type===types.eof,value:token}}}}),pp$9.curContext=function(){return this.context[this.context.length-1]},pp$9.nextToken=function(){var curContext=this.curContext();return(!curContext||!curContext.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(types.eof):curContext.override?curContext.override(this):void this.readToken(this.fullCharCodeAtPos())},pp$9.readToken=function(code){return isIdentifierStart(code,this.options.ecmaVersion>=6)||92===code?this.readWord():this.getTokenFromCode(code)},pp$9.fullCharCodeAtPos=function(){var code=this.input.charCodeAt(this.pos);return code<=55295||code>=57344?code:(code<<10)+this.input.charCodeAt(this.pos+1)-56613888},pp$9.skipBlockComment=function(){var startLoc=this.options.onComment&&this.curPosition(),start=this.pos,end=this.input.indexOf("*/",this.pos+=2);if(-1===end&&this.raise(this.pos-2,"Unterminated comment"),this.pos=end+2,this.options.locations){lineBreakG.lastIndex=start;for(var match;(match=lineBreakG.exec(this.input))&&match.index<this.pos;)++this.curLine,this.lineStart=match.index+match[0].length}this.options.onComment&&this.options.onComment(!0,this.input.slice(start+2,end),start,this.pos,startLoc,this.curPosition())},pp$9.skipLineComment=function(startSkip){for(var start=this.pos,startLoc=this.options.onComment&&this.curPosition(),ch=this.input.charCodeAt(this.pos+=startSkip);this.pos<this.input.length&&!isNewLine(ch);)ch=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(start+startSkip,this.pos),start,this.pos,startLoc,this.curPosition())},pp$9.skipSpace=function(){loop:for(;this.pos<this.input.length;){var ch=this.input.charCodeAt(this.pos);switch(ch){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break loop}break;default:if(!(ch>8&&ch<14||ch>=5760&&nonASCIIwhitespace.test(String.fromCharCode(ch))))break loop;++this.pos}}},pp$9.finishToken=function(type,val){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var prevType=this.type;this.type=type,this.value=val,this.updateContext(prevType)},pp$9.readToken_dot=function(){var next=this.input.charCodeAt(this.pos+1);if(next>=48&&next<=57)return this.readNumber(!0);var next2=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===next&&46===next2?(this.pos+=3,this.finishToken(types.ellipsis)):(++this.pos,this.finishToken(types.dot))},pp$9.readToken_slash=function(){var next=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===next?this.finishOp(types.assign,2):this.finishOp(types.slash,1)},pp$9.readToken_mult_modulo_exp=function(code){var next=this.input.charCodeAt(this.pos+1),size=1,tokentype=42===code?types.star:types.modulo;return this.options.ecmaVersion>=7&&42===code&&42===next&&(++size,tokentype=types.starstar,next=this.input.charCodeAt(this.pos+2)),61===next?this.finishOp(types.assign,size+1):this.finishOp(tokentype,size)},pp$9.readToken_pipe_amp=function(code){var next=this.input.charCodeAt(this.pos+1);if(next===code){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(types.assign,3);return this.finishOp(124===code?types.logicalOR:types.logicalAND,2)}return 61===next?this.finishOp(types.assign,2):this.finishOp(124===code?types.bitwiseOR:types.bitwiseAND,1)},pp$9.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(types.assign,2):this.finishOp(types.bitwiseXOR,1)},pp$9.readToken_plus_min=function(code){var next=this.input.charCodeAt(this.pos+1);return next===code?45!==next||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!lineBreak.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(types.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===next?this.finishOp(types.assign,2):this.finishOp(types.plusMin,1)},pp$9.readToken_lt_gt=function(code){var next=this.input.charCodeAt(this.pos+1),size=1;return next===code?(size=62===code&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+size)?this.finishOp(types.assign,size+1):this.finishOp(types.bitShift,size)):33!==next||60!==code||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===next&&(size=2),this.finishOp(types.relational,size)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},pp$9.readToken_eq_excl=function(code){var next=this.input.charCodeAt(this.pos+1);return 61===next?this.finishOp(types.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===code&&62===next&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(types.arrow)):this.finishOp(61===code?types.eq:types.prefix,1)},pp$9.readToken_question=function(){var ecmaVersion=this.options.ecmaVersion;if(ecmaVersion>=11){var next=this.input.charCodeAt(this.pos+1);if(46===next){var next2=this.input.charCodeAt(this.pos+2);if(next2<48||next2>57)return this.finishOp(types.questionDot,2)}if(63===next){if(ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(types.assign,3);return this.finishOp(types.coalesce,2)}}return this.finishOp(types.question,1)},pp$9.getTokenFromCode=function(code){switch(code){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(types.parenL);case 41:return++this.pos,this.finishToken(types.parenR);case 59:return++this.pos,this.finishToken(types.semi);case 44:return++this.pos,this.finishToken(types.comma);case 91:return++this.pos,this.finishToken(types.bracketL);case 93:return++this.pos,this.finishToken(types.bracketR);case 123:return++this.pos,this.finishToken(types.braceL);case 125:return++this.pos,this.finishToken(types.braceR);case 58:return++this.pos,this.finishToken(types.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(types.backQuote);case 48:var next=this.input.charCodeAt(this.pos+1);if(120===next||88===next)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===next||79===next)return this.readRadixNumber(8);if(98===next||66===next)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(code);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(code);case 124:case 38:return this.readToken_pipe_amp(code);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(code);case 60:case 62:return this.readToken_lt_gt(code);case 61:case 33:return this.readToken_eq_excl(code);case 63:return this.readToken_question();case 126:return this.finishOp(types.prefix,1)}this.raise(this.pos,"Unexpected character '"+codePointToString$1(code)+"'")},pp$9.finishOp=function(type,size){var str=this.input.slice(this.pos,this.pos+size);return this.pos+=size,this.finishToken(type,str)},pp$9.readRegexp=function(){for(var escaped,inClass,start=this.pos;;){this.pos>=this.input.length&&this.raise(start,"Unterminated regular expression");var ch=this.input.charAt(this.pos);if(lineBreak.test(ch)&&this.raise(start,"Unterminated regular expression"),escaped)escaped=!1;else{if("["===ch)inClass=!0;else if("]"===ch&&inClass)inClass=!1;else if("/"===ch&&!inClass)break;escaped="\\"===ch}++this.pos}var pattern=this.input.slice(start,this.pos);++this.pos;var flagsStart=this.pos,flags=this.readWord1();this.containsEsc&&this.unexpected(flagsStart);var state=this.regexpState||(this.regexpState=new RegExpValidationState(this));state.reset(start,pattern,flags),this.validateRegExpFlags(state),this.validateRegExpPattern(state);var value=null;try{value=new RegExp(pattern,flags)}catch{}return this.finishToken(types.regexp,{pattern,flags,value})},pp$9.readInt=function(radix,len,maybeLegacyOctalNumericLiteral){for(var allowSeparators=this.options.ecmaVersion>=12&&void 0===len,isLegacyOctalNumericLiteral=maybeLegacyOctalNumericLiteral&&48===this.input.charCodeAt(this.pos),start=this.pos,total=0,lastCode=0,i=0,e=len??1/0;i<e;++i,++this.pos){var code=this.input.charCodeAt(this.pos),val=void 0;if(allowSeparators&&95===code)isLegacyOctalNumericLiteral&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===lastCode&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),lastCode=code;else{if((val=code>=97?code-97+10:code>=65?code-65+10:code>=48&&code<=57?code-48:1/0)>=radix)break;lastCode=code,total=total*radix+val}}return allowSeparators&&95===lastCode&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===start||null!=len&&this.pos-start!==len?null:total},pp$9.readRadixNumber=function(radix){var start=this.pos;this.pos+=2;var val=this.readInt(radix);return null==val&&this.raise(this.start+2,"Expected number in radix "+radix),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(val=stringToBigInt(this.input.slice(start,this.pos)),++this.pos):isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(types.num,val)},pp$9.readNumber=function(startsWithDot){var start=this.pos;!startsWithDot&&null===this.readInt(10,void 0,!0)&&this.raise(start,"Invalid number");var octal=this.pos-start>=2&&48===this.input.charCodeAt(start);octal&&this.strict&&this.raise(start,"Invalid number");var next=this.input.charCodeAt(this.pos);if(!octal&&!startsWithDot&&this.options.ecmaVersion>=11&&110===next){var val$1=stringToBigInt(this.input.slice(start,this.pos));return++this.pos,isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(types.num,val$1)}octal&&/[89]/.test(this.input.slice(start,this.pos))&&(octal=!1),46===next&&!octal&&(++this.pos,this.readInt(10),next=this.input.charCodeAt(this.pos)),(69===next||101===next)&&!octal&&((43===(next=this.input.charCodeAt(++this.pos))||45===next)&&++this.pos,null===this.readInt(10)&&this.raise(start,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var val=function stringToNumber(str,isLegacyOctalNumericLiteral){return isLegacyOctalNumericLiteral?parseInt(str,8):parseFloat(str.replace(/_/g,""))}(this.input.slice(start,this.pos),octal);return this.finishToken(types.num,val)},pp$9.readCodePoint=function(){var code;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var codePos=++this.pos;code=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,code>1114111&&this.invalidStringToken(codePos,"Code point out of bounds")}else code=this.readHexChar(4);return code},pp$9.readString=function(quote){for(var out="",chunkStart=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var ch=this.input.charCodeAt(this.pos);if(ch===quote)break;92===ch?(out+=this.input.slice(chunkStart,this.pos),out+=this.readEscapedChar(!1),chunkStart=this.pos):(isNewLine(ch,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return out+=this.input.slice(chunkStart,this.pos++),this.finishToken(types.string,out)},INVALID_TEMPLATE_ESCAPE_ERROR={},pp$9.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(err){if(err!==INVALID_TEMPLATE_ESCAPE_ERROR)throw err;this.readInvalidTemplateToken()}this.inTemplateElement=!1},pp$9.invalidStringToken=function(position,message){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw INVALID_TEMPLATE_ESCAPE_ERROR;this.raise(position,message)},pp$9.readTmplToken=function(){for(var out="",chunkStart=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var ch=this.input.charCodeAt(this.pos);if(96===ch||36===ch&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==types.template&&this.type!==types.invalidTemplate?(out+=this.input.slice(chunkStart,this.pos),this.finishToken(types.template,out)):36===ch?(this.pos+=2,this.finishToken(types.dollarBraceL)):(++this.pos,this.finishToken(types.backQuote));if(92===ch)out+=this.input.slice(chunkStart,this.pos),out+=this.readEscapedChar(!0),chunkStart=this.pos;else if(isNewLine(ch)){switch(out+=this.input.slice(chunkStart,this.pos),++this.pos,ch){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:out+="\n";break;default:out+=String.fromCharCode(ch)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),chunkStart=this.pos}else++this.pos}},pp$9.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(types.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},pp$9.readEscapedChar=function(inTemplate){var ch=this.input.charCodeAt(++this.pos);switch(++this.pos,ch){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return codePointToString$1(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(inTemplate){var codePos=this.pos-1;return this.invalidStringToken(codePos,"Invalid escape sequence in template string"),null}default:if(ch>=48&&ch<=55){var octalStr=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],octal=parseInt(octalStr,8);return octal>255&&(octalStr=octalStr.slice(0,-1),octal=parseInt(octalStr,8)),this.pos+=octalStr.length-1,ch=this.input.charCodeAt(this.pos),("0"!==octalStr||56===ch||57===ch)&&(this.strict||inTemplate)&&this.invalidStringToken(this.pos-1-octalStr.length,inTemplate?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(octal)}return isNewLine(ch)?"":String.fromCharCode(ch)}},pp$9.readHexChar=function(len){var codePos=this.pos,n=this.readInt(16,len);return null===n&&this.invalidStringToken(codePos,"Bad character escape sequence"),n},pp$9.readWord1=function(){this.containsEsc=!1;for(var word="",first=!0,chunkStart=this.pos,astral=this.options.ecmaVersion>=6;this.pos<this.input.length;){var ch=this.fullCharCodeAtPos();if(isIdentifierChar(ch,astral))this.pos+=ch<=65535?1:2;else{if(92!==ch)break;this.containsEsc=!0,word+=this.input.slice(chunkStart,this.pos);var escStart=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var esc=this.readCodePoint();(first?isIdentifierStart:isIdentifierChar)(esc,astral)||this.invalidStringToken(escStart,"Invalid Unicode escape"),word+=codePointToString$1(esc),chunkStart=this.pos}first=!1}return word+this.input.slice(chunkStart,this.pos)},pp$9.readWord=function(){var word=this.readWord1(),type=types.name;return this.keywords.test(word)&&(type=keywords$1[word]),this.finishToken(type,word)},version="7.4.1",Parser.acorn={Parser,version,defaultOptions,Position,SourceLocation,getLineInfo,Node,TokenType,tokTypes:types,keywordTypes:keywords$1,TokContext,tokContexts:types$1,isIdentifierChar,isIdentifierStart,Token,isNewLine,lineBreak,lineBreakG,nonASCIIwhitespace}}}),require_xhtml=(0,chunk_XP5HYGXS.P$)({"../../node_modules/acorn-jsx/xhtml.js"(exports,module){module.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}}}),require_acorn_jsx=(0,chunk_XP5HYGXS.P$)({"../../node_modules/acorn-jsx/index.js"(exports,module){var XHTMLEntities=require_xhtml(),hexNumber=/^[\da-fA-F]+$/,decimalNumber=/^\d+$/,acornJsxMap=new WeakMap;function getJsxTokens(acorn){acorn=acorn.Parser.acorn||acorn;let acornJsx=acornJsxMap.get(acorn);if(!acornJsx){let tt=acorn.tokTypes,TokContext3=acorn.TokContext,TokenType3=acorn.TokenType,tc_oTag=new TokContext3("<tag",!1),tc_cTag=new TokContext3("</tag",!1),tc_expr=new TokContext3("<tag>...</tag>",!0,!0),tokContexts={tc_oTag,tc_cTag,tc_expr},tokTypes={jsxName:new TokenType3("jsxName"),jsxText:new TokenType3("jsxText",{beforeExpr:!0}),jsxTagStart:new TokenType3("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new TokenType3("jsxTagEnd")};tokTypes.jsxTagStart.updateContext=function(){this.context.push(tc_expr),this.context.push(tc_oTag),this.exprAllowed=!1},tokTypes.jsxTagEnd.updateContext=function(prevType){let out=this.context.pop();out===tc_oTag&&prevType===tt.slash||out===tc_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===tc_expr):this.exprAllowed=!0},acornJsx={tokContexts,tokTypes},acornJsxMap.set(acorn,acornJsx)}return acornJsx}function getQualifiedJSXName(object){return object?"JSXIdentifier"===object.type?object.name:"JSXNamespacedName"===object.type?object.namespace.name+":"+object.name.name:"JSXMemberExpression"===object.type?getQualifiedJSXName(object.object)+"."+getQualifiedJSXName(object.property):void 0:object}module.exports=function(options){return options=options||{},function(Parser3){return function plugin(options,Parser3){let acorn=Parser3.acorn||(init_acorn(),(0,chunk_XP5HYGXS.Yp)(acorn_exports)),acornJsx=getJsxTokens(acorn),tt=acorn.tokTypes,tok=acornJsx.tokTypes,tokContexts=acorn.tokContexts,tc_oTag=acornJsx.tokContexts.tc_oTag,tc_cTag=acornJsx.tokContexts.tc_cTag,tc_expr=acornJsx.tokContexts.tc_expr,isNewLine2=acorn.isNewLine,isIdentifierStart2=acorn.isIdentifierStart,isIdentifierChar2=acorn.isIdentifierChar;return class extends Parser3{static get acornJsx(){return acornJsx}jsx_readToken(){let out="",chunkStart=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let ch=this.input.charCodeAt(this.pos);switch(ch){case 60:case 123:return this.pos===this.start?60===ch&&this.exprAllowed?(++this.pos,this.finishToken(tok.jsxTagStart)):this.getTokenFromCode(ch):(out+=this.input.slice(chunkStart,this.pos),this.finishToken(tok.jsxText,out));case 38:out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readEntity(),chunkStart=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===ch?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:isNewLine2(ch)?(out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readNewLine(!0),chunkStart=this.pos):++this.pos}}}jsx_readNewLine(normalizeCRLF){let out,ch=this.input.charCodeAt(this.pos);return++this.pos,13===ch&&10===this.input.charCodeAt(this.pos)?(++this.pos,out=normalizeCRLF?"\n":"\r\n"):out=String.fromCharCode(ch),this.options.locations&&(++this.curLine,this.lineStart=this.pos),out}jsx_readString(quote){let out="",chunkStart=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let ch=this.input.charCodeAt(this.pos);if(ch===quote)break;38===ch?(out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readEntity(),chunkStart=this.pos):isNewLine2(ch)?(out+=this.input.slice(chunkStart,this.pos),out+=this.jsx_readNewLine(!1),chunkStart=this.pos):++this.pos}return out+=this.input.slice(chunkStart,this.pos++),this.finishToken(tt.string,out)}jsx_readEntity(){let entity,str="",count=0,ch=this.input[this.pos];"&"!==ch&&this.raise(this.pos,"Entity must start with an ampersand");let startPos=++this.pos;for(;this.pos<this.input.length&&count++<10;){if(ch=this.input[this.pos++],";"===ch){"#"===str[0]?"x"===str[1]?(str=str.substr(2),hexNumber.test(str)&&(entity=String.fromCharCode(parseInt(str,16)))):(str=str.substr(1),decimalNumber.test(str)&&(entity=String.fromCharCode(parseInt(str,10)))):entity=XHTMLEntities[str];break}str+=ch}return entity||(this.pos=startPos,"&")}jsx_readWord(){let ch,start=this.pos;do{ch=this.input.charCodeAt(++this.pos)}while(isIdentifierChar2(ch)||45===ch);return this.finishToken(tok.jsxName,this.input.slice(start,this.pos))}jsx_parseIdentifier(){let node=this.startNode();return this.type===tok.jsxName?node.name=this.value:this.type.keyword?node.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(node,"JSXIdentifier")}jsx_parseNamespacedName(){let startPos=this.start,startLoc=this.startLoc,name=this.jsx_parseIdentifier();if(!options.allowNamespaces||!this.eat(tt.colon))return name;var node=this.startNodeAt(startPos,startLoc);return node.namespace=name,node.name=this.jsx_parseIdentifier(),this.finishNode(node,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===tok.jsxTagEnd)return"";let startPos=this.start,startLoc=this.startLoc,node=this.jsx_parseNamespacedName();for(this.type===tt.dot&&"JSXNamespacedName"===node.type&&!options.allowNamespacedObjects&&this.unexpected();this.eat(tt.dot);){let newNode=this.startNodeAt(startPos,startLoc);newNode.object=node,newNode.property=this.jsx_parseIdentifier(),node=this.finishNode(newNode,"JSXMemberExpression")}return node}jsx_parseAttributeValue(){switch(this.type){case tt.braceL:let node=this.jsx_parseExpressionContainer();return"JSXEmptyExpression"===node.expression.type&&this.raise(node.start,"JSX attributes must only be assigned a non-empty expression"),node;case tok.jsxTagStart:case tt.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let node=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(node,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let node=this.startNode();return this.next(),node.expression=this.type===tt.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(tt.braceR),this.finishNode(node,"JSXExpressionContainer")}jsx_parseAttribute(){let node=this.startNode();return this.eat(tt.braceL)?(this.expect(tt.ellipsis),node.argument=this.parseMaybeAssign(),this.expect(tt.braceR),this.finishNode(node,"JSXSpreadAttribute")):(node.name=this.jsx_parseNamespacedName(),node.value=this.eat(tt.eq)?this.jsx_parseAttributeValue():null,this.finishNode(node,"JSXAttribute"))}jsx_parseOpeningElementAt(startPos,startLoc){let node=this.startNodeAt(startPos,startLoc);node.attributes=[];let nodeName=this.jsx_parseElementName();for(nodeName&&(node.name=nodeName);this.type!==tt.slash&&this.type!==tok.jsxTagEnd;)node.attributes.push(this.jsx_parseAttribute());return node.selfClosing=this.eat(tt.slash),this.expect(tok.jsxTagEnd),this.finishNode(node,nodeName?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(startPos,startLoc){let node=this.startNodeAt(startPos,startLoc),nodeName=this.jsx_parseElementName();return nodeName&&(node.name=nodeName),this.expect(tok.jsxTagEnd),this.finishNode(node,nodeName?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(startPos,startLoc){let node=this.startNodeAt(startPos,startLoc),children=[],openingElement=this.jsx_parseOpeningElementAt(startPos,startLoc),closingElement=null;if(!openingElement.selfClosing){contents:for(;;)switch(this.type){case tok.jsxTagStart:if(startPos=this.start,startLoc=this.startLoc,this.next(),this.eat(tt.slash)){closingElement=this.jsx_parseClosingElementAt(startPos,startLoc);break contents}children.push(this.jsx_parseElementAt(startPos,startLoc));break;case tok.jsxText:children.push(this.parseExprAtom());break;case tt.braceL:children.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}getQualifiedJSXName(closingElement.name)!==getQualifiedJSXName(openingElement.name)&&this.raise(closingElement.start,"Expected corresponding JSX closing tag for <"+getQualifiedJSXName(openingElement.name)+">")}let fragmentOrElement=openingElement.name?"Element":"Fragment";return node["opening"+fragmentOrElement]=openingElement,node["closing"+fragmentOrElement]=closingElement,node.children=children,this.type===tt.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(node,"JSX"+fragmentOrElement)}jsx_parseText(){let node=this.parseLiteral(this.value);return node.type="JSXText",node}jsx_parseElement(){let startPos=this.start,startLoc=this.startLoc;return this.next(),this.jsx_parseElementAt(startPos,startLoc)}parseExprAtom(refShortHandDefaultPos){return this.type===tok.jsxText?this.jsx_parseText():this.type===tok.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(refShortHandDefaultPos)}readToken(code){let context=this.curContext();if(context===tc_expr)return this.jsx_readToken();if(context===tc_oTag||context===tc_cTag){if(isIdentifierStart2(code))return this.jsx_readWord();if(62==code)return++this.pos,this.finishToken(tok.jsxTagEnd);if((34===code||39===code)&&context==tc_oTag)return this.jsx_readString(code)}return 60===code&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(tok.jsxTagStart)):super.readToken(code)}updateContext(prevType){if(this.type==tt.braceL){var curContext=this.curContext();curContext==tc_oTag?this.context.push(tokContexts.b_expr):curContext==tc_expr?this.context.push(tokContexts.b_tmpl):super.updateContext(prevType),this.exprAllowed=!0}else{if(this.type!==tt.slash||prevType!==tok.jsxTagStart)return super.updateContext(prevType);this.context.length-=2,this.context.push(tc_cTag),this.exprAllowed=!1}}}}({allowNamespaces:!1!==options.allowNamespaces,allowNamespacedObjects:!!options.allowNamespacedObjects},Parser3)}},Object.defineProperty(module.exports,"tokTypes",{get:function(){return getJsxTokens((init_acorn(),(0,chunk_XP5HYGXS.Yp)(acorn_exports))).tokTypes},configurable:!0,enumerable:!0})}}),require_html_tags=(0,chunk_XP5HYGXS.P$)({"../../node_modules/html-tags/html-tags.json"(exports,module){module.exports=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","search","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"]}}),require_html_tags2=(0,chunk_XP5HYGXS.P$)({"../../node_modules/html-tags/index.js"(exports,module){module.exports=require_html_tags()}});(0,chunk_XP5HYGXS.VA)({},{argTypesEnhancers:()=>argTypesEnhancers,parameters:()=>parameters});var import_escodegen=(0,chunk_XP5HYGXS.f1)(require_escodegen());var BASIC_OPTIONS={format:{indent:{style:" "},semicolons:!1}},COMPACT_OPTIONS={...BASIC_OPTIONS,format:{newline:""}},PRETTY_OPTIONS={...BASIC_OPTIONS};function generateCode(ast,compact=!1){return(0,import_escodegen.generate)(ast,compact?COMPACT_OPTIONS:PRETTY_OPTIONS)}function generateObjectCode(ast,compact=!1){return compact?function generateCompactObjectCode(ast){let result=generateCode(ast,!0);return result.endsWith(" }")||(result=`${result.slice(0,-1)} }`),result}(ast):generateCode(ast)}function generateArrayCode(ast,compact=!1){return compact?function generateCompactArrayCode(ast){let result=generateCode(ast,!0);return result.startsWith("[ ")&&(result=result.replace("[ ","[")),result}(ast):function generateMultilineArrayCode(ast){let result=generateCode(ast);return result.endsWith(" }]")&&(result=function dedent(templ){for(var values=[],_i=1;_i<arguments.length;_i++)values[_i-1]=arguments[_i];var strings=Array.from("string"==typeof templ?[templ]:templ);strings[strings.length-1]=strings[strings.length-1].replace(/\r?\n([\t ]*)$/,"");var indentLengths=strings.reduce((function(arr,str){var matches=str.match(/\n([\t ]+|(?!\s).)/g);return matches?arr.concat(matches.map((function(match){var _a,_b;return null!==(_b=null===(_a=match.match(/[\t ]/g))||void 0===_a?void 0:_a.length)&&void 0!==_b?_b:0}))):arr}),[]);if(indentLengths.length){var pattern_1=new RegExp("\n[\t ]{"+Math.min.apply(Math,indentLengths)+"}","g");strings=strings.map((function(str){return str.replace(pattern_1,"\n")}))}strings[0]=strings[0].replace(/^\r?\n/,"");var string=strings[0];return values.forEach((function(value,i){var endentations=string.match(/(?:^|\n)( *)$/),endentation=endentations?endentations[1]:"",indentedValue=value;"string"==typeof value&&value.includes("\n")&&(indentedValue=String(value).split("\n").map((function(str,i2){return 0===i2?str:""+endentation+str})).join("\n")),string+=indentedValue+strings[i+1]})),string}(result)),result}(ast)}init_acorn();var import_acorn_jsx=(0,chunk_XP5HYGXS.f1)(require_acorn_jsx());function simple(node,visitors,baseVisitor,state,override){baseVisitor||(baseVisitor=base),function c(node2,st,override2){var type=override2||node2.type,found=visitors[type];baseVisitor[type](node2,st,c),found&&found(node2,st)}(node,state,override)}function skipThrough(node,st,c){c(node,st)}function ignore(_node,_st,_c){}var base={};base.Program=base.BlockStatement=function(node,st,c){for(var i=0,list=node.body;i<list.length;i+=1){c(list[i],st,"Statement")}},base.Statement=skipThrough,base.EmptyStatement=ignore,base.ExpressionStatement=base.ParenthesizedExpression=base.ChainExpression=function(node,st,c){return c(node.expression,st,"Expression")},base.IfStatement=function(node,st,c){c(node.test,st,"Expression"),c(node.consequent,st,"Statement"),node.alternate&&c(node.alternate,st,"Statement")},base.LabeledStatement=function(node,st,c){return c(node.body,st,"Statement")},base.BreakStatement=base.ContinueStatement=ignore,base.WithStatement=function(node,st,c){c(node.object,st,"Expression"),c(node.body,st,"Statement")},base.SwitchStatement=function(node,st,c){c(node.discriminant,st,"Expression");for(var i$1=0,list$1=node.cases;i$1<list$1.length;i$1+=1){var cs=list$1[i$1];cs.test&&c(cs.test,st,"Expression");for(var i=0,list=cs.consequent;i<list.length;i+=1){c(list[i],st,"Statement")}}},base.SwitchCase=function(node,st,c){node.test&&c(node.test,st,"Expression");for(var i=0,list=node.consequent;i<list.length;i+=1){c(list[i],st,"Statement")}},base.ReturnStatement=base.YieldExpression=base.AwaitExpression=function(node,st,c){node.argument&&c(node.argument,st,"Expression")},base.ThrowStatement=base.SpreadElement=function(node,st,c){return c(node.argument,st,"Expression")},base.TryStatement=function(node,st,c){c(node.block,st,"Statement"),node.handler&&c(node.handler,st),node.finalizer&&c(node.finalizer,st,"Statement")},base.CatchClause=function(node,st,c){node.param&&c(node.param,st,"Pattern"),c(node.body,st,"Statement")},base.WhileStatement=base.DoWhileStatement=function(node,st,c){c(node.test,st,"Expression"),c(node.body,st,"Statement")},base.ForStatement=function(node,st,c){node.init&&c(node.init,st,"ForInit"),node.test&&c(node.test,st,"Expression"),node.update&&c(node.update,st,"Expression"),c(node.body,st,"Statement")},base.ForInStatement=base.ForOfStatement=function(node,st,c){c(node.left,st,"ForInit"),c(node.right,st,"Expression"),c(node.body,st,"Statement")},base.ForInit=function(node,st,c){"VariableDeclaration"===node.type?c(node,st):c(node,st,"Expression")},base.DebuggerStatement=ignore,base.FunctionDeclaration=function(node,st,c){return c(node,st,"Function")},base.VariableDeclaration=function(node,st,c){for(var i=0,list=node.declarations;i<list.length;i+=1){c(list[i],st)}},base.VariableDeclarator=function(node,st,c){c(node.id,st,"Pattern"),node.init&&c(node.init,st,"Expression")},base.Function=function(node,st,c){node.id&&c(node.id,st,"Pattern");for(var i=0,list=node.params;i<list.length;i+=1){c(list[i],st,"Pattern")}c(node.body,st,node.expression?"Expression":"Statement")},base.Pattern=function(node,st,c){"Identifier"===node.type?c(node,st,"VariablePattern"):"MemberExpression"===node.type?c(node,st,"MemberPattern"):c(node,st)},base.VariablePattern=ignore,base.MemberPattern=skipThrough,base.RestElement=function(node,st,c){return c(node.argument,st,"Pattern")},base.ArrayPattern=function(node,st,c){for(var i=0,list=node.elements;i<list.length;i+=1){var elt=list[i];elt&&c(elt,st,"Pattern")}},base.ObjectPattern=function(node,st,c){for(var i=0,list=node.properties;i<list.length;i+=1){var prop=list[i];"Property"===prop.type?(prop.computed&&c(prop.key,st,"Expression"),c(prop.value,st,"Pattern")):"RestElement"===prop.type&&c(prop.argument,st,"Pattern")}},base.Expression=skipThrough,base.ThisExpression=base.Super=base.MetaProperty=ignore,base.ArrayExpression=function(node,st,c){for(var i=0,list=node.elements;i<list.length;i+=1){var elt=list[i];elt&&c(elt,st,"Expression")}},base.ObjectExpression=function(node,st,c){for(var i=0,list=node.properties;i<list.length;i+=1){c(list[i],st)}},base.FunctionExpression=base.ArrowFunctionExpression=base.FunctionDeclaration,base.SequenceExpression=function(node,st,c){for(var i=0,list=node.expressions;i<list.length;i+=1){c(list[i],st,"Expression")}},base.TemplateLiteral=function(node,st,c){for(var i=0,list=node.quasis;i<list.length;i+=1){c(list[i],st)}for(var i$1=0,list$1=node.expressions;i$1<list$1.length;i$1+=1){c(list$1[i$1],st,"Expression")}},base.TemplateElement=ignore,base.UnaryExpression=base.UpdateExpression=function(node,st,c){c(node.argument,st,"Expression")},base.BinaryExpression=base.LogicalExpression=function(node,st,c){c(node.left,st,"Expression"),c(node.right,st,"Expression")},base.AssignmentExpression=base.AssignmentPattern=function(node,st,c){c(node.left,st,"Pattern"),c(node.right,st,"Expression")},base.ConditionalExpression=function(node,st,c){c(node.test,st,"Expression"),c(node.consequent,st,"Expression"),c(node.alternate,st,"Expression")},base.NewExpression=base.CallExpression=function(node,st,c){if(c(node.callee,st,"Expression"),node.arguments)for(var i=0,list=node.arguments;i<list.length;i+=1){c(list[i],st,"Expression")}},base.MemberExpression=function(node,st,c){c(node.object,st,"Expression"),node.computed&&c(node.property,st,"Expression")},base.ExportNamedDeclaration=base.ExportDefaultDeclaration=function(node,st,c){node.declaration&&c(node.declaration,st,"ExportNamedDeclaration"===node.type||node.declaration.id?"Statement":"Expression"),node.source&&c(node.source,st,"Expression")},base.ExportAllDeclaration=function(node,st,c){node.exported&&c(node.exported,st),c(node.source,st,"Expression")},base.ImportDeclaration=function(node,st,c){for(var i=0,list=node.specifiers;i<list.length;i+=1){c(list[i],st)}c(node.source,st,"Expression")},base.ImportExpression=function(node,st,c){c(node.source,st,"Expression")},base.ImportSpecifier=base.ImportDefaultSpecifier=base.ImportNamespaceSpecifier=base.Identifier=base.Literal=ignore,base.TaggedTemplateExpression=function(node,st,c){c(node.tag,st,"Expression"),c(node.quasi,st,"Expression")},base.ClassDeclaration=base.ClassExpression=function(node,st,c){return c(node,st,"Class")},base.Class=function(node,st,c){node.id&&c(node.id,st,"Pattern"),node.superClass&&c(node.superClass,st,"Expression"),c(node.body,st)},base.ClassBody=function(node,st,c){for(var i=0,list=node.body;i<list.length;i+=1){c(list[i],st)}},base.MethodDefinition=base.Property=function(node,st,c){node.computed&&c(node.key,st,"Expression"),c(node.value,st,"Expression")};var ACORN_WALK_VISITORS={...base,JSXElement:()=>{}},acornParser=Parser.extend((0,import_acorn_jsx.default)());function extractIdentifierName(identifierNode){return null!=identifierNode?identifierNode.name:null}function filterAncestors(ancestors){return ancestors.filter((x=>"ObjectExpression"===x.type||"ArrayExpression"===x.type))}function calculateNodeDepth(node){let depths=[];return function ancestor(node,visitors,baseVisitor,state,override){var ancestors=[];baseVisitor||(baseVisitor=base),function c(node2,st,override2){var type=override2||node2.type,found=visitors[type],isNew=node2!==ancestors[ancestors.length-1];isNew&&ancestors.push(node2),baseVisitor[type](node2,st,c),found&&found(node2,st||ancestors,ancestors),isNew&&ancestors.pop()}(node,state,override)}(node,{ObjectExpression(_,ancestors){depths.push(filterAncestors(ancestors).length)},ArrayExpression(_,ancestors){depths.push(filterAncestors(ancestors).length)}},ACORN_WALK_VISITORS),Math.max(...depths)}function parseObject(objectNode){return{inferredType:{type:"Object",depth:calculateNodeDepth(objectNode)},ast:objectNode}}function parseExpression(expression){switch(expression.type){case"Identifier":return function parseIdentifier(identifierNode){return{inferredType:{type:"Identifier",identifier:extractIdentifierName(identifierNode)},ast:identifierNode}}(expression);case"Literal":return function parseLiteral(literalNode){return{inferredType:{type:"Literal"},ast:literalNode}}(expression);case"FunctionExpression":case"ArrowFunctionExpression":return function parseFunction(funcNode){let innerJsxElementNode;simple(funcNode.body,{JSXElement(node){innerJsxElementNode=node}},ACORN_WALK_VISITORS);let inferredType={type:null!=innerJsxElementNode?"Element":"Function",params:funcNode.params,hasParams:0!==funcNode.params.length},identifierName=extractIdentifierName(funcNode.id);return null!=identifierName&&(inferredType.identifier=identifierName),{inferredType,ast:funcNode}}(expression);case"ClassExpression":return function parseClass(classNode){let innerJsxElementNode;return simple(classNode.body,{JSXElement(node){innerJsxElementNode=node}},ACORN_WALK_VISITORS),{inferredType:{type:null!=innerJsxElementNode?"Element":"Class",identifier:extractIdentifierName(classNode.id)},ast:classNode}}(expression);case"JSXElement":return function parseJsxElement(jsxElementNode){let inferredType={type:"Element"},identifierName=extractIdentifierName(jsxElementNode.openingElement.name);return null!=identifierName&&(inferredType.identifier=identifierName),{inferredType,ast:jsxElementNode}}(expression);case"CallExpression":return function parseCall(callNode){return"shape"===extractIdentifierName("MemberExpression"===callNode.callee.type?callNode.callee.property:callNode.callee)?parseObject(callNode.arguments[0]):null}(expression);case"ObjectExpression":return parseObject(expression);case"ArrayExpression":return function parseArray(arrayNode){return{inferredType:{type:"Array",depth:calculateNodeDepth(arrayNode)},ast:arrayNode}}(expression);default:return null}}function parse4(value){let ast=acornParser.parse(`(${value})`,{ecmaVersion:2020}),parsingResult={inferredType:{type:"Unknown"},ast};if(null!=ast.body[0]){let rootNode=ast.body[0];switch(rootNode.type){case"ExpressionStatement":{let expressionResult=parseExpression(rootNode.expression);null!=expressionResult&&(parsingResult=expressionResult);break}}}return parsingResult}function inspectValue(value){try{return{...parse4(value)}}catch{}return{inferredType:{type:"Unknown"}}}var import_html_tags=(0,chunk_XP5HYGXS.f1)(require_html_tags2());function isHtmlTag(tagName){return import_html_tags.default.includes(tagName.toLowerCase())}function generateArray({inferredType,ast}){let{depth}=inferredType;if(depth<=2){let compactArray=generateArrayCode(ast,!0);if(!(0,docs_tools.Sy)(compactArray))return(0,docs_tools.Ux)(compactArray)}return(0,docs_tools.Ux)("array",generateArrayCode(ast))}function generateObject({inferredType,ast}){let{depth}=inferredType;if(1===depth){let compactObject=generateObjectCode(ast,!0);if(!(0,docs_tools.Sy)(compactObject))return(0,docs_tools.Ux)(compactObject)}return(0,docs_tools.Ux)("object",generateObjectCode(ast))}function getPrettyFuncIdentifier(identifier,hasArguments){return hasArguments?`${identifier}( ... )`:`${identifier}()`}function getPrettyElementIdentifier(identifier){return`<${identifier} />`}function getPrettyIdentifier(inferredType){let{type,identifier}=inferredType;switch(type){case"Function":return getPrettyFuncIdentifier(identifier,inferredType.hasParams);case"Element":return getPrettyElementIdentifier(identifier);default:return identifier}}function createDefaultValue(defaultValue){try{let inspectionResult=inspectValue(defaultValue);switch(inspectionResult.inferredType.type){case"Object":return generateObject(inspectionResult);case"Function":return function generateFunc({inferredType,ast}){let{identifier}=inferredType;if(null!=identifier)return(0,docs_tools.Ux)(getPrettyIdentifier(inferredType),generateCode(ast));let prettyCaption=generateCode(ast,!0);return(0,docs_tools.Sy)(prettyCaption)?(0,docs_tools.Ux)("func",generateCode(ast)):(0,docs_tools.Ux)(prettyCaption)}(inspectionResult);case"Element":return function generateElement(defaultValue,inspectionResult){let{inferredType}=inspectionResult,{identifier}=inferredType;if(null!=identifier&&!isHtmlTag(identifier)){let prettyIdentifier=getPrettyIdentifier(inferredType);return(0,docs_tools.Ux)(prettyIdentifier,defaultValue)}return(0,docs_tools.Sy)(defaultValue)?(0,docs_tools.Ux)("element",defaultValue):(0,docs_tools.Ux)(defaultValue)}(defaultValue,inspectionResult);case"Array":return generateArray(inspectionResult);default:return null}}catch(e){console.error(e)}return null}function isFunction(value){return"function"==typeof value}var reactElementToJSXString=chunk_6BNVLEVL.HA;function isReactElement(element){return null!=element.$$typeof}function extractFunctionName(func,propName){let{name}=func;return""!==name&&"anonymous"!==name&&name!==propName?name:null}function generateReactObject(rawDefaultProp){let{type}=rawDefaultProp,{displayName}=type,jsx2=reactElementToJSXString(rawDefaultProp,{});if(null!=displayName){let prettyIdentifier=getPrettyElementIdentifier(displayName);return(0,docs_tools.Ux)(prettyIdentifier,jsx2)}if(function isString(value){return"string"==typeof value||value instanceof String}(type)&&isHtmlTag(type)){let jsxSummary=reactElementToJSXString(rawDefaultProp,{tabStop:0}).replace(/\r?\n|\r/g,"");if(!(0,docs_tools.Sy)(jsxSummary))return(0,docs_tools.Ux)(jsxSummary)}return(0,docs_tools.Ux)("element",jsx2)}var DEFAULT_TYPE_RESOLVERS={string:rawDefaultProp=>(0,docs_tools.Ux)(JSON.stringify(rawDefaultProp)),object:rawDefaultProp=>{if(isReactElement(rawDefaultProp)&&null!=rawDefaultProp.type)return generateReactObject(rawDefaultProp);if(function isPlainObject(object){if("object"!=typeof object||null==object)return!1;if(null===Object.getPrototypeOf(object))return!0;if("[object Object]"!==Object.prototype.toString.call(object)){let tag=object[Symbol.toStringTag];return!(null==tag||!Object.getOwnPropertyDescriptor(object,Symbol.toStringTag)?.writable)&&object.toString()===`[object ${tag}]`}let proto=object;for(;null!==Object.getPrototypeOf(proto);)proto=Object.getPrototypeOf(proto);return Object.getPrototypeOf(object)===proto}(rawDefaultProp)){return generateObject(inspectValue(JSON.stringify(rawDefaultProp)))}if(Array.isArray(rawDefaultProp)){return generateArray(inspectValue(JSON.stringify(rawDefaultProp)))}return(0,docs_tools.Ux)("object")},function:(rawDefaultProp,propDef)=>{let inspectionResult,isElement=!1;if(isFunction(rawDefaultProp.render))isElement=!0;else if(null!=rawDefaultProp.prototype&&isFunction(rawDefaultProp.prototype.render))isElement=!0;else{let innerElement;try{inspectionResult=inspectValue(rawDefaultProp.toString());let{hasParams,params}=inspectionResult.inferredType;hasParams?1===params.length&&"ObjectPattern"===params[0].type&&(innerElement=rawDefaultProp({})):innerElement=rawDefaultProp(),null!=innerElement&&isReactElement(innerElement)&&(isElement=!0)}catch{}}let funcName=extractFunctionName(rawDefaultProp,propDef.name);if(null!=funcName){if(isElement)return(0,docs_tools.Ux)(getPrettyElementIdentifier(funcName));null!=inspectionResult&&(inspectionResult=inspectValue(rawDefaultProp.toString()));let{hasParams}=inspectionResult.inferredType;return(0,docs_tools.Ux)(getPrettyFuncIdentifier(funcName,hasParams))}return(0,docs_tools.Ux)(isElement?"element":"func")},default:rawDefaultProp=>(0,docs_tools.Ux)(rawDefaultProp.toString())};function createDefaultValueFromRawDefaultProp(rawDefaultProp,propDef,typeResolvers=DEFAULT_TYPE_RESOLVERS){try{switch(typeof rawDefaultProp){case"string":return typeResolvers.string(rawDefaultProp,propDef);case"object":return typeResolvers.object(rawDefaultProp,propDef);case"function":return typeResolvers.function(rawDefaultProp,propDef);default:return typeResolvers.default(rawDefaultProp,propDef)}}catch(e){console.error(e)}return null}function generateFuncSignature(params,returns){let hasParams=null!=params,hasReturns=null!=returns;if(!hasParams&&!hasReturns)return"";let funcParts=[];if(hasParams){let funcParams=params.map((x=>{let prettyName=x.getPrettyName(),typeName=x.getTypeName();return null!=typeName?`${prettyName}: ${typeName}`:prettyName}));funcParts.push(`(${funcParams.join(", ")})`)}else funcParts.push("()");return hasReturns&&funcParts.push(`=> ${returns.getTypeName()}`),funcParts.join(" ")}function generateShortFuncSignature(params,returns){let hasParams=null!=params,hasReturns=null!=returns;if(!hasParams&&!hasReturns)return"";let funcParts=[];return hasParams?funcParts.push("( ... )"):funcParts.push("()"),hasReturns&&funcParts.push(`=> ${returns.getTypeName()}`),funcParts.join(" ")}function createTypeDef({name,short,compact,full,inferredType}){return{name,short,compact,full:full??short,inferredType}}function cleanPropTypes(value){return value.replace(/PropTypes./g,"").replace(/.isRequired/g,"")}function splitIntoLines(value){return value.split(/\r?\n/)}function prettyObject(ast,compact=!1){return cleanPropTypes(generateObjectCode(ast,compact))}function prettyArray(ast,compact=!1){return cleanPropTypes(generateCode(ast,compact))}function generateTypeFromString(value,originalTypeName){let short,compact,full,{inferredType,ast}=inspectValue(value),{type}=inferredType;switch(type){case"Identifier":case"Literal":short=value,compact=value;break;case"Object":{let{depth}=inferredType;short="object",compact=1===depth?prettyObject(ast,!0):null,full=prettyObject(ast);break}case"Element":{let{identifier}=inferredType;short=null==identifier||isHtmlTag(identifier)?"element":identifier,compact=1===splitIntoLines(value).length?value:null,full=value;break}case"Array":{let{depth}=inferredType;short="array",compact=depth<=2?prettyArray(ast,!0):null,full=prettyArray(ast);break}default:short=function getCaptionForInspectionType(type){switch(type){case"Object":return"object";case"Array":return"array";case"Class":return"class";case"Function":return"func";case"Element":return"element";default:return"custom"}}(type),compact=1===splitIntoLines(value).length?value:null,full=value}return createTypeDef({name:originalTypeName,short,compact,full,inferredType:type})}function objectOf(of){return`objectOf(${of})`}function generateEnum(type){if(Array.isArray(type.value)){let values=type.value.reduce(((acc,v)=>{let{short,compact,full}=function generateEnumValue({value,computed}){return computed?generateTypeFromString(value,"enumvalue"):createTypeDef({name:"enumvalue",short:value,compact:value})}(v);return acc.short.push(short),acc.compact.push(compact),acc.full.push(full),acc}),{short:[],compact:[],full:[]});return createTypeDef({name:"enum",short:values.short.join(" | "),compact:values.compact.every((x=>null!=x))?values.compact.join(" | "):null,full:values.full.join(" | ")})}return createTypeDef({name:"enum",short:type.value,compact:type.value})}function braceAfter(of){return`${of}[]`}function braceAround(of){return`[${of}]`}function createArrayOfObjectTypeDef(short,compact,full){return createTypeDef({name:"arrayOf",short:braceAfter(short),compact:null!=compact?braceAround(compact):null,full:full&&braceAround(full)})}function generateType(type,extractedProp){try{switch(type.name){case"custom":return function generateCustom({raw}){return null!=raw?generateTypeFromString(raw,"custom"):createTypeDef({name:"custom",short:"custom",compact:"custom"})}(type);case"func":return function generateFunc2(extractedProp){let{jsDocTags}=extractedProp;return null==jsDocTags||null==jsDocTags.params&&null==jsDocTags.returns?createTypeDef({name:"func",short:"func",compact:"func"}):createTypeDef({name:"func",short:generateShortFuncSignature(jsDocTags.params,jsDocTags.returns),compact:null,full:generateFuncSignature(jsDocTags.params,jsDocTags.returns)})}(extractedProp);case"shape":return function generateShape(type,extractedProp){let fields=Object.keys(type.value).map((key=>`${key}: ${generateType(type.value[key],extractedProp).full}`)).join(", "),{inferredType,ast}=inspectValue(`{ ${fields} }`),{depth}=inferredType;return createTypeDef({name:"shape",short:"object",compact:1===depth&&ast?prettyObject(ast,!0):null,full:ast?prettyObject(ast):null})}(type,extractedProp);case"instanceOf":return createTypeDef({name:"instanceOf",short:type.value,compact:type.value});case"objectOf":return function generateObjectOf(type,extractedProp){let{short,compact,full}=generateType(type.value,extractedProp);return createTypeDef({name:"objectOf",short:objectOf(short),compact:null!=compact?objectOf(compact):null,full:full&&objectOf(full)})}(type,extractedProp);case"union":return function generateUnion(type,extractedProp){if(Array.isArray(type.value)){let values=type.value.reduce(((acc,v)=>{let{short,compact,full}=generateType(v,extractedProp);return acc.short.push(short),acc.compact.push(compact),acc.full.push(full),acc}),{short:[],compact:[],full:[]});return createTypeDef({name:"union",short:values.short.join(" | "),compact:values.compact.every((x=>null!=x))?values.compact.join(" | "):null,full:values.full.join(" | ")})}return createTypeDef({name:"union",short:type.value,compact:null})}(type,extractedProp);case"enum":return generateEnum(type);case"arrayOf":return function generateArray2(type,extractedProp){let{name,short,compact,full,inferredType}=generateType(type.value,extractedProp);if("custom"===name){if("Object"===inferredType)return createArrayOfObjectTypeDef(short,compact,full)}else if("shape"===name)return createArrayOfObjectTypeDef(short,compact,full);return createTypeDef({name:"arrayOf",short:braceAfter(short),compact:braceAfter(short)})}(type,extractedProp);default:return createTypeDef({name:type.name,short:type.name,compact:type.name})}}catch(e){console.error(e)}return createTypeDef({name:"unknown",short:"unknown",compact:"unknown"})}var rawDefaultPropTypeResolvers=function createTypeResolvers(customResolvers={}){return{...DEFAULT_TYPE_RESOLVERS,...customResolvers}}({function:(rawDefaultProp,{name,type})=>{let isElement="element"===type?.summary||"elementType"===type?.summary,funcName=extractFunctionName(rawDefaultProp,name);if(null!=funcName){if(isElement)return(0,docs_tools.Ux)(getPrettyElementIdentifier(funcName));let{hasParams}=inspectValue(rawDefaultProp.toString()).inferredType;return(0,docs_tools.Ux)(getPrettyFuncIdentifier(funcName,hasParams))}return(0,docs_tools.Ux)(isElement?"element":"func")}});function enhancePropTypesProp(extractedProp,rawDefaultProp){let{propDef}=extractedProp,newtype=function createType(extractedProp){let{type}=extractedProp.docgenInfo;if(null==type)return null;try{switch(type.name){case"custom":case"shape":case"instanceOf":case"objectOf":case"union":case"enum":case"arrayOf":{let{short,compact,full}=generateType(type,extractedProp);return null==compact||(0,docs_tools.i3)(compact)?full?(0,docs_tools.Ux)(short,full):(0,docs_tools.Ux)(short):(0,docs_tools.Ux)(compact)}case"func":{let detail,{short,full}=generateType(type,extractedProp),summary=short;return full&&full.length<150?summary=full:full&&(detail=function toMultilineSignature(signature){return signature.replace(/,/g,",\r\n")}(full)),(0,docs_tools.Ux)(summary,detail)}default:return null}}catch(e){console.error(e)}return null}(extractedProp);null!=newtype&&(propDef.type=newtype);let{defaultValue}=extractedProp.docgenInfo;if(null!=defaultValue&&null!=defaultValue.value){let newDefaultValue=createDefaultValue(defaultValue.value);null!=newDefaultValue&&(propDef.defaultValue=newDefaultValue)}else if(null!=rawDefaultProp){let newDefaultValue=createDefaultValueFromRawDefaultProp(rawDefaultProp,propDef,rawDefaultPropTypeResolvers);null!=newDefaultValue&&(propDef.defaultValue=newDefaultValue)}return propDef}function enhancePropTypesProps(extractedProps,component){let rawDefaultProps=null!=component.defaultProps?component.defaultProps:{};return function keepOriginalDefinitionOrder(extractedProps,component){let{propTypes}=component;return null!=propTypes?Object.keys(propTypes).map((x=>extractedProps.find((y=>y.name===x)))).filter(Boolean):extractedProps}(extractedProps.map((x=>enhancePropTypesProp(x,rawDefaultProps[x.propDef.name]))),component)}function enhanceTypeScriptProps(extractedProps){return extractedProps.map((prop=>function enhanceTypeScriptProp(extractedProp,rawDefaultProp){let{propDef}=extractedProp,{defaultValue}=extractedProp.docgenInfo;if(null!=defaultValue&&null!=defaultValue.value){let newDefaultValue=createDefaultValue(defaultValue.value);null!=newDefaultValue&&(propDef.defaultValue=newDefaultValue)}else if(null!=rawDefaultProp){let newDefaultValue=createDefaultValueFromRawDefaultProp(rawDefaultProp,propDef);null!=newDefaultValue&&(propDef.defaultValue=newDefaultValue)}return propDef}(prop)))}function getPropDefs(component,section){let processedComponent=component;!(0,docs_tools.TQ)(component)&&!component.propTypes&&(0,chunk_6BNVLEVL.Rf)(component)&&(processedComponent=component.type);let extractedProps=(0,docs_tools.p6)(processedComponent,section);if(0===extractedProps.length)return[];switch(extractedProps[0].typeSystem){case docs_tools.YF.JAVASCRIPT:return enhancePropTypesProps(extractedProps,component);case docs_tools.YF.TYPESCRIPT:return enhanceTypeScriptProps(extractedProps);default:return extractedProps.map((x=>x.propDef))}}var parameters={docs:{extractArgTypes:component=>{if(component){let{rows}=(component=>({rows:getPropDefs(component,"props")}))(component);if(rows)return rows.reduce(((acc,row)=>{let{name,description,type,sbType,defaultValue:defaultSummary,jsDocTags,required}=row;return acc[name]={name,description,type:{required,...sbType},table:{type:type??void 0,jsDocTags,defaultValue:defaultSummary??void 0}},acc}),{})}return null},extractComponentDescription:docs_tools.rl}},argTypesEnhancers=[docs_tools.C2]},"./node_modules/@storybook/react/dist/entry-preview-docs.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{applyDecorators:()=>applyDecorators2,decorators:()=>decorators,parameters:()=>parameters});var chunk_XLZBPYSH=__webpack_require__("./node_modules/@storybook/react/dist/chunk-XLZBPYSH.mjs"),chunk_6BNVLEVL=__webpack_require__("./node_modules/@storybook/react/dist/chunk-6BNVLEVL.mjs"),chunk_XP5HYGXS=__webpack_require__("./node_modules/@storybook/react/dist/chunk-XP5HYGXS.mjs"),react=__webpack_require__("./node_modules/react/index.js"),external_STORYBOOK_MODULE_CLIENT_LOGGER_=__webpack_require__("storybook/internal/client-logger"),docs_tools=__webpack_require__("./node_modules/storybook/dist/docs-tools/index.js"),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("storybook/preview-api");(0,chunk_XP5HYGXS.VA)({},{applyDecorators:()=>applyDecorators2,decorators:()=>decorators,parameters:()=>parameters});var reactElementToJSXString=chunk_6BNVLEVL.HA,toPascalCase=str=>str.charAt(0).toUpperCase()+str.slice(1);function simplifyNodeForStringify(node){if((0,react.isValidElement)(node)){let props=Object.keys(node.props).reduce(((acc,cur)=>(acc[cur]=simplifyNodeForStringify(node.props[cur]),acc)),{});return{...node,props,_owner:null}}return Array.isArray(node)?node.map(simplifyNodeForStringify):node}var renderJsx=(code,options)=>{if(typeof code>"u")return external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn("Too many skip or undefined component"),null;let displayNameDefaults,renderedJSX=code,Type=renderedJSX.type;for(let i=0;i<options?.skip;i+=1){if(typeof renderedJSX>"u")return external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn("Cannot skip undefined element"),null;if(react.Children.count(renderedJSX)>1)return external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn("Trying to skip an array of elements"),null;typeof renderedJSX.props.children>"u"?(external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn("Not enough children to skip elements."),"function"==typeof renderedJSX.type&&""===renderedJSX.type.name&&(renderedJSX=react.createElement(Type,{...renderedJSX.props}))):renderedJSX="function"==typeof renderedJSX.props.children?renderedJSX.props.children():renderedJSX.props.children}displayNameDefaults="string"==typeof options?.displayName?{showFunctions:!0,displayName:()=>options.displayName}:{displayName:el=>{return el.type.displayName?el.type.displayName:(0,docs_tools.UO)(el.type,"displayName")?(0,docs_tools.UO)(el.type,"displayName"):el.type.render?.displayName?el.type.render.displayName:"symbol"==typeof el.type||el.type.$$typeof&&"symbol"==typeof el.type.$$typeof?((elementType=el.type).$$typeof||elementType).toString().replace(/^Symbol\((.*)\)$/,"$1").split(".").map((segment=>segment.split("_").map(toPascalCase).join(""))).join("."):el.type.name&&"_default"!==el.type.name?el.type.name:"function"==typeof el.type?"No Display Name":(0,chunk_6BNVLEVL.Jz)(el.type)?el.type.render.name:(0,chunk_6BNVLEVL.Rf)(el.type)?el.type.type.name:el.type;var elementType}};let opts={...displayNameDefaults,filterProps:(value,key)=>void 0!==value,...options};return react.Children.map(code,(c=>{let child="number"==typeof c?c.toString():c,string=("function"==typeof reactElementToJSXString?reactElementToJSXString:reactElementToJSXString.default)(simplifyNodeForStringify(child),opts);if(string.indexOf(""")>-1){let matches=string.match(/\S+=\\"([^"]*)\\"/g);matches&&matches.forEach((match=>{string=string.replace(match,match.replace(/"/g,"'"))}))}return string})).join("\n").replace(/function\s+noRefCheck\(\)\s*\{\}/g,"() => {}")},defaultOpts={skip:0,showFunctions:!1,enableBeautify:!0,showDefaultProps:!1},mdxToJsx=node=>{if(!(node=>"MDXCreateElement"===node.type?.displayName&&!!node.props?.mdxType)(node))return node;let{mdxType,originalType,children,...rest}=node.props,jsxChildren=[];return children&&(jsxChildren=(Array.isArray(children)?children:[children]).map(mdxToJsx)),(0,react.createElement)(originalType,rest,...jsxChildren)},jsxDecorator=(storyFn,context)=>{let jsx=(0,external_STORYBOOK_MODULE_PREVIEW_API_.useRef)(void 0),story=storyFn(),skip=(context=>{let sourceParams=context?.parameters.docs?.source,isArgsStory=context?.parameters.__isArgsStory;return sourceParams?.type!==docs_tools.Y1.DYNAMIC&&(!isArgsStory||sourceParams?.code||sourceParams?.type===docs_tools.Y1.CODE)})(context),options={...defaultOpts,...context?.parameters.jsx||{}},storyJsx=context.originalStoryFn(context.args,context);return(0,external_STORYBOOK_MODULE_PREVIEW_API_.useEffect)((()=>{if(skip)return;let sourceJsx=mdxToJsx(storyJsx),rendered=renderJsx(sourceJsx,options);rendered&&jsx.current!==rendered&&((0,external_STORYBOOK_MODULE_PREVIEW_API_.emitTransformCode)(rendered,context),jsx.current=rendered)})),story},applyDecorators2=(storyFn,decorators2)=>{let jsxIndex=decorators2.findIndex((d=>d.originalFn===jsxDecorator)),reorderedDecorators=-1===jsxIndex?decorators2:[...decorators2.splice(jsxIndex,1),...decorators2];return(0,chunk_XLZBPYSH.t)(storyFn,reorderedDecorators)},decorators=[jsxDecorator],parameters={docs:{story:{inline:!0}}}},"./node_modules/@storybook/react/dist/entry-preview.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{applyDecorators:()=>chunk_XLZBPYSH.t,beforeAll:()=>beforeAll,decorators:()=>decorators,mount:()=>mount,parameters:()=>parameters,render:()=>render,renderToCanvas:()=>renderToCanvas});var chunk_XLZBPYSH=__webpack_require__("./node_modules/@storybook/react/dist/chunk-XLZBPYSH.mjs"),chunk_XP5HYGXS=__webpack_require__("./node_modules/@storybook/react/dist/chunk-XP5HYGXS.mjs"),react=__webpack_require__("./node_modules/react/index.js"),react_namespaceObject=__webpack_require__.t(react,2),external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),require_constants=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/internal/constants.js"(exports,module){var MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||9007199254740991;module.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}}),require_debug=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/internal/debug.js"(exports,module){var debug="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...args)=>console.error("SEMVER",...args):()=>{};module.exports=debug}}),require_re=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/internal/re.js"(exports,module){var{MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_LENGTH}=require_constants(),debug=require_debug(),re=(exports=module.exports={}).re=[],safeRe=exports.safeRe=[],src=exports.src=[],safeSrc=exports.safeSrc=[],t=exports.t={},R=0,safeRegexReplacements=[["\\s",1],["\\d",MAX_LENGTH],["[a-zA-Z0-9-]",MAX_SAFE_BUILD_LENGTH]],createToken=(name,value,isGlobal)=>{let safe=(value=>{for(let[token,max]of safeRegexReplacements)value=value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);return value})(value),index=R++;debug(name,index,value),t[name]=index,src[index]=value,safeSrc[index]=safe,re[index]=new RegExp(value,isGlobal?"g":void 0),safeRe[index]=new RegExp(safe,isGlobal?"g":void 0)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*"),createToken("NUMERICIDENTIFIERLOOSE","\\d+"),createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),createToken("MAINVERSION",`(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`),createToken("MAINVERSIONLOOSE",`(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`),createToken("PRERELEASEIDENTIFIER",`(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`),createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`),createToken("PRERELEASE",`(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`),createToken("PRERELEASELOOSE",`(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`),createToken("BUILDIDENTIFIER","[a-zA-Z0-9-]+"),createToken("BUILD",`(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`),createToken("FULLPLAIN",`v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`),createToken("FULL",`^${src[t.FULLPLAIN]}$`),createToken("LOOSEPLAIN",`[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`),createToken("LOOSE",`^${src[t.LOOSEPLAIN]}$`),createToken("GTLT","((?:<|>)?=?)"),createToken("XRANGEIDENTIFIERLOOSE",`${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),createToken("XRANGEIDENTIFIER",`${src[t.NUMERICIDENTIFIER]}|x|X|\\*`),createToken("XRANGEPLAIN",`[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`),createToken("XRANGE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`),createToken("XRANGELOOSE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`),createToken("COERCEPLAIN",`(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`),createToken("COERCE",`${src[t.COERCEPLAIN]}(?:$|[^\\d])`),createToken("COERCEFULL",src[t.COERCEPLAIN]+`(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`),createToken("COERCERTL",src[t.COERCE],!0),createToken("COERCERTLFULL",src[t.COERCEFULL],!0),createToken("LONETILDE","(?:~>?)"),createToken("TILDETRIM",`(\\s*)${src[t.LONETILDE]}\\s+`,!0),exports.tildeTrimReplace="$1~",createToken("TILDE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`),createToken("TILDELOOSE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("LONECARET","(?:\\^)"),createToken("CARETTRIM",`(\\s*)${src[t.LONECARET]}\\s+`,!0),exports.caretTrimReplace="$1^",createToken("CARET",`^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`),createToken("CARETLOOSE",`^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`),createToken("COMPARATORLOOSE",`^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`),createToken("COMPARATOR",`^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`),createToken("COMPARATORTRIM",`(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`,!0),exports.comparatorTrimReplace="$1$2$3",createToken("HYPHENRANGE",`^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`),createToken("HYPHENRANGELOOSE",`^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`),createToken("STAR","(<|>)?=?\\s*\\*"),createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),require_parse_options=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/internal/parse-options.js"(exports,module){var looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({});module.exports=options=>options?"object"!=typeof options?looseOption:options:emptyOpts}}),require_identifiers=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/internal/identifiers.js"(exports,module){var numeric=/^[0-9]+$/,compareIdentifiers=(a,b)=>{let anum=numeric.test(a),bnum=numeric.test(b);return anum&&bnum&&(a=+a,b=+b),a===b?0:anum&&!bnum?-1:bnum&&!anum?1:a<b?-1:1};module.exports={compareIdentifiers,rcompareIdentifiers:(a,b)=>compareIdentifiers(b,a)}}}),require_semver=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/classes/semver.js"(exports,module){var debug=require_debug(),{MAX_LENGTH,MAX_SAFE_INTEGER}=require_constants(),{safeRe:re,t}=require_re(),parseOptions=require_parse_options(),{compareIdentifiers}=require_identifiers();module.exports=class _SemVer{constructor(version2,options){if(options=parseOptions(options),version2 instanceof _SemVer){if(version2.loose===!!options.loose&&version2.includePrerelease===!!options.includePrerelease)return version2;version2=version2.version}else if("string"!=typeof version2)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`);if(version2.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug("SemVer",version2,options),this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease;let m=version2.trim().match(options.loose?re[t.LOOSE]:re[t.FULL]);if(!m)throw new TypeError(`Invalid Version: ${version2}`);if(this.raw=version2,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");m[4]?this.prerelease=m[4].split(".").map((id=>{if(/^[0-9]+$/.test(id)){let num=+id;if(num>=0&&num<MAX_SAFE_INTEGER)return num}return id})):this.prerelease=[],this.build=m[5]?m[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(other){if(debug("SemVer.compare",this.version,this.options,other),!(other instanceof _SemVer)){if("string"==typeof other&&other===this.version)return 0;other=new _SemVer(other,this.options)}return other.version===this.version?0:this.compareMain(other)||this.comparePre(other)}compareMain(other){return other instanceof _SemVer||(other=new _SemVer(other,this.options)),compareIdentifiers(this.major,other.major)||compareIdentifiers(this.minor,other.minor)||compareIdentifiers(this.patch,other.patch)}comparePre(other){if(other instanceof _SemVer||(other=new _SemVer(other,this.options)),this.prerelease.length&&!other.prerelease.length)return-1;if(!this.prerelease.length&&other.prerelease.length)return 1;if(!this.prerelease.length&&!other.prerelease.length)return 0;let i=0;do{let a=this.prerelease[i],b=other.prerelease[i];if(debug("prerelease compare",i,a,b),void 0===a&&void 0===b)return 0;if(void 0===b)return 1;if(void 0===a)return-1;if(a!==b)return compareIdentifiers(a,b)}while(++i)}compareBuild(other){other instanceof _SemVer||(other=new _SemVer(other,this.options));let i=0;do{let a=this.build[i],b=other.build[i];if(debug("build compare",i,a,b),void 0===a&&void 0===b)return 0;if(void 0===b)return 1;if(void 0===a)return-1;if(a!==b)return compareIdentifiers(a,b)}while(++i)}inc(release,identifier,identifierBase){if(release.startsWith("pre")){if(!identifier&&!1===identifierBase)throw new Error("invalid increment argument: identifier is empty");if(identifier){let match=`-${identifier}`.match(this.options.loose?re[t.PRERELEASELOOSE]:re[t.PRERELEASE]);if(!match||match[1]!==identifier)throw new Error(`invalid identifier: ${identifier}`)}}switch(release){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",identifier,identifierBase);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",identifier,identifierBase);break;case"prepatch":this.prerelease.length=0,this.inc("patch",identifier,identifierBase),this.inc("pre",identifier,identifierBase);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",identifier,identifierBase),this.inc("pre",identifier,identifierBase);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{let base=Number(identifierBase)?1:0;if(0===this.prerelease.length)this.prerelease=[base];else{let i=this.prerelease.length;for(;--i>=0;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);if(-1===i){if(identifier===this.prerelease.join(".")&&!1===identifierBase)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(base)}}if(identifier){let prerelease=[identifier,base];!1===identifierBase&&(prerelease=[identifier]),0===compareIdentifiers(this.prerelease[0],identifier)?isNaN(this.prerelease[1])&&(this.prerelease=prerelease):this.prerelease=prerelease}break}default:throw new Error(`invalid increment argument: ${release}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}}}),require_parse=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/parse.js"(exports,module){var SemVer=require_semver();module.exports=(version2,options,throwErrors=!1)=>{if(version2 instanceof SemVer)return version2;try{return new SemVer(version2,options)}catch(er){if(!throwErrors)return null;throw er}}}}),require_valid=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/valid.js"(exports,module){var parse=require_parse();module.exports=(version2,options)=>{let v=parse(version2,options);return v?v.version:null}}}),require_clean=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/clean.js"(exports,module){var parse=require_parse();module.exports=(version2,options)=>{let s=parse(version2.trim().replace(/^[=v]+/,""),options);return s?s.version:null}}}),require_inc=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/inc.js"(exports,module){var SemVer=require_semver();module.exports=(version2,release,options,identifier,identifierBase)=>{"string"==typeof options&&(identifierBase=identifier,identifier=options,options=void 0);try{return new SemVer(version2 instanceof SemVer?version2.version:version2,options).inc(release,identifier,identifierBase).version}catch{return null}}}}),require_diff=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/diff.js"(exports,module){var parse=require_parse();module.exports=(version1,version2)=>{let v1=parse(version1,null,!0),v2=parse(version2,null,!0),comparison=v1.compare(v2);if(0===comparison)return null;let v1Higher=comparison>0,highVersion=v1Higher?v1:v2,lowVersion=v1Higher?v2:v1,highHasPre=!!highVersion.prerelease.length;if(lowVersion.prerelease.length&&!highHasPre){if(!lowVersion.patch&&!lowVersion.minor)return"major";if(0===lowVersion.compareMain(highVersion))return lowVersion.minor&&!lowVersion.patch?"minor":"patch"}let prefix=highHasPre?"pre":"";return v1.major!==v2.major?prefix+"major":v1.minor!==v2.minor?prefix+"minor":v1.patch!==v2.patch?prefix+"patch":"prerelease"}}}),require_major=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/major.js"(exports,module){var SemVer=require_semver();module.exports=(a,loose)=>new SemVer(a,loose).major}}),require_minor=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/minor.js"(exports,module){var SemVer=require_semver();module.exports=(a,loose)=>new SemVer(a,loose).minor}}),require_patch=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/patch.js"(exports,module){var SemVer=require_semver();module.exports=(a,loose)=>new SemVer(a,loose).patch}}),require_prerelease=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/prerelease.js"(exports,module){var parse=require_parse();module.exports=(version2,options)=>{let parsed=parse(version2,options);return parsed&&parsed.prerelease.length?parsed.prerelease:null}}}),require_compare=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/compare.js"(exports,module){var SemVer=require_semver();module.exports=(a,b,loose)=>new SemVer(a,loose).compare(new SemVer(b,loose))}}),require_rcompare=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/rcompare.js"(exports,module){var compare=require_compare();module.exports=(a,b,loose)=>compare(b,a,loose)}}),require_compare_loose=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/compare-loose.js"(exports,module){var compare=require_compare();module.exports=(a,b)=>compare(a,b,!0)}}),require_compare_build=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/compare-build.js"(exports,module){var SemVer=require_semver();module.exports=(a,b,loose)=>{let versionA=new SemVer(a,loose),versionB=new SemVer(b,loose);return versionA.compare(versionB)||versionA.compareBuild(versionB)}}}),require_sort=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/sort.js"(exports,module){var compareBuild=require_compare_build();module.exports=(list,loose)=>list.sort(((a,b)=>compareBuild(a,b,loose)))}}),require_rsort=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/rsort.js"(exports,module){var compareBuild=require_compare_build();module.exports=(list,loose)=>list.sort(((a,b)=>compareBuild(b,a,loose)))}}),require_gt=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/gt.js"(exports,module){var compare=require_compare();module.exports=(a,b,loose)=>compare(a,b,loose)>0}}),require_lt=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/lt.js"(exports,module){var compare=require_compare();module.exports=(a,b,loose)=>compare(a,b,loose)<0}}),require_eq=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/eq.js"(exports,module){var compare=require_compare();module.exports=(a,b,loose)=>0===compare(a,b,loose)}}),require_neq=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/neq.js"(exports,module){var compare=require_compare();module.exports=(a,b,loose)=>0!==compare(a,b,loose)}}),require_gte=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/gte.js"(exports,module){var compare=require_compare();module.exports=(a,b,loose)=>compare(a,b,loose)>=0}}),require_lte=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/lte.js"(exports,module){var compare=require_compare();module.exports=(a,b,loose)=>compare(a,b,loose)<=0}}),require_cmp=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/cmp.js"(exports,module){var eq=require_eq(),neq=require_neq(),gt=require_gt(),gte=require_gte(),lt=require_lt(),lte=require_lte();module.exports=(a,op,b,loose)=>{switch(op){case"===":return"object"==typeof a&&(a=a.version),"object"==typeof b&&(b=b.version),a===b;case"!==":return"object"==typeof a&&(a=a.version),"object"==typeof b&&(b=b.version),a!==b;case"":case"=":case"==":return eq(a,b,loose);case"!=":return neq(a,b,loose);case">":return gt(a,b,loose);case">=":return gte(a,b,loose);case"<":return lt(a,b,loose);case"<=":return lte(a,b,loose);default:throw new TypeError(`Invalid operator: ${op}`)}}}}),require_coerce=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/coerce.js"(exports,module){var SemVer=require_semver(),parse=require_parse(),{safeRe:re,t}=require_re();module.exports=(version2,options)=>{if(version2 instanceof SemVer)return version2;if("number"==typeof version2&&(version2=String(version2)),"string"!=typeof version2)return null;let match=null;if((options=options||{}).rtl){let next,coerceRtlRegex=options.includePrerelease?re[t.COERCERTLFULL]:re[t.COERCERTL];for(;(next=coerceRtlRegex.exec(version2))&&(!match||match.index+match[0].length!==version2.length);)(!match||next.index+next[0].length!==match.index+match[0].length)&&(match=next),coerceRtlRegex.lastIndex=next.index+next[1].length+next[2].length;coerceRtlRegex.lastIndex=-1}else match=version2.match(options.includePrerelease?re[t.COERCEFULL]:re[t.COERCE]);if(null===match)return null;let major=match[2],minor=match[3]||"0",patch=match[4]||"0",prerelease=options.includePrerelease&&match[5]?`-${match[5]}`:"",build=options.includePrerelease&&match[6]?`+${match[6]}`:"";return parse(`${major}.${minor}.${patch}${prerelease}${build}`,options)}}}),require_lrucache=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/internal/lrucache.js"(exports,module){module.exports=class{constructor(){this.max=1e3,this.map=new Map}get(key){let value=this.map.get(key);if(void 0!==value)return this.map.delete(key),this.map.set(key,value),value}delete(key){return this.map.delete(key)}set(key,value){if(!this.delete(key)&&void 0!==value){if(this.map.size>=this.max){let firstKey=this.map.keys().next().value;this.delete(firstKey)}this.map.set(key,value)}return this}}}}),require_range=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/classes/range.js"(exports,module){var SPACE_CHARACTERS=/\s+/g;module.exports=class _Range{constructor(range,options){if(options=parseOptions(options),range instanceof _Range)return range.loose===!!options.loose&&range.includePrerelease===!!options.includePrerelease?range:new _Range(range.raw,options);if(range instanceof Comparator)return this.raw=range.value,this.set=[[range]],this.formatted=void 0,this;if(this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease,this.raw=range.trim().replace(SPACE_CHARACTERS," "),this.set=this.raw.split("||").map((r=>this.parseRange(r.trim()))).filter((c=>c.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let first=this.set[0];if(this.set=this.set.filter((c=>!isNullSet(c[0]))),0===this.set.length)this.set=[first];else if(this.set.length>1)for(let c of this.set)if(1===c.length&&isAny(c[0])){this.set=[c];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let i=0;i<this.set.length;i++){i>0&&(this.formatted+="||");let comps=this.set[i];for(let k=0;k<comps.length;k++)k>0&&(this.formatted+=" "),this.formatted+=comps[k].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(range){let memoKey=((this.options.includePrerelease&&FLAG_INCLUDE_PRERELEASE)|(this.options.loose&&FLAG_LOOSE))+":"+range,cached=cache.get(memoKey);if(cached)return cached;let loose=this.options.loose,hr=loose?re[t.HYPHENRANGELOOSE]:re[t.HYPHENRANGE];range=range.replace(hr,hyphenReplace(this.options.includePrerelease)),debug("hyphen replace",range),range=range.replace(re[t.COMPARATORTRIM],comparatorTrimReplace),debug("comparator trim",range),range=range.replace(re[t.TILDETRIM],tildeTrimReplace),debug("tilde trim",range),range=range.replace(re[t.CARETTRIM],caretTrimReplace),debug("caret trim",range);let rangeList=range.split(" ").map((comp=>parseComparator(comp,this.options))).join(" ").split(/\s+/).map((comp=>replaceGTE0(comp,this.options)));loose&&(rangeList=rangeList.filter((comp=>(debug("loose invalid filter",comp,this.options),!!comp.match(re[t.COMPARATORLOOSE]))))),debug("range list",rangeList);let rangeMap=new Map,comparators=rangeList.map((comp=>new Comparator(comp,this.options)));for(let comp of comparators){if(isNullSet(comp))return[comp];rangeMap.set(comp.value,comp)}rangeMap.size>1&&rangeMap.has("")&&rangeMap.delete("");let result=[...rangeMap.values()];return cache.set(memoKey,result),result}intersects(range,options){if(!(range instanceof _Range))throw new TypeError("a Range is required");return this.set.some((thisComparators=>isSatisfiable(thisComparators,options)&&range.set.some((rangeComparators=>isSatisfiable(rangeComparators,options)&&thisComparators.every((thisComparator=>rangeComparators.every((rangeComparator=>thisComparator.intersects(rangeComparator,options)))))))))}test(version2){if(!version2)return!1;if("string"==typeof version2)try{version2=new SemVer(version2,this.options)}catch{return!1}for(let i=0;i<this.set.length;i++)if(testSet(this.set[i],version2,this.options))return!0;return!1}};var cache=new(require_lrucache()),parseOptions=require_parse_options(),Comparator=require_comparator(),debug=require_debug(),SemVer=require_semver(),{safeRe:re,t,comparatorTrimReplace,tildeTrimReplace,caretTrimReplace}=require_re(),{FLAG_INCLUDE_PRERELEASE,FLAG_LOOSE}=require_constants(),isNullSet=c=>"<0.0.0-0"===c.value,isAny=c=>""===c.value,isSatisfiable=(comparators,options)=>{let result=!0,remainingComparators=comparators.slice(),testComparator=remainingComparators.pop();for(;result&&remainingComparators.length;)result=remainingComparators.every((otherComparator=>testComparator.intersects(otherComparator,options))),testComparator=remainingComparators.pop();return result},parseComparator=(comp,options)=>(debug("comp",comp,options),comp=replaceCarets(comp,options),debug("caret",comp),comp=replaceTildes(comp,options),debug("tildes",comp),comp=replaceXRanges(comp,options),debug("xrange",comp),comp=replaceStars(comp,options),debug("stars",comp),comp),isX=id=>!id||"x"===id.toLowerCase()||"*"===id,replaceTildes=(comp,options)=>comp.trim().split(/\s+/).map((c=>replaceTilde(c,options))).join(" "),replaceTilde=(comp,options)=>{let r=options.loose?re[t.TILDELOOSE]:re[t.TILDE];return comp.replace(r,((_,M,m,p,pr)=>{let ret;return debug("tilde",comp,_,M,m,p,pr),isX(M)?ret="":isX(m)?ret=`>=${M}.0.0 <${+M+1}.0.0-0`:isX(p)?ret=`>=${M}.${m}.0 <${M}.${+m+1}.0-0`:pr?(debug("replaceTilde pr",pr),ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`):ret=`>=${M}.${m}.${p} <${M}.${+m+1}.0-0`,debug("tilde return",ret),ret}))},replaceCarets=(comp,options)=>comp.trim().split(/\s+/).map((c=>replaceCaret(c,options))).join(" "),replaceCaret=(comp,options)=>{debug("caret",comp,options);let r=options.loose?re[t.CARETLOOSE]:re[t.CARET],z=options.includePrerelease?"-0":"";return comp.replace(r,((_,M,m,p,pr)=>{let ret;return debug("caret",comp,_,M,m,p,pr),isX(M)?ret="":isX(m)?ret=`>=${M}.0.0${z} <${+M+1}.0.0-0`:isX(p)?ret="0"===M?`>=${M}.${m}.0${z} <${M}.${+m+1}.0-0`:`>=${M}.${m}.0${z} <${+M+1}.0.0-0`:pr?(debug("replaceCaret pr",pr),ret="0"===M?"0"===m?`>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p+1}-0`:`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`:`>=${M}.${m}.${p}-${pr} <${+M+1}.0.0-0`):(debug("no pr"),ret="0"===M?"0"===m?`>=${M}.${m}.${p}${z} <${M}.${m}.${+p+1}-0`:`>=${M}.${m}.${p}${z} <${M}.${+m+1}.0-0`:`>=${M}.${m}.${p} <${+M+1}.0.0-0`),debug("caret return",ret),ret}))},replaceXRanges=(comp,options)=>(debug("replaceXRanges",comp,options),comp.split(/\s+/).map((c=>replaceXRange(c,options))).join(" ")),replaceXRange=(comp,options)=>{comp=comp.trim();let r=options.loose?re[t.XRANGELOOSE]:re[t.XRANGE];return comp.replace(r,((ret,gtlt,M,m,p,pr)=>{debug("xRange",comp,ret,gtlt,M,m,p,pr);let xM=isX(M),xm=xM||isX(m),xp=xm||isX(p),anyX=xp;return"="===gtlt&&anyX&&(gtlt=""),pr=options.includePrerelease?"-0":"",xM?ret=">"===gtlt||"<"===gtlt?"<0.0.0-0":"*":gtlt&&anyX?(xm&&(m=0),p=0,">"===gtlt?(gtlt=">=",xm?(M=+M+1,m=0,p=0):(m=+m+1,p=0)):"<="===gtlt&&(gtlt="<",xm?M=+M+1:m=+m+1),"<"===gtlt&&(pr="-0"),ret=`${gtlt+M}.${m}.${p}${pr}`):xm?ret=`>=${M}.0.0${pr} <${+M+1}.0.0-0`:xp&&(ret=`>=${M}.${m}.0${pr} <${M}.${+m+1}.0-0`),debug("xRange return",ret),ret}))},replaceStars=(comp,options)=>(debug("replaceStars",comp,options),comp.trim().replace(re[t.STAR],"")),replaceGTE0=(comp,options)=>(debug("replaceGTE0",comp,options),comp.trim().replace(re[options.includePrerelease?t.GTE0PRE:t.GTE0],"")),hyphenReplace=incPr=>($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr)=>`${from=isX(fM)?"":isX(fm)?`>=${fM}.0.0${incPr?"-0":""}`:isX(fp)?`>=${fM}.${fm}.0${incPr?"-0":""}`:fpr?`>=${from}`:`>=${from}${incPr?"-0":""}`} ${to=isX(tM)?"":isX(tm)?`<${+tM+1}.0.0-0`:isX(tp)?`<${tM}.${+tm+1}.0-0`:tpr?`<=${tM}.${tm}.${tp}-${tpr}`:incPr?`<${tM}.${tm}.${+tp+1}-0`:`<=${to}`}`.trim(),testSet=(set,version2,options)=>{for(let i=0;i<set.length;i++)if(!set[i].test(version2))return!1;if(version2.prerelease.length&&!options.includePrerelease){for(let i=0;i<set.length;i++)if(debug(set[i].semver),set[i].semver!==Comparator.ANY&&set[i].semver.prerelease.length>0){let allowed=set[i].semver;if(allowed.major===version2.major&&allowed.minor===version2.minor&&allowed.patch===version2.patch)return!0}return!1}return!0}}}),require_comparator=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/classes/comparator.js"(exports,module){var ANY=Symbol("SemVer ANY");module.exports=class _Comparator{static get ANY(){return ANY}constructor(comp,options){if(options=parseOptions(options),comp instanceof _Comparator){if(comp.loose===!!options.loose)return comp;comp=comp.value}comp=comp.trim().split(/\s+/).join(" "),debug("comparator",comp,options),this.options=options,this.loose=!!options.loose,this.parse(comp),this.semver===ANY?this.value="":this.value=this.operator+this.semver.version,debug("comp",this)}parse(comp){let r=this.options.loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],m=comp.match(r);if(!m)throw new TypeError(`Invalid comparator: ${comp}`);this.operator=void 0!==m[1]?m[1]:"","="===this.operator&&(this.operator=""),m[2]?this.semver=new SemVer(m[2],this.options.loose):this.semver=ANY}toString(){return this.value}test(version2){if(debug("Comparator.test",version2,this.options.loose),this.semver===ANY||version2===ANY)return!0;if("string"==typeof version2)try{version2=new SemVer(version2,this.options)}catch{return!1}return cmp(version2,this.operator,this.semver,this.options)}intersects(comp,options){if(!(comp instanceof _Comparator))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new Range(comp.value,options).test(this.value):""===comp.operator?""===comp.value||new Range(this.value,options).test(comp.semver):!((options=parseOptions(options)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===comp.value)||!options.includePrerelease&&(this.value.startsWith("<0.0.0")||comp.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&comp.operator.startsWith(">")||this.operator.startsWith("<")&&comp.operator.startsWith("<")||this.semver.version===comp.semver.version&&this.operator.includes("=")&&comp.operator.includes("=")||cmp(this.semver,"<",comp.semver,options)&&this.operator.startsWith(">")&&comp.operator.startsWith("<")||cmp(this.semver,">",comp.semver,options)&&this.operator.startsWith("<")&&comp.operator.startsWith(">"))}};var parseOptions=require_parse_options(),{safeRe:re,t}=require_re(),cmp=require_cmp(),debug=require_debug(),SemVer=require_semver(),Range=require_range()}}),require_satisfies=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/functions/satisfies.js"(exports,module){var Range=require_range();module.exports=(version2,range,options)=>{try{range=new Range(range,options)}catch{return!1}return range.test(version2)}}}),require_to_comparators=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/ranges/to-comparators.js"(exports,module){var Range=require_range();module.exports=(range,options)=>new Range(range,options).set.map((comp=>comp.map((c=>c.value)).join(" ").trim().split(" ")))}}),require_max_satisfying=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/ranges/max-satisfying.js"(exports,module){var SemVer=require_semver(),Range=require_range();module.exports=(versions,range,options)=>{let max=null,maxSV=null,rangeObj=null;try{rangeObj=new Range(range,options)}catch{return null}return versions.forEach((v=>{rangeObj.test(v)&&(!max||-1===maxSV.compare(v))&&(max=v,maxSV=new SemVer(max,options))})),max}}}),require_min_satisfying=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/ranges/min-satisfying.js"(exports,module){var SemVer=require_semver(),Range=require_range();module.exports=(versions,range,options)=>{let min=null,minSV=null,rangeObj=null;try{rangeObj=new Range(range,options)}catch{return null}return versions.forEach((v=>{rangeObj.test(v)&&(!min||1===minSV.compare(v))&&(min=v,minSV=new SemVer(min,options))})),min}}}),require_min_version=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/ranges/min-version.js"(exports,module){var SemVer=require_semver(),Range=require_range(),gt=require_gt();module.exports=(range,loose)=>{range=new Range(range,loose);let minver=new SemVer("0.0.0");if(range.test(minver)||(minver=new SemVer("0.0.0-0"),range.test(minver)))return minver;minver=null;for(let i=0;i<range.set.length;++i){let comparators=range.set[i],setMin=null;comparators.forEach((comparator=>{let compver=new SemVer(comparator.semver.version);switch(comparator.operator){case">":0===compver.prerelease.length?compver.patch++:compver.prerelease.push(0),compver.raw=compver.format();case"":case">=":(!setMin||gt(compver,setMin))&&(setMin=compver);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${comparator.operator}`)}})),setMin&&(!minver||gt(minver,setMin))&&(minver=setMin)}return minver&&range.test(minver)?minver:null}}}),require_valid2=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/ranges/valid.js"(exports,module){var Range=require_range();module.exports=(range,options)=>{try{return new Range(range,options).range||"*"}catch{return null}}}}),require_outside=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/ranges/outside.js"(exports,module){var SemVer=require_semver(),Comparator=require_comparator(),{ANY}=Comparator,Range=require_range(),satisfies=require_satisfies(),gt=require_gt(),lt=require_lt(),lte=require_lte(),gte=require_gte();module.exports=(version2,range,hilo,options)=>{let gtfn,ltefn,ltfn,comp,ecomp;switch(version2=new SemVer(version2,options),range=new Range(range,options),hilo){case">":gtfn=gt,ltefn=lte,ltfn=lt,comp=">",ecomp=">=";break;case"<":gtfn=lt,ltefn=gte,ltfn=gt,comp="<",ecomp="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(version2,range,options))return!1;for(let i=0;i<range.set.length;++i){let comparators=range.set[i],high=null,low=null;if(comparators.forEach((comparator=>{comparator.semver===ANY&&(comparator=new Comparator(">=0.0.0")),high=high||comparator,low=low||comparator,gtfn(comparator.semver,high.semver,options)?high=comparator:ltfn(comparator.semver,low.semver,options)&&(low=comparator)})),high.operator===comp||high.operator===ecomp||(!low.operator||low.operator===comp)&<efn(version2,low.semver))return!1;if(low.operator===ecomp&<fn(version2,low.semver))return!1}return!0}}}),require_gtr=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/ranges/gtr.js"(exports,module){var outside=require_outside();module.exports=(version2,range,options)=>outside(version2,range,">",options)}}),require_ltr=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/ranges/ltr.js"(exports,module){var outside=require_outside();module.exports=(version2,range,options)=>outside(version2,range,"<",options)}}),require_intersects=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/ranges/intersects.js"(exports,module){var Range=require_range();module.exports=(r1,r2,options)=>(r1=new Range(r1,options),r2=new Range(r2,options),r1.intersects(r2,options))}}),require_simplify=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/ranges/simplify.js"(exports,module){var satisfies=require_satisfies(),compare=require_compare();module.exports=(versions,range,options)=>{let set=[],first=null,prev=null,v=versions.sort(((a,b)=>compare(a,b,options)));for(let version2 of v)satisfies(version2,range,options)?(prev=version2,first||(first=version2)):(prev&&set.push([first,prev]),prev=null,first=null);first&&set.push([first,null]);let ranges=[];for(let[min,max]of set)min===max?ranges.push(min):max||min!==v[0]?max?min===v[0]?ranges.push(`<=${max}`):ranges.push(`${min} - ${max}`):ranges.push(`>=${min}`):ranges.push("*");let simplified=ranges.join(" || "),original="string"==typeof range.raw?range.raw:String(range);return simplified.length<original.length?simplified:range}}}),require_subset=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/ranges/subset.js"(exports,module){var Range=require_range(),Comparator=require_comparator(),{ANY}=Comparator,satisfies=require_satisfies(),compare=require_compare(),minimumVersionWithPreRelease=[new Comparator(">=0.0.0-0")],minimumVersion=[new Comparator(">=0.0.0")],simpleSubset=(sub,dom,options)=>{if(sub===dom)return!0;if(1===sub.length&&sub[0].semver===ANY){if(1===dom.length&&dom[0].semver===ANY)return!0;sub=options.includePrerelease?minimumVersionWithPreRelease:minimumVersion}if(1===dom.length&&dom[0].semver===ANY){if(options.includePrerelease)return!0;dom=minimumVersion}let gt,lt,gtltComp,eqSet=new Set;for(let c of sub)">"===c.operator||">="===c.operator?gt=higherGT(gt,c,options):"<"===c.operator||"<="===c.operator?lt=lowerLT(lt,c,options):eqSet.add(c.semver);if(eqSet.size>1)return null;if(gt&<){if(gtltComp=compare(gt.semver,lt.semver,options),gtltComp>0)return null;if(0===gtltComp&&(">="!==gt.operator||"<="!==lt.operator))return null}for(let eq of eqSet){if(gt&&!satisfies(eq,String(gt),options)||lt&&!satisfies(eq,String(lt),options))return null;for(let c of dom)if(!satisfies(eq,String(c),options))return!1;return!0}let higher,lower,hasDomLT,hasDomGT,needDomLTPre=!(!lt||options.includePrerelease||!lt.semver.prerelease.length)&<.semver,needDomGTPre=!(!gt||options.includePrerelease||!gt.semver.prerelease.length)&>.semver;needDomLTPre&&1===needDomLTPre.prerelease.length&&"<"===lt.operator&&0===needDomLTPre.prerelease[0]&&(needDomLTPre=!1);for(let c of dom){if(hasDomGT=hasDomGT||">"===c.operator||">="===c.operator,hasDomLT=hasDomLT||"<"===c.operator||"<="===c.operator,gt)if(needDomGTPre&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomGTPre.major&&c.semver.minor===needDomGTPre.minor&&c.semver.patch===needDomGTPre.patch&&(needDomGTPre=!1),">"===c.operator||">="===c.operator){if(higher=higherGT(gt,c,options),higher===c&&higher!==gt)return!1}else if(">="===gt.operator&&!satisfies(gt.semver,String(c),options))return!1;if(lt)if(needDomLTPre&&c.semver.prerelease&&c.semver.prerelease.length&&c.semver.major===needDomLTPre.major&&c.semver.minor===needDomLTPre.minor&&c.semver.patch===needDomLTPre.patch&&(needDomLTPre=!1),"<"===c.operator||"<="===c.operator){if(lower=lowerLT(lt,c,options),lower===c&&lower!==lt)return!1}else if("<="===lt.operator&&!satisfies(lt.semver,String(c),options))return!1;if(!c.operator&&(lt||gt)&&0!==gtltComp)return!1}return!(gt&&hasDomLT&&!lt&&0!==gtltComp||lt&&hasDomGT&&!gt&&0!==gtltComp||needDomGTPre||needDomLTPre)},higherGT=(a,b,options)=>{if(!a)return b;let comp=compare(a.semver,b.semver,options);return comp>0?a:comp<0||">"===b.operator&&">="===a.operator?b:a},lowerLT=(a,b,options)=>{if(!a)return b;let comp=compare(a.semver,b.semver,options);return comp<0?a:comp>0||"<"===b.operator&&"<="===a.operator?b:a};module.exports=(sub,dom,options={})=>{if(sub===dom)return!0;sub=new Range(sub,options),dom=new Range(dom,options);let sawNonNull=!1;OUTER:for(let simpleSub of sub.set){for(let simpleDom of dom.set){let isSub=simpleSubset(simpleSub,simpleDom,options);if(sawNonNull=sawNonNull||null!==isSub,isSub)continue OUTER}if(sawNonNull)return!1}return!0}}}),require_semver2=(0,chunk_XP5HYGXS.P$)({"../../node_modules/semver/index.js"(exports,module){var internalRe=require_re(),constants=require_constants(),SemVer=require_semver(),identifiers=require_identifiers(),parse=require_parse(),valid=require_valid(),clean=require_clean(),inc=require_inc(),diff=require_diff(),major=require_major(),minor=require_minor(),patch=require_patch(),prerelease=require_prerelease(),compare=require_compare(),rcompare=require_rcompare(),compareLoose=require_compare_loose(),compareBuild=require_compare_build(),sort=require_sort(),rsort=require_rsort(),gt=require_gt(),lt=require_lt(),eq=require_eq(),neq=require_neq(),gte=require_gte(),lte=require_lte(),cmp=require_cmp(),coerce=require_coerce(),Comparator=require_comparator(),Range=require_range(),satisfies=require_satisfies(),toComparators=require_to_comparators(),maxSatisfying=require_max_satisfying(),minSatisfying=require_min_satisfying(),minVersion=require_min_version(),validRange=require_valid2(),outside=require_outside(),gtr=require_gtr(),ltr=require_ltr(),intersects=require_intersects(),simplifyRange=require_simplify(),subset=require_subset();module.exports={parse,valid,clean,inc,diff,major,minor,patch,prerelease,compare,rcompare,compareLoose,compareBuild,sort,rsort,gt,lt,eq,neq,gte,lte,cmp,coerce,Comparator,Range,satisfies,toComparators,maxSatisfying,minSatisfying,minVersion,validRange,outside,gtr,ltr,intersects,simplifyRange,subset,SemVer,re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:constants.SEMVER_SPEC_VERSION,RELEASE_TYPES:constants.RELEASE_TYPES,compareIdentifiers:identifiers.compareIdentifiers,rcompareIdentifiers:identifiers.rcompareIdentifiers}}});(0,chunk_XP5HYGXS.VA)({},{applyDecorators:()=>chunk_XLZBPYSH.t,beforeAll:()=>beforeAll,decorators:()=>decorators,mount:()=>mount,parameters:()=>parameters,render:()=>render,renderToCanvas:()=>renderToCanvas});var import_semver=(0,chunk_XP5HYGXS.f1)(require_semver2());function setReactActEnvironment(isReactActEnvironment){globalThis.IS_REACT_ACT_ENVIRONMENT=isReactActEnvironment}function getReactActEnvironment(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var getAct=async({disableAct=!1}={})=>cb=>cb(),render=(args,context)=>{let{id,component:Component}=context;if(!Component)throw new Error(`Unable to render story ${id} as the component annotation is missing from the default export`);return react.createElement(Component,{...args})},{FRAMEWORK_OPTIONS}=external_STORYBOOK_MODULE_GLOBAL_.global,ErrorBoundary=class extends react.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidMount(){let{hasError}=this.state,{showMain}=this.props;hasError||showMain()}componentDidCatch(err){let{showException}=this.props;showException(err)}render(){let{hasError}=this.state,{children}=this.props;return hasError?null:children}},Wrapper=FRAMEWORK_OPTIONS?.strictMode?react.StrictMode:react.Fragment,actQueue=[],isActing=!1,processActQueue=async()=>{if(isActing||0===actQueue.length)return;isActing=!0;let actTask=actQueue.shift();actTask&&await actTask(),isActing=!1,processActQueue()};async function renderToCanvas({storyContext,unboundStoryFn,showMain,showException,forceRemount},canvasElement){let{renderElement,unmountElement}=await __webpack_require__.e(735).then(__webpack_require__.bind(__webpack_require__,"./node_modules/@storybook/react-dom-shim/dist/react-18.mjs")),Story=unboundStoryFn,content=storyContext.parameters.__isPortableStory?react.createElement(Story,{...storyContext}):react.createElement(ErrorBoundary,{key:storyContext.id,showMain,showException},react.createElement(Story,{...storyContext})),element=Wrapper?react.createElement(Wrapper,null,content):content;forceRemount&&unmountElement(canvasElement);let act=await getAct({disableAct:"docs"===storyContext.viewMode});return await new Promise((async(resolve,reject)=>{actQueue.push((async()=>{try{await act((async()=>{await renderElement(element,canvasElement,storyContext?.parameters?.react?.rootOptions)})),resolve()}catch(e){reject(e)}})),processActQueue()})),async()=>{await act((()=>{unmountElement(canvasElement)}))}}var mount=context=>async ui=>(null!=ui&&(context.originalStoryFn=()=>ui),await context.renderToCanvas(),context.canvas),decorators=[(story,context)=>{if(!context.parameters?.react?.rsc)return story();let major=import_semver.default.major(react.version),minor=import_semver.default.minor(react.version);if(major<18||18===major&&minor<3)throw new Error("React Server Components require React >= 18.3");return react.createElement(react.Suspense,null,story())}],parameters={renderer:"react"},beforeAll=async()=>{try{let{configure}=await Promise.resolve().then(__webpack_require__.t.bind(__webpack_require__,"storybook/test",23)),act=await getAct();configure({unstable_advanceTimersWrapper:cb=>act(cb),asyncWrapper:async cb=>{let previousActEnvironment=getReactActEnvironment();setReactActEnvironment(!1);try{let result=await cb();return await new Promise((resolve=>{setTimeout((()=>{resolve()}),0),function jestFakeTimersAreEnabled(){return typeof jest<"u"&&null!==jest&&(!0===setTimeout._isMockFunction||Object.prototype.hasOwnProperty.call(setTimeout,"clock"))}()&&jest.advanceTimersByTime(0)})),result}finally{setReactActEnvironment(previousActEnvironment)}},eventWrapper:cb=>{let result;return act((()=>(result=cb(),result))),result}})}catch{}}},"./node_modules/css-loader/dist/runtime/api.js":module=>{module.exports=function(cssWithMappingToString){var list=[];return list.toString=function toString(){return this.map((function(item){var content="",needLayer=void 0!==item[5];return item[4]&&(content+="@supports (".concat(item[4],") {")),item[2]&&(content+="@media ".concat(item[2]," {")),needLayer&&(content+="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {")),content+=cssWithMappingToString(item),needLayer&&(content+="}"),item[2]&&(content+="}"),item[4]&&(content+="}"),content})).join("")},list.i=function i(modules,media,dedupe,supports,layer){"string"==typeof modules&&(modules=[[null,modules,void 0]]);var alreadyImportedModules={};if(dedupe)for(var k=0;k<this.length;k++){var id=this[k][0];null!=id&&(alreadyImportedModules[id]=!0)}for(var _k=0;_k<modules.length;_k++){var item=[].concat(modules[_k]);dedupe&&alreadyImportedModules[item[0]]||(void 0!==layer&&(void 0===item[5]||(item[1]="@layer".concat(item[5].length>0?" ".concat(item[5]):""," {").concat(item[1],"}")),item[5]=layer),media&&(item[2]?(item[1]="@media ".concat(item[2]," {").concat(item[1],"}"),item[2]=media):item[2]=media),supports&&(item[4]?(item[1]="@supports (".concat(item[4],") {").concat(item[1],"}"),item[4]=supports):item[4]="".concat(supports)),list.push(item))}},list}},"./node_modules/css-loader/dist/runtime/sourceMaps.js":module=>{module.exports=function(item){var content=item[1],cssMapping=item[3];if(!cssMapping)return content;if("function"==typeof btoa){var base64=btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping)))),data="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64),sourceMapping="/*# ".concat(data," */");return[content].concat([sourceMapping]).join("\n")}return[content].join("\n")}},"./node_modules/react-dom/cjs/react-dom.production.min.js":(__unused_webpack_module,exports,__webpack_require__)=>{var aa=__webpack_require__("./node_modules/react/index.js"),ca=__webpack_require__("./node_modules/scheduler/index.js");function p(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var da=new Set,ea={};function fa(a,b){ha(a,b),ha(a+"Capture",b)}function ha(a,b){for(ea[a]=b,a=0;a<b.length;a++)da.add(b[a])}var ia=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),ja=Object.prototype.hasOwnProperty,ka=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,la={},ma={};function v(a,b,c,d,e,f,g){this.acceptsBooleans=2===b||3===b||4===b,this.attributeName=d,this.attributeNamespace=e,this.mustUseProperty=c,this.propertyName=a,this.type=b,this.sanitizeURL=f,this.removeEmptyString=g}var z={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(a){z[a]=new v(a,0,!1,a,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(a){var b=a[0];z[b]=new v(b,1,!1,a[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(a){z[a]=new v(a,2,!1,a.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(a){z[a]=new v(a,2,!1,a,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(a){z[a]=new v(a,3,!1,a.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(a){z[a]=new v(a,3,!0,a,null,!1,!1)})),["capture","download"].forEach((function(a){z[a]=new v(a,4,!1,a,null,!1,!1)})),["cols","rows","size","span"].forEach((function(a){z[a]=new v(a,6,!1,a,null,!1,!1)})),["rowSpan","start"].forEach((function(a){z[a]=new v(a,5,!1,a.toLowerCase(),null,!1,!1)}));var ra=/[\-:]([a-z])/g;function sa(a){return a[1].toUpperCase()}function ta(a,b,c,d){var e=z.hasOwnProperty(b)?z[b]:null;(null!==e?0!==e.type:d||!(2<b.length)||"o"!==b[0]&&"O"!==b[0]||"n"!==b[1]&&"N"!==b[1])&&(function qa(a,b,c,d){if(null==b||function pa(a,b,c,d){if(null!==c&&0===c.type)return!1;switch(typeof b){case"function":case"symbol":return!0;case"boolean":return!d&&(null!==c?!c.acceptsBooleans:"data-"!==(a=a.toLowerCase().slice(0,5))&&"aria-"!==a);default:return!1}}(a,b,c,d))return!0;if(d)return!1;if(null!==c)switch(c.type){case 3:return!b;case 4:return!1===b;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return!1}(b,c,e,d)&&(c=null),d||null===e?function oa(a){return!!ja.call(ma,a)||!ja.call(la,a)&&(ka.test(a)?ma[a]=!0:(la[a]=!0,!1))}(b)&&(null===c?a.removeAttribute(b):a.setAttribute(b,""+c)):e.mustUseProperty?a[e.propertyName]=null===c?3!==e.type&&"":c:(b=e.attributeName,d=e.attributeNamespace,null===c?a.removeAttribute(b):(c=3===(e=e.type)||4===e&&!0===c?"":""+c,d?a.setAttributeNS(d,b,c):a.setAttribute(b,c))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!1,!1)})),z.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!0,!0)}));var ua=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,va=Symbol.for("react.element"),wa=Symbol.for("react.portal"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.strict_mode"),Aa=Symbol.for("react.profiler"),Ba=Symbol.for("react.provider"),Ca=Symbol.for("react.context"),Da=Symbol.for("react.forward_ref"),Ea=Symbol.for("react.suspense"),Fa=Symbol.for("react.suspense_list"),Ga=Symbol.for("react.memo"),Ha=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var Ia=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var Ja=Symbol.iterator;function Ka(a){return null===a||"object"!=typeof a?null:"function"==typeof(a=Ja&&a[Ja]||a["@@iterator"])?a:null}var La,A=Object.assign;function Ma(a){if(void 0===La)try{throw Error()}catch(c){var b=c.stack.trim().match(/\n( *(at )?)/);La=b&&b[1]||""}return"\n"+La+a}var Na=!1;function Oa(a,b){if(!a||Na)return"";Na=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(b)if(b=function(){throw Error()},Object.defineProperty(b.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(b,[])}catch(l){var d=l}Reflect.construct(a,[],b)}else{try{b.call()}catch(l){d=l}a.call(b.prototype)}else{try{throw Error()}catch(l){d=l}a()}}catch(l){if(l&&d&&"string"==typeof l.stack){for(var e=l.stack.split("\n"),f=d.stack.split("\n"),g=e.length-1,h=f.length-1;1<=g&&0<=h&&e[g]!==f[h];)h--;for(;1<=g&&0<=h;g--,h--)if(e[g]!==f[h]){if(1!==g||1!==h)do{if(g--,0>--h||e[g]!==f[h]){var k="\n"+e[g].replace(" at new "," at ");return a.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",a.displayName)),k}}while(1<=g&&0<=h);break}}}finally{Na=!1,Error.prepareStackTrace=c}return(a=a?a.displayName||a.name:"")?Ma(a):""}function Pa(a){switch(a.tag){case 5:return Ma(a.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return a=Oa(a.type,!1);case 11:return a=Oa(a.type.render,!1);case 1:return a=Oa(a.type,!0);default:return""}}function Qa(a){if(null==a)return null;if("function"==typeof a)return a.displayName||a.name||null;if("string"==typeof a)return a;switch(a){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if("object"==typeof a)switch(a.$$typeof){case Ca:return(a.displayName||"Context")+".Consumer";case Ba:return(a._context.displayName||"Context")+".Provider";case Da:var b=a.render;return(a=a.displayName)||(a=""!==(a=b.displayName||b.name||"")?"ForwardRef("+a+")":"ForwardRef"),a;case Ga:return null!==(b=a.displayName||null)?b:Qa(a.type)||"Memo";case Ha:b=a._payload,a=a._init;try{return Qa(a(b))}catch(c){}}return null}function Ra(a){var b=a.type;switch(a.tag){case 24:return"Cache";case 9:return(b.displayName||"Context")+".Consumer";case 10:return(b._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=(a=b.render).displayName||a.name||"",b.displayName||(""!==a?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return b;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(b);case 8:return b===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof b)return b.displayName||b.name||null;if("string"==typeof b)return b}return null}function Sa(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":case"object":return a;default:return""}}function Ta(a){var b=a.type;return(a=a.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===b||"radio"===b)}function Va(a){a._valueTracker||(a._valueTracker=function Ua(a){var b=Ta(a)?"checked":"value",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,b),d=""+a[b];if(!a.hasOwnProperty(b)&&void 0!==c&&"function"==typeof c.get&&"function"==typeof c.set){var e=c.get,f=c.set;return Object.defineProperty(a,b,{configurable:!0,get:function(){return e.call(this)},set:function(a){d=""+a,f.call(this,a)}}),Object.defineProperty(a,b,{enumerable:c.enumerable}),{getValue:function(){return d},setValue:function(a){d=""+a},stopTracking:function(){a._valueTracker=null,delete a[b]}}}}(a))}function Wa(a){if(!a)return!1;var b=a._valueTracker;if(!b)return!0;var c=b.getValue(),d="";return a&&(d=Ta(a)?a.checked?"true":"false":a.value),(a=d)!==c&&(b.setValue(a),!0)}function Xa(a){if(void 0===(a=a||("undefined"!=typeof document?document:void 0)))return null;try{return a.activeElement||a.body}catch(b){return a.body}}function Ya(a,b){var c=b.checked;return A({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=c?c:a._wrapperState.initialChecked})}function Za(a,b){var c=null==b.defaultValue?"":b.defaultValue,d=null!=b.checked?b.checked:b.defaultChecked;c=Sa(null!=b.value?b.value:c),a._wrapperState={initialChecked:d,initialValue:c,controlled:"checkbox"===b.type||"radio"===b.type?null!=b.checked:null!=b.value}}function ab(a,b){null!=(b=b.checked)&&ta(a,"checked",b,!1)}function bb(a,b){ab(a,b);var c=Sa(b.value),d=b.type;if(null!=c)"number"===d?(0===c&&""===a.value||a.value!=c)&&(a.value=""+c):a.value!==""+c&&(a.value=""+c);else if("submit"===d||"reset"===d)return void a.removeAttribute("value");b.hasOwnProperty("value")?cb(a,b.type,c):b.hasOwnProperty("defaultValue")&&cb(a,b.type,Sa(b.defaultValue)),null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked)}function db(a,b,c){if(b.hasOwnProperty("value")||b.hasOwnProperty("defaultValue")){var d=b.type;if(!("submit"!==d&&"reset"!==d||void 0!==b.value&&null!==b.value))return;b=""+a._wrapperState.initialValue,c||b===a.value||(a.value=b),a.defaultValue=b}""!==(c=a.name)&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,""!==c&&(a.name=c)}function cb(a,b,c){"number"===b&&Xa(a.ownerDocument)===a||(null==c?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+c&&(a.defaultValue=""+c))}var eb=Array.isArray;function fb(a,b,c,d){if(a=a.options,b){b={};for(var e=0;e<c.length;e++)b["$"+c[e]]=!0;for(c=0;c<a.length;c++)e=b.hasOwnProperty("$"+a[c].value),a[c].selected!==e&&(a[c].selected=e),e&&d&&(a[c].defaultSelected=!0)}else{for(c=""+Sa(c),b=null,e=0;e<a.length;e++){if(a[e].value===c)return a[e].selected=!0,void(d&&(a[e].defaultSelected=!0));null!==b||a[e].disabled||(b=a[e])}null!==b&&(b.selected=!0)}}function gb(a,b){if(null!=b.dangerouslySetInnerHTML)throw Error(p(91));return A({},b,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function hb(a,b){var c=b.value;if(null==c){if(c=b.children,b=b.defaultValue,null!=c){if(null!=b)throw Error(p(92));if(eb(c)){if(1<c.length)throw Error(p(93));c=c[0]}b=c}null==b&&(b=""),c=b}a._wrapperState={initialValue:Sa(c)}}function ib(a,b){var c=Sa(b.value),d=Sa(b.defaultValue);null!=c&&((c=""+c)!==a.value&&(a.value=c),null==b.defaultValue&&a.defaultValue!==c&&(a.defaultValue=c)),null!=d&&(a.defaultValue=""+d)}function jb(a){var b=a.textContent;b===a._wrapperState.initialValue&&""!==b&&null!==b&&(a.value=b)}function kb(a){switch(a){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function lb(a,b){return null==a||"http://www.w3.org/1999/xhtml"===a?kb(b):"http://www.w3.org/2000/svg"===a&&"foreignObject"===b?"http://www.w3.org/1999/xhtml":a}var mb,a,nb=(a=function(a,b){if("http://www.w3.org/2000/svg"!==a.namespaceURI||"innerHTML"in a)a.innerHTML=b;else{for((mb=mb||document.createElement("div")).innerHTML="<svg>"+b.valueOf().toString()+"</svg>",b=mb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(b,c,d,e){MSApp.execUnsafeLocalFunction((function(){return a(b,c)}))}:a);function ob(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType)return void(c.nodeValue=b)}a.textContent=b}var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];function rb(a,b,c){return null==b||"boolean"==typeof b||""===b?"":c||"number"!=typeof b||0===b||pb.hasOwnProperty(a)&&pb[a]?(""+b).trim():b+"px"}function sb(a,b){for(var c in a=a.style,b)if(b.hasOwnProperty(c)){var d=0===c.indexOf("--"),e=rb(c,b[c],d);"float"===c&&(c="cssFloat"),d?a.setProperty(c,e):a[c]=e}}Object.keys(pb).forEach((function(a){qb.forEach((function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1),pb[b]=pb[a]}))}));var tb=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub(a,b){if(b){if(tb[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML))throw Error(p(137,a));if(null!=b.dangerouslySetInnerHTML){if(null!=b.children)throw Error(p(60));if("object"!=typeof b.dangerouslySetInnerHTML||!("__html"in b.dangerouslySetInnerHTML))throw Error(p(61))}if(null!=b.style&&"object"!=typeof b.style)throw Error(p(62))}}function vb(a,b){if(-1===a.indexOf("-"))return"string"==typeof b.is;switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function xb(a){return(a=a.target||a.srcElement||window).correspondingUseElement&&(a=a.correspondingUseElement),3===a.nodeType?a.parentNode:a}var yb=null,zb=null,Ab=null;function Bb(a){if(a=Cb(a)){if("function"!=typeof yb)throw Error(p(280));var b=a.stateNode;b&&(b=Db(b),yb(a.stateNode,a.type,b))}}function Eb(a){zb?Ab?Ab.push(a):Ab=[a]:zb=a}function Fb(){if(zb){var a=zb,b=Ab;if(Ab=zb=null,Bb(a),b)for(a=0;a<b.length;a++)Bb(b[a])}}function Gb(a,b){return a(b)}function Hb(){}var Ib=!1;function Jb(a,b,c){if(Ib)return a(b,c);Ib=!0;try{return Gb(a,b,c)}finally{Ib=!1,(null!==zb||null!==Ab)&&(Hb(),Fb())}}function Kb(a,b){var c=a.stateNode;if(null===c)return null;var d=Db(c);if(null===d)return null;c=d[b];a:switch(b){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(d=!("button"===(a=a.type)||"input"===a||"select"===a||"textarea"===a)),a=!d;break a;default:a=!1}if(a)return null;if(c&&"function"!=typeof c)throw Error(p(231,b,typeof c));return c}var Lb=!1;if(ia)try{var Mb={};Object.defineProperty(Mb,"passive",{get:function(){Lb=!0}}),window.addEventListener("test",Mb,Mb),window.removeEventListener("test",Mb,Mb)}catch(a){Lb=!1}function Nb(a,b,c,d,e,f,g,h,k){var l=Array.prototype.slice.call(arguments,3);try{b.apply(c,l)}catch(m){this.onError(m)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function(a){Ob=!0,Pb=a}};function Tb(a,b,c,d,e,f,g,h,k){Ob=!1,Pb=null,Nb.apply(Sb,arguments)}function Vb(a){var b=a,c=a;if(a.alternate)for(;b.return;)b=b.return;else{a=b;do{!!(4098&(b=a).flags)&&(c=b.return),a=b.return}while(a)}return 3===b.tag?c:null}function Wb(a){if(13===a.tag){var b=a.memoizedState;if(null===b&&(null!==(a=a.alternate)&&(b=a.memoizedState)),null!==b)return b.dehydrated}return null}function Xb(a){if(Vb(a)!==a)throw Error(p(188))}function Zb(a){return null!==(a=function Yb(a){var b=a.alternate;if(!b){if(null===(b=Vb(a)))throw Error(p(188));return b!==a?null:a}for(var c=a,d=b;;){var e=c.return;if(null===e)break;var f=e.alternate;if(null===f){if(null!==(d=e.return)){c=d;continue}break}if(e.child===f.child){for(f=e.child;f;){if(f===c)return Xb(e),a;if(f===d)return Xb(e),b;f=f.sibling}throw Error(p(188))}if(c.return!==d.return)c=e,d=f;else{for(var g=!1,h=e.child;h;){if(h===c){g=!0,c=e,d=f;break}if(h===d){g=!0,d=e,c=f;break}h=h.sibling}if(!g){for(h=f.child;h;){if(h===c){g=!0,c=f,d=e;break}if(h===d){g=!0,d=f,c=e;break}h=h.sibling}if(!g)throw Error(p(189))}}if(c.alternate!==d)throw Error(p(190))}if(3!==c.tag)throw Error(p(188));return c.stateNode.current===c?a:b}(a))?$b(a):null}function $b(a){if(5===a.tag||6===a.tag)return a;for(a=a.child;null!==a;){var b=$b(a);if(null!==b)return b;a=a.sibling}return null}var ac=ca.unstable_scheduleCallback,bc=ca.unstable_cancelCallback,cc=ca.unstable_shouldYield,dc=ca.unstable_requestPaint,B=ca.unstable_now,ec=ca.unstable_getCurrentPriorityLevel,fc=ca.unstable_ImmediatePriority,gc=ca.unstable_UserBlockingPriority,hc=ca.unstable_NormalPriority,ic=ca.unstable_LowPriority,jc=ca.unstable_IdlePriority,kc=null,lc=null;var oc=Math.clz32?Math.clz32:function nc(a){return a>>>=0,0===a?32:31-(pc(a)/qc|0)|0},pc=Math.log,qc=Math.LN2;var rc=64,sc=4194304;function tc(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&a;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&a;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function uc(a,b){var c=a.pendingLanes;if(0===c)return 0;var d=0,e=a.suspendedLanes,f=a.pingedLanes,g=268435455&c;if(0!==g){var h=g&~e;0!==h?d=tc(h):0!==(f&=g)&&(d=tc(f))}else 0!==(g=c&~e)?d=tc(g):0!==f&&(d=tc(f));if(0===d)return 0;if(0!==b&&b!==d&&!(b&e)&&((e=d&-d)>=(f=b&-b)||16===e&&4194240&f))return b;if(4&d&&(d|=16&c),0!==(b=a.entangledLanes))for(a=a.entanglements,b&=d;0<b;)e=1<<(c=31-oc(b)),d|=a[c],b&=~e;return d}function vc(a,b){switch(a){case 1:case 2:case 4:return b+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return b+5e3;default:return-1}}function xc(a){return 0!==(a=-1073741825&a.pendingLanes)?a:1073741824&a?1073741824:0}function yc(){var a=rc;return!(4194240&(rc<<=1))&&(rc=64),a}function zc(a){for(var b=[],c=0;31>c;c++)b.push(a);return b}function Ac(a,b,c){a.pendingLanes|=b,536870912!==b&&(a.suspendedLanes=0,a.pingedLanes=0),(a=a.eventTimes)[b=31-oc(b)]=c}function Cc(a,b){var c=a.entangledLanes|=b;for(a=a.entanglements;c;){var d=31-oc(c),e=1<<d;e&b|a[d]&b&&(a[d]|=b),c&=~e}}var C=0;function Dc(a){return 1<(a&=-a)?4<a?268435455&a?16:536870912:4:1}var Ec,Fc,Gc,Hc,Ic,Jc=!1,Kc=[],Lc=null,Mc=null,Nc=null,Oc=new Map,Pc=new Map,Qc=[],Rc="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Sc(a,b){switch(a){case"focusin":case"focusout":Lc=null;break;case"dragenter":case"dragleave":Mc=null;break;case"mouseover":case"mouseout":Nc=null;break;case"pointerover":case"pointerout":Oc.delete(b.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pc.delete(b.pointerId)}}function Tc(a,b,c,d,e,f){return null===a||a.nativeEvent!==f?(a={blockedOn:b,domEventName:c,eventSystemFlags:d,nativeEvent:f,targetContainers:[e]},null!==b&&(null!==(b=Cb(b))&&Fc(b)),a):(a.eventSystemFlags|=d,b=a.targetContainers,null!==e&&-1===b.indexOf(e)&&b.push(e),a)}function Vc(a){var b=Wc(a.target);if(null!==b){var c=Vb(b);if(null!==c)if(13===(b=c.tag)){if(null!==(b=Wb(c)))return a.blockedOn=b,void Ic(a.priority,(function(){Gc(c)}))}else if(3===b&&c.stateNode.current.memoizedState.isDehydrated)return void(a.blockedOn=3===c.tag?c.stateNode.containerInfo:null)}a.blockedOn=null}function Xc(a){if(null!==a.blockedOn)return!1;for(var b=a.targetContainers;0<b.length;){var c=Yc(a.domEventName,a.eventSystemFlags,b[0],a.nativeEvent);if(null!==c)return null!==(b=Cb(c))&&Fc(b),a.blockedOn=c,!1;var d=new(c=a.nativeEvent).constructor(c.type,c);wb=d,c.target.dispatchEvent(d),wb=null,b.shift()}return!0}function Zc(a,b,c){Xc(a)&&c.delete(b)}function $c(){Jc=!1,null!==Lc&&Xc(Lc)&&(Lc=null),null!==Mc&&Xc(Mc)&&(Mc=null),null!==Nc&&Xc(Nc)&&(Nc=null),Oc.forEach(Zc),Pc.forEach(Zc)}function ad(a,b){a.blockedOn===b&&(a.blockedOn=null,Jc||(Jc=!0,ca.unstable_scheduleCallback(ca.unstable_NormalPriority,$c)))}function bd(a){function b(b){return ad(b,a)}if(0<Kc.length){ad(Kc[0],a);for(var c=1;c<Kc.length;c++){var d=Kc[c];d.blockedOn===a&&(d.blockedOn=null)}}for(null!==Lc&&ad(Lc,a),null!==Mc&&ad(Mc,a),null!==Nc&&ad(Nc,a),Oc.forEach(b),Pc.forEach(b),c=0;c<Qc.length;c++)(d=Qc[c]).blockedOn===a&&(d.blockedOn=null);for(;0<Qc.length&&null===(c=Qc[0]).blockedOn;)Vc(c),null===c.blockedOn&&Qc.shift()}var cd=ua.ReactCurrentBatchConfig,dd=!0;function ed(a,b,c,d){var e=C,f=cd.transition;cd.transition=null;try{C=1,fd(a,b,c,d)}finally{C=e,cd.transition=f}}function gd(a,b,c,d){var e=C,f=cd.transition;cd.transition=null;try{C=4,fd(a,b,c,d)}finally{C=e,cd.transition=f}}function fd(a,b,c,d){if(dd){var e=Yc(a,b,c,d);if(null===e)hd(a,b,d,id,c),Sc(a,d);else if(function Uc(a,b,c,d,e){switch(b){case"focusin":return Lc=Tc(Lc,a,b,c,d,e),!0;case"dragenter":return Mc=Tc(Mc,a,b,c,d,e),!0;case"mouseover":return Nc=Tc(Nc,a,b,c,d,e),!0;case"pointerover":var f=e.pointerId;return Oc.set(f,Tc(Oc.get(f)||null,a,b,c,d,e)),!0;case"gotpointercapture":return f=e.pointerId,Pc.set(f,Tc(Pc.get(f)||null,a,b,c,d,e)),!0}return!1}(e,a,b,c,d))d.stopPropagation();else if(Sc(a,d),4&b&&-1<Rc.indexOf(a)){for(;null!==e;){var f=Cb(e);if(null!==f&&Ec(f),null===(f=Yc(a,b,c,d))&&hd(a,b,d,id,c),f===e)break;e=f}null!==e&&d.stopPropagation()}else hd(a,b,d,null,c)}}var id=null;function Yc(a,b,c,d){if(id=null,null!==(a=Wc(a=xb(d))))if(null===(b=Vb(a)))a=null;else if(13===(c=b.tag)){if(null!==(a=Wb(b)))return a;a=null}else if(3===c){if(b.stateNode.current.memoizedState.isDehydrated)return 3===b.tag?b.stateNode.containerInfo:null;a=null}else b!==a&&(a=null);return id=a,null}function jd(a){switch(a){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ec()){case fc:return 1;case gc:return 4;case hc:case ic:return 16;case jc:return 536870912;default:return 16}default:return 16}}var kd=null,ld=null,md=null;function nd(){if(md)return md;var a,d,b=ld,c=b.length,e="value"in kd?kd.value:kd.textContent,f=e.length;for(a=0;a<c&&b[a]===e[a];a++);var g=c-a;for(d=1;d<=g&&b[c-d]===e[f-d];d++);return md=e.slice(a,1<d?1-d:void 0)}function od(a){var b=a.keyCode;return"charCode"in a?0===(a=a.charCode)&&13===b&&(a=13):a=b,10===a&&(a=13),32<=a||13===a?a:0}function pd(){return!0}function qd(){return!1}function rd(a){function b(b,d,e,f,g){for(var c in this._reactName=b,this._targetInst=e,this.type=d,this.nativeEvent=f,this.target=g,this.currentTarget=null,a)a.hasOwnProperty(c)&&(b=a[c],this[c]=b?b(f):f[c]);return this.isDefaultPrevented=(null!=f.defaultPrevented?f.defaultPrevented:!1===f.returnValue)?pd:qd,this.isPropagationStopped=qd,this}return A(b.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!=typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=pd)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!=typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=pd)},persist:function(){},isPersistent:pd}),b}var wd,xd,yd,sd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=rd(sd),ud=A({},sd,{view:0,detail:0}),vd=rd(ud),Ad=A({},ud,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd,button:0,buttons:0,relatedTarget:function(a){return void 0===a.relatedTarget?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==yd&&(yd&&"mousemove"===a.type?(wd=a.screenX-yd.screenX,xd=a.screenY-yd.screenY):xd=wd=0,yd=a),wd)},movementY:function(a){return"movementY"in a?a.movementY:xd}}),Bd=rd(Ad),Dd=rd(A({},Ad,{dataTransfer:0})),Fd=rd(A({},ud,{relatedTarget:0})),Hd=rd(A({},sd,{animationName:0,elapsedTime:0,pseudoElement:0})),Id=A({},sd,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),Jd=rd(Id),Ld=rd(A({},sd,{data:0})),Md={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nd={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Od={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pd(a){var b=this.nativeEvent;return b.getModifierState?b.getModifierState(a):!!(a=Od[a])&&!!b[a]}function zd(){return Pd}var Qd=A({},ud,{key:function(a){if(a.key){var b=Md[a.key]||a.key;if("Unidentified"!==b)return b}return"keypress"===a.type?13===(a=od(a))?"Enter":String.fromCharCode(a):"keydown"===a.type||"keyup"===a.type?Nd[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd,charCode:function(a){return"keypress"===a.type?od(a):0},keyCode:function(a){return"keydown"===a.type||"keyup"===a.type?a.keyCode:0},which:function(a){return"keypress"===a.type?od(a):"keydown"===a.type||"keyup"===a.type?a.keyCode:0}}),Rd=rd(Qd),Td=rd(A({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Vd=rd(A({},ud,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd})),Xd=rd(A({},sd,{propertyName:0,elapsedTime:0,pseudoElement:0})),Yd=A({},Ad,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),Zd=rd(Yd),$d=[9,13,27,32],ae=ia&&"CompositionEvent"in window,be=null;ia&&"documentMode"in document&&(be=document.documentMode);var ce=ia&&"TextEvent"in window&&!be,de=ia&&(!ae||be&&8<be&&11>=be),ee=String.fromCharCode(32),fe=!1;function ge(a,b){switch(a){case"keyup":return-1!==$d.indexOf(b.keyCode);case"keydown":return 229!==b.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he(a){return"object"==typeof(a=a.detail)&&"data"in a?a.data:null}var ie=!1;var le={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function me(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return"input"===b?!!le[a.type]:"textarea"===b}function ne(a,b,c,d){Eb(d),0<(b=oe(b,"onChange")).length&&(c=new td("onChange","change",null,c,d),a.push({event:c,listeners:b}))}var pe=null,qe=null;function re(a){se(a,0)}function te(a){if(Wa(ue(a)))return a}function ve(a,b){if("change"===a)return b}var we=!1;if(ia){var xe;if(ia){var ye="oninput"in document;if(!ye){var ze=document.createElement("div");ze.setAttribute("oninput","return;"),ye="function"==typeof ze.oninput}xe=ye}else xe=!1;we=xe&&(!document.documentMode||9<document.documentMode)}function Ae(){pe&&(pe.detachEvent("onpropertychange",Be),qe=pe=null)}function Be(a){if("value"===a.propertyName&&te(qe)){var b=[];ne(b,qe,a,xb(a)),Jb(re,b)}}function Ce(a,b,c){"focusin"===a?(Ae(),qe=c,(pe=b).attachEvent("onpropertychange",Be)):"focusout"===a&&Ae()}function De(a){if("selectionchange"===a||"keyup"===a||"keydown"===a)return te(qe)}function Ee(a,b){if("click"===a)return te(b)}function Fe(a,b){if("input"===a||"change"===a)return te(b)}var He="function"==typeof Object.is?Object.is:function Ge(a,b){return a===b&&(0!==a||1/a==1/b)||a!=a&&b!=b};function Ie(a,b){if(He(a,b))return!0;if("object"!=typeof a||null===a||"object"!=typeof b||null===b)return!1;var c=Object.keys(a),d=Object.keys(b);if(c.length!==d.length)return!1;for(d=0;d<c.length;d++){var e=c[d];if(!ja.call(b,e)||!He(a[e],b[e]))return!1}return!0}function Je(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Ke(a,b){var d,c=Je(a);for(a=0;c;){if(3===c.nodeType){if(d=a+c.textContent.length,a<=b&&d>=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=Je(c)}}function Le(a,b){return!(!a||!b)&&(a===b||(!a||3!==a.nodeType)&&(b&&3===b.nodeType?Le(a,b.parentNode):"contains"in a?a.contains(b):!!a.compareDocumentPosition&&!!(16&a.compareDocumentPosition(b))))}function Me(){for(var a=window,b=Xa();b instanceof a.HTMLIFrameElement;){try{var c="string"==typeof b.contentWindow.location.href}catch(d){c=!1}if(!c)break;b=Xa((a=b.contentWindow).document)}return b}function Ne(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&("input"===b&&("text"===a.type||"search"===a.type||"tel"===a.type||"url"===a.type||"password"===a.type)||"textarea"===b||"true"===a.contentEditable)}function Oe(a){var b=Me(),c=a.focusedElem,d=a.selectionRange;if(b!==c&&c&&c.ownerDocument&&Le(c.ownerDocument.documentElement,c)){if(null!==d&&Ne(c))if(b=d.start,void 0===(a=d.end)&&(a=b),"selectionStart"in c)c.selectionStart=b,c.selectionEnd=Math.min(a,c.value.length);else if((a=(b=c.ownerDocument||document)&&b.defaultView||window).getSelection){a=a.getSelection();var e=c.textContent.length,f=Math.min(d.start,e);d=void 0===d.end?f:Math.min(d.end,e),!a.extend&&f>d&&(e=d,d=f,f=e),e=Ke(c,f);var g=Ke(c,d);e&&g&&(1!==a.rangeCount||a.anchorNode!==e.node||a.anchorOffset!==e.offset||a.focusNode!==g.node||a.focusOffset!==g.offset)&&((b=b.createRange()).setStart(e.node,e.offset),a.removeAllRanges(),f>d?(a.addRange(b),a.extend(g.node,g.offset)):(b.setEnd(g.node,g.offset),a.addRange(b)))}for(b=[],a=c;a=a.parentNode;)1===a.nodeType&&b.push({element:a,left:a.scrollLeft,top:a.scrollTop});for("function"==typeof c.focus&&c.focus(),c=0;c<b.length;c++)(a=b[c]).element.scrollLeft=a.left,a.element.scrollTop=a.top}}var Pe=ia&&"documentMode"in document&&11>=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;function Ue(a,b,c){var d=c.window===c?c.document:9===c.nodeType?c:c.ownerDocument;Te||null==Qe||Qe!==Xa(d)||("selectionStart"in(d=Qe)&&Ne(d)?d={start:d.selectionStart,end:d.selectionEnd}:d={anchorNode:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset},Se&&Ie(Se,d)||(Se=d,0<(d=oe(Re,"onSelect")).length&&(b=new td("onSelect","select",null,b,c),a.push({event:b,listeners:d}),b.target=Qe)))}function Ve(a,b){var c={};return c[a.toLowerCase()]=b.toLowerCase(),c["Webkit"+a]="webkit"+b,c["Moz"+a]="moz"+b,c}var We={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},Xe={},Ye={};function Ze(a){if(Xe[a])return Xe[a];if(!We[a])return a;var c,b=We[a];for(c in b)if(b.hasOwnProperty(c)&&c in Ye)return Xe[a]=b[c];return a}ia&&(Ye=document.createElement("div").style,"AnimationEvent"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),"TransitionEvent"in window||delete We.transitionend.transition);var $e=Ze("animationend"),af=Ze("animationiteration"),bf=Ze("animationstart"),cf=Ze("transitionend"),df=new Map,ef="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ff(a,b){df.set(a,b),fa(b,[a])}for(var gf=0;gf<ef.length;gf++){var hf=ef[gf];ff(hf.toLowerCase(),"on"+(hf[0].toUpperCase()+hf.slice(1)))}ff($e,"onAnimationEnd"),ff(af,"onAnimationIteration"),ff(bf,"onAnimationStart"),ff("dblclick","onDoubleClick"),ff("focusin","onFocus"),ff("focusout","onBlur"),ff(cf,"onTransitionEnd"),ha("onMouseEnter",["mouseout","mouseover"]),ha("onMouseLeave",["mouseout","mouseover"]),ha("onPointerEnter",["pointerout","pointerover"]),ha("onPointerLeave",["pointerout","pointerover"]),fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),fa("onBeforeInput",["compositionend","keypress","textInput","paste"]),fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lf="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mf=new Set("cancel close invalid load scroll toggle".split(" ").concat(lf));function nf(a,b,c){var d=a.type||"unknown-event";a.currentTarget=c,function Ub(a,b,c,d,e,f,g,h,k){if(Tb.apply(this,arguments),Ob){if(!Ob)throw Error(p(198));var l=Pb;Ob=!1,Pb=null,Qb||(Qb=!0,Rb=l)}}(d,b,void 0,a),a.currentTarget=null}function se(a,b){b=!!(4&b);for(var c=0;c<a.length;c++){var d=a[c],e=d.event;d=d.listeners;a:{var f=void 0;if(b)for(var g=d.length-1;0<=g;g--){var h=d[g],k=h.instance,l=h.currentTarget;if(h=h.listener,k!==f&&e.isPropagationStopped())break a;nf(e,h,l),f=k}else for(g=0;g<d.length;g++){if(k=(h=d[g]).instance,l=h.currentTarget,h=h.listener,k!==f&&e.isPropagationStopped())break a;nf(e,h,l),f=k}}}if(Qb)throw a=Rb,Qb=!1,Rb=null,a}function D(a,b){var c=b[of];void 0===c&&(c=b[of]=new Set);var d=a+"__bubble";c.has(d)||(pf(b,a,2,!1),c.add(d))}function qf(a,b,c){var d=0;b&&(d|=4),pf(c,a,d,b)}var rf="_reactListening"+Math.random().toString(36).slice(2);function sf(a){if(!a[rf]){a[rf]=!0,da.forEach((function(b){"selectionchange"!==b&&(mf.has(b)||qf(b,!1,a),qf(b,!0,a))}));var b=9===a.nodeType?a:a.ownerDocument;null===b||b[rf]||(b[rf]=!0,qf("selectionchange",!1,b))}}function pf(a,b,c,d){switch(jd(b)){case 1:var e=ed;break;case 4:e=gd;break;default:e=fd}c=e.bind(null,b,c,a),e=void 0,!Lb||"touchstart"!==b&&"touchmove"!==b&&"wheel"!==b||(e=!0),d?void 0!==e?a.addEventListener(b,c,{capture:!0,passive:e}):a.addEventListener(b,c,!0):void 0!==e?a.addEventListener(b,c,{passive:e}):a.addEventListener(b,c,!1)}function hd(a,b,c,d,e){var f=d;if(!(1&b||2&b||null===d))a:for(;;){if(null===d)return;var g=d.tag;if(3===g||4===g){var h=d.stateNode.containerInfo;if(h===e||8===h.nodeType&&h.parentNode===e)break;if(4===g)for(g=d.return;null!==g;){var k=g.tag;if((3===k||4===k)&&((k=g.stateNode.containerInfo)===e||8===k.nodeType&&k.parentNode===e))return;g=g.return}for(;null!==h;){if(null===(g=Wc(h)))return;if(5===(k=g.tag)||6===k){d=f=g;continue a}h=h.parentNode}}d=d.return}Jb((function(){var d=f,e=xb(c),g=[];a:{var h=df.get(a);if(void 0!==h){var k=td,n=a;switch(a){case"keypress":if(0===od(c))break a;case"keydown":case"keyup":k=Rd;break;case"focusin":n="focus",k=Fd;break;case"focusout":n="blur",k=Fd;break;case"beforeblur":case"afterblur":k=Fd;break;case"click":if(2===c.button)break a;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=Dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=Vd;break;case $e:case af:case bf:k=Hd;break;case cf:k=Xd;break;case"scroll":k=vd;break;case"wheel":k=Zd;break;case"copy":case"cut":case"paste":k=Jd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=Td}var t=!!(4&b),J=!t&&"scroll"===a,x=t?null!==h?h+"Capture":null:h;t=[];for(var u,w=d;null!==w;){var F=(u=w).stateNode;if(5===u.tag&&null!==F&&(u=F,null!==x&&(null!=(F=Kb(w,x))&&t.push(tf(w,F,u)))),J)break;w=w.return}0<t.length&&(h=new k(h,n,null,c,e),g.push({event:h,listeners:t}))}}if(!(7&b)){if(k="mouseout"===a||"pointerout"===a,(!(h="mouseover"===a||"pointerover"===a)||c===wb||!(n=c.relatedTarget||c.fromElement)||!Wc(n)&&!n[uf])&&(k||h)&&(h=e.window===e?e:(h=e.ownerDocument)?h.defaultView||h.parentWindow:window,k?(k=d,null!==(n=(n=c.relatedTarget||c.toElement)?Wc(n):null)&&(n!==(J=Vb(n))||5!==n.tag&&6!==n.tag)&&(n=null)):(k=null,n=d),k!==n)){if(t=Bd,F="onMouseLeave",x="onMouseEnter",w="mouse","pointerout"!==a&&"pointerover"!==a||(t=Td,F="onPointerLeave",x="onPointerEnter",w="pointer"),J=null==k?h:ue(k),u=null==n?h:ue(n),(h=new t(F,w+"leave",k,c,e)).target=J,h.relatedTarget=u,F=null,Wc(e)===d&&((t=new t(x,w+"enter",n,c,e)).target=u,t.relatedTarget=J,F=t),J=F,k&&n)b:{for(x=n,w=0,u=t=k;u;u=vf(u))w++;for(u=0,F=x;F;F=vf(F))u++;for(;0<w-u;)t=vf(t),w--;for(;0<u-w;)x=vf(x),u--;for(;w--;){if(t===x||null!==x&&t===x.alternate)break b;t=vf(t),x=vf(x)}t=null}else t=null;null!==k&&wf(g,h,k,t,!1),null!==n&&null!==J&&wf(g,J,n,t,!0)}if("select"===(k=(h=d?ue(d):window).nodeName&&h.nodeName.toLowerCase())||"input"===k&&"file"===h.type)var na=ve;else if(me(h))if(we)na=Fe;else{na=De;var xa=Ce}else(k=h.nodeName)&&"input"===k.toLowerCase()&&("checkbox"===h.type||"radio"===h.type)&&(na=Ee);switch(na&&(na=na(a,d))?ne(g,na,c,e):(xa&&xa(a,h,d),"focusout"===a&&(xa=h._wrapperState)&&xa.controlled&&"number"===h.type&&cb(h,"number",h.value)),xa=d?ue(d):window,a){case"focusin":(me(xa)||"true"===xa.contentEditable)&&(Qe=xa,Re=d,Se=null);break;case"focusout":Se=Re=Qe=null;break;case"mousedown":Te=!0;break;case"contextmenu":case"mouseup":case"dragend":Te=!1,Ue(g,c,e);break;case"selectionchange":if(Pe)break;case"keydown":case"keyup":Ue(g,c,e)}var $a;if(ae)b:{switch(a){case"compositionstart":var ba="onCompositionStart";break b;case"compositionend":ba="onCompositionEnd";break b;case"compositionupdate":ba="onCompositionUpdate";break b}ba=void 0}else ie?ge(a,c)&&(ba="onCompositionEnd"):"keydown"===a&&229===c.keyCode&&(ba="onCompositionStart");ba&&(de&&"ko"!==c.locale&&(ie||"onCompositionStart"!==ba?"onCompositionEnd"===ba&&ie&&($a=nd()):(ld="value"in(kd=e)?kd.value:kd.textContent,ie=!0)),0<(xa=oe(d,ba)).length&&(ba=new Ld(ba,a,null,c,e),g.push({event:ba,listeners:xa}),$a?ba.data=$a:null!==($a=he(c))&&(ba.data=$a))),($a=ce?function je(a,b){switch(a){case"compositionend":return he(b);case"keypress":return 32!==b.which?null:(fe=!0,ee);case"textInput":return(a=b.data)===ee&&fe?null:a;default:return null}}(a,c):function ke(a,b){if(ie)return"compositionend"===a||!ae&&ge(a,b)?(a=nd(),md=ld=kd=null,ie=!1,a):null;switch(a){case"paste":default:return null;case"keypress":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1<b.char.length)return b.char;if(b.which)return String.fromCharCode(b.which)}return null;case"compositionend":return de&&"ko"!==b.locale?null:b.data}}(a,c))&&(0<(d=oe(d,"onBeforeInput")).length&&(e=new Ld("onBeforeInput","beforeinput",null,c,e),g.push({event:e,listeners:d}),e.data=$a))}se(g,b)}))}function tf(a,b,c){return{instance:a,listener:b,currentTarget:c}}function oe(a,b){for(var c=b+"Capture",d=[];null!==a;){var e=a,f=e.stateNode;5===e.tag&&null!==f&&(e=f,null!=(f=Kb(a,c))&&d.unshift(tf(a,f,e)),null!=(f=Kb(a,b))&&d.push(tf(a,f,e))),a=a.return}return d}function vf(a){if(null===a)return null;do{a=a.return}while(a&&5!==a.tag);return a||null}function wf(a,b,c,d,e){for(var f=b._reactName,g=[];null!==c&&c!==d;){var h=c,k=h.alternate,l=h.stateNode;if(null!==k&&k===d)break;5===h.tag&&null!==l&&(h=l,e?null!=(k=Kb(c,f))&&g.unshift(tf(c,k,h)):e||null!=(k=Kb(c,f))&&g.push(tf(c,k,h))),c=c.return}0!==g.length&&a.push({event:b,listeners:g})}var xf=/\r\n?/g,yf=/\u0000|\uFFFD/g;function zf(a){return("string"==typeof a?a:""+a).replace(xf,"\n").replace(yf,"")}function Af(a,b,c){if(b=zf(b),zf(a)!==b&&c)throw Error(p(425))}function Bf(){}var Cf=null,Df=null;function Ef(a,b){return"textarea"===a||"noscript"===a||"string"==typeof b.children||"number"==typeof b.children||"object"==typeof b.dangerouslySetInnerHTML&&null!==b.dangerouslySetInnerHTML&&null!=b.dangerouslySetInnerHTML.__html}var Ff="function"==typeof setTimeout?setTimeout:void 0,Gf="function"==typeof clearTimeout?clearTimeout:void 0,Hf="function"==typeof Promise?Promise:void 0,Jf="function"==typeof queueMicrotask?queueMicrotask:void 0!==Hf?function(a){return Hf.resolve(null).then(a).catch(If)}:Ff;function If(a){setTimeout((function(){throw a}))}function Kf(a,b){var c=b,d=0;do{var e=c.nextSibling;if(a.removeChild(c),e&&8===e.nodeType)if("/$"===(c=e.data)){if(0===d)return a.removeChild(e),void bd(b);d--}else"$"!==c&&"$?"!==c&&"$!"!==c||d++;c=e}while(c);bd(b)}function Lf(a){for(;null!=a;a=a.nextSibling){var b=a.nodeType;if(1===b||3===b)break;if(8===b){if("$"===(b=a.data)||"$!"===b||"$?"===b)break;if("/$"===b)return null}}return a}function Mf(a){a=a.previousSibling;for(var b=0;a;){if(8===a.nodeType){var c=a.data;if("$"===c||"$!"===c||"$?"===c){if(0===b)return a;b--}else"/$"===c&&b++}a=a.previousSibling}return null}var Nf=Math.random().toString(36).slice(2),Of="__reactFiber$"+Nf,Pf="__reactProps$"+Nf,uf="__reactContainer$"+Nf,of="__reactEvents$"+Nf,Qf="__reactListeners$"+Nf,Rf="__reactHandles$"+Nf;function Wc(a){var b=a[Of];if(b)return b;for(var c=a.parentNode;c;){if(b=c[uf]||c[Of]){if(c=b.alternate,null!==b.child||null!==c&&null!==c.child)for(a=Mf(a);null!==a;){if(c=a[Of])return c;a=Mf(a)}return b}c=(a=c).parentNode}return null}function Cb(a){return!(a=a[Of]||a[uf])||5!==a.tag&&6!==a.tag&&13!==a.tag&&3!==a.tag?null:a}function ue(a){if(5===a.tag||6===a.tag)return a.stateNode;throw Error(p(33))}function Db(a){return a[Pf]||null}var Sf=[],Tf=-1;function Uf(a){return{current:a}}function E(a){0>Tf||(a.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(a,b){Tf++,Sf[Tf]=a.current,a.current=b}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(a,b){var c=a.type.contextTypes;if(!c)return Vf;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var f,e={};for(f in c)e[f]=b[f];return d&&((a=a.stateNode).__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e),e}function Zf(a){return null!=(a=a.childContextTypes)}function $f(){E(Wf),E(H)}function ag(a,b,c){if(H.current!==Vf)throw Error(p(168));G(H,b),G(Wf,c)}function bg(a,b,c){var d=a.stateNode;if(b=b.childContextTypes,"function"!=typeof d.getChildContext)return c;for(var e in d=d.getChildContext())if(!(e in b))throw Error(p(108,Ra(a)||"Unknown",e));return A({},c,d)}function cg(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vf,Xf=H.current,G(H,a),G(Wf,Wf.current),!0}function dg(a,b,c){var d=a.stateNode;if(!d)throw Error(p(169));c?(a=bg(a,b,Xf),d.__reactInternalMemoizedMergedChildContext=a,E(Wf),E(H),G(H,a)):E(Wf),G(Wf,c)}var eg=null,fg=!1,gg=!1;function hg(a){null===eg?eg=[a]:eg.push(a)}function jg(){if(!gg&&null!==eg){gg=!0;var a=0,b=C;try{var c=eg;for(C=1;a<c.length;a++){var d=c[a];do{d=d(!0)}while(null!==d)}eg=null,fg=!1}catch(e){throw null!==eg&&(eg=eg.slice(a+1)),ac(fc,jg),e}finally{C=b,gg=!1}}return null}var kg=[],lg=0,mg=null,ng=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(a,b){kg[lg++]=ng,kg[lg++]=mg,mg=a,ng=b}function ug(a,b,c){og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,qg=a;var d=rg;a=sg;var e=32-oc(d)-1;d&=~(1<<e),c+=1;var f=32-oc(b)+e;if(30<f){var g=e-e%5;f=(d&(1<<g)-1).toString(32),d>>=g,e-=g,rg=1<<32-oc(b)+e|c<<e|d,sg=f+a}else rg=1<<f|c<<e|d,sg=a}function vg(a){null!==a.return&&(tg(a,1),ug(a,1,0))}function wg(a){for(;a===mg;)mg=kg[--lg],kg[lg]=null,ng=kg[--lg],kg[lg]=null;for(;a===qg;)qg=og[--pg],og[pg]=null,sg=og[--pg],og[pg]=null,rg=og[--pg],og[pg]=null}var xg=null,yg=null,I=!1,zg=null;function Ag(a,b){var c=Bg(5,null,null,0);c.elementType="DELETED",c.stateNode=b,c.return=a,null===(b=a.deletions)?(a.deletions=[c],a.flags|=16):b.push(c)}function Cg(a,b){switch(a.tag){case 5:var c=a.type;return null!==(b=1!==b.nodeType||c.toLowerCase()!==b.nodeName.toLowerCase()?null:b)&&(a.stateNode=b,xg=a,yg=Lf(b.firstChild),!0);case 6:return null!==(b=""===a.pendingProps||3!==b.nodeType?null:b)&&(a.stateNode=b,xg=a,yg=null,!0);case 13:return null!==(b=8!==b.nodeType?null:b)&&(c=null!==qg?{id:rg,overflow:sg}:null,a.memoizedState={dehydrated:b,treeContext:c,retryLane:1073741824},(c=Bg(18,null,null,0)).stateNode=b,c.return=a,a.child=c,xg=a,yg=null,!0);default:return!1}}function Dg(a){return!(!(1&a.mode)||128&a.flags)}function Eg(a){if(I){var b=yg;if(b){var c=b;if(!Cg(a,b)){if(Dg(a))throw Error(p(418));b=Lf(c.nextSibling);var d=xg;b&&Cg(a,b)?Ag(d,c):(a.flags=-4097&a.flags|2,I=!1,xg=a)}}else{if(Dg(a))throw Error(p(418));a.flags=-4097&a.flags|2,I=!1,xg=a}}}function Fg(a){for(a=a.return;null!==a&&5!==a.tag&&3!==a.tag&&13!==a.tag;)a=a.return;xg=a}function Gg(a){if(a!==xg)return!1;if(!I)return Fg(a),I=!0,!1;var b;if((b=3!==a.tag)&&!(b=5!==a.tag)&&(b="head"!==(b=a.type)&&"body"!==b&&!Ef(a.type,a.memoizedProps)),b&&(b=yg)){if(Dg(a))throw Hg(),Error(p(418));for(;b;)Ag(a,b),b=Lf(b.nextSibling)}if(Fg(a),13===a.tag){if(!(a=null!==(a=a.memoizedState)?a.dehydrated:null))throw Error(p(317));a:{for(a=a.nextSibling,b=0;a;){if(8===a.nodeType){var c=a.data;if("/$"===c){if(0===b){yg=Lf(a.nextSibling);break a}b--}else"$"!==c&&"$!"!==c&&"$?"!==c||b++}a=a.nextSibling}yg=null}}else yg=xg?Lf(a.stateNode.nextSibling):null;return!0}function Hg(){for(var a=yg;a;)a=Lf(a.nextSibling)}function Ig(){yg=xg=null,I=!1}function Jg(a){null===zg?zg=[a]:zg.push(a)}var Kg=ua.ReactCurrentBatchConfig;function Lg(a,b,c){if(null!==(a=c.ref)&&"function"!=typeof a&&"object"!=typeof a){if(c._owner){if(c=c._owner){if(1!==c.tag)throw Error(p(309));var d=c.stateNode}if(!d)throw Error(p(147,a));var e=d,f=""+a;return null!==b&&null!==b.ref&&"function"==typeof b.ref&&b.ref._stringRef===f?b.ref:(b=function(a){var b=e.refs;null===a?delete b[f]:b[f]=a},b._stringRef=f,b)}if("string"!=typeof a)throw Error(p(284));if(!c._owner)throw Error(p(290,a))}return a}function Mg(a,b){throw a=Object.prototype.toString.call(b),Error(p(31,"[object Object]"===a?"object with keys {"+Object.keys(b).join(", ")+"}":a))}function Ng(a){return(0,a._init)(a._payload)}function Og(a){function b(b,c){if(a){var d=b.deletions;null===d?(b.deletions=[c],b.flags|=16):d.push(c)}}function c(c,d){if(!a)return null;for(;null!==d;)b(c,d),d=d.sibling;return null}function d(a,b){for(a=new Map;null!==b;)null!==b.key?a.set(b.key,b):a.set(b.index,b),b=b.sibling;return a}function e(a,b){return(a=Pg(a,b)).index=0,a.sibling=null,a}function f(b,c,d){return b.index=d,a?null!==(d=b.alternate)?(d=d.index)<c?(b.flags|=2,c):d:(b.flags|=2,c):(b.flags|=1048576,c)}function g(b){return a&&null===b.alternate&&(b.flags|=2),b}function h(a,b,c,d){return null===b||6!==b.tag?((b=Qg(c,a.mode,d)).return=a,b):((b=e(b,c)).return=a,b)}function k(a,b,c,d){var f=c.type;return f===ya?m(a,b,c.props.children,d,c.key):null!==b&&(b.elementType===f||"object"==typeof f&&null!==f&&f.$$typeof===Ha&&Ng(f)===b.type)?((d=e(b,c.props)).ref=Lg(a,b,c),d.return=a,d):((d=Rg(c.type,c.key,c.props,null,a.mode,d)).ref=Lg(a,b,c),d.return=a,d)}function l(a,b,c,d){return null===b||4!==b.tag||b.stateNode.containerInfo!==c.containerInfo||b.stateNode.implementation!==c.implementation?((b=Sg(c,a.mode,d)).return=a,b):((b=e(b,c.children||[])).return=a,b)}function m(a,b,c,d,f){return null===b||7!==b.tag?((b=Tg(c,a.mode,d,f)).return=a,b):((b=e(b,c)).return=a,b)}function q(a,b,c){if("string"==typeof b&&""!==b||"number"==typeof b)return(b=Qg(""+b,a.mode,c)).return=a,b;if("object"==typeof b&&null!==b){switch(b.$$typeof){case va:return(c=Rg(b.type,b.key,b.props,null,a.mode,c)).ref=Lg(a,null,b),c.return=a,c;case wa:return(b=Sg(b,a.mode,c)).return=a,b;case Ha:return q(a,(0,b._init)(b._payload),c)}if(eb(b)||Ka(b))return(b=Tg(b,a.mode,c,null)).return=a,b;Mg(a,b)}return null}function r(a,b,c,d){var e=null!==b?b.key:null;if("string"==typeof c&&""!==c||"number"==typeof c)return null!==e?null:h(a,b,""+c,d);if("object"==typeof c&&null!==c){switch(c.$$typeof){case va:return c.key===e?k(a,b,c,d):null;case wa:return c.key===e?l(a,b,c,d):null;case Ha:return r(a,b,(e=c._init)(c._payload),d)}if(eb(c)||Ka(c))return null!==e?null:m(a,b,c,d,null);Mg(a,c)}return null}function y(a,b,c,d,e){if("string"==typeof d&&""!==d||"number"==typeof d)return h(b,a=a.get(c)||null,""+d,e);if("object"==typeof d&&null!==d){switch(d.$$typeof){case va:return k(b,a=a.get(null===d.key?c:d.key)||null,d,e);case wa:return l(b,a=a.get(null===d.key?c:d.key)||null,d,e);case Ha:return y(a,b,c,(0,d._init)(d._payload),e)}if(eb(d)||Ka(d))return m(b,a=a.get(c)||null,d,e,null);Mg(b,d)}return null}function n(e,g,h,k){for(var l=null,m=null,u=g,w=g=0,x=null;null!==u&&w<h.length;w++){u.index>w?(x=u,u=null):x=u.sibling;var n=r(e,u,h[w],k);if(null===n){null===u&&(u=x);break}a&&u&&null===n.alternate&&b(e,u),g=f(n,g,w),null===m?l=n:m.sibling=n,m=n,u=x}if(w===h.length)return c(e,u),I&&tg(e,w),l;if(null===u){for(;w<h.length;w++)null!==(u=q(e,h[w],k))&&(g=f(u,g,w),null===m?l=u:m.sibling=u,m=u);return I&&tg(e,w),l}for(u=d(e,u);w<h.length;w++)null!==(x=y(u,e,w,h[w],k))&&(a&&null!==x.alternate&&u.delete(null===x.key?w:x.key),g=f(x,g,w),null===m?l=x:m.sibling=x,m=x);return a&&u.forEach((function(a){return b(e,a)})),I&&tg(e,w),l}function t(e,g,h,k){var l=Ka(h);if("function"!=typeof l)throw Error(p(150));if(null==(h=l.call(h)))throw Error(p(151));for(var u=l=null,m=g,w=g=0,x=null,n=h.next();null!==m&&!n.done;w++,n=h.next()){m.index>w?(x=m,m=null):x=m.sibling;var t=r(e,m,n.value,k);if(null===t){null===m&&(m=x);break}a&&m&&null===t.alternate&&b(e,m),g=f(t,g,w),null===u?l=t:u.sibling=t,u=t,m=x}if(n.done)return c(e,m),I&&tg(e,w),l;if(null===m){for(;!n.done;w++,n=h.next())null!==(n=q(e,n.value,k))&&(g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);return I&&tg(e,w),l}for(m=d(e,m);!n.done;w++,n=h.next())null!==(n=y(m,e,w,n.value,k))&&(a&&null!==n.alternate&&m.delete(null===n.key?w:n.key),g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);return a&&m.forEach((function(a){return b(e,a)})),I&&tg(e,w),l}return function J(a,d,f,h){if("object"==typeof f&&null!==f&&f.type===ya&&null===f.key&&(f=f.props.children),"object"==typeof f&&null!==f){switch(f.$$typeof){case va:a:{for(var k=f.key,l=d;null!==l;){if(l.key===k){if((k=f.type)===ya){if(7===l.tag){c(a,l.sibling),(d=e(l,f.props.children)).return=a,a=d;break a}}else if(l.elementType===k||"object"==typeof k&&null!==k&&k.$$typeof===Ha&&Ng(k)===l.type){c(a,l.sibling),(d=e(l,f.props)).ref=Lg(a,l,f),d.return=a,a=d;break a}c(a,l);break}b(a,l),l=l.sibling}f.type===ya?((d=Tg(f.props.children,a.mode,h,f.key)).return=a,a=d):((h=Rg(f.type,f.key,f.props,null,a.mode,h)).ref=Lg(a,d,f),h.return=a,a=h)}return g(a);case wa:a:{for(l=f.key;null!==d;){if(d.key===l){if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling),(d=e(d,f.children||[])).return=a,a=d;break a}c(a,d);break}b(a,d),d=d.sibling}(d=Sg(f,a.mode,h)).return=a,a=d}return g(a);case Ha:return J(a,d,(l=f._init)(f._payload),h)}if(eb(f))return n(a,d,f,h);if(Ka(f))return t(a,d,f,h);Mg(a,f)}return"string"==typeof f&&""!==f||"number"==typeof f?(f=""+f,null!==d&&6===d.tag?(c(a,d.sibling),(d=e(d,f)).return=a,a=d):(c(a,d),(d=Qg(f,a.mode,h)).return=a,a=d),g(a)):c(a,d)}}var Ug=Og(!0),Vg=Og(!1),Wg=Uf(null),Xg=null,Yg=null,Zg=null;function $g(){Zg=Yg=Xg=null}function ah(a){var b=Wg.current;E(Wg),a._currentValue=b}function bh(a,b,c){for(;null!==a;){var d=a.alternate;if((a.childLanes&b)!==b?(a.childLanes|=b,null!==d&&(d.childLanes|=b)):null!==d&&(d.childLanes&b)!==b&&(d.childLanes|=b),a===c)break;a=a.return}}function ch(a,b){Xg=a,Zg=Yg=null,null!==(a=a.dependencies)&&null!==a.firstContext&&(!!(a.lanes&b)&&(dh=!0),a.firstContext=null)}function eh(a){var b=a._currentValue;if(Zg!==a)if(a={context:a,memoizedValue:b,next:null},null===Yg){if(null===Xg)throw Error(p(308));Yg=a,Xg.dependencies={lanes:0,firstContext:a}}else Yg=Yg.next=a;return b}var fh=null;function gh(a){null===fh?fh=[a]:fh.push(a)}function hh(a,b,c,d){var e=b.interleaved;return null===e?(c.next=c,gh(b)):(c.next=e.next,e.next=c),b.interleaved=c,ih(a,d)}function ih(a,b){a.lanes|=b;var c=a.alternate;for(null!==c&&(c.lanes|=b),c=a,a=a.return;null!==a;)a.childLanes|=b,null!==(c=a.alternate)&&(c.childLanes|=b),c=a,a=a.return;return 3===c.tag?c.stateNode:null}var jh=!1;function kh(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lh(a,b){a=a.updateQueue,b.updateQueue===a&&(b.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function mh(a,b){return{eventTime:a,lane:b,tag:0,payload:null,callback:null,next:null}}function nh(a,b,c){var d=a.updateQueue;if(null===d)return null;if(d=d.shared,2&K){var e=d.pending;return null===e?b.next=b:(b.next=e.next,e.next=b),d.pending=b,ih(a,c)}return null===(e=d.interleaved)?(b.next=b,gh(d)):(b.next=e.next,e.next=b),d.interleaved=b,ih(a,c)}function oh(a,b,c){if(null!==(b=b.updateQueue)&&(b=b.shared,4194240&c)){var d=b.lanes;c|=d&=a.pendingLanes,b.lanes=c,Cc(a,c)}}function ph(a,b){var c=a.updateQueue,d=a.alternate;if(null!==d&&c===(d=d.updateQueue)){var e=null,f=null;if(null!==(c=c.firstBaseUpdate)){do{var g={eventTime:c.eventTime,lane:c.lane,tag:c.tag,payload:c.payload,callback:c.callback,next:null};null===f?e=f=g:f=f.next=g,c=c.next}while(null!==c);null===f?e=f=b:f=f.next=b}else e=f=b;return c={baseState:d.baseState,firstBaseUpdate:e,lastBaseUpdate:f,shared:d.shared,effects:d.effects},void(a.updateQueue=c)}null===(a=c.lastBaseUpdate)?c.firstBaseUpdate=b:a.next=b,c.lastBaseUpdate=b}function qh(a,b,c,d){var e=a.updateQueue;jh=!1;var f=e.firstBaseUpdate,g=e.lastBaseUpdate,h=e.shared.pending;if(null!==h){e.shared.pending=null;var k=h,l=k.next;k.next=null,null===g?f=l:g.next=l,g=k;var m=a.alternate;null!==m&&((h=(m=m.updateQueue).lastBaseUpdate)!==g&&(null===h?m.firstBaseUpdate=l:h.next=l,m.lastBaseUpdate=k))}if(null!==f){var q=e.baseState;for(g=0,m=l=k=null,h=f;;){var r=h.lane,y=h.eventTime;if((d&r)===r){null!==m&&(m=m.next={eventTime:y,lane:0,tag:h.tag,payload:h.payload,callback:h.callback,next:null});a:{var n=a,t=h;switch(r=b,y=c,t.tag){case 1:if("function"==typeof(n=t.payload)){q=n.call(y,q,r);break a}q=n;break a;case 3:n.flags=-65537&n.flags|128;case 0:if(null==(r="function"==typeof(n=t.payload)?n.call(y,q,r):n))break a;q=A({},q,r);break a;case 2:jh=!0}}null!==h.callback&&0!==h.lane&&(a.flags|=64,null===(r=e.effects)?e.effects=[h]:r.push(h))}else y={eventTime:y,lane:r,tag:h.tag,payload:h.payload,callback:h.callback,next:null},null===m?(l=m=y,k=q):m=m.next=y,g|=r;if(null===(h=h.next)){if(null===(h=e.shared.pending))break;h=(r=h).next,r.next=null,e.lastBaseUpdate=r,e.shared.pending=null}}if(null===m&&(k=q),e.baseState=k,e.firstBaseUpdate=l,e.lastBaseUpdate=m,null!==(b=e.shared.interleaved)){e=b;do{g|=e.lane,e=e.next}while(e!==b)}else null===f&&(e.shared.lanes=0);rh|=g,a.lanes=g,a.memoizedState=q}}function sh(a,b,c){if(a=b.effects,b.effects=null,null!==a)for(b=0;b<a.length;b++){var d=a[b],e=d.callback;if(null!==e){if(d.callback=null,d=c,"function"!=typeof e)throw Error(p(191,e));e.call(d)}}}var th={},uh=Uf(th),vh=Uf(th),wh=Uf(th);function xh(a){if(a===th)throw Error(p(174));return a}function yh(a,b){switch(G(wh,b),G(vh,a),G(uh,th),a=b.nodeType){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:lb(null,"");break;default:b=lb(b=(a=8===a?b.parentNode:b).namespaceURI||null,a=a.tagName)}E(uh),G(uh,b)}function zh(){E(uh),E(vh),E(wh)}function Ah(a){xh(wh.current);var b=xh(uh.current),c=lb(b,a.type);b!==c&&(G(vh,a),G(uh,c))}function Bh(a){vh.current===a&&(E(uh),E(vh))}var L=Uf(0);function Ch(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(null===(c=c.dehydrated)||"$?"===c.data||"$!"===c.data))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(128&b.flags)return b}else if(null!==b.child){b.child.return=b,b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return,b=b.sibling}return null}var Dh=[];function Eh(){for(var a=0;a<Dh.length;a++)Dh[a]._workInProgressVersionPrimary=null;Dh.length=0}var Fh=ua.ReactCurrentDispatcher,Gh=ua.ReactCurrentBatchConfig,Hh=0,M=null,N=null,O=null,Ih=!1,Jh=!1,Kh=0,Lh=0;function P(){throw Error(p(321))}function Mh(a,b){if(null===b)return!1;for(var c=0;c<b.length&&c<a.length;c++)if(!He(a[c],b[c]))return!1;return!0}function Nh(a,b,c,d,e,f){if(Hh=f,M=b,b.memoizedState=null,b.updateQueue=null,b.lanes=0,Fh.current=null===a||null===a.memoizedState?Oh:Ph,a=c(d,e),Jh){f=0;do{if(Jh=!1,Kh=0,25<=f)throw Error(p(301));f+=1,O=N=null,b.updateQueue=null,Fh.current=Qh,a=c(d,e)}while(Jh)}if(Fh.current=Rh,b=null!==N&&null!==N.next,Hh=0,O=N=M=null,Ih=!1,b)throw Error(p(300));return a}function Sh(){var a=0!==Kh;return Kh=0,a}function Th(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===O?M.memoizedState=O=a:O=O.next=a,O}function Uh(){if(null===N){var a=M.alternate;a=null!==a?a.memoizedState:null}else a=N.next;var b=null===O?M.memoizedState:O.next;if(null!==b)O=b,N=a;else{if(null===a)throw Error(p(310));a={memoizedState:(N=a).memoizedState,baseState:N.baseState,baseQueue:N.baseQueue,queue:N.queue,next:null},null===O?M.memoizedState=O=a:O=O.next=a}return O}function Vh(a,b){return"function"==typeof b?b(a):b}function Wh(a){var b=Uh(),c=b.queue;if(null===c)throw Error(p(311));c.lastRenderedReducer=a;var d=N,e=d.baseQueue,f=c.pending;if(null!==f){if(null!==e){var g=e.next;e.next=f.next,f.next=g}d.baseQueue=e=f,c.pending=null}if(null!==e){f=e.next,d=d.baseState;var h=g=null,k=null,l=f;do{var m=l.lane;if((Hh&m)===m)null!==k&&(k=k.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),d=l.hasEagerState?l.eagerState:a(d,l.action);else{var q={lane:m,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};null===k?(h=k=q,g=d):k=k.next=q,M.lanes|=m,rh|=m}l=l.next}while(null!==l&&l!==f);null===k?g=d:k.next=h,He(d,b.memoizedState)||(dh=!0),b.memoizedState=d,b.baseState=g,b.baseQueue=k,c.lastRenderedState=d}if(null!==(a=c.interleaved)){e=a;do{f=e.lane,M.lanes|=f,rh|=f,e=e.next}while(e!==a)}else null===e&&(c.lanes=0);return[b.memoizedState,c.dispatch]}function Xh(a){var b=Uh(),c=b.queue;if(null===c)throw Error(p(311));c.lastRenderedReducer=a;var d=c.dispatch,e=c.pending,f=b.memoizedState;if(null!==e){c.pending=null;var g=e=e.next;do{f=a(f,g.action),g=g.next}while(g!==e);He(f,b.memoizedState)||(dh=!0),b.memoizedState=f,null===b.baseQueue&&(b.baseState=f),c.lastRenderedState=f}return[f,d]}function Yh(){}function Zh(a,b){var c=M,d=Uh(),e=b(),f=!He(d.memoizedState,e);if(f&&(d.memoizedState=e,dh=!0),d=d.queue,$h(ai.bind(null,c,d,a),[a]),d.getSnapshot!==b||f||null!==O&&1&O.memoizedState.tag){if(c.flags|=2048,bi(9,ci.bind(null,c,d,e,b),void 0,null),null===Q)throw Error(p(349));30&Hh||di(c,b,e)}return e}function di(a,b,c){a.flags|=16384,a={getSnapshot:b,value:c},null===(b=M.updateQueue)?(b={lastEffect:null,stores:null},M.updateQueue=b,b.stores=[a]):null===(c=b.stores)?b.stores=[a]:c.push(a)}function ci(a,b,c,d){b.value=c,b.getSnapshot=d,ei(b)&&fi(a)}function ai(a,b,c){return c((function(){ei(b)&&fi(a)}))}function ei(a){var b=a.getSnapshot;a=a.value;try{var c=b();return!He(a,c)}catch(d){return!0}}function fi(a){var b=ih(a,1);null!==b&&gi(b,a,1,-1)}function hi(a){var b=Th();return"function"==typeof a&&(a=a()),b.memoizedState=b.baseState=a,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vh,lastRenderedState:a},b.queue=a,a=a.dispatch=ii.bind(null,M,a),[b.memoizedState,a]}function bi(a,b,c,d){return a={tag:a,create:b,destroy:c,deps:d,next:null},null===(b=M.updateQueue)?(b={lastEffect:null,stores:null},M.updateQueue=b,b.lastEffect=a.next=a):null===(c=b.lastEffect)?b.lastEffect=a.next=a:(d=c.next,c.next=a,a.next=d,b.lastEffect=a),a}function ji(){return Uh().memoizedState}function ki(a,b,c,d){var e=Th();M.flags|=a,e.memoizedState=bi(1|b,c,void 0,void 0===d?null:d)}function li(a,b,c,d){var e=Uh();d=void 0===d?null:d;var f=void 0;if(null!==N){var g=N.memoizedState;if(f=g.destroy,null!==d&&Mh(d,g.deps))return void(e.memoizedState=bi(b,c,f,d))}M.flags|=a,e.memoizedState=bi(1|b,c,f,d)}function mi(a,b){return ki(8390656,8,a,b)}function $h(a,b){return li(2048,8,a,b)}function ni(a,b){return li(4,2,a,b)}function oi(a,b){return li(4,4,a,b)}function pi(a,b){return"function"==typeof b?(a=a(),b(a),function(){b(null)}):null!=b?(a=a(),b.current=a,function(){b.current=null}):void 0}function qi(a,b,c){return c=null!=c?c.concat([a]):null,li(4,4,pi.bind(null,b,a),c)}function ri(){}function si(a,b){var c=Uh();b=void 0===b?null:b;var d=c.memoizedState;return null!==d&&null!==b&&Mh(b,d[1])?d[0]:(c.memoizedState=[a,b],a)}function ti(a,b){var c=Uh();b=void 0===b?null:b;var d=c.memoizedState;return null!==d&&null!==b&&Mh(b,d[1])?d[0]:(a=a(),c.memoizedState=[a,b],a)}function ui(a,b,c){return 21&Hh?(He(c,b)||(c=yc(),M.lanes|=c,rh|=c,a.baseState=!0),b):(a.baseState&&(a.baseState=!1,dh=!0),a.memoizedState=c)}function vi(a,b){var c=C;C=0!==c&&4>c?c:4,a(!0);var d=Gh.transition;Gh.transition={};try{a(!1),b()}finally{C=c,Gh.transition=d}}function wi(){return Uh().memoizedState}function xi(a,b,c){var d=yi(a);if(c={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null},zi(a))Ai(b,c);else if(null!==(c=hh(a,b,c,d))){gi(c,a,d,R()),Bi(c,b,d)}}function ii(a,b,c){var d=yi(a),e={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(zi(a))Ai(b,e);else{var f=a.alternate;if(0===a.lanes&&(null===f||0===f.lanes)&&null!==(f=b.lastRenderedReducer))try{var g=b.lastRenderedState,h=f(g,c);if(e.hasEagerState=!0,e.eagerState=h,He(h,g)){var k=b.interleaved;return null===k?(e.next=e,gh(b)):(e.next=k.next,k.next=e),void(b.interleaved=e)}}catch(l){}null!==(c=hh(a,b,e,d))&&(gi(c,a,d,e=R()),Bi(c,b,d))}}function zi(a){var b=a.alternate;return a===M||null!==b&&b===M}function Ai(a,b){Jh=Ih=!0;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b),a.pending=b}function Bi(a,b,c){if(4194240&c){var d=b.lanes;c|=d&=a.pendingLanes,b.lanes=c,Cc(a,c)}}var Rh={readContext:eh,useCallback:P,useContext:P,useEffect:P,useImperativeHandle:P,useInsertionEffect:P,useLayoutEffect:P,useMemo:P,useReducer:P,useRef:P,useState:P,useDebugValue:P,useDeferredValue:P,useTransition:P,useMutableSource:P,useSyncExternalStore:P,useId:P,unstable_isNewReconciler:!1},Oh={readContext:eh,useCallback:function(a,b){return Th().memoizedState=[a,void 0===b?null:b],a},useContext:eh,useEffect:mi,useImperativeHandle:function(a,b,c){return c=null!=c?c.concat([a]):null,ki(4194308,4,pi.bind(null,b,a),c)},useLayoutEffect:function(a,b){return ki(4194308,4,a,b)},useInsertionEffect:function(a,b){return ki(4,2,a,b)},useMemo:function(a,b){var c=Th();return b=void 0===b?null:b,a=a(),c.memoizedState=[a,b],a},useReducer:function(a,b,c){var d=Th();return b=void 0!==c?c(b):b,d.memoizedState=d.baseState=b,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b},d.queue=a,a=a.dispatch=xi.bind(null,M,a),[d.memoizedState,a]},useRef:function(a){return a={current:a},Th().memoizedState=a},useState:hi,useDebugValue:ri,useDeferredValue:function(a){return Th().memoizedState=a},useTransition:function(){var a=hi(!1),b=a[0];return a=vi.bind(null,a[1]),Th().memoizedState=a,[b,a]},useMutableSource:function(){},useSyncExternalStore:function(a,b,c){var d=M,e=Th();if(I){if(void 0===c)throw Error(p(407));c=c()}else{if(c=b(),null===Q)throw Error(p(349));30&Hh||di(d,b,c)}e.memoizedState=c;var f={value:c,getSnapshot:b};return e.queue=f,mi(ai.bind(null,d,f,a),[a]),d.flags|=2048,bi(9,ci.bind(null,d,f,c,b),void 0,null),c},useId:function(){var a=Th(),b=Q.identifierPrefix;if(I){var c=sg;b=":"+b+"R"+(c=(rg&~(1<<32-oc(rg)-1)).toString(32)+c),0<(c=Kh++)&&(b+="H"+c.toString(32)),b+=":"}else b=":"+b+"r"+(c=Lh++).toString(32)+":";return a.memoizedState=b},unstable_isNewReconciler:!1},Ph={readContext:eh,useCallback:si,useContext:eh,useEffect:$h,useImperativeHandle:qi,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti,useReducer:Wh,useRef:ji,useState:function(){return Wh(Vh)},useDebugValue:ri,useDeferredValue:function(a){return ui(Uh(),N.memoizedState,a)},useTransition:function(){return[Wh(Vh)[0],Uh().memoizedState]},useMutableSource:Yh,useSyncExternalStore:Zh,useId:wi,unstable_isNewReconciler:!1},Qh={readContext:eh,useCallback:si,useContext:eh,useEffect:$h,useImperativeHandle:qi,useInsertionEffect:ni,useLayoutEffect:oi,useMemo:ti,useReducer:Xh,useRef:ji,useState:function(){return Xh(Vh)},useDebugValue:ri,useDeferredValue:function(a){var b=Uh();return null===N?b.memoizedState=a:ui(b,N.memoizedState,a)},useTransition:function(){return[Xh(Vh)[0],Uh().memoizedState]},useMutableSource:Yh,useSyncExternalStore:Zh,useId:wi,unstable_isNewReconciler:!1};function Ci(a,b){if(a&&a.defaultProps){for(var c in b=A({},b),a=a.defaultProps)void 0===b[c]&&(b[c]=a[c]);return b}return b}function Di(a,b,c,d){c=null==(c=c(d,b=a.memoizedState))?b:A({},b,c),a.memoizedState=c,0===a.lanes&&(a.updateQueue.baseState=c)}var Ei={isMounted:function(a){return!!(a=a._reactInternals)&&Vb(a)===a},enqueueSetState:function(a,b,c){a=a._reactInternals;var d=R(),e=yi(a),f=mh(d,e);f.payload=b,null!=c&&(f.callback=c),null!==(b=nh(a,f,e))&&(gi(b,a,e,d),oh(b,a,e))},enqueueReplaceState:function(a,b,c){a=a._reactInternals;var d=R(),e=yi(a),f=mh(d,e);f.tag=1,f.payload=b,null!=c&&(f.callback=c),null!==(b=nh(a,f,e))&&(gi(b,a,e,d),oh(b,a,e))},enqueueForceUpdate:function(a,b){a=a._reactInternals;var c=R(),d=yi(a),e=mh(c,d);e.tag=2,null!=b&&(e.callback=b),null!==(b=nh(a,e,d))&&(gi(b,a,d,c),oh(b,a,d))}};function Fi(a,b,c,d,e,f,g){return"function"==typeof(a=a.stateNode).shouldComponentUpdate?a.shouldComponentUpdate(d,f,g):!b.prototype||!b.prototype.isPureReactComponent||(!Ie(c,d)||!Ie(e,f))}function Gi(a,b,c){var d=!1,e=Vf,f=b.contextType;return"object"==typeof f&&null!==f?f=eh(f):(e=Zf(b)?Xf:H.current,f=(d=null!=(d=b.contextTypes))?Yf(a,e):Vf),b=new b(c,f),a.memoizedState=null!==b.state&&void 0!==b.state?b.state:null,b.updater=Ei,a.stateNode=b,b._reactInternals=a,d&&((a=a.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,a.__reactInternalMemoizedMaskedChildContext=f),b}function Hi(a,b,c,d){a=b.state,"function"==typeof b.componentWillReceiveProps&&b.componentWillReceiveProps(c,d),"function"==typeof b.UNSAFE_componentWillReceiveProps&&b.UNSAFE_componentWillReceiveProps(c,d),b.state!==a&&Ei.enqueueReplaceState(b,b.state,null)}function Ii(a,b,c,d){var e=a.stateNode;e.props=c,e.state=a.memoizedState,e.refs={},kh(a);var f=b.contextType;"object"==typeof f&&null!==f?e.context=eh(f):(f=Zf(b)?Xf:H.current,e.context=Yf(a,f)),e.state=a.memoizedState,"function"==typeof(f=b.getDerivedStateFromProps)&&(Di(a,b,f,c),e.state=a.memoizedState),"function"==typeof b.getDerivedStateFromProps||"function"==typeof e.getSnapshotBeforeUpdate||"function"!=typeof e.UNSAFE_componentWillMount&&"function"!=typeof e.componentWillMount||(b=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),b!==e.state&&Ei.enqueueReplaceState(e,e.state,null),qh(a,c,e,d),e.state=a.memoizedState),"function"==typeof e.componentDidMount&&(a.flags|=4194308)}function Ji(a,b){try{var c="",d=b;do{c+=Pa(d),d=d.return}while(d);var e=c}catch(f){e="\nError generating stack: "+f.message+"\n"+f.stack}return{value:a,source:b,stack:e,digest:null}}function Ki(a,b,c){return{value:a,source:null,stack:null!=c?c:null,digest:null!=b?b:null}}function Li(a,b){try{console.error(b.value)}catch(c){setTimeout((function(){throw c}))}}var Mi="function"==typeof WeakMap?WeakMap:Map;function Ni(a,b,c){(c=mh(-1,c)).tag=3,c.payload={element:null};var d=b.value;return c.callback=function(){Oi||(Oi=!0,Pi=d),Li(0,b)},c}function Qi(a,b,c){(c=mh(-1,c)).tag=3;var d=a.type.getDerivedStateFromError;if("function"==typeof d){var e=b.value;c.payload=function(){return d(e)},c.callback=function(){Li(0,b)}}var f=a.stateNode;return null!==f&&"function"==typeof f.componentDidCatch&&(c.callback=function(){Li(0,b),"function"!=typeof d&&(null===Ri?Ri=new Set([this]):Ri.add(this));var c=b.stack;this.componentDidCatch(b.value,{componentStack:null!==c?c:""})}),c}function Si(a,b,c){var d=a.pingCache;if(null===d){d=a.pingCache=new Mi;var e=new Set;d.set(b,e)}else void 0===(e=d.get(b))&&(e=new Set,d.set(b,e));e.has(c)||(e.add(c),a=Ti.bind(null,a,b,c),b.then(a,a))}function Ui(a){do{var b;if((b=13===a.tag)&&(b=null===(b=a.memoizedState)||null!==b.dehydrated),b)return a;a=a.return}while(null!==a);return null}function Vi(a,b,c,d,e){return 1&a.mode?(a.flags|=65536,a.lanes=e,a):(a===b?a.flags|=65536:(a.flags|=128,c.flags|=131072,c.flags&=-52805,1===c.tag&&(null===c.alternate?c.tag=17:((b=mh(-1,1)).tag=2,nh(c,b,1))),c.lanes|=1),a)}var Wi=ua.ReactCurrentOwner,dh=!1;function Xi(a,b,c,d){b.child=null===a?Vg(b,null,c,d):Ug(b,a.child,c,d)}function Yi(a,b,c,d,e){c=c.render;var f=b.ref;return ch(b,e),d=Nh(a,b,c,d,f,e),c=Sh(),null===a||dh?(I&&c&&vg(b),b.flags|=1,Xi(a,b,d,e),b.child):(b.updateQueue=a.updateQueue,b.flags&=-2053,a.lanes&=~e,Zi(a,b,e))}function $i(a,b,c,d,e){if(null===a){var f=c.type;return"function"!=typeof f||aj(f)||void 0!==f.defaultProps||null!==c.compare||void 0!==c.defaultProps?((a=Rg(c.type,null,d,b,b.mode,e)).ref=b.ref,a.return=b,b.child=a):(b.tag=15,b.type=f,bj(a,b,f,d,e))}if(f=a.child,!(a.lanes&e)){var g=f.memoizedProps;if((c=null!==(c=c.compare)?c:Ie)(g,d)&&a.ref===b.ref)return Zi(a,b,e)}return b.flags|=1,(a=Pg(f,d)).ref=b.ref,a.return=b,b.child=a}function bj(a,b,c,d,e){if(null!==a){var f=a.memoizedProps;if(Ie(f,d)&&a.ref===b.ref){if(dh=!1,b.pendingProps=d=f,!(a.lanes&e))return b.lanes=a.lanes,Zi(a,b,e);131072&a.flags&&(dh=!0)}}return cj(a,b,c,d,e)}function dj(a,b,c){var d=b.pendingProps,e=d.children,f=null!==a?a.memoizedState:null;if("hidden"===d.mode)if(1&b.mode){if(!(1073741824&c))return a=null!==f?f.baseLanes|c:c,b.lanes=b.childLanes=1073741824,b.memoizedState={baseLanes:a,cachePool:null,transitions:null},b.updateQueue=null,G(ej,fj),fj|=a,null;b.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=null!==f?f.baseLanes:c,G(ej,fj),fj|=d}else b.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(ej,fj),fj|=c;else null!==f?(d=f.baseLanes|c,b.memoizedState=null):d=c,G(ej,fj),fj|=d;return Xi(a,b,e,c),b.child}function gj(a,b){var c=b.ref;(null===a&&null!==c||null!==a&&a.ref!==c)&&(b.flags|=512,b.flags|=2097152)}function cj(a,b,c,d,e){var f=Zf(c)?Xf:H.current;return f=Yf(b,f),ch(b,e),c=Nh(a,b,c,d,f,e),d=Sh(),null===a||dh?(I&&d&&vg(b),b.flags|=1,Xi(a,b,c,e),b.child):(b.updateQueue=a.updateQueue,b.flags&=-2053,a.lanes&=~e,Zi(a,b,e))}function hj(a,b,c,d,e){if(Zf(c)){var f=!0;cg(b)}else f=!1;if(ch(b,e),null===b.stateNode)ij(a,b),Gi(b,c,d),Ii(b,c,d,e),d=!0;else if(null===a){var g=b.stateNode,h=b.memoizedProps;g.props=h;var k=g.context,l=c.contextType;"object"==typeof l&&null!==l?l=eh(l):l=Yf(b,l=Zf(c)?Xf:H.current);var m=c.getDerivedStateFromProps,q="function"==typeof m||"function"==typeof g.getSnapshotBeforeUpdate;q||"function"!=typeof g.UNSAFE_componentWillReceiveProps&&"function"!=typeof g.componentWillReceiveProps||(h!==d||k!==l)&&Hi(b,g,d,l),jh=!1;var r=b.memoizedState;g.state=r,qh(b,d,g,e),k=b.memoizedState,h!==d||r!==k||Wf.current||jh?("function"==typeof m&&(Di(b,c,m,d),k=b.memoizedState),(h=jh||Fi(b,c,h,d,r,k,l))?(q||"function"!=typeof g.UNSAFE_componentWillMount&&"function"!=typeof g.componentWillMount||("function"==typeof g.componentWillMount&&g.componentWillMount(),"function"==typeof g.UNSAFE_componentWillMount&&g.UNSAFE_componentWillMount()),"function"==typeof g.componentDidMount&&(b.flags|=4194308)):("function"==typeof g.componentDidMount&&(b.flags|=4194308),b.memoizedProps=d,b.memoizedState=k),g.props=d,g.state=k,g.context=l,d=h):("function"==typeof g.componentDidMount&&(b.flags|=4194308),d=!1)}else{g=b.stateNode,lh(a,b),h=b.memoizedProps,l=b.type===b.elementType?h:Ci(b.type,h),g.props=l,q=b.pendingProps,r=g.context,"object"==typeof(k=c.contextType)&&null!==k?k=eh(k):k=Yf(b,k=Zf(c)?Xf:H.current);var y=c.getDerivedStateFromProps;(m="function"==typeof y||"function"==typeof g.getSnapshotBeforeUpdate)||"function"!=typeof g.UNSAFE_componentWillReceiveProps&&"function"!=typeof g.componentWillReceiveProps||(h!==q||r!==k)&&Hi(b,g,d,k),jh=!1,r=b.memoizedState,g.state=r,qh(b,d,g,e);var n=b.memoizedState;h!==q||r!==n||Wf.current||jh?("function"==typeof y&&(Di(b,c,y,d),n=b.memoizedState),(l=jh||Fi(b,c,l,d,r,n,k)||!1)?(m||"function"!=typeof g.UNSAFE_componentWillUpdate&&"function"!=typeof g.componentWillUpdate||("function"==typeof g.componentWillUpdate&&g.componentWillUpdate(d,n,k),"function"==typeof g.UNSAFE_componentWillUpdate&&g.UNSAFE_componentWillUpdate(d,n,k)),"function"==typeof g.componentDidUpdate&&(b.flags|=4),"function"==typeof g.getSnapshotBeforeUpdate&&(b.flags|=1024)):("function"!=typeof g.componentDidUpdate||h===a.memoizedProps&&r===a.memoizedState||(b.flags|=4),"function"!=typeof g.getSnapshotBeforeUpdate||h===a.memoizedProps&&r===a.memoizedState||(b.flags|=1024),b.memoizedProps=d,b.memoizedState=n),g.props=d,g.state=n,g.context=k,d=l):("function"!=typeof g.componentDidUpdate||h===a.memoizedProps&&r===a.memoizedState||(b.flags|=4),"function"!=typeof g.getSnapshotBeforeUpdate||h===a.memoizedProps&&r===a.memoizedState||(b.flags|=1024),d=!1)}return jj(a,b,c,d,f,e)}function jj(a,b,c,d,e,f){gj(a,b);var g=!!(128&b.flags);if(!d&&!g)return e&&dg(b,c,!1),Zi(a,b,f);d=b.stateNode,Wi.current=b;var h=g&&"function"!=typeof c.getDerivedStateFromError?null:d.render();return b.flags|=1,null!==a&&g?(b.child=Ug(b,a.child,null,f),b.child=Ug(b,null,h,f)):Xi(a,b,h,f),b.memoizedState=d.state,e&&dg(b,c,!0),b.child}function kj(a){var b=a.stateNode;b.pendingContext?ag(0,b.pendingContext,b.pendingContext!==b.context):b.context&&ag(0,b.context,!1),yh(a,b.containerInfo)}function lj(a,b,c,d,e){return Ig(),Jg(e),b.flags|=256,Xi(a,b,c,d),b.child}var zj,Aj,Bj,Cj,mj={dehydrated:null,treeContext:null,retryLane:0};function nj(a){return{baseLanes:a,cachePool:null,transitions:null}}function oj(a,b,c){var h,d=b.pendingProps,e=L.current,f=!1,g=!!(128&b.flags);if((h=g)||(h=(null===a||null!==a.memoizedState)&&!!(2&e)),h?(f=!0,b.flags&=-129):null!==a&&null===a.memoizedState||(e|=1),G(L,1&e),null===a)return Eg(b),null!==(a=b.memoizedState)&&null!==(a=a.dehydrated)?(1&b.mode?"$!"===a.data?b.lanes=8:b.lanes=1073741824:b.lanes=1,null):(g=d.children,a=d.fallback,f?(d=b.mode,f=b.child,g={mode:"hidden",children:g},1&d||null===f?f=pj(g,d,0,null):(f.childLanes=0,f.pendingProps=g),a=Tg(a,d,c,null),f.return=b,a.return=b,f.sibling=a,b.child=f,b.child.memoizedState=nj(c),b.memoizedState=mj,a):qj(b,g));if(null!==(e=a.memoizedState)&&null!==(h=e.dehydrated))return function rj(a,b,c,d,e,f,g){if(c)return 256&b.flags?(b.flags&=-257,sj(a,b,g,d=Ki(Error(p(422))))):null!==b.memoizedState?(b.child=a.child,b.flags|=128,null):(f=d.fallback,e=b.mode,d=pj({mode:"visible",children:d.children},e,0,null),(f=Tg(f,e,g,null)).flags|=2,d.return=b,f.return=b,d.sibling=f,b.child=d,1&b.mode&&Ug(b,a.child,null,g),b.child.memoizedState=nj(g),b.memoizedState=mj,f);if(!(1&b.mode))return sj(a,b,g,null);if("$!"===e.data){if(d=e.nextSibling&&e.nextSibling.dataset)var h=d.dgst;return d=h,sj(a,b,g,d=Ki(f=Error(p(419)),d,void 0))}if(h=!!(g&a.childLanes),dh||h){if(null!==(d=Q)){switch(g&-g){case 4:e=2;break;case 16:e=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:e=32;break;case 536870912:e=268435456;break;default:e=0}0!==(e=e&(d.suspendedLanes|g)?0:e)&&e!==f.retryLane&&(f.retryLane=e,ih(a,e),gi(d,a,e,-1))}return tj(),sj(a,b,g,d=Ki(Error(p(421))))}return"$?"===e.data?(b.flags|=128,b.child=a.child,b=uj.bind(null,a),e._reactRetry=b,null):(a=f.treeContext,yg=Lf(e.nextSibling),xg=b,I=!0,zg=null,null!==a&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=a.id,sg=a.overflow,qg=b),b=qj(b,d.children),b.flags|=4096,b)}(a,b,g,d,h,e,c);if(f){f=d.fallback,g=b.mode,h=(e=a.child).sibling;var k={mode:"hidden",children:d.children};return 1&g||b.child===e?(d=Pg(e,k)).subtreeFlags=14680064&e.subtreeFlags:((d=b.child).childLanes=0,d.pendingProps=k,b.deletions=null),null!==h?f=Pg(h,f):(f=Tg(f,g,c,null)).flags|=2,f.return=b,d.return=b,d.sibling=f,b.child=d,d=f,f=b.child,g=null===(g=a.child.memoizedState)?nj(c):{baseLanes:g.baseLanes|c,cachePool:null,transitions:g.transitions},f.memoizedState=g,f.childLanes=a.childLanes&~c,b.memoizedState=mj,d}return a=(f=a.child).sibling,d=Pg(f,{mode:"visible",children:d.children}),!(1&b.mode)&&(d.lanes=c),d.return=b,d.sibling=null,null!==a&&(null===(c=b.deletions)?(b.deletions=[a],b.flags|=16):c.push(a)),b.child=d,b.memoizedState=null,d}function qj(a,b){return(b=pj({mode:"visible",children:b},a.mode,0,null)).return=a,a.child=b}function sj(a,b,c,d){return null!==d&&Jg(d),Ug(b,a.child,null,c),(a=qj(b,b.pendingProps.children)).flags|=2,b.memoizedState=null,a}function vj(a,b,c){a.lanes|=b;var d=a.alternate;null!==d&&(d.lanes|=b),bh(a.return,b,c)}function wj(a,b,c,d,e){var f=a.memoizedState;null===f?a.memoizedState={isBackwards:b,rendering:null,renderingStartTime:0,last:d,tail:c,tailMode:e}:(f.isBackwards=b,f.rendering=null,f.renderingStartTime=0,f.last=d,f.tail=c,f.tailMode=e)}function xj(a,b,c){var d=b.pendingProps,e=d.revealOrder,f=d.tail;if(Xi(a,b,d.children,c),2&(d=L.current))d=1&d|2,b.flags|=128;else{if(null!==a&&128&a.flags)a:for(a=b.child;null!==a;){if(13===a.tag)null!==a.memoizedState&&vj(a,c,b);else if(19===a.tag)vj(a,c,b);else if(null!==a.child){a.child.return=a,a=a.child;continue}if(a===b)break a;for(;null===a.sibling;){if(null===a.return||a.return===b)break a;a=a.return}a.sibling.return=a.return,a=a.sibling}d&=1}if(G(L,d),1&b.mode)switch(e){case"forwards":for(c=b.child,e=null;null!==c;)null!==(a=c.alternate)&&null===Ch(a)&&(e=c),c=c.sibling;null===(c=e)?(e=b.child,b.child=null):(e=c.sibling,c.sibling=null),wj(b,!1,e,c,f);break;case"backwards":for(c=null,e=b.child,b.child=null;null!==e;){if(null!==(a=e.alternate)&&null===Ch(a)){b.child=e;break}a=e.sibling,e.sibling=c,c=e,e=a}wj(b,!0,c,null,f);break;case"together":wj(b,!1,null,null,void 0);break;default:b.memoizedState=null}else b.memoizedState=null;return b.child}function ij(a,b){!(1&b.mode)&&null!==a&&(a.alternate=null,b.alternate=null,b.flags|=2)}function Zi(a,b,c){if(null!==a&&(b.dependencies=a.dependencies),rh|=b.lanes,!(c&b.childLanes))return null;if(null!==a&&b.child!==a.child)throw Error(p(153));if(null!==b.child){for(c=Pg(a=b.child,a.pendingProps),b.child=c,c.return=b;null!==a.sibling;)a=a.sibling,(c=c.sibling=Pg(a,a.pendingProps)).return=b;c.sibling=null}return b.child}function Dj(a,b){if(!I)switch(a.tailMode){case"hidden":b=a.tail;for(var c=null;null!==b;)null!==b.alternate&&(c=b),b=b.sibling;null===c?a.tail=null:c.sibling=null;break;case"collapsed":c=a.tail;for(var d=null;null!==c;)null!==c.alternate&&(d=c),c=c.sibling;null===d?b||null===a.tail?a.tail=null:a.tail.sibling=null:d.sibling=null}}function S(a){var b=null!==a.alternate&&a.alternate.child===a.child,c=0,d=0;if(b)for(var e=a.child;null!==e;)c|=e.lanes|e.childLanes,d|=14680064&e.subtreeFlags,d|=14680064&e.flags,e.return=a,e=e.sibling;else for(e=a.child;null!==e;)c|=e.lanes|e.childLanes,d|=e.subtreeFlags,d|=e.flags,e.return=a,e=e.sibling;return a.subtreeFlags|=d,a.childLanes=c,b}function Ej(a,b,c){var d=b.pendingProps;switch(wg(b),b.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S(b),null;case 1:case 17:return Zf(b.type)&&$f(),S(b),null;case 3:return d=b.stateNode,zh(),E(Wf),E(H),Eh(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),null!==a&&null!==a.child||(Gg(b)?b.flags|=4:null===a||a.memoizedState.isDehydrated&&!(256&b.flags)||(b.flags|=1024,null!==zg&&(Fj(zg),zg=null))),Aj(a,b),S(b),null;case 5:Bh(b);var e=xh(wh.current);if(c=b.type,null!==a&&null!=b.stateNode)Bj(a,b,c,d,e),a.ref!==b.ref&&(b.flags|=512,b.flags|=2097152);else{if(!d){if(null===b.stateNode)throw Error(p(166));return S(b),null}if(a=xh(uh.current),Gg(b)){d=b.stateNode,c=b.type;var f=b.memoizedProps;switch(d[Of]=b,d[Pf]=f,a=!!(1&b.mode),c){case"dialog":D("cancel",d),D("close",d);break;case"iframe":case"object":case"embed":D("load",d);break;case"video":case"audio":for(e=0;e<lf.length;e++)D(lf[e],d);break;case"source":D("error",d);break;case"img":case"image":case"link":D("error",d),D("load",d);break;case"details":D("toggle",d);break;case"input":Za(d,f),D("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!f.multiple},D("invalid",d);break;case"textarea":hb(d,f),D("invalid",d)}for(var g in ub(c,f),e=null,f)if(f.hasOwnProperty(g)){var h=f[g];"children"===g?"string"==typeof h?d.textContent!==h&&(!0!==f.suppressHydrationWarning&&Af(d.textContent,h,a),e=["children",h]):"number"==typeof h&&d.textContent!==""+h&&(!0!==f.suppressHydrationWarning&&Af(d.textContent,h,a),e=["children",""+h]):ea.hasOwnProperty(g)&&null!=h&&"onScroll"===g&&D("scroll",d)}switch(c){case"input":Va(d),db(d,f,!0);break;case"textarea":Va(d),jb(d);break;case"select":case"option":break;default:"function"==typeof f.onClick&&(d.onclick=Bf)}d=e,b.updateQueue=d,null!==d&&(b.flags|=4)}else{g=9===e.nodeType?e:e.ownerDocument,"http://www.w3.org/1999/xhtml"===a&&(a=kb(c)),"http://www.w3.org/1999/xhtml"===a?"script"===c?((a=g.createElement("div")).innerHTML="<script><\/script>",a=a.removeChild(a.firstChild)):"string"==typeof d.is?a=g.createElement(c,{is:d.is}):(a=g.createElement(c),"select"===c&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,c),a[Of]=b,a[Pf]=d,zj(a,b,!1,!1),b.stateNode=a;a:{switch(g=vb(c,d),c){case"dialog":D("cancel",a),D("close",a),e=d;break;case"iframe":case"object":case"embed":D("load",a),e=d;break;case"video":case"audio":for(e=0;e<lf.length;e++)D(lf[e],a);e=d;break;case"source":D("error",a),e=d;break;case"img":case"image":case"link":D("error",a),D("load",a),e=d;break;case"details":D("toggle",a),e=d;break;case"input":Za(a,d),e=Ya(a,d),D("invalid",a);break;case"option":default:e=d;break;case"select":a._wrapperState={wasMultiple:!!d.multiple},e=A({},d,{value:void 0}),D("invalid",a);break;case"textarea":hb(a,d),e=gb(a,d),D("invalid",a)}for(f in ub(c,e),h=e)if(h.hasOwnProperty(f)){var k=h[f];"style"===f?sb(a,k):"dangerouslySetInnerHTML"===f?null!=(k=k?k.__html:void 0)&&nb(a,k):"children"===f?"string"==typeof k?("textarea"!==c||""!==k)&&ob(a,k):"number"==typeof k&&ob(a,""+k):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(ea.hasOwnProperty(f)?null!=k&&"onScroll"===f&&D("scroll",a):null!=k&&ta(a,f,k,g))}switch(c){case"input":Va(a),db(a,d,!1);break;case"textarea":Va(a),jb(a);break;case"option":null!=d.value&&a.setAttribute("value",""+Sa(d.value));break;case"select":a.multiple=!!d.multiple,null!=(f=d.value)?fb(a,!!d.multiple,f,!1):null!=d.defaultValue&&fb(a,!!d.multiple,d.defaultValue,!0);break;default:"function"==typeof e.onClick&&(a.onclick=Bf)}switch(c){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break a;case"img":d=!0;break a;default:d=!1}}d&&(b.flags|=4)}null!==b.ref&&(b.flags|=512,b.flags|=2097152)}return S(b),null;case 6:if(a&&null!=b.stateNode)Cj(a,b,a.memoizedProps,d);else{if("string"!=typeof d&&null===b.stateNode)throw Error(p(166));if(c=xh(wh.current),xh(uh.current),Gg(b)){if(d=b.stateNode,c=b.memoizedProps,d[Of]=b,(f=d.nodeValue!==c)&&null!==(a=xg))switch(a.tag){case 3:Af(d.nodeValue,c,!!(1&a.mode));break;case 5:!0!==a.memoizedProps.suppressHydrationWarning&&Af(d.nodeValue,c,!!(1&a.mode))}f&&(b.flags|=4)}else(d=(9===c.nodeType?c:c.ownerDocument).createTextNode(d))[Of]=b,b.stateNode=d}return S(b),null;case 13:if(E(L),d=b.memoizedState,null===a||null!==a.memoizedState&&null!==a.memoizedState.dehydrated){if(I&&null!==yg&&1&b.mode&&!(128&b.flags))Hg(),Ig(),b.flags|=98560,f=!1;else if(f=Gg(b),null!==d&&null!==d.dehydrated){if(null===a){if(!f)throw Error(p(318));if(!(f=null!==(f=b.memoizedState)?f.dehydrated:null))throw Error(p(317));f[Of]=b}else Ig(),!(128&b.flags)&&(b.memoizedState=null),b.flags|=4;S(b),f=!1}else null!==zg&&(Fj(zg),zg=null),f=!0;if(!f)return 65536&b.flags?b:null}return 128&b.flags?(b.lanes=c,b):((d=null!==d)!==(null!==a&&null!==a.memoizedState)&&d&&(b.child.flags|=8192,1&b.mode&&(null===a||1&L.current?0===T&&(T=3):tj())),null!==b.updateQueue&&(b.flags|=4),S(b),null);case 4:return zh(),Aj(a,b),null===a&&sf(b.stateNode.containerInfo),S(b),null;case 10:return ah(b.type._context),S(b),null;case 19:if(E(L),null===(f=b.memoizedState))return S(b),null;if(d=!!(128&b.flags),null===(g=f.rendering))if(d)Dj(f,!1);else{if(0!==T||null!==a&&128&a.flags)for(a=b.child;null!==a;){if(null!==(g=Ch(a))){for(b.flags|=128,Dj(f,!1),null!==(d=g.updateQueue)&&(b.updateQueue=d,b.flags|=4),b.subtreeFlags=0,d=c,c=b.child;null!==c;)a=d,(f=c).flags&=14680066,null===(g=f.alternate)?(f.childLanes=0,f.lanes=a,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=g.childLanes,f.lanes=g.lanes,f.child=g.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=g.memoizedProps,f.memoizedState=g.memoizedState,f.updateQueue=g.updateQueue,f.type=g.type,a=g.dependencies,f.dependencies=null===a?null:{lanes:a.lanes,firstContext:a.firstContext}),c=c.sibling;return G(L,1&L.current|2),b.child}a=a.sibling}null!==f.tail&&B()>Gj&&(b.flags|=128,d=!0,Dj(f,!1),b.lanes=4194304)}else{if(!d)if(null!==(a=Ch(g))){if(b.flags|=128,d=!0,null!==(c=a.updateQueue)&&(b.updateQueue=c,b.flags|=4),Dj(f,!0),null===f.tail&&"hidden"===f.tailMode&&!g.alternate&&!I)return S(b),null}else 2*B()-f.renderingStartTime>Gj&&1073741824!==c&&(b.flags|=128,d=!0,Dj(f,!1),b.lanes=4194304);f.isBackwards?(g.sibling=b.child,b.child=g):(null!==(c=f.last)?c.sibling=g:b.child=g,f.last=g)}return null!==f.tail?(b=f.tail,f.rendering=b,f.tail=b.sibling,f.renderingStartTime=B(),b.sibling=null,c=L.current,G(L,d?1&c|2:1&c),b):(S(b),null);case 22:case 23:return Hj(),d=null!==b.memoizedState,null!==a&&null!==a.memoizedState!==d&&(b.flags|=8192),d&&1&b.mode?!!(1073741824&fj)&&(S(b),6&b.subtreeFlags&&(b.flags|=8192)):S(b),null;case 24:case 25:return null}throw Error(p(156,b.tag))}function Ij(a,b){switch(wg(b),b.tag){case 1:return Zf(b.type)&&$f(),65536&(a=b.flags)?(b.flags=-65537&a|128,b):null;case 3:return zh(),E(Wf),E(H),Eh(),65536&(a=b.flags)&&!(128&a)?(b.flags=-65537&a|128,b):null;case 5:return Bh(b),null;case 13:if(E(L),null!==(a=b.memoizedState)&&null!==a.dehydrated){if(null===b.alternate)throw Error(p(340));Ig()}return 65536&(a=b.flags)?(b.flags=-65537&a|128,b):null;case 19:return E(L),null;case 4:return zh(),null;case 10:return ah(b.type._context),null;case 22:case 23:return Hj(),null;default:return null}}zj=function(a,b){for(var c=b.child;null!==c;){if(5===c.tag||6===c.tag)a.appendChild(c.stateNode);else if(4!==c.tag&&null!==c.child){c.child.return=c,c=c.child;continue}if(c===b)break;for(;null===c.sibling;){if(null===c.return||c.return===b)return;c=c.return}c.sibling.return=c.return,c=c.sibling}},Aj=function(){},Bj=function(a,b,c,d){var e=a.memoizedProps;if(e!==d){a=b.stateNode,xh(uh.current);var g,f=null;switch(c){case"input":e=Ya(a,e),d=Ya(a,d),f=[];break;case"select":e=A({},e,{value:void 0}),d=A({},d,{value:void 0}),f=[];break;case"textarea":e=gb(a,e),d=gb(a,d),f=[];break;default:"function"!=typeof e.onClick&&"function"==typeof d.onClick&&(a.onclick=Bf)}for(l in ub(c,d),c=null,e)if(!d.hasOwnProperty(l)&&e.hasOwnProperty(l)&&null!=e[l])if("style"===l){var h=e[l];for(g in h)h.hasOwnProperty(g)&&(c||(c={}),c[g]="")}else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(ea.hasOwnProperty(l)?f||(f=[]):(f=f||[]).push(l,null));for(l in d){var k=d[l];if(h=null!=e?e[l]:void 0,d.hasOwnProperty(l)&&k!==h&&(null!=k||null!=h))if("style"===l)if(h){for(g in h)!h.hasOwnProperty(g)||k&&k.hasOwnProperty(g)||(c||(c={}),c[g]="");for(g in k)k.hasOwnProperty(g)&&h[g]!==k[g]&&(c||(c={}),c[g]=k[g])}else c||(f||(f=[]),f.push(l,c)),c=k;else"dangerouslySetInnerHTML"===l?(k=k?k.__html:void 0,h=h?h.__html:void 0,null!=k&&h!==k&&(f=f||[]).push(l,k)):"children"===l?"string"!=typeof k&&"number"!=typeof k||(f=f||[]).push(l,""+k):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(ea.hasOwnProperty(l)?(null!=k&&"onScroll"===l&&D("scroll",a),f||h===k||(f=[])):(f=f||[]).push(l,k))}c&&(f=f||[]).push("style",c);var l=f;(b.updateQueue=l)&&(b.flags|=4)}},Cj=function(a,b,c,d){c!==d&&(b.flags|=4)};var Jj=!1,U=!1,Kj="function"==typeof WeakSet?WeakSet:Set,V=null;function Lj(a,b){var c=a.ref;if(null!==c)if("function"==typeof c)try{c(null)}catch(d){W(a,b,d)}else c.current=null}function Mj(a,b,c){try{c()}catch(d){W(a,b,d)}}var Nj=!1;function Pj(a,b,c){var d=b.updateQueue;if(null!==(d=null!==d?d.lastEffect:null)){var e=d=d.next;do{if((e.tag&a)===a){var f=e.destroy;e.destroy=void 0,void 0!==f&&Mj(b,c,f)}e=e.next}while(e!==d)}}function Qj(a,b){if(null!==(b=null!==(b=b.updateQueue)?b.lastEffect:null)){var c=b=b.next;do{if((c.tag&a)===a){var d=c.create;c.destroy=d()}c=c.next}while(c!==b)}}function Rj(a){var b=a.ref;if(null!==b){var c=a.stateNode;a.tag,a=c,"function"==typeof b?b(a):b.current=a}}function Sj(a){var b=a.alternate;null!==b&&(a.alternate=null,Sj(b)),a.child=null,a.deletions=null,a.sibling=null,5===a.tag&&(null!==(b=a.stateNode)&&(delete b[Of],delete b[Pf],delete b[of],delete b[Qf],delete b[Rf])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function Tj(a){return 5===a.tag||3===a.tag||4===a.tag}function Uj(a){a:for(;;){for(;null===a.sibling;){if(null===a.return||Tj(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;5!==a.tag&&6!==a.tag&&18!==a.tag;){if(2&a.flags)continue a;if(null===a.child||4===a.tag)continue a;a.child.return=a,a=a.child}if(!(2&a.flags))return a.stateNode}}function Vj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?8===c.nodeType?c.parentNode.insertBefore(a,b):c.insertBefore(a,b):(8===c.nodeType?(b=c.parentNode).insertBefore(a,c):(b=c).appendChild(a),null!=(c=c._reactRootContainer)||null!==b.onclick||(b.onclick=Bf));else if(4!==d&&null!==(a=a.child))for(Vj(a,b,c),a=a.sibling;null!==a;)Vj(a,b,c),a=a.sibling}function Wj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?c.insertBefore(a,b):c.appendChild(a);else if(4!==d&&null!==(a=a.child))for(Wj(a,b,c),a=a.sibling;null!==a;)Wj(a,b,c),a=a.sibling}var X=null,Xj=!1;function Yj(a,b,c){for(c=c.child;null!==c;)Zj(a,b,c),c=c.sibling}function Zj(a,b,c){if(lc&&"function"==typeof lc.onCommitFiberUnmount)try{lc.onCommitFiberUnmount(kc,c)}catch(h){}switch(c.tag){case 5:U||Lj(c,b);case 6:var d=X,e=Xj;X=null,Yj(a,b,c),Xj=e,null!==(X=d)&&(Xj?(a=X,c=c.stateNode,8===a.nodeType?a.parentNode.removeChild(c):a.removeChild(c)):X.removeChild(c.stateNode));break;case 18:null!==X&&(Xj?(a=X,c=c.stateNode,8===a.nodeType?Kf(a.parentNode,c):1===a.nodeType&&Kf(a,c),bd(a)):Kf(X,c.stateNode));break;case 4:d=X,e=Xj,X=c.stateNode.containerInfo,Xj=!0,Yj(a,b,c),X=d,Xj=e;break;case 0:case 11:case 14:case 15:if(!U&&(null!==(d=c.updateQueue)&&null!==(d=d.lastEffect))){e=d=d.next;do{var f=e,g=f.destroy;f=f.tag,void 0!==g&&(2&f||4&f)&&Mj(c,b,g),e=e.next}while(e!==d)}Yj(a,b,c);break;case 1:if(!U&&(Lj(c,b),"function"==typeof(d=c.stateNode).componentWillUnmount))try{d.props=c.memoizedProps,d.state=c.memoizedState,d.componentWillUnmount()}catch(h){W(c,b,h)}Yj(a,b,c);break;case 21:Yj(a,b,c);break;case 22:1&c.mode?(U=(d=U)||null!==c.memoizedState,Yj(a,b,c),U=d):Yj(a,b,c);break;default:Yj(a,b,c)}}function ak(a){var b=a.updateQueue;if(null!==b){a.updateQueue=null;var c=a.stateNode;null===c&&(c=a.stateNode=new Kj),b.forEach((function(b){var d=bk.bind(null,a,b);c.has(b)||(c.add(b),b.then(d,d))}))}}function ck(a,b){var c=b.deletions;if(null!==c)for(var d=0;d<c.length;d++){var e=c[d];try{var f=a,g=b,h=g;a:for(;null!==h;){switch(h.tag){case 5:X=h.stateNode,Xj=!1;break a;case 3:case 4:X=h.stateNode.containerInfo,Xj=!0;break a}h=h.return}if(null===X)throw Error(p(160));Zj(f,g,e),X=null,Xj=!1;var k=e.alternate;null!==k&&(k.return=null),e.return=null}catch(l){W(e,b,l)}}if(12854&b.subtreeFlags)for(b=b.child;null!==b;)dk(b,a),b=b.sibling}function dk(a,b){var c=a.alternate,d=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(ck(b,a),ek(a),4&d){try{Pj(3,a,a.return),Qj(3,a)}catch(t){W(a,a.return,t)}try{Pj(5,a,a.return)}catch(t){W(a,a.return,t)}}break;case 1:ck(b,a),ek(a),512&d&&null!==c&&Lj(c,c.return);break;case 5:if(ck(b,a),ek(a),512&d&&null!==c&&Lj(c,c.return),32&a.flags){var e=a.stateNode;try{ob(e,"")}catch(t){W(a,a.return,t)}}if(4&d&&null!=(e=a.stateNode)){var f=a.memoizedProps,g=null!==c?c.memoizedProps:f,h=a.type,k=a.updateQueue;if(a.updateQueue=null,null!==k)try{"input"===h&&"radio"===f.type&&null!=f.name&&ab(e,f),vb(h,g);var l=vb(h,f);for(g=0;g<k.length;g+=2){var m=k[g],q=k[g+1];"style"===m?sb(e,q):"dangerouslySetInnerHTML"===m?nb(e,q):"children"===m?ob(e,q):ta(e,m,q,l)}switch(h){case"input":bb(e,f);break;case"textarea":ib(e,f);break;case"select":var r=e._wrapperState.wasMultiple;e._wrapperState.wasMultiple=!!f.multiple;var y=f.value;null!=y?fb(e,!!f.multiple,y,!1):r!==!!f.multiple&&(null!=f.defaultValue?fb(e,!!f.multiple,f.defaultValue,!0):fb(e,!!f.multiple,f.multiple?[]:"",!1))}e[Pf]=f}catch(t){W(a,a.return,t)}}break;case 6:if(ck(b,a),ek(a),4&d){if(null===a.stateNode)throw Error(p(162));e=a.stateNode,f=a.memoizedProps;try{e.nodeValue=f}catch(t){W(a,a.return,t)}}break;case 3:if(ck(b,a),ek(a),4&d&&null!==c&&c.memoizedState.isDehydrated)try{bd(b.containerInfo)}catch(t){W(a,a.return,t)}break;case 4:default:ck(b,a),ek(a);break;case 13:ck(b,a),ek(a),8192&(e=a.child).flags&&(f=null!==e.memoizedState,e.stateNode.isHidden=f,!f||null!==e.alternate&&null!==e.alternate.memoizedState||(fk=B())),4&d&&ak(a);break;case 22:if(m=null!==c&&null!==c.memoizedState,1&a.mode?(U=(l=U)||m,ck(b,a),U=l):ck(b,a),ek(a),8192&d){if(l=null!==a.memoizedState,(a.stateNode.isHidden=l)&&!m&&1&a.mode)for(V=a,m=a.child;null!==m;){for(q=V=m;null!==V;){switch(y=(r=V).child,r.tag){case 0:case 11:case 14:case 15:Pj(4,r,r.return);break;case 1:Lj(r,r.return);var n=r.stateNode;if("function"==typeof n.componentWillUnmount){d=r,c=r.return;try{b=d,n.props=b.memoizedProps,n.state=b.memoizedState,n.componentWillUnmount()}catch(t){W(d,c,t)}}break;case 5:Lj(r,r.return);break;case 22:if(null!==r.memoizedState){gk(q);continue}}null!==y?(y.return=r,V=y):gk(q)}m=m.sibling}a:for(m=null,q=a;;){if(5===q.tag){if(null===m){m=q;try{e=q.stateNode,l?"function"==typeof(f=e.style).setProperty?f.setProperty("display","none","important"):f.display="none":(h=q.stateNode,g=null!=(k=q.memoizedProps.style)&&k.hasOwnProperty("display")?k.display:null,h.style.display=rb("display",g))}catch(t){W(a,a.return,t)}}}else if(6===q.tag){if(null===m)try{q.stateNode.nodeValue=l?"":q.memoizedProps}catch(t){W(a,a.return,t)}}else if((22!==q.tag&&23!==q.tag||null===q.memoizedState||q===a)&&null!==q.child){q.child.return=q,q=q.child;continue}if(q===a)break a;for(;null===q.sibling;){if(null===q.return||q.return===a)break a;m===q&&(m=null),q=q.return}m===q&&(m=null),q.sibling.return=q.return,q=q.sibling}}break;case 19:ck(b,a),ek(a),4&d&&ak(a);case 21:}}function ek(a){var b=a.flags;if(2&b){try{a:{for(var c=a.return;null!==c;){if(Tj(c)){var d=c;break a}c=c.return}throw Error(p(160))}switch(d.tag){case 5:var e=d.stateNode;32&d.flags&&(ob(e,""),d.flags&=-33),Wj(a,Uj(a),e);break;case 3:case 4:var g=d.stateNode.containerInfo;Vj(a,Uj(a),g);break;default:throw Error(p(161))}}catch(k){W(a,a.return,k)}a.flags&=-3}4096&b&&(a.flags&=-4097)}function hk(a,b,c){V=a,ik(a,b,c)}function ik(a,b,c){for(var d=!!(1&a.mode);null!==V;){var e=V,f=e.child;if(22===e.tag&&d){var g=null!==e.memoizedState||Jj;if(!g){var h=e.alternate,k=null!==h&&null!==h.memoizedState||U;h=Jj;var l=U;if(Jj=g,(U=k)&&!l)for(V=e;null!==V;)k=(g=V).child,22===g.tag&&null!==g.memoizedState?jk(e):null!==k?(k.return=g,V=k):jk(e);for(;null!==f;)V=f,ik(f,b,c),f=f.sibling;V=e,Jj=h,U=l}kk(a)}else 8772&e.subtreeFlags&&null!==f?(f.return=e,V=f):kk(a)}}function kk(a){for(;null!==V;){var b=V;if(8772&b.flags){var c=b.alternate;try{if(8772&b.flags)switch(b.tag){case 0:case 11:case 15:U||Qj(5,b);break;case 1:var d=b.stateNode;if(4&b.flags&&!U)if(null===c)d.componentDidMount();else{var e=b.elementType===b.type?c.memoizedProps:Ci(b.type,c.memoizedProps);d.componentDidUpdate(e,c.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var f=b.updateQueue;null!==f&&sh(b,f,d);break;case 3:var g=b.updateQueue;if(null!==g){if(c=null,null!==b.child)switch(b.child.tag){case 5:case 1:c=b.child.stateNode}sh(b,g,c)}break;case 5:var h=b.stateNode;if(null===c&&4&b.flags){c=h;var k=b.memoizedProps;switch(b.type){case"button":case"input":case"select":case"textarea":k.autoFocus&&c.focus();break;case"img":k.src&&(c.src=k.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===b.memoizedState){var l=b.alternate;if(null!==l){var m=l.memoizedState;if(null!==m){var q=m.dehydrated;null!==q&&bd(q)}}}break;default:throw Error(p(163))}U||512&b.flags&&Rj(b)}catch(r){W(b,b.return,r)}}if(b===a){V=null;break}if(null!==(c=b.sibling)){c.return=b.return,V=c;break}V=b.return}}function gk(a){for(;null!==V;){var b=V;if(b===a){V=null;break}var c=b.sibling;if(null!==c){c.return=b.return,V=c;break}V=b.return}}function jk(a){for(;null!==V;){var b=V;try{switch(b.tag){case 0:case 11:case 15:var c=b.return;try{Qj(4,b)}catch(k){W(b,c,k)}break;case 1:var d=b.stateNode;if("function"==typeof d.componentDidMount){var e=b.return;try{d.componentDidMount()}catch(k){W(b,e,k)}}var f=b.return;try{Rj(b)}catch(k){W(b,f,k)}break;case 5:var g=b.return;try{Rj(b)}catch(k){W(b,g,k)}}}catch(k){W(b,b.return,k)}if(b===a){V=null;break}var h=b.sibling;if(null!==h){h.return=b.return,V=h;break}V=b.return}}var Vk,lk=Math.ceil,mk=ua.ReactCurrentDispatcher,nk=ua.ReactCurrentOwner,ok=ua.ReactCurrentBatchConfig,K=0,Q=null,Y=null,Z=0,fj=0,ej=Uf(0),T=0,pk=null,rh=0,qk=0,rk=0,sk=null,tk=null,fk=0,Gj=1/0,uk=null,Oi=!1,Pi=null,Ri=null,vk=!1,wk=null,xk=0,yk=0,zk=null,Ak=-1,Bk=0;function R(){return 6&K?B():-1!==Ak?Ak:Ak=B()}function yi(a){return 1&a.mode?2&K&&0!==Z?Z&-Z:null!==Kg.transition?(0===Bk&&(Bk=yc()),Bk):0!==(a=C)?a:a=void 0===(a=window.event)?16:jd(a.type):1}function gi(a,b,c,d){if(50<yk)throw yk=0,zk=null,Error(p(185));Ac(a,c,d),2&K&&a===Q||(a===Q&&(!(2&K)&&(qk|=c),4===T&&Ck(a,Z)),Dk(a,d),1===c&&0===K&&!(1&b.mode)&&(Gj=B()+500,fg&&jg()))}function Dk(a,b){var c=a.callbackNode;!function wc(a,b){for(var c=a.suspendedLanes,d=a.pingedLanes,e=a.expirationTimes,f=a.pendingLanes;0<f;){var g=31-oc(f),h=1<<g,k=e[g];-1===k?h&c&&!(h&d)||(e[g]=vc(h,b)):k<=b&&(a.expiredLanes|=h),f&=~h}}(a,b);var d=uc(a,a===Q?Z:0);if(0===d)null!==c&&bc(c),a.callbackNode=null,a.callbackPriority=0;else if(b=d&-d,a.callbackPriority!==b){if(null!=c&&bc(c),1===b)0===a.tag?function ig(a){fg=!0,hg(a)}(Ek.bind(null,a)):hg(Ek.bind(null,a)),Jf((function(){!(6&K)&&jg()})),c=null;else{switch(Dc(d)){case 1:c=fc;break;case 4:c=gc;break;case 16:default:c=hc;break;case 536870912:c=jc}c=Fk(c,Gk.bind(null,a))}a.callbackPriority=b,a.callbackNode=c}}function Gk(a,b){if(Ak=-1,Bk=0,6&K)throw Error(p(327));var c=a.callbackNode;if(Hk()&&a.callbackNode!==c)return null;var d=uc(a,a===Q?Z:0);if(0===d)return null;if(30&d||d&a.expiredLanes||b)b=Ik(a,d);else{b=d;var e=K;K|=2;var f=Jk();for(Q===a&&Z===b||(uk=null,Gj=B()+500,Kk(a,b));;)try{Lk();break}catch(h){Mk(a,h)}$g(),mk.current=f,K=e,null!==Y?b=0:(Q=null,Z=0,b=T)}if(0!==b){if(2===b&&(0!==(e=xc(a))&&(d=e,b=Nk(a,e))),1===b)throw c=pk,Kk(a,0),Ck(a,d),Dk(a,B()),c;if(6===b)Ck(a,d);else{if(e=a.current.alternate,!(30&d||function Ok(a){for(var b=a;;){if(16384&b.flags){var c=b.updateQueue;if(null!==c&&null!==(c=c.stores))for(var d=0;d<c.length;d++){var e=c[d],f=e.getSnapshot;e=e.value;try{if(!He(f(),e))return!1}catch(g){return!1}}}if(c=b.child,16384&b.subtreeFlags&&null!==c)c.return=b,b=c;else{if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return!0;b=b.return}b.sibling.return=b.return,b=b.sibling}}return!0}(e)||(b=Ik(a,d),2===b&&(f=xc(a),0!==f&&(d=f,b=Nk(a,f))),1!==b)))throw c=pk,Kk(a,0),Ck(a,d),Dk(a,B()),c;switch(a.finishedWork=e,a.finishedLanes=d,b){case 0:case 1:throw Error(p(345));case 2:case 5:Pk(a,tk,uk);break;case 3:if(Ck(a,d),(130023424&d)===d&&10<(b=fk+500-B())){if(0!==uc(a,0))break;if(((e=a.suspendedLanes)&d)!==d){R(),a.pingedLanes|=a.suspendedLanes&e;break}a.timeoutHandle=Ff(Pk.bind(null,a,tk,uk),b);break}Pk(a,tk,uk);break;case 4:if(Ck(a,d),(4194240&d)===d)break;for(b=a.eventTimes,e=-1;0<d;){var g=31-oc(d);f=1<<g,(g=b[g])>e&&(e=g),d&=~f}if(d=e,10<(d=(120>(d=B()-d)?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*lk(d/1960))-d)){a.timeoutHandle=Ff(Pk.bind(null,a,tk,uk),d);break}Pk(a,tk,uk);break;default:throw Error(p(329))}}}return Dk(a,B()),a.callbackNode===c?Gk.bind(null,a):null}function Nk(a,b){var c=sk;return a.current.memoizedState.isDehydrated&&(Kk(a,b).flags|=256),2!==(a=Ik(a,b))&&(b=tk,tk=c,null!==b&&Fj(b)),a}function Fj(a){null===tk?tk=a:tk.push.apply(tk,a)}function Ck(a,b){for(b&=~rk,b&=~qk,a.suspendedLanes|=b,a.pingedLanes&=~b,a=a.expirationTimes;0<b;){var c=31-oc(b),d=1<<c;a[c]=-1,b&=~d}}function Ek(a){if(6&K)throw Error(p(327));Hk();var b=uc(a,0);if(!(1&b))return Dk(a,B()),null;var c=Ik(a,b);if(0!==a.tag&&2===c){var d=xc(a);0!==d&&(b=d,c=Nk(a,d))}if(1===c)throw c=pk,Kk(a,0),Ck(a,b),Dk(a,B()),c;if(6===c)throw Error(p(345));return a.finishedWork=a.current.alternate,a.finishedLanes=b,Pk(a,tk,uk),Dk(a,B()),null}function Qk(a,b){var c=K;K|=1;try{return a(b)}finally{0===(K=c)&&(Gj=B()+500,fg&&jg())}}function Rk(a){null!==wk&&0===wk.tag&&!(6&K)&&Hk();var b=K;K|=1;var c=ok.transition,d=C;try{if(ok.transition=null,C=1,a)return a()}finally{C=d,ok.transition=c,!(6&(K=b))&&jg()}}function Hj(){fj=ej.current,E(ej)}function Kk(a,b){a.finishedWork=null,a.finishedLanes=0;var c=a.timeoutHandle;if(-1!==c&&(a.timeoutHandle=-1,Gf(c)),null!==Y)for(c=Y.return;null!==c;){var d=c;switch(wg(d),d.tag){case 1:null!=(d=d.type.childContextTypes)&&$f();break;case 3:zh(),E(Wf),E(H),Eh();break;case 5:Bh(d);break;case 4:zh();break;case 13:case 19:E(L);break;case 10:ah(d.type._context);break;case 22:case 23:Hj()}c=c.return}if(Q=a,Y=a=Pg(a.current,null),Z=fj=b,T=0,pk=null,rk=qk=rh=0,tk=sk=null,null!==fh){for(b=0;b<fh.length;b++)if(null!==(d=(c=fh[b]).interleaved)){c.interleaved=null;var e=d.next,f=c.pending;if(null!==f){var g=f.next;f.next=e,d.next=g}c.pending=d}fh=null}return a}function Mk(a,b){for(;;){var c=Y;try{if($g(),Fh.current=Rh,Ih){for(var d=M.memoizedState;null!==d;){var e=d.queue;null!==e&&(e.pending=null),d=d.next}Ih=!1}if(Hh=0,O=N=M=null,Jh=!1,Kh=0,nk.current=null,null===c||null===c.return){T=1,pk=b,Y=null;break}a:{var f=a,g=c.return,h=c,k=b;if(b=Z,h.flags|=32768,null!==k&&"object"==typeof k&&"function"==typeof k.then){var l=k,m=h,q=m.tag;if(!(1&m.mode||0!==q&&11!==q&&15!==q)){var r=m.alternate;r?(m.updateQueue=r.updateQueue,m.memoizedState=r.memoizedState,m.lanes=r.lanes):(m.updateQueue=null,m.memoizedState=null)}var y=Ui(g);if(null!==y){y.flags&=-257,Vi(y,g,h,0,b),1&y.mode&&Si(f,l,b),k=l;var n=(b=y).updateQueue;if(null===n){var t=new Set;t.add(k),b.updateQueue=t}else n.add(k);break a}if(!(1&b)){Si(f,l,b),tj();break a}k=Error(p(426))}else if(I&&1&h.mode){var J=Ui(g);if(null!==J){!(65536&J.flags)&&(J.flags|=256),Vi(J,g,h,0,b),Jg(Ji(k,h));break a}}f=k=Ji(k,h),4!==T&&(T=2),null===sk?sk=[f]:sk.push(f),f=g;do{switch(f.tag){case 3:f.flags|=65536,b&=-b,f.lanes|=b,ph(f,Ni(0,k,b));break a;case 1:h=k;var w=f.type,u=f.stateNode;if(!(128&f.flags||"function"!=typeof w.getDerivedStateFromError&&(null===u||"function"!=typeof u.componentDidCatch||null!==Ri&&Ri.has(u)))){f.flags|=65536,b&=-b,f.lanes|=b,ph(f,Qi(f,h,b));break a}}f=f.return}while(null!==f)}Sk(c)}catch(na){b=na,Y===c&&null!==c&&(Y=c=c.return);continue}break}}function Jk(){var a=mk.current;return mk.current=Rh,null===a?Rh:a}function tj(){0!==T&&3!==T&&2!==T||(T=4),null===Q||!(268435455&rh)&&!(268435455&qk)||Ck(Q,Z)}function Ik(a,b){var c=K;K|=2;var d=Jk();for(Q===a&&Z===b||(uk=null,Kk(a,b));;)try{Tk();break}catch(e){Mk(a,e)}if($g(),K=c,mk.current=d,null!==Y)throw Error(p(261));return Q=null,Z=0,T}function Tk(){for(;null!==Y;)Uk(Y)}function Lk(){for(;null!==Y&&!cc();)Uk(Y)}function Uk(a){var b=Vk(a.alternate,a,fj);a.memoizedProps=a.pendingProps,null===b?Sk(a):Y=b,nk.current=null}function Sk(a){var b=a;do{var c=b.alternate;if(a=b.return,32768&b.flags){if(null!==(c=Ij(c,b)))return c.flags&=32767,void(Y=c);if(null===a)return T=6,void(Y=null);a.flags|=32768,a.subtreeFlags=0,a.deletions=null}else if(null!==(c=Ej(c,b,fj)))return void(Y=c);if(null!==(b=b.sibling))return void(Y=b);Y=b=a}while(null!==b);0===T&&(T=5)}function Pk(a,b,c){var d=C,e=ok.transition;try{ok.transition=null,C=1,function Wk(a,b,c,d){do{Hk()}while(null!==wk);if(6&K)throw Error(p(327));c=a.finishedWork;var e=a.finishedLanes;if(null===c)return null;if(a.finishedWork=null,a.finishedLanes=0,c===a.current)throw Error(p(177));a.callbackNode=null,a.callbackPriority=0;var f=c.lanes|c.childLanes;if(function Bc(a,b){var c=a.pendingLanes&~b;a.pendingLanes=b,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=b,a.mutableReadLanes&=b,a.entangledLanes&=b,b=a.entanglements;var d=a.eventTimes;for(a=a.expirationTimes;0<c;){var e=31-oc(c),f=1<<e;b[e]=0,d[e]=-1,a[e]=-1,c&=~f}}(a,f),a===Q&&(Y=Q=null,Z=0),!(2064&c.subtreeFlags)&&!(2064&c.flags)||vk||(vk=!0,Fk(hc,(function(){return Hk(),null}))),f=!!(15990&c.flags),!!(15990&c.subtreeFlags)||f){f=ok.transition,ok.transition=null;var g=C;C=1;var h=K;K|=4,nk.current=null,function Oj(a,b){if(Cf=dd,Ne(a=Me())){if("selectionStart"in a)var c={start:a.selectionStart,end:a.selectionEnd};else a:{var d=(c=(c=a.ownerDocument)&&c.defaultView||window).getSelection&&c.getSelection();if(d&&0!==d.rangeCount){c=d.anchorNode;var e=d.anchorOffset,f=d.focusNode;d=d.focusOffset;try{c.nodeType,f.nodeType}catch(F){c=null;break a}var g=0,h=-1,k=-1,l=0,m=0,q=a,r=null;b:for(;;){for(var y;q!==c||0!==e&&3!==q.nodeType||(h=g+e),q!==f||0!==d&&3!==q.nodeType||(k=g+d),3===q.nodeType&&(g+=q.nodeValue.length),null!==(y=q.firstChild);)r=q,q=y;for(;;){if(q===a)break b;if(r===c&&++l===e&&(h=g),r===f&&++m===d&&(k=g),null!==(y=q.nextSibling))break;r=(q=r).parentNode}q=y}c=-1===h||-1===k?null:{start:h,end:k}}else c=null}c=c||{start:0,end:0}}else c=null;for(Df={focusedElem:a,selectionRange:c},dd=!1,V=b;null!==V;)if(a=(b=V).child,1028&b.subtreeFlags&&null!==a)a.return=b,V=a;else for(;null!==V;){b=V;try{var n=b.alternate;if(1024&b.flags)switch(b.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==n){var t=n.memoizedProps,J=n.memoizedState,x=b.stateNode,w=x.getSnapshotBeforeUpdate(b.elementType===b.type?t:Ci(b.type,t),J);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var u=b.stateNode.containerInfo;1===u.nodeType?u.textContent="":9===u.nodeType&&u.documentElement&&u.removeChild(u.documentElement);break;default:throw Error(p(163))}}catch(F){W(b,b.return,F)}if(null!==(a=b.sibling)){a.return=b.return,V=a;break}V=b.return}return n=Nj,Nj=!1,n}(a,c),dk(c,a),Oe(Df),dd=!!Cf,Df=Cf=null,a.current=c,hk(c,a,e),dc(),K=h,C=g,ok.transition=f}else a.current=c;if(vk&&(vk=!1,wk=a,xk=e),f=a.pendingLanes,0===f&&(Ri=null),function mc(a){if(lc&&"function"==typeof lc.onCommitFiberRoot)try{lc.onCommitFiberRoot(kc,a,void 0,!(128&~a.current.flags))}catch(b){}}(c.stateNode),Dk(a,B()),null!==b)for(d=a.onRecoverableError,c=0;c<b.length;c++)e=b[c],d(e.value,{componentStack:e.stack,digest:e.digest});if(Oi)throw Oi=!1,a=Pi,Pi=null,a;return!!(1&xk)&&0!==a.tag&&Hk(),f=a.pendingLanes,1&f?a===zk?yk++:(yk=0,zk=a):yk=0,jg(),null}(a,b,c,d)}finally{ok.transition=e,C=d}return null}function Hk(){if(null!==wk){var a=Dc(xk),b=ok.transition,c=C;try{if(ok.transition=null,C=16>a?16:a,null===wk)var d=!1;else{if(a=wk,wk=null,xk=0,6&K)throw Error(p(331));var e=K;for(K|=4,V=a.current;null!==V;){var f=V,g=f.child;if(16&V.flags){var h=f.deletions;if(null!==h){for(var k=0;k<h.length;k++){var l=h[k];for(V=l;null!==V;){var m=V;switch(m.tag){case 0:case 11:case 15:Pj(8,m,f)}var q=m.child;if(null!==q)q.return=m,V=q;else for(;null!==V;){var r=(m=V).sibling,y=m.return;if(Sj(m),m===l){V=null;break}if(null!==r){r.return=y,V=r;break}V=y}}}var n=f.alternate;if(null!==n){var t=n.child;if(null!==t){n.child=null;do{var J=t.sibling;t.sibling=null,t=J}while(null!==t)}}V=f}}if(2064&f.subtreeFlags&&null!==g)g.return=f,V=g;else b:for(;null!==V;){if(2048&(f=V).flags)switch(f.tag){case 0:case 11:case 15:Pj(9,f,f.return)}var x=f.sibling;if(null!==x){x.return=f.return,V=x;break b}V=f.return}}var w=a.current;for(V=w;null!==V;){var u=(g=V).child;if(2064&g.subtreeFlags&&null!==u)u.return=g,V=u;else b:for(g=w;null!==V;){if(2048&(h=V).flags)try{switch(h.tag){case 0:case 11:case 15:Qj(9,h)}}catch(na){W(h,h.return,na)}if(h===g){V=null;break b}var F=h.sibling;if(null!==F){F.return=h.return,V=F;break b}V=h.return}}if(K=e,jg(),lc&&"function"==typeof lc.onPostCommitFiberRoot)try{lc.onPostCommitFiberRoot(kc,a)}catch(na){}d=!0}return d}finally{C=c,ok.transition=b}}return!1}function Xk(a,b,c){a=nh(a,b=Ni(0,b=Ji(c,b),1),1),b=R(),null!==a&&(Ac(a,1,b),Dk(a,b))}function W(a,b,c){if(3===a.tag)Xk(a,a,c);else for(;null!==b;){if(3===b.tag){Xk(b,a,c);break}if(1===b.tag){var d=b.stateNode;if("function"==typeof b.type.getDerivedStateFromError||"function"==typeof d.componentDidCatch&&(null===Ri||!Ri.has(d))){b=nh(b,a=Qi(b,a=Ji(c,a),1),1),a=R(),null!==b&&(Ac(b,1,a),Dk(b,a));break}}b=b.return}}function Ti(a,b,c){var d=a.pingCache;null!==d&&d.delete(b),b=R(),a.pingedLanes|=a.suspendedLanes&c,Q===a&&(Z&c)===c&&(4===T||3===T&&(130023424&Z)===Z&&500>B()-fk?Kk(a,0):rk|=c),Dk(a,b)}function Yk(a,b){0===b&&(1&a.mode?(b=sc,!(130023424&(sc<<=1))&&(sc=4194304)):b=1);var c=R();null!==(a=ih(a,b))&&(Ac(a,b,c),Dk(a,c))}function uj(a){var b=a.memoizedState,c=0;null!==b&&(c=b.retryLane),Yk(a,c)}function bk(a,b){var c=0;switch(a.tag){case 13:var d=a.stateNode,e=a.memoizedState;null!==e&&(c=e.retryLane);break;case 19:d=a.stateNode;break;default:throw Error(p(314))}null!==d&&d.delete(b),Yk(a,c)}function Fk(a,b){return ac(a,b)}function $k(a,b,c,d){this.tag=a,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=b,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(a,b,c,d){return new $k(a,b,c,d)}function aj(a){return!(!(a=a.prototype)||!a.isReactComponent)}function Pg(a,b){var c=a.alternate;return null===c?((c=Bg(a.tag,b,a.key,a.mode)).elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=b,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=14680064&a.flags,c.childLanes=a.childLanes,c.lanes=a.lanes,c.child=a.child,c.memoizedProps=a.memoizedProps,c.memoizedState=a.memoizedState,c.updateQueue=a.updateQueue,b=a.dependencies,c.dependencies=null===b?null:{lanes:b.lanes,firstContext:b.firstContext},c.sibling=a.sibling,c.index=a.index,c.ref=a.ref,c}function Rg(a,b,c,d,e,f){var g=2;if(d=a,"function"==typeof a)aj(a)&&(g=1);else if("string"==typeof a)g=5;else a:switch(a){case ya:return Tg(c.children,e,f,b);case za:g=8,e|=8;break;case Aa:return(a=Bg(12,c,b,2|e)).elementType=Aa,a.lanes=f,a;case Ea:return(a=Bg(13,c,b,e)).elementType=Ea,a.lanes=f,a;case Fa:return(a=Bg(19,c,b,e)).elementType=Fa,a.lanes=f,a;case Ia:return pj(c,e,f,b);default:if("object"==typeof a&&null!==a)switch(a.$$typeof){case Ba:g=10;break a;case Ca:g=9;break a;case Da:g=11;break a;case Ga:g=14;break a;case Ha:g=16,d=null;break a}throw Error(p(130,null==a?a:typeof a,""))}return(b=Bg(g,c,b,e)).elementType=a,b.type=d,b.lanes=f,b}function Tg(a,b,c,d){return(a=Bg(7,a,d,b)).lanes=c,a}function pj(a,b,c,d){return(a=Bg(22,a,d,b)).elementType=Ia,a.lanes=c,a.stateNode={isHidden:!1},a}function Qg(a,b,c){return(a=Bg(6,a,null,b)).lanes=c,a}function Sg(a,b,c){return(b=Bg(4,null!==a.children?a.children:[],a.key,b)).lanes=c,b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},b}function al(a,b,c,d,e){this.tag=b,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=d,this.onRecoverableError=e,this.mutableSourceEagerHydrationData=null}function bl(a,b,c,d,e,f,g,h,k){return a=new al(a,b,c,h,k),1===b?(b=1,!0===f&&(b|=8)):b=0,f=Bg(3,null,null,b),a.current=f,f.stateNode=a,f.memoizedState={element:d,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null},kh(f),a}function dl(a){if(!a)return Vf;a:{if(Vb(a=a._reactInternals)!==a||1!==a.tag)throw Error(p(170));var b=a;do{switch(b.tag){case 3:b=b.stateNode.context;break a;case 1:if(Zf(b.type)){b=b.stateNode.__reactInternalMemoizedMergedChildContext;break a}}b=b.return}while(null!==b);throw Error(p(171))}if(1===a.tag){var c=a.type;if(Zf(c))return bg(a,c,b)}return b}function el(a,b,c,d,e,f,g,h,k){return(a=bl(c,d,!0,a,0,f,0,h,k)).context=dl(null),c=a.current,(f=mh(d=R(),e=yi(c))).callback=null!=b?b:null,nh(c,f,e),a.current.lanes=e,Ac(a,e,d),Dk(a,d),a}function fl(a,b,c,d){var e=b.current,f=R(),g=yi(e);return c=dl(c),null===b.context?b.context=c:b.pendingContext=c,(b=mh(f,g)).payload={element:a},null!==(d=void 0===d?null:d)&&(b.callback=d),null!==(a=nh(e,b,g))&&(gi(a,e,g,f),oh(a,e,g)),g}function gl(a){return(a=a.current).child?(a.child.tag,a.child.stateNode):null}function hl(a,b){if(null!==(a=a.memoizedState)&&null!==a.dehydrated){var c=a.retryLane;a.retryLane=0!==c&&c<b?c:b}}function il(a,b){hl(a,b),(a=a.alternate)&&hl(a,b)}Vk=function(a,b,c){if(null!==a)if(a.memoizedProps!==b.pendingProps||Wf.current)dh=!0;else{if(!(a.lanes&c||128&b.flags))return dh=!1,function yj(a,b,c){switch(b.tag){case 3:kj(b),Ig();break;case 5:Ah(b);break;case 1:Zf(b.type)&&cg(b);break;case 4:yh(b,b.stateNode.containerInfo);break;case 10:var d=b.type._context,e=b.memoizedProps.value;G(Wg,d._currentValue),d._currentValue=e;break;case 13:if(null!==(d=b.memoizedState))return null!==d.dehydrated?(G(L,1&L.current),b.flags|=128,null):c&b.child.childLanes?oj(a,b,c):(G(L,1&L.current),null!==(a=Zi(a,b,c))?a.sibling:null);G(L,1&L.current);break;case 19:if(d=!!(c&b.childLanes),128&a.flags){if(d)return xj(a,b,c);b.flags|=128}if(null!==(e=b.memoizedState)&&(e.rendering=null,e.tail=null,e.lastEffect=null),G(L,L.current),d)break;return null;case 22:case 23:return b.lanes=0,dj(a,b,c)}return Zi(a,b,c)}(a,b,c);dh=!!(131072&a.flags)}else dh=!1,I&&1048576&b.flags&&ug(b,ng,b.index);switch(b.lanes=0,b.tag){case 2:var d=b.type;ij(a,b),a=b.pendingProps;var e=Yf(b,H.current);ch(b,c),e=Nh(null,b,d,a,e,c);var f=Sh();return b.flags|=1,"object"==typeof e&&null!==e&&"function"==typeof e.render&&void 0===e.$$typeof?(b.tag=1,b.memoizedState=null,b.updateQueue=null,Zf(d)?(f=!0,cg(b)):f=!1,b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,kh(b),e.updater=Ei,b.stateNode=e,e._reactInternals=b,Ii(b,d,a,c),b=jj(null,b,d,!0,f,c)):(b.tag=0,I&&f&&vg(b),Xi(null,b,e,c),b=b.child),b;case 16:d=b.elementType;a:{switch(ij(a,b),a=b.pendingProps,d=(e=d._init)(d._payload),b.type=d,e=b.tag=function Zk(a){if("function"==typeof a)return aj(a)?1:0;if(null!=a){if((a=a.$$typeof)===Da)return 11;if(a===Ga)return 14}return 2}(d),a=Ci(d,a),e){case 0:b=cj(null,b,d,a,c);break a;case 1:b=hj(null,b,d,a,c);break a;case 11:b=Yi(null,b,d,a,c);break a;case 14:b=$i(null,b,d,Ci(d.type,a),c);break a}throw Error(p(306,d,""))}return b;case 0:return d=b.type,e=b.pendingProps,cj(a,b,d,e=b.elementType===d?e:Ci(d,e),c);case 1:return d=b.type,e=b.pendingProps,hj(a,b,d,e=b.elementType===d?e:Ci(d,e),c);case 3:a:{if(kj(b),null===a)throw Error(p(387));d=b.pendingProps,e=(f=b.memoizedState).element,lh(a,b),qh(b,d,null,c);var g=b.memoizedState;if(d=g.element,f.isDehydrated){if(f={element:d,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},b.updateQueue.baseState=f,b.memoizedState=f,256&b.flags){b=lj(a,b,d,c,e=Ji(Error(p(423)),b));break a}if(d!==e){b=lj(a,b,d,c,e=Ji(Error(p(424)),b));break a}for(yg=Lf(b.stateNode.containerInfo.firstChild),xg=b,I=!0,zg=null,c=Vg(b,null,d,c),b.child=c;c;)c.flags=-3&c.flags|4096,c=c.sibling}else{if(Ig(),d===e){b=Zi(a,b,c);break a}Xi(a,b,d,c)}b=b.child}return b;case 5:return Ah(b),null===a&&Eg(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,Ef(d,e)?g=null:null!==f&&Ef(d,f)&&(b.flags|=32),gj(a,b),Xi(a,b,g,c),b.child;case 6:return null===a&&Eg(b),null;case 13:return oj(a,b,c);case 4:return yh(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Ug(b,null,d,c):Xi(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,Yi(a,b,d,e=b.elementType===d?e:Ci(d,e),c);case 7:return Xi(a,b,b.pendingProps,c),b.child;case 8:case 12:return Xi(a,b,b.pendingProps.children,c),b.child;case 10:a:{if(d=b.type._context,e=b.pendingProps,f=b.memoizedProps,g=e.value,G(Wg,d._currentValue),d._currentValue=g,null!==f)if(He(f.value,g)){if(f.children===e.children&&!Wf.current){b=Zi(a,b,c);break a}}else for(null!==(f=b.child)&&(f.return=b);null!==f;){var h=f.dependencies;if(null!==h){g=f.child;for(var k=h.firstContext;null!==k;){if(k.context===d){if(1===f.tag){(k=mh(-1,c&-c)).tag=2;var l=f.updateQueue;if(null!==l){var m=(l=l.shared).pending;null===m?k.next=k:(k.next=m.next,m.next=k),l.pending=k}}f.lanes|=c,null!==(k=f.alternate)&&(k.lanes|=c),bh(f.return,c,b),h.lanes|=c;break}k=k.next}}else if(10===f.tag)g=f.type===b.type?null:f.child;else if(18===f.tag){if(null===(g=f.return))throw Error(p(341));g.lanes|=c,null!==(h=g.alternate)&&(h.lanes|=c),bh(g,c,b),g=f.sibling}else g=f.child;if(null!==g)g.return=f;else for(g=f;null!==g;){if(g===b){g=null;break}if(null!==(f=g.sibling)){f.return=g.return,g=f;break}g=g.return}f=g}Xi(a,b,e.children,c),b=b.child}return b;case 9:return e=b.type,d=b.pendingProps.children,ch(b,c),d=d(e=eh(e)),b.flags|=1,Xi(a,b,d,c),b.child;case 14:return e=Ci(d=b.type,b.pendingProps),$i(a,b,d,e=Ci(d.type,e),c);case 15:return bj(a,b,b.type,b.pendingProps,c);case 17:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Ci(d,e),ij(a,b),b.tag=1,Zf(d)?(a=!0,cg(b)):a=!1,ch(b,c),Gi(b,d,e),Ii(b,d,e,c),jj(null,b,d,!0,a,c);case 19:return xj(a,b,c);case 22:return dj(a,b,c)}throw Error(p(156,b.tag))};var kl="function"==typeof reportError?reportError:function(a){console.error(a)};function ll(a){this._internalRoot=a}function ml(a){this._internalRoot=a}function nl(a){return!(!a||1!==a.nodeType&&9!==a.nodeType&&11!==a.nodeType)}function ol(a){return!(!a||1!==a.nodeType&&9!==a.nodeType&&11!==a.nodeType&&(8!==a.nodeType||" react-mount-point-unstable "!==a.nodeValue))}function pl(){}function rl(a,b,c,d,e){var f=c._reactRootContainer;if(f){var g=f;if("function"==typeof e){var h=e;e=function(){var a=gl(g);h.call(a)}}fl(b,g,a,e)}else g=function ql(a,b,c,d,e){if(e){if("function"==typeof d){var f=d;d=function(){var a=gl(g);f.call(a)}}var g=el(b,d,a,0,null,!1,0,"",pl);return a._reactRootContainer=g,a[uf]=g.current,sf(8===a.nodeType?a.parentNode:a),Rk(),g}for(;e=a.lastChild;)a.removeChild(e);if("function"==typeof d){var h=d;d=function(){var a=gl(k);h.call(a)}}var k=bl(a,0,!1,null,0,!1,0,"",pl);return a._reactRootContainer=k,a[uf]=k.current,sf(8===a.nodeType?a.parentNode:a),Rk((function(){fl(b,k,c,d)})),k}(c,b,a,e,d);return gl(g)}ml.prototype.render=ll.prototype.render=function(a){var b=this._internalRoot;if(null===b)throw Error(p(409));fl(a,b,null,null)},ml.prototype.unmount=ll.prototype.unmount=function(){var a=this._internalRoot;if(null!==a){this._internalRoot=null;var b=a.containerInfo;Rk((function(){fl(null,a,null,null)})),b[uf]=null}},ml.prototype.unstable_scheduleHydration=function(a){if(a){var b=Hc();a={blockedOn:null,target:a,priority:b};for(var c=0;c<Qc.length&&0!==b&&b<Qc[c].priority;c++);Qc.splice(c,0,a),0===c&&Vc(a)}},Ec=function(a){switch(a.tag){case 3:var b=a.stateNode;if(b.current.memoizedState.isDehydrated){var c=tc(b.pendingLanes);0!==c&&(Cc(b,1|c),Dk(b,B()),!(6&K)&&(Gj=B()+500,jg()))}break;case 13:Rk((function(){var b=ih(a,1);if(null!==b){var c=R();gi(b,a,1,c)}})),il(a,1)}},Fc=function(a){if(13===a.tag){var b=ih(a,134217728);if(null!==b)gi(b,a,134217728,R());il(a,134217728)}},Gc=function(a){if(13===a.tag){var b=yi(a),c=ih(a,b);if(null!==c)gi(c,a,b,R());il(a,b)}},Hc=function(){return C},Ic=function(a,b){var c=C;try{return C=a,b()}finally{C=c}},yb=function(a,b,c){switch(b){case"input":if(bb(a,c),b=c.name,"radio"===c.type&&null!=b){for(c=a;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll("input[name="+JSON.stringify(""+b)+'][type="radio"]'),b=0;b<c.length;b++){var d=c[b];if(d!==a&&d.form===a.form){var e=Db(d);if(!e)throw Error(p(90));Wa(d),bb(d,e)}}}break;case"textarea":ib(a,c);break;case"select":null!=(b=c.value)&&fb(a,!!c.multiple,b,!1)}},Gb=Qk,Hb=Rk;var sl={usingClientEntryPoint:!1,Events:[Cb,ue,Db,Eb,Fb,Qk]},tl={findFiberByHostInstance:Wc,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ul={bundleType:tl.bundleType,version:tl.version,rendererPackageName:tl.rendererPackageName,rendererConfig:tl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){return null===(a=Zb(a))?null:a.stateNode},findFiberByHostInstance:tl.findFiberByHostInstance||function jl(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var vl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vl.isDisabled&&vl.supportsFiber)try{kc=vl.inject(ul),lc=vl}catch(a){}}exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sl,exports.createPortal=function(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!nl(b))throw Error(p(200));return function cl(a,b,c){var d=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:wa,key:null==d?null:""+d,children:a,containerInfo:b,implementation:c}}(a,b,null,c)},exports.createRoot=function(a,b){if(!nl(a))throw Error(p(299));var c=!1,d="",e=kl;return null!=b&&(!0===b.unstable_strictMode&&(c=!0),void 0!==b.identifierPrefix&&(d=b.identifierPrefix),void 0!==b.onRecoverableError&&(e=b.onRecoverableError)),b=bl(a,1,!1,null,0,c,0,d,e),a[uf]=b.current,sf(8===a.nodeType?a.parentNode:a),new ll(b)},exports.findDOMNode=function(a){if(null==a)return null;if(1===a.nodeType)return a;var b=a._reactInternals;if(void 0===b){if("function"==typeof a.render)throw Error(p(188));throw a=Object.keys(a).join(","),Error(p(268,a))}return a=null===(a=Zb(b))?null:a.stateNode},exports.flushSync=function(a){return Rk(a)},exports.hydrate=function(a,b,c){if(!ol(b))throw Error(p(200));return rl(null,a,b,!0,c)},exports.hydrateRoot=function(a,b,c){if(!nl(a))throw Error(p(405));var d=null!=c&&c.hydratedSources||null,e=!1,f="",g=kl;if(null!=c&&(!0===c.unstable_strictMode&&(e=!0),void 0!==c.identifierPrefix&&(f=c.identifierPrefix),void 0!==c.onRecoverableError&&(g=c.onRecoverableError)),b=el(b,null,a,1,null!=c?c:null,e,0,f,g),a[uf]=b.current,sf(a),d)for(a=0;a<d.length;a++)e=(e=(c=d[a])._getVersion)(c._source),null==b.mutableSourceEagerHydrationData?b.mutableSourceEagerHydrationData=[c,e]:b.mutableSourceEagerHydrationData.push(c,e);return new ml(b)},exports.render=function(a,b,c){if(!ol(b))throw Error(p(200));return rl(null,a,b,!1,c)},exports.unmountComponentAtNode=function(a){if(!ol(a))throw Error(p(40));return!!a._reactRootContainer&&(Rk((function(){rl(null,null,a,!1,(function(){a._reactRootContainer=null,a[uf]=null}))})),!0)},exports.unstable_batchedUpdates=Qk,exports.unstable_renderSubtreeIntoContainer=function(a,b,c,d){if(!ol(c))throw Error(p(200));if(null==a||void 0===a._reactInternals)throw Error(p(38));return rl(a,b,c,!1,d)},exports.version="18.3.1-next-f1338f8080-20240426"},"./node_modules/react-dom/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{!function checkDCE(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(err){console.error(err)}}(),module.exports=__webpack_require__("./node_modules/react-dom/cjs/react-dom.production.min.js")},"./node_modules/react/cjs/react-jsx-runtime.production.min.js":(__unused_webpack_module,exports,__webpack_require__)=>{var f=__webpack_require__("./node_modules/react/index.js"),k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function q(c,a,g){var b,d={},e=null,h=null;for(b in void 0!==g&&(e=""+g),void 0!==a.key&&(e=""+a.key),void 0!==a.ref&&(h=a.ref),a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l,exports.jsx=q,exports.jsxs=q},"./node_modules/react/cjs/react.production.min.js":(__unused_webpack_module,exports)=>{var l=Symbol.for("react.element"),n=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z=Symbol.iterator;var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a,this.context=b,this.refs=D,this.updater=e||B}function F(){}function G(a,b,e){this.props=a,this.context=b,this.refs=D,this.updater=e||B}E.prototype.isReactComponent={},E.prototype.setState=function(a,b){if("object"!=typeof a&&"function"!=typeof a&&null!=a)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState")},E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")},F.prototype=E.prototype;var H=G.prototype=new F;H.constructor=G,C(H,E.prototype),H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=""+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];c.children=f}if(a&&a.defaultProps)for(d in g=a.defaultProps)void 0===c[d]&&(c[d]=g[d]);return{$$typeof:l,type:a,key:k,ref:h,props:c,_owner:K.current}}function O(a){return"object"==typeof a&&null!==a&&a.$$typeof===l}var P=/\/+/g;function Q(a,b){return"object"==typeof a&&null!==a&&null!=a.key?function escape(a){var b={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,(function(a){return b[a]}))}(""+a.key):b.toString(36)}function R(a,b,e,d,c){var k=typeof a;"undefined"!==k&&"boolean"!==k||(a=null);var h=!1;if(null===a)h=!0;else switch(k){case"string":case"number":h=!0;break;case"object":switch(a.$$typeof){case l:case n:h=!0}}if(h)return c=c(h=a),a=""===d?"."+Q(h,0):d,I(c)?(e="",null!=a&&(e=a.replace(P,"$&/")+"/"),R(c,b,e,"",(function(a){return a}))):null!=c&&(O(c)&&(c=function N(a,b){return{$$typeof:l,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}(c,e+(!c.key||h&&h.key===c.key?"":(""+c.key).replace(P,"$&/")+"/")+a)),b.push(c)),1;if(h=0,d=""===d?".":d+":",I(a))for(var g=0;g<a.length;g++){var f=d+Q(k=a[g],g);h+=R(k,b,e,f,c)}else if(f=function A(a){return null===a||"object"!=typeof a?null:"function"==typeof(a=z&&a[z]||a["@@iterator"])?a:null}(a),"function"==typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)h+=R(k=k.value,b,e,f=d+Q(k,g++),c);else if("object"===k)throw b=String(a),Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");return h}function S(a,b,e){if(null==a)return a;var d=[],c=0;return R(a,d,"","",(function(a){return b.call(e,a,c++)})),d}function T(a){if(-1===a._status){var b=a._result;(b=b()).then((function(b){0!==a._status&&-1!==a._status||(a._status=1,a._result=b)}),(function(b){0!==a._status&&-1!==a._status||(a._status=2,a._result=b)})),-1===a._status&&(a._status=0,a._result=b)}if(1===a._status)return a._result.default;throw a._result}var U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};function X(){throw Error("act(...) is not supported in production builds of React.")}exports.Children={map:S,forEach:function(a,b,e){S(a,(function(){b.apply(this,arguments)}),e)},count:function(a){var b=0;return S(a,(function(){b++})),b},toArray:function(a){return S(a,(function(a){return a}))||[]},only:function(a){if(!O(a))throw Error("React.Children.only expected to receive a single React element child.");return a}},exports.Component=E,exports.Fragment=p,exports.Profiler=r,exports.PureComponent=G,exports.StrictMode=q,exports.Suspense=w,exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,exports.act=X,exports.cloneElement=function(a,b,e){if(null==a)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+a+".");var d=C({},a.props),c=a.key,k=a.ref,h=a._owner;if(null!=b){if(void 0!==b.ref&&(k=b.ref,h=K.current),void 0!==b.key&&(c=""+b.key),a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)J.call(b,f)&&!L.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==g?g[f]:b[f])}var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){g=Array(f);for(var m=0;m<f;m++)g[m]=arguments[m+2];d.children=g}return{$$typeof:l,type:a.type,key:c,ref:k,props:d,_owner:h}},exports.createContext=function(a){return(a={$$typeof:u,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:t,_context:a},a.Consumer=a},exports.createElement=M,exports.createFactory=function(a){var b=M.bind(null,a);return b.type=a,b},exports.createRef=function(){return{current:null}},exports.forwardRef=function(a){return{$$typeof:v,render:a}},exports.isValidElement=O,exports.lazy=function(a){return{$$typeof:y,_payload:{_status:-1,_result:a},_init:T}},exports.memo=function(a,b){return{$$typeof:x,type:a,compare:void 0===b?null:b}},exports.startTransition=function(a){var b=V.transition;V.transition={};try{a()}finally{V.transition=b}},exports.unstable_act=X,exports.useCallback=function(a,b){return U.current.useCallback(a,b)},exports.useContext=function(a){return U.current.useContext(a)},exports.useDebugValue=function(){},exports.useDeferredValue=function(a){return U.current.useDeferredValue(a)},exports.useEffect=function(a,b){return U.current.useEffect(a,b)},exports.useId=function(){return U.current.useId()},exports.useImperativeHandle=function(a,b,e){return U.current.useImperativeHandle(a,b,e)},exports.useInsertionEffect=function(a,b){return U.current.useInsertionEffect(a,b)},exports.useLayoutEffect=function(a,b){return U.current.useLayoutEffect(a,b)},exports.useMemo=function(a,b){return U.current.useMemo(a,b)},exports.useReducer=function(a,b,e){return U.current.useReducer(a,b,e)},exports.useRef=function(a){return U.current.useRef(a)},exports.useState=function(a){return U.current.useState(a)},exports.useSyncExternalStore=function(a,b,e){return U.current.useSyncExternalStore(a,b,e)},exports.useTransition=function(){return U.current.useTransition()},exports.version="18.3.1"},"./node_modules/react/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=__webpack_require__("./node_modules/react/cjs/react.production.min.js")},"./node_modules/react/jsx-runtime.js":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=__webpack_require__("./node_modules/react/cjs/react-jsx-runtime.production.min.js")},"./node_modules/scheduler/cjs/scheduler.production.min.js":(__unused_webpack_module,exports)=>{function f(a,b){var c=a.length;a.push(b);a:for(;0<c;){var d=c-1>>>1,e=a[d];if(!(0<g(e,b)))break a;a[d]=b,a[c]=e,c=d}}function h(a){return 0===a.length?null:a[0]}function k(a){if(0===a.length)return null;var b=a[0],c=a.pop();if(c!==b){a[0]=c;a:for(var d=0,e=a.length,w=e>>>1;d<w;){var m=2*(d+1)-1,C=a[m],n=m+1,x=a[n];if(0>g(C,c))n<e&&0>g(x,C)?(a[d]=x,a[n]=c,d=n):(a[d]=C,a[m]=c,d=m);else{if(!(n<e&&0>g(x,c)))break a;a[d]=x,a[n]=c,d=n}}}return b}function g(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}if("object"==typeof performance&&"function"==typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()}}else{var p=Date,q=p.now();exports.unstable_now=function(){return p.now()-q}}var r=[],t=[],u=1,v=null,y=3,z=!1,A=!1,B=!1,D="function"==typeof setTimeout?setTimeout:null,E="function"==typeof clearTimeout?clearTimeout:null,F="undefined"!=typeof setImmediate?setImmediate:null;function G(a){for(var b=h(t);null!==b;){if(null===b.callback)k(t);else{if(!(b.startTime<=a))break;k(t),b.sortIndex=b.expirationTime,f(r,b)}b=h(t)}}function H(a){if(B=!1,G(a),!A)if(null!==h(r))A=!0,I(J);else{var b=h(t);null!==b&&K(H,b.startTime-a)}}function J(a,b){A=!1,B&&(B=!1,E(L),L=-1),z=!0;var c=y;try{for(G(b),v=h(r);null!==v&&(!(v.expirationTime>b)||a&&!M());){var d=v.callback;if("function"==typeof d){v.callback=null,y=v.priorityLevel;var e=d(v.expirationTime<=b);b=exports.unstable_now(),"function"==typeof e?v.callback=e:v===h(r)&&k(r),G(b)}else k(r);v=h(r)}if(null!==v)var w=!0;else{var m=h(t);null!==m&&K(H,m.startTime-b),w=!1}return w}finally{v=null,y=c,z=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,N=!1,O=null,L=-1,P=5,Q=-1;function M(){return!(exports.unstable_now()-Q<P)}function R(){if(null!==O){var a=exports.unstable_now();Q=a;var b=!0;try{b=O(!0,a)}finally{b?S():(N=!1,O=null)}}else N=!1}if("function"==typeof F)S=function(){F(R)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,U=T.port2;T.port1.onmessage=R,S=function(){U.postMessage(null)}}else S=function(){D(R,0)};function I(a){O=a,N||(N=!0,S())}function K(a,b){L=D((function(){a(exports.unstable_now())}),b)}exports.unstable_IdlePriority=5,exports.unstable_ImmediatePriority=1,exports.unstable_LowPriority=4,exports.unstable_NormalPriority=3,exports.unstable_Profiling=null,exports.unstable_UserBlockingPriority=2,exports.unstable_cancelCallback=function(a){a.callback=null},exports.unstable_continueExecution=function(){A||z||(A=!0,I(J))},exports.unstable_forceFrameRate=function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<a?Math.floor(1e3/a):5},exports.unstable_getCurrentPriorityLevel=function(){return y},exports.unstable_getFirstCallbackNode=function(){return h(r)},exports.unstable_next=function(a){switch(y){case 1:case 2:case 3:var b=3;break;default:b=y}var c=y;y=b;try{return a()}finally{y=c}},exports.unstable_pauseExecution=function(){},exports.unstable_requestPaint=function(){},exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var c=y;y=a;try{return b()}finally{y=c}},exports.unstable_scheduleCallback=function(a,b,c){var d=exports.unstable_now();switch("object"==typeof c&&null!==c?c="number"==typeof(c=c.delay)&&0<c?d+c:d:c=d,a){case 1:var e=-1;break;case 2:e=250;break;case 5:e=1073741823;break;case 4:e=1e4;break;default:e=5e3}return a={id:u++,callback:b,priorityLevel:a,startTime:c,expirationTime:e=c+e,sortIndex:-1},c>d?(a.sortIndex=c,f(t,a),null===h(r)&&a===h(t)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(r,a),A||z||(A=!0,I(J))),a},exports.unstable_shouldYield=M,exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c}}}},"./node_modules/scheduler/index.js":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=__webpack_require__("./node_modules/scheduler/cjs/scheduler.production.min.js")},"./node_modules/storybook/dist/components/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{var react__WEBPACK_IMPORTED_MODULE_0___namespace_cache;__webpack_require__.d(__webpack_exports__,{$n:()=>Ir,Cy:()=>ii,Df:()=>g3,E7:()=>Ya,GP:()=>l3,H2:()=>ui,H3:()=>fi,K0:()=>xo,N_:()=>Ai,Q2:()=>qo,YV:()=>N,_:()=>i6,_j:()=>ml,aH:()=>dw,bF:()=>ru,createCopyToClipboardFunction:()=>oi,dK:()=>yO,dL:()=>jl,jZ:()=>vw,kR:()=>Y7,lV:()=>Z3,mc:()=>J,o4:()=>Z7,px:()=>jo,zb:()=>at});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),storybook_theming__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/storybook/dist/theming/index.js"),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/react/jsx-runtime.js"),react_dom__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/react-dom/index.js"),storybook_internal_client_logger__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("storybook/internal/client-logger"),_storybook_global__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("@storybook/global"),storybook_internal_csf__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/storybook/dist/csf/index.js"),wp=Object.create,Tn=Object.defineProperty,bp=Object.getOwnPropertyDescriptor,yp=Object.getOwnPropertyNames,Rp=Object.getPrototypeOf,xp=Object.prototype.hasOwnProperty,o=(e,t)=>Tn(e,"name",{value:t,configurable:!0}),Xr=(()=>__webpack_require__("./node_modules/storybook/dist/components sync recursive"))(),C=(e,t)=>()=>(e&&(t=e(e=0)),t),H=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Zr=(e,t)=>{for(var r in t)Tn(e,r,{get:t[r],enumerable:!0})},me=(e,t,r)=>(r=null!=e?wp(Rp(e)):{},((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of yp(t))!xp.call(e,a)&&a!==r&&Tn(e,a,{get:()=>t[a],enumerable:!(n=bp(t,a))||n.enumerable});return e})(!t&&e&&e.__esModule?r:Tn(r,"default",{value:e,enumerable:!0}),e));function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},W.apply(null,arguments)}var Kr=C((()=>{o(W,"_extends")}));function Tl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Hl=C((()=>{o(Tl,"_assertThisInitialized")}));function ht(e,t){return(ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r})(e,t)}var Hn=C((()=>{o(ht,"_setPrototypeOf")}));function Pn(e){return(Pn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(e)}var kl=C((()=>{o(Pn,"_getPrototypeOf")})),Qr=H(((Ul,ia)=>{!function(e){if("object"==typeof Ul&&typeof ia<"u")ia.exports=e();else if("function"==typeof define&&__webpack_require__.amdO)define([],e);else{(typeof window<"u"?window:typeof __webpack_require__.g<"u"?__webpack_require__.g:typeof self<"u"?self:this).memoizerific=e()}}((function(){return o((function n(a,i,c){function l(f,d){if(!i[f]){if(!a[f]){var m="function"==typeof Xr&&Xr;if(!d&&m)return m(f,!0);if(s)return s(f,!0);var v=new Error("Cannot find module '"+f+"'");throw v.code="MODULE_NOT_FOUND",v}var y=i[f]={exports:{}};a[f][0].call(y.exports,(function(p){return l(a[f][1][p]||p)}),y,y.exports,n,a,i,c)}return i[f].exports}o(l,"s");for(var s="function"==typeof Xr&&Xr,u=0;u<c.length;u++)l(c[u]);return l}),"e")({1:[function(n,a,i){a.exports=function(c){return"function"!=typeof Map||c?new(n("./similar")):new Map}},{"./similar":2}],2:[function(n,a,i){function c(){return this.list=[],this.lastItem=void 0,this.size=0,this}o(c,"Similar"),c.prototype.get=function(l){var s;return this.lastItem&&this.isEqual(this.lastItem.key,l)?this.lastItem.val:(s=this.indexOf(l))>=0?(this.lastItem=this.list[s],this.list[s].val):void 0},c.prototype.set=function(l,s){var u;return this.lastItem&&this.isEqual(this.lastItem.key,l)?(this.lastItem.val=s,this):(u=this.indexOf(l))>=0?(this.lastItem=this.list[u],this.list[u].val=s,this):(this.lastItem={key:l,val:s},this.list.push(this.lastItem),this.size++,this)},c.prototype.delete=function(l){var s;if(this.lastItem&&this.isEqual(this.lastItem.key,l)&&(this.lastItem=void 0),(s=this.indexOf(l))>=0)return this.size--,this.list.splice(s,1)[0]},c.prototype.has=function(l){var s;return!(!this.lastItem||!this.isEqual(this.lastItem.key,l))||(s=this.indexOf(l))>=0&&(this.lastItem=this.list[s],!0)},c.prototype.forEach=function(l,s){var u;for(u=0;u<this.size;u++)l.call(s||this,this.list[u].val,this.list[u].key,this)},c.prototype.indexOf=function(l){var s;for(s=0;s<this.size;s++)if(this.isEqual(this.list[s].key,l))return s;return-1},c.prototype.isEqual=function(l,s){return l===s||l!=l&&s!=s},a.exports=c},{}],3:[function(n,a,i){var c=n("map-or-similar");function l(f,d){var y,p,h,m=f.length,v=d.length;for(p=0;p<m;p++){for(y=!0,h=0;h<v;h++)if(!u(f[p][h].arg,d[h].arg)){y=!1;break}if(y)break}f.push(f.splice(p,1)[0])}function s(f){var v,y,d=f.length,m=f[d-1];for(m.cacheItem.delete(m.arg),y=d-2;y>=0&&(!(v=(m=f[y]).cacheItem.get(m.arg))||!v.size);y--)m.cacheItem.delete(m.arg)}function u(f,d){return f===d||f!=f&&d!=d}a.exports=function(f){var d=new c(!1),m=[];return function(v){var y=o((function(){var h,g,E,p=d,w=arguments.length-1,b=Array(w+1),x=!0;if((y.numArgs||0===y.numArgs)&&y.numArgs!==w+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(E=0;E<w;E++)b[E]={cacheItem:p,arg:arguments[E]},p.has(arguments[E])?p=p.get(arguments[E]):(x=!1,h=new c(!1),p.set(arguments[E],h),p=h);return x&&(p.has(arguments[w])?g=p.get(arguments[w]):x=!1),x||(g=v.apply(null,arguments),p.set(arguments[w],g)),f>0&&(b[w]={cacheItem:p,arg:arguments[w]},x?l(m,b):m.push(b),m.length>f&&s(m.shift())),y.wasMemoized=x,y.numArgs=w+1,g}),"memoizerific");return y.limit=f,y.wasMemoized=!1,y.cache=d,y.lru=m,y}},o(l,"moveToMostRecentLru"),o(s,"removeCachedResult"),o(u,"isEqual")},{"map-or-similar":1}]},{},[3])(3)}))}));function ur(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var Bn=C((()=>{o(ur,"_objectWithoutPropertiesLoose")}));function ql(e,t){if(null==e)return{};var r,n,a=ur(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var Gl=C((()=>{Bn(),o(ql,"_objectWithoutProperties")}));function en(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var la=C((()=>{o(en,"_arrayLikeToArray")}));function Yl(e){if(Array.isArray(e))return en(e)}var Xl=C((()=>{la(),o(Yl,"_arrayWithoutHoles")}));function Zl(e){if(typeof Symbol<"u"&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var Kl=C((()=>{o(Zl,"_iterableToArray")}));function Jl(e,t){if(e){if("string"==typeof e)return en(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?en(e,t):void 0}}var Ql=C((()=>{la(),o(Jl,"_unsupportedIterableToArray")}));function ec(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var tc=C((()=>{o(ec,"_nonIterableSpread")}));function Nn(e){return Yl(e)||Zl(e)||Jl(e)||ec()}var rc=C((()=>{Xl(),Kl(),Ql(),tc(),o(Nn,"_toConsumableArray")}));function Dt(e){return(Dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var ca=C((()=>{o(Dt,"_typeof")}));function nc(e,t){if("object"!=Dt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Dt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var oc=C((()=>{ca(),o(nc,"toPrimitive")}));function ac(e){var t=nc(e,"string");return"symbol"==Dt(t)?t:t+""}var ic=C((()=>{ca(),oc(),o(ac,"toPropertyKey")}));function Fn(e,t,r){return(t=ac(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var sa=C((()=>{ic(),o(Fn,"_defineProperty")}));function lc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),r.push.apply(r,n)}return r}function fr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lc(Object(r),!0).forEach((function(n){Fn(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lc(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function m2(e){var t=e.length;return 0===t||1===t?e:2===t?[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])]:3===t?[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])]:t>=4?[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]:void 0}function h2(e){if(0===e.length||1===e.length)return e;var t=e.join(".");return ua[t]||(ua[t]=m2(e)),ua[t]}function g2(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return h2(e.filter((function(i){return"token"!==i}))).reduce((function(i,c){return fr(fr({},i),r[c])}),t)}function cc(e){return e.join(" ")}function v2(e,t){var r=0;return function(n){return r+=1,n.map((function(a,i){return _t({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(i)})}))}}function _t(e){var t=e.node,r=e.stylesheet,n=e.style,a=void 0===n?{}:n,i=e.useInlineStyles,c=e.key,l=t.properties,s=t.type,u=t.tagName,f=t.value;if("text"===s)return f;if(u){var m,d=v2(r,i);if(i){var v=Object.keys(r).reduce((function(g,w){return w.split(".").forEach((function(b){g.includes(b)||g.push(b)})),g}),[]),y=l.className&&l.className.includes("token")?["token"]:[],p=l.className&&y.concat(l.className.filter((function(g){return!v.includes(g)})));m=fr(fr({},l),{},{className:cc(p)||void 0,style:g2(l.className,Object.assign({},l.style,a),r)})}else m=fr(fr({},l),{},{className:cc(l.className)});var h=d(t.children);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(u,W({key:c},m),h)}}var ua,sc,fa=C((()=>{Kr(),sa(),o(lc,"ownKeys"),o(fr,"_objectSpread"),o(m2,"powerSetPermutations"),ua={},o(h2,"getClassNameCombinations"),o(g2,"createStyleObject"),o(cc,"createClassNameString"),o(v2,"createChildren"),o(_t,"createElement")})),uc=C((()=>{sc=o((function(e,t){return-1!==e.listLanguages().indexOf(t)}),"default")}));function fc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),r.push.apply(r,n)}return r}function bt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fc(Object(r),!0).forEach((function(n){Fn(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fc(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function y2(e){return e.match(b2)}function R2(e){var t=e.lines,r=e.startingLineNumber,n=e.style;return t.map((function(a,i){var c=i+r;return react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{key:"line-".concat(i),className:"react-syntax-highlighter-line-number",style:"function"==typeof n?n(c):n},"".concat(c,"\n"))}))}function x2(e){var t=e.codeString,r=e.codeStyle,n=e.containerStyle,a=void 0===n?{float:"left",paddingRight:"10px"}:n,i=e.numberStyle,c=void 0===i?{}:i,l=e.startingLineNumber;return react__WEBPACK_IMPORTED_MODULE_0__.createElement("code",{style:Object.assign({},r,a)},R2({lines:t.replace(/\n$/,"").split("\n"),style:c,startingLineNumber:l}))}function E2(e){return"".concat(e.toString().length,".25em")}function dc(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function pc(e,t,r){var n={display:"inline-block",minWidth:E2(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},a="function"==typeof e?e(t):e;return bt(bt({},n),a)}function Dn(e){var t=e.children,r=e.lineNumber,n=e.lineNumberStyle,a=e.largestLineNumber,i=e.showInlineLineNumbers,c=e.lineProps,l=void 0===c?{}:c,s=e.className,u=void 0===s?[]:s,f=e.showLineNumbers,d=e.wrapLongLines,m=e.wrapLines,y=void 0!==m&&m?bt({},"function"==typeof l?l(r):l):{};if(y.className=y.className?[].concat(Nn(y.className.trim().split(/\s+/)),Nn(u)):u,r&&i){var p=pc(n,r,a);t.unshift(dc(r,p))}return d&f&&(y.style=bt({display:"flex"},y.style)),{type:"element",tagName:"span",properties:y,children:t}}function mc(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=0;n<e.length;n++){var a=e[n];if("text"===a.type)r.push(Dn({children:[a],className:Nn(new Set(t))}));else if(a.children){var i=t.concat(a.properties.className);mc(a.children,i).forEach((function(c){return r.push(c)}))}}return r}function S2(e,t,r,n,a,i,c,l,s){var u,f=mc(e.value),d=[],m=-1,v=0;function y(E,R){return Dn({children:E,lineNumber:R,lineNumberStyle:l,largestLineNumber:c,showInlineLineNumbers:a,lineProps:r,className:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],showLineNumbers:n,wrapLongLines:s,wrapLines:t})}function p(E,R){if(n&&R&&a){var S=pc(l,R,c);E.unshift(dc(R,S))}return E}function h(E,R){var S=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t||S.length>0?y(E,R,S):p(E,R)}o(y,"createWrappedLine"),o(p,"createUnwrappedLine"),o(h,"createLine");for(var g=o((function(){var R=f[v],S=R.children[0].value;if(y2(S)){var M=S.split("\n");M.forEach((function(L,P){var _=n&&d.length+i,D={type:"text",value:"".concat(L,"\n")};if(0===P){var T=h(f.slice(m+1,v).concat(Dn({children:[D],className:R.properties.className})),_);d.push(T)}else if(P===M.length-1){var z=f[v+1]&&f[v+1].children&&f[v+1].children[0],k={type:"text",value:"".concat(L)};if(z){var V=Dn({children:[k],className:R.properties.className});f.splice(v+1,0,V)}else{var j=h([k],_,R.properties.className);d.push(j)}}else{var G=h([D],_,R.properties.className);d.push(G)}})),m=v}v++}),"_loop");v<f.length;)g();if(m!==f.length-1){var w=f.slice(m+1,f.length);if(w&&w.length){var x=h(w,n&&d.length+i);d.push(x)}}return t?d:(u=[]).concat.apply(u,d)}function C2(e){var t=e.rows,r=e.stylesheet,n=e.useInlineStyles;return t.map((function(a,i){return _t({node:a,stylesheet:r,useInlineStyles:n,key:"code-segement".concat(i)})}))}function hc(e){return e&&typeof e.highlightAuto<"u"}function M2(e){var t=e.astGenerator,r=e.language,n=e.code,a=e.defaultCodeValue;if(hc(t)){var i=sc(t,r);return"text"===r?{value:a,language:"text"}:i?t.highlight(r,n):t.highlightAuto(n)}try{return r&&"text"!==r?{value:t.highlight(n,r)}:{value:a}}catch{return{value:a}}}function da(e,t){return o((function(n){var a=n.language,i=n.children,c=n.style,l=void 0===c?t:c,s=n.customStyle,u=void 0===s?{}:s,f=n.codeTagProps,d=void 0===f?{className:a?"language-".concat(a):void 0,style:bt(bt({},l['code[class*="language-"]']),l['code[class*="language-'.concat(a,'"]')])}:f,m=n.useInlineStyles,v=void 0===m||m,y=n.showLineNumbers,p=void 0!==y&&y,h=n.showInlineLineNumbers,g=void 0===h||h,w=n.startingLineNumber,b=void 0===w?1:w,x=n.lineNumberContainerStyle,E=n.lineNumberStyle,R=void 0===E?{}:E,S=n.wrapLines,A=n.wrapLongLines,M=void 0!==A&&A,L=n.lineProps,P=void 0===L?{}:L,_=n.renderer,D=n.PreTag,K=void 0===D?"pre":D,T=n.CodeTag,z=void 0===T?"code":T,k=n.code,V=void 0===k?(Array.isArray(i)?i[0]:i)||"":k,F=n.astGenerator,j=ql(n,w2);F=F||e;var O=p?react__WEBPACK_IMPORTED_MODULE_0__.createElement(x2,{containerStyle:x,codeStyle:d.style||{},numberStyle:R,startingLineNumber:b,codeString:V}):null,G=l.hljs||l['pre[class*="language-"]']||{backgroundColor:"#fff"},Ee=hc(F)?"hljs":"prismjs",pe=v?Object.assign({},j,{style:Object.assign({},G,u)}):Object.assign({},j,{className:j.className?"".concat(Ee," ").concat(j.className):Ee,style:Object.assign({},u)});if(d.style=bt(M?{whiteSpace:"pre-wrap"}:{whiteSpace:"pre"},d.style),!F)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(K,pe,O,react__WEBPACK_IMPORTED_MODULE_0__.createElement(z,d,V));(void 0===S&&_||M)&&(S=!0),_=_||C2;var se=[{type:"text",value:V}],ue=M2({astGenerator:F,language:a,code:V,defaultCodeValue:se});null===ue.language&&(ue.value=se);var ve=ue.value.length;1===ve&&"text"===ue.value[0].type&&(ve=ue.value[0].value.split("\n").length);var Ot=S2(ue,S,P,p,g,b,ve+b,R,M);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(K,pe,react__WEBPACK_IMPORTED_MODULE_0__.createElement(z,d,!g&&O,_({rows:Ot,stylesheet:l,useInlineStyles:v})))}),"SyntaxHighlighter")}var w2,b2,qn,Ba,Gn,o1,a1,l1,c1,d1,p1,v1,w1,x1,E1,M1,A1,T1,H1,k1,O1,_1,$1,j1,W1,Y1,X1,Cm,Q1,Ya,gc=C((()=>{Gl(),rc(),sa(),fa(),uc(),w2=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"],o(fc,"ownKeys"),o(bt,"_objectSpread"),b2=/\n/g,o(y2,"getNewLines"),o(R2,"getAllLineNumbers"),o(x2,"AllLineNumbers"),o(E2,"getEmWidthOfNumber"),o(dc,"getInlineLineNumber"),o(pc,"assembleLineNumberStyles"),o(Dn,"createLineElement"),o(mc,"flattenCodeTree"),o(S2,"processLines"),o(C2,"defaultRenderer"),o(hc,"isHighlightJs"),o(M2,"getCodeTree"),o(da,"default")})),wc=H(((kb,vc)=>{vc.exports=L2;var A2=Object.prototype.hasOwnProperty;function L2(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)A2.call(r,n)&&(e[n]=r[n])}return e}o(L2,"extend")})),ma=H(((Bb,yc)=>{yc.exports=bc;var pa=bc.prototype;function bc(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}pa.space=null,pa.normal={},pa.property={},o(bc,"Schema")})),Ec=H(((Fb,xc)=>{var Rc=wc(),I2=ma();function z2(e){for(var i,c,t=e.length,r=[],n=[],a=-1;++a<t;)i=e[a],r.push(i.property),n.push(i.normal),c=i.space;return new I2(Rc.apply(null,r),Rc.apply(null,n),c)}xc.exports=z2,o(z2,"merge")})),_n=H(((_b,Sc)=>{function T2(e){return e.toLowerCase()}Sc.exports=T2,o(T2,"normalize")})),ha=H(((Vb,Mc)=>{Mc.exports=Cc;var Fe=Cc.prototype;function Cc(e,t){this.property=e,this.attribute=t}Fe.space=null,Fe.attribute=null,Fe.property=null,Fe.boolean=!1,Fe.booleanish=!1,Fe.overloadedBoolean=!1,Fe.number=!1,Fe.commaSeparated=!1,Fe.spaceSeparated=!1,Fe.commaOrSpaceSeparated=!1,Fe.mustUseProperty=!1,Fe.defined=!1,o(Cc,"Info")})),$n=H((yt=>{var H2=0;function Vt(){return Math.pow(2,++H2)}yt.boolean=Vt(),yt.booleanish=Vt(),yt.overloadedBoolean=Vt(),yt.number=Vt(),yt.spaceSeparated=Vt(),yt.commaSeparated=Vt(),yt.commaOrSpaceSeparated=Vt(),o(Vt,"increment")})),va=H(((qb,Tc)=>{var Ic=ha(),Ac=$n();Tc.exports=ga,ga.prototype=new Ic,ga.prototype.defined=!0;var zc=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],P2=zc.length;function ga(e,t,r,n){var i,a=-1;for(Lc(this,"space",n),Ic.call(this,e,t);++a<P2;)Lc(this,i=zc[a],(r&Ac[i])===Ac[i])}function Lc(e,t,r){r&&(e[t]=r)}o(ga,"DefinedInfo"),o(Lc,"mark")})),dr=H(((Yb,Pc)=>{var Hc=_n(),k2=ma(),O2=va();function B2(e){var s,u,t=e.space,r=e.mustUseProperty||[],n=e.attributes||{},a=e.properties,i=e.transform,c={},l={};for(s in a)u=new O2(s,i(n,s),a[s],t),-1!==r.indexOf(s)&&(u.mustUseProperty=!0),c[s]=u,l[Hc(s)]=s,l[Hc(u.attribute)]=s;return new k2(c,l,t)}Pc.exports=B2,o(B2,"create")})),Oc=H(((Zb,kc)=>{var N2=dr();function F2(e,t){return"xlink:"+t.slice(5).toLowerCase()}kc.exports=N2({space:"xlink",transform:F2,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),o(F2,"xlinkTransform")})),Nc=H(((Jb,Bc)=>{var D2=dr();function _2(e,t){return"xml:"+t.slice(3).toLowerCase()}Bc.exports=D2({space:"xml",transform:_2,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}}),o(_2,"xmlTransform")})),Dc=H(((e9,Fc)=>{function $2(e,t){return t in e?e[t]:t}Fc.exports=$2,o($2,"caseSensitiveTransform")})),wa=H(((r9,_c)=>{var V2=Dc();function j2(e,t){return V2(e,t.toLowerCase())}_c.exports=j2,o(j2,"caseInsensitiveTransform")})),Vc=H(((o9,$c)=>{var W2=dr(),U2=wa();$c.exports=W2({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:U2,properties:{xmlns:null,xmlnsXLink:null}})})),Wc=H(((a9,jc)=>{var ba=$n(),q2=dr(),Ae=ba.booleanish,De=ba.number,jt=ba.spaceSeparated;function G2(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()}jc.exports=q2({transform:G2,properties:{ariaActiveDescendant:null,ariaAtomic:Ae,ariaAutoComplete:null,ariaBusy:Ae,ariaChecked:Ae,ariaColCount:De,ariaColIndex:De,ariaColSpan:De,ariaControls:jt,ariaCurrent:null,ariaDescribedBy:jt,ariaDetails:null,ariaDisabled:Ae,ariaDropEffect:jt,ariaErrorMessage:null,ariaExpanded:Ae,ariaFlowTo:jt,ariaGrabbed:Ae,ariaHasPopup:null,ariaHidden:Ae,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:jt,ariaLevel:De,ariaLive:null,ariaModal:Ae,ariaMultiLine:Ae,ariaMultiSelectable:Ae,ariaOrientation:null,ariaOwns:jt,ariaPlaceholder:null,ariaPosInSet:De,ariaPressed:Ae,ariaReadOnly:Ae,ariaRelevant:null,ariaRequired:Ae,ariaRoleDescription:jt,ariaRowCount:De,ariaRowIndex:De,ariaRowSpan:De,ariaSelected:Ae,ariaSetSize:De,ariaSort:null,ariaValueMax:De,ariaValueMin:De,ariaValueNow:De,ariaValueText:null,role:null}}),o(G2,"ariaTransform")})),qc=H(((l9,Uc)=>{var pr=$n(),Y2=dr(),X2=wa(),B=pr.boolean,Z2=pr.overloadedBoolean,tn=pr.booleanish,Y=pr.number,ye=pr.spaceSeparated,Vn=pr.commaSeparated;Uc.exports=Y2({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:X2,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Vn,acceptCharset:ye,accessKey:ye,action:null,allow:null,allowFullScreen:B,allowPaymentRequest:B,allowUserMedia:B,alt:null,as:null,async:B,autoCapitalize:null,autoComplete:ye,autoFocus:B,autoPlay:B,capture:B,charSet:null,checked:B,cite:null,className:ye,cols:Y,colSpan:null,content:null,contentEditable:tn,controls:B,controlsList:ye,coords:Y|Vn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:B,defer:B,dir:null,dirName:null,disabled:B,download:Z2,draggable:tn,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:B,formTarget:null,headers:ye,height:Y,hidden:B,high:Y,href:null,hrefLang:null,htmlFor:ye,httpEquiv:ye,id:null,imageSizes:null,imageSrcSet:Vn,inputMode:null,integrity:null,is:null,isMap:B,itemId:null,itemProp:ye,itemRef:ye,itemScope:B,itemType:ye,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:B,low:Y,manifest:null,max:null,maxLength:Y,media:null,method:null,min:null,minLength:Y,multiple:B,muted:B,name:null,nonce:null,noModule:B,noValidate:B,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:B,optimum:Y,pattern:null,ping:ye,placeholder:null,playsInline:B,poster:null,preload:null,readOnly:B,referrerPolicy:null,rel:ye,required:B,reversed:B,rows:Y,rowSpan:Y,sandbox:ye,scope:null,scoped:B,seamless:B,selected:B,shape:null,size:Y,sizes:null,slot:null,span:Y,spellCheck:tn,src:null,srcDoc:null,srcLang:null,srcSet:Vn,start:Y,step:null,style:null,tabIndex:Y,target:null,title:null,translate:null,type:null,typeMustMatch:B,useMap:null,value:tn,width:Y,wrap:null,align:null,aLink:null,archive:ye,axis:null,background:null,bgColor:null,border:Y,borderColor:null,bottomMargin:Y,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:B,declare:B,event:null,face:null,frame:null,frameBorder:null,hSpace:Y,leftMargin:Y,link:null,longDesc:null,lowSrc:null,marginHeight:Y,marginWidth:Y,noResize:B,noHref:B,noShade:B,noWrap:B,object:null,profile:null,prompt:null,rev:null,rightMargin:Y,rules:null,scheme:null,scrolling:tn,standby:null,summary:null,text:null,topMargin:Y,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Y,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:B,disableRemotePlayback:B,prefix:null,property:null,results:Y,security:null,unselectable:null}})})),Yc=H(((c9,Gc)=>{var K2=Ec(),J2=Oc(),Q2=Nc(),e4=Vc(),t4=Wc(),r4=qc();Gc.exports=K2([Q2,J2,e4,t4,r4])})),Kc=H(((s9,Zc)=>{var n4=_n(),o4=va(),a4=ha(),ya="data";Zc.exports=c4;var i4=/^data[-\w.:]+$/i,Xc=/-[a-z]/g,l4=/[A-Z]/g;function c4(e,t){var r=n4(t),n=t,a=a4;return r in e.normal?e.property[e.normal[r]]:(r.length>4&&r.slice(0,4)===ya&&i4.test(t)&&("-"===t.charAt(4)?n=s4(t):t=u4(t),a=o4),new a(n,t))}function s4(e){var t=e.slice(5).replace(Xc,d4);return ya+t.charAt(0).toUpperCase()+t.slice(1)}function u4(e){var t=e.slice(4);return Xc.test(t)?e:("-"!==(t=t.replace(l4,f4)).charAt(0)&&(t="-"+t),ya+t)}function f4(e){return"-"+e.toLowerCase()}function d4(e){return e.charAt(1).toUpperCase()}o(c4,"find"),o(s4,"datasetToProperty"),o(u4,"datasetToAttribute"),o(f4,"kebab"),o(d4,"camelcase")})),es=H(((f9,Qc)=>{Qc.exports=p4;var Jc=/[#.]/g;function p4(e,t){for(var c,l,s,r=e||"",n=t||"div",a={},i=0;i<r.length;)Jc.lastIndex=i,s=Jc.exec(r),(c=r.slice(i,s?s.index:r.length))&&(l?"#"===l?a.id=c:a.className?a.className.push(c):a.className=[c]:n=c,i+=c.length),s&&(l=s[0],i++);return{type:"element",tagName:n,properties:a,children:[]}}o(p4,"parse")})),rs=H((Ra=>{Ra.parse=g4,Ra.stringify=v4;var ts="",m4=" ",h4=/[ \t\n\r\f]+/g;function g4(e){var t=String(e||ts).trim();return t===ts?[]:t.split(h4)}function v4(e){return e.join(m4).trim()}o(g4,"parse"),o(v4,"stringify")})),os=H((Ea=>{Ea.parse=w4,Ea.stringify=b4;var xa=",",ns=" ",rn="";function w4(e){for(var c,t=[],r=String(e||rn),n=r.indexOf(xa),a=0,i=!1;!i;)-1===n&&(n=r.length,i=!0),((c=r.slice(a,n).trim())||!i)&&t.push(c),a=n+1,n=r.indexOf(xa,a);return t}function b4(e,t){var r=t||{},n=!1===r.padLeft?rn:ns,a=r.padRight?ns:rn;return e[e.length-1]===rn&&(e=e.concat(rn)),e.join(a+xa+n).trim()}o(w4,"parse"),o(b4,"stringify")})),fs=H(((v9,us)=>{var y4=Kc(),as=_n(),R4=es(),is=rs().parse,ls=os().parse;us.exports=E4;var x4={}.hasOwnProperty;function E4(e,t,r){var n=r?L4(r):null;return function a(c,l){var d,s=R4(c,t),u=Array.prototype.slice.call(arguments,2),f=s.tagName.toLowerCase();if(s.tagName=n&&x4.call(n,f)?n[f]:f,l&&S4(l,s)&&(u.unshift(l),l=null),l)for(d in l)i(s.properties,d,l[d]);return ss(s.children,u),"template"===s.tagName&&(s.content={type:"root",children:s.children},s.children=[]),s};function i(c,l,s){var u,f,d;null==s||s!=s||(f=(u=y4(e,l)).property,"string"==typeof(d=s)&&(u.spaceSeparated?d=is(d):u.commaSeparated?d=ls(d):u.commaOrSpaceSeparated&&(d=is(ls(d).join(" ")))),"style"===f&&"string"!=typeof s&&(d=A4(d)),"className"===f&&c.className&&(d=c.className.concat(d)),c[f]=M4(u,f,d))}}function S4(e,t){return"string"==typeof e||"length"in e||C4(t.tagName,e)}function C4(e,t){var r=t.type;return!("input"===e||!r||"string"!=typeof r)&&("object"==typeof t.children&&"length"in t.children||(r=r.toLowerCase(),"button"===e?"menu"!==r&&"submit"!==r&&"reset"!==r&&"button"!==r:"value"in t))}function ss(e,t){var r,n;if("string"!=typeof t&&"number"!=typeof t)if("object"==typeof t&&"length"in t)for(r=-1,n=t.length;++r<n;)ss(e,t[r]);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}else e.push({type:"text",value:String(t)})}function M4(e,t,r){var n,a,i;if("object"!=typeof r||!("length"in r))return cs(e,t,r);for(a=r.length,n=-1,i=[];++n<a;)i[n]=cs(e,t,r[n]);return i}function cs(e,t,r){var n=r;return e.number||e.positiveNumber?!isNaN(n)&&""!==n&&(n=Number(n)):(e.boolean||e.overloadedBoolean)&&"string"==typeof n&&(""===n||as(r)===as(t))&&(n=!0),n}function A4(e){var r,t=[];for(r in e)t.push([r,e[r]].join(": "));return t.join("; ")}function L4(e){for(var a,t=e.length,r=-1,n={};++r<t;)n[(a=e[r]).toLowerCase()]=a;return n}o(E4,"factory"),o(S4,"isChildren"),o(C4,"isNode"),o(ss,"addChild"),o(M4,"parsePrimitives"),o(cs,"parsePrimitive"),o(A4,"style"),o(L4,"createAdjustMap")})),ms=H(((b9,ps)=>{var I4=Yc(),ds=fs()(I4,"div");ds.displayName="html",ps.exports=ds})),gs=H(((y9,hs)=>{hs.exports=ms()})),vs=H(((R9,T4)=>{T4.exports={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"}})),ws=H(((x9,H4)=>{H4.exports={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"}})),Sa=H(((E9,bs)=>{function P4(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}bs.exports=P4,o(P4,"decimal")})),Rs=H(((C9,ys)=>{function k4(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}ys.exports=k4,o(k4,"hexadecimal")})),Es=H(((A9,xs)=>{function O4(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}xs.exports=O4,o(O4,"alphabetical")})),Cs=H(((I9,Ss)=>{var B4=Es(),N4=Sa();function F4(e){return B4(e)||N4(e)}Ss.exports=F4,o(F4,"alphanumerical")})),As=H(((T9,Ms)=>{var jn;function _4(e){var r,t="&"+e+";";return(jn=jn||document.createElement("i")).innerHTML=t,(59!==(r=jn.textContent).charCodeAt(r.length-1)||"semi"===e)&&r!==t&&r}Ms.exports=_4,o(_4,"decodeEntity")})),$s=H(((P9,_s)=>{var Ls=vs(),Is=ws(),$4=Sa(),V4=Rs(),Ps=Cs(),j4=As();_s.exports=rm;var W4={}.hasOwnProperty,mr=String.fromCharCode,U4=Function.prototype,zs={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},q4=9,Ts=10,G4=12,Y4=32,Hs=38,X4=59,Z4=60,K4=61,J4=35,Q4=88,em=120,tm=65533,hr="named",Ma="hexadecimal",Aa="decimal",La={};La[Ma]=16,La[Aa]=10;var Wn={};Wn[hr]=Ps,Wn[Aa]=$4,Wn[Ma]=V4;var ks=1,Os=2,Bs=3,Ns=4,Fs=5,Ca=6,Ds=7,Rt={};function rm(e,t){var n,a,r={};for(a in t||(t={}),zs)n=t[a],r[a]=n??zs[a];return(r.position.indent||r.position.start)&&(r.indent=r.position.indent||[],r.position=r.position.start),nm(e,r)}function nm(e,t){var b,x,E,R,S,A,M,L,P,_,D,K,T,z,k,V,F,j,O,r=t.additional,n=t.nonTerminated,a=t.text,i=t.reference,c=t.warning,l=t.textContext,s=t.referenceContext,u=t.warningContext,f=t.position,d=t.indent||[],m=e.length,v=0,y=-1,p=f.column||1,h=f.line||1,g="",w=[];for("string"==typeof r&&(r=r.charCodeAt(0)),V=G(),L=c?function Ee(se,ue){var ve=G();ve.column+=ue,ve.offset+=ue,c.call(u,Rt[se],ve,se)}:U4,v--,m++;++v<m;)if(S===Ts&&(p=d[y]||1),(S=e.charCodeAt(v))===Hs){if((M=e.charCodeAt(v+1))===q4||M===Ts||M===G4||M===Y4||M===Hs||M===Z4||M!=M||r&&M===r){g+=mr(S),p++;continue}for(K=T=v+1,O=T,M===J4?(O=++K,(M=e.charCodeAt(O))===Q4||M===em?(z=Ma,O=++K):z=Aa):z=hr,b="",D="",R="",k=Wn[z],O--;++O<m&&k(M=e.charCodeAt(O));)R+=mr(M),z===hr&&W4.call(Ls,R)&&(b=R,D=Ls[R]);(E=e.charCodeAt(O)===X4)&&(O++,(x=z===hr&&j4(R))&&(b=R,D=x)),j=1+O-T,!E&&!n||(R?z===hr?(E&&!D?L(Fs,1):(b!==R&&(j=1+(O=K+b.length)-K,E=!1),E||(P=b?ks:Bs,t.attribute?(M=e.charCodeAt(O))===K4?(L(P,j),D=null):Ps(M)?D=null:L(P,j):L(P,j))),A=D):(E||L(Os,j),om(A=parseInt(R,La[z]))?(L(Ds,j),A=mr(tm)):A in Is?(L(Ca,j),A=Is[A]):(_="",am(A)&&L(Ca,j),A>65535&&(_+=mr((A-=65536)>>>10|55296),A=56320|1023&A),A=_+mr(A))):z!==hr&&L(Ns,j)),A?(pe(),V=G(),v=O-1,p+=O-T+1,w.push(A),(F=G()).offset++,i&&i.call(s,A,{start:V,end:F},e.slice(T-1,O)),V=F):(R=e.slice(T-1,O),g+=R,p+=R.length,v=O-1)}else 10===S&&(h++,y++,p=0),S==S?(g+=mr(S),p++):pe();return w.join("");function G(){return{line:h,column:p,offset:v+(f.offset||0)}}function pe(){g&&(w.push(g),a&&a.call(l,g,{start:V,end:G()}),g="")}}function om(e){return e>=55296&&e<=57343||e>1114111}function am(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||!(65535&~e)||65534==(65535&e)}Rt[ks]="Named character references must be terminated by a semicolon",Rt[Os]="Numeric character references must be terminated by a semicolon",Rt[Bs]="Named character references cannot be empty",Rt[Ns]="Numeric character references cannot be empty",Rt[Fs]="Named character references must be known",Rt[Ca]="Numeric character references cannot be disallowed",Rt[Ds]="Numeric character references cannot be outside the permissible Unicode range",o(rm,"parseEntities"),o(nm,"parse"),o(om,"prohibited"),o(am,"disallowed")})),js=H(((O9,Un)=>{var Vs=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,r=0,n={},a={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:o((function p(h){return h instanceof i?new i(h.type,p(h.content),h.alias):Array.isArray(h)?h.map(p):h.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")}),"encode"),type:o((function(p){return Object.prototype.toString.call(p).slice(8,-1)}),"type"),objId:o((function(p){return p.__id||Object.defineProperty(p,"__id",{value:++r}),p.__id}),"objId"),clone:o((function p(h,g){var w,b;switch(g=g||{},a.util.type(h)){case"Object":if(b=a.util.objId(h),g[b])return g[b];for(var x in w={},g[b]=w,h)h.hasOwnProperty(x)&&(w[x]=p(h[x],g));return w;case"Array":return b=a.util.objId(h),g[b]?g[b]:(w=[],g[b]=w,h.forEach((function(E,R){w[R]=p(E,g)})),w);default:return h}}),"deepClone"),getLanguage:o((function(p){for(;p;){var h=t.exec(p.className);if(h)return h[1].toLowerCase();p=p.parentElement}return"none"}),"getLanguage"),setLanguage:o((function(p,h){p.className=p.className.replace(RegExp(t,"gi"),""),p.classList.add("language-"+h)}),"setLanguage"),currentScript:o((function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(w){var p=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(w.stack)||[])[1];if(p){var h=document.getElementsByTagName("script");for(var g in h)if(h[g].src==p)return h[g]}return null}}),"currentScript"),isActive:o((function(p,h,g){for(var w="no-"+h;p;){var b=p.classList;if(b.contains(h))return!0;if(b.contains(w))return!1;p=p.parentElement}return!!g}),"isActive")},languages:{plain:n,plaintext:n,text:n,txt:n,extend:o((function(p,h){var g=a.util.clone(a.languages[p]);for(var w in h)g[w]=h[w];return g}),"extend"),insertBefore:o((function(p,h,g,w){var b=(w=w||a.languages)[p],x={};for(var E in b)if(b.hasOwnProperty(E)){if(E==h)for(var R in g)g.hasOwnProperty(R)&&(x[R]=g[R]);g.hasOwnProperty(E)||(x[E]=b[E])}var S=w[p];return w[p]=x,a.languages.DFS(a.languages,(function(A,M){M===S&&A!=p&&(this[A]=x)})),x}),"insertBefore"),DFS:o((function p(h,g,w,b){b=b||{};var x=a.util.objId;for(var E in h)if(h.hasOwnProperty(E)){g.call(h,E,h[E],w||E);var R=h[E],S=a.util.type(R);"Object"!==S||b[x(R)]?"Array"===S&&!b[x(R)]&&(b[x(R)]=!0,p(R,g,E,b)):(b[x(R)]=!0,p(R,g,null,b))}}),"DFS")},plugins:{},highlightAll:o((function(p,h){a.highlightAllUnder(document,p,h)}),"highlightAll"),highlightAllUnder:o((function(p,h,g){var w={callback:g,container:p,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",w),w.elements=Array.prototype.slice.apply(w.container.querySelectorAll(w.selector)),a.hooks.run("before-all-elements-highlight",w);for(var x,b=0;x=w.elements[b++];)a.highlightElement(x,!0===h,w.callback)}),"highlightAllUnder"),highlightElement:o((function(p,h,g){var w=a.util.getLanguage(p),b=a.languages[w];a.util.setLanguage(p,w);var x=p.parentElement;x&&"pre"===x.nodeName.toLowerCase()&&a.util.setLanguage(x,w);var R={element:p,language:w,grammar:b,code:p.textContent};function S(M){R.highlightedCode=M,a.hooks.run("before-insert",R),R.element.innerHTML=R.highlightedCode,a.hooks.run("after-highlight",R),a.hooks.run("complete",R),g&&g.call(R.element)}if(o(S,"insertHighlightedCode"),a.hooks.run("before-sanity-check",R),(x=R.element.parentElement)&&"pre"===x.nodeName.toLowerCase()&&!x.hasAttribute("tabindex")&&x.setAttribute("tabindex","0"),!R.code)return a.hooks.run("complete",R),void(g&&g.call(R.element));if(a.hooks.run("before-highlight",R),R.grammar)if(h&&e.Worker){var A=new Worker(a.filename);A.onmessage=function(M){S(M.data)},A.postMessage(JSON.stringify({language:R.language,code:R.code,immediateClose:!0}))}else S(a.highlight(R.code,R.grammar,R.language));else S(a.util.encode(R.code))}),"highlightElement"),highlight:o((function(p,h,g){var w={code:p,grammar:h,language:g};if(a.hooks.run("before-tokenize",w),!w.grammar)throw new Error('The language "'+w.language+'" has no grammar.');return w.tokens=a.tokenize(w.code,w.grammar),a.hooks.run("after-tokenize",w),i.stringify(a.util.encode(w.tokens),w.language)}),"highlight"),tokenize:o((function(p,h){var g=h.rest;if(g){for(var w in g)h[w]=g[w];delete h.rest}var b=new s;return u(b,b.head,p),l(p,b,h,b.head,0),d(b)}),"tokenize"),hooks:{all:{},add:o((function(p,h){var g=a.hooks.all;g[p]=g[p]||[],g[p].push(h)}),"add"),run:o((function(p,h){var g=a.hooks.all[p];if(g&&g.length)for(var b,w=0;b=g[w++];)b(h)}),"run")},Token:i};function i(p,h,g,w){this.type=p,this.content=h,this.alias=g,this.length=0|(w||"").length}function c(p,h,g,w){p.lastIndex=h;var b=p.exec(g);if(b&&w&&b[1]){var x=b[1].length;b.index+=x,b[0]=b[0].slice(x)}return b}function l(p,h,g,w,b,x){for(var E in g)if(g.hasOwnProperty(E)&&g[E]){var R=g[E];R=Array.isArray(R)?R:[R];for(var S=0;S<R.length;++S){if(x&&x.cause==E+","+S)return;var A=R[S],M=A.inside,L=!!A.lookbehind,P=!!A.greedy,_=A.alias;if(P&&!A.pattern.global){var D=A.pattern.toString().match(/[imsuy]*$/)[0];A.pattern=RegExp(A.pattern.source,D+"g")}for(var K=A.pattern||A,T=w.next,z=b;T!==h.tail&&!(x&&z>=x.reach);z+=T.value.length,T=T.next){var k=T.value;if(h.length>p.length)return;if(!(k instanceof i)){var F,V=1;if(P){if(!(F=c(K,z,p,L))||F.index>=p.length)break;var Ee=F.index,j=F.index+F[0].length,O=z;for(O+=T.value.length;Ee>=O;)O+=(T=T.next).value.length;if(z=O-=T.value.length,T.value instanceof i)continue;for(var G=T;G!==h.tail&&(O<j||"string"==typeof G.value);G=G.next)V++,O+=G.value.length;V--,k=p.slice(z,O),F.index-=z}else if(!(F=c(K,0,k,L)))continue;Ee=F.index;var pe=F[0],se=k.slice(0,Ee),ue=k.slice(Ee+pe.length),ve=z+k.length;x&&ve>x.reach&&(x.reach=ve);var Se=T.prev;if(se&&(Se=u(h,Se,se),z+=se.length),f(h,Se,V),T=u(h,Se,new i(E,M?a.tokenize(pe,M):pe,_,pe)),ue&&u(h,T,ue),V>1){var Yr={cause:E+","+S,reach:ve};l(p,h,g,T.prev,z,Yr),x&&Yr.reach>x.reach&&(x.reach=Yr.reach)}}}}}}function s(){var p={value:null,prev:null,next:null},h={value:null,prev:p,next:null};p.next=h,this.head=p,this.tail=h,this.length=0}function u(p,h,g){var w=h.next,b={value:g,prev:h,next:w};return h.next=b,w.prev=b,p.length++,b}function f(p,h,g){for(var w=h.next,b=0;b<g&&w!==p.tail;b++)w=w.next;h.next=w,w.prev=h,p.length-=b}function d(p){for(var h=[],g=p.head.next;g!==p.tail;)h.push(g.value),g=g.next;return h}if(e.Prism=a,o(i,"Token"),i.stringify=o((function p(h,g){if("string"==typeof h)return h;if(Array.isArray(h)){var w="";return h.forEach((function(S){w+=p(S,g)})),w}var b={type:h.type,content:p(h.content,g),tag:"span",classes:["token",h.type],attributes:{},language:g},x=h.alias;x&&(Array.isArray(x)?Array.prototype.push.apply(b.classes,x):b.classes.push(x)),a.hooks.run("wrap",b);var E="";for(var R in b.attributes)E+=" "+R+'="'+(b.attributes[R]||"").replace(/"/g,""")+'"';return"<"+b.tag+' class="'+b.classes.join(" ")+'"'+E+">"+b.content+"</"+b.tag+">"}),"stringify"),o(c,"matchPattern"),o(l,"matchGrammar"),o(s,"LinkedList"),o(u,"addAfter"),o(f,"removeRange"),o(d,"toArray"),!e.document)return e.addEventListener&&(a.disableWorkerMessageHandler||e.addEventListener("message",(function(p){var h=JSON.parse(p.data),g=h.language,w=h.code,b=h.immediateClose;e.postMessage(a.highlight(w,a.languages[g],g)),b&&e.close()}),!1)),a;var m=a.util.currentScript();function v(){a.manual||a.highlightAll()}if(m&&(a.filename=m.src,m.hasAttribute("data-manual")&&(a.manual=!0)),o(v,"highlightAutomaticallyCallback"),!a.manual){var y=document.readyState;"loading"===y||"interactive"===y&&m&&m.defer?document.addEventListener("DOMContentLoaded",v):window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,16)}return a}(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});typeof Un<"u"&&Un.exports&&(Un.exports=Vs),typeof __webpack_require__.g<"u"&&(__webpack_require__.g.Prism=Vs)})),za=H(((N9,Ws)=>{function Ia(e){e.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",(function(t){"entity"===t.type&&(t.attributes.title=t.content.value.replace(/&/,"&"))})),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:o((function(r,n){var a={};a["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:e.languages[n]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};i["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var c={};c[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return r})),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",c)}),"addInlined")}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:o((function(t,r){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:e.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}),"value")}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}Ws.exports=Ia,Ia.displayName="markup",Ia.aliases=["html","mathml","svg","xml","ssml","atom","rss"],o(Ia,"markup")})),Ha=H(((D9,Us)=>{function Ta(e){!function(t){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(e)}Us.exports=Ta,Ta.displayName="css",Ta.aliases=[],o(Ta,"css")})),Gs=H((($9,qs)=>{function Pa(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}qs.exports=Pa,Pa.displayName="clike",Pa.aliases=[],o(Pa,"clike")})),Xs=H(((j9,Ys)=>{function ka(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}Ys.exports=ka,ka.displayName="javascript",ka.aliases=["js"],o(ka,"javascript")})),Qs=H(((U9,Js)=>{var nn="object"==typeof globalThis?globalThis:"object"==typeof self?self:"object"==typeof window?window:"object"==typeof __webpack_require__.g?__webpack_require__.g:{},lm=xm();nn.Prism={manual:!0,disableWorkerMessageHandler:!0};var cm=gs(),sm=$s(),Zs=js(),um=za(),fm=Ha(),dm=Gs(),pm=Xs();lm();var Oa={}.hasOwnProperty;function Ks(){}o(Ks,"Refractor"),Ks.prototype=Zs;var oe=new Ks;function on(e){if("function"!=typeof e||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");void 0===oe.languages[e.displayName]&&e(oe)}function mm(e,t){var a,i,c,l,r=oe.languages,n=e;for(a in t&&((n={})[e]=t),n)for(c=(i="string"==typeof(i=n[a])?[i]:i).length,l=-1;++l<c;)r[i[l]]=r[a]}function hm(e,t){var n,r=Zs.highlight;if("string"!=typeof e)throw new Error("Expected `string` for `value`, got `"+e+"`");if("Object"===oe.util.type(t))n=t,t=null;else{if("string"!=typeof t)throw new Error("Expected `string` for `name`, got `"+t+"`");if(!Oa.call(oe.languages,t))throw new Error("Unknown language: `"+t+"` is not registered");n=oe.languages[t]}return r.call(this,e,n,t)}function gm(e){if("string"!=typeof e)throw new Error("Expected `string` for `language`, got `"+e+"`");return Oa.call(oe.languages,e)}function vm(){var r,e=oe.languages,t=[];for(r in e)Oa.call(e,r)&&"object"==typeof e[r]&&t.push(r);return t}function wm(e,t,r){var n;return"string"==typeof e?{type:"text",value:e}:"Array"===oe.util.type(e)?bm(e,t):(n={type:e.type,content:oe.Token.stringify(e.content,t,r),tag:"span",classes:["token",e.type],attributes:{},language:t,parent:r},e.alias&&(n.classes=n.classes.concat(e.alias)),oe.hooks.run("wrap",n),cm(n.tag+"."+n.classes.join("."),Rm(n.attributes),n.content))}function bm(e,t){for(var i,r=[],n=e.length,a=-1;++a<n;)""!==(i=e[a])&&null!=i&&r.push(i);for(a=-1,n=r.length;++a<n;)i=r[a],r[a]=oe.Token.stringify(i,t,r);return r}function ym(e){return e}function Rm(e){var t;for(t in e)e[t]=sm(e[t]);return e}function xm(){var e="Prism"in nn,t=e?nn.Prism:void 0;return function r(){e?nn.Prism=t:delete nn.Prism,e=void 0,t=void 0}}Js.exports=oe,oe.highlight=hm,oe.register=on,oe.alias=mm,oe.registered=gm,oe.listLanguages=vm,on(um),on(fm),on(dm),on(pm),oe.util.encode=ym,oe.Token.stringify=wm,o(on,"register"),o(mm,"alias"),o(hm,"highlight"),o(gm,"registered"),o(vm,"listLanguages"),o(wm,"stringify"),o(bm,"stringifyAll"),o(ym,"encode"),o(Rm,"attributes"),o(xm,"capture")})),e1=C((()=>{gc(),qn=me(Qs()),(Ba=da(qn.default,{})).registerLanguage=function(e,t){return qn.default.register(t)},Ba.alias=function(e,t){return qn.default.alias(e,t)},Gn=Ba})),t1=C((()=>{fa()})),n1=H(((K9,r1)=>{function Na(e){!function(t){var r="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},a={bash:n,environment:{pattern:RegExp("\\$"+r),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+r),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+r),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:a},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:a},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:a.entity}}],environment:{pattern:RegExp("\\$?"+r),alias:"constant"},variable:a.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=t.languages.bash;for(var i=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],c=a.variable[1].inside,l=0;l<i.length;l++)c[i[l]]=t.languages.bash[i[l]];t.languages.shell=t.languages.bash}(e)}r1.exports=Na,Na.displayName="bash",Na.aliases=["shell"],o(Na,"bash")})),i1=C((()=>{o1=me(n1()),a1=o1.default})),s1=C((()=>{l1=me(Ha()),c1=l1.default})),f1=H(((ty,u1)=>{function Fa(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",o((function(r){if("graphql"===r.language){var n=r.tokens.filter((function(h){return"string"!=typeof h&&"comment"!==h.type&&"scalar"!==h.type})),a=0;for(o(i,"getToken"),o(c,"isTokenType"),o(l,"findClosingBracket"),o(s,"addAlias");a<n.length;){var u=n[a++];if("keyword"===u.type&&"mutation"===u.content){var f=[];if(c(["definition-mutation","punctuation"])&&"("===i(1).content){a+=2;var d=l(/^\($/,/^\)$/);if(-1===d)continue;for(;a<d;a++){var m=i(0);"variable"===m.type&&(s(m,"variable-input"),f.push(m.content))}a=d+1}if(c(["punctuation","property-query"])&&"{"===i(0).content&&(a++,s(i(0),"property-mutation"),f.length>0)){var v=l(/^\{$/,/^\}$/);if(-1===v)continue;for(var y=a;y<v;y++){var p=n[y];"variable"===p.type&&f.indexOf(p.content)>=0&&s(p,"variable-input")}}}}}function i(h){return n[a+h]}function c(h,g){g=g||0;for(var w=0;w<h.length;w++){var b=i(w+g);if(!b||b.type!==h[w])return!1}return!0}function l(h,g){for(var w=1,b=a;b<n.length;b++){var x=n[b],E=x.content;if("punctuation"===x.type&&"string"==typeof E)if(h.test(E))w++;else if(g.test(E)&&0===--w)return b}return-1}function s(h,g){var w=h.alias;w?Array.isArray(w)||(h.alias=w=[w]):h.alias=w=[],w.push(g)}}),"afterTokenizeGraphql"))}u1.exports=Fa,Fa.displayName="graphql",Fa.aliases=[],o(Fa,"graphql")})),m1=C((()=>{d1=me(f1()),p1=d1.default})),g1=H(((oy,h1)=>{function Da(e){!function(t){function r(s,u){return RegExp(s.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),u)}t.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+t.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),t.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+t.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),t.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),o(r,"withId"),t.languages.insertBefore("javascript","keyword",{imports:{pattern:r(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:t.languages.javascript},exports:{pattern:r(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:t.languages.javascript}}),t.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),t.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),t.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:r(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],a=0;a<n.length;a++){var i=n[a],c=t.languages.javascript[i];"RegExp"===t.util.type(c)&&(c=t.languages.javascript[i]={pattern:c});var l=c.inside||{};c.inside=l,l["maybe-class-name"]=/^[A-Z][\s\S]*/}}(e)}h1.exports=Da,Da.displayName="jsExtras",Da.aliases=[],o(Da,"jsExtras")})),b1=C((()=>{v1=me(g1()),w1=v1.default})),R1=H(((ly,y1)=>{function _a(e){e.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},e.languages.webmanifest=e.languages.json}y1.exports=_a,_a.displayName="json",_a.aliases=["webmanifest"],o(_a,"json")})),S1=C((()=>{x1=me(R1()),E1=x1.default})),Va=H(((uy,C1)=>{function $a(e){!function(t){var r=t.util.clone(t.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,a=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,i=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function c(u,f){return u=u.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return a})).replace(/<SPREAD>/g,(function(){return i})),RegExp(u,f)}o(c,"re"),i=c(i).source,t.languages.jsx=t.languages.extend("markup",r),t.languages.jsx.tag.pattern=c(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=r.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:c(/<SPREAD>/.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:c(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var l=o((function(u){return u?"string"==typeof u?u:"string"==typeof u.content?u.content:u.content.map(l).join(""):""}),"stringifyToken"),s=o((function(u){for(var f=[],d=0;d<u.length;d++){var m=u[d],v=!1;if("string"!=typeof m&&("tag"===m.type&&m.content[0]&&"tag"===m.content[0].type?"</"===m.content[0].content[0].content?f.length>0&&f[f.length-1].tagName===l(m.content[0].content[1])&&f.pop():"/>"===m.content[m.content.length-1].content||f.push({tagName:l(m.content[0].content[1]),openedBraces:0}):f.length>0&&"punctuation"===m.type&&"{"===m.content?f[f.length-1].openedBraces++:f.length>0&&f[f.length-1].openedBraces>0&&"punctuation"===m.type&&"}"===m.content?f[f.length-1].openedBraces--:v=!0),(v||"string"==typeof m)&&f.length>0&&0===f[f.length-1].openedBraces){var y=l(m);d<u.length-1&&("string"==typeof u[d+1]||"plain-text"===u[d+1].type)&&(y+=l(u[d+1]),u.splice(d+1,1)),d>0&&("string"==typeof u[d-1]||"plain-text"===u[d-1].type)&&(y=l(u[d-1])+y,u.splice(d-1,1),d--),u[d]=new t.Token("plain-text",y,null,y)}m.content&&"string"!=typeof m.content&&s(m.content)}}),"walkTokens");t.hooks.add("after-tokenize",(function(u){"jsx"!==u.language&&"tsx"!==u.language||s(u.tokens)}))}(e)}C1.exports=$a,$a.displayName="jsx",$a.aliases=[],o($a,"jsx")})),L1=C((()=>{M1=me(Va()),A1=M1.default})),z1=H(((py,I1)=>{function ja(e){!function(t){var r=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(d){return d=d.replace(/<inner>/g,(function(){return r})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+d+")")}o(n,"createInline");var a=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return a})),c=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+c+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+c+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(a),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+c+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(a),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(d){["url","bold","italic","strike","code-snippet"].forEach((function(m){d!==m&&(t.languages.markdown[d].inside.content.inside[m]=t.languages.markdown[m])}))})),t.hooks.add("after-tokenize",(function(d){function m(v){if(v&&"string"!=typeof v)for(var y=0,p=v.length;y<p;y++){var h=v[y];if("code"===h.type){var g=h.content[1],w=h.content[3];if(g&&w&&"code-language"===g.type&&"code-block"===w.type&&"string"==typeof g.content){var b=g.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),x="language-"+(b=(/[a-z][\w-]*/i.exec(b)||[""])[0].toLowerCase());w.alias?"string"==typeof w.alias?w.alias=[w.alias,x]:w.alias.push(x):w.alias=[x]}}else m(h.content)}}"markdown"!==d.language&&"md"!==d.language||(o(m,"walkTokens"),m(d.tokens))})),t.hooks.add("wrap",(function(d){if("code-block"===d.type){for(var m="",v=0,y=d.classes.length;v<y;v++){var p=d.classes[v],h=/language-(.+)/.exec(p);if(h){m=h[1];break}}var g=t.languages[m];if(g)d.content=t.highlight(f(d.content.value),g,m);else if(m&&"none"!==m&&t.plugins.autoloader){var w="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());d.attributes.id=w,t.plugins.autoloader.loadLanguages(m,(function(){var b=document.getElementById(w);b&&(b.innerHTML=t.highlight(b.textContent,t.languages[m],m))}))}}}));var l=RegExp(t.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},u=String.fromCodePoint||String.fromCharCode;function f(d){var m=d.replace(l,"");return m=m.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(v,y){var p;return"#"===(y=y.toLowerCase())[0]?(p="x"===y[1]?parseInt(y.slice(2),16):Number(y.slice(1)),u(p)):s[y]||v}))}o(f,"textContent"),t.languages.md=t.languages.markdown}(e)}I1.exports=ja,ja.displayName="markdown",ja.aliases=["md"],o(ja,"markdown")})),P1=C((()=>{T1=me(z1()),H1=T1.default})),B1=C((()=>{k1=me(za()),O1=k1.default})),Ua=H(((vy,N1)=>{function Wa(e){!function(t){t.languages.typescript=t.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),t.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete t.languages.typescript.parameter,delete t.languages.typescript["literal-property"];var r=t.languages.extend("typescript",{});delete r["class-name"],t.languages.typescript["class-name"].inside=r,t.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:r}}}}),t.languages.ts=t.languages.typescript}(e)}N1.exports=Wa,Wa.displayName="typescript",Wa.aliases=["ts"],o(Wa,"typescript")})),D1=H(((by,F1)=>{var Em=Va(),Sm=Ua();function qa(e){e.register(Em),e.register(Sm),function(t){var r=t.util.clone(t.languages.typescript);t.languages.tsx=t.languages.extend("jsx",r),delete t.languages.tsx.parameter,delete t.languages.tsx["literal-property"];var n=t.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(e)}F1.exports=qa,qa.displayName="tsx",qa.aliases=[],o(qa,"tsx")})),V1=C((()=>{_1=me(D1()),$1=_1.default})),U1=C((()=>{j1=me(Ua()),W1=j1.default})),G1=H(((Ey,q1)=>{function Ga(e){!function(t){var r=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,a="(?:"+n.source+"(?:[ \t]+"+r.source+")?|"+r.source+"(?:[ \t]+"+n.source+")?)",i=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),c=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function l(s,u){u=(u||"").replace(/m/g,"")+"m";var f=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return a})).replace(/<<value>>/g,(function(){return s}));return RegExp(f,u)}o(l,"createValuePattern"),t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return a}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return a})).replace(/<<key>>/g,(function(){return"(?:"+i+"|"+c+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:l(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:l(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:l(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:l(c),lookbehind:!0,greedy:!0},number:{pattern:l(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:r,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml}(e)}q1.exports=Ga,Ga.displayName="yaml",Ga.aliases=["yml"],o(Ga,"yaml")})),Z1=C((()=>{Y1=me(G1()),X1=Y1.default})),Xa=C((()=>{Cm=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e})=>({position:"absolute",bottom:0,right:0,maxWidth:"100%",display:"flex",background:e.background.content,zIndex:1}))),(Q1=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.button((({theme:e})=>({margin:0,border:"0 none",padding:"4px 10px",cursor:"pointer",display:"flex",alignItems:"center",color:e.color.defaultText,background:e.background.content,fontSize:12,lineHeight:"16px",fontFamily:e.typography.fonts.base,fontWeight:e.typography.weight.bold,borderTop:`1px solid ${e.appBorderColor}`,borderLeft:`1px solid ${e.appBorderColor}`,marginLeft:-1,borderRadius:"4px 0 0 0","&:not(:last-child)":{borderRight:`1px solid ${e.appBorderColor}`},"& + *":{borderLeft:`1px solid ${e.appBorderColor}`,borderRadius:0},"&:focus":{boxShadow:`${e.color.secondary} 0 -3px 0 0 inset`,outline:"0 none","@media (forced-colors: active)":{outline:"1px solid highlight"}}})),(({disabled:e})=>e&&{cursor:"not-allowed",opacity:.5}))).displayName="ActionButton",Ya=o((({actionItems:e,...t})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Cm,{...t},e.map((({title:r,className:n,onClick:a,disabled:i},c)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Q1,{key:c,className:n,onClick:a,disabled:!!i},r))))),"ActionBar")}));function Mm(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}function Za(...e){return t=>e.forEach((r=>Mm(r,t)))}function it(...e){return react__WEBPACK_IMPORTED_MODULE_0__.useCallback(Za(...e),e)}var Yn=C((()=>{o(Mm,"setRef"),o(Za,"composeRefs"),o(it,"useComposedRefs")}));function Im(e){return react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(e)&&e.type===Lm}function zm(e,t){let r={...t};for(let n in t){let a=e[n],i=t[n];/^on[A-Z]/.test(n)?a&&i?r[n]=(...l)=>{i(...l),a(...l)}:a&&(r[n]=a):"style"===n?r[n]={...a,...i}:"className"===n&&(r[n]=[a,i].filter(Boolean).join(" "))}return{...e,...r}}function Tm(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Qa,Ja,Lm,gr,an,t5=C((()=>{Yn(),(Qa=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{children:r,...n}=e,a=react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(r),i=a.find(Im);if(i){let c=i.props.children,l=a.map((s=>s===i?react__WEBPACK_IMPORTED_MODULE_0__.Children.count(c)>1?react__WEBPACK_IMPORTED_MODULE_0__.Children.only(null):react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(c)?c.props.children:null:s));return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Ja,{...n,ref:t,children:react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(c)?react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(c,void 0,l):null})}return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Ja,{...n,ref:t,children:r})}))).displayName="Slot",(Ja=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{children:r,...n}=e;if(react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(r)){let a=Tm(r);return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(r,{...zm(n,r.props),ref:t?Za(t,a):a})}return react__WEBPACK_IMPORTED_MODULE_0__.Children.count(r)>1?react__WEBPACK_IMPORTED_MODULE_0__.Children.only(null):null}))).displayName="SlotClone",Lm=o((({children:e})=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.Fragment,{children:e})),"Slottable"),o(Im,"isSlottable"),o(zm,"mergeProps"),o(Tm,"getElementRef")})),n5=C((()=>{t5(),gr=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{let r=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((n,a)=>{let{asChild:i,...c}=n,l=i?Qa:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(l,{...c,ref:a})}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{})})),ei=C((()=>{an=globalThis?.document?react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:()=>{}}));function Om(e,t){return react__WEBPACK_IMPORTED_MODULE_0__.useReducer(((r,n)=>t[r][n]??r),e)}function Bm(e){let[t,r]=react__WEBPACK_IMPORTED_MODULE_0__.useState(),n=react__WEBPACK_IMPORTED_MODULE_0__.useRef({}),a=react__WEBPACK_IMPORTED_MODULE_0__.useRef(e),i=react__WEBPACK_IMPORTED_MODULE_0__.useRef("none"),c=e?"mounted":"unmounted",[l,s]=Om(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{let u=Xn(n.current);i.current="mounted"===l?u:"none"}),[l]),an((()=>{let u=n.current,f=a.current;if(f!==e){let m=i.current,v=Xn(u);s(e?"MOUNT":"none"===v||"none"===u?.display?"UNMOUNT":f&&m!==v?"ANIMATION_OUT":"UNMOUNT"),a.current=e}}),[e,s]),an((()=>{if(t){let u=o((d=>{let v=Xn(n.current).includes(d.animationName);d.target===t&&v&&react_dom__WEBPACK_IMPORTED_MODULE_3__.flushSync((()=>s("ANIMATION_END")))}),"handleAnimationEnd"),f=o((d=>{d.target===t&&(i.current=Xn(n.current))}),"handleAnimationStart");return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}s("ANIMATION_END")}),[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:react__WEBPACK_IMPORTED_MODULE_0__.useCallback((u=>{u&&(n.current=getComputedStyle(u)),r(u)}),[])}}function Xn(e){return e?.animationName||"none"}function Nm(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var vr,l5=C((()=>{Yn(),ei(),o(Om,"useStateMachine"),(vr=o((e=>{let{present:t,children:r}=e,n=Bm(t),a="function"==typeof r?r({present:n.isPresent}):react__WEBPACK_IMPORTED_MODULE_0__.Children.only(r),i=it(n.ref,Nm(a));return"function"==typeof r||n.isPresent?react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(a,{ref:i}):null}),"Presence")).displayName="Presence",o(Bm,"usePresence"),o(Xn,"getAnimationName"),o(Nm,"getElementRef")}));function c5(e,t=[]){let r=[];function n(i,c){let l=react__WEBPACK_IMPORTED_MODULE_0__.createContext(c),s=r.length;function u(d){let{scope:m,children:v,...y}=d,p=m?.[e][s]||l,h=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>y),Object.values(y));return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(p.Provider,{value:h,children:v})}function f(d,m){let v=m?.[e][s]||l,y=react__WEBPACK_IMPORTED_MODULE_0__.useContext(v);if(y)return y;if(void 0!==c)return c;throw new Error(`\`${d}\` must be used within \`${i}\``)}return r=[...r,c],o(u,"Provider"),o(f,"useContext2"),u.displayName=i+"Provider",[u,f]}o(n,"createContext3");let a=o((()=>{let i=r.map((c=>react__WEBPACK_IMPORTED_MODULE_0__.createContext(c)));return o((function(l){let s=l?.[e]||i;return react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>({[`__scope${e}`]:{...l,[e]:s}})),[l,s])}),"useScope")}),"createScope");return a.scopeName=e,[n,Dm(a,...t)]}function Dm(...e){let t=e[0];if(1===e.length)return t;let r=o((()=>{let n=e.map((a=>({useScope:a(),scopeName:a.scopeName})));return o((function(i){let c=n.reduce(((l,{useScope:s,scopeName:u})=>({...l,...s(i)[`__scope${u}`]})),{});return react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>({[`__scope${t.scopeName}`]:c})),[c])}),"useComposedScopes")}),"createScope");return r.scopeName=t.scopeName,r}var s5=C((()=>{o(c5,"createContextScope"),o(Dm,"composeContextScopes")}));function xt(e){let t=react__WEBPACK_IMPORTED_MODULE_0__.useRef(e);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{t.current=e})),react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>(...r)=>t.current?.(...r)),[])}var u5=C((()=>{o(xt,"useCallbackRef")}));function f5(e){let t=react__WEBPACK_IMPORTED_MODULE_0__.useContext(_m);return e||t||"ltr"}var _m,d5=C((()=>{_m=react__WEBPACK_IMPORTED_MODULE_0__.createContext(void 0),o(f5,"useDirection")}));function p5(e,[t,r]){return Math.min(r,Math.max(t,e))}var m5=C((()=>{o(p5,"clamp")}));function Et(e,t,{checkForDefaultPrevented:r=!0}={}){return o((function(a){if(e?.(a),!1===r||!a.defaultPrevented)return t?.(a)}),"handleEvent")}var h5=C((()=>{o(Et,"composeEventHandlers")}));function $m(e,t){return react__WEBPACK_IMPORTED_MODULE_0__.useReducer(((r,n)=>t[r][n]??r),e)}function Jn(e){return e?parseInt(e,10):0}function L5(e,t){let r=e/t;return isNaN(r)?0:r}function Qn(e){let t=L5(e.viewport,e.content),r=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,n=(e.scrollbar.size-r)*t;return Math.max(n,18)}function Jm(e,t,r,n="ltr"){let a=Qn(r),c=t||a/2,l=a-c,s=r.scrollbar.paddingStart+c,u=r.scrollbar.size-r.scrollbar.paddingEnd-l,f=r.content-r.viewport;return I5([s,u],"ltr"===n?[0,f]:[-1*f,0])(e)}function g5(e,t,r="ltr"){let n=Qn(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-a,c=t.content-t.viewport,l=i-n,u=p5(e,"ltr"===r?[0,c]:[-1*c,0]);return I5([0,c],[0,l])(u)}function I5(e,t){return r=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(r-e[0])}}function z5(e,t){return e>0&&e<t}function eo(e,t){let r=xt(e),n=react__WEBPACK_IMPORTED_MODULE_0__.useRef(0);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>()=>window.clearTimeout(n.current)),[]),react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,t)}),[r,t])}function br(e,t){let r=xt(t);an((()=>{let n=0;if(e){let a=new ResizeObserver((()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)}));return a.observe(e),()=>{window.cancelAnimationFrame(n),a.unobserve(e)}}}),[e,r])}function eh(e,t){let{asChild:r,children:n}=e;if(!r)return"function"==typeof t?t(n):t;let a=react__WEBPACK_IMPORTED_MODULE_0__.Children.only(n);return react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(a,{children:"function"==typeof t?t(a.props.children):t})}var ti,w5,mR,Wm,_e,b5,y5,R5,rt,x5,Um,qm,E5,ri,Gm,Ym,Xm,S5,C5,Kn,M5,Zm,ni,A5,Km,Qm,T5,H5,P5,k5,O5,nh,oh,N5,F5,yr,B5=C((()=>{n5(),l5(),s5(),Yn(),u5(),d5(),ei(),m5(),h5(),o($m,"useStateMachine"),ti="ScrollArea",[w5,mR]=c5(ti),[Wm,_e]=w5(ti),(b5=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{__scopeScrollArea:r,type:n="hover",dir:a,scrollHideDelay:i=600,...c}=e,[l,s]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),[u,f]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),[d,m]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),[v,y]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),[p,h]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),[g,w]=react__WEBPACK_IMPORTED_MODULE_0__.useState(0),[b,x]=react__WEBPACK_IMPORTED_MODULE_0__.useState(0),[E,R]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!1),[S,A]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!1),M=it(t,(P=>s(P))),L=f5(a);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Wm,{scope:r,type:n,dir:L,scrollHideDelay:i,scrollArea:l,viewport:u,onViewportChange:f,content:d,onContentChange:m,scrollbarX:v,onScrollbarXChange:y,scrollbarXEnabled:E,onScrollbarXEnabledChange:R,scrollbarY:p,onScrollbarYChange:h,scrollbarYEnabled:S,onScrollbarYEnabledChange:A,onCornerWidthChange:w,onCornerHeightChange:x,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(gr.div,{dir:L,...c,ref:M,style:{position:"relative","--radix-scroll-area-corner-width":g+"px","--radix-scroll-area-corner-height":b+"px",...e.style}})})}))).displayName=ti,y5="ScrollAreaViewport",(R5=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{__scopeScrollArea:r,children:n,asChild:a,nonce:i,...c}=e,l=_e(y5,r),u=it(t,react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),l.onViewportChange);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n[data-radix-scroll-area-viewport] {\n scrollbar-width: none;\n -ms-overflow-style: none;\n -webkit-overflow-scrolling: touch;\n}\n[data-radix-scroll-area-viewport]::-webkit-scrollbar {\n display: none;\n}\n:where([data-radix-scroll-area-viewport]) {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n}\n:where([data-radix-scroll-area-content]) {\n flex-grow: 1;\n}\n"},nonce:i}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(gr.div,{"data-radix-scroll-area-viewport":"",...c,asChild:a,ref:u,style:{overflowX:l.scrollbarXEnabled?"scroll":"hidden",overflowY:l.scrollbarYEnabled?"scroll":"hidden",...e.style},children:eh({asChild:a,children:n},(f=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div",{"data-radix-scroll-area-content":"",ref:l.onContentChange,style:{minWidth:l.scrollbarXEnabled?"fit-content":void 0},children:f})))})]})}))).displayName=y5,rt="ScrollAreaScrollbar",(x5=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{forceMount:r,...n}=e,a=_e(rt,e.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:c}=a,l="horizontal"===e.orientation;return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>(l?i(!0):c(!0),()=>{l?i(!1):c(!1)})),[l,i,c]),"hover"===a.type?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Um,{...n,ref:t,forceMount:r}):"scroll"===a.type?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(qm,{...n,ref:t,forceMount:r}):"auto"===a.type?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(E5,{...n,ref:t,forceMount:r}):"always"===a.type?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(ri,{...n,ref:t}):null}))).displayName=rt,Um=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{forceMount:r,...n}=e,a=_e(rt,e.__scopeScrollArea),[i,c]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!1);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{let l=a.scrollArea,s=0;if(l){let u=o((()=>{window.clearTimeout(s),c(!0)}),"handlePointerEnter"),f=o((()=>{s=window.setTimeout((()=>c(!1)),a.scrollHideDelay)}),"handlePointerLeave");return l.addEventListener("pointerenter",u),l.addEventListener("pointerleave",f),()=>{window.clearTimeout(s),l.removeEventListener("pointerenter",u),l.removeEventListener("pointerleave",f)}}}),[a.scrollArea,a.scrollHideDelay]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(vr,{present:r||i,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(E5,{"data-state":i?"visible":"hidden",...n,ref:t})})})),qm=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{forceMount:r,...n}=e,a=_e(rt,e.__scopeScrollArea),i="horizontal"===e.orientation,c=eo((()=>s("SCROLL_END")),100),[l,s]=$m("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{if("idle"===l){let u=window.setTimeout((()=>s("HIDE")),a.scrollHideDelay);return()=>window.clearTimeout(u)}}),[l,a.scrollHideDelay,s]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{let u=a.viewport,f=i?"scrollLeft":"scrollTop";if(u){let d=u[f],m=o((()=>{let v=u[f];d!==v&&(s("SCROLL"),c()),d=v}),"handleScroll");return u.addEventListener("scroll",m),()=>u.removeEventListener("scroll",m)}}),[a.viewport,i,s,c]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(vr,{present:r||"hidden"!==l,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(ri,{"data-state":"hidden"===l?"hidden":"visible",...n,ref:t,onPointerEnter:Et(e.onPointerEnter,(()=>s("POINTER_ENTER"))),onPointerLeave:Et(e.onPointerLeave,(()=>s("POINTER_LEAVE")))})})})),E5=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let r=_e(rt,e.__scopeScrollArea),{forceMount:n,...a}=e,[i,c]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!1),l="horizontal"===e.orientation,s=eo((()=>{if(r.viewport){let u=r.viewport.offsetWidth<r.viewport.scrollWidth,f=r.viewport.offsetHeight<r.viewport.scrollHeight;c(l?u:f)}}),10);return br(r.viewport,s),br(r.content,s),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(vr,{present:n||i,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(ri,{"data-state":i?"visible":"hidden",...a,ref:t})})})),ri=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{orientation:r="vertical",...n}=e,a=_e(rt,e.__scopeScrollArea),i=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),c=react__WEBPACK_IMPORTED_MODULE_0__.useRef(0),[l,s]=react__WEBPACK_IMPORTED_MODULE_0__.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=L5(l.viewport,l.content),f={...n,sizes:l,onSizesChange:s,hasThumb:u>0&&u<1,onThumbChange:o((m=>i.current=m),"onThumbChange"),onThumbPointerUp:o((()=>c.current=0),"onThumbPointerUp"),onThumbPointerDown:o((m=>c.current=m),"onThumbPointerDown")};function d(m,v){return Jm(m,c.current,l,v)}return o(d,"getScrollPosition"),"horizontal"===r?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Gm,{...f,ref:t,onThumbPositionChange:o((()=>{if(a.viewport&&i.current){let v=g5(a.viewport.scrollLeft,l,a.dir);i.current.style.transform=`translate3d(${v}px, 0, 0)`}}),"onThumbPositionChange"),onWheelScroll:o((m=>{a.viewport&&(a.viewport.scrollLeft=m)}),"onWheelScroll"),onDragScroll:o((m=>{a.viewport&&(a.viewport.scrollLeft=d(m,a.dir))}),"onDragScroll")}):"vertical"===r?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Ym,{...f,ref:t,onThumbPositionChange:o((()=>{if(a.viewport&&i.current){let v=g5(a.viewport.scrollTop,l);i.current.style.transform=`translate3d(0, ${v}px, 0)`}}),"onThumbPositionChange"),onWheelScroll:o((m=>{a.viewport&&(a.viewport.scrollTop=m)}),"onWheelScroll"),onDragScroll:o((m=>{a.viewport&&(a.viewport.scrollTop=d(m))}),"onDragScroll")}):null})),Gm=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{sizes:r,onSizesChange:n,...a}=e,i=_e(rt,e.__scopeScrollArea),[c,l]=react__WEBPACK_IMPORTED_MODULE_0__.useState(),s=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),u=it(t,s,i.onScrollbarXChange);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{s.current&&l(getComputedStyle(s.current))}),[s]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(C5,{"data-orientation":"horizontal",...a,ref:u,sizes:r,style:{bottom:0,left:"rtl"===i.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===i.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Qn(r)+"px",...e.style},onThumbPointerDown:o((f=>e.onThumbPointerDown(f.x)),"onThumbPointerDown"),onDragScroll:o((f=>e.onDragScroll(f.x)),"onDragScroll"),onWheelScroll:o(((f,d)=>{if(i.viewport){let m=i.viewport.scrollLeft+f.deltaX;e.onWheelScroll(m),z5(m,d)&&f.preventDefault()}}),"onWheelScroll"),onResize:o((()=>{s.current&&i.viewport&&c&&n({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:s.current.clientWidth,paddingStart:Jn(c.paddingLeft),paddingEnd:Jn(c.paddingRight)}})}),"onResize")})})),Ym=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{sizes:r,onSizesChange:n,...a}=e,i=_e(rt,e.__scopeScrollArea),[c,l]=react__WEBPACK_IMPORTED_MODULE_0__.useState(),s=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),u=it(t,s,i.onScrollbarYChange);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{s.current&&l(getComputedStyle(s.current))}),[s]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(C5,{"data-orientation":"vertical",...a,ref:u,sizes:r,style:{top:0,right:"ltr"===i.dir?0:void 0,left:"rtl"===i.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Qn(r)+"px",...e.style},onThumbPointerDown:o((f=>e.onThumbPointerDown(f.y)),"onThumbPointerDown"),onDragScroll:o((f=>e.onDragScroll(f.y)),"onDragScroll"),onWheelScroll:o(((f,d)=>{if(i.viewport){let m=i.viewport.scrollTop+f.deltaY;e.onWheelScroll(m),z5(m,d)&&f.preventDefault()}}),"onWheelScroll"),onResize:o((()=>{s.current&&i.viewport&&c&&n({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:s.current.clientHeight,paddingStart:Jn(c.paddingTop),paddingEnd:Jn(c.paddingBottom)}})}),"onResize")})})),[Xm,S5]=w5(rt),C5=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{__scopeScrollArea:r,sizes:n,hasThumb:a,onThumbChange:i,onThumbPointerUp:c,onThumbPointerDown:l,onThumbPositionChange:s,onDragScroll:u,onWheelScroll:f,onResize:d,...m}=e,v=_e(rt,r),[y,p]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),h=it(t,(M=>p(M))),g=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),w=react__WEBPACK_IMPORTED_MODULE_0__.useRef(""),b=v.viewport,x=n.content-n.viewport,E=xt(f),R=xt(s),S=eo(d,10);function A(M){if(g.current){let L=M.clientX-g.current.left,P=M.clientY-g.current.top;u({x:L,y:P})}}return o(A,"handleDragScroll"),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{let M=o((L=>{let P=L.target;y?.contains(P)&&E(L,x)}),"handleWheel");return document.addEventListener("wheel",M,{passive:!1}),()=>document.removeEventListener("wheel",M,{passive:!1})}),[b,y,x,E]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect(R,[n,R]),br(y,S),br(v.content,S),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Xm,{scope:r,scrollbar:y,hasThumb:a,onThumbChange:xt(i),onThumbPointerUp:xt(c),onThumbPositionChange:R,onThumbPointerDown:xt(l),children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(gr.div,{...m,ref:h,style:{position:"absolute",...m.style},onPointerDown:Et(e.onPointerDown,(M=>{0===M.button&&(M.target.setPointerCapture(M.pointerId),g.current=y.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",v.viewport&&(v.viewport.style.scrollBehavior="auto"),A(M))})),onPointerMove:Et(e.onPointerMove,A),onPointerUp:Et(e.onPointerUp,(M=>{let L=M.target;L.hasPointerCapture(M.pointerId)&&L.releasePointerCapture(M.pointerId),document.body.style.webkitUserSelect=w.current,v.viewport&&(v.viewport.style.scrollBehavior=""),g.current=null}))})})})),Kn="ScrollAreaThumb",M5=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{forceMount:r,...n}=e,a=S5(Kn,e.__scopeScrollArea);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(vr,{present:r||a.hasThumb,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Zm,{ref:t,...n})})})),Zm=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{__scopeScrollArea:r,style:n,...a}=e,i=_e(Kn,r),c=S5(Kn,r),{onThumbPositionChange:l}=c,s=it(t,(d=>c.onThumbChange(d))),u=react__WEBPACK_IMPORTED_MODULE_0__.useRef(),f=eo((()=>{u.current&&(u.current(),u.current=void 0)}),100);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{let d=i.viewport;if(d){let m=o((()=>{if(f(),!u.current){let v=Qm(d,l);u.current=v,l()}}),"handleScroll");return l(),d.addEventListener("scroll",m),()=>d.removeEventListener("scroll",m)}}),[i.viewport,f,l]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(gr.div,{"data-state":c.hasThumb?"visible":"hidden",...a,ref:s,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:Et(e.onPointerDownCapture,(d=>{let v=d.target.getBoundingClientRect(),y=d.clientX-v.left,p=d.clientY-v.top;c.onThumbPointerDown({x:y,y:p})})),onPointerUp:Et(e.onPointerUp,c.onThumbPointerUp)})})),M5.displayName=Kn,ni="ScrollAreaCorner",(A5=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let r=_e(ni,e.__scopeScrollArea),n=!(!r.scrollbarX||!r.scrollbarY);return"scroll"!==r.type&&n?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Km,{...e,ref:t}):null}))).displayName=ni,Km=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{__scopeScrollArea:r,...n}=e,a=_e(ni,r),[i,c]=react__WEBPACK_IMPORTED_MODULE_0__.useState(0),[l,s]=react__WEBPACK_IMPORTED_MODULE_0__.useState(0),u=!(!i||!l);return br(a.scrollbarX,(()=>{let f=a.scrollbarX?.offsetHeight||0;a.onCornerHeightChange(f),s(f)})),br(a.scrollbarY,(()=>{let f=a.scrollbarY?.offsetWidth||0;a.onCornerWidthChange(f),c(f)})),u?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(gr.div,{...n,ref:t,style:{width:i,height:l,position:"absolute",right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:0,...e.style}}):null})),o(Jn,"toInt"),o(L5,"getThumbRatio"),o(Qn,"getThumbSize"),o(Jm,"getScrollPositionFromPointer"),o(g5,"getThumbOffsetFromScroll"),o(I5,"linearScale"),o(z5,"isScrollingWithinScrollbarBounds"),Qm=o(((e,t=()=>{})=>{let r={left:e.scrollLeft,top:e.scrollTop},n=0;return o((function a(){let i={left:e.scrollLeft,top:e.scrollTop},c=r.left!==i.left,l=r.top!==i.top;(c||l)&&t(),r=i,n=window.requestAnimationFrame(a)}),"loop")(),()=>window.cancelAnimationFrame(n)}),"addUnlinkedScrollListener"),o(eo,"useDebounceCallback"),o(br,"useResizeObserver"),o(eh,"getSubtree"),T5=b5,H5=R5,P5=x5,k5=M5,O5=A5})),ro=C((()=>{B5(),nh=(0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4)(T5)((({scrollbarsize:e,offset:t})=>({width:"100%",height:"100%",overflow:"hidden","--scrollbar-size":`${e+t}px`,"--radix-scroll-area-thumb-width":`${e}px`}))),oh=(0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4)(H5)({width:"100%",height:"100%"}),N5=(0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4)(P5)((({offset:e,horizontal:t,vertical:r})=>({display:"flex",userSelect:"none",touchAction:"none",background:"transparent",transition:"all 0.2s ease-out",borderRadius:"var(--scrollbar-size)",zIndex:1,'&[data-orientation="vertical"]':{width:"var(--scrollbar-size)",paddingRight:e,marginTop:e,marginBottom:"true"===t&&"true"===r?0:e},'&[data-orientation="horizontal"]':{flexDirection:"column",height:"var(--scrollbar-size)",paddingBottom:e,marginLeft:e,marginRight:"true"===t&&"true"===r?0:e}}))),F5=(0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4)(k5)((({theme:e})=>({flex:1,background:e.textMutedColor,opacity:.5,borderRadius:"var(--scrollbar-size)",position:"relative",transition:"opacity 0.2s ease-out","&:hover":{opacity:.8},"::before":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",width:"100%",height:"100%"}}))),(yr=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((({children:e,horizontal:t=!1,vertical:r=!1,offset:n=2,scrollbarSize:a=6,className:i},c)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(nh,{scrollbarsize:a,offset:n,className:i},react__WEBPACK_IMPORTED_MODULE_0__.createElement(oh,{ref:c},e),t&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(N5,{orientation:"horizontal",offset:n,horizontal:t.toString(),vertical:r.toString()},react__WEBPACK_IMPORTED_MODULE_0__.createElement(F5,null)),r&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(N5,{orientation:"vertical",offset:n,horizontal:t.toString(),vertical:r.toString()},react__WEBPACK_IMPORTED_MODULE_0__.createElement(F5,null)),t&&r&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(O5,null))))).displayName="ScrollArea"})),ai={};function oi(){return no.navigator?.clipboard?async e=>{try{await(no.top?.navigator.clipboard.writeText(e))}catch{await no.navigator.clipboard.writeText(e)}}:async e=>{let t=ln.createElement("TEXTAREA"),r=ln.activeElement;t.value=e,ln.body.appendChild(t),t.select(),ln.execCommand("copy"),ln.body.removeChild(t),r.focus()}}Zr(ai,{SyntaxHighlighter:()=>sn,createCopyToClipboardFunction:()=>oi,default:()=>wh,supportedLanguages:()=>$5});var _5,ln,no,$5,sh,uh,fh,dh,ph,mh,hh,V5,gh,vh,sn,wh,un=C((()=>{_5=me(Qr(),1),t1(),i1(),s1(),m1(),b1(),S1(),L1(),P1(),B1(),V1(),U1(),Z1(),e1(),Xa(),ro(),({document:ln,window:no}=_storybook_global__WEBPACK_IMPORTED_MODULE_5__.global),$5={jsextra:w1,jsx:A1,json:E1,yml:X1,md:H1,bash:a1,css:c1,html:O1,tsx:$1,typescript:W1,graphql:p1},Object.entries($5).forEach((([e,t])=>{Gn.registerLanguage(e,t)})),sh=(0,_5.default)(2)((e=>Object.entries(e.code||{}).reduce(((t,[r,n])=>({...t,[`* .${r}`]:n})),{}))),uh=oi(),o(oi,"createCopyToClipboardFunction"),fh=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e})=>({position:"relative",overflow:"hidden",color:e.color.defaultText})),(({theme:e,bordered:t})=>t?{border:`1px solid ${e.appBorderColor}`,borderRadius:e.borderRadius,background:e.background.content}:{}),(({showLineNumbers:e})=>e?{".react-syntax-highlighter-line-number::before":{content:"attr(data-line-number)"}}:{})),dh=o((({children:e,className:t})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(yr,{horizontal:!0,vertical:!0,className:t},e)),"UnstyledScroller"),ph=(0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4)(dh)({position:"relative"},(({theme:e})=>sh(e))),mh=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.pre((({theme:e,padded:t})=>({display:"flex",justifyContent:"flex-start",margin:0,padding:t?e.layoutMargin:0}))),hh=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e})=>({flex:1,paddingLeft:2,paddingRight:e.layoutMargin,opacity:1,fontFamily:e.typography.fonts.mono}))),V5=o((e=>{let t=[...e.children],r=t[0],n=r.children[0].value,a={...r,children:[],properties:{...r.properties,"data-line-number":n,style:{...r.properties.style,userSelect:"auto"}}};return t[0]=a,{...e,children:t}}),"processLineNumber"),gh=o((({rows:e,stylesheet:t,useInlineStyles:r})=>e.map(((n,a)=>_t({node:V5(n),stylesheet:t,useInlineStyles:r,key:`code-segement${a}`})))),"defaultRenderer"),vh=o(((e,t)=>t?e?({rows:r,...n})=>e({rows:r.map((a=>V5(a))),...n}):gh:e),"wrapRenderer"),(sn=o((({children:e,language:t="jsx",copyable:r=!1,bordered:n=!1,padded:a=!1,format:i=!0,formatter:c,className:l,showLineNumbers:s=!1,...u})=>{if("string"!=typeof e||!e.trim())return null;let[f,d]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)("");(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{c?c(i,e).then(d):d(e.trim())}),[e,i,c]);let[m,v]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),y=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((h=>{h.preventDefault(),uh(f).then((()=>{v(!0),no.setTimeout((()=>v(!1)),1500)})).catch(storybook_internal_client_logger__WEBPACK_IMPORTED_MODULE_4__.logger.error)}),[f]),p=vh(u.renderer,s);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(fh,{bordered:n,padded:a,showLineNumbers:s,className:l},react__WEBPACK_IMPORTED_MODULE_0__.createElement(ph,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(Gn,{padded:a||n,language:t,showLineNumbers:s,showInlineLineNumbers:s,useInlineStyles:!1,PreTag:mh,CodeTag:hh,lineNumberContainerStyle:{},...u,renderer:p},f)),r?react__WEBPACK_IMPORTED_MODULE_0__.createElement(Ya,{actionItems:[{title:m?"Copied":"Copy",onClick:y}]}):null)}),"SyntaxHighlighter")).registerLanguage=(...e)=>Gn.registerLanguage(...e),wh=sn}));function Z5(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from("string"==typeof e?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var a=n.reduce((function(l,s){var u=s.match(/\n([\t ]+|(?!\s).)/g);return u?l.concat(u.map((function(f){var d,m;return null!==(m=null===(d=f.match(/[\t ]/g))||void 0===d?void 0:d.length)&&void 0!==m?m:0}))):l}),[]);if(a.length){var i=new RegExp("\n[\t ]{"+Math.min.apply(Math,a)+"}","g");n=n.map((function(l){return l.replace(i,"\n")}))}n[0]=n[0].replace(/^\r?\n/,"");var c=n[0];return t.forEach((function(l,s){var u=c.match(/(?:^|\n)( *)$/),f=u?u[1]:"",d=l;"string"==typeof l&&l.includes("\n")&&(d=String(l).split("\n").map((function(m,v){return 0===v?m:""+f+m})).join("\n")),c+=d+n[s+1]})),c}var K5=C((()=>{o(Z5,"dedent")})),Q5={};Zr(Q5,{formatter:()=>tg});var J5,tg,L0,I0,te,le,ae,ne,Io,At,ut,Kt,Ff,zo,kr,Df,z0,To,_f,eu=C((()=>{J5=me(Qr(),1),K5(),tg=(0,J5.default)(2)((async(e,t)=>!1===e?t:Z5(t)))})),Nf=C((()=>{L0=o((function(t){return t.reduce((function(r,n){var a=n[0],i=n[1];return r[a]=i,r}),{})}),"fromEntries"),I0=typeof window<"u"&&window.document&&window.document.createElement?react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_0__.useEffect})),ke=C((()=>{Io="auto",ut="start",Kt="end",Ff="clippingParents",zo="viewport",kr="popper",Df="reference",z0=(At=[te="top",le="bottom",ae="right",ne="left"]).reduce((function(e,t){return e.concat([t+"-"+ut,t+"-"+Kt])}),[]),To=[].concat(At,[Io]).reduce((function(e,t){return e.concat([t,t+"-"+ut,t+"-"+Kt])}),[]),_f=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]}));function fe(e){return e?(e.nodeName||"").toLowerCase():null}var Lt=C((()=>{o(fe,"getNodeName")}));function Z(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}var Je=C((()=>{o(Z,"getWindow")}));function We(e){return e instanceof Z(e).Element||e instanceof Element}function ce(e){return e instanceof Z(e).HTMLElement||e instanceof HTMLElement}function Or(e){return!(typeof ShadowRoot>"u")&&(e instanceof Z(e).ShadowRoot||e instanceof ShadowRoot)}var Oe=C((()=>{Je(),o(We,"isElement"),o(ce,"isHTMLElement"),o(Or,"isShadowRoot")}));function i7(e){var t=e.state;Object.keys(t.elements).forEach((function(r){var n=t.styles[r]||{},a=t.attributes[r]||{},i=t.elements[r];!ce(i)||!fe(i)||(Object.assign(i.style,n),Object.keys(a).forEach((function(c){var l=a[c];!1===l?i.removeAttribute(c):i.setAttribute(c,!0===l?"":l)})))}))}function l7(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(n){var a=t.elements[n],i=t.attributes[n]||{},l=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]).reduce((function(s,u){return s[u]="",s}),{});!ce(a)||!fe(a)||(Object.assign(a.style,l),Object.keys(i).forEach((function(s){a.removeAttribute(s)})))}))}}var $f,Vf=C((()=>{Lt(),Oe(),o(i7,"applyStyles"),o(l7,"effect"),$f={name:"applyStyles",enabled:!0,phase:"write",fn:i7,effect:l7,requires:["computeStyles"]}}));function de(e){return e.split("-")[0]}var Qe,Jt,ft,It=C((()=>{o(de,"getBasePlacement")})),zt=C((()=>{Qe=Math.max,Jt=Math.min,ft=Math.round}));function Br(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}var T0=C((()=>{o(Br,"getUAString")}));function wn(){return!/^((?!chrome|android).)*safari/i.test(Br())}var H0=C((()=>{T0(),o(wn,"isLayoutViewport")}));function Ue(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),a=1,i=1;t&&ce(e)&&(a=e.offsetWidth>0&&ft(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ft(n.height)/e.offsetHeight||1);var l=(We(e)?Z(e):window).visualViewport,s=!wn()&&r,u=(n.left+(s&&l?l.offsetLeft:0))/a,f=(n.top+(s&&l?l.offsetTop:0))/i,d=n.width/a,m=n.height/i;return{width:d,height:m,top:f,right:u+d,bottom:f+m,left:u,x:u,y:f}}var Nr=C((()=>{Oe(),zt(),Je(),H0(),o(Ue,"getBoundingClientRect")}));function Qt(e){var t=Ue(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}var Ho=C((()=>{Nr(),o(Qt,"getLayoutRect")}));function bn(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Or(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}var P0=C((()=>{Oe(),o(bn,"contains")}));function xe(e){return Z(e).getComputedStyle(e)}var Fr=C((()=>{Je(),o(xe,"getComputedStyle")}));function k0(e){return["table","td","th"].indexOf(fe(e))>=0}var jf=C((()=>{Lt(),o(k0,"isTableElement")}));function ge(e){return((We(e)?e.ownerDocument:e.document)||window.document).documentElement}var dt=C((()=>{Oe(),o(ge,"getDocumentElement")}));function pt(e){return"html"===fe(e)?e:e.assignedSlot||e.parentNode||(Or(e)?e.host:null)||ge(e)}var yn=C((()=>{Lt(),dt(),Oe(),o(pt,"getParentNode")}));function Wf(e){return ce(e)&&"fixed"!==xe(e).position?e.offsetParent:null}function c7(e){var t=/firefox/i.test(Br());if(/Trident/i.test(Br())&&ce(e)&&"fixed"===xe(e).position)return null;var a=pt(e);for(Or(a)&&(a=a.host);ce(a)&&["html","body"].indexOf(fe(a))<0;){var i=xe(a);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return a;a=a.parentNode}return null}function et(e){for(var t=Z(e),r=Wf(e);r&&k0(r)&&"static"===xe(r).position;)r=Wf(r);return r&&("html"===fe(r)||"body"===fe(r)&&"static"===xe(r).position)?t:r||c7(e)||t}var Dr=C((()=>{Je(),Lt(),Fr(),Oe(),jf(),yn(),T0(),o(Wf,"getTrueOffsetParent"),o(c7,"getContainingBlock"),o(et,"getOffsetParent")}));function er(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var Po=C((()=>{o(er,"getMainAxisFromPlacement")}));function tr(e,t,r){return Qe(e,Jt(t,r))}function Uf(e,t,r){var n=tr(e,t,r);return n>r?r:n}var O0=C((()=>{zt(),o(tr,"within"),o(Uf,"withinMaxClamp")}));function Rn(){return{top:0,right:0,bottom:0,left:0}}var B0=C((()=>{o(Rn,"getFreshSideObject")}));function xn(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}var N0=C((()=>{B0(),o(xn,"mergePaddingObject")}));function En(e,t){return t.reduce((function(r,n){return r[n]=e,r}),{})}var F0=C((()=>{o(En,"expandToHashMap")}));function u7(e){var t,r=e.state,n=e.name,a=e.options,i=r.elements.arrow,c=r.modifiersData.popperOffsets,l=de(r.placement),s=er(l),f=[ne,ae].indexOf(l)>=0?"height":"width";if(i&&c){var d=s7(a.padding,r),m=Qt(i),v="y"===s?te:ne,y="y"===s?le:ae,p=r.rects.reference[f]+r.rects.reference[s]-c[s]-r.rects.popper[f],h=c[s]-r.rects.reference[s],g=et(i),w=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,b=p/2-h/2,x=d[v],E=w-m[f]-d[y],R=w/2-m[f]/2+b,S=tr(x,R,E),A=s;r.modifiersData[n]=((t={})[A]=S,t.centerOffset=S-R,t)}}function f7(e){var t=e.state,n=e.options.element,a=void 0===n?"[data-popper-arrow]":n;null!=a&&("string"==typeof a&&!(a=t.elements.popper.querySelector(a))||bn(t.elements.popper,a)&&(t.elements.arrow=a))}var s7,qf,Gf=C((()=>{It(),Ho(),P0(),Dr(),Po(),O0(),N0(),F0(),ke(),s7=o((function(t,r){return xn("number"!=typeof(t="function"==typeof t?t(Object.assign({},r.rects,{placement:r.placement})):t)?t:En(t,At))}),"toPaddingObject"),o(u7,"arrow"),o(f7,"effect"),qf={name:"arrow",enabled:!0,phase:"main",fn:u7,effect:f7,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}}));function qe(e){return e.split("-")[1]}var _r=C((()=>{o(qe,"getVariation")}));function p7(e,t){var r=e.x,n=e.y,a=t.devicePixelRatio||1;return{x:ft(r*a)/a||0,y:ft(n*a)/a||0}}function Yf(e){var t,r=e.popper,n=e.popperRect,a=e.placement,i=e.variation,c=e.offsets,l=e.position,s=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,d=e.isFixed,m=c.x,v=void 0===m?0:m,y=c.y,p=void 0===y?0:y,h="function"==typeof f?f({x:v,y:p}):{x:v,y:p};v=h.x,p=h.y;var g=c.hasOwnProperty("x"),w=c.hasOwnProperty("y"),b=ne,x=te,E=window;if(u){var R=et(r),S="clientHeight",A="clientWidth";if(R===Z(r)&&("static"!==xe(R=ge(r)).position&&"absolute"===l&&(S="scrollHeight",A="scrollWidth")),a===te||(a===ne||a===ae)&&i===Kt)x=le,p-=(d&&R===E&&E.visualViewport?E.visualViewport.height:R[S])-n.height,p*=s?1:-1;if(a===ne||(a===te||a===le)&&i===Kt)b=ae,v-=(d&&R===E&&E.visualViewport?E.visualViewport.width:R[A])-n.width,v*=s?1:-1}var D,P=Object.assign({position:l},u&&d7),_=!0===f?p7({x:v,y:p},Z(r)):{x:v,y:p};return v=_.x,p=_.y,s?Object.assign({},P,((D={})[x]=w?"0":"",D[b]=g?"0":"",D.transform=(E.devicePixelRatio||1)<=1?"translate("+v+"px, "+p+"px)":"translate3d("+v+"px, "+p+"px, 0)",D)):Object.assign({},P,((t={})[x]=w?p+"px":"",t[b]=g?v+"px":"",t.transform="",t))}function m7(e){var t=e.state,r=e.options,n=r.gpuAcceleration,a=void 0===n||n,i=r.adaptive,c=void 0===i||i,l=r.roundOffsets,s=void 0===l||l,u={placement:de(t.placement),variation:qe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Yf(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Yf(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var d7,Xf,Zf=C((()=>{ke(),Dr(),Je(),dt(),Fr(),It(),_r(),zt(),d7={top:"auto",right:"auto",bottom:"auto",left:"auto"},o(p7,"roundOffsetsByDPR"),o(Yf,"mapToStyles"),o(m7,"computeStyles"),Xf={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:m7,data:{}}}));function h7(e){var t=e.state,r=e.instance,n=e.options,a=n.scroll,i=void 0===a||a,c=n.resize,l=void 0===c||c,s=Z(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(f){f.addEventListener("scroll",r.update,ko)})),l&&s.addEventListener("resize",r.update,ko),function(){i&&u.forEach((function(f){f.removeEventListener("scroll",r.update,ko)})),l&&s.removeEventListener("resize",r.update,ko)}}var ko,Kf,Jf=C((()=>{Je(),ko={passive:!0},o(h7,"effect"),Kf={name:"eventListeners",enabled:!0,phase:"write",fn:o((function(){}),"fn"),effect:h7,data:{}}}));function $r(e){return e.replace(/left|right|bottom|top/g,(function(t){return g7[t]}))}var g7,Qf=C((()=>{g7={left:"right",right:"left",bottom:"top",top:"bottom"},o($r,"getOppositePlacement")}));function Oo(e){return e.replace(/start|end/g,(function(t){return v7[t]}))}var v7,ed=C((()=>{v7={start:"end",end:"start"},o(Oo,"getOppositeVariationPlacement")}));function rr(e){var t=Z(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}var Bo=C((()=>{Je(),o(rr,"getWindowScroll")}));function nr(e){return Ue(ge(e)).left+rr(e).scrollLeft}var No=C((()=>{Nr(),dt(),Bo(),o(nr,"getWindowScrollBarX")}));function D0(e,t){var r=Z(e),n=ge(e),a=r.visualViewport,i=n.clientWidth,c=n.clientHeight,l=0,s=0;if(a){i=a.width,c=a.height;var u=wn();(u||!u&&"fixed"===t)&&(l=a.offsetLeft,s=a.offsetTop)}return{width:i,height:c,x:l+nr(e),y:s}}var td=C((()=>{Je(),dt(),No(),H0(),o(D0,"getViewportRect")}));function _0(e){var t,r=ge(e),n=rr(e),a=null==(t=e.ownerDocument)?void 0:t.body,i=Qe(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),c=Qe(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-n.scrollLeft+nr(e),s=-n.scrollTop;return"rtl"===xe(a||r).direction&&(l+=Qe(r.clientWidth,a?a.clientWidth:0)-i),{width:i,height:c,x:l,y:s}}var rd=C((()=>{dt(),Fr(),No(),Bo(),zt(),o(_0,"getDocumentRect")}));function or(e){var t=xe(e),r=t.overflow,n=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+n)}var Fo=C((()=>{Fr(),o(or,"isScrollParent")}));function Do(e){return["html","body","#document"].indexOf(fe(e))>=0?e.ownerDocument.body:ce(e)&&or(e)?e:Do(pt(e))}var nd=C((()=>{yn(),Fo(),Lt(),Oe(),o(Do,"getScrollParent")}));function Tt(e,t){var r;void 0===t&&(t=[]);var n=Do(e),a=n===(null==(r=e.ownerDocument)?void 0:r.body),i=Z(n),c=a?[i].concat(i.visualViewport||[],or(n)?n:[]):n,l=t.concat(c);return a?l:l.concat(Tt(pt(c)))}var $0=C((()=>{nd(),yn(),Je(),Fo(),o(Tt,"listScrollParents")}));function Vr(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}var V0=C((()=>{o(Vr,"rectToClientRect")}));function w7(e,t){var r=Ue(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function od(e,t,r){return t===zo?Vr(D0(e,r)):We(t)?w7(t,r):Vr(_0(ge(e)))}function b7(e){var t=Tt(pt(e)),n=["absolute","fixed"].indexOf(xe(e).position)>=0&&ce(e)?et(e):e;return We(n)?t.filter((function(a){return We(a)&&bn(a,n)&&"body"!==fe(a)})):[]}function j0(e,t,r,n){var a="clippingParents"===t?b7(e):[].concat(t),i=[].concat(a,[r]),c=i[0],l=i.reduce((function(s,u){var f=od(e,u,n);return s.top=Qe(f.top,s.top),s.right=Jt(f.right,s.right),s.bottom=Jt(f.bottom,s.bottom),s.left=Qe(f.left,s.left),s}),od(e,c,n));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}var ad=C((()=>{ke(),td(),rd(),$0(),Dr(),dt(),Fr(),Oe(),Nr(),yn(),P0(),Lt(),V0(),zt(),o(w7,"getInnerBoundingClientRect"),o(od,"getClientRectFromMixedType"),o(b7,"getClippingParents"),o(j0,"getClippingRect")}));function Sn(e){var s,t=e.reference,r=e.element,n=e.placement,a=n?de(n):null,i=n?qe(n):null,c=t.x+t.width/2-r.width/2,l=t.y+t.height/2-r.height/2;switch(a){case te:s={x:c,y:t.y-r.height};break;case le:s={x:c,y:t.y+t.height};break;case ae:s={x:t.x+t.width,y:l};break;case ne:s={x:t.x-r.width,y:l};break;default:s={x:t.x,y:t.y}}var u=a?er(a):null;if(null!=u){var f="y"===u?"height":"width";switch(i){case ut:s[u]=s[u]-(t[f]/2-r[f]/2);break;case Kt:s[u]=s[u]+(t[f]/2-r[f]/2)}}return s}var W0=C((()=>{It(),_r(),Po(),ke(),o(Sn,"computeOffsets")}));function tt(e,t){void 0===t&&(t={});var r=t,n=r.placement,a=void 0===n?e.placement:n,i=r.strategy,c=void 0===i?e.strategy:i,l=r.boundary,s=void 0===l?Ff:l,u=r.rootBoundary,f=void 0===u?zo:u,d=r.elementContext,m=void 0===d?kr:d,v=r.altBoundary,y=void 0!==v&&v,p=r.padding,h=void 0===p?0:p,g=xn("number"!=typeof h?h:En(h,At)),w=m===kr?Df:kr,b=e.rects.popper,x=e.elements[y?w:m],E=j0(We(x)?x:x.contextElement||ge(e.elements.popper),s,f,c),R=Ue(e.elements.reference),S=Sn({reference:R,element:b,strategy:"absolute",placement:a}),A=Vr(Object.assign({},b,S)),M=m===kr?A:R,L={top:E.top-M.top+g.top,bottom:M.bottom-E.bottom+g.bottom,left:E.left-M.left+g.left,right:M.right-E.right+g.right},P=e.modifiersData.offset;if(m===kr&&P){var _=P[a];Object.keys(L).forEach((function(D){var K=[ae,le].indexOf(D)>=0?1:-1,T=[te,le].indexOf(D)>=0?"y":"x";L[D]+=_[T]*K}))}return L}var Cn=C((()=>{ad(),dt(),Nr(),W0(),V0(),ke(),Oe(),N0(),F0(),o(tt,"detectOverflow")}));function U0(e,t){void 0===t&&(t={});var r=t,n=r.placement,a=r.boundary,i=r.rootBoundary,c=r.padding,l=r.flipVariations,s=r.allowedAutoPlacements,u=void 0===s?To:s,f=qe(n),d=f?l?z0:z0.filter((function(y){return qe(y)===f})):At,m=d.filter((function(y){return u.indexOf(y)>=0}));0===m.length&&(m=d);var v=m.reduce((function(y,p){return y[p]=tt(e,{placement:p,boundary:a,rootBoundary:i,padding:c})[de(p)],y}),{});return Object.keys(v).sort((function(y,p){return v[y]-v[p]}))}var id=C((()=>{_r(),ke(),Cn(),It(),o(U0,"computeAutoPlacement")}));function y7(e){if(de(e)===Io)return[];var t=$r(e);return[Oo(e),t,Oo(t)]}function R7(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var a=r.mainAxis,i=void 0===a||a,c=r.altAxis,l=void 0===c||c,s=r.fallbackPlacements,u=r.padding,f=r.boundary,d=r.rootBoundary,m=r.altBoundary,v=r.flipVariations,y=void 0===v||v,p=r.allowedAutoPlacements,h=t.options.placement,g=de(h),b=s||(g===h||!y?[$r(h)]:y7(h)),x=[h].concat(b).reduce((function(pe,se){return pe.concat(de(se)===Io?U0(t,{placement:se,boundary:f,rootBoundary:d,padding:u,flipVariations:y,allowedAutoPlacements:p}):se)}),[]),E=t.rects.reference,R=t.rects.popper,S=new Map,A=!0,M=x[0],L=0;L<x.length;L++){var P=x[L],_=de(P),D=qe(P)===ut,K=[te,le].indexOf(_)>=0,T=K?"width":"height",z=tt(t,{placement:P,boundary:f,rootBoundary:d,altBoundary:m,padding:u}),k=K?D?ae:ne:D?le:te;E[T]>R[T]&&(k=$r(k));var V=$r(k),F=[];if(i&&F.push(z[_]<=0),l&&F.push(z[k]<=0,z[V]<=0),F.every((function(pe){return pe}))){M=P,A=!1;break}S.set(P,F)}if(A)for(var j=y?3:1,O=o((function(se){var ue=x.find((function(ve){var Se=S.get(ve);if(Se)return Se.slice(0,se).every((function(Ot){return Ot}))}));if(ue)return M=ue,"break"}),"_loop"),G=j;G>0;G--){if("break"===O(G))break}t.placement!==M&&(t.modifiersData[n]._skip=!0,t.placement=M,t.reset=!0)}}var ld,cd=C((()=>{Qf(),It(),ed(),Cn(),id(),ke(),_r(),o(y7,"getExpandedFallbackPlacements"),o(R7,"flip"),ld={name:"flip",enabled:!0,phase:"main",fn:R7,requiresIfExists:["offset"],data:{_skip:!1}}}));function sd(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ud(e){return[te,ae,le,ne].some((function(t){return e[t]>=0}))}function x7(e){var t=e.state,r=e.name,n=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,c=tt(t,{elementContext:"reference"}),l=tt(t,{altBoundary:!0}),s=sd(c,n),u=sd(l,a,i),f=ud(s),d=ud(u);t.modifiersData[r]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}var fd,dd=C((()=>{ke(),Cn(),o(sd,"getSideOffsets"),o(ud,"isAnySideFullyClipped"),o(x7,"hide"),fd={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:x7}}));function E7(e,t,r){var n=de(e),a=[ne,te].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,c=i[0],l=i[1];return c=c||0,l=(l||0)*a,[ne,ae].indexOf(n)>=0?{x:l,y:c}:{x:c,y:l}}function S7(e){var t=e.state,r=e.options,n=e.name,a=r.offset,i=void 0===a?[0,0]:a,c=To.reduce((function(f,d){return f[d]=E7(d,t.rects,i),f}),{}),l=c[t.placement],s=l.x,u=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=c}var pd,md=C((()=>{It(),ke(),o(E7,"distanceAndSkiddingToXY"),o(S7,"offset"),pd={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:S7}}));function C7(e){var t=e.state,r=e.name;t.modifiersData[r]=Sn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var hd,gd=C((()=>{W0(),o(C7,"popperOffsets"),hd={name:"popperOffsets",enabled:!0,phase:"read",fn:C7,data:{}}}));function q0(e){return"x"===e?"y":"x"}var vd=C((()=>{o(q0,"getAltAxis")}));function M7(e){var t=e.state,r=e.options,n=e.name,a=r.mainAxis,i=void 0===a||a,c=r.altAxis,l=void 0!==c&&c,s=r.boundary,u=r.rootBoundary,f=r.altBoundary,d=r.padding,m=r.tether,v=void 0===m||m,y=r.tetherOffset,p=void 0===y?0:y,h=tt(t,{boundary:s,rootBoundary:u,padding:d,altBoundary:f}),g=de(t.placement),w=qe(t.placement),b=!w,x=er(g),E=q0(x),R=t.modifiersData.popperOffsets,S=t.rects.reference,A=t.rects.popper,M="function"==typeof p?p(Object.assign({},t.rects,{placement:t.placement})):p,L="number"==typeof M?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),P=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,_={x:0,y:0};if(R){if(i){var D,K="y"===x?te:ne,T="y"===x?le:ae,z="y"===x?"height":"width",k=R[x],V=k+h[K],F=k-h[T],j=v?-A[z]/2:0,O=w===ut?S[z]:A[z],G=w===ut?-A[z]:-S[z],Ee=t.elements.arrow,pe=v&&Ee?Qt(Ee):{width:0,height:0},se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ue=se[K],ve=se[T],Se=tr(0,S[z],pe[z]),Ot=b?S[z]/2-j-Se-ue-L.mainAxis:O-Se-ue-L.mainAxis,Yr=b?-S[z]/2+j+Se+ve+L.mainAxis:G+Se+ve+L.mainAxis,Xo=t.elements.arrow&&et(t.elements.arrow),pp=Xo?"y"===x?Xo.clientTop||0:Xo.clientLeft||0:0,xl=null!=(D=P?.[x])?D:0,hp=k+Yr-xl,El=tr(v?Jt(V,k+Ot-xl-pp):V,k,v?Qe(F,hp):F);R[x]=El,_[x]=El-k}if(l){var Sl,gp="x"===x?te:ne,vp="x"===x?le:ae,Bt=R[E],zn="y"===E?"height":"width",Cl=Bt+h[gp],Ml=Bt-h[vp],Zo=-1!==[te,ne].indexOf(g),Al=null!=(Sl=P?.[E])?Sl:0,Ll=Zo?Cl:Bt-S[zn]-A[zn]-Al+L.altAxis,Il=Zo?Bt+S[zn]+A[zn]-Al-L.altAxis:Ml,zl=v&&Zo?Uf(Ll,Bt,Il):tr(v?Ll:Cl,Bt,v?Il:Ml);R[E]=zl,_[E]=zl-Bt}t.modifiersData[n]=_}}var wd,bd=C((()=>{ke(),It(),Po(),vd(),O0(),Ho(),Dr(),Cn(),_r(),B0(),zt(),o(M7,"preventOverflow"),wd={name:"preventOverflow",enabled:!0,phase:"main",fn:M7,requiresIfExists:["offset"]}})),G0=C((()=>{}));function Y0(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}var yd=C((()=>{o(Y0,"getHTMLElementScroll")}));function X0(e){return e!==Z(e)&&ce(e)?Y0(e):rr(e)}var Rd=C((()=>{Bo(),Je(),Oe(),yd(),o(X0,"getNodeScroll")}));function A7(e){var t=e.getBoundingClientRect(),r=ft(t.width)/e.offsetWidth||1,n=ft(t.height)/e.offsetHeight||1;return 1!==r||1!==n}function Z0(e,t,r){void 0===r&&(r=!1);var n=ce(t),a=ce(t)&&A7(t),i=ge(t),c=Ue(e,a,r),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(n||!n&&!r)&&(("body"!==fe(t)||or(i))&&(l=X0(t)),ce(t)?((s=Ue(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=nr(i))),{x:c.left+l.scrollLeft-s.x,y:c.top+l.scrollTop-s.y,width:c.width,height:c.height}}var xd=C((()=>{Nr(),Rd(),Lt(),Oe(),No(),dt(),Fo(),zt(),o(A7,"isElementScaled"),o(Z0,"getCompositeRect")}));function L7(e){var t=new Map,r=new Set,n=[];function a(i){r.add(i.name),[].concat(i.requires||[],i.requiresIfExists||[]).forEach((function(l){if(!r.has(l)){var s=t.get(l);s&&a(s)}})),n.push(i)}return e.forEach((function(i){t.set(i.name,i)})),o(a,"sort"),e.forEach((function(i){r.has(i.name)||a(i)})),n}function K0(e){var t=L7(e);return _f.reduce((function(r,n){return r.concat(t.filter((function(a){return a.phase===n})))}),[])}var Ed=C((()=>{ke(),o(L7,"order"),o(K0,"orderModifiers")}));function J0(e){var t;return function(){return t||(t=new Promise((function(r){Promise.resolve().then((function(){t=void 0,r(e())}))}))),t}}var Sd=C((()=>{o(J0,"debounce")}));function Q0(e){var t=e.reduce((function(r,n){var a=r[n.name];return r[n.name]=a?Object.assign({},a,n,{options:Object.assign({},a.options,n.options),data:Object.assign({},a.data,n.data)}):n,r}),{});return Object.keys(t).map((function(r){return t[r]}))}var Cd=C((()=>{o(Q0,"mergeByName")}));function Ad(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(n){return!(n&&"function"==typeof n.getBoundingClientRect)}))}function Ld(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,a=t.defaultOptions,i=void 0===a?Md:a;return o((function(l,s,u){void 0===u&&(u=i);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Md,i),modifiersData:{},elements:{reference:l,popper:s},attributes:{},styles:{}},d=[],m=!1,v={state:f,setOptions:o((function(g){var w="function"==typeof g?g(f.options):g;p(),f.options=Object.assign({},i,f.options,w),f.scrollParents={reference:We(l)?Tt(l):l.contextElement?Tt(l.contextElement):[],popper:Tt(s)};var b=K0(Q0([].concat(n,f.options.modifiers)));return f.orderedModifiers=b.filter((function(x){return x.enabled})),y(),v.update()}),"setOptions"),forceUpdate:o((function(){if(!m){var g=f.elements,w=g.reference,b=g.popper;if(Ad(w,b)){f.rects={reference:Z0(w,et(b),"fixed"===f.options.strategy),popper:Qt(b)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach((function(L){return f.modifiersData[L.name]=Object.assign({},L.data)}));for(var x=0;x<f.orderedModifiers.length;x++)if(!0!==f.reset){var E=f.orderedModifiers[x],R=E.fn,S=E.options,A=void 0===S?{}:S,M=E.name;"function"==typeof R&&(f=R({state:f,options:A,name:M,instance:v})||f)}else f.reset=!1,x=-1}}}),"forceUpdate"),update:J0((function(){return new Promise((function(h){v.forceUpdate(),h(f)}))})),destroy:o((function(){p(),m=!0}),"destroy")};if(!Ad(l,s))return v;function y(){f.orderedModifiers.forEach((function(h){var g=h.name,w=h.options,b=void 0===w?{}:w,x=h.effect;if("function"==typeof x){var E=x({state:f,name:g,instance:v,options:b}),R=o((function(){}),"noopFn");d.push(E||R)}}))}function p(){d.forEach((function(h){return h()})),d=[]}return v.setOptions(u).then((function(h){!m&&u.onFirstUpdate&&u.onFirstUpdate(h)})),o(y,"runModifierEffects"),o(p,"cleanupModifierEffects"),v}),"createPopper")}var Md,el,Od,k7,tl,Id=C((()=>{xd(),Ho(),$0(),Dr(),Ed(),Sd(),Cd(),Oe(),Md={placement:"bottom",modifiers:[],strategy:"absolute"},o(Ad,"areValidElements"),o(Ld,"popperGenerator")})),zd=C((()=>{Id(),Jf(),gd(),Zf(),Vf(),md(),cd(),bd(),Gf(),dd(),G0(),el=Ld({defaultModifiers:[Kf,hd,Xf,$f,pd,ld,wd,qf,fd]})})),Td=C((()=>{ke(),G0(),zd()})),Pd=H(((hP,Hd)=>{var z7=typeof Element<"u",T7="function"==typeof Map,H7="function"==typeof Set,P7="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function _o(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var r,n,a,i;if(Array.isArray(e)){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!_o(e[n],t[n]))return!1;return!0}if(T7&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;for(i=e.entries();!(n=i.next()).done;)if(!_o(n.value[1],t.get(n.value[0])))return!1;return!0}if(H7&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(n=i.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(P7&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((r=(a=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;if(z7&&e instanceof Element)return!1;for(n=r;0!=n--;)if(("_owner"!==a[n]&&"__v"!==a[n]&&"__o"!==a[n]||!e.$$typeof)&&!_o(e[a[n]],t[a[n]]))return!1;return!0}return e!=e&&t!=t}o(_o,"equal"),Hd.exports=o((function(t,r){try{return _o(t,r)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}),"isEqual")})),Bd=C((()=>{Td(),Od=me(Pd()),Nf(),k7=[],tl=o((function(t,r,n){void 0===n&&(n={});var a=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||k7},c=react__WEBPACK_IMPORTED_MODULE_0__.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=c[0],s=c[1],u=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:o((function(v){var y=v.state,p=Object.keys(y.elements);react_dom__WEBPACK_IMPORTED_MODULE_3__.flushSync((function(){s({styles:L0(p.map((function(h){return[h,y.styles[h]||{}]}))),attributes:L0(p.map((function(h){return[h,y.attributes[h]]})))})}))}),"fn"),requires:["computeStyles"]}}),[]),f=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((function(){var m={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[u,{name:"applyStyles",enabled:!1}])};return(0,Od.default)(a.current,m)?a.current||m:(a.current=m,m)}),[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,u]),d=react__WEBPACK_IMPORTED_MODULE_0__.useRef();return I0((function(){d.current&&d.current.setOptions(f)}),[f]),I0((function(){if(null!=t&&null!=r){var v=(n.createPopper||el)(t,r,f);return d.current=v,function(){v.destroy(),d.current=null}}}),[t,r,n.createPopper]),{state:d.current?d.current.state:null,styles:l.styles,attributes:l.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}}),"usePopper")})),Nd=C((()=>{Bd()}));function _d(e){var t=react__WEBPACK_IMPORTED_MODULE_0__.useRef(e);return t.current=e,react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(){return t.current}),[])}function B7(e){var t=e.initial,r=e.value,n=e.onChange,a=void 0===n?O7:n;if(void 0===t&&void 0===r)throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');var i=react__WEBPACK_IMPORTED_MODULE_0__.useState(t),c=i[0],l=i[1],s=_d(c),u=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(d){var m=s(),v="function"==typeof d?d(m):d;"function"==typeof v.persist&&v.persist(),l(v),"function"==typeof a&&a(v)}),[s,a]),f=void 0!==r;return[f?r:c,f?a:u]}function $d(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),function(){return{width:0,height:0,top:t,right:e,bottom:t,left:e,x:0,y:0,toJSON:o((function(){return null}),"toJSON")}}}function Vd(e,t){var r,n,a;void 0===e&&(e={}),void 0===t&&(t={});var i=Object.keys(Dd).reduce((function(T,z){var k;return W({},T,((k={})[z]=void 0!==T[z]?T[z]:Dd[z],k))}),e),c=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((function(){return[{name:"offset",options:{offset:i.offset}}]}),Array.isArray(i.offset)?i.offset:[]),l=W({},t,{placement:t.placement||i.placement,modifiers:t.modifiers||c}),s=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),u=s[0],f=s[1],d=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),m=d[0],v=d[1],y=B7({initial:i.defaultVisible,value:i.visible,onChange:i.onVisibleChange}),p=y[0],h=y[1],g=react__WEBPACK_IMPORTED_MODULE_0__.useRef();react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){return function(){return clearTimeout(g.current)}}),[]);var w=tl(i.followCursor?Fd:u,m,l),b=w.styles,x=w.attributes,E=ur(w,N7),R=E.update,S=_d({visible:p,triggerRef:u,tooltipRef:m,finalConfig:i}),A=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(T){return Array.isArray(i.trigger)?i.trigger.includes(T):i.trigger===T}),Array.isArray(i.trigger)?i.trigger:[i.trigger]),M=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(){clearTimeout(g.current),g.current=window.setTimeout((function(){return h(!1)}),i.delayHide)}),[i.delayHide,h]),L=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(){clearTimeout(g.current),g.current=window.setTimeout((function(){return h(!0)}),i.delayShow)}),[i.delayShow,h]),P=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(){S().visible?M():L()}),[S,M,L]);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(S().finalConfig.closeOnOutsideClick){var T=o((function(k){var V,F=S(),j=F.tooltipRef,O=F.triggerRef,G=(null==k.composedPath||null==(V=k.composedPath())?void 0:V[0])||k.target;G instanceof Node&&null!=j&&null!=O&&!j.contains(G)&&!O.contains(G)&&M()}),"handleClickOutside");return document.addEventListener("mousedown",T),function(){return document.removeEventListener("mousedown",T)}}}),[S,M]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=u&&A("click"))return u.addEventListener("click",P),function(){return u.removeEventListener("click",P)}}),[u,A,P]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=u&&A("double-click"))return u.addEventListener("dblclick",P),function(){return u.removeEventListener("dblclick",P)}}),[u,A,P]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=u&&A("right-click")){var T=o((function(k){k.preventDefault(),P()}),"preventDefaultAndToggle");return u.addEventListener("contextmenu",T),function(){return u.removeEventListener("contextmenu",T)}}}),[u,A,P]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=u&&A("focus"))return u.addEventListener("focus",L),u.addEventListener("blur",M),function(){u.removeEventListener("focus",L),u.removeEventListener("blur",M)}}),[u,A,L,M]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=u&&A("hover"))return u.addEventListener("mouseenter",L),u.addEventListener("mouseleave",M),function(){u.removeEventListener("mouseenter",L),u.removeEventListener("mouseleave",M)}}),[u,A,L,M]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=m&&A("hover")&&S().finalConfig.interactive)return m.addEventListener("mouseenter",L),m.addEventListener("mouseleave",M),function(){m.removeEventListener("mouseenter",L),m.removeEventListener("mouseleave",M)}}),[m,A,L,M,S]);var _=null==E||null==(r=E.state)||null==(n=r.modifiersData)||null==(a=n.hide)?void 0:a.isReferenceHidden;react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){i.closeOnTriggerHidden&&_&&M()}),[i.closeOnTriggerHidden,M,_]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(i.followCursor&&null!=u)return o(T,"setMousePosition"),u.addEventListener("mousemove",T),function(){return u.removeEventListener("mousemove",T)};function T(z){var k=z.clientX,V=z.clientY;Fd.getBoundingClientRect=$d(k,V),R?.()}}),[i.followCursor,u,R]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(null!=m&&null!=R&&null!=i.mutationObserverOptions){var T=new MutationObserver(R);return T.observe(m,i.mutationObserverOptions),function(){return T.disconnect()}}}),[i.mutationObserverOptions,m,R]);var D=o((function(z){return void 0===z&&(z={}),W({},z,{style:W({},z.style,b.popper)},x.popper,{"data-popper-interactive":i.interactive})}),"getTooltipProps"),K=o((function(z){return void 0===z&&(z={}),W({},z,x.arrow,{style:W({},z.style,b.arrow),"data-popper-arrow":!0})}),"getArrowProps");return W({getArrowProps:K,getTooltipProps:D,setTooltipRef:v,setTriggerRef:f,tooltipRef:m,triggerRef:u,visible:p},E)}var O7,N7,Fd,Dd,Wd,Ge,F7,D7,nl,jd=C((()=>{Bn(),Kr(),Nd(),o(_d,"useGetLatest"),O7=o((function(){}),"noop"),o(B7,"useControlledState"),o($d,"generateBoundingClientRect"),N7=["styles","attributes"],Fd={getBoundingClientRect:$d()},Dd={closeOnOutsideClick:!0,closeOnTriggerHidden:!1,defaultVisible:!1,delayHide:0,delayShow:0,followCursor:!1,interactive:!1,mutationObserverOptions:{attributes:!0,childList:!0,subtree:!0},offset:[0,6],trigger:"hover"},o(Vd,"usePopperTooltip")})),qd=C((()=>{Wd=me(Qr(),1),Ge=(0,Wd.default)(1e3)(((e,t,r,n=0)=>t.split("-")[0]===e?r:n)),F7=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div({position:"absolute",borderStyle:"solid"},(({placement:e})=>{let t=0,r=0;switch(!0){case e.startsWith("left")||e.startsWith("right"):r=8;break;case e.startsWith("top")||e.startsWith("bottom"):t=8}return{transform:`translate3d(${t}px, ${r}px, 0px)`}}),(({theme:e,color:t,placement:r})=>({bottom:`${Ge("top",r,"-8px","auto")}`,top:`${Ge("bottom",r,"-8px","auto")}`,right:`${Ge("left",r,"-8px","auto")}`,left:`${Ge("right",r,"-8px","auto")}`,borderBottomWidth:`${Ge("top",r,"0",8)}px`,borderTopWidth:`${Ge("bottom",r,"0",8)}px`,borderRightWidth:`${Ge("left",r,"0",8)}px`,borderLeftWidth:`${Ge("right",r,"0",8)}px`,borderTopColor:Ge("top",r,e.color[t]||t||"light"===e.base?(0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.a)(e.background.app):e.background.app,"transparent"),borderBottomColor:Ge("bottom",r,e.color[t]||t||"light"===e.base?(0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.a)(e.background.app):e.background.app,"transparent"),borderLeftColor:Ge("left",r,e.color[t]||t||"light"===e.base?(0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.a)(e.background.app):e.background.app,"transparent"),borderRightColor:Ge("right",r,e.color[t]||t||"light"===e.base?(0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.a)(e.background.app):e.background.app,"transparent")}))),D7=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({hidden:e})=>({display:e?"none":"inline-block",zIndex:2147483647,colorScheme:"light dark"})),(({theme:e,color:t,hasChrome:r})=>r?{background:t&&e.color[t]||t||"light"===e.base?(0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.a)(e.background.app):e.background.app,filter:"\n drop-shadow(0px 5px 5px rgba(0,0,0,0.05))\n drop-shadow(0 1px 3px rgba(0,0,0,0.1))\n ",borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1}:{})),(nl=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({placement:e="top",hasChrome:t=!0,children:r,arrowProps:n={},tooltipRef:a,color:i,withArrows:c,...l},s)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(D7,{"data-testid":"tooltip",hasChrome:t,ref:s,...l,color:i},t&&c&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(F7,{placement:e,...n,color:i}),r)))).displayName="Tooltip"})),al={};Zr(al,{WithToolTipState:()=>ol,WithTooltip:()=>ol,WithTooltipPure:()=>Yd});var $o,U7,q7,Yd,ol,Vo=C((()=>{jd(),qd(),({document:$o}=_storybook_global__WEBPACK_IMPORTED_MODULE_5__.global),U7=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div` display: inline-block; cursor: ${e=>"hover"===e.trigger||e.trigger?.includes("hover")?"default":"pointer"}; `,q7=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.g` cursor: ${e=>"hover"===e.trigger||e.trigger?.includes("hover")?"default":"pointer"}; `,Yd=o((({svg:e=!1,trigger:t="click",closeOnOutsideClick:r=!1,placement:n="top",modifiers:a=[{name:"preventOverflow",options:{padding:8}},{name:"offset",options:{offset:[8,8]}},{name:"arrow",options:{padding:8}}],hasChrome:i=!0,defaultVisible:c=!1,withArrows:l,offset:s,tooltip:u,children:f,closeOnTriggerHidden:d,mutationObserverOptions:m,delayHide:v=("hover"===t?200:0),visible:y,interactive:p,delayShow:h=("hover"===t?400:0),strategy:g,followCursor:w,onVisibleChange:b,...x})=>{let E=e?q7:U7,{getArrowProps:R,getTooltipProps:S,setTooltipRef:A,setTriggerRef:M,visible:L,state:P}=Vd({trigger:t,placement:n,defaultVisible:c,delayHide:v,interactive:p,closeOnOutsideClick:r,closeOnTriggerHidden:d,onVisibleChange:b,delayShow:h,followCursor:w,mutationObserverOptions:m,visible:y,offset:s},{modifiers:a,strategy:g}),_=L?react__WEBPACK_IMPORTED_MODULE_0__.createElement(nl,{placement:P?.placement,ref:A,hasChrome:i,arrowProps:R(),withArrows:l,...S()},"function"==typeof u?u({onHide:o((()=>b(!1)),"onHide")}):u):null;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(E,{trigger:t,ref:M,...x},f),L&&react_dom__WEBPACK_IMPORTED_MODULE_3__.createPortal(_,$o.body))}),"WithTooltipPure"),ol=o((({startOpen:e=!1,onVisibleChange:t,...r})=>{let[n,a]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(e),i=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((c=>{t&&!1===t(c)||a(c)}),[t]);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{let c=o((()=>i(!1)),"hide");$o.addEventListener("keydown",c,!1);let l=Array.from($o.getElementsByTagName("iframe")),s=[];return l.forEach((u=>{let f=o((()=>{try{u.contentWindow.document&&(u.contentWindow.document.addEventListener("click",c),s.push((()=>{try{u.contentWindow.document.removeEventListener("click",c)}catch{}})))}catch{}}),"bind");f(),u.addEventListener("load",f),s.push((()=>{u.removeEventListener("load",f)}))})),()=>{$o.removeEventListener("keydown",c),s.forEach((u=>{u()}))}})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Yd,{...r,visible:n,onVisibleChange:i})}),"WithToolTipState")})),J=o((({...e},t)=>{let r=[e.class,e.className];return delete e.class,e.className=["sbdocs",`sbdocs-${t}`,...r].filter(Boolean).join(" "),e}),"nameSpaceClassNames");function Pl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ht(e,t)}function Ol(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch{return"function"==typeof e}}function Ko(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(Ko=o((function(){return!!e}),"_isNativeReflectConstruct"))()}function Bl(e,t,r){if(Ko())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&ht(a,r.prototype),a}function kn(e){var t="function"==typeof Map?new Map:void 0;return kn=o((function(n){if(null===n||!Ol(n))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return Bl(n,arguments,Pn(this).constructor)}return o(a,"Wrapper"),a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),ht(a,n)}),"_wrapNativeSuper"),kn(e)}Kr(),Hl(),Hn(),o(Pl,"_inheritsLoose"),kl(),Hn(),o(Ol,"_isNativeFunction"),o(Ko,"_isNativeReflectConstruct"),Hn(),o(Bl,"_construct"),o(kn,"_wrapNativeSuper");var Sp={1:"Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n",2:"Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n",3:"Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",4:"Couldn't generate valid rgb string from %s, it returned %s.\n\n",5:"Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n",6:"Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\n\n",7:"Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\n\n",8:"Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n",9:"Please provide a number of steps to the modularScale helper.\n\n",10:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",11:'Invalid value passed as base to modularScale, expected number or em string but got "%s"\n\n',12:'Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.\n\n',13:'Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.\n\n',14:'Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',15:'Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',16:"You must provide a template to this method.\n\n",17:"You passed an unsupported selector state to this method.\n\n",18:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",19:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",20:"expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:"fontFace expects a name of a font-family.\n\n",24:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",25:"fontFace expects localFonts to be an array.\n\n",26:"fontFace expects fileFormats to be an array.\n\n",27:"radialGradient requries at least 2 color-stops to properly render.\n\n",28:"Please supply a filename to retinaImage() as the first argument.\n\n",29:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n",32:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n",33:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n",34:"borderRadius expects a radius value as a string or number as the second argument.\n\n",35:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',36:"Property must be a string value.\n\n",37:"Syntax Error at %s.\n\n",38:"Formula contains a function that needs parentheses at %s.\n\n",39:"Formula is missing closing parenthesis at %s.\n\n",40:"Formula has too many closing parentheses at %s.\n\n",41:"All values in a formula must have the same unit or be unitless.\n\n",42:"Please provide a number of steps to the modularScale helper.\n\n",43:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",44:"Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n",45:"Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n",46:"Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n",47:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",48:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",49:"Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",50:"Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n",51:"Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n",52:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",53:"fontFace expects localFonts to be an array.\n\n",54:"fontFace expects fileFormats to be an array.\n\n",55:"fontFace expects a name of a font-family.\n\n",56:"linearGradient requries at least 2 color-stops to properly render.\n\n",57:"radialGradient requries at least 2 color-stops to properly render.\n\n",58:"Please supply a filename to retinaImage() as the first argument.\n\n",59:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:"Property must be a string value.\n\n",62:"borderRadius expects a radius value as a string or number as the second argument.\n\n",63:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',64:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n",65:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\n\n",66:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n",67:"You must provide a template to this method.\n\n",68:"You passed an unsupported selector state to this method.\n\n",69:'Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.\n\n',70:'Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.\n\n',71:'Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.\n\n',72:'Passed invalid base value %s to %s(), please pass a value like "12px" or 12.\n\n',73:"Please provide a valid CSS variable.\n\n",74:"CSS variable not found and no default was provided.\n\n",75:"important requires a valid style object, got a %s instead.\n\n",76:"fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n\n",77:'remToPx expects a value in "rem" but you provided it in "%s".\n\n',78:'base must be set in "px" or "%" but you set it in "%s".\n'};function Cp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i,n=t[0],a=[];for(i=1;i<t.length;i+=1)a.push(t[i]);return a.forEach((function(c){n=n.replace(/%[a-z]/,c)})),n}o(Cp,"format");var Ce=function(e){function t(r){for(var a=arguments.length,i=new Array(a>1?a-1:0),c=1;c<a;c++)i[c-1]=arguments[c];return Tl(e.call(this,Cp.apply(void 0,[Sp[r]].concat(i)))||this)}return Pl(t,e),o(t,"PolishedError"),t}(kn(Error));function Nl(e,t){return e.substr(-t.length)===t}o(Nl,"endsWith");var Mp=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function Fl(e){return"string"!=typeof e?e:e.match(Mp)?parseFloat(e):e}o(Fl,"stripUnit");var _l=o((function(t){return function(r,n){void 0===n&&(n="16px");var a=r,i=n;if("string"==typeof r){if(!Nl(r,"px"))throw new Ce(69,t,r);a=Fl(r)}if("string"==typeof n){if(!Nl(n,"px"))throw new Ce(70,t,n);i=Fl(n)}if("string"==typeof a)throw new Ce(71,r,t);if("string"==typeof i)throw new Ce(72,n,t);return""+a/i+t}}),"pxtoFactory");_l("em"),_l("rem");function Jo(e){return Math.round(255*e)}function Lp(e,t,r){return Jo(e)+","+Jo(t)+","+Jo(r)}function Jr(e,t,r,n){if(void 0===n&&(n=Lp),0===t)return n(r,r,r);var a=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*t,c=i*(1-Math.abs(a%2-1)),l=0,s=0,u=0;a>=0&&a<1?(l=i,s=c):a>=1&&a<2?(l=c,s=i):a>=2&&a<3?(s=i,u=c):a>=3&&a<4?(s=c,u=i):a>=4&&a<5?(l=c,u=i):a>=5&&a<6&&(l=i,u=c);var f=r-i/2;return n(l+f,s+f,u+f)}o(Jo,"colorToInt"),o(Lp,"convertToInt"),o(Jr,"hslToRgb");var Dl={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Ip(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return Dl[t]?"#"+Dl[t]:e}o(Ip,"nameToHex");var zp=/^#[a-fA-F0-9]{6}$/,Tp=/^#[a-fA-F0-9]{8}$/,Hp=/^#[a-fA-F0-9]{3}$/,Pp=/^#[a-fA-F0-9]{4}$/,Qo=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,kp=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Op=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Bp=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function cr(e){if("string"!=typeof e)throw new Ce(3);var t=Ip(e);if(t.match(zp))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(Tp)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(Hp))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Pp)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var a=Qo.exec(t);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var i=kp.exec(t.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var c=Op.exec(t);if(c){var f="rgb("+Jr(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",d=Qo.exec(f);if(!d)throw new Ce(4,t,f);return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10)}}var m=Bp.exec(t.substring(0,50));if(m){var h="rgb("+Jr(parseInt(""+m[1],10),parseInt(""+m[2],10)/100,parseInt(""+m[3],10)/100)+")",g=Qo.exec(h);if(!g)throw new Ce(4,t,h);return{red:parseInt(""+g[1],10),green:parseInt(""+g[2],10),blue:parseInt(""+g[3],10),alpha:parseFloat(""+m[4])>1?parseFloat(""+m[4])/100:parseFloat(""+m[4])}}throw new Ce(5)}function Np(e){var t=e.red/255,r=e.green/255,n=e.blue/255,a=Math.max(t,r,n),i=Math.min(t,r,n),c=(a+i)/2;if(a===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:c,alpha:e.alpha}:{hue:0,saturation:0,lightness:c};var l,s=a-i,u=c>.5?s/(2-a-i):s/(a+i);switch(a){case t:l=(r-n)/s+(r<n?6:0);break;case r:l=(n-t)/s+2;break;default:l=(t-r)/s+4}return l*=60,void 0!==e.alpha?{hue:l,saturation:u,lightness:c,alpha:e.alpha}:{hue:l,saturation:u,lightness:c}}function gt(e){return Np(cr(e))}o(cr,"parseToRgb"),o(Np,"rgbToHsl"),o(gt,"parseToHsl");var ta=o((function(t){return 7===t.length&&t[1]===t[2]&&t[3]===t[4]&&t[5]===t[6]?"#"+t[1]+t[3]+t[5]:t}),"reduceHexValue");function Nt(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function ea(e){return Nt(Math.round(255*e))}function Dp(e,t,r){return ta("#"+ea(e)+ea(t)+ea(r))}function On(e,t,r){return Jr(e,t,r,Dp)}function _p(e,t,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof r)return On(e,t,r);if("object"==typeof e&&void 0===t&&void 0===r)return On(e.hue,e.saturation,e.lightness);throw new Ce(1)}function $p(e,t,r,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof r&&"number"==typeof n)return n>=1?On(e,t,r):"rgba("+Jr(e,t,r)+","+n+")";if("object"==typeof e&&void 0===t&&void 0===r&&void 0===n)return e.alpha>=1?On(e.hue,e.saturation,e.lightness):"rgba("+Jr(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Ce(2)}function ra(e,t,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof r)return ta("#"+Nt(e)+Nt(t)+Nt(r));if("object"==typeof e&&void 0===t&&void 0===r)return ta("#"+Nt(e.red)+Nt(e.green)+Nt(e.blue));throw new Ce(6)}function Ft(e,t,r,n){if("string"==typeof e&&"number"==typeof t){var a=cr(e);return"rgba("+a.red+","+a.green+","+a.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof r&&"number"==typeof n)return n>=1?ra(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if("object"==typeof e&&void 0===t&&void 0===r&&void 0===n)return e.alpha>=1?ra(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new Ce(7)}o(Nt,"numberToHex"),o(ea,"colorToHex"),o(Dp,"convertToHex"),o(On,"hslToHex"),o(_p,"hsl"),o($p,"hsla"),o(ra,"rgb"),o(Ft,"rgba");var Vp=o((function(t){return"number"==typeof t.red&&"number"==typeof t.green&&"number"==typeof t.blue&&("number"!=typeof t.alpha||typeof t.alpha>"u")}),"isRgb"),jp=o((function(t){return"number"==typeof t.red&&"number"==typeof t.green&&"number"==typeof t.blue&&"number"==typeof t.alpha}),"isRgba"),Wp=o((function(t){return"number"==typeof t.hue&&"number"==typeof t.saturation&&"number"==typeof t.lightness&&("number"!=typeof t.alpha||typeof t.alpha>"u")}),"isHsl"),Up=o((function(t){return"number"==typeof t.hue&&"number"==typeof t.saturation&&"number"==typeof t.lightness&&"number"==typeof t.alpha}),"isHsla");function vt(e){if("object"!=typeof e)throw new Ce(8);if(jp(e))return Ft(e);if(Vp(e))return ra(e);if(Up(e))return $p(e);if(Wp(e))return _p(e);throw new Ce(8)}function $l(e,t,r){return o((function(){var a=r.concat(Array.prototype.slice.call(arguments));return a.length>=t?e.apply(this,a):$l(e,t,a)}),"fn")}function He(e){return $l(e,e.length,[])}function qp(e,t){if("transparent"===t)return t;var r=gt(t);return vt(W({},r,{hue:r.hue+parseFloat(e)}))}o(vt,"toColorString"),o($l,"curried"),o(He,"curry"),o(qp,"adjustHue");He(qp);function sr(e,t,r){return Math.max(e,Math.min(t,r))}function Gp(e,t){if("transparent"===t)return t;var r=gt(t);return vt(W({},r,{lightness:sr(0,1,r.lightness-parseFloat(e))}))}o(sr,"guard"),o(Gp,"darken");var wt=He(Gp);function Xp(e,t){if("transparent"===t)return t;var r=gt(t);return vt(W({},r,{saturation:sr(0,1,r.saturation-parseFloat(e))}))}o(Xp,"desaturate");He(Xp);function Zp(e,t){if("transparent"===t)return t;var r=gt(t);return vt(W({},r,{lightness:sr(0,1,r.lightness+parseFloat(e))}))}o(Zp,"lighten");var na=He(Zp);function Jp(e,t,r){if("transparent"===t)return r;if("transparent"===r)return t;if(0===e)return r;var n=cr(t),a=W({},n,{alpha:"number"==typeof n.alpha?n.alpha:1}),i=cr(r),c=W({},i,{alpha:"number"==typeof i.alpha?i.alpha:1}),l=a.alpha-c.alpha,s=2*parseFloat(e)-1,d=((s*l==-1?s:s+l)/(1+s*l)+1)/2,m=1-d;return Ft({red:Math.floor(a.red*d+c.red*m),green:Math.floor(a.green*d+c.green*m),blue:Math.floor(a.blue*d+c.blue*m),alpha:a.alpha*parseFloat(e)+c.alpha*(1-parseFloat(e))})}o(Jp,"mix");var Vl=He(Jp);function e2(e,t){if("transparent"===t)return t;var r=cr(t);return Ft(W({},r,{alpha:sr(0,1,(100*("number"==typeof r.alpha?r.alpha:1)+100*parseFloat(e))/100)}))}o(e2,"opacify");He(e2);function t2(e,t){if("transparent"===t)return t;var r=gt(t);return vt(W({},r,{saturation:sr(0,1,r.saturation+parseFloat(e))}))}o(t2,"saturate");He(t2);function r2(e,t){return"transparent"===t?t:vt(W({},gt(t),{hue:parseFloat(e)}))}o(r2,"setHue");He(r2);function n2(e,t){return"transparent"===t?t:vt(W({},gt(t),{lightness:parseFloat(e)}))}o(n2,"setLightness");He(n2);function o2(e,t){return"transparent"===t?t:vt(W({},gt(t),{saturation:parseFloat(e)}))}o(o2,"setSaturation");He(o2);function a2(e,t){return"transparent"===t?t:Vl(parseFloat(e),"rgb(0, 0, 0)",t)}o(a2,"shade");He(a2);function i2(e,t){return"transparent"===t?t:Vl(parseFloat(e),"rgb(255, 255, 255)",t)}o(i2,"tint");He(i2);function l2(e,t){if("transparent"===t)return t;var r=cr(t);return Ft(W({},r,{alpha:sr(0,1,+(100*("number"==typeof r.alpha?r.alpha:1)-100*parseFloat(e)).toFixed(2)/100)}))}o(l2,"transparentize");var we=He(l2),Ne=o((({theme:e})=>({margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}})),"headerCommon"),at=o((({theme:e})=>({lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:"light"===e.base?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:"light"===e.base?we(.1,e.color.defaultText):we(.3,e.color.defaultText),backgroundColor:"light"===e.base?e.color.lighter:e.color.border})),"codeCommon"),N=o((({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"})),"withReset"),Me={margin:"16px 0"},jl=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div(N),Wl=o((({href:e="",...t})=>{let n=/^\//.test(e)?`./?path=${e}`:e,i=/^#.*/.test(e)?"_self":"_top";return react__WEBPACK_IMPORTED_MODULE_0__.createElement("a",{href:n,target:i,...t})}),"Link"),oa=(0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4)(Wl)(N,(({theme:e})=>({fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}}))),aa=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.blockquote(N,Me,(({theme:e})=>({borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}})));un();var j5=o((e=>"string"==typeof e),"isReactChildString"),yh=/[\n\r]/g,Rh=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.code((({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"})),at),xh=(0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4)(sn)((({theme:e})=>({fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s2-1+"px",lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:"light"===e.base?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}}))),ii=o((({className:e,children:t,...r})=>{let n=(e||"").match(/lang-(\S+)/),a=react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(t);return a.filter(j5).some((c=>c.match(yh)))?react__WEBPACK_IMPORTED_MODULE_0__.createElement(xh,{bordered:!0,copyable:!0,language:n?.[1]??"text",format:!1,...r},t):react__WEBPACK_IMPORTED_MODULE_0__.createElement(Rh,{...r,className:e},a)}),"Code"),li=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.dl(N,Me,{padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}}),ci=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div(N),si=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.h1(N,Ne,(({theme:e})=>({fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold}))),ui=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.h2(N,Ne,(({theme:e})=>({fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`}))),fi=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.h3(N,Ne,(({theme:e})=>({fontSize:`${e.typography.size.m1}px`}))),di=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.h4(N,Ne,(({theme:e})=>({fontSize:`${e.typography.size.s3}px`}))),pi=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.h5(N,Ne,(({theme:e})=>({fontSize:`${e.typography.size.s2}px`}))),mi=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.h6(N,Ne,(({theme:e})=>({fontSize:`${e.typography.size.s2}px`,color:e.color.dark}))),hi=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.hr((({theme:e})=>({border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0}))),gi=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.img({maxWidth:"100%"}),vi=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.li(N,(({theme:e})=>({fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":at({theme:e})}))),wi=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.ol(N,Me,{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},{listStyle:"decimal"}),bi=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.p(N,Me,(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":at({theme:e})}))),yi=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.pre(N,Me,(({theme:e})=>({fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}}))),Ri=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.span(N,(({theme:e})=>({"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}}))),xi=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.title(at),Ei=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.table(N,Me,(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:"dark"===e.base?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}}))),Si=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.ul(N,Me,{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},{listStyle:"disc"}),Ci={h1:o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(si,{...J(e,"h1")})),"h1"),h2:o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(ui,{...J(e,"h2")})),"h2"),h3:o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(fi,{...J(e,"h3")})),"h3"),h4:o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(di,{...J(e,"h4")})),"h4"),h5:o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(pi,{...J(e,"h5")})),"h5"),h6:o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(mi,{...J(e,"h6")})),"h6"),pre:o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(yi,{...J(e,"pre")})),"pre"),a:o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(oa,{...J(e,"a")})),"a"),hr:o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(hi,{...J(e,"hr")})),"hr"),dl:o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(li,{...J(e,"dl")})),"dl"),blockquote:o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(aa,{...J(e,"blockquote")})),"blockquote"),table:o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Ei,{...J(e,"table")})),"table"),img:o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(gi,{...J(e,"img")})),"img"),div:o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(ci,{...J(e,"div")})),"div"),span:o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Ri,{...J(e,"span")})),"span"),li:o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(vi,{...J(e,"li")})),"li"),ul:o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Si,{...J(e,"ul")})),"ul"),ol:o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(wi,{...J(e,"ol")})),"ol"),p:o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(bi,{...J(e,"p")})),"p"),code:o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(ii,{...J(e,"code")})),"code"),tt:o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(xi,{...J(e,"tt")})),"tt"),resetwrapper:o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(jl,{...J(e,"resetwrapper")})),"resetwrapper")},q5=(storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e,compact:t})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"12px",minWidth:20,borderRadius:20,padding:t?"4px 7px":"4px 10px"})),{svg:{height:12,width:12,marginRight:4,marginTop:-2,path:{fill:"currentColor"}}},(({theme:e,status:t})=>{switch(t){case"critical":return{color:e.color.critical,background:e.background.critical};case"negative":return{color:e.color.negativeText,background:e.background.negative,boxShadow:"light"===e.base?`inset 0 0 0 1px ${we(.9,e.color.negativeText)}`:"none"};case"warning":return{color:e.color.warningText,background:e.background.warning,boxShadow:"light"===e.base?`inset 0 0 0 1px ${we(.9,e.color.warningText)}`:"none"};case"neutral":return{color:e.textMutedColor,background:"light"===e.base?e.background.app:e.barBg,boxShadow:`inset 0 0 0 1px ${we(.8,e.textMutedColor)}`};case"positive":return{color:e.color.positiveText,background:e.background.positive,boxShadow:"light"===e.base?`inset 0 0 0 1px ${we(.9,e.color.positiveText)}`:"none"};case"active":return{color:e.color.secondary,background:e.background.hoverable,boxShadow:`inset 0 0 0 1px ${we(.9,e.color.secondary)}`};default:return{}}})),react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color:e="currentColor",size:t=14,...r},n)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M10.139 8.725l1.36-1.323a.568.568 0 00.151-.54.534.534 0 00-.377-.396l-2.705-.708 2.22-4.976a.568.568 0 00-.15-.666.497.497 0 00-.648.008L5.464 4.05l.708.71 2.848-2.47-1.64 3.677.697.697 2.164.567-.81.787.708.708zM2.523 6.6a.566.566 0 00-.177.544.534.534 0 00.382.41l2.782.721-1.494 5.013a.563.563 0 00.217.627.496.496 0 00.629-.06l3.843-3.736-.708-.707-2.51 2.44 1.137-3.814-.685-.685-2.125-.55.844-.731-.71-.71L2.524 6.6zM1.854 1.146a.5.5 0 10-.708.708l11 11a.5.5 0 00.708-.708l-11-11z",fill:e}))))),G5=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color:e="currentColor",size:t=14,...r},n)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M1.854 1.146a.5.5 0 10-.708.708L6.293 7l-5.147 5.146a.5.5 0 00.708.708L7 7.707l5.146 5.147a.5.5 0 00.708-.708L7.707 7l5.147-5.146a.5.5 0 00-.708-.708L7 6.293 1.854 1.146z",fill:e})))),Y5=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((({color:e="currentColor",size:t=14,...r},n)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{width:t,height:t,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:n,...r},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"M11.104 7.354l-5.5 5.5a.5.5 0 01-.708-.708L10.043 7 4.896 1.854a.5.5 0 11.708-.708l5.5 5.5a.5.5 0 010 .708z",fill:e})))),Xh=o((e=>!(0!==e.button||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)),"isPlainLeftClick"),Zh=o(((e,t)=>{Xh(e)&&(e.preventDefault(),t(e))}),"cancelled"),Kh=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.span((({withArrow:e})=>e?{"> svg:last-of-type":{height:"0.7em",width:"0.7em",marginRight:0,marginLeft:"0.25em",bottom:"auto",verticalAlign:"inherit"}}:{}),(({containsIcon:e})=>e?{svg:{height:"1em",width:"1em",verticalAlign:"middle",position:"relative",bottom:0,marginRight:0}}:{})),Jh=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.a((({theme:e})=>({display:"inline-block",transition:"all 150ms ease-out",textDecoration:"none",color:e.color.secondary,"&:hover, &:focus":{cursor:"pointer",color:wt(.07,e.color.secondary),"svg path:not([fill])":{fill:wt(.07,e.color.secondary)}},"&:active":{color:wt(.1,e.color.secondary),"svg path:not([fill])":{fill:wt(.1,e.color.secondary)}},svg:{display:"inline-block",height:"1em",width:"1em",verticalAlign:"text-top",position:"relative",bottom:"-0.125em",marginRight:"0.4em","& path":{fill:e.color.secondary}}})),(({theme:e,secondary:t,tertiary:r})=>{let n;return t&&(n=[e.textMutedColor,e.color.dark,e.color.darker]),r&&(n=[e.color.dark,e.color.darkest,e.textMutedColor]),n?{color:n[0],"svg path:not([fill])":{fill:n[0]},"&:hover":{color:n[1],"svg path:not([fill])":{fill:n[1]}},"&:active":{color:n[2],"svg path:not([fill])":{fill:n[2]}}}:{}}),(({nochrome:e})=>e?{color:"inherit","&:hover, &:active":{color:"inherit",textDecoration:"underline"}}:{}),(({theme:e,inverse:t})=>t?{color:e.color.lightest,":not([fill])":{fill:e.color.lightest},"&:hover":{color:e.color.lighter,"svg path:not([fill])":{fill:e.color.lighter}},"&:active":{color:e.color.light,"svg path:not([fill])":{fill:e.color.light}}}:{}),(({isButton:e})=>e?{border:0,borderRadius:0,background:"none",padding:0,fontSize:"inherit"}:{})),Ai=o((({cancel:e=!0,children:t,onClick:r,withArrow:n=!1,containsIcon:a=!1,className:i,style:c,...l})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Jh,{...l,onClick:r&&e?s=>Zh(s,r):r,className:i},react__WEBPACK_IMPORTED_MODULE_0__.createElement(Kh,{withArrow:n,containsIcon:a},t,n&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(Y5,null)))),"Link"),Ut=(storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e})=>({fontSize:`${e.typography.size.s2}px`,lineHeight:"1.6",h1:{fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},h2:{fontSize:`${e.typography.size.m2}px`,borderBottom:`1px solid ${e.appBorderColor}`},h3:{fontSize:`${e.typography.size.m1}px`},h4:{fontSize:`${e.typography.size.s3}px`},h5:{fontSize:`${e.typography.size.s2}px`},h6:{fontSize:`${e.typography.size.s2}px`,color:e.color.dark},"pre:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"pre pre, pre.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px"},"pre pre code, pre.prismjs code":{color:"inherit",fontSize:"inherit"},"pre code":{margin:0,padding:0,whiteSpace:"pre",border:"none",background:"transparent"},"pre code, pre tt":{backgroundColor:"transparent",border:"none"},"body > *:first-of-type":{marginTop:"0 !important"},"body > *:last-child":{marginBottom:"0 !important"},a:{color:e.color.secondary,textDecoration:"none"},"a.absent":{color:"#cc0000"},"a.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0},"h1, h2, h3, h4, h5, h6":{margin:"20px 0 10px",padding:0,cursor:"text",position:"relative","&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& tt, & code":{fontSize:"inherit"}},"h1:first-of-type + h2":{marginTop:0,paddingTop:0},"p, blockquote, ul, ol, dl, li, table, pre":{margin:"15px 0"},hr:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},"body > h1:first-of-type, body > h2:first-of-type, body > h3:first-of-type, body > h4:first-of-type, body > h5:first-of-type, body > h6:first-of-type":{marginTop:0,paddingTop:0},"body > h1:first-of-type + h2":{marginTop:0,paddingTop:0},"a:first-of-type h1, a:first-of-type h2, a:first-of-type h3, a:first-of-type h4, a:first-of-type h5, a:first-of-type h6":{marginTop:0,paddingTop:0},"h1 p, h2 p, h3 p, h4 p, h5 p, h6 p":{marginTop:0},"li p.first":{display:"inline-block"},"ul, ol":{paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},dl:{padding:0},"dl dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",margin:"0 0 15px",padding:"0 15px","&:first-of-type":{padding:0},"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},blockquote:{borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},table:{padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:"white",margin:0,padding:0,"& th":{fontWeight:"bold",border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"& td":{border:`1px solid ${e.appBorderColor}`,textAlign:"left",margin:0,padding:"6px 13px"},"&:nth-of-type(2n)":{backgroundColor:e.color.lighter},"& th :first-of-type, & td :first-of-type":{marginTop:0},"& th :last-child, & td :last-child":{marginBottom:0}}},img:{maxWidth:"100%"},"span.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"span.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"span.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"span.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"span.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}},"code, tt":{margin:"0 2px",padding:"0 5px",whiteSpace:"nowrap",border:`1px solid ${e.color.mediumlight}`,backgroundColor:e.color.lighter,borderRadius:3,color:"dark"===e.base?e.color.darkest:e.color.dark}}))),[]),xr=null,ng=(0,react__WEBPACK_IMPORTED_MODULE_0__.lazy)((async()=>{let{SyntaxHighlighter:e}=await Promise.resolve().then((()=>(un(),ai)));return Ut.length>0&&(Ut.forEach((t=>{e.registerLanguage(...t)})),Ut=[]),null===xr&&(xr=e),{default:o((t=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(e,{...t})),"default")}})),og=(0,react__WEBPACK_IMPORTED_MODULE_0__.lazy)((async()=>{let[{SyntaxHighlighter:e},{formatter:t}]=await Promise.all([Promise.resolve().then((()=>(un(),ai))),Promise.resolve().then((()=>(eu(),Q5)))]);return Ut.length>0&&(Ut.forEach((r=>{e.registerLanguage(...r)})),Ut=[]),null===xr&&(xr=e),{default:o((r=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(e,{...r,formatter:t})),"default")}})),ru=o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null)},!1!==e.format?react__WEBPACK_IMPORTED_MODULE_0__.createElement(og,{...e}):react__WEBPACK_IMPORTED_MODULE_0__.createElement(ng,{...e}))),"SyntaxHighlighter");ru.registerLanguage=(...e)=>{null===xr?Ut.push(e):xr.registerLanguage(...e)},un(),Xa();var Ro={};function Er(e,t,{checkForDefaultPrevented:r=!0}={}){return o((function(a){if(e?.(a),!1===r||!a.defaultPrevented)return t?.(a)}),"handleEvent")}function nu(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function Li(...e){return t=>{let r=!1,n=e.map((a=>{let i=nu(a,t);return!r&&"function"==typeof i&&(r=!0),i}));if(r)return()=>{for(let a=0;a<n.length;a++){let i=n[a];"function"==typeof i?i():nu(e[a],null)}}}}function Xe(...e){return react__WEBPACK_IMPORTED_MODULE_0__.useCallback(Li(...e),e)}function iu(e,t){let r=react__WEBPACK_IMPORTED_MODULE_0__.createContext(t),n=o((i=>{let{children:c,...l}=i,s=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>l),Object.values(l));return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(r.Provider,{value:s,children:c})}),"Provider");function a(i){let c=react__WEBPACK_IMPORTED_MODULE_0__.useContext(r);if(c)return c;if(void 0!==t)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",o(a,"useContext2"),[n,a]}function lu(e,t=[]){let r=[];function n(i,c){let l=react__WEBPACK_IMPORTED_MODULE_0__.createContext(c),s=r.length;r=[...r,c];let u=o((d=>{let{scope:m,children:v,...y}=d,p=m?.[e]?.[s]||l,h=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>y),Object.values(y));return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(p.Provider,{value:h,children:v})}),"Provider");function f(d,m){let v=m?.[e]?.[s]||l,y=react__WEBPACK_IMPORTED_MODULE_0__.useContext(v);if(y)return y;if(void 0!==c)return c;throw new Error(`\`${d}\` must be used within \`${i}\``)}return u.displayName=i+"Provider",o(f,"useContext2"),[u,f]}o(n,"createContext3");let a=o((()=>{let i=r.map((c=>react__WEBPACK_IMPORTED_MODULE_0__.createContext(c)));return o((function(l){let s=l?.[e]||i;return react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>({[`__scope${e}`]:{...l,[e]:s}})),[l,s])}),"useScope")}),"createScope");return a.scopeName=e,[n,ag(a,...t)]}function ag(...e){let t=e[0];if(1===e.length)return t;let r=o((()=>{let n=e.map((a=>({useScope:a(),scopeName:a.scopeName})));return o((function(i){let c=n.reduce(((l,{useScope:s,scopeName:u})=>({...l,...s(i)[`__scope${u}`]})),{});return react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>({[`__scope${t.scopeName}`]:c})),[c])}),"useComposedScopes")}),"createScope");return r.scopeName=t.scopeName,r}Zr(Ro,{Close:()=>h0,Content:()=>d0,Description:()=>m0,Dialog:()=>Ji,DialogClose:()=>l0,DialogContent:()=>n0,DialogDescription:()=>i0,DialogOverlay:()=>r0,DialogPortal:()=>t0,DialogTitle:()=>a0,DialogTrigger:()=>Qi,Overlay:()=>f0,Portal:()=>u0,Root:()=>s0,Title:()=>p0,Trigger:()=>Rv,WarningProvider:()=>vv,createDialogScope:()=>uv}),o(Er,"composeEventHandlers"),o(nu,"setRef"),o(Li,"composeRefs"),o(Xe,"useComposedRefs"),o(iu,"createContext2"),o(lu,"createContextScope"),o(ag,"composeContextScopes");var ct=globalThis?.document?react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:()=>{},ig=(react__WEBPACK_IMPORTED_MODULE_0___namespace_cache||(react__WEBPACK_IMPORTED_MODULE_0___namespace_cache=__webpack_require__.t(react__WEBPACK_IMPORTED_MODULE_0__,2)))[" useId ".trim().toString()]||(()=>{}),lg=0;function ao(e){let[t,r]=react__WEBPACK_IMPORTED_MODULE_0__.useState(ig());return ct((()=>{e||r((n=>n??String(lg++)))}),[e]),e||(t?`radix-${t}`:"")}o(ao,"useId");var cg=(react__WEBPACK_IMPORTED_MODULE_0___namespace_cache||(react__WEBPACK_IMPORTED_MODULE_0___namespace_cache=__webpack_require__.t(react__WEBPACK_IMPORTED_MODULE_0__,2)))[" useInsertionEffect ".trim().toString()]||ct;function su({prop:e,defaultProp:t,onChange:r=o((()=>{}),"onChange"),caller:n}){let[a,i,c]=sg({defaultProp:t,onChange:r}),l=void 0!==e,s=l?e:a;{let f=react__WEBPACK_IMPORTED_MODULE_0__.useRef(void 0!==e);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{let d=f.current;d!==l&&console.warn(`${n} is changing from ${d?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=l}),[l,n])}return[s,react__WEBPACK_IMPORTED_MODULE_0__.useCallback((f=>{if(l){let d=ug(f)?f(e):f;d!==e&&c.current?.(d)}else i(f)}),[l,e,i,c])]}function sg({defaultProp:e,onChange:t}){let[r,n]=react__WEBPACK_IMPORTED_MODULE_0__.useState(e),a=react__WEBPACK_IMPORTED_MODULE_0__.useRef(r),i=react__WEBPACK_IMPORTED_MODULE_0__.useRef(t);return cg((()=>{i.current=t}),[t]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{a.current!==r&&(i.current?.(r),a.current=r)}),[r,a]),[r,n,i]}function ug(e){return"function"==typeof e}o(su,"useControllableState"),o(sg,"useUncontrolledState"),o(ug,"isFunction");Symbol("RADIX:SYNC_STATE");function lo(e,t,{checkForDefaultPrevented:r=!0}={}){return o((function(a){if(e?.(a),!1===r||!a.defaultPrevented)return t?.(a)}),"handleEvent")}function fn(e){let t=fg(e),r=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((n,a)=>{let{children:i,...c}=n,l=react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(i),s=l.find(pg);if(s){let u=s.props.children,f=l.map((d=>d===s?react__WEBPACK_IMPORTED_MODULE_0__.Children.count(u)>1?react__WEBPACK_IMPORTED_MODULE_0__.Children.only(null):react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(u)?u.props.children:null:d));return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(t,{...c,ref:a,children:react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(u)?react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(u,void 0,f):null})}return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(t,{...c,ref:a,children:i})}));return r.displayName=`${e}.Slot`,r}o(lo,"composeEventHandlers"),o(fn,"createSlot");var fu=fn("Slot");function fg(e){let t=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((r,n)=>{let{children:a,...i}=r;if(react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(a)){let c=hg(a),l=mg(i,a.props);return a.type!==react__WEBPACK_IMPORTED_MODULE_0__.Fragment&&(l.ref=n?Li(n,c):c),react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(a,l)}return react__WEBPACK_IMPORTED_MODULE_0__.Children.count(a)>1?react__WEBPACK_IMPORTED_MODULE_0__.Children.only(null):null}));return t.displayName=`${e}.SlotClone`,t}o(fg,"createSlotClone");var dg=Symbol("radix.slottable");function pg(e){return react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===dg}function mg(e,t){let r={...t};for(let n in t){let a=e[n],i=t[n];/^on[A-Z]/.test(n)?a&&i?r[n]=(...l)=>{i(...l),a(...l)}:a&&(r[n]=a):"style"===n?r[n]={...a,...i}:"className"===n&&(r[n]=[a,i].filter(Boolean).join(" "))}return{...e,...r}}function hg(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}o(pg,"isSlottable"),o(mg,"mergeProps"),o(hg,"getElementRef");var Pe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce(((e,t)=>{let r=fn(`Primitive.${t}`),n=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((a,i)=>{let{asChild:c,...l}=a,s=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(s,{...l,ref:i})}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function mu(e,t){e&&react_dom__WEBPACK_IMPORTED_MODULE_3__.flushSync((()=>e.dispatchEvent(t)))}function St(e){let t=react__WEBPACK_IMPORTED_MODULE_0__.useRef(e);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{t.current=e})),react__WEBPACK_IMPORTED_MODULE_0__.useMemo((()=>(...r)=>t.current?.(...r)),[])}function gu(e,t=globalThis?.document){let r=St(e);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{let n=o((a=>{"Escape"===a.key&&r(a)}),"handleKeyDown");return t.addEventListener("keydown",n,{capture:!0}),()=>t.removeEventListener("keydown",n,{capture:!0})}),[r,t])}o(mu,"dispatchDiscreteCustomEvent"),o(St,"useCallbackRef"),o(gu,"useEscapeKeydown");var vu,zi="dismissableLayer.update",yu=react__WEBPACK_IMPORTED_MODULE_0__.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ti=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:c,onDismiss:l,...s}=e,u=react__WEBPACK_IMPORTED_MODULE_0__.useContext(yu),[f,d]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),m=f?.ownerDocument??globalThis?.document,[,v]=react__WEBPACK_IMPORTED_MODULE_0__.useState({}),y=Xe(t,(S=>d(S))),p=Array.from(u.layers),[h]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),g=p.indexOf(h),w=f?p.indexOf(f):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=w>=g,E=Eg((S=>{let A=S.target,M=[...u.branches].some((L=>L.contains(A)));!x||M||(a?.(S),c?.(S),S.defaultPrevented||l?.())}),m),R=Sg((S=>{let A=S.target;[...u.branches].some((L=>L.contains(A)))||(i?.(S),c?.(S),S.defaultPrevented||l?.())}),m);return gu((S=>{w===u.layers.size-1&&(n?.(S),!S.defaultPrevented&&l&&(S.preventDefault(),l()))}),m),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{if(f)return r&&(0===u.layersWithOutsidePointerEventsDisabled.size&&(vu=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),wu(),()=>{r&&1===u.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=vu)}}),[f,m,r,u]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),wu())}),[f,u]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{let S=o((()=>v({})),"handleUpdate");return document.addEventListener(zi,S),()=>document.removeEventListener(zi,S)}),[]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Pe.div,{...s,ref:y,style:{pointerEvents:b?x?"auto":"none":void 0,...e.style},onFocusCapture:lo(e.onFocusCapture,R.onFocusCapture),onBlurCapture:lo(e.onBlurCapture,R.onBlurCapture),onPointerDownCapture:lo(e.onPointerDownCapture,E.onPointerDownCapture)})}));Ti.displayName="DismissableLayer";function Eg(e,t=globalThis?.document){let r=St(e),n=react__WEBPACK_IMPORTED_MODULE_0__.useRef(!1),a=react__WEBPACK_IMPORTED_MODULE_0__.useRef((()=>{}));return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{let i=o((l=>{if(l.target&&!n.current){let u=o((function(){Ru("dismissableLayer.pointerDownOutside",r,f,{discrete:!0})}),"handleAndDispatchPointerDownOutsideEvent2");let f={originalEvent:l};"touch"===l.pointerType?(t.removeEventListener("click",a.current),a.current=u,t.addEventListener("click",a.current,{once:!0})):u()}else t.removeEventListener("click",a.current);n.current=!1}),"handlePointerDown"),c=window.setTimeout((()=>{t.addEventListener("pointerdown",i)}),0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",i),t.removeEventListener("click",a.current)}}),[t,r]),{onPointerDownCapture:o((()=>n.current=!0),"onPointerDownCapture")}}function Sg(e,t=globalThis?.document){let r=St(e),n=react__WEBPACK_IMPORTED_MODULE_0__.useRef(!1);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{let a=o((i=>{i.target&&!n.current&&Ru("dismissableLayer.focusOutside",r,{originalEvent:i},{discrete:!1})}),"handleFocus");return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)}),[t,r]),{onFocusCapture:o((()=>n.current=!0),"onFocusCapture"),onBlurCapture:o((()=>n.current=!1),"onBlurCapture")}}function wu(){let e=new CustomEvent(zi);document.dispatchEvent(e)}function Ru(e,t,r,{discrete:n}){let a=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),n?mu(a,i):a.dispatchEvent(i)}react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let r=react__WEBPACK_IMPORTED_MODULE_0__.useContext(yu),n=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),a=Xe(t,n);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{let i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}}),[r.branches]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Pe.div,{...e,ref:a})})).displayName="DismissableLayerBranch",o(Eg,"usePointerDownOutside"),o(Sg,"useFocusOutside"),o(wu,"dispatchUpdate"),o(Ru,"handleAndDispatchCustomEvent");var Hi="focusScope.autoFocusOnMount",Pi="focusScope.autoFocusOnUnmount",xu={bubbles:!1,cancelable:!0},ki=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...c}=e,[l,s]=react__WEBPACK_IMPORTED_MODULE_0__.useState(null),u=St(a),f=St(i),d=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),m=Xe(t,(p=>s(p))),v=react__WEBPACK_IMPORTED_MODULE_0__.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{if(n){let w=o((function(R){if(v.paused||!l)return;let S=R.target;l.contains(S)?d.current=S:Ct(d.current,{select:!0})}),"handleFocusIn2"),b=o((function(R){if(v.paused||!l)return;let S=R.relatedTarget;null!==S&&(l.contains(S)||Ct(d.current,{select:!0}))}),"handleFocusOut2"),x=o((function(R){if(document.activeElement===document.body)for(let A of R)A.removedNodes.length>0&&Ct(l)}),"handleMutations2");document.addEventListener("focusin",w),document.addEventListener("focusout",b);let E=new MutationObserver(x);return l&&E.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",b),E.disconnect()}}}),[n,l,v.paused]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{if(l){Su.add(v);let p=document.activeElement;if(!l.contains(p)){let g=new CustomEvent(Hi,xu);l.addEventListener(Hi,u),l.dispatchEvent(g),g.defaultPrevented||(Ag(Hg(Mu(l)),{select:!0}),document.activeElement===p&&Ct(l))}return()=>{l.removeEventListener(Hi,u),setTimeout((()=>{let g=new CustomEvent(Pi,xu);l.addEventListener(Pi,f),l.dispatchEvent(g),g.defaultPrevented||Ct(p??document.body,{select:!0}),l.removeEventListener(Pi,f),Su.remove(v)}),0)}}}),[l,u,f,v]);let y=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((p=>{if(!r&&!n||v.paused)return;let h="Tab"===p.key&&!p.altKey&&!p.ctrlKey&&!p.metaKey,g=document.activeElement;if(h&&g){let w=p.currentTarget,[b,x]=Lg(w);b&&x?p.shiftKey||g!==x?p.shiftKey&&g===b&&(p.preventDefault(),r&&Ct(x,{select:!0})):(p.preventDefault(),r&&Ct(b,{select:!0})):g===w&&p.preventDefault()}}),[r,n,v.paused]);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Pe.div,{tabIndex:-1,...c,ref:m,onKeyDown:y})}));function Ag(e,{select:t=!1}={}){let r=document.activeElement;for(let n of e)if(Ct(n,{select:t}),document.activeElement!==r)return}function Lg(e){let t=Mu(e);return[Eu(t,e),Eu(t.reverse(),e)]}function Mu(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o((n=>{let a="INPUT"===n.tagName&&"hidden"===n.type;return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),"acceptNode")});for(;r.nextNode();)t.push(r.currentNode);return t}function Eu(e,t){for(let r of e)if(!Ig(r,{upTo:t}))return r}function Ig(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function zg(e){return e instanceof HTMLInputElement&&"select"in e}function Ct(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&zg(e)&&t&&e.select()}}ki.displayName="FocusScope",o(Ag,"focusFirst"),o(Lg,"getTabbableEdges"),o(Mu,"getTabbableCandidates"),o(Eu,"findVisible"),o(Ig,"isHidden"),o(zg,"isSelectableInput"),o(Ct,"focus");var Su=Tg();function Tg(){let e=[];return{add(t){let r=e[0];t!==r&&r?.pause(),e=Cu(e,t),e.unshift(t)},remove(t){e=Cu(e,t),e[0]?.resume()}}}function Cu(e,t){let r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}function Hg(e){return e.filter((t=>"A"!==t.tagName))}o(Tg,"createFocusScopesStack"),o(Cu,"arrayRemove"),o(Hg,"removeLinks");var Oi=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{container:r,...n}=e,[a,i]=react__WEBPACK_IMPORTED_MODULE_0__.useState(!1);ct((()=>i(!0)),[]);let c=r||a&&globalThis?.document?.body;return c?react_dom__WEBPACK_IMPORTED_MODULE_3__.createPortal((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Pe.div,{...n,ref:t}),c):null}));function Bg(e,t){return react__WEBPACK_IMPORTED_MODULE_0__.useReducer(((r,n)=>t[r][n]??r),e)}Oi.displayName="Portal",o(Bg,"useStateMachine");var dn=o((e=>{let{present:t,children:r}=e,n=Ng(t),a="function"==typeof r?r({present:n.isPresent}):react__WEBPACK_IMPORTED_MODULE_0__.Children.only(r),i=Xe(n.ref,Fg(a));return"function"==typeof r||n.isPresent?react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(a,{ref:i}):null}),"Presence");function Ng(e){let[t,r]=react__WEBPACK_IMPORTED_MODULE_0__.useState(),n=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),a=react__WEBPACK_IMPORTED_MODULE_0__.useRef(e),i=react__WEBPACK_IMPORTED_MODULE_0__.useRef("none"),c=e?"mounted":"unmounted",[l,s]=Bg(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{let u=so(n.current);i.current="mounted"===l?u:"none"}),[l]),ct((()=>{let u=n.current,f=a.current;if(f!==e){let m=i.current,v=so(u);s(e?"MOUNT":"none"===v||"none"===u?.display?"UNMOUNT":f&&m!==v?"ANIMATION_OUT":"UNMOUNT"),a.current=e}}),[e,s]),ct((()=>{if(t){let u,f=t.ownerDocument.defaultView??window,d=o((v=>{let p=so(n.current).includes(v.animationName);if(v.target===t&&p&&(s("ANIMATION_END"),!a.current)){let h=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout((()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=h)}))}}),"handleAnimationEnd"),m=o((v=>{v.target===t&&(i.current=so(n.current))}),"handleAnimationStart");return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}s("ANIMATION_END")}),[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:react__WEBPACK_IMPORTED_MODULE_0__.useCallback((u=>{n.current=u?getComputedStyle(u):null,r(u)}),[])}}function so(e){return e?.animationName||"none"}function Fg(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}dn.displayName="Presence",o(Ng,"usePresence"),o(so,"getAnimationName"),o(Fg,"getElementRef");var Bi=0;function zu(){react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Lu()),document.body.insertAdjacentElement("beforeend",e[1]??Lu()),Bi++,()=>{1===Bi&&document.querySelectorAll("[data-radix-focus-guard]").forEach((t=>t.remove())),Bi--}}),[])}function Lu(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}o(zu,"useFocusGuards"),o(Lu,"createFocusGuard");var ze=o((function(){return ze=Object.assign||o((function(t){for(var r,n=1,a=arguments.length;n<a;n++)for(var i in r=arguments[n])Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);return t}),"__assign"),ze.apply(this,arguments)}),"__assign");function uo(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}function Tu(e,t,r){if(r||2===arguments.length)for(var i,n=0,a=t.length;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}o(uo,"__rest"),o(Tu,"__spreadArray");var qt="right-scroll-bar-position",Gt="width-before-scroll-bar";function fo(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}function Hu(e,t){var r=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)((function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var a=r.value;a!==n&&(r.value=n,r.callback(n,a))}}}}))[0];return r.callback=t,r.facade}o(fo,"assignRef"),o(Hu,"useCallbackRef");var _g=typeof window<"u"?react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_0__.useEffect,Pu=new WeakMap;function Di(e,t){var r=Hu(t||null,(function(n){return e.forEach((function(a){return fo(a,n)}))}));return _g((function(){var n=Pu.get(r);if(n){var a=new Set(n),i=new Set(e),c=r.current;a.forEach((function(l){i.has(l)||fo(l,null)})),i.forEach((function(l){a.has(l)||fo(l,c)}))}Pu.set(r,e)}),[e]),r}function $g(e){return e}function Vg(e,t){void 0===t&&(t=$g);var r=[],n=!1;return{read:o((function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e}),"read"),useMedium:o((function(i){var c=t(i,n);return r.push(c),function(){r=r.filter((function(l){return l!==c}))}}),"useMedium"),assignSyncMedium:o((function(i){for(n=!0;r.length;){var c=r;r=[],c.forEach(i)}r={push:o((function(l){return i(l)}),"push"),filter:o((function(){return r}),"filter")}}),"assignSyncMedium"),assignMedium:o((function(i){n=!0;var c=[];if(r.length){var l=r;r=[],l.forEach(i),c=r}var s=o((function(){var f=c;c=[],f.forEach(i)}),"executeQueue"),u=o((function(){return Promise.resolve().then(s)}),"cycle");u(),r={push:o((function(f){c.push(f),u()}),"push"),filter:o((function(f){return c=c.filter(f),r}),"filter")}}),"assignMedium")}}function _i(e){void 0===e&&(e={});var t=Vg(null);return t.options=ze({async:!0,ssr:!1},e),t}o(Di,"useMergeRefs"),o($g,"ItoI"),o(Vg,"innerCreateMedium"),o(_i,"createSidecarMedium");var Ou=o((function(e){var t=e.sideCar,r=uo(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return react__WEBPACK_IMPORTED_MODULE_0__.createElement(n,ze({},r))}),"SideCar");function $i(e,t){return e.useMedium(t),Ou}Ou.isSideCarExport=!0,o($i,"exportSidecar");var mo=_i(),Vi=o((function(){}),"nothing"),pn=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(e,t){var r=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),n=react__WEBPACK_IMPORTED_MODULE_0__.useState({onScrollCapture:Vi,onWheelCapture:Vi,onTouchMoveCapture:Vi}),a=n[0],i=n[1],c=e.forwardProps,l=e.children,s=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,m=e.sideCar,v=e.noIsolation,y=e.inert,p=e.allowPinchZoom,h=e.as,g=void 0===h?"div":h,w=e.gapMode,b=uo(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=m,E=Di([r,t]),R=ze(ze({},b),a);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,f&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(x,{sideCar:mo,removeScrollBar:u,shards:d,noIsolation:v,inert:y,setCallbacks:i,allowPinchZoom:!!p,lockRef:r,gapMode:w}),c?react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(react__WEBPACK_IMPORTED_MODULE_0__.Children.only(l),ze(ze({},R),{ref:E})):react__WEBPACK_IMPORTED_MODULE_0__.createElement(g,ze({},R,{className:s,ref:E}),l))}));pn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},pn.classNames={fullWidth:Gt,zeroRight:qt};var Nu=o((function(){return __webpack_require__.nc}),"getNonce");function jg(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Nu();return t&&e.setAttribute("nonce",t),e}function Wg(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ug(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}o(jg,"makeStyleTag"),o(Wg,"injectStyles"),o(Ug,"insertStyleTag");var ji=o((function(){var e=0,t=null;return{add:o((function(r){0==e&&(t=jg())&&(Wg(t,r),Ug(t)),e++}),"add"),remove:o((function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}),"remove")}}),"stylesheetSingleton"),Wi=o((function(){var e=ji();return function(t,r){react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&r])}}),"styleHookSingleton"),mn=o((function(){var e=Wi();return o((function(r){var n=r.styles,a=r.dynamic;return e(n,a),null}),"Sheet")}),"styleSingleton"),qg={left:0,top:0,right:0,gap:0},Ui=o((function(e){return parseInt(e||"",10)||0}),"parse"),Gg=o((function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[Ui(r),Ui(n),Ui(a)]}),"getOffset"),qi=o((function(e){if(void 0===e&&(e="margin"),typeof window>"u")return qg;var t=Gg(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}}),"getGapWidth"),Yg=mn(),Cr="data-scroll-locked",Xg=o((function(e,t,r,n){var a=e.left,i=e.top,c=e.right,l=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(l,"px ").concat(n,";\n }\n body[").concat(Cr,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(c,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(l,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(l,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(qt," {\n right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(Gt," {\n margin-right: ").concat(l,"px ").concat(n,";\n }\n \n .").concat(qt," .").concat(qt," {\n right: 0 ").concat(n,";\n }\n \n .").concat(Gt," .").concat(Gt," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(Cr,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n }\n")}),"getStyles"),Du=o((function(){var e=parseInt(document.body.getAttribute(Cr)||"0",10);return isFinite(e)?e:0}),"getCurrentUseCounter"),Zg=o((function(){react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){return document.body.setAttribute(Cr,(Du()+1).toString()),function(){var e=Du()-1;e<=0?document.body.removeAttribute(Cr):document.body.setAttribute(Cr,e.toString())}}),[])}),"useLockAttribute"),Gi=o((function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=void 0===n?"margin":n;Zg();var i=react__WEBPACK_IMPORTED_MODULE_0__.useMemo((function(){return qi(a)}),[a]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Yg,{styles:Xg(i,!t,a,r?"":"!important")})}),"RemoveScrollBar"),Yi=!1;if(typeof window<"u")try{hn=Object.defineProperty({},"passive",{get:o((function(){return Yi=!0,!0}),"get")}),window.addEventListener("test",hn,hn),window.removeEventListener("test",hn,hn)}catch{Yi=!1}var hn,Yt=!!Yi&&{passive:!1},Kg=o((function(e){return"TEXTAREA"===e.tagName}),"alwaysContainsScroll"),_u=o((function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!Kg(e)&&"visible"===r[t])}),"elementCanBeScrolled"),Jg=o((function(e){return _u(e,"overflowY")}),"elementCouldBeVScrolled"),Qg=o((function(e){return _u(e,"overflowX")}),"elementCouldBeHScrolled"),Xi=o((function(e,t){var r=t.ownerDocument,n=t;do{if(typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host),$u(e,n)){var i=Vu(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1}),"locationCouldBeScrolled"),ev=o((function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}),"getVScrollVariables"),tv=o((function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}),"getHScrollVariables"),$u=o((function(e,t){return"v"===e?Jg(t):Qg(t)}),"elementCouldBeScrolled"),Vu=o((function(e,t){return"v"===e?ev(t):tv(t)}),"getScrollVariables"),rv=o((function(e,t){return"h"===e&&"rtl"===t?-1:1}),"getDirectionFactor"),ju=o((function(e,t,r,n,a){var i=rv(e,window.getComputedStyle(t).direction),c=i*n,l=r.target,s=t.contains(l),u=!1,f=c>0,d=0,m=0;do{var v=Vu(e,l),y=v[0],g=v[1]-v[2]-i*y;(y||g)&&$u(e,l)&&(d+=g,m+=y),l=l instanceof ShadowRoot?l.host:l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return(f&&(a&&Math.abs(d)<1||!a&&c>d)||!f&&(a&&Math.abs(m)<1||!a&&-c>m))&&(u=!0),u}),"handleScroll"),ho=o((function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]}),"getTouchXY"),Wu=o((function(e){return[e.deltaX,e.deltaY]}),"getDeltaXY"),Uu=o((function(e){return e&&"current"in e?e.current:e}),"extractRef"),nv=o((function(e,t){return e[0]===t[0]&&e[1]===t[1]}),"deltaCompare"),ov=o((function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")}),"generateStyle"),av=0,Ar=[];function qu(e){var t=react__WEBPACK_IMPORTED_MODULE_0__.useRef([]),r=react__WEBPACK_IMPORTED_MODULE_0__.useRef([0,0]),n=react__WEBPACK_IMPORTED_MODULE_0__.useRef(),a=react__WEBPACK_IMPORTED_MODULE_0__.useState(av++)[0],i=react__WEBPACK_IMPORTED_MODULE_0__.useState(mn)[0],c=react__WEBPACK_IMPORTED_MODULE_0__.useRef(e);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){c.current=e}),[e]),react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var p=Tu([e.lockRef.current],(e.shards||[]).map(Uu),!0).filter(Boolean);return p.forEach((function(h){return h.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),p.forEach((function(h){return h.classList.remove("allow-interactivity-".concat(a))}))}}}),[e.inert,e.lockRef.current,e.shards]);var l=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(p,h){if("touches"in p&&2===p.touches.length||"wheel"===p.type&&p.ctrlKey)return!c.current.allowPinchZoom;var E,g=ho(p),w=r.current,b="deltaX"in p?p.deltaX:w[0]-g[0],x="deltaY"in p?p.deltaY:w[1]-g[1],R=p.target,S=Math.abs(b)>Math.abs(x)?"h":"v";if("touches"in p&&"h"===S&&"range"===R.type)return!1;var A=Xi(S,R);if(!A)return!0;if(A?E=S:(E="v"===S?"h":"v",A=Xi(S,R)),!A)return!1;if(!n.current&&"changedTouches"in p&&(b||x)&&(n.current=E),!E)return!0;var M=n.current||E;return ju(M,h,p,"h"===M?b:x,!0)}),[]),s=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(p){var h=p;if(Ar.length&&Ar[Ar.length-1]===i){var g="deltaY"in h?Wu(h):ho(h),w=t.current.filter((function(E){return E.name===h.type&&(E.target===h.target||h.target===E.shadowParent)&&nv(E.delta,g)}))[0];if(w&&w.should)return void(h.cancelable&&h.preventDefault());if(!w){var b=(c.current.shards||[]).map(Uu).filter(Boolean).filter((function(E){return E.contains(h.target)}));(b.length>0?l(h,b[0]):!c.current.noIsolation)&&h.cancelable&&h.preventDefault()}}}),[]),u=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(p,h,g,w){var b={name:p,delta:h,target:g,should:w,shadowParent:iv(g)};t.current.push(b),setTimeout((function(){t.current=t.current.filter((function(x){return x!==b}))}),1)}),[]),f=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(p){r.current=ho(p),n.current=void 0}),[]),d=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(p){u(p.type,Wu(p),p.target,l(p,e.lockRef.current))}),[]),m=react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(p){u(p.type,ho(p),p.target,l(p,e.lockRef.current))}),[]);react__WEBPACK_IMPORTED_MODULE_0__.useEffect((function(){return Ar.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:m}),document.addEventListener("wheel",s,Yt),document.addEventListener("touchmove",s,Yt),document.addEventListener("touchstart",f,Yt),function(){Ar=Ar.filter((function(p){return p!==i})),document.removeEventListener("wheel",s,Yt),document.removeEventListener("touchmove",s,Yt),document.removeEventListener("touchstart",f,Yt)}}),[]);var v=e.removeScrollBar,y=e.inert;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,y?react__WEBPACK_IMPORTED_MODULE_0__.createElement(i,{styles:ov(a)}):null,v?react__WEBPACK_IMPORTED_MODULE_0__.createElement(Gi,{gapMode:e.gapMode}):null)}function iv(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}o(qu,"RemoveScrollSideCar"),o(iv,"getOutermostShadowParent");var Gu=$i(mo,qu),Yu=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef((function(e,t){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(pn,ze({},e,{ref:t,sideCar:Gu}))}));Yu.classNames=pn.classNames;var Zi=Yu,lv=o((function(e){return typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}),"getDefaultParent"),Lr=new WeakMap,vo=new WeakMap,wo={},Ki=0,Xu=o((function(e){return e&&(e.host||Xu(e.parentNode))}),"unwrapHost"),cv=o((function(e,t){return t.map((function(r){if(e.contains(r))return r;var n=Xu(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)})).filter((function(r){return!!r}))}),"correctTargets"),sv=o((function(e,t,r,n){var a=cv(t,Array.isArray(e)?e:[e]);wo[r]||(wo[r]=new WeakMap);var i=wo[r],c=[],l=new Set,s=new Set(a),u=o((function(d){!d||l.has(d)||(l.add(d),u(d.parentNode))}),"keep");a.forEach(u);var f=o((function(d){!d||s.has(d)||Array.prototype.forEach.call(d.children,(function(m){if(l.has(m))f(m);else try{var v=m.getAttribute(n),y=null!==v&&"false"!==v,p=(Lr.get(m)||0)+1,h=(i.get(m)||0)+1;Lr.set(m,p),i.set(m,h),c.push(m),1===p&&y&&vo.set(m,!0),1===h&&m.setAttribute(r,"true"),y||m.setAttribute(n,"true")}catch(g){console.error("aria-hidden: cannot operate on ",m,g)}}))}),"deep");return f(t),l.clear(),Ki++,function(){c.forEach((function(d){var m=Lr.get(d)-1,v=i.get(d)-1;Lr.set(d,m),i.set(d,v),m||(vo.has(d)||d.removeAttribute(n),vo.delete(d)),v||d.removeAttribute(r)})),--Ki||(Lr=new WeakMap,Lr=new WeakMap,vo=new WeakMap,wo={})}}),"applyAttributeToOthers"),Zu=o((function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),a=t||lv(e);return a?(n.push.apply(n,Array.from(a.querySelectorAll("[aria-live]"))),sv(n,a,r,"aria-hidden")):function(){return null}}),"hideOthers"),yo="Dialog",[Qu,uv]=lu(yo),[fv,Ze]=Qu(yo),Ji=o((e=>{let{__scopeDialog:t,children:r,open:n,defaultOpen:a,onOpenChange:i,modal:c=!0}=e,l=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),s=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),[u,f]=su({prop:n,defaultProp:a??!1,onChange:i,caller:yo});return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(fv,{scope:t,triggerRef:l,contentRef:s,contentId:ao(),titleId:ao(),descriptionId:ao(),open:u,onOpenChange:f,onOpenToggle:react__WEBPACK_IMPORTED_MODULE_0__.useCallback((()=>f((d=>!d))),[f]),modal:c,children:r})}),"Dialog");Ji.displayName=yo;var ef="DialogTrigger",Qi=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{__scopeDialog:r,...n}=e,a=Ze(ef,r),i=Xe(t,a.triggerRef);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Pe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":c0(a.open),...n,ref:i,onClick:Er(e.onClick,a.onOpenToggle)})}));Qi.displayName=ef;var e0="DialogPortal",[dv,tf]=Qu(e0,{forceMount:void 0}),t0=o((e=>{let{__scopeDialog:t,forceMount:r,children:n,container:a}=e,i=Ze(e0,t);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(dv,{scope:t,forceMount:r,children:react__WEBPACK_IMPORTED_MODULE_0__.Children.map(n,(c=>(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(dn,{present:r||i.open,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Oi,{asChild:!0,container:a,children:c})})))})}),"DialogPortal");t0.displayName=e0;var bo="DialogOverlay",r0=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let r=tf(bo,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,i=Ze(bo,e.__scopeDialog);return i.modal?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(dn,{present:n||i.open,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(mv,{...a,ref:t})}):null}));r0.displayName=bo;var pv=fn("DialogOverlay.RemoveScroll"),mv=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{__scopeDialog:r,...n}=e,a=Ze(bo,r);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Zi,{as:pv,allowPinchZoom:!0,shards:[a.contentRef],children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Pe.div,{"data-state":c0(a.open),...n,ref:t,style:{pointerEvents:"auto",...n.style}})})})),Xt="DialogContent",n0=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let r=tf(Xt,e.__scopeDialog),{forceMount:n=r.forceMount,...a}=e,i=Ze(Xt,e.__scopeDialog);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(dn,{present:n||i.open,children:i.modal?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(hv,{...a,ref:t}):(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(gv,{...a,ref:t})})}));n0.displayName=Xt;var hv=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let r=Ze(Xt,e.__scopeDialog),n=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),a=Xe(t,r.contentRef,n);return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{let i=n.current;if(i)return Zu(i)}),[]),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(rf,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Er(e.onCloseAutoFocus,(i=>{i.preventDefault(),r.triggerRef.current?.focus()})),onPointerDownOutside:Er(e.onPointerDownOutside,(i=>{let c=i.detail.originalEvent,l=0===c.button&&!0===c.ctrlKey;(2===c.button||l)&&i.preventDefault()})),onFocusOutside:Er(e.onFocusOutside,(i=>i.preventDefault()))})})),gv=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let r=Ze(Xt,e.__scopeDialog),n=react__WEBPACK_IMPORTED_MODULE_0__.useRef(!1),a=react__WEBPACK_IMPORTED_MODULE_0__.useRef(!1);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(rf,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o((i=>{e.onCloseAutoFocus?.(i),i.defaultPrevented||(n.current||r.triggerRef.current?.focus(),i.preventDefault()),n.current=!1,a.current=!1}),"onCloseAutoFocus"),onInteractOutside:o((i=>{e.onInteractOutside?.(i),i.defaultPrevented||(n.current=!0,"pointerdown"===i.detail.originalEvent.type&&(a.current=!0));let c=i.target;r.triggerRef.current?.contains(c)&&i.preventDefault(),"focusin"===i.detail.originalEvent.type&&a.current&&i.preventDefault()}),"onInteractOutside")})})),rf=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:i,...c}=e,l=Ze(Xt,r),s=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),u=Xe(t,s);return zu(),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(ki,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:i,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Ti,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":c0(l.open),...c,ref:u,onDismiss:o((()=>l.onOpenChange(!1)),"onDismiss")})}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(wv,{titleId:l.titleId}),(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(yv,{contentRef:s,descriptionId:l.descriptionId})]})]})})),o0="DialogTitle",a0=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{__scopeDialog:r,...n}=e,a=Ze(o0,r);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Pe.h2,{id:a.titleId,...n,ref:t})}));a0.displayName=o0;var nf="DialogDescription",i0=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{__scopeDialog:r,...n}=e,a=Ze(nf,r);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Pe.p,{id:a.descriptionId,...n,ref:t})}));i0.displayName=nf;var of="DialogClose",l0=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(((e,t)=>{let{__scopeDialog:r,...n}=e,a=Ze(of,r);return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(Pe.button,{type:"button",...n,ref:t,onClick:Er(e.onClick,(()=>a.onOpenChange(!1)))})}));function c0(e){return e?"open":"closed"}l0.displayName=of,o(c0,"getState");var af="DialogTitleWarning",[vv,lf]=iu(af,{contentName:Xt,titleName:o0,docsSlug:"dialog"}),wv=o((({titleId:e})=>{let t=lf(af),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{e&&(document.getElementById(e)||console.error(r))}),[r,e]),null}),"TitleWarning"),yv=o((({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${lf("DialogDescriptionWarning").contentName}}.`;return react__WEBPACK_IMPORTED_MODULE_0__.useEffect((()=>{let a=e.current?.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(n))}),[n,e,t]),null}),"DescriptionWarning"),s0=Ji,Rv=Qi,u0=t0,f0=r0,d0=n0,p0=a0,m0=i0,h0=l0,b0={};Zr(b0,{Actions:()=>Nv,CloseButton:()=>sf,Col:()=>ff,Container:()=>w0,Content:()=>Pv,Description:()=>Bv,Error:()=>Fv,ErrorWrapper:()=>df,Header:()=>kv,Overlay:()=>v0,Row:()=>uf,Title:()=>Ov});var Ir=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((({asChild:e=!1,animation:t="none",size:r="small",variant:n="outline",padding:a="medium",disabled:i=!1,active:c=!1,onClick:l,...s},u)=>{let f="button";e&&(f=fu);let[d,m]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1),v=o((y=>{l&&l(y),"none"!==t&&m(!0)}),"handleClick");return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{let y=setTimeout((()=>{d&&m(!1)}),1e3);return()=>clearTimeout(y)}),[d]),react__WEBPACK_IMPORTED_MODULE_0__.createElement(Lv,{as:f,ref:u,variant:n,size:r,padding:a,disabled:i,active:c,animating:d,animation:t,onClick:v,...s})}));Ir.displayName="Button";var Lv=(0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4)("button",{shouldForwardProp:o((e=>(0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.EG)(e)),"shouldForwardProp")})((({theme:e,variant:t,size:r,disabled:n,active:a,animating:i,animation:c="none",padding:l})=>({border:0,cursor:n?"not-allowed":"pointer",display:"inline-flex",gap:"6px",alignItems:"center",justifyContent:"center",overflow:"hidden",padding:"none"===l?0:"small"===l&&"small"===r?"0 7px":"small"===l&&"medium"===r?"0 9px":"small"===r?"0 10px":"medium"===r?"0 12px":0,height:"small"===r?"28px":"32px",position:"relative",textAlign:"center",textDecoration:"none",transitionProperty:"background, box-shadow",transitionDuration:"150ms",transitionTimingFunction:"ease-out",verticalAlign:"top",whiteSpace:"nowrap",userSelect:"none",opacity:n?.5:1,margin:0,fontSize:`${e.typography.size.s1}px`,fontWeight:e.typography.weight.bold,lineHeight:"1",background:"solid"===t?e.color.secondary:"outline"===t?e.button.background:"ghost"===t&&a?e.background.hoverable:"transparent",..."ghost"===t?{".sb-bar &":{background:a?we(.9,e.barTextColor):"transparent",color:a?e.barSelectedColor:e.barTextColor,"&:hover":{color:e.barHoverColor,background:we(.86,e.barHoverColor)},"&:active":{color:e.barSelectedColor,background:we(.9,e.barSelectedColor)},"&:focus":{boxShadow:`${Ft(e.barHoverColor,1)} 0 0 0 1px inset`,outline:"none"}}}:{},color:"solid"===t?e.color.lightest:"outline"===t?e.input.color:"ghost"===t&&a?e.color.secondary:"ghost"===t?e.color.mediumdark:e.input.color,boxShadow:"outline"===t?`${e.button.border} 0 0 0 1px inset`:"none",borderRadius:e.input.borderRadius,flexShrink:0,"&:hover":{color:"ghost"===t?e.color.secondary:void 0,background:(()=>{let s=e.color.secondary;return"solid"===t&&(s=e.color.secondary),"outline"===t&&(s=e.button.background),"ghost"===t?we(.86,e.color.secondary):"light"===e.base?wt(.02,s):na(.03,s)})()},"&:active":{color:"ghost"===t?e.color.secondary:void 0,background:(()=>{let s=e.color.secondary;return"solid"===t&&(s=e.color.secondary),"outline"===t&&(s=e.button.background),"ghost"===t?e.background.hoverable:"light"===e.base?wt(.02,s):na(.03,s)})()},"&:focus":{boxShadow:`${Ft(e.color.secondary,1)} 0 0 0 1px inset`,outline:"none"},"> svg":{animation:i&&"none"!==c?`${e.animation[c]} 1000ms ease-out`:""}}))),xo=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((({padding:e="small",variant:t="ghost",...r},n)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(Ir,{padding:e,variant:t,ref:n,...r})));xo.displayName="IconButton";var cf=(0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.i7)({from:{opacity:0},to:{opacity:1}}),Tv=(0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.i7)({from:{maxHeight:0},to:{}}),Hv=(0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.i7)({from:{opacity:0,transform:"translate(-50%, -50%) scale(0.9)"},to:{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),v0=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div({backdropFilter:"blur(24px)",position:"fixed",inset:0,width:"100%",height:"100%",zIndex:10,animation:`${cf} 200ms`}),w0=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e,width:t,height:r})=>({backgroundColor:e.background.bar,borderRadius:6,boxShadow:"0px 4px 67px 0px #00000040",position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:t??740,height:r??"auto",maxWidth:"calc(100% - 40px)",maxHeight:"85vh",overflow:"auto",zIndex:11,animation:`${Hv} 200ms`,"&:focus-visible":{outline:"none"}}))),sf=o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(h0,{asChild:!0},react__WEBPACK_IMPORTED_MODULE_0__.createElement(xo,{"aria-label":"Close",...e},react__WEBPACK_IMPORTED_MODULE_0__.createElement(G5,null)))),"CloseButton"),Pv=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div({display:"flex",flexDirection:"column",margin:16,gap:16}),uf=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div({display:"flex",justifyContent:"space-between",gap:16}),ff=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div({display:"flex",flexDirection:"column",gap:4}),kv=o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(uf,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(ff,{...e}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(sf,null))),"Header"),Ov=(0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4)(p0)((({theme:e})=>({margin:0,fontSize:e.typography.size.s3,fontWeight:e.typography.weight.bold}))),Bv=(0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4)(m0)((({theme:e})=>({position:"relative",zIndex:1,margin:0,fontSize:e.typography.size.s2}))),Nv=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div({display:"flex",flexDirection:"row-reverse",gap:8}),df=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e})=>({maxHeight:100,overflow:"auto",animation:`${Tv} 300ms, ${cf} 300ms`,backgroundColor:e.background.critical,color:e.color.lightest,fontSize:e.typography.size.s2,"& > div":{position:"relative",padding:"8px 16px"}}))),Fv=o((({children:e,...t})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(df,{...t},react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null,e))),"Error");function Dv({children:e,width:t,height:r,onEscapeKeyDown:n,onInteractOutside:a=o((u=>u.preventDefault()),"onInteractOutside"),className:i,container:c,portalSelector:l,...s}){let u=c??(l?document.querySelector(l):null)??document.body;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(s0,{...s},react__WEBPACK_IMPORTED_MODULE_0__.createElement(u0,{container:u},react__WEBPACK_IMPORTED_MODULE_0__.createElement(f0,{asChild:!0},react__WEBPACK_IMPORTED_MODULE_0__.createElement(v0,null)),react__WEBPACK_IMPORTED_MODULE_0__.createElement(d0,{asChild:!0,onInteractOutside:a,onEscapeKeyDown:n},react__WEBPACK_IMPORTED_MODULE_0__.createElement(w0,{className:i,width:t,height:r},e))))}o(Dv,"BaseModal");Object.assign(Dv,b0,{Dialog:Ro}),storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e,col:t,row:r=1})=>t?{display:"inline-block",verticalAlign:"inherit","& > *":{marginLeft:t*e.layoutMargin,verticalAlign:"inherit"},[`& > *:first-child${storybook_theming__WEBPACK_IMPORTED_MODULE_1__.v_}`]:{marginLeft:0}}:{"& > *":{marginTop:r*e.layoutMargin},[`& > *:first-child${storybook_theming__WEBPACK_IMPORTED_MODULE_1__.v_}`]:{marginTop:0}}),(({theme:e,outer:t,col:r,row:n})=>{switch(!0){case!(!t||!r):return{marginLeft:t*e.layoutMargin,marginRight:t*e.layoutMargin};case!(!t||!n):return{marginTop:t*e.layoutMargin,marginBottom:t*e.layoutMargin};default:return{}}})),storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e})=>({fontWeight:e.typography.weight.bold}))),storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div(),storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e})=>({padding:30,textAlign:"center",color:e.color.defaultText,fontSize:e.typography.size.s2-1})));function Qv(e,t){var r=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),n=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);n.current=t;var a=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((function(){i()}));var i=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((function(){var c=a.current,l=n.current,s=c||(l?l instanceof Element?l:l.current:null);r.current&&r.current.element===s&&r.current.subscriber===e||(r.current&&r.current.cleanup&&r.current.cleanup(),r.current={element:s,subscriber:e,cleanup:s?e(s):void 0})}),[e]);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((function(){return function(){r.current&&r.current.cleanup&&(r.current.cleanup(),r.current=null)}}),[]),(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((function(c){a.current=c,i()}),[i])}function mf(e,t,r){return e[t]?e[t][0]?e[t][0][r]:e[t][r]:"contentBoxSize"===t?e.contentRect["inlineSize"===r?"width":"height"]:void 0}function Eo(e){void 0===e&&(e={});var t=e.onResize,r=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(void 0);r.current=t;var n=e.round||Math.round,a=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(),i=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)({width:void 0,height:void 0}),c=i[0],l=i[1],s=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(!1);(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((function(){return s.current=!1,function(){s.current=!0}}),[]);var u=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)({width:void 0,height:void 0}),f=Qv((0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((function(d){return(!a.current||a.current.box!==e.box||a.current.round!==n)&&(a.current={box:e.box,round:n,instance:new ResizeObserver((function(m){var v=m[0],y="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize",p=mf(v,y,"inlineSize"),h=mf(v,y,"blockSize"),g=p?n(p):void 0,w=h?n(h):void 0;if(u.current.width!==g||u.current.height!==w){var b={width:g,height:w};u.current.width=g,u.current.height=w,r.current?r.current(b):s.current||l(b)}}))}),a.current.instance.observe(d,{box:e.box}),function(){a.current&&a.current.instance.unobserve(d)}}),[e.box,n]),e.ref);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((function(){return{ref:f,width:c.width,height:c.height}}),[f,c.width,c.height])}ro(),o(Qv,"useResolvedElement"),o(mf,"extractSize"),o(Eo,"useResizeObserver");var a3=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({centered:e=!1,scale:t=1,elementHeight:r})=>({height:r||"auto",transformOrigin:e?"center top":"left top",transform:`scale(${1/t})`})));function gf({centered:e,scale:t,children:r}){let n=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null),[a,i]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(0),c=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((({height:l})=>{l&&i(l/t)}),[t]);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{n.current&&i(n.current.getBoundingClientRect().height)}),[t]),Eo({ref:n,onResize:c}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(a3,{centered:e,scale:t,elementHeight:a},react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{ref:n,className:"innerZoomElementWrapper"},r))}o(gf,"ZoomElement");var S0=class S0 extends react__WEBPACK_IMPORTED_MODULE_0__.Component{constructor(){super(...arguments),this.iframe=null}componentDidMount(){let{iFrameRef:r}=this.props;this.iframe=r.current}shouldComponentUpdate(r){let{scale:n,active:a}=this.props;return n!==r.scale&&this.setIframeInnerZoom(r.scale),a!==r.active&&this.iframe.setAttribute("data-is-storybook",r.active?"true":"false"),r.children.props.src!==this.props.children.props.src}setIframeInnerZoom(r){try{Object.assign(this.iframe.contentDocument.body.style,{width:100*r+"%",height:100*r+"%",transform:`scale(${1/r})`,transformOrigin:"top left"})}catch{this.setIframeZoom(r)}}setIframeZoom(r){Object.assign(this.iframe.style,{width:100*r+"%",height:100*r+"%",transform:`scale(${1/r})`,transformOrigin:"top left"})}render(){let{children:r}=this.props;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,r)}};o(S0,"ZoomIFrame");var l3={Element:gf,IFrame:S0},{document:s3}=_storybook_global__WEBPACK_IMPORTED_MODULE_5__.global,u3=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.strong((({theme:e})=>({color:e.color.orange}))),f3=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.strong((({theme:e})=>({color:e.color.ancillary,textDecoration:"underline"}))),wf=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.em((({theme:e})=>({color:e.textMutedColor}))),d3=/(Error): (.*)\n/,p3=/at (?:(.*) )?\(?(.+)\)?/,m3=/([^@]+)?(?:\/<)?@(.+)?/,h3=/([^@]+)?@(.+)?/,g3=o((({error:e})=>{if(!e)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,"This error has no stack or message");if(!e.stack)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,e.message||"This error has no stack or message");let t=e.stack.toString();t&&e.message&&!t.includes(e.message)&&(t=`Error: ${e.message}\n\n${t}`);let r=t.match(d3);if(!r)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,t);let[,n,a]=r,i=t.split(/\n/).slice(1),[,...c]=i.map((l=>{let s=l.match(p3)||l.match(m3)||l.match(h3);return s?{name:(s[1]||"").replace("/<",""),location:s[2].replace(s3.location.origin,"")}:null})).filter(Boolean);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,n),": ",react__WEBPACK_IMPORTED_MODULE_0__.createElement(u3,null,a),react__WEBPACK_IMPORTED_MODULE_0__.createElement("br",null),c.map(((l,s)=>l?.name?react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,{key:s}," ","at ",react__WEBPACK_IMPORTED_MODULE_0__.createElement(f3,null,l.name)," (",react__WEBPACK_IMPORTED_MODULE_0__.createElement(wf,null,l.location),")",react__WEBPACK_IMPORTED_MODULE_0__.createElement("br",null)):react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,{key:s}," ","at ",react__WEBPACK_IMPORTED_MODULE_0__.createElement(wf,null,l?.location),react__WEBPACK_IMPORTED_MODULE_0__.createElement("br",null)))))}),"ErrorFormatter"),b3=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.input({appearance:"none",display:"grid",placeContent:"center",width:14,height:14,flexShrink:0,margin:0,border:`1px solid ${storybook_theming__WEBPACK_IMPORTED_MODULE_1__.yW.border}`,borderRadius:2,backgroundColor:"white",transition:"background-color 0.1s","&:enabled":{cursor:"pointer"},"&:disabled":{backgroundColor:storybook_theming__WEBPACK_IMPORTED_MODULE_1__.yW.medium},"&:disabled:checked, &:disabled:indeterminate":{backgroundColor:storybook_theming__WEBPACK_IMPORTED_MODULE_1__.yW.mediumdark},"&:checked, &:indeterminate":{backgroundColor:storybook_theming__WEBPACK_IMPORTED_MODULE_1__.yW.secondary},"&:checked::before":{content:'""',width:14,height:14,background:"no-repeat center url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='m3 7 2.5 2.5L11 4'/%3E%3C/svg%3E\")"},"&:indeterminate::before":{content:'""',width:8,height:2,background:"white"},"&:enabled:focus-visible":{outline:`1px solid ${storybook_theming__WEBPACK_IMPORTED_MODULE_1__.yW.secondary}`,outlineOffset:1}}),bf=o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(b3,{...e,type:"checkbox"})),"Checkbox"),y3=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.label((({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,margin:"0 15px",padding:"8px 0","&:last-child":{marginBottom:"3rem"}}))),R3=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.span((({theme:e})=>({minWidth:100,fontWeight:e.typography.weight.bold,marginRight:15,display:"flex",justifyContent:"flex-start",alignItems:"center",lineHeight:"16px"}))),Rf=o((({label:e,children:t,...r})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(y3,{...r},e?react__WEBPACK_IMPORTED_MODULE_0__.createElement(R3,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,e)):null,t)),"Field"),Hr=o((({size:e})=>{switch(e){case"100%":return{width:"100%"};case"flex":return{flex:1};default:return{display:"inline"}}}),"sizes"),Co=o((({align:e})=>{switch(e){case"end":return{textAlign:"right"};case"center":return{textAlign:"center"};default:return{textAlign:"left"}}}),"alignment"),Mo=o((({valid:e,theme:t})=>{switch(e){case"valid":return{boxShadow:`${t.color.positive} 0 0 0 1px inset !important`};case"error":return{boxShadow:`${t.color.negative} 0 0 0 1px inset !important`};case"warn":return{boxShadow:`${t.color.warning} 0 0 0 1px inset`};default:return{}}}),"validation"),x3={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},Ao=o((({theme:e})=>({...x3,transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",background:e.input.background,boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",padding:"6px 10px",boxSizing:"border-box",height:32,'&[type="file"]':{height:"auto"},"&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none","@media (forced-colors: active)":{outline:"1px solid highlight"}},"&[disabled]":{cursor:"not-allowed",opacity:.5},"&:-webkit-autofill":{WebkitBoxShadow:`0 0 0 3em ${e.color.lightest} inset`},"&::placeholder":{color:e.textMutedColor,opacity:1}})),"styles"),xf=Object.assign((0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4)((0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(o((function({size:t,valid:r,align:n,...a},i){return react__WEBPACK_IMPORTED_MODULE_0__.createElement("input",{...a,ref:i})}),"Input")))(Ao,Hr,Co,Mo,{minHeight:32}),{displayName:"Input"}),L3=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.input({appearance:"none",display:"grid",placeContent:"center",width:16,height:16,flexShrink:0,margin:-1,border:`1px solid ${storybook_theming__WEBPACK_IMPORTED_MODULE_1__.yW.border}`,borderRadius:8,backgroundColor:"white",transition:"background-color 0.1s","&:enabled":{cursor:"pointer"},"&:disabled":{backgroundColor:storybook_theming__WEBPACK_IMPORTED_MODULE_1__.yW.medium},"&:disabled:checked":{backgroundColor:storybook_theming__WEBPACK_IMPORTED_MODULE_1__.yW.mediumdark},"&:checked":{backgroundColor:storybook_theming__WEBPACK_IMPORTED_MODULE_1__.yW.secondary,boxShadow:"inset 0 0 0 2px white"},"&:enabled:focus-visible":{outline:`1px solid ${storybook_theming__WEBPACK_IMPORTED_MODULE_1__.yW.secondary}`,outlineOffset:1}}),Ef=o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(L3,{...e,type:"radio"})),"Radio");function Sf(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}o(Sf,"isTestEnvironment");var T3=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.select(Hr,(({theme:e})=>({appearance:"none",background:"calc(100% - 12px) center no-repeat url(\"data:image/svg+xml,%3Csvg width='8' height='4' viewBox='0 0 8 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.30303 0.196815C1.13566 0.0294472 0.864304 0.0294472 0.696937 0.196815C0.529569 0.364182 0.529569 0.635539 0.696937 0.802906L3.69694 3.80291C3.8643 3.97027 4.13566 3.97027 4.30303 3.80291L7.30303 0.802906C7.4704 0.635539 7.4704 0.364182 7.30303 0.196815C7.13566 0.0294473 6.8643 0.0294473 6.69694 0.196815L3.99998 2.89377L1.30303 0.196815Z' fill='%2373828C'/%3E%3C/svg%3E%0A\")",backgroundSize:10,padding:"6px 30px 6px 10px","@supports (appearance: base-select)":{appearance:"base-select",background:e.input.background,padding:"6px 10px"},transition:"box-shadow 200ms ease-out, opacity 200ms ease-out",color:e.input.color||"inherit",boxShadow:`${e.input.border} 0 0 0 1px inset`,borderRadius:e.input.borderRadius,fontSize:e.typography.size.s2-1,lineHeight:"20px",boxSizing:"border-box",border:"none",cursor:"pointer","& > button":{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",gap:8,"& > svg":{width:14,height:14,color:e.color.mediumdark}},"&:has(option:not([hidden]):checked)":{color:e.color.defaultText},"&:focus-visible, &:focus-within":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset`},"&::picker-icon":{display:"none"},"&::picker(select)":{appearance:"base-select",border:"1px solid #e4e4e7",padding:4,marginTop:4,background:"light"===e.base?(0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.a)(e.background.app):e.background.app,filter:"\n drop-shadow(0 5px 5px rgba(0,0,0,0.05))\n drop-shadow(0 0 3px rgba(0,0,0,0.1))\n ",borderRadius:e.appBorderRadius+2,fontSize:e.typography.size.s1,cursor:"default",transition:"opacity 100ms ease-in-out, transform 100ms ease-in-out",transformOrigin:"top",transform:"translateY(0)",opacity:1,"@starting-style":{transform:"translateY(-0.25rem) scale(0.95)",opacity:0}},"& optgroup label":{display:"block",padding:"3px 6px"},"& option":{lineHeight:"18px",padding:"7px 10px",borderRadius:4,outline:"none",cursor:"pointer",color:e.color.defaultText,"&::checkmark":{display:"none"},"&:hover, &:focus-visible":{backgroundColor:e.background.hoverable},"&:checked":{color:e.color.secondary,fontWeight:e.typography.weight.bold},"&:disabled":{backgroundColor:"transparent",cursor:"default",color:e.color.defaultText}}}))),Cf=o((({children:e,...t})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(T3,{...t},!Sf()&&react__WEBPACK_IMPORTED_MODULE_0__.createElement("button",null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("selectedcontent",null),react__WEBPACK_IMPORTED_MODULE_0__.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},react__WEBPACK_IMPORTED_MODULE_0__.createElement("path",{d:"m6 9 6 6 6-6"}))),react__WEBPACK_IMPORTED_MODULE_0__.createElement("optgroup",null,e))),"Select");Kr(),Bn();var Mf=react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect,Af=o((function(t){var r=react__WEBPACK_IMPORTED_MODULE_0__.useRef(t);return Mf((function(){r.current=t})),r}),"useLatest"),If=o((function(t,r){"function"!=typeof t?t.current=r:t(r)}),"updateRef"),zf=o((function(t,r){var n=react__WEBPACK_IMPORTED_MODULE_0__.useRef();return react__WEBPACK_IMPORTED_MODULE_0__.useCallback((function(a){t.current=a,n.current&&If(n.current,null),n.current=r,r&&If(r,a)}),[r])}),"useComposedRef"),Tf={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0",display:"block"},Hf=o((function(t){Object.keys(Tf).forEach((function(r){t.style.setProperty(r,Tf[r],"important")}))}),"forceHiddenStyles"),Re=null,Pf=o((function(t,r){var n=t.scrollHeight;return"border-box"===r.sizingStyle.boxSizing?n+r.borderSize:n-r.paddingSize}),"getHeight");function O3(e,t,r,n){void 0===r&&(r=1),void 0===n&&(n=1/0),Re||((Re=document.createElement("textarea")).setAttribute("tabindex","-1"),Re.setAttribute("aria-hidden","true"),Hf(Re)),null===Re.parentNode&&document.body.appendChild(Re);var a=e.paddingSize,i=e.borderSize,c=e.sizingStyle,l=c.boxSizing;Object.keys(c).forEach((function(m){var v=m;Re.style[v]=c[v]})),Hf(Re),Re.value=t;var s=Pf(Re,e);Re.value=t,s=Pf(Re,e),Re.value="x";var u=Re.scrollHeight-a,f=u*r;"border-box"===l&&(f=f+a+i),s=Math.max(f,s);var d=u*n;return"border-box"===l&&(d=d+a+i),[s=Math.min(d,s),u]}o(O3,"calculateNodeHeight");var kf=o((function(){}),"noop"),B3=o((function(t,r){return t.reduce((function(n,a){return n[a]=r[a],n}),{})}),"pick"),N3=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak","wordSpacing","scrollbarGutter"],F3=!!document.documentElement.currentStyle,_3=o((function(t){var r=window.getComputedStyle(t);if(null===r)return null;var n=B3(N3,r),a=n.boxSizing;return""===a?null:(F3&&"border-box"===a&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px"),{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)})}),"getSizingData");function A0(e,t,r){var n=Af(r);react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect((function(){var a=o((function(c){return n.current(c)}),"handler");if(e)return e.addEventListener(t,a),function(){return e.removeEventListener(t,a)}}),[])}o(A0,"useListener");var $3=o((function(t,r){A0(document.body,"reset",(function(n){t.current.form===n.target&&r(n)}))}),"useFormResetListener"),V3=o((function(t){A0(window,"resize",t)}),"useWindowResizeListener"),j3=o((function(t){A0(document.fonts,"loadingdone",t)}),"useFontsLoadedListener"),W3=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],U3=o((function(t,r){var n=t.cacheMeasurements,a=t.maxRows,i=t.minRows,c=t.onChange,l=void 0===c?kf:c,s=t.onHeightChange,u=void 0===s?kf:s,f=ur(t,W3),d=void 0!==f.value,m=react__WEBPACK_IMPORTED_MODULE_0__.useRef(null),v=zf(m,r),y=react__WEBPACK_IMPORTED_MODULE_0__.useRef(0),p=react__WEBPACK_IMPORTED_MODULE_0__.useRef(),h=o((function(){var b=m.current,x=n&&p.current?p.current:_3(b);if(x){p.current=x;var E=O3(x,b.value||b.placeholder||"x",i,a),R=E[0],S=E[1];y.current!==R&&(y.current=R,b.style.setProperty("height",R+"px","important"),u(R,{rowHeight:S}))}}),"resizeTextarea"),g=o((function(b){d||h(),l(b)}),"handleChange");return react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect(h),$3(m,(function(){if(!d){var w=m.current.value;requestAnimationFrame((function(){var b=m.current;b&&w!==b.value&&h()}))}})),V3(h),j3(h),react__WEBPACK_IMPORTED_MODULE_0__.createElement("textarea",W({},f,{onChange:g,ref:v}))}),"TextareaAutosize"),Of=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(U3),Bf=Object.assign((0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4)((0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(o((function({size:t,valid:r,align:n,...a},i){return react__WEBPACK_IMPORTED_MODULE_0__.createElement(Of,{...a,ref:i})}),"Textarea")))(Ao,Hr,Co,Mo,(({height:e=400})=>({overflow:"visible",maxHeight:e}))),{displayName:"Textarea"}),Z3=Object.assign(storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.form({boxSizing:"border-box",width:"100%"}),{Field:Rf,Input:xf,Select:Cf,Textarea:Bf,Button:Ir,Checkbox:bf,Radio:Ef}),G7=(0,react__WEBPACK_IMPORTED_MODULE_0__.lazy)((()=>Promise.resolve().then((()=>(Vo(),al))).then((e=>({default:e.WithTooltip}))))),Y7=o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null)},react__WEBPACK_IMPORTED_MODULE_0__.createElement(G7,{...e}))),"WithTooltip"),X7=(0,react__WEBPACK_IMPORTED_MODULE_0__.lazy)((()=>Promise.resolve().then((()=>(Vo(),al))).then((e=>({default:e.WithTooltipPure}))))),Z7=o((e=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Suspense,{fallback:react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",null)},react__WEBPACK_IMPORTED_MODULE_0__.createElement(X7,{...e}))),"WithTooltipPure"),a6=(storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e})=>({fontWeight:e.typography.weight.bold}))),storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.span(),storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e})=>({marginTop:8,textAlign:"center","> *":{margin:"0 8px",fontWeight:e.typography.weight.bold}}))),storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e})=>({color:e.color.defaultText,lineHeight:"18px"}))),storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div({padding:15,width:280,boxSizing:"border-box"}),storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e})=>({padding:"2px 6px",lineHeight:"16px",fontSize:10,fontWeight:e.typography.weight.bold,color:e.color.lightest,boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.3)",borderRadius:4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:-1,background:"light"===e.base?"rgba(60, 60, 60, 0.9)":"rgba(0, 0, 0, 0.95)",margin:6})))),i6=o((({note:e,...t})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(a6,{...t},e)),"TooltipNote"),Kd=me(Qr(),1),l6=(0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4)((({active:e,loading:t,disabled:r,...n})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",{...n})))((({theme:e})=>({color:e.color.defaultText,fontWeight:e.typography.weight.regular})),(({active:e,theme:t})=>e?{color:t.color.secondary,fontWeight:t.typography.weight.bold}:{}),(({loading:e,theme:t})=>e?{display:"inline-block",flex:"none",...t.animation.inlineGlow}:{}),(({disabled:e,theme:t})=>e?{color:t.textMutedColor}:{})),c6=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.span({display:"flex","& svg":{height:12,width:12,margin:"3px 0",verticalAlign:"top"},"& path":{fill:"inherit"}}),s6=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.span({flex:1,textAlign:"left",display:"flex",flexDirection:"column"},(({isIndented:e})=>e?{marginLeft:24}:{})),u6=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.span((({theme:e})=>({fontSize:"11px",lineHeight:"14px"})),(({active:e,theme:t})=>e?{color:t.color.secondary}:{}),(({theme:e,disabled:t})=>t?{color:e.textMutedColor}:{})),f6=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.span((({active:e,theme:t})=>e?{color:t.color.secondary}:{}),(()=>({display:"flex",maxWidth:14}))),d6=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e})=>({width:"100%",border:"none",borderRadius:e.appBorderRadius,background:"none",fontSize:e.typography.size.s1,transition:"all 150ms ease-out",color:e.color.dark,textDecoration:"none",justifyContent:"space-between",lineHeight:"18px",padding:"7px 10px",display:"flex",alignItems:"center","& > * + *":{paddingLeft:10}})),(({theme:e,href:t,onClick:r})=>(t||r)&&{cursor:"pointer","&:hover":{background:e.background.hoverable},"&:hover svg":{opacity:1}}),(({theme:e,as:t})=>"label"===t&&{"&:has(input:not(:disabled))":{cursor:"pointer","&:hover":{background:e.background.hoverable}}}),(({disabled:e})=>e&&{cursor:"not-allowed"})),p6=(0,Kd.default)(100)((({onClick:e,input:t,href:r,LinkWrapper:n})=>({...e&&{as:"button",onClick:e},...t&&{as:"label"},...r&&{as:"a",href:r,...n&&{as:n,to:r}}}))),il=o((e=>{let{loading:t=!1,title:r=react__WEBPACK_IMPORTED_MODULE_0__.createElement("span",null,"Loading state"),center:n=null,right:a=null,active:i=!1,disabled:c=!1,isIndented:l=!1,href:s,onClick:u,icon:f,input:d,LinkWrapper:m,...v}=e,y={active:i,disabled:c},p=p6(e),h=f||d;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(d6,{...v,...y,...p},react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,h&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(f6,{...y},h),r||n?react__WEBPACK_IMPORTED_MODULE_0__.createElement(s6,{isIndented:l&&!h},r&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(l6,{...y,loading:t},r),n&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(u6,{...y},n)):null,a&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(c6,{...y},a)))}),"ListItem"),v6=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div({minWidth:180,overflow:"hidden",overflowY:"auto",maxHeight:504},(({theme:e})=>({borderRadius:e.appBorderRadius+2})),(({theme:e})=>"dark"===e.base?{background:e.background.content}:{})),w6=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e})=>({padding:4,"& + &":{borderTop:`1px solid ${e.appBorderColor}`}}))),b6=o((({id:e,onClick:t,...r})=>{let{active:n,disabled:a,title:i,href:c}=r,l=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((s=>t?.(s,{id:e,active:n,disabled:a,title:i,href:c})),[t,e,n,a,i,c]);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(il,{id:`list-item-${e}`,...r,...t&&{onClick:l}})}),"Item"),ll=o((({links:e,LinkWrapper:t,...r})=>{let n=Array.isArray(e[0])?e:[e],a=n.some((i=>i.some((c=>"icon"in c&&c.icon||"input"in c&&c.input))));return react__WEBPACK_IMPORTED_MODULE_0__.createElement(v6,{...r},n.filter((i=>i.length)).map(((i,c)=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(w6,{key:i.map((l=>l.id)).join(`~${c}~`)},i.map((l=>"content"in l?react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,{key:l.id},l.content):react__WEBPACK_IMPORTED_MODULE_0__.createElement(b6,{key:l.id,isIndented:a,LinkWrapper:t,...l})))))))}),"TooltipLinkList");ro();var cl=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div({display:"flex",whiteSpace:"nowrap",flexBasis:"auto",marginLeft:3,marginRight:10},(({scrollable:e})=>e?{flexShrink:0}:{}),(({left:e})=>e?{"& > *":{marginLeft:4}}:{}),(({right:e})=>e?{gap:6}:{}));cl.displayName="Side";var R6=o((({children:e,className:t,scrollable:r})=>r?react__WEBPACK_IMPORTED_MODULE_0__.createElement(yr,{vertical:!1,className:t},e):react__WEBPACK_IMPORTED_MODULE_0__.createElement("div",{className:t},e)),"UnstyledBar"),ul=(0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4)(R6)((({backgroundColor:e,theme:t,scrollable:r=!0})=>({color:t.barTextColor,width:"100%",minHeight:40,flexShrink:0,scrollbarColor:`${t.barTextColor} ${e||t.barBg}`,scrollbarWidth:"thin",overflow:r?"auto":"hidden",overflowY:"hidden"})),(({theme:e,border:t=!1})=>t?{boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.barBg}:{}));ul.displayName="Bar";var x6=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({bgColor:e})=>({display:"flex",justifyContent:"space-between",position:"relative",flexWrap:"nowrap",flexShrink:0,height:40,backgroundColor:e||""}))),jo=o((({children:e,backgroundColor:t,className:r,...n})=>{let[a,i]=react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(e);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(ul,{backgroundColor:t,className:`sb-bar ${r}`,...n},react__WEBPACK_IMPORTED_MODULE_0__.createElement(x6,{bgColor:t},react__WEBPACK_IMPORTED_MODULE_0__.createElement(cl,{scrollable:n.scrollable,left:!0},a),i?react__WEBPACK_IMPORTED_MODULE_0__.createElement(cl,{right:!0},i):null))}),"FlexBar");jo.displayName="FlexBar";var M6=o((e=>"string"==typeof e.props.href),"isLink"),A6=o((e=>"string"!=typeof e.props.href),"isButton");function L6({children:e,...t},r){let n={props:t,ref:r};if(M6(n))return react__WEBPACK_IMPORTED_MODULE_0__.createElement("a",{ref:n.ref,...n.props},e);if(A6(n))return react__WEBPACK_IMPORTED_MODULE_0__.createElement("button",{ref:n.ref,type:"button",...n.props},e);throw new Error("invalid props")}o(L6,"ForwardRefFunction");var ep=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(L6);ep.displayName="ButtonOrLink";var ar=(0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4)(ep,{shouldForwardProp:storybook_theming__WEBPACK_IMPORTED_MODULE_1__.EG})({whiteSpace:"normal",display:"inline-flex",overflow:"hidden",verticalAlign:"top",justifyContent:"center",alignItems:"center",textAlign:"center",textDecoration:"none","&:empty":{display:"none"},"&[hidden]":{display:"none"}},(({theme:e})=>({padding:"0 15px",transition:"color 0.2s linear, border-bottom-color 0.2s linear",height:40,lineHeight:"12px",cursor:"pointer",background:"transparent",border:"0 solid transparent",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",fontWeight:"bold",fontSize:13,"&:focus":{outline:"0 none",borderBottomColor:e.barSelectedColor}})),(({active:e,textColor:t,theme:r})=>e?{color:t||r.barSelectedColor,borderBottomColor:r.barSelectedColor}:{color:t||r.barTextColor,borderBottomColor:"transparent","&:hover":{color:r.barHoverColor}}));ar.displayName="TabButton";var I6=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e})=>({height:"100%",display:"flex",padding:30,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:e.background.content}))),z6=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div({display:"flex",flexDirection:"column",gap:4,maxWidth:415}),T6=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e})=>({fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textColor}))),H6=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s2-1,textAlign:"center",color:e.textMutedColor}))),qo=o((({title:e,description:t,footer:r})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(I6,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(z6,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(T6,null,e),t&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(H6,null,t)),r)),"EmptyTabContent"),fl=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({active:e})=>e?{display:"block"}:{display:"none"})),tp=o((e=>react__WEBPACK_IMPORTED_MODULE_0__.Children.toArray(e).map((({props:{title:t,id:r,color:n,children:a}})=>{let i=Array.isArray(a)?a[0]:a;return{title:t,id:r,...n?{color:n}:{},render:"function"==typeof i?i:({active:l})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(fl,{active:l,role:"tabpanel"},i)}}))),"childrenToList");Vo();var F6=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.span((({theme:e,isActive:t})=>({display:"inline-block",width:0,height:0,marginLeft:8,color:t?e.color.secondary:e.color.mediumdark,borderRight:"3px solid transparent",borderLeft:"3px solid transparent",borderTop:"3px solid",transition:"transform .1s ease-out"}))),D6=(0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4)(ar)((({active:e,theme:t,preActive:r})=>`\n color: ${r||e?t.barSelectedColor:t.barTextColor};\n .addon-collapsible-icon {\n color: ${r||e?t.barSelectedColor:t.barTextColor};\n }\n &:hover {\n color: ${t.barHoverColor};\n .addon-collapsible-icon {\n color: ${t.barHoverColor};\n }\n }\n `));function op(e){let t=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(),r=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(),n=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(new Map),{width:a=1}=Eo({ref:t}),[i,c]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(e),[l,s]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)([]),u=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(e),f=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((({menuName:m,actions:v})=>{let y=l.some((({active:g})=>g)),[p,h]=(0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(!1);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(ol,{interactive:!0,visible:p,onVisibleChange:h,placement:"bottom",delayHide:100,tooltip:react__WEBPACK_IMPORTED_MODULE_0__.createElement(ll,{links:l.map((({title:g,id:w,color:b,active:x})=>({id:w,title:g,color:b,active:x,onClick:o((E=>{E.preventDefault(),v.onSelect(w)}),"onClick")})))})},react__WEBPACK_IMPORTED_MODULE_0__.createElement(D6,{id:"addons-menu-button",ref:r,active:y,preActive:p,style:{visibility:l.length?"visible":"hidden"},"aria-hidden":!l.length,className:"tabbutton",type:"button",role:"tab"},m,react__WEBPACK_IMPORTED_MODULE_0__.createElement(F6,{className:"addon-collapsible-icon",isActive:y||p}))),l.map((({title:g,id:w,color:b},x)=>{let E=`index-${x}`;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(ar,{id:`tabbutton-${(0,storybook_internal_csf__WEBPACK_IMPORTED_MODULE_6__.aj)(w)??E}`,style:{visibility:"hidden"},"aria-hidden":!0,tabIndex:-1,ref:R=>{n.current.set(w,R)},className:"tabbutton",type:"button",key:w,textColor:b,role:"tab"},g)})))}),[l]),d=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>{if(!t.current||!r.current)return;let{x:m,width:v}=t.current.getBoundingClientRect(),{width:y}=r.current.getBoundingClientRect(),p=l.length?m+v-y:m+v,h=[],g=0,w=e.filter((b=>{let{id:x}=b,E=n.current.get(x),{width:R=0}=E?.getBoundingClientRect()||{},S=m+g+R>p;return(!S||!E)&&h.push(b),g+=R,S}));(h.length!==i.length||u.current!==e)&&(c(h),s(w),u.current=e)}),[l.length,e,i]);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect)(d,[d,a]),{tabRefs:n,addonsRef:r,tabBarRef:t,visibleList:i,invisibleList:l,AddonTab:f}}o(op,"useList");var W6=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e,bordered:t})=>t?{backgroundClip:"padding-box",border:`1px solid ${e.appBorderColor}`,borderRadius:e.appBorderRadius,overflow:"hidden",boxSizing:"border-box"}:{}),(({absolute:e})=>e?{width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column"}:{display:"block"})),gl=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div({overflow:"hidden","&:first-of-type":{marginLeft:-3},whiteSpace:"nowrap",flexGrow:1});gl.displayName="TabBar";var U6=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div({display:"block",position:"relative",container:"tab-content / inline-size"},(({theme:e})=>({fontSize:e.typography.size.s2-1,background:e.background.content})),(({bordered:e,theme:t})=>e?{borderRadius:`0 0 ${t.appBorderRadius-1}px ${t.appBorderRadius-1}px`}:{}),(({absolute:e,bordered:t})=>e?{height:`calc(100% - ${t?42:40}px)`,position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:40+(t?1:0),overflow:"auto","& > *:first-child/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */":{position:"absolute",left:0+(t?1:0),right:0+(t?1:0),bottom:0+(t?1:0),top:0+(t?1:0),height:`calc(100% - ${t?2:0}px)`,overflow:"auto"}}:{})),wl=class wl extends react__WEBPACK_IMPORTED_MODULE_0__.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,r){console.error("Error rendering addon panel"),console.error(t),console.error(r.componentStack)}render(){return this.state.hasError&&this.props.active?react__WEBPACK_IMPORTED_MODULE_0__.createElement(qo,{title:"This addon has errors",description:"Check your browser logs and addon code to pinpoint what went wrong. This issue was not caused by Storybook."}):this.props.children}};o(wl,"TabErrorBoundary");var pl=wl,vl=(0,react__WEBPACK_IMPORTED_MODULE_0__.memo)((({children:e,selected:t=null,actions:r,absolute:n=!1,bordered:a=!1,tools:i=null,backgroundColor:c,id:l=null,menuName:s="Tabs",emptyState:u,showToolsWhenEmpty:f})=>{let d=(0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)((()=>tp(e).map(((g,w)=>({...g,active:t?g.id===t:0===w})))),[e,t]),{visibleList:m,tabBarRef:v,tabRefs:y,AddonTab:p}=op(d),h=u??react__WEBPACK_IMPORTED_MODULE_0__.createElement(qo,{title:"Nothing found"});return f||0!==d.length?react__WEBPACK_IMPORTED_MODULE_0__.createElement(W6,{absolute:n,bordered:a,id:l},react__WEBPACK_IMPORTED_MODULE_0__.createElement(jo,{scrollable:!1,border:!0,backgroundColor:c},react__WEBPACK_IMPORTED_MODULE_0__.createElement(gl,{style:{whiteSpace:"normal"},ref:v,role:"tablist"},m.map((({title:g,id:w,active:b,color:x},E)=>{let R=`index-${E}`;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(ar,{id:`tabbutton-${(0,storybook_internal_csf__WEBPACK_IMPORTED_MODULE_6__.aj)(w)??R}`,ref:S=>{y.current.set(w,S)},className:"tabbutton "+(b?"tabbutton-active":""),type:"button",key:w,active:b,textColor:x,onClick:S=>{S.preventDefault(),r.onSelect(w)},role:"tab"},"function"==typeof g?react__WEBPACK_IMPORTED_MODULE_0__.createElement("title",null):g)})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(p,{menuName:s,actions:r})),i),react__WEBPACK_IMPORTED_MODULE_0__.createElement(U6,{id:"panel-tab-content",bordered:a,absolute:n},d.length?d.map((({id:g,active:w,render:b})=>react__WEBPACK_IMPORTED_MODULE_0__.createElement(pl,{key:g,active:w},react__WEBPACK_IMPORTED_MODULE_0__.createElement(b,{active:w},null)))):h)):h}));vl.displayName="Tabs";var Yo=class Yo extends react__WEBPACK_IMPORTED_MODULE_0__.Component{constructor(r){super(r),this.handlers={onSelect:o((r=>this.setState({selected:r})),"onSelect")},this.state={selected:r.initial}}render(){let{bordered:r=!1,absolute:n=!1,children:a,backgroundColor:i,menuName:c}=this.props,{selected:l}=this.state;return react__WEBPACK_IMPORTED_MODULE_0__.createElement(vl,{bordered:r,absolute:n,selected:l,backgroundColor:i,menuName:c,actions:this.handlers},a)}};o(Yo,"TabsState"),Yo.defaultProps={children:[],initial:null,absolute:!1,bordered:!1,backgroundColor:"",menuName:void 0};var ml=Yo,bl=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.span((({theme:e})=>({width:1,height:20,background:e.appBorderColor,marginLeft:2,marginRight:2})),(({force:e})=>e?{}:{"& + &":{display:"none"}}));bl.displayName="Separator";var lp=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.i7` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,iw=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({size:e=32})=>({borderRadius:"50%",cursor:"progress",display:"inline-block",overflow:"hidden",position:"absolute",transition:"all 200ms ease-out",verticalAlign:"top",top:"50%",left:"50%",marginTop:-e/2,marginLeft:-e/2,height:e,width:e,zIndex:4,borderWidth:2,borderStyle:"solid",borderColor:"rgba(97, 97, 97, 0.29)",borderTopColor:"rgb(100,100,100)",animation:`${lp} 0.7s linear infinite`,mixBlendMode:"difference"}))),cp=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div({position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"}),lw=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e})=>({position:"relative",width:"80%",marginBottom:"0.75rem",maxWidth:300,height:5,borderRadius:5,background:we(.8,e.color.secondary),overflow:"hidden",cursor:"progress"}))),cw=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e})=>({position:"absolute",top:0,left:0,height:"100%",background:e.color.secondary}))),sp=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({theme:e})=>({minHeight:"2em",fontSize:`${e.typography.size.s1}px`,color:e.textMutedColor}))),sw=(0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4)(q5)((({theme:e})=>({width:20,height:20,marginBottom:"0.5rem",color:e.textMutedColor}))),uw=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.i7` from { content: "..." } 33% { content: "." } 66% { content: ".." } to { content: "..." } `,fw=storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.span({"&::after":{content:"'...'",animation:`${uw} 1s linear infinite`,animationDelay:"1s",display:"inline-block",width:"1em",height:"auto"}}),dw=o((({progress:e,error:t,size:r,...n})=>{if(t)return react__WEBPACK_IMPORTED_MODULE_0__.createElement(cp,{"aria-label":t.toString(),"aria-live":"polite",role:"status",...n},react__WEBPACK_IMPORTED_MODULE_0__.createElement(sw,null),react__WEBPACK_IMPORTED_MODULE_0__.createElement(sp,null,t.message));if(e){let{value:a,modules:i}=e,{message:c}=e;return i&&(c+=` ${i.complete} / ${i.total} modules`),react__WEBPACK_IMPORTED_MODULE_0__.createElement(cp,{"aria-label":"Content is loading...","aria-live":"polite","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":100*a,"aria-valuetext":c,role:"progressbar",...n},react__WEBPACK_IMPORTED_MODULE_0__.createElement(lw,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(cw,{style:{width:100*a+"%"}})),react__WEBPACK_IMPORTED_MODULE_0__.createElement(sp,null,c,a<1&&react__WEBPACK_IMPORTED_MODULE_0__.createElement(fw,{key:c})))}return react__WEBPACK_IMPORTED_MODULE_0__.createElement(iw,{"aria-label":"Content is loading...","aria-live":"polite",role:"status",size:r,...n})}),"Loader"),mw=(0,storybook_theming__WEBPACK_IMPORTED_MODULE_1__.i7)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}});storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.div((({size:e})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",minWidth:e,minHeight:e}))),storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.svg((({size:e,width:t})=>({position:"absolute",width:`${e}px!important`,height:`${e}px!important`,transform:"rotate(-90deg)",circle:{r:(e-Math.ceil(t))/2,cx:e/2,cy:e/2,opacity:.15,fill:"transparent",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeDasharray:Math.PI*(e-Math.ceil(t))}})),(({progress:e})=>e&&{circle:{opacity:.75}}),(({spinner:e})=>e&&{animation:`${mw} 1s linear infinite`,circle:{opacity:.25}}));function gw(e){let t={},r=e.split("&");for(let n=0;n<r.length;n++){let a=r[n].split("=");t[decodeURIComponent(a[0])]=decodeURIComponent(a[1]||"")}return t}o(gw,"parseQuery");var vw=o(((e,t,r={})=>{let[n,a]=e.split("?"),i=a?{...gw(a),...r,id:t}:{...r,id:t};return`${n}?${Object.entries(i).map((c=>`${c[0]}=${c[1]}`)).join("&")}`}),"getStoryHref"),yO=(storybook_theming__WEBPACK_IMPORTED_MODULE_1__.I4.pre` line-height: 18px; padding: 11px 1rem; white-space: pre-wrap; background: rgba(0, 0, 0, 0.05); color: ${storybook_theming__WEBPACK_IMPORTED_MODULE_1__.yW.darkest}; border-radius: 3px; margin: 1rem 0; width: 100%; display: block; overflow: hidden; font-family: ${storybook_theming__WEBPACK_IMPORTED_MODULE_1__.Il.fonts.mono}; font-size: ${storybook_theming__WEBPACK_IMPORTED_MODULE_1__.Il.size.s2-1}px; `,Ci),Cw={};Object.keys(Ci).forEach((e=>{Cw[e]=(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(((t,r)=>(0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(e,{...t,ref:r})))}))},"./node_modules/storybook/dist/csf/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{F3:()=>uc,K_:()=>rc,hX:()=>csf_Xr,bU:()=>oc,aj:()=>csf_jn,bE:()=>cc,Lr:()=>lc});var external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),external_STORYBOOK_MODULE_CHANNELS_=__webpack_require__("storybook/internal/channels"),external_STORYBOOK_MODULE_CLIENT_LOGGER_=__webpack_require__("storybook/internal/client-logger"),external_STORYBOOK_MODULE_CORE_EVENTS_=__webpack_require__("storybook/internal/core-events"),external_STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS_=__webpack_require__("storybook/internal/preview-errors"),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("storybook/preview-api"),external_STORYBOOK_MODULE_TEST_=__webpack_require__("storybook/test"),lr=Object.defineProperty,i=(e,t)=>lr(e,"name",{value:t,configurable:!0}),mr=Object.entries({reset:[0,0],bold:[1,22,""],dim:[2,22,""],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]});function Ge(e){return String(e)}function Ft(e=!1){let t=typeof process<"u"?process:void 0,n=t?.env||{},r=t?.argv||[];return!("NO_COLOR"in n||r.includes("--no-color"))&&("FORCE_COLOR"in n||r.includes("--color")||"win32"===t?.platform||e&&"dumb"!==n.TERM||"CI"in n)||typeof window<"u"&&!!window.chrome}function jt(e=!1){let t=Ft(e),n=i(((c,a,u,m)=>{let p="",l=0;do{p+=c.substring(l,m)+u,l=m+a.length,m=c.indexOf(a,l)}while(~m);return p+c.substring(l)}),"i"),r=i(((c,a,u=c)=>{let m=i((p=>{let l=String(p),b=l.indexOf(a,c.length);return~b?c+n(l,a,u,b)+a:c+l+a}),"o");return m.open=c,m.close=a,m}),"g"),o={isColorSupported:t},s=i((c=>`[${c}m`),"d");for(let[c,a]of mr)o[c]=t?r(s(a[0]),s(a[1]),a[2]):Ge;return o}i(Ge,"a"),Ge.open="",Ge.close="",i(Ft,"C"),i(jt,"p");var v=jt();function Xt(e,t){return t.forEach((function(n){n&&"string"!=typeof n&&!Array.isArray(n)&&Object.keys(n).forEach((function(r){if("default"!==r&&!(r in e)){var o=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,o.get?o:{enumerable:!0,get:i((function(){return n[r]}),"get")})}}))})),Object.freeze(e)}function pr(e,t){let n=Object.keys(e),r=null===t?n:n.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&r.push(o);return r}function Ee(e,t,n,r,o,s,c=": "){let a="",u=0,m=e.next();if(!m.done){a+=t.spacingOuter;let p=n+t.indent;for(;!m.done;){if(a+=p,u++===t.maxWidth){a+="…";break}a+=s(m.value[0],t,p,r,o)+c+s(m.value[1],t,p,r,o),m=e.next(),m.done?t.min||(a+=","):a+=`,${t.spacingInner}`}a+=t.spacingOuter+n}return a}function Qe(e,t,n,r,o,s){let c="",a=0,u=e.next();if(!u.done){c+=t.spacingOuter;let m=n+t.indent;for(;!u.done;){if(c+=m,a++===t.maxWidth){c+="…";break}c+=s(u.value,t,m,r,o),u=e.next(),u.done?t.min||(c+=","):c+=`,${t.spacingInner}`}c+=t.spacingOuter+n}return c}function Ae(e,t,n,r,o,s){let c="";e=e instanceof ArrayBuffer?new DataView(e):e;let a=i((m=>m instanceof DataView),"isDataView"),u=a(e)?e.byteLength:e.length;if(u>0){c+=t.spacingOuter;let m=n+t.indent;for(let p=0;p<u;p++){if(c+=m,p===t.maxWidth){c+="…";break}(a(e)||p in e)&&(c+=s(a(e)?e.getInt8(p):e[p],t,m,r,o)),p<u-1?c+=`,${t.spacingInner}`:t.min||(c+=",")}c+=t.spacingOuter+n}return c}function ve(e,t,n,r,o,s){let c="",a=pr(e,t.compareKeys);if(a.length>0){c+=t.spacingOuter;let u=n+t.indent;for(let m=0;m<a.length;m++){let p=a[m];c+=`${u+s(p,t,u,r,o)}: ${s(e[p],t,u,r,o)}`,m<a.length-1?c+=`,${t.spacingInner}`:t.min||(c+=",")}c+=t.spacingOuter+n}return c}i(Xt,"_mergeNamespaces"),i(pr,"getKeysOfEnumerableProperties"),i(Ee,"printIteratorEntries"),i(Qe,"printIteratorValues"),i(Ae,"printListItems"),i(ve,"printObjectProperties");var gr="function"==typeof Symbol&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,hr=i(((e,t,n,r,o,s)=>{let c=e.toString();if("ArrayContaining"===c||"ArrayNotContaining"===c)return++r>t.maxDepth?`[${c}]`:`${c+" "}[${Ae(e.sample,t,n,r,o,s)}]`;if("ObjectContaining"===c||"ObjectNotContaining"===c)return++r>t.maxDepth?`[${c}]`:`${c+" "}{${ve(e.sample,t,n,r,o,s)}}`;if("StringMatching"===c||"StringNotMatching"===c||"StringContaining"===c||"StringNotContaining"===c)return c+" "+s(e.sample,t,n,r,o);if("function"!=typeof e.toAsymmetricMatcher)throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()}),"serialize$5"),dr=i((e=>e&&e.$$typeof===gr),"test$5"),yr={serialize:hr,test:dr},Zt=new Set(["DOMStringMap","NamedNodeMap"]),Sr=/^(?:HTML\w*Collection|NodeList)$/;function Er(e){return Zt.has(e)||Sr.test(e)}i(Er,"testName");var _r=i((e=>e&&e.constructor&&!!e.constructor.name&&Er(e.constructor.name)),"test$4");function Tr(e){return"NamedNodeMap"===e.constructor.name}i(Tr,"isNamedNodeMap");var Cr=i(((e,t,n,r,o,s)=>{let c=e.constructor.name;return++r>t.maxDepth?`[${c}]`:(t.min?"":c+" ")+(Zt.has(c)?`{${ve(Tr(e)?[...e].reduce(((a,u)=>(a[u.name]=u.value,a)),{}):{...e},t,n,r,o,s)}}`:`[${Ae([...e],t,n,r,o,s)}]`)}),"serialize$4"),Or={serialize:Cr,test:_r};function Qt(e){return e.replaceAll("<","<").replaceAll(">",">")}function et(e,t,n,r,o,s,c){let a=r+n.indent,u=n.colors;return e.map((m=>{let p=t[m],l=c(p,n,a,o,s);return"string"!=typeof p&&(l.includes("\n")&&(l=n.spacingOuter+a+l+n.spacingOuter+r),l=`{${l}}`),`${n.spacingInner+r+u.prop.open+m+u.prop.close}=${u.value.open}${l}${u.value.close}`})).join("")}function tt(e,t,n,r,o,s){return e.map((c=>t.spacingOuter+n+("string"==typeof c?vt(c,t):s(c,t,n,r,o)))).join("")}function vt(e,t){let n=t.colors.content;return n.open+Qt(e)+n.close}function $r(e,t){let n=t.colors.comment;return`${n.open}\x3c!--${Qt(e)}--\x3e${n.close}`}function nt(e,t,n,r,o){let s=r.colors.tag;return`${s.open}<${e}${t&&s.close+t+r.spacingOuter+o+s.open}${n?`>${s.close}${n}${r.spacingOuter}${o}${s.open}</${e}`:(t&&!r.min?"":" ")+"/"}>${s.close}`}function rt(e,t){let n=t.colors.tag;return`${n.open}<${e}${n.close} …${n.open} />${n.close}`}i(Qt,"escapeHTML"),i(et,"printProps"),i(tt,"printChildren"),i(vt,"printText"),i($r,"printComment"),i(nt,"printElement"),i(rt,"printElementAsLeaf");var Rr=/^(?:(?:HTML|SVG)\w*)?Element$/;function Ar(e){try{return"function"==typeof e.hasAttribute&&e.hasAttribute("is")}catch{return!1}}function Pr(e){let t=e.constructor.name,{nodeType:n,tagName:r}=e,o="string"==typeof r&&r.includes("-")||Ar(e);return 1===n&&(Rr.test(t)||o)||3===n&&"Text"===t||8===n&&"Comment"===t||11===n&&"DocumentFragment"===t}i(Ar,"testHasAttribute"),i(Pr,"testNode");var Nr=i((e=>{var t;return(null==e||null===(t=e.constructor)||void 0===t?void 0:t.name)&&Pr(e)}),"test$3");function Ir(e){return 3===e.nodeType}function Mr(e){return 8===e.nodeType}function He(e){return 11===e.nodeType}i(Ir,"nodeIsText"),i(Mr,"nodeIsComment"),i(He,"nodeIsFragment");var Lr=i(((e,t,n,r,o,s)=>{if(Ir(e))return vt(e.data,t);if(Mr(e))return $r(e.data,t);let c=He(e)?"DocumentFragment":e.tagName.toLowerCase();return++r>t.maxDepth?rt(c,t):nt(c,et(He(e)?[]:Array.from(e.attributes,(a=>a.name)).sort(),He(e)?{}:[...e.attributes].reduce(((a,u)=>(a[u.name]=u.value,a)),{}),t,n+t.indent,r,o,s),tt(Array.prototype.slice.call(e.childNodes||e.children),t,n+t.indent,r,o,s),t,n)}),"serialize$3"),xr={serialize:Lr,test:Nr},kt="@@__IMMUTABLE_ORDERED__@@",de=i((e=>`Immutable.${e}`),"getImmutableName"),Ne=i((e=>`[${e}]`),"printAsLeaf");function Wr(e,t,n,r,o,s,c){return++r>t.maxDepth?Ne(de(c)):`${de(c)+" "}{${Ee(e.entries(),t,n,r,o,s)}}`}function Vr(e){let t=0;return{next(){if(t<e._keys.length){let n=e._keys[t++];return{done:!1,value:[n,e.get(n)]}}return{done:!0,value:void 0}}}}function qr(e,t,n,r,o,s){let c=de(e._name||"Record");return++r>t.maxDepth?Ne(c):`${c+" "}{${Ee(Vr(e),t,n,r,o,s)}}`}function Kr(e,t,n,r,o,s){let c=de("Seq");return++r>t.maxDepth?Ne(c):e["@@__IMMUTABLE_KEYED__@@"]?`${c+" "}{${e._iter||e._object?Ee(e.entries(),t,n,r,o,s):"…"}}`:`${c+" "}[${e._iter||e._array||e._collection||e._iterable?Qe(e.values(),t,n,r,o,s):"…"}]`}function Je(e,t,n,r,o,s,c){return++r>t.maxDepth?Ne(de(c)):`${de(c)+" "}[${Qe(e.values(),t,n,r,o,s)}]`}i(Wr,"printImmutableEntries"),i(Vr,"getRecordEntries"),i(qr,"printImmutableRecord"),i(Kr,"printImmutableSeq"),i(Je,"printImmutableValues");var Gr=i(((e,t,n,r,o,s)=>e["@@__IMMUTABLE_MAP__@@"]?Wr(e,t,n,r,o,s,e[kt]?"OrderedMap":"Map"):e["@@__IMMUTABLE_LIST__@@"]?Je(e,t,n,r,o,s,"List"):e["@@__IMMUTABLE_SET__@@"]?Je(e,t,n,r,o,s,e[kt]?"OrderedSet":"Set"):e["@@__IMMUTABLE_STACK__@@"]?Je(e,t,n,r,o,s,"Stack"):e["@@__IMMUTABLE_SEQ__@@"]?Kr(e,t,n,r,o,s):qr(e,t,n,r,o,s)),"serialize$2"),Hr=i((e=>e&&(!0===e["@@__IMMUTABLE_ITERABLE__@@"]||!0===e["@@__IMMUTABLE_RECORD__@@"])),"test$2"),Jr={serialize:Gr,test:Hr};function rn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}i(rn,"getDefaultExportFromCjs");var zt,Yt,Xe={exports:{}},A={};function Xr(){return zt||(zt=1,function(){function e(f){if("object"==typeof f&&null!==f){var d=f.$$typeof;switch(d){case t:switch(f=f.type){case r:case s:case o:case m:case p:case g:return f;default:switch(f=f&&f.$$typeof){case a:case u:case b:case l:case c:return f;default:return d}}case n:return d}}}i(e,"typeOf");var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),a=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");A.ContextConsumer=c,A.ContextProvider=a,A.Element=t,A.ForwardRef=u,A.Fragment=r,A.Lazy=b,A.Memo=l,A.Portal=n,A.Profiler=s,A.StrictMode=o,A.Suspense=m,A.SuspenseList=p,A.isContextConsumer=function(f){return e(f)===c},A.isContextProvider=function(f){return e(f)===a},A.isElement=function(f){return"object"==typeof f&&null!==f&&f.$$typeof===t},A.isForwardRef=function(f){return e(f)===u},A.isFragment=function(f){return e(f)===r},A.isLazy=function(f){return e(f)===b},A.isMemo=function(f){return e(f)===l},A.isPortal=function(f){return e(f)===n},A.isProfiler=function(f){return e(f)===s},A.isStrictMode=function(f){return e(f)===o},A.isSuspense=function(f){return e(f)===m},A.isSuspenseList=function(f){return e(f)===p},A.isValidElementType=function(f){return"string"==typeof f||"function"==typeof f||f===r||f===s||f===o||f===m||f===p||"object"==typeof f&&null!==f&&(f.$$typeof===b||f.$$typeof===l||f.$$typeof===a||f.$$typeof===c||f.$$typeof===u||f.$$typeof===h||void 0!==f.getModuleId)},A.typeOf=e}()),A}function Zr(){return Yt||(Yt=1,Xe.exports=Xr()),Xe.exports}i(Xr,"requireReactIs_development$1"),i(Zr,"requireReactIs$1");var Ut,Wt,on=Zr(),vr=Xt({__proto__:null,default:rn(on)},[on]),Ze={exports:{}},w={};function eo(){return Ut||(Ut=1,function(){var O,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),a=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function y(C){return!("string"!=typeof C&&"function"!=typeof C&&C!==n&&C!==o&&C!==r&&C!==m&&C!==p&&C!==g&&("object"!=typeof C||null===C||C.$$typeof!==b&&C.$$typeof!==l&&C.$$typeof!==s&&C.$$typeof!==c&&C.$$typeof!==u&&C.$$typeof!==O&&void 0===C.getModuleId))}function E(C){if("object"==typeof C&&null!==C){var Ke=C.$$typeof;switch(Ke){case e:var $e=C.type;switch($e){case n:case o:case r:case m:case p:return $e;default:var Dt=$e&&$e.$$typeof;switch(Dt){case a:case c:case u:case b:case l:case s:return Dt;default:return Ke}}case t:return Ke}}}O=Symbol.for("react.module.reference"),i(y,"isValidElementType"),i(E,"typeOf");var $=c,T=s,R=e,K=u,Q=n,I=b,k=l,G=t,Y=o,N=r,L=m,x=p,H=!1,F=!1;function W(C){return H||(H=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function re(C){return F||(F=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function V(C){return E(C)===c}function q(C){return E(C)===s}function se(C){return"object"==typeof C&&null!==C&&C.$$typeof===e}function J(C){return E(C)===u}function U(C){return E(C)===n}function oe(C){return E(C)===b}function he(C){return E(C)===l}function ue(C){return E(C)===t}function be(C){return E(C)===o}function Ce(C){return E(C)===r}function Oe(C){return E(C)===m}function ar(C){return E(C)===p}i(W,"isAsyncMode"),i(re,"isConcurrentMode"),i(V,"isContextConsumer"),i(q,"isContextProvider"),i(se,"isElement"),i(J,"isForwardRef"),i(U,"isFragment"),i(oe,"isLazy"),i(he,"isMemo"),i(ue,"isPortal"),i(be,"isProfiler"),i(Ce,"isStrictMode"),i(Oe,"isSuspense"),i(ar,"isSuspenseList"),w.ContextConsumer=$,w.ContextProvider=T,w.Element=R,w.ForwardRef=K,w.Fragment=Q,w.Lazy=I,w.Memo=k,w.Portal=G,w.Profiler=Y,w.StrictMode=N,w.Suspense=L,w.SuspenseList=x,w.isAsyncMode=W,w.isConcurrentMode=re,w.isContextConsumer=V,w.isContextProvider=q,w.isElement=se,w.isForwardRef=J,w.isFragment=U,w.isLazy=oe,w.isMemo=he,w.isPortal=ue,w.isProfiler=be,w.isStrictMode=Ce,w.isSuspense=Oe,w.isSuspenseList=ar,w.isValidElementType=y,w.typeOf=E}()),w}function to(){return Wt||(Wt=1,Ze.exports=eo()),Ze.exports}i(eo,"requireReactIs_development"),i(to,"requireReactIs");var sn=to(),ro=Xt({__proto__:null,default:rn(sn)},[sn]),fe=Object.fromEntries(["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"].map((e=>[e,t=>ro[e](t)||vr[e](t)])));function cn(e,t=[]){if(Array.isArray(e))for(let n of e)cn(n,t);else null!=e&&!1!==e&&""!==e&&t.push(e);return t}function Vt(e){let t=e.type;if("string"==typeof t)return t;if("function"==typeof t)return t.displayName||t.name||"Unknown";if(fe.isFragment(e))return"React.Fragment";if(fe.isSuspense(e))return"React.Suspense";if("object"==typeof t&&null!==t){if(fe.isContextProvider(e))return"Context.Provider";if(fe.isContextConsumer(e))return"Context.Consumer";if(fe.isForwardRef(e)){if(t.displayName)return t.displayName;let n=t.render.displayName||t.render.name||"";return""===n?"ForwardRef":`ForwardRef(${n})`}if(fe.isMemo(e)){let n=t.displayName||t.type.displayName||t.type.name||"";return""===n?"Memo":`Memo(${n})`}}return"UNDEFINED"}function so(e){let{props:t}=e;return Object.keys(t).filter((n=>"children"!==n&&void 0!==t[n])).sort()}i(cn,"getChildren"),i(Vt,"getType"),i(so,"getPropKeys$1");var io=i(((e,t,n,r,o,s)=>++r>t.maxDepth?rt(Vt(e),t):nt(Vt(e),et(so(e),e.props,t,n+t.indent,r,o,s),tt(cn(e.props.children),t,n+t.indent,r,o,s),t,n)),"serialize$1"),co=i((e=>null!=e&&fe.isElement(e)),"test$1"),uo={serialize:io,test:co},ao="function"==typeof Symbol&&Symbol.for?Symbol.for("react.test.json"):245830487;function lo(e){let{props:t}=e;return t?Object.keys(t).filter((n=>void 0!==t[n])).sort():[]}i(lo,"getPropKeys");var fo=i(((e,t,n,r,o,s)=>++r>t.maxDepth?rt(e.type,t):nt(e.type,e.props?et(lo(e),e.props,t,n+t.indent,r,o,s):"",e.children?tt(e.children,t,n+t.indent,r,o,s):"",t,n)),"serialize"),mo=i((e=>e&&e.$$typeof===ao),"test"),po={serialize:fo,test:mo},un=Object.prototype.toString,go=Date.prototype.toISOString,ho=Error.prototype.toString,qt=RegExp.prototype.toString;function Re(e){return"function"==typeof e.constructor&&e.constructor.name||"Object"}function yo(e){return typeof window<"u"&&e===window}i(Re,"getConstructorName"),i(yo,"isWindow");var bo=/^Symbol\((.*)\)(.*)$/,So=/\n/g,st=class st extends Error{constructor(t,n){super(t),this.stack=n,this.name=this.constructor.name}};i(st,"PrettyFormatPluginError");var Pe=st;function Eo(e){return"[object Array]"===e||"[object ArrayBuffer]"===e||"[object DataView]"===e||"[object Float32Array]"===e||"[object Float64Array]"===e||"[object Int8Array]"===e||"[object Int16Array]"===e||"[object Int32Array]"===e||"[object Uint8Array]"===e||"[object Uint8ClampedArray]"===e||"[object Uint16Array]"===e||"[object Uint32Array]"===e}function _o(e){return Object.is(e,-0)?"-0":String(e)}function To(e){return`${e}n`}function Kt(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}function Gt(e){return String(e).replace(bo,"Symbol($1)")}function Ht(e){return`[${ho.call(e)}]`}function an(e,t,n,r){if(!0===e||!1===e)return`${e}`;if(void 0===e)return"undefined";if(null===e)return"null";let o=typeof e;if("number"===o)return _o(e);if("bigint"===o)return To(e);if("string"===o)return r?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if("function"===o)return Kt(e,t);if("symbol"===o)return Gt(e);let s=un.call(e);return"[object WeakMap]"===s?"WeakMap {}":"[object WeakSet]"===s?"WeakSet {}":"[object Function]"===s||"[object GeneratorFunction]"===s?Kt(e,t):"[object Symbol]"===s?Gt(e):"[object Date]"===s?Number.isNaN(+e)?"Date { NaN }":go.call(e):"[object Error]"===s?Ht(e):"[object RegExp]"===s?n?qt.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):qt.call(e):e instanceof Error?Ht(e):null}function ln(e,t,n,r,o,s){if(o.includes(e))return"[Circular]";(o=[...o]).push(e);let c=++r>t.maxDepth,a=t.min;if(t.callToJSON&&!c&&e.toJSON&&"function"==typeof e.toJSON&&!s)return ae(e.toJSON(),t,n,r,o,!0);let u=un.call(e);return"[object Arguments]"===u?c?"[Arguments]":`${a?"":"Arguments "}[${Ae(e,t,n,r,o,ae)}]`:Eo(u)?c?`[${e.constructor.name}]`:`${a||!t.printBasicPrototype&&"Array"===e.constructor.name?"":`${e.constructor.name} `}[${Ae(e,t,n,r,o,ae)}]`:"[object Map]"===u?c?"[Map]":`Map {${Ee(e.entries(),t,n,r,o,ae," => ")}}`:"[object Set]"===u?c?"[Set]":`Set {${Qe(e.values(),t,n,r,o,ae)}}`:c||yo(e)?`[${Re(e)}]`:`${a||!t.printBasicPrototype&&"Object"===Re(e)?"":`${Re(e)} `}{${ve(e,t,n,r,o,ae)}}`}i(Eo,"isToStringedArrayType"),i(_o,"printNumber"),i(To,"printBigInt"),i(Kt,"printFunction"),i(Gt,"printSymbol"),i(Ht,"printError"),i(an,"printBasicValue"),i(ln,"printComplexValue");var Co={test:i((e=>e&&e instanceof Error),"test"),serialize(e,t,n,r,o,s){if(o.includes(e))return"[Circular]";o=[...o,e];let c=++r>t.maxDepth,{message:a,cause:u,...m}=e,p={message:a,...typeof u<"u"?{cause:u}:{},...e instanceof AggregateError?{errors:e.errors}:{},...m},l="Error"!==e.name?e.name:Re(e);return c?`[${l}]`:`${l} {${Ee(Object.entries(p).values(),t,n,r,o,s)}}`}};function Oo(e){return null!=e.serialize}function fn(e,t,n,r,o,s){let c;try{c=Oo(e)?e.serialize(t,n,r,o,s,ae):e.print(t,(a=>ae(a,n,r,o,s)),(a=>{let u=r+n.indent;return u+a.replaceAll(So,`\n${u}`)}),{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}catch(a){throw new Pe(a.message,a.stack)}if("string"!=typeof c)throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof c}".`);return c}function mn(e,t){for(let n of e)try{if(n.test(t))return n}catch(r){throw new Pe(r.message,r.stack)}return null}function ae(e,t,n,r,o,s){let c=mn(t.plugins,e);if(null!==c)return fn(c,e,t,n,r,o);let a=an(e,t.printFunctionName,t.escapeRegex,t.escapeString);return null!==a?a:ln(e,t,n,r,o,s)}i(Oo,"isNewPlugin"),i(fn,"printPlugin"),i(mn,"findPlugin"),i(ae,"printer");var ot={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},pn=Object.keys(ot),ee={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:ot};function $o(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(ee,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&void 0!==e.indent&&0!==e.indent)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}function wo(){return pn.reduce(((e,t)=>{let n=ot[t],r=n&&v[n];if(!r||"string"!=typeof r.close||"string"!=typeof r.open)throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${n}" is undefined in ansi-styles.`);return e[t]=r,e}),Object.create(null))}function Ro(){return pn.reduce(((e,t)=>(e[t]={close:"",open:""},e)),Object.create(null))}function gn(e){return e?.printFunctionName??ee.printFunctionName}function hn(e){return e?.escapeRegex??ee.escapeRegex}function dn(e){return e?.escapeString??ee.escapeString}function Jt(e){return{callToJSON:e?.callToJSON??ee.callToJSON,colors:e?.highlight?wo():Ro(),compareKeys:"function"==typeof e?.compareKeys||null===e?.compareKeys?e.compareKeys:ee.compareKeys,escapeRegex:hn(e),escapeString:dn(e),indent:e?.min?"":Ao(e?.indent??ee.indent),maxDepth:e?.maxDepth??ee.maxDepth,maxWidth:e?.maxWidth??ee.maxWidth,min:e?.min??ee.min,plugins:e?.plugins??ee.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:gn(e),spacingInner:e?.min?" ":"\n",spacingOuter:e?.min?"":"\n"}}function Ao(e){return Array.from({length:e+1}).join(" ")}function X(e,t){if(t&&($o(t),t.plugins)){let r=mn(t.plugins,e);if(null!==r)return fn(r,e,Jt(t),"",0,[])}let n=an(e,gn(t),hn(t),dn(t));return null!==n?n:ln(e,Jt(t),"",0,[])}i($o,"validateOptions"),i(wo,"getColorsHighlight"),i(Ro,"getColorsEmpty"),i(gn,"getPrintFunctionName"),i(hn,"getEscapeRegex"),i(dn,"getEscapeString"),i(Jt,"getConfig"),i(Ao,"createIndent"),i(X,"format");var _e={AsymmetricMatcher:yr,DOMCollection:Or,DOMElement:xr,Immutable:Jr,ReactElement:uo,ReactTestComponent:po,Error:Co},yn={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},Po={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"};function No(e,t){let n=yn[Po[t]]||yn[t]||"";return n?`[${n[0]}m${String(e)}[${n[1]}m`:String(e)}function bn({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:r=!0,showProxy:o=!1,maxArrayLength:s=1/0,breakLength:c=1/0,seen:a=[],truncate:u=1/0,stylize:m=String}={},p){let l={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!r,showProxy:!!o,maxArrayLength:Number(s),breakLength:Number(c),truncate:Number(u),seen:a,inspect:p,stylize:m};return l.colors&&(l.stylize=No),l}function Io(e){return e>="\ud800"&&e<="\udbff"}function B(e,t,n="…"){e=String(e);let r=n.length,o=e.length;if(r>t&&o>r)return n;if(o>t&&o>r){let s=t-r;return s>0&&Io(e[s-1])&&(s-=1),`${e.slice(0,s)}${n}`}return e}function D(e,t,n,r=", "){n=n||t.inspect;let o=e.length;if(0===o)return"";let s=t.truncate,c="",a="",u="";for(let m=0;m<o;m+=1){let p=m+1===e.length,l=m+2===e.length;u=`…(${e.length-m})`;let b=e[m];t.truncate=s-c.length-(p?0:r.length);let g=a||n(b,t)+(p?"":r),h=c.length+g.length,f=h+u.length;if(p&&h>s&&c.length+u.length<=s||!p&&!l&&f>s||(a=p?"":n(e[m+1],t)+(l?"":r),!p&&l&&f>s&&h+a.length>s))break;if(c+=g,!p&&!l&&h+a.length>=s){u=`…(${e.length-m-1})`;break}u=""}return`${c}${u}`}function Mo(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function ce([e,t],n){return n.truncate-=2,"string"==typeof e?e=Mo(e):"number"!=typeof e&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,`${e}: ${t=n.inspect(t,n)}`}function it(e,t){let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return"[]";t.truncate-=4;let r=D(e,t);t.truncate-=r.length;let o="";return n.length&&(o=D(n.map((s=>[s,e[s]])),t,ce)),`[ ${r}${o?`, ${o}`:""} ]`}i(No,"colorise"),i(bn,"normaliseOptions"),i(Io,"isHighSurrogate"),i(B,"truncate"),i(D,"inspectList"),i(Mo,"quoteComplexKey"),i(ce,"inspectProperty"),i(it,"inspectArray");var Lo=i((e=>"function"==typeof Buffer&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name),"getArrayName");function te(e,t){let n=Lo(e);t.truncate-=n.length+4;let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return`${n}[]`;let o="";for(let c=0;c<e.length;c++){let a=`${t.stylize(B(e[c],t.truncate),"number")}${c===e.length-1?"":", "}`;if(t.truncate-=a.length,e[c]!==e.length&&t.truncate<=3){o+=`…(${e.length-e[c]+1})`;break}o+=a}let s="";return r.length&&(s=D(r.map((c=>[c,e[c]])),t,ce)),`${n}[ ${o}${s?`, ${s}`:""} ]`}function ct(e,t){let n=e.toJSON();if(null===n)return"Invalid Date";let r=n.split("T"),o=r[0];return t.stylize(`${o}T${B(r[1],t.truncate-o.length-1)}`,"date")}function Ie(e,t){let n=e[Symbol.toStringTag]||"Function",r=e.name;return r?t.stylize(`[${n} ${B(r,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}function xo([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,`${e} => ${t=n.inspect(t,n)}`}function Do(e){let t=[];return e.forEach(((n,r)=>{t.push([r,n])})),t}function ut(e,t){return 0===e.size?"Map{}":(t.truncate-=7,`Map{ ${D(Do(e),t,xo)} }`)}i(te,"inspectTypedArray"),i(ct,"inspectDate"),i(Ie,"inspectFunction"),i(xo,"inspectMapEntry"),i(Do,"mapToEntries"),i(ut,"inspectMap");var Fo=Number.isNaN||(e=>e!=e);function Me(e,t){return Fo(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):0===e?t.stylize(1/e==1/0?"+0":"-0","number"):t.stylize(B(String(e),t.truncate),"number")}function Le(e,t){let n=B(e.toString(),t.truncate-1);return"…"!==n&&(n+="n"),t.stylize(n,"bigint")}function at(e,t){let n=e.toString().split("/")[2],r=t.truncate-(2+n.length),o=e.source;return t.stylize(`/${B(o,r)}/${n}`,"regexp")}function jo(e){let t=[];return e.forEach((n=>{t.push(n)})),t}function lt(e,t){return 0===e.size?"Set{}":(t.truncate-=7,`Set{ ${D(jo(e),t)} }`)}i(Me,"inspectNumber"),i(Le,"inspectBigInt"),i(at,"inspectRegExp"),i(jo,"arrayFromSet"),i(lt,"inspectSet");var Sn=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),ko={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"};function Yo(e){return ko[e]||`\\u${`0000${e.charCodeAt(0).toString(16)}`.slice(-4)}`}function xe(e,t){return Sn.test(e)&&(e=e.replace(Sn,Yo)),t.stylize(`'${B(e,t.truncate-2)}'`,"string")}function De(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}i(Yo,"escape"),i(xe,"inspectString"),i(De,"inspectSymbol");var En=i((()=>"Promise{…}"),"getPromiseValue");try{let{getPromiseDetails:e,kPending:t,kRejected:n}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(En=i(((r,o)=>{let[s,c]=e(r);return s===t?"Promise{<pending>}":`Promise${s===n?"!":""}{${o.inspect(c,o)}}`}),"getPromiseValue"))}catch{}var _n=En;function me(e,t){let n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(0===n.length&&0===r.length)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=D(n.map((a=>[a,e[a]])),t,ce),s=D(r.map((a=>[a,e[a]])),t,ce);t.seen.pop();let c="";return o&&s&&(c=", "),`{ ${o}${c}${s} }`}i(me,"inspectObject");var ft=!!(typeof Symbol<"u"&&Symbol.toStringTag)&&Symbol.toStringTag;function mt(e,t){let n="";return ft&&ft in e&&(n=e[ft]),n=n||e.constructor.name,(!n||"_class"===n)&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${me(e,t)}`}function pt(e,t){return 0===e.length?"Arguments[]":(t.truncate-=13,`Arguments[ ${D(e,t)} ]`)}i(mt,"inspectClass"),i(pt,"inspectArguments");var Uo=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function gt(e,t){let n=Object.getOwnPropertyNames(e).filter((c=>-1===Uo.indexOf(c))),r=e.name;t.truncate-=r.length;let o="";if("string"==typeof e.message?o=B(e.message,t.truncate):n.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let s=D(n.map((c=>[c,e[c]])),t,ce);return`${r}${o}${s?` { ${s} }`:""}`}function Wo([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}function Fe(e,t){return D(e,t,Vo,"\n")}function Vo(e,t){switch(e.nodeType){case 1:return je(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function je(e,t){let n=e.getAttributeNames(),r=e.tagName.toLowerCase(),o=t.stylize(`<${r}`,"special"),s=t.stylize(">","special"),c=t.stylize(`</${r}>`,"special");t.truncate-=2*r.length+5;let a="";n.length>0&&(a+=" ",a+=D(n.map((p=>[p,e.getAttribute(p)])),t,Wo," ")),t.truncate-=a.length;let u=t.truncate,m=Fe(e.children,t);return m&&m.length>u&&(m=`…(${e.children.length})`),`${o}${a}${s}${m}${c}`}i(gt,"inspectObject"),i(Wo,"inspectAttribute"),i(Fe,"inspectNodeCollection"),i(Vo,"inspectNode"),i(je,"inspectHTML");var ht="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("chai/inspect"):"@@chai/inspect",dt=Symbol.for("nodejs.util.inspect.custom"),Tn=new WeakMap,Cn={},On={undefined:i(((e,t)=>t.stylize("undefined","undefined")),"undefined"),null:i(((e,t)=>t.stylize("null","null")),"null"),boolean:i(((e,t)=>t.stylize(String(e),"boolean")),"boolean"),Boolean:i(((e,t)=>t.stylize(String(e),"boolean")),"Boolean"),number:Me,Number:Me,bigint:Le,BigInt:Le,string:xe,String:xe,function:Ie,Function:Ie,symbol:De,Symbol:De,Array:it,Date:ct,Map:ut,Set:lt,RegExp:at,Promise:_n,WeakSet:i(((e,t)=>t.stylize("WeakSet{…}","special")),"WeakSet"),WeakMap:i(((e,t)=>t.stylize("WeakMap{…}","special")),"WeakMap"),Arguments:pt,Int8Array:te,Uint8Array:te,Uint8ClampedArray:te,Int16Array:te,Uint16Array:te,Int32Array:te,Uint32Array:te,Float32Array:te,Float64Array:te,Generator:i((()=>""),"Generator"),DataView:i((()=>""),"DataView"),ArrayBuffer:i((()=>""),"ArrayBuffer"),Error:gt,HTMLCollection:Fe,NodeList:Fe},Ko=i(((e,t,n)=>ht in e&&"function"==typeof e[ht]?e[ht](t):dt in e&&"function"==typeof e[dt]?e[dt](t.depth,t):"inspect"in e&&"function"==typeof e.inspect?e.inspect(t.depth,t):"constructor"in e&&Tn.has(e.constructor)?Tn.get(e.constructor)(e,t):Cn[n]?Cn[n](e,t):""),"inspectCustom"),Go=Object.prototype.toString;function ke(e,t={}){let n=bn(t,ke),{customInspect:r}=n,o=null===e?"null":typeof e;if("object"===o&&(o=Go.call(e).slice(8,-1)),o in On)return On[o](e,n);if(r&&e){let c=Ko(e,n,o);if(c)return"string"==typeof c?c:ke(c,n)}let s=!!e&&Object.getPrototypeOf(e);return s===Object.prototype||null===s?me(e,n):e&&"function"==typeof HTMLElement&&e instanceof HTMLElement?je(e,n):"constructor"in e?e.constructor!==Object?mt(e,n):me(e,n):e===Object(e)?me(e,n):n.stylize(String(e),o)}i(ke,"inspect");var{AsymmetricMatcher:Jo,DOMCollection:Xo,DOMElement:Zo,Immutable:Qo,ReactElement:vo,ReactTestComponent:es}=_e,$n=[es,vo,Zo,Xo,Qo,Jo];function pe(e,t=10,{maxLength:n,...r}={}){let s,o=n??1e4;try{s=X(e,{maxDepth:t,escapeString:!1,plugins:$n,...r})}catch{s=X(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:$n,...r})}return s.length>=o&&t>1?pe(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:n,...r}):s}i(pe,"stringify");var ts=/%[sdjifoOc%]/g;function wn(...e){if("string"!=typeof e[0]){let s=[];for(let c=0;c<e.length;c++)s.push(Te(e[c],{depth:0,colors:!1}));return s.join(" ")}let t=e.length,n=1,r=e[0],o=String(r).replace(ts,(s=>{if("%%"===s)return"%";if(n>=t)return s;switch(s){case"%s":{let c=e[n++];return"bigint"==typeof c?`${c.toString()}n`:"number"==typeof c&&0===c&&1/c<0?"-0":"object"==typeof c&&null!==c?"function"==typeof c.toString&&c.toString!==Object.prototype.toString?c.toString():Te(c,{depth:0,colors:!1}):String(c)}case"%d":{let c=e[n++];return"bigint"==typeof c?`${c.toString()}n`:Number(c).toString()}case"%i":{let c=e[n++];return"bigint"==typeof c?`${c.toString()}n`:Number.parseInt(String(c)).toString()}case"%f":return Number.parseFloat(String(e[n++])).toString();case"%o":return Te(e[n++],{showHidden:!0,showProxy:!0});case"%O":return Te(e[n++]);case"%c":return n++,"";case"%j":try{return JSON.stringify(e[n++])}catch(c){let a=c.message;if(a.includes("circular structure")||a.includes("cyclic structures")||a.includes("cyclic object"))return"[Circular]";throw c}default:return s}}));for(let s=e[n];n<t;s=e[++n])o+=null===s||"object"!=typeof s?` ${s}`:` ${Te(s)}`;return o}function Te(e,t={}){return 0===t.truncate&&(t.truncate=Number.POSITIVE_INFINITY),ke(e,t)}function Rn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ns(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}function Be(e){return Object.prototype.toString.apply(e).slice(8,-1)}function rs(e,t){let n="function"==typeof t?t:r=>t.add(r);Object.getOwnPropertyNames(e).forEach(n),Object.getOwnPropertySymbols(e).forEach(n)}function bt(e){let t=new Set;return ns(e)?[]:(rs(e,t),Array.from(t))}i(wn,"format"),i(Te,"inspect"),i(Rn,"getDefaultExportFromCjs"),i(ns,"isFinalObj"),i(Be,"getType"),i(rs,"collectOwnProperties"),i(bt,"getOwnProperties");var An={forceWritable:!1};function St(e,t=An){return yt(e,new WeakMap,t)}function yt(e,t,n=An){let r,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:r=e.length}),t.set(e,o);r--;)o[r]=yt(e[r],t,n);return o}if("[object Object]"===Object.prototype.toString.call(e)){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let s=bt(e);for(let c of s){let a=Object.getOwnPropertyDescriptor(e,c);if(!a)continue;let u=yt(e[c],t,n);n.forceWritable?Object.defineProperty(o,c,{enumerable:a.enumerable,configurable:!0,writable:!0,value:u}):"get"in a?Object.defineProperty(o,c,{...a,get:()=>u}):Object.defineProperty(o,c,{...a,value:u})}return o}return e}i(St,"deepClone"),i(yt,"clone");var z=-1,At=class At{0;1;constructor(t,n){this[0]=t,this[1]=n}};i(At,"Diff");var P=At;function os(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let n=0,r=Math.min(e.length,t.length),o=r,s=0;for(;n<o;)e.substring(s,o)===t.substring(s,o)?(n=o,s=n):r=o,o=Math.floor((r-n)/2+n);return o}function Vn(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let n=0,r=Math.min(e.length,t.length),o=r,s=0;for(;n<o;)e.substring(e.length-o,e.length-s)===t.substring(t.length-o,t.length-s)?(n=o,s=n):r=o,o=Math.floor((r-n)/2+n);return o}function Pn(e,t){let n=e.length,r=t.length;if(0===n||0===r)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));let o=Math.min(n,r);if(e===t)return o;let s=0,c=1;for(;;){let a=e.substring(o-c),u=t.indexOf(a);if(-1===u)return s;c+=u,(0===u||e.substring(o-c)===t.substring(0,c))&&(s=c,c++)}}function ss(e){let t=!1,n=[],r=0,o=null,s=0,c=0,a=0,u=0,m=0;for(;s<e.length;)0===e[s][0]?(n[r++]=s,c=u,a=m,u=0,m=0,o=e[s][1]):(1===e[s][0]?u+=e[s][1].length:m+=e[s][1].length,o&&o.length<=Math.max(c,a)&&o.length<=Math.max(u,m)&&(e.splice(n[r-1],0,new P(z,o)),e[n[r-1]+1][0]=1,r--,r--,s=r>0?n[r-1]:-1,c=0,a=0,u=0,m=0,o=null,t=!0)),s++;for(t&&qn(e),us(e),s=1;s<e.length;){if(e[s-1][0]===z&&1===e[s][0]){let p=e[s-1][1],l=e[s][1],b=Pn(p,l),g=Pn(l,p);b>=g?(b>=p.length/2||b>=l.length/2)&&(e.splice(s,0,new P(0,l.substring(0,b))),e[s-1][1]=p.substring(0,p.length-b),e[s+1][1]=l.substring(b),s++):(g>=p.length/2||g>=l.length/2)&&(e.splice(s,0,new P(0,p.substring(0,g))),e[s-1][0]=1,e[s-1][1]=l.substring(0,l.length-g),e[s+1][0]=z,e[s+1][1]=p.substring(g),s++),s++}s++}}i(os,"diff_commonPrefix"),i(Vn,"diff_commonSuffix"),i(Pn,"diff_commonOverlap_"),i(ss,"diff_cleanupSemantic");var Nn=/[^a-z0-9]/i,In=/\s/,Mn=/[\r\n]/,is=/\n\r?\n$/,cs=/^\r?\n\r?\n/;function us(e){let t=1;for(;t<e.length-1;){if(0===e[t-1][0]&&0===e[t+1][0]){let n=e[t-1][1],r=e[t][1],o=e[t+1][1],s=Vn(n,r);if(s){let p=r.substring(r.length-s);n=n.substring(0,n.length-s),r=p+r.substring(0,r.length-s),o=p+o}let c=n,a=r,u=o,m=ze(n,r)+ze(r,o);for(;r.charAt(0)===o.charAt(0);){n+=r.charAt(0),r=r.substring(1)+o.charAt(0),o=o.substring(1);let p=ze(n,r)+ze(r,o);p>=m&&(m=p,c=n,a=r,u=o)}e[t-1][1]!==c&&(c?e[t-1][1]=c:(e.splice(t-1,1),t--),e[t][1]=a,u?e[t+1][1]=u:(e.splice(t+1,1),t--))}t++}}function qn(e){e.push(new P(0,""));let c,t=0,n=0,r=0,o="",s="";for(;t<e.length;)switch(e[t][0]){case 1:r++,s+=e[t][1],t++;break;case z:n++,o+=e[t][1],t++;break;case 0:n+r>1?(0!==n&&0!==r&&(c=os(s,o),0!==c&&(t-n-r>0&&0===e[t-n-r-1][0]?e[t-n-r-1][1]+=s.substring(0,c):(e.splice(0,0,new P(0,s.substring(0,c))),t++),s=s.substring(c),o=o.substring(c)),c=Vn(s,o),0!==c&&(e[t][1]=s.substring(s.length-c)+e[t][1],s=s.substring(0,s.length-c),o=o.substring(0,o.length-c))),t-=n+r,e.splice(t,n+r),o.length&&(e.splice(t,0,new P(z,o)),t++),s.length&&(e.splice(t,0,new P(1,s)),t++),t++):0!==t&&0===e[t-1][0]?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,n=0,o="",s=""}""===e[e.length-1][1]&&e.pop();let a=!1;for(t=1;t<e.length-1;)0===e[t-1][0]&&0===e[t+1][0]&&(e[t][1].substring(e[t][1].length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),a=!0):e[t][1].substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),a=!0)),t++;a&&qn(e)}function ze(e,t){if(!e||!t)return 6;let n=e.charAt(e.length-1),r=t.charAt(0),o=n.match(Nn),s=r.match(Nn),c=o&&n.match(In),a=s&&r.match(In),u=c&&n.match(Mn),m=a&&r.match(Mn),p=u&&e.match(is),l=m&&t.match(cs);return p||l?5:u||m?4:o&&!c&&a?3:c||a?2:o||s?1:0}i(us,"diff_cleanupSemanticLossless"),i(qn,"diff_cleanupMerge"),i(ze,"diff_cleanupSemanticScore_");var Ln,Kn="Compared values have no visual difference.",Ye={};function ls(){if(Ln)return Ye;Ln=1,Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.default=b;let e="diff-sequences",t=0,n=i(((g,h,f,d,S)=>{let _=0;for(;g<h&&f<d&&S(g,f);)g+=1,f+=1,_+=1;return _}),"countCommonItemsF"),r=i(((g,h,f,d,S)=>{let _=0;for(;g<=h&&f<=d&&S(h,d);)h-=1,d-=1,_+=1;return _}),"countCommonItemsR"),o=i(((g,h,f,d,S,_,O)=>{let y=0,E=-g,$=_[y],T=$;_[y]+=n($+1,h,d+$-E+1,f,S);let R=g<O?g:O;for(y+=1,E+=2;y<=R;y+=1,E+=2){if(y!==g&&T<_[y])$=_[y];else if($=T+1,h<=$)return y-1;T=_[y],_[y]=$+n($+1,h,d+$-E+1,f,S)}return O}),"extendPathsF"),s=i(((g,h,f,d,S,_,O)=>{let y=0,E=g,$=_[y],T=$;_[y]-=r(h,$-1,f,d+$-E-1,S);let R=g<O?g:O;for(y+=1,E-=2;y<=R;y+=1,E-=2){if(y!==g&&_[y]<T)$=_[y];else if($=T-1,$<h)return y-1;T=_[y],_[y]=$-r(h,$-1,f,d+$-E-1,S)}return O}),"extendPathsR"),c=i(((g,h,f,d,S,_,O,y,E,$,T)=>{let R=d-h,I=S-d-(f-h),k=-I-(g-1),G=g-1-I,Y=t,N=g<y?g:y;for(let L=0,x=-g;L<=N;L+=1,x+=2){let H=0===L||L!==g&&Y<O[L],F=H?O[L]:Y,W=H?F:F+1,re=R+W-x,V=n(W+1,f,re+1,S,_),q=W+V;if(Y=O[L],O[L]=q,k<=x&&x<=G){let se=(g-1-(x+I))/2;if(se<=$&&E[se]-1<=q){let J=R+F-(H?x+1:x-1),U=r(h,F,d,J,_),ue=F-U+1,be=J-U+1;T.nChangePreceding=g-1,g-1==ue+be-h-d?(T.aEndPreceding=h,T.bEndPreceding=d):(T.aEndPreceding=ue,T.bEndPreceding=be),T.nCommonPreceding=U,0!==U&&(T.aCommonPreceding=ue,T.bCommonPreceding=be),T.nCommonFollowing=V,0!==V&&(T.aCommonFollowing=W+1,T.bCommonFollowing=re+1);let Ce=q+1,Oe=re+V+1;return T.nChangeFollowing=g-1,g-1==f+S-Ce-Oe?(T.aStartFollowing=f,T.bStartFollowing=S):(T.aStartFollowing=Ce,T.bStartFollowing=Oe),!0}}}return!1}),"extendOverlappablePathsF"),a=i(((g,h,f,d,S,_,O,y,E,$,T)=>{let R=S-f,I=S-d-(f-h),k=I-g,G=I+g,Y=t,N=g<$?g:$;for(let L=0,x=g;L<=N;L+=1,x-=2){let H=0===L||L!==g&&E[L]<Y,F=H?E[L]:Y,W=H?F:F-1,re=R+W-x,V=r(h,W-1,d,re-1,_),q=W-V;if(Y=E[L],E[L]=q,k<=x&&x<=G){let se=(g+(x-I))/2;if(se<=y&&q-1<=O[se]){let J=re-V;if(T.nChangePreceding=g,g===q+J-h-d?(T.aEndPreceding=h,T.bEndPreceding=d):(T.aEndPreceding=q,T.bEndPreceding=J),T.nCommonPreceding=V,0!==V&&(T.aCommonPreceding=q,T.bCommonPreceding=J),T.nChangeFollowing=g-1,1===g)T.nCommonFollowing=0,T.aStartFollowing=f,T.bStartFollowing=S;else{let U=R+F-(H?x-1:x+1),oe=n(F,f,U,S,_);T.nCommonFollowing=oe,0!==oe&&(T.aCommonFollowing=F,T.bCommonFollowing=U);let he=F+oe,ue=U+oe;g-1==f+S-he-ue?(T.aStartFollowing=f,T.bStartFollowing=S):(T.aStartFollowing=he,T.bStartFollowing=ue)}return!0}}}return!1}),"extendOverlappablePathsR"),u=i(((g,h,f,d,S,_,O,y,E)=>{let $=d-h,T=S-f,R=f-h,K=S-d,Q=K-R,I=R,k=R;if(O[0]=h-1,y[0]=f,Q%2==0){let G=(g||Q)/2,Y=(R+K)/2;for(let N=1;N<=Y;N+=1)if(I=o(N,f,S,$,_,O,I),N<G)k=s(N,h,d,T,_,y,k);else if(a(N,h,f,d,S,_,O,I,y,k,E))return}else{let G=((g||Q)+1)/2,Y=(R+K+1)/2,N=1;for(I=o(N,f,S,$,_,O,I),N+=1;N<=Y;N+=1)if(k=s(N-1,h,d,T,_,y,k),N<G)I=o(N,f,S,$,_,O,I);else if(c(N,h,f,d,S,_,O,I,y,k,E))return}throw new Error(`${e}: no overlap aStart=${h} aEnd=${f} bStart=${d} bEnd=${S}`)}),"divide"),m=i(((g,h,f,d,S,_,O,y,E,$)=>{if(S-d<f-h){if((_=!_)&&1===O.length){let{foundSubsequence:q,isCommon:se}=O[0];O[1]={foundSubsequence:i(((J,U,oe)=>{q(J,oe,U)}),"foundSubsequence"),isCommon:i(((J,U)=>se(U,J)),"isCommon")}}let re=h,V=f;h=d,f=S,d=re,S=V}let{foundSubsequence:T,isCommon:R}=O[_?1:0];u(g,h,f,d,S,R,y,E,$);let{nChangePreceding:K,aEndPreceding:Q,bEndPreceding:I,nCommonPreceding:k,aCommonPreceding:G,bCommonPreceding:Y,nCommonFollowing:N,aCommonFollowing:L,bCommonFollowing:x,nChangeFollowing:H,aStartFollowing:F,bStartFollowing:W}=$;h<Q&&d<I&&m(K,h,Q,d,I,_,O,y,E,$),0!==k&&T(k,G,Y),0!==N&&T(N,L,x),F<f&&W<S&&m(H,F,f,W,S,_,O,y,E,$)}),"findSubsequences"),p=i(((g,h)=>{if("number"!=typeof h)throw new TypeError(`${e}: ${g} typeof ${typeof h} is not a number`);if(!Number.isSafeInteger(h))throw new RangeError(`${e}: ${g} value ${h} is not a safe integer`);if(h<0)throw new RangeError(`${e}: ${g} value ${h} is a negative integer`)}),"validateLength"),l=i(((g,h)=>{let f=typeof h;if("function"!==f)throw new TypeError(`${e}: ${g} typeof ${f} is not a function`)}),"validateCallback");function b(g,h,f,d){p("aLength",g),p("bLength",h),l("isCommon",f),l("foundSubsequence",d);let S=n(0,g,0,h,f);if(0!==S&&d(S,0,0),g!==S||h!==S){let _=S,O=S,y=r(_,g-1,O,h-1,f),E=g-y,$=h-y,T=S+y;g!==T&&h!==T&&m(0,_,E,O,$,!1,[{foundSubsequence:d,isCommon:f}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),0!==y&&d(y,E,$)}}return i(b,"diffSequence"),Ye}i(ls,"requireBuild");var Gn=Rn(ls());function ms(e,t){return e.replace(/\s+$/,(n=>t(n)))}function wt(e,t,n,r,o,s){return 0!==e.length?n(`${r} ${ms(e,o)}`):" "!==r?n(r):t&&0!==s.length?n(`${r} ${s}`):""}function Hn(e,t,{aColor:n,aIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:s}){return wt(e,t,n,r,o,s)}function Jn(e,t,{bColor:n,bIndicator:r,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:s}){return wt(e,t,n,r,o,s)}function Xn(e,t,{commonColor:n,commonIndicator:r,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:s}){return wt(e,t,n,r,o,s)}function xn(e,t,n,r,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${n+1},${r-n} @@`)}function ps(e,t){let n=e.length,r=t.contextLines,o=r+r,s=n,c=!1,a=0,u=0;for(;u!==n;){let y=u;for(;u!==n&&0===e[u][0];)u+=1;if(y!==u)if(0===y)u>r&&(s-=u-r,c=!0);else if(u===n){let E=u-y;E>r&&(s-=E-r,c=!0)}else{let E=u-y;E>o&&(s-=E-o,a+=1)}for(;u!==n&&0!==e[u][0];)u+=1}let m=0!==a||c;0!==a?s+=a+1:c&&(s+=1);let p=s-1,l=[],b=0;m&&l.push("");let g=0,h=0,f=0,d=0,S=i((y=>{let E=l.length;l.push(Xn(y,0===E||E===p,t)),f+=1,d+=1}),"pushCommonLine"),_=i((y=>{let E=l.length;l.push(Hn(y,0===E||E===p,t)),f+=1}),"pushDeleteLine"),O=i((y=>{let E=l.length;l.push(Jn(y,0===E||E===p,t)),d+=1}),"pushInsertLine");for(u=0;u!==n;){let y=u;for(;u!==n&&0===e[u][0];)u+=1;if(y!==u)if(0===y){u>r&&(y=u-r,g=y,h=y,f=g,d=h);for(let E=y;E!==u;E+=1)S(e[E][1])}else if(u===n){let E=u-y>r?y+r:u;for(let $=y;$!==E;$+=1)S(e[$][1])}else{let E=u-y;if(E>o){let $=y+r;for(let R=y;R!==$;R+=1)S(e[R][1]);l[b]=xn(g,f,h,d,t),b=l.length,l.push("");let T=E-o;g=f+T,h=d+T,f=g,d=h;for(let R=u-r;R!==u;R+=1)S(e[R][1])}else for(let $=y;$!==u;$+=1)S(e[$][1])}for(;u!==n&&e[u][0]===z;)_(e[u][1]),u+=1;for(;u!==n&&1===e[u][0];)O(e[u][1]),u+=1}return m&&(l[b]=xn(g,f,h,d,t)),l.join("\n")}function gs(e,t){return e.map(((n,r,o)=>{let s=n[1],c=0===r||r===o.length-1;switch(n[0]){case z:return Hn(s,c,t);case 1:return Jn(s,c,t);default:return Xn(s,c,t)}})).join("\n")}i(ms,"formatTrailingSpaces"),i(wt,"printDiffLine"),i(Hn,"printDeleteLine"),i(Jn,"printInsertLine"),i(Xn,"printCommonLine"),i(xn,"createPatchMark"),i(ps,"joinAlignedDiffsNoExpand"),i(gs,"joinAlignedDiffsExpand");var Et=i((e=>e),"noColor");function ds(){return{aAnnotation:"Expected",aColor:v.green,aIndicator:"-",bAnnotation:"Received",bColor:v.red,bIndicator:"+",changeColor:v.inverse,changeLineTrailingSpaceColor:Et,commonColor:v.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Et,compareKeys:void 0,contextLines:5,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:v.yellow,printBasicPrototype:!1,truncateThreshold:0,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Et}}function ys(e){return e&&"function"==typeof e?e:void 0}function bs(e){return"number"==typeof e&&Number.isSafeInteger(e)&&e>=0?e:5}function ge(e={}){return{...ds(),...e,compareKeys:ys(e.compareKeys),contextLines:bs(e.contextLines)}}function ye(e){return 1===e.length&&0===e[0].length}function Ss(e){let t=0,n=0;return e.forEach((r=>{switch(r[0]){case z:t+=1;break;case 1:n+=1}})),{a:t,b:n}}function Es({aAnnotation:e,aColor:t,aIndicator:n,bAnnotation:r,bColor:o,bIndicator:s,includeChangeCounts:c,omitAnnotationLines:a},u){if(a)return"";let m="",p="";if(c){let g=String(u.a),h=String(u.b),f=r.length-e.length,d=" ".repeat(Math.max(0,f)),S=" ".repeat(Math.max(0,-f)),_=h.length-g.length;m=`${d} ${n} ${" ".repeat(Math.max(0,_))}${g}`,p=`${S} ${s} ${" ".repeat(Math.max(0,-_))}${h}`}let b=`${s} ${r}${p}`;return`${t(`${n} ${e}${m}`)}\n${o(b)}\n\n`}function Rt(e,t,n){return Es(n,Ss(e))+(n.expand?gs(e,n):ps(e,n))+(t?n.truncateAnnotationColor(`\n${n.truncateAnnotation}`):"")}function We(e,t,n){let r=ge(n),[o,s]=Qn(ye(e)?[]:e,ye(t)?[]:t,r);return Rt(o,s,r)}function _s(e,t,n,r,o){if(ye(e)&&ye(n)&&(e=[],n=[]),ye(t)&&ye(r)&&(t=[],r=[]),e.length!==n.length||t.length!==r.length)return We(e,t,o);let[s,c]=Qn(n,r,o),a=0,u=0;return s.forEach((m=>{switch(m[0]){case z:m[1]=e[a],a+=1;break;case 1:m[1]=t[u],u+=1;break;default:m[1]=t[u],a+=1,u+=1}})),Rt(s,c,ge(o))}function Qn(e,t,n){let r=n?.truncateThreshold??!1,o=Math.max(Math.floor(n?.truncateThreshold??0),0),s=r?Math.min(e.length,o):e.length,c=r?Math.min(t.length,o):t.length,a=s!==e.length||c!==t.length,m=[],p=0,l=0;for(Gn(s,c,i(((g,h)=>e[g]===t[h]),"isCommon"),i(((g,h,f)=>{for(;p!==h;p+=1)m.push(new P(z,e[p]));for(;l!==f;l+=1)m.push(new P(1,t[l]));for(;0!==g;g-=1,p+=1,l+=1)m.push(new P(0,t[l]))}),"foundSubsequence"));p!==s;p+=1)m.push(new P(z,e[p]));for(;l!==c;l+=1)m.push(new P(1,t[l]));return[m,a]}function Dn(e){if(void 0===e)return"undefined";if(null===e)return"null";if(Array.isArray(e))return"array";if("boolean"==typeof e)return"boolean";if("function"==typeof e)return"function";if("number"==typeof e)return"number";if("string"==typeof e)return"string";if("bigint"==typeof e)return"bigint";if("object"==typeof e){if(null!=e){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}if("symbol"==typeof e)return"symbol";throw new Error(`value of unknown type: ${e}`)}function Fn(e){return e.includes("\r\n")?"\r\n":"\n"}function Ts(e,t,n){let r=n?.truncateThreshold??!1,o=Math.max(Math.floor(n?.truncateThreshold??0),0),s=e.length,c=t.length;if(r){let g=e.includes("\n"),h=t.includes("\n"),f=Fn(e),d=Fn(t),S=g?`${e.split(f,o).join(f)}\n`:e,_=h?`${t.split(d,o).join(d)}\n`:t;s=S.length,c=_.length}let a=s!==e.length||c!==t.length,m=0,p=0,l=[];return Gn(s,c,i(((g,h)=>e[g]===t[h]),"isCommon"),i(((g,h,f)=>{m!==h&&l.push(new P(z,e.slice(m,h))),p!==f&&l.push(new P(1,t.slice(p,f))),m=h+g,p=f+g,l.push(new P(0,t.slice(f,p)))}),"foundSubsequence")),m!==s&&l.push(new P(z,e.slice(m))),p!==c&&l.push(new P(1,t.slice(p))),[l,a]}function Cs(e,t,n){return t.reduce(((r,o)=>r+(0===o[0]?o[1]:o[0]===e&&0!==o[1].length?n(o[1]):"")),"")}i(ds,"getDefaultOptions"),i(ys,"getCompareKeys"),i(bs,"getContextLines"),i(ge,"normalizeDiffOptions"),i(ye,"isEmptyString"),i(Ss,"countChanges"),i(Es,"printAnnotation"),i(Rt,"printDiffLines"),i(We,"diffLinesUnified"),i(_s,"diffLinesUnified2"),i(Qn,"diffLinesRaw"),i(Dn,"getType"),i(Fn,"getNewLineSymbol"),i(Ts,"diffStrings"),i(Cs,"concatenateRelevantDiffs");var Pt=class Pt{op;line;lines;changeColor;constructor(t,n){this.op=t,this.line=[],this.lines=[],this.changeColor=n}pushSubstring(t){this.pushDiff(new P(this.op,t))}pushLine(){this.lines.push(1!==this.line.length?new P(this.op,Cs(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new P(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return 0===this.line.length}pushDiff(t){this.line.push(t)}align(t){let n=t[1];if(n.includes("\n")){let r=n.split("\n"),o=r.length-1;r.forEach(((s,c)=>{c<o?(this.pushSubstring(s),this.pushLine()):0!==s.length&&this.pushSubstring(s)}))}else this.pushDiff(t)}moveLinesTo(t){this.isLineEmpty()||this.pushLine(),t.push(...this.lines),this.lines.length=0}};i(Pt,"ChangeBuffer");var Ue=Pt,Nt=class Nt{deleteBuffer;insertBuffer;lines;constructor(t,n){this.deleteBuffer=t,this.insertBuffer=n,this.lines=[]}pushDiffCommonLine(t){this.lines.push(t)}pushDiffChangeLines(t){let n=0===t[1].length;(!n||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(t),(!n||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(t)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(t){let n=t[0],r=t[1];if(r.includes("\n")){let o=r.split("\n"),s=o.length-1;o.forEach(((c,a)=>{if(0===a){let u=new P(n,c);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(u)):(this.pushDiffChangeLines(u),this.flushChangeLines())}else a<s?this.pushDiffCommonLine(new P(n,c)):0!==c.length&&this.pushDiffChangeLines(new P(n,c))}))}else this.pushDiffChangeLines(t)}getLines(){return this.flushChangeLines(),this.lines}};i(Nt,"CommonBuffer");var Tt=Nt;function Os(e,t){let n=new Ue(z,t),r=new Ue(1,t),o=new Tt(n,r);return e.forEach((s=>{switch(s[0]){case z:n.align(s);break;case 1:r.align(s);break;default:o.align(s)}})),o.getLines()}function $s(e,t){if(t){let n=e.length-1;return e.some(((r,o)=>0===r[0]&&(o!==n||"\n"!==r[1])))}return e.some((n=>0===n[0]))}function ws(e,t,n){if(e!==t&&0!==e.length&&0!==t.length){let r=e.includes("\n")||t.includes("\n"),[o,s]=vn(r?`${e}\n`:e,r?`${t}\n`:t,!0,n);if($s(o,r)){let c=ge(n);return Rt(Os(o,c.changeColor),s,c)}}return We(e.split("\n"),t.split("\n"),n)}function vn(e,t,n,r){let[o,s]=Ts(e,t,r);return n&&ss(o),[o,s]}function Ct(e,t){let{commonColor:n}=ge(t);return n(e)}i(Os,"getAlignedDiffs"),i($s,"hasCommonDiff"),i(ws,"diffStringsUnified"),i(vn,"diffStringsRaw"),i(Ct,"getCommonMessage");var{AsymmetricMatcher:Rs,DOMCollection:As,DOMElement:Ps,Immutable:Ns,ReactElement:Is,ReactTestComponent:Ms}=_e,er=[Ms,Is,Ps,As,Ns,Rs,_e.Error],Ot={maxDepth:20,plugins:er},tr={callToJSON:!1,maxDepth:8,plugins:er};function Ls(e,t,n){if(Object.is(e,t))return"";let r=Dn(e),o=r,s=!1;if("object"===r&&"function"==typeof e.asymmetricMatch){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||"function"!=typeof e.getExpectedType)return;o=e.getExpectedType(),s="string"===o}if(o!==Dn(t)){let d=function(O){return O.length<=f?O:`${O.slice(0,f)}...`};i(d,"truncate");let{aAnnotation:c,aColor:a,aIndicator:u,bAnnotation:m,bColor:p,bIndicator:l}=ge(n),b=$t(tr,n),g=X(e,b),h=X(t,b),f=1e5;return g=d(g),h=d(h),`${`${a(`${u} ${c}:`)} \n${g}`}\n\n${`${p(`${l} ${m}:`)} \n${h}`}`}if(!s)switch(r){case"string":return We(e.split("\n"),t.split("\n"),n);case"boolean":case"number":return xs(e,t,n);case"map":return _t(jn(e),jn(t),n);case"set":return _t(kn(e),kn(t),n);default:return _t(e,t,n)}}function xs(e,t,n){let r=X(e,Ot),o=X(t,Ot);return r===o?"":We(r.split("\n"),o.split("\n"),n)}function jn(e){return new Map(Array.from(e.entries()).sort())}function kn(e){return new Set(Array.from(e.values()).sort())}function _t(e,t,n){let r,o=!1;try{r=Bn(e,t,$t(Ot,n),n)}catch{o=!0}let s=Ct(Kn,n);if(void 0===r||r===s){r=Bn(e,t,$t(tr,n),n),r!==s&&!o&&(r=`${Ct("Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",n)}\n\n${r}`)}return r}function $t(e,t){let{compareKeys:n,printBasicPrototype:r,maxDepth:o}=ge(t);return{...e,compareKeys:n,printBasicPrototype:r,maxDepth:o??e.maxDepth}}function Bn(e,t,n,r){let o={...n,indent:0},s=X(e,o),c=X(t,o);if(s===c)return Ct(Kn,r);{let a=X(e,n),u=X(t,n);return _s(a.split("\n"),u.split("\n"),s.split("\n"),c.split("\n"),r)}}i(Ls,"diff"),i(xs,"comparePrimitive"),i(jn,"sortMap"),i(kn,"sortSet"),i(_t,"compareObjects"),i($t,"getFormatOptions"),i(Bn,"getObjectsDifference");function Yn(e){return"Object"===Be(e)&&"function"==typeof e.asymmetricMatch}function Un(e,t){let n=Be(e);return n===Be(t)&&("Object"===n||"Array"===n)}function nr(e,t,n){let{aAnnotation:r,bAnnotation:o}=ge(n);if("string"==typeof t&&"string"==typeof e&&t.length>0&&e.length>0&&t.length<=2e4&&e.length<=2e4&&t!==e){if(t.includes("\n")||e.includes("\n"))return ws(t,e,n);let[p]=vn(t,e,!0),l=p.some((f=>0===f[0])),b=Ds(r,o);return`${b(r)+ks(Wn(p,z,l))}\n${b(o)+js(Wn(p,1,l))}`}let s=St(t,{forceWritable:!0}),c=St(e,{forceWritable:!0}),{replacedExpected:a,replacedActual:u}=rr(c,s);return Ls(a,u,n)}function rr(e,t,n=new WeakSet,r=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):Un(e,t)?(n.has(e)||r.has(t)||(n.add(e),r.add(t),bt(t).forEach((o=>{let s=t[o],c=e[o];if(Yn(s))s.asymmetricMatch(c)&&(e[o]=s);else if(Yn(c))c.asymmetricMatch(s)&&(t[o]=c);else if(Un(c,s)){let a=rr(c,s,n,r);e[o]=a.replacedActual,t[o]=a.replacedExpected}}))),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}function Ds(...e){let t=e.reduce(((n,r)=>r.length>n?r.length:n),0);return n=>`${n}: ${" ".repeat(t-n.length)}`}i(Yn,"isAsymmetricMatcher"),i(Un,"isReplaceable"),i(nr,"printDiffOrStringify"),i(rr,"replaceAsymmetricMatcher"),i(Ds,"getLabelPrinter");var Fs="·";function or(e){return e.replace(/\s+$/gm,(t=>Fs.repeat(t.length)))}function js(e){return v.red(or(pe(e)))}function ks(e){return v.green(or(pe(e)))}function Wn(e,t,n){return e.reduce(((r,o)=>r+(0===o[0]?o[1]:o[0]===t?n?v.inverse(o[1]):o[1]:"")),"")}i(or,"replaceTrailingSpaces"),i(js,"printReceived"),i(ks,"printExpected"),i(Wn,"getCommonAndChangedSubstrings");function Ys(e){return e&&(e["@@__IMMUTABLE_ITERABLE__@@"]||e["@@__IMMUTABLE_RECORD__@@"])}i(Ys,"isImmutable");var Us=Object.getPrototypeOf({});function sr(e){return e instanceof Error?`<unserializable>: ${e.message}`:"string"==typeof e?`<unserializable>: ${e}`:"<unserializable>"}function le(e,t=new WeakMap){if(!e||"string"==typeof e)return e;if(e instanceof Error&&"toJSON"in e&&"function"==typeof e.toJSON){let n=e.toJSON();return n&&n!==e&&"object"==typeof n&&("string"==typeof e.message&&Ve((()=>n.message??(n.message=e.message))),"string"==typeof e.stack&&Ve((()=>n.stack??(n.stack=e.stack))),"string"==typeof e.name&&Ve((()=>n.name??(n.name=e.name))),null!=e.cause&&Ve((()=>n.cause??(n.cause=le(e.cause,t))))),le(n,t)}if("function"==typeof e)return`Function<${e.name||"anonymous"}>`;if("symbol"==typeof e)return e.toString();if("object"!=typeof e)return e;if(typeof Buffer<"u"&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(Ys(e))return le(e.toJSON(),t);if(e instanceof Promise||e.constructor&&"AsyncFunction"===e.constructor.prototype)return"Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if("function"==typeof e.asymmetricMatch)return`${e.toString()} ${wn(e.sample)}`;if("function"==typeof e.toJSON)return le(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let n=new Array(e.length);return t.set(e,n),e.forEach(((r,o)=>{try{n[o]=le(r,t)}catch(s){n[o]=sr(s)}})),n}{let n=Object.create(null);t.set(e,n);let r=e;for(;r&&r!==Us;)Object.getOwnPropertyNames(r).forEach((o=>{if(!(o in n))try{n[o]=le(e[o],t)}catch(s){delete n[o],n[o]=sr(s)}})),r=Object.getPrototypeOf(r);return n}}function Ve(e){try{return e()}catch{}}function Ws(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}function It(e,t,n=new WeakSet){if(!e||"object"!=typeof e)return{message:String(e)};let r=e;(r.showDiff||void 0===r.showDiff&&void 0!==r.expected&&void 0!==r.actual)&&(r.diff=nr(r.actual,r.expected,{...t,...r.diffOptions})),"expected"in r&&"string"!=typeof r.expected&&(r.expected=pe(r.expected,10)),"actual"in r&&"string"!=typeof r.actual&&(r.actual=pe(r.actual,10));try{"string"==typeof r.message&&(r.message=Ws(r.message))}catch{}try{!n.has(r)&&"object"==typeof r.cause&&(n.add(r),r.cause=It(r.cause,t,n))}catch{}try{return le(r)}catch(o){return le(new Error(`Failed to fully serialize error: ${o?.message}\nInner error message: ${r?.message}`))}}i(sr,"getUnserializableMessage"),i(le,"serializeValue"),i(Ve,"safe"),i(Ws,"normalizeErrorMessage"),i(It,"processError");var ne_CALL="storybook/instrumenter/call",ne_SYNC="storybook/instrumenter/sync",ne_START="storybook/instrumenter/start",ne_BACK="storybook/instrumenter/back",ne_GOTO="storybook/instrumenter/goto",ne_NEXT="storybook/instrumenter/next",ne_END="storybook/instrumenter/end",qe=globalThis.__STORYBOOK_ADDONS_PREVIEW,Hs=new Error("This function ran after the play function completed. Did you forget to `await` it?"),cr=i((e=>"[object Object]"===Object.prototype.toString.call(e)),"isObject"),Js=i((e=>"[object Module]"===Object.prototype.toString.call(e)),"isModule"),Xs=i((e=>{if(!cr(e)&&!Js(e))return!1;if(void 0===e.constructor)return!0;let t=e.constructor.prototype;return!!cr(t)}),"isInstrumentable"),Zs=i((e=>{try{return new e.constructor}catch{return{}}}),"construct"),Mt=i((()=>({renderPhase:"preparing",isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0})),"getInitialState"),ur=i(((e,t=!1)=>{let n=(t?e.shadowCalls:e.calls).filter((o=>o.retain));if(!n.length)return;let r=new Map(Array.from(e.callRefsByResult.entries()).filter((([,o])=>o.retain)));return{cursor:n.length,calls:n,callRefsByResult:r}}),"getRetainedState"),xt=class xt{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=i((()=>{try{this.state=external_STORYBOOK_MODULE_GLOBAL_.global.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}}),"loadParentWindowState"),this.updateParentWindowState=i((()=>{try{external_STORYBOOK_MODULE_GLOBAL_.global.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}}),"updateParentWindowState"),this.loadParentWindowState();let t=i((({storyId:u,renderPhase:m,isPlaying:p=!0,isDebugging:l=!1})=>{let b=this.getState(u);this.setState(u,{...Mt(),...ur(b,l),renderPhase:m||b.renderPhase,shadowCalls:l?b.shadowCalls:[],chainedCallIds:l?b.chainedCallIds:new Set,playUntil:l?b.playUntil:void 0,isPlaying:p,isDebugging:l}),this.sync(u)}),"resetState"),n=i((u=>({storyId:m,playUntil:p})=>{this.getState(m).isDebugging||this.setState(m,(({calls:b})=>({calls:[],shadowCalls:b.map((g=>({...g,status:"waiting"}))),isDebugging:!0})));let l=this.getLog(m);this.setState(m,(({shadowCalls:b})=>{if(p||!l.length)return{playUntil:p};let g=b.findIndex((h=>h.id===l[0].callId));return{playUntil:b.slice(0,g).filter((h=>h.interceptable&&!h.ancestors?.length)).slice(-1)[0]?.id}})),u.emit(external_STORYBOOK_MODULE_CORE_EVENTS_.FORCE_REMOUNT,{storyId:m,isDebugging:!0})}),"start"),r=i((u=>({storyId:m})=>{let p=this.getLog(m).filter((b=>!b.ancestors?.length)),l=p.reduceRight(((b,g,h)=>b>=0||"waiting"===g.status?b:h),-1);n(u)({storyId:m,playUntil:p[l-1]?.callId})}),"back"),o=i((u=>({storyId:m,callId:p})=>{let{calls:l,shadowCalls:b,resolvers:g}=this.getState(m),h=l.find((({id:d})=>d===p)),f=b.find((({id:d})=>d===p));if(!h&&f&&Object.values(g).length>0){let d=this.getLog(m).find((S=>"waiting"===S.status))?.callId;f.id!==d&&this.setState(m,{playUntil:f.id}),Object.values(g).forEach((S=>S()))}else n(u)({storyId:m,playUntil:p})}),"goto"),s=i((u=>({storyId:m})=>{let{resolvers:p}=this.getState(m);if(Object.values(p).length>0)Object.values(p).forEach((l=>l()));else{let l=this.getLog(m).find((b=>"waiting"===b.status))?.callId;l?n(u)({storyId:m,playUntil:l}):c({storyId:m})}}),"next"),c=i((({storyId:u})=>{this.setState(u,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(u).resolvers).forEach((m=>m()))}),"end"),a=i((({storyId:u,newPhase:m})=>{let{isDebugging:p}=this.getState(u);return"preparing"===m&&p?t({storyId:u,renderPhase:m}):"playing"===m?t({storyId:u,renderPhase:m,isDebugging:p}):("played"===m?this.setState(u,{renderPhase:m,isLocked:!1,isPlaying:!1,isDebugging:!1}):"errored"===m?this.setState(u,{renderPhase:m,isLocked:!1,isPlaying:!1}):"aborted"===m?this.setState(u,{renderPhase:m,isLocked:!0,isPlaying:!1}):this.setState(u,{renderPhase:m}),void this.sync(u))}),"renderPhaseChanged");qe&&qe.ready().then((()=>{this.channel=qe.getChannel(),this.channel.on(external_STORYBOOK_MODULE_CORE_EVENTS_.FORCE_REMOUNT,t),this.channel.on(external_STORYBOOK_MODULE_CORE_EVENTS_.STORY_RENDER_PHASE_CHANGED,a),this.channel.on(external_STORYBOOK_MODULE_CORE_EVENTS_.SET_CURRENT_STORY,(()=>{this.initialized?this.cleanup():this.initialized=!0})),this.channel.on(ne_START,n(this.channel)),this.channel.on(ne_BACK,r(this.channel)),this.channel.on(ne_GOTO,o(this.channel)),this.channel.on(ne_NEXT,s(this.channel)),this.channel.on(ne_END,c)}))}getState(t){return this.state[t]||Mt()}setState(t,n){if(t){let r=this.getState(t),o="function"==typeof n?n(r):n;this.state={...this.state,[t]:{...r,...o}},this.updateParentWindowState()}}cleanup(){this.state=Object.entries(this.state).reduce(((r,[o,s])=>{let c=ur(s);return c&&(r[o]=Object.assign(Mt(),c)),r}),{});let n={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(ne_SYNC,n),this.updateParentWindowState()}getLog(t){let{calls:n,shadowCalls:r}=this.getState(t),o=[...r];n.forEach(((c,a)=>{o[a]=c}));let s=new Set;return o.reduceRight(((c,a)=>(a.args.forEach((u=>{u?.__callId__&&s.add(u.__callId__)})),a.path.forEach((u=>{u.__callId__&&s.add(u.__callId__)})),(a.interceptable||a.exception)&&!s.has(a.id)&&(c.unshift({callId:a.id,status:a.status,ancestors:a.ancestors}),s.add(a.id)),c)),[])}instrument(t,n,r=0){if(!Xs(t))return t;let{mutate:o=!1,path:s=[]}=n,c=n.getKeys?n.getKeys(t,r):Object.keys(t);return r+=1,c.reduce(((a,u)=>{let m=vs(t,u);if("function"==typeof m?.get){if(m.configurable){let l=i((()=>m?.get?.bind(t)?.()),"getter");Object.defineProperty(a,u,{get:i((()=>this.instrument(l(),{...n,path:s.concat(u)},r)),"get")})}return a}let p=t[u];return"function"!=typeof p?(a[u]=this.instrument(p,{...n,path:s.concat(u)},r),a):"__originalFn__"in p&&"function"==typeof p.__originalFn__?(a[u]=p,a):(a[u]=(...l)=>this.track(u,p,t,l,n),a[u].__originalFn__=p,Object.defineProperty(a[u],"name",{value:u,writable:!1}),Object.keys(p).length>0&&Object.assign(a[u],this.instrument({...p},{...n,path:s.concat(u)},r)),a)}),o?t:Zs(t))}track(t,n,r,o,s){let c=o?.[0]?.__storyId__||external_STORYBOOK_MODULE_GLOBAL_.global.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:a,ancestors:u}=this.getState(c);this.setState(c,{cursor:a+1});let m=`${u.slice(-1)[0]||c} [${a}] ${t}`,{path:p=[],intercept:l=!1,retain:b=!1}=s,g="function"==typeof l?l(t,p):l,h={id:m,cursor:a,storyId:c,ancestors:u,path:p,method:t,args:o,interceptable:g,retain:b},d=(g&&!u.length?this.intercept:this.invoke).call(this,n,r,h,s);return this.instrument(d,{...s,mutate:!0,path:[{__callId__:h.id}]})}intercept(t,n,r,o){let{chainedCallIds:s,isDebugging:c,playUntil:a}=this.getState(r.storyId),u=s.has(r.id);return!c||u||a?(a===r.id&&this.setState(r.storyId,{playUntil:void 0}),this.invoke(t,n,r,o)):new Promise((m=>{this.setState(r.storyId,(({resolvers:p})=>({isLocked:!1,resolvers:{...p,[r.id]:m}})))})).then((()=>(this.setState(r.storyId,(m=>{let{[r.id]:p,...l}=m.resolvers;return{isLocked:!0,resolvers:l}})),this.invoke(t,n,r,o))))}invoke(t,n,r,o){let{callRefsByResult:s,renderPhase:c}=this.getState(r.storyId),u=i(((l,b,g)=>{if(g.includes(l))return"[Circular]";if(g=[...g,l],b>25)return"...";if(s.has(l))return s.get(l);if(l instanceof Array)return l.map((h=>u(h,++b,g)));if(l instanceof Date)return{__date__:{value:l.toISOString()}};if(l instanceof Error){let{name:h,message:f,stack:d}=l;return{__error__:{name:h,message:f,stack:d}}}if(l instanceof RegExp){let{flags:h,source:f}=l;return{__regexp__:{flags:h,source:f}}}if(l instanceof external_STORYBOOK_MODULE_GLOBAL_.global.window?.HTMLElement){let{prefix:h,localName:f,id:d,classList:S,innerText:_}=l;return{__element__:{prefix:h,localName:f,id:d,classNames:Array.from(S),innerText:_}}}return"function"==typeof l?{__function__:{name:"getMockName"in l?l.getMockName():l.name}}:"symbol"==typeof l?{__symbol__:{description:l.description}}:"object"==typeof l&&l?.constructor?.name&&"Object"!==l?.constructor?.name?{__class__:{name:l.constructor.name}}:"[object Object]"===Object.prototype.toString.call(l)?Object.fromEntries(Object.entries(l).map((([h,f])=>[h,u(f,++b,g)]))):l}),"serializeValues"),m={...r,args:r.args.map((l=>u(l,0,[])))};r.path.forEach((l=>{l?.__callId__&&this.setState(r.storyId,(({chainedCallIds:b})=>({chainedCallIds:new Set(Array.from(b).concat(l.__callId__))})))}));let p=i((l=>{if(l instanceof Error){let{name:b,message:g,stack:h,callId:f=r.id}=l,{showDiff:d,diff:S,actual:_,expected:O}="AssertionError"===l.name?It(l):l,y={name:b,message:g,stack:h,callId:f,showDiff:d,diff:S,actual:_,expected:O};if(this.update({...m,status:"error",exception:y}),this.setState(r.storyId,(E=>({callRefsByResult:new Map([...Array.from(E.callRefsByResult.entries()),[l,{__callId__:r.id,retain:r.retain}]])}))),r.ancestors?.length)throw Object.prototype.hasOwnProperty.call(l,"callId")||Object.defineProperty(l,"callId",{value:r.id}),l}throw l}),"handleException");try{if("played"===c&&!r.retain)throw Hs;let b=(o.getArgs?o.getArgs(r,this.getState(r.storyId)):r.args).map((h=>"function"!=typeof h||ei(h)||Object.keys(h).length?h:(...f)=>{let{cursor:d,ancestors:S}=this.getState(r.storyId);this.setState(r.storyId,{cursor:0,ancestors:[...S,r.id]});let _=i((()=>this.setState(r.storyId,{cursor:d,ancestors:S})),"restore"),O=!1;try{let y=h(...f);return y instanceof Promise?(O=!0,y.finally(_)):y}finally{O||_()}})),g=t.apply(n,b);return g&&["object","function","symbol"].includes(typeof g)&&this.setState(r.storyId,(h=>({callRefsByResult:new Map([...Array.from(h.callRefsByResult.entries()),[g,{__callId__:r.id,retain:r.retain}]])}))),this.update({...m,status:g instanceof Promise?"active":"done"}),g instanceof Promise?g.then((h=>(this.update({...m,status:"done"}),h)),p):g}catch(l){return p(l)}}update(t){this.channel?.emit(ne_CALL,t),this.setState(t.storyId,(({calls:n})=>{let r=n.concat(t).reduce(((o,s)=>Object.assign(o,{[s.id]:s})),{});return{calls:Object.values(r).sort(((o,s)=>o.id.localeCompare(s.id,void 0,{numeric:!0})))}})),this.sync(t.storyId)}sync(t){let n=i((()=>{let{isLocked:r,isPlaying:o}=this.getState(t),s=this.getLog(t),c=s.filter((({ancestors:l})=>!l.length)).find((l=>"waiting"===l.status))?.callId,a=s.some((l=>"active"===l.status));if(this.detached||r||a||0===s.length){let b={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:s};return void this.channel?.emit(ne_SYNC,b)}let u=s.some((l=>"done"===l.status||"error"===l.status)),p={controlStates:{detached:this.detached,start:u,back:u,goto:!0,next:o,end:o},logItems:s,pausedAt:c};this.channel?.emit(ne_SYNC,p)}),"synchronize");this.setState(t,(({syncTimeout:r})=>(clearTimeout(r),{syncTimeout:setTimeout(n,0)})))}};i(xt,"Instrumenter");var Lt=xt;function Qs(e,t={}){try{let n=!1,r=!1;return external_STORYBOOK_MODULE_GLOBAL_.global.window?.location?.search?.includes("instrument=true")?n=!0:external_STORYBOOK_MODULE_GLOBAL_.global.window?.location?.search?.includes("instrument=false")&&(r=!0),external_STORYBOOK_MODULE_GLOBAL_.global.window?.parent===external_STORYBOOK_MODULE_GLOBAL_.global.window&&!n||r?e:(external_STORYBOOK_MODULE_GLOBAL_.global.window&&!external_STORYBOOK_MODULE_GLOBAL_.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(external_STORYBOOK_MODULE_GLOBAL_.global.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new Lt),(external_STORYBOOK_MODULE_GLOBAL_.global.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(n){return external_STORYBOOK_MODULE_CLIENT_LOGGER_.once.warn(n),e}}function vs(e,t){let n=e;for(;null!=n;){let r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function ei(e){if("function"!=typeof e)return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return!!t&&!t.writable}i(Qs,"instrument"),i(vs,"getPropertyDescriptor"),i(ei,"isClass");var e,t,csf_Br=Object.create,csf_ce=Object.defineProperty,csf_zr=Object.getOwnPropertyDescriptor,csf_Ur=Object.getOwnPropertyNames,csf_Gr=Object.getPrototypeOf,csf_Wr=Object.prototype.hasOwnProperty,n=(e,t)=>csf_ce(e,"name",{value:t,configurable:!0}),csf_xt=(e,t)=>{for(var r in t)csf_ce(e,r,{get:t[r],enumerable:!0})},csf_Tt=(e=Ee=>{Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.isEqual=function(){var e=Object.prototype.toString,t=Object.getPrototypeOf,r=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,i){return n((function s(a,p,c){var l,y,u,h=e.call(a),T=e.call(p);if(a===p)return!0;if(null==a||null==p)return!1;if(c.indexOf(a)>-1&&c.indexOf(p)>-1)return!0;if(c.push(a,p),h!=T||(l=r(a),y=r(p),l.length!=y.length||l.some((function(R){return!s(a[R],p[R],c)}))))return!1;switch(h.slice(8,-1)){case"Symbol":return a.valueOf()==p.valueOf();case"Date":case"Number":return+a==+p||+a!=+a&&+p!=+p;case"RegExp":case"Function":case"String":case"Boolean":return""+a==""+p;case"Set":case"Map":l=a.entries(),y=p.entries();do{if(!s((u=l.next()).value,y.next().value,c))return!1}while(!u.done);return!0;case"ArrayBuffer":a=new Uint8Array(a),p=new Uint8Array(p);case"DataView":a=new Uint8Array(a.buffer),p=new Uint8Array(p.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(a.length!=p.length)return!1;for(u=0;u<a.length;u++)if((u in a||u in p)&&(u in a!=u in p||!s(a[u],p[u],c)))return!1;return!0;case"Object":return s(t(a),t(p),c);default:return!1}}),"n")(o,i,[])}}()},()=>(t||e((t={exports:{}}).exports,t),t.exports));function csf_bt(e){return e.replace(/_/g," ").replace(/-/g," ").replace(/\./g," ").replace(/([^\n])([A-Z])([a-z])/g,((t,r,o,i)=>`${r} ${o}${i}`)).replace(/([a-z])([A-Z])/g,((t,r,o)=>`${r} ${o}`)).replace(/([a-z])([0-9])/gi,((t,r,o)=>`${r} ${o}`)).replace(/([0-9])([a-z])/gi,((t,r,o)=>`${r} ${o}`)).replace(/(\s|^)(\w)/g,((t,r,o)=>`${r}${o.toUpperCase()}`)).replace(/ +/g," ").trim()}n(csf_bt,"toStartCaseStr");var Ce=((e,t,r)=>(r=null!=e?csf_Br(csf_Gr(e)):{},((e,t,r,o)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of csf_Ur(t))!csf_Wr.call(e,i)&&i!==r&&csf_ce(e,i,{get:()=>t[i],enumerable:!(o=csf_zr(t,i))||o.enumerable});return e})(!t&&e&&e.__esModule?r:csf_ce(r,"default",{value:e,enumerable:!0}),e)))(csf_Tt(),1),csf_St=n((e=>e.map((t=>typeof t<"u")).filter(Boolean).length),"count"),csf_qr=n(((e,t)=>{let{exists:r,eq:o,neq:i,truthy:s}=e;if(csf_St([r,o,i,s])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:o,neq:i})}`);if(typeof o<"u")return(0,Ce.isEqual)(t,o);if(typeof i<"u")return!(0,Ce.isEqual)(t,i);if(typeof r<"u"){let p=typeof t<"u";return r?p:!p}return typeof s>"u"||s?!!t:!t}),"testValue"),csf_Xr=n(((e,t,r)=>{if(!e.if)return!0;let{arg:o,global:i}=e.if;if(1!==csf_St([o,i]))throw new Error(`Invalid conditional value ${JSON.stringify({arg:o,global:i})}`);let s=o?t[o]:r[i];return csf_qr(e.if,s)}),"includeConditionalArg");function csf_At(){let e={setHandler:n((()=>{}),"setHandler"),send:n((()=>{}),"send")};return new external_STORYBOOK_MODULE_CHANNELS_.Channel({transport:e})}n(csf_At,"mockChannel");var csf_Me=class Me{constructor(){this.getChannel=n((()=>{if(!this.channel){let t=csf_At();return this.setChannel(t),t}return this.channel}),"getChannel"),this.ready=n((()=>this.promise),"ready"),this.hasChannel=n((()=>!!this.channel),"hasChannel"),this.setChannel=n((t=>{this.channel=t,this.resolve()}),"setChannel"),this.promise=new Promise((t=>{this.resolve=()=>t(this.getChannel())}))}};n(csf_Me,"AddonStore");var csf_Pe=csf_Me,csf_ke="__STORYBOOK_ADDONS_PREVIEW";function csf_Jr(){return external_STORYBOOK_MODULE_GLOBAL_.global[csf_ke]||(external_STORYBOOK_MODULE_GLOBAL_.global[csf_ke]=new csf_Pe),external_STORYBOOK_MODULE_GLOBAL_.global[csf_ke]}n(csf_Jr,"getAddonsStore");var Oe=csf_Jr(),csf_Ie=class Ie{constructor(){this.hookListsMap=void 0,this.mountedDecorators=void 0,this.prevMountedDecorators=void 0,this.currentHooks=void 0,this.nextHookIndex=void 0,this.currentPhase=void 0,this.currentEffects=void 0,this.prevEffects=void 0,this.currentDecoratorName=void 0,this.hasUpdates=void 0,this.currentContext=void 0,this.renderListener=n((t=>{t===this.currentContext?.id&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())}),"renderListener"),this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach((t=>{t.destroy&&t.destroy()})),this.init(),this.removeRenderListeners()}getNextHook(){let t=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,t}triggerEffects(){this.prevEffects.forEach((t=>{!this.currentEffects.includes(t)&&t.destroy&&t.destroy()})),this.currentEffects.forEach((t=>{this.prevEffects.includes(t)||(t.destroy=t.create())})),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),Oe.getChannel().on(external_STORYBOOK_MODULE_CORE_EVENTS_.STORY_RENDERED,this.renderListener)}removeRenderListeners(){Oe.getChannel().removeListener(external_STORYBOOK_MODULE_CORE_EVENTS_.STORY_RENDERED,this.renderListener)}};n(csf_Ie,"HooksContext");var csf_de=csf_Ie;function csf_wt(e){let t=n(((...r)=>{let{hooks:o}="function"==typeof r[0]?r[1]:r[0],i=o.currentPhase,s=o.currentHooks,a=o.nextHookIndex,p=o.currentDecoratorName;o.currentDecoratorName=e.name,o.prevMountedDecorators.has(e)?(o.currentPhase="UPDATE",o.currentHooks=o.hookListsMap.get(e)||[]):(o.currentPhase="MOUNT",o.currentHooks=[],o.hookListsMap.set(e,o.currentHooks),o.prevMountedDecorators.add(e)),o.nextHookIndex=0;let c=external_STORYBOOK_MODULE_GLOBAL_.global.STORYBOOK_HOOKS_CONTEXT;external_STORYBOOK_MODULE_GLOBAL_.global.STORYBOOK_HOOKS_CONTEXT=o;let l=e(...r);if(external_STORYBOOK_MODULE_GLOBAL_.global.STORYBOOK_HOOKS_CONTEXT=c,"UPDATE"===o.currentPhase&&null!=o.getNextHook())throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return o.currentPhase=i,o.currentHooks=s,o.nextHookIndex=a,o.currentDecoratorName=p,l}),"hookified");return t.originalFn=e,t}n(csf_wt,"hookify");var csf_Fe=0,csf_Et=n((e=>(t,r)=>{let o=e(csf_wt(t),r.map((i=>csf_wt(i))));return i=>{let{hooks:s}=i;s.prevMountedDecorators??=new Set,s.mountedDecorators=new Set([t,...r]),s.currentContext=i,s.hasUpdates=!1;let a=o(i);for(csf_Fe=1;s.hasUpdates;)if(s.hasUpdates=!1,s.currentEffects=[],a=o(i),(csf_Fe+=1)>25)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return s.addRenderListeners(),a}}),"applyHooks");function csf_ee(e){if(!e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&"[object Object]"===Object.prototype.toString.call(e)}function U(e,t){let r={},o=Object.keys(e);for(let i=0;i<o.length;i++){let s=o[i],a=e[s];r[s]=t(a,s,e)}return r}function csf_Le(e,t){let r={},o=Object.keys(e);for(let i=0;i<o.length;i++){let s=o[i],a=e[s];t(a,s)&&(r[s]=a)}return r}function W(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var o=Array.from("string"==typeof e?[e]:e);o[o.length-1]=o[o.length-1].replace(/\r?\n([\t ]*)$/,"");var i=o.reduce((function(p,c){var l=c.match(/\n([\t ]+|(?!\s).)/g);return l?p.concat(l.map((function(y){var u,h;return null!==(h=null===(u=y.match(/[\t ]/g))||void 0===u?void 0:u.length)&&void 0!==h?h:0}))):p}),[]);if(i.length){var s=new RegExp("\n[\t ]{"+Math.min.apply(Math,i)+"}","g");o=o.map((function(p){return p.replace(s,"\n")}))}o[0]=o[0].replace(/^\r?\n/,"");var a=o[0];return t.forEach((function(p,c){var l=a.match(/(?:^|\n)( *)$/),y=l?l[1]:"",u=p;"string"==typeof p&&p.includes("\n")&&(u=String(p).split("\n").map((function(h,T){return 0===T?h:""+y+h})).join("\n")),a+=u+o[c+1]})),a}n(csf_ee,"isPlainObject"),n(U,"mapValues"),n(csf_Le,"pickBy"),n(W,"dedent");Symbol("incompatible"),Symbol("Deeply equal");var csf_De="UNTARGETED";function csf_Ct({args:e,argTypes:t}){let r={};return Object.entries(e).forEach((([o,i])=>{let{target:s=csf_De}=t[o]||{};r[s]=r[s]||{},r[s][o]=i})),r}n(csf_Ct,"groupArgsByTarget");var csf_vt=n(((e={})=>Object.entries(e).reduce(((t,[r,{defaultValue:o}])=>(typeof o<"u"&&(t[r]=o),t)),{})),"getValuesFromArgTypes"),csf_eo=n((e=>"string"==typeof e?{name:e}:e),"normalizeType"),csf_to=n((e=>"string"==typeof e?{type:e}:e),"normalizeControl"),csf_ro=n(((e,t)=>{let{type:r,control:o,...i}=e,s={name:t,...i};return r&&(s.type=csf_eo(r)),o?s.control=csf_to(o):!1===o&&(s.control={disable:!0}),s}),"normalizeInputType"),K=n((e=>U(e,csf_ro)),"normalizeInputTypes"),b=n((e=>Array.isArray(e)?e:e?[e]:[]),"normalizeArrays"),csf_ao=W` CSF .story annotations deprecated; annotate story functions directly: - StoryFn.story.name => StoryFn.storyName - StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators) See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod. `;function csf_e(e,t,r){let o=t,i="function"==typeof t?t:null,{story:s}=o;s&&(external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.debug("deprecated story",s),(0,external_STORYBOOK_MODULE_CLIENT_LOGGER_.deprecate)(csf_ao));let a=cc(e),p="function"!=typeof o&&o.name||o.storyName||s?.name||a,c=[...b(o.decorators),...b(s?.decorators)],l={...s?.parameters,...o.parameters},y={...s?.args,...o.args},u={...s?.argTypes,...o.argTypes},h=[...b(o.loaders),...b(s?.loaders)],T=[...b(o.beforeEach),...b(s?.beforeEach)],R=[...b(o.afterEach),...b(s?.afterEach)],{render:P,play:L,tags:O=[],globals:F={}}=o;return{moduleExport:t,id:l.__id||lc(r.id,a),name:p,tags:O,decorators:c,parameters:l,args:y,argTypes:K(u),loaders:h,beforeEach:T,afterEach:R,globals:F,...P&&{render:P},...i&&{userStoryFn:i},...L&&{play:L}}}function csf_kt(e,t=e.title,r){let{id:o,argTypes:i}=e;return{id:csf_jn(o||t),...e,title:t,...i&&{argTypes:K(i)},parameters:{fileName:r,...e.parameters}}}function csf_Ot(e){return null!=e&&csf_lo(e).includes("mount")}function csf_lo(e){let t=e.toString().match(/[^(]*\(([^)]*)/);if(!t)return[];let r=csf_Pt(t[1]);if(!r.length)return[];let o=r[0];return o.startsWith("{")&&o.endsWith("}")?csf_Pt(o.slice(1,-1).replace(/\s/g,"")).map((s=>s.replace(/:.*|=.*/g,""))):[]}function csf_Pt(e){let t=[],r=[],o=0;for(let s=0;s<e.length;s++)if("{"===e[s]||"["===e[s])r.push("{"===e[s]?"}":"]");else if(e[s]===r[r.length-1])r.pop();else if(!r.length&&","===e[s]){let a=e.substring(o,s).trim();a&&t.push(a),o=s+1}let i=e.substring(o).trim();return i&&t.push(i),t}function csf_Mt(e,t,r){let o=r(e);return i=>t(o,i)}function csf_$t({componentId:e,title:t,kind:r,id:o,name:i,story:s,parameters:a,initialArgs:p,argTypes:c,...l}={}){return l}function csf_He(e,t){let r={},o=n((s=>a=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...csf_$t(a)},s(r.value)}),"bindWithContext"),i=t.reduce(((s,a)=>csf_Mt(s,a,o)),e);return s=>(r.value=s,i(s))}n(csf_e,"normalizeStory"),n(csf_kt,"normalizeComponentAnnotations"),n(csf_Ot,"mountDestructured"),n(csf_lo,"getUsedProps"),n(csf_Pt,"splitByComma"),n(csf_Mt,"decorateStory"),n(csf_$t,"sanitizeStoryContextUpdate"),n(csf_He,"defaultDecorateStory");var csf_D=n(((...e)=>{let t={},r=e.filter(Boolean),o=r.reduce(((i,s)=>(Object.entries(s).forEach((([a,p])=>{let c=i[a];Array.isArray(p)||typeof c>"u"?i[a]=p:csf_ee(p)&&csf_ee(c)?t[a]=!0:typeof p<"u"&&(i[a]=p)})),i)),{});return Object.keys(t).forEach((i=>{let s=r.filter(Boolean).map((a=>a[i])).filter((a=>typeof a<"u"));s.every((a=>csf_ee(a)))?o[i]=csf_D(...s):o[i]=s[s.length-1]})),o}),"combineParameters");function csf_Ne(e,t,r){let{moduleExport:o,id:i,name:s}=e||{},a=csf_go(e,t,r),p=n((async w=>{let d={};for(let m of[b(r.loaders),b(t.loaders),b(e.loaders)]){if(w.abortSignal.aborted)return d;let f=await Promise.all(m.map((x=>x(w))));Object.assign(d,...f)}return d}),"applyLoaders"),c=n((async w=>{let d=new Array;for(let m of[...b(r.beforeEach),...b(t.beforeEach),...b(e.beforeEach)]){if(w.abortSignal.aborted)return d;let f=await m(w);f&&d.push(f)}return d}),"applyBeforeEach"),l=n((async w=>{let d=[...b(r.afterEach),...b(t.afterEach),...b(e.afterEach)].reverse();for(let m of d){if(w.abortSignal.aborted)return;await m(w)}}),"applyAfterEach"),y=n((w=>w.originalStoryFn(w.args,w)),"undecoratedStoryFn"),{applyDecorators:u=csf_He,runStep:h}=r,T=[...b(e?.decorators),...b(t?.decorators),...b(r?.decorators)],R=e?.userStoryFn||e?.render||t.render||r.render,P=csf_Et(u)(y,T),L=n((w=>P(w)),"unboundStoryFn"),O=e?.play??t?.play,F=csf_Ot(O);if(!R&&!F)throw new external_STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS_.NoRenderFunctionError({id:i});let A=n((w=>async()=>(await w.renderToCanvas(),w.canvas)),"defaultMount");return{storyGlobals:{},...a,moduleExport:o,id:i,name:s,story:s,originalStoryFn:R,undecoratedStoryFn:y,unboundStoryFn:L,applyLoaders:p,applyBeforeEach:c,applyAfterEach:l,playFunction:O,runStep:h,mount:e.mount??t.mount??r.mount??A,testingLibraryRender:r.testingLibraryRender,renderToCanvas:r.renderToCanvas,usesMount:F}}function csf_go(e,t,r){let i=!0===external_STORYBOOK_MODULE_GLOBAL_.global.DOCS_OPTIONS?.autodocs?["autodocs"]:[],s=uc("dev","test",...i,...r.tags??[],...t.tags??[],...e?.tags??[]),a=csf_D(r.parameters,t.parameters,e?.parameters),{argTypesEnhancers:p=[],argsEnhancers:c=[]}=r,l=csf_D(r.argTypes,t.argTypes,e?.argTypes);if(e){let O=e?.userStoryFn||e?.render||t.render||r.render;a.__isArgsStory=O&&O.length>0}let y={...r.args,...t.args,...e?.args},u={...t.globals,...e?.globals},h={componentId:t.id,title:t.title,kind:t.title,id:e?.id||t.id,name:e?.name||"__meta",story:e?.name||"__meta",component:t.component,subcomponents:t.subcomponents,tags:s,parameters:a,initialArgs:y,argTypes:l,storyGlobals:u};h.argTypes=p.reduce(((O,F)=>F({...h,argTypes:O})),h.argTypes);let T={...y};h.initialArgs=[...c].reduce(((O,F)=>({...O,...F({...h,initialArgs:O})})),T);let{name:R,story:P,...L}=h;return L}function csf_Ft(e){let{args:t}=e,r={...e,allArgs:void 0,argsByTarget:void 0};if(external_STORYBOOK_MODULE_GLOBAL_.global.FEATURES?.argTypeTargetsV7){let s=csf_Ct(e);r={...e,allArgs:e.args,argsByTarget:s,args:s[csf_De]||{}}}let o=Object.entries(r.args).reduce(((s,[a,p])=>{if(!r.argTypes[a]?.mapping)return s[a]=p,s;let c=n((l=>{let y=r.argTypes[a].mapping;return y&&l in y?y[l]:l}),"mappingFn");return s[a]=Array.isArray(p)?p.map(c):c(p),s}),{}),i=Object.entries(o).reduce(((s,[a,p])=>{let c=r.argTypes[a]||{};return csf_Xr(c,o,r.globals)&&(s[a]=p),s}),{});return{...r,unmappedArgs:t,args:i}}n(csf_Ne,"prepareStory"),n(csf_go,"preparePartialAnnotations"),n(csf_Ft,"prepareContext");var csf_je=n(((e,t,r)=>{let o=typeof e;switch(o){case"boolean":case"string":case"number":case"function":case"symbol":return{name:o}}return e?r.has(e)?(external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn(W` We've detected a cycle in arg '${t}'. Args should be JSON-serializable. Consider using the mapping feature or fully custom args: - Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values - Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args `),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?csf_je(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:U(e,(s=>csf_je(s,t,new Set(r))))}):{name:"object",value:{}}}),"inferType"),csf_Be=n((e=>{let{id:t,argTypes:r={},initialArgs:o={}}=e,i=U(o,((a,p)=>({name:p,type:csf_je(a,`${t}.${p}`,new Set)}))),s=U(r,((a,p)=>({name:p})));return csf_D(i,s,r)}),"inferArgTypes");csf_Be.secondPass=!0;var csf_It=n(((e,t)=>Array.isArray(t)?t.includes(e):e.match(t)),"matches"),csf_ze=n(((e,t,r)=>t||r?e&&csf_Le(e,((o,i)=>{let s=o.name||i.toString();return!(t&&!csf_It(s,t)||r&&csf_It(s,r))})):e),"filterArgTypes"),csf_bo=n(((e,t,r)=>{let{type:o,options:i}=e;if(o){if(r.color&&r.color.test(t)){let s=o.name;if("string"===s)return{control:{type:"color"}};"enum"!==s&&external_STORYBOOK_MODULE_CLIENT_LOGGER_.logger.warn(`Addon controls: Control of type color only supports string, received "${s}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(o.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:s}=o;return{control:{type:s?.length<=5?"radio":"select"},options:s}}case"function":case"symbol":return null;default:return{control:{type:i?"select":"object"}}}}}),"inferControl"),csf_me=n((e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:o=null,exclude:i=null,matchers:s={}}={}}}=e;if(!r)return t;let a=csf_ze(t,o,i),p=U(a,((c,l)=>c?.type&&csf_bo(c,l.toString(),s)));return csf_D(p,a)}),"inferControls");function csf_te({argTypes:e,globalTypes:t,argTypesEnhancers:r,decorators:o,loaders:i,beforeEach:s,afterEach:a,initialGlobals:p,...c}){return{...e&&{argTypes:K(e)},...t&&{globalTypes:K(t)},decorators:b(o),loaders:b(i),beforeEach:b(s),afterEach:b(a),argTypesEnhancers:[...r||[],csf_Be,csf_me],initialGlobals:p,...c}}csf_me.secondPass=!0,n(csf_te,"normalizeProjectAnnotations");var csf_Lt=n((e=>async()=>{let t=[];for(let r of e){let o=await r();o&&t.unshift(o)}return async()=>{for(let r of t)await r()}}),"composeBeforeAllHooks");function csf_Ue(e){return async(t,r,o)=>{await e.reduceRight(((s,a)=>async()=>a(t,s,o)),(async()=>r(o)))()}}function oe(e,t){return e.map((r=>r.default?.[t]??r[t])).filter(Boolean)}function Y(e,t,r={}){return oe(e,t).reduce(((o,i)=>{let s=b(i);return r.reverseFileOrder?[...s,...o]:[...o,...s]}),[])}function ue(e,t){return Object.assign({},...oe(e,t))}function re(e,t){return oe(e,t).pop()}function csf_ne(e){let t=Y(e,"argTypesEnhancers"),r=oe(e,"runStep"),o=Y(e,"beforeAll");return{parameters:csf_D(...oe(e,"parameters")),decorators:Y(e,"decorators",{reverseFileOrder:!external_STORYBOOK_MODULE_GLOBAL_.global.FEATURES?.legacyDecoratorFileOrder}),args:ue(e,"args"),argsEnhancers:Y(e,"argsEnhancers"),argTypes:ue(e,"argTypes"),argTypesEnhancers:[...t.filter((i=>!i.secondPass)),...t.filter((i=>i.secondPass))],initialGlobals:ue(e,"initialGlobals"),globalTypes:ue(e,"globalTypes"),loaders:Y(e,"loaders"),beforeAll:csf_Lt(o),beforeEach:Y(e,"beforeEach"),afterEach:Y(e,"afterEach"),render:re(e,"render"),renderToCanvas:re(e,"renderToCanvas"),applyDecorators:re(e,"applyDecorators"),runStep:csf_Ue(r),tags:Y(e,"tags"),mount:re(e,"mount"),testingLibraryRender:re(e,"testingLibraryRender")}}function Dt(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}function csf_t(e=!0){if(!("document"in globalThis)||!("createElement"in globalThis.document))return()=>{};let t=document.createElement("style");t.textContent="*, *:before, *:after {\n animation: none !important;\n }",document.head.appendChild(t);let r=document.createElement("style");return r.textContent=`*, *:before, *:after {\n animation-delay: 0s !important;\n animation-direction: ${e?"reverse":"normal"} !important;\n animation-play-state: paused !important;\n transition: none !important;\n }`,document.head.appendChild(r),document.body.clientHeight,document.head.removeChild(t),()=>{r.parentNode?.removeChild(r)}}async function csf_Ht(e){if(!("document"in globalThis&&"getAnimations"in globalThis.document&&"querySelectorAll"in globalThis.document))return;let t=!1;await Promise.race([new Promise((r=>{setTimeout((()=>{let o=[globalThis.document,...csf_Nt(globalThis.document)],i=n((async()=>{if(t||e?.aborted)return;let s=o.flatMap((a=>a?.getAnimations?.()||[])).filter((a=>"running"===a.playState&&!csf_So(a)));s.length>0&&(await Promise.all(s.map((a=>a.finished))),await i())}),"checkAnimationsFinished");i().then(r)}),100)})),new Promise((r=>setTimeout((()=>{t=!0,r(void 0)}),5e3)))])}function csf_Nt(e){return[e,...e.querySelectorAll("*")].reduce(((t,r)=>("shadowRoot"in r&&r.shadowRoot&&t.push(r.shadowRoot,...csf_Nt(r.shadowRoot)),t)),[])}function csf_So(e){if(e instanceof CSSAnimation&&e.effect instanceof KeyframeEffect&&e.effect.target){let t=getComputedStyle(e.effect.target,e.effect.pseudoElement),r=t.animationName?.split(", ").indexOf(e.animationName);return"infinite"===t.animationIterationCount.split(", ")[r]}return!1}n(csf_Ue,"composeStepRunners"),n(oe,"getField"),n(Y,"getArrayField"),n(ue,"getObjectField"),n(re,"getSingletonField"),n(csf_ne,"composeConfigs"),n(Dt,"isTestEnvironment"),n(csf_t,"pauseAnimations"),n(csf_Ht,"waitForAnimations"),n(csf_Nt,"getShadowRoots"),n(csf_So,"isInfiniteAnimation");var csf_Ge=class Ge{constructor(){this.reports=[]}async addReport(t){this.reports.push(t)}};n(csf_Ge,"ReporterAPI");var csf_fe=csf_Ge,V=[];function csf_We(e,t,r,o,i){if(void 0===e)throw new Error("Expected a story but received undefined.");t.title=t.title??"ComposedStory";let R,s=csf_kt(t),a=i||e.storyName||e.story?.name||e.name||"Unnamed Story",p=csf_e(a,e,s),c=csf_te(csf_ne([o??globalThis.globalProjectAnnotations??{},r??{}])),l=csf_Ne(p,s,c),u={...csf_vt(c.globalTypes),...c.initialGlobals,...l.storyGlobals},h=new csf_fe,T=n((()=>{let A=csf_Ft({hooks:new csf_de,globals:u,args:{...l.initialArgs},viewMode:"story",reporting:h,loaded:{},abortSignal:(new AbortController).signal,step:n(((S,v)=>l.runStep(S,v,A)),"step"),canvasElement:null,canvas:{},userEvent:{},globalTypes:c.globalTypes,...l,context:null,mount:null});return A.parameters.__isPortableStory=!0,A.context=A,l.renderToCanvas&&(A.renderToCanvas=async()=>{let S=await(l.renderToCanvas?.({componentId:l.componentId,title:l.title,id:l.id,name:l.name,tags:l.tags,showMain:n((()=>{}),"showMain"),showError:n((v=>{throw new Error(`${v.title}\n${v.description}`)}),"showError"),showException:n((v=>{throw v}),"showException"),forceRemount:!0,storyContext:A,storyFn:n((()=>l.unboundStoryFn(A)),"storyFn"),unboundStoryFn:l.unboundStoryFn},A.canvasElement));S&&V.push(S)}),A.mount=l.mount(A),A}),"initializeContext"),P=n((async A=>{let S=T();return S.canvasElement??=globalThis?.document?.body,R&&(S.loaded=R.loaded),Object.assign(S,A),l.playFunction(S)}),"play"),L=n((A=>{let S=T();return Object.assign(S,A),csf_Eo(l,S)}),"run"),O=l.playFunction?P:void 0;return Object.assign(n((function(S){let v=T();return R&&(v.loaded=R.loaded),v.args={...v.initialArgs,...S},l.unboundStoryFn(v)}),"storyFn"),{id:l.id,storyName:a,load:n((async()=>{for(let S of[...V].reverse())await S();V.length=0;let A=T();A.loaded=await l.applyLoaders(A),V.push(...(await l.applyBeforeEach(A)).filter(Boolean)),R=A}),"load"),globals:u,args:l.initialArgs,parameters:l.parameters,argTypes:l.argTypes,play:O,run:L,reporting:h,tags:l.tags})}async function csf_Eo(e,t){for(let s of[...V].reverse())await s();if(V.length=0,!t.canvasElement){let s=document.createElement("div");globalThis?.document?.body?.appendChild(s),t.canvasElement=s,V.push((()=>{globalThis?.document?.body?.contains(s)&&globalThis?.document?.body?.removeChild(s)}))}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;V.push(...(await e.applyBeforeEach(t)).filter(Boolean));let i,r=e.playFunction,o=e.usesMount;o||await t.mount(),t.abortSignal.aborted||(r&&(o||(t.mount=async()=>{throw new external_STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS_.MountMustBeDestructuredError({playFunction:r.toString()})}),await r(t)),Dt()?i=csf_t():await csf_Ht(t.abortSignal),await e.applyAfterEach(t),await(i?.()))}n(csf_We,"composeStory"),n(csf_Eo,"runStory");var csf_Ye="Invariant failed";function csf_ye(e,t){if(!e){false;var r="function"==typeof t?t():t,o=r?"".concat(csf_Ye,": ").concat(r):csf_Ye;throw new Error(o)}}n(csf_ye,"invariant");var Ke={};csf_xt(Ke,{argsEnhancers:()=>csf_Mo});var csf_Ve="storybook/actions",csf_jt=`${csf_Ve}/action-event`,csf_Bt={depth:10,clearOnStoryChange:!0,limit:50},csf_Ut=n(((e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:csf_Ut(r,t)}),"findProto"),csf_Po=n((e=>!("object"!=typeof e||!e||!csf_Ut(e,(t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name)))||"function"!=typeof e.persist)),"isReactSyntheticEvent"),csf_Oo=n((e=>{if(csf_Po(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let r=Object.getOwnPropertyDescriptor(t,"view"),o=r?.value;return"object"==typeof o&&"Window"===o?.constructor.name&&Object.defineProperty(t,"view",{...r,value:Object.create(o.constructor.prototype)}),t}return e}),"serializeArg");function csf_ie(e,t={}){let r={...csf_Bt,...t},o=n((function(...s){if(t.implicit){let T=("__STORYBOOK_PREVIEW__"in external_STORYBOOK_MODULE_GLOBAL_.global?external_STORYBOOK_MODULE_GLOBAL_.global.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find((R=>"playing"===R.phase||"rendering"===R.phase));if(T){let R=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,P=new external_STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS_.ImplicitActionsDuringRendering({phase:T.phase,name:e,deprecated:R});if(!R)throw P;console.warn(P)}}let a=external_STORYBOOK_MODULE_PREVIEW_API_.addons.getChannel(),p=Date.now().toString(36)+Math.random().toString(36).substring(2),l=s.map(csf_Oo),y=s.length>1?l:l[0],u={id:p,count:0,data:{name:e,args:y},options:{...r,maxDepth:5+(r.depth||3)}};a.emit(csf_jt,u)}),"actionHandler");return o.isAction=!0,o.implicit=t.implicit,o}n(csf_ie,"action");var csf_Gt=n(((e,t)=>typeof t[e]>"u"&&!(e in t)),"isInInitialArgs"),csf_Wt=n((e=>{let{initialArgs:t,argTypes:r,id:o,parameters:{actions:i}}=e;if(!i||i.disable||!i.argTypesRegex||!r)return{};let s=new RegExp(i.argTypesRegex);return Object.entries(r).filter((([p])=>!!s.test(p))).reduce(((p,[c,l])=>(csf_Gt(c,t)&&(p[c]=csf_ie(c,{implicit:!0,id:o})),p)),{})}),"inferActionsFromArgTypesRegex"),csf_Yt=n((e=>{let{initialArgs:t,argTypes:r,parameters:{actions:o}}=e;return o?.disable||!r?{}:Object.entries(r).filter((([s,a])=>!!a.action)).reduce(((s,[a,p])=>(csf_Gt(a,t)&&(s[a]=csf_ie("string"==typeof p.action?p.action:a)),s)),{})}),"addActionsFromArgTypes"),csf_Mo=[csf_Yt,csf_Wt],csf_qe={};csf_xt(csf_qe,{loaders:()=>csf_Io});var csf_Vt=!1,csf_Fo=n((e=>{let{parameters:t}=e;t?.actions?.disable||csf_Vt||((0,external_STORYBOOK_MODULE_TEST_.onMockCall)(((r,o)=>{let i=r.getMockName();"spy"!==i&&(!/^next\/.*::/.test(i)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some((s=>i.startsWith(s))))&&csf_ie(i)(o)})),csf_Vt=!0)}),"logActionsWhenMockCalled"),csf_Io=[csf_Fo],csf_Xe=n((()=>({...Ke,...csf_qe})),"default"),Z="backgrounds",csf_Kt={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},{document:N}=globalThis,csf_qt=n((()=>!!globalThis?.matchMedia&&!!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches),"isReduceMotionEnabled"),csf_Ze=n((e=>{(Array.isArray(e)?e:[e]).forEach(csf_o)}),"clearStyles"),csf_o=n((e=>{if(!N)return;let t=N.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)}),"clearStyle"),csf_Xt=n(((e,t)=>{if(!N)return;let r=N.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let o=N.createElement("style");o.setAttribute("id",e),o.innerHTML=t,N.head.appendChild(o)}}),"addGridStyle"),csf_Zt=n(((e,t,r)=>{if(!N)return;let o=N.getElementById(e);if(o)o.innerHTML!==t&&(o.innerHTML=t);else{let i=N.createElement("style");i.setAttribute("id",e),i.innerHTML=t;let s="addon-backgrounds-grid"+(r?`-docs-${r}`:""),a=N.getElementById(s);a?a.parentElement?.insertBefore(i,a):N.head.appendChild(i)}}),"addBackgroundStyle"),Ho={cellSize:100,cellAmount:10,opacity:.8},csf_er="addon-backgrounds-grid",csf_No=csf_qt()?"":"transition: background-color 0.3s;",csf_tr=n(((e,t)=>{let{globals:r={},parameters:o={},viewMode:i,id:s}=t,{options:a=csf_Kt,disable:p,grid:c=Ho}=o[Z]||{},l=r[Z]||{},y="string"==typeof l?l:l?.value,u=y?a[y]:void 0,h="string"==typeof u?u:u?.value||"transparent",T="string"!=typeof l&&(l.grid||!1),R=!!u&&!p,P="docs"===i?`#anchor--${s} .docs-story`:".sb-show-main",L="docs"===i?`#anchor--${s} .docs-story`:".sb-show-main",O=void 0===o.layout||"padded"===o.layout,F="docs"===i?20:O?16:0,{cellAmount:A,cellSize:S,opacity:v,offsetX:w=F,offsetY:d=F}=c,m="docs"===i?`addon-backgrounds-docs-${s}`:"addon-backgrounds-color",f="docs"===i?s:null;(0,external_STORYBOOK_MODULE_PREVIEW_API_.useEffect)((()=>{R?csf_Zt(m,`\n ${P} {\n background: ${h} !important;\n ${csf_No}\n }`,f):csf_Ze(m)}),[P,m,f,R,h]);let x="docs"===i?`${csf_er}-docs-${s}`:`${csf_er}`;return(0,external_STORYBOOK_MODULE_PREVIEW_API_.useEffect)((()=>{if(!T)return void csf_Ze(x);let g=[`${S*A}px ${S*A}px`,`${S*A}px ${S*A}px`,`${S}px ${S}px`,`${S}px ${S}px`].join(", ");csf_Xt(x,`\n ${L} {\n background-size: ${g} !important;\n background-position: ${w}px ${d}px, ${w}px ${d}px, ${w}px ${d}px, ${w}px ${d}px !important;\n background-blend-mode: difference !important;\n background-image: linear-gradient(rgba(130, 130, 130, ${v}) 1px, transparent 1px),\n linear-gradient(90deg, rgba(130, 130, 130, ${v}) 1px, transparent 1px),\n linear-gradient(rgba(130, 130, 130, ${v/2}) 1px, transparent 1px),\n linear-gradient(90deg, rgba(130, 130, 130, ${v/2}) 1px, transparent 1px) !important;\n }\n `)}),[A,S,L,x,T,w,d,v]),e()}),"withBackgroundAndGrid"),csf_Bo=globalThis.FEATURES?.backgrounds?[csf_tr]:[],csf_zo={[Z]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1}},csf_Uo={[Z]:{value:void 0,grid:!1}},csf_Je=n((()=>({decorators:csf_Bo,parameters:csf_zo,initialGlobals:csf_Uo})),"default"),{step:csf_Yo}=Qs({step:n((async(e,t,r)=>t(r)),"step")},{intercept:!0}),csf_Qe=n((()=>({parameters:{throwPlayFunctionExceptions:!1},runStep:csf_Yo})),"default"),csf_ge="storybook/highlight",csf_rr=`${csf_ge}/add`,csf_or=`${csf_ge}/remove`,csf_nr=`${csf_ge}/reset`,ir=`${csf_ge}/scroll-into-view`,csf_tt={chevronLeft:["M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z"],chevronRight:["M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z"],info:["M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z","M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z"],shareAlt:["M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z","M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z"]},csf_Vo="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),csf_M=n(((e,t={},r)=>{let o=csf_Vo.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach((([i,s])=>{/[A-Z]/.test(i)?("onClick"===i&&(o.addEventListener("click",s),o.addEventListener("keydown",(a=>{("Enter"===a.key||" "===a.key)&&(a.preventDefault(),s())}))),"onMouseEnter"===i&&o.addEventListener("mouseenter",s),"onMouseLeave"===i&&o.addEventListener("mouseleave",s)):o.setAttribute(i,s)})),r?.forEach((i=>{if(null!=i&&!1!==i)try{o.appendChild(i)}catch{o.appendChild(document.createTextNode(String(i)))}})),o}),"createElement"),csf_ae=n((e=>csf_tt[e]&&csf_M("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},csf_tt[e].map((t=>csf_M("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))))),"createIcon"),csf_sr=n((e=>{if("elements"in e){let{elements:o,color:i,style:s}=e;return{id:void 0,priority:0,selectors:o,styles:{outline:`2px ${s} ${i}`,outlineOffset:"2px",boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"},menu:void 0}}let{menu:t,...r}=e;return{id:void 0,priority:0,styles:{outline:"2px dashed #029cfd"},...r,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}}),"normalizeOptions"),csf_Ko=n((e=>e instanceof Function),"isFunction"),se=new Map,q=new Map,he=new Map,csf_z=n((e=>{let t=Symbol();return q.set(t,[]),se.set(t,e),{get:n((()=>se.get(t)),"get"),set:n((a=>{let p=se.get(t),c=csf_Ko(a)?a(p):a;c!==p&&(se.set(t,c),q.get(t)?.forEach((l=>{he.get(l)?.(),he.set(l,l(c))})))}),"set"),subscribe:n((a=>(q.get(t)?.push(a),()=>{let p=q.get(t);p&&q.set(t,p.filter((c=>c!==a)))})),"subscribe"),teardown:n((()=>{q.get(t)?.forEach((a=>{he.get(a)?.(),he.delete(a)})),q.delete(t),se.delete(t)}),"teardown")}}),"useStore"),csf_rt=n((e=>{let t=document.getElementById("storybook-root"),r=new Map;for(let o of e){let{priority:i=0}=o;for(let s of o.selectors){let a=[...document.querySelectorAll(`:is(${s}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(s)||[]];for(let p of a){let c=r.get(p);(!c||c.priority<=i)&&r.set(p,{...o,priority:i,selectors:Array.from(new Set((c?.selectors||[]).concat(s)))})}}}return r}),"mapElements"),ar=n((e=>Array.from(e.entries()).map((([t,{selectors:r,styles:o,hoverStyles:i,focusStyles:s,menu:a}])=>{let{top:p,left:c,width:l,height:y}=t.getBoundingClientRect(),{position:u}=getComputedStyle(t);return{element:t,selectors:r,styles:o,hoverStyles:i,focusStyles:s,menu:a,top:"fixed"===u?p:p+window.scrollY,left:"fixed"===u?c:c+window.scrollX,width:l,height:y}})).sort(((t,r)=>r.width*r.height-t.width*t.height))),"mapBoxes"),csf_ot=n(((e,t)=>{let r=e.getBoundingClientRect(),{x:o,y:i}=t;return r?.top&&r?.left&&o>=r.left&&o<=r.left+r.width&&i>=r.top&&i<=r.top+r.height}),"isOverMenu"),csf_nt=n(((e,t,r)=>{if(!t||!r)return!1;let{left:o,top:i,width:s,height:a}=e;a<28&&(i-=Math.round((28-a)/2),a=28),s<28&&(o-=Math.round((28-s)/2),s=28),"fixed"===t.style.position&&(o+=window.scrollX,i+=window.scrollY);let{x:p,y:c}=r;return p>=o&&p<=o+s&&c>=i&&c<=i+a}),"isTargeted"),csf_pr=n(((e,t,r={})=>{let{x:o,y:i}=t,{margin:s=5,topOffset:a=0,centered:p=!1}=r,{scrollX:c,scrollY:l,innerHeight:y,innerWidth:u}=window,h=Math.min("fixed"===e.style.position?i-l:i,y-e.clientHeight-s-a+l),T=p?e.clientWidth/2:0,R="fixed"===e.style.position?Math.max(Math.min(o-c,u-T-s),T+s):Math.max(Math.min(o,u-T-s+c),T+s+c);Object.assign(e.style,{...R!==o&&{left:`${R}px`},...h!==i&&{top:`${h}px`}})}),"keepInViewport"),csf_it=n((e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()}),"showPopover"),csf_lr=n((e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()}),"hidePopover"),csf_cr=n((e=>({top:e.top,left:e.left,width:e.width,height:e.height,selectors:e.selectors,element:{attributes:Object.fromEntries(Array.from(e.element.attributes).map((t=>[t.name,t.value]))),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}})),"getEventDetails"),C="storybook-highlights-menu",csf_dr="storybook-highlights-root",csf_mr=n((e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=csf_z([]),o=csf_z(new Map),i=csf_z([]),s=csf_z(),a=csf_z(),p=csf_z([]),c=csf_z([]),l=csf_z(),y=csf_z(),u=t.getElementById(csf_dr);r.subscribe((()=>{u||(u=csf_M("div",{id:csf_dr}),t.body.appendChild(u))})),r.subscribe((d=>{let m=t.getElementById("storybook-root");if(!m)return;o.set(csf_rt(d));let f=new MutationObserver((()=>o.set(csf_rt(d))));return f.observe(m,{subtree:!0,childList:!0}),()=>{f.disconnect()}})),o.subscribe((d=>{let m=n((()=>requestAnimationFrame((()=>i.set(ar(d))))),"updateBoxes"),f=new ResizeObserver(m);f.observe(t.body),Array.from(d.keys()).forEach((g=>f.observe(g)));let x=Array.from(t.body.querySelectorAll("*")).filter((g=>{let{overflow:E,overflowX:I,overflowY:k}=window.getComputedStyle(g);return["auto","scroll"].some((H=>[E,I,k].includes(H)))}));return x.forEach((g=>g.addEventListener("scroll",m))),()=>{f.disconnect(),x.forEach((g=>g.removeEventListener("scroll",m)))}})),o.subscribe((d=>{let m=Array.from(d.keys()).filter((({style:x})=>"sticky"===x.position)),f=n((()=>requestAnimationFrame((()=>{i.set((x=>x.map((g=>{if(m.includes(g.element)){let{top:E,left:I}=g.element.getBoundingClientRect();return{...g,top:E+window.scrollY,left:I+window.scrollX}}return g}))))}))),"updateBoxes");return t.addEventListener("scroll",f),()=>t.removeEventListener("scroll",f)})),o.subscribe((d=>{p.set((m=>m.filter((({element:f})=>d.has(f)))))})),p.subscribe((d=>{d.length?(y.set((m=>d.some((f=>f.element===m?.element))?m:void 0)),l.set((m=>d.some((f=>f.element===m?.element))?m:void 0))):(y.set(void 0),l.set(void 0),s.set(void 0))}));let h=new Map(new Map);r.subscribe((d=>{d.forEach((({keyframes:m})=>{if(m){let f=h.get(m);f||(f=t.createElement("style"),f.setAttribute("data-highlight","keyframes"),h.set(m,f),t.head.appendChild(f)),f.innerHTML=m}})),h.forEach(((m,f)=>{d.some((x=>x.keyframes===f))||(m.remove(),h.delete(f))}))}));let T=new Map(new Map);i.subscribe((d=>{d.forEach((m=>{let f=T.get(m.element);if(u&&!f){let x={popover:"manual","data-highlight-dimensions":`w${m.width.toFixed(0)}h${m.height.toFixed(0)}`,"data-highlight-coordinates":`x${m.left.toFixed(0)}y${m.top.toFixed(0)}`};f=u.appendChild(csf_M("div",x,[csf_M("div")])),T.set(m.element,f)}})),T.forEach(((m,f)=>{d.some((({element:x})=>x===f))||(m.remove(),T.delete(f))}))})),i.subscribe((d=>{let m=d.filter((x=>x.menu));if(!m.length)return;let f=n((x=>{requestAnimationFrame((()=>{let g=t.getElementById(C),E={x:x.pageX,y:x.pageY};if(g&&!csf_ot(g,E)){let I=m.filter((k=>{let H=T.get(k.element);return csf_nt(k,H,E)}));s.set(I.length?E:void 0),p.set(I)}}))}),"onClick");return t.addEventListener("click",f),()=>t.removeEventListener("click",f)}));let R=n((()=>{let d=t.getElementById(C),m=a.get();!m||d&&csf_ot(d,m)||c.set((f=>{let x=i.get().filter((k=>{let H=T.get(k.element);return csf_nt(k,H,m)})),g=f.filter((k=>x.includes(k))),E=x.filter((k=>!f.includes(k))),I=f.length-g.length;return E.length||I?[...g,...E]:f}))}),"updateHovered");a.subscribe(R),i.subscribe(R);let P=n((()=>{let d=y.get(),m=d?[d]:p.get(),f=1===m.length?m[0]:l.get(),x=void 0!==s.get();i.get().forEach((g=>{let E=T.get(g.element);if(E){let I=f===g,k=x?f?I:m.includes(g):c.get()?.includes(g);Object.assign(E.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",...g.styles,...k?g.hoverStyles:{},...I?g.focusStyles:{},position:"fixed"===getComputedStyle(g.element).position?"fixed":"absolute",zIndex:2147483637,top:`${g.top}px`,left:`${g.left}px`,width:`${g.width}px`,height:`${g.height}px`,margin:0,padding:0,cursor:g.menu&&k?"pointer":"default",pointerEvents:g.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(E.children[0].style,{width:"100%",height:"100%",minHeight:"28px",minWidth:"28px",boxSizing:"content-box",padding:E.style.outlineWidth||"0px"}),csf_it(E)}}))}),"updateBoxStyles");i.subscribe(P),p.subscribe(P),c.subscribe(P),l.subscribe(P),y.subscribe(P);let L=n((()=>{if(!u)return;let d=t.getElementById(C);if(d)d.innerHTML="";else{let g={id:C,popover:"manual"};d=u.appendChild(csf_M("div",g)),u.appendChild(csf_M("style",{},[`\n #${C} {\n position: absolute;\n z-index: 2147483647;\n width: 300px;\n padding: 0px;\n margin: 15px 0 0 0;\n transform: translateX(-50%);\n font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size: 12px;\n background: white;\n border: none;\n border-radius: 6px;\n box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);\n color: #2E3438;\n }\n #${C} ul {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n #${C} > ul {\n max-height: 300px;\n overflow-y: auto;\n padding: 4px 0;\n }\n #${C} li {\n padding: 0 4px;\n margin: 0;\n }\n #${C} li > :not(ul) {\n display: flex;\n padding: 8px;\n margin: 0;\n align-items: center;\n gap: 8px;\n border-radius: 4px;\n }\n #${C} button {\n width: 100%;\n border: 0;\n background: transparent;\n color: inherit;\n text-align: left;\n font-family: inherit;\n font-size: inherit;\n }\n #${C} button:focus-visible {\n outline-color: #029CFD;\n }\n #${C} button:hover {\n background: rgba(2, 156, 253, 0.07);\n color: #029CFD;\n cursor: pointer;\n }\n #${C} li code {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n line-height: 16px;\n font-size: 11px;\n }\n #${C} li svg {\n flex-shrink: 0;\n margin: 1px;\n color: #73828C;\n }\n #${C} li > button:hover svg, #${C} li > button:focus-visible svg {\n color: #029CFD;\n }\n #${C} .element-list li svg {\n display: none;\n }\n #${C} li.selectable svg, #${C} li.selected svg {\n display: block;\n }\n #${C} .menu-list {\n border-top: 1px solid rgba(38, 85, 115, 0.15);\n }\n #${C} .menu-list > li:not(:last-child) {\n padding-bottom: 4px;\n margin-bottom: 4px;\n border-bottom: 1px solid rgba(38, 85, 115, 0.15);\n }\n #${C} .menu-items, #${C} .menu-items li {\n padding: 0;\n }\n #${C} .menu-item {\n display: flex;\n }\n #${C} .menu-item-content {\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n }\n `]))}let m=y.get(),f=m?[m]:p.get();if(f.length&&(d.style.position="fixed"===getComputedStyle(f[0].element).position?"fixed":"absolute",d.appendChild(csf_M("ul",{class:"element-list"},f.map((g=>{let E=f.length>1&&!!g.menu?.some((H=>H.some((X=>!X.selectors||X.selectors.some((le=>g.selectors.includes(le))))))),k=E||m;return csf_M("li",E?{class:"selectable",onClick:n((()=>y.set(g)),"onClick"),onMouseEnter:n((()=>l.set(g)),"onMouseEnter"),onMouseLeave:n((()=>l.set(void 0)),"onMouseLeave")}:m?{class:"selected",onClick:n((()=>y.set(void 0)),"onClick")}:{},[csf_M(k?"button":"div",k?{type:"button"}:{},[m?csf_ae("chevronLeft"):null,csf_M("code",{},[g.element.outerHTML]),E?csf_ae("chevronRight"):null])])}))))),y.get()||1===p.get().length){let g=y.get()||p.get()[0],E=g.menu?.filter((I=>I.some((k=>!k.selectors||k.selectors.some((H=>g.selectors.includes(H)))))));E?.length&&d.appendChild(csf_M("ul",{class:"menu-list"},E.map((I=>csf_M("li",{},[csf_M("ul",{class:"menu-items"},I.map((({id:k,title:H,description:X,iconLeft:le,iconRight:gt,clickEvent:ht})=>{let we=ht&&(()=>e.emit(ht,k,csf_cr(g)));return csf_M("li",{},[csf_M(we?"button":"div",we?{class:"menu-item",type:"button",onClick:we}:{class:"menu-item"},[le?csf_ae(le):null,csf_M("div",{class:"menu-item-content"},[csf_M(X?"strong":"span",{},[H]),X&&csf_M("span",{},[X])]),gt?csf_ae(gt):null])])})))])))))}let x=s.get();x?(Object.assign(d.style,{display:"block",left:`${"fixed"===d.style.position?x.x-window.scrollX:x.x}px`,top:`${"fixed"===d.style.position?x.y-window.scrollY:x.y}px`}),csf_it(d),requestAnimationFrame((()=>csf_pr(d,x,{topOffset:15,centered:!0})))):(csf_lr(d),Object.assign(d.style,{display:"none"}))}),"renderMenu");p.subscribe(L),y.subscribe(L);let S,O=n((d=>{let m=csf_sr(d);r.set((f=>{let x=m.id?f.filter((g=>g.id!==m.id)):f;return m.selectors?.length?[...x,m]:x}))}),"addHighlight"),F=n((d=>{d&&r.set((m=>m.filter((f=>f.id!==d))))}),"removeHighlight"),A=n((()=>{r.set([]),o.set(new Map),i.set([]),s.set(void 0),a.set(void 0),p.set([]),c.set([]),l.set(void 0),y.set(void 0)}),"resetState"),v=n(((d,m)=>{let f="scrollIntoView-highlight";clearTimeout(S),F(f);let x=t.querySelector(d);if(!x)return void console.warn(`Cannot scroll into view: ${d} not found`);x.scrollIntoView({behavior:"smooth",block:"center",...m});let g=`kf-${Math.random().toString(36).substring(2,15)}`;r.set((E=>[...E,{id:f,priority:1e3,selectors:[d],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${g} 3s linear forwards`},keyframes:`@keyframes ${g} {\n 0% { outline: 2px solid #1EA7FD; }\n 20% { outline: 2px solid #1EA7FD00; }\n 40% { outline: 2px solid #1EA7FD; }\n 60% { outline: 2px solid #1EA7FD00; }\n 80% { outline: 2px solid #1EA7FD; }\n 100% { outline: 2px solid #1EA7FD00; }\n }`}])),S=setTimeout((()=>F(f)),3500)}),"scrollIntoView"),w=n((d=>{requestAnimationFrame((()=>a.set({x:d.pageX,y:d.pageY})))}),"onMouseMove");t.body.addEventListener("mousemove",w),e.on(csf_rr,O),e.on(csf_or,F),e.on(csf_nr,A),e.on(ir,v),e.on(external_STORYBOOK_MODULE_CORE_EVENTS_.STORY_RENDER_PHASE_CHANGED,(({newPhase:d})=>{"loading"===d&&A()}))}),"useHighlights");globalThis?.FEATURES?.highlight&&external_STORYBOOK_MODULE_PREVIEW_API_.addons?.ready&&external_STORYBOOK_MODULE_PREVIEW_API_.addons.ready().then(csf_mr);var csf_st=n((()=>({})),"default"),csf_fr="measureEnabled";function csf_yr(){let e=external_STORYBOOK_MODULE_GLOBAL_.global.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}function csf_Jo(){let e=external_STORYBOOK_MODULE_GLOBAL_.global.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");csf_ye(null!=t);let{width:r,height:o}=csf_yr();return csf_at(e,t,{width:r,height:o}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",external_STORYBOOK_MODULE_GLOBAL_.global.document.body.appendChild(e),{canvas:e,context:t,width:r,height:o}}function csf_at(e,t,{width:r,height:o}){e.style.width=`${r}px`,e.style.height=`${o}px`;let i=external_STORYBOOK_MODULE_GLOBAL_.global.window.devicePixelRatio;e.width=Math.floor(r*i),e.height=Math.floor(o*i),t.scale(i,i)}n(csf_yr,"getDocumentWidthAndHeight"),n(csf_Jo,"createCanvas"),n(csf_at,"setCanvasWidthAndHeight");var $={};function csf_gr(){$.canvas||($=csf_Jo())}function csf_hr(){$.context&&$.context.clearRect(0,0,$.width??0,$.height??0)}function csf_xr(e){csf_hr(),e($.context)}function csf_br(){csf_ye($.canvas,"Canvas should exist in the state."),csf_ye($.context,"Context should exist in the state."),csf_at($.canvas,$.context,{width:0,height:0});let{width:e,height:t}=csf_yr();csf_at($.canvas,$.context,{width:e,height:t}),$.width=e,$.height=t}function csf_Tr(){$.canvas&&(csf_hr(),$.canvas.parentNode?.removeChild($.canvas),$={})}n(csf_gr,"init"),n(csf_hr,"clear"),n(csf_xr,"draw"),n(csf_br,"rescale"),n(csf_Tr,"destroy");var J={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"};function csf_Sr(e,{x:t,y:r,w:o,h:i,r:s}){t-=o/2,r-=i/2,o<2*s&&(s=o/2),i<2*s&&(s=i/2),e.beginPath(),e.moveTo(t+s,r),e.arcTo(t+o,r,t+o,r+i,s),e.arcTo(t+o,r+i,t,r+i,s),e.arcTo(t,r+i,t,r,s),e.arcTo(t,r,t+o,r,s),e.closePath()}function csf_Qo(e,{padding:t,border:r,width:o,height:i,top:s,left:a}){let p=o-r.left-r.right-t.left-t.right,c=i-t.top-t.bottom-r.top-r.bottom,l=a+r.left+t.left,y=s+r.top+t.top;return"top"===e?l+=p/2:"right"===e?(l+=p,y+=c/2):"bottom"===e?(l+=p/2,y+=c):"left"===e?y+=c/2:"center"===e&&(l+=p/2,y+=c/2),{x:l,y}}function csf_en(e,t,{margin:r,border:o,padding:i},s,a){let p=n((h=>0),"shift"),c=0,l=0,y=a?1:.5,u=a?2*s:0;return"padding"===e?p=n((h=>i[h]*y+u),"shift"):"border"===e?p=n((h=>i[h]+o[h]*y+u),"shift"):"margin"===e&&(p=n((h=>i[h]+o[h]+r[h]*y+u),"shift")),"top"===t?l=-p("top"):"right"===t?c=p("right"):"bottom"===t?l=p("bottom"):"left"===t&&(c=-p("left")),{offsetX:c,offsetY:l}}function csf_tn(e,t){return Math.abs(e.x-t.x)<Math.abs(e.w+t.w)/2&&Math.abs(e.y-t.y)<Math.abs(e.h+t.h)/2}function csf_rn(e,t,r){return"top"===e?t.y=r.y-r.h-6:"right"===e?t.x=r.x+r.w/2+6+t.w/2:"bottom"===e?t.y=r.y+r.h+6:"left"===e&&(t.x=r.x-r.w/2-6-t.w/2),{x:t.x,y:t.y}}function csf_Ar(e,t,{x:r,y:o,w:i,h:s},a){return csf_Sr(e,{x:r,y:o,w:i,h:s,r:3}),e.fillStyle=`${J[t]}dd`,e.fill(),e.strokeStyle=J[t],e.stroke(),e.fillStyle=J.text,e.fillText(a,r,o),csf_Sr(e,{x:r,y:o,w:i,h:s,r:3}),e.fillStyle=`${J[t]}dd`,e.fill(),e.strokeStyle=J[t],e.stroke(),e.fillStyle=J.text,e.fillText(a,r,o),{x:r,y:o,w:i,h:s}}function csf_Rr(e,t){e.font="600 12px monospace",e.textBaseline="middle",e.textAlign="center";let r=e.measureText(t),o=r.actualBoundingBoxAscent+r.actualBoundingBoxDescent;return{w:r.width+12,h:o+12}}function csf_on(e,t,{type:r,position:o="center",text:i},s,a=!1){let{x:p,y:c}=csf_Qo(o,t),{offsetX:l,offsetY:y}=csf_en(r,o,t,7,a);p+=l,c+=y;let{w:u,h}=csf_Rr(e,i);if(s&&csf_tn({x:p,y:c,w:u,h},s)){let T=csf_rn(o,{x:p,y:c,w:u,h},s);p=T.x,c=T.y}return csf_Ar(e,r,{x:p,y:c,w:u,h},i)}function csf_nn(e,{w:t,h:r}){let o=.5*t+6,i=.5*r+6;return{offsetX:("left"===e.x?-1:1)*o,offsetY:("top"===e.y?-1:1)*i}}function csf_sn(e,t,{type:r,text:o}){let{floatingAlignment:i,extremities:s}=t,a=s[i.x],p=s[i.y],{w:c,h:l}=csf_Rr(e,o),{offsetX:y,offsetY:u}=csf_nn(i,{w:c,h:l});return a+=y,p+=u,csf_Ar(e,r,{x:a,y:p,w:c,h:l},o)}function csf_pe(e,t,r,o){let i=[];r.forEach(((s,a)=>{let p=o&&"center"===s.position?csf_sn(e,t,s):csf_on(e,t,s,i[a-1],o);i[a]=p}))}function csf_wr(e,t,r,o){let i=r.reduce(((s,a)=>(Object.prototype.hasOwnProperty.call(s,a.position)||(s[a.position]=[]),s[a.position]?.push(a),s)),{});i.top&&csf_pe(e,t,i.top,o),i.right&&csf_pe(e,t,i.right,o),i.bottom&&csf_pe(e,t,i.bottom,o),i.left&&csf_pe(e,t,i.left,o),i.center&&csf_pe(e,t,i.center,o)}n(csf_Sr,"roundedRect"),n(csf_Qo,"positionCoordinate"),n(csf_en,"offset"),n(csf_tn,"collide"),n(csf_rn,"overlapAdjustment"),n(csf_Ar,"textWithRect"),n(csf_Rr,"configureText"),n(csf_on,"drawLabel"),n(csf_nn,"floatingOffset"),n(csf_sn,"drawFloatingLabel"),n(csf_pe,"drawStack"),n(csf_wr,"labelStacks");var csf_Te_margin="#f6b26ba8",csf_Te_border="#ffe599a8",csf_Te_padding="#93c47d8c",csf_Te_content="#6fa8dca8";function _(e){return parseInt(e.replace("px",""),10)}function Q(e){return Number.isInteger(e)?e:e.toFixed(2)}function csf_pt(e){return e.filter((t=>0!==t.text&&"0"!==t.text))}function csf_an(e){let t_top=external_STORYBOOK_MODULE_GLOBAL_.global.window.scrollY,t_bottom=external_STORYBOOK_MODULE_GLOBAL_.global.window.scrollY+external_STORYBOOK_MODULE_GLOBAL_.global.window.innerHeight,t_left=external_STORYBOOK_MODULE_GLOBAL_.global.window.scrollX,t_right=external_STORYBOOK_MODULE_GLOBAL_.global.window.scrollX+external_STORYBOOK_MODULE_GLOBAL_.global.window.innerWidth,r_top=Math.abs(t_top-e.top),r_bottom=Math.abs(t_bottom-e.bottom);return{x:Math.abs(t_left-e.left)>Math.abs(t_right-e.right)?"left":"right",y:r_top>r_bottom?"top":"bottom"}}function csf_pn(e){let t=external_STORYBOOK_MODULE_GLOBAL_.global.getComputedStyle(e),{top:r,left:o,right:i,bottom:s,width:a,height:p}=e.getBoundingClientRect(),{marginTop:c,marginBottom:l,marginLeft:y,marginRight:u,paddingTop:h,paddingBottom:T,paddingLeft:R,paddingRight:P,borderBottomWidth:L,borderTopWidth:O,borderLeftWidth:F,borderRightWidth:A}=t;r+=external_STORYBOOK_MODULE_GLOBAL_.global.window.scrollY,o+=external_STORYBOOK_MODULE_GLOBAL_.global.window.scrollX,s+=external_STORYBOOK_MODULE_GLOBAL_.global.window.scrollY,i+=external_STORYBOOK_MODULE_GLOBAL_.global.window.scrollX;let S={top:_(c),bottom:_(l),left:_(y),right:_(u)},v={top:_(h),bottom:_(T),left:_(R),right:_(P)},w={top:_(O),bottom:_(L),left:_(F),right:_(A)},d={top:r-S.top,bottom:s+S.bottom,left:o-S.left,right:i+S.right};return{margin:S,padding:v,border:w,top:r,left:o,bottom:s,right:i,width:a,height:p,extremities:d,floatingAlignment:csf_an(d)}}function csf_ln(e,{margin:t,width:r,height:o,top:i,left:s,bottom:a,right:p}){let c=o+t.bottom+t.top;return e.fillStyle=csf_Te_margin,e.fillRect(s,i-t.top,r,t.top),e.fillRect(p,i-t.top,t.right,c),e.fillRect(s,a,r,t.bottom),e.fillRect(s-t.left,i-t.top,t.left,c),csf_pt([{type:"margin",text:Q(t.top),position:"top"},{type:"margin",text:Q(t.right),position:"right"},{type:"margin",text:Q(t.bottom),position:"bottom"},{type:"margin",text:Q(t.left),position:"left"}])}function csf_cn(e,{padding:t,border:r,width:o,height:i,top:s,left:a,bottom:p,right:c}){let l=o-r.left-r.right,y=i-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=csf_Te_padding,e.fillRect(a+r.left,s+r.top,l,t.top),e.fillRect(c-t.right-r.right,s+t.top+r.top,t.right,y),e.fillRect(a+r.left,p-t.bottom-r.bottom,l,t.bottom),e.fillRect(a+r.left,s+t.top+r.top,t.left,y),csf_pt([{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}])}function csf_dn(e,{border:t,width:r,height:o,top:i,left:s,bottom:a,right:p}){let c=o-t.top-t.bottom;return e.fillStyle=csf_Te_border,e.fillRect(s,i,r,t.top),e.fillRect(s,a-t.bottom,r,t.bottom),e.fillRect(s,i+t.top,t.left,c),e.fillRect(p-t.right,i+t.top,t.right,c),csf_pt([{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}])}function csf_mn(e,{padding:t,border:r,width:o,height:i,top:s,left:a}){let p=o-r.left-r.right-t.left-t.right,c=i-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=csf_Te_content,e.fillRect(a+r.left+t.left,s+r.top+t.top,p,c),[{type:"content",position:"center",text:`${Q(p)} x ${Q(c)}`}]}function csf_un(e){return t=>{if(e&&t){let r=csf_pn(e),o=csf_ln(t,r),i=csf_cn(t,r),s=csf_dn(t,r);csf_wr(t,r,[...csf_mn(t,r),...i,...s,...o],r.width<=90||r.height<=30)}}}function csf_Cr(e){csf_xr(csf_un(e))}n(_,"pxToNumber"),n(Q,"round"),n(csf_pt,"filterZeroValues"),n(csf_an,"floatingAlignment"),n(csf_pn,"measureElement"),n(csf_ln,"drawMargin"),n(csf_cn,"drawPadding"),n(csf_dn,"drawBorder"),n(csf_mn,"drawContent"),n(csf_un,"drawBoxModel"),n(csf_Cr,"drawSelectedElement");var csf_vr=n(((e,t)=>{let r=external_STORYBOOK_MODULE_GLOBAL_.global.document.elementFromPoint(e,t),o=n((s=>{if(s&&s.shadowRoot){let a=s.shadowRoot.elementFromPoint(e,t);return s.isEqualNode(a)?s:a.shadowRoot?o(a):a}return s}),"crawlShadows");return o(r)||r}),"deepElementFromPoint"),csf_Se={x:0,y:0};function csf_Or(e,t){csf_Cr(csf_vr(e,t))}n(csf_Or,"findAndDrawElement");var csf_Mr=n(((e,t)=>{let{measureEnabled:r}=t.globals||{};return(0,external_STORYBOOK_MODULE_PREVIEW_API_.useEffect)((()=>{if(typeof globalThis.document>"u")return;let o=n((i=>{window.requestAnimationFrame((()=>{i.stopPropagation(),csf_Se.x=i.clientX,csf_Se.y=i.clientY}))}),"onPointerMove");return globalThis.document.addEventListener("pointermove",o),()=>{globalThis.document.removeEventListener("pointermove",o)}}),[]),(0,external_STORYBOOK_MODULE_PREVIEW_API_.useEffect)((()=>{let o=n((s=>{window.requestAnimationFrame((()=>{s.stopPropagation(),csf_Or(s.clientX,s.clientY)}))}),"onPointerOver"),i=n((()=>{window.requestAnimationFrame((()=>{csf_br()}))}),"onResize");return"story"===t.viewMode&&r&&(globalThis.document.addEventListener("pointerover",o),csf_gr(),globalThis.window.addEventListener("resize",i),csf_Or(csf_Se.x,csf_Se.y)),()=>{globalThis.window.removeEventListener("resize",i),csf_Tr()}}),[r,t.viewMode]),e()}),"withMeasure"),csf_gn=globalThis.FEATURES?.measure?[csf_Mr]:[],csf_hn={[csf_fr]:!1},csf_lt=n((()=>({decorators:csf_gn,initialGlobals:csf_hn})),"default"),csf_Ae="outline",csf_ct=n((e=>{(Array.isArray(e)?e:[e]).forEach(csf_xn)}),"clearStyles"),csf_xn=n((e=>{let t="string"==typeof e?e:e.join(""),r=external_STORYBOOK_MODULE_GLOBAL_.global.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)}),"clearStyle"),csf_$r=n(((e,t)=>{let r=external_STORYBOOK_MODULE_GLOBAL_.global.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let o=external_STORYBOOK_MODULE_GLOBAL_.global.document.createElement("style");o.setAttribute("id",e),o.innerHTML=t,external_STORYBOOK_MODULE_GLOBAL_.global.document.head.appendChild(o)}}),"addOutlineStyles");function csf_dt(e){return W` ${e} body { outline: 1px solid #2980b9 !important; } ${e} article { outline: 1px solid #3498db !important; } ${e} nav { outline: 1px solid #0088c3 !important; } ${e} aside { outline: 1px solid #33a0ce !important; } ${e} section { outline: 1px solid #66b8da !important; } ${e} header { outline: 1px solid #99cfe7 !important; } ${e} footer { outline: 1px solid #cce7f3 !important; } ${e} h1 { outline: 1px solid #162544 !important; } ${e} h2 { outline: 1px solid #314e6e !important; } ${e} h3 { outline: 1px solid #3e5e85 !important; } ${e} h4 { outline: 1px solid #449baf !important; } ${e} h5 { outline: 1px solid #c7d1cb !important; } ${e} h6 { outline: 1px solid #4371d0 !important; } ${e} main { outline: 1px solid #2f4f90 !important; } ${e} address { outline: 1px solid #1a2c51 !important; } ${e} div { outline: 1px solid #036cdb !important; } ${e} p { outline: 1px solid #ac050b !important; } ${e} hr { outline: 1px solid #ff063f !important; } ${e} pre { outline: 1px solid #850440 !important; } ${e} blockquote { outline: 1px solid #f1b8e7 !important; } ${e} ol { outline: 1px solid #ff050c !important; } ${e} ul { outline: 1px solid #d90416 !important; } ${e} li { outline: 1px solid #d90416 !important; } ${e} dl { outline: 1px solid #fd3427 !important; } ${e} dt { outline: 1px solid #ff0043 !important; } ${e} dd { outline: 1px solid #e80174 !important; } ${e} figure { outline: 1px solid #ff00bb !important; } ${e} figcaption { outline: 1px solid #bf0032 !important; } ${e} table { outline: 1px solid #00cc99 !important; } ${e} caption { outline: 1px solid #37ffc4 !important; } ${e} thead { outline: 1px solid #98daca !important; } ${e} tbody { outline: 1px solid #64a7a0 !important; } ${e} tfoot { outline: 1px solid #22746b !important; } ${e} tr { outline: 1px solid #86c0b2 !important; } ${e} th { outline: 1px solid #a1e7d6 !important; } ${e} td { outline: 1px solid #3f5a54 !important; } ${e} col { outline: 1px solid #6c9a8f !important; } ${e} colgroup { outline: 1px solid #6c9a9d !important; } ${e} button { outline: 1px solid #da8301 !important; } ${e} datalist { outline: 1px solid #c06000 !important; } ${e} fieldset { outline: 1px solid #d95100 !important; } ${e} form { outline: 1px solid #d23600 !important; } ${e} input { outline: 1px solid #fca600 !important; } ${e} keygen { outline: 1px solid #b31e00 !important; } ${e} label { outline: 1px solid #ee8900 !important; } ${e} legend { outline: 1px solid #de6d00 !important; } ${e} meter { outline: 1px solid #e8630c !important; } ${e} optgroup { outline: 1px solid #b33600 !important; } ${e} option { outline: 1px solid #ff8a00 !important; } ${e} output { outline: 1px solid #ff9619 !important; } ${e} progress { outline: 1px solid #e57c00 !important; } ${e} select { outline: 1px solid #e26e0f !important; } ${e} textarea { outline: 1px solid #cc5400 !important; } ${e} details { outline: 1px solid #33848f !important; } ${e} summary { outline: 1px solid #60a1a6 !important; } ${e} command { outline: 1px solid #438da1 !important; } ${e} menu { outline: 1px solid #449da6 !important; } ${e} del { outline: 1px solid #bf0000 !important; } ${e} ins { outline: 1px solid #400000 !important; } ${e} img { outline: 1px solid #22746b !important; } ${e} iframe { outline: 1px solid #64a7a0 !important; } ${e} embed { outline: 1px solid #98daca !important; } ${e} object { outline: 1px solid #00cc99 !important; } ${e} param { outline: 1px solid #37ffc4 !important; } ${e} video { outline: 1px solid #6ee866 !important; } ${e} audio { outline: 1px solid #027353 !important; } ${e} source { outline: 1px solid #012426 !important; } ${e} canvas { outline: 1px solid #a2f570 !important; } ${e} track { outline: 1px solid #59a600 !important; } ${e} map { outline: 1px solid #7be500 !important; } ${e} area { outline: 1px solid #305900 !important; } ${e} a { outline: 1px solid #ff62ab !important; } ${e} em { outline: 1px solid #800b41 !important; } ${e} strong { outline: 1px solid #ff1583 !important; } ${e} i { outline: 1px solid #803156 !important; } ${e} b { outline: 1px solid #cc1169 !important; } ${e} u { outline: 1px solid #ff0430 !important; } ${e} s { outline: 1px solid #f805e3 !important; } ${e} small { outline: 1px solid #d107b2 !important; } ${e} abbr { outline: 1px solid #4a0263 !important; } ${e} q { outline: 1px solid #240018 !important; } ${e} cite { outline: 1px solid #64003c !important; } ${e} dfn { outline: 1px solid #b4005a !important; } ${e} sub { outline: 1px solid #dba0c8 !important; } ${e} sup { outline: 1px solid #cc0256 !important; } ${e} time { outline: 1px solid #d6606d !important; } ${e} code { outline: 1px solid #e04251 !important; } ${e} kbd { outline: 1px solid #5e001f !important; } ${e} samp { outline: 1px solid #9c0033 !important; } ${e} var { outline: 1px solid #d90047 !important; } ${e} mark { outline: 1px solid #ff0053 !important; } ${e} bdi { outline: 1px solid #bf3668 !important; } ${e} bdo { outline: 1px solid #6f1400 !important; } ${e} ruby { outline: 1px solid #ff7b93 !important; } ${e} rt { outline: 1px solid #ff2f54 !important; } ${e} rp { outline: 1px solid #803e49 !important; } ${e} span { outline: 1px solid #cc2643 !important; } ${e} br { outline: 1px solid #db687d !important; } ${e} wbr { outline: 1px solid #db175b !important; }`}n(csf_dt,"outlineCSS");var csf_Fr=n(((e,t)=>{let r=t.globals||{},o=[!0,"true"].includes(r.outline),i="docs"===t.viewMode,s=(0,external_STORYBOOK_MODULE_PREVIEW_API_.useMemo)((()=>csf_dt(i?'[data-story-block="true"]':".sb-show-main")),[t]);return(0,external_STORYBOOK_MODULE_PREVIEW_API_.useEffect)((()=>{let a=i?`addon-outline-docs-${t.id}`:"addon-outline";return o?csf_$r(a,s):csf_ct(a),()=>{csf_ct(a)}}),[o,s,t]),e()}),"withOutline"),csf_An=globalThis.FEATURES?.outline?[csf_Fr]:[],csf_Rn={[csf_Ae]:!1},csf_mt=n((()=>({decorators:csf_An,initialGlobals:csf_Rn})),"default"),csf_Fn=n((({parameters:e})=>{!0===e?.test?.mockReset?(0,external_STORYBOOK_MODULE_TEST_.resetAllMocks)():!0===e?.test?.clearMocks?(0,external_STORYBOOK_MODULE_TEST_.clearAllMocks)():!1!==e?.test?.restoreMocks&&(0,external_STORYBOOK_MODULE_TEST_.restoreAllMocks)()}),"resetAllMocksLoader"),csf_ut=n(((e,t=0,r)=>{if(t>5||null==e)return e;if((0,external_STORYBOOK_MODULE_TEST_.isMockFunction)(e))return r&&e.mockName(r),e;if("function"==typeof e&&"isAction"in e&&e.isAction&&(!("implicit"in e)||!e.implicit)){let o=(0,external_STORYBOOK_MODULE_TEST_.fn)(e);return r&&o.mockName(r),o}if(Array.isArray(e)){t++;for(let o=0;o<e.length;o++)Object.getOwnPropertyDescriptor(e,o)?.writable&&(e[o]=csf_ut(e[o],t));return e}if("object"==typeof e&&e.constructor===Object){t++;for(let[o,i]of Object.entries(e))Object.getOwnPropertyDescriptor(e,o)?.writable&&(e[o]=csf_ut(i,t,o));return e}return e}),"traverseArgs"),csf_In=n((({initialArgs:e})=>{csf_ut(e)}),"nameSpiesAndWrapActionsInSpies"),csf_Ir=!1,csf_Ln=n((async e=>{globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=(0,external_STORYBOOK_MODULE_TEST_.within)(e.canvasElement));let t=globalThis.window?.navigator?.clipboard;if(t){e.userEvent=Qs({userEvent:external_STORYBOOK_MODULE_TEST_.uninstrumentedUserEvent.setup()},{intercept:!0,getKeys:n((o=>Object.keys(o).filter((i=>"eventWrapper"!==i))),"getKeys")}).userEvent,Object.defineProperty(globalThis.window.navigator,"clipboard",{get:n((()=>t),"get"),configurable:!0});let r=HTMLElement.prototype.focus;csf_Ir||Object.defineProperties(HTMLElement.prototype,{focus:{configurable:!0,set:n((o=>{r=o,csf_Ir=!0}),"set"),get:n((()=>r),"get")}})}}),"enhanceContext"),csf_ft=n((()=>({loaders:[csf_Fn,csf_In,csf_Ln]})),"default"),csf_Dr="viewport",csf_n={[csf_Dr]:{value:void 0,isRotated:!1}},csf_yt=n((()=>({initialGlobals:csf_n})),"default");function csf_r(){return[(csf_lt.default??csf_lt)(),(csf_Je.default??csf_Je)(),(csf_st.default??csf_st)(),(csf_mt.default??csf_mt)(),(csf_yt.default??csf_yt)(),(csf_Xe.default??csf_Xe)(),(csf_Qe.default??csf_Qe)(),(csf_ft.default??csf_ft)()]}function rc(e){return e}function oc(e){return null!=e&&"object"==typeof e&&"_tag"in e&&"Preview"===e?._tag}function csf_Nn(e,t){return{_tag:"Meta",input:e,preview:t,get composed(){throw new Error("Not implemented")},story(r={}){return csf_Hr("function"==typeof r?{render:r}:r,this)}}}function csf_Hr(e,t){let r,o=n((()=>(r||(r=csf_We(e,t.input,void 0,t.preview.composed)),r)),"compose");return{_tag:"Story",input:e,meta:t,__compose:o,get composed(){let i=o(),{args:s,argTypes:a,parameters:p,id:c,tags:l,globals:y,storyName:u}=i;return{args:s,argTypes:a,parameters:p,id:c,tags:l,name:u,globals:y}},get play(){return e.play??t.input?.play??(async()=>{})},get run(){return o().run??(async()=>{})},extend(i){return csf_Hr({...this.input,...i,args:{...this.input.args,...i.args},argTypes:csf_D(this.input.argTypes,i.argTypes),afterEach:[...b(this.input?.afterEach??[]),...b(i.afterEach??[])],beforeEach:[...b(this.input?.beforeEach??[]),...b(i.beforeEach??[])],decorators:[...b(this.input?.decorators??[]),...b(i.decorators??[])],globals:{...this.input.globals,...i.globals},loaders:[...b(this.input?.loaders??[]),...b(i.loaders??[])],parameters:csf_D(this.input.parameters,i.parameters),tags:uc(...this.input.tags??[],...i.tags??[])},this.meta)}}}n(csf_r,"getCoreAnnotations"),n((function tc(e){let t,r={_tag:"Preview",input:e,get composed(){if(t)return t;let{addons:o,...i}=e;return t=csf_te(csf_ne([...csf_r(),...o??[],i])),t},meta(o){return csf_Nn(o,this)}};return globalThis.globalProjectAnnotations=r.composed,r}),"definePreview"),n(rc,"definePreviewAddon"),n(oc,"isPreview"),n((function nc(e){return null!=e&&"object"==typeof e&&"_tag"in e&&"Meta"===e?._tag}),"isMeta"),n(csf_Nn,"defineMeta"),n((function ic(e){return null!=e&&"object"==typeof e&&"_tag"in e&&"Story"===e?._tag}),"isStory"),n(csf_Hr,"defineStory");var csf_jn=n((e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")),"sanitize"),csf_Nr=n(((e,t)=>{let r=csf_jn(e);if(""===r)throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r}),"sanitizeSafe"),lc=n(((e,t)=>`${csf_Nr(e,"kind")}${t?`--${csf_Nr(t,"name")}`:""}`),"toId"),cc=n((e=>csf_bt(e)),"storyNameFromExport");function csf_jr(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}n(csf_jr,"matches"),n((function dc(e,{includeStories:t,excludeStories:r}){return"__esModule"!==e&&(!t||csf_jr(e,t))&&(!r||!csf_jr(e,r))}),"isExportStory");var uc=n(((...e)=>{let t=e.reduce(((r,o)=>(o.startsWith("!")?r.delete(o.slice(1)):r.add(o),r)),new Set);return Array.from(t)}),"combineTags")},"./node_modules/storybook/dist/docs-tools/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{C2:()=>ya,Op:()=>ha,Sy:()=>wt,TQ:()=>at,UO:()=>pt,Ux:()=>w,Y1:()=>Tn,YF:()=>Ir,i3:()=>Ke,p6:()=>aa,rl:()=>ia});var n,s,storybook_internal_preview_errors__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("storybook/internal/preview-errors"),dr=Object.create,Ie=Object.defineProperty,Tr=Object.getOwnPropertyDescriptor,gr=Object.getOwnPropertyNames,xr=Object.getPrototypeOf,hr=Object.prototype.hasOwnProperty,r=(n,s)=>Ie(n,"name",{value:s,configurable:!0}),dt=(n=(fe,yt)=>{var n,s;n=fe,s=function(n){function s(e){return void 0!==e.text&&""!==e.text?`'${e.type}' with value '${e.text}'`:`'${e.type}'`}r(s,"tokenToString");let ne=class ne extends Error{constructor(t){super(`No parslet found for token: ${s(t)}`),this.token=t,Object.setPrototypeOf(this,ne.prototype)}getToken(){return this.token}};r(ne,"NoParsletFoundError");let a=ne,oe=class oe extends Error{constructor(t){super(`The parsing ended early. The next token was: ${s(t)}`),this.token=t,Object.setPrototypeOf(this,oe.prototype)}getToken(){return this.token}};r(oe,"EarlyEndOfParseError");let p=oe,se=class se extends Error{constructor(t,o){let i=`Unexpected type: '${t.type}'.`;void 0!==o&&(i+=` Message: ${o}`),super(i),Object.setPrototypeOf(this,se.prototype)}};r(se,"UnexpectedTypeError");let c=se;function u(e){return t=>t.startsWith(e)?{type:e,text:e}:null}function m(e){let o,t=0,i=e[0],l=!1;if("'"!==i&&'"'!==i)return null;for(;t<e.length;){if(t++,o=e[t],!l&&o===i){t++;break}l=!l&&"\\"===o}if(o!==i)throw new Error("Unterminated String");return e.slice(0,t)}r(u,"makePunctuationRule"),r(m,"getQuoted");let T=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u"),g=new RegExp("[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u");function P(e){let t=e[0];if(!T.test(t))return null;let o=1;do{if(t=e[o],!g.test(t))break;o++}while(o<e.length);return e.slice(0,o)}r(P,"getIdentifier");let b=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function de(e){var t,o;return null!==(o=null===(t=b.exec(e))||void 0===t?void 0:t[0])&&void 0!==o?o:null}r(de,"getNumber");let q=r((e=>{let t=P(e);return null==t?null:{type:"Identifier",text:t}}),"identifierRule");function S(e){return t=>{if(!t.startsWith(e))return null;let o=t[e.length];return void 0!==o&&g.test(o)?null:{type:e,text:e}}}r(S,"makeKeyWordRule");let z=r((e=>{let t=m(e);return null==t?null:{type:"StringValue",text:t}}),"stringValueRule"),Te=r((e=>e.length>0?null:{type:"EOF",text:""}),"eofRule"),ge=r((e=>{let t=de(e);return null===t?null:{type:"Number",text:t}}),"numberRule"),Rt=[Te,u("=>"),u("("),u(")"),u("{"),u("}"),u("["),u("]"),u("|"),u("&"),u("<"),u(">"),u(","),u(";"),u("*"),u("?"),u("!"),u("="),u(":"),u("..."),u("."),u("#"),u("~"),u("/"),u("@"),S("undefined"),S("null"),S("function"),S("this"),S("new"),S("module"),S("event"),S("external"),S("typeof"),S("keyof"),S("readonly"),S("import"),S("is"),S("in"),S("asserts"),ge,q,z],jt=/^\s*\n\s*/,U=class U{static create(t){let o=this.read(t);t=o.text;let i=this.read(t);return t=i.text,new U(t,void 0,o.token,i.token)}constructor(t,o,i,l){this.text="",this.text=t,this.previous=o,this.current=i,this.next=l}static read(t,o=!1){o=o||jt.test(t),t=t.trim();for(let i of Rt){let l=i(t);if(null!==l){let f=Object.assign(Object.assign({},l),{startOfLine:o});return{text:t=t.slice(f.text.length),token:f}}}throw new Error("Unexpected Token "+t)}advance(){let t=U.read(this.text);return new U(t.text,this.current,this.next,t.token)}};r(U,"Lexer");let xe=U;function J(e){if(void 0===e)throw new Error("Unexpected undefined");if("JsdocTypeKeyValue"===e.type||"JsdocTypeParameterList"===e.type||"JsdocTypeProperty"===e.type||"JsdocTypeReadonlyProperty"===e.type||"JsdocTypeObjectField"===e.type||"JsdocTypeJsdocObjectField"===e.type||"JsdocTypeIndexSignature"===e.type||"JsdocTypeMappedType"===e.type)throw new c(e);return e}function he(e){return"JsdocTypeKeyValue"===e.type?H(e):J(e)}function Ft(e){return"JsdocTypeName"===e.type?e:H(e)}function H(e){if("JsdocTypeKeyValue"!==e.type)throw new c(e);return e}function _t(e){var t;if("JsdocTypeVariadic"===e.type){if("JsdocTypeName"===(null===(t=e.element)||void 0===t?void 0:t.type))return e;throw new c(e)}if("JsdocTypeNumber"!==e.type&&"JsdocTypeName"!==e.type)throw new c(e);return e}function Je(e){return"JsdocTypeIndexSignature"===e.type||"JsdocTypeMappedType"===e.type}var y,e;r(J,"assertRootResult"),r(he,"assertPlainKeyValueOrRootResult"),r(Ft,"assertPlainKeyValueOrNameResult"),r(H,"assertPlainKeyValueResult"),r(_t,"assertNumberOrVariadicNameResult"),r(Je,"isSquaredProperty"),(e=y||(y={}))[e.ALL=0]="ALL",e[e.PARAMETER_LIST=1]="PARAMETER_LIST",e[e.OBJECT=2]="OBJECT",e[e.KEY_VALUE=3]="KEY_VALUE",e[e.INDEX_BRACKETS=4]="INDEX_BRACKETS",e[e.UNION=5]="UNION",e[e.INTERSECTION=6]="INTERSECTION",e[e.PREFIX=7]="PREFIX",e[e.INFIX=8]="INFIX",e[e.TUPLE=9]="TUPLE",e[e.SYMBOL=10]="SYMBOL",e[e.OPTIONAL=11]="OPTIONAL",e[e.NULLABLE=12]="NULLABLE",e[e.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",e[e.FUNCTION=14]="FUNCTION",e[e.ARROW=15]="ARROW",e[e.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",e[e.GENERIC=17]="GENERIC",e[e.NAME_PATH=18]="NAME_PATH",e[e.PARENTHESIS=19]="PARENTHESIS",e[e.SPECIAL_TYPES=20]="SPECIAL_TYPES";let Ae=class Ae{constructor(t,o,i){this.grammar=t,this._lexer="string"==typeof o?xe.create(o):o,this.baseParser=i}get lexer(){return this._lexer}parse(){let t=this.parseType(y.ALL);if("EOF"!==this.lexer.current.type)throw new p(this.lexer.current);return t}parseType(t){return J(this.parseIntermediateType(t))}parseIntermediateType(t){let o=this.tryParslets(null,t);if(null===o)throw new a(this.lexer.current);return this.parseInfixIntermediateType(o,t)}parseInfixIntermediateType(t,o){let i=this.tryParslets(t,o);for(;null!==i;)t=i,i=this.tryParslets(t,o);return t}tryParslets(t,o){for(let i of this.grammar){let l=i(this,o,t);if(null!==l)return l}return null}consume(t){return Array.isArray(t)||(t=[t]),!!t.includes(this.lexer.current.type)&&(this._lexer=this.lexer.advance(),!0)}acceptLexerState(t){this._lexer=t.lexer}};r(Ae,"Parser");let I=Ae;function Ye(e){return"EOF"===e||"|"===e||","===e||")"===e||">"===e}r(Ye,"isQuestionMarkUnknownType");let we=r(((e,t,o)=>{let i=e.lexer.current.type,l=e.lexer.next.type;return null==o&&"?"===i&&!Ye(l)||null!=o&&"?"===i?(e.consume("?"),null==o?{type:"JsdocTypeNullable",element:e.parseType(y.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:J(o),meta:{position:"suffix"}}):null}),"nullableParslet");function x(e){let t=r(((o,i,l)=>{let f=o.lexer.current.type,d=o.lexer.next.type;if(null===l){if("parsePrefix"in e&&e.accept(f,d))return e.parsePrefix(o)}else if("parseInfix"in e&&e.precedence>i&&e.accept(f,d))return e.parseInfix(o,l);return null}),"parslet");return Object.defineProperty(t,"name",{value:e.name}),t}r(x,"composeParslet");let Q=x({name:"optionalParslet",accept:r((e=>"="===e),"accept"),precedence:y.OPTIONAL,parsePrefix:r((e=>(e.consume("="),{type:"JsdocTypeOptional",element:e.parseType(y.OPTIONAL),meta:{position:"prefix"}})),"parsePrefix"),parseInfix:r(((e,t)=>(e.consume("="),{type:"JsdocTypeOptional",element:J(t),meta:{position:"suffix"}})),"parseInfix")}),Z=x({name:"numberParslet",accept:r((e=>"Number"===e),"accept"),parsePrefix:r((e=>{let t=parseFloat(e.lexer.current.text);return e.consume("Number"),{type:"JsdocTypeNumber",value:t}}),"parsePrefix")}),Vt=x({name:"parenthesisParslet",accept:r((e=>"("===e),"accept"),parsePrefix:r((e=>{if(e.consume("("),e.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let t=e.parseIntermediateType(y.ALL);if(!e.consume(")"))throw new Error("Unterminated parenthesis");return"JsdocTypeParameterList"===t.type?t:"JsdocTypeKeyValue"===t.type?{type:"JsdocTypeParameterList",elements:[t]}:{type:"JsdocTypeParenthesis",element:J(t)}}),"parsePrefix")}),Lt=x({name:"specialTypesParslet",accept:r(((e,t)=>"?"===e&&Ye(t)||"null"===e||"undefined"===e||"*"===e),"accept"),parsePrefix:r((e=>{if(e.consume("null"))return{type:"JsdocTypeNull"};if(e.consume("undefined"))return{type:"JsdocTypeUndefined"};if(e.consume("*"))return{type:"JsdocTypeAny"};if(e.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+e.lexer.current.text)}),"parsePrefix")}),Ut=x({name:"notNullableParslet",accept:r((e=>"!"===e),"accept"),precedence:y.NULLABLE,parsePrefix:r((e=>(e.consume("!"),{type:"JsdocTypeNotNullable",element:e.parseType(y.NULLABLE),meta:{position:"prefix"}})),"parsePrefix"),parseInfix:r(((e,t)=>(e.consume("!"),{type:"JsdocTypeNotNullable",element:J(t),meta:{position:"suffix"}})),"parseInfix")});function Bt({allowTrailingComma:e}){return x({name:"parameterListParslet",accept:r((t=>","===t),"accept"),precedence:y.PARAMETER_LIST,parseInfix:r(((t,o)=>{let i=[he(o)];t.consume(",");do{try{let l=t.parseIntermediateType(y.PARAMETER_LIST);i.push(he(l))}catch(l){if(e&&l instanceof a)break;throw l}}while(t.consume(","));if(i.length>0&&i.slice(0,-1).some((l=>"JsdocTypeVariadic"===l.type)))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:i}}),"parseInfix")})}r(Bt,"createParameterListParslet");let Ct=x({name:"genericParslet",accept:r(((e,t)=>"<"===e||"."===e&&"<"===t),"accept"),precedence:y.GENERIC,parseInfix:r(((e,t)=>{let o=e.consume(".");e.consume("<");let i=[];do{i.push(e.parseType(y.PARAMETER_LIST))}while(e.consume(","));if(!e.consume(">"))throw new Error("Unterminated generic parameter list");return{type:"JsdocTypeGeneric",left:J(t),elements:i,meta:{brackets:"angle",dot:o}}}),"parseInfix")}),Mt=x({name:"unionParslet",accept:r((e=>"|"===e),"accept"),precedence:y.UNION,parseInfix:r(((e,t)=>{e.consume("|");let o=[];do{o.push(e.parseType(y.UNION))}while(e.consume("|"));return{type:"JsdocTypeUnion",elements:[J(t),...o]}}),"parseInfix")}),Pe=[we,Q,Z,Vt,Lt,Ut,Bt({allowTrailingComma:!0}),Ct,Mt,Q];function ee({allowSquareBracketsOnAnyType:e,allowJsdocNamePaths:t,pathGrammar:o}){return r((function(l,f,d){if(null==d||f>=y.NAME_PATH)return null;let h=l.lexer.current.type,D=l.lexer.next.type;if(!("."===h&&"<"!==D||"["===h&&(e||"JsdocTypeName"===d.type)||t&&("~"===h||"#"===h)))return null;let O,ae=!1;l.consume(".")?O="property":l.consume("[")?(O="property-brackets",ae=!0):l.consume("~")?O="inner":(l.consume("#"),O="instance");let G,rt=null!==o?new I(o,l.lexer,l):l,k=rt.parseIntermediateType(y.NAME_PATH);switch(l.acceptLexerState(rt),k.type){case"JsdocTypeName":G={type:"JsdocTypeProperty",value:k.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":G={type:"JsdocTypeProperty",value:k.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":G={type:"JsdocTypeProperty",value:k.value,meta:{quote:k.meta.quote}};break;case"JsdocTypeSpecialNamePath":if("event"!==k.specialType)throw new c(k,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");G=k;break;default:throw new c(k,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(ae&&!l.consume("]")){let nt=l.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${nt.type}' with text '${nt.text}'`)}return{type:"JsdocTypeNamePath",left:J(d),right:G,pathType:O}}),"namePathParslet")}function R({allowedAdditionalTokens:e}){return x({name:"nameParslet",accept:r((t=>"Identifier"===t||"this"===t||"new"===t||e.includes(t)),"accept"),parsePrefix:r((t=>{let{type:o,text:i}=t.lexer.current;return t.consume(o),{type:"JsdocTypeName",value:i}}),"parsePrefix")})}r(ee,"createNamePathParslet"),r(R,"createNameParslet");let Y=x({name:"stringValueParslet",accept:r((e=>"StringValue"===e),"accept"),parsePrefix:r((e=>{let t=e.lexer.current.text;return e.consume("StringValue"),{type:"JsdocTypeStringValue",value:t.slice(1,-1),meta:{quote:"'"===t[0]?"single":"double"}}}),"parsePrefix")});function te({pathGrammar:e,allowedTypes:t}){return x({name:"specialNamePathParslet",accept:r((o=>t.includes(o)),"accept"),parsePrefix:r((o=>{let i=o.lexer.current.type;if(o.consume(i),!o.consume(":"))return{type:"JsdocTypeName",value:i};let l,f=o.lexer.current;if(o.consume("StringValue"))l={type:"JsdocTypeSpecialNamePath",value:f.text.slice(1,-1),specialType:i,meta:{quote:"'"===f.text[0]?"single":"double"}};else{let D="",E=["Identifier","@","/"];for(;E.some((O=>o.consume(O)));)D+=f.text,f=o.lexer.current;l={type:"JsdocTypeSpecialNamePath",value:D,specialType:i,meta:{quote:void 0}}}let d=new I(e,o.lexer,o),h=d.parseInfixIntermediateType(l,y.ALL);return o.acceptLexerState(d),J(h)}),"parsePrefix")})}r(te,"createSpecialNamePathParslet");let We=[R({allowedAdditionalTokens:["external","module"]}),Y,Z,ee({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],L=[...We,te({allowedTypes:["event"],pathGrammar:We})];function be(e){let t;if("JsdocTypeParameterList"===e.type)t=e.elements;else{if("JsdocTypeParenthesis"!==e.type)throw new c(e);t=[e.element]}return t.map((o=>he(o)))}function Kt(e){let t=be(e);if(t.some((o=>"JsdocTypeKeyValue"===o.type)))throw new Error("No parameter should be named");return t}function Se({allowNamedParameters:e,allowNoReturnType:t,allowWithoutParenthesis:o,allowNewAsFunctionKeyword:i}){return x({name:"functionParslet",accept:r(((l,f)=>"function"===l||i&&"new"===l&&"("===f),"accept"),parsePrefix:r((l=>{let f=l.consume("new");l.consume("function");let d="("===l.lexer.current.type;if(!d){if(!o)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let h={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:f,parenthesis:d},D=l.parseIntermediateType(y.FUNCTION);if(void 0===e)h.parameters=Kt(D);else{if(f&&"JsdocTypeFunction"===D.type&&D.arrow)return h=D,h.constructor=!0,h;h.parameters=be(D);for(let E of h.parameters)if("JsdocTypeKeyValue"===E.type&&!e.includes(E.key))throw new Error(`only allowed named parameters are ${e.join(", ")} but got ${E.type}`)}if(l.consume(":"))h.returnType=l.parseType(y.PREFIX);else if(!t)throw new Error("function is missing return type");return h}),"parsePrefix")})}function Ee({allowPostfix:e,allowEnclosingBrackets:t}){return x({name:"variadicParslet",accept:r((o=>"..."===o),"accept"),precedence:y.PREFIX,parsePrefix:r((o=>{o.consume("...");let i=t&&o.consume("[");try{let l=o.parseType(y.PREFIX);if(i&&!o.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:J(l),meta:{position:"prefix",squareBrackets:i}}}catch(l){if(l instanceof a){if(i)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}throw l}}),"parsePrefix"),parseInfix:e?(o,i)=>(o.consume("..."),{type:"JsdocTypeVariadic",element:J(i),meta:{position:"suffix",squareBrackets:!1}}):void 0})}r(be,"getParameters"),r(Kt,"getUnnamedParameters"),r(Se,"createFunctionParslet"),r(Ee,"createVariadicParslet");let Ge=x({name:"symbolParslet",accept:r((e=>"("===e),"accept"),precedence:y.SYMBOL,parseInfix:r(((e,t)=>{if("JsdocTypeName"!==t.type)throw new Error("Symbol expects a name on the left side. (Reacting on '(')");e.consume("(");let o={type:"JsdocTypeSymbol",value:t.value};if(!e.consume(")")){let i=e.parseIntermediateType(y.SYMBOL);if(o.element=_t(i),!e.consume(")"))throw new Error("Symbol does not end after value")}return o}),"parseInfix")}),Xe=x({name:"arrayBracketsParslet",precedence:y.ARRAY_BRACKETS,accept:r(((e,t)=>"["===e&&"]"===t),"accept"),parseInfix:r(((e,t)=>(e.consume("["),e.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[J(t)],meta:{brackets:"square",dot:!1}})),"parseInfix")});function Ne({objectFieldGrammar:e,allowKeyTypes:t}){return x({name:"objectParslet",accept:r((o=>"{"===o),"accept"),parsePrefix:r((o=>{o.consume("{");let i={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!o.consume("}")){let l,f=new I(e,o.lexer,o);for(;;){f.acceptLexerState(o);let d=f.parseIntermediateType(y.OBJECT);o.acceptLexerState(f),void 0===d&&t&&(d=o.parseIntermediateType(y.OBJECT));let h=!1;if("JsdocTypeNullable"===d.type&&(h=!0,d=d.element),"JsdocTypeNumber"===d.type||"JsdocTypeName"===d.type||"JsdocTypeStringValue"===d.type){let E;"JsdocTypeStringValue"===d.type&&(E=d.meta.quote),i.elements.push({type:"JsdocTypeObjectField",key:d.value.toString(),right:void 0,optional:h,readonly:!1,meta:{quote:E}})}else{if("JsdocTypeObjectField"!==d.type&&"JsdocTypeJsdocObjectField"!==d.type)throw new c(d);i.elements.push(d)}if(o.lexer.current.startOfLine)l="linebreak";else if(o.consume(","))l="comma";else{if(!o.consume(";"))break;l="semicolon"}if("}"===o.lexer.current.type)break}if(i.meta.separator=l??"comma",!o.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return i}),"parsePrefix")})}function De({allowSquaredProperties:e,allowKeyTypes:t,allowReadonly:o,allowOptional:i}){return x({name:"objectFieldParslet",precedence:y.KEY_VALUE,accept:r((l=>":"===l),"accept"),parseInfix:r(((l,f)=>{var d;let h=!1,D=!1;i&&"JsdocTypeNullable"===f.type&&(h=!0,f=f.element),o&&"JsdocTypeReadonlyProperty"===f.type&&(D=!0,f=f.element);let E=null!==(d=l.baseParser)&&void 0!==d?d:l;if(E.acceptLexerState(l),"JsdocTypeNumber"===f.type||"JsdocTypeName"===f.type||"JsdocTypeStringValue"===f.type||Je(f)){if(Je(f)&&!e)throw new c(f);let O;E.consume(":"),"JsdocTypeStringValue"===f.type&&(O=f.meta.quote);let ae=E.parseType(y.KEY_VALUE);return l.acceptLexerState(E),{type:"JsdocTypeObjectField",key:Je(f)?f:f.value.toString(),right:ae,optional:h,readonly:D,meta:{quote:O}}}{if(!t)throw new c(f);E.consume(":");let O=E.parseType(y.KEY_VALUE);return l.acceptLexerState(E),{type:"JsdocTypeJsdocObjectField",left:J(f),right:O}}}),"parseInfix")})}function Oe({allowOptional:e,allowVariadic:t}){return x({name:"keyValueParslet",precedence:y.KEY_VALUE,accept:r((o=>":"===o),"accept"),parseInfix:r(((o,i)=>{let l=!1,f=!1;if(e&&"JsdocTypeNullable"===i.type&&(l=!0,i=i.element),t&&"JsdocTypeVariadic"===i.type&&void 0!==i.element&&(f=!0,i=i.element),"JsdocTypeName"!==i.type)throw new c(i);o.consume(":");let d=o.parseType(y.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:i.value,right:d,optional:l,variadic:f}}),"parseInfix")})}r(Ne,"createObjectParslet"),r(De,"createObjectFieldParslet"),r(Oe,"createKeyValueParslet");let ze=[...Pe,Se({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Y,te({allowedTypes:["module","external","event"],pathGrammar:L}),Ee({allowEnclosingBrackets:!0,allowPostfix:!0}),R({allowedAdditionalTokens:["keyof"]}),Ge,Xe,ee({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:L})],$t=[...ze,Ne({objectFieldGrammar:[R({allowedAdditionalTokens:["module","in"]}),De({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...ze],allowKeyTypes:!0}),Oe({allowOptional:!0,allowVariadic:!0})],He=x({name:"typeOfParslet",accept:r((e=>"typeof"===e),"accept"),parsePrefix:r((e=>(e.consume("typeof"),{type:"JsdocTypeTypeof",element:J(e.parseType(y.KEY_OF_TYPE_OF))})),"parsePrefix")}),qt=[R({allowedAdditionalTokens:["module","keyof","event","external","in"]}),we,Q,Y,Z,De({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],Yt=[...Pe,Ne({allowKeyTypes:!1,objectFieldGrammar:qt}),R({allowedAdditionalTokens:["event","external","in"]}),He,Se({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Ee({allowEnclosingBrackets:!1,allowPostfix:!1}),R({allowedAdditionalTokens:["keyof"]}),te({allowedTypes:["module"],pathGrammar:L}),ee({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:L}),Oe({allowOptional:!1,allowVariadic:!1}),Ge],Wt=x({name:"assertsParslet",accept:r((e=>"asserts"===e),"accept"),parsePrefix:r((e=>{e.consume("asserts");let t=e.parseIntermediateType(y.SYMBOL);if("JsdocTypeName"!==t.type)throw new c(t,"A typescript asserts always has to have a name on the left side.");return e.consume("is"),{type:"JsdocTypeAsserts",left:t,right:J(e.parseIntermediateType(y.INFIX))}}),"parsePrefix")});function Gt({allowQuestionMark:e}){return x({name:"tupleParslet",accept:r((t=>"["===t),"accept"),parsePrefix:r((t=>{t.consume("[");let o={type:"JsdocTypeTuple",elements:[]};if(t.consume("]"))return o;let i=t.parseIntermediateType(y.ALL);if("JsdocTypeParameterList"===i.type?"JsdocTypeKeyValue"===i.elements[0].type?o.elements=i.elements.map(H):o.elements=i.elements.map(J):"JsdocTypeKeyValue"===i.type?o.elements=[H(i)]:o.elements=[J(i)],!t.consume("]"))throw new Error("Unterminated '['");if(!e&&o.elements.some((l=>"JsdocTypeUnknown"===l.type)))throw new Error("Question mark in tuple not allowed");return o}),"parsePrefix")})}r(Gt,"createTupleParslet");let Xt=x({name:"keyOfParslet",accept:r((e=>"keyof"===e),"accept"),parsePrefix:r((e=>(e.consume("keyof"),{type:"JsdocTypeKeyof",element:J(e.parseType(y.KEY_OF_TYPE_OF))})),"parsePrefix")}),zt=x({name:"importParslet",accept:r((e=>"import"===e),"accept"),parsePrefix:r((e=>{if(e.consume("import"),!e.consume("("))throw new Error("Missing parenthesis after import keyword");let t=e.parseType(y.PREFIX);if("JsdocTypeStringValue"!==t.type)throw new Error("Only string values are allowed as paths for imports");if(!e.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:t}}),"parsePrefix")}),Ht=x({name:"readonlyPropertyParslet",accept:r((e=>"readonly"===e),"accept"),parsePrefix:r((e=>(e.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:e.parseType(y.KEY_VALUE)})),"parsePrefix")}),Qt=x({name:"arrowFunctionParslet",precedence:y.ARROW,accept:r((e=>"=>"===e),"accept"),parseInfix:r(((e,t)=>(e.consume("=>"),{type:"JsdocTypeFunction",parameters:be(t).map(Ft),arrow:!0,constructor:!1,parenthesis:!0,returnType:e.parseType(y.OBJECT)})),"parseInfix")}),Zt=x({name:"intersectionParslet",accept:r((e=>"&"===e),"accept"),precedence:y.INTERSECTION,parseInfix:r(((e,t)=>{e.consume("&");let o=[];do{o.push(e.parseType(y.INTERSECTION))}while(e.consume("&"));return{type:"JsdocTypeIntersection",elements:[J(t),...o]}}),"parseInfix")}),er=x({name:"predicateParslet",precedence:y.INFIX,accept:r((e=>"is"===e),"accept"),parseInfix:r(((e,t)=>{if("JsdocTypeName"!==t.type)throw new c(t,"A typescript predicate always has to have a name on the left side.");return e.consume("is"),{type:"JsdocTypePredicate",left:t,right:J(e.parseIntermediateType(y.INFIX))}}),"parseInfix")}),tr=x({name:"objectSquareBracketPropertyParslet",accept:r((e=>"["===e),"accept"),parsePrefix:r((e=>{if(void 0===e.baseParser)throw new Error("Only allowed inside object grammar");e.consume("[");let o,t=e.lexer.current.text;if(e.consume("Identifier"),e.consume(":")){let i=e.baseParser;i.acceptLexerState(e),o={type:"JsdocTypeIndexSignature",key:t,right:i.parseType(y.INDEX_BRACKETS)},e.acceptLexerState(i)}else{if(!e.consume("in"))throw new Error("Missing ':' or 'in' inside square bracketed property.");{let i=e.baseParser;i.acceptLexerState(e),o={type:"JsdocTypeMappedType",key:t,right:i.parseType(y.ARRAY_BRACKETS)},e.acceptLexerState(i)}}if(!e.consume("]"))throw new Error("Unterminated square brackets");return o}),"parsePrefix")}),rr=[Ht,R({allowedAdditionalTokens:["module","event","keyof","event","external","in"]}),we,Q,Y,Z,De({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),tr],nr=[...Pe,Ne({allowKeyTypes:!1,objectFieldGrammar:rr}),He,Xt,zt,Y,Se({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),Gt({allowQuestionMark:!1}),Ee({allowEnclosingBrackets:!1,allowPostfix:!1}),Wt,R({allowedAdditionalTokens:["event","external","in"]}),te({allowedTypes:["module"],pathGrammar:L}),Xe,Qt,ee({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:L}),Zt,er,Oe({allowVariadic:!0,allowOptional:!0})];function Qe(e,t){switch(t){case"closure":return new I(Yt,e).parse();case"jsdoc":return new I($t,e).parse();case"typescript":return new I(nr,e).parse()}}function or(e,t=["typescript","closure","jsdoc"]){let o;for(let i of t)try{return Qe(e,i)}catch(l){o=l}throw o}function W(e,t){let o=e[t.type];if(void 0===o)throw new Error(`In this set of transform rules exists no rule for type ${t.type}.`);return o(t,(i=>W(e,i)))}function N(e){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}function Ze(e){let t={params:[]};for(let o of e.parameters)"JsdocTypeKeyValue"===o.type?"this"===o.key?t.this=o.right:"new"===o.key?t.new=o.right:t.params.push(o):t.params.push(o);return t}function re(e,t,o){return"prefix"===e?o+t:t+o}function j(e,t){switch(t){case"double":return`"${e}"`;case"single":return`'${e}'`;case void 0:return e}}function et(){return{JsdocTypeParenthesis:r(((e,t)=>`(${void 0!==e.element?t(e.element):""})`),"JsdocTypeParenthesis"),JsdocTypeKeyof:r(((e,t)=>`keyof ${t(e.element)}`),"JsdocTypeKeyof"),JsdocTypeFunction:r(((e,t)=>{if(e.arrow){if(void 0===e.returnType)throw new Error("Arrow function needs a return type.");let o=`(${e.parameters.map(t).join(", ")}) => ${t(e.returnType)}`;return e.constructor&&(o="new "+o),o}{let o=e.constructor?"new":"function";return e.parenthesis&&(o+=`(${e.parameters.map(t).join(", ")})`,void 0!==e.returnType&&(o+=`: ${t(e.returnType)}`)),o}}),"JsdocTypeFunction"),JsdocTypeName:r((e=>e.value),"JsdocTypeName"),JsdocTypeTuple:r(((e,t)=>`[${e.elements.map(t).join(", ")}]`),"JsdocTypeTuple"),JsdocTypeVariadic:r(((e,t)=>void 0===e.meta.position?"...":re(e.meta.position,t(e.element),"...")),"JsdocTypeVariadic"),JsdocTypeNamePath:r(((e,t)=>{let o=t(e.left),i=t(e.right);switch(e.pathType){case"inner":return`${o}~${i}`;case"instance":return`${o}#${i}`;case"property":return`${o}.${i}`;case"property-brackets":return`${o}[${i}]`}}),"JsdocTypeNamePath"),JsdocTypeStringValue:r((e=>j(e.value,e.meta.quote)),"JsdocTypeStringValue"),JsdocTypeAny:r((()=>"*"),"JsdocTypeAny"),JsdocTypeGeneric:r(((e,t)=>{if("square"===e.meta.brackets){let o=e.elements[0],i=t(o);return"JsdocTypeUnion"===o.type||"JsdocTypeIntersection"===o.type?`(${i})[]`:`${i}[]`}return`${t(e.left)}${e.meta.dot?".":""}<${e.elements.map(t).join(", ")}>`}),"JsdocTypeGeneric"),JsdocTypeImport:r(((e,t)=>`import(${t(e.element)})`),"JsdocTypeImport"),JsdocTypeObjectField:r(((e,t)=>{let o="";return e.readonly&&(o+="readonly "),"string"==typeof e.key?o+=j(e.key,e.meta.quote):o+=t(e.key),e.optional&&(o+="?"),void 0===e.right?o:o+`: ${t(e.right)}`}),"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:r(((e,t)=>`${t(e.left)}: ${t(e.right)}`),"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:r(((e,t)=>{let o=e.key;return e.optional&&(o+="?"),e.variadic&&(o="..."+o),void 0===e.right?o:o+`: ${t(e.right)}`}),"JsdocTypeKeyValue"),JsdocTypeSpecialNamePath:r((e=>`${e.specialType}:${j(e.value,e.meta.quote)}`),"JsdocTypeSpecialNamePath"),JsdocTypeNotNullable:r(((e,t)=>re(e.meta.position,t(e.element),"!")),"JsdocTypeNotNullable"),JsdocTypeNull:r((()=>"null"),"JsdocTypeNull"),JsdocTypeNullable:r(((e,t)=>re(e.meta.position,t(e.element),"?")),"JsdocTypeNullable"),JsdocTypeNumber:r((e=>e.value.toString()),"JsdocTypeNumber"),JsdocTypeObject:r(((e,t)=>`{${e.elements.map(t).join(("comma"===e.meta.separator?",":";")+" ")}}`),"JsdocTypeObject"),JsdocTypeOptional:r(((e,t)=>re(e.meta.position,t(e.element),"=")),"JsdocTypeOptional"),JsdocTypeSymbol:r(((e,t)=>`${e.value}(${void 0!==e.element?t(e.element):""})`),"JsdocTypeSymbol"),JsdocTypeTypeof:r(((e,t)=>`typeof ${t(e.element)}`),"JsdocTypeTypeof"),JsdocTypeUndefined:r((()=>"undefined"),"JsdocTypeUndefined"),JsdocTypeUnion:r(((e,t)=>e.elements.map(t).join(" | ")),"JsdocTypeUnion"),JsdocTypeUnknown:r((()=>"?"),"JsdocTypeUnknown"),JsdocTypeIntersection:r(((e,t)=>e.elements.map(t).join(" & ")),"JsdocTypeIntersection"),JsdocTypeProperty:r((e=>j(e.value,e.meta.quote)),"JsdocTypeProperty"),JsdocTypePredicate:r(((e,t)=>`${t(e.left)} is ${t(e.right)}`),"JsdocTypePredicate"),JsdocTypeIndexSignature:r(((e,t)=>`[${e.key}: ${t(e.right)}]`),"JsdocTypeIndexSignature"),JsdocTypeMappedType:r(((e,t)=>`[${e.key} in ${t(e.right)}]`),"JsdocTypeMappedType"),JsdocTypeAsserts:r(((e,t)=>`asserts ${t(e.left)} is ${t(e.right)}`),"JsdocTypeAsserts")}}r(Qe,"parse"),r(or,"tryParse"),r(W,"transform"),r(N,"notAvailableTransform"),r(Ze,"extractSpecialParams"),r(re,"applyPosition"),r(j,"quote"),r(et,"stringifyRules");let sr=et();function ar(e){return W(sr,e)}r(ar,"stringify");let ir=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function F(e){let t={type:"NameExpression",name:e};return ir.includes(e)&&(t.reservedWord=!0),t}r(F,"makeName");let pr={JsdocTypeOptional:r(((e,t)=>{let o=t(e.element);return o.optional=!0,o}),"JsdocTypeOptional"),JsdocTypeNullable:r(((e,t)=>{let o=t(e.element);return o.nullable=!0,o}),"JsdocTypeNullable"),JsdocTypeNotNullable:r(((e,t)=>{let o=t(e.element);return o.nullable=!1,o}),"JsdocTypeNotNullable"),JsdocTypeVariadic:r(((e,t)=>{if(void 0===e.element)throw new Error("dots without value are not allowed in catharsis mode");let o=t(e.element);return o.repeatable=!0,o}),"JsdocTypeVariadic"),JsdocTypeAny:r((()=>({type:"AllLiteral"})),"JsdocTypeAny"),JsdocTypeNull:r((()=>({type:"NullLiteral"})),"JsdocTypeNull"),JsdocTypeStringValue:r((e=>F(j(e.value,e.meta.quote))),"JsdocTypeStringValue"),JsdocTypeUndefined:r((()=>({type:"UndefinedLiteral"})),"JsdocTypeUndefined"),JsdocTypeUnknown:r((()=>({type:"UnknownLiteral"})),"JsdocTypeUnknown"),JsdocTypeFunction:r(((e,t)=>{let o=Ze(e),i={type:"FunctionType",params:o.params.map(t)};return void 0!==o.this&&(i.this=t(o.this)),void 0!==o.new&&(i.new=t(o.new)),void 0!==e.returnType&&(i.result=t(e.returnType)),i}),"JsdocTypeFunction"),JsdocTypeGeneric:r(((e,t)=>({type:"TypeApplication",applications:e.elements.map((o=>t(o))),expression:t(e.left)})),"JsdocTypeGeneric"),JsdocTypeSpecialNamePath:r((e=>F(e.specialType+":"+j(e.value,e.meta.quote))),"JsdocTypeSpecialNamePath"),JsdocTypeName:r((e=>"function"!==e.value?F(e.value):{type:"FunctionType",params:[]}),"JsdocTypeName"),JsdocTypeNumber:r((e=>F(e.value.toString())),"JsdocTypeNumber"),JsdocTypeObject:r(((e,t)=>{let o={type:"RecordType",fields:[]};for(let i of e.elements)"JsdocTypeObjectField"!==i.type&&"JsdocTypeJsdocObjectField"!==i.type?o.fields.push({type:"FieldType",key:t(i),value:void 0}):o.fields.push(t(i));return o}),"JsdocTypeObject"),JsdocTypeObjectField:r(((e,t)=>{if("string"!=typeof e.key)throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:F(j(e.key,e.meta.quote)),value:void 0===e.right?void 0:t(e.right)}}),"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:r(((e,t)=>({type:"FieldType",key:t(e.left),value:t(e.right)})),"JsdocTypeJsdocObjectField"),JsdocTypeUnion:r(((e,t)=>({type:"TypeUnion",elements:e.elements.map((o=>t(o)))})),"JsdocTypeUnion"),JsdocTypeKeyValue:r(((e,t)=>({type:"FieldType",key:F(e.key),value:void 0===e.right?void 0:t(e.right)})),"JsdocTypeKeyValue"),JsdocTypeNamePath:r(((e,t)=>{let i,o=t(e.left);i="JsdocTypeSpecialNamePath"===e.right.type?t(e.right).name:j(e.right.value,e.right.meta.quote);let l="inner"===e.pathType?"~":"instance"===e.pathType?"#":".";return F(`${o.name}${l}${i}`)}),"JsdocTypeNamePath"),JsdocTypeSymbol:r((e=>{let t="",o=e.element,i=!1;return"JsdocTypeVariadic"===o?.type&&("prefix"===o.meta.position?t="...":i=!0,o=o.element),"JsdocTypeName"===o?.type?t+=o.value:"JsdocTypeNumber"===o?.type&&(t+=o.value.toString()),i&&(t+="..."),F(`${e.value}(${t})`)}),"JsdocTypeSymbol"),JsdocTypeParenthesis:r(((e,t)=>t(J(e.element))),"JsdocTypeParenthesis"),JsdocTypeMappedType:N,JsdocTypeIndexSignature:N,JsdocTypeImport:N,JsdocTypeKeyof:N,JsdocTypeTuple:N,JsdocTypeTypeof:N,JsdocTypeIntersection:N,JsdocTypeProperty:N,JsdocTypePredicate:N,JsdocTypeAsserts:N};function cr(e){return W(pr,e)}function V(e){switch(e){case void 0:return"none";case"single":return"single";case"double":return"double"}}function lr(e){switch(e){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":case"property-brackets":return"MEMBER"}}function ve(e,t){return 2===t.length?{type:e,left:t[0],right:t[1]}:{type:e,left:t[0],right:ve(e,t.slice(1))}}r(cr,"catharsisTransform"),r(V,"getQuoteStyle"),r(lr,"getMemberType"),r(ve,"nestResults");let ur={JsdocTypeOptional:r(((e,t)=>({type:"OPTIONAL",value:t(e.element),meta:{syntax:"prefix"===e.meta.position?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}})),"JsdocTypeOptional"),JsdocTypeNullable:r(((e,t)=>({type:"NULLABLE",value:t(e.element),meta:{syntax:"prefix"===e.meta.position?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}})),"JsdocTypeNullable"),JsdocTypeNotNullable:r(((e,t)=>({type:"NOT_NULLABLE",value:t(e.element),meta:{syntax:"prefix"===e.meta.position?"PREFIX_BANG":"SUFFIX_BANG"}})),"JsdocTypeNotNullable"),JsdocTypeVariadic:r(((e,t)=>{let o={type:"VARIADIC",meta:{syntax:"prefix"===e.meta.position?"PREFIX_DOTS":"suffix"===e.meta.position?"SUFFIX_DOTS":"ONLY_DOTS"}};return void 0!==e.element&&(o.value=t(e.element)),o}),"JsdocTypeVariadic"),JsdocTypeName:r((e=>({type:"NAME",name:e.value})),"JsdocTypeName"),JsdocTypeTypeof:r(((e,t)=>({type:"TYPE_QUERY",name:t(e.element)})),"JsdocTypeTypeof"),JsdocTypeTuple:r(((e,t)=>({type:"TUPLE",entries:e.elements.map(t)})),"JsdocTypeTuple"),JsdocTypeKeyof:r(((e,t)=>({type:"KEY_QUERY",value:t(e.element)})),"JsdocTypeKeyof"),JsdocTypeImport:r((e=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:V(e.element.meta.quote),string:e.element.value}})),"JsdocTypeImport"),JsdocTypeUndefined:r((()=>({type:"NAME",name:"undefined"})),"JsdocTypeUndefined"),JsdocTypeAny:r((()=>({type:"ANY"})),"JsdocTypeAny"),JsdocTypeFunction:r(((e,t)=>{let o=Ze(e),i={type:e.arrow?"ARROW":"FUNCTION",params:o.params.map((l=>{if("JsdocTypeKeyValue"===l.type){if(void 0===l.right)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:l.key,typeName:t(l.right)}}return t(l)})),new:null,returns:null};return void 0!==o.this?i.this=t(o.this):e.arrow||(i.this=null),void 0!==o.new&&(i.new=t(o.new)),void 0!==e.returnType&&(i.returns=t(e.returnType)),i}),"JsdocTypeFunction"),JsdocTypeGeneric:r(((e,t)=>{let o={type:"GENERIC",subject:t(e.left),objects:e.elements.map(t),meta:{syntax:"square"===e.meta.brackets?"SQUARE_BRACKET":e.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return"square"===e.meta.brackets&&"JsdocTypeFunction"===e.elements[0].type&&!e.elements[0].parenthesis&&(o.objects[0]={type:"NAME",name:"function"}),o}),"JsdocTypeGeneric"),JsdocTypeObjectField:r(((e,t)=>{if("string"!=typeof e.key)throw new Error("Index signatures and mapped types are not supported");if(void 0===e.right)return{type:"RECORD_ENTRY",key:e.key,quoteStyle:V(e.meta.quote),value:null,readonly:!1};let o=t(e.right);return e.optional&&(o={type:"OPTIONAL",value:o,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:e.key.toString(),quoteStyle:V(e.meta.quote),value:o,readonly:!1}}),"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:r((()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")}),"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:r(((e,t)=>{if(void 0===e.right)return{type:"RECORD_ENTRY",key:e.key,quoteStyle:"none",value:null,readonly:!1};let o=t(e.right);return e.optional&&(o={type:"OPTIONAL",value:o,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:e.key,quoteStyle:"none",value:o,readonly:!1}}),"JsdocTypeKeyValue"),JsdocTypeObject:r(((e,t)=>{let o=[];for(let i of e.elements)("JsdocTypeObjectField"===i.type||"JsdocTypeJsdocObjectField"===i.type)&&o.push(t(i));return{type:"RECORD",entries:o}}),"JsdocTypeObject"),JsdocTypeSpecialNamePath:r((e=>{if("module"!==e.specialType)throw new Error(`jsdoctypeparser does not support type ${e.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:V(e.meta.quote),path:e.value}}}),"JsdocTypeSpecialNamePath"),JsdocTypeNamePath:r(((e,t)=>{let i,l,o=!1;"JsdocTypeSpecialNamePath"===e.right.type&&"event"===e.right.specialType?(o=!0,i=e.right.value,l=V(e.right.meta.quote)):(i=e.right.value,l=V(e.right.meta.quote));let f={type:lr(e.pathType),owner:t(e.left),name:i,quoteStyle:l,hasEventPrefix:o};if("MODULE"===f.owner.type){let d=f.owner;return f.owner=f.owner.value,d.value=f,d}return f}),"JsdocTypeNamePath"),JsdocTypeUnion:r(((e,t)=>ve("UNION",e.elements.map(t))),"JsdocTypeUnion"),JsdocTypeParenthesis:r(((e,t)=>({type:"PARENTHESIS",value:t(J(e.element))})),"JsdocTypeParenthesis"),JsdocTypeNull:r((()=>({type:"NAME",name:"null"})),"JsdocTypeNull"),JsdocTypeUnknown:r((()=>({type:"UNKNOWN"})),"JsdocTypeUnknown"),JsdocTypeStringValue:r((e=>({type:"STRING_VALUE",quoteStyle:V(e.meta.quote),string:e.value})),"JsdocTypeStringValue"),JsdocTypeIntersection:r(((e,t)=>ve("INTERSECTION",e.elements.map(t))),"JsdocTypeIntersection"),JsdocTypeNumber:r((e=>({type:"NUMBER_VALUE",number:e.value.toString()})),"JsdocTypeNumber"),JsdocTypeSymbol:N,JsdocTypeProperty:N,JsdocTypePredicate:N,JsdocTypeMappedType:N,JsdocTypeIndexSignature:N,JsdocTypeAsserts:N};function mr(e){return W(ur,e)}function fr(){return{JsdocTypeIntersection:r(((e,t)=>({type:"JsdocTypeIntersection",elements:e.elements.map(t)})),"JsdocTypeIntersection"),JsdocTypeGeneric:r(((e,t)=>({type:"JsdocTypeGeneric",left:t(e.left),elements:e.elements.map(t),meta:{dot:e.meta.dot,brackets:e.meta.brackets}})),"JsdocTypeGeneric"),JsdocTypeNullable:r((e=>e),"JsdocTypeNullable"),JsdocTypeUnion:r(((e,t)=>({type:"JsdocTypeUnion",elements:e.elements.map(t)})),"JsdocTypeUnion"),JsdocTypeUnknown:r((e=>e),"JsdocTypeUnknown"),JsdocTypeUndefined:r((e=>e),"JsdocTypeUndefined"),JsdocTypeTypeof:r(((e,t)=>({type:"JsdocTypeTypeof",element:t(e.element)})),"JsdocTypeTypeof"),JsdocTypeSymbol:r(((e,t)=>{let o={type:"JsdocTypeSymbol",value:e.value};return void 0!==e.element&&(o.element=t(e.element)),o}),"JsdocTypeSymbol"),JsdocTypeOptional:r(((e,t)=>({type:"JsdocTypeOptional",element:t(e.element),meta:{position:e.meta.position}})),"JsdocTypeOptional"),JsdocTypeObject:r(((e,t)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:e.elements.map(t)})),"JsdocTypeObject"),JsdocTypeNumber:r((e=>e),"JsdocTypeNumber"),JsdocTypeNull:r((e=>e),"JsdocTypeNull"),JsdocTypeNotNullable:r(((e,t)=>({type:"JsdocTypeNotNullable",element:t(e.element),meta:{position:e.meta.position}})),"JsdocTypeNotNullable"),JsdocTypeSpecialNamePath:r((e=>e),"JsdocTypeSpecialNamePath"),JsdocTypeObjectField:r(((e,t)=>({type:"JsdocTypeObjectField",key:e.key,right:void 0===e.right?void 0:t(e.right),optional:e.optional,readonly:e.readonly,meta:e.meta})),"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:r(((e,t)=>({type:"JsdocTypeJsdocObjectField",left:t(e.left),right:t(e.right)})),"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:r(((e,t)=>({type:"JsdocTypeKeyValue",key:e.key,right:void 0===e.right?void 0:t(e.right),optional:e.optional,variadic:e.variadic})),"JsdocTypeKeyValue"),JsdocTypeImport:r(((e,t)=>({type:"JsdocTypeImport",element:t(e.element)})),"JsdocTypeImport"),JsdocTypeAny:r((e=>e),"JsdocTypeAny"),JsdocTypeStringValue:r((e=>e),"JsdocTypeStringValue"),JsdocTypeNamePath:r((e=>e),"JsdocTypeNamePath"),JsdocTypeVariadic:r(((e,t)=>{let o={type:"JsdocTypeVariadic",meta:{position:e.meta.position,squareBrackets:e.meta.squareBrackets}};return void 0!==e.element&&(o.element=t(e.element)),o}),"JsdocTypeVariadic"),JsdocTypeTuple:r(((e,t)=>({type:"JsdocTypeTuple",elements:e.elements.map(t)})),"JsdocTypeTuple"),JsdocTypeName:r((e=>e),"JsdocTypeName"),JsdocTypeFunction:r(((e,t)=>{let o={type:"JsdocTypeFunction",arrow:e.arrow,parameters:e.parameters.map(t),constructor:e.constructor,parenthesis:e.parenthesis};return void 0!==e.returnType&&(o.returnType=t(e.returnType)),o}),"JsdocTypeFunction"),JsdocTypeKeyof:r(((e,t)=>({type:"JsdocTypeKeyof",element:t(e.element)})),"JsdocTypeKeyof"),JsdocTypeParenthesis:r(((e,t)=>({type:"JsdocTypeParenthesis",element:t(e.element)})),"JsdocTypeParenthesis"),JsdocTypeProperty:r((e=>e),"JsdocTypeProperty"),JsdocTypePredicate:r(((e,t)=>({type:"JsdocTypePredicate",left:t(e.left),right:t(e.right)})),"JsdocTypePredicate"),JsdocTypeIndexSignature:r(((e,t)=>({type:"JsdocTypeIndexSignature",key:e.key,right:t(e.right)})),"JsdocTypeIndexSignature"),JsdocTypeMappedType:r(((e,t)=>({type:"JsdocTypeMappedType",key:e.key,right:t(e.right)})),"JsdocTypeMappedType"),JsdocTypeAsserts:r(((e,t)=>({type:"JsdocTypeAsserts",left:t(e.left),right:t(e.right)})),"JsdocTypeAsserts")}}r(mr,"jtpTransform"),r(fr,"identityTransformRules");let tt={JsdocTypeAny:[],JsdocTypeFunction:["parameters","returnType"],JsdocTypeGeneric:["left","elements"],JsdocTypeImport:[],JsdocTypeIndexSignature:["right"],JsdocTypeIntersection:["elements"],JsdocTypeKeyof:["element"],JsdocTypeKeyValue:["right"],JsdocTypeMappedType:["right"],JsdocTypeName:[],JsdocTypeNamePath:["left","right"],JsdocTypeNotNullable:["element"],JsdocTypeNull:[],JsdocTypeNullable:["element"],JsdocTypeNumber:[],JsdocTypeObject:["elements"],JsdocTypeObjectField:["right"],JsdocTypeJsdocObjectField:["left","right"],JsdocTypeOptional:["element"],JsdocTypeParenthesis:["element"],JsdocTypeSpecialNamePath:[],JsdocTypeStringValue:[],JsdocTypeSymbol:["element"],JsdocTypeTuple:["elements"],JsdocTypeTypeof:["element"],JsdocTypeUndefined:[],JsdocTypeUnion:["elements"],JsdocTypeUnknown:[],JsdocTypeVariadic:["element"],JsdocTypeProperty:[],JsdocTypePredicate:["left","right"],JsdocTypeAsserts:["left","right"]};function ke(e,t,o,i,l){i?.(e,t,o);let f=tt[e.type];for(let d of f){let h=e[d];if(void 0!==h)if(Array.isArray(h))for(let D of h)ke(D,e,d,i,l);else ke(h,e,d,i,l)}l?.(e,t,o)}function yr(e,t,o){ke(e,void 0,void 0,t,o)}r(ke,"_traverse"),r(yr,"traverse"),n.catharsisTransform=cr,n.identityTransformRules=fr,n.jtpTransform=mr,n.parse=Qe,n.stringify=ar,n.stringifyRules=et,n.transform=W,n.traverse=yr,n.tryParse=or,n.visitorKeys=tt},"object"==typeof fe&&typeof yt<"u"?s(fe):"function"==typeof define&&__webpack_require__.amdO?define(["exports"],s):s((n=typeof globalThis<"u"?globalThis:n||self).jtpp={})},()=>(s||n((s={exports:{}}).exports,s),s.exports)),Sr=r((n=>"literal"===n.name),"isLiteral"),Er=r((n=>n.value.replace(/['|"]/g,"")),"toEnumOption"),Nr=r((n=>{switch(n.type){case"function":return{name:"function"};case"object":let s={};return n.signature.properties.forEach((a=>{s[a.key]=B(a.value)})),{name:"object",value:s};default:throw new storybook_internal_preview_errors__WEBPACK_IMPORTED_MODULE_0__.UnknownArgTypesError({type:n,language:"Flow"})}}),"convertSig"),B=r((n=>{let{name:s,raw:a}=n,p={};switch(typeof a<"u"&&(p.raw=a),n.name){case"literal":return{...p,name:"other",value:n.value};case"string":case"number":case"symbol":case"boolean":return{...p,name:s};case"Array":return{...p,name:"array",value:n.elements.map(B)};case"signature":return{...p,...Nr(n)};case"union":return n.elements?.every(Sr)?{...p,name:"enum",value:n.elements?.map(Er)}:{...p,name:s,value:n.elements?.map(B)};case"intersection":return{...p,name:s,value:n.elements?.map(B)};default:return{...p,name:"other",value:s}}}),"convert");function X(n){if(!n||"object"!=typeof n)return!1;let s=Object.getPrototypeOf(n);return(null===s||s===Object.prototype||null===Object.getPrototypeOf(s))&&"[object Object]"===Object.prototype.toString.call(n)}function Re(n,s){let a={},p=Object.keys(n);for(let c=0;c<p.length;c++){let u=p[c],m=n[u];a[u]=s(m,u,n)}return a}r(X,"isPlainObject"),r(Re,"mapValues");var ot=/^['"]|['"]$/g,Dr=r((n=>n.replace(ot,"")),"trimQuotes"),Or=r((n=>ot.test(n)),"includesQuotes"),ie=r((n=>{let s=Dr(n);return Or(n)||Number.isNaN(Number(s))?s:Number(s)}),"parseLiteral"),vr=/^\(.*\) => /,C=r((n=>{let{name:s,raw:a,computed:p,value:c}=n,u={};switch(typeof a<"u"&&(u.raw=a),s){case"enum":{let T=p?c:c.map((g=>ie(g.value)));return{...u,name:s,value:T}}case"string":case"number":case"symbol":case"object":return{...u,name:s};case"func":return{...u,name:"function"};case"bool":case"boolean":return{...u,name:"boolean"};case"arrayOf":case"array":return{...u,name:"array",value:c&&C(c)};case"objectOf":return{...u,name:s,value:C(c)};case"shape":case"exact":let m=Re(c,(T=>C(T)));return{...u,name:"object",value:m};case"union":return{...u,name:"union",value:c.map((T=>C(T)))};default:{if(s?.indexOf("|")>0)try{let P=s.split("|").map((b=>JSON.parse(b)));return{...u,name:"enum",value:P}}catch{}let T=c?`${s}(${c})`:s,g=vr.test(s)?"function":"other";return{...u,name:g,value:T}}}}),"convert"),Ar=r((n=>{switch(n.type){case"function":return{name:"function"};case"object":let s={};return n.signature.properties.forEach((a=>{s[a.key]=M(a.value)})),{name:"object",value:s};default:throw new storybook_internal_preview_errors__WEBPACK_IMPORTED_MODULE_0__.UnknownArgTypesError({type:n,language:"Typescript"})}}),"convertSig"),M=r((n=>{let{name:s,raw:a}=n,p={};switch(typeof a<"u"&&(p.raw=a),n.name){case"string":case"number":case"symbol":case"boolean":return{...p,name:s};case"Array":return{...p,name:"array",value:n.elements.map(M)};case"signature":return{...p,...Ar(n)};case"union":let c;return c=n.elements?.every((u=>"literal"===u.name))?{...p,name:"enum",value:n.elements?.map((u=>ie(u.value)))}:{...p,name:s,value:n.elements?.map(M)},c;case"intersection":return{...p,name:s,value:n.elements?.map(M)};default:return{...p,name:"other",value:s}}}),"convert"),pe=r((n=>{let{type:s,tsType:a,flowType:p}=n;try{if(null!=s)return C(s);if(null!=a)return M(a);if(null!=p)return B(p)}catch(c){console.error(c)}return null}),"convert"),Ir=(c=>(c.JAVASCRIPT="JavaScript",c.FLOW="Flow",c.TYPESCRIPT="TypeScript",c.UNKNOWN="Unknown",c))(Ir||{}),Rr=["null","undefined"];function K(n){return Rr.some((s=>s===n))}r(K,"isDefaultValueBlacklisted");var v,st=r((n=>{if(!n)return"";if("string"==typeof n)return n;throw new Error(`Description: expected string, got: ${JSON.stringify(n)}`)}),"str");function at(n){return!!n.__docgenInfo}function it(n){return null!=n&&Object.keys(n).length>0}function pt(n,s){return at(n)?n.__docgenInfo[s]:null}function ct(n){return at(n)?st(n.__docgenInfo.description):""}function je(n){return/^\s+$/.test(n)}function lt(n){let s=n.match(/\r+$/);return null==s?["",n]:[n.slice(-s[0].length),n.slice(0,-s[0].length)]}function A(n){let s=n.match(/^\s+/);return null==s?["",n]:[n.slice(0,s[0].length),n.slice(s[0].length)]}function ut(n){return n.split(/\n/)}function mt(n={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},n)}function Fe(n={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},n)}r(at,"hasDocgen"),r(it,"isValidDocgenSection"),r(pt,"getDocgenSection"),r(ct,"getDocgenDescription"),function(n){n.start="/**",n.nostart="/***",n.delim="*",n.end="*/"}(v=v||(v={})),r(je,"isSpace"),r(lt,"splitCR"),r(A,"splitSpace"),r(ut,"splitLines"),r(mt,"seedSpec"),r(Fe,"seedTokens");var jr=/^@\S+/;function _e({fence:n="```"}={}){let s=Fr(n),a=r(((p,c)=>s(p)?!c:c),"toggleFence");return r((function(c){let u=[[]],m=!1;for(let T of c)jr.test(T.tokens.description)&&!m?u.push([T]):u[u.length-1].push(T),m=a(T.tokens.description,m);return u}),"parseBlock")}function Fr(n){return"string"==typeof n?s=>s.split(n).length%2==0:n}function Ve({startLine:n=0,markers:s=v}={}){let a=null,p=n;return r((function(u){let m=u,T=Fe();if([T.lineEnd,m]=lt(m),[T.start,m]=A(m),null===a&&m.startsWith(s.start)&&!m.startsWith(s.nostart)&&(a=[],T.delimiter=m.slice(0,s.start.length),m=m.slice(s.start.length),[T.postDelimiter,m]=A(m)),null===a)return p++,null;let g=m.trimRight().endsWith(s.end);if(""===T.delimiter&&m.startsWith(s.delim)&&!m.startsWith(s.end)&&(T.delimiter=s.delim,m=m.slice(s.delim.length),[T.postDelimiter,m]=A(m)),g){let P=m.trimRight();T.end=m.slice(P.length-s.end.length),m=P.slice(0,-s.end.length)}if(T.description=m,a.push({number:p,source:u,tokens:T}),p++,g){let P=a.slice();return a=null,P}return null}),"parseSource")}function Le({tokenizers:n}){return r((function(a){var p;let c=mt({source:a});for(let u of n)if(c=u(c),null!==(p=c.problems[c.problems.length-1])&&void 0!==p&&p.critical)break;return c}),"parseSpec")}function ce(){return n=>{let{tokens:s}=n.source[0],a=s.description.match(/\s*(@(\S+))(\s*)/);return null===a?(n.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:n.source[0].number,critical:!0}),n):(s.tag=a[1],s.postTag=a[3],s.description=s.description.slice(a[0].length),n.tag=a[2],n)}}function le(n="compact"){let s=Vr(n);return a=>{let p=0,c=[];for(let[T,{tokens:g}]of a.source.entries()){let P="";if(0===T&&"{"!==g.description[0])return a;for(let b of g.description)if("{"===b&&p++,"}"===b&&p--,P+=b,0===p)break;if(c.push([g,P]),0===p)break}if(0!==p)return a.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:a.source[0].number,critical:!0}),a;let u=[],m=c[0][0].postDelimiter.length;for(let[T,[g,P]]of c.entries())g.type=P,T>0&&(g.type=g.postDelimiter.slice(m)+P,g.postDelimiter=g.postDelimiter.slice(0,m)),[g.postType,g.description]=A(g.description.slice(P.length)),u.push(g.type);return u[0]=u[0].slice(1),u[u.length-1]=u[u.length-1].slice(0,-1),a.type=s(u),a}}r(_e,"getParser"),r(Fr,"getFencer"),r(Ve,"getParser"),r(Le,"getParser"),r(ce,"tagTokenizer"),r(le,"typeTokenizer");var _r=r((n=>n.trim()),"trim");function Vr(n){return"compact"===n?s=>s.map(_r).join(""):"preserve"===n?s=>s.join("\n"):n}r(Vr,"getJoiner");var Lr=r((n=>n&&n.startsWith('"')&&n.endsWith('"')),"isQuoted");function ue(){let n=r(((s,{tokens:a},p)=>""===a.type?s:p),"typeEnd");return s=>{let{tokens:a}=s.source[s.source.reduce(n,0)],p=a.description.trimLeft(),c=p.split('"');if(c.length>1&&""===c[0]&&c.length%2==1)return s.name=c[1],a.name=`"${c[1]}"`,[a.postName,a.description]=A(p.slice(a.name.length)),s;let g,u=0,m="",T=!1;for(let b of p){if(0===u&&je(b))break;"["===b&&u++,"]"===b&&u--,m+=b}if(0!==u)return s.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:s.source[0].number,critical:!0}),s;let P=m;if("["===m[0]&&"]"===m[m.length-1]){T=!0,m=m.slice(1,-1);let b=m.split("=");if(m=b[0].trim(),void 0!==b[1]&&(g=b.slice(1).join("=").trim()),""===m)return s.problems.push({code:"spec:name:empty-name",message:"empty name",line:s.source[0].number,critical:!0}),s;if(""===g)return s.problems.push({code:"spec:name:empty-default",message:"empty default value",line:s.source[0].number,critical:!0}),s;if(!Lr(g)&&/=(?!>)/.test(g))return s.problems.push({code:"spec:name:invalid-default",message:"invalid default value syntax",line:s.source[0].number,critical:!0}),s}return s.optional=T,s.name=m,a.name=P,void 0!==g&&(s.default=g),[a.postName,a.description]=A(p.slice(a.name.length)),s}}function me(n="compact",s=v){let a=Ue(n);return p=>(p.description=a(p.source,s),p)}function Ue(n){return"compact"===n?Ur:"preserve"===n?Mr:n}function Ur(n,s=v){return n.map((({tokens:{description:a}})=>a.trim())).filter((a=>""!==a)).join(" ")}r(ue,"nameTokenizer"),r(me,"descriptionTokenizer"),r(Ue,"getJoiner"),r(Ur,"compactJoiner");var Br=r(((n,{tokens:s},a)=>""===s.type?n:a),"lineNo"),Cr=r((({tokens:n})=>(""===n.delimiter?n.start:n.postDelimiter.slice(1))+n.description),"getDescription");function Mr(n,s=v){if(0===n.length)return"";""===n[0].tokens.description&&n[0].tokens.delimiter===s.start&&(n=n.slice(1));let a=n[n.length-1];return void 0!==a&&""===a.tokens.description&&a.tokens.end.endsWith(s.end)&&(n=n.slice(0,-1)),(n=n.slice(n.reduce(Br,0))).map(Cr).join("\n")}function Be({startLine:n=0,fence:s="```",spacing:a="compact",markers:p=v,tokenizers:c=[n=>{let{tokens:s}=n.source[0],a=s.description.match(/\s*(@(\S+))(\s*)/);return null===a?(n.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:n.source[0].number,critical:!0}),n):(s.tag=a[1],s.postTag=a[3],s.description=s.description.slice(a[0].length),n.tag=a[2],n)},le(a),ue(),me(a)]}={}){if(n<0||n%1>0)throw new Error("Invalid startLine");let u=Ve({startLine:n,markers:p}),m=_e({fence:s}),T=Le({tokenizers:c}),g=Ue(a);return function(P){let b=[];for(let de of ut(P)){let q=u(de);if(null===q)continue;let S=m(q),z=S.slice(1).map(T);b.push({description:g(S[0],p),tags:z,source:q,problems:z.reduce(((Te,ge)=>Te.concat(ge.problems)),[])})}return b}}function Kr(n){return n.start+n.delimiter+n.postDelimiter+n.tag+n.postTag+n.type+n.postType+n.name+n.postName+n.description+n.end+n.lineEnd}function Ce(){return n=>n.source.map((({tokens:s})=>Kr(s))).join("\n")}r(Mr,"preserveJoiner"),r(Be,"getParser"),r(Kr,"join"),r(Ce,"getStringifier");Object.keys({line:0,start:0,delimiter:0,postDelimiter:0,tag:0,postTag:0,name:0,postName:0,type:0,postType:0,description:0,end:0,lineEnd:0});function ft(n,s={}){return Be(s)(n)}r(ft,"parse");Ce();var $=((n,s,a)=>(a=null!=n?dr(xr(n)):{},((n,s,a,p)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let c of gr(s))!hr.call(n,c)&&c!==a&&Ie(n,c,{get:()=>s[c],enumerable:!(p=Tr(s,c))||p.enumerable});return n})(!s&&n&&n.__esModule?a:Ie(a,"default",{value:n,enumerable:!0}),n)))(dt(),1);function qr(n){return null!=n&&n.includes("@")}function Yr(n){let c=ft("/**\n"+(n??"").split("\n").map((u=>` * ${u}`)).join("\n")+"\n*/",{spacing:"preserve"});if(!c||0===c.length)throw new Error("Cannot parse JSDoc tags.");return c[0]}r(qr,"containsJsDoc"),r(Yr,"parse");var Wr={tags:["param","arg","argument","returns","ignore","deprecated"]},Tt=r(((n,s=Wr)=>{if(!qr(n))return{includesJsDoc:!1,ignore:!1};let a=Yr(n),p=Gr(a,s.tags);return p.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:a.description.trim(),extractedTags:p}}),"parseJsDoc");function Gr(n,s){let a={params:null,deprecated:null,returns:null,ignore:!1};for(let p of n.tags)if(void 0===s||s.includes(p.tag)){if("ignore"===p.tag){a.ignore=!0;break}switch(p.tag){case"param":case"arg":case"argument":{let c=zr(p);null!=c&&(null==a.params&&(a.params=[]),a.params.push(c));break}case"deprecated":{let c=Hr(p);null!=c&&(a.deprecated=c);break}case"returns":{let c=Qr(p);null!=c&&(a.returns=c);break}}}return a}function Xr(n){return n.replace(/[\.-]$/,"")}function zr(n){if(!n.name||"-"===n.name)return null;let s=ht(n.type);return{name:n.name,type:s,description:xt(n.description),getPrettyName:r((()=>Xr(n.name)),"getPrettyName"),getTypeName:r((()=>s?Jt(s):null),"getTypeName")}}function Hr(n){return n.name?gt(n.name,n.description):null}function gt(n,s){return xt(""===n?s:`${n} ${s}`)}function xt(n){let s=n.replace(/^- /g,"").trim();return""===s?null:s}function Qr(n){let s=ht(n.type);return s?{type:s,description:gt(n.name,n.description),getTypeName:r((()=>Jt(s)),"getTypeName")}:null}r(Gr,"extractJsDocTags"),r(Xr,"normaliseParamName"),r(zr,"extractParam"),r(Hr,"extractDeprecated"),r(gt,"joinNameAndDescription"),r(xt,"normaliseDescription"),r(Qr,"extractReturns");var _=(0,$.stringifyRules)(),Zr=_.JsdocTypeObject;function ht(n){try{return(0,$.parse)(n,"typescript")}catch{return null}}function Jt(n){return(0,$.transform)(_,n)}_.JsdocTypeAny=()=>"any",_.JsdocTypeObject=(n,s)=>`(${Zr(n,s)})`,_.JsdocTypeOptional=(n,s)=>s(n.element),_.JsdocTypeNullable=(n,s)=>s(n.element),_.JsdocTypeNotNullable=(n,s)=>s(n.element),_.JsdocTypeUnion=(n,s)=>n.elements.map(s).join("|"),r(ht,"extractType"),r(Jt,"extractTypeName");function Ke(n){return n.length>90}function wt(n){return n.length>50}function w(n,s){return n===s?{summary:n}:{summary:n,detail:s}}r(Ke,"isTooLongForTypeSummary"),r(wt,"isTooLongForDefaultValueSummary"),r(w,"createSummaryValue");function Pt(n,s){if(null!=n){let{value:a}=n;if(!K(a))return wt(a)?w(s?.name,a):w(a)}return null}function bt({name:n,value:s,elements:a,raw:p}){return s??(null!=a?a.map(bt).join(" | "):p??n)}function en({name:n,raw:s,elements:a}){return w(null!=a?a.map(bt).join(" | "):null!=s?s.replace(/^\|\s*/,""):n)}function tn({type:n,raw:s}){return w(null!=s?s:n)}function rn({type:n,raw:s}){return null!=s?Ke(s)?w(n,s):w(s):w(n)}function nn(n){let{type:s}=n;return"object"===s?rn(n):tn(n)}function on({name:n,raw:s}){return null!=s?Ke(s)?w(n,s):w(s):w(n)}function St(n){if(null==n)return null;switch(n.name){case"union":return en(n);case"signature":return nn(n);default:return on(n)}}r(Pt,"createDefaultValue"),r(bt,"generateUnionElement"),r(en,"generateUnion"),r(tn,"generateFuncSignature"),r(rn,"generateObjectSignature"),r(nn,"generateSignature"),r(on,"generateDefault"),r(St,"createType");var Et=r(((n,s)=>{let{flowType:a,description:p,required:c,defaultValue:u}=s;return{name:n,type:St(a),required:c,description:p,defaultValue:Pt(u??null,a??null)}}),"createFlowPropDef");function Nt({defaultValue:n}){if(null!=n){let{value:s}=n;if(!K(s))return w(s)}return null}function Dt({tsType:n,required:s}){if(null==n)return null;let a=n.name;return s||(a=a.replace(" | undefined","")),w(["Array","Record","signature"].includes(n.name)?n.raw:a)}r(Nt,"createDefaultValue"),r(Dt,"createType");var Ot=r(((n,s)=>{let{description:a,required:p}=s;return{name:n,type:Dt(s),required:p,description:a,defaultValue:Nt(s)}}),"createTsPropDef");function sn(n){return null!=n?w(n.name):null}function an(n){let{computed:s,func:a}=n;return typeof s>"u"&&typeof a>"u"}function pn(n){return!!n&&("string"===n.name||"enum"===n.name&&(Array.isArray(n.value)&&n.value.every((({value:s})=>"string"==typeof s&&'"'===s[0]&&'"'===s[s.length-1]))))}function cn(n,s){if(null!=n){let{value:a}=n;if(!K(a))return an(n)&&pn(s)?w(JSON.stringify(a)):w(a)}return null}function vt(n,s,a){let{description:p,required:c,defaultValue:u}=a;return{name:n,type:sn(s),required:c,description:p,defaultValue:cn(u,s)}}function ye(n,s){if(s?.includesJsDoc){let{description:a,extractedTags:p}=s;null!=a&&(n.description=s.description);let c={...p,params:p?.params?.map((u=>({name:u.getPrettyName(),description:u.description})))};Object.values(c).filter(Boolean).length>0&&(n.jsDocTags=c)}return n}r(sn,"createType"),r(an,"isReactDocgenTypescript"),r(pn,"isStringValued"),r(cn,"createDefaultValue"),r(vt,"createBasicPropDef"),r(ye,"applyJsDocResult");var ln=r(((n,s,a)=>{let p=vt(n,s.type,s);return p.sbType=pe(s),ye(p,a)}),"javaScriptFactory"),un=r(((n,s,a)=>{let p=Ot(n,s);return p.sbType=pe(s),ye(p,a)}),"tsFactory"),mn=r(((n,s,a)=>{let p=Et(n,s);return p.sbType=pe(s),ye(p,a)}),"flowFactory"),fn=r(((n,s,a)=>ye(vt(n,{name:"unknown"},s),a)),"unknownFactory"),$e=r((n=>{switch(n){case"JavaScript":return ln;case"TypeScript":return un;case"Flow":return mn;default:return fn}}),"getPropDefFactory"),kt=r((n=>null!=n.type?"JavaScript":null!=n.flowType?"Flow":null!=n.tsType?"TypeScript":"Unknown"),"getTypeSystem"),yn=r((n=>{let s=kt(n[0]),a=$e(s);return n.map((p=>{let c=p;return p.type?.elements&&(c={...p,type:{...p.type,value:p.type.elements}}),At(c.name,c,s,a)}))}),"extractComponentSectionArray"),dn=r((n=>{let s=Object.keys(n),a=kt(n[s[0]]),p=$e(a);return s.map((c=>{let u=n[c];return null!=u?At(c,u,a,p):null})).filter(Boolean)}),"extractComponentSectionObject"),aa=r(((n,s)=>{let a=pt(n,s);return it(a)?Array.isArray(a)?yn(a):dn(a):[]}),"extractComponentProps");function At(n,s,a,p){let c=Tt(s.description);return c.includesJsDoc&&c.ignore?null:{propDef:p(n,s,c),jsDocTags:c.extractedTags,docgenInfo:s,typeSystem:a}}function ia(n){return null!=n?ct(n):""}r(At,"extractProp"),r(ia,"extractComponentDescription");var qe=r(((...n)=>{let s={},a=n.filter(Boolean),p=a.reduce(((c,u)=>(Object.entries(u).forEach((([m,T])=>{let g=c[m];Array.isArray(T)||typeof g>"u"?c[m]=T:X(T)&&X(g)?s[m]=!0:typeof T<"u"&&(c[m]=T)})),c)),{});return Object.keys(s).forEach((c=>{let u=a.filter(Boolean).map((m=>m[c])).filter((m=>typeof m<"u"));u.every((m=>X(m)))?p[c]=qe(...u):p[c]=u[u.length-1]})),p}),"combineParameters"),ya=r((n=>{let{component:s,argTypes:a,parameters:{docs:p={}}}=n,{extractArgTypes:c}=p;if(!c||!s)return a;let u=c(s);return u?qe(u,a):a}),"enhanceArgTypes"),It="storybook/docs",ha=`${It}/snippet-rendered`,Tn=(p=>(p.AUTO="auto",p.CODE="code",p.DYNAMIC="dynamic",p))(Tn||{})},"./node_modules/storybook/dist/theming/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{C6:()=>Ir,D8:()=>pf,DP:()=>St,EG:()=>yr,I4:()=>xr,Il:()=>W,NP:()=>Tt,Zj:()=>Me,a:()=>fo,i7:()=>Ee,v_:()=>hf,yW:()=>h});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),storybook_internal_client_logger__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("storybook/internal/client-logger"),_storybook_global__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("@storybook/global"),wn=Object.create,or=Object.defineProperty,En=Object.getOwnPropertyDescriptor,Sn=Object.getOwnPropertyNames,Tn=Object.getPrototypeOf,Cn=Object.prototype.hasOwnProperty,o=(e,r)=>or(e,"name",{value:r,configurable:!0}),Oe=(()=>__webpack_require__("./node_modules/storybook/dist/theming sync recursive"))(),De=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),ir=(e,r,t)=>(t=null!=e?wn(Tn(e)):{},((e,r,t,n)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let a of Sn(r))!Cn.call(e,a)&&a!==t&&or(e,a,{get:()=>r[a],enumerable:!(n=En(r,a))||n.enumerable});return e})(!r&&e&&e.__esModule?t:or(t,"default",{value:e,enumerable:!0}),e)),nt=De((O=>{!function(){var e="function"==typeof Symbol&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function A(g){return"string"==typeof g||"function"==typeof g||g===n||g===p||g===i||g===a||g===l||g===m||"object"==typeof g&&null!==g&&(g.$$typeof===b||g.$$typeof===x||g.$$typeof===s||g.$$typeof===u||g.$$typeof===c||g.$$typeof===v||g.$$typeof===y||g.$$typeof===w||g.$$typeof===d)}function S(g){if("object"==typeof g&&null!==g){var ar=g.$$typeof;switch(ar){case r:var Be=g.type;switch(Be){case f:case p:case n:case i:case a:case l:return Be;default:var Mr=Be&&Be.$$typeof;switch(Mr){case u:case c:case b:case x:case s:return Mr;default:return ar}}case t:return ar}}}o(A,"isValidElementType"),o(S,"typeOf");var R=f,F=p,T=u,ue=s,fe=r,G=c,Y=n,rr=b,tr=x,nr=t,on=i,sn=a,un=l,Lr=!1;function fn(g){return Lr||(Lr=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),zr(g)||S(g)===f}function zr(g){return S(g)===p}function cn(g){return S(g)===u}function ln(g){return S(g)===s}function pn(g){return"object"==typeof g&&null!==g&&g.$$typeof===r}function dn(g){return S(g)===c}function mn(g){return S(g)===n}function hn(g){return S(g)===b}function gn(g){return S(g)===x}function bn(g){return S(g)===t}function vn(g){return S(g)===i}function yn(g){return S(g)===a}function xn(g){return S(g)===l}o(fn,"isAsyncMode"),o(zr,"isConcurrentMode"),o(cn,"isContextConsumer"),o(ln,"isContextProvider"),o(pn,"isElement"),o(dn,"isForwardRef"),o(mn,"isFragment"),o(hn,"isLazy"),o(gn,"isMemo"),o(bn,"isPortal"),o(vn,"isProfiler"),o(yn,"isStrictMode"),o(xn,"isSuspense"),O.AsyncMode=R,O.ConcurrentMode=F,O.ContextConsumer=T,O.ContextProvider=ue,O.Element=fe,O.ForwardRef=G,O.Fragment=Y,O.Lazy=rr,O.Memo=tr,O.Portal=nr,O.Profiler=on,O.StrictMode=sn,O.Suspense=un,O.isAsyncMode=fn,O.isConcurrentMode=zr,O.isContextConsumer=cn,O.isContextProvider=ln,O.isElement=pn,O.isForwardRef=dn,O.isFragment=mn,O.isLazy=hn,O.isMemo=gn,O.isPortal=bn,O.isProfiler=vn,O.isStrictMode=yn,O.isSuspense=xn,O.isValidElementType=A,O.typeOf=S}()})),ot=De(((si,at)=>{at.exports=nt()})),mr=De(((ui,lt)=>{var pr=ot(),Bn={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Dn={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ft={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},dr={};function it(e){return pr.isMemo(e)?ft:dr[e.$$typeof]||Bn}dr[pr.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},dr[pr.Memo]=ft,o(it,"getStatics");var jn=Object.defineProperty,Hn=Object.getOwnPropertyNames,st=Object.getOwnPropertySymbols,Wn=Object.getOwnPropertyDescriptor,Un=Object.getPrototypeOf,ut=Object.prototype;function ct(e,r,t){if("string"!=typeof r){if(ut){var n=Un(r);n&&n!==ut&&ct(e,n,t)}var a=Hn(r);st&&(a=a.concat(st(r)));for(var i=it(e),s=it(r),u=0;u<a.length;++u){var f=a[u];if(!(Dn[f]||t&&t[f]||s&&s[f]||i&&i[f])){var p=Wn(r,f);try{jn(e,f,p)}catch{}}}}return e}o(ct,"hoistNonReactStatics"),lt.exports=ct})),Gt=De(((Vt,Rr)=>{!function(e){if("object"==typeof Vt&&typeof Rr<"u")Rr.exports=e();else if("function"==typeof define&&__webpack_require__.amdO)define([],e);else{(typeof window<"u"?window:typeof __webpack_require__.g<"u"?__webpack_require__.g:typeof self<"u"?self:this).memoizerific=e()}}((function(){return o((function n(a,i,s){function u(c,l){if(!i[c]){if(!a[c]){var m="function"==typeof Oe&&Oe;if(!l&&m)return m(c,!0);if(f)return f(c,!0);var x=new Error("Cannot find module '"+c+"'");throw x.code="MODULE_NOT_FOUND",x}var b=i[c]={exports:{}};a[c][0].call(b.exports,(function(d){return u(a[c][1][d]||d)}),b,b.exports,n,a,i,s)}return i[c].exports}o(u,"s");for(var f="function"==typeof Oe&&Oe,p=0;p<s.length;p++)u(s[p]);return u}),"e")({1:[function(n,a,i){a.exports=function(s){return"function"!=typeof Map||s?new(n("./similar")):new Map}},{"./similar":2}],2:[function(n,a,i){function s(){return this.list=[],this.lastItem=void 0,this.size=0,this}o(s,"Similar"),s.prototype.get=function(u){var f;return this.lastItem&&this.isEqual(this.lastItem.key,u)?this.lastItem.val:(f=this.indexOf(u))>=0?(this.lastItem=this.list[f],this.list[f].val):void 0},s.prototype.set=function(u,f){var p;return this.lastItem&&this.isEqual(this.lastItem.key,u)?(this.lastItem.val=f,this):(p=this.indexOf(u))>=0?(this.lastItem=this.list[p],this.list[p].val=f,this):(this.lastItem={key:u,val:f},this.list.push(this.lastItem),this.size++,this)},s.prototype.delete=function(u){var f;if(this.lastItem&&this.isEqual(this.lastItem.key,u)&&(this.lastItem=void 0),(f=this.indexOf(u))>=0)return this.size--,this.list.splice(f,1)[0]},s.prototype.has=function(u){var f;return!(!this.lastItem||!this.isEqual(this.lastItem.key,u))||(f=this.indexOf(u))>=0&&(this.lastItem=this.list[f],!0)},s.prototype.forEach=function(u,f){var p;for(p=0;p<this.size;p++)u.call(f||this,this.list[p].val,this.list[p].key,this)},s.prototype.indexOf=function(u){var f;for(f=0;f<this.size;f++)if(this.isEqual(this.list[f].key,u))return f;return-1},s.prototype.isEqual=function(u,f){return u===f||u!=u&&f!=f},a.exports=s},{}],3:[function(n,a,i){var s=n("map-or-similar");function u(c,l){var b,d,v,m=c.length,x=l.length;for(d=0;d<m;d++){for(b=!0,v=0;v<x;v++)if(!p(c[d][v].arg,l[v].arg)){b=!1;break}if(b)break}c.push(c.splice(d,1)[0])}function f(c){var x,b,l=c.length,m=c[l-1];for(m.cacheItem.delete(m.arg),b=l-2;b>=0&&(!(x=(m=c[b]).cacheItem.get(m.arg))||!x.size);b--)m.cacheItem.delete(m.arg)}function p(c,l){return c===l||c!=c&&l!=l}a.exports=function(c){var l=new s(!1),m=[];return function(x){var b=o((function(){var v,y,R,d=l,w=arguments.length-1,A=Array(w+1),S=!0;if((b.numArgs||0===b.numArgs)&&b.numArgs!==w+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(R=0;R<w;R++)A[R]={cacheItem:d,arg:arguments[R]},d.has(arguments[R])?d=d.get(arguments[R]):(S=!1,v=new s(!1),d.set(arguments[R],v),d=v);return S&&(d.has(arguments[w])?y=d.get(arguments[w]):S=!1),S||(y=x.apply(null,arguments),d.set(arguments[w],y)),c>0&&(A[w]={cacheItem:d,arg:arguments[w]},S?u(m,A):m.push(A),m.length>c&&f(m.shift())),b.wasMemoized=S,b.numArgs=w+1,y}),"memoizerific");return b.limit=c,b.wasMemoized=!1,b.cache=l,b.lru=m,b}},o(u,"moveToMostRecentLru"),o(f,"removeCachedResult"),o(p,"isEqual")},{"map-or-similar":1}]},{},[3])(3)}))}));function I(){return I=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},I.apply(null,arguments)}o(I,"_extends");function An(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function Fn(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),void 0!==e.nonce&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}o(An,"sheetForTag"),o(Fn,"createStyleElement");var kr=function(){function e(t){var n=this;this._insertTag=function(a){var i;i=0===n.tags.length?n.insertionPoint?n.insertionPoint.nextSibling:n.prepend?n.container.firstChild:n.before:n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,i),n.tags.push(a)},this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}o(e,"StyleSheet");var r=e.prototype;return r.hydrate=o((function(n){n.forEach(this._insertTag)}),"hydrate"),r.insert=o((function(n){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(Fn(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var i=An(a);try{i.insertRule(n,i.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++}),"insert"),r.flush=o((function(){this.tags.forEach((function(n){var a;return null==(a=n.parentNode)?void 0:a.removeChild(n)})),this.tags=[],this.ctr=0}),"flush"),e}(),z="-ms-",Re="-moz-",C="-webkit-",ce="rule",le="decl",je="@keyframes",Dr=Math.abs,ee=String.fromCharCode,$r=Object.assign;function jr(e,r){return 45^_(e,0)?(((r<<2^_(e,0))<<2^_(e,1))<<2^_(e,2))<<2^_(e,3):0}function He(e){return e.trim()}function sr(e,r){return(e=r.exec(e))?e[0]:e}function E(e,r,t){return e.replace(r,t)}function Ae(e,r){return e.indexOf(r)}function _(e,r){return 0|e.charCodeAt(r)}function q(e,r,t){return e.slice(r,t)}function M(e){return e.length}function pe(e){return e.length}function de(e,r){return r.push(e),e}function ur(e,r){return e.map(r).join("")}o(jr,"hash"),o(He,"trim"),o(sr,"match"),o(E,"replace"),o(Ae,"indexof"),o(_,"charat"),o(q,"substr"),o(M,"strlen"),o(pe,"sizeof"),o(de,"append"),o(ur,"combine");var We=1,me=1,Hr=0,k=0,P=0,ge="";function Fe(e,r,t,n,a,i,s){return{value:e,root:r,parent:t,type:n,props:a,children:i,line:We,column:me,length:s,return:""}}function be(e,r){return $r(Fe("",null,null,"",null,null,0),e,{length:-e.length},r)}function Wr(){return P}function Ur(){return P=k>0?_(ge,--k):0,me--,10===P&&(me=1,We--),P}function N(){return P=k<Hr?_(ge,k++):0,me++,10===P&&(me=1,We++),P}function $(){return _(ge,k)}function _e(){return k}function ve(e,r){return q(ge,e,r)}function he(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ue(e){return We=me=1,Hr=M(ge=e),k=0,[]}function Ve(e){return ge="",e}function ye(e){return He(ve(k-1,fr(91===e?e+2:40===e?e+1:e)))}function Vr(e){for(;(P=$())&&P<33;)N();return he(e)>2||he(P)>3?"":" "}function Gr(e,r){for(;--r&&N()&&!(P<48||P>102||P>57&&P<65||P>70&&P<97););return ve(e,_e()+(r<6&&32==$()&&32==N()))}function fr(e){for(;N();)switch(P){case e:return k;case 34:case 39:34!==e&&39!==e&&fr(P);break;case 40:41===e&&fr(e);break;case 92:N()}return k}function Yr(e,r){for(;N()&&e+P!==57&&(e+P!==84||47!==$()););return"/*"+ve(r,k-1)+"*"+ee(47===e?e:N())}function qr(e){for(;!he($());)N();return ve(e,k)}function Xr(e){return Ve(Ge("",null,null,null,[""],e=Ue(e),0,[0],e))}function Ge(e,r,t,n,a,i,s,u,f){for(var p=0,c=0,l=s,m=0,x=0,b=0,d=1,v=1,y=1,w=0,A="",S=a,R=i,F=n,T=A;v;)switch(b=w,w=N()){case 40:if(108!=b&&58==_(T,l-1)){-1!=Ae(T+=E(ye(w),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:T+=ye(w);break;case 9:case 10:case 13:case 32:T+=Vr(b);break;case 92:T+=Gr(_e()-1,7);continue;case 47:switch($()){case 42:case 47:de(_n(Yr(N(),_e()),r,t),f);break;default:T+="/"}break;case 123*d:u[p++]=M(T)*y;case 125*d:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+c:-1==y&&(T=E(T,/\f/g,"")),x>0&&M(T)-l&&de(x>32?Kr(T+";",n,t,l-1):Kr(E(T," ","")+";",n,t,l-2),f);break;case 59:T+=";";default:if(de(F=Jr(T,r,t,p,c,a,u,A,S=[],R=[],l),i),123===w)if(0===c)Ge(T,r,F,F,S,i,l,u,R);else switch(99===m&&110===_(T,3)?100:m){case 100:case 108:case 109:case 115:Ge(e,F,F,n&&de(Jr(e,F,F,0,0,a,u,A,a,S=[],l),R),a,R,l,u,n?S:R);break;default:Ge(T,F,F,F,[""],R,0,u,R)}}p=c=x=0,d=y=1,A=T="",l=s;break;case 58:l=1+M(T),x=b;default:if(d<1)if(123==w)--d;else if(125==w&&0==d++&&125==Ur())continue;switch(T+=ee(w),w*d){case 38:y=c>0?1:(T+="\f",-1);break;case 44:u[p++]=(M(T)-1)*y,y=1;break;case 64:45===$()&&(T+=ye(N())),m=$(),c=l=M(A=T+=qr(_e())),w++;break;case 45:45===b&&2==M(T)&&(d=0)}}return i}function Jr(e,r,t,n,a,i,s,u,f,p,c){for(var l=a-1,m=0===a?i:[""],x=pe(m),b=0,d=0,v=0;b<n;++b)for(var y=0,w=q(e,l+1,l=Dr(d=s[b])),A=e;y<x;++y)(A=He(d>0?m[y]+" "+w:E(w,/&\f/g,m[y])))&&(f[v++]=A);return Fe(e,r,t,0===a?ce:u,f,p,c)}function _n(e,r,t){return Fe(e,r,t,"comm",ee(Wr()),q(e,2,-2),0)}function Kr(e,r,t,n){return Fe(e,r,t,le,q(e,0,n),q(e,n+1,-1),n)}function re(e,r){for(var t="",n=pe(e),a=0;a<n;a++)t+=r(e[a],a,e,r)||"";return t}function Zr(e,r,t,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case le:return e.return=e.return||e.value;case"comm":return"";case je:return e.return=e.value+"{"+re(e.children,n)+"}";case ce:e.value=e.props.join(",")}return M(t=re(e.children,n))?e.return=e.value+"{"+t+"}":""}function Qr(e){var r=pe(e);return function(t,n,a,i){for(var s="",u=0;u<r;u++)s+=e[u](t,n,a,i)||"";return s}}function et(e){return function(r){r.root||(r=r.return)&&e(r)}}o(Fe,"node"),o(be,"copy"),o(Wr,"char"),o(Ur,"prev"),o(N,"next"),o($,"peek"),o(_e,"caret"),o(ve,"slice"),o(he,"token"),o(Ue,"alloc"),o(Ve,"dealloc"),o(ye,"delimit"),o(Vr,"whitespace"),o(Gr,"escaping"),o(fr,"delimiter"),o(Yr,"commenter"),o(qr,"identifier"),o(Xr,"compile"),o(Ge,"parse"),o(Jr,"ruleset"),o(_n,"comment"),o(Kr,"declaration"),o(re,"serialize"),o(Zr,"stringify"),o(Qr,"middleware"),o(et,"rulesheet");var cr=o((function(r){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var a=r(n);return t.set(n,a),a}}),"weakMemoize");function Ye(e){var r=Object.create(null);return function(t){return void 0===r[t]&&(r[t]=e(t)),r[t]}}o(Ye,"memoize");var In=o((function(r,t,n){for(var a=0,i=0;a=i,i=$(),38===a&&12===i&&(t[n]=1),!he(i);)N();return ve(r,k)}),"identifierWithPointTracking"),Pn=o((function(r,t){var n=-1,a=44;do{switch(he(a)){case 0:38===a&&12===$()&&(t[n]=1),r[n]+=In(k-1,t,n);break;case 2:r[n]+=ye(a);break;case 4:if(44===a){r[++n]=58===$()?"&\f":"",t[n]=r[n].length;break}default:r[n]+=ee(a)}}while(a=N());return r}),"toRules"),Ln=o((function(r,t){return Ve(Pn(Ue(r),t))}),"getRules"),rt=new WeakMap,zn=o((function(r){if("rule"===r.type&&r.parent&&!(r.length<1)){for(var t=r.value,n=r.parent,a=r.column===n.column&&r.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==r.props.length||58===t.charCodeAt(0)||rt.get(n))&&!a){rt.set(r,!0);for(var i=[],s=Ln(t,i),u=n.props,f=0,p=0;f<s.length;f++)for(var c=0;c<u.length;c++,p++)r.props[p]=i[f]?s[f].replace(/&\f/g,u[c]):u[c]+" "+s[f]}}}),"compat"),Mn=o((function(r){if("decl"===r.type){var t=r.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(r.return="",r.value="")}}),"removeLabel");function tt(e,r){switch(jr(e,r)){case 5103:return C+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return C+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return C+e+Re+e+z+e+e;case 6828:case 4268:return C+e+z+e+e;case 6165:return C+e+z+"flex-"+e+e;case 5187:return C+e+E(e,/(\w+).+(:[^]+)/,C+"box-$1$2"+z+"flex-$1$2")+e;case 5443:return C+e+z+"flex-item-"+E(e,/flex-|-self/,"")+e;case 4675:return C+e+z+"flex-line-pack"+E(e,/align-content|flex-|-self/,"")+e;case 5548:return C+e+z+E(e,"shrink","negative")+e;case 5292:return C+e+z+E(e,"basis","preferred-size")+e;case 6060:return C+"box-"+E(e,"-grow","")+C+e+z+E(e,"grow","positive")+e;case 4554:return C+E(e,/([^-])(transform)/g,"$1"+C+"$2")+e;case 6187:return E(E(E(e,/(zoom-|grab)/,C+"$1"),/(image-set)/,C+"$1"),e,"")+e;case 5495:case 3959:return E(e,/(image-set\([^]*)/,C+"$1$`$1");case 4968:return E(E(e,/(.+:)(flex-)?(.*)/,C+"box-pack:$3"+z+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+C+e+e;case 4095:case 3583:case 4068:case 2532:return E(e,/(.+)-inline(.+)/,C+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(M(e)-1-r>6)switch(_(e,r+1)){case 109:if(45!==_(e,r+4))break;case 102:return E(e,/(.+:)(.+)-([^]+)/,"$1"+C+"$2-$3$1"+Re+(108==_(e,r+3)?"$3":"$2-$3"))+e;case 115:return~Ae(e,"stretch")?tt(E(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(115!==_(e,r+1))break;case 6444:switch(_(e,M(e)-3-(~Ae(e,"!important")&&10))){case 107:return E(e,":",":"+C)+e;case 101:return E(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+C+(45===_(e,14)?"inline-":"")+"box$3$1"+C+"$2$3$1"+z+"$2box$3")+e}break;case 5936:switch(_(e,r+11)){case 114:return C+e+z+E(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return C+e+z+E(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return C+e+z+E(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return C+e+z+e+e}return e}o(tt,"prefix");var kn=o((function(r,t,n,a){if(r.length>-1&&!r.return)switch(r.type){case le:r.return=tt(r.value,r.length);break;case je:return re([be(r,{value:E(r.value,"@","@"+C)})],a);case ce:if(r.length)return ur(r.props,(function(i){switch(sr(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return re([be(r,{props:[E(i,/:(read-\w+)/,":-moz-$1")]})],a);case"::placeholder":return re([be(r,{props:[E(i,/:(plac\w+)/,":"+C+"input-$1")]}),be(r,{props:[E(i,/:(plac\w+)/,":-moz-$1")]}),be(r,{props:[E(i,/:(plac\w+)/,z+"input-$1")]})],a)}return""}))}}),"prefixer"),Nn=[kn],lr=o((function(r){var t=r.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(d){-1!==d.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(d),d.setAttribute("data-s",""))}))}var s,a=r.stylisPlugins||Nn,i={},u=[];s=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(d){for(var v=d.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)i[v[y]]=!0;u.push(d)}));var f,c,p=[zn,Mn],l=[Zr,et((function(d){c.insert(d)}))],m=Qr(p.concat(a,l)),x=o((function(v){return re(Xr(v),m)}),"stylis");f=o((function(v,y,w,A){c=w,x(v?v+"{"+y.styles+"}":y.styles),A&&(b.inserted[y.name]=!0)}),"insert");var b={key:t,sheet:new kr({key:t,container:s,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:i,registered:{},insert:f};return b.sheet.hydrate(u),b}),"createCache"),pt=ir(mr()),dt=o((function(e,r){return(0,pt.default)(e,r)}),"hoistNonReactStatics");function xe(e,r,t){var n="";return t.split(" ").forEach((function(a){void 0!==e[a]?r.push(e[a]+";"):a&&(n+=a+" ")})),n}o(xe,"getRegisteredStyles");var te=o((function(r,t,n){var a=r.key+"-"+t.name;!1===n&&void 0===r.registered[a]&&(r.registered[a]=t.styles)}),"registerStyles"),ne=o((function(r,t,n){te(r,t,n);var a=r.key+"-"+t.name;if(void 0===r.inserted[t.name]){var i=t;do{r.insert(t===i?"."+a:"",i,r.sheet,!0),i=i.next}while(void 0!==i)}}),"insertStyles");function mt(e){for(var t,r=0,n=0,a=e.length;a>=4;++n,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(a){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}o(mt,"murmur2");var ht={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Gn=!1,Yn=/[A-Z]|^ms/g,qn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,yt=o((function(r){return 45===r.charCodeAt(1)}),"isCustomProperty"),gt=o((function(r){return null!=r&&"boolean"!=typeof r}),"isProcessableValue"),hr=Ye((function(e){return yt(e)?e:e.replace(Yn,"-$&").toLowerCase()})),bt=o((function(r,t){switch(r){case"animation":case"animationName":if("string"==typeof t)return t.replace(qn,(function(n,a,i){return U={name:a,styles:i,next:U},a}))}return 1===ht[r]||yt(r)||"number"!=typeof t||0===t?t:t+"px"}),"processStyleValue"),Jn="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Ie(e,r,t){if(null==t)return"";var n=t;if(void 0!==n.__emotion_styles)return n;switch(typeof t){case"boolean":return"";case"object":var a=t;if(1===a.anim)return U={name:a.name,styles:a.styles,next:U},a.name;var i=t;if(void 0!==i.styles){var s=i.next;if(void 0!==s)for(;void 0!==s;)U={name:s.name,styles:s.styles,next:U},s=s.next;return i.styles+";"}return Kn(e,r,t);case"function":if(void 0!==e){var f=U,p=t(e);return U=f,Ie(e,r,p)}}var c=t;if(null==r)return c;var l=r[c];return void 0!==l?l:c}function Kn(e,r,t){var n="";if(Array.isArray(t))for(var a=0;a<t.length;a++)n+=Ie(e,r,t[a])+";";else for(var i in t){var s=t[i];if("object"!=typeof s){var u=s;null!=r&&void 0!==r[u]?n+=i+"{"+r[u]+"}":gt(u)&&(n+=hr(i)+":"+bt(i,u)+";")}else{if("NO_COMPONENT_SELECTOR"===i&&Gn)throw new Error(Jn);if(!Array.isArray(s)||"string"!=typeof s[0]||null!=r&&void 0!==r[s[0]]){var p=Ie(e,r,s);switch(i){case"animation":case"animationName":n+=hr(i)+":"+p+";";break;default:n+=i+"{"+p+"}"}}else for(var f=0;f<s.length;f++)gt(s[f])&&(n+=hr(i)+":"+bt(i,s[f])+";")}}return n}o(Ie,"handleInterpolation"),o(Kn,"createStringFromObject");var U,vt=/label:\s*([^\s;{]+)\s*(;|$)/g;function J(e,r,t){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,a="";U=void 0;var i=e[0];null==i||void 0===i.raw?(n=!1,a+=Ie(t,r,i)):a+=i[0];for(var u=1;u<e.length;u++)if(a+=Ie(t,r,e[u]),n){a+=i[u]}vt.lastIndex=0;for(var c,p="";null!==(c=vt.exec(a));)p+="-"+c[1];return{name:mt(a)+p,styles:a,next:U}}o(J,"serializeStyles");var Xn=o((function(r){return r()}),"syncFallback"),xt=!!react__WEBPACK_IMPORTED_MODULE_0__.useInsertionEffect&&react__WEBPACK_IMPORTED_MODULE_0__.useInsertionEffect,we=xt||Xn,wt=(xt||react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect,react__WEBPACK_IMPORTED_MODULE_0__.createContext(typeof HTMLElement<"u"?lr({key:"css"}):null)),ae=(wt.Provider,o((function(r){return(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((function(t,n){var a=(0,react__WEBPACK_IMPORTED_MODULE_0__.useContext)(wt);return r(t,a,n)}))}),"withEmotionCache")),H=react__WEBPACK_IMPORTED_MODULE_0__.createContext({}),St=o((function(){return react__WEBPACK_IMPORTED_MODULE_0__.useContext(H)}),"useTheme"),ea=o((function(r,t){return"function"==typeof t?t(r):I({},r,t)}),"getTheme"),ra=cr((function(e){return cr((function(r){return ea(e,r)}))})),Tt=o((function(r){var t=react__WEBPACK_IMPORTED_MODULE_0__.useContext(H);return r.theme!==t&&(t=ra(t)(r.theme)),react__WEBPACK_IMPORTED_MODULE_0__.createElement(H.Provider,{value:t},r.children)}),"ThemeProvider");o((function Ct(e){var r=e.displayName||e.name||"Component",t=react__WEBPACK_IMPORTED_MODULE_0__.forwardRef(o((function(a,i){var s=react__WEBPACK_IMPORTED_MODULE_0__.useContext(H);return react__WEBPACK_IMPORTED_MODULE_0__.createElement(e,I({theme:s,ref:i},a))}),"render"));return t.displayName="WithTheme("+r+")",dt(t,e)}),"withTheme");var e,r,Je={}.hasOwnProperty,br="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ot=o((function(r,t){var n={};for(var a in t)Je.call(t,a)&&(n[a]=t[a]);return n[br]=r,n}),"createEmotionProps"),ta=o((function(r){var t=r.cache,n=r.serialized,a=r.isStringTag;return te(t,n,a),we((function(){return ne(t,n,a)})),null}),"Insertion"),na=ae((function(e,r,t){var n=e.css;"string"==typeof n&&void 0!==r.registered[n]&&(n=r.registered[n]);var a=e[br],i=[n],s="";"string"==typeof e.className?s=xe(r.registered,i,e.className):null!=e.className&&(s=e.className+" ");var u=J(i,void 0,react__WEBPACK_IMPORTED_MODULE_0__.useContext(H));s+=r.key+"-"+u.name;var f={};for(var p in e)Je.call(e,p)&&"css"!==p&&p!==br&&(f[p]=e[p]);return f.className=s,t&&(f.ref=t),react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(ta,{cache:r,serialized:u,isStringTag:"string"==typeof a}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(a,f))})),Rt=na,vr=(ir(mr()),o((function(r,t){var n=arguments;if(null==t||!Je.call(t,"css"))return react__WEBPACK_IMPORTED_MODULE_0__.createElement.apply(void 0,n);var a=n.length,i=new Array(a);i[0]=Rt,i[1]=Ot(r,t);for(var s=2;s<a;s++)i[s]=n[s];return react__WEBPACK_IMPORTED_MODULE_0__.createElement.apply(null,i)}),"jsx"));e=vr||(vr={}),r||(r=e.JSX||(e.JSX={}));function Le(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return J(r)}function Ee(){var e=Le.apply(void 0,arguments),r="animation-"+e.name;return{name:r,styles:"@keyframes "+r+"{"+e.styles+"}",anim:1,toString:o((function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}),"toString")}}o(Le,"css"),o(Ee,"keyframes");function ia(e,r,t){var n=[],a=xe(e,n,t);return n.length<2?t:a+r(n)}o(ia,"merge");var fa=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,yr=Ye((function(e){return fa.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),la=yr,pa=o((function(r){return"theme"!==r}),"testOmitPropsOnComponent"),At=o((function(r){return"string"==typeof r&&r.charCodeAt(0)>96?la:pa}),"getDefaultShouldForwardProp"),Ft=o((function(r,t,n){var a;if(t){var i=t.shouldForwardProp;a=r.__emotion_forwardProp&&i?function(s){return r.__emotion_forwardProp(s)&&i(s)}:i}return"function"!=typeof a&&n&&(a=r.__emotion_forwardProp),a}),"composeShouldForwardProps"),da=o((function(r){var t=r.cache,n=r.serialized,a=r.isStringTag;return te(t,n,a),we((function(){return ne(t,n,a)})),null}),"Insertion"),_t=o((function e(r,t){var i,s,n=r.__emotion_real===r,a=n&&r.__emotion_base||r;void 0!==t&&(i=t.label,s=t.target);var u=Ft(r,t,n),f=u||At(a),p=!f("as");return function(){var c=arguments,l=n&&void 0!==r.__emotion_styles?r.__emotion_styles.slice(0):[];if(void 0!==i&&l.push("label:"+i+";"),null==c[0]||void 0===c[0].raw)l.push.apply(l,c);else{var m=c[0];l.push(m[0]);for(var x=c.length,b=1;b<x;b++)l.push(c[b],m[b])}var d=ae((function(v,y,w){var A=p&&v.as||a,S="",R=[],F=v;if(null==v.theme){for(var T in F={},v)F[T]=v[T];F.theme=react__WEBPACK_IMPORTED_MODULE_0__.useContext(H)}"string"==typeof v.className?S=xe(y.registered,R,v.className):null!=v.className&&(S=v.className+" ");var ue=J(l.concat(R),y.registered,F);S+=y.key+"-"+ue.name,void 0!==s&&(S+=" "+s);var fe=p&&void 0===u?At(A):f,G={};for(var Y in v)p&&"as"===Y||fe(Y)&&(G[Y]=v[Y]);return G.className=S,w&&(G.ref=w),react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement(da,{cache:y,serialized:ue,isStringTag:"string"==typeof A}),react__WEBPACK_IMPORTED_MODULE_0__.createElement(A,G))}));return d.displayName=void 0!==i?i:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",d.defaultProps=r.defaultProps,d.__emotion_real=d,d.__emotion_base=a,d.__emotion_styles=l,d.__emotion_forwardProp=u,Object.defineProperty(d,"toString",{value:o((function(){return"."+s}),"value")}),d.withComponent=function(v,y){return e(v,I({},t,y,{shouldForwardProp:Ft(d,y,!0)})).apply(void 0,l)},d}}),"createStyled"),xr=_t.bind(null);function It(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function X(e,r){return(X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(e,r)}function Pt(e,r){e.prototype=Object.create(r.prototype),e.prototype.constructor=e,X(e,r)}function Ke(e){return Ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ke(e)}function Lt(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch{return"function"==typeof e}}function wr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(wr=o((function(){return!!e}),"_isNativeReflectConstruct"))()}function zt(e,r,t){if(wr())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,r);var a=new(e.bind.apply(e,n));return t&&X(a,t.prototype),a}function Xe(e){var r="function"==typeof Map?new Map:void 0;return Xe=o((function(n){if(null===n||!Lt(n))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(n))return r.get(n);r.set(n,a)}function a(){return zt(n,arguments,Ke(this).constructor)}return o(a,"Wrapper"),a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),X(a,n)}),"_wrapNativeSuper"),Xe(e)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){xr[e]=xr(e)})),o(It,"_assertThisInitialized"),o(X,"_setPrototypeOf"),o(Pt,"_inheritsLoose"),o(Ke,"_getPrototypeOf"),o(Lt,"_isNativeFunction"),o(wr,"_isNativeReflectConstruct"),o(zt,"_construct"),o(Xe,"_wrapNativeSuper");var ha={1:"Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n",2:"Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n",3:"Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",4:"Couldn't generate valid rgb string from %s, it returned %s.\n\n",5:"Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n",6:"Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\n\n",7:"Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\n\n",8:"Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n",9:"Please provide a number of steps to the modularScale helper.\n\n",10:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",11:'Invalid value passed as base to modularScale, expected number or em string but got "%s"\n\n',12:'Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.\n\n',13:'Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.\n\n',14:'Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',15:'Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',16:"You must provide a template to this method.\n\n",17:"You passed an unsupported selector state to this method.\n\n",18:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",19:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",20:"expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:"fontFace expects a name of a font-family.\n\n",24:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",25:"fontFace expects localFonts to be an array.\n\n",26:"fontFace expects fileFormats to be an array.\n\n",27:"radialGradient requries at least 2 color-stops to properly render.\n\n",28:"Please supply a filename to retinaImage() as the first argument.\n\n",29:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n",32:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n",33:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n",34:"borderRadius expects a radius value as a string or number as the second argument.\n\n",35:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',36:"Property must be a string value.\n\n",37:"Syntax Error at %s.\n\n",38:"Formula contains a function that needs parentheses at %s.\n\n",39:"Formula is missing closing parenthesis at %s.\n\n",40:"Formula has too many closing parentheses at %s.\n\n",41:"All values in a formula must have the same unit or be unitless.\n\n",42:"Please provide a number of steps to the modularScale helper.\n\n",43:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",44:"Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n",45:"Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n",46:"Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n",47:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",48:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",49:"Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",50:"Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n",51:"Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n",52:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",53:"fontFace expects localFonts to be an array.\n\n",54:"fontFace expects fileFormats to be an array.\n\n",55:"fontFace expects a name of a font-family.\n\n",56:"linearGradient requries at least 2 color-stops to properly render.\n\n",57:"radialGradient requries at least 2 color-stops to properly render.\n\n",58:"Please supply a filename to retinaImage() as the first argument.\n\n",59:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:"Property must be a string value.\n\n",62:"borderRadius expects a radius value as a string or number as the second argument.\n\n",63:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',64:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n",65:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\n\n",66:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n",67:"You must provide a template to this method.\n\n",68:"You passed an unsupported selector state to this method.\n\n",69:'Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.\n\n',70:'Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.\n\n',71:'Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.\n\n',72:'Passed invalid base value %s to %s(), please pass a value like "12px" or 12.\n\n',73:"Please provide a valid CSS variable.\n\n",74:"CSS variable not found and no default was provided.\n\n",75:"important requires a valid style object, got a %s instead.\n\n",76:"fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n\n",77:'remToPx expects a value in "rem" but you provided it in "%s".\n\n',78:'base must be set in "px" or "%" but you set it in "%s".\n'};function ga(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var i,n=r[0],a=[];for(i=1;i<r.length;i+=1)a.push(r[i]);return a.forEach((function(s){n=n.replace(/%[a-z]/,s)})),n}o(ga,"format");var B=function(e){function r(t){for(var a=arguments.length,i=new Array(a>1?a-1:0),s=1;s<a;s++)i[s-1]=arguments[s];return It(e.call(this,ga.apply(void 0,[ha[t]].concat(i)))||this)}return Pt(r,e),o(r,"PolishedError"),r}(Xe(Error));function Mt(e,r){return e.substr(-r.length)===r}o(Mt,"endsWith");var ba=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function kt(e){return"string"!=typeof e?e:e.match(ba)?parseFloat(e):e}o(kt,"stripUnit");var va=o((function(r){return function(t,n){void 0===n&&(n="16px");var a=t,i=n;if("string"==typeof t){if(!Mt(t,"px"))throw new B(69,r,t);a=kt(t)}if("string"==typeof n){if(!Mt(n,"px"))throw new B(70,r,n);i=kt(n)}if("string"==typeof a)throw new B(71,t,r);if("string"==typeof i)throw new B(72,n,r);return""+a/i+r}}),"pxtoFactory"),Bt=va;Bt("em"),Bt("rem");function Er(e){return Math.round(255*e)}function ya(e,r,t){return Er(e)+","+Er(r)+","+Er(t)}function ze(e,r,t,n){if(void 0===n&&(n=ya),0===r)return n(t,t,t);var a=(e%360+360)%360/60,i=(1-Math.abs(2*t-1))*r,s=i*(1-Math.abs(a%2-1)),u=0,f=0,p=0;a>=0&&a<1?(u=i,f=s):a>=1&&a<2?(u=s,f=i):a>=2&&a<3?(f=i,p=s):a>=3&&a<4?(f=s,p=i):a>=4&&a<5?(u=s,p=i):a>=5&&a<6&&(u=i,p=s);var c=t-i/2;return n(u+c,f+c,p+c)}o(Er,"colorToInt"),o(ya,"convertToInt"),o(ze,"hslToRgb");var Nt={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function xa(e){if("string"!=typeof e)return e;var r=e.toLowerCase();return Nt[r]?"#"+Nt[r]:e}o(xa,"nameToHex");var wa=/^#[a-fA-F0-9]{6}$/,Ea=/^#[a-fA-F0-9]{8}$/,Sa=/^#[a-fA-F0-9]{3}$/,Ta=/^#[a-fA-F0-9]{4}$/,Sr=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Ca=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Oa=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Ra=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Se(e){if("string"!=typeof e)throw new B(3);var r=xa(e);if(r.match(wa))return{red:parseInt(""+r[1]+r[2],16),green:parseInt(""+r[3]+r[4],16),blue:parseInt(""+r[5]+r[6],16)};if(r.match(Ea)){var t=parseFloat((parseInt(""+r[7]+r[8],16)/255).toFixed(2));return{red:parseInt(""+r[1]+r[2],16),green:parseInt(""+r[3]+r[4],16),blue:parseInt(""+r[5]+r[6],16),alpha:t}}if(r.match(Sa))return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16)};if(r.match(Ta)){var n=parseFloat((parseInt(""+r[4]+r[4],16)/255).toFixed(2));return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16),alpha:n}}var a=Sr.exec(r);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10)};var i=Ca.exec(r.substring(0,50));if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])>1?parseFloat(""+i[4])/100:parseFloat(""+i[4])};var s=Oa.exec(r);if(s){var c="rgb("+ze(parseInt(""+s[1],10),parseInt(""+s[2],10)/100,parseInt(""+s[3],10)/100)+")",l=Sr.exec(c);if(!l)throw new B(4,r,c);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var m=Ra.exec(r.substring(0,50));if(m){var v="rgb("+ze(parseInt(""+m[1],10),parseInt(""+m[2],10)/100,parseInt(""+m[3],10)/100)+")",y=Sr.exec(v);if(!y)throw new B(4,r,v);return{red:parseInt(""+y[1],10),green:parseInt(""+y[2],10),blue:parseInt(""+y[3],10),alpha:parseFloat(""+m[4])>1?parseFloat(""+m[4])/100:parseFloat(""+m[4])}}throw new B(5)}function Aa(e){var r=e.red/255,t=e.green/255,n=e.blue/255,a=Math.max(r,t,n),i=Math.min(r,t,n),s=(a+i)/2;if(a===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var u,f=a-i,p=s>.5?f/(2-a-i):f/(a+i);switch(a){case r:u=(t-n)/f+(t<n?6:0);break;case t:u=(n-r)/f+2;break;default:u=(r-t)/f+4}return u*=60,void 0!==e.alpha?{hue:u,saturation:p,lightness:s,alpha:e.alpha}:{hue:u,saturation:p,lightness:s}}function Z(e){return Aa(Se(e))}o(Se,"parseToRgb"),o(Aa,"rgbToHsl"),o(Z,"parseToHsl");var Fa=o((function(r){return 7===r.length&&r[1]===r[2]&&r[3]===r[4]&&r[5]===r[6]?"#"+r[1]+r[3]+r[5]:r}),"reduceHexValue"),Cr=Fa;function oe(e){var r=e.toString(16);return 1===r.length?"0"+r:r}function Tr(e){return oe(Math.round(255*e))}function _a(e,r,t){return Cr("#"+Tr(e)+Tr(r)+Tr(t))}function Ze(e,r,t){return ze(e,r,t,_a)}function Ia(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return Ze(e,r,t);if("object"==typeof e&&void 0===r&&void 0===t)return Ze(e.hue,e.saturation,e.lightness);throw new B(1)}function Pa(e,r,t,n){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return n>=1?Ze(e,r,t):"rgba("+ze(e,r,t)+","+n+")";if("object"==typeof e&&void 0===r&&void 0===t&&void 0===n)return e.alpha>=1?Ze(e.hue,e.saturation,e.lightness):"rgba("+ze(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new B(2)}function Or(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return Cr("#"+oe(e)+oe(r)+oe(t));if("object"==typeof e&&void 0===r&&void 0===t)return Cr("#"+oe(e.red)+oe(e.green)+oe(e.blue));throw new B(6)}function ie(e,r,t,n){if("string"==typeof e&&"number"==typeof r){var a=Se(e);return"rgba("+a.red+","+a.green+","+a.blue+","+r+")"}if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return n>=1?Or(e,r,t):"rgba("+e+","+r+","+t+","+n+")";if("object"==typeof e&&void 0===r&&void 0===t&&void 0===n)return e.alpha>=1?Or(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new B(7)}o(oe,"numberToHex"),o(Tr,"colorToHex"),o(_a,"convertToHex"),o(Ze,"hslToHex"),o(Ia,"hsl"),o(Pa,"hsla"),o(Or,"rgb"),o(ie,"rgba");var La=o((function(r){return"number"==typeof r.red&&"number"==typeof r.green&&"number"==typeof r.blue&&("number"!=typeof r.alpha||typeof r.alpha>"u")}),"isRgb"),za=o((function(r){return"number"==typeof r.red&&"number"==typeof r.green&&"number"==typeof r.blue&&"number"==typeof r.alpha}),"isRgba"),Ma=o((function(r){return"number"==typeof r.hue&&"number"==typeof r.saturation&&"number"==typeof r.lightness&&("number"!=typeof r.alpha||typeof r.alpha>"u")}),"isHsl"),ka=o((function(r){return"number"==typeof r.hue&&"number"==typeof r.saturation&&"number"==typeof r.lightness&&"number"==typeof r.alpha}),"isHsla");function Q(e){if("object"!=typeof e)throw new B(8);if(za(e))return ie(e);if(La(e))return Or(e);if(ka(e))return Pa(e);if(Ma(e))return Ia(e);throw new B(8)}function Dt(e,r,t){return o((function(){var a=t.concat(Array.prototype.slice.call(arguments));return a.length>=r?e.apply(this,a):Dt(e,r,a)}),"fn")}function D(e){return Dt(e,e.length,[])}function Na(e,r){if("transparent"===r)return r;var t=Z(r);return Q(I({},t,{hue:t.hue+parseFloat(e)}))}o(Q,"toColorString"),o(Dt,"curried"),o(D,"curry"),o(Na,"adjustHue");D(Na);function Te(e,r,t){return Math.max(e,Math.min(r,t))}function Ba(e,r){if("transparent"===r)return r;var t=Z(r);return Q(I({},t,{lightness:Te(0,1,t.lightness-parseFloat(e))}))}o(Te,"guard"),o(Ba,"darken");var $t=D(Ba);function $a(e,r){if("transparent"===r)return r;var t=Z(r);return Q(I({},t,{saturation:Te(0,1,t.saturation-parseFloat(e))}))}o($a,"desaturate");D($a);function ja(e,r){if("transparent"===r)return r;var t=Z(r);return Q(I({},t,{lightness:Te(0,1,t.lightness+parseFloat(e))}))}o(ja,"lighten");var jt=D(ja);function Wa(e,r,t){if("transparent"===r)return t;if("transparent"===t)return r;if(0===e)return t;var n=Se(r),a=I({},n,{alpha:"number"==typeof n.alpha?n.alpha:1}),i=Se(t),s=I({},i,{alpha:"number"==typeof i.alpha?i.alpha:1}),u=a.alpha-s.alpha,f=2*parseFloat(e)-1,l=((f*u==-1?f:f+u)/(1+f*u)+1)/2,m=1-l;return ie({red:Math.floor(a.red*l+s.red*m),green:Math.floor(a.green*l+s.green*m),blue:Math.floor(a.blue*l+s.blue*m),alpha:a.alpha*parseFloat(e)+s.alpha*(1-parseFloat(e))})}o(Wa,"mix");var Ht=D(Wa);function Va(e,r){if("transparent"===r)return r;var t=Se(r);return ie(I({},t,{alpha:Te(0,1,(100*("number"==typeof t.alpha?t.alpha:1)+100*parseFloat(e))/100)}))}o(Va,"opacify");var Wt=D(Va);function Ya(e,r){if("transparent"===r)return r;var t=Z(r);return Q(I({},t,{saturation:Te(0,1,t.saturation+parseFloat(e))}))}o(Ya,"saturate");D(Ya);function qa(e,r){return"transparent"===r?r:Q(I({},Z(r),{hue:parseFloat(e)}))}o(qa,"setHue");D(qa);function Ja(e,r){return"transparent"===r?r:Q(I({},Z(r),{lightness:parseFloat(e)}))}o(Ja,"setLightness");D(Ja);function Ka(e,r){return"transparent"===r?r:Q(I({},Z(r),{saturation:parseFloat(e)}))}o(Ka,"setSaturation");D(Ka);function Xa(e,r){return"transparent"===r?r:Ht(parseFloat(e),"rgb(0, 0, 0)",r)}o(Xa,"shade");D(Xa);function Za(e,r){return"transparent"===r?r:Ht(parseFloat(e),"rgb(255, 255, 255)",r)}o(Za,"tint");D(Za);function Qa(e,r){if("transparent"===r)return r;var t=Se(r);return ie(I({},t,{alpha:Te(0,1,+(100*("number"==typeof t.alpha?t.alpha:1)-100*parseFloat(e)).toFixed(2)/100)}))}o(Qa,"transparentize");var Ut=D(Qa),h={primary:"#FF4785",secondary:"#029CFD",tertiary:"#FAFBFC",ancillary:"#22a699",orange:"#FC521F",gold:"#FFAE00",green:"#66BF3C",seafoam:"#37D5D3",purple:"#6F2CAC",ultraviolet:"#2A0481",lightest:"#FFFFFF",lighter:"#F7FAFC",light:"#EEF3F6",mediumlight:"#ECF4F9",medium:"#D9E8F2",mediumdark:"#73828C",dark:"#5C6870",darker:"#454E54",darkest:"#2E3438",border:"hsla(203, 50%, 30%, 0.15)",positive:"#66BF3C",negative:"#FF4400",warning:"#E69D00",critical:"#FFFFFF",defaultText:"#2E3438",inverseText:"#FFFFFF",positiveText:"#448028",negativeText:"#D43900",warningText:"#A15C20"},V={app:"#F6F9FC",bar:h.lightest,content:h.lightest,preview:h.lightest,gridCellSize:10,hoverable:Ut(.9,h.secondary),positive:"#E1FFD4",negative:"#FEDED2",warning:"#FFF5CF",critical:"#FF4400"},W={fonts:{base:['"Nunito Sans"',"-apple-system",'".SFNSText-Regular"','"San Francisco"',"BlinkMacSystemFont",'"Segoe UI"','"Helvetica Neue"',"Helvetica","Arial","sans-serif"].join(", "),mono:["ui-monospace","Menlo","Monaco",'"Roboto Mono"','"Oxygen Mono"','"Ubuntu Monospace"','"Source Code Pro"','"Droid Sans Mono"','"Courier New"',"monospace"].join(", ")},weight:{regular:400,bold:700},size:{s1:12,s2:14,s3:16,m1:20,m2:24,m3:28,l1:32,l2:40,l3:48,code:90}},Ar=ir(Gt(),1),Yt=(0,Ar.default)(1)((({typography:e})=>({body:{fontFamily:e.fonts.base,fontSize:e.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},"*":{boxSizing:"border-box"},"h1, h2, h3, h4, h5, h6":{fontWeight:e.weight.regular,margin:0,padding:0},"button, input, textarea, select":{fontFamily:"inherit",fontSize:"inherit",boxSizing:"border-box"},sub:{fontSize:"0.8em",bottom:"-0.2em"},sup:{fontSize:"0.8em",top:"-0.2em"},"b, strong":{fontWeight:e.weight.bold},hr:{border:"none",borderTop:"1px solid silver",clear:"both",marginBottom:"1.25rem"},code:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",display:"inline-block",paddingLeft:2,paddingRight:2,verticalAlign:"baseline",color:"inherit"},pre:{fontFamily:e.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0"}}))),qt=((0,Ar.default)(1)((({color:e,background:r,typography:t})=>{let n=Yt({typography:t});return{...n,body:{...n.body,color:e.defaultText,background:r.app,overflow:"hidden"},hr:{...n.hr,borderTop:`1px solid ${e.border}`},".sb-sr-only, .sb-hidden-until-focus:not(:focus)":{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",border:0},".sb-hidden-until-focus":{opacity:0,transition:"opacity 150ms ease-out"},".sb-hidden-until-focus:focus":{opacity:1}}})),{base:"dark",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:"#222425",appContentBg:"#1B1C1D",appPreviewBg:h.lightest,appBorderColor:"rgba(255,255,255,.1)",appBorderRadius:4,fontBase:W.fonts.base,fontCode:W.fonts.mono,textColor:"#C9CDCF",textInverseColor:"#222425",textMutedColor:"#798186",barTextColor:h.mediumdark,barHoverColor:h.secondary,barSelectedColor:h.secondary,barBg:"#292C2E",buttonBg:"#222425",buttonBorder:"rgba(255,255,255,.1)",booleanBg:"#222425",booleanSelectedBg:"#2E3438",inputBg:"#1B1C1D",inputBorder:"rgba(255,255,255,.1)",inputTextColor:h.lightest,inputBorderRadius:4}),Ce={base:"light",colorPrimary:"#FF4785",colorSecondary:"#029CFD",appBg:V.app,appContentBg:h.lightest,appPreviewBg:h.lightest,appBorderColor:h.border,appBorderRadius:4,fontBase:W.fonts.base,fontCode:W.fonts.mono,textColor:h.darkest,textInverseColor:h.lightest,textMutedColor:h.dark,barTextColor:h.mediumdark,barHoverColor:h.secondary,barSelectedColor:h.secondary,barBg:h.lightest,buttonBg:V.app,buttonBorder:h.medium,booleanBg:h.mediumlight,booleanSelectedBg:h.lightest,inputBg:h.lightest,inputBorder:h.border,inputTextColor:h.darkest,inputBorderRadius:4},{window:Fr}=_storybook_global__WEBPACK_IMPORTED_MODULE_2__.global,Jt=o((e=>({color:e})),"mkColor"),io=o((e=>"string"==typeof e||(storybook_internal_client_logger__WEBPACK_IMPORTED_MODULE_1__.logger.warn(`Color passed to theme object should be a string. Instead ${e}(${typeof e}) was passed.`),!1)),"isColorString"),so=o((e=>!/(gradient|var|calc)/.test(e)),"isValidColorForPolished"),uo=o(((e,r)=>"darken"===e?ie(`${$t(1,r)}`,.95):"lighten"===e?ie(`${jt(1,r)}`,.95):r),"applyPolished"),Kt=o((e=>r=>{if(!io(r)||!so(r))return r;try{return uo(e,r)}catch{return r}}),"colorFactory"),fo=Kt("lighten"),Qe=(Kt("darken"),o((()=>Fr&&Fr.matchMedia&&Fr.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),"getPreferredColorScheme")),Me={light:Ce,dark:qt,normal:Ce},Xt=(Qe(),{rubber:"cubic-bezier(0.175, 0.885, 0.335, 1.05)"}),Zt=Ee` 0%, 100% { opacity: 1; } 50% { opacity: .4; } `,Qt={rotate360:Ee` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,glow:Zt,float:Ee` 0% { transform: translateY(1px); } 25% { transform: translateY(0px); } 50% { transform: translateY(-3px); } 100% { transform: translateY(1px); } `,jiggle:Ee` 0%, 100% { transform:translate3d(0,0,0); } 12.5%, 62.5% { transform:translate3d(-4px,0,0); } 37.5%, 87.5% { transform: translate3d(4px,0,0); } `,inlineGlow:Le` animation: ${Zt} 1.5s ease-in-out infinite; color: transparent; cursor: progress; `,hoverable:Le` transition: all 150ms ease-out; transform: translate3d(0, 0, 0); &:hover { transform: translate3d(0, -2px, 0); } &:active { transform: translate3d(0, 0, 0); } `},en={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},rn={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},bo=o((e=>Object.entries(e).reduce(((r,[t,n])=>({...r,[t]:Jt(n)})),{})),"convertColors"),tn=o((({colors:e,mono:r})=>{let t=bo(e);return{token:{fontFamily:r,WebkitFontSmoothing:"antialiased","&.tag":t.red3,"&.comment":{...t.green1,fontStyle:"italic"},"&.prolog":{...t.green1,fontStyle:"italic"},"&.doctype":{...t.green1,fontStyle:"italic"},"&.cdata":{...t.green1,fontStyle:"italic"},"&.string":t.red1,"&.url":t.cyan1,"&.symbol":t.cyan1,"&.number":t.cyan1,"&.boolean":t.cyan1,"&.variable":t.cyan1,"&.constant":t.cyan1,"&.inserted":t.cyan1,"&.atrule":t.blue1,"&.keyword":t.blue1,"&.attr-value":t.blue1,"&.punctuation":t.gray1,"&.operator":t.gray1,"&.function":t.gray1,"&.deleted":t.red2,"&.important":{fontWeight:"bold"},"&.bold":{fontWeight:"bold"},"&.italic":{fontStyle:"italic"},"&.class-name":t.cyan2,"&.selector":t.red3,"&.attr-name":t.red4,"&.property":t.red4,"&.regex":t.red4,"&.entity":t.red4,"&.directive.tag .tag":{background:"#ffff00",...t.gray1}},"language-json .token.boolean":t.blue1,"language-json .token.number":t.blue1,"language-json .token.property":t.cyan2,namespace:{opacity:.7}}}),"create"),vo={green1:"#008000",red1:"#A31515",red2:"#9a050f",red3:"#800000",red4:"#ff0000",gray1:"#393A34",cyan1:"#36acaa",cyan2:"#2B91AF",blue1:"#0000ff",blue2:"#00009f"},yo={green1:"#7C7C7C",red1:"#92C379",red2:"#9a050f",red3:"#A8FF60",red4:"#96CBFE",gray1:"#EDEDED",cyan1:"#C6C5FE",cyan2:"#FFFFB6",blue1:"#B474DD",blue2:"#00009f"},xo=o((e=>({primary:e.colorPrimary,secondary:e.colorSecondary,tertiary:h.tertiary,ancillary:h.ancillary,orange:h.orange,gold:h.gold,green:h.green,seafoam:h.seafoam,purple:h.purple,ultraviolet:h.ultraviolet,lightest:h.lightest,lighter:h.lighter,light:h.light,mediumlight:h.mediumlight,medium:h.medium,mediumdark:h.mediumdark,dark:h.dark,darker:h.darker,darkest:h.darkest,border:h.border,positive:h.positive,negative:h.negative,warning:h.warning,critical:h.critical,defaultText:e.textColor||h.darkest,inverseText:e.textInverseColor||h.lightest,positiveText:h.positiveText,negativeText:h.negativeText,warningText:h.warningText})),"createColors"),Ir=o(((e=Me[Qe()])=>{let{base:r,colorPrimary:t,colorSecondary:n,appBg:a,appContentBg:i,appPreviewBg:s,appBorderColor:u,appBorderRadius:f,fontBase:p,fontCode:c,textColor:l,textInverseColor:m,barTextColor:x,barHoverColor:b,barSelectedColor:d,barBg:v,buttonBg:y,buttonBorder:w,booleanBg:A,booleanSelectedBg:S,inputBg:R,inputBorder:F,inputTextColor:T,inputBorderRadius:ue,brandTitle:fe,brandUrl:G,brandImage:Y,brandTarget:rr,gridCellSize:tr,...nr}=e;return{...nr,base:r,color:xo(e),background:{app:a,bar:v,content:i,preview:s,gridCellSize:tr||V.gridCellSize,hoverable:V.hoverable,positive:V.positive,negative:V.negative,warning:V.warning,critical:V.critical},typography:{fonts:{base:p,mono:c},weight:W.weight,size:W.size},animation:Qt,easing:Xt,input:{background:R,border:F,borderRadius:ue,color:T},button:{background:y||R,border:w||F},boolean:{background:A||F,selectedBackground:S||R},layoutMargin:10,appBorderColor:u,appBorderRadius:f,barTextColor:x,barHoverColor:b||n,barSelectedColor:d||n,barBg:v,brand:{title:fe,url:G,image:Y||(fe?null:void 0),target:rr},code:tn({colors:"light"===r?vo:yo,mono:c}),addonActionsTheme:{..."light"===r?rn:en,BASE_FONT_FAMILY:c,BASE_FONT_SIZE:W.size.s2-1,BASE_LINE_HEIGHT:"18px",BASE_BACKGROUND_COLOR:"transparent",BASE_COLOR:l,ARROW_COLOR:Wt(.2,u),ARROW_MARGIN_RIGHT:4,ARROW_FONT_SIZE:8,TREENODE_FONT_FAMILY:c,TREENODE_FONT_SIZE:W.size.s2-1,TREENODE_LINE_HEIGHT:"18px",TREENODE_PADDING_LEFT:12}}}),"convert"),Pr=o((e=>0===Object.keys(e).length),"isEmpty"),se=o((e=>null!=e&&"object"==typeof e),"isObject"),ke=o(((e,...r)=>Object.prototype.hasOwnProperty.call(e,...r)),"hasOwnProperty"),Ne=o((()=>Object.create(null)),"makeObjectWithoutPrototype"),nn=o(((e,r)=>e!==r&&se(e)&&se(r)?Object.keys(e).reduce(((t,n)=>{if(ke(r,n)){let a=nn(e[n],r[n]);return se(a)&&Pr(a)||(t[n]=a),t}return t[n]=void 0,t}),Ne()):{}),"deletedDiff"),er=nn;function an(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];var n=Array.from("string"==typeof e?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var a=n.reduce((function(u,f){var p=f.match(/\n([\t ]+|(?!\s).)/g);return p?u.concat(p.map((function(c){var l,m;return null!==(m=null===(l=c.match(/[\t ]/g))||void 0===l?void 0:l.length)&&void 0!==m?m:0}))):u}),[]);if(a.length){var i=new RegExp("\n[\t ]{"+Math.min.apply(Math,a)+"}","g");n=n.map((function(u){return u.replace(i,"\n")}))}n[0]=n[0].replace(/^\r?\n/,"");var s=n[0];return r.forEach((function(u,f){var p=s.match(/(?:^|\n)( *)$/),c=p?p[1]:"",l=u;"string"==typeof u&&u.includes("\n")&&(l=String(u).split("\n").map((function(m,x){return 0===x?m:""+c+m})).join("\n")),s+=l+n[f+1]})),s}o(an,"dedent");var pf=o((e=>{if(!e)return Ir(Ce);let r=er(Ce,e);return Object.keys(r).length&&storybook_internal_client_logger__WEBPACK_IMPORTED_MODULE_1__.logger.warn(an` Your theme is missing properties, you should update your theme! theme-data missing: `,r),Ir(e)}),"ensure"),hf="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */"},"./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js":module=>{var stylesInDOM=[];function getIndexByIdentifier(identifier){for(var result=-1,i=0;i<stylesInDOM.length;i++)if(stylesInDOM[i].identifier===identifier){result=i;break}return result}function modulesToDom(list,options){for(var idCountMap={},identifiers=[],i=0;i<list.length;i++){var item=list[i],id=options.base?item[0]+options.base:item[0],count=idCountMap[id]||0,identifier="".concat(id," ").concat(count);idCountMap[id]=count+1;var indexByIdentifier=getIndexByIdentifier(identifier),obj={css:item[1],media:item[2],sourceMap:item[3],supports:item[4],layer:item[5]};if(-1!==indexByIdentifier)stylesInDOM[indexByIdentifier].references++,stylesInDOM[indexByIdentifier].updater(obj);else{var updater=addElementStyle(obj,options);options.byIndex=i,stylesInDOM.splice(i,0,{identifier,updater,references:1})}identifiers.push(identifier)}return identifiers}function addElementStyle(obj,options){var api=options.domAPI(options);api.update(obj);return function updater(newObj){if(newObj){if(newObj.css===obj.css&&newObj.media===obj.media&&newObj.sourceMap===obj.sourceMap&&newObj.supports===obj.supports&&newObj.layer===obj.layer)return;api.update(obj=newObj)}else api.remove()}}module.exports=function(list,options){var lastIdentifiers=modulesToDom(list=list||[],options=options||{});return function update(newList){newList=newList||[];for(var i=0;i<lastIdentifiers.length;i++){var index=getIndexByIdentifier(lastIdentifiers[i]);stylesInDOM[index].references--}for(var newLastIdentifiers=modulesToDom(newList,options),_i=0;_i<lastIdentifiers.length;_i++){var _index=getIndexByIdentifier(lastIdentifiers[_i]);0===stylesInDOM[_index].references&&(stylesInDOM[_index].updater(),stylesInDOM.splice(_index,1))}lastIdentifiers=newLastIdentifiers}}},"./node_modules/style-loader/dist/runtime/insertBySelector.js":module=>{var memo={};module.exports=function insertBySelector(insert,style){var target=function getTarget(target){if(void 0===memo[target]){var styleTarget=document.querySelector(target);if(window.HTMLIFrameElement&&styleTarget instanceof window.HTMLIFrameElement)try{styleTarget=styleTarget.contentDocument.head}catch(e){styleTarget=null}memo[target]=styleTarget}return memo[target]}(insert);if(!target)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");target.appendChild(style)}},"./node_modules/style-loader/dist/runtime/insertStyleElement.js":module=>{module.exports=function insertStyleElement(options){var element=document.createElement("style");return options.setAttributes(element,options.attributes),options.insert(element,options.options),element}},"./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js":(module,__unused_webpack_exports,__webpack_require__)=>{module.exports=function setAttributesWithoutAttributes(styleElement){var nonce=__webpack_require__.nc;nonce&&styleElement.setAttribute("nonce",nonce)}},"./node_modules/style-loader/dist/runtime/styleDomAPI.js":module=>{module.exports=function domAPI(options){if("undefined"==typeof document)return{update:function update(){},remove:function remove(){}};var styleElement=options.insertStyleElement(options);return{update:function update(obj){!function apply(styleElement,options,obj){var css="";obj.supports&&(css+="@supports (".concat(obj.supports,") {")),obj.media&&(css+="@media ".concat(obj.media," {"));var needLayer=void 0!==obj.layer;needLayer&&(css+="@layer".concat(obj.layer.length>0?" ".concat(obj.layer):""," {")),css+=obj.css,needLayer&&(css+="}"),obj.media&&(css+="}"),obj.supports&&(css+="}");var sourceMap=obj.sourceMap;sourceMap&&"undefined"!=typeof btoa&&(css+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))))," */")),options.styleTagTransform(css,styleElement,options.options)}(styleElement,options,obj)},remove:function remove(){!function removeStyleElement(styleElement){if(null===styleElement.parentNode)return!1;styleElement.parentNode.removeChild(styleElement)}(styleElement)}}}},"./node_modules/style-loader/dist/runtime/styleTagTransform.js":module=>{module.exports=function styleTagTransform(css,styleElement){if(styleElement.styleSheet)styleElement.styleSheet.cssText=css;else{for(;styleElement.firstChild;)styleElement.removeChild(styleElement.firstChild);styleElement.appendChild(document.createTextNode(css))}}}}]); //# sourceMappingURL=688.1553505b.iframe.bundle.js.map ================================================ FILE: docs/688.1553505b.iframe.bundle.js.LICENSE.txt ================================================ /** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /** * @license React * scheduler.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ ================================================ FILE: docs/735.697195c4.iframe.bundle.js ================================================ "use strict";(self.webpackChunkreact_tree_graph=self.webpackChunkreact_tree_graph||[]).push([[735],{"./node_modules/@storybook/react-dom-shim/dist/react-18.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{renderElement:()=>renderElement,unmountElement:()=>unmountElement});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),react_dom_client__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react-dom/client.js"),nodes=new Map;var WithCallback=({callback,children})=>{let once=react__WEBPACK_IMPORTED_MODULE_0__.useRef();return react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect((()=>{once.current!==callback&&(once.current=callback,callback())}),[callback]),children};typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let resolve=null,reject=null;return{promise:new Promise(((res,rej)=>{resolve=res,reject=rej})),resolve,reject}});var renderElement=async(node,el,rootOptions)=>{let root=await getReactRoot(el,rootOptions);if(function getIsReactActEnvironment(){return globalThis.IS_REACT_ACT_ENVIRONMENT}())return void root.render(node);let{promise,resolve}=Promise.withResolvers();return root.render(react__WEBPACK_IMPORTED_MODULE_0__.createElement(WithCallback,{callback:resolve},node)),promise},unmountElement=(el,shouldUseNewRootApi)=>{let root=nodes.get(el);root&&(root.unmount(),nodes.delete(el))},getReactRoot=async(el,rootOptions)=>{let root=nodes.get(el);return root||(root=react_dom_client__WEBPACK_IMPORTED_MODULE_1__.H(el,rootOptions),nodes.set(el,root)),root}},"./node_modules/react-dom/client.js":(__unused_webpack_module,exports,__webpack_require__)=>{var m=__webpack_require__("./node_modules/react-dom/index.js");exports.H=m.createRoot,m.hydrateRoot}}]); ================================================ FILE: docs/animatedTree-stories.fcd27f04.iframe.bundle.js ================================================ "use strict";(self.webpackChunkreact_tree_graph=self.webpackChunkreact_tree_graph||[]).push([[372],{"./.storybook/stories/animatedTree.stories.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Animations:()=>Animations,__namedExportsOrder:()=>__namedExportsOrder,default:()=>animatedTree_stories});var react=__webpack_require__("./node_modules/react/index.js"),quad=__webpack_require__("./node_modules/d3-ease/src/quad.js"),d3=__webpack_require__("./src/d3.js"),container=__webpack_require__("./src/components/container.js");function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}function Animated(props){const initialX=props.nodes[0].x,initialY=props.nodes[0].y,[state,setState]=(0,react.useState)({nodes:props.nodes.map((n=>({...n,x:initialX,y:initialY}))),links:props.links.map((l=>({source:{...l.source,x:initialX,y:initialY},target:{...l.target,x:initialX,y:initialY}})))}),[animation,setAnimation]=(0,react.useState)(null);function getClosestAncestor(node,stateWithNode,stateWithoutNode){let oldParent=node;for(;oldParent;){let newParent=stateWithoutNode.nodes.find((n=>areNodesSame(oldParent,n)));if(newParent)return newParent;oldParent=stateWithNode.nodes.find((n=>(props.getChildren(n)||[]).some((c=>areNodesSame(oldParent,c)))))}return stateWithoutNode.nodes[0]}function areNodesSame(a,b){return a.data[props.keyProp]===b.data[props.keyProp]}function areLinksSame(a,b){return a.source.data[props.keyProp]===b.source.data[props.keyProp]&&a.target.data[props.keyProp]===b.target.data[props.keyProp]}function calculateNewValue(start,end,interval){return start+(end-start)*props.easing(interval)}return(0,react.useEffect)((function animate(){clearInterval(animation);let counter=0;const animationContext=function getAnimationContext(initialState,newState){const addedNodes=newState.nodes.filter((n1=>initialState.nodes.every((n2=>!areNodesSame(n1,n2))))).map((n1=>({base:n1,old:getClosestAncestor(n1,newState,initialState),new:n1}))),changedNodes=newState.nodes.filter((n1=>initialState.nodes.some((n2=>areNodesSame(n1,n2))))).map((n1=>({base:n1,old:initialState.nodes.find((n2=>areNodesSame(n1,n2))),new:n1}))),removedNodes=initialState.nodes.filter((n1=>newState.nodes.every((n2=>!areNodesSame(n1,n2))))).map((n1=>({base:n1,old:n1,new:getClosestAncestor(n1,initialState,newState)}))),addedLinks=newState.links.filter((l1=>initialState.links.every((l2=>!areLinksSame(l1,l2))))).map((l1=>({base:l1,old:getClosestAncestor(l1.target,newState,initialState),new:l1}))),changedLinks=newState.links.filter((l1=>initialState.links.some((l2=>areLinksSame(l1,l2))))).map((l1=>({base:l1,old:initialState.links.find((l2=>areLinksSame(l1,l2))),new:l1}))),removedLinks=initialState.links.filter((l1=>newState.links.every((l2=>!areLinksSame(l1,l2))))).map((l1=>({base:l1,old:l1,new:getClosestAncestor(l1.target,initialState,newState)})));return{nodes:changedNodes.concat(addedNodes).concat(removedNodes),links:changedLinks.concat(addedLinks).concat(removedLinks)}}(state,props),interval=setInterval((()=>{if(counter++,counter===props.steps)return clearInterval(interval),void setState({nodes:props.nodes,links:props.links});setState(function calculateNewState(animationContext,interval){return{nodes:animationContext.nodes.map((n=>function calculateNodePosition(node,start,end,interval){return{...node,x:calculateNewValue(start.x,end.x,interval),y:calculateNewValue(start.y,end.y,interval)}}(n.base,n.old,n.new,interval))),links:animationContext.links.map((l=>function calculateLinkPosition(link,start,end,interval){return{source:{...link.source,x:calculateNewValue(start.source?start.source.x:start.x,end.source?end.source.x:end.x,interval),y:calculateNewValue(start.source?start.source.y:start.y,end.source?end.source.y:end.y,interval)},target:{...link.target,x:calculateNewValue(start.target?start.target.x:start.x,end.target?end.target.x:end.x,interval),y:calculateNewValue(start.target?start.target.y:start.y,end.target?end.target.y:end.y,interval)}}}(l.base,l.old,l.new,interval)))}}(animationContext,counter/props.steps))}),props.duration/props.steps);return setAnimation(interval),()=>clearInterval(animation)}),[props.nodes,props.links]),react.createElement(container.A,_extends({},props,state))}function animatedTree_extends(){return animatedTree_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},animatedTree_extends.apply(null,arguments)}function AnimatedTree(props){const propsWithDefaults={direction:"ltr",duration:500,easing:quad.yv,getChildren:n=>n.children,steps:20,keyProp:"name",labelProp:"name",nodeShape:"circle",nodeProps:{},gProps:{},pathProps:{},svgProps:{},textProps:{},...props};return react.createElement(Animated,animatedTree_extends({duration:propsWithDefaults.duration,easing:propsWithDefaults.easing,getChildren:propsWithDefaults.getChildren,direction:propsWithDefaults.direction,height:propsWithDefaults.height,keyProp:propsWithDefaults.keyProp,labelProp:propsWithDefaults.labelProp,nodeShape:propsWithDefaults.nodeShape,nodeProps:propsWithDefaults.nodeProps,pathFunc:propsWithDefaults.pathFunc,steps:propsWithDefaults.steps,width:propsWithDefaults.width,gProps:{className:"node",...propsWithDefaults.gProps},pathProps:{className:"link",...propsWithDefaults.pathProps},svgProps:propsWithDefaults.svgProps,textProps:propsWithDefaults.textProps},(0,d3.A)(propsWithDefaults)),propsWithDefaults.children)}function animatedTree_stories_extends(){return animatedTree_stories_extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},animatedTree_stories_extends.apply(null,arguments)}Animated.__docgenInfo={description:"",methods:[],displayName:"Animated"},AnimatedTree.__docgenInfo={description:"",methods:[],displayName:"AnimatedTree"};const animatedTree_stories={title:"AnimatedTree/Animations",component:AnimatedTree,argTypes:__webpack_require__("./.storybook/stories/argTypes.js").z,parameters:{docs:{description:{component:"The AnimatedTree component has all the same props as the Tree component, and additional props to customise animation behaviour. Animations are automatically triggered when changes to the `data` prop are made. This demo works by using `setTimeout` to change the `data` prop every 2 seconds."}}}},order=[0,1,0,2],data=[{name:"Parent",children:[{name:"Child One"},{name:"Child Two"},{name:"Child Three",children:[{name:"Grandchild One"},{name:"Grandchild Two"}]}]},{name:"Child Three",children:[{name:"Grandchild One"},{name:"Grandchild Two"}]},{name:"Parent",children:[{name:"Child One"},{name:"Child Two"}]}],Animations={args:{height:400,width:600},parameters:{controls:{include:["duration","easing","steps"]}},render:args=>{const[position,setPosition]=(0,react.useState)(0);return(0,react.useEffect)((()=>{setTimeout((()=>setPosition(position>=order.length-1?0:position+1)),2e3)})),react.createElement(AnimatedTree,animatedTree_stories_extends({data:data[order[position]]},args))}},__namedExportsOrder=["Animations"];Animations.parameters={...Animations.parameters,docs:{...Animations.parameters?.docs,source:{originalSource:"{\n args: {\n height: 400,\n width: 600\n },\n parameters: {\n controls: {\n include: ['duration', 'easing', 'steps']\n }\n },\n render: args => {\n const [position, setPosition] = useState(0);\n useEffect(() => {\n setTimeout(() => {\n if (position >= order.length - 1) {\n return setPosition(0);\n }\n return setPosition(position + 1);\n }, 2000);\n });\n return <AnimatedTree data={data[order[position]]} {...args} />;\n }\n}",...Animations.parameters?.docs?.source}}}}}]); ================================================ FILE: docs/iframe.html ================================================ <!doctype html><html lang="en"><head><meta charset="utf-8"><title>Webpack App

No Preview

Sorry, but you either have no stories or none are selected somehow.

If the problem persists, check the browser console, or the terminal you've run Storybook from.

The component failed to render properly, likely due to a configuration issue in Storybook. Here are some common causes and how you can address them:

  1. Missing Context/Providers: You can use decorators to supply specific contexts or providers, which are sometimes necessary for components to render correctly. For detailed instructions on using decorators, please visit the Decorators documentation.
  2. Misconfigured Webpack or Vite: Verify that Storybook picks up all necessary settings for loaders, plugins, and other relevant parameters. You can find step-by-step guides for configuring Webpack or Vite with Storybook.
  3. Missing Environment Variables: Your Storybook may require specific environment variables to function as intended. You can set up custom environment variables as outlined in the Environment Variables documentation.
================================================ FILE: docs/index.html ================================================ storybook - Storybook
================================================ FILE: docs/index.json ================================================ {"v":5,"entries":{"introduction--docs":{"id":"introduction--docs","title":"Introduction","name":"Docs","importPath":"./.storybook/stories/intro.mdx","storiesImports":[],"type":"docs","tags":["dev","test","autodocs","unattached-mdx"]},"tree--docs":{"id":"tree--docs","title":"Tree","name":"Docs","importPath":"./.storybook/stories/tree.stories.js","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"tree--simple":{"type":"story","id":"tree--simple","name":"Simple","title":"Tree","importPath":"./.storybook/stories/tree.stories.js","componentPath":"./src","tags":["dev","test","autodocs"]},"tree--events":{"type":"story","id":"tree--events","name":"Events","title":"Tree","importPath":"./.storybook/stories/tree.stories.js","componentPath":"./src","tags":["dev","test","autodocs"]},"tree--custom-children":{"type":"story","id":"tree--custom-children","name":"Custom Children","title":"Tree","importPath":"./.storybook/stories/tree.stories.js","componentPath":"./src","tags":["dev","test","autodocs"]},"tree--custom-paths":{"type":"story","id":"tree--custom-paths","name":"Custom Paths","title":"Tree","importPath":"./.storybook/stories/tree.stories.js","componentPath":"./src","tags":["dev","test","autodocs"]},"tree--right-to-left":{"type":"story","id":"tree--right-to-left","name":"Right To Left","title":"Tree","importPath":"./.storybook/stories/tree.stories.js","componentPath":"./src","tags":["dev","test","autodocs"]},"tree--transformations":{"type":"story","id":"tree--transformations","name":"Transformations","title":"Tree","importPath":"./.storybook/stories/tree.stories.js","componentPath":"./src","tags":["dev","test","autodocs"]},"tree--custom-styles":{"type":"story","id":"tree--custom-styles","name":"Custom Styles","title":"Tree","importPath":"./.storybook/stories/tree.stories.js","componentPath":"./src","tags":["dev","test","autodocs"]},"tree-labels--docs":{"id":"tree-labels--docs","title":"Tree/Labels","name":"Docs","importPath":"./.storybook/stories/labels.stories.js","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"tree-labels--duplicate":{"type":"story","id":"tree-labels--duplicate","name":"Duplicate","title":"Tree/Labels","importPath":"./.storybook/stories/labels.stories.js","componentPath":"./src","tags":["dev","test","autodocs"]},"tree-labels--jsx":{"type":"story","id":"tree-labels--jsx","name":"JSX","title":"Tree/Labels","importPath":"./.storybook/stories/labels.stories.js","componentPath":"./src","tags":["dev","test","autodocs"]},"tree-nodes--docs":{"id":"tree-nodes--docs","title":"Tree/Nodes","name":"Docs","importPath":"./.storybook/stories/nodes.stories.js","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"tree-nodes--rectangular-nodes":{"type":"story","id":"tree-nodes--rectangular-nodes","name":"Rectangular Nodes","title":"Tree/Nodes","importPath":"./.storybook/stories/nodes.stories.js","componentPath":"./src","tags":["dev","test","autodocs"]},"tree-nodes--polygon-nodes":{"type":"story","id":"tree-nodes--polygon-nodes","name":"Polygon Nodes","title":"Tree/Nodes","importPath":"./.storybook/stories/nodes.stories.js","componentPath":"./src","tags":["dev","test","autodocs"]},"tree-nodes--image-nodes":{"type":"story","id":"tree-nodes--image-nodes","name":"Image Nodes","title":"Tree/Nodes","importPath":"./.storybook/stories/nodes.stories.js","componentPath":"./src","tags":["dev","test","autodocs"]},"tree-nodes--custom-node-props":{"type":"story","id":"tree-nodes--custom-node-props","name":"Custom Node Props","title":"Tree/Nodes","importPath":"./.storybook/stories/nodes.stories.js","componentPath":"./src","tags":["dev","test","autodocs"]},"animatedtree-animations--docs":{"id":"animatedtree-animations--docs","title":"AnimatedTree/Animations","name":"Docs","importPath":"./.storybook/stories/animatedTree.stories.js","type":"docs","tags":["dev","test","autodocs"],"storiesImports":[]},"animatedtree-animations--animations":{"type":"story","id":"animatedtree-animations--animations","name":"Animations","title":"AnimatedTree/Animations","importPath":"./.storybook/stories/animatedTree.stories.js","componentPath":"./src","tags":["dev","test","autodocs"]}}} ================================================ FILE: docs/intro-mdx.158e5140.iframe.bundle.js ================================================ "use strict";(self.webpackChunkreact_tree_graph=self.webpackChunkreact_tree_graph||[]).push([[709],{"./.storybook/stories/intro.mdx":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>MDXContent});__webpack_require__("./node_modules/react/index.js");var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/react/jsx-runtime.js"),C_Git_react_tree_graph_node_modules_storybook_addon_docs_dist_shims_mdx_react_shim_mjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@mdx-js/react/lib/index.js"),_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.mjs");function _createMdxContent(props){const _components={a:"a",code:"code",h1:"h1",h2:"h2",img:"img",p:"p",pre:"pre",...(0,C_Git_react_tree_graph_node_modules_storybook_addon_docs_dist_shims_mdx_react_shim_mjs__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.Fragment,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_storybook_addon_docs_blocks__WEBPACK_IMPORTED_MODULE_3__.W8,{title:"Introduction"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.h1,{id:"react-tree-graph-",children:["react-tree-graph ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"https://github.com/jpb12/react-tree-graph",rel:"nofollow",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.img,{src:"https://img.shields.io/github/stars/jpb12/react-tree-graph?style=social",alt:"Github"})})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:[(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"https://github.com/jpb12/react-tree-graph/actions/workflows/build.yml?query=branch%3Amaster",rel:"nofollow",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.img,{src:"https://img.shields.io/github/actions/workflow/status/jpb12/react-tree-graph/build.yml",alt:"Build Status"})})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"https://coveralls.io/github/jpb12/react-tree-graph?branch=master",rel:"nofollow",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.img,{src:"https://coveralls.io/repos/github/jpb12/react-tree-graph/badge.svg?branch=master",alt:"Coverage Status"})})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"https://www.npmjs.com/package/react-tree-graph",rel:"nofollow",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.img,{src:"https://img.shields.io/npm/v/react-tree-graph.svg",alt:"npm version"})})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"https://www.npmjs.com/package/react-tree-graph",rel:"nofollow",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.img,{src:"https://img.shields.io/npm/dt/react-tree-graph.svg",alt:"npm"})})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"https://bundlephobia.com/result?p=react-tree-graph",rel:"nofollow",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.img,{src:"https://img.shields.io/bundlephobia/minzip/react-tree-graph",alt:"bundle size"})})," ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"https://github.com/jpb12/react-tree-graph/blob/master/LICENSE",rel:"nofollow",children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.img,{src:"https://img.shields.io/npm/l/react-tree-graph",alt:"license"})})]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"A simple react component which renders data as a tree using svg."}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["The source code for these examples can be found on ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"https://github.com/jpb12/react-tree-graph/tree/master/.storybook/stories",rel:"nofollow",children:"github"}),"."]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h2,{id:"installation",children:"Installation"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-sh",children:"npm install react-tree-graph --save\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.h2,{id:"usage",children:"Usage"}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-javascript",children:"import { Tree } from 'react-tree-graph';\r\n\r\nconst data = {\r\n\tname: 'Parent',\r\n\tchildren: [{\r\n\t\tname: 'Child One'\r\n\t}, {\r\n\t\tname: 'Child Two'\r\n\t}]\r\n};\r\n\r\n);\r\n\r\nimport { AnimatedTree } from 'react-tree-graph';\r\n\r\n);\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(_components.p,{children:["If you are using webpack, and have ",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.a,{href:"https://www.npmjs.com/package/css-loader",rel:"nofollow",children:"css-loader"}),", you can include some default styles with:"]}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.pre,{children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.code,{className:"language-javascript",children:"import 'react-tree-graph/dist/style.css'\n"})}),"\n",(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components.p,{children:"Alternatively, both the JavaScript and CSS can be included directly from the dist folder with script tags."})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={...(0,C_Git_react_tree_graph_node_modules_storybook_addon_docs_dist_shims_mdx_react_shim_mjs__WEBPACK_IMPORTED_MODULE_2__.R)(),...props.components};return MDXLayout?(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(MDXLayout,{...props,children:(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_createMdxContent,{...props})}):_createMdxContent(props)}},"./node_modules/@mdx-js/react/lib/index.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{R:()=>useMDXComponents,x:()=>MDXProvider});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js");const emptyComponents={},MDXContext=react__WEBPACK_IMPORTED_MODULE_0__.createContext(emptyComponents);function useMDXComponents(components){const contextComponents=react__WEBPACK_IMPORTED_MODULE_0__.useContext(MDXContext);return react__WEBPACK_IMPORTED_MODULE_0__.useMemo((function(){return"function"==typeof components?components(contextComponents):{...contextComponents,...components}}),[contextComponents,components])}function MDXProvider(properties){let allComponents;return allComponents=properties.disableParentContext?"function"==typeof properties.components?properties.components(emptyComponents):properties.components||emptyComponents:useMDXComponents(properties.components),react__WEBPACK_IMPORTED_MODULE_0__.createElement(MDXContext.Provider,{value:allComponents},properties.children)}}}]); ================================================ FILE: docs/labels-stories.c283c343.iframe.bundle.js ================================================ "use strict";(self.webpackChunkreact_tree_graph=self.webpackChunkreact_tree_graph||[]).push([[230],{"./.storybook/stories/labels.stories.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Duplicate:()=>Duplicate,JSX:()=>JSX,__namedExportsOrder:()=>__namedExportsOrder,default:()=>__WEBPACK_DEFAULT_EXPORT__});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_src__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/components/tree.js"),_argTypes__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./.storybook/stories/argTypes.js");const __WEBPACK_DEFAULT_EXPORT__={title:"Tree/Labels",component:_src__WEBPACK_IMPORTED_MODULE_1__.A,argTypes:_argTypes__WEBPACK_IMPORTED_MODULE_2__.c,parameters:{docs:{description:{component:"Setting a `labelProp` allows multiple nodes to have the same label. You can also achieve the same result by setting a `keyProp` instead."}}}},Duplicate={args:{height:400,width:600,data:{name:"Parent",label:"Parent",children:[{label:"Child",name:"Child One"},{label:"Child",name:"Child Two"}]},labelProp:"label"},parameters:{controls:{include:["data","labelProp"]}}},JSX={args:{height:400,width:600,data:{name:"Parent",label:"String",children:[{label:react__WEBPACK_IMPORTED_MODULE_0__.createElement(react__WEBPACK_IMPORTED_MODULE_0__.Fragment,null,react__WEBPACK_IMPORTED_MODULE_0__.createElement("rect",{height:"18",width:"32",y:"-15"}),react__WEBPACK_IMPORTED_MODULE_0__.createElement("text",{dx:"2"},"JSX")),name:"Child One"},{label:()=>react__WEBPACK_IMPORTED_MODULE_0__.createElement("text",null,"Custom component"),name:"Child Two"}]},labelProp:"label"},parameters:{controls:{include:["data","labelProp"]},docs:{description:{story:"Setting a `labelProp` allows labels to be JSX. They must return valid SVG elements."}}}},__namedExportsOrder=["Duplicate","JSX"];Duplicate.parameters={...Duplicate.parameters,docs:{...Duplicate.parameters?.docs,source:{originalSource:"{\n args: {\n height: 400,\n width: 600,\n data: {\n name: 'Parent',\n label: 'Parent',\n children: [{\n label: 'Child',\n name: 'Child One'\n }, {\n label: 'Child',\n name: 'Child Two'\n }]\n },\n labelProp: 'label'\n },\n parameters: {\n controls: {\n include: ['data', 'labelProp']\n }\n }\n}",...Duplicate.parameters?.docs?.source}}},JSX.parameters={...JSX.parameters,docs:{...JSX.parameters?.docs,source:{originalSource:"{\n args: {\n height: 400,\n width: 600,\n data: {\n name: 'Parent',\n label: 'String',\n children: [{\n label: <>JSX,\n name: 'Child One'\n }, {\n label: () => Custom component,\n name: 'Child Two'\n }]\n },\n labelProp: 'label'\n },\n parameters: {\n controls: {\n include: ['data', 'labelProp']\n },\n docs: {\n description: {\n story: 'Setting a `labelProp` allows labels to be JSX. They must return valid SVG elements.'\n }\n }\n }\n}",...JSX.parameters?.docs?.source}}}},"./src/components/tree.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>Tree});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_d3__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/d3.js"),_container__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/components/container.js");function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;en.children,keyProp:"name",labelProp:"name",nodeShape:"circle",nodeProps:{},gProps:{},pathProps:{},svgProps:{},textProps:{},...props};return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_container__WEBPACK_IMPORTED_MODULE_2__.A,_extends({getChildren:propsWithDefaults.getChildren,direction:propsWithDefaults.direction,height:propsWithDefaults.height,keyProp:propsWithDefaults.keyProp,labelProp:propsWithDefaults.labelProp,nodeShape:propsWithDefaults.nodeShape,nodeProps:propsWithDefaults.nodeProps,pathFunc:propsWithDefaults.pathFunc,width:propsWithDefaults.width,gProps:{className:"node",...propsWithDefaults.gProps},pathProps:{className:"link",...propsWithDefaults.pathProps},svgProps:propsWithDefaults.svgProps,textProps:propsWithDefaults.textProps},(0,_d3__WEBPACK_IMPORTED_MODULE_1__.A)(propsWithDefaults)),propsWithDefaults.children)}Tree.__docgenInfo={description:"",methods:[],displayName:"Tree"}}}]); ================================================ FILE: docs/main.539c4757.iframe.bundle.js ================================================ (self.webpackChunkreact_tree_graph=self.webpackChunkreact_tree_graph||[]).push([[792],{"./.storybook/preview.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>preview});var blocks=__webpack_require__("./node_modules/@storybook/addon-docs/dist/blocks.mjs"),react=__webpack_require__("./node_modules/react/index.js"),injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),style=__webpack_require__("./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[6].use[1]!./styles/style.css"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(style.A,options);style.A&&style.A.locals&&style.A.locals;const preview={parameters:{controls:{expanded:!0},docs:{page:()=>react.createElement(react.Fragment,null,react.createElement(blocks.hE,null),react.createElement(blocks.Pd,null),react.createElement(blocks.VY,null),react.createElement(blocks.Tn,null),react.createElement(blocks.H2,null),react.createElement(blocks.om,{includePrimary:!1}))},layout:"centered",options:{storySort:{order:["Introduction","Tree","AnimatedTree"]}},viewMode:"docs"},tags:["autodocs"]}},"./.storybook/stories lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:[\\\\/]\\.storybook[\\\\/]stories(?:[\\\\/](?%21\\.)(?:(?:(?%21(?:^%7C[\\\\/])\\.).)*?)[\\\\/]%7C[\\\\/]%7C$)(?%21\\.)(?=.)[^\\\\/]*?\\.(stories\\.js%7Cmdx))$":(module,__unused_webpack_exports,__webpack_require__)=>{var map={"./animatedTree.stories":["./.storybook/stories/animatedTree.stories.js",434,372],"./animatedTree.stories.js":["./.storybook/stories/animatedTree.stories.js",434,372],"./intro.mdx":["./.storybook/stories/intro.mdx",709],"./labels.stories":["./.storybook/stories/labels.stories.js",434,230],"./labels.stories.js":["./.storybook/stories/labels.stories.js",434,230],"./nodes.stories":["./.storybook/stories/nodes.stories.js",434,342],"./nodes.stories.js":["./.storybook/stories/nodes.stories.js",434,342],"./tree.stories":["./.storybook/stories/tree.stories.js",434,627],"./tree.stories.js":["./.storybook/stories/tree.stories.js",434,627]};function webpackAsyncContext(req){if(!__webpack_require__.o(map,req))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}));var ids=map[req],id=ids[0];return Promise.all(ids.slice(1).map(__webpack_require__.e)).then((()=>__webpack_require__(id)))}webpackAsyncContext.keys=()=>Object.keys(map),webpackAsyncContext.id="./.storybook/stories lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:[\\\\/]\\.storybook[\\\\/]stories(?:[\\\\/](?%21\\.)(?:(?:(?%21(?:^%7C[\\\\/])\\.).)*?)[\\\\/]%7C[\\\\/]%7C$)(?%21\\.)(?=.)[^\\\\/]*?\\.(stories\\.js%7Cmdx))$",module.exports=webpackAsyncContext},"./node_modules/@storybook/addon-docs/dist sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/@storybook/addon-docs/dist sync recursive",module.exports=webpackEmptyContext},"./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[6].use[1]!./styles/style.css":(module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".node circle, .node rect {\n\tfill: white;\n\tstroke: black;\n}\n\npath.link {\n\tfill: none;\n\tstroke: black;\n}","",{version:3,sources:["webpack://./styles/style.css"],names:[],mappings:"AAAA;CACC,WAAW;CACX,aAAa;AACd;;AAEA;CACC,UAAU;CACV,aAAa;AACd",sourcesContent:[".node circle, .node rect {\r\n\tfill: white;\r\n\tstroke: black;\r\n}\r\n\r\npath.link {\r\n\tfill: none;\r\n\tstroke: black;\r\n}"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./node_modules/storybook/dist/components sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/storybook/dist/components sync recursive",module.exports=webpackEmptyContext},"./node_modules/storybook/dist/theming sync recursive":module=>{function webpackEmptyContext(req){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}webpackEmptyContext.keys=()=>[],webpackEmptyContext.resolve=webpackEmptyContext,webpackEmptyContext.id="./node_modules/storybook/dist/theming sync recursive",module.exports=webpackEmptyContext},"./storybook-config-entry.js":(__unused_webpack_module,__unused_webpack___webpack_exports__,__webpack_require__)=>{"use strict";var external_STORYBOOK_MODULE_CHANNELS_=__webpack_require__("storybook/internal/channels"),csf=(__webpack_require__("storybook/internal/core-events"),__webpack_require__("./node_modules/storybook/dist/csf/index.js")),external_STORYBOOK_MODULE_GLOBAL_=__webpack_require__("@storybook/global"),external_STORYBOOK_MODULE_PREVIEW_API_=__webpack_require__("storybook/preview-api");const importers=[async path=>{if(!/^\.[\\/](?:\.storybook[\\/]stories(?:[\\/](?!\.)(?:(?:(?!(?:^|[\\/])\.).)*?)[\\/]|[\\/]|$)(?!\.)(?=.)[^\\/]*?\.(stories\.js|mdx))$/.exec(path))return;const pathRemainder=path.substring(21);return __webpack_require__("./.storybook/stories lazy recursive ^\\.\\/.*$ include: (?%21.*node_modules)(?:[\\\\/]\\.storybook[\\\\/]stories(?:[\\\\/](?%21\\.)(?:(?:(?%21(?:^%7C[\\\\/])\\.).)*?)[\\\\/]%7C[\\\\/]%7C$)(?%21\\.)(?=.)[^\\\\/]*?\\.(stories\\.js%7Cmdx))$")("./"+pathRemainder)}];const channel=(0,external_STORYBOOK_MODULE_CHANNELS_.createBrowserChannel)({page:"preview"});external_STORYBOOK_MODULE_PREVIEW_API_.addons.setChannel(channel),"DEVELOPMENT"===external_STORYBOOK_MODULE_GLOBAL_.global.CONFIG_TYPE&&(window.__STORYBOOK_SERVER_CHANNEL__=channel);const preview=new external_STORYBOOK_MODULE_PREVIEW_API_.PreviewWeb((async function importFn(path){for(let i=0;iimporters[i](path),x());if(moduleExports)return moduleExports}var x}),(()=>{const previewAnnotations=[__webpack_require__("./node_modules/@storybook/react/dist/entry-preview.mjs"),__webpack_require__("./node_modules/@storybook/react/dist/entry-preview-argtypes.mjs"),__webpack_require__("./node_modules/@storybook/react/dist/entry-preview-docs.mjs"),__webpack_require__("./node_modules/@storybook/addon-docs/dist/preview.mjs"),__webpack_require__("./.storybook/preview.js")],userPreview=previewAnnotations[previewAnnotations.length-1]?.default;return(0,csf.bU)(userPreview)?userPreview.composed:(0,external_STORYBOOK_MODULE_PREVIEW_API_.composeConfigs)(previewAnnotations)}));window.__STORYBOOK_PREVIEW__=preview,window.__STORYBOOK_STORY_STORE__=preview.storyStore,window.__STORYBOOK_ADDONS_CHANNEL__=channel},"@storybook/global":module=>{"use strict";module.exports=__STORYBOOK_MODULE_GLOBAL__},"storybook/internal/channels":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CHANNELS__},"storybook/internal/client-logger":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CLIENT_LOGGER__},"storybook/internal/core-events":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS__},"storybook/internal/preview-errors":module=>{"use strict";module.exports=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__},"storybook/preview-api":module=>{"use strict";module.exports=__STORYBOOK_MODULE_PREVIEW_API__},"storybook/test":module=>{"use strict";module.exports=__STORYBOOK_MODULE_TEST__}},__webpack_require__=>{__webpack_require__.O(0,[688],(()=>{return moduleId="./storybook-config-entry.js",__webpack_require__(__webpack_require__.s=moduleId);var moduleId}));__webpack_require__.O()}]); ================================================ FILE: docs/mocker-runtime-injected.js ================================================ /*! For license information please see mocker-runtime-injected.js.LICENSE.txt */ var __defProp=Object.defineProperty,__defNormalProp=(obj,key,value)=>key in obj?__defProp(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value,__publicField=(obj,key,value)=>__defNormalProp(obj,"symbol"!=typeof key?key+"":key,value),MockerRegistry=class{constructor(){__publicField(this,"registryByUrl",new Map),__publicField(this,"registryById",new Map)}clear(){this.registryByUrl.clear(),this.registryById.clear()}keys(){return this.registryByUrl.keys()}add(mock){this.registryByUrl.set(mock.url,mock),this.registryById.set(mock.id,mock)}register(typeOrEvent,raw,id,url,factoryOrRedirect){const type="object"==typeof typeOrEvent?typeOrEvent.type:typeOrEvent;if("object"==typeof typeOrEvent){const event=typeOrEvent;if(event instanceof AutomockedModule||event instanceof AutospiedModule||event instanceof ManualMockedModule||event instanceof RedirectedModule)throw new TypeError(`[vitest] Cannot register a mock that is already defined. Expected a JSON representation from \`MockedModule.toJSON\`, instead got "${event.type}". Use "registry.add()" to update a mock instead.`);if("automock"===event.type){const module=AutomockedModule.fromJSON(event);return this.add(module),module}if("autospy"===event.type){const module=AutospiedModule.fromJSON(event);return this.add(module),module}if("redirect"===event.type){const module=RedirectedModule.fromJSON(event);return this.add(module),module}throw"manual"===event.type?new Error("Cannot set serialized manual mock. Define a factory function manually with `ManualMockedModule.fromJSON()`."):new Error(`Unknown mock type: ${event.type}`)}if("string"!=typeof raw)throw new TypeError("[vitest] Mocks require a raw string.");if("string"!=typeof url)throw new TypeError("[vitest] Mocks require a url string.");if("string"!=typeof id)throw new TypeError("[vitest] Mocks require an id string.");if("manual"===type){if("function"!=typeof factoryOrRedirect)throw new TypeError("[vitest] Manual mocks require a factory function.");const mock=new ManualMockedModule(raw,id,url,factoryOrRedirect);return this.add(mock),mock}if("automock"===type||"autospy"===type){const mock="automock"===type?new AutomockedModule(raw,id,url):new AutospiedModule(raw,id,url);return this.add(mock),mock}if("redirect"===type){if("string"!=typeof factoryOrRedirect)throw new TypeError("[vitest] Redirect mocks require a redirect string.");const mock=new RedirectedModule(raw,id,url,factoryOrRedirect);return this.add(mock),mock}throw new Error(`[vitest] Unknown mock type: ${type}`)}delete(id){this.registryByUrl.delete(id)}get(id){return this.registryByUrl.get(id)}getById(id){return this.registryById.get(id)}has(id){return this.registryByUrl.has(id)}},AutomockedModule=class{constructor(raw,id,url){__publicField(this,"type","automock"),this.raw=raw,this.id=id,this.url=url}static fromJSON(data){return new AutospiedModule(data.raw,data.id,data.url)}toJSON(){return{type:this.type,url:this.url,raw:this.raw,id:this.id}}},AutospiedModule=class _AutospiedModule{constructor(raw,id,url){__publicField(this,"type","autospy"),this.raw=raw,this.id=id,this.url=url}static fromJSON(data){return new _AutospiedModule(data.raw,data.id,data.url)}toJSON(){return{type:this.type,url:this.url,id:this.id,raw:this.raw}}},RedirectedModule=class _RedirectedModule{constructor(raw,id,url,redirect){__publicField(this,"type","redirect"),this.raw=raw,this.id=id,this.url=url,this.redirect=redirect}static fromJSON(data){return new _RedirectedModule(data.raw,data.id,data.url,data.redirect)}toJSON(){return{type:this.type,url:this.url,raw:this.raw,id:this.id,redirect:this.redirect}}},ManualMockedModule=class _ManualMockedModule{constructor(raw,id,url,factory){__publicField(this,"cache"),__publicField(this,"type","manual"),this.raw=raw,this.id=id,this.url=url,this.factory=factory}async resolve(){if(this.cache)return this.cache;let exports;try{exports=await this.factory()}catch(err){const vitestError=new Error('[vitest] There was an error when mocking a module. If you are using "vi.mock" factory, make sure there are no top level variables inside, since this call is hoisted to top of the file. Read more: https://vitest.dev/api/vi.html#vi-mock');throw vitestError.cause=err,vitestError}if(null===exports||"object"!=typeof exports||Array.isArray(exports))throw new TypeError(`[vitest] vi.mock("${this.raw}", factory?: () => unknown) is not returning an object. Did you mean to return an object with a "default" key?`);return this.cache=exports}static fromJSON(data,factory){return new _ManualMockedModule(data.raw,data.id,data.url,factory)}toJSON(){return{type:this.type,url:this.url,id:this.id,raw:this.raw}}};function mockObject(options,object,mockExports={}){const finalizers=new Array,refs=new RefTracker,define=(container,key,value)=>{try{return container[key]=value,!0}catch{return!1}},mockPropertiesOf=(container,newContainer)=>{const containerType=getType(container),isModule="Module"===containerType||!!container.__esModule;for(const{key:property,descriptor}of getAllMockableProperties(container,isModule,options.globalConstructors)){if(!isModule&&descriptor.get){try{Object.defineProperty(newContainer,property,descriptor)}catch{}continue}if(isSpecialProp(property,containerType))continue;const value=container[property],refId=refs.getId(value);if(void 0!==refId){finalizers.push((()=>define(newContainer,property,refs.getMockedValue(refId))));continue}const type=getType(value);if(Array.isArray(value)){define(newContainer,property,[]);continue}const isFunction=type.includes("Function")&&"function"==typeof value;if(isFunction&&!value._isMockFunction||"Object"===type||"Module"===type){if(define(newContainer,property,isFunction?value:{})){if(isFunction){let mockFunction=function(){if(this instanceof newContainer[property])for(const{key,descriptor:descriptor2}of getAllMockableProperties(this,!1,options.globalConstructors)){if(descriptor2.get)continue;const value2=this[key];if(getType(value2).includes("Function")&&"function"==typeof value2){const original=this[key],mock2=spyOn(this,key).mockImplementation(original),origMockReset=mock2.mockReset;mock2.mockRestore=mock2.mockReset=()=>(origMockReset.call(mock2),mock2.mockImplementation(original),mock2)}}};if(!options.spyOn)throw new Error("[@vitest/mocker] `spyOn` is not defined. This is a Vitest error. Please open a new issue with reproduction.");const spyOn=options.spyOn,mock=spyOn(newContainer,property);if("automock"===options.type){mock.mockImplementation(mockFunction);const origMockReset=mock.mockReset;mock.mockRestore=mock.mockReset=()=>(origMockReset.call(mock),mock.mockImplementation(mockFunction),mock)}Object.defineProperty(newContainer[property],"length",{value:0})}refs.track(value,newContainer[property]),mockPropertiesOf(value,newContainer[property])}}else define(newContainer,property,value)}},mockedObject=mockExports;mockPropertiesOf(object,mockedObject);for(const finalizer of finalizers)finalizer();return mockedObject}var RefTracker=class{constructor(){__publicField(this,"idMap",new Map),__publicField(this,"mockedValueMap",new Map)}getId(value){return this.idMap.get(value)}getMockedValue(id){return this.mockedValueMap.get(id)}track(originalValue,mockedValue){const newId=this.idMap.size;return this.idMap.set(originalValue,newId),this.mockedValueMap.set(newId,mockedValue),newId}};function getType(value){return Object.prototype.toString.apply(value).slice(8,-1)}function isSpecialProp(prop,parentType){return parentType.includes("Function")&&"string"==typeof prop&&["arguments","callee","caller","length","name"].includes(prop)}function getAllMockableProperties(obj,isModule,constructors){const{Map:Map2,Object:Object2,Function:Function2,RegExp:RegExp2,Array:Array2}=constructors,allProps=new Map2;let curr=obj;do{if(curr===Object2.prototype||curr===Function2.prototype||curr===RegExp2.prototype)break;collectOwnProperties(curr,(key=>{const descriptor=Object2.getOwnPropertyDescriptor(curr,key);descriptor&&allProps.set(key,{key,descriptor})}))}while(curr=Object2.getPrototypeOf(curr));if(isModule&&!allProps.has("default")&&"default"in obj){const descriptor=Object2.getOwnPropertyDescriptor(obj,"default");descriptor&&allProps.set("default",{key:"default",descriptor})}return Array2.from(allProps.values())}function collectOwnProperties(obj,collector){const collect="function"==typeof collector?collector:key=>collector.add(key);Object.getOwnPropertyNames(obj).forEach(collect),Object.getOwnPropertySymbols(obj).forEach(collect)}var _DRIVE_LETTER_START_RE=/^[A-Za-z]:\//;function normalizeWindowsPath(input=""){return input?input.replace(/\\/g,"/").replace(_DRIVE_LETTER_START_RE,(r=>r.toUpperCase())):input}var _UNC_REGEX=/^[/\\]{2}/,_IS_ABSOLUTE_RE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,_DRIVE_LETTER_RE=/^[A-Za-z]:$/,_EXTNAME_RE=/.(\.[^./]+|\.)$/,normalize=function(path){if(0===path.length)return".";const isUNCPath=(path=normalizeWindowsPath(path)).match(_UNC_REGEX),isPathAbsolute=isAbsolute(path),trailingSeparator="/"===path[path.length-1];return 0===(path=normalizeString(path,!isPathAbsolute)).length?isPathAbsolute?"/":trailingSeparator?"./":".":(trailingSeparator&&(path+="/"),_DRIVE_LETTER_RE.test(path)&&(path+="/"),isUNCPath?isPathAbsolute?`//${path}`:`//./${path}`:isPathAbsolute&&!isAbsolute(path)?`/${path}`:path)},join=function(...segments){let path="";for(const seg of segments)if(seg)if(path.length>0){const pathTrailing="/"===path[path.length-1],segLeading="/"===seg[0];path+=pathTrailing&&segLeading?seg.slice(1):pathTrailing||segLeading?seg:`/${seg}`}else path+=seg;return normalize(path)};function normalizeString(path,allowAboveRoot){let res="",lastSegmentLength=0,lastSlash=-1,dots=0,char=null;for(let index2=0;index2<=path.length;++index2){if(index22){const lastSlashIndex=res.lastIndexOf("/");-1===lastSlashIndex?(res="",lastSegmentLength=0):(res=res.slice(0,lastSlashIndex),lastSegmentLength=res.length-1-res.lastIndexOf("/")),lastSlash=index2,dots=0;continue}if(res.length>0){res="",lastSegmentLength=0,lastSlash=index2,dots=0;continue}}allowAboveRoot&&(res+=res.length>0?"/..":"..",lastSegmentLength=2)}else res.length>0?res+=`/${path.slice(lastSlash+1,index2)}`:res=path.slice(lastSlash+1,index2),lastSegmentLength=index2-lastSlash-1;lastSlash=index2,dots=0}else"."===char&&-1!==dots?++dots:dots=-1}return res}var isAbsolute=function(p2){return _IS_ABSOLUTE_RE.test(p2)},extname=function(p2){if(".."===p2)return"";const match=_EXTNAME_RE.exec(normalizeWindowsPath(p2));return match&&match[1]||""},f={reset:[0,0],bold:[1,22,""],dim:[2,22,""],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},h=Object.entries(f);function a(n){return String(n)}function C(n=!1){let e="undefined"!=typeof process?process:void 0,i=(null==e?void 0:e.env)||{},g=(null==e?void 0:e.argv)||[];return!("NO_COLOR"in i||g.includes("--no-color"))&&("FORCE_COLOR"in i||g.includes("--color")||"win32"===(null==e?void 0:e.platform)||n&&"dumb"!==i.TERM||"CI"in i)||"undefined"!=typeof window&&!!window.chrome}function p(n=!1){let e=C(n),g=(r,t,c=r)=>{let o=l=>{let s=String(l),b=s.indexOf(t,r.length);return~b?r+((r,t,c,o)=>{let l="",s=0;do{l+=r.substring(s,o)+c,s=o+t.length,o=r.indexOf(t,s)}while(~o);return l+r.substring(s)})(s,t,c,b)+t:r+s+t};return o.open=r,o.close=t,o},u={isColorSupported:e},d=r=>`[${r}m`;for(let[r,t]of h)u[r]=e?g(d(t[0]),d(t[1]),t[2]):a;return u}function _mergeNamespaces(n,m){return m.forEach((function(e){e&&"string"!=typeof e&&!Array.isArray(e)&&Object.keys(e).forEach((function(k){if("default"!==k&&!(k in n)){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:!0,get:function(){return e[k]}})}}))})),Object.freeze(n)}function getDefaultExportFromCjs(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}a.open="",a.close="",p();var hasRequiredReactIs_development$1,hasRequiredReactIs$1,reactIs$1={exports:{}},reactIs_development$1={};function requireReactIs_development$1(){return hasRequiredReactIs_development$1||(hasRequiredReactIs_development$1=1,function(){function typeOf(object){if("object"==typeof object&&null!==object){var $$typeof=object.$$typeof;switch($$typeof){case REACT_ELEMENT_TYPE:switch(object=object.type){case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:case REACT_SUSPENSE_LIST_TYPE:case REACT_VIEW_TRANSITION_TYPE:return object;default:switch(object=object&&object.$$typeof){case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:case REACT_CONSUMER_TYPE:return object;default:return $$typeof}}case REACT_PORTAL_TYPE:return $$typeof}}}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_SUSPENSE_LIST_TYPE=Symbol.for("react.suspense_list"),REACT_MEMO_TYPE=Symbol.for("react.memo"),REACT_LAZY_TYPE=Symbol.for("react.lazy"),REACT_VIEW_TRANSITION_TYPE=Symbol.for("react.view_transition"),REACT_CLIENT_REFERENCE=Symbol.for("react.client.reference");reactIs_development$1.ContextConsumer=REACT_CONSUMER_TYPE,reactIs_development$1.ContextProvider=REACT_CONTEXT_TYPE,reactIs_development$1.Element=REACT_ELEMENT_TYPE,reactIs_development$1.ForwardRef=REACT_FORWARD_REF_TYPE,reactIs_development$1.Fragment=REACT_FRAGMENT_TYPE,reactIs_development$1.Lazy=REACT_LAZY_TYPE,reactIs_development$1.Memo=REACT_MEMO_TYPE,reactIs_development$1.Portal=REACT_PORTAL_TYPE,reactIs_development$1.Profiler=REACT_PROFILER_TYPE,reactIs_development$1.StrictMode=REACT_STRICT_MODE_TYPE,reactIs_development$1.Suspense=REACT_SUSPENSE_TYPE,reactIs_development$1.SuspenseList=REACT_SUSPENSE_LIST_TYPE,reactIs_development$1.isContextConsumer=function(object){return typeOf(object)===REACT_CONSUMER_TYPE},reactIs_development$1.isContextProvider=function(object){return typeOf(object)===REACT_CONTEXT_TYPE},reactIs_development$1.isElement=function(object){return"object"==typeof object&&null!==object&&object.$$typeof===REACT_ELEMENT_TYPE},reactIs_development$1.isForwardRef=function(object){return typeOf(object)===REACT_FORWARD_REF_TYPE},reactIs_development$1.isFragment=function(object){return typeOf(object)===REACT_FRAGMENT_TYPE},reactIs_development$1.isLazy=function(object){return typeOf(object)===REACT_LAZY_TYPE},reactIs_development$1.isMemo=function(object){return typeOf(object)===REACT_MEMO_TYPE},reactIs_development$1.isPortal=function(object){return typeOf(object)===REACT_PORTAL_TYPE},reactIs_development$1.isProfiler=function(object){return typeOf(object)===REACT_PROFILER_TYPE},reactIs_development$1.isStrictMode=function(object){return typeOf(object)===REACT_STRICT_MODE_TYPE},reactIs_development$1.isSuspense=function(object){return typeOf(object)===REACT_SUSPENSE_TYPE},reactIs_development$1.isSuspenseList=function(object){return typeOf(object)===REACT_SUSPENSE_LIST_TYPE},reactIs_development$1.isValidElementType=function(type){return"string"==typeof type||"function"==typeof type||type===REACT_FRAGMENT_TYPE||type===REACT_PROFILER_TYPE||type===REACT_STRICT_MODE_TYPE||type===REACT_SUSPENSE_TYPE||type===REACT_SUSPENSE_LIST_TYPE||"object"==typeof type&&null!==type&&(type.$$typeof===REACT_LAZY_TYPE||type.$$typeof===REACT_MEMO_TYPE||type.$$typeof===REACT_CONTEXT_TYPE||type.$$typeof===REACT_CONSUMER_TYPE||type.$$typeof===REACT_FORWARD_REF_TYPE||type.$$typeof===REACT_CLIENT_REFERENCE||void 0!==type.getModuleId)},reactIs_development$1.typeOf=typeOf}()),reactIs_development$1}function requireReactIs$1(){return hasRequiredReactIs$1||(hasRequiredReactIs$1=1,reactIs$1.exports=requireReactIs_development$1()),reactIs$1.exports}var hasRequiredReactIs_development,hasRequiredReactIs,reactIsExports$1=requireReactIs$1(),index$1=getDefaultExportFromCjs(reactIsExports$1),ReactIs19=_mergeNamespaces({__proto__:null,default:index$1},[reactIsExports$1]),reactIs={exports:{}},reactIs_development={};function requireReactIs_development(){return hasRequiredReactIs_development||(hasRequiredReactIs_development=1,function(){var REACT_MODULE_REFERENCE,REACT_ELEMENT_TYPE=Symbol.for("react.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_PROVIDER_TYPE=Symbol.for("react.provider"),REACT_CONTEXT_TYPE=Symbol.for("react.context"),REACT_SERVER_CONTEXT_TYPE=Symbol.for("react.server_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_OFFSCREEN_TYPE=Symbol.for("react.offscreen");function typeOf(object){if("object"==typeof object&&null!==object){var $$typeof=object.$$typeof;switch($$typeof){case REACT_ELEMENT_TYPE:var type=object.type;switch(type){case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:case REACT_SUSPENSE_LIST_TYPE:return type;default:var $$typeofType=type&&type.$$typeof;switch($$typeofType){case REACT_SERVER_CONTEXT_TYPE:case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:case REACT_PROVIDER_TYPE:return $$typeofType;default:return $$typeof}}case REACT_PORTAL_TYPE:return $$typeof}}}REACT_MODULE_REFERENCE=Symbol.for("react.module.reference");var ContextConsumer=REACT_CONTEXT_TYPE,ContextProvider=REACT_PROVIDER_TYPE,Element=REACT_ELEMENT_TYPE,ForwardRef=REACT_FORWARD_REF_TYPE,Fragment=REACT_FRAGMENT_TYPE,Lazy=REACT_LAZY_TYPE,Memo=REACT_MEMO_TYPE,Portal=REACT_PORTAL_TYPE,Profiler=REACT_PROFILER_TYPE,StrictMode=REACT_STRICT_MODE_TYPE,Suspense=REACT_SUSPENSE_TYPE,SuspenseList=REACT_SUSPENSE_LIST_TYPE,hasWarnedAboutDeprecatedIsAsyncMode=!1,hasWarnedAboutDeprecatedIsConcurrentMode=!1;reactIs_development.ContextConsumer=ContextConsumer,reactIs_development.ContextProvider=ContextProvider,reactIs_development.Element=Element,reactIs_development.ForwardRef=ForwardRef,reactIs_development.Fragment=Fragment,reactIs_development.Lazy=Lazy,reactIs_development.Memo=Memo,reactIs_development.Portal=Portal,reactIs_development.Profiler=Profiler,reactIs_development.StrictMode=StrictMode,reactIs_development.Suspense=Suspense,reactIs_development.SuspenseList=SuspenseList,reactIs_development.isAsyncMode=function isAsyncMode(object){return hasWarnedAboutDeprecatedIsAsyncMode||(hasWarnedAboutDeprecatedIsAsyncMode=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},reactIs_development.isConcurrentMode=function isConcurrentMode(object){return hasWarnedAboutDeprecatedIsConcurrentMode||(hasWarnedAboutDeprecatedIsConcurrentMode=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},reactIs_development.isContextConsumer=function isContextConsumer(object){return typeOf(object)===REACT_CONTEXT_TYPE},reactIs_development.isContextProvider=function isContextProvider(object){return typeOf(object)===REACT_PROVIDER_TYPE},reactIs_development.isElement=function isElement(object){return"object"==typeof object&&null!==object&&object.$$typeof===REACT_ELEMENT_TYPE},reactIs_development.isForwardRef=function isForwardRef(object){return typeOf(object)===REACT_FORWARD_REF_TYPE},reactIs_development.isFragment=function isFragment(object){return typeOf(object)===REACT_FRAGMENT_TYPE},reactIs_development.isLazy=function isLazy(object){return typeOf(object)===REACT_LAZY_TYPE},reactIs_development.isMemo=function isMemo(object){return typeOf(object)===REACT_MEMO_TYPE},reactIs_development.isPortal=function isPortal(object){return typeOf(object)===REACT_PORTAL_TYPE},reactIs_development.isProfiler=function isProfiler(object){return typeOf(object)===REACT_PROFILER_TYPE},reactIs_development.isStrictMode=function isStrictMode(object){return typeOf(object)===REACT_STRICT_MODE_TYPE},reactIs_development.isSuspense=function isSuspense(object){return typeOf(object)===REACT_SUSPENSE_TYPE},reactIs_development.isSuspenseList=function isSuspenseList(object){return typeOf(object)===REACT_SUSPENSE_LIST_TYPE},reactIs_development.isValidElementType=function isValidElementType(type){return"string"==typeof type||"function"==typeof type||(type===REACT_FRAGMENT_TYPE||type===REACT_PROFILER_TYPE||type===REACT_STRICT_MODE_TYPE||type===REACT_SUSPENSE_TYPE||type===REACT_SUSPENSE_LIST_TYPE||type===REACT_OFFSCREEN_TYPE||"object"==typeof type&&null!==type&&(type.$$typeof===REACT_LAZY_TYPE||type.$$typeof===REACT_MEMO_TYPE||type.$$typeof===REACT_PROVIDER_TYPE||type.$$typeof===REACT_CONTEXT_TYPE||type.$$typeof===REACT_FORWARD_REF_TYPE||type.$$typeof===REACT_MODULE_REFERENCE||void 0!==type.getModuleId))},reactIs_development.typeOf=typeOf}()),reactIs_development}function requireReactIs(){return hasRequiredReactIs||(hasRequiredReactIs=1,reactIs.exports=requireReactIs_development()),reactIs.exports}var reactIsExports=requireReactIs(),index=getDefaultExportFromCjs(reactIsExports),ReactIs18=_mergeNamespaces({__proto__:null,default:index},[reactIsExports]),reactIsMethods=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"];Object.fromEntries(reactIsMethods.map((m=>[m,v=>ReactIs18[m](v)||ReactIs19[m](v)])));var jsTokens_1,hasRequiredJsTokens,getPromiseValue=()=>"Promise{…}";try{const{getPromiseDetails,kPending,kRejected}=process.binding("util");Array.isArray(getPromiseDetails(Promise.resolve()))&&(getPromiseValue=(value,options)=>{const[state,innerValue]=getPromiseDetails(value);return state===kPending?"Promise{}":`Promise${state===kRejected?"!":""}{${options.inspect(innerValue,options)}}`})}catch(notNode){}function createSimpleStackTrace(options){const{message="$$stack trace error",stackTraceLimit=1}=options||{},limit=Error.stackTraceLimit,prepareStackTrace=Error.prepareStackTrace;Error.stackTraceLimit=stackTraceLimit,Error.prepareStackTrace=e=>e.stack;const stackTrace=new Error(message).stack||"";return Error.prepareStackTrace=prepareStackTrace,Error.stackTraceLimit=limit,stackTrace}function requireJsTokens(){return hasRequiredJsTokens?jsTokens_1:(hasRequiredJsTokens=1,RegularExpressionLiteral=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/uy,Punctuator=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,Identifier=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/uy,StringLiteral=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,NumericLiteral=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,Template=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,WhiteSpace=/[\t\v\f\ufeff\p{Zs}]+/uy,LineTerminatorSequence=/\r?\n|[\r\u2028\u2029]/y,MultiLineComment=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,SingleLineComment=/\/\/.*/y,JSXPunctuator=/[<>.:={}]|\/(?![\/*])/y,JSXIdentifier=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/uy,JSXString=/(['"])(?:(?!\1)[^])*(\1)?/y,JSXText=/[^<>{}]+/y,TokensPrecedingExpression=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,TokensNotPrecedingObjectLiteral=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,KeywordsWithExpressionAfter=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,KeywordsWithNoLineTerminatorAfter=/^(?:return|throw|yield)$/,Newline=RegExp(LineTerminatorSequence.source),jsTokens_1=function*(input,{jsx=!1}={}){var braces,firstCodePoint,isExpression,lastIndex,lastSignificantToken,length,match,mode,nextLastIndex,nextLastSignificantToken,parenNesting,postfixIncDec,punctuator,stack;for(({length}=input),lastIndex=0,lastSignificantToken="",stack=[{tag:"JS"}],braces=[],parenNesting=0,postfixIncDec=!1;lastIndex":stack.pop(),"/"===lastSignificantToken||"JSXTagEnd"===mode.tag?(nextLastSignificantToken="?JSX",postfixIncDec=!0):stack.push({tag:"JSXChildren"});break;case"{":stack.push({tag:"InterpolationInJSX",nesting:braces.length}),nextLastSignificantToken="?InterpolationInJSX",postfixIncDec=!1;break;case"/":"<"===lastSignificantToken&&(stack.pop(),"JSXChildren"===stack[stack.length-1].tag&&stack.pop(),stack.push({tag:"JSXTagEnd"}))}lastSignificantToken=nextLastSignificantToken,yield{type:"JSXPunctuator",value:match[0]};continue}if(JSXIdentifier.lastIndex=lastIndex,match=JSXIdentifier.exec(input)){lastIndex=JSXIdentifier.lastIndex,lastSignificantToken=match[0],yield{type:"JSXIdentifier",value:match[0]};continue}if(JSXString.lastIndex=lastIndex,match=JSXString.exec(input)){lastIndex=JSXString.lastIndex,lastSignificantToken=match[0],yield{type:"JSXString",value:match[0],closed:void 0!==match[2]};continue}break;case"JSXChildren":if(JSXText.lastIndex=lastIndex,match=JSXText.exec(input)){lastIndex=JSXText.lastIndex,lastSignificantToken=match[0],yield{type:"JSXText",value:match[0]};continue}switch(input[lastIndex]){case"<":stack.push({tag:"JSXTag"}),lastIndex++,lastSignificantToken="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":stack.push({tag:"InterpolationInJSX",nesting:braces.length}),lastIndex++,lastSignificantToken="?InterpolationInJSX",postfixIncDec=!1,yield{type:"JSXPunctuator",value:"{"};continue}}WhiteSpace.lastIndex=lastIndex,(match=WhiteSpace.exec(input))?(lastIndex=WhiteSpace.lastIndex,yield{type:"WhiteSpace",value:match[0]}):(LineTerminatorSequence.lastIndex=lastIndex,(match=LineTerminatorSequence.exec(input))?(lastIndex=LineTerminatorSequence.lastIndex,postfixIncDec=!1,KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken)&&(lastSignificantToken="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:match[0]}):(MultiLineComment.lastIndex=lastIndex,(match=MultiLineComment.exec(input))?(lastIndex=MultiLineComment.lastIndex,Newline.test(match[0])&&(postfixIncDec=!1,KeywordsWithNoLineTerminatorAfter.test(lastSignificantToken)&&(lastSignificantToken="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:match[0],closed:void 0!==match[1]}):(SingleLineComment.lastIndex=lastIndex,(match=SingleLineComment.exec(input))?(lastIndex=SingleLineComment.lastIndex,postfixIncDec=!1,yield{type:"SingleLineComment",value:match[0]}):(lastIndex+=(firstCodePoint=String.fromCodePoint(input.codePointAt(lastIndex))).length,lastSignificantToken=firstCodePoint,postfixIncDec=!1,yield{type:mode.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:firstCodePoint}))))}});var Identifier,JSXIdentifier,JSXPunctuator,JSXString,JSXText,KeywordsWithExpressionAfter,KeywordsWithNoLineTerminatorAfter,LineTerminatorSequence,MultiLineComment,Newline,NumericLiteral,Punctuator,RegularExpressionLiteral,SingleLineComment,StringLiteral,Template,TokensNotPrecedingObjectLiteral,TokensPrecedingExpression,WhiteSpace}requireJsTokens();var reservedWords={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(reservedWords.keyword),new Set(reservedWords.strict);var UrlType,chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",intToChar=new Uint8Array(64),charToInt=new Uint8Array(128);for(let i=0;ir.toUpperCase())):input}var _IS_ABSOLUTE_RE2=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function cwd(){return"undefined"!=typeof process&&"function"==typeof process.cwd?process.cwd().replace(/\\/g,"/"):"/"}var resolve=function(...arguments_){let resolvedPath="",resolvedAbsolute=!1;for(let index2=(arguments_=arguments_.map((argument=>normalizeWindowsPath2(argument)))).length-1;index2>=-1&&!resolvedAbsolute;index2--){const path=index2>=0?arguments_[index2]:cwd();path&&0!==path.length&&(resolvedPath=`${path}/${resolvedPath}`,resolvedAbsolute=isAbsolute2(path))}return resolvedPath=normalizeString2(resolvedPath,!resolvedAbsolute),resolvedAbsolute&&!isAbsolute2(resolvedPath)?`/${resolvedPath}`:resolvedPath.length>0?resolvedPath:"."};function normalizeString2(path,allowAboveRoot){let res="",lastSegmentLength=0,lastSlash=-1,dots=0,char=null;for(let index2=0;index2<=path.length;++index2){if(index22){const lastSlashIndex=res.lastIndexOf("/");-1===lastSlashIndex?(res="",lastSegmentLength=0):(res=res.slice(0,lastSlashIndex),lastSegmentLength=res.length-1-res.lastIndexOf("/")),lastSlash=index2,dots=0;continue}if(res.length>0){res="",lastSegmentLength=0,lastSlash=index2,dots=0;continue}}allowAboveRoot&&(res+=res.length>0?"/..":"..",lastSegmentLength=2)}else res.length>0?res+=`/${path.slice(lastSlash+1,index2)}`:res=path.slice(lastSlash+1,index2),lastSegmentLength=index2-lastSlash-1;lastSlash=index2,dots=0}else"."===char&&-1!==dots?++dots:dots=-1}return res}var isAbsolute2=function(p2){return _IS_ABSOLUTE_RE2.test(p2)},CHROME_IE_STACK_REGEXP=/^\s*at .*(?:\S:\d+|\(native\))/m,SAFARI_NATIVE_CODE_REGEXP=/^(?:eval@)?(?:\[native code\])?$/;function extractLocation(urlLike){if(!urlLike.includes(":"))return[urlLike];const parts=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(urlLike.replace(/^\(|\)$/g,""));if(!parts)return[urlLike];let url=parts[1];if(url.startsWith("async ")&&(url=url.slice(6)),url.startsWith("http:")||url.startsWith("https:")){const urlObj=new URL(url);urlObj.searchParams.delete("import"),urlObj.searchParams.delete("browserv"),url=urlObj.pathname+urlObj.hash+urlObj.search}if(url.startsWith("/@fs/")){const isWindows=/^\/@fs\/[a-zA-Z]:\//.test(url);url=url.slice(isWindows?5:4)}return[url,parts[2]||void 0,parts[3]||void 0]}function parseSingleFFOrSafariStack(raw){let line=raw.trim();if(SAFARI_NATIVE_CODE_REGEXP.test(line))return null;if(line.includes(" > eval")&&(line=line.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!line.includes("@")&&!line.includes(":"))return null;const functionNameRegex=/((.*".+"[^@]*)?[^@]*)(@)/,matches=line.match(functionNameRegex),functionName=matches&&matches[1]?matches[1]:void 0,[url,lineNumber,columnNumber]=extractLocation(line.replace(functionNameRegex,""));return url&&lineNumber&&columnNumber?{file:url,method:functionName||"",line:Number.parseInt(lineNumber),column:Number.parseInt(columnNumber)}:null}function parseSingleStack(raw){const line=raw.trim();return CHROME_IE_STACK_REGEXP.test(line)?parseSingleV8Stack(line):parseSingleFFOrSafariStack(line)}function parseSingleV8Stack(raw){let line=raw.trim();if(!CHROME_IE_STACK_REGEXP.test(line))return null;line.includes("(eval ")&&(line=line.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let sanitizedLine=line.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const location2=sanitizedLine.match(/ (\(.+\)$)/);sanitizedLine=location2?sanitizedLine.replace(location2[0],""):sanitizedLine;const[url,lineNumber,columnNumber]=extractLocation(location2?location2[1]:sanitizedLine);let method=location2&&sanitizedLine||"",file=url&&["eval",""].includes(url)?void 0:url;return file&&lineNumber&&columnNumber?(method.startsWith("async ")&&(method=method.slice(6)),file.startsWith("file://")&&(file=file.slice(7)),file=file.startsWith("node:")||file.startsWith("internal:")?file:resolve(file),method&&(method=method.replace(/__vite_ssr_import_\d+__\./g,"")),{method,file,line:Number.parseInt(lineNumber),column:Number.parseInt(columnNumber)}):null}function createCompilerHints(options){const globalThisAccessor=(null==options?void 0:options.globalThisKey)||"__vitest_mocker__";function _mocker(){return void 0!==globalThis[globalThisAccessor]?globalThis[globalThisAccessor]:new Proxy({},{get(_,name){throw new Error(`Vitest mocker was not initialized in this environment. vi.${String(name)}() is forbidden.`)}})}return{hoisted(factory){if("function"!=typeof factory)throw new TypeError("vi.hoisted() expects a function, but received a "+typeof factory);return factory()},mock(path,factory){if("string"!=typeof path)throw new TypeError("vi.mock() expects a string path, but received a "+typeof path);const importer=getImporter("mock");_mocker().queueMock(path,importer,"function"==typeof factory?()=>factory((()=>_mocker().importActual(path,importer))):factory)},unmock(path){if("string"!=typeof path)throw new TypeError("vi.unmock() expects a string path, but received a "+typeof path);_mocker().queueUnmock(path,getImporter("unmock"))},doMock(path,factory){if("string"!=typeof path)throw new TypeError("vi.doMock() expects a string path, but received a "+typeof path);const importer=getImporter("doMock");_mocker().queueMock(path,importer,"function"==typeof factory?()=>factory((()=>_mocker().importActual(path,importer))):factory)},doUnmock(path){if("string"!=typeof path)throw new TypeError("vi.doUnmock() expects a string path, but received a "+typeof path);_mocker().queueUnmock(path,getImporter("doUnmock"))},importActual:async path=>_mocker().importActual(path,getImporter("importActual")),importMock:async path=>_mocker().importMock(path,getImporter("importMock"))}}function getImporter(name){const stackArray=createSimpleStackTrace({stackTraceLimit:5}).split("\n"),importerStackIndex=stackArray.findIndex((stack2=>stack2.includes(` at Object.${name}`)||stack2.includes(`${name}@`))),stack=parseSingleStack(stackArray[importerStackIndex+1]);return(null==stack?void 0:stack.file)||""}var hot=import.meta.hot||{on:warn,off:warn,send:warn};function warn(){console.warn("Vitest mocker cannot work if Vite didn't establish WS connection.")}var{now}=Date,ModuleMocker=class{constructor(interceptor,rpc2,spyOn,config){__publicField(this,"registry",new MockerRegistry),__publicField(this,"queue",new Set),__publicField(this,"mockedIds",new Set),this.interceptor=interceptor,this.rpc=rpc2,this.spyOn=spyOn,this.config=config}async prepare(){this.queue.size&&await Promise.all([...this.queue.values()])}async resolveFactoryModule(id){const mock=this.registry.get(id);if(!mock||"manual"!==mock.type)throw new Error(`Mock ${id} wasn't registered. This is probably a Vitest error. Please, open a new issue with reproduction.`);return await mock.resolve()}getFactoryModule(id){const mock=this.registry.get(id);if(!mock||"manual"!==mock.type)throw new Error(`Mock ${id} wasn't registered. This is probably a Vitest error. Please, open a new issue with reproduction.`);if(!mock.cache)throw new Error(`Mock ${id} wasn't resolved. This is probably a Vitest error. Please, open a new issue with reproduction.`);return mock.cache}async invalidate(){const ids=Array.from(this.mockedIds);ids.length&&(await this.rpc.invalidate(ids),await this.interceptor.invalidate(),this.registry.clear())}async importActual(id,importer){const resolved=await this.rpc.resolveId(id,importer);if(null==resolved)throw new Error(`[vitest] Cannot resolve "${id}" imported from "${importer}"`);const ext=extname(resolved.id),url=new URL(resolved.url,location.href),query=`_vitest_original&ext${ext}`,actualUrl=`${url.pathname}${url.search?`${url.search}&${query}`:`?${query}`}${url.hash}`;return this.wrapDynamicImport((()=>import(actualUrl))).then((mod=>{if(!resolved.optimized||void 0===mod.default)return mod;const m=mod.default;return(null==m?void 0:m.__esModule)?m:{..."object"==typeof m&&!Array.isArray(m)||"function"==typeof m?m:{},default:m}}))}async importMock(rawId,importer){await this.prepare();const{resolvedId,resolvedUrl,redirectUrl}=await this.rpc.resolveMock(rawId,importer,{mock:"auto"}),mockUrl=this.resolveMockPath(cleanVersion(resolvedUrl));let mock=this.registry.get(mockUrl);if(!mock)if(redirectUrl){const resolvedRedirect=new URL(this.resolveMockPath(cleanVersion(redirectUrl)),location.href).toString();mock=new RedirectedModule(rawId,resolvedId,mockUrl,resolvedRedirect)}else mock=new AutomockedModule(rawId,resolvedId,mockUrl);if("manual"===mock.type)return await mock.resolve();if("automock"===mock.type||"autospy"===mock.type){const url=new URL(`/@id/${resolvedId}`,location.href),query=url.search?`${url.search}&t=${now()}`:`?t=${now()}`,moduleObject=await import(`${url.pathname}${query}&mock=${mock.type}${url.hash}`);return this.mockObject(moduleObject,mock.type)}return import(mock.redirect)}mockObject(object,moduleType="automock"){return mockObject({globalConstructors:{Object,Function,Array,Map,RegExp},spyOn:this.spyOn,type:moduleType},object)}queueMock(rawId,importer,factoryOrOptions){const promise=this.rpc.resolveMock(rawId,importer,{mock:"function"==typeof factoryOrOptions?"factory":(null==factoryOrOptions?void 0:factoryOrOptions.spy)?"spy":"auto"}).then((async({redirectUrl,resolvedId,resolvedUrl,needsInterop,mockType})=>{const mockUrl=this.resolveMockPath(cleanVersion(resolvedUrl));this.mockedIds.add(resolvedId);const factory="function"==typeof factoryOrOptions?async()=>{const data=await factoryOrOptions();return needsInterop?{default:data}:data}:void 0,mockRedirect="string"==typeof redirectUrl?new URL(this.resolveMockPath(cleanVersion(redirectUrl)),location.href).toString():null;let module;module="manual"===mockType?this.registry.register("manual",rawId,resolvedId,mockUrl,factory):"autospy"===mockType?this.registry.register("autospy",rawId,resolvedId,mockUrl):"redirect"===mockType?this.registry.register("redirect",rawId,resolvedId,mockUrl,mockRedirect):this.registry.register("automock",rawId,resolvedId,mockUrl),await this.interceptor.register(module)})).finally((()=>{this.queue.delete(promise)}));this.queue.add(promise)}queueUnmock(id,importer){const promise=this.rpc.resolveId(id,importer).then((async resolved=>{if(!resolved)return;const mockUrl=this.resolveMockPath(cleanVersion(resolved.url));this.mockedIds.add(resolved.id),this.registry.delete(mockUrl),await this.interceptor.delete(mockUrl)})).finally((()=>{this.queue.delete(promise)}));this.queue.add(promise)}wrapDynamicImport(moduleFactory){if("function"==typeof moduleFactory){return new Promise(((resolve2,reject)=>{this.prepare().finally((()=>{moduleFactory().then(resolve2,reject)}))}))}return moduleFactory}resolveMockPath(path){const config=this.config,fsRoot=join("/@fs/",config.root);return path.startsWith(config.root)?path.slice(config.root.length):path.startsWith(fsRoot)?path.slice(fsRoot.length):path}},versionRegexp=/(\?|&)v=\w{8}/;function cleanVersion(url){return url.replace(versionRegexp,"")}var ModuleMockerInterceptor=class{constructor(){__publicField(this,"mocks",new MockerRegistry)}async register(module){this.mocks.add(module)}async delete(url){this.mocks.delete(url)}async invalidate(){this.mocks.clear()}},rpc=method=>{switch(method){case"resolveId":return Promise.resolve({id:"",url:"",optimized:!1});case"resolveMock":return Promise.resolve({mockType:"dummy",resolvedId:"",resolvedUrl:"",redirectUrl:"",needsInterop:!1});case"invalidate":return Promise.resolve()}},BuildModuleMocker=class extends ModuleMocker{queueMock(){}};function registerModuleMocker(interceptor){const mocker=new BuildModuleMocker(interceptor("__vitest_mocker__"),{resolveId:(id,importer)=>rpc("resolveId",{id,importer}),resolveMock:(id,importer,options)=>rpc("resolveMock",{id,importer,options}),invalidate:async ids=>rpc("invalidate",{ids})},((...args)=>globalThis.__STORYBOOK_MODULE_TEST__.spyOn(...args)),{root:""});return globalThis.__vitest_mocker__=mocker,createCompilerHints({globalThisKey:"__vitest_mocker__"})}globalThis.__STORYBOOK_MOCKER__=registerModuleMocker((()=>new ModuleMockerInterceptor));export{ModuleMockerInterceptor}; ================================================ FILE: docs/mocker-runtime-injected.js.LICENSE.txt ================================================ /*! Bundled license information: @vitest/mocker/dist/chunk-mocker.js: (** * @license React * react-is.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. *) @vitest/mocker/dist/chunk-mocker.js: (** * @license React * react-is.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. *) @vitest/mocker/dist/chunk-mocker.js: (** * @license React * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) @vitest/mocker/dist/chunk-mocker.js: (** * @license React * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *) */ ================================================ FILE: docs/nodes-stories.e7851c9e.iframe.bundle.js ================================================ "use strict";(self.webpackChunkreact_tree_graph=self.webpackChunkreact_tree_graph||[]).push([[342],{"./.storybook/stories/nodes.stories.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{CustomNodeProps:()=>CustomNodeProps,ImageNodes:()=>ImageNodes,PolygonNodes:()=>PolygonNodes,RectangularNodes:()=>RectangularNodes,__namedExportsOrder:()=>__namedExportsOrder,default:()=>nodes_stories});var tree=__webpack_require__("./src/components/tree.js"),argTypes=__webpack_require__("./.storybook/stories/argTypes.js"),injectStylesIntoStyleTag=__webpack_require__("./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),injectStylesIntoStyleTag_default=__webpack_require__.n(injectStylesIntoStyleTag),styleDomAPI=__webpack_require__("./node_modules/style-loader/dist/runtime/styleDomAPI.js"),styleDomAPI_default=__webpack_require__.n(styleDomAPI),insertBySelector=__webpack_require__("./node_modules/style-loader/dist/runtime/insertBySelector.js"),insertBySelector_default=__webpack_require__.n(insertBySelector),setAttributesWithoutAttributes=__webpack_require__("./node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),setAttributesWithoutAttributes_default=__webpack_require__.n(setAttributesWithoutAttributes),insertStyleElement=__webpack_require__("./node_modules/style-loader/dist/runtime/insertStyleElement.js"),insertStyleElement_default=__webpack_require__.n(insertStyleElement),styleTagTransform=__webpack_require__("./node_modules/style-loader/dist/runtime/styleTagTransform.js"),styleTagTransform_default=__webpack_require__.n(styleTagTransform),nodeProps=__webpack_require__("./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[6].use[1]!./.storybook/styles/nodeProps.css"),options={};options.styleTagTransform=styleTagTransform_default(),options.setAttributes=setAttributesWithoutAttributes_default(),options.insert=insertBySelector_default().bind(null,"head"),options.domAPI=styleDomAPI_default(),options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(nodeProps.A,options);nodeProps.A&&nodeProps.A.locals&&nodeProps.A.locals;var polygon=__webpack_require__("./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[6].use[1]!./.storybook/styles/polygon.css"),polygon_options={};polygon_options.styleTagTransform=styleTagTransform_default(),polygon_options.setAttributes=setAttributesWithoutAttributes_default(),polygon_options.insert=insertBySelector_default().bind(null,"head"),polygon_options.domAPI=styleDomAPI_default(),polygon_options.insertStyleElement=insertStyleElement_default();injectStylesIntoStyleTag_default()(polygon.A,polygon_options);polygon.A&&polygon.A.locals&&polygon.A.locals;const nodes_stories={title:"Tree/Nodes",subtitle:"Rectangular Nodes",component:tree.A,argTypes:argTypes.c},defaultArgs={height:400,width:600,data:{name:"Parent",children:[{name:"Child One"},{name:"Child Two"}]}},RectangularNodes={args:{...defaultArgs,nodeShape:"rect",nodeProps:{rx:2}},parameters:{componentSubtitle:"Rectangular Nodes",controls:{include:["data","nodeShape","nodeProps"]}}},PolygonNodes={args:{...defaultArgs,nodeShape:"polygon",nodeProps:{points:[10,0,12.351141009169893,6.76393202250021,19.510565162951536,6.9098300562505255,13.804226065180615,11.23606797749979,15.877852522924734,18.090169943749473,10,14,4.12214747707527,18.090169943749473,6.195773934819385,11.23606797749979,.4894348370484636,6.909830056250527,7.648858990830107,6.76393202250021].join(","),transform:"translate(-10,-10)"},svgProps:{className:"star"},textProps:{dx:10.5}},parameters:{controls:{include:["data","nodeShape","nodeProps","svgProps","textProps"]},docs:{description:{story:"For polygons, you will have to pass additional props to position the polygon and text. The polygon should be translated by half it's width and height, and the text should be offset by half the polygon's width plus some spacing for a gap."}}}},ImageNodes={args:{...defaultArgs,nodeShape:"image",nodeProps:{height:20,width:20,href:"disc.png"}},parameters:{controls:{include:["data","nodeShape","nodeProps"]}}},CustomNodeProps={args:{...defaultArgs,data:{name:"Parent",children:[{label:"First Child",labelProp:"label",name:"Child One",shape:"rect"},{name:"Child Two",gProps:{className:"red-node"}}]},gProps:{onClick:(event,node)=>alert(`Clicked ${node}!`)}},parameters:{controls:{include:["data","nodeProps","gProps","pathProps","textProps","labelProp","keyProp","nodeShape"]},docs:{description:{story:"You can override props for individual nodes by setting them inside the `data` prop. `nodeProps`, `gProps`, `pathProps` (taken from the target node) and `textProps` on each node will be combined with those passed into ``. `keyProp`, `labelProp` and `shape` (overrides `nodeShape`) will override those passed into ``"}}}},__namedExportsOrder=["RectangularNodes","PolygonNodes","ImageNodes","CustomNodeProps"];RectangularNodes.parameters={...RectangularNodes.parameters,docs:{...RectangularNodes.parameters?.docs,source:{originalSource:"{\n args: {\n ...defaultArgs,\n nodeShape: 'rect',\n nodeProps: {\n rx: 2\n }\n },\n parameters: {\n componentSubtitle: 'Rectangular Nodes',\n controls: {\n include: ['data', 'nodeShape', 'nodeProps']\n }\n }\n}",...RectangularNodes.parameters?.docs?.source}}},PolygonNodes.parameters={...PolygonNodes.parameters,docs:{...PolygonNodes.parameters?.docs,source:{originalSource:"{\n args: {\n ...defaultArgs,\n nodeShape: 'polygon',\n nodeProps: {\n points: [10, 0, 12.351141009169893, 6.76393202250021, 19.510565162951536, 6.9098300562505255, 13.804226065180615, 11.23606797749979, 15.877852522924734, 18.090169943749473, 10, 14, 4.12214747707527, 18.090169943749473, 6.195773934819385, 11.23606797749979, 0.4894348370484636, 6.909830056250527, 7.648858990830107, 6.76393202250021].join(','),\n transform: 'translate(-10,-10)'\n },\n svgProps: {\n className: 'star'\n },\n textProps: {\n dx: 10.5\n }\n },\n parameters: {\n controls: {\n include: ['data', 'nodeShape', 'nodeProps', 'svgProps', 'textProps']\n },\n docs: {\n description: {\n story: 'For polygons, you will have to pass additional props to position the polygon and text. The polygon should be translated by half it\\'s width and height, and the text should be offset by half the polygon\\'s width plus some spacing for a gap.'\n }\n }\n }\n}",...PolygonNodes.parameters?.docs?.source}}},ImageNodes.parameters={...ImageNodes.parameters,docs:{...ImageNodes.parameters?.docs,source:{originalSource:"{\n args: {\n ...defaultArgs,\n nodeShape: 'image',\n nodeProps: {\n height: 20,\n width: 20,\n href: 'disc.png'\n }\n },\n parameters: {\n controls: {\n include: ['data', 'nodeShape', 'nodeProps']\n }\n }\n}",...ImageNodes.parameters?.docs?.source}}},CustomNodeProps.parameters={...CustomNodeProps.parameters,docs:{...CustomNodeProps.parameters?.docs,source:{originalSource:"{\n args: {\n ...defaultArgs,\n data: {\n name: 'Parent',\n children: [{\n label: 'First Child',\n labelProp: 'label',\n name: 'Child One',\n shape: 'rect'\n }, {\n name: 'Child Two',\n gProps: {\n className: 'red-node'\n }\n }]\n },\n gProps: {\n onClick: (event, node) => alert(`Clicked ${node}!`)\n }\n },\n parameters: {\n controls: {\n include: ['data', 'nodeProps', 'gProps', 'pathProps', 'textProps', 'labelProp', 'keyProp', 'nodeShape']\n },\n docs: {\n description: {\n story: 'You can override props for individual nodes by setting them inside the `data` prop. `nodeProps`, `gProps`, `pathProps` (taken from the target node) and `textProps` on each node will be combined with those passed into ``. `keyProp`, `labelProp` and `shape` (overrides `nodeShape`) will override those passed into ``'\n }\n }\n }\n}",...CustomNodeProps.parameters?.docs?.source}}}},"./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[6].use[1]!./.storybook/styles/nodeProps.css":(module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,".red-node {\n\tfill: red;\n\tstroke: red;\n}","",{version:3,sources:["webpack://./.storybook/styles/nodeProps.css"],names:[],mappings:"AAAA;CACC,SAAS;CACT,WAAW;AACZ",sourcesContent:[".red-node {\r\n\tfill: red;\r\n\tstroke: red;\r\n}"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[6].use[1]!./.storybook/styles/polygon.css":(module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var _node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/css-loader/dist/runtime/sourceMaps.js"),_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0__),_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/css-loader/dist/runtime/api.js"),___CSS_LOADER_EXPORT___=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__)()(_node_modules_css_loader_dist_runtime_sourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default());___CSS_LOADER_EXPORT___.push([module.id,"svg.star polygon {\n\tfill: white;\n\tstroke: black;\n}\n","",{version:3,sources:["webpack://./.storybook/styles/polygon.css"],names:[],mappings:"AAAA;CACC,WAAW;CACX,aAAa;AACd",sourcesContent:["svg.star polygon {\r\n\tfill: white;\r\n\tstroke: black;\r\n}\r\n"],sourceRoot:""}]);const __WEBPACK_DEFAULT_EXPORT__=___CSS_LOADER_EXPORT___},"./src/components/tree.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>Tree});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_d3__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./src/d3.js"),_container__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./src/components/container.js");function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;en.children,keyProp:"name",labelProp:"name",nodeShape:"circle",nodeProps:{},gProps:{},pathProps:{},svgProps:{},textProps:{},...props};return react__WEBPACK_IMPORTED_MODULE_0__.createElement(_container__WEBPACK_IMPORTED_MODULE_2__.A,_extends({getChildren:propsWithDefaults.getChildren,direction:propsWithDefaults.direction,height:propsWithDefaults.height,keyProp:propsWithDefaults.keyProp,labelProp:propsWithDefaults.labelProp,nodeShape:propsWithDefaults.nodeShape,nodeProps:propsWithDefaults.nodeProps,pathFunc:propsWithDefaults.pathFunc,width:propsWithDefaults.width,gProps:{className:"node",...propsWithDefaults.gProps},pathProps:{className:"link",...propsWithDefaults.pathProps},svgProps:propsWithDefaults.svgProps,textProps:propsWithDefaults.textProps},(0,_d3__WEBPACK_IMPORTED_MODULE_1__.A)(propsWithDefaults)),propsWithDefaults.children)}Tree.__docgenInfo={description:"",methods:[],displayName:"Tree"}}}]); ================================================ FILE: docs/project.json ================================================ {"generatedAt":1758541340987,"userSince":1758539165039,"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"testPackages":{"babel-jest":"30.1.2","jest":"30.1.3","jest-environment-jsdom":"30.1.2"},"hasRouterPackage":false,"packageManager":{"type":"npm","agent":"npm","nodeLinker":"node_modules"},"features":{"actions":false,"backgrounds":false,"measure":false,"outline":false,"viewport":false},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/react-webpack5"},"builder":"@storybook/builder-webpack5","renderer":"@storybook/react","portableStoriesFileCount":1,"applicationFileCount":0,"storybookVersion":"9.1.7","language":"javascript","storybookPackages":{"@storybook/react-webpack5":{"version":"9.1.7"},"eslint-plugin-storybook":{"version":"9.1.7"},"storybook":{"version":"9.1.7"}},"addons":{"@storybook/addon-docs":{"version":"9.1.7"},"@storybook/addon-webpack5-compiler-babel":{"version":"3.0.6"}}} ================================================ FILE: docs/runtime~main.d380d272.iframe.bundle.js ================================================ (()=>{"use strict";var deferred,leafPrototypes,getProto,inProgress,__webpack_modules__={},__webpack_module_cache__={};function __webpack_require__(moduleId){var cachedModule=__webpack_module_cache__[moduleId];if(void 0!==cachedModule)return cachedModule.exports;var module=__webpack_module_cache__[moduleId]={id:moduleId,exports:{}};return __webpack_modules__[moduleId](module,module.exports,__webpack_require__),module.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.amdO={},deferred=[],__webpack_require__.O=(result,chunkIds,fn,priority)=>{if(!chunkIds){var notFulfilled=1/0;for(i=0;i=priority)&&Object.keys(__webpack_require__.O).every((key=>__webpack_require__.O[key](chunkIds[j])))?chunkIds.splice(j--,1):(fulfilled=!1,priority0&&deferred[i-1][2]>priority;i--)deferred[i]=deferred[i-1];deferred[i]=[chunkIds,fn,priority]},__webpack_require__.n=module=>{var getter=module&&module.__esModule?()=>module.default:()=>module;return __webpack_require__.d(getter,{a:getter}),getter},getProto=Object.getPrototypeOf?obj=>Object.getPrototypeOf(obj):obj=>obj.__proto__,__webpack_require__.t=function(value,mode){if(1&mode&&(value=this(value)),8&mode)return value;if("object"==typeof value&&value){if(4&mode&&value.__esModule)return value;if(16&mode&&"function"==typeof value.then)return value}var ns=Object.create(null);__webpack_require__.r(ns);var def={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var current=2&mode&&value;("object"==typeof current||"function"==typeof current)&&!~leafPrototypes.indexOf(current);current=getProto(current))Object.getOwnPropertyNames(current).forEach((key=>def[key]=()=>value[key]));return def.default=()=>value,__webpack_require__.d(ns,def),ns},__webpack_require__.d=(exports,definition)=>{for(var key in definition)__webpack_require__.o(definition,key)&&!__webpack_require__.o(exports,key)&&Object.defineProperty(exports,key,{enumerable:!0,get:definition[key]})},__webpack_require__.f={},__webpack_require__.e=chunkId=>Promise.all(Object.keys(__webpack_require__.f).reduce(((promises,key)=>(__webpack_require__.f[key](chunkId,promises),promises)),[])),__webpack_require__.u=chunkId=>(({230:"labels-stories",342:"nodes-stories",372:"animatedTree-stories",627:"tree-stories",709:"intro-mdx"}[chunkId]||chunkId)+"."+{161:"a4718455",230:"c283c343",294:"bd1debad",342:"e7851c9e",357:"c654aade",372:"fcd27f04",434:"8aa01134",627:"4e3a1159",709:"158e5140",735:"697195c4"}[chunkId]+".iframe.bundle.js"),__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(obj,prop)=>Object.prototype.hasOwnProperty.call(obj,prop),inProgress={},__webpack_require__.l=(url,done,key,chunkId)=>{if(inProgress[url])inProgress[url].push(done);else{var script,needAttach;if(void 0!==key)for(var scripts=document.getElementsByTagName("script"),i=0;i{script.onerror=script.onload=null,clearTimeout(timeout);var doneFns=inProgress[url];if(delete inProgress[url],script.parentNode&&script.parentNode.removeChild(script),doneFns&&doneFns.forEach((fn=>fn(event))),prev)return prev(event)},timeout=setTimeout(onScriptComplete.bind(null,void 0,{type:"timeout",target:script}),12e4);script.onerror=onScriptComplete.bind(null,script.onerror),script.onload=onScriptComplete.bind(null,script.onload),needAttach&&document.head.appendChild(script)}},__webpack_require__.r=exports=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.p="",(()=>{var installedChunks={354:0};__webpack_require__.f.j=(chunkId,promises)=>{var installedChunkData=__webpack_require__.o(installedChunks,chunkId)?installedChunks[chunkId]:void 0;if(0!==installedChunkData)if(installedChunkData)promises.push(installedChunkData[2]);else if(354!=chunkId){var promise=new Promise(((resolve,reject)=>installedChunkData=installedChunks[chunkId]=[resolve,reject]));promises.push(installedChunkData[2]=promise);var url=__webpack_require__.p+__webpack_require__.u(chunkId),error=new Error;__webpack_require__.l(url,(event=>{if(__webpack_require__.o(installedChunks,chunkId)&&(0!==(installedChunkData=installedChunks[chunkId])&&(installedChunks[chunkId]=void 0),installedChunkData)){var errorType=event&&("load"===event.type?"missing":event.type),realSrc=event&&event.target&&event.target.src;error.message="Loading chunk "+chunkId+" failed.\n("+errorType+": "+realSrc+")",error.name="ChunkLoadError",error.type=errorType,error.request=realSrc,installedChunkData[1](error)}}),"chunk-"+chunkId,chunkId)}else installedChunks[chunkId]=0},__webpack_require__.O.j=chunkId=>0===installedChunks[chunkId];var webpackJsonpCallback=(parentChunkLoadingFunction,data)=>{var moduleId,chunkId,[chunkIds,moreModules,runtime]=data,i=0;if(chunkIds.some((id=>0!==installedChunks[id]))){for(moduleId in moreModules)__webpack_require__.o(moreModules,moduleId)&&(__webpack_require__.m[moduleId]=moreModules[moduleId]);if(runtime)var result=runtime(__webpack_require__)}for(parentChunkLoadingFunction&&parentChunkLoadingFunction(data);i{var l=__REACT__,{Children:lt,Component:dt,Fragment:ft,Profiler:ct,PureComponent:mt,StrictMode:ht,Suspense:bt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:gt,act:yt,cloneElement:vt,createContext:xt,createElement:St,createFactory:Tt,createRef:wt,forwardRef:Pt,isValidElement:_t,lazy:kt,memo:Ct,startTransition:Et,unstable_act:Rt,useCallback:It,useContext:Ot,useDebugValue:Ft,useDeferredValue:Ht,useEffect:G,useId:jt,useImperativeHandle:zt,useInsertionEffect:At,useLayoutEffect:Mt,useMemo:Bt,useReducer:Nt,useRef:Lt,useState:K,useSyncExternalStore:Dt,useTransition:$t,version:qt}=__REACT__;var Ut=__STORYBOOK_COMPONENTS__,{A:Zt,ActionBar:Jt,AddonPanel:U,Badge:Qt,Bar:Xt,Blockquote:Vt,Button:er,ClipboardCode:tr,Code:rr,DL:ar,Div:nr,DocumentWrapper:or,EmptyTabContent:sr,ErrorFormatter:ir,FlexBar:pr,Form:ur,H1:lr,H2:dr,H3:fr,H4:cr,H5:mr,H6:hr,HR:br,IconButton:gr,Img:yr,LI:vr,Link:xr,ListItem:Sr,Loader:Tr,Modal:wr,OL:Pr,P:_r,Placeholder:kr,Pre:Cr,ProgressSpinner:Er,ResetWrapper:Rr,ScrollArea:Ir,Separator:Or,Spaced:Fr,Span:Hr,StorybookIcon:jr,StorybookLogo:zr,SyntaxHighlighter:Z,TT:Ar,TabBar:Mr,TabButton:Br,TabWrapper:Nr,Table:Lr,Tabs:Dr,TabsState:$r,TooltipLinkList:qr,TooltipMessage:Wr,TooltipNote:Yr,UL:Gr,WithTooltip:Kr,WithTooltipPure:Ur,Zoom:Zr,codeCommon:Jr,components:Qr,createCopyToClipboardFunction:Xr,getStoryHref:Vr,interleaveSeparators:ea,nameSpaceClassNames:ta,resetComponents:ra,withReset:J}=__STORYBOOK_COMPONENTS__;var ia=__STORYBOOK_API__,{ActiveTabs:pa,Consumer:ua,ManagerContext:la,Provider:da,RequestResponseError:fa,addons:H,combineParameters:ca,controlOrMetaKey:ma,controlOrMetaSymbol:ha,eventMatchesShortcut:ba,eventToShortcut:ga,experimental_MockUniversalStore:ya,experimental_UniversalStore:va,experimental_getStatusStore:xa,experimental_getTestProviderStore:Sa,experimental_requestResponse:Ta,experimental_useStatusStore:wa,experimental_useTestProviderStore:Pa,experimental_useUniversalStore:_a,internal_fullStatusStore:ka,internal_fullTestProviderStore:Ca,internal_universalStatusStore:Ea,internal_universalTestProviderStore:Ra,isMacLike:Ia,isShortcutTaken:Oa,keyToSymbol:Fa,merge:Ha,mockChannel:ja,optionOrAltSymbol:za,shortcutMatchesShortcut:Aa,shortcutToHumanString:Ma,types:Q,useAddonState:Ba,useArgTypes:Na,useArgs:La,useChannel:X,useGlobalTypes:Da,useGlobals:$a,useParameter:V,useSharedState:qa,useStoryPrepared:Wa,useStorybookApi:Ya,useStorybookState:Ga}=__STORYBOOK_API__;var Qa=__STORYBOOK_THEMING__,{CacheProvider:Xa,ClassNames:Va,Global:en,ThemeProvider:ee,background:tn,color:rn,convert:te,create:an,createCache:nn,createGlobal:on,createReset:sn,css:pn,darken:un,ensure:ln,ignoreSsrWarning:j,isPropValid:dn,jsx:fn,keyframes:cn,lighten:mn,styled:x,themes:z,typography:hn,useTheme:A,withTheme:bn}=__STORYBOOK_THEMING__;var W="storybook/docs",le=`${W}/panel`,re="docs",ae=`${W}/snippet-rendered`;function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?n-1:0),s=1;s=0&&n<1?(i=o,p=s):n>=1&&n<2?(i=s,p=o):n>=2&&n<3?(p=o,u=s):n>=3&&n<4?(p=s,u=o):n>=4&&n<5?(i=s,u=o):n>=5&&n<6&&(i=o,u=s);var h=r-o/2,m=i+h,f=p+h,w=u+h;return a(m,f,w)}var ne={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function ye(e){if(typeof e!="string")return e;var t=e.toLowerCase();return ne[t]?"#"+ne[t]:e}var ve=/^#[a-fA-F0-9]{6}$/,xe=/^#[a-fA-F0-9]{8}$/,Se=/^#[a-fA-F0-9]{3}$/,Te=/^#[a-fA-F0-9]{4}$/,B=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,we=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Pe=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,_e=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function S(e){if(typeof e!="string")throw new b(3);var t=ye(e);if(t.match(ve))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(xe)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(Se))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(Te)){var a=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:a}}var n=B.exec(t);if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10)};var o=we.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])>1?parseFloat(""+o[4])/100:parseFloat(""+o[4])};var s=Pe.exec(t);if(s){var i=parseInt(""+s[1],10),p=parseInt(""+s[2],10)/100,u=parseInt(""+s[3],10)/100,h="rgb("+E(i,p,u)+")",m=B.exec(h);if(!m)throw new b(4,t,h);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10)}}var f=_e.exec(t.substring(0,50));if(f){var w=parseInt(""+f[1],10),pe=parseInt(""+f[2],10)/100,ue=parseInt(""+f[3],10)/100,Y="rgb("+E(w,pe,ue)+")",R=B.exec(Y);if(!R)throw new b(4,t,Y);return{red:parseInt(""+R[1],10),green:parseInt(""+R[2],10),blue:parseInt(""+R[3],10),alpha:parseFloat(""+f[4])>1?parseFloat(""+f[4])/100:parseFloat(""+f[4])}}throw new b(5)}function ke(e){var t=e.red/255,r=e.green/255,a=e.blue/255,n=Math.max(t,r,a),o=Math.min(t,r,a),s=(n+o)/2;if(n===o)return e.alpha!==void 0?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var i,p=n-o,u=s>.5?p/(2-n-o):p/(n+o);switch(n){case t:i=(r-a)/p+(r=1?O(e,t,r):"rgba("+E(e,t,r)+","+a+")";if(typeof e=="object"&&t===void 0&&r===void 0&&a===void 0)return e.alpha>=1?O(e.hue,e.saturation,e.lightness):"rgba("+E(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new b(2)}function q(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return $("#"+v(e)+v(t)+v(r));if(typeof e=="object"&&t===void 0&&r===void 0)return $("#"+v(e.red)+v(e.green)+v(e.blue));throw new b(6)}function F(e,t,r,a){if(typeof e=="string"&&typeof t=="number"){var n=S(e);return"rgba("+n.red+","+n.green+","+n.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof a=="number")return a>=1?q(e,t,r):"rgba("+e+","+t+","+r+","+a+")";if(typeof e=="object"&&t===void 0&&r===void 0&&a===void 0)return e.alpha>=1?q(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new b(7)}var Oe=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},Fe=function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},He=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},je=function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"};function y(e){if(typeof e!="object")throw new b(8);if(Fe(e))return F(e);if(Oe(e))return q(e);if(je(e))return Ie(e);if(He(e))return Re(e);throw new b(8)}function se(e,t,r){return function(){var a=r.concat(Array.prototype.slice.call(arguments));return a.length>=t?e.apply(this,a):se(e,t,a)}}function c(e){return se(e,e.length,[])}function ze(e,t){if(t==="transparent")return t;var r=g(t);return y(d({},r,{hue:r.hue+parseFloat(e)}))}c(ze);function T(e,t,r){return Math.max(e,Math.min(t,r))}function Ae(e,t){if(t==="transparent")return t;var r=g(t);return y(d({},r,{lightness:T(0,1,r.lightness-parseFloat(e))}))}c(Ae);function Me(e,t){if(t==="transparent")return t;var r=g(t);return y(d({},r,{saturation:T(0,1,r.saturation-parseFloat(e))}))}c(Me);function Be(e,t){if(t==="transparent")return t;var r=g(t);return y(d({},r,{lightness:T(0,1,r.lightness+parseFloat(e))}))}c(Be);function Ne(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var a=S(t),n=d({},a,{alpha:typeof a.alpha=="number"?a.alpha:1}),o=S(r),s=d({},o,{alpha:typeof o.alpha=="number"?o.alpha:1}),i=n.alpha-s.alpha,p=parseFloat(e)*2-1,u=p*i===-1?p:p+i,h=1+p*i,m=(u/h+1)/2,f=1-m,w={red:Math.floor(n.red*m+s.red*f),green:Math.floor(n.green*m+s.green*f),blue:Math.floor(n.blue*m+s.blue*f),alpha:n.alpha*parseFloat(e)+s.alpha*(1-parseFloat(e))};return F(w)}var Le=c(Ne),ie=Le;function De(e,t){if(t==="transparent")return t;var r=S(t),a=typeof r.alpha=="number"?r.alpha:1,n=d({},r,{alpha:T(0,1,(a*100+parseFloat(e)*100)/100)});return F(n)}c(De);function $e(e,t){if(t==="transparent")return t;var r=g(t);return y(d({},r,{saturation:T(0,1,r.saturation+parseFloat(e))}))}c($e);function qe(e,t){return t==="transparent"?t:y(d({},g(t),{hue:parseFloat(e)}))}c(qe);function We(e,t){return t==="transparent"?t:y(d({},g(t),{lightness:parseFloat(e)}))}c(We);function Ye(e,t){return t==="transparent"?t:y(d({},g(t),{saturation:parseFloat(e)}))}c(Ye);function Ge(e,t){return t==="transparent"?t:ie(parseFloat(e),"rgb(0, 0, 0)",t)}c(Ge);function Ke(e,t){return t==="transparent"?t:ie(parseFloat(e),"rgb(255, 255, 255)",t)}c(Ke);function Ue(e,t){if(t==="transparent")return t;var r=S(t),a=typeof r.alpha=="number"?r.alpha:1,n=d({},r,{alpha:T(0,1,+(a*100-parseFloat(e)*100).toFixed(2)/100)});return F(n)}var Ze=c(Ue),Je=Ze,Qe=x.div(J,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:Je(.3,e.color.defaultText),fontSize:e.typography.size.s2})),Xe=e=>l.createElement(Qe,{...e,className:"docblock-emptyblock sb-unstyled"}),Ve=x(Z)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),et=x.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),I=x.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${j}`]:{margin:0}})),tt=()=>l.createElement(et,null,l.createElement(I,null),l.createElement(I,{style:{width:"80%"}}),l.createElement(I,{style:{width:"30%"}}),l.createElement(I,{style:{width:"80%"}})),rt=({isLoading:e,error:t,language:r,code:a,dark:n,format:o=!0,...s})=>{let{typography:i}=A();if(e)return l.createElement(tt,null);if(t)return l.createElement(Xe,null,t);let p=l.createElement(Ve,{bordered:!0,copyable:!0,format:o,language:r??"jsx",className:"docblock-source sb-unstyled",...s},a);if(typeof n>"u")return p;let u=n?z.dark:z.light;return l.createElement(ee,{theme:te({...u,fontCode:i.fonts.mono,fontBase:i.fonts.base})},p)};H.register(W,e=>{H.add(le,{title:"Code",type:Q.PANEL,paramKey:re,disabled:t=>!t?.docs?.codePanel,match:({viewMode:t})=>t==="story",render:({active:t})=>{let r=e.getChannel(),a=e.getCurrentStoryData(),n=r?.last(ae)?.[0],[o,s]=K({source:n?.source,format:n?.format??void 0}),i=V(re,{source:{code:""},theme:"dark"});G(()=>{s({source:void 0,format:void 0})},[a?.id]),X({[ae]:({source:u,format:h})=>{s({source:u,format:h})}});let p=A().base!=="light";return l.createElement(U,{active:!!t},l.createElement(at,null,l.createElement(rt,{...i.source,code:i.source?.code||o.source||i.source?.originalSource,format:o.format,dark:p})))}})});var at=x.div(()=>({height:"100%",[`> :first-child${j}`]:{margin:0,height:"100%",boxShadow:"none"}}));})(); }catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } ================================================ FILE: docs/sb-addons/storybook-2/manager-bundle.js ================================================ try{ (()=>{var _=__STORYBOOK_API__,{ActiveTabs:c,Consumer:m,ManagerContext:p,Provider:d,RequestResponseError:h,addons:o,combineParameters:T,controlOrMetaKey:O,controlOrMetaSymbol:v,eventMatchesShortcut:g,eventToShortcut:y,experimental_MockUniversalStore:P,experimental_UniversalStore:b,experimental_getStatusStore:x,experimental_getTestProviderStore:k,experimental_requestResponse:R,experimental_useStatusStore:A,experimental_useTestProviderStore:C,experimental_useUniversalStore:M,internal_fullStatusStore:f,internal_fullTestProviderStore:B,internal_universalStatusStore:E,internal_universalTestProviderStore:G,isMacLike:K,isShortcutTaken:N,keyToSymbol:I,merge:U,mockChannel:Y,optionOrAltSymbol:H,shortcutMatchesShortcut:L,shortcutToHumanString:q,types:D,useAddonState:V,useArgTypes:j,useArgs:w,useChannel:W,useGlobalTypes:z,useGlobals:F,useParameter:J,useSharedState:Q,useStoryPrepared:X,useStorybookApi:Z,useStorybookState:$}=__STORYBOOK_API__;var ae=__STORYBOOK_THEMING__,{CacheProvider:se,ClassNames:ne,Global:le,ThemeProvider:ie,background:ue,color:Se,convert:_e,create:a,createCache:ce,createGlobal:me,createReset:pe,css:de,darken:he,ensure:Te,ignoreSsrWarning:Oe,isPropValid:ve,jsx:ge,keyframes:ye,lighten:Pe,styled:be,themes:xe,typography:ke,useTheme:Re,withTheme:Ae}=__STORYBOOK_THEMING__;o.setConfig({theme:a({base:"light",brandTitle:"react-tree-graph"})});})(); }catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } ================================================ FILE: docs/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js ================================================ try{ (()=>{var N1=Object.defineProperty;var Ke=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var co=(e,t)=>()=>(e&&(t=e(e=0)),t);var L1=(e,t)=>{for(var r in t)N1(e,r,{get:t[r],enumerable:!0})};var te=co(()=>{});var re=co(()=>{});var ne=co(()=>{});var wc={};L1(wc,{A:()=>M1,ActionBar:()=>Cn,AddonPanel:()=>Dn,Badge:()=>gr,Bar:()=>Tn,Blockquote:()=>$1,Button:()=>Je,ClipboardCode:()=>q1,Code:()=>U1,DL:()=>H1,Div:()=>V1,DocumentWrapper:()=>z1,EmptyTabContent:()=>kn,ErrorFormatter:()=>G1,FlexBar:()=>Ai,Form:()=>$e,H1:()=>W1,H2:()=>Y1,H3:()=>K1,H4:()=>X1,H5:()=>J1,H6:()=>Z1,HR:()=>Q1,IconButton:()=>ce,Img:()=>eE,LI:()=>tE,Link:()=>Ze,ListItem:()=>rE,Loader:()=>nE,Modal:()=>It,OL:()=>oE,P:()=>xi,Placeholder:()=>aE,Pre:()=>iE,ProgressSpinner:()=>sE,ResetWrapper:()=>wi,ScrollArea:()=>Si,Separator:()=>Ci,Spaced:()=>lE,Span:()=>uE,StorybookIcon:()=>cE,StorybookLogo:()=>dE,SyntaxHighlighter:()=>On,TT:()=>pE,TabBar:()=>mE,TabButton:()=>hE,TabWrapper:()=>fE,Table:()=>gE,Tabs:()=>yE,TabsState:()=>bE,TooltipLinkList:()=>In,TooltipMessage:()=>EE,TooltipNote:()=>vt,UL:()=>vE,WithTooltip:()=>De,WithTooltipPure:()=>Di,Zoom:()=>Ti,codeCommon:()=>Qt,components:()=>AE,createCopyToClipboardFunction:()=>xE,default:()=>j1,getStoryHref:()=>wE,interleaveSeparators:()=>SE,nameSpaceClassNames:()=>CE,resetComponents:()=>DE,withReset:()=>er});var j1,M1,Cn,Dn,gr,Tn,$1,Je,q1,U1,H1,V1,z1,kn,G1,Ai,$e,W1,Y1,K1,X1,J1,Z1,Q1,ce,eE,tE,Ze,rE,nE,It,oE,xi,aE,iE,sE,wi,Si,Ci,lE,uE,cE,dE,On,pE,mE,hE,fE,gE,yE,bE,In,EE,vt,vE,De,Di,Ti,Qt,AE,xE,wE,SE,CE,DE,er,J=co(()=>{te();re();ne();j1=__STORYBOOK_COMPONENTS__,{A:M1,ActionBar:Cn,AddonPanel:Dn,Badge:gr,Bar:Tn,Blockquote:$1,Button:Je,ClipboardCode:q1,Code:U1,DL:H1,Div:V1,DocumentWrapper:z1,EmptyTabContent:kn,ErrorFormatter:G1,FlexBar:Ai,Form:$e,H1:W1,H2:Y1,H3:K1,H4:X1,H5:J1,H6:Z1,HR:Q1,IconButton:ce,Img:eE,LI:tE,Link:Ze,ListItem:rE,Loader:nE,Modal:It,OL:oE,P:xi,Placeholder:aE,Pre:iE,ProgressSpinner:sE,ResetWrapper:wi,ScrollArea:Si,Separator:Ci,Spaced:lE,Span:uE,StorybookIcon:cE,StorybookLogo:dE,SyntaxHighlighter:On,TT:pE,TabBar:mE,TabButton:hE,TabWrapper:fE,Table:gE,Tabs:yE,TabsState:bE,TooltipLinkList:In,TooltipMessage:EE,TooltipNote:vt,UL:vE,WithTooltip:De,WithTooltipPure:Di,Zoom:Ti,codeCommon:Qt,components:AE,createCopyToClipboardFunction:xE,getStoryHref:wE,interleaveSeparators:SE,nameSpaceClassNames:CE,resetComponents:DE,withReset:er}=__STORYBOOK_COMPONENTS__});te();re();ne();te();re();ne();te();re();ne();var c=__REACT__,{Children:po,Component:Et,Fragment:ft,Profiler:hI,PureComponent:fI,StrictMode:gI,Suspense:vc,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:yI,act:bI,cloneElement:Pe,createContext:Lr,createElement:Y,createFactory:EI,createRef:vI,forwardRef:Ac,isValidElement:AI,lazy:xc,memo:Xe,startTransition:xI,unstable_act:wI,useCallback:Q,useContext:mo,useDebugValue:SI,useDeferredValue:CI,useEffect:X,useId:DI,useImperativeHandle:TI,useInsertionEffect:kI,useLayoutEffect:ho,useMemo:Me,useReducer:OI,useRef:ye,useState:z,useSyncExternalStore:II,useTransition:RI,version:BI}=__REACT__;J();te();re();ne();var MI=__STORYBOOK_ICONS__,{AccessibilityAltIcon:$I,AccessibilityIcon:qI,AccessibilityIgnoredIcon:UI,AddIcon:go,AdminIcon:HI,AlertAltIcon:VI,AlertIcon:zI,AlignLeftIcon:GI,AlignRightIcon:WI,AppleIcon:YI,ArrowBottomLeftIcon:KI,ArrowBottomRightIcon:XI,ArrowDownIcon:JI,ArrowLeftIcon:ZI,ArrowRightIcon:QI,ArrowSolidDownIcon:eR,ArrowSolidLeftIcon:tR,ArrowSolidRightIcon:rR,ArrowSolidUpIcon:nR,ArrowTopLeftIcon:oR,ArrowTopRightIcon:aR,ArrowUpIcon:iR,AzureDevOpsIcon:sR,BackIcon:lR,BasketIcon:uR,BatchAcceptIcon:cR,BatchDenyIcon:dR,BeakerIcon:pR,BellIcon:mR,BitbucketIcon:hR,BoldIcon:fR,BookIcon:gR,BookmarkHollowIcon:yR,BookmarkIcon:bR,BottomBarIcon:ER,BottomBarToggleIcon:vR,BoxIcon:AR,BranchIcon:xR,BrowserIcon:Sc,ButtonIcon:wR,CPUIcon:SR,CalendarIcon:CR,CameraIcon:DR,CameraStabilizeIcon:TR,CategoryIcon:kR,CertificateIcon:OR,ChangedIcon:IR,ChatIcon:RR,CheckIcon:yo,ChevronDownIcon:bo,ChevronLeftIcon:BR,ChevronRightIcon:Cc,ChevronSmallDownIcon:Eo,ChevronSmallLeftIcon:_R,ChevronSmallRightIcon:FR,ChevronSmallUpIcon:Dc,ChevronUpIcon:Tc,ChromaticIcon:PR,ChromeIcon:NR,CircleHollowIcon:LR,CircleIcon:vo,ClearIcon:jR,CloseAltIcon:MR,CloseIcon:$R,CloudHollowIcon:qR,CloudIcon:UR,CogIcon:HR,CollapseIcon:VR,CommandIcon:zR,CommentAddIcon:GR,CommentIcon:WR,CommentsIcon:YR,CommitIcon:KR,CompassIcon:XR,ComponentDrivenIcon:JR,ComponentIcon:ZR,ContrastIcon:QR,ContrastIgnoredIcon:eB,ControlsIcon:tB,CopyIcon:rB,CreditIcon:nB,CrossIcon:oB,DashboardIcon:aB,DatabaseIcon:iB,DeleteIcon:sB,DiamondIcon:lB,DirectionIcon:uB,DiscordIcon:cB,DocChartIcon:dB,DocListIcon:pB,DocumentIcon:yr,DownloadIcon:mB,DragIcon:hB,EditIcon:fB,EllipsisIcon:gB,EmailIcon:yB,ExpandAltIcon:bB,ExpandIcon:EB,EyeCloseIcon:kc,EyeIcon:Oc,FaceHappyIcon:vB,FaceNeutralIcon:AB,FaceSadIcon:xB,FacebookIcon:wB,FailedIcon:Ic,FastForwardIcon:Rc,FigmaIcon:SB,FilterIcon:CB,FlagIcon:DB,FolderIcon:TB,FormIcon:kB,GDriveIcon:OB,GithubIcon:IB,GitlabIcon:RB,GlobeIcon:BB,GoogleIcon:_B,GraphBarIcon:FB,GraphLineIcon:PB,GraphqlIcon:NB,GridAltIcon:LB,GridIcon:Bc,GrowIcon:_c,HeartHollowIcon:jB,HeartIcon:MB,HomeIcon:$B,HourglassIcon:qB,InfoIcon:UB,ItalicIcon:HB,JumpToIcon:VB,KeyIcon:zB,LightningIcon:GB,LightningOffIcon:WB,LinkBrokenIcon:YB,LinkIcon:KB,LinkedinIcon:XB,LinuxIcon:JB,ListOrderedIcon:ZB,ListUnorderedIcon:QB,LocationIcon:e_,LockIcon:t_,MarkdownIcon:r_,MarkupIcon:Fc,MediumIcon:n_,MemoryIcon:o_,MenuIcon:a_,MergeIcon:i_,MirrorIcon:s_,MobileIcon:Pc,MoonIcon:l_,NutIcon:u_,OutboxIcon:c_,OutlineIcon:Nc,PaintBrushIcon:d_,PaperClipIcon:p_,ParagraphIcon:m_,PassedIcon:ki,PhoneIcon:h_,PhotoDragIcon:f_,PhotoIcon:Lc,PhotoStabilizeIcon:g_,PinAltIcon:y_,PinIcon:b_,PlayAllHollowIcon:E_,PlayBackIcon:jc,PlayHollowIcon:v_,PlayIcon:Mc,PlayNextIcon:$c,PlusIcon:A_,PointerDefaultIcon:x_,PointerHandIcon:w_,PowerIcon:S_,PrintIcon:C_,ProceedIcon:D_,ProfileIcon:T_,PullRequestIcon:k_,QuestionIcon:O_,RSSIcon:I_,RedirectIcon:R_,ReduxIcon:B_,RefreshIcon:Ao,ReplyIcon:__,RepoIcon:F_,RequestChangeIcon:P_,RewindIcon:qc,RulerIcon:Uc,SaveIcon:N_,SearchIcon:L_,ShareAltIcon:j_,ShareIcon:M_,ShieldIcon:$_,SideBySideIcon:q_,SidebarAltIcon:U_,SidebarAltToggleIcon:H_,SidebarIcon:V_,SidebarToggleIcon:z_,SpeakerIcon:G_,StackedIcon:W_,StarHollowIcon:Y_,StarIcon:K_,StatusFailIcon:X_,StatusIcon:J_,StatusPassIcon:Z_,StatusWarnIcon:Q_,StickerIcon:eF,StopAltHollowIcon:tF,StopAltIcon:Hc,StopIcon:rF,StorybookIcon:nF,StructureIcon:oF,SubtractIcon:Vc,SunIcon:aF,SupportIcon:iF,SweepIcon:sF,SwitchAltIcon:lF,SyncIcon:zc,TabletIcon:Gc,ThumbsUpIcon:uF,TimeIcon:cF,TimerIcon:dF,TransferIcon:Wc,TrashIcon:pF,TwitterIcon:mF,TypeIcon:hF,UbuntuIcon:fF,UndoIcon:xo,UnfoldIcon:gF,UnlockIcon:yF,UnpinIcon:bF,UploadIcon:EF,UserAddIcon:vF,UserAltIcon:AF,UserIcon:xF,UsersIcon:wF,VSCodeIcon:SF,VerifiedIcon:CF,VideoIcon:DF,WandIcon:TF,WatchIcon:kF,WindowsIcon:OF,WrenchIcon:IF,XIcon:RF,YoutubeIcon:BF,ZoomIcon:Yc,ZoomOutIcon:Kc,ZoomResetIcon:Xc,iconList:_F}=__STORYBOOK_ICONS__;te();re();ne();var jF=__STORYBOOK_THEMING__,{CacheProvider:MF,ClassNames:$F,Global:Jc,ThemeProvider:Zc,background:qF,color:wo,convert:Qc,create:UF,createCache:HF,createGlobal:VF,createReset:zF,css:GF,darken:WF,ensure:YF,ignoreSsrWarning:ed,isPropValid:KF,jsx:XF,keyframes:Oi,lighten:JF,styled:R,themes:Ii,typography:At,useTheme:Qe,withTheme:td}=__STORYBOOK_THEMING__;te();re();ne();var H=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof window<"u"?e=window:typeof self<"u"?e=self:e={},e})();te();re();ne();var i4=__STORYBOOK_API__,{ActiveTabs:s4,Consumer:rd,ManagerContext:l4,Provider:u4,RequestResponseError:c4,addons:ve,combineParameters:d4,controlOrMetaKey:p4,controlOrMetaSymbol:m4,eventMatchesShortcut:h4,eventToShortcut:f4,experimental_MockUniversalStore:g4,experimental_UniversalStore:y4,experimental_getStatusStore:b4,experimental_getTestProviderStore:E4,experimental_requestResponse:Ri,experimental_useStatusStore:nd,experimental_useTestProviderStore:v4,experimental_useUniversalStore:A4,internal_fullStatusStore:x4,internal_fullTestProviderStore:w4,internal_universalStatusStore:S4,internal_universalTestProviderStore:C4,isMacLike:D4,isShortcutTaken:T4,keyToSymbol:k4,merge:O4,mockChannel:I4,optionOrAltSymbol:R4,shortcutMatchesShortcut:B4,shortcutToHumanString:_4,types:et,useAddonState:jr,useArgTypes:So,useArgs:od,useChannel:Co,useGlobalTypes:F4,useGlobals:Rt,useParameter:tr,useSharedState:P4,useStoryPrepared:N4,useStorybookApi:tt,useStorybookState:ad}=__STORYBOOK_API__;J();te();re();ne();var q4=__STORYBOOK_CORE_EVENTS__,{ARGTYPES_INFO_REQUEST:id,ARGTYPES_INFO_RESPONSE:Bi,CHANNEL_CREATED:U4,CHANNEL_WS_DISCONNECT:H4,CONFIG_ERROR:sd,CREATE_NEW_STORYFILE_REQUEST:V4,CREATE_NEW_STORYFILE_RESPONSE:z4,CURRENT_STORY_WAS_SET:_i,DOCS_PREPARED:ld,DOCS_RENDERED:Do,FILE_COMPONENT_SEARCH_REQUEST:G4,FILE_COMPONENT_SEARCH_RESPONSE:W4,FORCE_REMOUNT:br,FORCE_RE_RENDER:To,GLOBALS_UPDATED:Mr,NAVIGATE_URL:Y4,PLAY_FUNCTION_THREW_EXCEPTION:ko,PRELOAD_ENTRIES:ud,PREVIEW_BUILDER_PROGRESS:K4,PREVIEW_KEYDOWN:cd,REGISTER_SUBSCRIPTION:X4,REQUEST_WHATS_NEW_DATA:J4,RESET_STORY_ARGS:Oo,RESULT_WHATS_NEW_DATA:Z4,SAVE_STORY_REQUEST:Fi,SAVE_STORY_RESPONSE:Io,SELECT_STORY:Q4,SET_CONFIG:e9,SET_CURRENT_STORY:Ro,SET_FILTER:t9,SET_GLOBALS:dd,SET_INDEX:r9,SET_STORIES:n9,SET_WHATS_NEW_CACHE:o9,SHARED_STATE_CHANGED:a9,SHARED_STATE_SET:i9,STORIES_COLLAPSE_ALL:s9,STORIES_EXPAND_ALL:l9,STORY_ARGS_UPDATED:pd,STORY_CHANGED:Er,STORY_ERRORED:md,STORY_FINISHED:Pi,STORY_HOT_UPDATED:hd,STORY_INDEX_INVALIDATED:fd,STORY_MISSING:Ni,STORY_PREPARED:gd,STORY_RENDERED:rr,STORY_RENDER_PHASE_CHANGED:gt,STORY_SPECIFIED:yd,STORY_THREW_EXCEPTION:Bo,STORY_UNCHANGED:bd,TELEMETRY_ERROR:u9,TOGGLE_WHATS_NEW_NOTIFICATIONS:c9,UNHANDLED_ERRORS_WHILE_PLAYING:_o,UPDATE_GLOBALS:Fo,UPDATE_QUERY_PARAMS:Ed,UPDATE_STORY_ARGS:Po}=__STORYBOOK_CORE_EVENTS__;te();re();ne();var f9=__STORYBOOK_CLIENT_LOGGER__,{deprecate:$r,logger:Z,once:yt,pretty:g9}=__STORYBOOK_CLIENT_LOGGER__;J();te();re();ne();te();re();ne();var A9=__STORYBOOK_CHANNELS__,{Channel:No,HEARTBEAT_INTERVAL:x9,HEARTBEAT_MAX_LATENCY:w9,PostMessageTransport:S9,WebsocketTransport:C9,createBrowserChannel:D9}=__STORYBOOK_CHANNELS__;te();re();ne();var TE=Object.defineProperty,Ae=(e,t)=>TE(e,"name",{value:t,configurable:!0});function ke(e){for(var t=[],r=1;r` - ${ji(i)}`).join(` `)}`),`${o}${a!=null?` More info: ${a} `:""}`}};Ae(vd,"StorybookError");var Te=vd,kE=(e=>(e.BLOCKS="BLOCKS",e.DOCS_TOOLS="DOCS-TOOLS",e.PREVIEW_CLIENT_LOGGER="PREVIEW_CLIENT-LOGGER",e.PREVIEW_CHANNELS="PREVIEW_CHANNELS",e.PREVIEW_CORE_EVENTS="PREVIEW_CORE-EVENTS",e.PREVIEW_INSTRUMENTER="PREVIEW_INSTRUMENTER",e.PREVIEW_API="PREVIEW_API",e.PREVIEW_REACT_DOM_SHIM="PREVIEW_REACT-DOM-SHIM",e.PREVIEW_ROUTER="PREVIEW_ROUTER",e.PREVIEW_THEMING="PREVIEW_THEMING",e.RENDERER_HTML="RENDERER_HTML",e.RENDERER_PREACT="RENDERER_PREACT",e.RENDERER_REACT="RENDERER_REACT",e.RENDERER_SERVER="RENDERER_SERVER",e.RENDERER_SVELTE="RENDERER_SVELTE",e.RENDERER_VUE="RENDERER_VUE",e.RENDERER_VUE3="RENDERER_VUE3",e.RENDERER_WEB_COMPONENTS="RENDERER_WEB-COMPONENTS",e.FRAMEWORK_NEXTJS="FRAMEWORK_NEXTJS",e.ADDON_VITEST="ADDON_VITEST",e.ADDON_A11Y="ADDON_A11Y",e))(kE||{}),xd=class extends Te{constructor(t){super({category:"PREVIEW_API",code:1,message:ke` Couldn't find story matching id '${t.storyId}' after HMR. - Did you just rename a story? - Did you remove it from your CSF file? - Are you sure a story with the id '${t.storyId}' exists? - Please check the values in the stories field of your main.js config and see if they would match your CSF File. - Also check the browser console and terminal for potential error messages.`}),this.data=t}};Ae(xd,"MissingStoryAfterHmrError");var wd=xd,Sd=class extends Te{constructor(t){super({category:"PREVIEW_API",code:2,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#using-implicit-actions-during-rendering-is-deprecated-for-example-in-the-play-function",message:ke` We detected that you use an implicit action arg while ${t.phase} of your story. ${t.deprecated?` This is deprecated and won't work in Storybook 8 anymore. `:""} Please provide an explicit spy to your args like this: import { fn } from 'storybook/test'; ... args: { ${t.name}: fn() }`}),this.data=t}};Ae(Sd,"ImplicitActionsDuringRendering");var Cd=Sd,Dd=class extends Te{constructor(){super({category:"PREVIEW_API",code:3,message:ke` Cannot call \`storyStore.extract()\` without calling \`storyStore.cacheAllCsfFiles()\` first. You probably meant to call \`await preview.extract()\` which does the above for you.`})}};Ae(Dd,"CalledExtractOnStoreError");var Td=Dd,kd=class extends Te{constructor(){super({category:"PREVIEW_API",code:4,message:ke` Expected your framework's preset to export a \`renderToCanvas\` field. Perhaps it needs to be upgraded for Storybook 7.0?`,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field"})}};Ae(kd,"MissingRenderToCanvasError");var Od=kd,Id=class extends Te{constructor(t){super({category:"PREVIEW_API",code:5,message:ke` Called \`Preview.${t.methodName}()\` before initialization. The preview needs to load the story index before most methods can be called. If you want to call \`${t.methodName}\`, try \`await preview.initializationPromise;\` first. If you didn't call the above code, then likely it was called by an addon that needs to do the above.`}),this.data=t}};Ae(Id,"CalledPreviewMethodBeforeInitializationError");var rt=Id,Rd=class extends Te{constructor(t){super({category:"PREVIEW_API",code:6,message:ke` Error fetching \`/index.json\`: ${t.text} If you are in development, this likely indicates a problem with your Storybook process, check the terminal for errors. If you are in a deployed Storybook, there may have been an issue deploying the full Storybook build.`}),this.data=t}};Ae(Rd,"StoryIndexFetchError");var Bd=Rd,_d=class extends Te{constructor(t){super({category:"PREVIEW_API",code:7,message:ke` Tried to render docs entry ${t.storyId} but it is a MDX file that has no CSF references, or autodocs for a CSF file that some doesn't refer to itself. This likely is an internal error in Storybook's indexing, or you've attached the \`attached-mdx\` tag to an MDX file that is not attached.`}),this.data=t}};Ae(_d,"MdxFileWithNoCsfReferencesError");var Fd=_d,Pd=class extends Te{constructor(){super({category:"PREVIEW_API",code:8,message:ke` Couldn't find any stories in your Storybook. - Please check your stories field of your main.js config: does it match correctly? - Also check the browser console and terminal for error messages.`})}};Ae(Pd,"EmptyIndexError");var Nd=Pd,Ld=class extends Te{constructor(t){super({category:"PREVIEW_API",code:9,message:ke` Couldn't find story matching '${t.storySpecifier}'. - Are you sure a story with that id exists? - Please check your stories field of your main.js config. - Also check the browser console and terminal for error messages.`}),this.data=t}};Ae(Ld,"NoStoryMatchError");var jd=Ld,Md=class extends Te{constructor(t){super({category:"PREVIEW_API",code:10,message:ke` Couldn't find story matching id '${t.storyId}' after importing a CSF file. The file was indexed as if the story was there, but then after importing the file in the browser we didn't find the story. Possible reasons: - You are using a custom story indexer that is misbehaving. - You have a custom file loader that is removing or renaming exports. Please check your browser console and terminal for errors that may explain the issue.`}),this.data=t}};Ae(Md,"MissingStoryFromCsfFileError");var $d=Md,qd=class extends Te{constructor(){super({category:"PREVIEW_API",code:11,message:ke` Cannot access the Story Store until the index is ready. It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will remove access to the store entirely`})}};Ae(qd,"StoryStoreAccessedBeforeInitializationError");var Ud=qd,Hd=class extends Te{constructor(t){super({category:"PREVIEW_API",code:12,message:ke` Incorrect use of mount in the play function. To use mount in the play function, you must satisfy the following two requirements: 1. You *must* destructure the mount property from the \`context\` (the argument passed to your play function). This makes sure that Storybook does not start rendering the story before the play function begins. 2. Your Storybook framework or builder must be configured to transpile to ES2017 or newer. This is because destructuring statements and async/await usages are otherwise transpiled away, which prevents Storybook from recognizing your usage of \`mount\`. Note that Angular is not supported. As async/await is transpiled to support the zone.js polyfill. More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#run-code-before-the-component-gets-rendered Received the following play function: ${t.playFunction}`}),this.data=t}};Ae(Hd,"MountMustBeDestructuredError");var qr=Hd,Vd=class extends Te{constructor(t){super({category:"PREVIEW_API",code:14,message:ke` No render function available for storyId '${t.id}' `}),this.data=t}};Ae(Vd,"NoRenderFunctionError");var Lo=Vd,zd=class extends Te{constructor(){super({category:"PREVIEW_API",code:15,message:ke` No component is mounted in your story. This usually occurs when you destructure mount in the play function, but forget to call it. For example: async play({ mount, canvasElement }) { // 👈 mount should be called: await mount(); const canvas = within(canvasElement); const button = await canvas.findByRole('button'); await userEvent.click(button); }; Make sure to either remove it or call mount in your play function. `})}};Ae(zd,"NoStoryMountedError");var Gd=zd,OE=class extends Te{constructor(t){super({category:"PREVIEW_API",code:16,message:`Status has typeId "${t.status.typeId}" but was added to store with typeId "${t.typeId}". Full status: ${JSON.stringify(t.status,null,2)}`}),this.data=t}};Ae(OE,"StatusTypeIdMismatchError");var IE=class extends Te{constructor(){super({category:"FRAMEWORK_NEXTJS",code:1,documentation:"https://storybook.js.org/docs/get-started/nextjs#faq",message:ke` You are importing avif images, but you don't have sharp installed. You have to install sharp in order to use image optimization features in Next.js. `})}};Ae(IE,"NextJsSharpError");var RE=class extends Te{constructor(t){super({category:"FRAMEWORK_NEXTJS",code:2,message:ke` Tried to access router mocks from "${t.importType}" but they were not created yet. You might be running code in an unsupported environment. `}),this.data=t}};Ae(RE,"NextjsRouterMocksNotAvailable");var BE=class extends Te{constructor(t){super({category:"DOCS-TOOLS",code:1,documentation:"https://github.com/storybookjs/storybook/issues/26606",message:ke` There was a failure when generating detailed ArgTypes in ${t.language} for: ${JSON.stringify(t.type,null,2)} Storybook will fall back to use a generic type description instead. This type is either not supported or it is a bug in the docgen generation in Storybook. If you think this is a bug, please detail it as much as possible in the Github issue. `}),this.data=t}};Ae(BE,"UnknownArgTypesError");var _E=class extends Te{constructor(t){super({category:"ADDON_VITEST",code:1,message:ke` Encountered an unsupported value "${t.value}" when setting the viewport ${t.dimension} dimension. The Storybook plugin only supports values in the following units: - px, vh, vw, em, rem and %. You can either change the viewport for this story to use one of the supported units or skip the test by adding '!test' to the story's tags per https://storybook.js.org/docs/writing-stories/tags `}),this.data=t}};Ae(_E,"UnsupportedViewportDimensionError");var FE=class extends Te{constructor(){super({category:"ADDON_A11Y",code:1,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#a11y-addon-replace-element-parameter-with-context-parameter",message:'The "element" parameter in parameters.a11y has been removed. Use "context" instead.'})}};Ae(FE,"ElementA11yParameterError");te();re();ne();var PE=Object.create,as=Object.defineProperty,NE=Object.getOwnPropertyDescriptor,LE=Object.getOwnPropertyNames,jE=Object.getPrototypeOf,ME=Object.prototype.hasOwnProperty,w=(e,t)=>as(e,"name",{value:t,configurable:!0}),jo=(e=>typeof Ke<"u"?Ke:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Ke<"u"?Ke:t)[r]}):e)(function(e){if(typeof Ke<"u")return Ke.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),Ne=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$E=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of LE(t))!ME.call(e,o)&&o!==r&&as(e,o,{get:()=>t[o],enumerable:!(n=NE(t,o))||n.enumerable});return e},Jr=(e,t,r)=>(r=e!=null?PE(jE(e)):{},$E(t||!e||!e.__esModule?as(r,"default",{value:e,enumerable:!0}):r,e)),sp=Ne((e,t)=>{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"||typeof window<"u"?n=window:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){var r,n,o;return w(function a(i,s,l){function u(p,f){if(!s[p]){if(!i[p]){var g=typeof jo=="function"&&jo;if(!f&&g)return g(p,!0);if(d)return d(p,!0);var y=new Error("Cannot find module '"+p+"'");throw y.code="MODULE_NOT_FOUND",y}var E=s[p]={exports:{}};i[p][0].call(E.exports,function(b){var x=i[p][1][b];return u(x||b)},E,E.exports,a,i,s,l)}return s[p].exports}w(u,"s");for(var d=typeof jo=="function"&&jo,m=0;m=0)return this.lastItem=this.list[d],this.list[d].val},l.prototype.set=function(u,d){var m;return this.lastItem&&this.isEqual(this.lastItem.key,u)?(this.lastItem.val=d,this):(m=this.indexOf(u),m>=0?(this.lastItem=this.list[m],this.list[m].val=d,this):(this.lastItem={key:u,val:d},this.list.push(this.lastItem),this.size++,this))},l.prototype.delete=function(u){var d;if(this.lastItem&&this.isEqual(this.lastItem.key,u)&&(this.lastItem=void 0),d=this.indexOf(u),d>=0)return this.size--,this.list.splice(d,1)[0]},l.prototype.has=function(u){var d;return this.lastItem&&this.isEqual(this.lastItem.key,u)?!0:(d=this.indexOf(u),d>=0?(this.lastItem=this.list[d],!0):!1)},l.prototype.forEach=function(u,d){var m;for(m=0;m0&&(_[T]={cacheItem:b,arg:arguments[T]},O?u(g,_):g.push(_),g.length>p&&d(g.shift())),E.wasMemoized=O,E.numArgs=T+1,S},"memoizerific");return E.limit=p,E.wasMemoized=!1,E.cache=f,E.lru=g,E}};function u(p,f){var g=p.length,y=f.length,E,b,x;for(b=0;b=0&&(g=p[E],y=g.cacheItem.get(g.arg),!y||!y.size);E--)g.cacheItem.delete(g.arg)}w(d,"removeCachedResult");function m(p,f){return p===f||p!==p&&f!==f}w(m,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})}),lp=Ne(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(o,a)=>"%"+((a<16?"0":"")+a.toString(16)).toUpperCase()),r=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function n(o){let a=o.length;if(a===0)return"";let i="",s=0,l=0;e:for(;l>6]+t[128|u&63];continue}if(u<55296||u>=57344){s=l+1,i+=t[224|u>>12]+t[128|u>>6&63]+t[128|u&63];continue}if(++l,l>=a)throw new Error("URI malformed");let d=o.charCodeAt(l)&1023;s=l+1,u=65536+((u&1023)<<10|d),i+=t[240|u>>18]+t[128|u>>12&63]+t[128|u>>6&63]+t[128|u&63]}return s===0?o:s{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=lp(),r=w(a=>{switch(typeof a){case"string":return(0,t.encodeString)(a);case"bigint":case"boolean":return""+a;case"number":if(Number.isFinite(a))return a<1e21?""+a:(0,t.encodeString)(""+a);break}return a instanceof Date?(0,t.encodeString)(a.toISOString()):""},"defaultValueSerializer");e.defaultValueSerializer=r;var n=w(a=>a instanceof Date,"defaultShouldSerializeObject");e.defaultShouldSerializeObject=n;var o=w(a=>a,"identityFunc");e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:o,valueSerializer:e.defaultValueSerializer,keyDeserializer:o,shouldSerializeObject:e.defaultShouldSerializeObject}}),up=Ne(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=o,e.stringifyObject=d;var t=is(),r=lp();function n(m){return m==="__proto__"||m==="constructor"||m==="prototype"}w(n,"isPrototypeKey");function o(m,p,f,g,y){if(n(p))return m;let E=m[p];return typeof E=="object"&&E!==null?E:!g&&(y||typeof f=="number"||typeof f=="string"&&f*0===0&&f.indexOf(".")===-1)?m[p]=[]:m[p]={}}w(o,"getDeepObject");var a=20,i="[]",s="[",l="]",u=".";function d(m,p,f=0,g,y){let{nestingSyntax:E=t.defaultOptions.nestingSyntax,arrayRepeat:b=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:x=t.defaultOptions.arrayRepeatSyntax,nesting:S=t.defaultOptions.nesting,delimiter:T=t.defaultOptions.delimiter,valueSerializer:_=t.defaultOptions.valueSerializer,shouldSerializeObject:O=t.defaultOptions.shouldSerializeObject}=p,k=typeof T=="number"?String.fromCharCode(T):T,B=y===!0&&b,P=E==="dot"||E==="js"&&!y;if(f>a)return"";let L="",j=!0,U=!1;for(let $ in m){let v=m[$],A;g?(A=g,B?x==="bracket"&&(A+=i):P?(A+=u,A+=$):(A+=s,A+=$,A+=l)):A=$,j||(L+=k),typeof v=="object"&&v!==null&&!O(v)?(U=v.pop!==void 0,(S||b&&U)&&(L+=d(v,p,f+1,A,U))):(L+=(0,r.encodeString)(A),L+="=",L+=_(v,$)),j&&(j=!1)}return L}w(d,"stringifyObject")}),qE=Ne((e,t)=>{"use strict";var r=12,n=0,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function a(l){var u=l.indexOf("%");if(u===-1)return l;for(var d=l.length,m="",p=0,f=0,g=u,y=r;u>-1&&u>10),56320+(f&1023)),f=0,p=u+3,u=g=l.indexOf("%",p);else{if(y===n)return null;if(u+=3,u{"use strict";var t=e&&e.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=d;var r=up(),n=is(),o=t(qE()),a=w(m=>{let p=Number(m);return Number.isNaN(p)?m:p},"numberKeyDeserializer");e.numberKeyDeserializer=a;var i=w(m=>{let p=Number(m);return Number.isNaN(p)?m:p},"numberValueDeserializer");e.numberValueDeserializer=i;var s=/\+/g,l=w(function(){},"Empty");l.prototype=Object.create(null);function u(m,p,f,g,y){let E=m.substring(p,f);return g&&(E=E.replace(s," ")),y&&(E=(0,o.default)(E)||E),E}w(u,"computeKeySlice");function d(m,p){let{valueDeserializer:f=n.defaultOptions.valueDeserializer,keyDeserializer:g=n.defaultOptions.keyDeserializer,arrayRepeatSyntax:y=n.defaultOptions.arrayRepeatSyntax,nesting:E=n.defaultOptions.nesting,arrayRepeat:b=n.defaultOptions.arrayRepeat,nestingSyntax:x=n.defaultOptions.nestingSyntax,delimiter:S=n.defaultOptions.delimiter}=p??{},T=typeof S=="string"?S.charCodeAt(0):S,_=x==="js",O=new l;if(typeof m!="string")return O;let k=m.length,B="",P=-1,L=-1,j=-1,U=O,$,v="",A="",D=!1,N=!1,F=!1,M=!1,q=!1,V=!1,G=!1,se=0,pe=-1,ae=-1,we=-1;for(let ee=0;eeP,G||(L=ee),j!==L-1&&(A=u(m,j+1,pe>-1?pe:L,F,D),v=g(A),$!==void 0&&(U=(0,r.getDeepObject)(U,$,v,_&&q,_&&V))),G||v!==""){G&&(B=m.slice(L+1,ee),M&&(B=B.replace(s," ")),N&&(B=(0,o.default)(B)||B));let Ce=f(B,v);if(b){let Ve=U[v];Ve===void 0?pe>-1?U[v]=[Ce]:U[v]=Ce:Ve.pop?Ve.push(Ce):U[v]=[Ve,Ce]}else U[v]=Ce}B="",P=ee,L=ee,D=!1,N=!1,F=!1,M=!1,q=!1,V=!1,pe=-1,j=ee,U=O,$=void 0,v=""}else se===93?(b&&y==="bracket"&&we===91&&(pe=ae),E&&(x==="index"||_)&&L<=P&&(j!==ae&&(A=u(m,j+1,ee,F,D),v=g(A),$!==void 0&&(U=(0,r.getDeepObject)(U,$,v,void 0,_)),$=v,F=!1,D=!1),j=ee,V=!0,q=!1)):se===46?E&&(x==="dot"||_)&&L<=P&&(j!==ae&&(A=u(m,j+1,ee,F,D),v=g(A),$!==void 0&&(U=(0,r.getDeepObject)(U,$,v,_)),$=v,F=!1,D=!1),q=!0,V=!1,j=ee):se===91?E&&(x==="index"||_)&&L<=P&&(j!==ae&&(A=u(m,j+1,ee,F,D),v=g(A),_&&$!==void 0&&(U=(0,r.getDeepObject)(U,$,v,_)),$=v,F=!1,D=!1,q=!1,V=!0),j=ee):se===61?L<=P?L=ee:N=!0:se===43?L>P?M=!0:F=!0:se===37&&(L>P?N=!0:D=!0);ae=ee,we=se}return O}w(d,"parse")}),HE=Ne(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=up();function r(n,o){if(n===null||typeof n!="object")return"";let a=o??{};return(0,t.stringifyObject)(n,a)}w(r,"stringify")}),ss=Ne(e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(a,i,s,l){l===void 0&&(l=s);var u=Object.getOwnPropertyDescriptor(i,s);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:w(function(){return i[s]},"get")}),Object.defineProperty(a,l,u)}:function(a,i,s,l){l===void 0&&(l=s),a[l]=i[s]}),r=e&&e.__exportStar||function(a,i){for(var s in a)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&t(i,a,s)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=UE();Object.defineProperty(e,"parse",{enumerable:!0,get:w(function(){return n.parse},"get")});var o=HE();Object.defineProperty(e,"stringify",{enumerable:!0,get:w(function(){return o.stringify},"get")}),r(is(),e)}),cp=Ne((e,t)=>{t.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}}),VE=Ne((e,t)=>{t.exports={Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6",Agrave:"\xC0",agrave:"\xE0",amp:"&",AMP:"&",Aring:"\xC5",aring:"\xE5",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",brvbar:"\xA6",Ccedil:"\xC7",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Egrave:"\xC8",egrave:"\xE8",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",iexcl:"\xA1",Igrave:"\xCC",igrave:"\xEC",iquest:"\xBF",Iuml:"\xCF",iuml:"\xEF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",Ntilde:"\xD1",ntilde:"\xF1",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Ograve:"\xD2",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",THORN:"\xDE",thorn:"\xFE",times:"\xD7",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Ugrave:"\xD9",ugrave:"\xF9",uml:"\xA8",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}}),dp=Ne((e,t)=>{t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}),zE=Ne((e,t)=>{t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}),GE=Ne(e=>{"use strict";var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0});var r=t(zE()),n=String.fromCodePoint||function(a){var i="";return a>65535&&(a-=65536,i+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),i+=String.fromCharCode(a),i};function o(a){return a>=55296&&a<=57343||a>1114111?"\uFFFD":(a in r.default&&(a=r.default[a]),n(a))}w(o,"decodeCodePoint"),e.default=o}),Wd=Ne(e=>{"use strict";var t=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var r=t(cp()),n=t(VE()),o=t(dp()),a=t(GE()),i=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=s(o.default),e.decodeHTMLStrict=s(r.default);function s(d){var m=u(d);return function(p){return String(p).replace(i,m)}}w(s,"getStrictDecoder");var l=w(function(d,m){return d{"use strict";var t=e&&e.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var r=t(dp()),n=l(r.default),o=u(n);e.encodeXML=b(n);var a=t(cp()),i=l(a.default),s=u(i);e.encodeHTML=f(i,s),e.encodeNonAsciiHTML=b(i);function l(x){return Object.keys(x).sort().reduce(function(S,T){return S[x[T]]="&"+T+";",S},{})}w(l,"getInverseObj");function u(x){for(var S=[],T=[],_=0,O=Object.keys(x);_1?m(x):x.charCodeAt(0)).toString(16).toUpperCase()+";"}w(p,"singleCharReplacer");function f(x,S){return function(T){return T.replace(S,function(_){return x[_]}).replace(d,p)}}w(f,"getInverse");var g=new RegExp(o.source+"|"+d.source,"g");function y(x){return x.replace(g,p)}w(y,"escape"),e.escape=y;function E(x){return x.replace(o,p)}w(E,"escapeUTF8"),e.escapeUTF8=E;function b(x){return function(S){return S.replace(g,function(T){return x[T]||p(T)})}}w(b,"getASCIIEncoder")}),WE=Ne(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=Wd(),r=Yd();function n(l,u){return(!u||u<=0?t.decodeXML:t.decodeHTML)(l)}w(n,"decode"),e.decode=n;function o(l,u){return(!u||u<=0?t.decodeXML:t.decodeHTMLStrict)(l)}w(o,"decodeStrict"),e.decodeStrict=o;function a(l,u){return(!u||u<=0?r.encodeXML:r.encodeHTML)(l)}w(a,"encode"),e.encode=a;var i=Yd();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:w(function(){return i.encodeXML},"get")}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:w(function(){return i.encodeHTML},"get")}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:w(function(){return i.encodeNonAsciiHTML},"get")}),Object.defineProperty(e,"escape",{enumerable:!0,get:w(function(){return i.escape},"get")}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:w(function(){return i.escapeUTF8},"get")}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:w(function(){return i.encodeHTML},"get")}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:w(function(){return i.encodeHTML},"get")});var s=Wd();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:w(function(){return s.decodeXML},"get")}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:w(function(){return s.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:w(function(){return s.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:w(function(){return s.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:w(function(){return s.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:w(function(){return s.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:w(function(){return s.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:w(function(){return s.decodeXML},"get")})}),YE=Ne((e,t)=>{"use strict";function r(v,A){if(!(v instanceof A))throw new TypeError("Cannot call a class as a function")}w(r,"_classCallCheck");function n(v,A){for(var D=0;D=v.length?{done:!0}:{done:!1,value:v[N++]}},"n"),e:w(function(G){throw G},"e"),f:F}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M=!0,q=!1,V;return{s:w(function(){D=D.call(v)},"s"),n:w(function(){var G=D.next();return M=G.done,G},"n"),e:w(function(G){q=!0,V=G},"e"),f:w(function(){try{!M&&D.return!=null&&D.return()}finally{if(q)throw V}},"f")}}w(a,"_createForOfIteratorHelper");function i(v,A){if(v){if(typeof v=="string")return s(v,A);var D=Object.prototype.toString.call(v).slice(8,-1);if(D==="Object"&&v.constructor&&(D=v.constructor.name),D==="Map"||D==="Set")return Array.from(v);if(D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D))return s(v,A)}}w(i,"_unsupportedIterableToArray");function s(v,A){(A==null||A>v.length)&&(A=v.length);for(var D=0,N=new Array(A);D0?v*40+55:0,q=A>0?A*40+55:0,V=D>0?D*40+55:0;N[F]=f([M,q,V])}w(m,"setStyleColor");function p(v){for(var A=v.toString(16);A.length<2;)A="0"+A;return A}w(p,"toHexString");function f(v){var A=[],D=a(v),N;try{for(D.s();!(N=D.n()).done;){var F=N.value;A.push(p(F))}}catch(M){D.e(M)}finally{D.f()}return"#"+A.join("")}w(f,"toColorHexString");function g(v,A,D,N){var F;return A==="text"?F=_(D,N):A==="display"?F=E(v,D,N):A==="xterm256Foreground"?F=B(v,N.colors[D]):A==="xterm256Background"?F=P(v,N.colors[D]):A==="rgb"&&(F=y(v,D)),F}w(g,"generateOutput");function y(v,A){A=A.substring(2).slice(0,-1);var D=+A.substr(0,2),N=A.substring(5).split(";"),F=N.map(function(M){return("0"+Number(M).toString(16)).substr(-2)}).join("");return k(v,(D===38?"color:#":"background-color:#")+F)}w(y,"handleRgb");function E(v,A,D){A=parseInt(A,10);var N={"-1":w(function(){return"
"},"_"),0:w(function(){return v.length&&b(v)},"_"),1:w(function(){return O(v,"b")},"_"),3:w(function(){return O(v,"i")},"_"),4:w(function(){return O(v,"u")},"_"),8:w(function(){return k(v,"display:none")},"_"),9:w(function(){return O(v,"strike")},"_"),22:w(function(){return k(v,"font-weight:normal;text-decoration:none;font-style:normal")},"_"),23:w(function(){return L(v,"i")},"_"),24:w(function(){return L(v,"u")},"_"),39:w(function(){return B(v,D.fg)},"_"),49:w(function(){return P(v,D.bg)},"_"),53:w(function(){return k(v,"text-decoration:overline")},"_")},F;return N[A]?F=N[A]():4"}).join("")}w(b,"resetStyles");function x(v,A){for(var D=[],N=v;N<=A;N++)D.push(N);return D}w(x,"range");function S(v){return function(A){return(v===null||A.category!==v)&&v!=="all"}}w(S,"notCategory");function T(v){v=parseInt(v,10);var A=null;return v===0?A="all":v===1?A="bold":2")}w(O,"pushTag");function k(v,A){return O(v,"span",A)}w(k,"pushStyle");function B(v,A){return O(v,"span","color:"+A)}w(B,"pushForegroundColor");function P(v,A){return O(v,"span","background-color:"+A)}w(P,"pushBackgroundColor");function L(v,A){var D;if(v.slice(-1)[0]===A&&(D=v.pop()),D)return""}w(L,"closeTag");function j(v,A,D){var N=!1,F=3;function M(){return""}w(M,"remove");function q(me,ue){return D("xterm256Foreground",ue),""}w(q,"removeXterm256Foreground");function V(me,ue){return D("xterm256Background",ue),""}w(V,"removeXterm256Background");function G(me){return A.newline?D("display",-1):D("text",me),""}w(G,"newline");function se(me,ue){N=!0,ue.trim().length===0&&(ue="0"),ue=ue.trimRight(";").split(";");var ht=a(ue),Sn;try{for(ht.s();!(Sn=ht.n()).done;){var Ei=Sn.value;D("display",Ei)}}catch(vi){ht.e(vi)}finally{ht.f()}return""}w(se,"ansiMess");function pe(me){return D("text",me),""}w(pe,"realText");function ae(me){return D("rgb",me),""}w(ae,"rgb");var we=[{pattern:/^\x08+/,sub:M},{pattern:/^\x1b\[[012]?K/,sub:M},{pattern:/^\x1b\[\(B/,sub:M},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:ae},{pattern:/^\x1b\[38;5;(\d+)m/,sub:q},{pattern:/^\x1b\[48;5;(\d+)m/,sub:V},{pattern:/^\n/,sub:G},{pattern:/^\r+\n/,sub:G},{pattern:/^\r/,sub:G},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:se},{pattern:/^\x1b\[\d?J/,sub:M},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:M},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:M},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:pe}];function ee(me,ue){ue>F&&N||(N=!1,v=v.replace(me.pattern,me.sub))}w(ee,"process");var Ce=[],Ve=v,Fe=Ve.length;e:for(;Fe>0;){for(var lt=0,Zt=0,Nr=we.length;Zt{},"setHandler"),send:w(()=>{},"send")};return new No({transport:e})}w(pp,"mockChannel");var mp=class{constructor(){this.getChannel=w(()=>{if(!this.channel){let t=pp();return this.setChannel(t),t}return this.channel},"getChannel"),this.ready=w(()=>this.promise,"ready"),this.hasChannel=w(()=>!!this.channel,"hasChannel"),this.setChannel=w(t=>{this.channel=t,this.resolve()},"setChannel"),this.promise=new Promise(t=>{this.resolve=()=>t(this.getChannel())})}};w(mp,"AddonStore");var KE=mp,Mi="__STORYBOOK_ADDONS_PREVIEW";function hp(){return H[Mi]||(H[Mi]=new KE),H[Mi]}w(hp,"getAddonsStore");var ut=hp(),fp=class{constructor(){this.hookListsMap=void 0,this.mountedDecorators=void 0,this.prevMountedDecorators=void 0,this.currentHooks=void 0,this.nextHookIndex=void 0,this.currentPhase=void 0,this.currentEffects=void 0,this.prevEffects=void 0,this.currentDecoratorName=void 0,this.hasUpdates=void 0,this.currentContext=void 0,this.renderListener=w(t=>{t===this.currentContext?.id&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},"renderListener"),this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(t=>{t.destroy&&t.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let t=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,t}triggerEffects(){this.prevEffects.forEach(t=>{!this.currentEffects.includes(t)&&t.destroy&&t.destroy()}),this.currentEffects.forEach(t=>{this.prevEffects.includes(t)||(t.destroy=t.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),ut.getChannel().on(rr,this.renderListener)}removeRenderListeners(){ut.getChannel().removeListener(rr,this.renderListener)}};w(fp,"HooksContext");var gp=fp;function Gi(e){let t=w((...r)=>{let{hooks:n}=typeof r[0]=="function"?r[1]:r[0],o=n.currentPhase,a=n.currentHooks,i=n.nextHookIndex,s=n.currentDecoratorName;n.currentDecoratorName=e.name,n.prevMountedDecorators.has(e)?(n.currentPhase="UPDATE",n.currentHooks=n.hookListsMap.get(e)||[]):(n.currentPhase="MOUNT",n.currentHooks=[],n.hookListsMap.set(e,n.currentHooks),n.prevMountedDecorators.add(e)),n.nextHookIndex=0;let l=H.STORYBOOK_HOOKS_CONTEXT;H.STORYBOOK_HOOKS_CONTEXT=n;let u=e(...r);if(H.STORYBOOK_HOOKS_CONTEXT=l,n.currentPhase==="UPDATE"&&n.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return n.currentPhase=o,n.currentHooks=a,n.nextHookIndex=i,n.currentDecoratorName=s,u},"hookified");return t.originalFn=e,t}w(Gi,"hookify");var $i=0,XE=25,JE=w(e=>(t,r)=>{let n=e(Gi(t),r.map(o=>Gi(o)));return o=>{let{hooks:a}=o;a.prevMountedDecorators??=new Set,a.mountedDecorators=new Set([t,...r]),a.currentContext=o,a.hasUpdates=!1;let i=n(o);for($i=1;a.hasUpdates;)if(a.hasUpdates=!1,a.currentEffects=[],i=n(o),$i+=1,$i>XE)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return a.addRenderListeners(),i}},"applyHooks"),ZE=w((e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),"areDepsEqual"),ls=w(()=>new Error("Storybook preview hooks can only be called inside decorators and story functions."),"invalidHooksError");function us(){return H.STORYBOOK_HOOKS_CONTEXT||null}w(us,"getHooksContextOrNull");function Wo(){let e=us();if(e==null)throw ls();return e}w(Wo,"getHooksContextOrThrow");function yp(e,t,r){let n=Wo();if(n.currentPhase==="MOUNT"){r!=null&&!Array.isArray(r)&&Z.warn(`${e} received a final argument that is not an array (instead, received ${r}). When specified, the final argument must be an array.`);let o={name:e,deps:r};return n.currentHooks.push(o),t(o),o}if(n.currentPhase==="UPDATE"){let o=n.getNextHook();if(o==null)throw new Error("Rendered more hooks than during the previous render.");return o.name!==e&&Z.warn(`Storybook has detected a change in the order of Hooks${n.currentDecoratorName?` called by ${n.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),r!=null&&o.deps==null&&Z.warn(`${e} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),r!=null&&o.deps!=null&&r.length!==o.deps.length&&Z.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant. Previous: ${o.deps} Incoming: ${r}`),(r==null||o.deps==null||!ZE(r,o.deps))&&(t(o),o.deps=r),o}throw ls()}w(yp,"useHook");function Pn(e,t,r){let{memoizedState:n}=yp(e,o=>{o.memoizedState=t()},r);return n}w(Pn,"useMemoLike");function cs(e,t){return Pn("useMemo",e,t)}w(cs,"useMemo");function Fn(e,t){return Pn("useCallback",()=>e,t)}w(Fn,"useCallback");function ds(e,t){return Pn(e,()=>({current:t}),[])}w(ds,"useRefLike");function QE(e){return ds("useRef",e)}w(QE,"useRef");function bp(){let e=us();if(e!=null&&e.currentPhase!=="NONE")e.hasUpdates=!0;else try{ut.getChannel().emit(To)}catch{Z.warn("State updates of Storybook preview hooks work only in browser")}}w(bp,"triggerUpdate");function ps(e,t){let r=ds(e,typeof t=="function"?t():t),n=w(o=>{r.current=typeof o=="function"?o(r.current):o,bp()},"setState");return[r.current,n]}w(ps,"useStateLike");function ev(e){return ps("useState",e)}w(ev,"useState");function tv(e,t,r){let n=r!=null?()=>r(t):t,[o,a]=ps("useReducer",n);return[o,w(i=>a(s=>e(s,i)),"dispatch")]}w(tv,"useReducer");function Bt(e,t){let r=Wo(),n=Pn("useEffect",()=>({create:e}),t);r.currentEffects.includes(n)||r.currentEffects.push(n)}w(Bt,"useEffect");function rv(e,t=[]){let r=ut.getChannel();return Bt(()=>(Object.entries(e).forEach(([n,o])=>r.on(n,o)),()=>{Object.entries(e).forEach(([n,o])=>r.removeListener(n,o))}),[...Object.keys(e),...t]),Fn(r.emit.bind(r),[r])}w(rv,"useChannel");function Yo(){let{currentContext:e}=Wo();if(e==null)throw ls();return e}w(Yo,"useStoryContext");function nv(e,t){let{parameters:r}=Yo();if(e)return r[e]??t}w(nv,"useParameter");function ov(){let e=ut.getChannel(),{id:t,args:r}=Yo(),n=Fn(a=>e.emit(Po,{storyId:t,updatedArgs:a}),[e,t]),o=Fn(a=>e.emit(Oo,{storyId:t,argNames:a}),[e,t]);return[r,n,o]}w(ov,"useArgs");function av(){let e=ut.getChannel(),{globals:t}=Yo(),r=Fn(n=>e.emit(Fo,{globals:n}),[e]);return[t,r]}w(av,"useGlobals");var l6=w(({name:e,parameterName:t,wrapper:r,skipIfNoParametersOrOptions:n=!1})=>{let o=w(a=>(i,s)=>{let l=s.parameters&&s.parameters[t];return l&&l.disable||n&&!a&&!l?i(s):r(i,s,{options:a,parameters:l})},"decorator");return(...a)=>typeof a[0]=="function"?o()(...a):(...i)=>{if(i.length>1)return a.length>1?o(a)(...i):o(...a)(...i);throw new Error(`Passing stories directly into ${e}() is not allowed, instead use addDecorator(${e}) and pass options with the '${t}' parameter`)}},"makeDecorator");function Ep(){}w(Ep,"noop");function Wi(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}w(Wi,"getSymbols");function Yi(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}w(Yi,"getTag");var iv="[object RegExp]",sv="[object String]",lv="[object Number]",uv="[object Boolean]",Kd="[object Arguments]",cv="[object Symbol]",dv="[object Date]",pv="[object Map]",mv="[object Set]",hv="[object Array]",fv="[object Function]",gv="[object ArrayBuffer]",qi="[object Object]",yv="[object Error]",bv="[object DataView]",Ev="[object Uint8Array]",vv="[object Uint8ClampedArray]",Av="[object Uint16Array]",xv="[object Uint32Array]",wv="[object BigUint64Array]",Sv="[object Int8Array]",Cv="[object Int16Array]",Dv="[object Int32Array]",Tv="[object BigInt64Array]",kv="[object Float32Array]",Ov="[object Float64Array]";function xt(e){if(!e||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}w(xt,"isPlainObject");function Gr(e,t){let r={},n=Object.keys(e);for(let o=0;oVr(m,f,void 0,e,t,r,n));if(p===-1)return!1;u.splice(p,1)}return!0}case hv:case Ev:case vv:case Av:case xv:case wv:case Sv:case Cv:case Dv:case Tv:case kv:case Ov:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let l=0;l{let r=t.type;if(e==null||!r||t.mapping)return e;switch(r.name){case"string":return String(e);case"enum":return e;case"number":return Number(e);case"boolean":return String(e)==="true";case"array":return!r.value||!Array.isArray(e)?Ur:e.reduce((n,o,a)=>{let i=Ki(o,{type:r.value});return i!==Ur&&(n[a]=i),n},new Array(e.length));case"object":return typeof e=="string"||typeof e=="number"?e:!r.value||typeof e!="object"?Ur:Object.entries(e).reduce((n,[o,a])=>{let i=Ki(a,{type:r.value[o]});return i===Ur?n:Object.assign(n,{[o]:i})},{});default:return Ur}},"map"),Iv=w((e,t)=>Object.entries(e).reduce((r,[n,o])=>{if(!t[n])return r;let a=Ki(o,t[n]);return a===Ur?r:Object.assign(r,{[n]:a})},{}),"mapArgsToTypes"),Xi=w((e,t)=>Array.isArray(e)&&Array.isArray(t)?t.reduce((r,n,o)=>(r[o]=Xi(e[o],t[o]),r),[...e]).filter(r=>r!==void 0):!xt(e)||!xt(t)?t:Object.keys({...e,...t}).reduce((r,n)=>{if(n in t){let o=Xi(e[n],t[n]);o!==void 0&&(r[n]=o)}else r[n]=e[n];return r},{}),"combineArgs"),Rv=w((e,t)=>Object.entries(t).reduce((r,[n,{options:o}])=>{function a(){return n in e&&(r[n]=e[n]),r}if(w(a,"allowArg"),!o)return a();if(!Array.isArray(o))return yt.error(wt` Invalid argType: '${n}.options' should be an array. More info: https://storybook.js.org/docs/api/arg-types?ref=error `),a();if(o.some(m=>m&&["object","function"].includes(typeof m)))return yt.error(wt` Invalid argType: '${n}.options' should only contain primitives. Use a 'mapping' for complex values. More info: https://storybook.js.org/docs/writing-stories/args?ref=error#mapping-to-complex-arg-values `),a();let i=Array.isArray(e[n]),s=i&&e[n].findIndex(m=>!o.includes(m)),l=i&&s===-1;if(e[n]===void 0||o.includes(e[n])||l)return a();let u=i?`${n}[${s}]`:n,d=o.map(m=>typeof m=="string"?`'${m}'`:String(m)).join(", ");return yt.warn(`Received illegal value for '${u}'. Supported options: ${d}`),r},{}),"validateOptions"),Bn=Symbol("Deeply equal"),Uo=w((e,t)=>{if(typeof e!=typeof t)return t;if(wp(e,t))return Bn;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,o,a)=>{let i=Uo(e[a],o);return i!==Bn&&(n[a]=i),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return xt(e)&&xt(t)?Object.keys({...e,...t}).reduce((r,n)=>{let o=Uo(e?.[n],t?.[n]);return o===Bn?r:Object.assign(r,{[n]:o})},{}):t},"deepDiff"),Sp="UNTARGETED";function Cp({args:e,argTypes:t}){let r={};return Object.entries(e).forEach(([n,o])=>{let{target:a=Sp}=t[n]||{};r[a]=r[a]||{},r[a][n]=o}),r}w(Cp,"groupArgsByTarget");function Dp(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}w(Dp,"deleteUndefined");var Tp=class{constructor(){this.initialArgsByStoryId={},this.argsByStoryId={}}get(t){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);return this.argsByStoryId[t]}setInitial(t){if(!this.initialArgsByStoryId[t.id])this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs;else if(this.initialArgsByStoryId[t.id]!==t.initialArgs){let r=Uo(this.initialArgsByStoryId[t.id],this.argsByStoryId[t.id]);this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs,r!==Bn&&this.updateFromDelta(t,r)}}updateFromDelta(t,r){let n=Rv(r,t.argTypes);this.argsByStoryId[t.id]=Xi(this.argsByStoryId[t.id],n)}updateFromPersisted(t,r){let n=Iv(r,t.argTypes);return this.updateFromDelta(t,n)}update(t,r){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);this.argsByStoryId[t]=Dp({...this.argsByStoryId[t],...r})}};w(Tp,"ArgsStore");var Bv=Tp,kp=w((e={})=>Object.entries(e).reduce((t,[r,{defaultValue:n}])=>(typeof n<"u"&&(t[r]=n),t),{}),"getValuesFromArgTypes"),Op=class{constructor({globals:t={},globalTypes:r={}}){this.set({globals:t,globalTypes:r})}set({globals:t={},globalTypes:r={}}){let n=this.initialGlobals&&Uo(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(t),...Object.keys(r)]);let o=kp(r);this.initialGlobals={...o,...t},this.globals=this.initialGlobals,n&&n!==Bn&&this.updateFromPersisted(n)}filterAllowedGlobals(t){return Object.entries(t).reduce((r,[n,o])=>(this.allowedGlobalNames.has(n)?r[n]=o:Z.warn(`Attempted to set a global (${n}) that is not defined in initial globals or globalTypes`),r),{})}updateFromPersisted(t){let r=this.filterAllowedGlobals(t);this.globals={...this.globals,...r}}get(){return this.globals}update(t){this.globals={...this.globals,...this.filterAllowedGlobals(t)};for(let r in t)t[r]===void 0&&(this.globals[r]=this.initialGlobals[r])}};w(Op,"GlobalsStore");var _v=Op,Fv=Jr(sp(),1),Pv=(0,Fv.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{})),Ip=class{constructor({entries:t}={v:5,entries:{}}){this.entries=t}entryFromSpecifier(t){let r=Object.values(this.entries);if(t==="*")return r[0];if(typeof t=="string")return this.entries[t]?this.entries[t]:r.find(a=>a.id.startsWith(t));let{name:n,title:o}=t;return r.find(a=>a.name===n&&a.title===o)}storyIdToEntry(t){let r=this.entries[t];if(!r)throw new wd({storyId:t});return r}importPathToEntry(t){return Pv(this.entries)[t]}};w(Ip,"StoryIndexStore");var Nv=Ip,Lv=w(e=>typeof e=="string"?{name:e}:e,"normalizeType"),jv=w(e=>typeof e=="string"?{type:e}:e,"normalizeControl"),Mv=w((e,t)=>{let{type:r,control:n,...o}=e,a={name:t,...o};return r&&(a.type=Lv(r)),n?a.control=jv(n):n===!1&&(a.control={disable:!0}),a},"normalizeInputType"),Ho=w(e=>Gr(e,Mv),"normalizeInputTypes"),be=w(e=>Array.isArray(e)?e:e?[e]:[],"normalizeArrays"),$v=wt` CSF .story annotations deprecated; annotate story functions directly: - StoryFn.story.name => StoryFn.storyName - StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators) See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod. `;function Vo(e,t,r){let n=t,o=typeof t=="function"?t:null,{story:a}=n;a&&(Z.debug("deprecated story",a),$r($v));let i=Jo(e),s=typeof n!="function"&&n.name||n.storyName||a?.name||i,l=[...be(n.decorators),...be(a?.decorators)],u={...a?.parameters,...n.parameters},d={...a?.args,...n.args},m={...a?.argTypes,...n.argTypes},p=[...be(n.loaders),...be(a?.loaders)],f=[...be(n.beforeEach),...be(a?.beforeEach)],g=[...be(n.afterEach),...be(a?.afterEach)],{render:y,play:E,tags:b=[],globals:x={}}=n,S=u.__id||Xo(r.id,i);return{moduleExport:t,id:S,name:s,tags:b,decorators:l,parameters:u,args:d,argTypes:Ho(m),loaders:p,beforeEach:f,afterEach:g,globals:x,...y&&{render:y},...o&&{userStoryFn:o},...E&&{play:E}}}w(Vo,"normalizeStory");function zo(e,t=e.title,r){let{id:n,argTypes:o}=e;return{id:Nn(n||t),...e,title:t,...o&&{argTypes:Ho(o)},parameters:{fileName:r,...e.parameters}}}w(zo,"normalizeComponentAnnotations");var qv=w(e=>{let{globals:t,globalTypes:r}=e;(t||r)&&Z.error("Global args/argTypes can only be set globally",JSON.stringify({globals:t,globalTypes:r}))},"checkGlobals"),Uv=w(e=>{let{options:t}=e;t?.storySort&&Z.error("The storySort option parameter can only be set globally")},"checkStorySort"),Mo=w(e=>{e&&(qv(e),Uv(e))},"checkDisallowedParameters");function Rp(e,t,r){let{default:n,__namedExportsOrder:o,...a}=e,i=Object.values(a)[0];if(Ar(i)){let u=zo(i.meta.input,r,t);Mo(u.parameters);let d={meta:u,stories:{},moduleExports:e};return Object.keys(a).forEach(m=>{if(Xr(m,u)){let p=Vo(m,a[m].input,u);Mo(p.parameters),d.stories[p.id]=p}}),d.projectAnnotations=i.meta.preview.composed,d}let s=zo(n,r,t);Mo(s.parameters);let l={meta:s,stories:{},moduleExports:e};return Object.keys(a).forEach(u=>{if(Xr(u,s)){let d=Vo(u,a[u],s);Mo(d.parameters),l.stories[d.id]=d}}),l}w(Rp,"processCSFFile");function Bp(e){return e!=null&&_p(e).includes("mount")}w(Bp,"mountDestructured");function _p(e){let t=e.toString().match(/[^(]*\(([^)]*)/);if(!t)return[];let r=Ji(t[1]);if(!r.length)return[];let n=r[0];return n.startsWith("{")&&n.endsWith("}")?Ji(n.slice(1,-1).replace(/\s/g,"")).map(o=>o.replace(/:.*|=.*/g,"")):[]}w(_p,"getUsedProps");function Ji(e){let t=[],r=[],n=0;for(let a=0;at(n,o)}w(Fp,"decorateStory");function Pp({componentId:e,title:t,kind:r,id:n,name:o,story:a,parameters:i,initialArgs:s,argTypes:l,...u}={}){return u}w(Pp,"sanitizeStoryContextUpdate");function Np(e,t){let r={},n=w(a=>i=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...Pp(i)},a(r.value)},"bindWithContext"),o=t.reduce((a,i)=>Fp(a,i,n),e);return a=>(r.value=a,o(a))}w(Np,"defaultDecorateStory");var Wr=w((...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((o,a)=>(Object.entries(a).forEach(([i,s])=>{let l=o[i];Array.isArray(s)||typeof l>"u"?o[i]=s:xt(s)&&xt(l)?t[i]=!0:typeof s<"u"&&(o[i]=s)}),o),{});return Object.keys(t).forEach(o=>{let a=r.filter(Boolean).map(i=>i[o]).filter(i=>typeof i<"u");a.every(i=>xt(i))?n[o]=Wr(...a):n[o]=a[a.length-1]}),n},"combineParameters");function ms(e,t,r){let{moduleExport:n,id:o,name:a}=e||{},i=hs(e,t,r),s=w(async O=>{let k={};for(let B of[be(r.loaders),be(t.loaders),be(e.loaders)]){if(O.abortSignal.aborted)return k;let P=await Promise.all(B.map(L=>L(O)));Object.assign(k,...P)}return k},"applyLoaders"),l=w(async O=>{let k=new Array;for(let B of[...be(r.beforeEach),...be(t.beforeEach),...be(e.beforeEach)]){if(O.abortSignal.aborted)return k;let P=await B(O);P&&k.push(P)}return k},"applyBeforeEach"),u=w(async O=>{let k=[...be(r.afterEach),...be(t.afterEach),...be(e.afterEach)].reverse();for(let B of k){if(O.abortSignal.aborted)return;await B(O)}},"applyAfterEach"),d=w(O=>O.originalStoryFn(O.args,O),"undecoratedStoryFn"),{applyDecorators:m=Np,runStep:p}=r,f=[...be(e?.decorators),...be(t?.decorators),...be(r?.decorators)],g=e?.userStoryFn||e?.render||t.render||r.render,y=JE(m)(d,f),E=w(O=>y(O),"unboundStoryFn"),b=e?.play??t?.play,x=Bp(b);if(!g&&!x)throw new Lo({id:o});let S=w(O=>async()=>(await O.renderToCanvas(),O.canvas),"defaultMount"),T=e.mount??t.mount??r.mount??S,_=r.testingLibraryRender;return{storyGlobals:{},...i,moduleExport:n,id:o,name:a,story:a,originalStoryFn:g,undecoratedStoryFn:d,unboundStoryFn:E,applyLoaders:s,applyBeforeEach:l,applyAfterEach:u,playFunction:b,runStep:p,mount:T,testingLibraryRender:_,renderToCanvas:r.renderToCanvas,usesMount:x}}w(ms,"prepareStory");function Lp(e,t,r){return{...hs(void 0,e,t),moduleExport:r}}w(Lp,"prepareMeta");function hs(e,t,r){let n=["dev","test"],o=H.DOCS_OPTIONS?.autodocs===!0?["autodocs"]:[],a=en(...n,...o,...r.tags??[],...t.tags??[],...e?.tags??[]),i=Wr(r.parameters,t.parameters,e?.parameters),{argTypesEnhancers:s=[],argsEnhancers:l=[]}=r,u=Wr(r.argTypes,t.argTypes,e?.argTypes);if(e){let b=e?.userStoryFn||e?.render||t.render||r.render;i.__isArgsStory=b&&b.length>0}let d={...r.args,...t.args,...e?.args},m={...t.globals,...e?.globals},p={componentId:t.id,title:t.title,kind:t.title,id:e?.id||t.id,name:e?.name||"__meta",story:e?.name||"__meta",component:t.component,subcomponents:t.subcomponents,tags:a,parameters:i,initialArgs:d,argTypes:u,storyGlobals:m};p.argTypes=s.reduce((b,x)=>x({...p,argTypes:b}),p.argTypes);let f={...d};p.initialArgs=[...l].reduce((b,x)=>({...b,...x({...p,initialArgs:b})}),f);let{name:g,story:y,...E}=p;return E}w(hs,"preparePartialAnnotations");function fs(e){let{args:t}=e,r={...e,allArgs:void 0,argsByTarget:void 0};if(H.FEATURES?.argTypeTargetsV7){let a=Cp(e);r={...e,allArgs:e.args,argsByTarget:a,args:a[Sp]||{}}}let n=Object.entries(r.args).reduce((a,[i,s])=>{if(!r.argTypes[i]?.mapping)return a[i]=s,a;let l=w(u=>{let d=r.argTypes[i].mapping;return d&&u in d?d[u]:u},"mappingFn");return a[i]=Array.isArray(s)?s.map(l):l(s),a},{}),o=Object.entries(n).reduce((a,[i,s])=>{let l=r.argTypes[i]||{};return Zr(l,n,r.globals)&&(a[i]=s),a},{});return{...r,unmappedArgs:t,args:o}}w(fs,"prepareContext");var Zi=w((e,t,r)=>{let n=typeof e;switch(n){case"boolean":case"string":case"number":case"function":case"symbol":return{name:n};default:break}return e?r.has(e)?(Z.warn(wt` We've detected a cycle in arg '${t}'. Args should be JSON-serializable. Consider using the mapping feature or fully custom args: - Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values - Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args `),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?Zi(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:Gr(e,o=>Zi(o,t,new Set(r)))}):{name:"object",value:{}}},"inferType"),jp=w(e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,o=Gr(n,(i,s)=>({name:s,type:Zi(i,`${t}.${s}`,new Set)})),a=Gr(r,(i,s)=>({name:s}));return Wr(o,a,r)},"inferArgTypes");jp.secondPass=!0;var Xd=w((e,t)=>Array.isArray(t)?t.includes(e):e.match(t),"matches"),Hv=w((e,t,r)=>!t&&!r?e:e&&vp(e,(n,o)=>{let a=n.name||o.toString();return!!(!t||Xd(a,t))&&(!r||!Xd(a,r))}),"filterArgTypes"),Vv=w((e,t,r)=>{let{type:n,options:o}=e;if(n){if(r.color&&r.color.test(t)){let a=n.name;if(a==="string")return{control:{type:"color"}};a!=="enum"&&Z.warn(`Addon controls: Control of type color only supports string, received "${a}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(n.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:a}=n;return{control:{type:a?.length<=5?"radio":"select"},options:a}}case"function":case"symbol":return null;default:return{control:{type:o?"select":"object"}}}}},"inferControl"),Mp=w(e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:o=null,matchers:a={}}={}}}=e;if(!r)return t;let i=Hv(t,n,o),s=Gr(i,(l,u)=>l?.type&&Vv(l,u.toString(),a));return Wr(s,i)},"inferControls");Mp.secondPass=!0;function Go({argTypes:e,globalTypes:t,argTypesEnhancers:r,decorators:n,loaders:o,beforeEach:a,afterEach:i,initialGlobals:s,...l}){return{...e&&{argTypes:Ho(e)},...t&&{globalTypes:Ho(t)},decorators:be(n),loaders:be(o),beforeEach:be(a),afterEach:be(i),argTypesEnhancers:[...r||[],jp,Mp],initialGlobals:s,...l}}w(Go,"normalizeProjectAnnotations");var zv=w(e=>async()=>{let t=[];for(let r of e){let n=await r();n&&t.unshift(n)}return async()=>{for(let r of t)await r()}},"composeBeforeAllHooks");function $p(e){return async(t,r,n)=>{await e.reduceRight((o,a)=>async()=>a(t,o,n),async()=>r(n))()}}w($p,"composeStepRunners");function Yr(e,t){return e.map(r=>r.default?.[t]??r[t]).filter(Boolean)}w(Yr,"getField");function jt(e,t,r={}){return Yr(e,t).reduce((n,o)=>{let a=be(o);return r.reverseFileOrder?[...a,...n]:[...n,...a]},[])}w(jt,"getArrayField");function Rn(e,t){return Object.assign({},...Yr(e,t))}w(Rn,"getObjectField");function Hr(e,t){return Yr(e,t).pop()}w(Hr,"getSingletonField");function Kr(e){let t=jt(e,"argTypesEnhancers"),r=Yr(e,"runStep"),n=jt(e,"beforeAll");return{parameters:Wr(...Yr(e,"parameters")),decorators:jt(e,"decorators",{reverseFileOrder:!(H.FEATURES?.legacyDecoratorFileOrder??!1)}),args:Rn(e,"args"),argsEnhancers:jt(e,"argsEnhancers"),argTypes:Rn(e,"argTypes"),argTypesEnhancers:[...t.filter(o=>!o.secondPass),...t.filter(o=>o.secondPass)],initialGlobals:Rn(e,"initialGlobals"),globalTypes:Rn(e,"globalTypes"),loaders:jt(e,"loaders"),beforeAll:zv(n),beforeEach:jt(e,"beforeEach"),afterEach:jt(e,"afterEach"),render:Hr(e,"render"),renderToCanvas:Hr(e,"renderToCanvas"),applyDecorators:Hr(e,"applyDecorators"),runStep:$p(r),tags:jt(e,"tags"),mount:Hr(e,"mount"),testingLibraryRender:Hr(e,"testingLibraryRender")}}w(Kr,"composeConfigs");function gs(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}w(gs,"isTestEnvironment");function ys(e=!0){if(!("document"in globalThis&&"createElement"in globalThis.document))return()=>{};let t=document.createElement("style");t.textContent=`*, *:before, *:after { animation: none !important; }`,document.head.appendChild(t);let r=document.createElement("style");return r.textContent=`*, *:before, *:after { animation-delay: 0s !important; animation-direction: ${e?"reverse":"normal"} !important; animation-play-state: paused !important; transition: none !important; }`,document.head.appendChild(r),document.body.clientHeight,document.head.removeChild(t),()=>{r.parentNode?.removeChild(r)}}w(ys,"pauseAnimations");async function bs(e){if(!("document"in globalThis&&"getAnimations"in globalThis.document&&"querySelectorAll"in globalThis.document))return;let t=!1;await Promise.race([new Promise(r=>{setTimeout(()=>{let n=[globalThis.document,...Es(globalThis.document)],o=w(async()=>{if(t||e?.aborted)return;let a=n.flatMap(i=>i?.getAnimations?.()||[]).filter(i=>i.playState==="running"&&!qp(i));a.length>0&&(await Promise.all(a.map(i=>i.finished)),await o())},"checkAnimationsFinished");o().then(r)},100)}),new Promise(r=>setTimeout(()=>{t=!0,r(void 0)},5e3))])}w(bs,"waitForAnimations");function Es(e){return[e,...e.querySelectorAll("*")].reduce((t,r)=>("shadowRoot"in r&&r.shadowRoot&&t.push(r.shadowRoot,...Es(r.shadowRoot)),t),[])}w(Es,"getShadowRoots");function qp(e){if(e instanceof CSSAnimation&&e.effect instanceof KeyframeEffect&&e.effect.target){let t=getComputedStyle(e.effect.target,e.effect.pseudoElement),r=t.animationName?.split(", ").indexOf(e.animationName);return t.animationIterationCount.split(", ")[r]==="infinite"}return!1}w(qp,"isInfiniteAnimation");var Up=class{constructor(){this.reports=[]}async addReport(t){this.reports.push(t)}};w(Up,"ReporterAPI");var Hp=Up;function Vp(e,t,r){return Ar(e)?{story:e.input,meta:e.meta.input,preview:e.meta.preview.composed}:{story:e,meta:t,preview:r}}w(Vp,"getCsfFactoryAnnotations");function Gv(e){globalThis.defaultProjectAnnotations=e}w(Gv,"setDefaultProjectAnnotations");var Wv="ComposedStory",Yv="Unnamed Story";function zp(e){return e?Kr([e]):{}}w(zp,"extractAnnotation");function Kv(e){let t=Array.isArray(e)?e:[e];return globalThis.globalProjectAnnotations=Kr([...Qr(),globalThis.defaultProjectAnnotations??{},Kr(t.map(zp))]),globalThis.globalProjectAnnotations??{}}w(Kv,"setProjectAnnotations");var nr=[];function Gp(e,t,r,n,o){if(e===void 0)throw new Error("Expected a story but received undefined.");t.title=t.title??Wv;let a=zo(t),i=o||e.storyName||e.story?.name||e.name||Yv,s=Vo(i,e,a),l=Go(Kr([n??globalThis.globalProjectAnnotations??{},r??{}])),u=ms(s,a,l),d={...kp(l.globalTypes),...l.initialGlobals,...u.storyGlobals},m=new Hp,p=w(()=>{let b=fs({hooks:new gp,globals:d,args:{...u.initialArgs},viewMode:"story",reporting:m,loaded:{},abortSignal:new AbortController().signal,step:w((x,S)=>u.runStep(x,S,b),"step"),canvasElement:null,canvas:{},userEvent:{},globalTypes:l.globalTypes,...u,context:null,mount:null});return b.parameters.__isPortableStory=!0,b.context=b,u.renderToCanvas&&(b.renderToCanvas=async()=>{let x=await u.renderToCanvas?.({componentId:u.componentId,title:u.title,id:u.id,name:u.name,tags:u.tags,showMain:w(()=>{},"showMain"),showError:w(S=>{throw new Error(`${S.title} ${S.description}`)},"showError"),showException:w(S=>{throw S},"showException"),forceRemount:!0,storyContext:b,storyFn:w(()=>u.unboundStoryFn(b),"storyFn"),unboundStoryFn:u.unboundStoryFn},b.canvasElement);x&&nr.push(x)}),b.mount=u.mount(b),b},"initializeContext"),f,g=w(async b=>{let x=p();return x.canvasElement??=globalThis?.document?.body,f&&(x.loaded=f.loaded),Object.assign(x,b),u.playFunction(x)},"play"),y=w(b=>{let x=p();return Object.assign(x,b),Wp(u,x)},"run"),E=u.playFunction?g:void 0;return Object.assign(w(function(b){let x=p();return f&&(x.loaded=f.loaded),x.args={...x.initialArgs,...b},u.unboundStoryFn(x)},"storyFn"),{id:u.id,storyName:i,load:w(async()=>{for(let x of[...nr].reverse())await x();nr.length=0;let b=p();b.loaded=await u.applyLoaders(b),nr.push(...(await u.applyBeforeEach(b)).filter(Boolean)),f=b},"load"),globals:d,args:u.initialArgs,parameters:u.parameters,argTypes:u.argTypes,play:E,run:y,reporting:m,tags:u.tags})}w(Gp,"composeStory");var Xv=w((e,t,r,n)=>Gp(e,t,r,{},n),"defaultComposeStory");function Jv(e,t,r=Xv){let{default:n,__esModule:o,__namedExportsOrder:a,...i}=e,s=n;return Object.entries(i).reduce((l,[u,d])=>{let{story:m,meta:p}=Vp(d);return!s&&p&&(s=p),Xr(u,s)?Object.assign(l,{[u]:r(m,s,t,u)}):l},{})}w(Jv,"composeStories");function Zv(e){return e.extend({mount:w(async({mount:t,page:r},n)=>{await n(async(o,...a)=>{if(!("__pw_type"in o)||"__pw_type"in o&&o.__pw_type!=="jsx")throw new Error(wt` Portable stories in Playwright CT only work when referencing JSX elements. Please use JSX format for your components such as: instead of: await mount(MyComponent, { props: { foo: 'bar' } }) do: await mount() More info: https://storybook.js.org/docs/api/portable-stories/portable-stories-playwright?ref=error `);let{props:i,...s}=o;await r.evaluate(async u=>{let d=await globalThis.__pwUnwrapObject?.(u);return("__pw_type"in d?d.type:d)?.load?.()},s);let l=await t(o,...a);return await r.evaluate(async u=>{let d=await globalThis.__pwUnwrapObject?.(u),m="__pw_type"in d?d.type:d,p=document.querySelector("#root");return m?.play?.({canvasElement:p})},s),l})},"mount")})}w(Zv,"createPlaywrightTest");async function Wp(e,t){for(let a of[...nr].reverse())await a();if(nr.length=0,!t.canvasElement){let a=document.createElement("div");globalThis?.document?.body?.appendChild(a),t.canvasElement=a,nr.push(()=>{globalThis?.document?.body?.contains(a)&&globalThis?.document?.body?.removeChild(a)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;nr.push(...(await e.applyBeforeEach(t)).filter(Boolean));let r=e.playFunction,n=e.usesMount;if(n||await t.mount(),t.abortSignal.aborted)return;r&&(n||(t.mount=async()=>{throw new qr({playFunction:r.toString()})}),await r(t));let o;gs()?o=ys():await bs(t.abortSignal),await e.applyAfterEach(t),await o?.()}w(Wp,"runStory");var Jd=1e3,Qv=1e4,Yp=class{constructor(t,r,n){this.importFn=r,this.storyIndex=new Nv(t),this.projectAnnotations=Go(Kr([...Qr(),n]));let{initialGlobals:o,globalTypes:a}=this.projectAnnotations;this.args=new Bv,this.userGlobals=new _v({globals:o,globalTypes:a}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,Ui.default)(Jd)(Rp),this.prepareMetaWithCache=(0,Ui.default)(Jd)(Lp),this.prepareStoryWithCache=(0,Ui.default)(Qv)(ms)}setProjectAnnotations(t){this.projectAnnotations=Go(t);let{initialGlobals:r,globalTypes:n}=t;this.userGlobals.set({globals:r,globalTypes:n})}async onStoriesChanged({importFn:t,storyIndex:r}){t&&(this.importFn=t),r&&(this.storyIndex.entries=r.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(t){return this.storyIndex.storyIdToEntry(t)}async loadCSFFileByStoryId(t){let{importPath:r,title:n}=this.storyIndex.storyIdToEntry(t),o=await this.importFn(r);return this.processCSFFileWithCache(o,r,n)}async loadAllCSFFiles(){let t={};return Object.entries(this.storyIndex.entries).forEach(([r,{importPath:n}])=>{t[n]=r}),(await Promise.all(Object.entries(t).map(async([r,n])=>({importPath:r,csfFile:await this.loadCSFFileByStoryId(n)})))).reduce((r,{importPath:n,csfFile:o})=>(r[n]=o,r),{})}async cacheAllCSFFiles(){this.cachedCSFFiles=await this.loadAllCSFFiles()}preparedMetaFromCSFFile({csfFile:t}){let r=t.meta;return this.prepareMetaWithCache(r,this.projectAnnotations,t.moduleExports.default)}async loadStory({storyId:t}){let r=await this.loadCSFFileByStoryId(t);return this.storyFromCSFFile({storyId:t,csfFile:r})}storyFromCSFFile({storyId:t,csfFile:r}){let n=r.stories[t];if(!n)throw new $d({storyId:t});let o=r.meta,a=this.prepareStoryWithCache(n,o,r.projectAnnotations??this.projectAnnotations);return this.args.setInitial(a),this.hooks[a.id]=this.hooks[a.id]||new gp,a}componentStoriesFromCSFFile({csfFile:t}){return Object.keys(this.storyIndex.entries).filter(r=>!!t.stories[r]).map(r=>this.storyFromCSFFile({storyId:r,csfFile:t}))}async loadEntry(t){let r=await this.storyIdToEntry(t),n=r.type==="docs"?r.storiesImports:[],[o,...a]=await Promise.all([this.importFn(r.importPath),...n.map(i=>{let s=this.storyIndex.importPathToEntry(i);return this.loadCSFFileByStoryId(s.id)})]);return{entryExports:o,csfFiles:a}}getStoryContext(t,{forceInitialArgs:r=!1}={}){let n=this.userGlobals.get(),{initialGlobals:o}=this.userGlobals,a=new Hp;return fs({...t,args:r?t.initialArgs:this.args.get(t.id),initialGlobals:o,globalTypes:this.projectAnnotations.globalTypes,userGlobals:n,reporting:a,globals:{...n,...t.storyGlobals},hooks:this.hooks[t.id]})}addCleanupCallbacks(t,...r){this.cleanupCallbacks[t.id]=(this.cleanupCallbacks[t.id]||[]).concat(r)}async cleanupStory(t){this.hooks[t.id].clean();let r=this.cleanupCallbacks[t.id];if(r)for(let n of[...r].reverse())await n();delete this.cleanupCallbacks[t.id]}extract(t={includeDocsOnly:!1}){let{cachedCSFFiles:r}=this;if(!r)throw new Td;return Object.entries(this.storyIndex.entries).reduce((n,[o,{type:a,importPath:i}])=>{if(a==="docs")return n;let s=r[i],l=this.storyFromCSFFile({storyId:o,csfFile:s});return!t.includeDocsOnly&&l.parameters.docsOnly||(n[o]=Object.entries(l).reduce((u,[d,m])=>d==="moduleExport"||typeof m=="function"?u:Array.isArray(m)?Object.assign(u,{[d]:m.slice().sort()}):Object.assign(u,{[d]:m}),{args:l.initialArgs,globals:{...this.userGlobals.initialGlobals,...this.userGlobals.globals,...l.storyGlobals}})),n},{})}};w(Yp,"StoryStore");var eA=Yp;function Kp(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}w(Kp,"slash");var tA=w(e=>{if(e.length===0)return e;let t=e[e.length-1],r=t?.replace(/(?:[.](?:story|stories))?([.][^.]+)$/i,"");if(e.length===1)return[r];let n=e[e.length-2];return r&&n&&r.toLowerCase()===n.toLowerCase()?[...e.slice(0,-2),r]:r&&(/^(story|stories)([.][^.]+)$/i.test(t)||/^index$/i.test(r))?e.slice(0,-1):[...e.slice(0,-1),r]},"sanitize");function Qi(e){return e.flatMap(t=>t.split("/")).filter(Boolean).join("/")}w(Qi,"pathJoin");var rA=w((e,t,r)=>{let{directory:n,importPathMatcher:o,titlePrefix:a=""}=t||{};typeof e=="number"&&yt.warn(wt` CSF Auto-title received a numeric fileName. This typically happens when webpack is mis-configured in production mode. To force webpack to produce filenames, set optimization.moduleIds = "named" in your webpack config. `);let i=Kp(String(e));if(o.exec(i)){if(!r){let s=i.replace(n,""),l=Qi([a,s]).split("/");return l=tA(l),l.join("/")}return a?Qi([a,r]):r}},"userOrAutoTitleFromSpecifier"),N6=w((e,t,r)=>{for(let n=0;n(t,r)=>{if(t.title===r.title&&!e.includeNames)return 0;let n=e.method||"configure",o=e.order||[],a=t.title.trim().split(Zd),i=r.title.trim().split(Zd);e.includeNames&&(a.push(t.name),i.push(r.name));let s=0;for(;a[s]||i[s];){if(!a[s])return-1;if(!i[s])return 1;let l=a[s],u=i[s];if(l!==u){let m=o.indexOf(l),p=o.indexOf(u),f=o.indexOf("*");return m!==-1||p!==-1?(m===-1&&(f!==-1?m=f:m=o.length),p===-1&&(f!==-1?p=f:p=o.length),m-p):n==="configure"?0:l.localeCompare(u,e.locales?e.locales:void 0,{numeric:!0,sensitivity:"accent"})}let d=o.indexOf(l);d===-1&&(d=o.indexOf("*")),o=d!==-1&&Array.isArray(o[d+1])?o[d+1]:[],s+=1}return 0},"storySort"),oA=w((e,t,r)=>{if(t){let n;typeof t=="function"?n=t:n=nA(t),e.sort(n)}else e.sort((n,o)=>r.indexOf(n.importPath)-r.indexOf(o.importPath));return e},"sortStoriesCommon"),L6=w((e,t,r)=>{try{return oA(e,t,r)}catch(n){throw new Error(wt` Error sorting stories with sort parameter ${t}: > ${n.message} Are you using a V6-style sort function in V7 mode? More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort `)}},"sortStoriesV7"),Ko=new Error("prepareAborted"),{AbortController:Qd}=globalThis;function es(e){try{let{name:t="Error",message:r=String(e),stack:n}=e;return{name:t,message:r,stack:n}}catch{return{name:"Error",message:String(e)}}}w(es,"serializeError");var Xp=class{constructor(t,r,n,o,a,i,s={autoplay:!0,forceInitialArgs:!1},l){this.channel=t,this.store=r,this.renderToScreen=n,this.callbacks=o,this.id=a,this.viewMode=i,this.renderOptions=s,this.type="story",this.notYetRendered=!0,this.rerenderEnqueued=!1,this.disableKeyListeners=!1,this.teardownRender=w(()=>{},"teardownRender"),this.torndown=!1,this.abortController=new Qd,this.renderId=Date.now(),l&&(this.story=l,this.phase="preparing")}async runPhase(t,r,n){this.phase=r,this.channel.emit(gt,{newPhase:this.phase,renderId:this.renderId,storyId:this.id}),n&&(await n(),this.checkIfAborted(t))}checkIfAborted(t){return t.aborted?(this.phase="aborted",this.channel.emit(gt,{newPhase:this.phase,renderId:this.renderId,storyId:this.id}),!0):!1}async prepare(){if(await this.runPhase(this.abortController.signal,"preparing",async()=>{this.story=await this.store.loadStory({storyId:this.id})}),this.abortController.signal.aborted)throw await this.store.cleanupStory(this.story),Ko}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}isPreparing(){return["preparing"].includes(this.phase)}isPending(){return["loading","beforeEach","rendering","playing","afterEach"].includes(this.phase)}async renderToElement(t){return this.canvasElement=t,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw new Error("Cannot call storyContext before preparing");let{forceInitialArgs:t}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:t})}async render({initial:t=!1,forceRemount:r=!1}={}){let{canvasElement:n}=this;if(!this.story)throw new Error("cannot render when not prepared");let o=this.story;if(!n)throw new Error("cannot render when canvasElement is unset");let{id:a,componentId:i,title:s,name:l,tags:u,applyLoaders:d,applyBeforeEach:m,applyAfterEach:p,unboundStoryFn:f,playFunction:g,runStep:y}=o;r&&!t&&(this.cancelRender(),this.abortController=new Qd);let E=this.abortController.signal,b=!1,x=o.usesMount;try{let S={...this.storyContext(),viewMode:this.viewMode,abortSignal:E,canvasElement:n,loaded:{},step:w(($,v)=>y($,v,S),"step"),context:null,canvas:{},userEvent:{},renderToCanvas:w(async()=>{let $=await this.renderToScreen(T,n);this.teardownRender=$||(()=>{}),b=!0},"renderToCanvas"),mount:w(async(...$)=>{this.callbacks.showStoryDuringRender?.();let v=null;return await this.runPhase(E,"rendering",async()=>{v=await o.mount(S)(...$)}),x&&await this.runPhase(E,"playing"),v},"mount")};S.context=S;let T={componentId:i,title:s,kind:s,id:a,name:l,story:l,tags:u,...this.callbacks,showError:w($=>(this.phase="errored",this.callbacks.showError($)),"showError"),showException:w($=>(this.phase="errored",this.callbacks.showException($)),"showException"),forceRemount:r||this.notYetRendered,storyContext:S,storyFn:w(()=>f(S),"storyFn"),unboundStoryFn:f};if(await this.runPhase(E,"loading",async()=>{S.loaded=await d(S)}),E.aborted)return;let _=await m(S);if(this.store.addCleanupCallbacks(o,..._),this.checkIfAborted(E)||(!b&&!x&&await S.mount(),this.notYetRendered=!1,E.aborted))return;let O=this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors===!0,k=new Set,B=w($=>{$.error&&k.add($.error)},"onError"),P=w($=>{$.reason&&k.add($.reason)},"onUnhandledRejection");if(this.renderOptions.autoplay&&r&&g&&this.phase!=="errored"){window?.addEventListener?.("error",B),window?.addEventListener?.("unhandledrejection",P),this.disableKeyListeners=!0;try{if(x?await g(S):(S.mount=async()=>{throw new qr({playFunction:g.toString()})},await this.runPhase(E,"playing",async()=>g(S))),!b)throw new Gd;this.checkIfAborted(E),!O&&k.size>0?await this.runPhase(E,"errored"):await this.runPhase(E,"played")}catch($){if(this.callbacks.showStoryDuringRender?.(),await this.runPhase(E,"errored",async()=>{this.channel.emit(ko,es($))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw $;console.error($)}if(!O&&k.size>0&&this.channel.emit(_o,Array.from(k).map(es)),this.disableKeyListeners=!1,window?.removeEventListener?.("unhandledrejection",P),window?.removeEventListener?.("error",B),E.aborted)return}await this.runPhase(E,"completing",async()=>{gs()?this.store.addCleanupCallbacks(o,ys()):await bs(E)}),await this.runPhase(E,"completed",async()=>{this.channel.emit(rr,a)}),this.phase!=="errored"&&await this.runPhase(E,"afterEach",async()=>{await p(S)});let L=!O&&k.size>0,j=S.reporting.reports.some($=>$.status==="failed"),U=L||j;await this.runPhase(E,"finished",async()=>this.channel.emit(Pi,{storyId:a,status:U?"error":"success",reporters:S.reporting.reports}))}catch(S){this.phase="errored",this.callbacks.showException(S),await this.runPhase(E,"finished",async()=>this.channel.emit(Pi,{storyId:a,status:"error",reporters:[]}))}this.rerenderEnqueued&&(this.rerenderEnqueued=!1,this.render())}async rerender(){if(this.isPending()&&this.phase!=="playing")this.rerenderEnqueued=!0;else return this.render()}async remount(){return await this.teardown(),this.render({forceRemount:!0})}cancelRender(){this.abortController.abort()}cancelPlayFunction(){this.phase==="playing"&&(this.abortController.abort(),this.runPhase(this.abortController.signal,"aborted"))}async teardown(){this.torndown=!0,this.cancelRender(),this.story&&await this.store.cleanupStory(this.story);for(let t=0;t<3;t+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(r=>setTimeout(r,0))}window?.location?.reload?.(),await new Promise(()=>{})}};w(Xp,"StoryRender");var ts=Xp,{fetch:aA}=H,iA="./index.json",Jp=class{constructor(t,r,n=ut.getChannel(),o=!0){this.importFn=t,this.getProjectAnnotations=r,this.channel=n,this.storyRenders=[],this.storeInitializationPromise=new Promise((a,i)=>{this.resolveStoreInitializationPromise=a,this.rejectStoreInitializationPromise=i}),o&&this.initialize()}get storyStore(){return new Proxy({},{get:w((t,r)=>{if(this.storyStoreValue)return $r("Accessing the Story Store is deprecated and will be removed in 9.0"),this.storyStoreValue[r];throw new Ud},"get")})}async initialize(){this.setupListeners();try{let t=await this.getProjectAnnotationsOrRenderError();await this.runBeforeAllHook(t),await this.initializeWithProjectAnnotations(t)}catch(t){this.rejectStoreInitializationPromise(t)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(fd,this.onStoryIndexChanged.bind(this)),this.channel.on(Fo,this.onUpdateGlobals.bind(this)),this.channel.on(Po,this.onUpdateArgs.bind(this)),this.channel.on(id,this.onRequestArgTypesInfo.bind(this)),this.channel.on(Oo,this.onResetArgs.bind(this)),this.channel.on(To,this.onForceReRender.bind(this)),this.channel.on(br,this.onForceRemount.bind(this)),this.channel.on(hd,this.onStoryHotUpdated.bind(this))}async getProjectAnnotationsOrRenderError(){try{let t=await this.getProjectAnnotations();if(this.renderToCanvas=t.renderToCanvas,!this.renderToCanvas)throw new Od;return t}catch(t){throw this.renderPreviewEntryError("Error reading preview.js:",t),t}}async initializeWithProjectAnnotations(t){this.projectAnnotationsBeforeInitialization=t;try{let r=await this.getStoryIndexFromServer();return this.initializeWithStoryIndex(r)}catch(r){throw this.renderPreviewEntryError("Error loading story index:",r),r}}async runBeforeAllHook(t){try{await this.beforeAllCleanup?.(),this.beforeAllCleanup=await t.beforeAll?.()}catch(r){throw this.renderPreviewEntryError("Error in beforeAll hook:",r),r}}async getStoryIndexFromServer(){let t=await aA(iA);if(t.status===200)return t.json();throw new Bd({text:await t.text()})}initializeWithStoryIndex(t){if(!this.projectAnnotationsBeforeInitialization)throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");this.storyStoreValue=new eA(t,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new rt({methodName:"emitGlobals"});let t={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(dd,t)}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){delete this.previewEntryError,this.getProjectAnnotations=t;let r=await this.getProjectAnnotationsOrRenderError();if(await this.runBeforeAllHook(r),!this.storyStoreValue){await this.initializeWithProjectAnnotations(r);return}this.storyStoreValue.setProjectAnnotations(r),this.emitGlobals()}async onStoryIndexChanged(){if(delete this.previewEntryError,!(!this.storyStoreValue&&!this.projectAnnotationsBeforeInitialization))try{let t=await this.getStoryIndexFromServer();if(this.projectAnnotationsBeforeInitialization){this.initializeWithStoryIndex(t);return}await this.onStoriesChanged({storyIndex:t})}catch(t){throw this.renderPreviewEntryError("Error loading story index:",t),t}}async onStoriesChanged({importFn:t,storyIndex:r}){if(!this.storyStoreValue)throw new rt({methodName:"onStoriesChanged"});await this.storyStoreValue.onStoriesChanged({importFn:t,storyIndex:r})}async onUpdateGlobals({globals:t,currentStory:r}){if(this.storyStoreValue||await this.storeInitializationPromise,!this.storyStoreValue)throw new rt({methodName:"onUpdateGlobals"});if(this.storyStoreValue.userGlobals.update(t),r){let{initialGlobals:n,storyGlobals:o,userGlobals:a,globals:i}=this.storyStoreValue.getStoryContext(r);this.channel.emit(Mr,{initialGlobals:n,userGlobals:a,storyGlobals:o,globals:i})}else{let{initialGlobals:n,globals:o}=this.storyStoreValue.userGlobals;this.channel.emit(Mr,{initialGlobals:n,userGlobals:o,storyGlobals:{},globals:o})}await Promise.all(this.storyRenders.map(n=>n.rerender()))}async onUpdateArgs({storyId:t,updatedArgs:r}){if(!this.storyStoreValue)throw new rt({methodName:"onUpdateArgs"});this.storyStoreValue.args.update(t,r),await Promise.all(this.storyRenders.filter(n=>n.id===t&&!n.renderOptions.forceInitialArgs).map(n=>n.story&&n.story.usesMount?n.remount():n.rerender())),this.channel.emit(pd,{storyId:t,args:this.storyStoreValue.args.get(t)})}async onRequestArgTypesInfo({id:t,payload:r}){try{await this.storeInitializationPromise;let n=await this.storyStoreValue?.loadStory(r);this.channel.emit(Bi,{id:t,success:!0,payload:{argTypes:n?.argTypes||{}},error:null})}catch(n){this.channel.emit(Bi,{id:t,success:!1,error:n?.message})}}async onResetArgs({storyId:t,argNames:r}){if(!this.storyStoreValue)throw new rt({methodName:"onResetArgs"});let n=this.storyRenders.find(a=>a.id===t)?.story||await this.storyStoreValue.loadStory({storyId:t}),o=(r||[...new Set([...Object.keys(n.initialArgs),...Object.keys(this.storyStoreValue.args.get(t))])]).reduce((a,i)=>(a[i]=n.initialArgs[i],a),{});await this.onUpdateArgs({storyId:t,updatedArgs:o})}async onForceReRender(){await Promise.all(this.storyRenders.map(t=>t.rerender()))}async onForceRemount({storyId:t}){await Promise.all(this.storyRenders.filter(r=>r.id===t).map(r=>r.remount()))}async onStoryHotUpdated(){await Promise.all(this.storyRenders.map(t=>t.cancelPlayFunction()))}renderStoryToElement(t,r,n,o){if(!this.renderToCanvas||!this.storyStoreValue)throw new rt({methodName:"renderStoryToElement"});let a=new ts(this.channel,this.storyStoreValue,this.renderToCanvas,n,t.id,"docs",o,t);return a.renderToElement(r),this.storyRenders.push(a),async()=>{await this.teardownRender(a)}}async teardownRender(t,{viewModeChanged:r}={}){this.storyRenders=this.storyRenders.filter(n=>n!==t),await t?.teardown?.({viewModeChanged:r})}async loadStory({storyId:t}){if(!this.storyStoreValue)throw new rt({methodName:"loadStory"});return this.storyStoreValue.loadStory({storyId:t})}getStoryContext(t,{forceInitialArgs:r=!1}={}){if(!this.storyStoreValue)throw new rt({methodName:"getStoryContext"});return this.storyStoreValue.getStoryContext(t,{forceInitialArgs:r})}async extract(t){if(!this.storyStoreValue)throw new rt({methodName:"extract"});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(t)}renderPreviewEntryError(t,r){this.previewEntryError=r,Z.error(t),Z.error(r),this.channel.emit(sd,r)}};w(Jp,"Preview");var sA=Jp,lA=!1,Hi="Invariant failed";function $o(e,t){if(!e){if(lA)throw new Error(Hi);var r=typeof t=="function"?t():t,n=r?"".concat(Hi,": ").concat(r):Hi;throw new Error(n)}}w($o,"invariant");var Zp=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.renderStoryToElement=n,this.storyIdByName=w(a=>{let i=this.nameToStoryId.get(a);if(i)return i;throw new Error(`No story found with that name: ${a}`)},"storyIdByName"),this.componentStories=w(()=>this.componentStoriesValue,"componentStories"),this.componentStoriesFromCSFFile=w(a=>this.store.componentStoriesFromCSFFile({csfFile:a}),"componentStoriesFromCSFFile"),this.storyById=w(a=>{if(!a){if(!this.primaryStory)throw new Error("No primary story defined for docs entry. Did you forget to use ``?");return this.primaryStory}let i=this.storyIdToCSFFile.get(a);if(!i)throw new Error(`Called \`storyById\` for story that was never loaded: ${a}`);return this.store.storyFromCSFFile({storyId:a,csfFile:i})},"storyById"),this.getStoryContext=w(a=>({...this.store.getStoryContext(a),loaded:{},viewMode:"docs"}),"getStoryContext"),this.loadStory=w(a=>this.store.loadStory({storyId:a}),"loadStory"),this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,o.forEach((a,i)=>{this.referenceCSFFile(a)})}referenceCSFFile(t){this.exportsToCSFFile.set(t.moduleExports,t),this.exportsToCSFFile.set(t.moduleExports.default,t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(r=>{let n=t.stories[r.id];this.storyIdToCSFFile.set(n.id,t),this.exportToStory.set(n.moduleExport,r)})}attachCSFFile(t){if(!this.exportsToCSFFile.has(t.moduleExports))throw new Error("Cannot attach a CSF file that has not been referenced");this.attachedCSFFiles.has(t)||(this.attachedCSFFiles.add(t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(r=>{this.nameToStoryId.set(r.name,r.id),this.componentStoriesValue.push(r),this.primaryStory||(this.primaryStory=r)}))}referenceMeta(t,r){let n=this.resolveModuleExport(t);if(n.type!=="meta")throw new Error(" must reference a CSF file module export or meta export. Did you mistakenly reference your component instead of your CSF file?");r&&this.attachCSFFile(n.csfFile)}get projectAnnotations(){let{projectAnnotations:t}=this.store;if(!t)throw new Error("Can't get projectAnnotations from DocsContext before they are initialized");return t}resolveAttachedModuleExportType(t){if(t==="story"){if(!this.primaryStory)throw new Error("No primary story attached to this docs file, did you forget to use ?");return{type:"story",story:this.primaryStory}}if(this.attachedCSFFiles.size===0)throw new Error("No CSF file attached to this docs file, did you forget to use ?");let r=Array.from(this.attachedCSFFiles)[0];if(t==="meta")return{type:"meta",csfFile:r};let{component:n}=r.meta;if(!n)throw new Error("Attached CSF file does not defined a component, did you forget to export one?");return{type:"component",component:n}}resolveModuleExport(t){let r=this.exportsToCSFFile.get(t);if(r)return{type:"meta",csfFile:r};let n=this.exportToStory.get(Ar(t)?t.input:t);return n?{type:"story",story:n}:{type:"component",component:t}}resolveOf(t,r=[]){let n;if(["component","meta","story"].includes(t)){let o=t;n=this.resolveAttachedModuleExportType(o)}else n=this.resolveModuleExport(t);if(r.length&&!r.includes(n.type)){let o=n.type==="component"?"component or unknown":n.type;throw new Error(wt`Invalid value passed to the 'of' prop. The value was resolved to a '${o}' type but the only types for this block are: ${r.join(", ")}. - Did you pass a component to the 'of' prop when the block only supports a story or a meta? - ... or vice versa? - Did you pass a story, CSF file or meta to the 'of' prop that is not indexed, ie. is not targeted by the 'stories' globs in the main configuration?`)}switch(n.type){case"component":return{...n,projectAnnotations:this.projectAnnotations};case"meta":return{...n,preparedMeta:this.store.preparedMetaFromCSFFile({csfFile:n.csfFile})};case"story":default:return n}}};w(Zp,"DocsContext");var Qp=Zp,em=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.entry=n,this.callbacks=o,this.type="docs",this.subtype="csf",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=n.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Ko;let{importPath:n,title:o}=this.entry,a=this.store.processCSFFileWithCache(t,n,o),i=Object.keys(a.stories)[0];this.story=this.store.storyFromCSFFile({storyId:i,csfFile:a}),this.csfFiles=[a,...r],this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let r=new Qp(this.channel,this.store,t,this.csfFiles);return this.csfFiles.forEach(n=>r.attachCSFFile(n)),r}async renderToElement(t,r){if(!this.story||!this.csfFiles)throw new Error("Cannot render docs before preparing");let n=this.docsContext(r),{docs:o}=this.story.parameters||{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let a=await o.renderer(),{render:i}=a,s=w(async()=>{try{await i(n,o,t),this.channel.emit(Do,this.id)}catch(l){this.callbacks.showException(l)}},"renderDocs");return this.rerender=async()=>s(),this.teardownRender=async({viewModeChanged:l})=>{!l||!t||a.unmount(t)},s()}async teardown({viewModeChanged:t}={}){this.teardownRender?.({viewModeChanged:t}),this.torndown=!0}};w(em,"CsfDocsRender");var ep=em,tm=class{constructor(t,r,n,o){this.channel=t,this.store=r,this.entry=n,this.callbacks=o,this.type="docs",this.subtype="mdx",this.torndown=!1,this.disableKeyListeners=!1,this.preparing=!1,this.id=n.id,this.renderId=Date.now()}isPreparing(){return this.preparing}async prepare(){this.preparing=!0;let{entryExports:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Ko;this.csfFiles=r,this.exports=t,this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.exports&&this.exports===t.exports)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");return new Qp(this.channel,this.store,t,this.csfFiles)}async renderToElement(t,r){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw new Error("Cannot render docs before preparing");let n=this.docsContext(r),{docs:o}=this.store.projectAnnotations.parameters??{};if(!o)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let a={...o,page:this.exports.default},i=await o.renderer(),{render:s}=i,l=w(async()=>{try{await s(n,a,t),this.channel.emit(Do,this.id)}catch(u){this.callbacks.showException(u)}},"renderDocs");return this.rerender=async()=>l(),this.teardownRender=async({viewModeChanged:u}={})=>{!u||!t||(i.unmount(t),this.torndown=!0)},l()}async teardown({viewModeChanged:t}={}){this.teardownRender?.({viewModeChanged:t}),this.torndown=!0}};w(tm,"MdxDocsRender");var tp=tm,uA=globalThis;function rm(e){let t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null}w(rm,"focusInInput");var nm="attached-mdx",cA="unattached-mdx";function om({tags:e}){return e?.includes(cA)||e?.includes(nm)}w(om,"isMdxEntry");function qo(e){return e.type==="story"}w(qo,"isStoryRender");function am(e){return e.type==="docs"}w(am,"isDocsRender");function im(e){return am(e)&&e.subtype==="csf"}w(im,"isCsfDocsRender");var sm=class extends sA{constructor(t,r,n,o){super(t,r,void 0,!1),this.importFn=t,this.getProjectAnnotations=r,this.selectionStore=n,this.view=o,this.initialize()}setupListeners(){super.setupListeners(),uA.onkeydown=this.onKeydown.bind(this),this.channel.on(Ro,this.onSetCurrentStory.bind(this)),this.channel.on(Ed,this.onUpdateQueryParams.bind(this)),this.channel.on(ud,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new rt({methodName:"setInitialGlobals"});let{globals:t}=this.selectionStore.selectionSpecifier||{};t&&this.storyStoreValue.userGlobals.updateFromPersisted(t),this.emitGlobals()}async initializeWithStoryIndex(t){return await super.initializeWithStoryIndex(t),this.selectSpecifiedStory()}async selectSpecifiedStory(){if(!this.storyStoreValue)throw new rt({methodName:"selectSpecifiedStory"});if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}let{storySpecifier:t,args:r}=this.selectionStore.selectionSpecifier,n=this.storyStoreValue.storyIndex.entryFromSpecifier(t);if(!n){t==="*"?this.renderStoryLoadingException(t,new Nd):this.renderStoryLoadingException(t,new jd({storySpecifier:t.toString()}));return}let{id:o,type:a}=n;this.selectionStore.setSelection({storyId:o,viewMode:a}),this.channel.emit(yd,this.selectionStore.selection),this.channel.emit(_i,this.selectionStore.selection),await this.renderSelection({persistedArgs:r})}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){await super.onGetProjectAnnotationsChanged({getProjectAnnotations:t}),this.selectionStore.selection&&this.renderSelection()}async onStoriesChanged({importFn:t,storyIndex:r}){await super.onStoriesChanged({importFn:t,storyIndex:r}),this.selectionStore.selection?await this.renderSelection():await this.selectSpecifiedStory()}onKeydown(t){if(!this.storyRenders.find(r=>r.disableKeyListeners)&&!rm(t)){let{altKey:r,ctrlKey:n,metaKey:o,shiftKey:a,key:i,code:s,keyCode:l}=t;this.channel.emit(cd,{event:{altKey:r,ctrlKey:n,metaKey:o,shiftKey:a,key:i,code:s,keyCode:l}})}}async onSetCurrentStory(t){this.selectionStore.setSelection({viewMode:"story",...t}),await this.storeInitializationPromise,this.channel.emit(_i,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(t){this.selectionStore.setQueryParams(t)}async onUpdateGlobals({globals:t}){let r=this.currentRender instanceof ts&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:t,currentStory:r}),(this.currentRender instanceof tp||this.currentRender instanceof ep)&&await this.currentRender.rerender?.()}async onUpdateArgs({storyId:t,updatedArgs:r}){super.onUpdateArgs({storyId:t,updatedArgs:r})}async onPreloadStories({ids:t}){await this.storeInitializationPromise,this.storyStoreValue&&await Promise.allSettled(t.map(r=>this.storyStoreValue?.loadEntry(r)))}async renderSelection({persistedArgs:t}={}){let{renderToCanvas:r}=this;if(!this.storyStoreValue||!r)throw new rt({methodName:"renderSelection"});let{selection:n}=this.selectionStore;if(!n)throw new Error("Cannot call renderSelection as no selection was made");let{storyId:o}=n,a;try{a=await this.storyStoreValue.storyIdToEntry(o)}catch(p){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(o,p);return}let i=this.currentSelection?.storyId!==o,s=this.currentRender?.type!==a.type;a.type==="story"?this.view.showPreparingStory({immediate:s}):this.view.showPreparingDocs({immediate:s}),this.currentRender?.isPreparing()&&await this.teardownRender(this.currentRender);let l;a.type==="story"?l=new ts(this.channel,this.storyStoreValue,r,this.mainStoryCallbacks(o),o,"story"):om(a)?l=new tp(this.channel,this.storyStoreValue,a,this.mainStoryCallbacks(o)):l=new ep(this.channel,this.storyStoreValue,a,this.mainStoryCallbacks(o));let u=this.currentSelection;this.currentSelection=n;let d=this.currentRender;this.currentRender=l;try{await l.prepare()}catch(p){d&&await this.teardownRender(d),p!==Ko&&this.renderStoryLoadingException(o,p);return}let m=!i&&d&&!l.isEqual(d);if(t&&qo(l)&&($o(!!l.story),this.storyStoreValue.args.updateFromPersisted(l.story,t)),d&&!d.torndown&&!i&&!m&&!s){this.currentRender=d,this.channel.emit(bd,o),this.view.showMain();return}if(d&&await this.teardownRender(d,{viewModeChanged:s}),u&&(i||s)&&this.channel.emit(Er,o),qo(l)){$o(!!l.story);let{parameters:p,initialArgs:f,argTypes:g,unmappedArgs:y,initialGlobals:E,userGlobals:b,storyGlobals:x,globals:S}=this.storyStoreValue.getStoryContext(l.story);this.channel.emit(gd,{id:o,parameters:p,initialArgs:f,argTypes:g,args:y}),this.channel.emit(Mr,{userGlobals:b,storyGlobals:x,globals:S,initialGlobals:E})}else{let{parameters:p}=this.storyStoreValue.projectAnnotations,{initialGlobals:f,globals:g}=this.storyStoreValue.userGlobals;if(this.channel.emit(Mr,{globals:g,initialGlobals:f,storyGlobals:{},userGlobals:g}),im(l)||l.entry.tags?.includes(nm)){if(!l.csfFiles)throw new Fd({storyId:o});({parameters:p}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:l.csfFiles[0]}))}this.channel.emit(ld,{id:o,parameters:p})}qo(l)?($o(!!l.story),this.storyRenders.push(l),this.currentRender.renderToElement(this.view.prepareForStory(l.story))):this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(t,{viewModeChanged:r=!1}={}){this.storyRenders=this.storyRenders.filter(n=>n!==t),await t?.teardown?.({viewModeChanged:r})}mainStoryCallbacks(t){return{showStoryDuringRender:w(()=>this.view.showStoryDuringRender(),"showStoryDuringRender"),showMain:w(()=>this.view.showMain(),"showMain"),showError:w(r=>this.renderError(t,r),"showError"),showException:w(r=>this.renderException(t,r),"showException")}}renderPreviewEntryError(t,r){super.renderPreviewEntryError(t,r),this.view.showErrorDisplay(r)}renderMissingStory(){this.view.showNoPreview(),this.channel.emit(Ni)}renderStoryLoadingException(t,r){Z.error(r),this.view.showErrorDisplay(r),this.channel.emit(Ni,t)}renderException(t,r){let{name:n="Error",message:o=String(r),stack:a}=r,i=this.currentRender?.renderId;this.channel.emit(Bo,{name:n,message:o,stack:a}),this.channel.emit(gt,{newPhase:"errored",renderId:i,storyId:t}),this.view.showErrorDisplay(r),Z.error(`Error rendering story '${t}':`),Z.error(r)}renderError(t,{title:r,description:n}){let o=this.currentRender?.renderId;this.channel.emit(md,{title:r,description:n}),this.channel.emit(gt,{newPhase:"errored",renderId:o,storyId:t}),this.view.showErrorDisplay({message:r,stack:n}),Z.error(`Error rendering story ${r}: ${n}`)}};w(sm,"PreviewWithSelection");var dA=sm,rs=Jr(ss(),1),pA=Jr(ss(),1),rp=/^[a-zA-Z0-9 _-]*$/,lm=/^-?[0-9]+(\.[0-9]+)?$/,mA=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,um=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,ns=w((e="",t)=>e===null||e===""||!rp.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?rp.test(t)||lm.test(t)||mA.test(t)||um.test(t):Array.isArray(t)?t.every(r=>ns(e,r)):xt(t)?Object.entries(t).every(([r,n])=>ns(r,n)):!1,"validateArgs"),hA={delimiter:";",nesting:!0,arrayRepeat:!0,arrayRepeatSyntax:"bracket",nestingSyntax:"js",valueDeserializer(e){if(e.startsWith("!")){if(e==="!undefined")return;if(e==="!null")return null;if(e==="!true")return!0;if(e==="!false")return!1;if(e.startsWith("!date(")&&e.endsWith(")"))return new Date(e.replaceAll(" ","+").slice(6,-1));if(e.startsWith("!hex(")&&e.endsWith(")"))return`#${e.slice(5,-1)}`;let t=e.slice(1).match(um);if(t)return e.startsWith("!rgba")||e.startsWith("!RGBA")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]}, ${t[5]})`:e.startsWith("!hsla")||e.startsWith("!HSLA")?`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%, ${t[5]})`:e.startsWith("!rgb")||e.startsWith("!RGB")?`${t[1]}(${t[2]}, ${t[3]}, ${t[4]})`:`${t[1]}(${t[2]}, ${t[3]}%, ${t[4]}%)`}return lm.test(e)?Number(e):e}},np=w(e=>{let t=e.split(";").map(r=>r.replace("=","~").replace(":","="));return Object.entries((0,pA.parse)(t.join(";"),hA)).reduce((r,[n,o])=>ns(n,o)?Object.assign(r,{[n]:o}):(yt.warn(wt` Omitted potentially unsafe URL args. More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url?ref=error `),r),{})},"parseArgsParam"),{history:cm,document:or}=H;function dm(e){let t=(e||"").match(/^\/story\/(.+)/);if(!t)throw new Error(`Invalid path '${e}', must start with '/story/'`);return t[1]}w(dm,"pathToId");var pm=w(({selection:e,extraParams:t})=>{let r=or?.location.search.slice(1),{path:n,selectedKind:o,selectedStory:a,...i}=(0,rs.parse)(r);return`?${(0,rs.stringify)({...i,...t,...e&&{id:e.storyId,viewMode:e.viewMode}})}`},"getQueryString"),fA=w(e=>{if(!e)return;let t=pm({selection:e}),{hash:r=""}=or.location;or.title=e.storyId,cm.replaceState({},"",`${or.location.pathname}${t}${r}`)},"setPath"),gA=w(e=>e!=null&&typeof e=="object"&&Array.isArray(e)===!1,"isObject"),_n=w(e=>{if(e!==void 0){if(typeof e=="string")return e;if(Array.isArray(e))return _n(e[0]);if(gA(e))return _n(Object.values(e).filter(Boolean))}},"getFirstString"),yA=w(()=>{if(typeof or<"u"){let e=or.location.search.slice(1),t=(0,rs.parse)(e),r=typeof t.args=="string"?np(t.args):void 0,n=typeof t.globals=="string"?np(t.globals):void 0,o=_n(t.viewMode);(typeof o!="string"||!o.match(/docs|story/))&&(o="story");let a=_n(t.path),i=a?dm(a):_n(t.id);if(i)return{storySpecifier:i,args:r,globals:n,viewMode:o}}return null},"getSelectionSpecifierFromPath"),mm=class{constructor(){this.selectionSpecifier=yA()}setSelection(t){this.selection=t,fA(this.selection)}setQueryParams(t){let r=pm({extraParams:t}),{hash:n=""}=or.location;cm.replaceState({},"",`${or.location.pathname}${r}${n}`)}};w(mm,"UrlStore");var bA=mm,EA=Jr(YE(),1),vA=Jr(ss(),1),{document:qe}=H,op=100,hm=(e=>(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))(hm||{}),Vi={PREPARING_STORY:"sb-show-preparing-story",PREPARING_DOCS:"sb-show-preparing-docs",MAIN:"sb-show-main",NOPREVIEW:"sb-show-nopreview",ERROR:"sb-show-errordisplay"},zi={centered:"sb-main-centered",fullscreen:"sb-main-fullscreen",padded:"sb-main-padded"},ap=new EA.default({escapeXML:!0}),fm=class{constructor(){if(this.testing=!1,typeof qe<"u"){let{__SPECIAL_TEST_PARAMETER__:t}=(0,vA.parse)(qe.location.search.slice(1));switch(t){case"preparing-story":{this.showPreparingStory(),this.testing=!0;break}case"preparing-docs":{this.showPreparingDocs(),this.testing=!0;break}default:}}}prepareForStory(t){return this.showStory(),this.applyLayout(t.parameters.layout),qe.documentElement.scrollTop=0,qe.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return qe.getElementById("storybook-root")}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout("fullscreen"),qe.documentElement.scrollTop=0,qe.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return qe.getElementById("storybook-docs")}applyLayout(t="padded"){if(t==="none"){qe.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(t);let r=zi[t];qe.body.classList.remove(this.currentLayoutClass),qe.body.classList.add(r),this.currentLayoutClass=r}checkIfLayoutExists(t){zi[t]||Z.warn(wt` The desired layout: ${t} is not a valid option. The possible options are: ${Object.keys(zi).join(", ")}, none. `)}showMode(t){clearTimeout(this.preparingTimeout),Object.keys(hm).forEach(r=>{r===t?qe.body.classList.add(Vi[r]):qe.body.classList.remove(Vi[r])})}showErrorDisplay({message:t="",stack:r=""}){let n=t,o=r,a=t.split(` `);a.length>1&&([n]=a,o=a.slice(1).join(` `).replace(/^\n/,"")),qe.getElementById("error-message").innerHTML=ap.toHtml(n),qe.getElementById("error-stack").innerHTML=ap.toHtml(o),this.showMode("ERROR")}showNoPreview(){this.testing||(this.showMode("NOPREVIEW"),this.storyRoot()?.setAttribute("hidden","true"),this.docsRoot()?.setAttribute("hidden","true"))}showPreparingStory({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_STORY"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_STORY"),op)}showPreparingDocs({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),op)}showMain(){this.showMode("MAIN")}showDocs(){this.storyRoot().setAttribute("hidden","true"),this.docsRoot().removeAttribute("hidden")}showStory(){this.docsRoot().setAttribute("hidden","true"),this.storyRoot().removeAttribute("hidden")}showStoryDuringRender(){qe.body.classList.add(Vi.MAIN)}};w(fm,"WebView");var AA=fm,xA=class extends dA{constructor(t,r){super(t,r,new bA,new AA),this.importFn=t,this.getProjectAnnotations=r,H.__STORYBOOK_PREVIEW__=this}};w(xA,"PreviewWeb");var{document:vr}=H,wA=["application/javascript","application/ecmascript","application/x-ecmascript","application/x-javascript","text/ecmascript","text/javascript","text/javascript1.0","text/javascript1.1","text/javascript1.2","text/javascript1.3","text/javascript1.4","text/javascript1.5","text/jscript","text/livescript","text/x-ecmascript","text/x-javascript","module"],SA="script",ip="scripts-root";function os(){let e=vr.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),vr.dispatchEvent(e)}w(os,"simulateDOMContentLoaded");function gm(e,t,r){let n=vr.createElement("script");n.type=e.type==="module"?"module":"text/javascript",e.src?(n.onload=t,n.onerror=t,n.src=e.src):n.textContent=e.innerText,r?r.appendChild(n):vr.head.appendChild(n),e.parentNode.removeChild(e),e.src||t()}w(gm,"insertScript");function vs(e,t,r=0){e[r](()=>{r++,r===e.length?t():vs(e,t,r)})}w(vs,"insertScriptsSequentially");function CA(e){let t=vr.getElementById(ip);t?t.innerHTML="":(t=vr.createElement("div"),t.id=ip,vr.body.appendChild(t));let r=Array.from(e.querySelectorAll(SA));if(r.length){let n=[];r.forEach(o=>{let a=o.getAttribute("type");(!a||wA.includes(a))&&n.push(i=>gm(o,i,t))}),n.length&&vs(n,os,void 0)}else os()}w(CA,"simulatePageLoad");var ym="storybook/docs",dP=`${ym}/panel`,DA=`${ym}/snippet-rendered`;async function TA(e,t){let r=t.parameters?.docs?.source?.transform,{id:n,unmappedArgs:o}=t,a=r&&e?r?.(e,t):e,i=a?await a:void 0;ut.getChannel().emit(DA,{id:n,source:i,args:o})}w(TA,"emitTransformCode");te();re();ne();var yP=__STORYBOOK_TEST__,{buildQueries:bP,clearAllMocks:bm,configure:EP,createEvent:vP,expect:AP,findAllByAltText:xP,findAllByDisplayValue:wP,findAllByLabelText:SP,findAllByPlaceholderText:CP,findAllByRole:DP,findAllByTestId:TP,findAllByText:kP,findAllByTitle:OP,findByAltText:IP,findByDisplayValue:RP,findByLabelText:BP,findByPlaceholderText:_P,findByRole:FP,findByTestId:PP,findByText:NP,findByTitle:LP,fireEvent:jP,fn:Em,getAllByAltText:MP,getAllByDisplayValue:$P,getAllByLabelText:qP,getAllByPlaceholderText:UP,getAllByRole:HP,getAllByTestId:VP,getAllByText:zP,getAllByTitle:GP,getByAltText:WP,getByDisplayValue:YP,getByLabelText:KP,getByPlaceholderText:XP,getByRole:JP,getByTestId:ZP,getByText:QP,getByTitle:eN,getConfig:tN,getDefaultNormalizer:rN,getElementError:nN,getNodeText:oN,getQueriesForElement:aN,getRoles:iN,getSuggestedQuery:sN,isInaccessible:lN,isMockFunction:vm,logDOM:uN,logRoles:cN,mocked:dN,mocks:pN,onMockCall:Am,prettyDOM:mN,prettyFormat:hN,queries:fN,queryAllByAltText:gN,queryAllByAttribute:yN,queryAllByDisplayValue:bN,queryAllByLabelText:EN,queryAllByPlaceholderText:vN,queryAllByRole:AN,queryAllByTestId:xN,queryAllByText:wN,queryAllByTitle:SN,queryByAltText:CN,queryByAttribute:DN,queryByDisplayValue:TN,queryByLabelText:kN,queryByPlaceholderText:ON,queryByRole:IN,queryByTestId:RN,queryByText:BN,queryByTitle:_N,queryHelpers:FN,resetAllMocks:xm,restoreAllMocks:wm,sb:PN,screen:NN,spyOn:LN,uninstrumentedUserEvent:Sm,userEvent:jN,waitFor:MN,waitForElementToBeRemoved:$N,within:Cm}=__STORYBOOK_TEST__;te();re();ne();var kA=Object.defineProperty,C=(e,t)=>kA(e,"name",{value:t,configurable:!0}),OA={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},IA=Object.entries(OA);function la(e){return String(e)}C(la,"a");la.open="";la.close="";function Km(e=!1){let t=typeof process<"u"?process:void 0,r=t?.env||{},n=t?.argv||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||t?.platform==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}C(Km,"C");function Xm(e=!1){let t=Km(e),r=C((i,s,l,u)=>{let d="",m=0;do d+=i.substring(m,u)+l,m=u+s.length,u=i.indexOf(s,m);while(~u);return d+i.substring(m)},"i"),n=C((i,s,l=i)=>{let u=C(d=>{let m=String(d),p=m.indexOf(s,i.length);return~p?i+r(m,s,l,p)+s:i+m+s},"o");return u.open=i,u.close=s,u},"g"),o={isColorSupported:t},a=C(i=>`\x1B[${i}m`,"d");for(let[i,s]of IA)o[i]=t?n(a(s[0]),a(s[1]),s[2]):la;return o}C(Xm,"p");var Ut=Xm();function Js(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var o=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,o.get?o:{enumerable:!0,get:C(function(){return r[n]},"get")})}})}),Object.freeze(e)}C(Js,"_mergeNamespaces");function Jm(e,t){let r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let o of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,o).enumerable&&n.push(o);return n}C(Jm,"getKeysOfEnumerableProperties");function sn(e,t,r,n,o,a,i=": "){let s="",l=0,u=e.next();if(!u.done){s+=t.spacingOuter;let d=r+t.indent;for(;!u.done;){if(s+=d,l++===t.maxWidth){s+="\u2026";break}let m=a(u.value[0],t,d,n,o),p=a(u.value[1],t,d,n,o);s+=m+i+p,u=e.next(),u.done?t.min||(s+=","):s+=`,${t.spacingInner}`}s+=t.spacingOuter+r}return s}C(sn,"printIteratorEntries");function ua(e,t,r,n,o,a){let i="",s=0,l=e.next();if(!l.done){i+=t.spacingOuter;let u=r+t.indent;for(;!l.done;){if(i+=u,s++===t.maxWidth){i+="\u2026";break}i+=a(l.value,t,u,n,o),l=e.next(),l.done?t.min||(i+=","):i+=`,${t.spacingInner}`}i+=t.spacingOuter+r}return i}C(ua,"printIteratorValues");function qn(e,t,r,n,o,a){let i="";e=e instanceof ArrayBuffer?new DataView(e):e;let s=C(u=>u instanceof DataView,"isDataView"),l=s(e)?e.byteLength:e.length;if(l>0){i+=t.spacingOuter;let u=r+t.indent;for(let d=0;d0){i+=t.spacingOuter;let l=r+t.indent;for(let u=0;u{let i=e.toString();if(i==="ArrayContaining"||i==="ArrayNotContaining")return++n>t.maxDepth?`[${i}]`:`${i+As}[${qn(e.sample,t,r,n,o,a)}]`;if(i==="ObjectContaining"||i==="ObjectNotContaining")return++n>t.maxDepth?`[${i}]`:`${i+As}{${ca(e.sample,t,r,n,o,a)}}`;if(i==="StringMatching"||i==="StringNotMatching"||i==="StringContaining"||i==="StringNotContaining")return i+As+a(e.sample,t,r,n,o);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},"serialize$5"),_A=C(e=>e&&e.$$typeof===RA,"test$5"),FA={serialize:BA,test:_A},PA=" ",Zm=new Set(["DOMStringMap","NamedNodeMap"]),NA=/^(?:HTML\w*Collection|NodeList)$/;function Qm(e){return Zm.has(e)||NA.test(e)}C(Qm,"testName");var LA=C(e=>e&&e.constructor&&!!e.constructor.name&&Qm(e.constructor.name),"test$4");function eh(e){return e.constructor.name==="NamedNodeMap"}C(eh,"isNamedNodeMap");var jA=C((e,t,r,n,o,a)=>{let i=e.constructor.name;return++n>t.maxDepth?`[${i}]`:(t.min?"":i+PA)+(Zm.has(i)?`{${ca(eh(e)?[...e].reduce((s,l)=>(s[l.name]=l.value,s),{}):{...e},t,r,n,o,a)}}`:`[${qn([...e],t,r,n,o,a)}]`)},"serialize$4"),MA={serialize:jA,test:LA};function Zs(e){return e.replaceAll("<","<").replaceAll(">",">")}C(Zs,"escapeHTML");function da(e,t,r,n,o,a,i){let s=n+r.indent,l=r.colors;return e.map(u=>{let d=t[u],m=i(d,r,s,o,a);return typeof d!="string"&&(m.includes(` `)&&(m=r.spacingOuter+s+m+r.spacingOuter+n),m=`{${m}}`),`${r.spacingInner+n+l.prop.open+u+l.prop.close}=${l.value.open}${m}${l.value.close}`}).join("")}C(da,"printProps");function pa(e,t,r,n,o,a){return e.map(i=>t.spacingOuter+r+(typeof i=="string"?Qs(i,t):a(i,t,r,n,o))).join("")}C(pa,"printChildren");function Qs(e,t){let r=t.colors.content;return r.open+Zs(e)+r.close}C(Qs,"printText");function th(e,t){let r=t.colors.comment;return`${r.open}${r.close}`}C(th,"printComment");function ma(e,t,r,n,o){let a=n.colors.tag;return`${a.open}<${e}${t&&a.close+t+n.spacingOuter+o+a.open}${r?`>${a.close}${r}${n.spacingOuter}${o}${a.open}${a.close}`}C(ma,"printElement");function ha(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} \u2026${r.open} />${r.close}`}C(ha,"printElementAsLeaf");var $A=1,rh=3,nh=8,oh=11,qA=/^(?:(?:HTML|SVG)\w*)?Element$/;function ah(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}C(ah,"testHasAttribute");function ih(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,o=typeof n=="string"&&n.includes("-")||ah(e);return r===$A&&(qA.test(t)||o)||r===rh&&t==="Text"||r===nh&&t==="Comment"||r===oh&&t==="DocumentFragment"}C(ih,"testNode");var UA=C(e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&ih(e)},"test$3");function sh(e){return e.nodeType===rh}C(sh,"nodeIsText");function lh(e){return e.nodeType===nh}C(lh,"nodeIsComment");function Qo(e){return e.nodeType===oh}C(Qo,"nodeIsFragment");var HA=C((e,t,r,n,o,a)=>{if(sh(e))return Qs(e.data,t);if(lh(e))return th(e.data,t);let i=Qo(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?ha(i,t):ma(i,da(Qo(e)?[]:Array.from(e.attributes,s=>s.name).sort(),Qo(e)?{}:[...e.attributes].reduce((s,l)=>(s[l.name]=l.value,s),{}),t,r+t.indent,n,o,a),pa(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,o,a),t,r)},"serialize$3"),VA={serialize:HA,test:UA},zA="@@__IMMUTABLE_ITERABLE__@@",GA="@@__IMMUTABLE_LIST__@@",WA="@@__IMMUTABLE_KEYED__@@",YA="@@__IMMUTABLE_MAP__@@",Dm="@@__IMMUTABLE_ORDERED__@@",KA="@@__IMMUTABLE_RECORD__@@",XA="@@__IMMUTABLE_SEQ__@@",JA="@@__IMMUTABLE_SET__@@",ZA="@@__IMMUTABLE_STACK__@@",rn=C(e=>`Immutable.${e}`,"getImmutableName"),fa=C(e=>`[${e}]`,"printAsLeaf"),Un=" ",Tm="\u2026";function uh(e,t,r,n,o,a,i){return++n>t.maxDepth?fa(rn(i)):`${rn(i)+Un}{${sn(e.entries(),t,r,n,o,a)}}`}C(uh,"printImmutableEntries");function ch(e){let t=0;return{next(){if(tt.maxDepth?fa(i):`${i+Un}{${sn(ch(e),t,r,n,o,a)}}`}C(dh,"printImmutableRecord");function ph(e,t,r,n,o,a){let i=rn("Seq");return++n>t.maxDepth?fa(i):e[WA]?`${i+Un}{${e._iter||e._object?sn(e.entries(),t,r,n,o,a):Tm}}`:`${i+Un}[${e._iter||e._array||e._collection||e._iterable?ua(e.values(),t,r,n,o,a):Tm}]`}C(ph,"printImmutableSeq");function ea(e,t,r,n,o,a,i){return++n>t.maxDepth?fa(rn(i)):`${rn(i)+Un}[${ua(e.values(),t,r,n,o,a)}]`}C(ea,"printImmutableValues");var QA=C((e,t,r,n,o,a)=>e[YA]?uh(e,t,r,n,o,a,e[Dm]?"OrderedMap":"Map"):e[GA]?ea(e,t,r,n,o,a,"List"):e[JA]?ea(e,t,r,n,o,a,e[Dm]?"OrderedSet":"Set"):e[ZA]?ea(e,t,r,n,o,a,"Stack"):e[XA]?ph(e,t,r,n,o,a):dh(e,t,r,n,o,a),"serialize$2"),ex=C(e=>e&&(e[zA]===!0||e[KA]===!0),"test$2"),tx={serialize:QA,test:ex};function el(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}C(el,"getDefaultExportFromCjs");var km={exports:{}},he={},Om;function mh(){return Om||(Om=1,(function(){function e(y){if(typeof y=="object"&&y!==null){var E=y.$$typeof;switch(E){case t:switch(y=y.type,y){case n:case a:case o:case u:case d:case f:return y;default:switch(y=y&&y.$$typeof,y){case s:case l:case p:case m:return y;case i:return y;default:return E}}case r:return E}}}C(e,"typeOf");var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");he.ContextConsumer=i,he.ContextProvider=s,he.Element=t,he.ForwardRef=l,he.Fragment=n,he.Lazy=p,he.Memo=m,he.Portal=r,he.Profiler=a,he.StrictMode=o,he.Suspense=u,he.SuspenseList=d,he.isContextConsumer=function(y){return e(y)===i},he.isContextProvider=function(y){return e(y)===s},he.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},he.isForwardRef=function(y){return e(y)===l},he.isFragment=function(y){return e(y)===n},he.isLazy=function(y){return e(y)===p},he.isMemo=function(y){return e(y)===m},he.isPortal=function(y){return e(y)===r},he.isProfiler=function(y){return e(y)===a},he.isStrictMode=function(y){return e(y)===o},he.isSuspense=function(y){return e(y)===u},he.isSuspenseList=function(y){return e(y)===d},he.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===a||y===o||y===u||y===d||typeof y=="object"&&y!==null&&(y.$$typeof===p||y.$$typeof===m||y.$$typeof===s||y.$$typeof===i||y.$$typeof===l||y.$$typeof===g||y.getModuleId!==void 0)},he.typeOf=e})()),he}C(mh,"requireReactIs_development$1");var Im;function hh(){return Im||(Im=1,km.exports=mh()),km.exports}C(hh,"requireReactIs$1");var fh=hh(),rx=el(fh),nx=Js({__proto__:null,default:rx},[fh]),Rm={exports:{}},le={},Bm;function gh(){return Bm||(Bm=1,(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),g=!1,y=!1,E=!1,b=!1,x=!1,S;S=Symbol.for("react.module.reference");function T(W){return!!(typeof W=="string"||typeof W=="function"||W===r||W===o||x||W===n||W===u||W===d||b||W===f||g||y||E||typeof W=="object"&&W!==null&&(W.$$typeof===p||W.$$typeof===m||W.$$typeof===a||W.$$typeof===i||W.$$typeof===l||W.$$typeof===S||W.getModuleId!==void 0))}C(T,"isValidElementType");function _(W){if(typeof W=="object"&&W!==null){var me=W.$$typeof;switch(me){case e:var ue=W.type;switch(ue){case r:case o:case n:case u:case d:return ue;default:var ht=ue&&ue.$$typeof;switch(ht){case s:case i:case l:case p:case m:case a:return ht;default:return me}}case t:return me}}}C(_,"typeOf");var O=i,k=a,B=e,P=l,L=r,j=p,U=m,$=t,v=o,A=n,D=u,N=d,F=!1,M=!1;function q(W){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}C(q,"isAsyncMode");function V(W){return M||(M=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}C(V,"isConcurrentMode");function G(W){return _(W)===i}C(G,"isContextConsumer");function se(W){return _(W)===a}C(se,"isContextProvider");function pe(W){return typeof W=="object"&&W!==null&&W.$$typeof===e}C(pe,"isElement");function ae(W){return _(W)===l}C(ae,"isForwardRef");function we(W){return _(W)===r}C(we,"isFragment");function ee(W){return _(W)===p}C(ee,"isLazy");function Ce(W){return _(W)===m}C(Ce,"isMemo");function Ve(W){return _(W)===t}C(Ve,"isPortal");function Fe(W){return _(W)===o}C(Fe,"isProfiler");function lt(W){return _(W)===n}C(lt,"isStrictMode");function Zt(W){return _(W)===u}C(Zt,"isSuspense");function Nr(W){return _(W)===d}C(Nr,"isSuspenseList"),le.ContextConsumer=O,le.ContextProvider=k,le.Element=B,le.ForwardRef=P,le.Fragment=L,le.Lazy=j,le.Memo=U,le.Portal=$,le.Profiler=v,le.StrictMode=A,le.Suspense=D,le.SuspenseList=N,le.isAsyncMode=q,le.isConcurrentMode=V,le.isContextConsumer=G,le.isContextProvider=se,le.isElement=pe,le.isForwardRef=ae,le.isFragment=we,le.isLazy=ee,le.isMemo=Ce,le.isPortal=Ve,le.isProfiler=Fe,le.isStrictMode=lt,le.isSuspense=Zt,le.isSuspenseList=Nr,le.isValidElementType=T,le.typeOf=_})()),le}C(gh,"requireReactIs_development");var _m;function yh(){return _m||(_m=1,Rm.exports=gh()),Rm.exports}C(yh,"requireReactIs");var bh=yh(),ox=el(bh),ax=Js({__proto__:null,default:ox},[bh]),ix=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],xr=Object.fromEntries(ix.map(e=>[e,t=>ax[e](t)||nx[e](t)]));function tl(e,t=[]){if(Array.isArray(e))for(let r of e)tl(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}C(tl,"getChildren");function ks(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(xr.isFragment(e))return"React.Fragment";if(xr.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(xr.isContextProvider(e))return"Context.Provider";if(xr.isContextConsumer(e))return"Context.Consumer";if(xr.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(xr.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}C(ks,"getType");function Eh(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}C(Eh,"getPropKeys$1");var sx=C((e,t,r,n,o,a)=>++n>t.maxDepth?ha(ks(e),t):ma(ks(e),da(Eh(e),e.props,t,r+t.indent,n,o,a),pa(tl(e.props.children),t,r+t.indent,n,o,a),t,r),"serialize$1"),lx=C(e=>e!=null&&xr.isElement(e),"test$1"),ux={serialize:sx,test:lx},cx=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function vh(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}C(vh,"getPropKeys");var dx=C((e,t,r,n,o,a)=>++n>t.maxDepth?ha(e.type,t):ma(e.type,e.props?da(vh(e),e.props,t,r+t.indent,n,o,a):"",e.children?pa(e.children,t,r+t.indent,n,o,a):"",t,r),"serialize"),px=C(e=>e&&e.$$typeof===cx,"test"),mx={serialize:dx,test:px},Ah=Object.prototype.toString,hx=Date.prototype.toISOString,fx=Error.prototype.toString,Fm=RegExp.prototype.toString;function Mn(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}C(Mn,"getConstructorName");function xh(e){return typeof window<"u"&&e===window}C(xh,"isWindow");var gx=/^Symbol\((.*)\)(.*)$/,yx=/\n/g,wh=class extends Error{constructor(t,r){super(t),this.stack=r,this.name=this.constructor.name}};C(wh,"PrettyFormatPluginError");var Sh=wh;function Ch(e){return e==="[object Array]"||e==="[object ArrayBuffer]"||e==="[object DataView]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object Int8Array]"||e==="[object Int16Array]"||e==="[object Int32Array]"||e==="[object Uint8Array]"||e==="[object Uint8ClampedArray]"||e==="[object Uint16Array]"||e==="[object Uint32Array]"}C(Ch,"isToStringedArrayType");function Dh(e){return Object.is(e,-0)?"-0":String(e)}C(Dh,"printNumber");function Th(e){return`${e}n`}C(Th,"printBigInt");function Os(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}C(Os,"printFunction");function Is(e){return String(e).replace(gx,"Symbol($1)")}C(Is,"printSymbol");function Rs(e){return`[${fx.call(e)}]`}C(Rs,"printError");function rl(e,t,r,n){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let o=typeof e;if(o==="number")return Dh(e);if(o==="bigint")return Th(e);if(o==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(o==="function")return Os(e,t);if(o==="symbol")return Is(e);let a=Ah.call(e);return a==="[object WeakMap]"?"WeakMap {}":a==="[object WeakSet]"?"WeakSet {}":a==="[object Function]"||a==="[object GeneratorFunction]"?Os(e,t):a==="[object Symbol]"?Is(e):a==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":hx.call(e):a==="[object Error]"?Rs(e):a==="[object RegExp]"?r?Fm.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):Fm.call(e):e instanceof Error?Rs(e):null}C(rl,"printBasicValue");function nl(e,t,r,n,o,a){if(o.includes(e))return"[Circular]";o=[...o],o.push(e);let i=++n>t.maxDepth,s=t.min;if(t.callToJSON&&!i&&e.toJSON&&typeof e.toJSON=="function"&&!a)return $t(e.toJSON(),t,r,n,o,!0);let l=Ah.call(e);return l==="[object Arguments]"?i?"[Arguments]":`${s?"":"Arguments "}[${qn(e,t,r,n,o,$t)}]`:Ch(l)?i?`[${e.constructor.name}]`:`${s||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${qn(e,t,r,n,o,$t)}]`:l==="[object Map]"?i?"[Map]":`Map {${sn(e.entries(),t,r,n,o,$t," => ")}}`:l==="[object Set]"?i?"[Set]":`Set {${ua(e.values(),t,r,n,o,$t)}}`:i||xh(e)?`[${Mn(e)}]`:`${s||!t.printBasicPrototype&&Mn(e)==="Object"?"":`${Mn(e)} `}{${ca(e,t,r,n,o,$t)}}`}C(nl,"printComplexValue");var bx={test:C(e=>e&&e instanceof Error,"test"),serialize(e,t,r,n,o,a){if(o.includes(e))return"[Circular]";o=[...o,e];let i=++n>t.maxDepth,{message:s,cause:l,...u}=e,d={message:s,...typeof l<"u"?{cause:l}:{},...e instanceof AggregateError?{errors:e.errors}:{},...u},m=e.name!=="Error"?e.name:Mn(e);return i?`[${m}]`:`${m} {${sn(Object.entries(d).values(),t,r,n,o,a)}}`}};function kh(e){return e.serialize!=null}C(kh,"isNewPlugin");function ol(e,t,r,n,o,a){let i;try{i=kh(e)?e.serialize(t,r,n,o,a,$t):e.print(t,s=>$t(s,r,n,o,a),s=>{let l=n+r.indent;return l+s.replaceAll(yx,` ${l}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(s){throw new Sh(s.message,s.stack)}if(typeof i!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof i}".`);return i}C(ol,"printPlugin");function al(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new Sh(n.message,n.stack)}return null}C(al,"findPlugin");function $t(e,t,r,n,o,a){let i=al(t.plugins,e);if(i!==null)return ol(i,e,t,r,n,o);let s=rl(e,t.printFunctionName,t.escapeRegex,t.escapeString);return s!==null?s:nl(e,t,r,n,o,a)}C($t,"printer");var il={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Oh=Object.keys(il),St={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:il};function Ih(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(St,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}C(Ih,"validateOptions");function Rh(){return Oh.reduce((e,t)=>{let r=il[t],n=r&&Ut[r];if(n&&typeof n.close=="string"&&typeof n.open=="string")e[t]=n;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}C(Rh,"getColorsHighlight");function Bh(){return Oh.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}C(Bh,"getColorsEmpty");function sl(e){return e?.printFunctionName??St.printFunctionName}C(sl,"getPrintFunctionName");function ll(e){return e?.escapeRegex??St.escapeRegex}C(ll,"getEscapeRegex");function ul(e){return e?.escapeString??St.escapeString}C(ul,"getEscapeString");function Bs(e){return{callToJSON:e?.callToJSON??St.callToJSON,colors:e?.highlight?Rh():Bh(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:St.compareKeys,escapeRegex:ll(e),escapeString:ul(e),indent:e?.min?"":_h(e?.indent??St.indent),maxDepth:e?.maxDepth??St.maxDepth,maxWidth:e?.maxWidth??St.maxWidth,min:e?.min??St.min,plugins:e?.plugins??St.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:sl(e),spacingInner:e?.min?" ":` `,spacingOuter:e?.min?"":` `}}C(Bs,"getConfig");function _h(e){return Array.from({length:e+1}).join(" ")}C(_h,"createIndent");function Ct(e,t){if(t&&(Ih(t),t.plugins)){let n=al(t.plugins,e);if(n!==null)return ol(n,e,Bs(t),"",0,[])}let r=rl(e,sl(t),ll(t),ul(t));return r!==null?r:nl(e,Bs(t),"",0,[])}C(Ct,"format");var cl={AsymmetricMatcher:FA,DOMCollection:MA,DOMElement:VA,Immutable:tx,ReactElement:ux,ReactTestComponent:mx,Error:bx},Pm={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},Ex={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},nn="\u2026";function Fh(e,t){let r=Pm[Ex[t]]||Pm[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}C(Fh,"colorise");function Ph({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:o=!1,maxArrayLength:a=1/0,breakLength:i=1/0,seen:s=[],truncate:l=1/0,stylize:u=String}={},d){let m={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!o,maxArrayLength:Number(a),breakLength:Number(i),truncate:Number(l),seen:s,inspect:d,stylize:u};return m.colors&&(m.stylize=Fh),m}C(Ph,"normaliseOptions");function Nh(e){return e>="\uD800"&&e<="\uDBFF"}C(Nh,"isHighSurrogate");function Ht(e,t,r=nn){e=String(e);let n=r.length,o=e.length;if(n>t&&o>n)return r;if(o>t&&o>n){let a=t-n;return a>0&&Nh(e[a-1])&&(a=a-1),`${e.slice(0,a)}${r}`}return e}C(Ht,"truncate");function bt(e,t,r,n=", "){r=r||t.inspect;let o=e.length;if(o===0)return"";let a=t.truncate,i="",s="",l="";for(let u=0;ua&&i.length+l.length<=a||!d&&!m&&y>a||(s=d?"":r(e[u+1],t)+(m?"":n),!d&&m&&y>a&&g+s.length>a))break;if(i+=f,!d&&!m&&g+s.length>=a){l=`${nn}(${e.length-u-1})`;break}l=""}return`${i}${l}`}C(bt,"inspectList");function Lh(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}C(Lh,"quoteComplexKey");function on([e,t],r){return r.truncate-=2,typeof e=="string"?e=Lh(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}C(on,"inspectProperty");function jh(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=bt(e,t);t.truncate-=n.length;let o="";return r.length&&(o=bt(r.map(a=>[a,e[a]]),t,on)),`[ ${n}${o?`, ${o}`:""} ]`}C(jh,"inspectArray");var vx=C(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function _t(e,t){let r=vx(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let o="";for(let i=0;i[i,e[i]]),t,on)),`${r}[ ${o}${a?`, ${a}`:""} ]`}C(_t,"inspectTypedArray");function Mh(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),o=n[0];return t.stylize(`${o}T${Ht(n[1],t.truncate-o.length-1)}`,"date")}C(Mh,"inspectDate");function _s(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Ht(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}C(_s,"inspectFunction");function $h([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}C($h,"inspectMapEntry");function qh(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}C(qh,"mapToEntries");function Uh(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${bt(qh(e),t,$h)} }`)}C(Uh,"inspectMap");var Ax=Number.isNaN||(e=>e!==e);function Fs(e,t){return Ax(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(Ht(String(e),t.truncate),"number")}C(Fs,"inspectNumber");function Ps(e,t){let r=Ht(e.toString(),t.truncate-1);return r!==nn&&(r+="n"),t.stylize(r,"bigint")}C(Ps,"inspectBigInt");function Hh(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),o=e.source;return t.stylize(`/${Ht(o,n)}/${r}`,"regexp")}C(Hh,"inspectRegExp");function Vh(e){let t=[];return e.forEach(r=>{t.push(r)}),t}C(Vh,"arrayFromSet");function zh(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${bt(Vh(e),t)} }`)}C(zh,"inspectSet");var Nm=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),xx={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},wx=16,Sx=4;function Gh(e){return xx[e]||`\\u${`0000${e.charCodeAt(0).toString(wx)}`.slice(-Sx)}`}C(Gh,"escape");function Ns(e,t){return Nm.test(e)&&(e=e.replace(Nm,Gh)),t.stylize(`'${Ht(e,t.truncate-2)}'`,"string")}C(Ns,"inspectString");function Ls(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}C(Ls,"inspectSymbol");var Wh=C(()=>"Promise{\u2026}","getPromiseValue");try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(Wh=C((n,o)=>{let[a,i]=e(n);return a===t?"Promise{}":`Promise${a===r?"!":""}{${o.inspect(i,o)}}`},"getPromiseValue"))}catch{}var Cx=Wh;function $n(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=bt(r.map(s=>[s,e[s]]),t,on),a=bt(n.map(s=>[s,e[s]]),t,on);t.seen.pop();let i="";return o&&a&&(i=", "),`{ ${o}${i}${a} }`}C($n,"inspectObject");var xs=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function Yh(e,t){let r="";return xs&&xs in e&&(r=e[xs]),r=r||e.constructor.name,(!r||r==="_class")&&(r=""),t.truncate-=r.length,`${r}${$n(e,t)}`}C(Yh,"inspectClass");function Kh(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${bt(e,t)} ]`)}C(Kh,"inspectArguments");var Dx=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Xh(e,t){let r=Object.getOwnPropertyNames(e).filter(i=>Dx.indexOf(i)===-1),n=e.name;t.truncate-=n.length;let o="";if(typeof e.message=="string"?o=Ht(e.message,t.truncate):r.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let a=bt(r.map(i=>[i,e[i]]),t,on);return`${n}${o}${a?` { ${a} }`:""}`}C(Xh,"inspectObject");function Jh([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}C(Jh,"inspectAttribute");function ra(e,t){return bt(e,t,Zh,` `)}C(ra,"inspectNodeCollection");function Zh(e,t){switch(e.nodeType){case 1:return dl(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}C(Zh,"inspectNode");function dl(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),o=t.stylize(`<${n}`,"special"),a=t.stylize(">","special"),i=t.stylize(``,"special");t.truncate-=n.length*2+5;let s="";r.length>0&&(s+=" ",s+=bt(r.map(d=>[d,e.getAttribute(d)]),t,Jh," ")),t.truncate-=s.length;let l=t.truncate,u=ra(e.children,t);return u&&u.length>l&&(u=`${nn}(${e.children.length})`),`${o}${s}${a}${u}${i}`}C(dl,"inspectHTML");var Tx=typeof Symbol=="function"&&typeof Symbol.for=="function",ws=Tx?Symbol.for("chai/inspect"):"@@chai/inspect",Ss=Symbol.for("nodejs.util.inspect.custom"),Lm=new WeakMap,jm={},Mm={undefined:C((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:C((e,t)=>t.stylize("null","null"),"null"),boolean:C((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:C((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:Fs,Number:Fs,bigint:Ps,BigInt:Ps,string:Ns,String:Ns,function:_s,Function:_s,symbol:Ls,Symbol:Ls,Array:jh,Date:Mh,Map:Uh,Set:zh,RegExp:Hh,Promise:Cx,WeakSet:C((e,t)=>t.stylize("WeakSet{\u2026}","special"),"WeakSet"),WeakMap:C((e,t)=>t.stylize("WeakMap{\u2026}","special"),"WeakMap"),Arguments:Kh,Int8Array:_t,Uint8Array:_t,Uint8ClampedArray:_t,Int16Array:_t,Uint16Array:_t,Int32Array:_t,Uint32Array:_t,Float32Array:_t,Float64Array:_t,Generator:C(()=>"","Generator"),DataView:C(()=>"","DataView"),ArrayBuffer:C(()=>"","ArrayBuffer"),Error:Xh,HTMLCollection:ra,NodeList:ra},kx=C((e,t,r)=>ws in e&&typeof e[ws]=="function"?e[ws](t):Ss in e&&typeof e[Ss]=="function"?e[Ss](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Lm.has(e.constructor)?Lm.get(e.constructor)(e,t):jm[r]?jm[r](e,t):"","inspectCustom"),Ox=Object.prototype.toString;function na(e,t={}){let r=Ph(t,na),{customInspect:n}=r,o=e===null?"null":typeof e;if(o==="object"&&(o=Ox.call(e).slice(8,-1)),o in Mm)return Mm[o](e,r);if(n&&e){let i=kx(e,r,o);if(i)return typeof i=="string"?i:na(i,r)}let a=e?Object.getPrototypeOf(e):!1;return a===Object.prototype||a===null?$n(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?dl(e,r):"constructor"in e?e.constructor!==Object?Yh(e,r):$n(e,r):e===Object(e)?$n(e,r):r.stylize(String(e),o)}C(na,"inspect");var{AsymmetricMatcher:Ix,DOMCollection:Rx,DOMElement:Bx,Immutable:_x,ReactElement:Fx,ReactTestComponent:Px}=cl,$m=[Px,Fx,Bx,Rx,_x,Ix];function an(e,t=10,{maxLength:r,...n}={}){let o=r??1e4,a;try{a=Ct(e,{maxDepth:t,escapeString:!1,plugins:$m,...n})}catch{a=Ct(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:$m,...n})}return a.length>=o&&t>1?an(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):a}C(an,"stringify");var Nx=/%[sdjifoOc%]/g;function Qh(...e){if(typeof e[0]!="string"){let a=[];for(let i=0;i{if(a==="%%")return"%";if(r>=t)return a;switch(a){case"%s":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:typeof i=="number"&&i===0&&1/i<0?"-0":typeof i=="object"&&i!==null?typeof i.toString=="function"&&i.toString!==Object.prototype.toString?i.toString():tn(i,{depth:0,colors:!1}):String(i)}case"%d":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number(i).toString()}case"%i":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number.parseInt(String(i)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return tn(e[r++],{showHidden:!0,showProxy:!0});case"%O":return tn(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(i){let s=i.message;if(s.includes("circular structure")||s.includes("cyclic structures")||s.includes("cyclic object"))return"[Circular]";throw i}default:return a}});for(let a=e[r];rt.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}C(rf,"collectOwnProperties");function pl(e){let t=new Set;return tf(e)?[]:(rf(e,t),Array.from(t))}C(pl,"getOwnProperties");var nf={forceWritable:!1};function js(e,t=nf){return aa(e,new WeakMap,t)}C(js,"deepClone");function aa(e,t,r=nf){let n,o;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(o=Array.from({length:n=e.length}),t.set(e,o);n--;)o[n]=aa(e[n],t,r);return o}if(Object.prototype.toString.call(e)==="[object Object]"){o=Object.create(Object.getPrototypeOf(e)),t.set(e,o);let a=pl(e);for(let i of a){let s=Object.getOwnPropertyDescriptor(e,i);if(!s)continue;let l=aa(e[i],t,r);r.forceWritable?Object.defineProperty(o,i,{enumerable:s.enumerable,configurable:!0,writable:!0,value:l}):"get"in s?Object.defineProperty(o,i,{...s,get(){return l}}):Object.defineProperty(o,i,{...s,value:l})}return o}return e}C(aa,"clone");var Ue=-1,Le=1,Se=0,of=class{0;1;constructor(t,r){this[0]=t,this[1]=r}};C(of,"Diff");var xe=of;function af(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),o=n,a=0;for(;rn?e=e.substring(r-n):r0?r[n-1]:-1,i=0,s=0,l=0,u=0,o=null,t=!0)),a++;for(t&&hl(e),lf(e),a=1;a=f?(p>=d.length/2||p>=m.length/2)&&(e.splice(a,0,new xe(Se,m.substring(0,p))),e[a-1][1]=d.substring(0,d.length-p),e[a+1][1]=m.substring(p),a++):(f>=d.length/2||f>=m.length/2)&&(e.splice(a,0,new xe(Se,d.substring(0,f))),e[a-1][0]=Le,e[a-1][1]=m.substring(0,m.length-f),e[a+1][0]=Ue,e[a+1][1]=d.substring(f),a++),a++}a++}}C(sf,"diff_cleanupSemantic");var qm=/[^a-z0-9]/i,Um=/\s/,Hm=/[\r\n]/,Lx=/\n\r?\n$/,jx=/^\r?\n\r?\n/;function lf(e){let t=1;for(;t=u&&(u=d,i=r,s=n,l=o)}e[t-1][1]!==i&&(i?e[t-1][1]=i:(e.splice(t-1,1),t--),e[t][1]=s,l?e[t+1][1]=l:(e.splice(t+1,1),t--))}t++}}C(lf,"diff_cleanupSemanticLossless");function hl(e){e.push(new xe(Se,""));let t=0,r=0,n=0,o="",a="",i;for(;t1?(r!==0&&n!==0&&(i=af(a,o),i!==0&&(t-r-n>0&&e[t-r-n-1][0]===Se?e[t-r-n-1][1]+=a.substring(0,i):(e.splice(0,0,new xe(Se,a.substring(0,i))),t++),a=a.substring(i),o=o.substring(i)),i=ml(a,o),i!==0&&(e[t][1]=a.substring(a.length-i)+e[t][1],a=a.substring(0,a.length-i),o=o.substring(0,o.length-i))),t-=r+n,e.splice(t,r+n),o.length&&(e.splice(t,0,new xe(Ue,o)),t++),a.length&&(e.splice(t,0,new xe(Le,a)),t++),t++):t!==0&&e[t-1][0]===Se?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,o="",a="";break}e[e.length-1][1]===""&&e.pop();let s=!1;for(t=1;t{let x=0;for(;f{let x=0;for(;f<=g&&y<=E&&b(g,E);)g-=1,E-=1,x+=1;return x},"countCommonItemsR"),o=C((f,g,y,E,b,x,S)=>{let T=0,_=-f,O=x[T],k=O;x[T]+=r(O+1,g,E+O-_+1,y,b);let B=f{let T=0,_=f,O=x[T],k=O;x[T]-=n(g,O-1,y,E+O-_-1,b);let B=f{let B=E-g,P=y-g,L=b-E-P,j=-L-(f-1),U=-L+(f-1),$=t,v=f{let B=b-y,P=y-g,L=b-E-P,j=L-f,U=L+f,$=t,v=f{let O=E-g,k=b-y,B=y-g,P=b-E,L=P-B,j=B,U=B;if(S[0]=g-1,T[0]=y,L%2===0){let $=(f||L)/2,v=(B+P)/2;for(let A=1;A<=v;A+=1)if(j=o(A,y,b,O,x,S,j),A<$)U=a(A,g,E,k,x,T,U);else if(s(A,g,y,E,b,x,S,j,T,U,_))return}else{let $=((f||L)+1)/2,v=(B+P+1)/2,A=1;for(j=o(A,y,b,O,x,S,j),A+=1;A<=v;A+=1)if(U=a(A-1,g,E,k,x,T,U),A<$)j=o(A,y,b,O,x,S,j);else if(i(A,g,y,E,b,x,S,j,T,U,_))return}throw new Error(`${e}: no overlap aStart=${g} aEnd=${y} bStart=${E} bEnd=${b}`)},"divide"),u=C((f,g,y,E,b,x,S,T,_,O)=>{if(b-E{se(ae,ee,we)},"foundSubsequence"),isCommon:C((ae,we)=>pe(we,ae),"isCommon")}}let V=g,G=y;g=E,y=b,E=V,b=G}let{foundSubsequence:k,isCommon:B}=S[x?1:0];l(f,g,y,E,b,B,T,_,O);let{nChangePreceding:P,aEndPreceding:L,bEndPreceding:j,nCommonPreceding:U,aCommonPreceding:$,bCommonPreceding:v,nCommonFollowing:A,aCommonFollowing:D,bCommonFollowing:N,nChangeFollowing:F,aStartFollowing:M,bStartFollowing:q}=O;g{if(typeof g!="number")throw new TypeError(`${e}: ${f} typeof ${typeof g} is not a number`);if(!Number.isSafeInteger(g))throw new RangeError(`${e}: ${f} value ${g} is not a safe integer`);if(g<0)throw new RangeError(`${e}: ${f} value ${g} is a negative integer`)},"validateLength"),m=C((f,g)=>{let y=typeof g;if(y!=="function")throw new TypeError(`${e}: ${f} typeof ${y} is not a function`)},"validateCallback");function p(f,g,y,E){d("aLength",f),d("bLength",g),m("isCommon",y),m("foundSubsequence",E);let b=r(0,f,0,g,y);if(b!==0&&E(b,0,0),f!==b||g!==b){let x=b,S=b,T=n(x,f-1,S,g-1,y),_=f-T,O=g-T,k=b+T;f!==k&&g!==k&&u(0,x,_,S,O,!1,[{foundSubsequence:E,isCommon:y}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),T!==0&&E(T,_,O)}}return C(p,"diffSequence"),Zo}C(cf,"requireBuild");var $x=cf(),df=ef($x);function pf(e,t){return e.replace(/\s+$/,r=>t(r))}C(pf,"formatTrailingSpaces");function ga(e,t,r,n,o,a){return e.length!==0?r(`${n} ${pf(e,o)}`):n!==" "?r(n):t&&a.length!==0?r(`${n} ${a}`):""}C(ga,"printDiffLine");function fl(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return ga(e,t,r,n,o,a)}C(fl,"printDeleteLine");function gl(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return ga(e,t,r,n,o,a)}C(gl,"printInsertLine");function yl(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:o,emptyFirstOrLastLinePlaceholder:a}){return ga(e,t,r,n,o,a)}C(yl,"printCommonLine");function $s(e,t,r,n,{patchColor:o}){return o(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}C($s,"createPatchMark");function mf(e,t){let r=e.length,n=t.contextLines,o=n+n,a=r,i=!1,s=0,l=0;for(;l!==r;){let T=l;for(;l!==r&&e[l][0]===Se;)l+=1;if(T!==l)if(T===0)l>n&&(a-=l-n,i=!0);else if(l===r){let _=l-T;_>n&&(a-=_-n,i=!0)}else{let _=l-T;_>o&&(a-=_-o,s+=1)}for(;l!==r&&e[l][0]!==Se;)l+=1}let u=s!==0||i;s!==0?a+=s+1:i&&(a+=1);let d=a-1,m=[],p=0;u&&m.push("");let f=0,g=0,y=0,E=0,b=C(T=>{let _=m.length;m.push(yl(T,_===0||_===d,t)),y+=1,E+=1},"pushCommonLine"),x=C(T=>{let _=m.length;m.push(fl(T,_===0||_===d,t)),y+=1},"pushDeleteLine"),S=C(T=>{let _=m.length;m.push(gl(T,_===0||_===d,t)),E+=1},"pushInsertLine");for(l=0;l!==r;){let T=l;for(;l!==r&&e[l][0]===Se;)l+=1;if(T!==l)if(T===0){l>n&&(T=l-n,f=T,g=T,y=f,E=g);for(let _=T;_!==l;_+=1)b(e[_][1])}else if(l===r){let _=l-T>n?T+n:l;for(let O=T;O!==_;O+=1)b(e[O][1])}else{let _=l-T;if(_>o){let O=T+n;for(let B=T;B!==O;B+=1)b(e[B][1]);m[p]=$s(f,y,g,E,t),p=m.length,m.push("");let k=_-o;f=y+k,g=E+k,y=f,E=g;for(let B=l-n;B!==l;B+=1)b(e[B][1])}else for(let O=T;O!==l;O+=1)b(e[O][1])}for(;l!==r&&e[l][0]===Ue;)x(e[l][1]),l+=1;for(;l!==r&&e[l][0]===Le;)S(e[l][1]),l+=1}return u&&(m[p]=$s(f,y,g,E,t)),m.join(` `)}C(mf,"joinAlignedDiffsNoExpand");function hf(e,t){return e.map((r,n,o)=>{let a=r[1],i=n===0||n===o.length-1;switch(r[0]){case Ue:return fl(a,i,t);case Le:return gl(a,i,t);default:return yl(a,i,t)}}).join(` `)}C(hf,"joinAlignedDiffsExpand");var Cs=C(e=>e,"noColor"),ff=5,qx=0;function gf(){return{aAnnotation:"Expected",aColor:Ut.green,aIndicator:"-",bAnnotation:"Received",bColor:Ut.red,bIndicator:"+",changeColor:Ut.inverse,changeLineTrailingSpaceColor:Cs,commonColor:Ut.dim,commonIndicator:" ",commonLineTrailingSpaceColor:Cs,compareKeys:void 0,contextLines:ff,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:Ut.yellow,printBasicPrototype:!1,truncateThreshold:qx,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:Cs}}C(gf,"getDefaultOptions");function yf(e){return e&&typeof e=="function"?e:void 0}C(yf,"getCompareKeys");function bf(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:ff}C(bf,"getContextLines");function ar(e={}){return{...gf(),...e,compareKeys:yf(e.compareKeys),contextLines:bf(e.contextLines)}}C(ar,"normalizeDiffOptions");function wr(e){return e.length===1&&e[0].length===0}C(wr,"isEmptyString");function Ef(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case Ue:t+=1;break;case Le:r+=1;break}}),{a:t,b:r}}C(Ef,"countChanges");function vf({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:o,bIndicator:a,includeChangeCounts:i,omitAnnotationLines:s},l){if(s)return"";let u="",d="";if(i){let f=String(l.a),g=String(l.b),y=n.length-e.length,E=" ".repeat(Math.max(0,y)),b=" ".repeat(Math.max(0,-y)),x=g.length-f.length,S=" ".repeat(Math.max(0,x)),T=" ".repeat(Math.max(0,-x));u=`${E} ${r} ${S}${f}`,d=`${b} ${a} ${T}${g}`}let m=`${r} ${e}${u}`,p=`${a} ${n}${d}`;return`${t(m)} ${o(p)} `}C(vf,"printAnnotation");function ya(e,t,r){return vf(r,Ef(e))+(r.expand?hf(e,r):mf(e,r))+(t?r.truncateAnnotationColor(` ${r.truncateAnnotation}`):"")}C(ya,"printDiffLines");function Hn(e,t,r){let n=ar(r),[o,a]=bl(wr(e)?[]:e,wr(t)?[]:t,n);return ya(o,a,n)}C(Hn,"diffLinesUnified");function Af(e,t,r,n,o){if(wr(e)&&wr(r)&&(e=[],r=[]),wr(t)&&wr(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return Hn(e,t,o);let[a,i]=bl(r,n,o),s=0,l=0;return a.forEach(u=>{switch(u[0]){case Ue:u[1]=e[s],s+=1;break;case Le:u[1]=t[l],l+=1;break;default:u[1]=t[l],s+=1,l+=1}}),ya(a,i,ar(o))}C(Af,"diffLinesUnified2");function bl(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),a=n?Math.min(e.length,o):e.length,i=n?Math.min(t.length,o):t.length,s=a!==e.length||i!==t.length,l=C((p,f)=>e[p]===t[f],"isCommon"),u=[],d=0,m=0;for(df(a,i,l,C((p,f,g)=>{for(;d!==f;d+=1)u.push(new xe(Ue,e[d]));for(;m!==g;m+=1)u.push(new xe(Le,t[m]));for(;p!==0;p-=1,d+=1,m+=1)u.push(new xe(Se,t[m]))},"foundSubsequence"));d!==a;d+=1)u.push(new xe(Ue,e[d]));for(;m!==i;m+=1)u.push(new xe(Le,t[m]));return[u,s]}C(bl,"diffLinesRaw");function qs(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}C(qs,"getType");function Us(e){return e.includes(`\r `)?`\r `:` `}C(Us,"getNewLineSymbol");function xf(e,t,r){let n=r?.truncateThreshold??!1,o=Math.max(Math.floor(r?.truncateThreshold??0),0),a=e.length,i=t.length;if(n){let p=e.includes(` `),f=t.includes(` `),g=Us(e),y=Us(t),E=p?`${e.split(g,o).join(g)} `:e,b=f?`${t.split(y,o).join(y)} `:t;a=E.length,i=b.length}let s=a!==e.length||i!==t.length,l=C((p,f)=>e[p]===t[f],"isCommon"),u=0,d=0,m=[];return df(a,i,l,C((p,f,g)=>{u!==f&&m.push(new xe(Ue,e.slice(u,f))),d!==g&&m.push(new xe(Le,t.slice(d,g))),u=f+p,d=g+p,m.push(new xe(Se,t.slice(g,d)))},"foundSubsequence")),u!==a&&m.push(new xe(Ue,e.slice(u))),d!==i&&m.push(new xe(Le,t.slice(d))),[m,s]}C(xf,"diffStrings");function wf(e,t,r){return t.reduce((n,o)=>n+(o[0]===Se?o[1]:o[0]===e&&o[1].length!==0?r(o[1]):""),"")}C(wf,"concatenateRelevantDiffs");var Sf=class{op;line;lines;changeColor;constructor(t,r){this.op=t,this.line=[],this.lines=[],this.changeColor=r}pushSubstring(t){this.pushDiff(new xe(this.op,t))}pushLine(){this.lines.push(this.line.length!==1?new xe(this.op,wf(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new xe(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(t){this.line.push(t)}align(t){let r=t[1];if(r.includes(` `)){let n=r.split(` `),o=n.length-1;n.forEach((a,i)=>{i{if(s===0){let l=new xe(r,i);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(l)):(this.pushDiffChangeLines(l),this.flushChangeLines())}else s{switch(a[0]){case Ue:r.align(a);break;case Le:n.align(a);break;default:o.align(a)}}),o.getLines()}C(Df,"getAlignedDiffs");function Tf(e,t){if(t){let r=e.length-1;return e.some((n,o)=>n[0]===Se&&(o!==r||n[1]!==` `))}return e.some(r=>r[0]===Se)}C(Tf,"hasCommonDiff");function kf(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(` `)||t.includes(` `),[o,a]=El(n?`${e} `:e,n?`${t} `:t,!0,r);if(Tf(o,n)){let i=ar(r),s=Df(o,i.changeColor);return ya(s,a,i)}}return Hn(e.split(` `),t.split(` `),r)}C(kf,"diffStringsUnified");function El(e,t,r,n){let[o,a]=xf(e,t,n);return r&&sf(o),[o,a]}C(El,"diffStringsRaw");function ia(e,t){let{commonColor:r}=ar(t);return r(e)}C(ia,"getCommonMessage");var{AsymmetricMatcher:Hx,DOMCollection:Vx,DOMElement:zx,Immutable:Gx,ReactElement:Wx,ReactTestComponent:Yx}=cl,Of=[Yx,Wx,zx,Vx,Gx,Hx,cl.Error],Hs={maxDepth:20,plugins:Of},If={callToJSON:!1,maxDepth:8,plugins:Of};function Rf(e,t,r){if(Object.is(e,t))return"";let n=qs(e),o=n,a=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;o=e.getExpectedType(),a=o==="string"}if(o!==qs(t)){let i=function(S){return S.length<=E?S:`${S.slice(0,E)}...`};C(i,"truncate");let{aAnnotation:s,aColor:l,aIndicator:u,bAnnotation:d,bColor:m,bIndicator:p}=ar(r),f=sa(If,r),g=Ct(e,f),y=Ct(t,f),E=1e5;g=i(g),y=i(y);let b=`${l(`${u} ${s}:`)} ${g}`,x=`${m(`${p} ${d}:`)} ${y}`;return`${b} ${x}`}if(!a)switch(n){case"string":return Hn(e.split(` `),t.split(` `),r);case"boolean":case"number":return Bf(e,t,r);case"map":return ta(Vs(e),Vs(t),r);case"set":return ta(zs(e),zs(t),r);default:return ta(e,t,r)}}C(Rf,"diff");function Bf(e,t,r){let n=Ct(e,Hs),o=Ct(t,Hs);return n===o?"":Hn(n.split(` `),o.split(` `),r)}C(Bf,"comparePrimitive");function Vs(e){return new Map(Array.from(e.entries()).sort())}C(Vs,"sortMap");function zs(e){return new Set(Array.from(e.values()).sort())}C(zs,"sortSet");function ta(e,t,r){let n,o=!1;try{let i=sa(Hs,r);n=Gs(e,t,i,r)}catch{o=!0}let a=ia(uf,r);if(n===void 0||n===a){let i=sa(If,r);n=Gs(e,t,i,r),n!==a&&!o&&(n=`${ia(Mx,r)} ${n}`)}return n}C(ta,"compareObjects");function sa(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:o}=ar(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:o??e.maxDepth}}C(sa,"getFormatOptions");function Gs(e,t,r,n){let o={...r,indent:0},a=Ct(e,o),i=Ct(t,o);if(a===i)return ia(uf,n);{let s=Ct(e,r),l=Ct(t,r);return Af(s.split(` `),l.split(` `),a.split(` `),i.split(` `),n)}}C(Gs,"getObjectsDifference");var Gm=2e4;function Ws(e){return oa(e)==="Object"&&typeof e.asymmetricMatch=="function"}C(Ws,"isAsymmetricMatcher");function Ys(e,t){let r=oa(e),n=oa(t);return r===n&&(r==="Object"||r==="Array")}C(Ys,"isReplaceable");function _f(e,t,r){let{aAnnotation:n,bAnnotation:o}=ar(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=Gm&&e.length<=Gm&&t!==e){if(t.includes(` `)||e.includes(` `))return kf(t,e,r);let[u]=El(t,e,!0),d=u.some(g=>g[0]===Se),m=Ff(n,o),p=m(n)+Nf(Ks(u,Ue,d)),f=m(o)+Pf(Ks(u,Le,d));return`${p} ${f}`}let a=js(t,{forceWritable:!0}),i=js(e,{forceWritable:!0}),{replacedExpected:s,replacedActual:l}=vl(i,a);return Rf(s,l,r)}C(_f,"printDiffOrStringify");function vl(e,t,r=new WeakSet,n=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):Ys(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),pl(t).forEach(o=>{let a=t[o],i=e[o];if(Ws(a))a.asymmetricMatch(i)&&(e[o]=a);else if(Ws(i))i.asymmetricMatch(a)&&(t[o]=i);else if(Ys(i,a)){let s=vl(i,a,r,n);e[o]=s.replacedActual,t[o]=s.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}C(vl,"replaceAsymmetricMatcher");function Ff(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}C(Ff,"getLabelPrinter");var Kx="\xB7";function Al(e){return e.replace(/\s+$/gm,t=>Kx.repeat(t.length))}C(Al,"replaceTrailingSpaces");function Pf(e){return Ut.red(Al(an(e)))}C(Pf,"printReceived");function Nf(e){return Ut.green(Al(an(e)))}C(Nf,"printExpected");function Ks(e,t,r){return e.reduce((n,o)=>n+(o[0]===Se?o[1]:o[0]===t?r?Ut.inverse(o[1]):o[1]:""),"")}C(Ks,"getCommonAndChangedSubstrings");var Xx="@@__IMMUTABLE_RECORD__@@",Jx="@@__IMMUTABLE_ITERABLE__@@";function Lf(e){return e&&(e[Jx]||e[Xx])}C(Lf,"isImmutable");var Zx=Object.getPrototypeOf({});function Xs(e){return e instanceof Error?`: ${e.message}`:typeof e=="string"?`: ${e}`:""}C(Xs,"getUnserializableMessage");function qt(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(e instanceof Error&&"toJSON"in e&&typeof e.toJSON=="function"){let r=e.toJSON();return r&&r!==e&&typeof r=="object"&&(typeof e.message=="string"&&jn(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&jn(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&jn(()=>r.name??(r.name=e.name)),e.cause!=null&&jn(()=>r.cause??(r.cause=qt(e.cause,t)))),qt(r,t)}if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(typeof Buffer<"u"&&e instanceof Buffer)return``;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return``;if(Lf(e))return qt(e.toJSON(),t);if(e instanceof Promise||e.constructor&&e.constructor.prototype==="AsyncFunction")return"Promise";if(typeof Element<"u"&&e instanceof Element)return e.tagName;if(typeof e.asymmetricMatch=="function")return`${e.toString()} ${Qh(e.sample)}`;if(typeof e.toJSON=="function")return qt(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);return t.set(e,r),e.forEach((n,o)=>{try{r[o]=qt(n,t)}catch(a){r[o]=Xs(a)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==Zx;)Object.getOwnPropertyNames(n).forEach(o=>{if(!(o in r))try{r[o]=qt(e[o],t)}catch(a){delete r[o],r[o]=Xs(a)}}),n=Object.getPrototypeOf(n);return r}}C(qt,"serializeValue");function jn(e){try{return e()}catch{}}C(jn,"safe");function jf(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}C(jf,"normalizeErrorMessage");function xl(e,t,r=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};let n=e;(n.showDiff||n.showDiff===void 0&&n.expected!==void 0&&n.actual!==void 0)&&(n.diff=_f(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=an(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=an(n.actual,10));try{typeof n.message=="string"&&(n.message=jf(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=xl(n.cause,t,r))}catch{}try{return qt(n)}catch(o){return qt(new Error(`Failed to fully serialize error: ${o?.message} Inner error message: ${n?.message}`))}}C(xl,"processError");var Mt={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},Ds=globalThis.__STORYBOOK_ADDONS_PREVIEW,Qx=(e=>(e.DONE="done",e.ERROR="error",e.ACTIVE="active",e.WAITING="waiting",e))(Qx||{}),ew=new Error("This function ran after the play function completed. Did you forget to `await` it?"),Wm=C(e=>Object.prototype.toString.call(e)==="[object Object]","isObject"),tw=C(e=>Object.prototype.toString.call(e)==="[object Module]","isModule"),rw=C(e=>{if(!Wm(e)&&!tw(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!Wm(t)},"isInstrumentable"),nw=C(e=>{try{return new e.constructor}catch{return{}}},"construct"),Ts=C(()=>({renderPhase:"preparing",isDebugging:!1,isPlaying:!1,isLocked:!1,cursor:0,calls:[],shadowCalls:[],callRefsByResult:new Map,chainedCallIds:new Set,ancestors:[],playUntil:void 0,resolvers:{},syncTimeout:void 0}),"getInitialState"),Ym=C((e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(o=>o.retain);if(!r.length)return;let n=new Map(Array.from(e.callRefsByResult.entries()).filter(([,o])=>o.retain));return{cursor:r.length,calls:r,callRefsByResult:n}},"getRetainedState"),Mf=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=C(()=>{try{this.state=H.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},"loadParentWindowState"),this.updateParentWindowState=C(()=>{try{H.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},"updateParentWindowState"),this.loadParentWindowState();let t=C(({storyId:l,renderPhase:u,isPlaying:d=!0,isDebugging:m=!1})=>{let p=this.getState(l);this.setState(l,{...Ts(),...Ym(p,m),renderPhase:u||p.renderPhase,shadowCalls:m?p.shadowCalls:[],chainedCallIds:m?p.chainedCallIds:new Set,playUntil:m?p.playUntil:void 0,isPlaying:d,isDebugging:m}),this.sync(l)},"resetState"),r=C(l=>({storyId:u,playUntil:d})=>{this.getState(u).isDebugging||this.setState(u,({calls:p})=>({calls:[],shadowCalls:p.map(f=>({...f,status:"waiting"})),isDebugging:!0}));let m=this.getLog(u);this.setState(u,({shadowCalls:p})=>{if(d||!m.length)return{playUntil:d};let f=p.findIndex(g=>g.id===m[0].callId);return{playUntil:p.slice(0,f).filter(g=>g.interceptable&&!g.ancestors?.length).slice(-1)[0]?.id}}),l.emit(br,{storyId:u,isDebugging:!0})},"start"),n=C(l=>({storyId:u})=>{let d=this.getLog(u).filter(p=>!p.ancestors?.length),m=d.reduceRight((p,f,g)=>p>=0||f.status==="waiting"?p:g,-1);r(l)({storyId:u,playUntil:d[m-1]?.callId})},"back"),o=C(l=>({storyId:u,callId:d})=>{let{calls:m,shadowCalls:p,resolvers:f}=this.getState(u),g=m.find(({id:E})=>E===d),y=p.find(({id:E})=>E===d);if(!g&&y&&Object.values(f).length>0){let E=this.getLog(u).find(b=>b.status==="waiting")?.callId;y.id!==E&&this.setState(u,{playUntil:y.id}),Object.values(f).forEach(b=>b())}else r(l)({storyId:u,playUntil:d})},"goto"),a=C(l=>({storyId:u})=>{let{resolvers:d}=this.getState(u);if(Object.values(d).length>0)Object.values(d).forEach(m=>m());else{let m=this.getLog(u).find(p=>p.status==="waiting")?.callId;m?r(l)({storyId:u,playUntil:m}):i({storyId:u})}},"next"),i=C(({storyId:l})=>{this.setState(l,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(l).resolvers).forEach(u=>u())},"end"),s=C(({storyId:l,newPhase:u})=>{let{isDebugging:d}=this.getState(l);if(u==="preparing"&&d)return t({storyId:l,renderPhase:u});if(u==="playing")return t({storyId:l,renderPhase:u,isDebugging:d});u==="played"?this.setState(l,{renderPhase:u,isLocked:!1,isPlaying:!1,isDebugging:!1}):u==="errored"?this.setState(l,{renderPhase:u,isLocked:!1,isPlaying:!1}):u==="aborted"?this.setState(l,{renderPhase:u,isLocked:!0,isPlaying:!1}):this.setState(l,{renderPhase:u}),this.sync(l)},"renderPhaseChanged");Ds&&Ds.ready().then(()=>{this.channel=Ds.getChannel(),this.channel.on(br,t),this.channel.on(gt,s),this.channel.on(Ro,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(Mt.START,r(this.channel)),this.channel.on(Mt.BACK,n(this.channel)),this.channel.on(Mt.GOTO,o(this.channel)),this.channel.on(Mt.NEXT,a(this.channel)),this.channel.on(Mt.END,i)})}getState(t){return this.state[t]||Ts()}setState(t,r){if(t){let n=this.getState(t),o=typeof r=="function"?r(n):r;this.state={...this.state,[t]:{...n,...o}},this.updateParentWindowState()}}cleanup(){this.state=Object.entries(this.state).reduce((r,[n,o])=>{let a=Ym(o);return a&&(r[n]=Object.assign(Ts(),a)),r},{});let t={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(Mt.SYNC,t),this.updateParentWindowState()}getLog(t){let{calls:r,shadowCalls:n}=this.getState(t),o=[...n];r.forEach((i,s)=>{o[s]=i});let a=new Set;return o.reduceRight((i,s)=>(s.args.forEach(l=>{l?.__callId__&&a.add(l.__callId__)}),s.path.forEach(l=>{l.__callId__&&a.add(l.__callId__)}),(s.interceptable||s.exception)&&!a.has(s.id)&&(i.unshift({callId:s.id,status:s.status,ancestors:s.ancestors}),a.add(s.id)),i),[])}instrument(t,r,n=0){if(!rw(t))return t;let{mutate:o=!1,path:a=[]}=r,i=r.getKeys?r.getKeys(t,n):Object.keys(t);return n+=1,i.reduce((s,l)=>{let u=$f(t,l);if(typeof u?.get=="function"){if(u.configurable){let m=C(()=>u?.get?.bind(t)?.(),"getter");Object.defineProperty(s,l,{get:C(()=>this.instrument(m(),{...r,path:a.concat(l)},n),"get")})}return s}let d=t[l];return typeof d!="function"?(s[l]=this.instrument(d,{...r,path:a.concat(l)},n),s):"__originalFn__"in d&&typeof d.__originalFn__=="function"?(s[l]=d,s):(s[l]=(...m)=>this.track(l,d,t,m,r),s[l].__originalFn__=d,Object.defineProperty(s[l],"name",{value:l,writable:!1}),Object.keys(d).length>0&&Object.assign(s[l],this.instrument({...d},{...r,path:a.concat(l)},n)),s)},o?t:nw(t))}track(t,r,n,o,a){let i=o?.[0]?.__storyId__||H.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:s,ancestors:l}=this.getState(i);this.setState(i,{cursor:s+1});let u=`${l.slice(-1)[0]||i} [${s}] ${t}`,{path:d=[],intercept:m=!1,retain:p=!1}=a,f=typeof m=="function"?m(t,d):m,g={id:u,cursor:s,storyId:i,ancestors:l,path:d,method:t,args:o,interceptable:f,retain:p},y=(f&&!l.length?this.intercept:this.invoke).call(this,r,n,g,a);return this.instrument(y,{...a,mutate:!0,path:[{__callId__:g.id}]})}intercept(t,r,n,o){let{chainedCallIds:a,isDebugging:i,playUntil:s}=this.getState(n.storyId),l=a.has(n.id);return!i||l||s?(s===n.id&&this.setState(n.storyId,{playUntil:void 0}),this.invoke(t,r,n,o)):new Promise(u=>{this.setState(n.storyId,({resolvers:d})=>({isLocked:!1,resolvers:{...d,[n.id]:u}}))}).then(()=>(this.setState(n.storyId,u=>{let{[n.id]:d,...m}=u.resolvers;return{isLocked:!0,resolvers:m}}),this.invoke(t,r,n,o)))}invoke(t,r,n,o){let{callRefsByResult:a,renderPhase:i}=this.getState(n.storyId),s=25,l=C((m,p,f)=>{if(f.includes(m))return"[Circular]";if(f=[...f,m],p>s)return"...";if(a.has(m))return a.get(m);if(m instanceof Array)return m.map(g=>l(g,++p,f));if(m instanceof Date)return{__date__:{value:m.toISOString()}};if(m instanceof Error){let{name:g,message:y,stack:E}=m;return{__error__:{name:g,message:y,stack:E}}}if(m instanceof RegExp){let{flags:g,source:y}=m;return{__regexp__:{flags:g,source:y}}}if(m instanceof H.window?.HTMLElement){let{prefix:g,localName:y,id:E,classList:b,innerText:x}=m,S=Array.from(b);return{__element__:{prefix:g,localName:y,id:E,classNames:S,innerText:x}}}return typeof m=="function"?{__function__:{name:"getMockName"in m?m.getMockName():m.name}}:typeof m=="symbol"?{__symbol__:{description:m.description}}:typeof m=="object"&&m?.constructor?.name&&m?.constructor?.name!=="Object"?{__class__:{name:m.constructor.name}}:Object.prototype.toString.call(m)==="[object Object]"?Object.fromEntries(Object.entries(m).map(([g,y])=>[g,l(y,++p,f)])):m},"serializeValues"),u={...n,args:n.args.map(m=>l(m,0,[]))};n.path.forEach(m=>{m?.__callId__&&this.setState(n.storyId,({chainedCallIds:p})=>({chainedCallIds:new Set(Array.from(p).concat(m.__callId__))}))});let d=C(m=>{if(m instanceof Error){let{name:p,message:f,stack:g,callId:y=n.id}=m,{showDiff:E=void 0,diff:b=void 0,actual:x=void 0,expected:S=void 0}=m.name==="AssertionError"?xl(m):m,T={name:p,message:f,stack:g,callId:y,showDiff:E,diff:b,actual:x,expected:S};if(this.update({...u,status:"error",exception:T}),this.setState(n.storyId,_=>({callRefsByResult:new Map([...Array.from(_.callRefsByResult.entries()),[m,{__callId__:n.id,retain:n.retain}]])})),n.ancestors?.length)throw Object.prototype.hasOwnProperty.call(m,"callId")||Object.defineProperty(m,"callId",{value:n.id}),m}throw m},"handleException");try{if(i==="played"&&!n.retain)throw ew;let m=(o.getArgs?o.getArgs(n,this.getState(n.storyId)):n.args).map(f=>typeof f!="function"||qf(f)||Object.keys(f).length?f:(...g)=>{let{cursor:y,ancestors:E}=this.getState(n.storyId);this.setState(n.storyId,{cursor:0,ancestors:[...E,n.id]});let b=C(()=>this.setState(n.storyId,{cursor:y,ancestors:E}),"restore"),x=!1;try{let S=f(...g);return S instanceof Promise?(x=!0,S.finally(b)):S}finally{x||b()}}),p=t.apply(r,m);return p&&["object","function","symbol"].includes(typeof p)&&this.setState(n.storyId,f=>({callRefsByResult:new Map([...Array.from(f.callRefsByResult.entries()),[p,{__callId__:n.id,retain:n.retain}]])})),this.update({...u,status:p instanceof Promise?"active":"done"}),p instanceof Promise?p.then(f=>(this.update({...u,status:"done"}),f),d):p}catch(m){return d(m)}}update(t){this.channel?.emit(Mt.CALL,t),this.setState(t.storyId,({calls:r})=>{let n=r.concat(t).reduce((o,a)=>Object.assign(o,{[a.id]:a}),{});return{calls:Object.values(n).sort((o,a)=>o.id.localeCompare(a.id,void 0,{numeric:!0}))}}),this.sync(t.storyId)}sync(t){let r=C(()=>{let{isLocked:n,isPlaying:o}=this.getState(t),a=this.getLog(t),i=a.filter(({ancestors:d})=>!d.length).find(d=>d.status==="waiting")?.callId,s=a.some(d=>d.status==="active");if(this.detached||n||s||a.length===0){let d={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:a};this.channel?.emit(Mt.SYNC,d);return}let l=a.some(d=>d.status==="done"||d.status==="error"),u={controlStates:{detached:this.detached,start:l,back:l,goto:!0,next:o,end:o},logItems:a,pausedAt:i};this.channel?.emit(Mt.SYNC,u)},"synchronize");this.setState(t,({syncTimeout:n})=>(clearTimeout(n),{syncTimeout:setTimeout(r,0)}))}};C(Mf,"Instrumenter");var ow=Mf;function Vn(e,t={}){try{let r=!1,n=!1;return H.window?.location?.search?.includes("instrument=true")?r=!0:H.window?.location?.search?.includes("instrument=false")&&(n=!0),H.window?.parent===H.window&&!r||n?e:(H.window&&!H.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(H.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new ow),(H.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(r){return yt.warn(r),e}}C(Vn,"instrument");function $f(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}C($f,"getPropertyDescriptor");function qf(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}C(qf,"isClass");var aw=Object.create,Ta=Object.defineProperty,iw=Object.getOwnPropertyDescriptor,sw=Object.getOwnPropertyNames,lw=Object.getPrototypeOf,uw=Object.prototype.hasOwnProperty,I=(e,t)=>Ta(e,"name",{value:t,configurable:!0}),cw=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),fg=(e,t)=>{for(var r in t)Ta(e,r,{get:t[r],enumerable:!0})},dw=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of sw(t))!uw.call(e,o)&&o!==r&&Ta(e,o,{get:()=>t[o],enumerable:!(n=iw(t,o))||n.enumerable});return e},pw=(e,t,r)=>(r=e!=null?aw(lw(e)):{},dw(t||!e||!e.__esModule?Ta(r,"default",{value:e,enumerable:!0}):r,e)),mw=cw(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=(function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(o){return Object.keys(o).concat(Object.getOwnPropertySymbols(o))}:Object.keys;return function(o,a){return I(function i(s,l,u){var d,m,p,f=t.call(s),g=t.call(l);if(s===l)return!0;if(s==null||l==null)return!1;if(u.indexOf(s)>-1&&u.indexOf(l)>-1)return!0;if(u.push(s,l),f!=g||(d=n(s),m=n(l),d.length!=m.length||d.some(function(y){return!i(s[y],l[y],u)})))return!1;switch(f.slice(8,-1)){case"Symbol":return s.valueOf()==l.valueOf();case"Date":case"Number":return+s==+l||+s!=+s&&+l!=+l;case"RegExp":case"Function":case"String":case"Boolean":return""+s==""+l;case"Set":case"Map":d=s.entries(),m=l.entries();do if(!i((p=d.next()).value,m.next().value,u))return!1;while(!p.done);return!0;case"ArrayBuffer":s=new Uint8Array(s),l=new Uint8Array(l);case"DataView":s=new Uint8Array(s.buffer),l=new Uint8Array(l.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(s.length!=l.length)return!1;for(p=0;p`${r} ${n}${o}`).replace(/([a-z])([A-Z])/g,(t,r,n)=>`${r} ${n}`).replace(/([a-z])([0-9])/gi,(t,r,n)=>`${r} ${n}`).replace(/([0-9])([a-z])/gi,(t,r,n)=>`${r} ${n}`).replace(/(\s|^)(\w)/g,(t,r,n)=>`${r}${n.toUpperCase()}`).replace(/ +/g," ").trim()}I(gg,"toStartCaseStr");var Uf=pw(mw(),1),yg=I(e=>e.map(t=>typeof t<"u").filter(Boolean).length,"count"),hw=I((e,t)=>{let{exists:r,eq:n,neq:o,truthy:a}=e;if(yg([r,n,o,a])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:o})}`);if(typeof n<"u")return(0,Uf.isEqual)(t,n);if(typeof o<"u")return!(0,Uf.isEqual)(t,o);if(typeof r<"u"){let i=typeof t<"u";return r?i:!i}return typeof a>"u"||a?!!t:!t},"testValue"),Zr=I((e,t,r)=>{if(!e.if)return!0;let{arg:n,global:o}=e.if;if(yg([n,o])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:o})}`);let a=n?t[n]:r[o];return hw(e.if,a)},"includeConditionalArg");function bg(){let e={setHandler:I(()=>{},"setHandler"),send:I(()=>{},"send")};return new No({transport:e})}I(bg,"mockChannel");var Eg=class{constructor(){this.getChannel=I(()=>{if(!this.channel){let t=bg();return this.setChannel(t),t}return this.channel},"getChannel"),this.ready=I(()=>this.promise,"ready"),this.hasChannel=I(()=>!!this.channel,"hasChannel"),this.setChannel=I(t=>{this.channel=t,this.resolve()},"setChannel"),this.promise=new Promise(t=>{this.resolve=()=>t(this.getChannel())})}};I(Eg,"AddonStore");var fw=Eg,wl="__STORYBOOK_ADDONS_PREVIEW";function vg(){return H[wl]||(H[wl]=new fw),H[wl]}I(vg,"getAddonsStore");var Hf=vg(),Ag=class{constructor(){this.hookListsMap=void 0,this.mountedDecorators=void 0,this.prevMountedDecorators=void 0,this.currentHooks=void 0,this.nextHookIndex=void 0,this.currentPhase=void 0,this.currentEffects=void 0,this.prevEffects=void 0,this.currentDecoratorName=void 0,this.hasUpdates=void 0,this.currentContext=void 0,this.renderListener=I(t=>{t===this.currentContext?.id&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},"renderListener"),this.init()}init(){this.hookListsMap=new WeakMap,this.mountedDecorators=new Set,this.prevMountedDecorators=new Set,this.currentHooks=[],this.nextHookIndex=0,this.currentPhase="NONE",this.currentEffects=[],this.prevEffects=[],this.currentDecoratorName=null,this.hasUpdates=!1,this.currentContext=null}clean(){this.prevEffects.forEach(t=>{t.destroy&&t.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let t=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,t}triggerEffects(){this.prevEffects.forEach(t=>{!this.currentEffects.includes(t)&&t.destroy&&t.destroy()}),this.currentEffects.forEach(t=>{this.prevEffects.includes(t)||(t.destroy=t.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),Hf.getChannel().on(rr,this.renderListener)}removeRenderListeners(){Hf.getChannel().removeListener(rr,this.renderListener)}};I(Ag,"HooksContext");var gw=Ag;function Dl(e){let t=I((...r)=>{let{hooks:n}=typeof r[0]=="function"?r[1]:r[0],o=n.currentPhase,a=n.currentHooks,i=n.nextHookIndex,s=n.currentDecoratorName;n.currentDecoratorName=e.name,n.prevMountedDecorators.has(e)?(n.currentPhase="UPDATE",n.currentHooks=n.hookListsMap.get(e)||[]):(n.currentPhase="MOUNT",n.currentHooks=[],n.hookListsMap.set(e,n.currentHooks),n.prevMountedDecorators.add(e)),n.nextHookIndex=0;let l=H.STORYBOOK_HOOKS_CONTEXT;H.STORYBOOK_HOOKS_CONTEXT=n;let u=e(...r);if(H.STORYBOOK_HOOKS_CONTEXT=l,n.currentPhase==="UPDATE"&&n.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return n.currentPhase=o,n.currentHooks=a,n.nextHookIndex=i,n.currentDecoratorName=s,u},"hookified");return t.originalFn=e,t}I(Dl,"hookify");var Sl=0,yw=25,bw=I(e=>(t,r)=>{let n=e(Dl(t),r.map(o=>Dl(o)));return o=>{let{hooks:a}=o;a.prevMountedDecorators??=new Set,a.mountedDecorators=new Set([t,...r]),a.currentContext=o,a.hasUpdates=!1;let i=n(o);for(Sl=1;a.hasUpdates;)if(a.hasUpdates=!1,a.currentEffects=[],i=n(o),Sl+=1,Sl>yw)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return a.addRenderListeners(),i}},"applyHooks");function Aa(e){if(!e||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)==="[object Object]":!1}I(Aa,"isPlainObject");function dn(e,t){let r={},n=Object.keys(e);for(let o=0;o{let{target:a=wg}=t[n]||{};r[a]=r[a]||{},r[a][n]=o}),r}I(Sg,"groupArgsByTarget");var Ew=I((e={})=>Object.entries(e).reduce((t,[r,{defaultValue:n}])=>(typeof n<"u"&&(t[r]=n),t),{}),"getValuesFromArgTypes"),vw=I(e=>typeof e=="string"?{name:e}:e,"normalizeType"),Aw=I(e=>typeof e=="string"?{type:e}:e,"normalizeControl"),xw=I((e,t)=>{let{type:r,control:n,...o}=e,a={name:t,...o};return r&&(a.type=vw(r)),n?a.control=Aw(n):n===!1&&(a.control={disable:!0}),a},"normalizeInputType"),wa=I(e=>dn(e,xw),"normalizeInputTypes"),oe=I(e=>Array.isArray(e)?e:e?[e]:[],"normalizeArrays"),ww=ka` CSF .story annotations deprecated; annotate story functions directly: - StoryFn.story.name => StoryFn.storyName - StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators) See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod. `;function Cg(e,t,r){let n=t,o=typeof t=="function"?t:null,{story:a}=n;a&&(Z.debug("deprecated story",a),$r(ww));let i=Jo(e),s=typeof n!="function"&&n.name||n.storyName||a?.name||i,l=[...oe(n.decorators),...oe(a?.decorators)],u={...a?.parameters,...n.parameters},d={...a?.args,...n.args},m={...a?.argTypes,...n.argTypes},p=[...oe(n.loaders),...oe(a?.loaders)],f=[...oe(n.beforeEach),...oe(a?.beforeEach)],g=[...oe(n.afterEach),...oe(a?.afterEach)],{render:y,play:E,tags:b=[],globals:x={}}=n,S=u.__id||Xo(r.id,i);return{moduleExport:t,id:S,name:s,tags:b,decorators:l,parameters:u,args:d,argTypes:wa(m),loaders:p,beforeEach:f,afterEach:g,globals:x,...y&&{render:y},...o&&{userStoryFn:o},...E&&{play:E}}}I(Cg,"normalizeStory");function Dg(e,t=e.title,r){let{id:n,argTypes:o}=e;return{id:Nn(n||t),...e,title:t,...o&&{argTypes:wa(o)},parameters:{fileName:r,...e.parameters}}}I(Dg,"normalizeComponentAnnotations");function Tg(e){return e!=null&&kg(e).includes("mount")}I(Tg,"mountDestructured");function kg(e){let t=e.toString().match(/[^(]*\(([^)]*)/);if(!t)return[];let r=Tl(t[1]);if(!r.length)return[];let n=r[0];return n.startsWith("{")&&n.endsWith("}")?Tl(n.slice(1,-1).replace(/\s/g,"")).map(o=>o.replace(/:.*|=.*/g,"")):[]}I(kg,"getUsedProps");function Tl(e){let t=[],r=[],n=0;for(let a=0;at(n,o)}I(Og,"decorateStory");function Ig({componentId:e,title:t,kind:r,id:n,name:o,story:a,parameters:i,initialArgs:s,argTypes:l,...u}={}){return u}I(Ig,"sanitizeStoryContextUpdate");function Rg(e,t){let r={},n=I(a=>i=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...Ig(i)},a(r.value)},"bindWithContext"),o=t.reduce((a,i)=>Og(a,i,n),e);return a=>(r.value=a,o(a))}I(Rg,"defaultDecorateStory");var lr=I((...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((o,a)=>(Object.entries(a).forEach(([i,s])=>{let l=o[i];Array.isArray(s)||typeof l>"u"?o[i]=s:Aa(s)&&Aa(l)?t[i]=!0:typeof s<"u"&&(o[i]=s)}),o),{});return Object.keys(t).forEach(o=>{let a=r.filter(Boolean).map(i=>i[o]).filter(i=>typeof i<"u");a.every(i=>Aa(i))?n[o]=lr(...a):n[o]=a[a.length-1]}),n},"combineParameters");function Bg(e,t,r){let{moduleExport:n,id:o,name:a}=e||{},i=_g(e,t,r),s=I(async O=>{let k={};for(let B of[oe(r.loaders),oe(t.loaders),oe(e.loaders)]){if(O.abortSignal.aborted)return k;let P=await Promise.all(B.map(L=>L(O)));Object.assign(k,...P)}return k},"applyLoaders"),l=I(async O=>{let k=new Array;for(let B of[...oe(r.beforeEach),...oe(t.beforeEach),...oe(e.beforeEach)]){if(O.abortSignal.aborted)return k;let P=await B(O);P&&k.push(P)}return k},"applyBeforeEach"),u=I(async O=>{let k=[...oe(r.afterEach),...oe(t.afterEach),...oe(e.afterEach)].reverse();for(let B of k){if(O.abortSignal.aborted)return;await B(O)}},"applyAfterEach"),d=I(O=>O.originalStoryFn(O.args,O),"undecoratedStoryFn"),{applyDecorators:m=Rg,runStep:p}=r,f=[...oe(e?.decorators),...oe(t?.decorators),...oe(r?.decorators)],g=e?.userStoryFn||e?.render||t.render||r.render,y=bw(m)(d,f),E=I(O=>y(O),"unboundStoryFn"),b=e?.play??t?.play,x=Tg(b);if(!g&&!x)throw new Lo({id:o});let S=I(O=>async()=>(await O.renderToCanvas(),O.canvas),"defaultMount"),T=e.mount??t.mount??r.mount??S,_=r.testingLibraryRender;return{storyGlobals:{},...i,moduleExport:n,id:o,name:a,story:a,originalStoryFn:g,undecoratedStoryFn:d,unboundStoryFn:E,applyLoaders:s,applyBeforeEach:l,applyAfterEach:u,playFunction:b,runStep:p,mount:T,testingLibraryRender:_,renderToCanvas:r.renderToCanvas,usesMount:x}}I(Bg,"prepareStory");function _g(e,t,r){let n=["dev","test"],o=H.DOCS_OPTIONS?.autodocs===!0?["autodocs"]:[],a=en(...n,...o,...r.tags??[],...t.tags??[],...e?.tags??[]),i=lr(r.parameters,t.parameters,e?.parameters),{argTypesEnhancers:s=[],argsEnhancers:l=[]}=r,u=lr(r.argTypes,t.argTypes,e?.argTypes);if(e){let b=e?.userStoryFn||e?.render||t.render||r.render;i.__isArgsStory=b&&b.length>0}let d={...r.args,...t.args,...e?.args},m={...t.globals,...e?.globals},p={componentId:t.id,title:t.title,kind:t.title,id:e?.id||t.id,name:e?.name||"__meta",story:e?.name||"__meta",component:t.component,subcomponents:t.subcomponents,tags:a,parameters:i,initialArgs:d,argTypes:u,storyGlobals:m};p.argTypes=s.reduce((b,x)=>x({...p,argTypes:b}),p.argTypes);let f={...d};p.initialArgs=[...l].reduce((b,x)=>({...b,...x({...p,initialArgs:b})}),f);let{name:g,story:y,...E}=p;return E}I(_g,"preparePartialAnnotations");function Fg(e){let{args:t}=e,r={...e,allArgs:void 0,argsByTarget:void 0};if(H.FEATURES?.argTypeTargetsV7){let a=Sg(e);r={...e,allArgs:e.args,argsByTarget:a,args:a[wg]||{}}}let n=Object.entries(r.args).reduce((a,[i,s])=>{if(!r.argTypes[i]?.mapping)return a[i]=s,a;let l=I(u=>{let d=r.argTypes[i].mapping;return d&&u in d?d[u]:u},"mappingFn");return a[i]=Array.isArray(s)?s.map(l):l(s),a},{}),o=Object.entries(n).reduce((a,[i,s])=>{let l=r.argTypes[i]||{};return Zr(l,n,r.globals)&&(a[i]=s),a},{});return{...r,unmappedArgs:t,args:o}}I(Fg,"prepareContext");var kl=I((e,t,r)=>{let n=typeof e;switch(n){case"boolean":case"string":case"number":case"function":case"symbol":return{name:n};default:break}return e?r.has(e)?(Z.warn(ka` We've detected a cycle in arg '${t}'. Args should be JSON-serializable. Consider using the mapping feature or fully custom args: - Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values - Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args `),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?kl(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:dn(e,o=>kl(o,t,new Set(r)))}):{name:"object",value:{}}},"inferType"),Pg=I(e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,o=dn(n,(i,s)=>({name:s,type:kl(i,`${t}.${s}`,new Set)})),a=dn(r,(i,s)=>({name:s}));return lr(o,a,r)},"inferArgTypes");Pg.secondPass=!0;var Vf=I((e,t)=>Array.isArray(t)?t.includes(e):e.match(t),"matches"),Sw=I((e,t,r)=>!t&&!r?e:e&&xg(e,(n,o)=>{let a=n.name||o.toString();return!!(!t||Vf(a,t))&&(!r||!Vf(a,r))}),"filterArgTypes"),Cw=I((e,t,r)=>{let{type:n,options:o}=e;if(n){if(r.color&&r.color.test(t)){let a=n.name;if(a==="string")return{control:{type:"color"}};a!=="enum"&&Z.warn(`Addon controls: Control of type color only supports string, received "${a}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(n.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:a}=n;return{control:{type:a?.length<=5?"radio":"select"},options:a}}case"function":case"symbol":return null;default:return{control:{type:o?"select":"object"}}}}},"inferControl"),Ng=I(e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:o=null,matchers:a={}}={}}}=e;if(!r)return t;let i=Sw(t,n,o),s=dn(i,(l,u)=>l?.type&&Cw(l,u.toString(),a));return lr(s,i)},"inferControls");Ng.secondPass=!0;function _l({argTypes:e,globalTypes:t,argTypesEnhancers:r,decorators:n,loaders:o,beforeEach:a,afterEach:i,initialGlobals:s,...l}){return{...e&&{argTypes:wa(e)},...t&&{globalTypes:wa(t)},decorators:oe(n),loaders:oe(o),beforeEach:oe(a),afterEach:oe(i),argTypesEnhancers:[...r||[],Pg,Ng],initialGlobals:s,...l}}I(_l,"normalizeProjectAnnotations");var Dw=I(e=>async()=>{let t=[];for(let r of e){let n=await r();n&&t.unshift(n)}return async()=>{for(let r of t)await r()}},"composeBeforeAllHooks");function Lg(e){return async(t,r,n)=>{await e.reduceRight((o,a)=>async()=>a(t,o,n),async()=>r(n))()}}I(Lg,"composeStepRunners");function pn(e,t){return e.map(r=>r.default?.[t]??r[t]).filter(Boolean)}I(pn,"getField");function zt(e,t,r={}){return pn(e,t).reduce((n,o)=>{let a=oe(o);return r.reverseFileOrder?[...a,...n]:[...n,...a]},[])}I(zt,"getArrayField");function Gn(e,t){return Object.assign({},...pn(e,t))}I(Gn,"getObjectField");function un(e,t){return pn(e,t).pop()}I(un,"getSingletonField");function Fl(e){let t=zt(e,"argTypesEnhancers"),r=pn(e,"runStep"),n=zt(e,"beforeAll");return{parameters:lr(...pn(e,"parameters")),decorators:zt(e,"decorators",{reverseFileOrder:!(H.FEATURES?.legacyDecoratorFileOrder??!1)}),args:Gn(e,"args"),argsEnhancers:zt(e,"argsEnhancers"),argTypes:Gn(e,"argTypes"),argTypesEnhancers:[...t.filter(o=>!o.secondPass),...t.filter(o=>o.secondPass)],initialGlobals:Gn(e,"initialGlobals"),globalTypes:Gn(e,"globalTypes"),loaders:zt(e,"loaders"),beforeAll:Dw(n),beforeEach:zt(e,"beforeEach"),afterEach:zt(e,"afterEach"),render:un(e,"render"),renderToCanvas:un(e,"renderToCanvas"),applyDecorators:un(e,"applyDecorators"),runStep:Lg(r),tags:zt(e,"tags"),mount:un(e,"mount"),testingLibraryRender:un(e,"testingLibraryRender")}}I(Fl,"composeConfigs");function jg(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}I(jg,"isTestEnvironment");function Mg(e=!0){if(!("document"in globalThis&&"createElement"in globalThis.document))return()=>{};let t=document.createElement("style");t.textContent=`*, *:before, *:after { animation: none !important; }`,document.head.appendChild(t);let r=document.createElement("style");return r.textContent=`*, *:before, *:after { animation-delay: 0s !important; animation-direction: ${e?"reverse":"normal"} !important; animation-play-state: paused !important; transition: none !important; }`,document.head.appendChild(r),document.body.clientHeight,document.head.removeChild(t),()=>{r.parentNode?.removeChild(r)}}I(Mg,"pauseAnimations");async function $g(e){if(!("document"in globalThis&&"getAnimations"in globalThis.document&&"querySelectorAll"in globalThis.document))return;let t=!1;await Promise.race([new Promise(r=>{setTimeout(()=>{let n=[globalThis.document,...Pl(globalThis.document)],o=I(async()=>{if(t||e?.aborted)return;let a=n.flatMap(i=>i?.getAnimations?.()||[]).filter(i=>i.playState==="running"&&!qg(i));a.length>0&&(await Promise.all(a.map(i=>i.finished)),await o())},"checkAnimationsFinished");o().then(r)},100)}),new Promise(r=>setTimeout(()=>{t=!0,r(void 0)},5e3))])}I($g,"waitForAnimations");function Pl(e){return[e,...e.querySelectorAll("*")].reduce((t,r)=>("shadowRoot"in r&&r.shadowRoot&&t.push(r.shadowRoot,...Pl(r.shadowRoot)),t),[])}I(Pl,"getShadowRoots");function qg(e){if(e instanceof CSSAnimation&&e.effect instanceof KeyframeEffect&&e.effect.target){let t=getComputedStyle(e.effect.target,e.effect.pseudoElement),r=t.animationName?.split(", ").indexOf(e.animationName);return t.animationIterationCount.split(", ")[r]==="infinite"}return!1}I(qg,"isInfiniteAnimation");var Ug=class{constructor(){this.reports=[]}async addReport(t){this.reports.push(t)}};I(Ug,"ReporterAPI");var Tw=Ug,kw="ComposedStory",Ow="Unnamed Story",sr=[];function Hg(e,t,r,n,o){if(e===void 0)throw new Error("Expected a story but received undefined.");t.title=t.title??kw;let a=Dg(t),i=o||e.storyName||e.story?.name||e.name||Ow,s=Cg(i,e,a),l=_l(Fl([n??globalThis.globalProjectAnnotations??{},r??{}])),u=Bg(s,a,l),d={...Ew(l.globalTypes),...l.initialGlobals,...u.storyGlobals},m=new Tw,p=I(()=>{let b=Fg({hooks:new gw,globals:d,args:{...u.initialArgs},viewMode:"story",reporting:m,loaded:{},abortSignal:new AbortController().signal,step:I((x,S)=>u.runStep(x,S,b),"step"),canvasElement:null,canvas:{},userEvent:{},globalTypes:l.globalTypes,...u,context:null,mount:null});return b.parameters.__isPortableStory=!0,b.context=b,u.renderToCanvas&&(b.renderToCanvas=async()=>{let x=await u.renderToCanvas?.({componentId:u.componentId,title:u.title,id:u.id,name:u.name,tags:u.tags,showMain:I(()=>{},"showMain"),showError:I(S=>{throw new Error(`${S.title} ${S.description}`)},"showError"),showException:I(S=>{throw S},"showException"),forceRemount:!0,storyContext:b,storyFn:I(()=>u.unboundStoryFn(b),"storyFn"),unboundStoryFn:u.unboundStoryFn},b.canvasElement);x&&sr.push(x)}),b.mount=u.mount(b),b},"initializeContext"),f,g=I(async b=>{let x=p();return x.canvasElement??=globalThis?.document?.body,f&&(x.loaded=f.loaded),Object.assign(x,b),u.playFunction(x)},"play"),y=I(b=>{let x=p();return Object.assign(x,b),Vg(u,x)},"run"),E=u.playFunction?g:void 0;return Object.assign(I(function(b){let x=p();return f&&(x.loaded=f.loaded),x.args={...x.initialArgs,...b},u.unboundStoryFn(x)},"storyFn"),{id:u.id,storyName:i,load:I(async()=>{for(let x of[...sr].reverse())await x();sr.length=0;let b=p();b.loaded=await u.applyLoaders(b),sr.push(...(await u.applyBeforeEach(b)).filter(Boolean)),f=b},"load"),globals:d,args:u.initialArgs,parameters:u.parameters,argTypes:u.argTypes,play:E,run:y,reporting:m,tags:u.tags})}I(Hg,"composeStory");async function Vg(e,t){for(let a of[...sr].reverse())await a();if(sr.length=0,!t.canvasElement){let a=document.createElement("div");globalThis?.document?.body?.appendChild(a),t.canvasElement=a,sr.push(()=>{globalThis?.document?.body?.contains(a)&&globalThis?.document?.body?.removeChild(a)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;sr.push(...(await e.applyBeforeEach(t)).filter(Boolean));let r=e.playFunction,n=e.usesMount;if(n||await t.mount(),t.abortSignal.aborted)return;r&&(n||(t.mount=async()=>{throw new qr({playFunction:r.toString()})}),await r(t));let o;jg()?o=Mg():await $g(t.abortSignal),await e.applyAfterEach(t),await o?.()}I(Vg,"runStory");var Iw=!1,Cl="Invariant failed";function Sa(e,t){if(!e){if(Iw)throw new Error(Cl);var r=typeof t=="function"?t():t,n=r?"".concat(Cl,": ").concat(r):Cl;throw new Error(n)}}I(Sa,"invariant");var zg={};fg(zg,{argsEnhancers:()=>Lw});var Nl="storybook/actions",$L=`${Nl}/panel`,Rw=`${Nl}/action-event`,qL=`${Nl}/action-clear`,Bw={depth:10,clearOnStoryChange:!0,limit:50},Gg=I((e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:Gg(r,t)},"findProto"),_w=I(e=>!!(typeof e=="object"&&e&&Gg(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),"isReactSyntheticEvent"),Fw=I(e=>{if(_w(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let r=Object.getOwnPropertyDescriptor(t,"view"),n=r?.value;return typeof n=="object"&&n?.constructor.name==="Window"&&Object.defineProperty(t,"view",{...r,value:Object.create(n.constructor.prototype)}),t}return e},"serializeArg");function Oa(e,t={}){let r={...Bw,...t},n=I(function(...o){if(t.implicit){let m=("__STORYBOOK_PREVIEW__"in H?H.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(p=>p.phase==="playing"||p.phase==="rendering");if(m){let p=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,f=new Cd({phase:m.phase,name:e,deprecated:p});if(p)console.warn(f);else throw f}}let a=ut.getChannel(),i=Date.now().toString(36)+Math.random().toString(36).substring(2),s=5,l=o.map(Fw),u=o.length>1?l:l[0],d={id:i,count:0,data:{name:e,args:u},options:{...r,maxDepth:s+(r.depth||3)}};a.emit(Rw,d)},"actionHandler");return n.isAction=!0,n.implicit=t.implicit,n}I(Oa,"action");var Wg=I((e,t)=>typeof t[e]>"u"&&!(e in t),"isInInitialArgs"),Pw=I(e=>{let{initialArgs:t,argTypes:r,id:n,parameters:{actions:o}}=e;if(!o||o.disable||!o.argTypesRegex||!r)return{};let a=new RegExp(o.argTypesRegex);return Object.entries(r).filter(([i])=>!!a.test(i)).reduce((i,[s,l])=>(Wg(s,t)&&(i[s]=Oa(s,{implicit:!0,id:n})),i),{})},"inferActionsFromArgTypesRegex"),Nw=I(e=>{let{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n?.disable||!r?{}:Object.entries(r).filter(([o,a])=>!!a.action).reduce((o,[a,i])=>(Wg(a,t)&&(o[a]=Oa(typeof i.action=="string"?i.action:a)),o),{})},"addActionsFromArgTypes"),Lw=[Nw,Pw],Yg={};fg(Yg,{loaders:()=>Mw});var zf=!1,jw=I(e=>{let{parameters:t}=e;t?.actions?.disable||zf||(Am((r,n)=>{let o=r.getMockName();o!=="spy"&&(!/^next\/.*::/.test(o)||["next/router::useRouter()","next/navigation::useRouter()","next/navigation::redirect","next/cache::","next/headers::cookies().set","next/headers::cookies().delete","next/headers::headers().set","next/headers::headers().delete"].some(a=>o.startsWith(a)))&&Oa(o)(n)}),zf=!0)},"logActionsWhenMockCalled"),Mw=[jw],Gf=I(()=>({...zg,...Yg}),"default"),$w="storybook/background",Ca="backgrounds",VL={UPDATE:`${$w}/update`},qw={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},{document:Dt}=globalThis,Uw=I(()=>globalThis?.matchMedia?!!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches:!1,"isReduceMotionEnabled"),Wf=I(e=>{(Array.isArray(e)?e:[e]).forEach(Hw)},"clearStyles"),Hw=I(e=>{if(!Dt)return;let t=Dt.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},"clearStyle"),Vw=I((e,t)=>{if(!Dt)return;let r=Dt.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=Dt.createElement("style");n.setAttribute("id",e),n.innerHTML=t,Dt.head.appendChild(n)}},"addGridStyle"),zw=I((e,t,r)=>{if(!Dt)return;let n=Dt.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let o=Dt.createElement("style");o.setAttribute("id",e),o.innerHTML=t;let a=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,i=Dt.getElementById(a);i?i.parentElement?.insertBefore(o,i):Dt.head.appendChild(o)}},"addBackgroundStyle"),Gw={cellSize:100,cellAmount:10,opacity:.8},Yf="addon-backgrounds",Kf="addon-backgrounds-grid",Ww=Uw()?"":"transition: background-color 0.3s;",Yw=I((e,t)=>{let{globals:r={},parameters:n={},viewMode:o,id:a}=t,{options:i=qw,disable:s,grid:l=Gw}=n[Ca]||{},u=r[Ca]||{},d=typeof u=="string"?u:u?.value,m=d?i[d]:void 0,p=typeof m=="string"?m:m?.value||"transparent",f=typeof u=="string"?!1:u.grid||!1,g=!!m&&!s,y=o==="docs"?`#anchor--${a} .docs-story`:".sb-show-main",E=o==="docs"?`#anchor--${a} .docs-story`:".sb-show-main",b=n.layout===void 0||n.layout==="padded",x=o==="docs"?20:b?16:0,{cellAmount:S,cellSize:T,opacity:_,offsetX:O=x,offsetY:k=x}=l,B=o==="docs"?`${Yf}-docs-${a}`:`${Yf}-color`,P=o==="docs"?a:null;Bt(()=>{let j=` ${y} { background: ${p} !important; ${Ww} }`;if(!g){Wf(B);return}zw(B,j,P)},[y,B,P,g,p]);let L=o==="docs"?`${Kf}-docs-${a}`:`${Kf}`;return Bt(()=>{if(!f){Wf(L);return}let j=[`${T*S}px ${T*S}px`,`${T*S}px ${T*S}px`,`${T}px ${T}px`,`${T}px ${T}px`].join(", "),U=` ${E} { background-size: ${j} !important; background-position: ${O}px ${k}px, ${O}px ${k}px, ${O}px ${k}px, ${O}px ${k}px !important; background-blend-mode: difference !important; background-image: linear-gradient(rgba(130, 130, 130, ${_}) 1px, transparent 1px), linear-gradient(90deg, rgba(130, 130, 130, ${_}) 1px, transparent 1px), linear-gradient(rgba(130, 130, 130, ${_/2}) 1px, transparent 1px), linear-gradient(90deg, rgba(130, 130, 130, ${_/2}) 1px, transparent 1px) !important; } `;Vw(L,U)},[S,T,E,L,f,O,k,_]),e()},"withBackgroundAndGrid"),Kw=globalThis.FEATURES?.backgrounds?[Yw]:[],Xw={[Ca]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1}},Jw={[Ca]:{value:void 0,grid:!1}},Xf=I(()=>({decorators:Kw,parameters:Xw,initialGlobals:Jw}),"default"),{step:Zw}=Vn({step:I(async(e,t,r)=>t(r),"step")},{intercept:!0}),Jf=I(()=>({parameters:{throwPlayFunctionExceptions:!1},runStep:Zw}),"default"),Ia="storybook/highlight",Qw=`${Ia}/add`,eS=`${Ia}/remove`,tS=`${Ia}/reset`,rS=`${Ia}/scroll-into-view`,Zf=2147483647,ir=28,Qf={chevronLeft:["M9.10355 10.1464C9.29882 10.3417 9.29882 10.6583 9.10355 10.8536C8.90829 11.0488 8.59171 11.0488 8.39645 10.8536L4.89645 7.35355C4.70118 7.15829 4.70118 6.84171 4.89645 6.64645L8.39645 3.14645C8.59171 2.95118 8.90829 2.95118 9.10355 3.14645C9.29882 3.34171 9.29882 3.65829 9.10355 3.85355L5.95711 7L9.10355 10.1464Z"],chevronRight:["M4.89645 10.1464C4.70118 10.3417 4.70118 10.6583 4.89645 10.8536C5.09171 11.0488 5.40829 11.0488 5.60355 10.8536L9.10355 7.35355C9.29882 7.15829 9.29882 6.84171 9.10355 6.64645L5.60355 3.14645C5.40829 2.95118 5.09171 2.95118 4.89645 3.14645C4.70118 3.34171 4.70118 3.65829 4.89645 3.85355L8.04289 7L4.89645 10.1464Z"],info:["M7 5.5a.5.5 0 01.5.5v4a.5.5 0 01-1 0V6a.5.5 0 01.5-.5zM7 4.5A.75.75 0 107 3a.75.75 0 000 1.5z","M7 14A7 7 0 107 0a7 7 0 000 14zm0-1A6 6 0 107 1a6 6 0 000 12z"],shareAlt:["M2 1.004a1 1 0 00-1 1v10a1 1 0 001 1h10a1 1 0 001-1v-4.5a.5.5 0 00-1 0v4.5H2v-10h4.5a.5.5 0 000-1H2z","M7.354 7.357L12 2.711v1.793a.5.5 0 001 0v-3a.5.5 0 00-.5-.5h-3a.5.5 0 100 1h1.793L6.646 6.65a.5.5 0 10.708.707z"]},nS="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),Oe=I((e,t={},r)=>{let n=nS.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach(([o,a])=>{/[A-Z]/.test(o)?(o==="onClick"&&(n.addEventListener("click",a),n.addEventListener("keydown",i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),a())})),o==="onMouseEnter"&&n.addEventListener("mouseenter",a),o==="onMouseLeave"&&n.addEventListener("mouseleave",a)):n.setAttribute(o,a)}),r?.forEach(o=>{if(!(o==null||o===!1))try{n.appendChild(o)}catch{n.appendChild(document.createTextNode(String(o)))}}),n},"createElement"),ba=I(e=>Qf[e]&&Oe("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},Qf[e].map(t=>Oe("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),"createIcon"),oS=I(e=>{if("elements"in e){let{elements:n,color:o,style:a}=e;return{id:void 0,priority:0,selectors:n,styles:{outline:`2px ${a} ${o}`,outlineOffset:"2px",boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"},menu:void 0}}let{menu:t,...r}=e;return{id:void 0,priority:0,styles:{outline:"2px dashed #029cfd"},...r,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},"normalizeOptions"),aS=I(e=>e instanceof Function,"isFunction"),zn=new Map,Sr=new Map,Ea=new Map,Vt=I(e=>{let t=Symbol();return Sr.set(t,[]),zn.set(t,e),{get:I(()=>zn.get(t),"get"),set:I(r=>{let n=zn.get(t),o=aS(r)?r(n):r;o!==n&&(zn.set(t,o),Sr.get(t)?.forEach(a=>{Ea.get(a)?.(),Ea.set(a,a(o))}))},"set"),subscribe:I(r=>(Sr.get(t)?.push(r),()=>{let n=Sr.get(t);n&&Sr.set(t,n.filter(o=>o!==r))}),"subscribe"),teardown:I(()=>{Sr.get(t)?.forEach(r=>{Ea.get(r)?.(),Ea.delete(r)}),Sr.delete(t),zn.delete(t)},"teardown")}},"useStore"),eg=I(e=>{let t=document.getElementById("storybook-root"),r=new Map;for(let n of e){let{priority:o=0}=n;for(let a of n.selectors){let i=[...document.querySelectorAll(`:is(${a}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(a)||[]];for(let s of i){let l=r.get(s);(!l||l.priority<=o)&&r.set(s,{...n,priority:o,selectors:Array.from(new Set((l?.selectors||[]).concat(a)))})}}}return r},"mapElements"),iS=I(e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:o,focusStyles:a,menu:i}])=>{let{top:s,left:l,width:u,height:d}=t.getBoundingClientRect(),{position:m}=getComputedStyle(t);return{element:t,selectors:r,styles:n,hoverStyles:o,focusStyles:a,menu:i,top:m==="fixed"?s:s+window.scrollY,left:m==="fixed"?l:l+window.scrollX,width:u,height:d}}).sort((t,r)=>r.width*r.height-t.width*t.height),"mapBoxes"),tg=I((e,t)=>{let r=e.getBoundingClientRect(),{x:n,y:o}=t;return r?.top&&r?.left&&n>=r.left&&n<=r.left+r.width&&o>=r.top&&o<=r.top+r.height},"isOverMenu"),rg=I((e,t,r)=>{if(!t||!r)return!1;let{left:n,top:o,width:a,height:i}=e;i=n&&s<=n+a&&l>=o&&l<=o+i},"isTargeted"),sS=I((e,t,r={})=>{let{x:n,y:o}=t,{margin:a=5,topOffset:i=0,centered:s=!1}=r,{scrollX:l,scrollY:u,innerHeight:d,innerWidth:m}=window,p=Math.min(e.style.position==="fixed"?o-u:o,d-e.clientHeight-a-i+u),f=s?e.clientWidth/2:0,g=e.style.position==="fixed"?Math.max(Math.min(n-l,m-f-a),f+a):Math.max(Math.min(n,m-f-a+l),f+a+l);Object.assign(e.style,{...g!==n&&{left:`${g}px`},...p!==o&&{top:`${p}px`}})},"keepInViewport"),ng=I(e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},"showPopover"),lS=I(e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},"hidePopover"),uS=I(e=>({top:e.top,left:e.left,width:e.width,height:e.height,selectors:e.selectors,element:{attributes:Object.fromEntries(Array.from(e.element.attributes).map(t=>[t.name,t.value])),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}}),"getEventDetails"),Ee="storybook-highlights-menu",og="storybook-highlights-root",cS="storybook-root",dS=I(e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=Vt([]),n=Vt(new Map),o=Vt([]),a=Vt(),i=Vt(),s=Vt([]),l=Vt([]),u=Vt(),d=Vt(),m=t.getElementById(og);r.subscribe(()=>{m||(m=Oe("div",{id:og}),t.body.appendChild(m))}),r.subscribe(k=>{let B=t.getElementById(cS);if(!B)return;n.set(eg(k));let P=new MutationObserver(()=>n.set(eg(k)));return P.observe(B,{subtree:!0,childList:!0}),()=>{P.disconnect()}}),n.subscribe(k=>{let B=I(()=>requestAnimationFrame(()=>o.set(iS(k))),"updateBoxes"),P=new ResizeObserver(B);P.observe(t.body),Array.from(k.keys()).forEach(j=>P.observe(j));let L=Array.from(t.body.querySelectorAll("*")).filter(j=>{let{overflow:U,overflowX:$,overflowY:v}=window.getComputedStyle(j);return["auto","scroll"].some(A=>[U,$,v].includes(A))});return L.forEach(j=>j.addEventListener("scroll",B)),()=>{P.disconnect(),L.forEach(j=>j.removeEventListener("scroll",B))}}),n.subscribe(k=>{let B=Array.from(k.keys()).filter(({style:L})=>L.position==="sticky"),P=I(()=>requestAnimationFrame(()=>{o.set(L=>L.map(j=>{if(B.includes(j.element)){let{top:U,left:$}=j.element.getBoundingClientRect();return{...j,top:U+window.scrollY,left:$+window.scrollX}}return j}))}),"updateBoxes");return t.addEventListener("scroll",P),()=>t.removeEventListener("scroll",P)}),n.subscribe(k=>{s.set(B=>B.filter(({element:P})=>k.has(P)))}),s.subscribe(k=>{k.length?(d.set(B=>k.some(P=>P.element===B?.element)?B:void 0),u.set(B=>k.some(P=>P.element===B?.element)?B:void 0)):(d.set(void 0),u.set(void 0),a.set(void 0))});let p=new Map(new Map);r.subscribe(k=>{k.forEach(({keyframes:B})=>{if(B){let P=p.get(B);P||(P=t.createElement("style"),P.setAttribute("data-highlight","keyframes"),p.set(B,P),t.head.appendChild(P)),P.innerHTML=B}}),p.forEach((B,P)=>{k.some(L=>L.keyframes===P)||(B.remove(),p.delete(P))})});let f=new Map(new Map);o.subscribe(k=>{k.forEach(B=>{let P=f.get(B.element);if(m&&!P){let L={popover:"manual","data-highlight-dimensions":`w${B.width.toFixed(0)}h${B.height.toFixed(0)}`,"data-highlight-coordinates":`x${B.left.toFixed(0)}y${B.top.toFixed(0)}`};P=m.appendChild(Oe("div",L,[Oe("div")])),f.set(B.element,P)}}),f.forEach((B,P)=>{k.some(({element:L})=>L===P)||(B.remove(),f.delete(P))})}),o.subscribe(k=>{let B=k.filter(L=>L.menu);if(!B.length)return;let P=I(L=>{requestAnimationFrame(()=>{let j=t.getElementById(Ee),U={x:L.pageX,y:L.pageY};if(j&&!tg(j,U)){let $=B.filter(v=>{let A=f.get(v.element);return rg(v,A,U)});a.set($.length?U:void 0),s.set($)}})},"onClick");return t.addEventListener("click",P),()=>t.removeEventListener("click",P)});let g=I(()=>{let k=t.getElementById(Ee),B=i.get();!B||k&&tg(k,B)||l.set(P=>{let L=o.get().filter(v=>{let A=f.get(v.element);return rg(v,A,B)}),j=P.filter(v=>L.includes(v)),U=L.filter(v=>!P.includes(v)),$=P.length-j.length;return U.length||$?[...j,...U]:P})},"updateHovered");i.subscribe(g),o.subscribe(g);let y=I(()=>{let k=d.get(),B=k?[k]:s.get(),P=B.length===1?B[0]:u.get(),L=a.get()!==void 0;o.get().forEach(j=>{let U=f.get(j.element);if(U){let $=P===j,v=L?P?$:B.includes(j):l.get()?.includes(j);Object.assign(U.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",...j.styles,...v?j.hoverStyles:{},...$?j.focusStyles:{},position:getComputedStyle(j.element).position==="fixed"?"fixed":"absolute",zIndex:Zf-10,top:`${j.top}px`,left:`${j.left}px`,width:`${j.width}px`,height:`${j.height}px`,margin:0,padding:0,cursor:j.menu&&v?"pointer":"default",pointerEvents:j.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(U.children[0].style,{width:"100%",height:"100%",minHeight:`${ir}px`,minWidth:`${ir}px`,boxSizing:"content-box",padding:U.style.outlineWidth||"0px"}),ng(U)}})},"updateBoxStyles");o.subscribe(y),s.subscribe(y),l.subscribe(y),u.subscribe(y),d.subscribe(y);let E=I(()=>{if(!m)return;let k=t.getElementById(Ee);if(k)k.innerHTML="";else{let j={id:Ee,popover:"manual"};k=m.appendChild(Oe("div",j)),m.appendChild(Oe("style",{},[` #${Ee} { position: absolute; z-index: ${Zf}; width: 300px; padding: 0px; margin: 15px 0 0 0; transform: translateX(-50%); font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px; background: white; border: none; border-radius: 6px; box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1); color: #2E3438; } #${Ee} ul { list-style: none; margin: 0; padding: 0; } #${Ee} > ul { max-height: 300px; overflow-y: auto; padding: 4px 0; } #${Ee} li { padding: 0 4px; margin: 0; } #${Ee} li > :not(ul) { display: flex; padding: 8px; margin: 0; align-items: center; gap: 8px; border-radius: 4px; } #${Ee} button { width: 100%; border: 0; background: transparent; color: inherit; text-align: left; font-family: inherit; font-size: inherit; } #${Ee} button:focus-visible { outline-color: #029CFD; } #${Ee} button:hover { background: rgba(2, 156, 253, 0.07); color: #029CFD; cursor: pointer; } #${Ee} li code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 16px; font-size: 11px; } #${Ee} li svg { flex-shrink: 0; margin: 1px; color: #73828C; } #${Ee} li > button:hover svg, #${Ee} li > button:focus-visible svg { color: #029CFD; } #${Ee} .element-list li svg { display: none; } #${Ee} li.selectable svg, #${Ee} li.selected svg { display: block; } #${Ee} .menu-list { border-top: 1px solid rgba(38, 85, 115, 0.15); } #${Ee} .menu-list > li:not(:last-child) { padding-bottom: 4px; margin-bottom: 4px; border-bottom: 1px solid rgba(38, 85, 115, 0.15); } #${Ee} .menu-items, #${Ee} .menu-items li { padding: 0; } #${Ee} .menu-item { display: flex; } #${Ee} .menu-item-content { display: flex; flex-direction: column; flex-grow: 1; } `]))}let B=d.get(),P=B?[B]:s.get();if(P.length&&(k.style.position=getComputedStyle(P[0].element).position==="fixed"?"fixed":"absolute",k.appendChild(Oe("ul",{class:"element-list"},P.map(j=>{let U=P.length>1&&!!j.menu?.some(A=>A.some(D=>!D.selectors||D.selectors.some(N=>j.selectors.includes(N)))),$=U?{class:"selectable",onClick:I(()=>d.set(j),"onClick"),onMouseEnter:I(()=>u.set(j),"onMouseEnter"),onMouseLeave:I(()=>u.set(void 0),"onMouseLeave")}:B?{class:"selected",onClick:I(()=>d.set(void 0),"onClick")}:{},v=U||B;return Oe("li",$,[Oe(v?"button":"div",v?{type:"button"}:{},[B?ba("chevronLeft"):null,Oe("code",{},[j.element.outerHTML]),U?ba("chevronRight"):null])])})))),d.get()||s.get().length===1){let j=d.get()||s.get()[0],U=j.menu?.filter($=>$.some(v=>!v.selectors||v.selectors.some(A=>j.selectors.includes(A))));U?.length&&k.appendChild(Oe("ul",{class:"menu-list"},U.map($=>Oe("li",{},[Oe("ul",{class:"menu-items"},$.map(({id:v,title:A,description:D,iconLeft:N,iconRight:F,clickEvent:M})=>{let q=M&&(()=>e.emit(M,v,uS(j)));return Oe("li",{},[Oe(q?"button":"div",q?{class:"menu-item",type:"button",onClick:q}:{class:"menu-item"},[N?ba(N):null,Oe("div",{class:"menu-item-content"},[Oe(D?"strong":"span",{},[A]),D&&Oe("span",{},[D])]),F?ba(F):null])])}))]))))}let L=a.get();L?(Object.assign(k.style,{display:"block",left:`${k.style.position==="fixed"?L.x-window.scrollX:L.x}px`,top:`${k.style.position==="fixed"?L.y-window.scrollY:L.y}px`}),ng(k),requestAnimationFrame(()=>sS(k,L,{topOffset:15,centered:!0}))):(lS(k),Object.assign(k.style,{display:"none"}))},"renderMenu");s.subscribe(E),d.subscribe(E);let b=I(k=>{let B=oS(k);r.set(P=>{let L=B.id?P.filter(j=>j.id!==B.id):P;return B.selectors?.length?[...L,B]:L})},"addHighlight"),x=I(k=>{k&&r.set(B=>B.filter(P=>P.id!==k))},"removeHighlight"),S=I(()=>{r.set([]),n.set(new Map),o.set([]),a.set(void 0),i.set(void 0),s.set([]),l.set([]),u.set(void 0),d.set(void 0)},"resetState"),T,_=I((k,B)=>{let P="scrollIntoView-highlight";clearTimeout(T),x(P);let L=t.querySelector(k);if(!L){console.warn(`Cannot scroll into view: ${k} not found`);return}L.scrollIntoView({behavior:"smooth",block:"center",...B});let j=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(U=>[...U,{id:P,priority:1e3,selectors:[k],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${j} 3s linear forwards`},keyframes:`@keyframes ${j} { 0% { outline: 2px solid #1EA7FD; } 20% { outline: 2px solid #1EA7FD00; } 40% { outline: 2px solid #1EA7FD; } 60% { outline: 2px solid #1EA7FD00; } 80% { outline: 2px solid #1EA7FD; } 100% { outline: 2px solid #1EA7FD00; } }`}]),T=setTimeout(()=>x(P),3500)},"scrollIntoView"),O=I(k=>{requestAnimationFrame(()=>i.set({x:k.pageX,y:k.pageY}))},"onMouseMove");t.body.addEventListener("mousemove",O),e.on(Qw,b),e.on(eS,x),e.on(tS,S),e.on(rS,_),e.on(gt,({newPhase:k})=>{k==="loading"&&S()})},"useHighlights");globalThis?.FEATURES?.highlight&&ut?.ready&&ut.ready().then(dS);var ag=I(()=>({}),"default"),xa="storybook/measure-addon",ZL=`${xa}/tool`,pS="measureEnabled",QL={RESULT:`${xa}/result`,REQUEST:`${xa}/request`,CLEAR:`${xa}/clear`};function Ll(){let e=H.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}I(Ll,"getDocumentWidthAndHeight");function Kg(){let e=H.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");Sa(t!=null);let{width:r,height:n}=Ll();return Da(e,t,{width:r,height:n}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",H.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}I(Kg,"createCanvas");function Da(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let o=H.window.devicePixelRatio;e.width=Math.floor(r*o),e.height=Math.floor(n*o),t.scale(o,o)}I(Da,"setCanvasWidthAndHeight");var Ie={};function Xg(){Ie.canvas||(Ie=Kg())}I(Xg,"init");function jl(){Ie.context&&Ie.context.clearRect(0,0,Ie.width??0,Ie.height??0)}I(jl,"clear");function Jg(e){jl(),e(Ie.context)}I(Jg,"draw");function Zg(){Sa(Ie.canvas,"Canvas should exist in the state."),Sa(Ie.context,"Context should exist in the state."),Da(Ie.canvas,Ie.context,{width:0,height:0});let{width:e,height:t}=Ll();Da(Ie.canvas,Ie.context,{width:e,height:t}),Ie.width=e,Ie.height=t}I(Zg,"rescale");function Qg(){Ie.canvas&&(jl(),Ie.canvas.parentNode?.removeChild(Ie.canvas),Ie={})}I(Qg,"destroy");var ln={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},Gt=6;function Ol(e,{x:t,y:r,w:n,h:o,r:a}){t=t-n/2,r=r-o/2,n<2*a&&(a=n/2),o<2*a&&(a=o/2),e.beginPath(),e.moveTo(t+a,r),e.arcTo(t+n,r,t+n,r+o,a),e.arcTo(t+n,r+o,t,r+o,a),e.arcTo(t,r+o,t,r,a),e.arcTo(t,r,t+n,r,a),e.closePath()}I(Ol,"roundedRect");function e2(e,{padding:t,border:r,width:n,height:o,top:a,left:i}){let s=n-r.left-r.right-t.left-t.right,l=o-t.top-t.bottom-r.top-r.bottom,u=i+r.left+t.left,d=a+r.top+t.top;return e==="top"?u+=s/2:e==="right"?(u+=s,d+=l/2):e==="bottom"?(u+=s/2,d+=l):e==="left"?d+=l/2:e==="center"&&(u+=s/2,d+=l/2),{x:u,y:d}}I(e2,"positionCoordinate");function t2(e,t,{margin:r,border:n,padding:o},a,i){let s=I(p=>0,"shift"),l=0,u=0,d=i?1:.5,m=i?a*2:0;return e==="padding"?s=I(p=>o[p]*d+m,"shift"):e==="border"?s=I(p=>o[p]+n[p]*d+m,"shift"):e==="margin"&&(s=I(p=>o[p]+n[p]+r[p]*d+m,"shift")),t==="top"?u=-s("top"):t==="right"?l=s("right"):t==="bottom"?u=s("bottom"):t==="left"&&(l=-s("left")),{offsetX:l,offsetY:u}}I(t2,"offset");function r2(e,t){return Math.abs(e.x-t.x){let s=n&&a.position==="center"?i2(e,t,a):o2(e,t,a,o[i-1],n);o[i]=s})}I(cn,"drawStack");function s2(e,t,r,n){let o=r.reduce((a,i)=>(Object.prototype.hasOwnProperty.call(a,i.position)||(a[i.position]=[]),a[i.position]?.push(i),a),{});o.top&&cn(e,t,o.top,n),o.right&&cn(e,t,o.right,n),o.bottom&&cn(e,t,o.bottom,n),o.left&&cn(e,t,o.left,n),o.center&&cn(e,t,o.center,n)}I(s2,"labelStacks");var Ra={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},ig=30;function ct(e){return parseInt(e.replace("px",""),10)}I(ct,"pxToNumber");function Cr(e){return Number.isInteger(e)?e:e.toFixed(2)}I(Cr,"round");function Ba(e){return e.filter(t=>t.text!==0&&t.text!=="0")}I(Ba,"filterZeroValues");function l2(e){let t={top:H.window.scrollY,bottom:H.window.scrollY+H.window.innerHeight,left:H.window.scrollX,right:H.window.scrollX+H.window.innerWidth},r={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:r.left>r.right?"left":"right",y:r.top>r.bottom?"top":"bottom"}}I(l2,"floatingAlignment");function u2(e){let t=H.getComputedStyle(e),{top:r,left:n,right:o,bottom:a,width:i,height:s}=e.getBoundingClientRect(),{marginTop:l,marginBottom:u,marginLeft:d,marginRight:m,paddingTop:p,paddingBottom:f,paddingLeft:g,paddingRight:y,borderBottomWidth:E,borderTopWidth:b,borderLeftWidth:x,borderRightWidth:S}=t;r=r+H.window.scrollY,n=n+H.window.scrollX,a=a+H.window.scrollY,o=o+H.window.scrollX;let T={top:ct(l),bottom:ct(u),left:ct(d),right:ct(m)},_={top:ct(p),bottom:ct(f),left:ct(g),right:ct(y)},O={top:ct(b),bottom:ct(E),left:ct(x),right:ct(S)},k={top:r-T.top,bottom:a+T.bottom,left:n-T.left,right:o+T.right};return{margin:T,padding:_,border:O,top:r,left:n,bottom:a,right:o,width:i,height:s,extremities:k,floatingAlignment:l2(k)}}I(u2,"measureElement");function c2(e,{margin:t,width:r,height:n,top:o,left:a,bottom:i,right:s}){let l=n+t.bottom+t.top;e.fillStyle=Ra.margin,e.fillRect(a,o-t.top,r,t.top),e.fillRect(s,o-t.top,t.right,l),e.fillRect(a,i,r,t.bottom),e.fillRect(a-t.left,o-t.top,t.left,l);let u=[{type:"margin",text:Cr(t.top),position:"top"},{type:"margin",text:Cr(t.right),position:"right"},{type:"margin",text:Cr(t.bottom),position:"bottom"},{type:"margin",text:Cr(t.left),position:"left"}];return Ba(u)}I(c2,"drawMargin");function d2(e,{padding:t,border:r,width:n,height:o,top:a,left:i,bottom:s,right:l}){let u=n-r.left-r.right,d=o-t.top-t.bottom-r.top-r.bottom;e.fillStyle=Ra.padding,e.fillRect(i+r.left,a+r.top,u,t.top),e.fillRect(l-t.right-r.right,a+t.top+r.top,t.right,d),e.fillRect(i+r.left,s-t.bottom-r.bottom,u,t.bottom),e.fillRect(i+r.left,a+t.top+r.top,t.left,d);let m=[{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}];return Ba(m)}I(d2,"drawPadding");function p2(e,{border:t,width:r,height:n,top:o,left:a,bottom:i,right:s}){let l=n-t.top-t.bottom;e.fillStyle=Ra.border,e.fillRect(a,o,r,t.top),e.fillRect(a,i-t.bottom,r,t.bottom),e.fillRect(a,o+t.top,t.left,l),e.fillRect(s-t.right,o+t.top,t.right,l);let u=[{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}];return Ba(u)}I(p2,"drawBorder");function m2(e,{padding:t,border:r,width:n,height:o,top:a,left:i}){let s=n-r.left-r.right-t.left-t.right,l=o-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=Ra.content,e.fillRect(i+r.left+t.left,a+r.top+t.top,s,l),[{type:"content",position:"center",text:`${Cr(s)} x ${Cr(l)}`}]}I(m2,"drawContent");function h2(e){return t=>{if(e&&t){let r=u2(e),n=c2(t,r),o=d2(t,r),a=p2(t,r),i=m2(t,r),s=r.width<=ig*3||r.height<=ig;s2(t,r,[...i,...o,...a,...n],s)}}}I(h2,"drawBoxModel");function f2(e){Jg(h2(e))}I(f2,"drawSelectedElement");var mS=I((e,t)=>{let r=H.document.elementFromPoint(e,t),n=I(o=>{if(o&&o.shadowRoot){let a=o.shadowRoot.elementFromPoint(e,t);return o.isEqualNode(a)?o:a.shadowRoot?n(a):a}return o},"crawlShadows");return n(r)||r},"deepElementFromPoint"),sg,va={x:0,y:0};function Il(e,t){sg=mS(e,t),f2(sg)}I(Il,"findAndDrawElement");var hS=I((e,t)=>{let{measureEnabled:r}=t.globals||{};return Bt(()=>{if(typeof globalThis.document>"u")return;let n=I(o=>{window.requestAnimationFrame(()=>{o.stopPropagation(),va.x=o.clientX,va.y=o.clientY})},"onPointerMove");return globalThis.document.addEventListener("pointermove",n),()=>{globalThis.document.removeEventListener("pointermove",n)}},[]),Bt(()=>{let n=I(a=>{window.requestAnimationFrame(()=>{a.stopPropagation(),Il(a.clientX,a.clientY)})},"onPointerOver"),o=I(()=>{window.requestAnimationFrame(()=>{Zg()})},"onResize");return t.viewMode==="story"&&r&&(globalThis.document.addEventListener("pointerover",n),Xg(),globalThis.window.addEventListener("resize",o),Il(va.x,va.y)),()=>{globalThis.window.removeEventListener("resize",o),Qg()}},[r,t.viewMode]),e()},"withMeasure"),fS=globalThis.FEATURES?.measure?[hS]:[],gS={[pS]:!1},lg=I(()=>({decorators:fS,initialGlobals:gS}),"default"),g2="outline",ug=I(e=>{(Array.isArray(e)?e:[e]).forEach(yS)},"clearStyles"),yS=I(e=>{let t=typeof e=="string"?e:e.join(""),r=H.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},"clearStyle"),bS=I((e,t)=>{let r=H.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=H.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,H.document.head.appendChild(n)}},"addOutlineStyles");function y2(e){return ka` ${e} body { outline: 1px solid #2980b9 !important; } ${e} article { outline: 1px solid #3498db !important; } ${e} nav { outline: 1px solid #0088c3 !important; } ${e} aside { outline: 1px solid #33a0ce !important; } ${e} section { outline: 1px solid #66b8da !important; } ${e} header { outline: 1px solid #99cfe7 !important; } ${e} footer { outline: 1px solid #cce7f3 !important; } ${e} h1 { outline: 1px solid #162544 !important; } ${e} h2 { outline: 1px solid #314e6e !important; } ${e} h3 { outline: 1px solid #3e5e85 !important; } ${e} h4 { outline: 1px solid #449baf !important; } ${e} h5 { outline: 1px solid #c7d1cb !important; } ${e} h6 { outline: 1px solid #4371d0 !important; } ${e} main { outline: 1px solid #2f4f90 !important; } ${e} address { outline: 1px solid #1a2c51 !important; } ${e} div { outline: 1px solid #036cdb !important; } ${e} p { outline: 1px solid #ac050b !important; } ${e} hr { outline: 1px solid #ff063f !important; } ${e} pre { outline: 1px solid #850440 !important; } ${e} blockquote { outline: 1px solid #f1b8e7 !important; } ${e} ol { outline: 1px solid #ff050c !important; } ${e} ul { outline: 1px solid #d90416 !important; } ${e} li { outline: 1px solid #d90416 !important; } ${e} dl { outline: 1px solid #fd3427 !important; } ${e} dt { outline: 1px solid #ff0043 !important; } ${e} dd { outline: 1px solid #e80174 !important; } ${e} figure { outline: 1px solid #ff00bb !important; } ${e} figcaption { outline: 1px solid #bf0032 !important; } ${e} table { outline: 1px solid #00cc99 !important; } ${e} caption { outline: 1px solid #37ffc4 !important; } ${e} thead { outline: 1px solid #98daca !important; } ${e} tbody { outline: 1px solid #64a7a0 !important; } ${e} tfoot { outline: 1px solid #22746b !important; } ${e} tr { outline: 1px solid #86c0b2 !important; } ${e} th { outline: 1px solid #a1e7d6 !important; } ${e} td { outline: 1px solid #3f5a54 !important; } ${e} col { outline: 1px solid #6c9a8f !important; } ${e} colgroup { outline: 1px solid #6c9a9d !important; } ${e} button { outline: 1px solid #da8301 !important; } ${e} datalist { outline: 1px solid #c06000 !important; } ${e} fieldset { outline: 1px solid #d95100 !important; } ${e} form { outline: 1px solid #d23600 !important; } ${e} input { outline: 1px solid #fca600 !important; } ${e} keygen { outline: 1px solid #b31e00 !important; } ${e} label { outline: 1px solid #ee8900 !important; } ${e} legend { outline: 1px solid #de6d00 !important; } ${e} meter { outline: 1px solid #e8630c !important; } ${e} optgroup { outline: 1px solid #b33600 !important; } ${e} option { outline: 1px solid #ff8a00 !important; } ${e} output { outline: 1px solid #ff9619 !important; } ${e} progress { outline: 1px solid #e57c00 !important; } ${e} select { outline: 1px solid #e26e0f !important; } ${e} textarea { outline: 1px solid #cc5400 !important; } ${e} details { outline: 1px solid #33848f !important; } ${e} summary { outline: 1px solid #60a1a6 !important; } ${e} command { outline: 1px solid #438da1 !important; } ${e} menu { outline: 1px solid #449da6 !important; } ${e} del { outline: 1px solid #bf0000 !important; } ${e} ins { outline: 1px solid #400000 !important; } ${e} img { outline: 1px solid #22746b !important; } ${e} iframe { outline: 1px solid #64a7a0 !important; } ${e} embed { outline: 1px solid #98daca !important; } ${e} object { outline: 1px solid #00cc99 !important; } ${e} param { outline: 1px solid #37ffc4 !important; } ${e} video { outline: 1px solid #6ee866 !important; } ${e} audio { outline: 1px solid #027353 !important; } ${e} source { outline: 1px solid #012426 !important; } ${e} canvas { outline: 1px solid #a2f570 !important; } ${e} track { outline: 1px solid #59a600 !important; } ${e} map { outline: 1px solid #7be500 !important; } ${e} area { outline: 1px solid #305900 !important; } ${e} a { outline: 1px solid #ff62ab !important; } ${e} em { outline: 1px solid #800b41 !important; } ${e} strong { outline: 1px solid #ff1583 !important; } ${e} i { outline: 1px solid #803156 !important; } ${e} b { outline: 1px solid #cc1169 !important; } ${e} u { outline: 1px solid #ff0430 !important; } ${e} s { outline: 1px solid #f805e3 !important; } ${e} small { outline: 1px solid #d107b2 !important; } ${e} abbr { outline: 1px solid #4a0263 !important; } ${e} q { outline: 1px solid #240018 !important; } ${e} cite { outline: 1px solid #64003c !important; } ${e} dfn { outline: 1px solid #b4005a !important; } ${e} sub { outline: 1px solid #dba0c8 !important; } ${e} sup { outline: 1px solid #cc0256 !important; } ${e} time { outline: 1px solid #d6606d !important; } ${e} code { outline: 1px solid #e04251 !important; } ${e} kbd { outline: 1px solid #5e001f !important; } ${e} samp { outline: 1px solid #9c0033 !important; } ${e} var { outline: 1px solid #d90047 !important; } ${e} mark { outline: 1px solid #ff0053 !important; } ${e} bdi { outline: 1px solid #bf3668 !important; } ${e} bdo { outline: 1px solid #6f1400 !important; } ${e} ruby { outline: 1px solid #ff7b93 !important; } ${e} rt { outline: 1px solid #ff2f54 !important; } ${e} rp { outline: 1px solid #803e49 !important; } ${e} span { outline: 1px solid #cc2643 !important; } ${e} br { outline: 1px solid #db687d !important; } ${e} wbr { outline: 1px solid #db175b !important; }`}I(y2,"outlineCSS");var ES=I((e,t)=>{let r=t.globals||{},n=[!0,"true"].includes(r[g2]),o=t.viewMode==="docs",a=cs(()=>y2(o?'[data-story-block="true"]':".sb-show-main"),[t]);return Bt(()=>{let i=o?`addon-outline-docs-${t.id}`:"addon-outline";return n?bS(i,a):ug(i),()=>{ug(i)}},[n,a,t]),e()},"withOutline"),vS=globalThis.FEATURES?.outline?[ES]:[],AS={[g2]:!1},cg=I(()=>({decorators:vS,initialGlobals:AS}),"default"),xS=I(({parameters:e})=>{e?.test?.mockReset===!0?xm():e?.test?.clearMocks===!0?bm():e?.test?.restoreMocks!==!1&&wm()},"resetAllMocksLoader"),Rl=I((e,t=0,r)=>{if(t>5||e==null)return e;if(vm(e))return r&&e.mockName(r),e;if(typeof e=="function"&&"isAction"in e&&e.isAction&&!("implicit"in e&&e.implicit)){let n=Em(e);return r&&n.mockName(r),n}if(Array.isArray(e)){t++;for(let n=0;n{Rl(e)},"nameSpiesAndWrapActionsInSpies"),dg=!1,SS=I(async e=>{globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=Cm(e.canvasElement));let t=globalThis.window?.navigator?.clipboard;if(t){e.userEvent=Vn({userEvent:Sm.setup()},{intercept:!0,getKeys:I(n=>Object.keys(n).filter(o=>o!=="eventWrapper"),"getKeys")}).userEvent,Object.defineProperty(globalThis.window.navigator,"clipboard",{get:I(()=>t,"get"),configurable:!0});let r=HTMLElement.prototype.focus;dg||Object.defineProperties(HTMLElement.prototype,{focus:{configurable:!0,set:I(n=>{r=n,dg=!0},"set"),get:I(()=>r,"get")}})}},"enhanceContext"),pg=I(()=>({loaders:[xS,wS,SS]}),"default"),b2="storybook/viewport",CS="viewport",d8=`${b2}/panel`,p8=`${b2}/tool`,DS={[CS]:{value:void 0,isRotated:!1}},mg=I(()=>({initialGlobals:DS}),"default");function Qr(){return[(lg.default??lg)(),(Xf.default??Xf)(),(ag.default??ag)(),(cg.default??cg)(),(mg.default??mg)(),(Gf.default??Gf)(),(Jf.default??Jf)(),(pg.default??pg)()]}I(Qr,"getCoreAnnotations");function TS(e){let t,r={_tag:"Preview",input:e,get composed(){if(t)return t;let{addons:n,...o}=e;return t=_l(Fl([...Qr(),...n??[],o])),t},meta(n){return E2(n,this)}};return globalThis.globalProjectAnnotations=r.composed,r}I(TS,"definePreview");function Wt(e){return e}I(Wt,"definePreviewAddon");function kS(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Preview"}I(kS,"isPreview");function OS(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Meta"}I(OS,"isMeta");function E2(e,t){return{_tag:"Meta",input:e,preview:t,get composed(){throw new Error("Not implemented")},story(r={}){return ql(typeof r=="function"?{render:r}:r,this)}}}I(E2,"defineMeta");function Ar(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Story"}I(Ar,"isStory");function ql(e,t){let r,n=I(()=>(r||(r=Hg(e,t.input,void 0,t.preview.composed)),r),"compose");return{_tag:"Story",input:e,meta:t,__compose:n,get composed(){let o=n(),{args:a,argTypes:i,parameters:s,id:l,tags:u,globals:d,storyName:m}=o;return{args:a,argTypes:i,parameters:s,id:l,tags:u,name:m,globals:d}},get play(){return e.play??t.input?.play??(async()=>{})},get run(){return n().run??(async()=>{})},extend(o){return ql({...this.input,...o,args:{...this.input.args,...o.args},argTypes:lr(this.input.argTypes,o.argTypes),afterEach:[...oe(this.input?.afterEach??[]),...oe(o.afterEach??[])],beforeEach:[...oe(this.input?.beforeEach??[]),...oe(o.beforeEach??[])],decorators:[...oe(this.input?.decorators??[]),...oe(o.decorators??[])],globals:{...this.input.globals,...o.globals},loaders:[...oe(this.input?.loaders??[]),...oe(o.loaders??[])],parameters:lr(this.input.parameters,o.parameters),tags:en(...this.input.tags??[],...o.tags??[])},this.meta)}}}I(ql,"defineStory");var Nn=I(e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),"sanitize"),hg=I((e,t)=>{let r=Nn(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},"sanitizeSafe"),Xo=I((e,t)=>`${hg(e,"kind")}${t?`--${hg(t,"name")}`:""}`,"toId"),Jo=I(e=>gg(e),"storyNameFromExport");function Bl(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}I(Bl,"matches");function Xr(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||Bl(e,t))&&(!r||!Bl(e,r))}I(Xr,"isExportStory");var m8=I((e,{rootSeparator:t,groupSeparator:r})=>{let[n,o]=e.split(t,2),a=(o||e).split(r).filter(i=>!!i);return{root:o?n:null,groups:a}},"parseKind"),en=I((...e)=>{let t=e.reduce((r,n)=>(n.startsWith("!")?r.delete(n.slice(1)):r.add(n),r),new Set);return Array.from(t)},"combineTags");J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();J();var IS=Object.create,ci=Object.defineProperty,RS=Object.getOwnPropertyDescriptor,BS=Object.getOwnPropertyNames,_S=Object.getPrototypeOf,FS=Object.prototype.hasOwnProperty,h=(e,t)=>ci(e,"name",{value:t,configurable:!0}),_a=(e=>typeof Ke<"u"?Ke:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof Ke<"u"?Ke:t)[r]}):e)(function(e){if(typeof Ke<"u")return Ke.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),ie=(e,t)=>()=>(e&&(t=e(e=0)),t),ge=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),PS=(e,t)=>{for(var r in t)ci(e,r,{get:t[r],enumerable:!0})},NS=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of BS(t))!FS.call(e,o)&&o!==r&&ci(e,o,{get:()=>t[o],enumerable:!(n=RS(t,o))||n.enumerable});return e},it=(e,t,r)=>(r=e!=null?IS(_S(e)):{},NS(t||!e||!e.__esModule?ci(r,"default",{value:e,enumerable:!0}):r,e));function qu(e){return typeof e=="symbol"||e instanceof Symbol}var q0=ie(()=>{h(qu,"isSymbol")});function U0(e){return qu(e)?NaN:Number(e)}var LS=ie(()=>{q0(),h(U0,"toNumber")});function H0(e){return e?(e=U0(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}var jS=ie(()=>{LS(),h(H0,"toFinite")});function V0(e){let t=H0(e),r=t%1;return r?t-r:t}var MS=ie(()=>{jS(),h(V0,"toInteger")});function z0(e){return Array.from(new Set(e))}var $S=ie(()=>{h(z0,"uniq")});function G0(e){return e==null||typeof e!="object"&&typeof e!="function"}var qS=ie(()=>{h(G0,"isPrimitive")});function Uu(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}var W0=ie(()=>{h(Uu,"isTypedArray")});function Hu(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var Y0=ie(()=>{h(Hu,"getSymbols")});function K0(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var US=ie(()=>{h(K0,"getTag")}),X0,Vu,zu,Gu,Wu,J0,Z0,Q0,ey,ty,ry,ny,oy,ay,iy,sy,ly,uy,cy,dy,py,my,hy=ie(()=>{X0="[object RegExp]",Vu="[object String]",zu="[object Number]",Gu="[object Boolean]",Wu="[object Arguments]",J0="[object Symbol]",Z0="[object Date]",Q0="[object Map]",ey="[object Set]",ty="[object Array]",ry="[object ArrayBuffer]",ny="[object Object]",oy="[object DataView]",ay="[object Uint8Array]",iy="[object Uint8ClampedArray]",sy="[object Uint16Array]",ly="[object Uint32Array]",uy="[object Int8Array]",cy="[object Int16Array]",dy="[object Int32Array]",py="[object Float32Array]",my="[object Float64Array]"});function fy(e,t){return Ir(e,void 0,e,new Map,t)}function Ir(e,t,r,n=new Map,o=void 0){let a=o?.(e,t,r,n);if(a!=null)return a;if(G0(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){let i=new Array(e.length);n.set(e,i);for(let s=0;s{Y0(),US(),hy(),qS(),W0(),h(fy,"cloneDeepWith"),h(Ir,"cloneDeepWithImpl"),h(pr,"copyProperties"),h(gy,"isCloneableObject")});function yy(e){return Number.isSafeInteger(e)&&e>=0}var VS=ie(()=>{h(yy,"isLength")});function di(e){return e!=null&&typeof e!="function"&&yy(e.length)}var Yu=ie(()=>{VS(),h(di,"isArrayLike")});function by(e,t){return fy(e,(r,n,o,a)=>{let i=t?.(r,n,o,a);if(i!=null)return i;if(typeof e=="object")switch(Object.prototype.toString.call(e)){case zu:case Vu:case Gu:{let s=new e.constructor(e?.valueOf());return pr(s,e),s}case Wu:{let s={};return pr(s,e),s.length=e.length,s[Symbol.iterator]=e[Symbol.iterator],s}default:return}})}var zS=ie(()=>{HS(),hy(),h(by,"cloneDeepWith")});function Ey(e){return by(e)}var GS=ie(()=>{zS(),h(Ey,"cloneDeep")});function vy(e,t,r=1){if(t==null&&(t=e,e=0),!Number.isInteger(r)||r===0)throw new Error("The step value must be a non-zero integer.");let n=Math.max(Math.ceil((t-e)/r),0),o=new Array(n);for(let a=0;a{h(vy,"range")});function Ay(e){return di(e)?z0(Array.from(e)):[]}var YS=ie(()=>{$S(),Yu(),h(Ay,"uniq")});function xy(e,t,{signal:r,edges:n}={}){let o,a=null,i=n!=null&&n.includes("leading"),s=n==null||n.includes("trailing"),l=h(()=>{a!==null&&(e.apply(o,a),o=void 0,a=null)},"invoke"),u=h(()=>{s&&l(),f()},"onTimerEnd"),d=null,m=h(()=>{d!=null&&clearTimeout(d),d=setTimeout(()=>{d=null,u()},t)},"schedule"),p=h(()=>{d!==null&&(clearTimeout(d),d=null)},"cancelTimer"),f=h(()=>{p(),o=void 0,a=null},"cancel"),g=h(()=>{p(),l()},"flush"),y=h(function(...E){if(r?.aborted)return;o=this,a=E;let b=d==null;m(),i&&b&&l()},"debounced");return y.schedule=m,y.cancel=f,y.flush=g,r?.addEventListener("abort",f,{once:!0}),y}var KS=ie(()=>{h(xy,"debounce")});function wy(e,t=0,r={}){typeof r!="object"&&(r={});let{signal:n,leading:o=!1,trailing:a=!0,maxWait:i}=r,s=Array(2);o&&(s[0]="leading"),a&&(s[1]="trailing");let l,u=null,d=xy(function(...f){l=e.apply(this,f),u=null},t,{signal:n,edges:s}),m=h(function(...f){if(i!=null){if(u===null)u=Date.now();else if(Date.now()-u>=i)return l=e.apply(this,f),u=Date.now(),d.cancel(),d.schedule(),l}return d.apply(this,f),l},"debounced"),p=h(()=>(d.flush(),l),"flush");return m.cancel=d.cancel,m.flush=p,m}var XS=ie(()=>{KS(),h(wy,"debounce")});function Sy(e){return typeof Buffer<"u"&&Buffer.isBuffer(e)}var JS=ie(()=>{h(Sy,"isBuffer")});function Cy(e){let t=e?.constructor,r=typeof t=="function"?t.prototype:Object.prototype;return e===r}var ZS=ie(()=>{h(Cy,"isPrototype")});function Dy(e){return Uu(e)}var QS=ie(()=>{W0(),h(Dy,"isTypedArray")});function Ty(e,t){if(e=V0(e),e<1||!Number.isSafeInteger(e))return[];let r=new Array(e);for(let n=0;n{MS(),h(Ty,"times")});function ky(e){if(e==null)return[];switch(typeof e){case"object":case"function":return di(e)?Iy(e):Cy(e)?Oy(e):ao(e);default:return ao(Object(e))}}function ao(e){let t=[];for(let r in e)t.push(r);return t}function Oy(e){return ao(e).filter(t=>t!=="constructor")}function Iy(e){let t=Ty(e.length,n=>`${n}`),r=new Set(t);return Sy(e)&&(r.add("offset"),r.add("parent")),Dy(e)&&(r.add("buffer"),r.add("byteLength"),r.add("byteOffset")),[...t,...ao(e).filter(n=>!r.has(n))]}var tC=ie(()=>{JS(),ZS(),Yu(),QS(),eC(),h(ky,"keysIn"),h(ao,"keysInImpl"),h(Oy,"prototypeKeysIn"),h(Iy,"arrayLikeKeysIn")});function Ry(e){let t=[];for(;e;)t.push(...Hu(e)),e=Object.getPrototypeOf(e);return t}var rC=ie(()=>{Y0(),h(Ry,"getSymbolsIn")});function By(e,t){if(e==null)return{};let r={};if(t==null)return e;let n=di(e)?vy(0,e.length):[...ky(e),...Ry(e)];for(let o=0;o{tC(),WS(),rC(),Yu(),q0(),h(By,"pickBy")}),pi=ie(()=>{YS(),XS(),GS(),nC()}),mt,so,Ot=ie(()=>{"use strict";mt=h(e=>`control-${e.replace(/\s+/g,"-")}`,"getControlId"),so=h(e=>`set-${e.replace(/\s+/g,"-")}`,"getControlSetterButtonId")}),oC=ge((e,t)=>{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),_y=ge((e,t)=>{var r=oC(),n={};for(let i of Object.keys(r))n[r[i]]=i;var o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=o;for(let i of Object.keys(o)){if(!("channels"in o[i]))throw new Error("missing channels property: "+i);if(!("labels"in o[i]))throw new Error("missing channel labels property: "+i);if(o[i].labels.length!==o[i].channels)throw new Error("channel and label counts mismatch: "+i);let{channels:s,labels:l}=o[i];delete o[i].channels,delete o[i].labels,Object.defineProperty(o[i],"channels",{value:s}),Object.defineProperty(o[i],"labels",{value:l})}o.rgb.hsl=function(i){let s=i[0]/255,l=i[1]/255,u=i[2]/255,d=Math.min(s,l,u),m=Math.max(s,l,u),p=m-d,f,g;m===d?f=0:s===m?f=(l-u)/p:l===m?f=2+(u-s)/p:u===m&&(f=4+(s-l)/p),f=Math.min(f*60,360),f<0&&(f+=360);let y=(d+m)/2;return m===d?g=0:y<=.5?g=p/(m+d):g=p/(2-m-d),[f,g*100,y*100]},o.rgb.hsv=function(i){let s,l,u,d,m,p=i[0]/255,f=i[1]/255,g=i[2]/255,y=Math.max(p,f,g),E=y-Math.min(p,f,g),b=h(function(x){return(y-x)/6/E+1/2},"diffc");return E===0?(d=0,m=0):(m=E/y,s=b(p),l=b(f),u=b(g),p===y?d=u-l:f===y?d=1/3+s-u:g===y&&(d=2/3+l-s),d<0?d+=1:d>1&&(d-=1)),[d*360,m*100,y*100]},o.rgb.hwb=function(i){let s=i[0],l=i[1],u=i[2],d=o.rgb.hsl(i)[0],m=1/255*Math.min(s,Math.min(l,u));return u=1-1/255*Math.max(s,Math.max(l,u)),[d,m*100,u*100]},o.rgb.cmyk=function(i){let s=i[0]/255,l=i[1]/255,u=i[2]/255,d=Math.min(1-s,1-l,1-u),m=(1-s-d)/(1-d)||0,p=(1-l-d)/(1-d)||0,f=(1-u-d)/(1-d)||0;return[m*100,p*100,f*100,d*100]};function a(i,s){return(i[0]-s[0])**2+(i[1]-s[1])**2+(i[2]-s[2])**2}h(a,"comparativeDistance"),o.rgb.keyword=function(i){let s=n[i];if(s)return s;let l=1/0,u;for(let d of Object.keys(r)){let m=r[d],p=a(i,m);p.04045?((s+.055)/1.055)**2.4:s/12.92,l=l>.04045?((l+.055)/1.055)**2.4:l/12.92,u=u>.04045?((u+.055)/1.055)**2.4:u/12.92;let d=s*.4124+l*.3576+u*.1805,m=s*.2126+l*.7152+u*.0722,p=s*.0193+l*.1192+u*.9505;return[d*100,m*100,p*100]},o.rgb.lab=function(i){let s=o.rgb.xyz(i),l=s[0],u=s[1],d=s[2];l/=95.047,u/=100,d/=108.883,l=l>.008856?l**(1/3):7.787*l+16/116,u=u>.008856?u**(1/3):7.787*u+16/116,d=d>.008856?d**(1/3):7.787*d+16/116;let m=116*u-16,p=500*(l-u),f=200*(u-d);return[m,p,f]},o.hsl.rgb=function(i){let s=i[0]/360,l=i[1]/100,u=i[2]/100,d,m,p;if(l===0)return p=u*255,[p,p,p];u<.5?d=u*(1+l):d=u+l-u*l;let f=2*u-d,g=[0,0,0];for(let y=0;y<3;y++)m=s+1/3*-(y-1),m<0&&m++,m>1&&m--,6*m<1?p=f+(d-f)*6*m:2*m<1?p=d:3*m<2?p=f+(d-f)*(2/3-m)*6:p=f,g[y]=p*255;return g},o.hsl.hsv=function(i){let s=i[0],l=i[1]/100,u=i[2]/100,d=l,m=Math.max(u,.01);u*=2,l*=u<=1?u:2-u,d*=m<=1?m:2-m;let p=(u+l)/2,f=u===0?2*d/(m+d):2*l/(u+l);return[s,f*100,p*100]},o.hsv.rgb=function(i){let s=i[0]/60,l=i[1]/100,u=i[2]/100,d=Math.floor(s)%6,m=s-Math.floor(s),p=255*u*(1-l),f=255*u*(1-l*m),g=255*u*(1-l*(1-m));switch(u*=255,d){case 0:return[u,g,p];case 1:return[f,u,p];case 2:return[p,u,g];case 3:return[p,f,u];case 4:return[g,p,u];case 5:return[u,p,f]}},o.hsv.hsl=function(i){let s=i[0],l=i[1]/100,u=i[2]/100,d=Math.max(u,.01),m,p;p=(2-l)*u;let f=(2-l)*d;return m=l*d,m/=f<=1?f:2-f,m=m||0,p/=2,[s,m*100,p*100]},o.hwb.rgb=function(i){let s=i[0]/360,l=i[1]/100,u=i[2]/100,d=l+u,m;d>1&&(l/=d,u/=d);let p=Math.floor(6*s),f=1-u;m=6*s-p,(p&1)!==0&&(m=1-m);let g=l+m*(f-l),y,E,b;switch(p){default:case 6:case 0:y=f,E=g,b=l;break;case 1:y=g,E=f,b=l;break;case 2:y=l,E=f,b=g;break;case 3:y=l,E=g,b=f;break;case 4:y=g,E=l,b=f;break;case 5:y=f,E=l,b=g;break}return[y*255,E*255,b*255]},o.cmyk.rgb=function(i){let s=i[0]/100,l=i[1]/100,u=i[2]/100,d=i[3]/100,m=1-Math.min(1,s*(1-d)+d),p=1-Math.min(1,l*(1-d)+d),f=1-Math.min(1,u*(1-d)+d);return[m*255,p*255,f*255]},o.xyz.rgb=function(i){let s=i[0]/100,l=i[1]/100,u=i[2]/100,d,m,p;return d=s*3.2406+l*-1.5372+u*-.4986,m=s*-.9689+l*1.8758+u*.0415,p=s*.0557+l*-.204+u*1.057,d=d>.0031308?1.055*d**(1/2.4)-.055:d*12.92,m=m>.0031308?1.055*m**(1/2.4)-.055:m*12.92,p=p>.0031308?1.055*p**(1/2.4)-.055:p*12.92,d=Math.min(Math.max(0,d),1),m=Math.min(Math.max(0,m),1),p=Math.min(Math.max(0,p),1),[d*255,m*255,p*255]},o.xyz.lab=function(i){let s=i[0],l=i[1],u=i[2];s/=95.047,l/=100,u/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,l=l>.008856?l**(1/3):7.787*l+16/116,u=u>.008856?u**(1/3):7.787*u+16/116;let d=116*l-16,m=500*(s-l),p=200*(l-u);return[d,m,p]},o.lab.xyz=function(i){let s=i[0],l=i[1],u=i[2],d,m,p;m=(s+16)/116,d=l/500+m,p=m-u/200;let f=m**3,g=d**3,y=p**3;return m=f>.008856?f:(m-16/116)/7.787,d=g>.008856?g:(d-16/116)/7.787,p=y>.008856?y:(p-16/116)/7.787,d*=95.047,m*=100,p*=108.883,[d,m,p]},o.lab.lch=function(i){let s=i[0],l=i[1],u=i[2],d;d=Math.atan2(u,l)*360/2/Math.PI,d<0&&(d+=360);let m=Math.sqrt(l*l+u*u);return[s,m,d]},o.lch.lab=function(i){let s=i[0],l=i[1],u=i[2]/360*2*Math.PI,d=l*Math.cos(u),m=l*Math.sin(u);return[s,d,m]},o.rgb.ansi16=function(i,s=null){let[l,u,d]=i,m=s===null?o.rgb.hsv(i)[2]:s;if(m=Math.round(m/50),m===0)return 30;let p=30+(Math.round(d/255)<<2|Math.round(u/255)<<1|Math.round(l/255));return m===2&&(p+=60),p},o.hsv.ansi16=function(i){return o.rgb.ansi16(o.hsv.rgb(i),i[2])},o.rgb.ansi256=function(i){let s=i[0],l=i[1],u=i[2];return s===l&&l===u?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(l/255*5)+Math.round(u/255*5)},o.ansi16.rgb=function(i){let s=i%10;if(s===0||s===7)return i>50&&(s+=3.5),s=s/10.5*255,[s,s,s];let l=(~~(i>50)+1)*.5,u=(s&1)*l*255,d=(s>>1&1)*l*255,m=(s>>2&1)*l*255;return[u,d,m]},o.ansi256.rgb=function(i){if(i>=232){let m=(i-232)*10+8;return[m,m,m]}i-=16;let s,l=Math.floor(i/36)/5*255,u=Math.floor((s=i%36)/6)/5*255,d=s%6/5*255;return[l,u,d]},o.rgb.hex=function(i){let s=(((Math.round(i[0])&255)<<16)+((Math.round(i[1])&255)<<8)+(Math.round(i[2])&255)).toString(16).toUpperCase();return"000000".substring(s.length)+s},o.hex.rgb=function(i){let s=i.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!s)return[0,0,0];let l=s[0];s[0].length===3&&(l=l.split("").map(f=>f+f).join(""));let u=parseInt(l,16),d=u>>16&255,m=u>>8&255,p=u&255;return[d,m,p]},o.rgb.hcg=function(i){let s=i[0]/255,l=i[1]/255,u=i[2]/255,d=Math.max(Math.max(s,l),u),m=Math.min(Math.min(s,l),u),p=d-m,f,g;return p<1?f=m/(1-p):f=0,p<=0?g=0:d===s?g=(l-u)/p%6:d===l?g=2+(u-s)/p:g=4+(s-l)/p,g/=6,g%=1,[g*360,p*100,f*100]},o.hsl.hcg=function(i){let s=i[1]/100,l=i[2]/100,u=l<.5?2*s*l:2*s*(1-l),d=0;return u<1&&(d=(l-.5*u)/(1-u)),[i[0],u*100,d*100]},o.hsv.hcg=function(i){let s=i[1]/100,l=i[2]/100,u=s*l,d=0;return u<1&&(d=(l-u)/(1-u)),[i[0],u*100,d*100]},o.hcg.rgb=function(i){let s=i[0]/360,l=i[1]/100,u=i[2]/100;if(l===0)return[u*255,u*255,u*255];let d=[0,0,0],m=s%1*6,p=m%1,f=1-p,g=0;switch(Math.floor(m)){case 0:d[0]=1,d[1]=p,d[2]=0;break;case 1:d[0]=f,d[1]=1,d[2]=0;break;case 2:d[0]=0,d[1]=1,d[2]=p;break;case 3:d[0]=0,d[1]=f,d[2]=1;break;case 4:d[0]=p,d[1]=0,d[2]=1;break;default:d[0]=1,d[1]=0,d[2]=f}return g=(1-l)*u,[(l*d[0]+g)*255,(l*d[1]+g)*255,(l*d[2]+g)*255]},o.hcg.hsv=function(i){let s=i[1]/100,l=i[2]/100,u=s+l*(1-s),d=0;return u>0&&(d=s/u),[i[0],d*100,u*100]},o.hcg.hsl=function(i){let s=i[1]/100,l=i[2]/100*(1-s)+.5*s,u=0;return l>0&&l<.5?u=s/(2*l):l>=.5&&l<1&&(u=s/(2*(1-l))),[i[0],u*100,l*100]},o.hcg.hwb=function(i){let s=i[1]/100,l=i[2]/100,u=s+l*(1-s);return[i[0],(u-s)*100,(1-u)*100]},o.hwb.hcg=function(i){let s=i[1]/100,l=1-i[2]/100,u=l-s,d=0;return u<1&&(d=(l-u)/(1-u)),[i[0],u*100,d*100]},o.apple.rgb=function(i){return[i[0]/65535*255,i[1]/65535*255,i[2]/65535*255]},o.rgb.apple=function(i){return[i[0]/255*65535,i[1]/255*65535,i[2]/255*65535]},o.gray.rgb=function(i){return[i[0]/100*255,i[0]/100*255,i[0]/100*255]},o.gray.hsl=function(i){return[0,0,i[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(i){return[0,100,i[0]]},o.gray.cmyk=function(i){return[0,0,0,i[0]]},o.gray.lab=function(i){return[i[0],0,0]},o.gray.hex=function(i){let s=Math.round(i[0]/100*255)&255,l=((s<<16)+(s<<8)+s).toString(16).toUpperCase();return"000000".substring(l.length)+l},o.rgb.gray=function(i){return[(i[0]+i[1]+i[2])/3/255*100]}}),aC=ge((e,t)=>{var r=_y();function n(){let s={},l=Object.keys(r);for(let u=l.length,d=0;d{var r=_y(),n=aC(),o={},a=Object.keys(r);function i(l){let u=h(function(...d){let m=d[0];return m==null?m:(m.length>1&&(d=m),l(d))},"wrappedFn");return"conversion"in l&&(u.conversion=l.conversion),u}h(i,"wrapRaw");function s(l){let u=h(function(...d){let m=d[0];if(m==null)return m;m.length>1&&(d=m);let p=l(d);if(typeof p=="object")for(let f=p.length,g=0;g{o[l]={},Object.defineProperty(o[l],"channels",{value:r[l].channels}),Object.defineProperty(o[l],"labels",{value:r[l].labels});let u=n(l);Object.keys(u).forEach(d=>{let m=u[d];o[l][d]=s(m),o[l][d].raw=i(m)})}),t.exports=o});function ur(){return(ur=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}function Wa(e){var t=ye(e),r=ye(function(n){t.current&&t.current(n)});return t.current=e,r.current}function Ul(e,t,r){var n=Wa(r),o=z(function(){return e.toHsva(t)}),a=o[0],i=o[1],s=ye({color:t,hsva:a});X(function(){if(!e.equal(t,s.current.color)){var u=e.toHsva(t);s.current={hsva:u,color:t},i(u)}},[t,e]),X(function(){var u;yu(a,s.current.hsva)||e.equal(u=e.fromHsva(a),s.current.color)||(s.current={hsva:a,color:u},n(u))},[a,e,n]);var l=Q(function(u){i(function(d){return Object.assign({},d,u)})},[]);return[a,l]}var Dr,mn,Pa,Hl,Vl,Na,hn,La,Re,v2,A2,ja,x2,w2,S2,C2,zl,Ma,Wn,Gl,D2,Yn,T2,Wl,Yl,Kl,yu,Xl,k2,sC,O2,I2,Jl,Zl,R2,B2,Fy,_2,Ql,F2,Py,P2,Ny,lC=ie(()=>{h(ur,"u"),h(Fa,"c"),h(Wa,"i"),Dr=h(function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=1),e>r?r:e0:E.buttons>0)&&o.current?a(Hl(o.current,E,s.current)):y(!1)},"e"),g=h(function(){return y(!1)},"r");function y(E){var b=l.current,x=Pa(o.current),S=E?x.addEventListener:x.removeEventListener;S(b?"touchmove":"mousemove",f),S(b?"touchend":"mouseup",g)}return h(y,"t"),[function(E){var b=E.nativeEvent,x=o.current;if(x&&(Vl(b),!(function(T,_){return _&&!mn(T)})(b,l.current)&&x)){if(mn(b)){l.current=!0;var S=b.changedTouches||[];S.length&&(s.current=S[0].identifier)}x.focus(),a(Hl(x,b,s.current)),y(!0)}},function(E){var b=E.which||E.keyCode;b<37||b>40||(E.preventDefault(),i({left:b===39?.05:b===37?-.05:0,top:b===40?.05:b===38?-.05:0}))},y]},[i,a]),d=u[0],m=u[1],p=u[2];return X(function(){return p},[p]),c.createElement("div",ur({},n,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:m,tabIndex:0,role:"slider"}))}),hn=h(function(e){return e.filter(Boolean).join(" ")},"g"),La=h(function(e){var t=e.color,r=e.left,n=e.top,o=n===void 0?.5:n,a=hn(["react-colorful__pointer",e.className]);return c.createElement("div",{className:a,style:{top:100*o+"%",left:100*r+"%"}},c.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},"p"),Re=h(function(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=Math.pow(10,t)),Math.round(r*e)/r},"b"),v2={grad:.9,turn:360,rad:360/(2*Math.PI)},A2=h(function(e){return Wl(ja(e))},"x"),ja=h(function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?Re(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?Re(parseInt(e.substring(6,8),16)/255,2):1}},"C"),x2=h(function(e,t){return t===void 0&&(t="deg"),Number(e)*(v2[t]||1)},"E"),w2=h(function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?S2({h:x2(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},"H"),S2=h(function(e){var t=e.s,r=e.l;return{h:e.h,s:(t*=(r<50?r:100-r)/100)>0?2*t/(r+t)*100:0,v:r+t,a:e.a}},"N"),C2=h(function(e){return T2(Gl(e))},"w"),zl=h(function(e){var t=e.s,r=e.v,n=e.a,o=(200-t)*r/100;return{h:Re(e.h),s:Re(o>0&&o<200?t*r/100/(o<=100?o:200-o)*100:0),l:Re(o/2),a:Re(n,2)}},"y"),Ma=h(function(e){var t=zl(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},"q"),Wn=h(function(e){var t=zl(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},"k"),Gl=h(function(e){var t=e.h,r=e.s,n=e.v,o=e.a;t=t/360*6,r/=100,n/=100;var a=Math.floor(t),i=n*(1-r),s=n*(1-(t-a)*r),l=n*(1-(1-t+a)*r),u=a%6;return{r:Re(255*[n,s,i,i,l,n][u]),g:Re(255*[l,n,n,s,i,i][u]),b:Re(255*[i,i,l,n,n,s][u]),a:Re(o,2)}},"I"),D2=h(function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Wl({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},"z"),Yn=h(function(e){var t=e.toString(16);return t.length<2?"0"+t:t},"D"),T2=h(function(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=o<1?Yn(Re(255*o)):"";return"#"+Yn(t)+Yn(r)+Yn(n)+a},"K"),Wl=h(function(e){var t=e.r,r=e.g,n=e.b,o=e.a,a=Math.max(t,r,n),i=a-Math.min(t,r,n),s=i?a===t?(r-n)/i:a===r?2+(n-t)/i:4+(t-r)/i:0;return{h:Re(60*(s<0?s+6:s)),s:Re(a?i/a*100:0),v:Re(a/255*100),a:o}},"L"),Yl=c.memo(function(e){var t=e.hue,r=e.onChange,n=hn(["react-colorful__hue",e.className]);return c.createElement("div",{className:n},c.createElement(Na,{onMove:h(function(o){r({h:360*o.left})},"onMove"),onKey:h(function(o){r({h:Dr(t+360*o.left,0,360)})},"onKey"),"aria-label":"Hue","aria-valuenow":Re(t),"aria-valuemax":"360","aria-valuemin":"0"},c.createElement(La,{className:"react-colorful__hue-pointer",left:t/360,color:Ma({h:t,s:100,v:100,a:1})})))}),Kl=c.memo(function(e){var t=e.hsva,r=e.onChange,n={backgroundColor:Ma({h:t.h,s:100,v:100,a:1})};return c.createElement("div",{className:"react-colorful__saturation",style:n},c.createElement(Na,{onMove:h(function(o){r({s:100*o.left,v:100-100*o.top})},"onMove"),onKey:h(function(o){r({s:Dr(t.s+100*o.left,0,100),v:Dr(t.v-100*o.top,0,100)})},"onKey"),"aria-label":"Color","aria-valuetext":"Saturation "+Re(t.s)+"%, Brightness "+Re(t.v)+"%"},c.createElement(La,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Ma(t)})))}),yu=h(function(e,t){if(e===t)return!0;for(var r in e)if(e[r]!==t[r])return!1;return!0},"F"),Xl=h(function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},"P"),k2=h(function(e,t){return e.toLowerCase()===t.toLowerCase()||yu(ja(e),ja(t))},"X"),h(Ul,"Y"),O2=typeof window<"u"?ho:X,I2=h(function(){return sC||(typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0)},"$"),Jl=new Map,Zl=h(function(e){O2(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!Jl.has(t)){var r=t.createElement("style");r.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,Jl.set(t,r);var n=I2();n&&r.setAttribute("nonce",n),t.head.appendChild(r)}},[])},"Q"),R2=h(function(e){var t=e.className,r=e.colorModel,n=e.color,o=n===void 0?r.defaultColor:n,a=e.onChange,i=Fa(e,["className","colorModel","color","onChange"]),s=ye(null);Zl(s);var l=Ul(r,o,a),u=l[0],d=l[1],m=hn(["react-colorful",t]);return c.createElement("div",ur({},i,{ref:s,className:m}),c.createElement(Kl,{hsva:u,onChange:d}),c.createElement(Yl,{hue:u.h,onChange:d,className:"react-colorful__last-control"}))},"U"),B2={defaultColor:"000",toHsva:A2,fromHsva:h(function(e){return C2({h:e.h,s:e.s,v:e.v,a:1})},"fromHsva"),equal:k2},Fy=h(function(e){return c.createElement(R2,ur({},e,{colorModel:B2}))},"Z"),_2=h(function(e){var t=e.className,r=e.hsva,n=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+Wn(Object.assign({},r,{a:0}))+", "+Wn(Object.assign({},r,{a:1}))+")"},a=hn(["react-colorful__alpha",t]),i=Re(100*r.a);return c.createElement("div",{className:a},c.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),c.createElement(Na,{onMove:h(function(s){n({a:s.left})},"onMove"),onKey:h(function(s){n({a:Dr(r.a+s.left)})},"onKey"),"aria-label":"Alpha","aria-valuetext":i+"%","aria-valuenow":i,"aria-valuemin":"0","aria-valuemax":"100"},c.createElement(La,{className:"react-colorful__alpha-pointer",left:r.a,color:Wn(r)})))},"ee"),Ql=h(function(e){var t=e.className,r=e.colorModel,n=e.color,o=n===void 0?r.defaultColor:n,a=e.onChange,i=Fa(e,["className","colorModel","color","onChange"]),s=ye(null);Zl(s);var l=Ul(r,o,a),u=l[0],d=l[1],m=hn(["react-colorful",t]);return c.createElement("div",ur({},i,{ref:s,className:m}),c.createElement(Kl,{hsva:u,onChange:d}),c.createElement(Yl,{hue:u.h,onChange:d}),c.createElement(_2,{hsva:u,onChange:d,className:"react-colorful__last-control"}))},"re"),F2={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:w2,fromHsva:Wn,equal:Xl},Py=h(function(e){return c.createElement(Ql,ur({},e,{colorModel:F2}))},"ue"),P2={defaultColor:"rgba(0, 0, 0, 1)",toHsva:D2,fromHsva:h(function(e){var t=Gl(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},"fromHsva"),equal:Xl},Ny=h(function(e){return c.createElement(Ql,ur({},e,{colorModel:P2}))},"He")}),Ly={};PS(Ly,{ColorControl:()=>bu,default:()=>jy});var dt,N2,L2,j2,M2,$2,q2,U2,eu,H2,V2,tu,$a,z2,G2,W2,qa,Y2,K2,Kn,ru,X2,J2,Z2,Tr,Q2,e0,Xn,t0,bu,jy,uC=ie(()=>{"use strict";dt=it(iC()),pi(),lC(),Ot(),N2=R.div({position:"relative",maxWidth:250,'&[aria-readonly="true"]':{opacity:.5}}),L2=R(De)({position:"absolute",zIndex:1,top:4,left:4,"[aria-readonly=true] &":{cursor:"not-allowed"}}),j2=R.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),M2=R(vt)(({theme:e})=>({fontFamily:e.typography.fonts.base})),$2=R.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),q2=R.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),U2=`url('data:image/svg+xml;charset=utf-8,')`,eu=h(({value:e,style:t,...r})=>{let n=`linear-gradient(${e}, ${e}), ${U2}, linear-gradient(#fff, #fff)`;return c.createElement(q2,{...r,style:{...t,backgroundImage:n}})},"Swatch"),H2=R($e.Input)(({theme:e,readOnly:t})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),V2=R(Fc)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),tu=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(tu||{}),$a=Object.values(tu),z2=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,G2=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,W2=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,qa=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Y2=/^\s*#?([0-9a-f]{3})\s*$/i,K2={hex:Fy,rgb:Ny,hsl:Py},Kn={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ru=h(e=>{let t=e?.match(z2);if(!t)return[0,0,0,1];let[,r,n,o,a=1]=t;return[r,n,o,a].map(Number)},"stringToArgs"),X2=h(e=>{let[t,r,n,o]=ru(e),[a,i,s]=dt.default.rgb.hsl([t,r,n])||[0,0,0];return{valid:!0,value:e,keyword:dt.default.rgb.keyword([t,r,n]),colorSpace:"rgb",rgb:e,hsl:`hsla(${a}, ${i}%, ${s}%, ${o})`,hex:`#${dt.default.rgb.hex([t,r,n]).toLowerCase()}`}},"parseRgb"),J2=h(e=>{let[t,r,n,o]=ru(e),[a,i,s]=dt.default.hsl.rgb([t,r,n])||[0,0,0];return{valid:!0,value:e,keyword:dt.default.hsl.keyword([t,r,n]),colorSpace:"hsl",rgb:`rgba(${a}, ${i}, ${s}, ${o})`,hsl:e,hex:`#${dt.default.hsl.hex([t,r,n]).toLowerCase()}`}},"parseHsl"),Z2=h(e=>{let t=e.replace("#",""),r=dt.default.keyword.rgb(t)||dt.default.hex.rgb(t),n=dt.default.rgb.hsl(r),o=e;/[^#a-f0-9]/i.test(e)?o=t:qa.test(e)&&(o=`#${t}`);let a=!0;if(o.startsWith("#"))a=qa.test(o);else try{dt.default.keyword.hex(o)}catch{a=!1}return{valid:a,value:o,keyword:dt.default.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${n[0]}, ${n[1]}%, ${n[2]}%, 1)`,hex:o}},"parseHexOrKeyword"),Tr=h(e=>{if(e)return G2.test(e)?X2(e):W2.test(e)?J2(e):Z2(e)},"parseValue"),Q2=h((e,t,r)=>{if(!e||!t?.valid)return Kn[r];if(r!=="hex")return t?.[r]||Kn[r];if(!t.hex.startsWith("#"))try{return`#${dt.default.keyword.hex(t.hex)}`}catch{return Kn.hex}let n=t.hex.match(Y2);if(!n)return qa.test(t.hex)?t.hex:Kn.hex;let[o,a,i]=n[1].split("");return`#${o}${o}${a}${a}${i}${i}`},"getRealValue"),e0=h((e,t)=>{let[r,n]=z(e||""),[o,a]=z(()=>Tr(r)),[i,s]=z(o?.colorSpace||"hex");X(()=>{let m=e||"",p=Tr(m);n(m),a(p),s(p?.colorSpace||"hex")},[e]);let l=Me(()=>Q2(r,o,i).toLowerCase(),[r,o,i]),u=Q(m=>{let p=Tr(m),f=p?.value||m||"";n(f),f===""&&(a(void 0),t(void 0)),p&&(a(p),s(p.colorSpace),t(p.value))},[t]),d=Q(()=>{let m=($a.indexOf(i)+1)%$a.length,p=$a[m];s(p);let f=o?.[p]||"";n(f),t(f)},[o,i,t]);return{value:r,realValue:l,updateValue:u,color:o,colorSpace:i,cycleColorSpace:d}},"useColorInput"),Xn=h(e=>e.replace(/\s*/,"").toLowerCase(),"id"),t0=h((e,t,r)=>{let[n,o]=z(t?.valid?[t]:[]);X(()=>{t===void 0&&o([])},[t]);let a=Me(()=>(e||[]).map(s=>typeof s=="string"?Tr(s):s.title?{...Tr(s.color),keyword:s.title}:Tr(s.color)).concat(n).filter(Boolean).slice(-27),[e,n]),i=Q(s=>{s?.valid&&(a.some(l=>l&&l[r]&&Xn(l[r]||"")===Xn(s[r]||""))||o(l=>l.concat(s)))},[r,a]);return{presets:a,addPreset:i}},"usePresets"),bu=h(({name:e,value:t,onChange:r,onFocus:n,onBlur:o,presetColors:a,startOpen:i=!1,argType:s})=>{let l=Q(wy(r,200),[r]),{value:u,realValue:d,updateValue:m,color:p,colorSpace:f,cycleColorSpace:g}=e0(t,l),{presets:y,addPreset:E}=t0(a??[],p,f),b=K2[f],x=!!s?.table?.readonly;return c.createElement(N2,{"aria-readonly":x},c.createElement(L2,{startOpen:i,trigger:x?null:void 0,closeOnOutsideClick:!0,onVisibleChange:()=>p&&E(p),tooltip:c.createElement(j2,null,c.createElement(b,{color:d==="transparent"?"#000000":d,onChange:m,onFocus:n,onBlur:o}),y.length>0&&c.createElement($2,null,y.map((S,T)=>c.createElement(De,{key:`${S?.value||T}-${T}`,hasChrome:!1,tooltip:c.createElement(M2,{note:S?.keyword||S?.value||""})},c.createElement(eu,{value:S?.[f]||"",active:!!(p&&S&&S[f]&&Xn(S[f]||"")===Xn(p[f])),onClick:()=>S&&m(S.value||"")})))))},c.createElement(eu,{value:d,style:{margin:4}})),c.createElement(H2,{id:mt(e),value:u,onChange:S=>m(S.target.value),onFocus:S=>S.target.select(),readOnly:x,placeholder:"Choose color..."}),u?c.createElement(V2,{onClick:g}):null)},"ColorControl"),jy=bu}),cC=ge((e,t)=>{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"||typeof window<"u"?n=window:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){var r,n,o;return h(function a(i,s,l){function u(p,f){if(!s[p]){if(!i[p]){var g=typeof _a=="function"&&_a;if(!f&&g)return g(p,!0);if(d)return d(p,!0);var y=new Error("Cannot find module '"+p+"'");throw y.code="MODULE_NOT_FOUND",y}var E=s[p]={exports:{}};i[p][0].call(E.exports,function(b){var x=i[p][1][b];return u(x||b)},E,E.exports,a,i,s,l)}return s[p].exports}h(u,"s");for(var d=typeof _a=="function"&&_a,m=0;m=0)return this.lastItem=this.list[d],this.list[d].val},l.prototype.set=function(u,d){var m;return this.lastItem&&this.isEqual(this.lastItem.key,u)?(this.lastItem.val=d,this):(m=this.indexOf(u),m>=0?(this.lastItem=this.list[m],this.list[m].val=d,this):(this.lastItem={key:u,val:d},this.list.push(this.lastItem),this.size++,this))},l.prototype.delete=function(u){var d;if(this.lastItem&&this.isEqual(this.lastItem.key,u)&&(this.lastItem=void 0),d=this.indexOf(u),d>=0)return this.size--,this.list.splice(d,1)[0]},l.prototype.has=function(u){var d;return this.lastItem&&this.isEqual(this.lastItem.key,u)?!0:(d=this.indexOf(u),d>=0?(this.lastItem=this.list[d],!0):!1)},l.prototype.forEach=function(u,d){var m;for(m=0;m0&&(_[T]={cacheItem:b,arg:arguments[T]},O?u(g,_):g.push(_),g.length>p&&d(g.shift())),E.wasMemoized=O,E.numArgs=T+1,S},"memoizerific");return E.limit=p,E.wasMemoized=!1,E.cache=f,E.lru=g,E}};function u(p,f){var g=p.length,y=f.length,E,b,x;for(b=0;b=0&&(g=p[E],y=g.cacheItem.get(g.arg),!y||!y.size);E--)g.cacheItem.delete(g.arg)}h(d,"removeCachedResult");function m(p,f){return p===f||p!==p&&f!==f}h(m,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})}),My=ge((e,t)=>{t.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:` `,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}}),dC=ge((e,t)=>{t.exports={Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6",Agrave:"\xC0",agrave:"\xE0",amp:"&",AMP:"&",Aring:"\xC5",aring:"\xE5",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",brvbar:"\xA6",Ccedil:"\xC7",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Egrave:"\xC8",egrave:"\xE8",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",iexcl:"\xA1",Igrave:"\xCC",igrave:"\xEC",iquest:"\xBF",Iuml:"\xCF",iuml:"\xEF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",Ntilde:"\xD1",ntilde:"\xF1",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Ograve:"\xD2",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",THORN:"\xDE",thorn:"\xFE",times:"\xD7",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Ugrave:"\xD9",ugrave:"\xF9",uml:"\xA8",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}}),$y=ge((e,t)=>{t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}),pC=ge((e,t)=>{t.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}}),mC=ge(e=>{"use strict";var t=e&&e.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0});var r=t(pC()),n=String.fromCodePoint||function(a){var i="";return a>65535&&(a-=65536,i+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),i+=String.fromCharCode(a),i};function o(a){return a>=55296&&a<=57343||a>1114111?"\uFFFD":(a in r.default&&(a=r.default[a]),n(a))}h(o,"decodeCodePoint"),e.default=o}),r0=ge(e=>{"use strict";var t=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var r=t(My()),n=t(dC()),o=t($y()),a=t(mC()),i=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=s(o.default),e.decodeHTMLStrict=s(r.default);function s(d){var m=u(d);return function(p){return String(p).replace(i,m)}}h(s,"getStrictDecoder");var l=h(function(d,m){return d{"use strict";var t=e&&e.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var r=t($y()),n=l(r.default),o=u(n);e.encodeXML=b(n);var a=t(My()),i=l(a.default),s=u(i);e.encodeHTML=f(i,s),e.encodeNonAsciiHTML=b(i);function l(x){return Object.keys(x).sort().reduce(function(S,T){return S[x[T]]="&"+T+";",S},{})}h(l,"getInverseObj");function u(x){for(var S=[],T=[],_=0,O=Object.keys(x);_1?m(x):x.charCodeAt(0)).toString(16).toUpperCase()+";"}h(p,"singleCharReplacer");function f(x,S){return function(T){return T.replace(S,function(_){return x[_]}).replace(d,p)}}h(f,"getInverse");var g=new RegExp(o.source+"|"+d.source,"g");function y(x){return x.replace(g,p)}h(y,"escape"),e.escape=y;function E(x){return x.replace(o,p)}h(E,"escapeUTF8"),e.escapeUTF8=E;function b(x){return function(S){return S.replace(g,function(T){return x[T]||p(T)})}}h(b,"getASCIIEncoder")}),hC=ge(e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=r0(),r=n0();function n(l,u){return(!u||u<=0?t.decodeXML:t.decodeHTML)(l)}h(n,"decode"),e.decode=n;function o(l,u){return(!u||u<=0?t.decodeXML:t.decodeHTMLStrict)(l)}h(o,"decodeStrict"),e.decodeStrict=o;function a(l,u){return(!u||u<=0?r.encodeXML:r.encodeHTML)(l)}h(a,"encode"),e.encode=a;var i=n0();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:h(function(){return i.encodeXML},"get")}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:h(function(){return i.encodeHTML},"get")}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:h(function(){return i.encodeNonAsciiHTML},"get")}),Object.defineProperty(e,"escape",{enumerable:!0,get:h(function(){return i.escape},"get")}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:h(function(){return i.escapeUTF8},"get")}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:h(function(){return i.encodeHTML},"get")}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:h(function(){return i.encodeHTML},"get")});var s=r0();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:h(function(){return s.decodeXML},"get")}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:h(function(){return s.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:h(function(){return s.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:h(function(){return s.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:h(function(){return s.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:h(function(){return s.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:h(function(){return s.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:h(function(){return s.decodeXML},"get")})}),fC=ge((e,t)=>{"use strict";function r(v,A){if(!(v instanceof A))throw new TypeError("Cannot call a class as a function")}h(r,"_classCallCheck");function n(v,A){for(var D=0;D=v.length?{done:!0}:{done:!1,value:v[N++]}},"n"),e:h(function(G){throw G},"e"),f:F}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var M=!0,q=!1,V;return{s:h(function(){D=D.call(v)},"s"),n:h(function(){var G=D.next();return M=G.done,G},"n"),e:h(function(G){q=!0,V=G},"e"),f:h(function(){try{!M&&D.return!=null&&D.return()}finally{if(q)throw V}},"f")}}h(a,"_createForOfIteratorHelper");function i(v,A){if(v){if(typeof v=="string")return s(v,A);var D=Object.prototype.toString.call(v).slice(8,-1);if(D==="Object"&&v.constructor&&(D=v.constructor.name),D==="Map"||D==="Set")return Array.from(v);if(D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D))return s(v,A)}}h(i,"_unsupportedIterableToArray");function s(v,A){(A==null||A>v.length)&&(A=v.length);for(var D=0,N=new Array(A);D0?v*40+55:0,q=A>0?A*40+55:0,V=D>0?D*40+55:0;N[F]=f([M,q,V])}h(m,"setStyleColor");function p(v){for(var A=v.toString(16);A.length<2;)A="0"+A;return A}h(p,"toHexString");function f(v){var A=[],D=a(v),N;try{for(D.s();!(N=D.n()).done;){var F=N.value;A.push(p(F))}}catch(M){D.e(M)}finally{D.f()}return"#"+A.join("")}h(f,"toColorHexString");function g(v,A,D,N){var F;return A==="text"?F=_(D,N):A==="display"?F=E(v,D,N):A==="xterm256Foreground"?F=B(v,N.colors[D]):A==="xterm256Background"?F=P(v,N.colors[D]):A==="rgb"&&(F=y(v,D)),F}h(g,"generateOutput");function y(v,A){A=A.substring(2).slice(0,-1);var D=+A.substr(0,2),N=A.substring(5).split(";"),F=N.map(function(M){return("0"+Number(M).toString(16)).substr(-2)}).join("");return k(v,(D===38?"color:#":"background-color:#")+F)}h(y,"handleRgb");function E(v,A,D){A=parseInt(A,10);var N={"-1":h(function(){return"
"},"_"),0:h(function(){return v.length&&b(v)},"_"),1:h(function(){return O(v,"b")},"_"),3:h(function(){return O(v,"i")},"_"),4:h(function(){return O(v,"u")},"_"),8:h(function(){return k(v,"display:none")},"_"),9:h(function(){return O(v,"strike")},"_"),22:h(function(){return k(v,"font-weight:normal;text-decoration:none;font-style:normal")},"_"),23:h(function(){return L(v,"i")},"_"),24:h(function(){return L(v,"u")},"_"),39:h(function(){return B(v,D.fg)},"_"),49:h(function(){return P(v,D.bg)},"_"),53:h(function(){return k(v,"text-decoration:overline")},"_")},F;return N[A]?F=N[A]():4"}).join("")}h(b,"resetStyles");function x(v,A){for(var D=[],N=v;N<=A;N++)D.push(N);return D}h(x,"range");function S(v){return function(A){return(v===null||A.category!==v)&&v!=="all"}}h(S,"notCategory");function T(v){v=parseInt(v,10);var A=null;return v===0?A="all":v===1?A="bold":2")}h(O,"pushTag");function k(v,A){return O(v,"span",A)}h(k,"pushStyle");function B(v,A){return O(v,"span","color:"+A)}h(B,"pushForegroundColor");function P(v,A){return O(v,"span","background-color:"+A)}h(P,"pushBackgroundColor");function L(v,A){var D;if(v.slice(-1)[0]===A&&(D=v.pop()),D)return""}h(L,"closeTag");function j(v,A,D){var N=!1,F=3;function M(){return""}h(M,"remove");function q(me,ue){return D("xterm256Foreground",ue),""}h(q,"removeXterm256Foreground");function V(me,ue){return D("xterm256Background",ue),""}h(V,"removeXterm256Background");function G(me){return A.newline?D("display",-1):D("text",me),""}h(G,"newline");function se(me,ue){N=!0,ue.trim().length===0&&(ue="0"),ue=ue.trimRight(";").split(";");var ht=a(ue),Sn;try{for(ht.s();!(Sn=ht.n()).done;){var Ei=Sn.value;D("display",Ei)}}catch(vi){ht.e(vi)}finally{ht.f()}return""}h(se,"ansiMess");function pe(me){return D("text",me),""}h(pe,"realText");function ae(me){return D("rgb",me),""}h(ae,"rgb");var we=[{pattern:/^\x08+/,sub:M},{pattern:/^\x1b\[[012]?K/,sub:M},{pattern:/^\x1b\[\(B/,sub:M},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:ae},{pattern:/^\x1b\[38;5;(\d+)m/,sub:q},{pattern:/^\x1b\[48;5;(\d+)m/,sub:V},{pattern:/^\n/,sub:G},{pattern:/^\r+\n/,sub:G},{pattern:/^\r/,sub:G},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:se},{pattern:/^\x1b\[\d?J/,sub:M},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:M},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:M},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:pe}];function ee(me,ue){ue>F&&N||(N=!1,v=v.replace(me.pattern,me.sub))}h(ee,"process");var Ce=[],Ve=v,Fe=Ve.length;e:for(;Fe>0;){for(var lt=0,Zt=0,Nr=we.length;Zt{function r(){return t.exports=r=Object.assign||function(n){for(var o=1;o{function r(n,o){if(n==null)return{};var a={},i=Object.keys(n),s,l;for(l=0;l=0)&&(a[s]=n[s]);return a}h(r,"_objectWithoutPropertiesLoose"),t.exports=r}),Xu=ge((e,t)=>{var r=gC();function n(o,a){if(o==null)return{};var i=r(o,a),s,l;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);for(l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(o,s)&&(i[s]=o[s])}return i}h(n,"_objectWithoutProperties"),t.exports=n}),yC=ge((e,t)=>{function r(n,o,a){return o in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a,n}h(r,"_defineProperty"),t.exports=r}),bC=ge((e,t)=>{var r=yC();function n(a,i){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(a);i&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(a,u).enumerable})),s.push.apply(s,l)}return s}h(n,"ownKeys");function o(a){for(var i=1;i{function r(n,o){if(n==null)return{};var a={},i=Object.keys(n),s,l;for(l=0;l=0)&&(a[s]=n[s]);return a}h(r,"_objectWithoutPropertiesLoose"),t.exports=r}),vC=ge((e,t)=>{var r=EC();function n(o,a){if(o==null)return{};var i=r(o,a),s,l;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);for(l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(o,s)&&(i[s]=o[s])}return i}h(n,"_objectWithoutProperties"),t.exports=n}),AC=ge((e,t)=>{function r(n,o,a){return o in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a,n}h(r,"_defineProperty"),t.exports=r}),xC=ge((e,t)=>{var r=AC();function n(a,i){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(a);i&&(l=l.filter(function(u){return Object.getOwnPropertyDescriptor(a,u).enumerable})),s.push.apply(s,l)}return s}h(n,"ownKeys");function o(a){for(var i=1;i{function r(){return t.exports=r=Object.assign||function(n){for(var o=1;o{function r(n,o){if(n==null)return{};var a={},i=Object.keys(n),s,l;for(l=0;l=0)&&(a[s]=n[s]);return a}h(r,"_objectWithoutPropertiesLoose"),t.exports=r}),CC=ge((e,t)=>{var r=SC();function n(o,a){if(o==null)return{};var i=r(o,a),s,l;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(o);for(l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(o,s)&&(i[s]=o[s])}return i}h(n,"_objectWithoutProperties"),t.exports=n}),o0=Object.prototype.hasOwnProperty;function Eu(e,t,r){for(r of e.keys())if(fr(r,t))return r}h(Eu,"find");function fr(e,t){var r,n,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&fr(e[n],t[n]););return n===-1}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if(o=n,o&&typeof o=="object"&&(o=Eu(t,o),!o)||!t.has(o))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if(o=n[0],o&&typeof o=="object"&&(o=Eu(t,o),!o)||!fr(n[1],t.get(o)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return n===-1}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(o0.call(e,r)&&++n&&!o0.call(t,r)||!(r in t)||!fr(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}h(fr,"dequal");pi();function Ye(){return Ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?o-1:0),i=1;i=0&&o<1?(s=a,l=i):o>=1&&o<2?(s=i,l=a):o>=2&&o<3?(l=a,u=i):o>=3&&o<4?(l=i,u=a):o>=4&&o<5?(s=i,u=a):o>=5&&o<6&&(s=a,u=i);var d=r-a/2,m=s+d,p=l+d,f=u+d;return n(m,p,f)}h(xn,"hslToRgb");var a0={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Yy(e){if(typeof e!="string")return e;var t=e.toLowerCase();return a0[t]?"#"+a0[t]:e}h(Yy,"nameToHex");var OC=/^#[a-fA-F0-9]{6}$/,IC=/^#[a-fA-F0-9]{8}$/,RC=/^#[a-fA-F0-9]{3}$/,BC=/^#[a-fA-F0-9]{4}$/,nu=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,_C=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,FC=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,PC=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function Rr(e){if(typeof e!="string")throw new at(3);var t=Yy(e);if(t.match(OC))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(IC)){var r=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:r}}if(t.match(RC))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(BC)){var n=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:n}}var o=nu.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=_C.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=FC.exec(t);if(i){var s=parseInt(""+i[1],10),l=parseInt(""+i[2],10)/100,u=parseInt(""+i[3],10)/100,d="rgb("+xn(s,l,u)+")",m=nu.exec(d);if(!m)throw new at(4,t,d);return{red:parseInt(""+m[1],10),green:parseInt(""+m[2],10),blue:parseInt(""+m[3],10)}}var p=PC.exec(t.substring(0,50));if(p){var f=parseInt(""+p[1],10),g=parseInt(""+p[2],10)/100,y=parseInt(""+p[3],10)/100,E="rgb("+xn(f,g,y)+")",b=nu.exec(E);if(!b)throw new at(4,t,E);return{red:parseInt(""+b[1],10),green:parseInt(""+b[2],10),blue:parseInt(""+b[3],10),alpha:parseFloat(""+p[4])>1?parseFloat(""+p[4])/100:parseFloat(""+p[4])}}throw new at(5)}h(Rr,"parseToRgb");function Ky(e){var t=e.red/255,r=e.green/255,n=e.blue/255,o=Math.max(t,r,n),a=Math.min(t,r,n),i=(o+a)/2;if(o===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var s,l=o-a,u=i>.5?l/(2-o-a):l/(o+a);switch(o){case t:s=(r-n)/l+(r=1?io(e,t,r):"rgba("+xn(e,t,r)+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?io(e.hue,e.saturation,e.lightness):"rgba("+xn(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new at(2)}h(Zy,"hsla");function oi(e,t,r){if(typeof e=="number"&&typeof t=="number"&&typeof r=="number")return xu("#"+dr(e)+dr(t)+dr(r));if(typeof e=="object"&&t===void 0&&r===void 0)return xu("#"+dr(e.red)+dr(e.green)+dr(e.blue));throw new at(6)}h(oi,"rgb");function Tt(e,t,r,n){if(typeof e=="string"&&typeof t=="number"){var o=Rr(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof r=="number"&&typeof n=="number")return n>=1?oi(e,t,r):"rgba("+e+","+t+","+r+","+n+")";if(typeof e=="object"&&t===void 0&&r===void 0&&n===void 0)return e.alpha>=1?oi(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new at(7)}h(Tt,"rgba");var LC=h(function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},"isRgb"),jC=h(function(e){return typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number"&&typeof e.alpha=="number"},"isRgba"),MC=h(function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&(typeof e.alpha!="number"||typeof e.alpha>"u")},"isHsl"),$C=h(function(e){return typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number"&&typeof e.alpha=="number"},"isHsla");function Jt(e){if(typeof e!="object")throw new at(8);if(jC(e))return Tt(e);if(LC(e))return oi(e);if($C(e))return Zy(e);if(MC(e))return Jy(e);throw new at(8)}h(Jt,"toColorString");function Zu(e,t,r){return h(function(){var n=r.concat(Array.prototype.slice.call(arguments));return n.length>=t?e.apply(this,n):Zu(e,t,n)},"fn")}h(Zu,"curried");function st(e){return Zu(e,e.length,[])}h(st,"curry");function Qy(e,t){if(t==="transparent")return t;var r=Xt(t);return Jt(Ye({},r,{hue:r.hue+parseFloat(e)}))}h(Qy,"adjustHue");var U8=st(Qy);function Fr(e,t,r){return Math.max(e,Math.min(t,r))}h(Fr,"guard");function eb(e,t){if(t==="transparent")return t;var r=Xt(t);return Jt(Ye({},r,{lightness:Fr(0,1,r.lightness-parseFloat(e))}))}h(eb,"darken");var qC=st(eb),Nt=qC;function tb(e,t){if(t==="transparent")return t;var r=Xt(t);return Jt(Ye({},r,{saturation:Fr(0,1,r.saturation-parseFloat(e))}))}h(tb,"desaturate");var H8=st(tb);function rb(e,t){if(t==="transparent")return t;var r=Xt(t);return Jt(Ye({},r,{lightness:Fr(0,1,r.lightness+parseFloat(e))}))}h(rb,"lighten");var UC=st(rb),Or=UC;function nb(e,t,r){if(t==="transparent")return r;if(r==="transparent")return t;if(e===0)return r;var n=Rr(t),o=Ye({},n,{alpha:typeof n.alpha=="number"?n.alpha:1}),a=Rr(r),i=Ye({},a,{alpha:typeof a.alpha=="number"?a.alpha:1}),s=o.alpha-i.alpha,l=parseFloat(e)*2-1,u=l*s===-1?l:l+s,d=1+l*s,m=(u/d+1)/2,p=1-m,f={red:Math.floor(o.red*m+i.red*p),green:Math.floor(o.green*m+i.green*p),blue:Math.floor(o.blue*m+i.blue*p),alpha:o.alpha*parseFloat(e)+i.alpha*(1-parseFloat(e))};return Tt(f)}h(nb,"mix");var HC=st(nb),ob=HC;function ab(e,t){if(t==="transparent")return t;var r=Rr(t),n=typeof r.alpha=="number"?r.alpha:1,o=Ye({},r,{alpha:Fr(0,1,(n*100+parseFloat(e)*100)/100)});return Tt(o)}h(ab,"opacify");var VC=st(ab),Zn=VC;function ib(e,t){if(t==="transparent")return t;var r=Xt(t);return Jt(Ye({},r,{saturation:Fr(0,1,r.saturation+parseFloat(e))}))}h(ib,"saturate");var V8=st(ib);function sb(e,t){return t==="transparent"?t:Jt(Ye({},Xt(t),{hue:parseFloat(e)}))}h(sb,"setHue");var z8=st(sb);function lb(e,t){return t==="transparent"?t:Jt(Ye({},Xt(t),{lightness:parseFloat(e)}))}h(lb,"setLightness");var G8=st(lb);function ub(e,t){return t==="transparent"?t:Jt(Ye({},Xt(t),{saturation:parseFloat(e)}))}h(ub,"setSaturation");var W8=st(ub);function cb(e,t){return t==="transparent"?t:ob(parseFloat(e),"rgb(0, 0, 0)",t)}h(cb,"shade");var Y8=st(cb);function db(e,t){return t==="transparent"?t:ob(parseFloat(e),"rgb(255, 255, 255)",t)}h(db,"tint");var K8=st(db);function pb(e,t){if(t==="transparent")return t;var r=Rr(t),n=typeof r.alpha=="number"?r.alpha:1,o=Ye({},r,{alpha:Fr(0,1,+(n*100-parseFloat(e)*100).toFixed(2)/100)});return Tt(o)}h(pb,"transparentize");var zC=st(pb),de=zC,GC=R.div(er,({theme:e})=>({backgroundColor:e.base==="light"?"rgba(0,0,0,.01)":"rgba(255,255,255,.01)",borderRadius:e.appBorderRadius,border:`1px dashed ${e.appBorderColor}`,display:"flex",alignItems:"center",justifyContent:"center",padding:20,margin:"25px 0 40px",color:de(.3,e.color.defaultText),fontSize:e.typography.size.s2})),mb=h(e=>c.createElement(GC,{...e,className:"docblock-emptyblock sb-unstyled"}),"EmptyBlock"),WC=R(On)(({theme:e})=>({fontSize:`${e.typography.size.s2-1}px`,lineHeight:"19px",margin:"25px 0 40px",borderRadius:e.appBorderRadius,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0","pre.prismjs":{padding:20,background:"inherit"}})),YC=R.div(({theme:e})=>({background:e.background.content,borderRadius:e.appBorderRadius,border:`1px solid ${e.appBorderColor}`,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",margin:"25px 0 40px",padding:"20px 20px 20px 22px"})),Ua=R.div(({theme:e})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,height:17,marginTop:1,width:"60%",[`&:first-child${ed}`]:{margin:0}})),KC=h(()=>c.createElement(YC,null,c.createElement(Ua,null),c.createElement(Ua,{style:{width:"80%"}}),c.createElement(Ua,{style:{width:"30%"}}),c.createElement(Ua,{style:{width:"80%"}})),"SourceSkeleton"),XC=h(({isLoading:e,error:t,language:r,code:n,dark:o,format:a=!0,...i})=>{let{typography:s}=Qe();if(e)return c.createElement(KC,null);if(t)return c.createElement(mb,null,t);let l=c.createElement(WC,{bordered:!0,copyable:!0,format:a,language:r??"jsx",className:"docblock-source sb-unstyled",...i},n);if(typeof o>"u")return l;let u=o?Ii.dark:Ii.light;return c.createElement(Zc,{theme:Qc({...u,fontCode:s.fonts.mono,fontBase:s.fonts.base})},l)},"Source"),Be=h(e=>`& :where(${e}:not(.sb-anchor, .sb-unstyled, .sb-unstyled ${e}))`,"toGlobalSelector"),Qu=600,sj=R.h1(er,({theme:e})=>({color:e.color.defaultText,fontSize:e.typography.size.m3,fontWeight:e.typography.weight.bold,lineHeight:"32px",[`@media (min-width: ${Qu}px)`]:{fontSize:e.typography.size.l1,lineHeight:"36px",marginBottom:"16px"}})),lj=R.h2(er,({theme:e})=>({fontWeight:e.typography.weight.regular,fontSize:e.typography.size.s3,lineHeight:"20px",borderBottom:"none",marginBottom:15,[`@media (min-width: ${Qu}px)`]:{fontSize:e.typography.size.m1,lineHeight:"28px",marginBottom:24},color:de(.25,e.color.defaultText)})),uj=R.div(({theme:e})=>{let t={fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s3,margin:0,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch"},r={margin:"20px 0 8px",padding:0,cursor:"text",position:"relative",color:e.color.defaultText,"&:first-of-type":{marginTop:0,paddingTop:0},"&:hover a.anchor":{textDecoration:"none"},"& code":{fontSize:"inherit"}},n={lineHeight:1,margin:"0 2px",padding:"3px 5px",whiteSpace:"nowrap",borderRadius:3,fontSize:e.typography.size.s2-1,border:e.base==="light"?`1px solid ${e.color.mediumlight}`:`1px solid ${e.color.darker}`,color:e.base==="light"?de(.1,e.color.defaultText):de(.3,e.color.defaultText),backgroundColor:e.base==="light"?e.color.lighter:e.color.border};return{maxWidth:1e3,width:"100%",minWidth:0,[Be("a")]:{...t,fontSize:"inherit",lineHeight:"24px",color:e.color.secondary,textDecoration:"none","&.absent":{color:"#cc0000"},"&.anchor":{display:"block",paddingLeft:30,marginLeft:-30,cursor:"pointer",position:"absolute",top:0,left:0,bottom:0}},[Be("blockquote")]:{...t,margin:"16px 0",borderLeft:`4px solid ${e.color.medium}`,padding:"0 15px",color:e.color.dark,"& > :first-of-type":{marginTop:0},"& > :last-child":{marginBottom:0}},[Be("div")]:t,[Be("dl")]:{...t,margin:"16px 0",padding:0,"& dt":{fontSize:"14px",fontWeight:"bold",fontStyle:"italic",padding:0,margin:"16px 0 4px"},"& dt:first-of-type":{padding:0},"& dt > :first-of-type":{marginTop:0},"& dt > :last-child":{marginBottom:0},"& dd":{margin:"0 0 16px",padding:"0 15px"},"& dd > :first-of-type":{marginTop:0},"& dd > :last-child":{marginBottom:0}},[Be("h1")]:{...t,...r,fontSize:`${e.typography.size.l1}px`,fontWeight:e.typography.weight.bold},[Be("h2")]:{...t,...r,fontSize:`${e.typography.size.m2}px`,paddingBottom:4,borderBottom:`1px solid ${e.appBorderColor}`},[Be("h3")]:{...t,...r,fontSize:`${e.typography.size.m1}px`,fontWeight:e.typography.weight.bold},[Be("h4")]:{...t,...r,fontSize:`${e.typography.size.s3}px`},[Be("h5")]:{...t,...r,fontSize:`${e.typography.size.s2}px`},[Be("h6")]:{...t,...r,fontSize:`${e.typography.size.s2}px`,color:e.color.dark},[Be("hr")]:{border:"0 none",borderTop:`1px solid ${e.appBorderColor}`,height:4,padding:0},[Be("img")]:{maxWidth:"100%"},[Be("li")]:{...t,fontSize:e.typography.size.s2,color:e.color.defaultText,lineHeight:"24px","& + li":{marginTop:".25em"},"& ul, & ol":{marginTop:".25em",marginBottom:0},"& code":n},[Be("ol")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0}},[Be("p")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",color:e.color.defaultText,"& code":n},[Be("pre")]:{...t,fontFamily:e.typography.fonts.mono,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",lineHeight:"18px",padding:"11px 1rem",whiteSpace:"pre-wrap",color:"inherit",borderRadius:3,margin:"1rem 0","&:not(.prismjs)":{background:"transparent",border:"none",borderRadius:0,padding:0,margin:0},"& pre, &.prismjs":{padding:15,margin:0,whiteSpace:"pre-wrap",color:"inherit",fontSize:"13px",lineHeight:"19px",code:{color:"inherit",fontSize:"inherit"}},"& code":{whiteSpace:"pre"},"& code, & tt":{border:"none"}},[Be("span")]:{...t,"&.frame":{display:"block",overflow:"hidden","& > span":{border:`1px solid ${e.color.medium}`,display:"block",float:"left",overflow:"hidden",margin:"13px 0 0",padding:7,width:"auto"},"& span img":{display:"block",float:"left"},"& span span":{clear:"both",color:e.color.darkest,display:"block",padding:"5px 0 0"}},"&.align-center":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"center"},"& span img":{margin:"0 auto",textAlign:"center"}},"&.align-right":{display:"block",overflow:"hidden",clear:"both","& > span":{display:"block",overflow:"hidden",margin:"13px 0 0",textAlign:"right"},"& span img":{margin:0,textAlign:"right"}},"&.float-left":{display:"block",marginRight:13,overflow:"hidden",float:"left","& span":{margin:"13px 0 0"}},"&.float-right":{display:"block",marginLeft:13,overflow:"hidden",float:"right","& > span":{display:"block",overflow:"hidden",margin:"13px auto 0",textAlign:"right"}}},[Be("table")]:{...t,margin:"16px 0",fontSize:e.typography.size.s2,lineHeight:"24px",padding:0,borderCollapse:"collapse","& tr":{borderTop:`1px solid ${e.appBorderColor}`,backgroundColor:e.appContentBg,margin:0,padding:0},"& tr:nth-of-type(2n)":{backgroundColor:e.base==="dark"?e.color.darker:e.color.lighter},"& tr th":{fontWeight:"bold",color:e.color.defaultText,border:`1px solid ${e.appBorderColor}`,margin:0,padding:"6px 13px"},"& tr td":{border:`1px solid ${e.appBorderColor}`,color:e.color.defaultText,margin:0,padding:"6px 13px"},"& tr th :first-of-type, & tr td :first-of-type":{marginTop:0},"& tr th :last-child, & tr td :last-child":{marginBottom:0}},[Be("ul")]:{...t,margin:"16px 0",paddingLeft:30,"& :first-of-type":{marginTop:0},"& :last-child":{marginBottom:0},listStyle:"disc"}}}),cj=R.div(({theme:e})=>({background:e.background.content,display:"flex",flexDirection:"row-reverse",justifyContent:"center",padding:"4rem 20px",minHeight:"100vh",boxSizing:"border-box",gap:"3rem",[`@media (min-width: ${Qu}px)`]:{}})),mi=h(e=>({borderRadius:e.appBorderRadius,background:e.background.content,boxShadow:e.base==="light"?"rgba(0, 0, 0, 0.10) 0 1px 3px 0":"rgba(0, 0, 0, 0.20) 0 2px 5px 0",border:`1px solid ${e.appBorderColor}`}),"getBlockBackgroundStyle"),{window:Tj}=globalThis,JC=Lr({scale:1}),{PREVIEW_URL:Oj}=globalThis,Ij=R.strong(({theme:e})=>({color:e.color.orange})),ZC=R(Ai)({position:"absolute",left:0,right:0,top:0,transition:"transform .2s linear"}),QC=R.div({display:"flex",alignItems:"center",gap:4}),e5=R.div(({theme:e})=>({width:14,height:14,borderRadius:2,margin:"0 7px",backgroundColor:e.appBorderColor,animation:`${e.animation.glow} 1.5s ease-in-out infinite`})),t5=h(({isLoading:e,storyId:t,baseUrl:r,zoom:n,resetZoom:o,...a})=>c.createElement(ZC,{...a},c.createElement(QC,{key:"left"},e?[1,2,3].map(i=>c.createElement(e5,{key:i})):c.createElement(c.Fragment,null,c.createElement(ce,{key:"zoomin",onClick:i=>{i.preventDefault(),n(.8)},title:"Zoom in"},c.createElement(Yc,null)),c.createElement(ce,{key:"zoomout",onClick:i=>{i.preventDefault(),n(1.25)},title:"Zoom out"},c.createElement(Kc,null)),c.createElement(ce,{key:"zoomreset",onClick:i=>{i.preventDefault(),o()},title:"Reset zoom"},c.createElement(Xc,null))))),"Toolbar"),r5=R.div(({isColumn:e,columns:t,layout:r})=>({display:e||!t?"block":"flex",position:"relative",flexWrap:"wrap",overflow:"auto",flexDirection:e?"column":"row","& .innerZoomElementWrapper > *":e?{width:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"block"}:{maxWidth:r!=="fullscreen"?"calc(100% - 20px)":"100%",display:"inline-block"}}),({layout:e="padded",inline:t})=>e==="centered"||e==="padded"?{padding:t?"32px 22px":"0px","& .innerZoomElementWrapper > *":{width:"auto",border:"8px solid transparent!important"}}:{},({layout:e="padded",inline:t})=>e==="centered"&&t?{display:"flex",justifyContent:"center",justifyItems:"center",alignContent:"center",alignItems:"center"}:{},({columns:e})=>e&&e>1?{".innerZoomElementWrapper > *":{minWidth:`calc(100% / ${e} - 20px)`}}:{}),i0=R(XC)(({theme:e})=>({margin:0,borderTopLeftRadius:0,borderTopRightRadius:0,borderBottomLeftRadius:e.appBorderRadius,borderBottomRightRadius:e.appBorderRadius,border:"none",background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Nt(.05,e.background.content),color:e.color.lightest,button:{background:e.base==="light"?"rgba(0, 0, 0, 0.85)":Nt(.05,e.background.content)}})),n5=R.div(({theme:e,withSource:t,isExpanded:r})=>({position:"relative",overflow:"hidden",margin:"25px 0 40px",...mi(e),borderBottomLeftRadius:t&&r&&0,borderBottomRightRadius:t&&r&&0,borderBottomWidth:r&&0,"h3 + &":{marginTop:"16px"}}),({withToolbar:e})=>e&&{paddingTop:40}),o5=h((e,t,r)=>{switch(!0){case!!(e&&e.error):return{source:null,actionItem:{title:"No code available",className:"docblock-code-toggle docblock-code-toggle--disabled",disabled:!0,onClick:h(()=>r(!1),"onClick")}};case t:return{source:c.createElement(i0,{...e,dark:!0}),actionItem:{title:"Hide code",className:"docblock-code-toggle docblock-code-toggle--expanded",onClick:h(()=>r(!1),"onClick")}};default:return{source:c.createElement(i0,{...e,dark:!0}),actionItem:{title:"Show code",className:"docblock-code-toggle",onClick:h(()=>r(!0),"onClick")}}}},"getSource");function hb(e){if(po.count(e)===1){let t=e;if(t.props)return t.props.id}return null}h(hb,"getStoryId");var a5=R(t5)({position:"absolute",top:0,left:0,right:0,height:40}),i5=R.div({overflow:"hidden",position:"relative"}),s5=h(({isLoading:e,isColumn:t,columns:r,children:n,withSource:o,withToolbar:a=!1,isExpanded:i=!1,additionalActions:s,className:l,layout:u="padded",inline:d=!1,...m})=>{let[p,f]=z(i),{source:g,actionItem:y}=o5(o,p,f),[E,b]=z(1),x=[l].concat(["sbdocs","sbdocs-preview","sb-unstyled"]),S=o?[y]:[],[T,_]=z(s?[...s]:[]),O=[...S,...T],{window:k}=globalThis,B=Q(async L=>{let{createCopyToClipboardFunction:j}=await Promise.resolve().then(()=>(J(),wc));j()},[]),P=h(L=>{let j=k.getSelection();j&&j.type==="Range"||(L.preventDefault(),T.filter(U=>U.title==="Copied").length===0&&B(g?.props.code??"").then(()=>{_([...T,{title:"Copied",onClick:h(()=>{},"onClick")}]),k.setTimeout(()=>_(T.filter(U=>U.title!=="Copied")),1500)}))},"onCopyCapture");return c.createElement(n5,{withSource:o,withToolbar:a,...m,className:x.join(" ")},a&&c.createElement(a5,{isLoading:e,border:!0,zoom:L=>b(E*L),resetZoom:()=>b(1),storyId:hb(n),baseUrl:"./iframe.html"}),c.createElement(JC.Provider,{value:{scale:E}},c.createElement(i5,{className:"docs-story",onCopyCapture:o&&P},c.createElement(r5,{isColumn:t||!Array.isArray(n),columns:r,layout:u,inline:d},c.createElement(Ti.Element,{centered:u==="centered",scale:d?E:1},Array.isArray(n)?n.map((L,j)=>c.createElement("div",{key:j},L)):c.createElement("div",null,n))),c.createElement(Cn,{actionItems:O}))),o&&p&&g)},"Preview"),Pj=R(s5)(()=>({".docs-story":{paddingTop:32,paddingBottom:40}})),Vj=R.div(({theme:e})=>({marginRight:30,fontSize:`${e.typography.size.s1}px`,color:e.base==="light"?de(.4,e.color.defaultText):de(.6,e.color.defaultText)})),zj=R.div({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),Gj=R.div({display:"flex",flexDirection:"row",alignItems:"baseline","&:not(:last-child)":{marginBottom:"1rem"}}),Wj=R.div(er,({theme:e})=>({...mi(e),margin:"25px 0 40px",padding:"30px 20px"})),Qj=R.div(({theme:e})=>({fontWeight:e.typography.weight.bold,color:e.color.defaultText})),eM=R.div(({theme:e})=>({color:e.base==="light"?de(.2,e.color.defaultText):de(.6,e.color.defaultText)})),tM=R.div({flex:"0 0 30%",lineHeight:"20px",marginTop:5}),rM=R.div(({theme:e})=>({flex:1,textAlign:"center",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,lineHeight:1,overflow:"hidden",color:e.base==="light"?de(.4,e.color.defaultText):de(.6,e.color.defaultText),"> div":{display:"inline-block",overflow:"hidden",maxWidth:"100%",textOverflow:"ellipsis"},span:{display:"block",marginTop:2}})),nM=R.div({display:"flex",flexDirection:"row"}),oM=R.div(({background:e})=>({position:"relative",flex:1,"&::before":{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:e,content:'""'}})),aM=R.div(({theme:e})=>({...mi(e),display:"flex",flexDirection:"row",height:50,marginBottom:5,overflow:"hidden",backgroundColor:"white",backgroundImage:"repeating-linear-gradient(-45deg, #ccc, #ccc 1px, #fff 1px, #fff 16px)",backgroundClip:"padding-box"})),iM=R.div({display:"flex",flexDirection:"column",flex:1,position:"relative",marginBottom:30}),sM=R.div({flex:1,display:"flex",flexDirection:"row"}),lM=R.div({display:"flex",alignItems:"flex-start"}),uM=R.div({flex:"0 0 30%"}),cM=R.div({flex:1}),dM=R.div(({theme:e})=>({display:"flex",flexDirection:"row",alignItems:"center",paddingBottom:20,fontWeight:e.typography.weight.bold,color:e.base==="light"?de(.4,e.color.defaultText):de(.6,e.color.defaultText)})),pM=R.div(({theme:e})=>({fontSize:e.typography.size.s2,lineHeight:"20px",display:"flex",flexDirection:"column"})),bM=R.div(({theme:e})=>({fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s1,color:e.color.defaultText,marginLeft:10,lineHeight:1.2,display:"-webkit-box",overflow:"hidden",wordBreak:"break-word",textOverflow:"ellipsis",WebkitLineClamp:2,WebkitBoxOrient:"vertical"})),EM=R.div(({theme:e})=>({...mi(e),overflow:"hidden",height:40,width:40,display:"flex",alignItems:"center",justifyContent:"center",flex:"none","> img, > svg":{width:20,height:20}})),vM=R.div({display:"inline-flex",flexDirection:"row",alignItems:"center",width:"100%"}),AM=R.div({display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(140px, 1fr))",gridGap:"8px 16px",gridAutoFlow:"row dense",gridAutoRows:50}),OM=R.aside(()=>({width:"10rem","@media (max-width: 768px)":{display:"none"}})),IM=R.nav(({theme:e})=>({position:"fixed",bottom:0,top:0,width:"10rem",paddingTop:"4rem",paddingBottom:"2rem",overflowY:"auto",fontFamily:e.typography.fonts.base,fontSize:e.typography.size.s2,WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",WebkitOverflowScrolling:"touch","& *":{boxSizing:"border-box"},"& > .toc-wrapper > .toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`,".toc-list":{paddingLeft:0,borderLeft:`solid 2px ${e.color.mediumlight}`}}},"& .toc-list-item":{position:"relative",listStyleType:"none",marginLeft:20,paddingTop:3,paddingBottom:3},"& .toc-list-item::before":{content:'""',position:"absolute",height:"100%",top:0,left:0,transform:"translateX(calc(-2px - 20px))",borderLeft:`solid 2px ${e.color.mediumdark}`,opacity:0,transition:"opacity 0.2s"},"& .toc-list-item.is-active-li::before":{opacity:1},"& .toc-list-item > a":{color:e.color.defaultText,textDecoration:"none"},"& .toc-list-item.is-active-li > a":{fontWeight:600,color:e.color.secondary,textDecoration:"none"}})),RM=R.p(({theme:e})=>({fontWeight:600,fontSize:"0.875em",color:e.textColor,textTransform:"uppercase",marginBottom:10}));function mr(){return mr=Object.assign?Object.assign.bind():function(e){for(var t=1;t(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),u0={amp:"&",apos:"'",gt:">",lt:"<",nbsp:"\xA0",quot:"\u201C"},u5=["style","script"],c5=["src","href","data","formAction","srcDoc","action"],d5=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,p5=/mailto:/i,m5=/\n{2,}$/,fb=/^(\s*>[\s\S]*?)(?=\n\n|$)/,h5=/^ *> ?/gm,f5=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,g5=/^ {2,}\n/,y5=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,gb=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,yb=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,b5=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,E5=/^(?:\n *)*\n/,v5=/\r\n?/g,A5=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,x5=/^\[\^([^\]]+)]/,w5=/\f/g,S5=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,C5=/^\s*?\[(x|\s)\]/,bb=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Eb=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,vb=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,wu=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,D5=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Ab=/^)/,T5=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Su=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,k5=/^\{.*\}$/,O5=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,I5=/^<([^ >]+@[^ >]+)>/,R5=/^<([^ >]+:\/[^ >]+)>/,B5=/-([a-z])?/gi,xb=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,_5=/^\[([^\]]*)\]:\s+]+)>?\s*("([^"]*)")?/,F5=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,P5=/^\[([^\]]*)\] ?\[([^\]]*)\]/,N5=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,L5=/\t/g,j5=/(^ *\||\| *$)/g,M5=/^ *:-+: *$/,$5=/^ *:-+ *$/,q5=/^ *-+: *$/,hi="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",U5=new RegExp(`^([*_])\\1${hi}\\1\\1(?!\\1)`),H5=new RegExp(`^([*_])${hi}\\1(?!\\1)`),V5=new RegExp(`^(==)${hi}\\1`),z5=new RegExp(`^(~~)${hi}\\1`),G5=/^\\([^0-9A-Za-z\s])/,c0=/\\([^0-9A-Za-z\s])/g,W5=/^([\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[!])*)/,Y5=/^\n+/,K5=/^([ \t]*)/,X5=/\\([^\\])/g,J5=/(?:^|\n)( *)$/,ec="(?:\\d+\\.)",tc="(?:[*+-])";function rc(e){return"( *)("+(e===1?ec:tc)+") +"}h(rc,"de");var wb=rc(1),Sb=rc(2);function nc(e){return new RegExp("^"+(e===1?wb:Sb))}h(nc,"fe");var Z5=nc(1),Q5=nc(2);function oc(e){return new RegExp("^"+(e===1?wb:Sb)+"[^\\n]*(?:\\n(?!\\1"+(e===1?ec:tc)+" )[^\\n]*)*(\\n|$)","gm")}h(oc,"ge");var eD=oc(1),tD=oc(2);function ac(e){let t=e===1?ec:tc;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}h(ac,"xe");var Cb=ac(1),Db=ac(2);function Cu(e,t){let r=t===1,n=r?Cb:Db,o=r?eD:tD,a=r?Z5:Q5;return{match:Br(function(i,s){let l=J5.exec(s.prevCapture);return l&&(s.list||!s.inline&&!s.simple)?n.exec(i=l[1]+i):null}),order:1,parse(i,s,l){let u=r?+i[2]:void 0,d=i[0].replace(m5,` `).match(o),m=!1;return{items:d.map(function(p,f){let g=a.exec(p)[0].length,y=new RegExp("^ {1,"+g+"}","gm"),E=p.replace(y,"").replace(a,""),b=f===d.length-1,x=E.indexOf(` `)!==-1||b&&m;m=x;let S=l.inline,T=l.list,_;l.list=!0,x?(l.inline=!1,_=wn(E)+` `):(l.inline=!0,_=wn(E));let O=s(_,l);return l.inline=S,l.list=T,O}),ordered:r,start:u}},render:h((i,s,l)=>e(i.ordered?"ol":"ul",{key:l.key,start:i.type===K.orderedList?i.start:void 0},i.items.map(function(u,d){return e("li",{key:d},s(u,l))})),"render")}}h(Cu,"Ce");var rD=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),nD=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Tb=[fb,gb,yb,bb,vb,Eb,xb,Cb,Db],oD=[...Tb,/^[^\n]+(?: \n|\n{2,})/,wu,Ab,Su];function wn(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}h(wn,"ze");function yn(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}h(yn,"Le");function kb(e){return q5.test(e)?"right":M5.test(e)?"center":$5.test(e)?"left":null}h(kb,"Ae");function Du(e,t,r,n){let o=r.inTable;r.inTable=!0;let a=[[]],i="";function s(){if(!i)return;let l=a[a.length-1];l.push.apply(l,t(i,r)),i=""}return h(s,"a"),e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((l,u,d)=>{l.trim()==="|"&&(s(),n)?u!==0&&u!==d.length-1&&a.push([]):i+=l}),s(),r.inTable=o,a}h(Du,"Oe");function Ob(e,t,r){r.inline=!0;let n=e[2]?e[2].replace(j5,"").split("|").map(kb):[],o=e[3]?(function(i,s,l){return i.trim().split(` `).map(function(u){return Du(u,s,l,!0)})})(e[3],t,r):[],a=Du(e[1],t,r,!!o.length);return r.inline=!1,o.length?{align:n,cells:o,header:a,type:K.table}:{children:a,type:K.paragraph}}h(Ob,"Te");function Tu(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}h(Tu,"Be");function Br(e){return e.inline=1,e}h(Br,"Me");function Yt(e){return Br(function(t,r){return r.inline?e.exec(t):null})}h(Yt,"Re");function Kt(e){return Br(function(t,r){return r.inline||r.simple?e.exec(t):null})}h(Kt,"Ie");function Ft(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}h(Ft,"De");function bn(e){return Br(function(t){return e.exec(t)})}h(bn,"Ue");function Ib(e,t){if(t.inline||t.simple)return null;let r="";e.split(` `).every(o=>(o+=` `,!Tb.some(a=>a.test(o))&&(r+=o,!!o.trim())));let n=wn(r);return n==""?null:[r,,n]}h(Ib,"Ne");var aD=/(javascript|vbscript|data(?!:image)):/i;function Rb(e){try{let t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(aD.test(t))return null}catch{return null}return e}h(Rb,"He");function ku(e){return e.replace(X5,"$1")}h(ku,"Pe");function eo(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;let a=e(t,r);return r.inline=n,r.simple=o,a}h(eo,"_e");function Bb(e,t,r){let n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;let a=e(t,r);return r.inline=n,r.simple=o,a}h(Bb,"Fe");function _b(e,t,r){let n=r.inline||!1;r.inline=!1;let o=e(t,r);return r.inline=n,o}h(_b,"We");var ou=h((e,t,r)=>({children:eo(t,e[2],r)}),"Ge");function Xa(){return{}}h(Xa,"Ze");function Ja(){return null}h(Ja,"qe");function Fb(...e){return e.filter(Boolean).join(" ")}h(Fb,"Qe");function Za(e,t,r){let n=e,o=t.split(".");for(;o.length&&(n=n[o[0]],n!==void 0);)o.shift();return n||r}h(Za,"Ve");function Pb(e="",t={}){function r(p,f,...g){let y=Za(t.overrides,`${p}.props`,{});return t.createElement((function(E,b){let x=Za(b,E);return x?typeof x=="function"||typeof x=="object"&&"render"in x?x:Za(b,`${E}.component`,E):E})(p,t.overrides),mr({},f,y,{className:Fb(f?.className,y.className)||void 0}),...g)}h(r,"u");function n(p){p=p.replace(S5,"");let f=!1;t.forceInline?f=!0:t.forceBlock||(f=N5.test(p)===!1);let g=u(l(f?p:`${wn(p).replace(Y5,"")} `,{inline:f}));for(;typeof g[g.length-1]=="string"&&!g[g.length-1].trim();)g.pop();if(t.wrapper===null)return g;let y=t.wrapper||(f?"span":"div"),E;if(g.length>1||t.forceWrapper)E=g;else{if(g.length===1)return E=g[0],typeof E=="string"?r("span",{key:"outer"},E):E;E=null}return t.createElement(y,{key:"outer"},E)}h(n,"Z");function o(p,f){let g=f.match(d5);return g?g.reduce(function(y,E){let b=E.indexOf("=");if(b!==-1){let x=(function(O){return O.indexOf("-")!==-1&&O.match(T5)===null&&(O=O.replace(B5,function(k,B){return B.toUpperCase()})),O})(E.slice(0,b)).trim(),S=(function(O){let k=O[0];return(k==='"'||k==="'")&&O.length>=2&&O[O.length-1]===k?O.slice(1,-1):O})(E.slice(b+1).trim()),T=l0[x]||x;if(T==="ref")return y;let _=y[T]=(function(O,k,B,P){return k==="style"?(function(L){let j=[],U="",$=!1,v=!1,A="";if(!L)return j;for(let N=0;N0){let V=M.slice(0,q).trim(),G=M.slice(q+1).trim();j.push([V,G])}}U=""}}let D=U.trim();if(D){let N=D.indexOf(":");if(N>0){let F=D.slice(0,N).trim(),M=D.slice(N+1).trim();j.push([F,M])}}return j})(B).reduce(function(L,[j,U]){return L[j.replace(/(-[a-z])/g,$=>$[1].toUpperCase())]=P(U,O,j),L},{}):c5.indexOf(k)!==-1?P(B,O,k):(B.match(k5)&&(B=B.slice(1,B.length-1)),B==="true"||B!=="false"&&B)})(p,x,S,t.sanitizer);typeof _=="string"&&(wu.test(_)||Su.test(_))&&(y[T]=n(_.trim()))}else E!=="style"&&(y[l0[E]||E]=!0);return y},{}):null}h(o,"q"),t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||Rb,t.slugify=t.slugify||yn,t.namedCodesToUnicode=t.namedCodesToUnicode?mr({},u0,t.namedCodesToUnicode):u0,t.createElement=t.createElement||Y;let a=[],i={},s={[K.blockQuote]:{match:Ft(fb),order:1,parse(p,f,g){let[,y,E]=p[0].replace(h5,"").match(f5);return{alert:y,children:f(E,g)}},render(p,f,g){let y={key:g.key};return p.alert&&(y.className="markdown-alert-"+t.slugify(p.alert.toLowerCase(),yn),p.children.unshift({attrs:{},children:[{type:K.text,text:p.alert}],noInnerParse:!0,type:K.htmlBlock,tag:"header"})),r("blockquote",y,f(p.children,g))}},[K.breakLine]:{match:bn(g5),order:1,parse:Xa,render:h((p,f,g)=>r("br",{key:g.key}),"render")},[K.breakThematic]:{match:Ft(y5),order:1,parse:Xa,render:h((p,f,g)=>r("hr",{key:g.key}),"render")},[K.codeBlock]:{match:Ft(yb),order:0,parse:h(p=>({lang:void 0,text:wn(p[0].replace(/^ {4}/gm,"")).replace(c0,"$1")}),"parse"),render:h((p,f,g)=>r("pre",{key:g.key},r("code",mr({},p.attrs,{className:p.lang?`lang-${p.lang}`:""}),p.text)),"render")},[K.codeFenced]:{match:Ft(gb),order:0,parse:h(p=>({attrs:o("code",p[3]||""),lang:p[2]||void 0,text:p[4],type:K.codeBlock}),"parse")},[K.codeInline]:{match:Kt(b5),order:3,parse:h(p=>({text:p[2].replace(c0,"$1")}),"parse"),render:h((p,f,g)=>r("code",{key:g.key},p.text),"render")},[K.footnote]:{match:Ft(A5),order:0,parse:h(p=>(a.push({footnote:p[2],identifier:p[1]}),{}),"parse"),render:Ja},[K.footnoteReference]:{match:Yt(x5),order:1,parse:h(p=>({target:`#${t.slugify(p[1],yn)}`,text:p[1]}),"parse"),render:h((p,f,g)=>r("a",{key:g.key,href:t.sanitizer(p.target,"a","href")},r("sup",{key:g.key},p.text)),"render")},[K.gfmTask]:{match:Yt(C5),order:1,parse:h(p=>({completed:p[1].toLowerCase()==="x"}),"parse"),render:h((p,f,g)=>r("input",{checked:p.completed,key:g.key,readOnly:!0,type:"checkbox"}),"render")},[K.heading]:{match:Ft(t.enforceAtxHeadings?Eb:bb),order:1,parse:h((p,f,g)=>({children:eo(f,p[2],g),id:t.slugify(p[2],yn),level:p[1].length}),"parse"),render:h((p,f,g)=>r(`h${p.level}`,{id:p.id,key:g.key},f(p.children,g)),"render")},[K.headingSetext]:{match:Ft(vb),order:0,parse:h((p,f,g)=>({children:eo(f,p[1],g),level:p[2]==="="?1:2,type:K.heading}),"parse")},[K.htmlBlock]:{match:bn(wu),order:1,parse(p,f,g){let[,y]=p[3].match(K5),E=new RegExp(`^${y}`,"gm"),b=p[3].replace(E,""),x=(S=b,oD.some(B=>B.test(S))?_b:eo);var S;let T=p[1].toLowerCase(),_=u5.indexOf(T)!==-1,O=(_?T:p[1]).trim(),k={attrs:o(O,p[2]),noInnerParse:_,tag:O};return g.inAnchor=g.inAnchor||T==="a",_?k.text=p[3]:k.children=x(f,b,g),g.inAnchor=!1,k},render:h((p,f,g)=>r(p.tag,mr({key:g.key},p.attrs),p.text||(p.children?f(p.children,g):"")),"render")},[K.htmlSelfClosing]:{match:bn(Su),order:1,parse(p){let f=p[1].trim();return{attrs:o(f,p[2]||""),tag:f}},render:h((p,f,g)=>r(p.tag,mr({},p.attrs,{key:g.key})),"render")},[K.htmlComment]:{match:bn(Ab),order:1,parse:h(()=>({}),"parse"),render:Ja},[K.image]:{match:Kt(nD),order:1,parse:h(p=>({alt:p[1],target:ku(p[2]),title:p[3]}),"parse"),render:h((p,f,g)=>r("img",{key:g.key,alt:p.alt||void 0,title:p.title||void 0,src:t.sanitizer(p.target,"img","src")}),"render")},[K.link]:{match:Yt(rD),order:3,parse:h((p,f,g)=>({children:Bb(f,p[1],g),target:ku(p[2]),title:p[3]}),"parse"),render:h((p,f,g)=>r("a",{key:g.key,href:t.sanitizer(p.target,"a","href"),title:p.title},f(p.children,g)),"render")},[K.linkAngleBraceStyleDetector]:{match:Yt(R5),order:0,parse:h(p=>({children:[{text:p[1],type:K.text}],target:p[1],type:K.link}),"parse")},[K.linkBareUrlDetector]:{match:Br((p,f)=>f.inAnchor||t.disableAutoLink?null:Yt(O5)(p,f)),order:0,parse:h(p=>({children:[{text:p[1],type:K.text}],target:p[1],title:void 0,type:K.link}),"parse")},[K.linkMailtoDetector]:{match:Yt(I5),order:0,parse(p){let f=p[1],g=p[1];return p5.test(g)||(g="mailto:"+g),{children:[{text:f.replace("mailto:",""),type:K.text}],target:g,type:K.link}}},[K.orderedList]:Cu(r,1),[K.unorderedList]:Cu(r,2),[K.newlineCoalescer]:{match:Ft(E5),order:3,parse:Xa,render:h(()=>` `,"render")},[K.paragraph]:{match:Br(Ib),order:3,parse:ou,render:h((p,f,g)=>r("p",{key:g.key},f(p.children,g)),"render")},[K.ref]:{match:Yt(_5),order:0,parse:h(p=>(i[p[1]]={target:p[2],title:p[4]},{}),"parse"),render:Ja},[K.refImage]:{match:Kt(F5),order:0,parse:h(p=>({alt:p[1]||void 0,ref:p[2]}),"parse"),render:h((p,f,g)=>i[p.ref]?r("img",{key:g.key,alt:p.alt,src:t.sanitizer(i[p.ref].target,"img","src"),title:i[p.ref].title}):null,"render")},[K.refLink]:{match:Yt(P5),order:0,parse:h((p,f,g)=>({children:f(p[1],g),fallbackChildren:p[0],ref:p[2]}),"parse"),render:h((p,f,g)=>i[p.ref]?r("a",{key:g.key,href:t.sanitizer(i[p.ref].target,"a","href"),title:i[p.ref].title},f(p.children,g)):r("span",{key:g.key},p.fallbackChildren),"render")},[K.table]:{match:Ft(xb),order:1,parse:Ob,render(p,f,g){let y=p;return r("table",{key:g.key},r("thead",null,r("tr",null,y.header.map(function(E,b){return r("th",{key:b,style:Tu(y,b)},f(E,g))}))),r("tbody",null,y.cells.map(function(E,b){return r("tr",{key:b},E.map(function(x,S){return r("td",{key:S,style:Tu(y,S)},f(x,g))}))})))}},[K.text]:{match:bn(W5),order:4,parse:h(p=>({text:p[0].replace(D5,(f,g)=>t.namedCodesToUnicode[g]?t.namedCodesToUnicode[g]:f)}),"parse"),render:h(p=>p.text,"render")},[K.textBolded]:{match:Kt(U5),order:2,parse:h((p,f,g)=>({children:f(p[2],g)}),"parse"),render:h((p,f,g)=>r("strong",{key:g.key},f(p.children,g)),"render")},[K.textEmphasized]:{match:Kt(H5),order:3,parse:h((p,f,g)=>({children:f(p[2],g)}),"parse"),render:h((p,f,g)=>r("em",{key:g.key},f(p.children,g)),"render")},[K.textEscaped]:{match:Kt(G5),order:1,parse:h(p=>({text:p[1],type:K.text}),"parse")},[K.textMarked]:{match:Kt(V5),order:3,parse:ou,render:h((p,f,g)=>r("mark",{key:g.key},f(p.children,g)),"render")},[K.textStrikethroughed]:{match:Kt(z5),order:3,parse:ou,render:h((p,f,g)=>r("del",{key:g.key},f(p.children,g)),"render")}};t.disableParsingRawHTML===!0&&(delete s[K.htmlBlock],delete s[K.htmlSelfClosing]);let l=(function(p){let f=Object.keys(p);function g(y,E){let b,x,S=[],T="",_="";for(E.prevCapture=E.prevCapture||"";y;){let O=0;for(;Ob(g,y,E),g,y,E):b(g,y,E)}})(s,t.renderRule),h(function p(f,g={}){if(Array.isArray(f)){let y=g.key,E=[],b=!1;for(let x=0;x{let{children:t="",options:r}=e,n=(function(o,a){if(o==null)return{};var i,s,l={},u=Object.keys(o);for(s=0;s=0||(l[i]=o[i]);return l})(e,l5);return Pe(Pb(t,r),n)},"default");Ot();var sD=R.label(({theme:e})=>({lineHeight:"18px",alignItems:"center",marginBottom:8,display:"inline-block",position:"relative",whiteSpace:"nowrap",background:e.boolean.background,borderRadius:"3em",padding:1,'&[aria-disabled="true"]':{opacity:.5,input:{cursor:"not-allowed"}},input:{appearance:"none",width:"100%",height:"100%",position:"absolute",left:0,top:0,margin:0,padding:0,border:"none",background:"transparent",cursor:"pointer",borderRadius:"3em","&:focus":{outline:"none",boxShadow:`${e.color.secondary} 0 0 0 1px inset !important`},"@media (forced-colors: active)":{"&:focus":{outline:"1px solid highlight"}}},span:{textAlign:"center",fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:"1",cursor:"pointer",display:"inline-block",padding:"7px 15px",transition:"all 100ms ease-out",userSelect:"none",borderRadius:"3em",color:de(.5,e.color.defaultText),background:"transparent","&:hover":{boxShadow:`${Zn(.3,e.appBorderColor)} 0 0 0 1px inset`},"&:active":{boxShadow:`${Zn(.05,e.appBorderColor)} 0 0 0 2px inset`,color:Zn(1,e.appBorderColor)},"&:first-of-type":{paddingRight:8},"&:last-of-type":{paddingLeft:8}},"input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type":{background:e.boolean.selectedBackground,boxShadow:e.base==="light"?`${Zn(.1,e.appBorderColor)} 0 0 2px`:`${e.appBorderColor} 0 0 0 1px`,color:e.color.defaultText,padding:"7px 15px","@media (forced-colors: active)":{textDecoration:"underline"}}})),lD=h(e=>e==="true","parse"),uD=h(({name:e,value:t,onChange:r,onBlur:n,onFocus:o,argType:a})=>{let i=Q(()=>r(!1),[r]),s=!!a?.table?.readonly;if(t===void 0)return c.createElement(Je,{variant:"outline",size:"medium",id:so(e),onClick:i,disabled:s},"Set boolean");let l=mt(e),u=typeof t=="string"?lD(t):t;return c.createElement(sD,{"aria-disabled":s,htmlFor:l,"aria-label":e},c.createElement("input",{id:l,type:"checkbox",onChange:d=>r(d.target.checked),checked:u,role:"switch",disabled:s,name:e,onBlur:n,onFocus:o}),c.createElement("span",{"aria-hidden":"true"},"False"),c.createElement("span",{"aria-hidden":"true"},"True"))},"BooleanControl");Ot();var cD=h(e=>{let[t,r,n]=e.split("-"),o=new Date;return o.setFullYear(parseInt(t,10),parseInt(r,10)-1,parseInt(n,10)),o},"parseDate"),dD=h(e=>{let[t,r]=e.split(":"),n=new Date;return n.setHours(parseInt(t,10)),n.setMinutes(parseInt(r,10)),n},"parseTime"),pD=h(e=>{let t=new Date(e),r=`000${t.getFullYear()}`.slice(-4),n=`0${t.getMonth()+1}`.slice(-2),o=`0${t.getDate()}`.slice(-2);return`${r}-${n}-${o}`},"formatDate"),mD=h(e=>{let t=new Date(e),r=`0${t.getHours()}`.slice(-2),n=`0${t.getMinutes()}`.slice(-2);return`${r}:${n}`},"formatTime"),d0=R($e.Input)(({readOnly:e})=>({opacity:e?.5:1})),hD=R.div(({theme:e})=>({flex:1,display:"flex",input:{marginLeft:10,flex:1,height:32,"&::-webkit-calendar-picker-indicator":{opacity:.5,height:12,filter:e.base==="light"?void 0:"invert(1)"}},"input:first-of-type":{marginLeft:0,flexGrow:4},"input:last-of-type":{flexGrow:3}})),fD=h(({name:e,value:t,onChange:r,onFocus:n,onBlur:o,argType:a})=>{let[i,s]=z(!0),l=ye(),u=ye(),d=!!a?.table?.readonly;X(()=>{i!==!1&&(l&&l.current&&(l.current.value=t?pD(t):""),u&&u.current&&(u.current.value=t?mD(t):""))},[t]);let m=h(g=>{if(!g.target.value)return r();let y=cD(g.target.value),E=new Date(t??"");E.setFullYear(y.getFullYear(),y.getMonth(),y.getDate());let b=E.getTime();b&&r(b),s(!!b)},"onDateChange"),p=h(g=>{if(!g.target.value)return r();let y=dD(g.target.value),E=new Date(t??"");E.setHours(y.getHours()),E.setMinutes(y.getMinutes());let b=E.getTime();b&&r(b),s(!!b)},"onTimeChange"),f=mt(e);return c.createElement(hD,null,c.createElement(d0,{type:"date",max:"9999-12-31",ref:l,id:`${f}-date`,name:`${f}-date`,readOnly:d,onChange:m,onFocus:n,onBlur:o}),c.createElement(d0,{type:"time",id:`${f}-time`,name:`${f}-time`,ref:u,onChange:p,readOnly:d,onFocus:n,onBlur:o}),i?null:c.createElement("div",null,"invalid"))},"DateControl");Ot();var gD=R.label({display:"flex"}),yD=h(e=>{let t=parseFloat(e);return Number.isNaN(t)?void 0:t},"parse"),bD=R($e.Input)(({readOnly:e})=>({opacity:e?.5:1})),ED=h(({name:e,value:t,onChange:r,min:n,max:o,step:a,onBlur:i,onFocus:s,argType:l})=>{let[u,d]=z(typeof t=="number"?t:""),[m,p]=z(!1),[f,g]=z(null),y=!!l?.table?.readonly,E=Q(S=>{d(S.target.value);let T=parseFloat(S.target.value);Number.isNaN(T)?g(new Error(`'${S.target.value}' is not a number`)):(r(T),g(null))},[r,g]),b=Q(()=>{d("0"),r(0),p(!0)},[p]),x=ye(null);return X(()=>{m&&x.current&&x.current.select()},[m]),X(()=>{let S=typeof t=="number"?t:"";u!==S&&d(S)},[t]),t===void 0?c.createElement(Je,{variant:"outline",size:"medium",id:so(e),onClick:b,disabled:y},"Set number"):c.createElement(gD,null,c.createElement(bD,{ref:x,id:mt(e),type:"number",onChange:E,size:"flex",placeholder:"Edit number...",value:u,valid:f?"error":void 0,autoFocus:m,readOnly:y,name:e,min:n,max:o,step:a,onFocus:s,onBlur:i}))},"NumberControl");Ot();var Nb=h((e,t)=>{let r=t&&Object.entries(t).find(([n,o])=>o===e);return r?r[0]:void 0},"selectedKey"),Ou=h((e,t)=>e&&t?Object.entries(t).filter(r=>e.includes(r[1])).map(r=>r[0]):[],"selectedKeys"),Lb=h((e,t)=>e&&t&&e.map(r=>t[r]),"selectedValues"),vD=R.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),AD=R.span({"[aria-readonly=true] &":{opacity:.5}}),xD=R.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),p0=h(({name:e,options:t,value:r,onChange:n,isInline:o,argType:a})=>{if(!t)return Z.warn(`Checkbox with no options: ${e}`),c.createElement(c.Fragment,null,"-");let i=Ou(r||[],t),[s,l]=z(i),u=!!a?.table?.readonly,d=h(p=>{let f=p.target.value,g=[...s];g.includes(f)?g.splice(g.indexOf(f),1):g.push(f),n(Lb(g,t)),l(g)},"handleChange");X(()=>{l(Ou(r||[],t))},[r]);let m=mt(e);return c.createElement(vD,{"aria-readonly":u,isInline:o},Object.keys(t).map((p,f)=>{let g=`${m}-${f}`;return c.createElement(xD,{key:g,htmlFor:g},c.createElement("input",{type:"checkbox",disabled:u,id:g,name:g,value:p,onChange:d,checked:s?.includes(p)}),c.createElement(AD,null,p))}))},"CheckboxControl");Ot();var wD=R.div(({isInline:e})=>e?{display:"flex",flexWrap:"wrap",alignItems:"flex-start",label:{display:"inline-flex",marginRight:15}}:{label:{display:"flex"}},e=>{if(e["aria-readonly"]==="true")return{input:{cursor:"not-allowed"}}}),SD=R.span({"[aria-readonly=true] &":{opacity:.5}}),CD=R.label({lineHeight:"20px",alignItems:"center",marginBottom:8,"&:last-child":{marginBottom:0},input:{margin:0,marginRight:6}}),m0=h(({name:e,options:t,value:r,onChange:n,isInline:o,argType:a})=>{if(!t)return Z.warn(`Radio with no options: ${e}`),c.createElement(c.Fragment,null,"-");let i=Nb(r,t),s=mt(e),l=!!a?.table?.readonly;return c.createElement(wD,{"aria-readonly":l,isInline:o},Object.keys(t).map((u,d)=>{let m=`${s}-${d}`;return c.createElement(CD,{key:m,htmlFor:m},c.createElement("input",{type:"radio",id:m,name:s,disabled:l,value:u,onChange:p=>n(t[p.currentTarget.value]),checked:u===i}),c.createElement(SD,null,u))}))},"RadioControl");Ot();var DD={appearance:"none",border:"0 none",boxSizing:"inherit",display:" block",margin:" 0",background:"transparent",padding:0,fontSize:"inherit",position:"relative"},jb=R.select(DD,({theme:e})=>({boxSizing:"border-box",position:"relative",padding:"6px 10px",width:"100%",color:e.input.color||"inherit",background:e.input.background,borderRadius:e.input.borderRadius,boxShadow:`${e.input.border} 0 0 0 1px inset`,fontSize:e.typography.size.s2-1,lineHeight:"20px","&:focus":{boxShadow:`${e.color.secondary} 0 0 0 1px inset`,outline:"none"},"&[disabled]":{cursor:"not-allowed",opacity:.5},"::placeholder":{color:e.textMutedColor},"&[multiple]":{overflow:"auto",padding:0,option:{display:"block",padding:"6px 10px",marginLeft:1,marginRight:1}}})),Mb=R.span(({theme:e})=>({display:"inline-block",lineHeight:"normal",overflow:"hidden",position:"relative",verticalAlign:"top",width:"100%",svg:{position:"absolute",zIndex:1,pointerEvents:"none",height:"12px",marginTop:"-6px",right:"12px",top:"50%",fill:e.textMutedColor,path:{fill:e.textMutedColor}}})),h0="Choose option...",TD=h(({name:e,value:t,options:r,onChange:n,argType:o})=>{let a=h(u=>{n(r[u.currentTarget.value])},"handleChange"),i=Nb(t,r)||h0,s=mt(e),l=!!o?.table?.readonly;return c.createElement(Mb,null,c.createElement(Eo,null),c.createElement(jb,{disabled:l,id:s,value:i,onChange:a},c.createElement("option",{key:"no-selection",disabled:!0},h0),Object.keys(r).map(u=>c.createElement("option",{key:u,value:u},u))))},"SingleSelect"),kD=h(({name:e,value:t,options:r,onChange:n,argType:o})=>{let a=h(u=>{let d=Array.from(u.currentTarget.options).filter(m=>m.selected).map(m=>m.value);n(Lb(d,r))},"handleChange"),i=Ou(t,r),s=mt(e),l=!!o?.table?.readonly;return c.createElement(Mb,null,c.createElement(jb,{disabled:l,id:s,multiple:!0,value:i,onChange:a},Object.keys(r).map(u=>c.createElement("option",{key:u,value:u},u))))},"MultiSelect"),f0=h(e=>{let{name:t,options:r}=e;return r?e.isMulti?c.createElement(kD,{...e}):c.createElement(TD,{...e}):(Z.warn(`Select with no options: ${t}`),c.createElement(c.Fragment,null,"-"))},"SelectControl"),OD=h((e,t)=>Array.isArray(e)?e.reduce((r,n)=>(r[t?.[n]||String(n)]=n,r),{}):e,"normalizeOptions"),ID={check:p0,"inline-check":p0,radio:m0,"inline-radio":m0,select:f0,"multi-select":f0},fn=h(e=>{let{type:t="select",labels:r,argType:n}=e,o={...e,argType:n,options:n?OD(n.options,r):{},isInline:t.includes("inline"),isMulti:t.includes("multi")},a=ID[t];if(a)return c.createElement(a,{...o});throw new Error(`Unknown options type: ${t}`)},"OptionsControl");pi();Ot();var RD=R.div(({theme:e})=>({position:"relative",":hover":{"& > .rejt-accordion-button::after":{background:e.color.secondary},"& > .rejt-accordion-region > :is(.rejt-plus-menu, .rejt-minus-menu)":{opacity:1}}})),BD=R.button(({theme:e})=>({padding:0,background:"transparent",border:"none",marginRight:"3px",lineHeight:"22px",color:e.color.secondary,"::after":{content:'""',position:"absolute",top:0,display:"block",width:"100%",marginLeft:"-1rem",height:"22px",background:"transparent",borderRadius:4,transition:"background 0.2s",opacity:.1,paddingRight:"20px"},"::before":{content:'""',position:"absolute"},'&[aria-expanded="true"]::before':{left:-10,top:10,borderTop:"3px solid rgba(153,153,153,0.6)",borderLeft:"3px solid transparent",borderRight:"3px solid transparent"},'&[aria-expanded="false"]::before':{left:-8,top:8,borderTop:"3px solid transparent",borderBottom:"3px solid transparent",borderLeft:"3px solid rgba(153,153,153,0.6)"}})),_D=R.div({display:"inline"});function ic({children:e,name:t,collapsed:r,keyPath:n,deep:o,...a}){let i=`${n.at(-1)??"root"}-${t}-${o}`,s={trigger:`${i}-trigger`,region:`${i}-region`},l=n.length>0?"li":"div";return c.createElement(RD,{as:l},c.createElement(BD,{type:"button","aria-expanded":!r,id:s.trigger,"aria-controls":s.region,className:"rejt-accordion-button",...a},t," :"),c.createElement(_D,{role:"region",id:s.region,"aria-labelledby":s.trigger,className:"rejt-accordion-region"},e))}h(ic,"JsonNodeAccordion");var FD="Error",PD="Object",ND="Array",LD="String",jD="Number",MD="Boolean",$D="Date",qD="Null",UD="Undefined",HD="Function",VD="Symbol",$b="ADD_DELTA_TYPE",qb="REMOVE_DELTA_TYPE",Ub="UPDATE_DELTA_TYPE",sc="value",zD="key";function hr(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)&&typeof e[Symbol.iterator]=="function"?"Iterable":Object.prototype.toString.call(e).slice(8,-1)}h(hr,"getObjectType");function lc(e,t){let r=hr(e),n=hr(t);return(r==="Function"||n==="Function")&&n!==r}h(lc,"isComponentWillChange");var Hb=class extends Et{constructor(t){super(t),this.state={inputRefKey:null,inputRefValue:null},this.refInputValue=this.refInputValue.bind(this),this.refInputKey=this.refInputKey.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onSubmit=this.onSubmit.bind(this)}componentDidMount(){let{inputRefKey:t,inputRefValue:r}=this.state,{onlyValue:n}=this.props;t&&typeof t.focus=="function"&&t.focus(),n&&r&&typeof r.focus=="function"&&r.focus()}onKeydown(t){if(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||t.repeat)return;let{inputRefKey:r,inputRefValue:n}=this.state,{addButtonElement:o,handleCancel:a}=this.props;[r,n,o].some(i=>i===t.target)&&((t.code==="Enter"||t.key==="Enter")&&(t.preventDefault(),this.onSubmit()),(t.code==="Escape"||t.key==="Escape")&&(t.preventDefault(),a()))}onSubmit(){let{handleAdd:t,onlyValue:r,onSubmitValueParser:n,keyPath:o,deep:a}=this.props,{inputRefKey:i,inputRefValue:s}=this.state,l={};if(!r){if(!i.value)return;l.key=i.value}l.newValue=n(!1,o,a,l.key,s.value),t(l)}refInputKey(t){this.state.inputRefKey=t}refInputValue(t){this.state.inputRefValue=t}render(){let{handleCancel:t,onlyValue:r,addButtonElement:n,cancelButtonElement:o,inputElementGenerator:a,keyPath:i,deep:s}=this.props,l=n&&Pe(n,{onClick:this.onSubmit}),u=o&&Pe(o,{onClick:t}),d=a(sc,i,s),m=Pe(d,{placeholder:"Value",ref:this.refInputValue,onKeyDown:this.onKeydown}),p=null;if(!r){let f=a(zD,i,s);p=Pe(f,{placeholder:"Key",ref:this.refInputKey,onKeyDown:this.onKeydown})}return c.createElement("span",{className:"rejt-add-value-node"},p,m,l,u)}};h(Hb,"JsonAddValue");var uc=Hb;uc.defaultProps={onlyValue:!1,addButtonElement:c.createElement("button",null,"+"),cancelButtonElement:c.createElement("button",null,"c")};var Vb=class extends Et{constructor(t){super(t);let r=[...t.keyPath||[],t.name];this.state={data:t.data,name:t.name,keyPath:r??[],deep:t.deep??0,nextDeep:(t.deep??0)+1,collapsed:t.isCollapsed(r,t.deep??0,t.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveItem=this.handleRemoveItem.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(t,r){return t.data!==r.data?{data:t.data}:null}onChildUpdate(t,r){let{data:n,keyPath:o=[]}=this.state;n[t]=r,this.setState({data:n});let{onUpdate:a}=this.props,i=o.length;a(o[i-1],n)}handleAddMode(){this.setState({addFormVisible:!0})}handleCollapseMode(){this.setState(t=>({collapsed:!t.collapsed}))}handleRemoveItem(t){return()=>{let{beforeRemoveAction:r,logger:n}=this.props,{data:o,keyPath:a,nextDeep:i}=this.state,s=o[t];(r||Promise.resolve.bind(Promise))(t,a,i,s).then(()=>{let l={keyPath:a,deep:i,key:t,oldValue:s,type:qb};o.splice(t,1),this.setState({data:o});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(a[a.length-1],o),d(l)}).catch(n.error)}}handleAddValueAdd({key:t,newValue:r}){let{data:n,keyPath:o=[],nextDeep:a}=this.state,{beforeAddAction:i,logger:s}=this.props;(i||Promise.resolve.bind(Promise))(t,o,a,r).then(()=>{n[t]=r,this.setState({data:n}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:u}=this.props;l(o[o.length-1],n),u({type:$b,keyPath:o,deep:a,key:t,newValue:r})}).catch(s.error)}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleEditValue({key:t,value:r}){return new Promise((n,o)=>{let{beforeUpdateAction:a}=this.props,{data:i,keyPath:s,nextDeep:l}=this.state,u=i[t];(a||Promise.resolve.bind(Promise))(t,s,l,u,r).then(()=>{i[t]=r,this.setState({data:i});let{onUpdate:d,onDeltaUpdate:m}=this.props;d(s[s.length-1],i),m({type:Ub,keyPath:s,deep:l,key:t,newValue:r,oldValue:u}),n(void 0)}).catch(o)})}renderCollapsed(){let{name:t,data:r,keyPath:n,deep:o}=this.state,{handleRemove:a,readOnly:i,getStyle:s,dataType:l,minusMenuElement:u}=this.props,{minus:d,collapsed:m}=s(t,r,n,o,l),p=i(t,r,n,o,l),f=u&&Pe(u,{onClick:a,className:"rejt-minus-menu",style:d,"aria-label":`remove the array '${String(t)}'`});return c.createElement(c.Fragment,null,c.createElement("span",{style:m},"[...] ",r.length," ",r.length===1?"item":"items"),!p&&f)}renderNotCollapsed(){let{name:t,data:r,keyPath:n,deep:o,addFormVisible:a,nextDeep:i}=this.state,{isCollapsed:s,handleRemove:l,onDeltaUpdate:u,readOnly:d,getStyle:m,dataType:p,addButtonElement:f,cancelButtonElement:g,inputElementGenerator:y,textareaElementGenerator:E,minusMenuElement:b,plusMenuElement:x,beforeRemoveAction:S,beforeAddAction:T,beforeUpdateAction:_,logger:O,onSubmitValueParser:k}=this.props,{minus:B,plus:P,delimiter:L,ul:j,addForm:U}=m(t,r,n,o,p),$=d(t,r,n,o,p),v=x&&Pe(x,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:P,"aria-label":`add a new item to the '${String(t)}' array`}),A=b&&Pe(b,{onClick:l,className:"rejt-minus-menu",style:B,"aria-label":`remove the array '${String(t)}'`});return c.createElement(c.Fragment,null,c.createElement("span",{className:"rejt-not-collapsed-delimiter",style:L},"["),!a&&v,c.createElement("ul",{className:"rejt-not-collapsed-list",style:j},r.map((D,N)=>c.createElement(fi,{key:N,name:N.toString(),data:D,keyPath:n,deep:i,isCollapsed:s,handleRemove:this.handleRemoveItem(N),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:u,readOnly:d,getStyle:m,addButtonElement:f,cancelButtonElement:g,inputElementGenerator:y,textareaElementGenerator:E,minusMenuElement:b,plusMenuElement:x,beforeRemoveAction:S,beforeAddAction:T,beforeUpdateAction:_,logger:O,onSubmitValueParser:k}))),!$&&a&&c.createElement("div",{className:"rejt-add-form",style:U},c.createElement(uc,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,onlyValue:!0,addButtonElement:f,cancelButtonElement:g,inputElementGenerator:y,keyPath:n,deep:o,onSubmitValueParser:k})),c.createElement("span",{className:"rejt-not-collapsed-delimiter",style:L},"]"),!$&&A)}render(){let{name:t,collapsed:r,keyPath:n,deep:o}=this.state,a=r?this.renderCollapsed():this.renderNotCollapsed();return c.createElement(ic,{name:t,collapsed:r,deep:o,keyPath:n,onClick:this.handleCollapseMode},a)}};h(Vb,"JsonArray");var zb=Vb;zb.defaultProps={keyPath:[],deep:0,minusMenuElement:c.createElement("span",null," - "),plusMenuElement:c.createElement("span",null," + ")};var Gb=class extends Et{constructor(t){super(t);let r=[...t.keyPath||[],t.name];this.state={value:t.value,name:t.name,keyPath:r??[],deep:t.deep??0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(t,r){return t.value!==r.value?{value:t.value}:null}componentDidUpdate(){let{editEnabled:t,inputRef:r,name:n,value:o,keyPath:a,deep:i}=this.state,{readOnly:s,dataType:l}=this.props,u=s(n,o,a,i,l);t&&!u&&typeof r.focus=="function"&&r.focus()}onKeydown(t){let{inputRef:r}=this.state;t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||t.repeat||r!==t.target||((t.code==="Enter"||t.key==="Enter")&&(t.preventDefault(),this.handleEdit()),(t.code==="Escape"||t.key==="Escape")&&(t.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:t,originalValue:r,logger:n,onSubmitValueParser:o,keyPath:a}=this.props,{inputRef:i,name:s,deep:l}=this.state;if(!i)return;let u=o(!0,a,l,s,i.value),d={value:u,key:s};(t||Promise.resolve.bind(Promise))(d).then(()=>{lc(r,u)||this.handleCancelEdit()}).catch(n.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(t){this.state.inputRef=t}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:t,value:r,editEnabled:n,keyPath:o,deep:a}=this.state,{handleRemove:i,originalValue:s,readOnly:l,dataType:u,getStyle:d,textareaElementGenerator:m,minusMenuElement:p,keyPath:f=[]}=this.props,g=d(t,s,o,a,u),y=null,E=null,b=l(t,s,o,a,u);if(n&&!b){let x=m(sc,f,a,t,s,u),S=Pe(x,{ref:this.refInput,defaultValue:r,onKeyDown:this.onKeydown});y=c.createElement("span",{className:"rejt-edit-form",style:g.editForm},S),E=null}else{y=c.createElement("span",{className:"rejt-value",style:g.value,onClick:b?void 0:this.handleEditMode},r);let x=f.at(-1),S=p&&Pe(p,{onClick:i,className:"rejt-minus-menu",style:g.minus,"aria-label":`remove the function '${String(t)}'${String(x)?` from '${String(x)}'`:""}`});E=b?null:S}return c.createElement("li",{className:"rejt-value-node",style:g.li},c.createElement("span",{className:"rejt-name",style:g.name},t," :"," "),y,E)}};h(Gb,"JsonFunctionValue");var Wb=Gb;Wb.defaultProps={keyPath:[],deep:0,handleUpdateValue:h(()=>{},"handleUpdateValue"),cancelButtonElement:c.createElement("button",null,"c"),minusMenuElement:c.createElement("span",null," - ")};var Yb=class extends Et{constructor(t){super(t),this.state={data:t.data,name:t.name,keyPath:t.keyPath??[],deep:t.deep??0}}static getDerivedStateFromProps(t,r){return t.data!==r.data?{data:t.data}:null}render(){let{data:t,name:r,keyPath:n,deep:o}=this.state,{isCollapsed:a,handleRemove:i,handleUpdateValue:s,onUpdate:l,onDeltaUpdate:u,readOnly:d,getStyle:m,addButtonElement:p,cancelButtonElement:f,inputElementGenerator:g,textareaElementGenerator:y,minusMenuElement:E,plusMenuElement:b,beforeRemoveAction:x,beforeAddAction:S,beforeUpdateAction:T,logger:_,onSubmitValueParser:O}=this.props,k=h(()=>!0,"readOnlyTrue"),B=hr(t);switch(B){case FD:return c.createElement(Iu,{data:t,name:r,isCollapsed:a,keyPath:n,deep:o,handleRemove:i,onUpdate:l,onDeltaUpdate:u,readOnly:k,dataType:B,getStyle:m,addButtonElement:p,cancelButtonElement:f,inputElementGenerator:g,textareaElementGenerator:y,minusMenuElement:E,plusMenuElement:b,beforeRemoveAction:x,beforeAddAction:S,beforeUpdateAction:T,logger:_,onSubmitValueParser:O});case PD:return c.createElement(Iu,{data:t,name:r,isCollapsed:a,keyPath:n,deep:o,handleRemove:i,onUpdate:l,onDeltaUpdate:u,readOnly:d,dataType:B,getStyle:m,addButtonElement:p,cancelButtonElement:f,inputElementGenerator:g,textareaElementGenerator:y,minusMenuElement:E,plusMenuElement:b,beforeRemoveAction:x,beforeAddAction:S,beforeUpdateAction:T,logger:_,onSubmitValueParser:O});case ND:return c.createElement(zb,{data:t,name:r,isCollapsed:a,keyPath:n,deep:o,handleRemove:i,onUpdate:l,onDeltaUpdate:u,readOnly:d,dataType:B,getStyle:m,addButtonElement:p,cancelButtonElement:f,inputElementGenerator:g,textareaElementGenerator:y,minusMenuElement:E,plusMenuElement:b,beforeRemoveAction:x,beforeAddAction:S,beforeUpdateAction:T,logger:_,onSubmitValueParser:O});case LD:return c.createElement(cr,{name:r,value:`"${t}"`,originalValue:t,keyPath:n,deep:o,handleRemove:i,handleUpdateValue:s,readOnly:d,dataType:B,getStyle:m,cancelButtonElement:f,inputElementGenerator:g,minusMenuElement:E,logger:_,onSubmitValueParser:O});case jD:return c.createElement(cr,{name:r,value:t,originalValue:t,keyPath:n,deep:o,handleRemove:i,handleUpdateValue:s,readOnly:d,dataType:B,getStyle:m,cancelButtonElement:f,inputElementGenerator:g,minusMenuElement:E,logger:_,onSubmitValueParser:O});case MD:return c.createElement(cr,{name:r,value:t?"true":"false",originalValue:t,keyPath:n,deep:o,handleRemove:i,handleUpdateValue:s,readOnly:d,dataType:B,getStyle:m,cancelButtonElement:f,inputElementGenerator:g,minusMenuElement:E,logger:_,onSubmitValueParser:O});case $D:return c.createElement(cr,{name:r,value:t.toISOString(),originalValue:t,keyPath:n,deep:o,handleRemove:i,handleUpdateValue:s,readOnly:k,dataType:B,getStyle:m,cancelButtonElement:f,inputElementGenerator:g,minusMenuElement:E,logger:_,onSubmitValueParser:O});case qD:return c.createElement(cr,{name:r,value:"null",originalValue:"null",keyPath:n,deep:o,handleRemove:i,handleUpdateValue:s,readOnly:d,dataType:B,getStyle:m,cancelButtonElement:f,inputElementGenerator:g,minusMenuElement:E,logger:_,onSubmitValueParser:O});case UD:return c.createElement(cr,{name:r,value:"undefined",originalValue:"undefined",keyPath:n,deep:o,handleRemove:i,handleUpdateValue:s,readOnly:d,dataType:B,getStyle:m,cancelButtonElement:f,inputElementGenerator:g,minusMenuElement:E,logger:_,onSubmitValueParser:O});case HD:return c.createElement(Wb,{name:r,value:t.toString(),originalValue:t,keyPath:n,deep:o,handleRemove:i,handleUpdateValue:s,readOnly:d,dataType:B,getStyle:m,cancelButtonElement:f,textareaElementGenerator:y,minusMenuElement:E,logger:_,onSubmitValueParser:O});case VD:return c.createElement(cr,{name:r,value:t.toString(),originalValue:t,keyPath:n,deep:o,handleRemove:i,handleUpdateValue:s,readOnly:k,dataType:B,getStyle:m,cancelButtonElement:f,inputElementGenerator:g,minusMenuElement:E,logger:_,onSubmitValueParser:O});default:return null}}};h(Yb,"JsonNode");var fi=Yb;fi.defaultProps={keyPath:[],deep:0};var Kb=class extends Et{constructor(t){super(t);let r=t.deep===-1?[]:[...t.keyPath||[],t.name];this.state={name:t.name,data:t.data,keyPath:r??[],deep:t.deep??0,nextDeep:(t.deep??0)+1,collapsed:t.isCollapsed(r,t.deep??0,t.data),addFormVisible:!1},this.handleCollapseMode=this.handleCollapseMode.bind(this),this.handleRemoveValue=this.handleRemoveValue.bind(this),this.handleAddMode=this.handleAddMode.bind(this),this.handleAddValueAdd=this.handleAddValueAdd.bind(this),this.handleAddValueCancel=this.handleAddValueCancel.bind(this),this.handleEditValue=this.handleEditValue.bind(this),this.onChildUpdate=this.onChildUpdate.bind(this),this.renderCollapsed=this.renderCollapsed.bind(this),this.renderNotCollapsed=this.renderNotCollapsed.bind(this)}static getDerivedStateFromProps(t,r){return t.data!==r.data?{data:t.data}:null}onChildUpdate(t,r){let{data:n,keyPath:o=[]}=this.state;n[t]=r,this.setState({data:n});let{onUpdate:a}=this.props,i=o.length;a(o[i-1],n)}handleAddMode(){this.setState({addFormVisible:!0})}handleAddValueCancel(){this.setState({addFormVisible:!1})}handleAddValueAdd({key:t,newValue:r}){let{data:n,keyPath:o=[],nextDeep:a}=this.state,{beforeAddAction:i,logger:s}=this.props;(i||Promise.resolve.bind(Promise))(t,o,a,r).then(()=>{n[t]=r,this.setState({data:n}),this.handleAddValueCancel();let{onUpdate:l,onDeltaUpdate:u}=this.props;l(o[o.length-1],n),u({type:$b,keyPath:o,deep:a,key:t,newValue:r})}).catch(s.error)}handleRemoveValue(t){return()=>{let{beforeRemoveAction:r,logger:n}=this.props,{data:o,keyPath:a=[],nextDeep:i}=this.state,s=o[t];(r||Promise.resolve.bind(Promise))(t,a,i,s).then(()=>{let l={keyPath:a,deep:i,key:t,oldValue:s,type:qb};delete o[t],this.setState({data:o});let{onUpdate:u,onDeltaUpdate:d}=this.props;u(a[a.length-1],o),d(l)}).catch(n.error)}}handleCollapseMode(){this.setState(t=>({collapsed:!t.collapsed}))}handleEditValue({key:t,value:r}){return new Promise((n,o)=>{let{beforeUpdateAction:a}=this.props,{data:i,keyPath:s=[],nextDeep:l}=this.state,u=i[t];(a||Promise.resolve.bind(Promise))(t,s,l,u,r).then(()=>{i[t]=r,this.setState({data:i});let{onUpdate:d,onDeltaUpdate:m}=this.props;d(s[s.length-1],i),m({type:Ub,keyPath:s,deep:l,key:t,newValue:r,oldValue:u}),n()}).catch(o)})}renderCollapsed(){let{name:t,keyPath:r,deep:n,data:o}=this.state,{handleRemove:a,readOnly:i,dataType:s,getStyle:l,minusMenuElement:u}=this.props,{minus:d,collapsed:m}=l(t,o,r,n,s),p=Object.getOwnPropertyNames(o),f=i(t,o,r,n,s),g=u&&Pe(u,{onClick:a,className:"rejt-minus-menu",style:d,"aria-label":`remove the object '${String(t)}'`});return c.createElement(c.Fragment,null,c.createElement("span",{style:m},"{...}"," ",p.length," ",p.length===1?"key":"keys"),!f&&g)}renderNotCollapsed(){let{name:t,data:r,keyPath:n,deep:o,nextDeep:a,addFormVisible:i}=this.state,{isCollapsed:s,handleRemove:l,onDeltaUpdate:u,readOnly:d,getStyle:m,dataType:p,addButtonElement:f,cancelButtonElement:g,inputElementGenerator:y,textareaElementGenerator:E,minusMenuElement:b,plusMenuElement:x,beforeRemoveAction:S,beforeAddAction:T,beforeUpdateAction:_,logger:O,onSubmitValueParser:k}=this.props,{minus:B,plus:P,addForm:L,ul:j,delimiter:U}=m(t,r,n,o,p),$=Object.getOwnPropertyNames(r),v=d(t,r,n,o,p),A=x&&Pe(x,{onClick:this.handleAddMode,className:"rejt-plus-menu",style:P,"aria-label":`add a new property to the object '${String(t)}'`}),D=b&&Pe(b,{onClick:l,className:"rejt-minus-menu",style:B,"aria-label":`remove the object '${String(t)}'`}),N=$.map(F=>c.createElement(fi,{key:F,name:F,data:r[F],keyPath:n,deep:a,isCollapsed:s,handleRemove:this.handleRemoveValue(F),handleUpdateValue:this.handleEditValue,onUpdate:this.onChildUpdate,onDeltaUpdate:u,readOnly:d,getStyle:m,addButtonElement:f,cancelButtonElement:g,inputElementGenerator:y,textareaElementGenerator:E,minusMenuElement:b,plusMenuElement:x,beforeRemoveAction:S,beforeAddAction:T,beforeUpdateAction:_,logger:O,onSubmitValueParser:k}));return c.createElement(c.Fragment,null,c.createElement("span",{className:"rejt-not-collapsed-delimiter",style:U},"{"),!v&&A,c.createElement("ul",{className:"rejt-not-collapsed-list",style:j},N),!v&&i&&c.createElement("div",{className:"rejt-add-form",style:L},c.createElement(uc,{handleAdd:this.handleAddValueAdd,handleCancel:this.handleAddValueCancel,addButtonElement:f,cancelButtonElement:g,inputElementGenerator:y,keyPath:n,deep:o,onSubmitValueParser:k})),c.createElement("span",{className:"rejt-not-collapsed-delimiter",style:U},"}"),!v&&D)}render(){let{name:t,collapsed:r,keyPath:n,deep:o=0}=this.state,a=r?this.renderCollapsed():this.renderNotCollapsed();return c.createElement(ic,{name:t,collapsed:r,deep:o,keyPath:n,onClick:this.handleCollapseMode},a)}};h(Kb,"JsonObject");var Iu=Kb;Iu.defaultProps={keyPath:[],deep:0,minusMenuElement:c.createElement("span",null," - "),plusMenuElement:c.createElement("span",null," + ")};var Xb=class extends Et{constructor(t){super(t);let r=[...t.keyPath||[],t.name];this.state={value:t.value,name:t.name,keyPath:r??[],deep:t.deep??0,editEnabled:!1,inputRef:null},this.handleEditMode=this.handleEditMode.bind(this),this.refInput=this.refInput.bind(this),this.handleCancelEdit=this.handleCancelEdit.bind(this),this.handleEdit=this.handleEdit.bind(this),this.onKeydown=this.onKeydown.bind(this)}static getDerivedStateFromProps(t,r){return t.value!==r.value?{value:t.value}:null}componentDidUpdate(){let{editEnabled:t,inputRef:r,name:n,value:o,keyPath:a,deep:i}=this.state,{readOnly:s,dataType:l}=this.props,u=s(n,o,a,i,l);t&&!u&&typeof r.focus=="function"&&r.focus()}onKeydown(t){let{inputRef:r}=this.state;t.altKey||t.ctrlKey||t.metaKey||t.shiftKey||t.repeat||r!==t.target||((t.code==="Enter"||t.key==="Enter")&&(t.preventDefault(),this.handleEdit()),(t.code==="Escape"||t.key==="Escape")&&(t.preventDefault(),this.handleCancelEdit()))}handleEdit(){let{handleUpdateValue:t,originalValue:r,logger:n,onSubmitValueParser:o,keyPath:a}=this.props,{inputRef:i,name:s,deep:l}=this.state;if(!i)return;let u=o(!0,a,l,s,i.value),d={value:u,key:s};(t||Promise.resolve.bind(Promise))(d).then(()=>{lc(r,u)||this.handleCancelEdit()}).catch(n.error)}handleEditMode(){this.setState({editEnabled:!0})}refInput(t){this.state.inputRef=t}handleCancelEdit(){this.setState({editEnabled:!1})}render(){let{name:t,value:r,editEnabled:n,keyPath:o,deep:a}=this.state,{handleRemove:i,originalValue:s,readOnly:l,dataType:u,getStyle:d,inputElementGenerator:m,minusMenuElement:p,keyPath:f}=this.props,g=d(t,s,o,a,u),y=l(t,s,o,a,u),E=n&&!y,b=m(sc,f,a,t,s,u),x=Pe(b,{ref:this.refInput,defaultValue:JSON.stringify(s),onKeyDown:this.onKeydown}),S=o.at(-2),T=p&&Pe(p,{onClick:i,className:"rejt-minus-menu",style:g.minus,"aria-label":`remove the property '${String(t)}' with value '${String(s)}'${String(S)?` from '${String(S)}'`:""}`});return c.createElement("li",{className:"rejt-value-node",style:g.li},c.createElement("span",{className:"rejt-name",style:g.name},t," : "),E?c.createElement("span",{className:"rejt-edit-form",style:g.editForm},x):c.createElement("span",{className:"rejt-value",style:g.value,onClick:y?void 0:this.handleEditMode},String(r)),!y&&!E&&T)}};h(Xb,"JsonValue");var cr=Xb;cr.defaultProps={keyPath:[],deep:0,handleUpdateValue:h(()=>Promise.resolve(),"handleUpdateValue"),cancelButtonElement:c.createElement("button",null,"c"),minusMenuElement:c.createElement("span",null," - ")};function Jb(e){let t=e;if(t.indexOf("function")===0)return(0,eval)(`(${t})`);try{t=JSON.parse(e)}catch{}return t}h(Jb,"parse");var GD={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},WD={minus:{color:"red"},plus:{color:"green"},collapsed:{color:"grey"},delimiter:{},ul:{padding:"0px",margin:"0 0 0 25px",listStyle:"none"},name:{color:"#2287CD"},addForm:{}},YD={minus:{color:"red"},editForm:{},value:{color:"#7bba3d"},li:{minHeight:"22px",lineHeight:"22px",outline:"0px"},name:{color:"#2287CD"}},Zb=class extends Et{constructor(t){super(t),this.state={data:t.data,rootName:t.rootName},this.onUpdate=this.onUpdate.bind(this),this.removeRoot=this.removeRoot.bind(this)}static getDerivedStateFromProps(t,r){return t.data!==r.data||t.rootName!==r.rootName?{data:t.data,rootName:t.rootName}:null}onUpdate(t,r){this.setState({data:r}),this.props.onFullyUpdate?.(r)}removeRoot(){this.onUpdate(null,null)}render(){let{data:t,rootName:r}=this.state,{isCollapsed:n,onDeltaUpdate:o,readOnly:a,getStyle:i,addButtonElement:s,cancelButtonElement:l,inputElement:u,textareaElement:d,minusMenuElement:m,plusMenuElement:p,beforeRemoveAction:f,beforeAddAction:g,beforeUpdateAction:y,logger:E,onSubmitValueParser:b,fallback:x=null}=this.props,S=hr(t),T=a;hr(a)==="Boolean"&&(T=h(()=>a,"readOnlyFunction"));let _=u;u&&hr(u)!=="Function"&&(_=h(()=>u,"inputElementFunction"));let O=d;return d&&hr(d)!=="Function"&&(O=h(()=>d,"textareaElementFunction")),S==="Object"||S==="Array"?c.createElement("div",{className:"rejt-tree"},c.createElement(fi,{data:t,name:r||"root",deep:-1,isCollapsed:n??(()=>!1),onUpdate:this.onUpdate,onDeltaUpdate:o??(()=>{}),readOnly:T,getStyle:i??(()=>({})),addButtonElement:s,cancelButtonElement:l,inputElementGenerator:_,textareaElementGenerator:O,minusMenuElement:m,plusMenuElement:p,handleRemove:this.removeRoot,beforeRemoveAction:f,beforeAddAction:g,beforeUpdateAction:y,logger:E??{},onSubmitValueParser:b??(k=>k)})):x}};h(Zb,"JsonTree");var Qb=Zb;Qb.defaultProps={rootName:"root",isCollapsed:h((e,t)=>t!==-1,"isCollapsed"),getStyle:h((e,t,r,n,o)=>{switch(o){case"Object":case"Error":return GD;case"Array":return WD;default:return YD}},"getStyle"),readOnly:h(()=>!1,"readOnly"),onFullyUpdate:h(()=>{},"onFullyUpdate"),onDeltaUpdate:h(()=>{},"onDeltaUpdate"),beforeRemoveAction:h(()=>Promise.resolve(),"beforeRemoveAction"),beforeAddAction:h(()=>Promise.resolve(),"beforeAddAction"),beforeUpdateAction:h(()=>Promise.resolve(),"beforeUpdateAction"),logger:{error:h(()=>{},"error")},onSubmitValueParser:h((e,t,r,n,o)=>Jb(o),"onSubmitValueParser"),inputElement:h(()=>c.createElement("input",null),"inputElement"),textareaElement:h(()=>c.createElement("textarea",null),"textareaElement"),fallback:null};var{window:KD}=globalThis,XD=R.div(({theme:e})=>({position:"relative",display:"flex",'&[aria-readonly="true"]':{opacity:.5},".rejt-tree":{marginLeft:"1rem",fontSize:"13px",listStyleType:"none"},".rejt-value-node:hover":{"& > button":{opacity:1}},".rejt-add-form":{marginLeft:10},".rejt-add-value-node":{display:"inline-flex",alignItems:"center"},".rejt-name":{lineHeight:"22px"},".rejt-not-collapsed-delimiter":{lineHeight:"22px"},".rejt-value":{display:"inline-block",border:"1px solid transparent",borderRadius:4,margin:"1px 0",padding:"0 4px",cursor:"text",color:e.color.defaultText},".rejt-value-node:hover > .rejt-value":{background:e.color.lighter,borderColor:e.appBorderColor}})),g0=R.button(({theme:e,primary:t})=>({border:0,height:20,margin:1,borderRadius:4,background:t?e.color.secondary:"transparent",color:t?e.color.lightest:e.color.dark,fontWeight:t?"bold":"normal",cursor:"pointer"})),y0=R.button(({theme:e})=>({background:"none",border:0,display:"inline-flex",verticalAlign:"middle",padding:3,marginLeft:5,color:e.textMutedColor,opacity:0,transition:"opacity 0.2s",cursor:"pointer",position:"relative",svg:{width:9,height:9},":disabled":{cursor:"not-allowed"},":hover, :focus-visible":{opacity:1},"&:hover:not(:disabled), &:focus-visible:not(:disabled)":{"&.rejt-plus-menu":{color:e.color.ancillary},"&.rejt-minus-menu":{color:e.color.negative}}})),b0=R.input(({theme:e,placeholder:t})=>({outline:0,margin:t?1:"1px 0",padding:"3px 4px",color:e.color.defaultText,background:e.background.app,border:`1px solid ${e.appBorderColor}`,borderRadius:4,lineHeight:"14px",width:t==="Key"?80:120,"&:focus":{border:`1px solid ${e.color.secondary}`}})),JD=R(ce)(({theme:e})=>({position:"absolute",zIndex:2,top:2,right:2,height:21,padding:"0 3px",background:e.background.bar,border:`1px solid ${e.appBorderColor}`,borderRadius:3,color:e.textMutedColor,fontSize:"9px",fontWeight:"bold",textDecoration:"none",span:{marginLeft:3,marginTop:1}})),ZD=R($e.Textarea)(({theme:e})=>({flex:1,padding:"7px 6px",fontFamily:e.typography.fonts.mono,fontSize:"12px",lineHeight:"18px","&::placeholder":{fontFamily:e.typography.fonts.base,fontSize:"13px"},"&:placeholder-shown":{padding:"7px 10px"}})),QD={bubbles:!0,cancelable:!0,key:"Enter",code:"Enter",keyCode:13},e3=h(e=>{e.currentTarget.dispatchEvent(new KD.KeyboardEvent("keydown",QD))},"dispatchEnterKey"),t3=h(e=>{e.currentTarget.select()},"selectValue"),r3=h(e=>()=>({name:{color:e.color.secondary},collapsed:{color:e.color.dark},ul:{listStyle:"none",margin:"0 0 0 1rem",padding:0},li:{outline:0}}),"getCustomStyleFunction"),E0=h(({name:e,value:t,onChange:r,argType:n})=>{let o=Qe(),a=Me(()=>t&&Ey(t),[t]),i=a!=null,[s,l]=z(!i),[u,d]=z(null),m=!!n?.table?.readonly,p=Q(S=>{try{S&&r(JSON.parse(S)),d(null)}catch(T){d(T)}},[r]),[f,g]=z(!1),y=Q(()=>{r({}),g(!0)},[g]),E=ye(null);if(X(()=>{f&&E.current&&E.current.select()},[f]),!i)return c.createElement(Je,{disabled:m,id:so(e),onClick:y},"Set object");let b=c.createElement(ZD,{ref:E,id:mt(e),name:e,defaultValue:t===null?"":JSON.stringify(t,null,2),onBlur:S=>p(S.target.value),placeholder:"Edit JSON string...",autoFocus:f,valid:u?"error":void 0,readOnly:m}),x=Array.isArray(t)||typeof t=="object"&&t?.constructor===Object;return c.createElement(XD,{"aria-readonly":m},x&&c.createElement(JD,{role:"switch","aria-checked":s,"aria-label":`Edit the ${e} properties in text format`,onClick:S=>{S.preventDefault(),l(T=>!T)}},s?c.createElement(kc,null):c.createElement(Oc,null),c.createElement("span",null,"RAW")),s?b:c.createElement(Qb,{readOnly:m||!x,isCollapsed:x?void 0:()=>!0,data:a,rootName:e,onFullyUpdate:r,getStyle:r3(o),cancelButtonElement:c.createElement(g0,{type:"button"},"Cancel"),addButtonElement:c.createElement(g0,{type:"submit",primary:!0},"Save"),plusMenuElement:c.createElement(y0,{type:"button"},c.createElement(go,null)),minusMenuElement:c.createElement(y0,{type:"button"},c.createElement(Vc,null)),inputElement:(S,T,_,O)=>O?c.createElement(b0,{onFocus:t3,onBlur:e3}):c.createElement(b0,null),fallback:b}))},"ObjectControl");Ot();var n3=R.input(({theme:e,min:t,max:r,value:n,disabled:o})=>({"&":{width:"100%",backgroundColor:"transparent",appearance:"none"},"&::-webkit-slider-runnable-track":{background:e.base==="light"?`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${Nt(.02,e.input.background)} ${(n-t)/(r-t)*100}%, ${Nt(.02,e.input.background)} 100%)`:`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${Or(.02,e.input.background)} ${(n-t)/(r-t)*100}%, ${Or(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:o?"not-allowed":"pointer"},"&::-webkit-slider-thumb":{marginTop:"-6px",width:16,height:16,border:`1px solid ${Tt(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Tt(e.appBorderColor,.2)}`,cursor:o?"not-allowed":"grab",appearance:"none",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${Nt(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:o?"not-allowed":"grab"}},"&:focus":{outline:"none","&::-webkit-slider-runnable-track":{borderColor:Tt(e.color.secondary,.4)},"&::-webkit-slider-thumb":{borderColor:e.color.secondary,boxShadow:`0 0px 5px 0px ${e.color.secondary}`}},"&::-moz-range-track":{background:e.base==="light"?`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${Nt(.02,e.input.background)} ${(n-t)/(r-t)*100}%, ${Nt(.02,e.input.background)} 100%)`:`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${Or(.02,e.input.background)} ${(n-t)/(r-t)*100}%, ${Or(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:6,width:"100%",height:6,cursor:o?"not-allowed":"pointer",outline:"none"},"&::-moz-range-thumb":{width:16,height:16,border:`1px solid ${Tt(e.appBorderColor,.2)}`,borderRadius:"50px",boxShadow:`0 1px 3px 0px ${Tt(e.appBorderColor,.2)}`,cursor:o?"not-allowed":"grap",background:`${e.input.background}`,transition:"all 150ms ease-out","&:hover":{background:`${Nt(.05,e.input.background)}`,transform:"scale3d(1.1, 1.1, 1.1) translateY(-1px)",transition:"all 50ms ease-out"},"&:active":{background:`${e.input.background}`,transform:"scale3d(1, 1, 1) translateY(0px)",cursor:"grabbing"}},"&::-ms-track":{background:e.base==="light"?`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${Nt(.02,e.input.background)} ${(n-t)/(r-t)*100}%, ${Nt(.02,e.input.background)} 100%)`:`linear-gradient(to right, ${e.color.green} 0%, ${e.color.green} ${(n-t)/(r-t)*100}%, ${Or(.02,e.input.background)} ${(n-t)/(r-t)*100}%, ${Or(.02,e.input.background)} 100%)`,boxShadow:`${e.appBorderColor} 0 0 0 1px inset`,color:"transparent",width:"100%",height:"6px",cursor:"pointer"},"&::-ms-fill-lower":{borderRadius:6},"&::-ms-fill-upper":{borderRadius:6},"&::-ms-thumb":{width:16,height:16,background:`${e.input.background}`,border:`1px solid ${Tt(e.appBorderColor,.2)}`,borderRadius:50,cursor:"grab",marginTop:0},"@supports (-ms-ime-align:auto)":{"input[type=range]":{margin:"0"}}})),e1=R.span({paddingLeft:5,paddingRight:5,fontSize:12,whiteSpace:"nowrap",fontFeatureSettings:"tnum",fontVariantNumeric:"tabular-nums","[aria-readonly=true] &":{opacity:.5}}),o3=R(e1)(({numberOFDecimalsPlaces:e,max:t})=>({width:`${e+t.toString().length*2+3}ch`,textAlign:"right",flexShrink:0})),a3=R.div({display:"flex",alignItems:"center",width:"100%"});function t1(e){let t=e.toString().match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}h(t1,"getNumberOfDecimalPlaces");var i3=h(({name:e,value:t,onChange:r,min:n=0,max:o=100,step:a=1,onBlur:i,onFocus:s,argType:l})=>{let u=h(f=>{r(yD(f.target.value))},"handleChange"),d=t!==void 0,m=Me(()=>t1(a),[a]),p=!!l?.table?.readonly;return c.createElement(a3,{"aria-readonly":p},c.createElement(e1,null,n),c.createElement(n3,{id:mt(e),type:"range",disabled:p,onChange:u,name:e,min:n,max:o,step:a,onFocus:s,onBlur:i,value:t??n}),c.createElement(o3,{numberOFDecimalsPlaces:m,max:o},d?t.toFixed(m):"--"," / ",o))},"RangeControl");Ot();var s3=R.label({display:"flex"}),l3=R.div(({isMaxed:e})=>({marginLeft:"0.75rem",paddingTop:"0.35rem",color:e?"red":void 0})),u3=h(({name:e,value:t,onChange:r,onFocus:n,onBlur:o,maxLength:a,argType:i})=>{let s=h(f=>{r(f.target.value)},"handleChange"),l=!!i?.table?.readonly,[u,d]=z(!1),m=Q(()=>{r(""),d(!0)},[d]);if(t===void 0)return c.createElement(Je,{variant:"outline",size:"medium",disabled:l,id:so(e),onClick:m},"Set string");let p=typeof t=="string";return c.createElement(s3,null,c.createElement($e.Textarea,{id:mt(e),maxLength:a,onChange:s,disabled:l,size:"flex",placeholder:"Edit string...",autoFocus:u,valid:p?void 0:"error",name:e,value:p?t:"",onFocus:n,onBlur:o}),a&&c.createElement(l3,{isMaxed:t?.length===a},t?.length??0," / ",a))},"TextControl");Ot();var c3=R($e.Input)({padding:10});function r1(e){e.forEach(t=>{t.startsWith("blob:")&&URL.revokeObjectURL(t)})}h(r1,"revokeOldUrls");var d3=h(({onChange:e,name:t,accept:r="image/*",value:n,argType:o})=>{let a=ye(null),i=o?.control?.readOnly;function s(l){if(!l.target.files)return;let u=Array.from(l.target.files).map(d=>URL.createObjectURL(d));e(u),r1(n||[])}return h(s,"handleFileChange"),X(()=>{n==null&&a.current&&(a.current.value="")},[n,t]),c.createElement(c3,{ref:a,id:mt(t),type:"file",name:t,multiple:!0,disabled:i,onChange:s,accept:r,size:"flex"})},"FilesControl"),p3=xc(()=>Promise.resolve().then(()=>(uC(),Ly))),m3=h(e=>c.createElement(vc,{fallback:c.createElement("div",null)},c.createElement(p3,{...e})),"ColorControl"),h3={array:E0,object:E0,boolean:uD,color:m3,date:fD,number:ED,check:fn,"inline-check":fn,radio:fn,"inline-radio":fn,select:fn,"multi-select":fn,range:i3,text:u3,file:d3},v0=h(()=>c.createElement(c.Fragment,null,"-"),"NoControl"),f3=h(({row:e,arg:t,updateArgs:r,isHovered:n})=>{let{key:o,control:a}=e,[i,s]=z(!1),[l,u]=z({value:t});X(()=>{i||u({value:t})},[i,t]);let d=Q(y=>(u({value:y}),r({[o]:y}),y),[r,o]),m=Q(()=>s(!1),[]),p=Q(()=>s(!0),[]);if(!a||a.disable){let y=a?.disable!==!0&&e?.type?.name!=="function";return n&&y?c.createElement(Ze,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},"Setup controls"):c.createElement(v0,null)}let f={name:o,argType:e,value:l.value,onChange:d,onBlur:m,onFocus:p},g=h3[a.type]||v0;return c.createElement(g,{...f,...a,controlType:a.type})},"ArgControl"),g3=R.table(({theme:e})=>({"&&":{borderCollapse:"collapse",borderSpacing:0,border:"none",tr:{border:"none !important",background:"none"},"td, th":{padding:0,border:"none",width:"auto!important"},marginTop:0,marginBottom:0,"th:first-of-type, td:first-of-type":{paddingLeft:0},"th:last-of-type, td:last-of-type":{paddingRight:0},td:{paddingTop:0,paddingBottom:4,"&:not(:first-of-type)":{paddingLeft:10,paddingRight:0}},tbody:{boxShadow:"none",border:"none"},code:Qt({theme:e}),div:{span:{fontWeight:"bold"}},"& code":{margin:0,display:"inline-block",fontSize:e.typography.size.s1}}})),y3=h(({tags:e})=>{let t=(e.params||[]).filter(a=>a.description),r=t.length!==0,n=e.deprecated!=null,o=e.returns!=null&&e.returns.description!=null;return!r&&!o&&!n?null:c.createElement(c.Fragment,null,c.createElement(g3,null,c.createElement("tbody",null,n&&c.createElement("tr",{key:"deprecated"},c.createElement("td",{colSpan:2},c.createElement("strong",null,"Deprecated"),": ",e.deprecated?.toString())),r&&t.map(a=>c.createElement("tr",{key:a.name},c.createElement("td",null,c.createElement("code",null,a.name)),c.createElement("td",null,a.description))),o&&c.createElement("tr",{key:"returns"},c.createElement("td",null,c.createElement("code",null,"Returns")),c.createElement("td",null,e.returns?.description)))))},"ArgJsDoc");pi();var b3=it(cC()),Ru=8,A0=R.div(({isExpanded:e})=>({display:"flex",flexDirection:e?"column":"row",flexWrap:"wrap",alignItems:"flex-start",marginBottom:"-4px",minWidth:100})),E3=R.span(Qt,({theme:e,simple:t=!1})=>({flex:"0 0 auto",fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,wordBreak:"break-word",whiteSpace:"normal",maxWidth:"100%",margin:0,marginRight:"4px",marginBottom:"4px",paddingTop:"2px",paddingBottom:"2px",lineHeight:"13px",...t&&{background:"transparent",border:"0 none",paddingLeft:0}})),v3=R.button(({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,marginBottom:"4px",background:"none",border:"none"})),A3=R.div(Qt,({theme:e})=>({fontFamily:e.typography.fonts.mono,color:e.color.secondary,fontSize:e.typography.size.s1,margin:0,whiteSpace:"nowrap",display:"flex",alignItems:"center"})),x3=R.div(({theme:e,width:t})=>({width:t,minWidth:200,maxWidth:800,padding:15,fontFamily:e.typography.fonts.mono,fontSize:e.typography.size.s1,boxSizing:"content-box","& code":{padding:"0 !important"}})),w3=R(Dc)({marginLeft:4}),S3=R(Eo)({marginLeft:4}),C3=h(()=>c.createElement("span",null,"-"),"EmptyArg"),n1=h(({text:e,simple:t})=>c.createElement(E3,{simple:t},e),"ArgText"),D3=(0,b3.default)(1e3)(e=>{let t=e.split(/\r?\n/);return`${Math.max(...t.map(r=>r.length))}ch`}),T3=h(e=>{if(!e)return[e];let t=e.split("|").map(r=>r.trim());return Ay(t)},"getSummaryItems"),x0=h((e,t=!0)=>{let r=e;return t||(r=e.slice(0,Ru)),r.map(n=>c.createElement(n1,{key:n,text:n===""?'""':n}))},"renderSummaryItems"),k3=h(({value:e,initialExpandedArgs:t})=>{let{summary:r,detail:n}=e,[o,a]=z(!1),[i,s]=z(t||!1);if(r==null)return null;let l=typeof r.toString=="function"?r.toString():r;if(n==null){if(/[(){}[\]<>]/.test(l))return c.createElement(n1,{text:l});let u=T3(l),d=u.length;return d>Ru?c.createElement(A0,{isExpanded:i},x0(u,i),c.createElement(v3,{onClick:()=>s(!i)},i?"Show less...":`Show ${d-Ru} more...`)):c.createElement(A0,null,x0(u))}return c.createElement(Di,{closeOnOutsideClick:!0,placement:"bottom",visible:o,onVisibleChange:u=>{a(u)},tooltip:c.createElement(x3,{width:D3(n)},c.createElement(On,{language:"jsx",format:!1},n))},c.createElement(A3,{className:"sbdocs-expandable"},c.createElement("span",null,l),o?c.createElement(w3,null):c.createElement(S3,null)))},"ArgSummary"),au=h(({value:e,initialExpandedArgs:t})=>e==null?c.createElement(C3,null):c.createElement(k3,{value:e,initialExpandedArgs:t}),"ArgValue"),O3=R.span({fontWeight:"bold"}),I3=R.span(({theme:e})=>({color:e.color.negative,fontFamily:e.typography.fonts.mono,cursor:"help"})),R3=R.div(({theme:e})=>({"&&":{p:{margin:"0 0 10px 0"},a:{color:e.color.secondary}},code:{...Qt({theme:e}),fontSize:12,fontFamily:e.typography.fonts.mono},"& code":{margin:0,display:"inline-block"},"& pre > code":{whiteSpace:"pre-wrap"}})),B3=R.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?de(.1,e.color.defaultText):de(.2,e.color.defaultText),marginTop:t?4:0})),_3=R.div(({theme:e,hasDescription:t})=>({color:e.base==="light"?de(.1,e.color.defaultText):de(.2,e.color.defaultText),marginTop:t?12:0,marginBottom:12})),F3=R.td(({expandable:e})=>({paddingLeft:e?"40px !important":"20px !important"})),P3=h(e=>e&&{summary:typeof e=="string"?e:e.name},"toSummary"),Ha=h(e=>{let[t,r]=z(!1),{row:n,updateArgs:o,compact:a,expandable:i,initialExpandedArgs:s}=e,{name:l,description:u}=n,d=n.table||{},m=d.type||P3(n.type),p=d.defaultValue||n.defaultValue,f=n.type?.required,g=u!=null&&u!=="";return c.createElement("tr",{onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1)},c.createElement(F3,{expandable:i??!1},c.createElement(O3,null,l),f?c.createElement(I3,{title:"Required"},"*"):null),a?null:c.createElement("td",null,g&&c.createElement(R3,null,c.createElement(iD,null,u)),d.jsDocTags!=null?c.createElement(c.Fragment,null,c.createElement(_3,{hasDescription:g},c.createElement(au,{value:m,initialExpandedArgs:s})),c.createElement(y3,{tags:d.jsDocTags})):c.createElement(B3,{hasDescription:g},c.createElement(au,{value:m,initialExpandedArgs:s}))),a?null:c.createElement("td",null,c.createElement(au,{value:p,initialExpandedArgs:s})),o?c.createElement("td",null,c.createElement(f3,{...e,isHovered:t})):null)},"ArgRow"),N3=R.div(({inAddonPanel:e,theme:t})=>({height:e?"100%":"auto",display:"flex",border:e?"none":`1px solid ${t.appBorderColor}`,borderRadius:e?0:t.appBorderRadius,padding:e?0:40,alignItems:"center",justifyContent:"center",flexDirection:"column",gap:15,background:t.background.content})),L3=R.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),j3=h(({inAddonPanel:e})=>{let[t,r]=z(!0);return X(()=>{let n=setTimeout(()=>{r(!1)},100);return()=>clearTimeout(n)},[]),t?null:c.createElement(N3,{inAddonPanel:e},c.createElement(kn,{title:e?"Interactive story playground":"Args table with interactive controls couldn't be auto-generated",description:c.createElement(c.Fragment,null,"Controls give you an easy to use interface to test your components. Set your story args and you'll see controls appearing here automatically."),footer:c.createElement(L3,null,e&&c.createElement(c.Fragment,null,c.createElement(Ze,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},c.createElement(yr,null)," Read docs")),!e&&c.createElement(Ze,{href:"https://storybook.js.org/docs/essentials/controls?ref=ui",target:"_blank",withArrow:!0},c.createElement(yr,null)," Learn how to set that up"))}))},"Empty"),M3=R(bo)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?de(.25,e.color.defaultText):de(.3,e.color.defaultText),border:"none",display:"inline-block"})),$3=R(Cc)(({theme:e})=>({marginRight:8,marginLeft:-10,marginTop:-2,height:12,width:12,color:e.base==="light"?de(.25,e.color.defaultText):de(.3,e.color.defaultText),border:"none",display:"inline-block"})),q3=R.span(({theme:e})=>({display:"flex",lineHeight:"20px",alignItems:"center"})),U3=R.td(({theme:e})=>({position:"relative",letterSpacing:"0.35em",textTransform:"uppercase",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s1-1,color:e.base==="light"?de(.4,e.color.defaultText):de(.6,e.color.defaultText),background:`${e.background.app} !important`,"& ~ td":{background:`${e.background.app} !important`}})),H3=R.td(({theme:e})=>({position:"relative",fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,background:e.background.app})),V3=R.td({position:"relative"}),z3=R.tr(({theme:e})=>({"&:hover > td":{backgroundColor:`${Or(.005,e.background.app)} !important`,boxShadow:`${e.color.mediumlight} 0 - 1px 0 0 inset`,cursor:"row-resize"}})),w0=R.button({background:"none",border:"none",padding:"0",font:"inherit",position:"absolute",top:0,bottom:0,left:0,right:0,height:"100%",width:"100%",color:"transparent",cursor:"row-resize !important"}),iu=h(({level:e="section",label:t,children:r,initialExpanded:n=!0,colSpan:o=3})=>{let[a,i]=z(n),s=e==="subsection"?H3:U3,l=r?.length||0,u=e==="subsection"?`${l} item${l!==1?"s":""}`:"",d=`${a?"Hide":"Show"} ${e==="subsection"?l:t} item${l!==1?"s":""}`;return c.createElement(c.Fragment,null,c.createElement(z3,{title:d},c.createElement(s,{colSpan:1},c.createElement(w0,{onClick:m=>i(!a),tabIndex:0},d),c.createElement(q3,null,a?c.createElement(M3,null):c.createElement($3,null),t)),c.createElement(V3,{colSpan:o-1},c.createElement(w0,{onClick:m=>i(!a),tabIndex:-1,style:{outline:"none"}},d),a?null:u)),a?r:null)},"SectionRow"),G3=R.div(({theme:e})=>({width:"100%",borderSpacing:0,color:e.color.defaultText})),Va=R.div(({theme:e})=>({display:"flex",borderBottom:`1px solid ${e.appBorderColor}`,"&:last-child":{borderBottom:0}})),He=R.div(({position:e,theme:t})=>{let r={display:"flex",flexDirection:"column",gap:5,padding:"10px 15px",alignItems:"flex-start"};switch(e){case"first":return{...r,width:"25%",paddingLeft:20};case"second":return{...r,width:"35%"};case"third":return{...r,width:"15%"};case"last":return{...r,width:"25%",paddingRight:20}}}),_e=R.div(({theme:e,width:t,height:r})=>({animation:`${e.animation.glow} 1.5s ease-in-out infinite`,background:e.appBorderColor,width:t||"100%",height:r||16,borderRadius:3})),W3=h(()=>c.createElement(G3,null,c.createElement(Va,null,c.createElement(He,{position:"first"},c.createElement(_e,{width:"60%"})),c.createElement(He,{position:"second"},c.createElement(_e,{width:"30%"})),c.createElement(He,{position:"third"},c.createElement(_e,{width:"60%"})),c.createElement(He,{position:"last"},c.createElement(_e,{width:"60%"}))),c.createElement(Va,null,c.createElement(He,{position:"first"},c.createElement(_e,{width:"60%"})),c.createElement(He,{position:"second"},c.createElement(_e,{width:"80%"}),c.createElement(_e,{width:"30%"})),c.createElement(He,{position:"third"},c.createElement(_e,{width:"60%"})),c.createElement(He,{position:"last"},c.createElement(_e,{width:"60%"}))),c.createElement(Va,null,c.createElement(He,{position:"first"},c.createElement(_e,{width:"60%"})),c.createElement(He,{position:"second"},c.createElement(_e,{width:"80%"}),c.createElement(_e,{width:"30%"})),c.createElement(He,{position:"third"},c.createElement(_e,{width:"60%"})),c.createElement(He,{position:"last"},c.createElement(_e,{width:"60%"}))),c.createElement(Va,null,c.createElement(He,{position:"first"},c.createElement(_e,{width:"60%"})),c.createElement(He,{position:"second"},c.createElement(_e,{width:"80%"}),c.createElement(_e,{width:"30%"})),c.createElement(He,{position:"third"},c.createElement(_e,{width:"60%"})),c.createElement(He,{position:"last"},c.createElement(_e,{width:"60%"})))),"Skeleton"),Y3=R.table(({theme:e,compact:t,inAddonPanel:r})=>({"&&":{borderSpacing:0,color:e.color.defaultText,"td, th":{padding:0,border:"none",verticalAlign:"top",textOverflow:"ellipsis"},fontSize:e.typography.size.s2-1,lineHeight:"20px",textAlign:"left",width:"100%",marginTop:r?0:25,marginBottom:r?0:40,"thead th:first-of-type, td:first-of-type":{width:"25%"},"th:first-of-type, td:first-of-type":{paddingLeft:20},"th:nth-of-type(2), td:nth-of-type(2)":{...t?null:{width:"35%"}},"td:nth-of-type(3)":{...t?null:{width:"15%"}},"th:last-of-type, td:last-of-type":{paddingRight:20,...t?null:{width:"25%"}},th:{color:e.base==="light"?de(.25,e.color.defaultText):de(.45,e.color.defaultText),paddingTop:10,paddingBottom:10,paddingLeft:15,paddingRight:15},td:{paddingTop:"10px",paddingBottom:"10px","&:not(:first-of-type)":{paddingLeft:15,paddingRight:15},"&:last-of-type":{paddingRight:20}},marginLeft:r?0:1,marginRight:r?0:1,tbody:{...r?null:{filter:e.base==="light"?"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.10))":"drop-shadow(0px 1px 3px rgba(0, 0, 0, 0.20))"},"> tr > *":{background:e.background.content,borderTop:`1px solid ${e.appBorderColor}`},...r?null:{"> tr:first-of-type > *":{borderBlockStart:`1px solid ${e.appBorderColor}`},"> tr:last-of-type > *":{borderBlockEnd:`1px solid ${e.appBorderColor}`},"> tr > *:first-of-type":{borderInlineStart:`1px solid ${e.appBorderColor}`},"> tr > *:last-of-type":{borderInlineEnd:`1px solid ${e.appBorderColor}`},"> tr:first-of-type > td:first-of-type":{borderTopLeftRadius:e.appBorderRadius},"> tr:first-of-type > td:last-of-type":{borderTopRightRadius:e.appBorderRadius},"> tr:last-of-type > td:first-of-type":{borderBottomLeftRadius:e.appBorderRadius},"> tr:last-of-type > td:last-of-type":{borderBottomRightRadius:e.appBorderRadius}}}}})),K3=R.div({position:"relative"}),X3=R.div({position:"absolute",right:8,top:6}),J3={alpha:h((e,t)=>(e.name??"").localeCompare(t.name??""),"alpha"),requiredFirst:h((e,t)=>+!!t.type?.required-+!!e.type?.required||(e.name??"").localeCompare(t.name??""),"requiredFirst"),none:null},Z3=h((e,t)=>{let r={ungrouped:[],ungroupedSubsections:{},sections:{}};if(!e)return r;Object.entries(e).forEach(([a,i])=>{let{category:s,subcategory:l}=i?.table||{};if(s){let u=r.sections[s]||{ungrouped:[],subsections:{}};if(!l)u.ungrouped.push({key:a,...i});else{let d=u.subsections[l]||[];d.push({key:a,...i}),u.subsections[l]=d}r.sections[s]=u}else if(l){let u=r.ungroupedSubsections[l]||[];u.push({key:a,...i}),r.ungroupedSubsections[l]=u}else r.ungrouped.push({key:a,...i})});let n=J3[t],o=h(a=>n?Object.keys(a).reduce((i,s)=>({...i,[s]:a[s].sort(n)}),{}):a,"sortSubsection");return{ungrouped:n?r.ungrouped.sort(n):r.ungrouped,ungroupedSubsections:o(r.ungroupedSubsections),sections:Object.keys(r.sections).reduce((a,i)=>({...a,[i]:{ungrouped:n?r.sections[i].ungrouped.sort(n):r.sections[i].ungrouped,subsections:o(r.sections[i].subsections)}}),{})}},"groupRows"),Q3=h((e,t,r)=>{try{return Zr(e,t,r)}catch(n){return yt.warn(n.message),!1}},"safeIncludeConditionalArg"),eT=h(e=>{let{updateArgs:t,resetArgs:r,compact:n,inAddonPanel:o,initialExpandedArgs:a,sort:i="none",isLoading:s}=e;if("error"in e){let{error:x}=e;return c.createElement(mb,null,x,"\xA0",c.createElement(Ze,{href:"http://storybook.js.org/docs/?ref=ui",target:"_blank",withArrow:!0},c.createElement(yr,null)," Read the docs"))}if(s)return c.createElement(W3,null);let{rows:l,args:u,globals:d}="rows"in e?e:{rows:void 0,args:void 0,globals:void 0},m=Z3(By(l||{},x=>!x?.table?.disable&&Q3(x,u||{},d||{})),i),p=m.ungrouped.length===0,f=Object.entries(m.sections).length===0,g=Object.entries(m.ungroupedSubsections).length===0;if(p&&f&&g)return c.createElement(j3,{inAddonPanel:o});let y=1;t&&(y+=1),n||(y+=2);let E=Object.keys(m.sections).length>0,b={updateArgs:t,compact:n,inAddonPanel:o,initialExpandedArgs:a};return c.createElement(wi,null,c.createElement(K3,null,t&&!s&&r&&c.createElement(X3,null,c.createElement(ce,{onClick:()=>r(),"aria-label":"Reset controls",title:"Reset controls"},c.createElement(xo,null))),c.createElement(Y3,{compact:n,inAddonPanel:o,className:"docblock-argstable sb-unstyled"},c.createElement("thead",{className:"docblock-argstable-head"},c.createElement("tr",null,c.createElement("th",null,c.createElement("span",null,"Name")),n?null:c.createElement("th",null,c.createElement("span",null,"Description")),n?null:c.createElement("th",null,c.createElement("span",null,"Default")),t?c.createElement("th",null,c.createElement("span",null,"Control")):null)),c.createElement("tbody",{className:"docblock-argstable-body"},m.ungrouped.map(x=>c.createElement(Ha,{key:x.key,row:x,arg:u&&u[x.key],...b})),Object.entries(m.ungroupedSubsections).map(([x,S])=>c.createElement(iu,{key:x,label:x,level:"subsection",colSpan:y},S.map(T=>c.createElement(Ha,{key:T.key,row:T,arg:u&&u[T.key],expandable:E,...b})))),Object.entries(m.sections).map(([x,S])=>c.createElement(iu,{key:x,label:x,level:"section",colSpan:y},S.ungrouped.map(T=>c.createElement(Ha,{key:T.key,row:T,arg:u&&u[T.key],...b})),Object.entries(S.subsections).map(([T,_])=>c.createElement(iu,{key:T,label:T,level:"subsection",colSpan:y},_.map(O=>c.createElement(Ha,{key:O.key,row:O,arg:u&&u[O.key],expandable:E,...b}))))))))))},"ArgsTable"),Bu="addon-controls",o1="controls",tT=Oi({from:{transform:"translateY(40px)"},to:{transform:"translateY(0)"}}),rT=Oi({from:{background:"var(--highlight-bg-color)"},to:{}}),nT=R.div({containerType:"size",position:"sticky",bottom:0,height:39,overflow:"hidden",zIndex:1}),oT=R(Tn)(({theme:e})=>({"--highlight-bg-color":e.base==="dark"?"#153B5B":"#E0F0FF",display:"flex",flexDirection:"row-reverse",alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:6,padding:"6px 10px",animation:`${tT} 300ms, ${rT} 2s`,background:e.background.bar,borderTop:`1px solid ${e.appBorderColor}`,fontSize:e.typography.size.s2,"@container (max-width: 799px)":{flexDirection:"row",justifyContent:"flex-end"}})),aT=R.div({display:"flex",flex:"99 0 auto",alignItems:"center",marginLeft:10,gap:6}),iT=R.div(({theme:e})=>({display:"flex",flex:"1 0 0",alignItems:"center",gap:2,color:e.color.mediumdark,fontSize:e.typography.size.s2})),su=R.div({"@container (max-width: 799px)":{lineHeight:0,textIndent:"-9999px","&::after":{content:"attr(data-short-label)",display:"block",lineHeight:"initial",textIndent:"0"}}}),sT=R($e.Input)(({theme:e})=>({"::placeholder":{color:e.color.mediumdark},"&:invalid:not(:placeholder-shown)":{boxShadow:`${e.color.negative} 0 0 0 1px inset`}})),lT=h(({saveStory:e,createStory:t,resetArgs:r,portalSelector:n})=>{let o=c.useRef(null),[a,i]=c.useState(!1),[s,l]=c.useState(!1),[u,d]=c.useState(""),[m,p]=c.useState(null),f=h(async()=>{a||(i(!0),await e().catch(()=>{}),i(!1))},"onSaveStory"),g=h(()=>{l(!0),d(""),setTimeout(()=>o.current?.focus(),0)},"onShowForm"),y=h(E=>{let b=E.target.value.replace(/^[^a-z]/i,"").replace(/[^a-z0-9-_ ]/gi,"").replaceAll(/([-_ ]+[a-z0-9])/gi,x=>x.toUpperCase().replace(/[-_ ]/g,""));d(b.charAt(0).toUpperCase()+b.slice(1))},"onChange");return c.createElement(nT,{id:"save-from-controls"},c.createElement(oT,null,c.createElement(iT,null,c.createElement(De,{as:"div",hasChrome:!1,trigger:"hover",tooltip:c.createElement(vt,{note:"Save changes to story"})},c.createElement(ce,{"aria-label":"Save changes to story",disabled:a,onClick:f},c.createElement(yo,null),c.createElement(su,{"data-short-label":"Save"},"Update story"))),c.createElement(De,{as:"div",hasChrome:!1,trigger:"hover",tooltip:c.createElement(vt,{note:"Create new story with these settings"})},c.createElement(ce,{"aria-label":"Create new story with these settings",onClick:g},c.createElement(go,null),c.createElement(su,{"data-short-label":"New"},"Create new story"))),c.createElement(De,{as:"div",hasChrome:!1,trigger:"hover",tooltip:c.createElement(vt,{note:"Reset changes"})},c.createElement(ce,{"aria-label":"Reset changes",onClick:()=>r()},c.createElement(xo,null),c.createElement("span",null,"Reset")))),c.createElement(aT,null,c.createElement(su,{"data-short-label":"Unsaved changes"},"You modified this story. Do you want to save your changes?")),c.createElement(It,{width:350,open:s,onOpenChange:l,portalSelector:n},c.createElement($e,{onSubmit:h(async E=>{if(E.preventDefault(),!a)try{p(null),i(!0),await t(u.replace(/^[^a-z]/i,"").replaceAll(/[^a-z0-9]/gi,"")),l(!1),i(!1)}catch(b){p(b.message),i(!1)}},"onSubmitForm"),id:"create-new-story-form"},c.createElement(It.Content,null,c.createElement(It.Header,null,c.createElement(It.Title,null,"Create new story"),c.createElement(It.Description,null,"This will add a new story to your existing stories file.")),c.createElement(sT,{onChange:y,placeholder:"Story export name",readOnly:a,ref:o,value:u}),c.createElement(It.Actions,null,c.createElement(Je,{disabled:a||!u,size:"medium",type:"submit",variant:"solid"},"Create"),c.createElement(It.Dialog.Close,{asChild:!0},c.createElement(Je,{disabled:a,size:"medium",type:"reset"},"Cancel"))))),m&&c.createElement(It.Error,null,m))))},"SaveStory"),S0=h(e=>Object.entries(e).reduce((t,[r,n])=>n!==void 0?Object.assign(t,{[r]:n}):t,{}),"clean"),uT=R.div({display:"grid",gridTemplateRows:"1fr 39px",height:"100%",maxHeight:"100vh",overflowY:"auto"}),cT=h(({saveStory:e,createStory:t})=>{let[r,n]=z(!0),[o,a,i,s]=od(),[l]=Rt(),u=So(),{expanded:d,sort:m,presetColors:p,disableSaveFromUI:f=!1}=tr(o1,{}),{path:g,previewInitialized:y}=ad();X(()=>{y&&n(!1)},[y]);let E=Object.values(u).some(S=>S?.control),b=Object.entries(u).reduce((S,[T,_])=>{let O=_?.control;return typeof O!="object"||O?.type!=="color"||O?.presetColors?S[T]=_:S[T]={..._,control:{...O,presetColors:p}},S},{}),x=Me(()=>!!o&&!!s&&!fr(S0(o),S0(s)),[o,s]);return c.createElement(uT,null,c.createElement(eT,{key:g,compact:!d&&E,rows:b,args:o,globals:l,updateArgs:a,resetArgs:i,inAddonPanel:!0,sort:m,isLoading:r}),E&&x&&H.CONFIG_TYPE==="DEVELOPMENT"&&f!==!0&&c.createElement(lT,{resetArgs:i,saveStory:e,createStory:t}))},"ControlsPanel");function a1(){let e=tt().getSelectedPanel(),t=So(),r=Object.values(t).filter(n=>n?.control&&!n?.table?.disable).length;return c.createElement("div",{style:{display:"flex",alignItems:"center",gap:6}},c.createElement("span",null,"Controls"),r===0?null:c.createElement(gr,{compact:!0,status:e===Bu?"active":"neutral"},r))}h(a1,"Title");var C0=h(e=>JSON.stringify(e,(t,r)=>typeof r=="function"?"__sb_empty_function_arg__":r),"stringifyArgs"),X$=ve.register(Bu,e=>{if(globalThis?.FEATURES?.controls){let t=ve.getChannel(),r=h(async()=>{let o=e.getCurrentStoryData();if(o.type!=="story")throw new Error("Not a story");try{let a=await Ri(t,Fi,Io,{args:C0(Object.entries(o.args||{}).reduce((i,[s,l])=>(fr(l,o.initialArgs?.[s])||(i[s]=l),i),{})),csfId:o.id,importPath:o.importPath});e.addNotification({id:"save-story-success",icon:c.createElement(ki,{color:wo.positive}),content:{headline:"Story saved",subHeadline:c.createElement(c.Fragment,null,"Updated story ",c.createElement("b",null,a.sourceStoryName),".")},duration:8e3})}catch(a){throw e.addNotification({id:"save-story-error",icon:c.createElement(Ic,{color:wo.negative}),content:{headline:"Failed to save story",subHeadline:a?.message||"Check the Storybook process on the command line for more details."},duration:8e3}),a}},"saveStory"),n=h(async o=>{let a=e.getCurrentStoryData();if(a.type!=="story")throw new Error("Not a story");let i=await Ri(t,Fi,Io,{args:a.args&&C0(a.args),csfId:a.id,importPath:a.importPath,name:o});e.addNotification({id:"save-story-success",icon:c.createElement(ki,{color:wo.positive}),content:{headline:"Story created",subHeadline:c.createElement(c.Fragment,null,"Added story ",c.createElement("b",null,i.newStoryName)," based on ",c.createElement("b",null,i.sourceStoryName),".")},duration:8e3,onClick:h(({onDismiss:s})=>{s(),e.selectStory(i.newStoryId)},"onClick")})},"createStory");ve.add(Bu,{title:a1,type:et.PANEL,paramKey:o1,render:h(({active:o})=>!o||!e.getCurrentStoryData()?null:c.createElement(Dn,{active:o},c.createElement(cT,{saveStory:r,createStory:n})),"render")}),t.on(Io,o=>{if(!o.success)return;let a=e.getCurrentStoryData();a.type==="story"&&(e.resetStoryArgs(a),o.payload.newStoryId&&e.selectStory(o.payload.newStoryId))})}}),dT="actions",lo="storybook/actions",i1=`${lo}/panel`,_u=`${lo}/action-event`,s1=`${lo}/action-clear`;function l1(){let e=tt().getSelectedPanel(),[{count:t},r]=jr(lo,{count:0});return Co({[_u]:()=>{r(n=>({...n,count:n.count+1}))},[Er]:()=>{r(n=>({...n,count:0}))},[s1]:()=>{r(n=>({...n,count:0}))}}),c.createElement("div",{style:{display:"flex",alignItems:"center",gap:6}},c.createElement("span",null,"Actions"),t===0?null:c.createElement(gr,{compact:!0,status:e===i1?"active":"neutral"},t))}h(l1,"Title");var pT=Object.create,cc=Object.defineProperty,mT=Object.getOwnPropertyDescriptor,u1=Object.getOwnPropertyNames,hT=Object.getPrototypeOf,fT=Object.prototype.hasOwnProperty,dc=h((e,t)=>h(function(){return t||(0,e[u1(e)[0]])((t={exports:{}}).exports,t),t.exports},"__require"),"__commonJS"),gT=h((e,t)=>{for(var r in t)cc(e,r,{get:t[r],enumerable:!0})},"__export"),yT=h((e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of u1(t))!fT.call(e,o)&&o!==r&&cc(e,o,{get:h(()=>t[o],"get"),enumerable:!(n=mT(t,o))||n.enumerable});return e},"__copyProps"),bT=h((e,t,r)=>(r=e!=null?pT(hT(e)):{},yT(t||!e||!e.__esModule?cc(r,"default",{value:e,enumerable:!0}):r,e)),"__toESM"),ET=dc({"node_modules/is-object/index.js"(e,t){"use strict";t.exports=h(function(r){return typeof r=="object"&&r!==null},"isObject")}}),vT=dc({"node_modules/is-window/index.js"(e,t){"use strict";t.exports=function(r){if(r==null)return!1;var n=Object(r);return n===n.window}}}),AT=dc({"node_modules/is-dom/index.js"(e,t){var r=ET(),n=vT();function o(a){return!r(a)||!n(window)||typeof window.Node!="function"?!1:typeof a.nodeType=="number"&&typeof a.nodeName=="string"}h(o,"isNode"),t.exports=o}}),ai={};gT(ai,{chromeDark:h(()=>xT,"chromeDark"),chromeLight:h(()=>wT,"chromeLight")});var xT={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"rgb(36, 36, 36)",BASE_COLOR:"rgb(213, 213, 213)",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(227, 110, 236)",OBJECT_VALUE_NULL_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(127, 127, 127)",OBJECT_VALUE_REGEXP_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_STRING_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(233, 63, 59)",OBJECT_VALUE_NUMBER_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_BOOLEAN_COLOR:"hsl(252, 100%, 75%)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(85, 106, 242)",HTML_TAG_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_COLOR:"rgb(93, 176, 215)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(155, 187, 220)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(242, 151, 102)",HTML_COMMENT_COLOR:"rgb(137, 137, 137)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"rgb(145, 145, 145)",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"rgb(85, 85, 85)",TABLE_TH_BACKGROUND_COLOR:"rgb(44, 44, 44)",TABLE_TH_HOVER_COLOR:"rgb(48, 48, 48)",TABLE_SORT_ICON_COLOR:"black",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(51, 139, 255, 0.0980392) 50%, rgba(51, 139, 255, 0.0980392))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},wT={BASE_FONT_FAMILY:"Menlo, monospace",BASE_FONT_SIZE:"11px",BASE_LINE_HEIGHT:1.2,BASE_BACKGROUND_COLOR:"white",BASE_COLOR:"black",OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES:10,OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES:5,OBJECT_NAME_COLOR:"rgb(136, 19, 145)",OBJECT_VALUE_NULL_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_UNDEFINED_COLOR:"rgb(128, 128, 128)",OBJECT_VALUE_REGEXP_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_STRING_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_SYMBOL_COLOR:"rgb(196, 26, 22)",OBJECT_VALUE_NUMBER_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_BOOLEAN_COLOR:"rgb(28, 0, 207)",OBJECT_VALUE_FUNCTION_PREFIX_COLOR:"rgb(13, 34, 170)",HTML_TAG_COLOR:"rgb(168, 148, 166)",HTML_TAGNAME_COLOR:"rgb(136, 18, 128)",HTML_TAGNAME_TEXT_TRANSFORM:"lowercase",HTML_ATTRIBUTE_NAME_COLOR:"rgb(153, 69, 0)",HTML_ATTRIBUTE_VALUE_COLOR:"rgb(26, 26, 166)",HTML_COMMENT_COLOR:"rgb(35, 110, 37)",HTML_DOCTYPE_COLOR:"rgb(192, 192, 192)",ARROW_COLOR:"#6e6e6e",ARROW_MARGIN_RIGHT:3,ARROW_FONT_SIZE:12,ARROW_ANIMATION_DURATION:"0",TREENODE_FONT_FAMILY:"Menlo, monospace",TREENODE_FONT_SIZE:"11px",TREENODE_LINE_HEIGHT:1.2,TREENODE_PADDING_LEFT:12,TABLE_BORDER_COLOR:"#aaa",TABLE_TH_BACKGROUND_COLOR:"#eee",TABLE_TH_HOVER_COLOR:"hsla(0, 0%, 90%, 1)",TABLE_SORT_ICON_COLOR:"#6e6e6e",TABLE_DATA_BACKGROUND_IMAGE:"linear-gradient(to bottom, white, white 50%, rgb(234, 243, 255) 50%, rgb(234, 243, 255))",TABLE_DATA_BACKGROUND_SIZE:"128px 32px"},c1=Lr([{},()=>{}]),lu={WebkitTouchCallout:"none",WebkitUserSelect:"none",KhtmlUserSelect:"none",MozUserSelect:"none",msUserSelect:"none",OUserSelect:"none",userSelect:"none"},Qa=h(e=>({DOMNodePreview:{htmlOpenTag:{base:{color:e.HTML_TAG_COLOR},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM},htmlAttributeName:{color:e.HTML_ATTRIBUTE_NAME_COLOR},htmlAttributeValue:{color:e.HTML_ATTRIBUTE_VALUE_COLOR}},htmlCloseTag:{base:{color:e.HTML_TAG_COLOR},offsetLeft:{marginLeft:-e.TREENODE_PADDING_LEFT},tagName:{color:e.HTML_TAGNAME_COLOR,textTransform:e.HTML_TAGNAME_TEXT_TRANSFORM}},htmlComment:{color:e.HTML_COMMENT_COLOR},htmlDoctype:{color:e.HTML_DOCTYPE_COLOR}},ObjectPreview:{objectDescription:{fontStyle:"italic"},preview:{fontStyle:"italic"},arrayMaxProperties:e.OBJECT_PREVIEW_ARRAY_MAX_PROPERTIES,objectMaxProperties:e.OBJECT_PREVIEW_OBJECT_MAX_PROPERTIES},ObjectName:{base:{color:e.OBJECT_NAME_COLOR},dimmed:{opacity:.6}},ObjectValue:{objectValueNull:{color:e.OBJECT_VALUE_NULL_COLOR},objectValueUndefined:{color:e.OBJECT_VALUE_UNDEFINED_COLOR},objectValueRegExp:{color:e.OBJECT_VALUE_REGEXP_COLOR},objectValueString:{color:e.OBJECT_VALUE_STRING_COLOR},objectValueSymbol:{color:e.OBJECT_VALUE_SYMBOL_COLOR},objectValueNumber:{color:e.OBJECT_VALUE_NUMBER_COLOR},objectValueBoolean:{color:e.OBJECT_VALUE_BOOLEAN_COLOR},objectValueFunctionPrefix:{color:e.OBJECT_VALUE_FUNCTION_PREFIX_COLOR,fontStyle:"italic"},objectValueFunctionName:{fontStyle:"italic"}},TreeView:{treeViewOutline:{padding:0,margin:0,listStyleType:"none"}},TreeNode:{treeNodeBase:{color:e.BASE_COLOR,backgroundColor:e.BASE_BACKGROUND_COLOR,lineHeight:e.TREENODE_LINE_HEIGHT,cursor:"default",boxSizing:"border-box",listStyle:"none",fontFamily:e.TREENODE_FONT_FAMILY,fontSize:e.TREENODE_FONT_SIZE},treeNodePreviewContainer:{},treeNodePlaceholder:{whiteSpace:"pre",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...lu},treeNodeArrow:{base:{color:e.ARROW_COLOR,display:"inline-block",fontSize:e.ARROW_FONT_SIZE,marginRight:e.ARROW_MARGIN_RIGHT,...parseFloat(e.ARROW_ANIMATION_DURATION)>0?{transition:`transform ${e.ARROW_ANIMATION_DURATION} ease 0s`}:{},...lu},expanded:{WebkitTransform:"rotateZ(90deg)",MozTransform:"rotateZ(90deg)",transform:"rotateZ(90deg)"},collapsed:{WebkitTransform:"rotateZ(0deg)",MozTransform:"rotateZ(0deg)",transform:"rotateZ(0deg)"}},treeNodeChildNodesContainer:{margin:0,paddingLeft:e.TREENODE_PADDING_LEFT}},TableInspector:{base:{color:e.BASE_COLOR,position:"relative",border:`1px solid ${e.TABLE_BORDER_COLOR}`,fontFamily:e.BASE_FONT_FAMILY,fontSize:e.BASE_FONT_SIZE,lineHeight:"120%",boxSizing:"border-box",cursor:"default"}},TableInspectorHeaderContainer:{base:{top:0,height:"17px",left:0,right:0,overflowX:"hidden"},table:{tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",height:"100%",width:"100%",margin:0}},TableInspectorDataContainer:{tr:{display:"table-row"},td:{boxSizing:"border-box",border:"none",height:"16px",verticalAlign:"top",padding:"1px 4px",WebkitUserSelect:"text",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px"},div:{position:"static",top:"17px",bottom:0,overflowY:"overlay",transform:"translateZ(0)",left:0,right:0,overflowX:"hidden"},table:{positon:"static",left:0,top:0,right:0,bottom:0,borderTop:"0 none transparent",margin:0,backgroundImage:e.TABLE_DATA_BACKGROUND_IMAGE,backgroundSize:e.TABLE_DATA_BACKGROUND_SIZE,tableLayout:"fixed",borderSpacing:0,borderCollapse:"separate",width:"100%",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorTH:{base:{position:"relative",height:"auto",textAlign:"left",backgroundColor:e.TABLE_TH_BACKGROUND_COLOR,borderBottom:`1px solid ${e.TABLE_BORDER_COLOR}`,fontWeight:"normal",verticalAlign:"middle",padding:"0 4px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",lineHeight:"14px",":hover":{backgroundColor:e.TABLE_TH_HOVER_COLOR}},div:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",fontSize:e.BASE_FONT_SIZE,lineHeight:"120%"}},TableInspectorLeftBorder:{none:{borderLeft:"none"},solid:{borderLeft:`1px solid ${e.TABLE_BORDER_COLOR}`}},TableInspectorSortIcon:{display:"block",marginRight:3,width:8,height:7,marginTop:-7,color:e.TABLE_SORT_ICON_COLOR,fontSize:12,...lu}}),"createTheme"),Fu="chromeLight",d1=Lr(Qa(ai[Fu])),pt=h(e=>mo(d1)[e],"useStyles"),pc=h(e=>h(({theme:t=Fu,...r})=>{let n=Me(()=>{switch(Object.prototype.toString.call(t)){case"[object String]":return Qa(ai[t]);case"[object Object]":return Qa(t);default:return Qa(ai[Fu])}},[t]);return c.createElement(d1.Provider,{value:n},c.createElement(e,{...r}))},"ThemeAcceptor"),"themeAcceptor"),ST=h(({expanded:e,styles:t})=>c.createElement("span",{style:{...t.base,...e?t.expanded:t.collapsed}},"\u25B6"),"Arrow"),CT=Xe(e=>{e={expanded:!0,nodeRenderer:h(({name:d})=>c.createElement("span",null,d),"nodeRenderer"),onClick:h(()=>{},"onClick"),shouldShowArrow:!1,shouldShowPlaceholder:!0,...e};let{expanded:t,onClick:r,children:n,nodeRenderer:o,title:a,shouldShowArrow:i,shouldShowPlaceholder:s}=e,l=pt("TreeNode"),u=o;return c.createElement("li",{"aria-expanded":t,role:"treeitem",style:l.treeNodeBase,title:a},c.createElement("div",{style:l.treeNodePreviewContainer,onClick:r},i||po.count(n)>0?c.createElement(ST,{expanded:t,styles:l.treeNodeArrow}):s&&c.createElement("span",{style:l.treeNodePlaceholder},"\xA0"),c.createElement(u,{...e})),c.createElement("ol",{role:"group",style:l.treeNodeChildNodesContainer},t?n:void 0))}),ii="$",D0="*";function to(e,t){return!t(e).next().done}h(to,"hasChildNodes");var DT=h(e=>Array.from({length:e},(t,r)=>[ii].concat(Array.from({length:r},()=>"*")).join(".")),"wildcardPathsFromLevel"),TT=h((e,t,r,n,o)=>{let a=[].concat(DT(n)).concat(r).filter(s=>typeof s=="string"),i=[];return a.forEach(s=>{let l=s.split("."),u=h((d,m,p)=>{if(p===l.length){i.push(m);return}let f=l[p];if(p===0)to(d,t)&&(f===ii||f===D0)&&u(d,ii,p+1);else if(f===D0)for(let{name:g,data:y}of t(d))to(y,t)&&u(y,`${m}.${g}`,p+1);else{let g=d[f];to(g,t)&&u(g,`${m}.${f}`,p+1)}},"populatePaths");u(e,"",0)}),i.reduce((s,l)=>(s[l]=!0,s),{...o})},"getExpandedPaths"),p1=Xe(e=>{let{data:t,dataIterator:r,path:n,depth:o,nodeRenderer:a}=e,[i,s]=mo(c1),l=to(t,r),u=!!i[n],d=Q(()=>l&&s(m=>({...m,[n]:!u})),[l,s,n,u]);return c.createElement(CT,{expanded:u,onClick:d,shouldShowArrow:l,shouldShowPlaceholder:o>0,nodeRenderer:a,...e},u?[...r(t)].map(({name:m,data:p,...f})=>c.createElement(p1,{name:m,data:p,depth:o+1,path:`${n}.${m}`,key:m,dataIterator:r,nodeRenderer:a,...f})):null)}),m1=Xe(({name:e,data:t,dataIterator:r,nodeRenderer:n,expandPaths:o,expandLevel:a})=>{let i=pt("TreeView"),s=z({}),[,l]=s;return ho(()=>l(u=>TT(t,r,o,a,u)),[t,r,o,a]),c.createElement(c1.Provider,{value:s},c.createElement("ol",{role:"tree",style:i.treeViewOutline},c.createElement(p1,{name:e,data:t,dataIterator:r,depth:0,path:ii,nodeRenderer:n})))}),mc=h(({name:e,dimmed:t=!1,styles:r={}})=>{let n=pt("ObjectName"),o={...n.base,...t?n.dimmed:{},...r};return c.createElement("span",{style:o},e)},"ObjectName"),ro=h(({object:e,styles:t})=>{let r=pt("ObjectValue"),n=h(o=>({...r[o],...t}),"mkStyle");switch(typeof e){case"bigint":return c.createElement("span",{style:n("objectValueNumber")},String(e),"n");case"number":return c.createElement("span",{style:n("objectValueNumber")},String(e));case"string":return c.createElement("span",{style:n("objectValueString")},'"',e,'"');case"boolean":return c.createElement("span",{style:n("objectValueBoolean")},String(e));case"undefined":return c.createElement("span",{style:n("objectValueUndefined")},"undefined");case"object":return e===null?c.createElement("span",{style:n("objectValueNull")},"null"):e instanceof Date?c.createElement("span",null,e.toString()):e instanceof RegExp?c.createElement("span",{style:n("objectValueRegExp")},e.toString()):Array.isArray(e)?c.createElement("span",null,`Array(${e.length})`):e.constructor?typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)?c.createElement("span",null,`Buffer[${e.length}]`):c.createElement("span",null,e.constructor.name):c.createElement("span",null,"Object");case"function":return c.createElement("span",null,c.createElement("span",{style:n("objectValueFunctionPrefix")},"\u0192\xA0"),c.createElement("span",{style:n("objectValueFunctionName")},e.name,"()"));case"symbol":return c.createElement("span",{style:n("objectValueSymbol")},e.toString());default:return c.createElement("span",null)}},"ObjectValue"),h1=Object.prototype.hasOwnProperty,kT=Object.prototype.propertyIsEnumerable;function si(e,t){let r=Object.getOwnPropertyDescriptor(e,t);if(r.get)try{return r.get()}catch{return r.get}return e[t]}h(si,"getPropertyValue");function Pu(e,t){return e.length===0?[]:e.slice(1).reduce((r,n)=>r.concat([t,n]),[e[0]])}h(Pu,"intersperse");var Nu=h(({data:e})=>{let t=pt("ObjectPreview"),r=e;if(typeof r!="object"||r===null||r instanceof Date||r instanceof RegExp)return c.createElement(ro,{object:r});if(Array.isArray(r)){let n=t.arrayMaxProperties,o=r.slice(0,n).map((i,s)=>c.createElement(ro,{key:s,object:i}));r.length>n&&o.push(c.createElement("span",{key:"ellipsis"},"\u2026"));let a=r.length;return c.createElement(c.Fragment,null,c.createElement("span",{style:t.objectDescription},a===0?"":`(${a})\xA0`),c.createElement("span",{style:t.preview},"[",Pu(o,", "),"]"))}else{let n=t.objectMaxProperties,o=[];for(let i in r)if(h1.call(r,i)){let s;o.length===n-1&&Object.keys(r).length>n&&(s=c.createElement("span",{key:"ellipsis"},"\u2026"));let l=si(r,i);if(o.push(c.createElement("span",{key:i},c.createElement(mc,{name:i||'""'}),":\xA0",c.createElement(ro,{object:l}),s)),s)break}let a=r.constructor?r.constructor.name:"Object";return c.createElement(c.Fragment,null,c.createElement("span",{style:t.objectDescription},a==="Object"?"":`${a} `),c.createElement("span",{style:t.preview},"{",Pu(o,", "),"}"))}},"ObjectPreview"),OT=h(({name:e,data:t})=>typeof e=="string"?c.createElement("span",null,c.createElement(mc,{name:e}),c.createElement("span",null,": "),c.createElement(Nu,{data:t})):c.createElement(Nu,{data:t}),"ObjectRootLabel"),IT=h(({name:e,data:t,isNonenumerable:r=!1})=>{let n=t;return c.createElement("span",null,typeof e=="string"?c.createElement(mc,{name:e,dimmed:r}):c.createElement(Nu,{data:e}),c.createElement("span",null,": "),c.createElement(ro,{object:n}))},"ObjectLabel"),RT=h((e,t)=>h(function*(r){if(!(typeof r=="object"&&r!==null||typeof r=="function"))return;let n=Array.isArray(r);if(!n&&r[Symbol.iterator]){let o=0;for(let a of r){if(Array.isArray(a)&&a.length===2){let[i,s]=a;yield{name:i,data:s}}else yield{name:o.toString(),data:a};o++}}else{let o=Object.getOwnPropertyNames(r);t===!0&&!n?o.sort():typeof t=="function"&&o.sort(t);for(let a of o)if(kT.call(r,a)){let i=si(r,a);yield{name:a||'""',data:i}}else if(e){let i;try{i=si(r,a)}catch{}i!==void 0&&(yield{name:a,data:i,isNonenumerable:!0})}e&&r!==Object.prototype&&(yield{name:"__proto__",data:Object.getPrototypeOf(r),isNonenumerable:!0})}},"objectIterator"),"createIterator"),BT=h(({depth:e,name:t,data:r,isNonenumerable:n})=>e===0?c.createElement(OT,{name:t,data:r}):c.createElement(IT,{name:t,data:r,isNonenumerable:n}),"defaultNodeRenderer"),_T=h(({showNonenumerable:e=!1,sortObjectKeys:t,nodeRenderer:r,...n})=>{let o=RT(e,t),a=r||BT;return c.createElement(m1,{nodeRenderer:a,dataIterator:o,...n})},"ObjectInspector"),FT=pc(_T);function f1(e){if(typeof e=="object"){let t=[];if(Array.isArray(e)){let n=e.length;t=[...Array(n).keys()]}else e!==null&&(t=Object.keys(e));let r=t.reduce((n,o)=>{let a=e[o];return typeof a=="object"&&a!==null&&Object.keys(a).reduce((i,s)=>(i.includes(s)||i.push(s),i),n),n},[]);return{rowHeaders:t,colHeaders:r}}}h(f1,"getHeaders");var PT=h(({rows:e,columns:t,rowsData:r})=>{let n=pt("TableInspectorDataContainer"),o=pt("TableInspectorLeftBorder");return c.createElement("div",{style:n.div},c.createElement("table",{style:n.table},c.createElement("colgroup",null),c.createElement("tbody",null,e.map((a,i)=>c.createElement("tr",{key:a,style:n.tr},c.createElement("td",{style:{...n.td,...o.none}},a),t.map(s=>{let l=r[i];return typeof l=="object"&&l!==null&&h1.call(l,s)?c.createElement("td",{key:s,style:{...n.td,...o.solid}},c.createElement(ro,{object:l[s]})):c.createElement("td",{key:s,style:{...n.td,...o.solid}})}))))))},"DataContainer"),NT=h(e=>c.createElement("div",{style:{position:"absolute",top:1,right:0,bottom:1,display:"flex",alignItems:"center"}},e.children),"SortIconContainer"),LT=h(({sortAscending:e})=>{let t=pt("TableInspectorSortIcon"),r=e?"\u25B2":"\u25BC";return c.createElement("div",{style:t},r)},"SortIcon"),T0=h(({sortAscending:e=!1,sorted:t=!1,onClick:r=void 0,borderStyle:n={},children:o,...a})=>{let i=pt("TableInspectorTH"),[s,l]=z(!1),u=Q(()=>l(!0),[]),d=Q(()=>l(!1),[]);return c.createElement("th",{...a,style:{...i.base,...n,...s?i.base[":hover"]:{}},onMouseEnter:u,onMouseLeave:d,onClick:r},c.createElement("div",{style:i.div},o),t&&c.createElement(NT,null,c.createElement(LT,{sortAscending:e})))},"TH"),jT=h(({indexColumnText:e="(index)",columns:t=[],sorted:r,sortIndexColumn:n,sortColumn:o,sortAscending:a,onTHClick:i,onIndexTHClick:s})=>{let l=pt("TableInspectorHeaderContainer"),u=pt("TableInspectorLeftBorder");return c.createElement("div",{style:l.base},c.createElement("table",{style:l.table},c.createElement("tbody",null,c.createElement("tr",null,c.createElement(T0,{borderStyle:u.none,sorted:r&&n,sortAscending:a,onClick:s},e),t.map(d=>c.createElement(T0,{borderStyle:u.solid,key:d,sorted:r&&o===d,sortAscending:a,onClick:i.bind(null,d)},d))))))},"HeaderContainer"),MT=h(({data:e,columns:t})=>{let r=pt("TableInspector"),[{sorted:n,sortIndexColumn:o,sortColumn:a,sortAscending:i},s]=z({sorted:!1,sortIndexColumn:!1,sortColumn:void 0,sortAscending:!1}),l=Q(()=>{s(({sortIndexColumn:g,sortAscending:y})=>({sorted:!0,sortIndexColumn:!0,sortColumn:void 0,sortAscending:g?!y:!0}))},[]),u=Q(g=>{s(({sortColumn:y,sortAscending:E})=>({sorted:!0,sortIndexColumn:!1,sortColumn:g,sortAscending:g===y?!E:!0}))},[]);if(typeof e!="object"||e===null)return c.createElement("div",null);let{rowHeaders:d,colHeaders:m}=f1(e);t!==void 0&&(m=t);let p=d.map(g=>e[g]),f;if(a!==void 0?f=p.map((g,y)=>typeof g=="object"&&g!==null?[g[a],y]:[void 0,y]):o&&(f=d.map((g,y)=>[d[y],y])),f!==void 0){let g=h((E,b)=>(x,S)=>{let T=E(x),_=E(S),O=typeof T,k=typeof _,B=h((L,j)=>Lj?1:0,"lt"),P;if(O===k)P=B(T,_);else{let L={string:0,number:1,object:2,symbol:3,boolean:4,undefined:5,function:6};P=B(L[O],L[k])}return b||(P=-P),P},"comparator"),y=f.sort(g(E=>E[0],i)).map(E=>E[1]);d=y.map(E=>d[E]),p=y.map(E=>p[E])}return c.createElement("div",{style:r.base},c.createElement(jT,{columns:m,sorted:n,sortIndexColumn:o,sortColumn:a,sortAscending:i,onTHClick:u,onIndexTHClick:l}),c.createElement(PT,{rows:d,columns:m,rowsData:p}))},"TableInspector"),$T=pc(MT),qT=80,g1=h(e=>e.childNodes.length===0||e.childNodes.length===1&&e.childNodes[0].nodeType===Node.TEXT_NODE&&e.textContent.lengthc.createElement("span",{style:r.base},"<",c.createElement("span",{style:r.tagName},e),(()=>{if(t){let n=[];for(let o=0;o"),"OpenTag"),k0=h(({tagName:e,isChildNode:t=!1,styles:r})=>c.createElement("span",{style:Object.assign({},r.base,t&&r.offsetLeft)},""),"CloseTag"),HT={1:"ELEMENT_NODE",3:"TEXT_NODE",7:"PROCESSING_INSTRUCTION_NODE",8:"COMMENT_NODE",9:"DOCUMENT_NODE",10:"DOCUMENT_TYPE_NODE",11:"DOCUMENT_FRAGMENT_NODE"},VT=h(({isCloseTag:e,data:t,expanded:r})=>{let n=pt("DOMNodePreview");if(e)return c.createElement(k0,{styles:n.htmlCloseTag,isChildNode:!0,tagName:t.tagName});switch(t.nodeType){case Node.ELEMENT_NODE:return c.createElement("span",null,c.createElement(UT,{tagName:t.tagName,attributes:t.attributes,styles:n.htmlOpenTag}),g1(t)?t.textContent:!r&&"\u2026",!r&&c.createElement(k0,{tagName:t.tagName,styles:n.htmlCloseTag}));case Node.TEXT_NODE:return c.createElement("span",null,t.textContent);case Node.CDATA_SECTION_NODE:return c.createElement("span",null,"");case Node.COMMENT_NODE:return c.createElement("span",{style:n.htmlComment},"");case Node.PROCESSING_INSTRUCTION_NODE:return c.createElement("span",null,t.nodeName);case Node.DOCUMENT_TYPE_NODE:return c.createElement("span",{style:n.htmlDoctype},"");case Node.DOCUMENT_NODE:return c.createElement("span",null,t.nodeName);case Node.DOCUMENT_FRAGMENT_NODE:return c.createElement("span",null,t.nodeName);default:return c.createElement("span",null,HT[t.nodeType])}},"DOMNodePreview"),zT=h(function*(e){if(e&&e.childNodes){if(g1(e))return;for(let t=0;tc.createElement(m1,{nodeRenderer:VT,dataIterator:zT,...e}),"DOMInspector"),WT=pc(GT),YT=bT(AT()),KT=h(({table:e=!1,data:t,...r})=>e?c.createElement($T,{data:t,...r}):(0,YT.default)(t)?c.createElement(WT,{data:t,...r}):c.createElement(FT,{data:t,...r}),"Inspector"),XT=R.div({display:"flex",padding:0,borderLeft:"5px solid transparent",borderBottom:"1px solid transparent",transition:"all 0.1s",alignItems:"flex-start",whiteSpace:"pre"}),JT=R.div(({theme:e})=>({backgroundColor:Zn(.5,e.appBorderColor),color:e.color.inverseText,fontSize:e.typography.size.s1,fontWeight:e.typography.weight.bold,lineHeight:1,padding:"1px 5px",borderRadius:20,margin:"2px 0px"})),ZT=R.div({flex:1,padding:"0 0 0 5px"}),y1=Ac(({children:e,className:t},r)=>c.createElement(Si,{ref:r,horizontal:!0,vertical:!0,className:t},e));y1.displayName="UnstyledWrapped";var QT=R(y1)({margin:0,padding:"10px 5px 20px"}),ek=td(({theme:e,...t})=>c.createElement(KT,{theme:e.addonActionsTheme||"chromeLight",table:!1,...t})),tk=h(({actions:e,onClear:t})=>{let r=ye(null),n=r.current,o=n&&n.scrollHeight-n.scrollTop===n.clientHeight;return X(()=>{o&&(r.current.scrollTop=r.current.scrollHeight)},[o,e.length]),c.createElement(ft,null,c.createElement(QT,{ref:r},e.map(a=>c.createElement(XT,{key:a.id},a.count>1&&c.createElement(JT,null,a.count),c.createElement(ZT,null,c.createElement(ek,{sortObjectKeys:!0,showNonenumerable:!1,name:a.data.name,data:a.data.args??a.data}))))),c.createElement(Cn,{actionItems:[{title:"Clear",onClick:t}]}))},"ActionLogger"),rk=h((e,t)=>{try{return fr(e,t)}catch{return!1}},"safeDeepEqual"),b1=class extends Et{constructor(t){super(t),this.handleStoryChange=h(()=>{let{actions:r}=this.state;r.length>0&&r[0].options.clearOnStoryChange&&this.clearActions()},"handleStoryChange"),this.addAction=h(r=>{this.setState(n=>{let o=[...n.actions],a=o.length&&o[o.length-1];return a&&rk(a.data,r.data)?a.count++:(r.count=1,o.push(r)),{actions:o.slice(0,r.options.limit)}})},"addAction"),this.clearActions=h(()=>{let{api:r}=this.props;r.emit(s1),this.setState({actions:[]})},"clearActions"),this.mounted=!1,this.state={actions:[]}}componentDidMount(){this.mounted=!0;let{api:t}=this.props;t.on(_u,this.addAction),t.on(Er,this.handleStoryChange)}componentWillUnmount(){this.mounted=!1;let{api:t}=this.props;t.off(Er,this.handleStoryChange),t.off(_u,this.addAction)}render(){let{actions:t=[]}=this.state,{active:r}=this.props,n={actions:t,onClear:this.clearActions};return r?c.createElement(tk,{...n}):null}};h(b1,"ActionLogger");var nk=b1,T7=ve.register(lo,e=>{globalThis?.FEATURES?.actions&&ve.add(i1,{title:l1,type:et.PANEL,render:h(({active:t})=>c.createElement(nk,{api:e,active:!!t}),"render"),paramKey:dT})}),gi="storybook/interactions",hc=`${gi}/panel`,ok="writing-tests/integrations/vitest-addon",ak=`${ok}#what-happens-when-there-are-different-test-results-in-multiple-environments`,ik="writing-stories/play-function#writing-stories-with-the-play-function",Lt="internal_render_call",Pr="storybook/a11y",P7=`${Pr}/panel`,N7=`${Pr}/result`,L7=`${Pr}/request`,j7=`${Pr}/running`,M7=`${Pr}/error`,$7=`${Pr}/manual`,q7=`${Pr}/select`,sk="writing-tests/accessibility-testing",U7=`${sk}#why-are-my-tests-failing-in-different-environments`,E1="storybook/test",H7=`${E1}/test-provider`,lk="STORYBOOK_ADDON_TEST_CHANNEL",uk="writing-tests/integrations/vitest-addon",V7=`${uk}#what-happens-if-vitest-itself-has-an-error`,ck={id:E1,initialState:{config:{coverage:!1,a11y:!1},watching:!1,cancelling:!1,fatalError:void 0,indexUrl:void 0,previewAnnotations:[],currentRun:{triggeredBy:void 0,config:{coverage:!1,a11y:!1},componentTestCount:{success:0,error:0},a11yCount:{success:0,warning:0,error:0},storyIds:void 0,totalTestCount:void 0,startedAt:void 0,finishedAt:void 0,unhandledErrors:[],coverageSummary:void 0}}},z7=`UNIVERSAL_STORE:${ck.id}`,dk="storybook/component-test",kr={CALL:"storybook/instrumenter/call",SYNC:"storybook/instrumenter/sync",START:"storybook/instrumenter/start",BACK:"storybook/instrumenter/back",GOTO:"storybook/instrumenter/goto",NEXT:"storybook/instrumenter/next",END:"storybook/instrumenter/end"},pk=it(fC(),1);function v1({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}h(v1,"ansiRegex");var mk=v1();function A1(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(mk,"")}h(A1,"stripAnsi");function x1(e){return fc(e)||gc(e)}h(x1,"isTestAssertionError");function fc(e){return e&&typeof e=="object"&&"name"in e&&typeof e.name=="string"&&e.name==="AssertionError"}h(fc,"isChaiError");function gc(e){return e&&typeof e=="object"&&"message"in e&&typeof e.message=="string"&&A1(e.message).startsWith("expect(")}h(gc,"isJestError");function w1(e){return new pk.default({escapeXML:!0,fg:e.color.defaultText,bg:e.background.content})}h(w1,"createAnsiToHtmlFilter");function yi(){let e=Qe();return w1(e)}h(yi,"useAnsiToHtmlFilter");var hk=R.div(({theme:{color:e,typography:t,background:r}})=>({textAlign:"start",padding:"11px 15px",fontSize:`${t.size.s2-1}px`,fontWeight:t.weight.regular,lineHeight:"1rem",background:r.app,borderBottom:`1px solid ${e.border}`,color:e.defaultText,backgroundClip:"padding-box",position:"relative"})),fk=h(({storyUrl:e})=>c.createElement(hk,null,"Debugger controls are not available on composed Storybooks."," ",c.createElement(Ze,{href:`${e}&addonPanel=${hc}`,target:"_blank",rel:"noopener noreferrer",withArrow:!0},"Open in external Storybook")),"DetachedDebuggerMessage"),gk=R.div(({theme:e})=>({display:"flex",fontSize:e.typography.size.s2-1,gap:25})),yk=h(()=>{let[e,t]=z(!0),r=tt().getDocsUrl({subpath:ik,versioned:!0,renderer:!0});return X(()=>{let n=setTimeout(()=>{t(!1)},100);return()=>clearTimeout(n)},[]),e?null:c.createElement("div",null,c.createElement(kn,{title:"Interactions",description:c.createElement(c.Fragment,null,"Interactions allow you to verify the functional aspects of UIs. Write a play function for your story and you'll see it run here."),footer:c.createElement(gk,null,c.createElement(Ze,{href:r,target:"_blank",withArrow:!0},c.createElement(yr,null)," Read docs"))}))},"Empty"),bk=it(Ku()),Ek=it(Xu());function li(e){var t,r,n="";if(e)if(typeof e=="object")if(Array.isArray(e))for(t=0;tArray.isArray(e)||ArrayBuffer.isView(e)&&!(e instanceof DataView),"isArray"),S1=h(e=>e!==null&&typeof e=="object"&&!yc(e)&&!(e instanceof Date)&&!(e instanceof RegExp)&&!(e instanceof Error)&&!(e instanceof WeakMap)&&!(e instanceof WeakSet),"isObject"),vk=h(e=>S1(e)||yc(e)||typeof e=="function"||e instanceof Promise,"isKnownObject"),C1=h(e=>{let t=/unique/;return Promise.race([e,t]).then(r=>r===t?["pending"]:["fulfilled",r],r=>["rejected",r])},"getPromiseState"),Pt=h(async(e,t,r,n,o,a)=>{let i={key:e,depth:r,value:t,type:"value",parent:void 0};if(t&&vk(t)&&r<100){let s=[],l="object";if(yc(t)){for(let u=0;u{let d=await Pt(u.toString(),t[u],r+1,n);return d.parent=i,d});l="array"}else{let u=Object.getOwnPropertyNames(t);n&&u.sort();for(let d=0;d{let p=await Pt(u[d],m,r+1,n);return p.parent=i,p})}if(typeof t=="function"&&(l="function"),t instanceof Promise){let[d,m]=await C1(t);s.push(async()=>{let p=await Pt("",d,r+1,n);return p.parent=i,p}),d!=="pending"&&s.push(async()=>{let p=await Pt("",m,r+1,n);return p.parent=i,p}),l="promise"}if(t instanceof Map){let d=Array.from(t.entries()).map(m=>{let[p,f]=m;return{"":p,"":f}});s.push(async()=>{let m=await Pt("",d,r+1,n);return m.parent=i,m}),s.push(async()=>{let m=await Pt("size",t.size,r+1,n);return m.parent=i,m}),l="map"}if(t instanceof Set){let d=Array.from(t.entries()).map(m=>m[1]);s.push(async()=>{let m=await Pt("",d,r+1,n);return m.parent=i,m}),s.push(async()=>{let m=await Pt("size",t.size,r+1,n);return m.parent=i,m}),l="set"}}t!==Object.prototype&&a&&s.push(async()=>{let u=await Pt("",Object.getPrototypeOf(t),r+1,n,!0);return u.parent=i,u}),i.type=l,i.children=s,i.isPrototype=o}return i},"buildAST"),Ak=h((e,t,r)=>Pt("root",e,0,t===!1?t:!0,void 0,r===!1?r:!0),"parse"),O0=it(bC()),xk=it(vC()),wk=["children"],Lu=c.createContext({theme:"chrome",colorScheme:"light"}),Sk=h(e=>{let{children:t}=e,r=(0,xk.default)(e,wk),n=c.useContext(Lu);return c.createElement(Lu.Provider,{value:(0,O0.default)((0,O0.default)({},n),r)},t)},"ThemeProvider"),bi=h((e,t={})=>{let r=c.useContext(Lu),n=e.theme||r.theme||"chrome",o=e.colorScheme||r.colorScheme||"light",a=kt(t[n],t[o]);return{currentColorScheme:o,currentTheme:n,themeClass:a}},"useTheme"),I0=it(xC()),uu=it(wC()),Ck=it(CC()),Dk=c.createContext({isChild:!1,depth:0,hasHover:!0}),cu=Dk,nt={tree:"Tree-tree-fbbbe38",item:"Tree-item-353d6f3",group:"Tree-group-d3c3d8a",label:"Tree-label-d819155",focusWhite:"Tree-focusWhite-f1e00c2",arrow:"Tree-arrow-03ab2e7",hover:"Tree-hover-3cc4e5d",open:"Tree-open-3f1a336",dark:"Tree-dark-1b4aa00",chrome:"Tree-chrome-bcbcac6",light:"Tree-light-09174ee"},Tk=["theme","hover","colorScheme","children","label","className","onUpdate","onSelect","open"],ui=h(e=>{let{theme:t,hover:r,colorScheme:n,children:o,label:a,className:i,onUpdate:s,onSelect:l,open:u}=e,d=(0,Ck.default)(e,Tk),{themeClass:m,currentTheme:p}=bi({theme:t,colorScheme:n},nt),[f,g]=z(u);X(()=>{g(u)},[u]);let y=h(F=>{g(F),s&&s(F)},"updateState"),E=c.Children.count(o)>0,b=h((F,M)=>{if(F.isSameNode(M||null))return;F.querySelector('[tabindex="-1"]')?.focus(),F.setAttribute("aria-selected","true"),M?.removeAttribute("aria-selected")},"updateFocus"),x=h((F,M)=>{let q=F;for(;q&&q.parentElement;){if(q.getAttribute("role")===M)return q;q=q.parentElement}return null},"getParent"),S=h(F=>{let M=x(F,"tree");return M?Array.from(M.querySelectorAll("li")):[]},"getListElements"),T=h(F=>{let M=x(F,"group"),q=M?.previousElementSibling;if(q&&q.getAttribute("tabindex")==="-1"){let V=q.parentElement,G=F.parentElement;b(V,G)}},"moveBack"),_=h((F,M)=>{let q=S(F);q.forEach(V=>{V.removeAttribute("aria-selected")}),M==="start"&&q[0]&&b(q[0]),M==="end"&&q[q.length-1]&&b(q[q.length-1])},"moveHome"),O=h((F,M)=>{let q=S(F)||[];for(let V=0;V{let q=F.target;(F.key==="Enter"||F.key===" ")&&y(!f),F.key==="ArrowRight"&&f&&!M?O(q,"down"):F.key==="ArrowRight"&&y(!0),F.key==="ArrowLeft"&&(!f||M)?T(q):F.key==="ArrowLeft"&&y(!1),F.key==="ArrowDown"&&O(q,"down"),F.key==="ArrowUp"&&O(q,"up"),F.key==="Home"&&_(q,"start"),F.key==="End"&&_(q,"end")},"handleKeypress"),B=h((F,M)=>{let q=F.target,V=x(q,"treeitem"),G=S(q)||[],se=!1;for(let pe=0;pe{let M=F.currentTarget;!M.contains(document.activeElement)&&M.getAttribute("role")==="tree"&&M.setAttribute("tabindex","0")},"handleBlur"),L=h(F=>{let M=F.target;if(M.getAttribute("role")==="tree"){let q=M.querySelector('[aria-selected="true"]');q?b(q):O(M,"down"),M.setAttribute("tabindex","-1")}},"handleFocus"),j=h(()=>{l?.()},"handleButtonFocus"),U=h(F=>{let M=F*.9+.3;return{paddingLeft:`${M}em`,width:`calc(100% - ${M}em)`}},"getPaddingStyles"),{isChild:$,depth:v,hasHover:A}=c.useContext(cu),D=A?r:!1;if(!$)return c.createElement("ul",(0,uu.default)({role:"tree",tabIndex:0,className:kt(nt.tree,nt.group,m,i),onFocus:L,onBlur:P},d),c.createElement(cu.Provider,{value:{isChild:!0,depth:0,hasHover:D}},c.createElement(ui,e)));if(!E)return c.createElement("li",(0,uu.default)({role:"treeitem",className:nt.item},d),c.createElement("div",{role:"button",className:kt(nt.label,{[nt.hover]:D,[nt.focusWhite]:p==="firefox"}),tabIndex:-1,style:U(v),onKeyDown:h(F=>{k(F,$)},"onKeyDown"),onClick:h(F=>B(F,!0),"onClick"),onFocus:j},c.createElement("span",null,a)));let N=kt(nt.arrow,{[nt.open]:f});return c.createElement("li",{role:"treeitem","aria-expanded":f,className:nt.item},c.createElement("div",{role:"button",tabIndex:-1,className:kt(nt.label,{[nt.hover]:D,[nt.focusWhite]:p==="firefox"}),style:U(v),onClick:h(F=>B(F),"onClick"),onKeyDown:h(F=>k(F),"onKeyDown"),onFocus:j},c.createElement("span",null,c.createElement("span",{"aria-hidden":!0,className:N}),c.createElement("span",null,a))),c.createElement("ul",(0,uu.default)({role:"group",className:kt(i,nt.group)},d),f&&c.Children.map(o,F=>c.createElement(cu.Provider,{value:{isChild:!0,depth:v+1,hasHover:D}},F))))},"Tree");ui.defaultProps={open:!1,hover:!0};var kk=it(Ku()),Ok=it(Xu()),fe={"object-inspector":"ObjectInspector-object-inspector-0c33e82",objectInspector:"ObjectInspector-object-inspector-0c33e82","object-label":"ObjectInspector-object-label-b81482b",objectLabel:"ObjectInspector-object-label-b81482b",text:"ObjectInspector-text-25f57f3",key:"ObjectInspector-key-4f712bb",value:"ObjectInspector-value-f7ec2e5",string:"ObjectInspector-string-c496000",regex:"ObjectInspector-regex-59d45a3",error:"ObjectInspector-error-b818698",boolean:"ObjectInspector-boolean-2dd1642",number:"ObjectInspector-number-a6daabb",undefined:"ObjectInspector-undefined-3a68263",null:"ObjectInspector-null-74acb50",function:"ObjectInspector-function-07bbdcd","function-decorator":"ObjectInspector-function-decorator-3d22c24",functionDecorator:"ObjectInspector-function-decorator-3d22c24",prototype:"ObjectInspector-prototype-f2449ee",dark:"ObjectInspector-dark-0c96c97",chrome:"ObjectInspector-chrome-2f3ca98",light:"ObjectInspector-light-78bef54"},Ik=["ast","theme","showKey","colorScheme","className"],ot=h((e,t,r,n,o)=>{let a=e.includes("-")?`"${e}"`:e,i=o<=0;return c.createElement("span",{className:fe.text},!i&&n&&c.createElement(c.Fragment,null,c.createElement("span",{className:fe.key},a),c.createElement("span",null,":\xA0")),c.createElement("span",{className:r},t))},"buildValue"),D1=h(e=>{let{ast:t,theme:r,showKey:n,colorScheme:o,className:a}=e,i=(0,Ok.default)(e,Ik),{themeClass:s}=bi({theme:r,colorScheme:o},fe),[l,u]=z(c.createElement("span",null)),d=c.createElement("span",null);return X(()=>{t.value instanceof Promise&&h(async m=>{u(ot(t.key,`Promise { "${await C1(m)}" }`,fe.key,n,t.depth))},"waitForPromiseResult")(t.value)},[t,n]),typeof t.value=="number"||typeof t.value=="bigint"?d=ot(t.key,String(t.value),fe.number,n,t.depth):typeof t.value=="boolean"?d=ot(t.key,String(t.value),fe.boolean,n,t.depth):typeof t.value=="string"?d=ot(t.key,`"${t.value}"`,fe.string,n,t.depth):typeof t.value>"u"?d=ot(t.key,"undefined",fe.undefined,n,t.depth):typeof t.value=="symbol"?d=ot(t.key,t.value.toString(),fe.string,n,t.depth):typeof t.value=="function"?d=ot(t.key,`${t.value.name}()`,fe.key,n,t.depth):typeof t.value=="object"&&(t.value===null?d=ot(t.key,"null",fe.null,n,t.depth):Array.isArray(t.value)?d=ot(t.key,`Array(${t.value.length})`,fe.key,n,t.depth):t.value instanceof Date?d=ot(t.key,`Date ${t.value.toString()}`,fe.value,n,t.depth):t.value instanceof RegExp?d=ot(t.key,t.value.toString(),fe.regex,n,t.depth):t.value instanceof Error?d=ot(t.key,t.value.toString(),fe.error,n,t.depth):S1(t.value)?d=ot(t.key,"{\u2026}",fe.key,n,t.depth):d=ot(t.key,t.value.constructor.name,fe.key,n,t.depth)),c.createElement("span",(0,kk.default)({className:kt(s,a)},i),l,d)},"ObjectValue");D1.defaultProps={showKey:!0};var T1=D1,gn=it(Ku()),Rk=it(Xu()),Bk=["ast","theme","previewMax","open","colorScheme","className"],uo=h((e,t,r)=>{let n=[];for(let o=0;ot){n.push("\u2026 ");break}}return n},"buildPreview"),_k=h((e,t,r,n)=>{let o=e.value.length;return t?c.createElement("span",null,"Array(",o,")"):c.createElement(c.Fragment,null,c.createElement("span",null,`${n==="firefox"?"Array":""}(${o}) [ `),uo(e.children,r,!1),c.createElement("span",null,"]"))},"getArrayLabel"),Fk=h((e,t,r,n)=>e.isPrototype?c.createElement("span",null,`Object ${n==="firefox"?"{ \u2026 }":""}`):t?c.createElement("span",null,"{\u2026}"):c.createElement(c.Fragment,null,c.createElement("span",null,`${n==="firefox"?"Object ":""}{ `),uo(e.children,r,!0),c.createElement("span",null,"}")),"getObjectLabel"),Pk=h((e,t,r)=>t?c.createElement("span",null,`Promise { "${String(e.children[0].value)}" }`):c.createElement(c.Fragment,null,c.createElement("span",null,"Promise { "),uo(e.children,r,!0),c.createElement("span",null,"}")),"getPromiseLabel"),Nk=h((e,t,r,n)=>{let{size:o}=e.value;return t?c.createElement("span",null,`Map(${o})`):c.createElement(c.Fragment,null,c.createElement("span",null,`Map${n==="chrome"?`(${o})`:""} { `),uo(e.children,r,!0),c.createElement("span",null,"}"))},"getMapLabel"),Lk=h((e,t,r)=>{let{size:n}=e.value;return t?c.createElement("span",null,"Set(",n,")"):c.createElement(c.Fragment,null,c.createElement("span",null,`Set(${e.value.size}) {`),uo(e.children,r,!0),c.createElement("span",null,"}"))},"getSetLabel"),k1=h(e=>{let{ast:t,theme:r,previewMax:n,open:o,colorScheme:a,className:i}=e,s=(0,Rk.default)(e,Bk),{themeClass:l,currentTheme:u}=bi({theme:r,colorScheme:a},fe),d=t.isPrototype||!1,m=kt(fe.objectLabel,l,i,{[fe.prototype]:d}),p=t.depth<=0,f=h(()=>c.createElement("span",{className:d?fe.prototype:fe.key},p?"":`${t.key}: `),"Key");return t.type==="array"?c.createElement("span",(0,gn.default)({className:m},s),c.createElement(f,null),_k(t,o,n,u)):t.type==="function"?c.createElement("span",(0,gn.default)({className:m},s),c.createElement(f,null),u==="chrome"&&c.createElement("span",{className:fe.functionDecorator},"\u0192 "),c.createElement("span",{className:kt({[fe.function]:!d})},`${t.value.name}()`)):t.type==="promise"?c.createElement("span",(0,gn.default)({className:m},s),c.createElement(f,null),Pk(t,o,n)):t.type==="map"?c.createElement("span",(0,gn.default)({className:m},s),c.createElement(f,null),Nk(t,o,n,u)):t.type==="set"?c.createElement("span",(0,gn.default)({className:m},s),c.createElement(f,null),Lk(t,o,n)):c.createElement("span",(0,gn.default)({className:m},s),c.createElement(f,null),Fk(t,o,n,u))},"ObjectLabel");k1.defaultProps={previewMax:8,open:!1};var jk=k1,bc=h(e=>{let{ast:t,expandLevel:r,depth:n}=e,[o,a]=z(),[i,s]=z(n{h(async()=>{if(t.type!=="value"){let l=t.children.map(m=>m()),u=await Promise.all(l),d=(0,I0.default)((0,I0.default)({},t),{},{children:u});a(d)}},"resolve")()},[t]),o?c.createElement(ui,{hover:!1,open:i,label:c.createElement(jk,{open:i,ast:o}),onSelect:h(()=>{var l;(l=e.onSelect)===null||l===void 0||l.call(e,t)},"onSelect"),onUpdate:h(l=>{s(l)},"onUpdate")},o.children.map(l=>c.createElement(bc,{key:l.key,ast:l,depth:n+1,expandLevel:r,onSelect:e.onSelect}))):c.createElement(ui,{hover:!1,label:c.createElement(T1,{ast:t}),onSelect:h(()=>{var l;(l=e.onSelect)===null||l===void 0||l.call(e,t)},"onSelect")})},"ObjectInspectorItem");bc.defaultProps={expandLevel:0,depth:0};var Mk=bc,$k=["data","expandLevel","sortKeys","includePrototypes","className","theme","colorScheme","onSelect"],O1=h(e=>{let{data:t,expandLevel:r,sortKeys:n,includePrototypes:o,className:a,theme:i,colorScheme:s,onSelect:l}=e,u=(0,Ek.default)(e,$k),[d,m]=z(void 0),{themeClass:p,currentTheme:f,currentColorScheme:g}=bi({theme:i,colorScheme:s},fe);return X(()=>{h(async()=>{m(await Ak(t,n,o))},"runParser")()},[t,n,o]),c.createElement("div",(0,bk.default)({className:kt(fe.objectInspector,a,p)},u),d&&c.createElement(Sk,{theme:f,colorScheme:g},c.createElement(Mk,{ast:d,expandLevel:r,onSelect:l})))},"ObjectInspector");O1.defaultProps={expandLevel:0,sortKeys:!0,includePrototypes:!0};var qk={base:"#444",nullish:"#7D99AA",string:"#16B242",number:"#5D40D0",boolean:"#f41840",objectkey:"#698394",instance:"#A15C20",function:"#EA7509",muted:"#7D99AA",tag:{name:"#6F2CAC",suffix:"#1F99E5"},date:"#459D9C",error:{name:"#D43900",message:"#444"},regex:{source:"#A15C20",flags:"#EA7509"},meta:"#EA7509",method:"#0271B6"},Uk={base:"#eee",nullish:"#aaa",string:"#5FE584",number:"#6ba5ff",boolean:"#ff4191",objectkey:"#accfe6",instance:"#E3B551",function:"#E3B551",muted:"#aaa",tag:{name:"#f57bff",suffix:"#8EB5FF"},date:"#70D4D3",error:{name:"#f40",message:"#eee"},regex:{source:"#FAD483",flags:"#E3B551"},meta:"#FAD483",method:"#5EC1FF"},je=h(()=>{let{base:e}=Qe();return e==="dark"?Uk:qk},"useThemeColors"),Hk=/[^A-Z0-9]/i,R0=/[\s.,…]+$/gm,I1=h((e,t)=>{if(e.length<=t)return e;for(let r=t-1;r>=0;r-=1)if(Hk.test(e[r])&&r>10)return`${e.slice(0,r).replace(R0,"")}\u2026`;return`${e.slice(0,t).replace(R0,"")}\u2026`},"ellipsize"),Vk=h(e=>{try{return JSON.stringify(e,null,1)}catch{return String(e)}},"stringify"),R1=h((e,t)=>e.flatMap((r,n)=>n===e.length-1?[r]:[r,c.cloneElement(t,{key:`sep${n}`})]),"interleave"),_r=h(({value:e,nested:t,showObjectInspector:r,callsById:n,...o})=>{switch(!0){case e===null:return c.createElement(zk,{...o});case e===void 0:return c.createElement(Gk,{...o});case Array.isArray(e):return c.createElement(Xk,{...o,value:e,callsById:n});case typeof e=="string":return c.createElement(Wk,{...o,value:e});case typeof e=="number":return c.createElement(Yk,{...o,value:e});case typeof e=="boolean":return c.createElement(Kk,{...o,value:e});case Object.prototype.hasOwnProperty.call(e,"__date__"):return c.createElement(tO,{...o,...e.__date__});case Object.prototype.hasOwnProperty.call(e,"__error__"):return c.createElement(rO,{...o,...e.__error__});case Object.prototype.hasOwnProperty.call(e,"__regexp__"):return c.createElement(nO,{...o,...e.__regexp__});case Object.prototype.hasOwnProperty.call(e,"__function__"):return c.createElement(Qk,{...o,...e.__function__});case Object.prototype.hasOwnProperty.call(e,"__symbol__"):return c.createElement(oO,{...o,...e.__symbol__});case Object.prototype.hasOwnProperty.call(e,"__element__"):return c.createElement(eO,{...o,...e.__element__});case Object.prototype.hasOwnProperty.call(e,"__class__"):return c.createElement(Zk,{...o,...e.__class__});case Object.prototype.hasOwnProperty.call(e,"__callId__"):return c.createElement(Ec,{call:n?.get(e.__callId__),callsById:n});case Object.prototype.toString.call(e)==="[object Object]":return c.createElement(Jk,{value:e,showInspector:r,callsById:n,...o});default:return c.createElement(aO,{value:e,...o})}},"Node"),zk=h(e=>{let t=je();return c.createElement("span",{style:{color:t.nullish},...e},"null")},"NullNode"),Gk=h(e=>{let t=je();return c.createElement("span",{style:{color:t.nullish},...e},"undefined")},"UndefinedNode"),Wk=h(({value:e,...t})=>{let r=je();return c.createElement("span",{style:{color:r.string},...t},JSON.stringify(I1(e,50)))},"StringNode"),Yk=h(({value:e,...t})=>{let r=je();return c.createElement("span",{style:{color:r.number},...t},e)},"NumberNode"),Kk=h(({value:e,...t})=>{let r=je();return c.createElement("span",{style:{color:r.boolean},...t},String(e))},"BooleanNode"),Xk=h(({value:e,nested:t=!1,callsById:r})=>{let n=je();if(t)return c.createElement("span",{style:{color:n.base}},"[\u2026]");let o=e.slice(0,3).map((i,s)=>c.createElement(_r,{key:`${s}--${JSON.stringify(i)}`,value:i,nested:!0,callsById:r})),a=R1(o,c.createElement("span",null,", "));return e.length<=3?c.createElement("span",{style:{color:n.base}},"[",a,"]"):c.createElement("span",{style:{color:n.base}},"(",e.length,") [",a,", \u2026]")},"ArrayNode"),Jk=h(({showInspector:e,value:t,callsById:r,nested:n=!1})=>{let o=Qe().base==="dark",a=je();if(e)return c.createElement(c.Fragment,null,c.createElement(O1,{id:"interactions-object-inspector",data:t,includePrototypes:!1,colorScheme:o?"dark":"light"}));if(n)return c.createElement("span",{style:{color:a.base}},"{\u2026}");let i=R1(Object.entries(t).slice(0,2).map(([s,l])=>c.createElement(ft,{key:s},c.createElement("span",{style:{color:a.objectkey}},s,": "),c.createElement(_r,{value:l,callsById:r,nested:!0}))),c.createElement("span",null,", "));return Object.keys(t).length<=2?c.createElement("span",{style:{color:a.base}},"{ ",i," }"):c.createElement("span",{style:{color:a.base}},"(",Object.keys(t).length,") ","{ ",i,", \u2026 }")},"ObjectNode"),Zk=h(({name:e})=>{let t=je();return c.createElement("span",{style:{color:t.instance}},e)},"ClassNode"),Qk=h(({name:e})=>{let t=je();return e?c.createElement("span",{style:{color:t.function}},e):c.createElement("span",{style:{color:t.nullish,fontStyle:"italic"}},"anonymous")},"FunctionNode"),eO=h(({prefix:e,localName:t,id:r,classNames:n=[],innerText:o})=>{let a=e?`${e}:${t}`:t,i=je();return c.createElement("span",{style:{wordBreak:"keep-all"}},c.createElement("span",{key:`${a}_lt`,style:{color:i.muted}},"<"),c.createElement("span",{key:`${a}_tag`,style:{color:i.tag.name}},a),c.createElement("span",{key:`${a}_suffix`,style:{color:i.tag.suffix}},r?`#${r}`:n.reduce((s,l)=>`${s}.${l}`,"")),c.createElement("span",{key:`${a}_gt`,style:{color:i.muted}},">"),!r&&n.length===0&&o&&c.createElement(c.Fragment,null,c.createElement("span",{key:`${a}_text`},o),c.createElement("span",{key:`${a}_close_lt`,style:{color:i.muted}},"<"),c.createElement("span",{key:`${a}_close_tag`,style:{color:i.tag.name}},"/",a),c.createElement("span",{key:`${a}_close_gt`,style:{color:i.muted}},">")))},"ElementNode"),tO=h(({value:e})=>{let t=new Date(e);isNaN(Number(t))&&(Z.warn("Invalid date value:",e),t=null);let r=je();if(!t)return c.createElement("span",{style:{whiteSpace:"nowrap",color:r.date}},"Invalid date");let[n,o,a]=t.toISOString().split(/[T.Z]/);return c.createElement("span",{style:{whiteSpace:"nowrap",color:r.date}},n,c.createElement("span",{style:{opacity:.7}},"T"),o==="00:00:00"?c.createElement("span",{style:{opacity:.7}},o):o,a==="000"?c.createElement("span",{style:{opacity:.7}},".",a):`.${a}`,c.createElement("span",{style:{opacity:.7}},"Z"))},"DateNode"),rO=h(({name:e,message:t})=>{let r=je();return c.createElement("span",{style:{color:r.error.name}},e,t&&": ",t&&c.createElement("span",{style:{color:r.error.message},title:t.length>50?t:""},I1(t,50)))},"ErrorNode"),nO=h(({flags:e,source:t})=>{let r=je();return c.createElement("span",{style:{whiteSpace:"nowrap",color:r.regex.flags}},"/",c.createElement("span",{style:{color:r.regex.source}},t),"/",e)},"RegExpNode"),oO=h(({description:e})=>{let t=je();return c.createElement("span",{style:{whiteSpace:"nowrap",color:t.instance}},"Symbol(",e&&c.createElement("span",{style:{color:t.meta}},'"',e,'"'),")")},"SymbolNode"),aO=h(({value:e})=>{let t=je();return c.createElement("span",{style:{color:t.meta}},Vk(e))},"OtherNode"),iO=h(({label:e})=>{let t=je(),{typography:r}=Qe();return c.createElement("span",{style:{color:t.base,fontFamily:r.fonts.base,fontSize:r.size.s2-1}},e)},"StepNode"),Ec=h(({call:e,callsById:t})=>{if(!e)return null;if(e.method==="step"&&e.path?.length===0)return c.createElement(iO,{label:e.args[0]});let r=e.path?.flatMap((a,i)=>{let s=a.__callId__;return[s?c.createElement(Ec,{key:`elem${i}`,call:t?.get(s),callsById:t}):c.createElement("span",{key:`elem${i}`},a),c.createElement("wbr",{key:`wbr${i}`}),c.createElement("span",{key:`dot${i}`},".")]}),n=e.args?.flatMap((a,i,s)=>{let l=c.createElement(_r,{key:`node${i}`,value:a,callsById:t});return i{for(let r=t,n=1;r{try{return e==="undefined"?void 0:JSON.parse(e)}catch{return e}},"parseValue"),sO=R.span(({theme:e})=>({color:e.base==="light"?e.color.positiveText:e.color.positive})),lO=R.span(({theme:e})=>({color:e.base==="light"?e.color.negativeText:e.color.negative})),pu=h(({value:e,parsed:t})=>t?c.createElement(_r,{showObjectInspector:!0,value:e,style:{color:"#D43900"}}):c.createElement(lO,null,e),"Received"),mu=h(({value:e,parsed:t})=>t?typeof e=="string"&&e.startsWith("called with")?c.createElement(c.Fragment,null,e):c.createElement(_r,{showObjectInspector:!0,value:e,style:{color:"#16B242"}}):c.createElement(sO,null,e),"Expected"),_0=h(({message:e,style:t={}})=>{let r=yi(),n=e.split(` `);return c.createElement("pre",{style:{margin:0,padding:"8px 10px 8px 36px",fontSize:At.size.s1,...t}},n.flatMap((o,a)=>{if(o.startsWith("expect(")){let m=B0(o,7),p=m?7+m.length:0,f=m&&o.slice(p).match(/\.(to|last|nth)[A-Z]\w+\(/);if(f){let g=p+(f.index??0)+f[0].length,y=B0(o,g);if(y)return["expect(",c.createElement(pu,{key:`received_${m}`,value:m}),o.slice(p,g),c.createElement(mu,{key:`expected_${y}`,value:y}),o.slice(g+y.length),c.createElement("br",{key:`br${a}`})]}}if(o.match(/^\s*- /))return[c.createElement(mu,{key:o+a,value:o}),c.createElement("br",{key:`br${a}`})];if(o.match(/^\s*\+ /)||o.match(/^Received: $/))return[c.createElement(pu,{key:o+a,value:o}),c.createElement("br",{key:`br${a}`})];let[,i,s]=o.match(/^(Expected|Received): (.*)$/)||[];if(i&&s)return i==="Expected"?["Expected: ",c.createElement(mu,{key:o+a,value:du(s),parsed:!0}),c.createElement("br",{key:`br${a}`})]:["Received: ",c.createElement(pu,{key:o+a,value:du(s),parsed:!0}),c.createElement("br",{key:`br${a}`})];let[,l,u]=o.match(/(Expected number|Received number|Number) of calls: (\d+)$/i)||[];if(l&&u)return[`${l} of calls: `,c.createElement(_r,{key:o+a,value:Number(u)}),c.createElement("br",{key:`br${a}`})];let[,d]=o.match(/^Received has value: (.+)$/)||[];return d?["Received has value: ",c.createElement(_r,{key:o+a,value:du(d)}),c.createElement("br",{key:`br${a}`})]:[c.createElement("span",{key:o+a,dangerouslySetInnerHTML:{__html:r.toHtml(o)}}),c.createElement("br",{key:`br${a}`})]}))},"MatcherResult"),uO=R.div({width:14,height:14,display:"flex",alignItems:"center",justifyContent:"center"}),B1=h(({status:e})=>{let t=Qe();switch(e){case"done":return c.createElement(yo,{color:t.color.positive,"data-testid":"icon-done"});case"error":return c.createElement(Hc,{color:t.color.negative,"data-testid":"icon-error"});case"active":return c.createElement(Mc,{color:t.color.secondary,"data-testid":"icon-active"});case"waiting":return c.createElement(uO,{"data-testid":"icon-waiting"},c.createElement(vo,{color:de(.5,"#CCCCCC"),size:6}));default:return null}},"StatusIcon"),cO=R.div({fontFamily:At.fonts.mono,fontSize:At.size.s1,overflowWrap:"break-word",inlineSize:"calc( 100% - 40px )"}),dO=R("div",{shouldForwardProp:h(e=>!["call","pausedAt"].includes(e.toString()),"shouldForwardProp")})(({theme:e,call:t})=>({position:"relative",display:"flex",flexDirection:"column",borderBottom:`1px solid ${e.appBorderColor}`,fontFamily:At.fonts.base,fontSize:13,...t.status==="error"&&{backgroundColor:e.base==="dark"?de(.93,e.color.negative):e.background.warning},paddingLeft:(t.ancestors?.length??0)*20}),({theme:e,call:t,pausedAt:r})=>r===t.id&&{"&::before":{content:'""',position:"absolute",top:-5,zIndex:1,borderTop:"4.5px solid transparent",borderLeft:`7px solid ${e.color.warning}`,borderBottom:"4.5px solid transparent"},"&::after":{content:'""',position:"absolute",top:-1,zIndex:1,width:"100%",borderTop:`1.5px solid ${e.color.warning}`}}),pO=R.div(({theme:e,isInteractive:t})=>({display:"flex","&:hover":t?{}:{background:e.background.hoverable}})),mO=R("button",{shouldForwardProp:h(e=>!["call"].includes(e.toString()),"shouldForwardProp")})(({theme:e,disabled:t,call:r})=>({flex:1,display:"grid",background:"none",border:0,gridTemplateColumns:"15px 1fr",alignItems:"center",minHeight:40,margin:0,padding:"8px 15px",textAlign:"start",cursor:t||r.status==="error"?"default":"pointer","&:focus-visible":{outline:0,boxShadow:`inset 3px 0 0 0 ${r.status==="error"?e.color.warning:e.color.secondary}`,background:r.status==="error"?"transparent":e.background.hoverable},"& > div":{opacity:r.status==="waiting"?.5:1}})),hO=R.div({display:"flex",alignItems:"center",padding:6}),fO=R(ce)(({theme:e})=>({color:e.textMutedColor,margin:"0 3px"})),gO=R(vt)(({theme:e})=>({fontFamily:e.typography.fonts.base})),hu=R("div")(({theme:e})=>({padding:"8px 10px 8px 36px",fontSize:At.size.s1,color:e.color.defaultText,pre:{margin:0,padding:0}})),yO=R.span(({theme:e})=>({color:e.base==="dark"?"#5EC1FF":"#0271B6"})),bO=R.span(({theme:e})=>({color:e.base==="dark"?"#eee":"#444"})),EO=R.p(({theme:e})=>({color:e.base==="dark"?e.color.negative:e.color.negativeText,fontSize:e.typography.size.s2,maxWidth:500,textWrap:"balance"})),vO=h(({exception:e})=>{let t=yi();if(!e)return null;if(e.callId===Lt)return Y(hu,null,Y("pre",null,Y(yO,null,e.name,":")," ",Y(bO,null,e.message)),Y(EO,null,"The component failed to render properly. Automated component tests will not run until this is resolved. Check the full error message in Storybook\u2019s canvas to debug."));if(gc(e))return Y(_0,{...e});if(fc(e))return Y(hu,null,Y(_0,{message:`${e.message}${e.diff?` ${e.diff}`:""}`,style:{padding:0}}),Y("p",null,"See the full stack trace in the browser console."));let r=e.message.split(` `),n=r.length>1;return Y(hu,null,Y("pre",{dangerouslySetInnerHTML:{__html:t.toHtml(r[0])}}),n&&Y("p",null,"See the full stack trace in the browser console."))},"Exception"),AO=h(({call:e,callsById:t,controls:r,controlStates:n,childCallIds:o,isHidden:a,isCollapsed:i,toggleCollapsed:s,pausedAt:l})=>{let[u,d]=z(!1),m=!n.goto||!e.interceptable||!!e.ancestors?.length;return a||e.id===Lt?null:Y(dO,{call:e,pausedAt:l},Y(pO,{isInteractive:m},Y(mO,{"aria-label":"Interaction step",call:e,onClick:()=>r.goto(e.id),disabled:m,onMouseEnter:()=>n.goto&&d(!0),onMouseLeave:()=>n.goto&&d(!1)},Y(B1,{status:u?"active":e.status}),Y(cO,{style:{marginLeft:6,marginBottom:1}},Y(Ec,{call:e,callsById:t}))),Y(hO,null,(o?.length??0)>0&&Y(De,{hasChrome:!1,tooltip:Y(gO,{note:`${i?"Show":"Hide"} interactions`})},Y(fO,{onClick:s,"aria-label":i?"Expand interaction":"Collapse interaction"},i?Y(bo,null):Y(Tc,null))))),e.status==="error"&&e.exception?.callId===e.id&&Y(vO,{exception:e.exception}))},"Interaction"),xO={rendering:"mediumdark",playing:"warning",completed:"positive",errored:"negative",aborted:"purple"},wO={rendering:"Wait",playing:"Runs",completed:"Pass",errored:"Fail",aborted:"Bail"},SO=R.div(({theme:e,status:t})=>({display:"inline-block",padding:"4px 6px 4px 8px",borderRadius:"4px",backgroundColor:e.color[xO[t]],color:"white",fontFamily:At.fonts.base,textTransform:"uppercase",fontSize:At.size.s1,letterSpacing:3,fontWeight:At.weight.bold,minWidth:65,textAlign:"center"})),CO=h(({status:e})=>{let t=wO[e];return c.createElement(SO,{"aria-label":"Status of the test run",status:e},t)},"StatusBadge"),DO=R.div(({theme:e})=>({boxShadow:`${e.appBorderColor} 0 -1px 0 0 inset`,background:e.background.app,position:"sticky",top:0,zIndex:1})),TO=R.nav({height:40,display:"flex",alignItems:"center",justifyContent:"space-between",paddingLeft:15}),kO=R(Je)(({theme:e})=>({borderRadius:4,padding:6,color:e.textMutedColor,"&:not(:disabled)":{"&:hover,&:focus-visible":{color:e.color.secondary}}})),Jn=R(vt)(({theme:e})=>({fontFamily:e.typography.fonts.base})),no=R(ce)(({theme:e})=>({color:e.textMutedColor,margin:"0 3px"})),OO=R(Ci)({marginTop:0}),IO=R(xi)(({theme:e})=>({color:e.textMutedColor,justifyContent:"flex-end",textAlign:"right",whiteSpace:"nowrap",marginTop:"auto",marginBottom:1,paddingRight:15,fontSize:13})),F0=R.div({display:"flex",alignItems:"center"}),RO=R(no)({marginLeft:9}),BO=R(kO)({marginLeft:9,marginRight:9,marginBottom:1,lineHeight:"12px"}),_O=R(no)(({theme:e,animating:t,disabled:r})=>({opacity:r?.5:1,svg:{animation:t?`${e.animation.rotate360} 200ms ease-out`:void 0}})),FO=h(({controls:e,controlStates:t,status:r,storyFileName:n,onScrollToEnd:o})=>{let a=r==="errored"?"Scroll to error":"Scroll to end",i=Qe();return c.createElement(DO,null,c.createElement(Tn,{backgroundColor:i.background.app},c.createElement(TO,{"aria-label":"Component tests toolbar"},c.createElement(F0,null,c.createElement(CO,{status:r}),c.createElement(BO,{onClick:o,disabled:!o},a),c.createElement(OO,null),c.createElement(De,{trigger:"hover",hasChrome:!1,tooltip:c.createElement(Jn,{note:"Go to start"})},c.createElement(RO,{"aria-label":"Go to start",onClick:e.start,disabled:!t.start},c.createElement(qc,null))),c.createElement(De,{trigger:"hover",hasChrome:!1,tooltip:c.createElement(Jn,{note:"Go back"})},c.createElement(no,{"aria-label":"Go back",onClick:e.back,disabled:!t.back},c.createElement(jc,null))),c.createElement(De,{trigger:"hover",hasChrome:!1,tooltip:c.createElement(Jn,{note:"Go forward"})},c.createElement(no,{"aria-label":"Go forward",onClick:e.next,disabled:!t.next},c.createElement($c,null))),c.createElement(De,{trigger:"hover",hasChrome:!1,tooltip:c.createElement(Jn,{note:"Go to end"})},c.createElement(no,{"aria-label":"Go to end",onClick:e.end,disabled:!t.end},c.createElement(Rc,null))),c.createElement(De,{trigger:"hover",hasChrome:!1,tooltip:c.createElement(Jn,{note:"Rerun"})},c.createElement(_O,{"aria-label":"Rerun",onClick:e.rerun},c.createElement(zc,null)))),n&&c.createElement(F0,null,c.createElement(IO,null,n)))))},"Subnav"),PO=R.div(({theme:{color:e,typography:t,background:r}})=>({textAlign:"start",padding:"11px 15px",fontSize:`${t.size.s2-1}px`,fontWeight:t.weight.regular,lineHeight:"1rem",background:r.app,borderBottom:`1px solid ${e.border}`,color:e.defaultText,backgroundClip:"padding-box",position:"relative",code:{fontSize:`${t.size.s1-1}px`,color:"inherit",margin:"0 0.2em",padding:"0 0.2em",background:"rgba(255, 255, 255, 0.8)",borderRadius:"2px",boxShadow:"0 0 0 1px rgba(0, 0, 0, 0.1)"}})),NO=h(({browserTestStatus:e})=>{let t=tt().getDocsUrl({subpath:ak,versioned:!0,renderer:!0}),[r,n]=e==="error"?["the CLI","this browser"]:["this browser","the CLI"];return c.createElement(PO,null,"This interaction test passed in ",r,", but the tests failed in ",n,"."," ",c.createElement(Ze,{href:t,target:"_blank",withArrow:!0},"Learn what could cause this"))},"TestDiscrepancyMessage"),LO=R.div(({theme:e})=>({height:"100%",background:e.background.content})),P0=R.div(({theme:e})=>({borderBottom:`1px solid ${e.appBorderColor}`,backgroundColor:e.base==="dark"?de(.93,e.color.negative):e.background.warning,padding:15,fontSize:e.typography.size.s2-1,lineHeight:"19px"})),fu=R.code(({theme:e})=>({margin:"0 1px",padding:3,fontSize:e.typography.size.s1-1,lineHeight:1,verticalAlign:"top",background:"rgba(0, 0, 0, 0.05)",border:`1px solid ${e.appBorderColor}`,borderRadius:3})),N0=R.div({paddingBottom:4,fontWeight:"bold"}),jO=R.p({margin:0,padding:"0 0 20px"}),L0=R.pre(({theme:e})=>({margin:0,padding:0,"&:not(:last-child)":{paddingBottom:16},fontSize:e.typography.size.s1-1})),MO=Xe(h(function({storyUrl:e,status:t,calls:r,controls:n,controlStates:o,interactions:a,fileName:i,hasException:s,caughtException:l,unhandledErrors:u,pausedAt:d,onScrollToEnd:m,endRef:p,hasResultMismatch:f,browserTestStatus:g}){let y=yi(),E=a.some(b=>b.id!==Lt);return Y(LO,null,f&&Y(NO,{browserTestStatus:g}),o.detached&&(E||s)&&Y(fk,{storyUrl:e}),Y(FO,{controls:n,controlStates:o,status:t,storyFileName:i,onScrollToEnd:m}),Y("div",{"aria-label":"Interactions list"},a.map(b=>Y(AO,{key:b.id,call:b,callsById:r,controls:n,controlStates:o,childCallIds:b.childCallIds,isHidden:b.isHidden,isCollapsed:b.isCollapsed,toggleCollapsed:b.toggleCollapsed,pausedAt:d}))),l&&!x1(l)&&Y(P0,null,Y(N0,null,"Caught exception in ",Y(fu,null,"play")," function"),Y(L0,{"data-chromatic":"ignore",dangerouslySetInnerHTML:{__html:y.toHtml(ju(l))}})),u&&Y(P0,null,Y(N0,null,"Unhandled Errors"),Y(jO,null,"Found ",u.length," unhandled error",u.length>1?"s":""," ","while running the play function. This might cause false positive assertions. Resolve unhandled errors or ignore unhandled errors with setting the",Y(fu,null,"test.dangerouslyIgnoreUnhandledErrors")," ","parameter to ",Y(fu,null,"true"),"."),u.map((b,x)=>Y(L0,{key:x,"data-chromatic":"ignore"},ju(b)))),Y("div",{ref:p}),t==="completed"&&!l&&!E&&Y(yk,null))},"InteractionsPanel"));function ju(e){return e.stack||`${e.name}: ${e.message}`}h(ju,"printSerializedError");var Qn={detached:!1,start:!1,back:!1,goto:!1,next:!1,end:!1},j0={rendering:"rendering",playing:"playing",completed:"completed",errored:"errored",aborted:"aborted"},$O={done:"status-value:success",error:"status-value:error",active:"status-value:pending",waiting:"status-value:pending"},qO=h(({log:e,calls:t,collapsed:r,setCollapsed:n})=>{let o=new Map,a=new Map;return e.map(({callId:i,ancestors:s,status:l})=>{let u=!1;return s.forEach(d=>{r.has(d)&&(u=!0),a.set(d,(a.get(d)||[]).concat(i))}),{...t.get(i),status:l,isHidden:u}}).map(i=>{let s=i.status==="error"&&i.ancestors&&o.get(i.ancestors.slice(-1)[0])?.status==="active"?"active":i.status;return o.set(i.id,{...i,status:s}),{...i,status:s,childCallIds:a.get(i.id),isCollapsed:r.has(i.id),toggleCollapsed:h(()=>n(l=>(l.has(i.id)?l.delete(i.id):l.add(i.id),new Set(l))),"toggleCollapsed")}})},"getInteractions"),za=h((e,{log:t,calls:r,collapsed:n,setCollapsed:o})=>qO({log:t,calls:r,collapsed:n,setCollapsed:o}).reduce((a,i)=>(i.id===Lt?a.interactions.push(i):e.status!=="rendering"&&(a.controlStates=e.controlStates,a.interactions.push(i),i.method!=="step"&&a.interactionsCount++),a),{...e,controlStates:Qn,interactions:[],interactionsCount:0}),"getPanelState"),gu=h((e,t)=>({id:Lt,method:"render",args:[],cursor:0,storyId:e,ancestors:[],path:[],interceptable:!0,retain:!1,exception:t}),"getInternalRenderCall"),Ga=h(e=>({callId:Lt,status:e,ancestors:[]}),"getInternalRenderLogItem"),UO=Xe(h(function({refId:e,storyId:t,storyUrl:r}){let{statusValue:n,testRunId:o}=nd(A=>{let D=e?void 0:A[t]?.[dk];return{statusValue:D?.value,testRunId:D?.data?.testRunId}}),[a,i]=jr(gi,{status:"rendering",controlStates:Qn,interactions:[],interactionsCount:0,hasException:!1,pausedAt:void 0,caughtException:void 0,unhandledErrors:void 0}),[s,l]=z(void 0),[u,d]=z(new Set),[m,p]=z(!1),{status:f="rendering",controlStates:g=Qn,interactions:y=[],pausedAt:E=void 0,caughtException:b=void 0,unhandledErrors:x=void 0}=a,S=ye([Ga("active")]),T=ye(new Map([[Lt,gu(t)]])),_=h(({status:A,...D})=>T.current.set(D.id,D),"setCall"),O=ye();X(()=>{let A;return H.IntersectionObserver&&(A=new H.IntersectionObserver(([D])=>l(D.isIntersecting?void 0:D.target),{root:H.document.querySelector("#panel-tab-content")}),O.current&&A.observe(O.current)),()=>A?.disconnect()},[]);let k=ye(0),B=Co({[kr.CALL]:_,[kr.SYNC]:A=>{S.current=[Ga("done"),...A.logItems],i(D=>za({...D,controlStates:A.controlStates,pausedAt:A.pausedAt},{log:S.current,calls:T.current,collapsed:u,setCollapsed:d}))},[gt]:A=>{A.newPhase==="preparing"||A.newPhase==="loading"||(k.current=Math.max(k.current,A.renderId||0),k.current===A.renderId&&(A.newPhase==="rendering"?(S.current=[Ga("active")],T.current.set(Lt,gu(t)),i({status:"rendering",controlStates:Qn,pausedAt:void 0,interactions:[],interactionsCount:0,hasException:!1,caughtException:void 0,unhandledErrors:void 0})):i(D=>{let N=A.newPhase in j0?j0[A.newPhase]:D.status;return za({...D,status:N,pausedAt:void 0},{log:S.current,calls:T.current,collapsed:u,setCollapsed:d})})))},[Bo]:A=>{S.current=[Ga("error")],T.current.set(Lt,gu(t,{...A,callId:Lt})),i(D=>za({...D,hasException:!0,caughtException:void 0,controlStates:Qn,pausedAt:void 0},{log:S.current,calls:T.current,collapsed:u,setCollapsed:d}))},[ko]:A=>{i(D=>({...D,caughtException:A,hasException:!0}))},[_o]:A=>{i(D=>({...D,unhandledErrors:A,hasException:!0}))}},[u]);X(()=>{i(A=>za(A,{log:S.current,calls:T.current,collapsed:u,setCollapsed:d}))},[i,u]);let P=Me(()=>({start:h(()=>B(kr.START,{storyId:t}),"start"),back:h(()=>B(kr.BACK,{storyId:t}),"back"),goto:h(A=>B(kr.GOTO,{storyId:t,callId:A}),"goto"),next:h(()=>B(kr.NEXT,{storyId:t}),"next"),end:h(()=>B(kr.END,{storyId:t}),"end"),rerun:h(()=>{B(br,{storyId:t})},"rerun")}),[B,t]),L=tr("fileName",""),[j]=L.toString().split("/").slice(-1),U=h(()=>s?.scrollIntoView({behavior:"smooth",block:"end"}),"scrollToTarget"),$=!!b||!!x||y.some(A=>A.status==="error"),v=Me(()=>f!=="playing"&&(y.length>0||$)?$?"error":"done":f==="playing"?"active":void 0,[f,y,$]);return X(()=>{if(v&&n&&n!=="status-value:pending"&&n!==$O[v]){let A=setTimeout(()=>p(D=>(D||B(lk,{type:"test-discrepancy",payload:{browserStatus:v==="done"?"PASS":"FAIL",cliStatus:v==="done"?"FAIL":"PASS",storyId:t,testRunId:o}}),!0)),2e3);return()=>clearTimeout(A)}else p(!1)},[B,v,n,t,o]),c.createElement(ft,{key:"component-tests"},c.createElement(MO,{storyUrl:r,status:f,hasResultMismatch:m,browserTestStatus:v,calls:T.current,controls:P,controlStates:{...g,detached:!!e||g.detached},interactions:y,fileName:j,hasException:$,caughtException:b,unhandledErrors:x,pausedAt:E,endRef:O,onScrollToEnd:s&&U}))},"PanelMemoized"));function _1(){let e=tt().getSelectedPanel(),[t={}]=jr(gi),{status:r,hasException:n,interactionsCount:o}=t;return c.createElement("div",{style:{display:"flex",alignItems:"center",gap:6}},c.createElement("span",null,"Interactions"),o&&r!=="errored"&&!n?c.createElement(gr,{compact:!0,status:e===hc?"active":"neutral"},o):null,r==="errored"||n?c.createElement(B1,{status:"error"}):null)}h(_1,"PanelTitle");var _q=ve.register(gi,()=>{if(globalThis?.FEATURES?.interactions){let e=h(({state:t})=>{let r=t.refId&&t.refs[t.refId]?.url||document.location.origin,{pathname:n,search:o=""}=t.location,a=n+(t.refId?o.replace(`/${t.refId}_`,"/"):o);return{refId:t.refId,storyId:t.storyId,storyUrl:r+a}},"filter");ve.add(hc,{type:et.PANEL,title:h(()=>c.createElement(_1,null),"title"),match:h(({viewMode:t})=>t==="story","match"),render:h(({active:t})=>c.createElement(Dn,{active:!!t},c.createElement(rd,{filter:e},r=>c.createElement(UO,{...r}))),"render")})}}),Mu="storybook/background",ei="backgrounds",$q={UPDATE:`${Mu}/update`},HO={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},VO=Xe(h(function(){let e=tr(ei),[t,r,n]=Rt(),[o,a]=z(!1),{options:i=HO,disable:s=!0}=e||{};if(s)return null;let l=t[ei]||{},u=l.value,d=l.grid||!1,m=i[u],p=!!n?.[ei],f=Object.keys(i).length;return c.createElement(zO,{length:f,backgroundMap:i,item:m,updateGlobals:r,backgroundName:u,setIsTooltipVisible:a,isLocked:p,isGridActive:d,isTooltipVisible:o})},"BackgroundSelector")),zO=Xe(h(function(e){let{item:t,length:r,updateGlobals:n,setIsTooltipVisible:o,backgroundMap:a,backgroundName:i,isLocked:s,isGridActive:l,isTooltipVisible:u}=e,d=Q(m=>{n({[ei]:m})},[n]);return c.createElement(ft,null,c.createElement(ce,{key:"grid",active:l,disabled:s,title:"Apply a grid to the preview",onClick:()=>d({value:i,grid:!l})},c.createElement(Bc,null)),r>0?c.createElement(De,{key:"background",placement:"top",closeOnOutsideClick:!0,tooltip:({onHide:m})=>c.createElement(In,{links:[...t?[{id:"reset",title:"Reset background",icon:c.createElement(Ao,null),onClick:h(()=>{d(void 0),m()},"onClick")}]:[],...Object.entries(a).map(([p,f])=>({id:p,title:f.name,icon:c.createElement(vo,{color:f?.value||"grey"}),active:p===i,onClick:h(()=>{d({value:p,grid:l}),m()},"onClick")}))].flat()}),onVisibleChange:o},c.createElement(ce,{disabled:s,key:"background",title:"Change the background of the preview",active:!!t||u},c.createElement(Lc,null))):null)},"PureTool")),qq=ve.register(Mu,()=>{globalThis?.FEATURES?.backgrounds&&ve.add(Mu,{title:"Backgrounds",type:et.TOOL,match:h(({viewMode:e,tabId:t})=>!!(e&&e.match(/^(story|docs)$/))&&!t,"match"),render:h(()=>c.createElement(VO,null),"render")})}),En="storybook/measure-addon",F1=`${En}/tool`,Yq={RESULT:`${En}/result`,REQUEST:`${En}/request`,CLEAR:`${En}/clear`},GO=h(()=>{let[e,t]=Rt(),{measureEnabled:r}=e||{},n=tt(),o=Q(()=>t({measureEnabled:!r}),[t,r]);return X(()=>{n.setAddonShortcut(En,{label:"Toggle Measure [M]",defaultShortcut:["M"],actionName:"measure",showInMenu:!1,action:o})},[o,n]),c.createElement(ce,{key:F1,active:r,title:"Enable measure",onClick:o},c.createElement(Uc,null))},"Tool"),Kq=ve.register(En,()=>{globalThis?.FEATURES?.measure&&ve.add(F1,{type:et.TOOL,title:"Measure",match:h(({viewMode:e,tabId:t})=>e==="story"&&!t,"match"),render:h(()=>c.createElement(GO,null),"render")})}),$u="storybook/outline",M0="outline",WO=Xe(h(function(){let[e,t]=Rt(),r=tt(),n=[!0,"true"].includes(e[M0]),o=Q(()=>t({[M0]:!n}),[n]);return X(()=>{r.setAddonShortcut($u,{label:"Toggle Outline",defaultShortcut:["alt","O"],actionName:"outline",showInMenu:!1,action:o})},[o,r]),c.createElement(ce,{key:"outline",active:n,title:"Apply outlines to the preview",onClick:o},c.createElement(Nc,null))},"OutlineSelector")),rU=ve.register($u,()=>{globalThis?.FEATURES?.outline&&ve.add($u,{title:"Outline",type:et.TOOL,match:h(({viewMode:e,tabId:t})=>!!(e&&e.match(/^(story|docs)$/))&&!t,"match"),render:h(()=>c.createElement(WO,null),"render")})}),vn="storybook/viewport",ti="viewport",uU=`${vn}/panel`,YO=`${vn}/tool`,KO={mobile1:{name:"Small mobile",styles:{height:"568px",width:"320px"},type:"mobile"},mobile2:{name:"Large mobile",styles:{height:"896px",width:"414px"},type:"mobile"},tablet:{name:"Tablet",styles:{height:"1112px",width:"834px"},type:"tablet"},desktop:{name:"Desktop",styles:{height:"1024px",width:"1280px"},type:"desktop"}},oo={name:"Reset viewport",styles:{height:"100%",width:"100%"},type:"desktop"},P1=h((e,t)=>e.indexOf(t),"getCurrentViewportIndex"),XO=h((e,t)=>{let r=P1(e,t);return r===e.length-1?e[0]:e[r+1]},"getNextViewport"),JO=h((e,t)=>{let r=P1(e,t);return r<1?e[e.length-1]:e[r-1]},"getPreviousViewport"),ZO=h(async(e,t,r,n)=>{await e.setAddonShortcut(vn,{label:"Previous viewport",defaultShortcut:["alt","shift","V"],actionName:"previous",action:h(()=>{r({viewport:JO(n,t)})},"action")}),await e.setAddonShortcut(vn,{label:"Next viewport",defaultShortcut:["alt","V"],actionName:"next",action:h(()=>{r({viewport:XO(n,t)})},"action")}),await e.setAddonShortcut(vn,{label:"Reset viewport",defaultShortcut:["alt","control","V"],actionName:"reset",action:h(()=>{r({viewport:{value:void 0,isRotated:!1}})},"action")})},"registerShortcuts"),QO=R.div({display:"inline-flex",alignItems:"center"}),$0=R.div(({theme:e})=>({display:"inline-block",textDecoration:"none",padding:10,fontWeight:e.typography.weight.bold,fontSize:e.typography.size.s2-1,lineHeight:"1",height:40,border:"none",borderTop:"3px solid transparent",borderBottom:"3px solid transparent",background:"transparent"})),eI=R(ce)(()=>({display:"inline-flex",alignItems:"center"})),tI=R.div(({theme:e})=>({fontSize:e.typography.size.s2-1,marginLeft:10})),rI={desktop:c.createElement(Sc,null),mobile:c.createElement(Pc,null),tablet:c.createElement(Gc,null),other:c.createElement(ft,null)},nI=h(({api:e})=>{let t=tr(ti),[r,n,o]=Rt(),[a,i]=z(!1),{options:s=KO,disable:l}=t||{},u=r?.[ti]||{},d=typeof u=="string"?u:u.value,m=typeof u=="string"?!1:u.isRotated,p=s[d]||oo,f=a||p!==oo,g=ti in o,y=Object.keys(s).length;if(X(()=>{ZO(e,d,n,Object.keys(s))},[s,d,n,e]),p.styles===null||!s||y<1)return null;if(typeof p.styles=="function")return console.warn("Addon Viewport no longer supports dynamic styles using a function, use css calc() instead"),null;let E=m?p.styles.height:p.styles.width,b=m?p.styles.width:p.styles.height;return l?null:c.createElement(oI,{item:p,updateGlobals:n,viewportMap:s,viewportName:d,isRotated:m,setIsTooltipVisible:i,isLocked:g,isActive:f,width:E,height:b})},"ViewportTool"),oI=c.memo(h(function(e){let{item:t,viewportMap:r,viewportName:n,isRotated:o,updateGlobals:a,setIsTooltipVisible:i,isLocked:s,isActive:l,width:u,height:d}=e,m=Q(p=>a({[ti]:p}),[a]);return c.createElement(ft,null,c.createElement(De,{placement:"bottom",tooltip:({onHide:p})=>c.createElement(In,{links:[...length>0&&t!==oo?[{id:"reset",title:"Reset viewport",icon:c.createElement(Ao,null),onClick:h(()=>{m(void 0),p()},"onClick")}]:[],...Object.entries(r).map(([f,g])=>({id:f,title:g.name,icon:rI[g.type],active:f===n,onClick:h(()=>{m({value:f,isRotated:!1}),p()},"onClick")}))].flat()}),closeOnOutsideClick:!0,onVisibleChange:i},c.createElement(eI,{disabled:s,key:"viewport",title:"Change the size of the preview",active:l,onDoubleClick:()=>{m({value:void 0,isRotated:!1})}},c.createElement(_c,null),t!==oo?c.createElement(tI,null,t.name," ",o?"(L)":"(P)"):null)),c.createElement(Jc,{styles:{'iframe[data-is-storybook="true"]':{width:u,height:d}}}),t!==oo?c.createElement(QO,null,c.createElement($0,{title:"Viewport width"},u.replace("px","")),s?"/":c.createElement(ce,{key:"viewport-rotate",title:"Rotate viewport",onClick:()=>{m({value:n,isRotated:!o})}},c.createElement(Wc,null)),c.createElement($0,{title:"Viewport height"},d.replace("px",""))):null)},"PureTool")),hU=ve.register(vn,e=>{globalThis?.FEATURES?.viewport&&ve.add(YO,{title:"viewport / media-queries",type:et.TOOL,match:h(({viewMode:t,tabId:r})=>t==="story"&&!r,"match"),render:h(()=>Y(nI,{api:e}),"render")})}),aI="tag-filters",iI="static-filter",fU=ve.register(aI,e=>{let t=Object.entries(H.TAGS_OPTIONS??{}).reduce((r,n)=>{let[o,a]=n;return a.excludeFromSidebar&&(r[o]=!0),r},{});e.experimental_setFilter(iI,r=>{let n=r.tags??[];return(n.includes("dev")||r.type==="docs")&&n.filter(o=>t[o]).length===0})});})(); }catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); } ================================================ FILE: docs/sb-manager/globals-module-info.js ================================================ import ESM_COMPAT_Module from "node:module"; import { fileURLToPath as ESM_COMPAT_fileURLToPath } from 'node:url'; import { dirname as ESM_COMPAT_dirname } from 'node:path'; const __filename = ESM_COMPAT_fileURLToPath(import.meta.url); const __dirname = ESM_COMPAT_dirname(__filename); const require = ESM_COMPAT_Module.createRequire(import.meta.url); // src/manager/globals/exports.ts var n = { react: [ "Children", "Component", "Fragment", "Profiler", "PureComponent", "StrictMode", "Suspense", "__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED", "act", "cloneElement", "createContext", "createElement", "createFactory", "createRef", "forwardRef", "isValidElement", "lazy", "memo", "startTransition", "unstable_act", "useCallback", "useContext", "useDebugValue", "useDeferredValue", "useEffect", "useId", "useImperativeHandle", "useInsertionEffect", "useLayoutEffect", "useMemo", "useReducer", "useRef", "useState", "useSyncExternalStore", "useTransition", "version" ], "react-dom": [ "__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED", "createPortal", "createRoot", "findDOMNode", "flushSync", "hydrate", "hydrateRoot", "render", "unmountComponentAtNode", "unstable_batchedUpdates", "unstable_renderSubtreeIntoContainer", "version" ], "react-dom/client": ["createRoot", "hydrateRoot"], "@storybook/icons": [ "AccessibilityAltIcon", "AccessibilityIcon", "AccessibilityIgnoredIcon", "AddIcon", "AdminIcon", "AlertAltIcon", "AlertIcon", "AlignLeftIcon", "AlignRightIcon", "AppleIcon", "ArrowBottomLeftIcon", "ArrowBottomRightIcon", "ArrowDownIcon", "ArrowLeftIcon", "ArrowRightIcon", "ArrowSolidDownIcon", "ArrowSolidLeftIcon", "ArrowSolidRightIcon", "ArrowSolidUpIcon", "ArrowTopLeftIcon", "ArrowTopRightIcon", "ArrowUpIcon", "AzureDevOpsIcon", "BackIcon", "BasketIcon", "BatchAcceptIcon", "BatchDenyIcon", "BeakerIcon", "BellIcon", "BitbucketIcon", "BoldIcon", "BookIcon", "BookmarkHollowIcon", "BookmarkIcon", "BottomBarIcon", "BottomBarToggleIcon", "BoxIcon", "BranchIcon", "BrowserIcon", "ButtonIcon", "CPUIcon", "CalendarIcon", "CameraIcon", "CameraStabilizeIcon", "CategoryIcon", "CertificateIcon", "ChangedIcon", "ChatIcon", "CheckIcon", "ChevronDownIcon", "ChevronLeftIcon", "ChevronRightIcon", "ChevronSmallDownIcon", "ChevronSmallLeftIcon", "ChevronSmallRightIcon", "ChevronSmallUpIcon", "ChevronUpIcon", "ChromaticIcon", "ChromeIcon", "CircleHollowIcon", "CircleIcon", "ClearIcon", "CloseAltIcon", "CloseIcon", "CloudHollowIcon", "CloudIcon", "CogIcon", "CollapseIcon", "CommandIcon", "CommentAddIcon", "CommentIcon", "CommentsIcon", "CommitIcon", "CompassIcon", "ComponentDrivenIcon", "ComponentIcon", "ContrastIcon", "ContrastIgnoredIcon", "ControlsIcon", "CopyIcon", "CreditIcon", "CrossIcon", "DashboardIcon", "DatabaseIcon", "DeleteIcon", "DiamondIcon", "DirectionIcon", "DiscordIcon", "DocChartIcon", "DocListIcon", "DocumentIcon", "DownloadIcon", "DragIcon", "EditIcon", "EllipsisIcon", "EmailIcon", "ExpandAltIcon", "ExpandIcon", "EyeCloseIcon", "EyeIcon", "FaceHappyIcon", "FaceNeutralIcon", "FaceSadIcon", "FacebookIcon", "FailedIcon", "FastForwardIcon", "FigmaIcon", "FilterIcon", "FlagIcon", "FolderIcon", "FormIcon", "GDriveIcon", "GithubIcon", "GitlabIcon", "GlobeIcon", "GoogleIcon", "GraphBarIcon", "GraphLineIcon", "GraphqlIcon", "GridAltIcon", "GridIcon", "GrowIcon", "HeartHollowIcon", "HeartIcon", "HomeIcon", "HourglassIcon", "InfoIcon", "ItalicIcon", "JumpToIcon", "KeyIcon", "LightningIcon", "LightningOffIcon", "LinkBrokenIcon", "LinkIcon", "LinkedinIcon", "LinuxIcon", "ListOrderedIcon", "ListUnorderedIcon", "LocationIcon", "LockIcon", "MarkdownIcon", "MarkupIcon", "MediumIcon", "MemoryIcon", "MenuIcon", "MergeIcon", "MirrorIcon", "MobileIcon", "MoonIcon", "NutIcon", "OutboxIcon", "OutlineIcon", "PaintBrushIcon", "PaperClipIcon", "ParagraphIcon", "PassedIcon", "PhoneIcon", "PhotoDragIcon", "PhotoIcon", "PhotoStabilizeIcon", "PinAltIcon", "PinIcon", "PlayAllHollowIcon", "PlayBackIcon", "PlayHollowIcon", "PlayIcon", "PlayNextIcon", "PlusIcon", "PointerDefaultIcon", "PointerHandIcon", "PowerIcon", "PrintIcon", "ProceedIcon", "ProfileIcon", "PullRequestIcon", "QuestionIcon", "RSSIcon", "RedirectIcon", "ReduxIcon", "RefreshIcon", "ReplyIcon", "RepoIcon", "RequestChangeIcon", "RewindIcon", "RulerIcon", "SaveIcon", "SearchIcon", "ShareAltIcon", "ShareIcon", "ShieldIcon", "SideBySideIcon", "SidebarAltIcon", "SidebarAltToggleIcon", "SidebarIcon", "SidebarToggleIcon", "SpeakerIcon", "StackedIcon", "StarHollowIcon", "StarIcon", "StatusFailIcon", "StatusIcon", "StatusPassIcon", "StatusWarnIcon", "StickerIcon", "StopAltHollowIcon", "StopAltIcon", "StopIcon", "StorybookIcon", "StructureIcon", "SubtractIcon", "SunIcon", "SupportIcon", "SweepIcon", "SwitchAltIcon", "SyncIcon", "TabletIcon", "ThumbsUpIcon", "TimeIcon", "TimerIcon", "TransferIcon", "TrashIcon", "TwitterIcon", "TypeIcon", "UbuntuIcon", "UndoIcon", "UnfoldIcon", "UnlockIcon", "UnpinIcon", "UploadIcon", "UserAddIcon", "UserAltIcon", "UserIcon", "UsersIcon", "VSCodeIcon", "VerifiedIcon", "VideoIcon", "WandIcon", "WatchIcon", "WindowsIcon", "WrenchIcon", "XIcon", "YoutubeIcon", "ZoomIcon", "ZoomOutIcon", "ZoomResetIcon", "iconList" ], "storybook/manager-api": [ "ActiveTabs", "Consumer", "ManagerContext", "Provider", "RequestResponseError", "addons", "combineParameters", "controlOrMetaKey", "controlOrMetaSymbol", "eventMatchesShortcut", "eventToShortcut", "experimental_MockUniversalStore", "experimental_UniversalStore", "experimental_getStatusStore", "experimental_getTestProviderStore", "experimental_requestResponse", "experimental_useStatusStore", "experimental_useTestProviderStore", "experimental_useUniversalStore", "internal_fullStatusStore", "internal_fullTestProviderStore", "internal_universalStatusStore", "internal_universalTestProviderStore", "isMacLike", "isShortcutTaken", "keyToSymbol", "merge", "mockChannel", "optionOrAltSymbol", "shortcutMatchesShortcut", "shortcutToHumanString", "types", "useAddonState", "useArgTypes", "useArgs", "useChannel", "useGlobalTypes", "useGlobals", "useParameter", "useSharedState", "useStoryPrepared", "useStorybookApi", "useStorybookState" ], "storybook/theming": [ "CacheProvider", "ClassNames", "Global", "ThemeProvider", "background", "color", "convert", "create", "createCache", "createGlobal", "createReset", "css", "darken", "ensure", "ignoreSsrWarning", "isPropValid", "jsx", "keyframes", "lighten", "styled", "themes", "typography", "useTheme", "withTheme" ], "storybook/theming/create": ["create", "themes"], "storybook/test": [ "buildQueries", "clearAllMocks", "configure", "createEvent", "expect", "findAllByAltText", "findAllByDisplayValue", "findAllByLabelText", "findAllByPlaceholderText", "findAllByRole", "findAllByTestId", "findAllByText", "findAllByTitle", "findByAltText", "findByDisplayValue", "findByLabelText", "findByPlaceholderText", "findByRole", "findByTestId", "findByText", "findByTitle", "fireEvent", "fn", "getAllByAltText", "getAllByDisplayValue", "getAllByLabelText", "getAllByPlaceholderText", "getAllByRole", "getAllByTestId", "getAllByText", "getAllByTitle", "getByAltText", "getByDisplayValue", "getByLabelText", "getByPlaceholderText", "getByRole", "getByTestId", "getByText", "getByTitle", "getConfig", "getDefaultNormalizer", "getElementError", "getNodeText", "getQueriesForElement", "getRoles", "getSuggestedQuery", "isInaccessible", "isMockFunction", "logDOM", "logRoles", "mocked", "mocks", "onMockCall", "prettyDOM", "prettyFormat", "queries", "queryAllByAltText", "queryAllByAttribute", "queryAllByDisplayValue", "queryAllByLabelText", "queryAllByPlaceholderText", "queryAllByRole", "queryAllByTestId", "queryAllByText", "queryAllByTitle", "queryByAltText", "queryByAttribute", "queryByDisplayValue", "queryByLabelText", "queryByPlaceholderText", "queryByRole", "queryByTestId", "queryByText", "queryByTitle", "queryHelpers", "resetAllMocks", "restoreAllMocks", "sb", "screen", "spyOn", "uninstrumentedUserEvent", "userEvent", "waitFor", "waitForElementToBeRemoved", "within" ], "storybook/internal/channels": [ "Channel", "HEARTBEAT_INTERVAL", "HEARTBEAT_MAX_LATENCY", "PostMessageTransport", "WebsocketTransport", "createBrowserChannel" ], "storybook/internal/client-logger": ["deprecate", "logger", "once", "pretty"], "storybook/internal/components": [ "A", "ActionBar", "AddonPanel", "Badge", "Bar", "Blockquote", "Button", "ClipboardCode", "Code", "DL", "Div", "DocumentWrapper", "EmptyTabContent", "ErrorFormatter", "FlexBar", "Form", "H1", "H2", "H3", "H4", "H5", "H6", "HR", "IconButton", "Img", "LI", "Link", "ListItem", "Loader", "Modal", "OL", "P", "Placeholder", "Pre", "ProgressSpinner", "ResetWrapper", "ScrollArea", "Separator", "Spaced", "Span", "StorybookIcon", "StorybookLogo", "SyntaxHighlighter", "TT", "TabBar", "TabButton", "TabWrapper", "Table", "Tabs", "TabsState", "TooltipLinkList", "TooltipMessage", "TooltipNote", "UL", "WithTooltip", "WithTooltipPure", "Zoom", "codeCommon", "components", "createCopyToClipboardFunction", "getStoryHref", "interleaveSeparators", "nameSpaceClassNames", "resetComponents", "withReset" ], "storybook/internal/core-errors": [ "ARGTYPES_INFO_REQUEST", "ARGTYPES_INFO_RESPONSE", "CHANNEL_CREATED", "CHANNEL_WS_DISCONNECT", "CONFIG_ERROR", "CREATE_NEW_STORYFILE_REQUEST", "CREATE_NEW_STORYFILE_RESPONSE", "CURRENT_STORY_WAS_SET", "DOCS_PREPARED", "DOCS_RENDERED", "FILE_COMPONENT_SEARCH_REQUEST", "FILE_COMPONENT_SEARCH_RESPONSE", "FORCE_REMOUNT", "FORCE_RE_RENDER", "GLOBALS_UPDATED", "NAVIGATE_URL", "PLAY_FUNCTION_THREW_EXCEPTION", "PRELOAD_ENTRIES", "PREVIEW_BUILDER_PROGRESS", "PREVIEW_KEYDOWN", "REGISTER_SUBSCRIPTION", "REQUEST_WHATS_NEW_DATA", "RESET_STORY_ARGS", "RESULT_WHATS_NEW_DATA", "SAVE_STORY_REQUEST", "SAVE_STORY_RESPONSE", "SELECT_STORY", "SET_CONFIG", "SET_CURRENT_STORY", "SET_FILTER", "SET_GLOBALS", "SET_INDEX", "SET_STORIES", "SET_WHATS_NEW_CACHE", "SHARED_STATE_CHANGED", "SHARED_STATE_SET", "STORIES_COLLAPSE_ALL", "STORIES_EXPAND_ALL", "STORY_ARGS_UPDATED", "STORY_CHANGED", "STORY_ERRORED", "STORY_FINISHED", "STORY_HOT_UPDATED", "STORY_INDEX_INVALIDATED", "STORY_MISSING", "STORY_PREPARED", "STORY_RENDERED", "STORY_RENDER_PHASE_CHANGED", "STORY_SPECIFIED", "STORY_THREW_EXCEPTION", "STORY_UNCHANGED", "TELEMETRY_ERROR", "TOGGLE_WHATS_NEW_NOTIFICATIONS", "UNHANDLED_ERRORS_WHILE_PLAYING", "UPDATE_GLOBALS", "UPDATE_QUERY_PARAMS", "UPDATE_STORY_ARGS" ], "storybook/internal/core-events": [ "ARGTYPES_INFO_REQUEST", "ARGTYPES_INFO_RESPONSE", "CHANNEL_CREATED", "CHANNEL_WS_DISCONNECT", "CONFIG_ERROR", "CREATE_NEW_STORYFILE_REQUEST", "CREATE_NEW_STORYFILE_RESPONSE", "CURRENT_STORY_WAS_SET", "DOCS_PREPARED", "DOCS_RENDERED", "FILE_COMPONENT_SEARCH_REQUEST", "FILE_COMPONENT_SEARCH_RESPONSE", "FORCE_REMOUNT", "FORCE_RE_RENDER", "GLOBALS_UPDATED", "NAVIGATE_URL", "PLAY_FUNCTION_THREW_EXCEPTION", "PRELOAD_ENTRIES", "PREVIEW_BUILDER_PROGRESS", "PREVIEW_KEYDOWN", "REGISTER_SUBSCRIPTION", "REQUEST_WHATS_NEW_DATA", "RESET_STORY_ARGS", "RESULT_WHATS_NEW_DATA", "SAVE_STORY_REQUEST", "SAVE_STORY_RESPONSE", "SELECT_STORY", "SET_CONFIG", "SET_CURRENT_STORY", "SET_FILTER", "SET_GLOBALS", "SET_INDEX", "SET_STORIES", "SET_WHATS_NEW_CACHE", "SHARED_STATE_CHANGED", "SHARED_STATE_SET", "STORIES_COLLAPSE_ALL", "STORIES_EXPAND_ALL", "STORY_ARGS_UPDATED", "STORY_CHANGED", "STORY_ERRORED", "STORY_FINISHED", "STORY_HOT_UPDATED", "STORY_INDEX_INVALIDATED", "STORY_MISSING", "STORY_PREPARED", "STORY_RENDERED", "STORY_RENDER_PHASE_CHANGED", "STORY_SPECIFIED", "STORY_THREW_EXCEPTION", "STORY_UNCHANGED", "TELEMETRY_ERROR", "TOGGLE_WHATS_NEW_NOTIFICATIONS", "UNHANDLED_ERRORS_WHILE_PLAYING", "UPDATE_GLOBALS", "UPDATE_QUERY_PARAMS", "UPDATE_STORY_ARGS" ], "storybook/internal/manager-errors": [ "Category", "ProviderDoesNotExtendBaseProviderError", "StatusTypeIdMismatchError", "UncaughtManagerError" ], "storybook/internal/router": [ "BaseLocationProvider", "DEEPLY_EQUAL", "Link", "Location", "LocationProvider", "Match", "Route", "buildArgsParam", "deepDiff", "getMatch", "parsePath", "queryFromLocation", "stringifyQuery", "useNavigate" ], "storybook/internal/types": ["Addon_TypesEnum"], "storybook/internal/manager-api": [ "ActiveTabs", "Consumer", "ManagerContext", "Provider", "RequestResponseError", "addons", "combineParameters", "controlOrMetaKey", "controlOrMetaSymbol", "eventMatchesShortcut", "eventToShortcut", "experimental_MockUniversalStore", "experimental_UniversalStore", "experimental_getStatusStore", "experimental_getTestProviderStore", "experimental_requestResponse", "experimental_useStatusStore", "experimental_useTestProviderStore", "experimental_useUniversalStore", "internal_fullStatusStore", "internal_fullTestProviderStore", "internal_universalStatusStore", "internal_universalTestProviderStore", "isMacLike", "isShortcutTaken", "keyToSymbol", "merge", "mockChannel", "optionOrAltSymbol", "shortcutMatchesShortcut", "shortcutToHumanString", "types", "useAddonState", "useArgTypes", "useArgs", "useChannel", "useGlobalTypes", "useGlobals", "useParameter", "useSharedState", "useStoryPrepared", "useStorybookApi", "useStorybookState" ], "storybook/internal/theming": [ "CacheProvider", "ClassNames", "Global", "ThemeProvider", "background", "color", "convert", "create", "createCache", "createGlobal", "createReset", "css", "darken", "ensure", "ignoreSsrWarning", "isPropValid", "jsx", "keyframes", "lighten", "styled", "themes", "typography", "useTheme", "withTheme" ], "storybook/internal/theming/create": ["create", "themes"] }; // src/manager/globals/globals.ts var o = { react: "__REACT__", "react-dom": "__REACT_DOM__", "react-dom/client": "__REACT_DOM_CLIENT__", "@storybook/icons": "__STORYBOOK_ICONS__", "storybook/manager-api": "__STORYBOOK_API__", "storybook/test": "__STORYBOOK_TEST__", "storybook/theming": "__STORYBOOK_THEMING__", "storybook/theming/create": "__STORYBOOK_THEMING_CREATE__", "storybook/internal/channels": "__STORYBOOK_CHANNELS__", "storybook/internal/client-logger": "__STORYBOOK_CLIENT_LOGGER__", "storybook/internal/components": "__STORYBOOK_COMPONENTS__", "storybook/internal/core-errors": "__STORYBOOK_CORE_EVENTS__", "storybook/internal/core-events": "__STORYBOOK_CORE_EVENTS__", "storybook/internal/manager-errors": "__STORYBOOK_CORE_EVENTS_MANAGER_ERRORS__", "storybook/internal/router": "__STORYBOOK_ROUTER__", "storybook/internal/types": "__STORYBOOK_TYPES__", // @deprecated TODO: delete in 9.1 "storybook/internal/manager-api": "__STORYBOOK_API__", "storybook/internal/theming": "__STORYBOOK_THEMING__", "storybook/internal/theming/create": "__STORYBOOK_THEMING_CREATE__" }, r = Object.keys(o); // src/manager/globals/globals-module-info.ts var E = r.reduce( (t, e) => (t[e] = { type: "esm", varName: o[e], namedExports: n[e], defaultExport: !0 }, t), {} ); export { E as globalsModuleInfoMap }; ================================================ FILE: docs/sb-manager/globals-runtime.js ================================================ var Jme = Object.create; var nf = Object.defineProperty; var Qme = Object.getOwnPropertyDescriptor; var Zme = Object.getOwnPropertyNames; var ehe = Object.getPrototypeOf, the = Object.prototype.hasOwnProperty; var a = (e, t) => nf(e, "name", { value: t, configurable: !0 }), of = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (t, r) => (typeof require < "u" ? require : t)[r] }) : e)(function(e) { if (typeof require < "u") return require.apply(this, arguments); throw Error('Dynamic require of "' + e + '" is not supported'); }); var k = (e, t) => () => (e && (t = e(e = 0)), t); var R = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), _e = (e, t) => { for (var r in t) nf(e, r, { get: t[r], enumerable: !0 }); }, a9 = (e, t, r, n) => { if (t && typeof t == "object" || typeof t == "function") for (let o of Zme(t)) !the.call(e, o) && o !== r && nf(e, o, { get: () => t[o], enumerable: !(n = Qme(t, o)) || n.enumerable }); return e; }; var N = (e, t, r) => (r = e != null ? Jme(ehe(e)) : {}, a9( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. t || !e || !e.__esModule ? nf(r, "default", { value: e, enumerable: !0 }) : r, e )), rhe = (e) => a9(nf({}, "__esModule", { value: !0 }), e); // ../node_modules/react/cjs/react.production.min.js var v9 = R((Se) => { "use strict"; var ff = Symbol.for("react.element"), Che = Symbol.for("react.portal"), _he = Symbol.for("react.fragment"), Phe = Symbol.for("react.strict\ _mode"), The = Symbol.for("react.profiler"), Ahe = Symbol.for("react.provider"), Ohe = Symbol.for("react.context"), Ihe = Symbol.for("react.\ forward_ref"), Mhe = Symbol.for("react.suspense"), Nhe = Symbol.for("react.memo"), Lhe = Symbol.for("react.lazy"), s9 = Symbol.iterator; function khe(e) { return e === null || typeof e != "object" ? null : (e = s9 && e[s9] || e["@@iterator"], typeof e == "function" ? e : null); } a(khe, "A"); var c9 = { isMounted: /* @__PURE__ */ a(function() { return !1; }, "isMounted"), enqueueForceUpdate: /* @__PURE__ */ a(function() { }, "enqueueForceUpdate"), enqueueReplaceState: /* @__PURE__ */ a(function() { }, "enqueueReplaceState"), enqueueSetState: /* @__PURE__ */ a(function() { }, "enqueueSetState") }, d9 = Object.assign, f9 = {}; function Su(e, t, r) { this.props = e, this.context = t, this.refs = f9, this.updater = r || c9; } a(Su, "E"); Su.prototype.isReactComponent = {}; Su.prototype.setState = function(e, t) { if (typeof e != "object" && typeof e != "function" && e != null) throw Error("setState(...): takes an object of state variables to updat\ e or a function which returns an object of state variables."); this.updater.enqueueSetState(this, e, t, "setState"); }; Su.prototype.forceUpdate = function(e) { this.updater.enqueueForceUpdate(this, e, "forceUpdate"); }; function p9() { } a(p9, "F"); p9.prototype = Su.prototype; function Y4(e, t, r) { this.props = e, this.context = t, this.refs = f9, this.updater = r || c9; } a(Y4, "G"); var K4 = Y4.prototype = new p9(); K4.constructor = Y4; d9(K4, Su.prototype); K4.isPureReactComponent = !0; var l9 = Array.isArray, m9 = Object.prototype.hasOwnProperty, X4 = { current: null }, h9 = { key: !0, ref: !0, __self: !0, __source: !0 }; function g9(e, t, r) { var n, o = {}, i = null, s = null; if (t != null) for (n in t.ref !== void 0 && (s = t.ref), t.key !== void 0 && (i = "" + t.key), t) m9.call(t, n) && !h9.hasOwnProperty(n) && (o[n] = t[n]); var l = arguments.length - 2; if (l === 1) o.children = r; else if (1 < l) { for (var u = Array(l), c = 0; c < l; c++) u[c] = arguments[c + 2]; o.children = u; } if (e && e.defaultProps) for (n in l = e.defaultProps, l) o[n] === void 0 && (o[n] = l[n]); return { $$typeof: ff, type: e, key: i, ref: s, props: o, _owner: X4.current }; } a(g9, "M"); function qhe(e, t) { return { $$typeof: ff, type: e.type, key: t, ref: e.ref, props: e.props, _owner: e._owner }; } a(qhe, "N"); function J4(e) { return typeof e == "object" && e !== null && e.$$typeof === ff; } a(J4, "O"); function Dhe(e) { var t = { "=": "=0", ":": "=2" }; return "$" + e.replace(/[=:]/g, function(r) { return t[r]; }); } a(Dhe, "escape"); var u9 = /\/+/g; function G4(e, t) { return typeof e == "object" && e !== null && e.key != null ? Dhe("" + e.key) : t.toString(36); } a(G4, "Q"); function a0(e, t, r, n, o) { var i = typeof e; (i === "undefined" || i === "boolean") && (e = null); var s = !1; if (e === null) s = !0; else switch (i) { case "string": case "number": s = !0; break; case "object": switch (e.$$typeof) { case ff: case Che: s = !0; } } if (s) return s = e, o = o(s), e = n === "" ? "." + G4(s, 0) : n, l9(o) ? (r = "", e != null && (r = e.replace(u9, "$&/") + "/"), a0(o, t, r, "", function(c) { return c; })) : o != null && (J4(o) && (o = qhe(o, r + (!o.key || s && s.key === o.key ? "" : ("" + o.key).replace(u9, "$&/") + "/") + e)), t.push( o)), 1; if (s = 0, n = n === "" ? "." : n + ":", l9(e)) for (var l = 0; l < e.length; l++) { i = e[l]; var u = n + G4(i, l); s += a0(i, t, r, u, o); } else if (u = khe(e), typeof u == "function") for (e = u.call(e), l = 0; !(i = e.next()).done; ) i = i.value, u = n + G4(i, l++), s += a0( i, t, r, u, o); else if (i === "object") throw t = String(e), Error("Objects are not valid as a React child (found: " + (t === "[object Object]" ? "obje\ ct with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead."); return s; } a(a0, "R"); function o0(e, t, r) { if (e == null) return e; var n = [], o = 0; return a0(e, n, "", "", function(i) { return t.call(r, i, o++); }), n; } a(o0, "S"); function Fhe(e) { if (e._status === -1) { var t = e._result; t = t(), t.then(function(r) { (e._status === 0 || e._status === -1) && (e._status = 1, e._result = r); }, function(r) { (e._status === 0 || e._status === -1) && (e._status = 2, e._result = r); }), e._status === -1 && (e._status = 0, e._result = t); } if (e._status === 1) return e._result.default; throw e._result; } a(Fhe, "T"); var Ir = { current: null }, i0 = { transition: null }, jhe = { ReactCurrentDispatcher: Ir, ReactCurrentBatchConfig: i0, ReactCurrentOwner: X4 }; function y9() { throw Error("act(...) is not supported in production builds of React."); } a(y9, "X"); Se.Children = { map: o0, forEach: /* @__PURE__ */ a(function(e, t, r) { o0(e, function() { t.apply(this, arguments); }, r); }, "forEach"), count: /* @__PURE__ */ a(function(e) { var t = 0; return o0(e, function() { t++; }), t; }, "count"), toArray: /* @__PURE__ */ a(function(e) { return o0(e, function(t) { return t; }) || []; }, "toArray"), only: /* @__PURE__ */ a(function(e) { if (!J4(e)) throw Error("React.Children.only expected to receive a single React element child."); return e; }, "only") }; Se.Component = Su; Se.Fragment = _he; Se.Profiler = The; Se.PureComponent = Y4; Se.StrictMode = Phe; Se.Suspense = Mhe; Se.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = jhe; Se.act = y9; Se.cloneElement = function(e, t, r) { if (e == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + "."); var n = d9({}, e.props), o = e.key, i = e.ref, s = e._owner; if (t != null) { if (t.ref !== void 0 && (i = t.ref, s = X4.current), t.key !== void 0 && (o = "" + t.key), e.type && e.type.defaultProps) var l = e.type. defaultProps; for (u in t) m9.call(t, u) && !h9.hasOwnProperty(u) && (n[u] = t[u] === void 0 && l !== void 0 ? l[u] : t[u]); } var u = arguments.length - 2; if (u === 1) n.children = r; else if (1 < u) { l = Array(u); for (var c = 0; c < u; c++) l[c] = arguments[c + 2]; n.children = l; } return { $$typeof: ff, type: e.type, key: o, ref: i, props: n, _owner: s }; }; Se.createContext = function(e) { return e = { $$typeof: Ohe, _currentValue: e, _currentValue2: e, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, e.Provider = { $$typeof: Ahe, _context: e }, e.Consumer = e; }; Se.createElement = g9; Se.createFactory = function(e) { var t = g9.bind(null, e); return t.type = e, t; }; Se.createRef = function() { return { current: null }; }; Se.forwardRef = function(e) { return { $$typeof: Ihe, render: e }; }; Se.isValidElement = J4; Se.lazy = function(e) { return { $$typeof: Lhe, _payload: { _status: -1, _result: e }, _init: Fhe }; }; Se.memo = function(e, t) { return { $$typeof: Nhe, type: e, compare: t === void 0 ? null : t }; }; Se.startTransition = function(e) { var t = i0.transition; i0.transition = {}; try { e(); } finally { i0.transition = t; } }; Se.unstable_act = y9; Se.useCallback = function(e, t) { return Ir.current.useCallback(e, t); }; Se.useContext = function(e) { return Ir.current.useContext(e); }; Se.useDebugValue = function() { }; Se.useDeferredValue = function(e) { return Ir.current.useDeferredValue(e); }; Se.useEffect = function(e, t) { return Ir.current.useEffect(e, t); }; Se.useId = function() { return Ir.current.useId(); }; Se.useImperativeHandle = function(e, t, r) { return Ir.current.useImperativeHandle(e, t, r); }; Se.useInsertionEffect = function(e, t) { return Ir.current.useInsertionEffect(e, t); }; Se.useLayoutEffect = function(e, t) { return Ir.current.useLayoutEffect(e, t); }; Se.useMemo = function(e, t) { return Ir.current.useMemo(e, t); }; Se.useReducer = function(e, t, r) { return Ir.current.useReducer(e, t, r); }; Se.useRef = function(e) { return Ir.current.useRef(e); }; Se.useState = function(e) { return Ir.current.useState(e); }; Se.useSyncExternalStore = function(e, t, r) { return Ir.current.useSyncExternalStore(e, t, r); }; Se.useTransition = function() { return Ir.current.useTransition(); }; Se.version = "18.3.1"; }); // ../node_modules/react/index.js var H = R((alt, b9) => { "use strict"; b9.exports = v9(); }); // ../node_modules/scheduler/cjs/scheduler.production.min.js var A9 = R((Ge) => { "use strict"; function tC(e, t) { var r = e.length; e.push(t); e: for (; 0 < r; ) { var n = r - 1 >>> 1, o = e[n]; if (0 < s0(o, t)) e[n] = t, e[r] = o, r = n; else break e; } } a(tC, "f"); function Eo(e) { return e.length === 0 ? null : e[0]; } a(Eo, "h"); function u0(e) { if (e.length === 0) return null; var t = e[0], r = e.pop(); if (r !== t) { e[0] = r; e: for (var n = 0, o = e.length, i = o >>> 1; n < i; ) { var s = 2 * (n + 1) - 1, l = e[s], u = s + 1, c = e[u]; if (0 > s0(l, r)) u < o && 0 > s0(c, l) ? (e[n] = c, e[u] = r, n = u) : (e[n] = l, e[s] = r, n = s); else if (u < o && 0 > s0(c, r)) e[n] = c, e[u] = r, n = u; else break e; } } return t; } a(u0, "k"); function s0(e, t) { var r = e.sortIndex - t.sortIndex; return r !== 0 ? r : e.id - t.id; } a(s0, "g"); typeof performance == "object" && typeof performance.now == "function" ? (w9 = performance, Ge.unstable_now = function() { return w9.now(); }) : (Q4 = Date, E9 = Q4.now(), Ge.unstable_now = function() { return Q4.now() - E9; }); var w9, Q4, E9, aa = [], bi = [], Bhe = 1, kn = null, br = 3, c0 = !1, Ys = !1, mf = !1, S9 = typeof setTimeout == "function" ? setTimeout : null, C9 = typeof clearTimeout == "function" ? clearTimeout : null, R9 = typeof setImmediate < "u" ? setImmediate : null; typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending. bind(navigator.scheduling); function rC(e) { for (var t = Eo(bi); t !== null; ) { if (t.callback === null) u0(bi); else if (t.startTime <= e) u0(bi), t.sortIndex = t.expirationTime, tC(aa, t); else break; t = Eo(bi); } } a(rC, "G"); function nC(e) { if (mf = !1, rC(e), !Ys) if (Eo(aa) !== null) Ys = !0, aC(oC); else { var t = Eo(bi); t !== null && iC(nC, t.startTime - e); } } a(nC, "H"); function oC(e, t) { Ys = !1, mf && (mf = !1, C9(hf), hf = -1), c0 = !0; var r = br; try { for (rC(t), kn = Eo(aa); kn !== null && (!(kn.expirationTime > t) || e && !T9()); ) { var n = kn.callback; if (typeof n == "function") { kn.callback = null, br = kn.priorityLevel; var o = n(kn.expirationTime <= t); t = Ge.unstable_now(), typeof o == "function" ? kn.callback = o : kn === Eo(aa) && u0(aa), rC(t); } else u0(aa); kn = Eo(aa); } if (kn !== null) var i = !0; else { var s = Eo(bi); s !== null && iC(nC, s.startTime - t), i = !1; } return i; } finally { kn = null, br = r, c0 = !1; } } a(oC, "J"); var d0 = !1, l0 = null, hf = -1, _9 = 5, P9 = -1; function T9() { return !(Ge.unstable_now() - P9 < _9); } a(T9, "M"); function Z4() { if (l0 !== null) { var e = Ge.unstable_now(); P9 = e; var t = !0; try { t = l0(!0, e); } finally { t ? pf() : (d0 = !1, l0 = null); } } else d0 = !1; } a(Z4, "R"); var pf; typeof R9 == "function" ? pf = /* @__PURE__ */ a(function() { R9(Z4); }, "S") : typeof MessageChannel < "u" ? (eC = new MessageChannel(), x9 = eC.port2, eC.port1.onmessage = Z4, pf = /* @__PURE__ */ a(function() { x9.postMessage(null); }, "S")) : pf = /* @__PURE__ */ a(function() { S9(Z4, 0); }, "S"); var eC, x9; function aC(e) { l0 = e, d0 || (d0 = !0, pf()); } a(aC, "I"); function iC(e, t) { hf = S9(function() { e(Ge.unstable_now()); }, t); } a(iC, "K"); Ge.unstable_IdlePriority = 5; Ge.unstable_ImmediatePriority = 1; Ge.unstable_LowPriority = 4; Ge.unstable_NormalPriority = 3; Ge.unstable_Profiling = null; Ge.unstable_UserBlockingPriority = 2; Ge.unstable_cancelCallback = function(e) { e.callback = null; }; Ge.unstable_continueExecution = function() { Ys || c0 || (Ys = !0, aC(oC)); }; Ge.unstable_forceFrameRate = function(e) { 0 > e || 125 < e ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not \ supported") : _9 = 0 < e ? Math.floor(1e3 / e) : 5; }; Ge.unstable_getCurrentPriorityLevel = function() { return br; }; Ge.unstable_getFirstCallbackNode = function() { return Eo(aa); }; Ge.unstable_next = function(e) { switch (br) { case 1: case 2: case 3: var t = 3; break; default: t = br; } var r = br; br = t; try { return e(); } finally { br = r; } }; Ge.unstable_pauseExecution = function() { }; Ge.unstable_requestPaint = function() { }; Ge.unstable_runWithPriority = function(e, t) { switch (e) { case 1: case 2: case 3: case 4: case 5: break; default: e = 3; } var r = br; br = e; try { return t(); } finally { br = r; } }; Ge.unstable_scheduleCallback = function(e, t, r) { var n = Ge.unstable_now(); switch (typeof r == "object" && r !== null ? (r = r.delay, r = typeof r == "number" && 0 < r ? n + r : n) : r = n, e) { case 1: var o = -1; break; case 2: o = 250; break; case 5: o = 1073741823; break; case 4: o = 1e4; break; default: o = 5e3; } return o = r + o, e = { id: Bhe++, callback: t, priorityLevel: e, startTime: r, expirationTime: o, sortIndex: -1 }, r > n ? (e.sortIndex = r, tC(bi, e), Eo(aa) === null && e === Eo(bi) && (mf ? (C9(hf), hf = -1) : mf = !0, iC(nC, r - n))) : (e.sortIndex = o, tC(aa, e), Ys || c0 || (Ys = !0, aC(oC))), e; }; Ge.unstable_shouldYield = T9; Ge.unstable_wrapCallback = function(e) { var t = br; return function() { var r = br; br = t; try { return e.apply(this, arguments); } finally { br = r; } }; }; }); // ../node_modules/scheduler/index.js var I9 = R((llt, O9) => { "use strict"; O9.exports = A9(); }); // ../node_modules/react-dom/cjs/react-dom.production.min.js var kq = R((bn) => { "use strict"; var $he = H(), yn = I9(); function W(e) { for (var t = "https://reactjs.org/docs/error-decoder.html?invariant=" + e, r = 1; r < arguments.length; r++) t += "&args[]=" + encodeURIComponent( arguments[r]); return "Minified React error #" + e + "; visit " + t + " for the full message or use the non-minified dev environment for full errors an\ d additional helpful warnings."; } a(W, "p"); var FL = /* @__PURE__ */ new Set(), Df = {}; function sl(e, t) { Vu(e, t), Vu(e + "Capture", t); } a(sl, "fa"); function Vu(e, t) { for (Df[e] = t, e = 0; e < t.length; e++) FL.add(t[e]); } a(Vu, "ha"); var Fa = !(typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u"), AC = Object.prototype.hasOwnProperty, Hhe = /^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/, M9 = {}, N9 = {}; function zhe(e) { return AC.call(N9, e) ? !0 : AC.call(M9, e) ? !1 : Hhe.test(e) ? N9[e] = !0 : (M9[e] = !0, !1); } a(zhe, "oa"); function Uhe(e, t, r, n) { if (r !== null && r.type === 0) return !1; switch (typeof t) { case "function": case "symbol": return !0; case "boolean": return n ? !1 : r !== null ? !r.acceptsBooleans : (e = e.toLowerCase().slice(0, 5), e !== "data-" && e !== "aria-"); default: return !1; } } a(Uhe, "pa"); function Vhe(e, t, r, n) { if (t === null || typeof t > "u" || Uhe(e, t, r, n)) return !0; if (n) return !1; if (r !== null) switch (r.type) { case 3: return !t; case 4: return t === !1; case 5: return isNaN(t); case 6: return isNaN(t) || 1 > t; } return !1; } a(Vhe, "qa"); function Lr(e, t, r, n, o, i, s) { this.acceptsBooleans = t === 2 || t === 3 || t === 4, this.attributeName = n, this.attributeNamespace = o, this.mustUseProperty = r, this. propertyName = e, this.type = t, this.sanitizeURL = i, this.removeEmptyString = s; } a(Lr, "v"); var lr = {}; "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split( " ").forEach(function(e) { lr[e] = new Lr(e, 0, !1, e, null, !1, !1); }); [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(e) { var t = e[0]; lr[t] = new Lr(t, 1, !1, e[1], null, !1, !1); }); ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(e) { lr[e] = new Lr(e, 2, !1, e.toLowerCase(), null, !1, !1); }); ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(e) { lr[e] = new Lr(e, 2, !1, e, null, !1, !1); }); "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hid\ den loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e) { lr[e] = new Lr(e, 3, !1, e.toLowerCase(), null, !1, !1); }); ["checked", "multiple", "muted", "selected"].forEach(function(e) { lr[e] = new Lr(e, 3, !0, e, null, !1, !1); }); ["capture", "download"].forEach(function(e) { lr[e] = new Lr(e, 4, !1, e, null, !1, !1); }); ["cols", "rows", "size", "span"].forEach(function(e) { lr[e] = new Lr(e, 6, !1, e, null, !1, !1); }); ["rowSpan", "start"].forEach(function(e) { lr[e] = new Lr(e, 5, !1, e.toLowerCase(), null, !1, !1); }); var E_ = /[\-:]([a-z])/g; function R_(e) { return e[1].toUpperCase(); } a(R_, "sa"); "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filter\ s color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size f\ ont-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-ad\ v-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness pai\ nt-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness str\ oke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration tex\ t-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematic\ al vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e) { var t = e.replace( E_, R_ ); lr[t] = new Lr(t, 1, !1, e, null, !1, !1); }); "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e) { var t = e.replace(E_, R_); lr[t] = new Lr(t, 1, !1, e, "http://www.w3.org/1999/xlink", !1, !1); }); ["xml:base", "xml:lang", "xml:space"].forEach(function(e) { var t = e.replace(E_, R_); lr[t] = new Lr(t, 1, !1, e, "http://www.w3.org/XML/1998/namespace", !1, !1); }); ["tabIndex", "crossOrigin"].forEach(function(e) { lr[e] = new Lr(e, 1, !1, e.toLowerCase(), null, !1, !1); }); lr.xlinkHref = new Lr("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1); ["src", "href", "action", "formAction"].forEach(function(e) { lr[e] = new Lr(e, 1, !1, e.toLowerCase(), null, !0, !0); }); function x_(e, t, r, n) { var o = lr.hasOwnProperty(t) ? lr[t] : null; (o !== null ? o.type !== 0 : n || !(2 < t.length) || t[0] !== "o" && t[0] !== "O" || t[1] !== "n" && t[1] !== "N") && (Vhe(t, r, o, n) && (r = null), n || o === null ? zhe(t) && (r === null ? e.removeAttribute(t) : e.setAttribute(t, "" + r)) : o.mustUseProperty ? e[o.propertyName] = r === null ? o.type === 3 ? !1 : "" : r : (t = o.attributeName, n = o.attributeNamespace, r === null ? e.removeAttribute(t) : (o = o.type, r = o === 3 || o === 4 && r === !0 ? "" : "" + r, n ? e.setAttributeNS(n, t, r) : e.setAttribute(t, r)))); } a(x_, "ta"); var Ha = $he.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, f0 = Symbol.for("react.element"), Pu = Symbol.for("react.portal"), Tu = Symbol. for("react.fragment"), S_ = Symbol.for("react.strict_mode"), OC = Symbol.for("react.profiler"), jL = Symbol.for("react.provider"), BL = Symbol. for("react.context"), C_ = Symbol.for("react.forward_ref"), IC = Symbol.for("react.suspense"), MC = Symbol.for("react.suspense_list"), __ = Symbol. for("react.memo"), Ei = Symbol.for("react.lazy"); Symbol.for("react.scope"); Symbol.for("react.debug_trace_mode"); var $L = Symbol.for("react.offscreen"); Symbol.for("react.legacy_hidden"); Symbol.for("react.cache"); Symbol.for("react.tracing_marker"); var L9 = Symbol.iterator; function gf(e) { return e === null || typeof e != "object" ? null : (e = L9 && e[L9] || e["@@iterator"], typeof e == "function" ? e : null); } a(gf, "Ka"); var pt = Object.assign, sC; function Sf(e) { if (sC === void 0) try { throw Error(); } catch (r) { var t = r.stack.trim().match(/\n( *(at )?)/); sC = t && t[1] || ""; } return ` ` + sC + e; } a(Sf, "Ma"); var lC = !1; function uC(e, t) { if (!e || lC) return ""; lC = !0; var r = Error.prepareStackTrace; Error.prepareStackTrace = void 0; try { if (t) if (t = /* @__PURE__ */ a(function() { throw Error(); }, "b"), Object.defineProperty(t.prototype, "props", { set: /* @__PURE__ */ a(function() { throw Error(); }, "set") }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(t, []); } catch (c) { var n = c; } Reflect.construct(e, [], t); } else { try { t.call(); } catch (c) { n = c; } e.call(t.prototype); } else { try { throw Error(); } catch (c) { n = c; } e(); } } catch (c) { if (c && n && typeof c.stack == "string") { for (var o = c.stack.split(` `), i = n.stack.split(` `), s = o.length - 1, l = i.length - 1; 1 <= s && 0 <= l && o[s] !== i[l]; ) l--; for (; 1 <= s && 0 <= l; s--, l--) if (o[s] !== i[l]) { if (s !== 1 || l !== 1) do if (s--, l--, 0 > l || o[s] !== i[l]) { var u = ` ` + o[s].replace(" at new ", " at "); return e.displayName && u.includes("") && (u = u.replace("", e.displayName)), u; } while (1 <= s && 0 <= l); break; } } } finally { lC = !1, Error.prepareStackTrace = r; } return (e = e ? e.displayName || e.name : "") ? Sf(e) : ""; } a(uC, "Oa"); function Whe(e) { switch (e.tag) { case 5: return Sf(e.type); case 16: return Sf("Lazy"); case 13: return Sf("Suspense"); case 19: return Sf("SuspenseList"); case 0: case 2: case 15: return e = uC(e.type, !1), e; case 11: return e = uC(e.type.render, !1), e; case 1: return e = uC(e.type, !0), e; default: return ""; } } a(Whe, "Pa"); function NC(e) { if (e == null) return null; if (typeof e == "function") return e.displayName || e.name || null; if (typeof e == "string") return e; switch (e) { case Tu: return "Fragment"; case Pu: return "Portal"; case OC: return "Profiler"; case S_: return "StrictMode"; case IC: return "Suspense"; case MC: return "SuspenseList"; } if (typeof e == "object") switch (e.$$typeof) { case BL: return (e.displayName || "Context") + ".Consumer"; case jL: return (e._context.displayName || "Context") + ".Provider"; case C_: var t = e.render; return e = e.displayName, e || (e = t.displayName || t.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e; case __: return t = e.displayName || null, t !== null ? t : NC(e.type) || "Memo"; case Ei: t = e._payload, e = e._init; try { return NC(e(t)); } catch { } } return null; } a(NC, "Qa"); function Ghe(e) { var t = e.type; switch (e.tag) { case 24: return "Cache"; case 9: return (t.displayName || "Context") + ".Consumer"; case 10: return (t._context.displayName || "Context") + ".Provider"; case 18: return "DehydratedFragment"; case 11: return e = t.render, e = e.displayName || e.name || "", t.displayName || (e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"); case 7: return "Fragment"; case 5: return t; case 4: return "Portal"; case 3: return "Root"; case 6: return "Text"; case 16: return NC(t); case 8: return t === S_ ? "StrictMode" : "Mode"; case 22: return "Offscreen"; case 12: return "Profiler"; case 21: return "Scope"; case 13: return "Suspense"; case 19: return "SuspenseList"; case 25: return "TracingMarker"; case 1: case 0: case 17: case 2: case 14: case 15: if (typeof t == "function") return t.displayName || t.name || null; if (typeof t == "string") return t; } return null; } a(Ghe, "Ra"); function ki(e) { switch (typeof e) { case "boolean": case "number": case "string": case "undefined": return e; case "object": return e; default: return ""; } } a(ki, "Sa"); function HL(e) { var t = e.type; return (e = e.nodeName) && e.toLowerCase() === "input" && (t === "checkbox" || t === "radio"); } a(HL, "Ta"); function Yhe(e) { var t = HL(e) ? "checked" : "value", r = Object.getOwnPropertyDescriptor(e.constructor.prototype, t), n = "" + e[t]; if (!e.hasOwnProperty(t) && typeof r < "u" && typeof r.get == "function" && typeof r.set == "function") { var o = r.get, i = r.set; return Object.defineProperty(e, t, { configurable: !0, get: /* @__PURE__ */ a(function() { return o.call(this); }, "get"), set: /* @__PURE__ */ a(function(s) { n = "" + s, i.call(this, s); }, "set") }), Object.defineProperty(e, t, { enumerable: r.enumerable }), { getValue: /* @__PURE__ */ a(function() { return n; }, "getValue"), setValue: /* @__PURE__ */ a(function(s) { n = "" + s; }, "setValue"), stopTracking: /* @__PURE__ */ a(function() { e._valueTracker = null, delete e[t]; }, "stopTracking") }; } } a(Yhe, "Ua"); function p0(e) { e._valueTracker || (e._valueTracker = Yhe(e)); } a(p0, "Va"); function zL(e) { if (!e) return !1; var t = e._valueTracker; if (!t) return !0; var r = t.getValue(), n = ""; return e && (n = HL(e) ? e.checked ? "true" : "false" : e.value), e = n, e !== r ? (t.setValue(e), !0) : !1; } a(zL, "Wa"); function $0(e) { if (e = e || (typeof document < "u" ? document : void 0), typeof e > "u") return null; try { return e.activeElement || e.body; } catch { return e.body; } } a($0, "Xa"); function LC(e, t) { var r = t.checked; return pt({}, t, { defaultChecked: void 0, defaultValue: void 0, value: void 0, checked: r ?? e._wrapperState.initialChecked }); } a(LC, "Ya"); function k9(e, t) { var r = t.defaultValue == null ? "" : t.defaultValue, n = t.checked != null ? t.checked : t.defaultChecked; r = ki(t.value != null ? t.value : r), e._wrapperState = { initialChecked: n, initialValue: r, controlled: t.type === "checkbox" || t.type === "radio" ? t.checked != null : t.value != null }; } a(k9, "Za"); function UL(e, t) { t = t.checked, t != null && x_(e, "checked", t, !1); } a(UL, "ab"); function kC(e, t) { UL(e, t); var r = ki(t.value), n = t.type; if (r != null) n === "number" ? (r === 0 && e.value === "" || e.value != r) && (e.value = "" + r) : e.value !== "" + r && (e.value = "" + r); else if (n === "submit" || n === "reset") { e.removeAttribute("value"); return; } t.hasOwnProperty("value") ? qC(e, t.type, r) : t.hasOwnProperty("defaultValue") && qC(e, t.type, ki(t.defaultValue)), t.checked == null && t.defaultChecked != null && (e.defaultChecked = !!t.defaultChecked); } a(kC, "bb"); function q9(e, t, r) { if (t.hasOwnProperty("value") || t.hasOwnProperty("defaultValue")) { var n = t.type; if (!(n !== "submit" && n !== "reset" || t.value !== void 0 && t.value !== null)) return; t = "" + e._wrapperState.initialValue, r || t === e.value || (e.value = t), e.defaultValue = t; } r = e.name, r !== "" && (e.name = ""), e.defaultChecked = !!e._wrapperState.initialChecked, r !== "" && (e.name = r); } a(q9, "db"); function qC(e, t, r) { (t !== "number" || $0(e.ownerDocument) !== e) && (r == null ? e.defaultValue = "" + e._wrapperState.initialValue : e.defaultValue !== "" + r && (e.defaultValue = "" + r)); } a(qC, "cb"); var Cf = Array.isArray; function ju(e, t, r, n) { if (e = e.options, t) { t = {}; for (var o = 0; o < r.length; o++) t["$" + r[o]] = !0; for (r = 0; r < e.length; r++) o = t.hasOwnProperty("$" + e[r].value), e[r].selected !== o && (e[r].selected = o), o && n && (e[r].defaultSelected = !0); } else { for (r = "" + ki(r), t = null, o = 0; o < e.length; o++) { if (e[o].value === r) { e[o].selected = !0, n && (e[o].defaultSelected = !0); return; } t !== null || e[o].disabled || (t = e[o]); } t !== null && (t.selected = !0); } } a(ju, "fb"); function DC(e, t) { if (t.dangerouslySetInnerHTML != null) throw Error(W(91)); return pt({}, t, { value: void 0, defaultValue: void 0, children: "" + e._wrapperState.initialValue }); } a(DC, "gb"); function D9(e, t) { var r = t.value; if (r == null) { if (r = t.children, t = t.defaultValue, r != null) { if (t != null) throw Error(W(92)); if (Cf(r)) { if (1 < r.length) throw Error(W(93)); r = r[0]; } t = r; } t == null && (t = ""), r = t; } e._wrapperState = { initialValue: ki(r) }; } a(D9, "hb"); function VL(e, t) { var r = ki(t.value), n = ki(t.defaultValue); r != null && (r = "" + r, r !== e.value && (e.value = r), t.defaultValue == null && e.defaultValue !== r && (e.defaultValue = r)), n != null && (e.defaultValue = "" + n); } a(VL, "ib"); function F9(e) { var t = e.textContent; t === e._wrapperState.initialValue && t !== "" && t !== null && (e.value = t); } a(F9, "jb"); function WL(e) { switch (e) { case "svg": return "http://www.w3.org/2000/svg"; case "math": return "http://www.w3.org/1998/Math/MathML"; default: return "http://www.w3.org/1999/xhtml"; } } a(WL, "kb"); function FC(e, t) { return e == null || e === "http://www.w3.org/1999/xhtml" ? WL(t) : e === "http://www.w3.org/2000/svg" && t === "foreignObject" ? "http:/\ /www.w3.org/1999/xhtml" : e; } a(FC, "lb"); var m0, GL = function(e) { return typeof MSApp < "u" && MSApp.execUnsafeLocalFunction ? function(t, r, n, o) { MSApp.execUnsafeLocalFunction(function() { return e(t, r, n, o); }); } : e; }(function(e, t) { if (e.namespaceURI !== "http://www.w3.org/2000/svg" || "innerHTML" in e) e.innerHTML = t; else { for (m0 = m0 || document.createElement("div"), m0.innerHTML = "" + t.valueOf().toString() + "", t = m0.firstChild; e.firstChild; ) e.removeChild(e.firstChild); for (; t.firstChild; ) e.appendChild(t.firstChild); } }); function Ff(e, t) { if (t) { var r = e.firstChild; if (r && r === e.lastChild && r.nodeType === 3) { r.nodeValue = t; return; } } e.textContent = t; } a(Ff, "ob"); var Tf = { animationIterationCount: !0, aspectRatio: !0, borderImageOutset: !0, borderImageSlice: !0, borderImageWidth: !0, boxFlex: !0, boxFlexGroup: !0, boxOrdinalGroup: !0, columnCount: !0, columns: !0, flex: !0, flexGrow: !0, flexPositive: !0, flexShrink: !0, flexNegative: !0, flexOrder: !0, gridArea: !0, gridRow: !0, gridRowEnd: !0, gridRowSpan: !0, gridRowStart: !0, gridColumn: !0, gridColumnEnd: !0, gridColumnSpan: !0, gridColumnStart: !0, fontWeight: !0, lineClamp: !0, lineHeight: !0, opacity: !0, order: !0, orphans: !0, tabSize: !0, widows: !0, zIndex: !0, zoom: !0, fillOpacity: !0, floodOpacity: !0, stopOpacity: !0, strokeDasharray: !0, strokeDashoffset: !0, strokeMiterlimit: !0, strokeOpacity: !0, strokeWidth: !0 }, Khe = ["Webkit", "ms", "Moz", "O"]; Object.keys(Tf).forEach(function(e) { Khe.forEach(function(t) { t = t + e.charAt(0).toUpperCase() + e.substring(1), Tf[t] = Tf[e]; }); }); function YL(e, t, r) { return t == null || typeof t == "boolean" || t === "" ? "" : r || typeof t != "number" || t === 0 || Tf.hasOwnProperty(e) && Tf[e] ? ("" + t).trim() : t + "px"; } a(YL, "rb"); function KL(e, t) { e = e.style; for (var r in t) if (t.hasOwnProperty(r)) { var n = r.indexOf("--") === 0, o = YL(r, t[r], n); r === "float" && (r = "cssFloat"), n ? e.setProperty(r, o) : e[r] = o; } } a(KL, "sb"); var Xhe = pt({ menuitem: !0 }, { area: !0, base: !0, br: !0, col: !0, embed: !0, hr: !0, img: !0, input: !0, keygen: !0, link: !0, meta: !0, param: !0, source: !0, track: !0, wbr: !0 }); function jC(e, t) { if (t) { if (Xhe[e] && (t.children != null || t.dangerouslySetInnerHTML != null)) throw Error(W(137, e)); if (t.dangerouslySetInnerHTML != null) { if (t.children != null) throw Error(W(60)); if (typeof t.dangerouslySetInnerHTML != "object" || !("__html" in t.dangerouslySetInnerHTML)) throw Error(W(61)); } if (t.style != null && typeof t.style != "object") throw Error(W(62)); } } a(jC, "ub"); function BC(e, t) { if (e.indexOf("-") === -1) return typeof t.is == "string"; switch (e) { case "annotation-xml": case "color-profile": case "font-face": case "font-face-src": case "font-face-uri": case "font-face-format": case "font-face-name": case "missing-glyph": return !1; default: return !0; } } a(BC, "vb"); var $C = null; function P_(e) { return e = e.target || e.srcElement || window, e.correspondingUseElement && (e = e.correspondingUseElement), e.nodeType === 3 ? e.parentNode : e; } a(P_, "xb"); var HC = null, Bu = null, $u = null; function j9(e) { if (e = rp(e)) { if (typeof HC != "function") throw Error(W(280)); var t = e.stateNode; t && (t = hg(t), HC(e.stateNode, e.type, t)); } } a(j9, "Bb"); function XL(e) { Bu ? $u ? $u.push(e) : $u = [e] : Bu = e; } a(XL, "Eb"); function JL() { if (Bu) { var e = Bu, t = $u; if ($u = Bu = null, j9(e), t) for (e = 0; e < t.length; e++) j9(t[e]); } } a(JL, "Fb"); function QL(e, t) { return e(t); } a(QL, "Gb"); function ZL() { } a(ZL, "Hb"); var cC = !1; function ek(e, t, r) { if (cC) return e(t, r); cC = !0; try { return QL(e, t, r); } finally { cC = !1, (Bu !== null || $u !== null) && (ZL(), JL()); } } a(ek, "Jb"); function jf(e, t) { var r = e.stateNode; if (r === null) return null; var n = hg(r); if (n === null) return null; r = n[t]; e: switch (t) { case "onClick": case "onClickCapture": case "onDoubleClick": case "onDoubleClickCapture": case "onMouseDown": case "onMouseDownCapture": case "onMouseMove": case "onMouseMoveCapture": case "onMouseUp": case "onMouseUpCapture": case "onMouseEnter": (n = !n.disabled) || (e = e.type, n = !(e === "button" || e === "input" || e === "select" || e === "textarea")), e = !n; break e; default: e = !1; } if (e) return null; if (r && typeof r != "function") throw Error(W(231, t, typeof r)); return r; } a(jf, "Kb"); var zC = !1; if (Fa) try { Cu = {}, Object.defineProperty(Cu, "passive", { get: /* @__PURE__ */ a(function() { zC = !0; }, "get") }), window.addEventListener("test", Cu, Cu), window.removeEventListener("test", Cu, Cu); } catch { zC = !1; } var Cu; function Jhe(e, t, r, n, o, i, s, l, u) { var c = Array.prototype.slice.call(arguments, 3); try { t.apply(r, c); } catch (d) { this.onError(d); } } a(Jhe, "Nb"); var Af = !1, H0 = null, z0 = !1, UC = null, Qhe = { onError: /* @__PURE__ */ a(function(e) { Af = !0, H0 = e; }, "onError") }; function Zhe(e, t, r, n, o, i, s, l, u) { Af = !1, H0 = null, Jhe.apply(Qhe, arguments); } a(Zhe, "Tb"); function e0e(e, t, r, n, o, i, s, l, u) { if (Zhe.apply(this, arguments), Af) { if (Af) { var c = H0; Af = !1, H0 = null; } else throw Error(W(198)); z0 || (z0 = !0, UC = c); } } a(e0e, "Ub"); function ll(e) { var t = e, r = e; if (e.alternate) for (; t.return; ) t = t.return; else { e = t; do t = e, (t.flags & 4098) !== 0 && (r = t.return), e = t.return; while (e); } return t.tag === 3 ? r : null; } a(ll, "Vb"); function tk(e) { if (e.tag === 13) { var t = e.memoizedState; if (t === null && (e = e.alternate, e !== null && (t = e.memoizedState)), t !== null) return t.dehydrated; } return null; } a(tk, "Wb"); function B9(e) { if (ll(e) !== e) throw Error(W(188)); } a(B9, "Xb"); function t0e(e) { var t = e.alternate; if (!t) { if (t = ll(e), t === null) throw Error(W(188)); return t !== e ? null : e; } for (var r = e, n = t; ; ) { var o = r.return; if (o === null) break; var i = o.alternate; if (i === null) { if (n = o.return, n !== null) { r = n; continue; } break; } if (o.child === i.child) { for (i = o.child; i; ) { if (i === r) return B9(o), e; if (i === n) return B9(o), t; i = i.sibling; } throw Error(W(188)); } if (r.return !== n.return) r = o, n = i; else { for (var s = !1, l = o.child; l; ) { if (l === r) { s = !0, r = o, n = i; break; } if (l === n) { s = !0, n = o, r = i; break; } l = l.sibling; } if (!s) { for (l = i.child; l; ) { if (l === r) { s = !0, r = i, n = o; break; } if (l === n) { s = !0, n = i, r = o; break; } l = l.sibling; } if (!s) throw Error(W(189)); } } if (r.alternate !== n) throw Error(W(190)); } if (r.tag !== 3) throw Error(W(188)); return r.stateNode.current === r ? e : t; } a(t0e, "Yb"); function rk(e) { return e = t0e(e), e !== null ? nk(e) : null; } a(rk, "Zb"); function nk(e) { if (e.tag === 5 || e.tag === 6) return e; for (e = e.child; e !== null; ) { var t = nk(e); if (t !== null) return t; e = e.sibling; } return null; } a(nk, "$b"); var ok = yn.unstable_scheduleCallback, $9 = yn.unstable_cancelCallback, r0e = yn.unstable_shouldYield, n0e = yn.unstable_requestPaint, St = yn. unstable_now, o0e = yn.unstable_getCurrentPriorityLevel, T_ = yn.unstable_ImmediatePriority, ak = yn.unstable_UserBlockingPriority, U0 = yn. unstable_NormalPriority, a0e = yn.unstable_LowPriority, ik = yn.unstable_IdlePriority, dg = null, ua = null; function i0e(e) { if (ua && typeof ua.onCommitFiberRoot == "function") try { ua.onCommitFiberRoot(dg, e, void 0, (e.current.flags & 128) === 128); } catch { } } a(i0e, "mc"); var _o = Math.clz32 ? Math.clz32 : u0e, s0e = Math.log, l0e = Math.LN2; function u0e(e) { return e >>>= 0, e === 0 ? 32 : 31 - (s0e(e) / l0e | 0) | 0; } a(u0e, "nc"); var h0 = 64, g0 = 4194304; function _f(e) { switch (e & -e) { case 1: return 1; case 2: return 2; case 4: return 4; case 8: return 8; case 16: return 16; case 32: return 32; case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: return e & 4194240; case 4194304: case 8388608: case 16777216: case 33554432: case 67108864: return e & 130023424; case 134217728: return 134217728; case 268435456: return 268435456; case 536870912: return 536870912; case 1073741824: return 1073741824; default: return e; } } a(_f, "tc"); function V0(e, t) { var r = e.pendingLanes; if (r === 0) return 0; var n = 0, o = e.suspendedLanes, i = e.pingedLanes, s = r & 268435455; if (s !== 0) { var l = s & ~o; l !== 0 ? n = _f(l) : (i &= s, i !== 0 && (n = _f(i))); } else s = r & ~o, s !== 0 ? n = _f(s) : i !== 0 && (n = _f(i)); if (n === 0) return 0; if (t !== 0 && t !== n && (t & o) === 0 && (o = n & -n, i = t & -t, o >= i || o === 16 && (i & 4194240) !== 0)) return t; if ((n & 4) !== 0 && (n |= r & 16), t = e.entangledLanes, t !== 0) for (e = e.entanglements, t &= n; 0 < t; ) r = 31 - _o(t), o = 1 << r, n |= e[r], t &= ~o; return n; } a(V0, "uc"); function c0e(e, t) { switch (e) { case 1: case 2: case 4: return t + 250; case 8: case 16: case 32: case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: return t + 5e3; case 4194304: case 8388608: case 16777216: case 33554432: case 67108864: return -1; case 134217728: case 268435456: case 536870912: case 1073741824: return -1; default: return -1; } } a(c0e, "vc"); function d0e(e, t) { for (var r = e.suspendedLanes, n = e.pingedLanes, o = e.expirationTimes, i = e.pendingLanes; 0 < i; ) { var s = 31 - _o(i), l = 1 << s, u = o[s]; u === -1 ? ((l & r) === 0 || (l & n) !== 0) && (o[s] = c0e(l, t)) : u <= t && (e.expiredLanes |= l), i &= ~l; } } a(d0e, "wc"); function VC(e) { return e = e.pendingLanes & -1073741825, e !== 0 ? e : e & 1073741824 ? 1073741824 : 0; } a(VC, "xc"); function sk() { var e = h0; return h0 <<= 1, (h0 & 4194240) === 0 && (h0 = 64), e; } a(sk, "yc"); function dC(e) { for (var t = [], r = 0; 31 > r; r++) t.push(e); return t; } a(dC, "zc"); function ep(e, t, r) { e.pendingLanes |= t, t !== 536870912 && (e.suspendedLanes = 0, e.pingedLanes = 0), e = e.eventTimes, t = 31 - _o(t), e[t] = r; } a(ep, "Ac"); function f0e(e, t) { var r = e.pendingLanes & ~t; e.pendingLanes = t, e.suspendedLanes = 0, e.pingedLanes = 0, e.expiredLanes &= t, e.mutableReadLanes &= t, e.entangledLanes &= t, t = e. entanglements; var n = e.eventTimes; for (e = e.expirationTimes; 0 < r; ) { var o = 31 - _o(r), i = 1 << o; t[o] = 0, n[o] = -1, e[o] = -1, r &= ~i; } } a(f0e, "Bc"); function A_(e, t) { var r = e.entangledLanes |= t; for (e = e.entanglements; r; ) { var n = 31 - _o(r), o = 1 << n; o & t | e[n] & t && (e[n] |= t), r &= ~o; } } a(A_, "Cc"); var Fe = 0; function lk(e) { return e &= -e, 1 < e ? 4 < e ? (e & 268435455) !== 0 ? 16 : 536870912 : 4 : 1; } a(lk, "Dc"); var uk, O_, ck, dk, fk, WC = !1, y0 = [], Pi = null, Ti = null, Ai = null, Bf = /* @__PURE__ */ new Map(), $f = /* @__PURE__ */ new Map(), xi = [], p0e = "mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart \ drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" "); function H9(e, t) { switch (e) { case "focusin": case "focusout": Pi = null; break; case "dragenter": case "dragleave": Ti = null; break; case "mouseover": case "mouseout": Ai = null; break; case "pointerover": case "pointerout": Bf.delete(t.pointerId); break; case "gotpointercapture": case "lostpointercapture": $f.delete(t.pointerId); } } a(H9, "Sc"); function yf(e, t, r, n, o, i) { return e === null || e.nativeEvent !== i ? (e = { blockedOn: t, domEventName: r, eventSystemFlags: n, nativeEvent: i, targetContainers: [ o] }, t !== null && (t = rp(t), t !== null && O_(t)), e) : (e.eventSystemFlags |= n, t = e.targetContainers, o !== null && t.indexOf(o) === -1 && t.push(o), e); } a(yf, "Tc"); function m0e(e, t, r, n, o) { switch (t) { case "focusin": return Pi = yf(Pi, e, t, r, n, o), !0; case "dragenter": return Ti = yf(Ti, e, t, r, n, o), !0; case "mouseover": return Ai = yf(Ai, e, t, r, n, o), !0; case "pointerover": var i = o.pointerId; return Bf.set(i, yf(Bf.get(i) || null, e, t, r, n, o)), !0; case "gotpointercapture": return i = o.pointerId, $f.set(i, yf($f.get(i) || null, e, t, r, n, o)), !0; } return !1; } a(m0e, "Uc"); function pk(e) { var t = Js(e.target); if (t !== null) { var r = ll(t); if (r !== null) { if (t = r.tag, t === 13) { if (t = tk(r), t !== null) { e.blockedOn = t, fk(e.priority, function() { ck(r); }); return; } } else if (t === 3 && r.stateNode.current.memoizedState.isDehydrated) { e.blockedOn = r.tag === 3 ? r.stateNode.containerInfo : null; return; } } } e.blockedOn = null; } a(pk, "Vc"); function I0(e) { if (e.blockedOn !== null) return !1; for (var t = e.targetContainers; 0 < t.length; ) { var r = GC(e.domEventName, e.eventSystemFlags, t[0], e.nativeEvent); if (r === null) { r = e.nativeEvent; var n = new r.constructor(r.type, r); $C = n, r.target.dispatchEvent(n), $C = null; } else return t = rp(r), t !== null && O_(t), e.blockedOn = r, !1; t.shift(); } return !0; } a(I0, "Xc"); function z9(e, t, r) { I0(e) && r.delete(t); } a(z9, "Zc"); function h0e() { WC = !1, Pi !== null && I0(Pi) && (Pi = null), Ti !== null && I0(Ti) && (Ti = null), Ai !== null && I0(Ai) && (Ai = null), Bf.forEach(z9), $f.forEach(z9); } a(h0e, "$c"); function vf(e, t) { e.blockedOn === t && (e.blockedOn = null, WC || (WC = !0, yn.unstable_scheduleCallback(yn.unstable_NormalPriority, h0e))); } a(vf, "ad"); function Hf(e) { function t(o) { return vf(o, e); } if (a(t, "b"), 0 < y0.length) { vf(y0[0], e); for (var r = 1; r < y0.length; r++) { var n = y0[r]; n.blockedOn === e && (n.blockedOn = null); } } for (Pi !== null && vf(Pi, e), Ti !== null && vf(Ti, e), Ai !== null && vf(Ai, e), Bf.forEach(t), $f.forEach(t), r = 0; r < xi.length; r++) n = xi[r], n.blockedOn === e && (n.blockedOn = null); for (; 0 < xi.length && (r = xi[0], r.blockedOn === null); ) pk(r), r.blockedOn === null && xi.shift(); } a(Hf, "bd"); var Hu = Ha.ReactCurrentBatchConfig, W0 = !0; function g0e(e, t, r, n) { var o = Fe, i = Hu.transition; Hu.transition = null; try { Fe = 1, I_(e, t, r, n); } finally { Fe = o, Hu.transition = i; } } a(g0e, "ed"); function y0e(e, t, r, n) { var o = Fe, i = Hu.transition; Hu.transition = null; try { Fe = 4, I_(e, t, r, n); } finally { Fe = o, Hu.transition = i; } } a(y0e, "gd"); function I_(e, t, r, n) { if (W0) { var o = GC(e, t, r, n); if (o === null) vC(e, t, n, G0, r), H9(e, n); else if (m0e(o, e, t, r, n)) n.stopPropagation(); else if (H9(e, n), t & 4 && -1 < p0e.indexOf(e)) { for (; o !== null; ) { var i = rp(o); if (i !== null && uk(i), i = GC(e, t, r, n), i === null && vC(e, t, n, G0, r), i === o) break; o = i; } o !== null && n.stopPropagation(); } else vC(e, t, n, null, r); } } a(I_, "fd"); var G0 = null; function GC(e, t, r, n) { if (G0 = null, e = P_(n), e = Js(e), e !== null) if (t = ll(e), t === null) e = null; else if (r = t.tag, r === 13) { if (e = tk(t), e !== null) return e; e = null; } else if (r === 3) { if (t.stateNode.current.memoizedState.isDehydrated) return t.tag === 3 ? t.stateNode.containerInfo : null; e = null; } else t !== e && (e = null); return G0 = e, null; } a(GC, "Yc"); function mk(e) { switch (e) { case "cancel": case "click": case "close": case "contextmenu": case "copy": case "cut": case "auxclick": case "dblclick": case "dragend": case "dragstart": case "drop": case "focusin": case "focusout": case "input": case "invalid": case "keydown": case "keypress": case "keyup": case "mousedown": case "mouseup": case "paste": case "pause": case "play": case "pointercancel": case "pointerdown": case "pointerup": case "ratechange": case "reset": case "resize": case "seeked": case "submit": case "touchcancel": case "touchend": case "touchstart": case "volumechange": case "change": case "selectionchange": case "textInput": case "compositionstart": case "compositionend": case "compositionupdate": case "beforeblur": case "afterblur": case "beforeinput": case "blur": case "fullscreenchange": case "focus": case "hashchange": case "popstate": case "select": case "selectstart": return 1; case "drag": case "dragenter": case "dragexit": case "dragleave": case "dragover": case "mousemove": case "mouseout": case "mouseover": case "pointermove": case "pointerout": case "pointerover": case "scroll": case "toggle": case "touchmove": case "wheel": case "mouseenter": case "mouseleave": case "pointerenter": case "pointerleave": return 4; case "message": switch (o0e()) { case T_: return 1; case ak: return 4; case U0: case a0e: return 16; case ik: return 536870912; default: return 16; } default: return 16; } } a(mk, "jd"); var Ci = null, M_ = null, M0 = null; function hk() { if (M0) return M0; var e, t = M_, r = t.length, n, o = "value" in Ci ? Ci.value : Ci.textContent, i = o.length; for (e = 0; e < r && t[e] === o[e]; e++) ; var s = r - e; for (n = 1; n <= s && t[r - n] === o[i - n]; n++) ; return M0 = o.slice(e, 1 < n ? 1 - n : void 0); } a(hk, "nd"); function N0(e) { var t = e.keyCode; return "charCode" in e ? (e = e.charCode, e === 0 && t === 13 && (e = 13)) : e = t, e === 10 && (e = 13), 32 <= e || e === 13 ? e : 0; } a(N0, "od"); function v0() { return !0; } a(v0, "pd"); function U9() { return !1; } a(U9, "qd"); function vn(e) { function t(r, n, o, i, s) { this._reactName = r, this._targetInst = o, this.type = n, this.nativeEvent = i, this.target = s, this.currentTarget = null; for (var l in e) e.hasOwnProperty(l) && (r = e[l], this[l] = r ? r(i) : i[l]); return this.isDefaultPrevented = (i.defaultPrevented != null ? i.defaultPrevented : i.returnValue === !1) ? v0 : U9, this.isPropagationStopped = U9, this; } return a(t, "b"), pt(t.prototype, { preventDefault: /* @__PURE__ */ a(function() { this.defaultPrevented = !0; var r = this.nativeEvent; r && (r.preventDefault ? r.preventDefault() : typeof r.returnValue != "unknown" && (r.returnValue = !1), this.isDefaultPrevented = v0); }, "preventDefault"), stopPropagation: /* @__PURE__ */ a(function() { var r = this.nativeEvent; r && (r.stopPropagation ? r.stopPropagation() : typeof r.cancelBubble != "unknown" && (r.cancelBubble = !0), this.isPropagationStopped = v0); }, "stopPropagation"), persist: /* @__PURE__ */ a(function() { }, "persist"), isPersistent: v0 }), t; } a(vn, "rd"); var Qu = { eventPhase: 0, bubbles: 0, cancelable: 0, timeStamp: /* @__PURE__ */ a(function(e) { return e.timeStamp || Date.now(); }, "timeStamp"), defaultPrevented: 0, isTrusted: 0 }, N_ = vn(Qu), tp = pt({}, Qu, { view: 0, detail: 0 }), v0e = vn(tp), fC, pC, bf, fg = pt( {}, tp, { screenX: 0, screenY: 0, clientX: 0, clientY: 0, pageX: 0, pageY: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, getModifierState: L_, button: 0, buttons: 0, relatedTarget: /* @__PURE__ */ a(function(e) { return e.relatedTarget === void 0 ? e.fromElement === e.srcElement ? e.toElement : e.fromElement : e.relatedTarget; }, "relatedTarget"), movementX: /* @__PURE__ */ a(function(e) { return "movementX" in e ? e.movementX : (e !== bf && (bf && e.type === "mousemove" ? (fC = e.screenX - bf.screenX, pC = e.screenY - bf.screenY) : pC = fC = 0, bf = e), fC); }, "movementX"), movementY: /* @__PURE__ */ a(function(e) { return "movementY" in e ? e.movementY : pC; }, "movementY") }), V9 = vn(fg), b0e = pt({}, fg, { dataTransfer: 0 }), w0e = vn(b0e), E0e = pt({}, tp, { relatedTarget: 0 }), mC = vn(E0e), R0e = pt({}, Qu, { animationName: 0, elapsedTime: 0, pseudoElement: 0 }), x0e = vn(R0e), S0e = pt({}, Qu, { clipboardData: /* @__PURE__ */ a( function(e) { return "clipboardData" in e ? e.clipboardData : window.clipboardData; }, "clipboardData") }), C0e = vn(S0e), _0e = pt({}, Qu, { data: 0 }), W9 = vn(_0e), P0e = { Esc: "Escape", Spacebar: " ", Left: "ArrowLeft", Up: "ArrowUp", Right: "ArrowRight", Down: "ArrowDown", Del: "Delete", Win: "OS", Menu: "ContextMenu", Apps: "ContextMenu", Scroll: "ScrollLock", MozPrintableKey: "Unidentified" }, T0e = { 8: "Backspace", 9: "Tab", 12: "Clear", 13: "Enter", 16: "Shift", 17: "Control", 18: "Alt", 19: "Pause", 20: "CapsLock", 27: "Escape", 32: " ", 33: "PageUp", 34: "PageDown", 35: "End", 36: "Home", 37: "ArrowLeft", 38: "ArrowUp", 39: "ArrowRight", 40: "ArrowDown", 45: "Insert", 46: "Delete", 112: "F1", 113: "F2", 114: "F3", 115: "F4", 116: "F5", 117: "F6", 118: "F7", 119: "F8", 120: "F9", 121: "F10", 122: "F11", 123: "F12", 144: "NumLock", 145: "ScrollLock", 224: "Meta" }, A0e = { Alt: "altKey", Control: "ctrlKey", Meta: "metaKey", Shift: "shiftKey" }; function O0e(e) { var t = this.nativeEvent; return t.getModifierState ? t.getModifierState(e) : (e = A0e[e]) ? !!t[e] : !1; } a(O0e, "Pd"); function L_() { return O0e; } a(L_, "zd"); var I0e = pt({}, tp, { key: /* @__PURE__ */ a(function(e) { if (e.key) { var t = P0e[e.key] || e.key; if (t !== "Unidentified") return t; } return e.type === "keypress" ? (e = N0(e), e === 13 ? "Enter" : String.fromCharCode(e)) : e.type === "keydown" || e.type === "keyup" ? T0e[e. keyCode] || "Unidentified" : ""; }, "key"), code: 0, location: 0, ctrlKey: 0, shiftKey: 0, altKey: 0, metaKey: 0, repeat: 0, locale: 0, getModifierState: L_, charCode: /* @__PURE__ */ a( function(e) { return e.type === "keypress" ? N0(e) : 0; }, "charCode"), keyCode: /* @__PURE__ */ a(function(e) { return e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0; }, "keyCode"), which: /* @__PURE__ */ a(function(e) { return e.type === "keypress" ? N0(e) : e.type === "keydown" || e.type === "keyup" ? e.keyCode : 0; }, "which") }), M0e = vn(I0e), N0e = pt({}, fg, { pointerId: 0, width: 0, height: 0, pressure: 0, tangentialPressure: 0, tiltX: 0, tiltY: 0, twist: 0, pointerType: 0, isPrimary: 0 }), G9 = vn(N0e), L0e = pt({}, tp, { touches: 0, targetTouches: 0, changedTouches: 0, altKey: 0, metaKey: 0, ctrlKey: 0, shiftKey: 0, getModifierState: L_ }), k0e = vn(L0e), q0e = pt({}, Qu, { propertyName: 0, elapsedTime: 0, pseudoElement: 0 }), D0e = vn( q0e), F0e = pt({}, fg, { deltaX: /* @__PURE__ */ a(function(e) { return "deltaX" in e ? e.deltaX : "wheelDeltaX" in e ? -e.wheelDeltaX : 0; }, "deltaX"), deltaY: /* @__PURE__ */ a(function(e) { return "deltaY" in e ? e.deltaY : "wheelDeltaY" in e ? -e.wheelDeltaY : "wheelDelta" in e ? -e.wheelDelta : 0; }, "deltaY"), deltaZ: 0, deltaMode: 0 }), j0e = vn(F0e), B0e = [9, 13, 27, 32], k_ = Fa && "CompositionEvent" in window, Of = null; Fa && "documentMode" in document && (Of = document.documentMode); var $0e = Fa && "TextEvent" in window && !Of, gk = Fa && (!k_ || Of && 8 < Of && 11 >= Of), Y9 = " ", K9 = !1; function yk(e, t) { switch (e) { case "keyup": return B0e.indexOf(t.keyCode) !== -1; case "keydown": return t.keyCode !== 229; case "keypress": case "mousedown": case "focusout": return !0; default: return !1; } } a(yk, "ge"); function vk(e) { return e = e.detail, typeof e == "object" && "data" in e ? e.data : null; } a(vk, "he"); var Au = !1; function H0e(e, t) { switch (e) { case "compositionend": return vk(t); case "keypress": return t.which !== 32 ? null : (K9 = !0, Y9); case "textInput": return e = t.data, e === Y9 && K9 ? null : e; default: return null; } } a(H0e, "je"); function z0e(e, t) { if (Au) return e === "compositionend" || !k_ && yk(e, t) ? (e = hk(), M0 = M_ = Ci = null, Au = !1, e) : null; switch (e) { case "paste": return null; case "keypress": if (!(t.ctrlKey || t.altKey || t.metaKey) || t.ctrlKey && t.altKey) { if (t.char && 1 < t.char.length) return t.char; if (t.which) return String.fromCharCode(t.which); } return null; case "compositionend": return gk && t.locale !== "ko" ? null : t.data; default: return null; } } a(z0e, "ke"); var U0e = { color: !0, date: !0, datetime: !0, "datetime-local": !0, email: !0, month: !0, number: !0, password: !0, range: !0, search: !0, tel: !0, text: !0, time: !0, url: !0, week: !0 }; function X9(e) { var t = e && e.nodeName && e.nodeName.toLowerCase(); return t === "input" ? !!U0e[e.type] : t === "textarea"; } a(X9, "me"); function bk(e, t, r, n) { XL(n), t = Y0(t, "onChange"), 0 < t.length && (r = new N_("onChange", "change", null, r, n), e.push({ event: r, listeners: t })); } a(bk, "ne"); var If = null, zf = null; function V0e(e) { Ok(e, 0); } a(V0e, "re"); function pg(e) { var t = Mu(e); if (zL(t)) return e; } a(pg, "te"); function W0e(e, t) { if (e === "change") return t; } a(W0e, "ve"); var wk = !1; Fa && (Fa ? (w0 = "oninput" in document, w0 || (hC = document.createElement("div"), hC.setAttribute("oninput", "return;"), w0 = typeof hC. oninput == "function"), b0 = w0) : b0 = !1, wk = b0 && (!document.documentMode || 9 < document.documentMode)); var b0, w0, hC; function J9() { If && (If.detachEvent("onpropertychange", Ek), zf = If = null); } a(J9, "Ae"); function Ek(e) { if (e.propertyName === "value" && pg(zf)) { var t = []; bk(t, zf, e, P_(e)), ek(V0e, t); } } a(Ek, "Be"); function G0e(e, t, r) { e === "focusin" ? (J9(), If = t, zf = r, If.attachEvent("onpropertychange", Ek)) : e === "focusout" && J9(); } a(G0e, "Ce"); function Y0e(e) { if (e === "selectionchange" || e === "keyup" || e === "keydown") return pg(zf); } a(Y0e, "De"); function K0e(e, t) { if (e === "click") return pg(t); } a(K0e, "Ee"); function X0e(e, t) { if (e === "input" || e === "change") return pg(t); } a(X0e, "Fe"); function J0e(e, t) { return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t; } a(J0e, "Ge"); var To = typeof Object.is == "function" ? Object.is : J0e; function Uf(e, t) { if (To(e, t)) return !0; if (typeof e != "object" || e === null || typeof t != "object" || t === null) return !1; var r = Object.keys(e), n = Object.keys(t); if (r.length !== n.length) return !1; for (n = 0; n < r.length; n++) { var o = r[n]; if (!AC.call(t, o) || !To(e[o], t[o])) return !1; } return !0; } a(Uf, "Ie"); function Q9(e) { for (; e && e.firstChild; ) e = e.firstChild; return e; } a(Q9, "Je"); function Z9(e, t) { var r = Q9(e); e = 0; for (var n; r; ) { if (r.nodeType === 3) { if (n = e + r.textContent.length, e <= t && n >= t) return { node: r, offset: t - e }; e = n; } e: { for (; r; ) { if (r.nextSibling) { r = r.nextSibling; break e; } r = r.parentNode; } r = void 0; } r = Q9(r); } } a(Z9, "Ke"); function Rk(e, t) { return e && t ? e === t ? !0 : e && e.nodeType === 3 ? !1 : t && t.nodeType === 3 ? Rk(e, t.parentNode) : "contains" in e ? e.contains(t) : e.compareDocumentPosition ? !!(e.compareDocumentPosition(t) & 16) : !1 : !1; } a(Rk, "Le"); function xk() { for (var e = window, t = $0(); t instanceof e.HTMLIFrameElement; ) { try { var r = typeof t.contentWindow.location.href == "string"; } catch { r = !1; } if (r) e = t.contentWindow; else break; t = $0(e.document); } return t; } a(xk, "Me"); function q_(e) { var t = e && e.nodeName && e.nodeName.toLowerCase(); return t && (t === "input" && (e.type === "text" || e.type === "search" || e.type === "tel" || e.type === "url" || e.type === "password") || t === "textarea" || e.contentEditable === "true"); } a(q_, "Ne"); function Q0e(e) { var t = xk(), r = e.focusedElem, n = e.selectionRange; if (t !== r && r && r.ownerDocument && Rk(r.ownerDocument.documentElement, r)) { if (n !== null && q_(r)) { if (t = n.start, e = n.end, e === void 0 && (e = t), "selectionStart" in r) r.selectionStart = t, r.selectionEnd = Math.min(e, r.value. length); else if (e = (t = r.ownerDocument || document) && t.defaultView || window, e.getSelection) { e = e.getSelection(); var o = r.textContent.length, i = Math.min(n.start, o); n = n.end === void 0 ? i : Math.min(n.end, o), !e.extend && i > n && (o = n, n = i, i = o), o = Z9(r, i); var s = Z9( r, n ); o && s && (e.rangeCount !== 1 || e.anchorNode !== o.node || e.anchorOffset !== o.offset || e.focusNode !== s.node || e.focusOffset !== s.offset) && (t = t.createRange(), t.setStart(o.node, o.offset), e.removeAllRanges(), i > n ? (e.addRange(t), e.extend(s.node, s.offset)) : (t.setEnd(s.node, s.offset), e.addRange(t))); } } for (t = [], e = r; e = e.parentNode; ) e.nodeType === 1 && t.push({ element: e, left: e.scrollLeft, top: e.scrollTop }); for (typeof r.focus == "function" && r.focus(), r = 0; r < t.length; r++) e = t[r], e.element.scrollLeft = e.left, e.element.scrollTop = e.top; } } a(Q0e, "Oe"); var Z0e = Fa && "documentMode" in document && 11 >= document.documentMode, Ou = null, YC = null, Mf = null, KC = !1; function eL(e, t, r) { var n = r.window === r ? r.document : r.nodeType === 9 ? r : r.ownerDocument; KC || Ou == null || Ou !== $0(n) || (n = Ou, "selectionStart" in n && q_(n) ? n = { start: n.selectionStart, end: n.selectionEnd } : (n = (n.ownerDocument && n.ownerDocument.defaultView || window).getSelection(), n = { anchorNode: n.anchorNode, anchorOffset: n.anchorOffset, focusNode: n.focusNode, focusOffset: n.focusOffset }), Mf && Uf(Mf, n) || (Mf = n, n = Y0(YC, "onSelect"), 0 < n.length && (t = new N_("\ onSelect", "select", null, t, r), e.push({ event: t, listeners: n }), t.target = Ou))); } a(eL, "Ue"); function E0(e, t) { var r = {}; return r[e.toLowerCase()] = t.toLowerCase(), r["Webkit" + e] = "webkit" + t, r["Moz" + e] = "moz" + t, r; } a(E0, "Ve"); var Iu = { animationend: E0("Animation", "AnimationEnd"), animationiteration: E0("Animation", "AnimationIteration"), animationstart: E0("A\ nimation", "AnimationStart"), transitionend: E0("Transition", "TransitionEnd") }, gC = {}, Sk = {}; Fa && (Sk = document.createElement("div").style, "AnimationEvent" in window || (delete Iu.animationend.animation, delete Iu.animationiteration. animation, delete Iu.animationstart.animation), "TransitionEvent" in window || delete Iu.transitionend.transition); function mg(e) { if (gC[e]) return gC[e]; if (!Iu[e]) return e; var t = Iu[e], r; for (r in t) if (t.hasOwnProperty(r) && r in Sk) return gC[e] = t[r]; return e; } a(mg, "Ze"); var Ck = mg("animationend"), _k = mg("animationiteration"), Pk = mg("animationstart"), Tk = mg("transitionend"), Ak = /* @__PURE__ */ new Map(), tL = "abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dra\ gStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetada\ ta loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMov\ e pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd to\ uchStart volumeChange scroll toggle touchMove waiting wheel".split(" "); function Di(e, t) { Ak.set(e, t), sl(t, [e]); } a(Di, "ff"); for (R0 = 0; R0 < tL.length; R0++) x0 = tL[R0], rL = x0.toLowerCase(), nL = x0[0].toUpperCase() + x0.slice(1), Di(rL, "on" + nL); var x0, rL, nL, R0; Di(Ck, "onAnimationEnd"); Di(_k, "onAnimationIteration"); Di(Pk, "onAnimationStart"); Di("dblclick", "onDoubleClick"); Di("focusin", "onFocus"); Di("focusout", "onBlur"); Di(Tk, "onTransitionEnd"); Vu("onMouseEnter", ["mouseout", "mouseover"]); Vu("onMouseLeave", ["mouseout", "mouseover"]); Vu("onPointerEnter", ["pointerout", "pointerover"]); Vu("onPointerLeave", ["pointerout", "pointerover"]); sl("onChange", "change click focusin focusout input keydown keyup selectionchange".split(" ")); sl("onSelect", "focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")); sl("onBeforeInput", ["compositionend", "keypress", "textInput", "paste"]); sl("onCompositionEnd", "compositionend focusout keydown keypress keyup mousedown".split(" ")); sl("onCompositionStart", "compositionstart focusout keydown keypress keyup mousedown".split(" ")); sl("onCompositionUpdate", "compositionupdate focusout keydown keypress keyup mousedown".split(" ")); var Pf = "abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing\ progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "), ege = new Set("cancel close invalid \ load scroll toggle".split(" ").concat(Pf)); function oL(e, t, r) { var n = e.type || "unknown-event"; e.currentTarget = r, e0e(n, t, void 0, e), e.currentTarget = null; } a(oL, "nf"); function Ok(e, t) { t = (t & 4) !== 0; for (var r = 0; r < e.length; r++) { var n = e[r], o = n.event; n = n.listeners; e: { var i = void 0; if (t) for (var s = n.length - 1; 0 <= s; s--) { var l = n[s], u = l.instance, c = l.currentTarget; if (l = l.listener, u !== i && o.isPropagationStopped()) break e; oL(o, l, c), i = u; } else for (s = 0; s < n.length; s++) { if (l = n[s], u = l.instance, c = l.currentTarget, l = l.listener, u !== i && o.isPropagationStopped()) break e; oL(o, l, c), i = u; } } } if (z0) throw e = UC, z0 = !1, UC = null, e; } a(Ok, "se"); function Qe(e, t) { var r = t[e_]; r === void 0 && (r = t[e_] = /* @__PURE__ */ new Set()); var n = e + "__bubble"; r.has(n) || (Ik(t, e, 2, !1), r.add(n)); } a(Qe, "D"); function yC(e, t, r) { var n = 0; t && (n |= 4), Ik(r, e, n, t); } a(yC, "qf"); var S0 = "_reactListening" + Math.random().toString(36).slice(2); function Vf(e) { if (!e[S0]) { e[S0] = !0, FL.forEach(function(r) { r !== "selectionchange" && (ege.has(r) || yC(r, !1, e), yC(r, !0, e)); }); var t = e.nodeType === 9 ? e : e.ownerDocument; t === null || t[S0] || (t[S0] = !0, yC("selectionchange", !1, t)); } } a(Vf, "sf"); function Ik(e, t, r, n) { switch (mk(t)) { case 1: var o = g0e; break; case 4: o = y0e; break; default: o = I_; } r = o.bind(null, t, r, e), o = void 0, !zC || t !== "touchstart" && t !== "touchmove" && t !== "wheel" || (o = !0), n ? o !== void 0 ? e. addEventListener(t, r, { capture: !0, passive: o }) : e.addEventListener(t, r, !0) : o !== void 0 ? e.addEventListener(t, r, { passive: o }) : e.addEventListener(t, r, !1); } a(Ik, "pf"); function vC(e, t, r, n, o) { var i = n; if ((t & 1) === 0 && (t & 2) === 0 && n !== null) e: for (; ; ) { if (n === null) return; var s = n.tag; if (s === 3 || s === 4) { var l = n.stateNode.containerInfo; if (l === o || l.nodeType === 8 && l.parentNode === o) break; if (s === 4) for (s = n.return; s !== null; ) { var u = s.tag; if ((u === 3 || u === 4) && (u = s.stateNode.containerInfo, u === o || u.nodeType === 8 && u.parentNode === o)) return; s = s.return; } for (; l !== null; ) { if (s = Js(l), s === null) return; if (u = s.tag, u === 5 || u === 6) { n = i = s; continue e; } l = l.parentNode; } } n = n.return; } ek(function() { var c = i, d = P_(r), f = []; e: { var p = Ak.get(e); if (p !== void 0) { var m = N_, v = e; switch (e) { case "keypress": if (N0(r) === 0) break e; case "keydown": case "keyup": m = M0e; break; case "focusin": v = "focus", m = mC; break; case "focusout": v = "blur", m = mC; break; case "beforeblur": case "afterblur": m = mC; break; case "click": if (r.button === 2) break e; case "auxclick": case "dblclick": case "mousedown": case "mousemove": case "mouseup": case "mouseout": case "mouseover": case "contextmenu": m = V9; break; case "drag": case "dragend": case "dragenter": case "dragexit": case "dragleave": case "dragover": case "dragstart": case "drop": m = w0e; break; case "touchcancel": case "touchend": case "touchmove": case "touchstart": m = k0e; break; case Ck: case _k: case Pk: m = x0e; break; case Tk: m = D0e; break; case "scroll": m = v0e; break; case "wheel": m = j0e; break; case "copy": case "cut": case "paste": m = C0e; break; case "gotpointercapture": case "lostpointercapture": case "pointercancel": case "pointerdown": case "pointermove": case "pointerout": case "pointerover": case "pointerup": m = G9; } var y = (t & 4) !== 0, b = !y && e === "scroll", g = y ? p !== null ? p + "Capture" : null : p; y = []; for (var w = c, E; w !== null; ) { E = w; var x = E.stateNode; if (E.tag === 5 && x !== null && (E = x, g !== null && (x = jf(w, g), x != null && y.push(Wf(w, x, E)))), b) break; w = w.return; } 0 < y.length && (p = new m(p, v, null, r, d), f.push({ event: p, listeners: y })); } } if ((t & 7) === 0) { e: { if (p = e === "mouseover" || e === "pointerover", m = e === "mouseout" || e === "pointerout", p && r !== $C && (v = r.relatedTarget || r.fromElement) && (Js(v) || v[ja])) break e; if ((m || p) && (p = d.window === d ? d : (p = d.ownerDocument) ? p.defaultView || p.parentWindow : window, m ? (v = r.relatedTarget || r.toElement, m = c, v = v ? Js(v) : null, v !== null && (b = ll(v), v !== b || v.tag !== 5 && v.tag !== 6) && (v = null)) : (m = null, v = c), m !== v)) { if (y = V9, x = "onMouseLeave", g = "onMouseEnter", w = "mouse", (e === "pointerout" || e === "pointerover") && (y = G9, x = "on\ PointerLeave", g = "onPointerEnter", w = "pointer"), b = m == null ? p : Mu(m), E = v == null ? p : Mu(v), p = new y(x, w + "leave", m, r, d), p.target = b, p.relatedTarget = E, x = null, Js(d) === c && (y = new y(g, w + "enter", v, r, d), y.target = E, y.relatedTarget = b, x = y), b = x, m && v) t: { for (y = m, g = v, w = 0, E = y; E; E = _u(E)) w++; for (E = 0, x = g; x; x = _u(x)) E++; for (; 0 < w - E; ) y = _u(y), w--; for (; 0 < E - w; ) g = _u(g), E--; for (; w--; ) { if (y === g || g !== null && y === g.alternate) break t; y = _u(y), g = _u(g); } y = null; } else y = null; m !== null && aL(f, p, m, y, !1), v !== null && b !== null && aL(f, b, v, y, !0); } } e: { if (p = c ? Mu(c) : window, m = p.nodeName && p.nodeName.toLowerCase(), m === "select" || m === "input" && p.type === "file") var S = W0e; else if (X9(p)) if (wk) S = X0e; else { S = Y0e; var C = G0e; } else (m = p.nodeName) && m.toLowerCase() === "input" && (p.type === "checkbox" || p.type === "radio") && (S = K0e); if (S && (S = S(e, c))) { bk(f, S, r, d); break e; } C && C(e, p, c), e === "focusout" && (C = p._wrapperState) && C.controlled && p.type === "number" && qC(p, "number", p.value); } switch (C = c ? Mu(c) : window, e) { case "focusin": (X9(C) || C.contentEditable === "true") && (Ou = C, YC = c, Mf = null); break; case "focusout": Mf = YC = Ou = null; break; case "mousedown": KC = !0; break; case "contextmenu": case "mouseup": case "dragend": KC = !1, eL(f, r, d); break; case "selectionchange": if (Z0e) break; case "keydown": case "keyup": eL(f, r, d); } var _; if (k_) e: { switch (e) { case "compositionstart": var A = "onCompositionStart"; break e; case "compositionend": A = "onCompositionEnd"; break e; case "compositionupdate": A = "onCompositionUpdate"; break e; } A = void 0; } else Au ? yk(e, r) && (A = "onCompositionEnd") : e === "keydown" && r.keyCode === 229 && (A = "onCompositionStart"); A && (gk && r.locale !== "ko" && (Au || A !== "onCompositionStart" ? A === "onCompositionEnd" && Au && (_ = hk()) : (Ci = d, M_ = "v\ alue" in Ci ? Ci.value : Ci.textContent, Au = !0)), C = Y0(c, A), 0 < C.length && (A = new W9(A, e, null, r, d), f.push({ event: A, listeners: C }), _ ? A.data = _ : (_ = vk(r), _ !== null && (A.data = _)))), (_ = $0e ? H0e(e, r) : z0e(e, r)) && (c = Y0(c, "onBeforeInput"), 0 < c. length && (d = new W9("onBeforeInput", "beforeinput", null, r, d), f.push({ event: d, listeners: c }), d.data = _)); } Ok(f, t); }); } a(vC, "hd"); function Wf(e, t, r) { return { instance: e, listener: t, currentTarget: r }; } a(Wf, "tf"); function Y0(e, t) { for (var r = t + "Capture", n = []; e !== null; ) { var o = e, i = o.stateNode; o.tag === 5 && i !== null && (o = i, i = jf(e, r), i != null && n.unshift(Wf(e, i, o)), i = jf(e, t), i != null && n.push(Wf(e, i, o))), e = e.return; } return n; } a(Y0, "oe"); function _u(e) { if (e === null) return null; do e = e.return; while (e && e.tag !== 5); return e || null; } a(_u, "vf"); function aL(e, t, r, n, o) { for (var i = t._reactName, s = []; r !== null && r !== n; ) { var l = r, u = l.alternate, c = l.stateNode; if (u !== null && u === n) break; l.tag === 5 && c !== null && (l = c, o ? (u = jf(r, i), u != null && s.unshift(Wf(r, u, l))) : o || (u = jf(r, i), u != null && s.push( Wf(r, u, l)))), r = r.return; } s.length !== 0 && e.push({ event: t, listeners: s }); } a(aL, "wf"); var tge = /\r\n?/g, rge = /\u0000|\uFFFD/g; function iL(e) { return (typeof e == "string" ? e : "" + e).replace(tge, ` `).replace(rge, ""); } a(iL, "zf"); function C0(e, t, r) { if (t = iL(t), iL(e) !== t && r) throw Error(W(425)); } a(C0, "Af"); function K0() { } a(K0, "Bf"); var XC = null, JC = null; function QC(e, t) { return e === "textarea" || e === "noscript" || typeof t.children == "string" || typeof t.children == "number" || typeof t.dangerouslySetInnerHTML == "object" && t.dangerouslySetInnerHTML !== null && t.dangerouslySetInnerHTML.__html != null; } a(QC, "Ef"); var ZC = typeof setTimeout == "function" ? setTimeout : void 0, nge = typeof clearTimeout == "function" ? clearTimeout : void 0, sL = typeof Promise == "function" ? Promise : void 0, oge = typeof queueMicrotask == "function" ? queueMicrotask : typeof sL < "u" ? function(e) { return sL.resolve(null).then(e).catch(age); } : ZC; function age(e) { setTimeout(function() { throw e; }); } a(age, "If"); function bC(e, t) { var r = t, n = 0; do { var o = r.nextSibling; if (e.removeChild(r), o && o.nodeType === 8) if (r = o.data, r === "/$") { if (n === 0) { e.removeChild(o), Hf(t); return; } n--; } else r !== "$" && r !== "$?" && r !== "$!" || n++; r = o; } while (r); Hf(t); } a(bC, "Kf"); function Oi(e) { for (; e != null; e = e.nextSibling) { var t = e.nodeType; if (t === 1 || t === 3) break; if (t === 8) { if (t = e.data, t === "$" || t === "$!" || t === "$?") break; if (t === "/$") return null; } } return e; } a(Oi, "Lf"); function lL(e) { e = e.previousSibling; for (var t = 0; e; ) { if (e.nodeType === 8) { var r = e.data; if (r === "$" || r === "$!" || r === "$?") { if (t === 0) return e; t--; } else r === "/$" && t++; } e = e.previousSibling; } return null; } a(lL, "Mf"); var Zu = Math.random().toString(36).slice(2), la = "__reactFiber$" + Zu, Gf = "__reactProps$" + Zu, ja = "__reactContainer$" + Zu, e_ = "_\ _reactEvents$" + Zu, ige = "__reactListeners$" + Zu, sge = "__reactHandles$" + Zu; function Js(e) { var t = e[la]; if (t) return t; for (var r = e.parentNode; r; ) { if (t = r[ja] || r[la]) { if (r = t.alternate, t.child !== null || r !== null && r.child !== null) for (e = lL(e); e !== null; ) { if (r = e[la]) return r; e = lL(e); } return t; } e = r, r = e.parentNode; } return null; } a(Js, "Wc"); function rp(e) { return e = e[la] || e[ja], !e || e.tag !== 5 && e.tag !== 6 && e.tag !== 13 && e.tag !== 3 ? null : e; } a(rp, "Cb"); function Mu(e) { if (e.tag === 5 || e.tag === 6) return e.stateNode; throw Error(W(33)); } a(Mu, "ue"); function hg(e) { return e[Gf] || null; } a(hg, "Db"); var t_ = [], Nu = -1; function Fi(e) { return { current: e }; } a(Fi, "Uf"); function Ze(e) { 0 > Nu || (e.current = t_[Nu], t_[Nu] = null, Nu--); } a(Ze, "E"); function Ye(e, t) { Nu++, t_[Nu] = e.current, e.current = t; } a(Ye, "G"); var qi = {}, xr = Fi(qi), Jr = Fi(!1), rl = qi; function Wu(e, t) { var r = e.type.contextTypes; if (!r) return qi; var n = e.stateNode; if (n && n.__reactInternalMemoizedUnmaskedChildContext === t) return n.__reactInternalMemoizedMaskedChildContext; var o = {}, i; for (i in r) o[i] = t[i]; return n && (e = e.stateNode, e.__reactInternalMemoizedUnmaskedChildContext = t, e.__reactInternalMemoizedMaskedChildContext = o), o; } a(Wu, "Yf"); function Qr(e) { return e = e.childContextTypes, e != null; } a(Qr, "Zf"); function X0() { Ze(Jr), Ze(xr); } a(X0, "$f"); function uL(e, t, r) { if (xr.current !== qi) throw Error(W(168)); Ye(xr, t), Ye(Jr, r); } a(uL, "ag"); function Mk(e, t, r) { var n = e.stateNode; if (t = t.childContextTypes, typeof n.getChildContext != "function") return r; n = n.getChildContext(); for (var o in n) if (!(o in t)) throw Error(W(108, Ghe(e) || "Unknown", o)); return pt({}, r, n); } a(Mk, "bg"); function J0(e) { return e = (e = e.stateNode) && e.__reactInternalMemoizedMergedChildContext || qi, rl = xr.current, Ye(xr, e), Ye(Jr, Jr.current), !0; } a(J0, "cg"); function cL(e, t, r) { var n = e.stateNode; if (!n) throw Error(W(169)); r ? (e = Mk(e, t, rl), n.__reactInternalMemoizedMergedChildContext = e, Ze(Jr), Ze(xr), Ye(xr, e)) : Ze(Jr), Ye(Jr, r); } a(cL, "dg"); var La = null, gg = !1, wC = !1; function Nk(e) { La === null ? La = [e] : La.push(e); } a(Nk, "hg"); function lge(e) { gg = !0, Nk(e); } a(lge, "ig"); function ji() { if (!wC && La !== null) { wC = !0; var e = 0, t = Fe; try { var r = La; for (Fe = 1; e < r.length; e++) { var n = r[e]; do n = n(!0); while (n !== null); } La = null, gg = !1; } catch (o) { throw La !== null && (La = La.slice(e + 1)), ok(T_, ji), o; } finally { Fe = t, wC = !1; } } return null; } a(ji, "jg"); var Lu = [], ku = 0, Q0 = null, Z0 = 0, qn = [], Dn = 0, nl = null, ka = 1, qa = ""; function Ks(e, t) { Lu[ku++] = Z0, Lu[ku++] = Q0, Q0 = e, Z0 = t; } a(Ks, "tg"); function Lk(e, t, r) { qn[Dn++] = ka, qn[Dn++] = qa, qn[Dn++] = nl, nl = e; var n = ka; e = qa; var o = 32 - _o(n) - 1; n &= ~(1 << o), r += 1; var i = 32 - _o(t) + o; if (30 < i) { var s = o - o % 5; i = (n & (1 << s) - 1).toString(32), n >>= s, o -= s, ka = 1 << 32 - _o(t) + o | r << o | n, qa = i + e; } else ka = 1 << i | r << o | n, qa = e; } a(Lk, "ug"); function D_(e) { e.return !== null && (Ks(e, 1), Lk(e, 1, 0)); } a(D_, "vg"); function F_(e) { for (; e === Q0; ) Q0 = Lu[--ku], Lu[ku] = null, Z0 = Lu[--ku], Lu[ku] = null; for (; e === nl; ) nl = qn[--Dn], qn[Dn] = null, qa = qn[--Dn], qn[Dn] = null, ka = qn[--Dn], qn[Dn] = null; } a(F_, "wg"); var gn = null, hn = null, lt = !1, Co = null; function kk(e, t) { var r = Fn(5, null, null, 0); r.elementType = "DELETED", r.stateNode = t, r.return = e, t = e.deletions, t === null ? (e.deletions = [r], e.flags |= 16) : t.push(r); } a(kk, "Ag"); function dL(e, t) { switch (e.tag) { case 5: var r = e.type; return t = t.nodeType !== 1 || r.toLowerCase() !== t.nodeName.toLowerCase() ? null : t, t !== null ? (e.stateNode = t, gn = e, hn = Oi( t.firstChild), !0) : !1; case 6: return t = e.pendingProps === "" || t.nodeType !== 3 ? null : t, t !== null ? (e.stateNode = t, gn = e, hn = null, !0) : !1; case 13: return t = t.nodeType !== 8 ? null : t, t !== null ? (r = nl !== null ? { id: ka, overflow: qa } : null, e.memoizedState = { dehydrated: t, treeContext: r, retryLane: 1073741824 }, r = Fn(18, null, null, 0), r.stateNode = t, r.return = e, e.child = r, gn = e, hn = null, !0) : !1; default: return !1; } } a(dL, "Cg"); function r_(e) { return (e.mode & 1) !== 0 && (e.flags & 128) === 0; } a(r_, "Dg"); function n_(e) { if (lt) { var t = hn; if (t) { var r = t; if (!dL(e, t)) { if (r_(e)) throw Error(W(418)); t = Oi(r.nextSibling); var n = gn; t && dL(e, t) ? kk(n, r) : (e.flags = e.flags & -4097 | 2, lt = !1, gn = e); } } else { if (r_(e)) throw Error(W(418)); e.flags = e.flags & -4097 | 2, lt = !1, gn = e; } } } a(n_, "Eg"); function fL(e) { for (e = e.return; e !== null && e.tag !== 5 && e.tag !== 3 && e.tag !== 13; ) e = e.return; gn = e; } a(fL, "Fg"); function _0(e) { if (e !== gn) return !1; if (!lt) return fL(e), lt = !0, !1; var t; if ((t = e.tag !== 3) && !(t = e.tag !== 5) && (t = e.type, t = t !== "head" && t !== "body" && !QC(e.type, e.memoizedProps)), t && (t = hn)) { if (r_(e)) throw qk(), Error(W(418)); for (; t; ) kk(e, t), t = Oi(t.nextSibling); } if (fL(e), e.tag === 13) { if (e = e.memoizedState, e = e !== null ? e.dehydrated : null, !e) throw Error(W(317)); e: { for (e = e.nextSibling, t = 0; e; ) { if (e.nodeType === 8) { var r = e.data; if (r === "/$") { if (t === 0) { hn = Oi(e.nextSibling); break e; } t--; } else r !== "$" && r !== "$!" && r !== "$?" || t++; } e = e.nextSibling; } hn = null; } } else hn = gn ? Oi(e.stateNode.nextSibling) : null; return !0; } a(_0, "Gg"); function qk() { for (var e = hn; e; ) e = Oi(e.nextSibling); } a(qk, "Hg"); function Gu() { hn = gn = null, lt = !1; } a(Gu, "Ig"); function j_(e) { Co === null ? Co = [e] : Co.push(e); } a(j_, "Jg"); var uge = Ha.ReactCurrentBatchConfig; function wf(e, t, r) { if (e = r.ref, e !== null && typeof e != "function" && typeof e != "object") { if (r._owner) { if (r = r._owner, r) { if (r.tag !== 1) throw Error(W(309)); var n = r.stateNode; } if (!n) throw Error(W(147, e)); var o = n, i = "" + e; return t !== null && t.ref !== null && typeof t.ref == "function" && t.ref._stringRef === i ? t.ref : (t = /* @__PURE__ */ a(function(s) { var l = o.refs; s === null ? delete l[i] : l[i] = s; }, "b"), t._stringRef = i, t); } if (typeof e != "string") throw Error(W(284)); if (!r._owner) throw Error(W(290, e)); } return e; } a(wf, "Lg"); function P0(e, t) { throw e = Object.prototype.toString.call(t), Error(W(31, e === "[object Object]" ? "object with keys {" + Object.keys(t).join(", ") + "}" : e)); } a(P0, "Mg"); function pL(e) { var t = e._init; return t(e._payload); } a(pL, "Ng"); function Dk(e) { function t(g, w) { if (e) { var E = g.deletions; E === null ? (g.deletions = [w], g.flags |= 16) : E.push(w); } } a(t, "b"); function r(g, w) { if (!e) return null; for (; w !== null; ) t(g, w), w = w.sibling; return null; } a(r, "c"); function n(g, w) { for (g = /* @__PURE__ */ new Map(); w !== null; ) w.key !== null ? g.set(w.key, w) : g.set(w.index, w), w = w.sibling; return g; } a(n, "d"); function o(g, w) { return g = Li(g, w), g.index = 0, g.sibling = null, g; } a(o, "e"); function i(g, w, E) { return g.index = E, e ? (E = g.alternate, E !== null ? (E = E.index, E < w ? (g.flags |= 2, w) : E) : (g.flags |= 2, w)) : (g.flags |= 1048576, w); } a(i, "f"); function s(g) { return e && g.alternate === null && (g.flags |= 2), g; } a(s, "g"); function l(g, w, E, x) { return w === null || w.tag !== 6 ? (w = PC(E, g.mode, x), w.return = g, w) : (w = o(w, E), w.return = g, w); } a(l, "h"); function u(g, w, E, x) { var S = E.type; return S === Tu ? d(g, w, E.props.children, x, E.key) : w !== null && (w.elementType === S || typeof S == "object" && S !== null && S. $$typeof === Ei && pL(S) === w.type) ? (x = o(w, E.props), x.ref = wf(g, w, E), x.return = g, x) : (x = B0(E.type, E.key, E.props, null, g.mode, x), x.ref = wf(g, w, E), x.return = g, x); } a(u, "k"); function c(g, w, E, x) { return w === null || w.tag !== 4 || w.stateNode.containerInfo !== E.containerInfo || w.stateNode.implementation !== E.implementation ? (w = TC(E, g.mode, x), w.return = g, w) : (w = o(w, E.children || []), w.return = g, w); } a(c, "l"); function d(g, w, E, x, S) { return w === null || w.tag !== 7 ? (w = tl(E, g.mode, x, S), w.return = g, w) : (w = o(w, E), w.return = g, w); } a(d, "m"); function f(g, w, E) { if (typeof w == "string" && w !== "" || typeof w == "number") return w = PC("" + w, g.mode, E), w.return = g, w; if (typeof w == "object" && w !== null) { switch (w.$$typeof) { case f0: return E = B0(w.type, w.key, w.props, null, g.mode, E), E.ref = wf(g, null, w), E.return = g, E; case Pu: return w = TC(w, g.mode, E), w.return = g, w; case Ei: var x = w._init; return f(g, x(w._payload), E); } if (Cf(w) || gf(w)) return w = tl(w, g.mode, E, null), w.return = g, w; P0(g, w); } return null; } a(f, "q"); function p(g, w, E, x) { var S = w !== null ? w.key : null; if (typeof E == "string" && E !== "" || typeof E == "number") return S !== null ? null : l(g, w, "" + E, x); if (typeof E == "object" && E !== null) { switch (E.$$typeof) { case f0: return E.key === S ? u(g, w, E, x) : null; case Pu: return E.key === S ? c(g, w, E, x) : null; case Ei: return S = E._init, p( g, w, S(E._payload), x ); } if (Cf(E) || gf(E)) return S !== null ? null : d(g, w, E, x, null); P0(g, E); } return null; } a(p, "r"); function m(g, w, E, x, S) { if (typeof x == "string" && x !== "" || typeof x == "number") return g = g.get(E) || null, l(w, g, "" + x, S); if (typeof x == "object" && x !== null) { switch (x.$$typeof) { case f0: return g = g.get(x.key === null ? E : x.key) || null, u(w, g, x, S); case Pu: return g = g.get(x.key === null ? E : x.key) || null, c(w, g, x, S); case Ei: var C = x._init; return m(g, w, E, C(x._payload), S); } if (Cf(x) || gf(x)) return g = g.get(E) || null, d(w, g, x, S, null); P0(w, x); } return null; } a(m, "y"); function v(g, w, E, x) { for (var S = null, C = null, _ = w, A = w = 0, O = null; _ !== null && A < E.length; A++) { _.index > A ? (O = _, _ = null) : O = _.sibling; var q = p(g, _, E[A], x); if (q === null) { _ === null && (_ = O); break; } e && _ && q.alternate === null && t(g, _), w = i(q, w, A), C === null ? S = q : C.sibling = q, C = q, _ = O; } if (A === E.length) return r(g, _), lt && Ks(g, A), S; if (_ === null) { for (; A < E.length; A++) _ = f(g, E[A], x), _ !== null && (w = i(_, w, A), C === null ? S = _ : C.sibling = _, C = _); return lt && Ks(g, A), S; } for (_ = n(g, _); A < E.length; A++) O = m(_, g, A, E[A], x), O !== null && (e && O.alternate !== null && _.delete(O.key === null ? A : O.key), w = i(O, w, A), C === null ? S = O : C.sibling = O, C = O); return e && _.forEach(function(M) { return t(g, M); }), lt && Ks(g, A), S; } a(v, "n"); function y(g, w, E, x) { var S = gf(E); if (typeof S != "function") throw Error(W(150)); if (E = S.call(E), E == null) throw Error(W(151)); for (var C = S = null, _ = w, A = w = 0, O = null, q = E.next(); _ !== null && !q.done; A++, q = E.next()) { _.index > A ? (O = _, _ = null) : O = _.sibling; var M = p(g, _, q.value, x); if (M === null) { _ === null && (_ = O); break; } e && _ && M.alternate === null && t(g, _), w = i(M, w, A), C === null ? S = M : C.sibling = M, C = M, _ = O; } if (q.done) return r( g, _ ), lt && Ks(g, A), S; if (_ === null) { for (; !q.done; A++, q = E.next()) q = f(g, q.value, x), q !== null && (w = i(q, w, A), C === null ? S = q : C.sibling = q, C = q); return lt && Ks(g, A), S; } for (_ = n(g, _); !q.done; A++, q = E.next()) q = m(_, g, A, q.value, x), q !== null && (e && q.alternate !== null && _.delete(q.key === null ? A : q.key), w = i(q, w, A), C === null ? S = q : C.sibling = q, C = q); return e && _.forEach(function(U) { return t(g, U); }), lt && Ks(g, A), S; } a(y, "t"); function b(g, w, E, x) { if (typeof E == "object" && E !== null && E.type === Tu && E.key === null && (E = E.props.children), typeof E == "object" && E !== null) { switch (E.$$typeof) { case f0: e: { for (var S = E.key, C = w; C !== null; ) { if (C.key === S) { if (S = E.type, S === Tu) { if (C.tag === 7) { r(g, C.sibling), w = o(C, E.props.children), w.return = g, g = w; break e; } } else if (C.elementType === S || typeof S == "object" && S !== null && S.$$typeof === Ei && pL(S) === C.type) { r(g, C.sibling), w = o(C, E.props), w.ref = wf(g, C, E), w.return = g, g = w; break e; } r(g, C); break; } else t(g, C); C = C.sibling; } E.type === Tu ? (w = tl(E.props.children, g.mode, x, E.key), w.return = g, g = w) : (x = B0(E.type, E.key, E.props, null, g.mode, x), x.ref = wf(g, w, E), x.return = g, g = x); } return s(g); case Pu: e: { for (C = E.key; w !== null; ) { if (w.key === C) if (w.tag === 4 && w.stateNode.containerInfo === E.containerInfo && w.stateNode.implementation === E.implementation) { r(g, w.sibling), w = o(w, E.children || []), w.return = g, g = w; break e; } else { r(g, w); break; } else t(g, w); w = w.sibling; } w = TC(E, g.mode, x), w.return = g, g = w; } return s(g); case Ei: return C = E._init, b(g, w, C(E._payload), x); } if (Cf(E)) return v(g, w, E, x); if (gf(E)) return y(g, w, E, x); P0(g, E); } return typeof E == "string" && E !== "" || typeof E == "number" ? (E = "" + E, w !== null && w.tag === 6 ? (r(g, w.sibling), w = o(w, E), w.return = g, g = w) : (r(g, w), w = PC(E, g.mode, x), w.return = g, g = w), s(g)) : r(g, w); } return a(b, "J"), b; } a(Dk, "Og"); var Yu = Dk(!0), Fk = Dk(!1), eg = Fi(null), tg = null, qu = null, B_ = null; function $_() { B_ = qu = tg = null; } a($_, "$g"); function H_(e) { var t = eg.current; Ze(eg), e._currentValue = t; } a(H_, "ah"); function o_(e, t, r) { for (; e !== null; ) { var n = e.alternate; if ((e.childLanes & t) !== t ? (e.childLanes |= t, n !== null && (n.childLanes |= t)) : n !== null && (n.childLanes & t) !== t && (n.childLanes |= t), e === r) break; e = e.return; } } a(o_, "bh"); function zu(e, t) { tg = e, B_ = qu = null, e = e.dependencies, e !== null && e.firstContext !== null && ((e.lanes & t) !== 0 && (Xr = !0), e.firstContext = null); } a(zu, "ch"); function Bn(e) { var t = e._currentValue; if (B_ !== e) if (e = { context: e, memoizedValue: t, next: null }, qu === null) { if (tg === null) throw Error(W(308)); qu = e, tg.dependencies = { lanes: 0, firstContext: e }; } else qu = qu.next = e; return t; } a(Bn, "eh"); var Qs = null; function z_(e) { Qs === null ? Qs = [e] : Qs.push(e); } a(z_, "gh"); function jk(e, t, r, n) { var o = t.interleaved; return o === null ? (r.next = r, z_(t)) : (r.next = o.next, o.next = r), t.interleaved = r, Ba(e, n); } a(jk, "hh"); function Ba(e, t) { e.lanes |= t; var r = e.alternate; for (r !== null && (r.lanes |= t), r = e, e = e.return; e !== null; ) e.childLanes |= t, r = e.alternate, r !== null && (r.childLanes |= t), r = e, e = e.return; return r.tag === 3 ? r.stateNode : null; } a(Ba, "ih"); var Ri = !1; function U_(e) { e.updateQueue = { baseState: e.memoizedState, firstBaseUpdate: null, lastBaseUpdate: null, shared: { pending: null, interleaved: null, lanes: 0 }, effects: null }; } a(U_, "kh"); function Bk(e, t) { e = e.updateQueue, t.updateQueue === e && (t.updateQueue = { baseState: e.baseState, firstBaseUpdate: e.firstBaseUpdate, lastBaseUpdate: e. lastBaseUpdate, shared: e.shared, effects: e.effects }); } a(Bk, "lh"); function Da(e, t) { return { eventTime: e, lane: t, tag: 0, payload: null, callback: null, next: null }; } a(Da, "mh"); function Ii(e, t, r) { var n = e.updateQueue; if (n === null) return null; if (n = n.shared, (Te & 2) !== 0) { var o = n.pending; return o === null ? t.next = t : (t.next = o.next, o.next = t), n.pending = t, Ba(e, r); } return o = n.interleaved, o === null ? (t.next = t, z_(n)) : (t.next = o.next, o.next = t), n.interleaved = t, Ba(e, r); } a(Ii, "nh"); function L0(e, t, r) { if (t = t.updateQueue, t !== null && (t = t.shared, (r & 4194240) !== 0)) { var n = t.lanes; n &= e.pendingLanes, r |= n, t.lanes = r, A_(e, r); } } a(L0, "oh"); function mL(e, t) { var r = e.updateQueue, n = e.alternate; if (n !== null && (n = n.updateQueue, r === n)) { var o = null, i = null; if (r = r.firstBaseUpdate, r !== null) { do { var s = { eventTime: r.eventTime, lane: r.lane, tag: r.tag, payload: r.payload, callback: r.callback, next: null }; i === null ? o = i = s : i = i.next = s, r = r.next; } while (r !== null); i === null ? o = i = t : i = i.next = t; } else o = i = t; r = { baseState: n.baseState, firstBaseUpdate: o, lastBaseUpdate: i, shared: n.shared, effects: n.effects }, e.updateQueue = r; return; } e = r.lastBaseUpdate, e === null ? r.firstBaseUpdate = t : e.next = t, r.lastBaseUpdate = t; } a(mL, "ph"); function rg(e, t, r, n) { var o = e.updateQueue; Ri = !1; var i = o.firstBaseUpdate, s = o.lastBaseUpdate, l = o.shared.pending; if (l !== null) { o.shared.pending = null; var u = l, c = u.next; u.next = null, s === null ? i = c : s.next = c, s = u; var d = e.alternate; d !== null && (d = d.updateQueue, l = d.lastBaseUpdate, l !== s && (l === null ? d.firstBaseUpdate = c : l.next = c, d.lastBaseUpdate = u)); } if (i !== null) { var f = o.baseState; s = 0, d = c = u = null, l = i; do { var p = l.lane, m = l.eventTime; if ((n & p) === p) { d !== null && (d = d.next = { eventTime: m, lane: 0, tag: l.tag, payload: l.payload, callback: l.callback, next: null }); e: { var v = e, y = l; switch (p = t, m = r, y.tag) { case 1: if (v = y.payload, typeof v == "function") { f = v.call(m, f, p); break e; } f = v; break e; case 3: v.flags = v.flags & -65537 | 128; case 0: if (v = y.payload, p = typeof v == "function" ? v.call(m, f, p) : v, p == null) break e; f = pt({}, f, p); break e; case 2: Ri = !0; } } l.callback !== null && l.lane !== 0 && (e.flags |= 64, p = o.effects, p === null ? o.effects = [l] : p.push(l)); } else m = { eventTime: m, lane: p, tag: l.tag, payload: l.payload, callback: l.callback, next: null }, d === null ? (c = d = m, u = f) : d = d.next = m, s |= p; if (l = l.next, l === null) { if (l = o.shared.pending, l === null) break; p = l, l = p.next, p.next = null, o.lastBaseUpdate = p, o.shared.pending = null; } } while (!0); if (d === null && (u = f), o.baseState = u, o.firstBaseUpdate = c, o.lastBaseUpdate = d, t = o.shared.interleaved, t !== null) { o = t; do s |= o.lane, o = o.next; while (o !== t); } else i === null && (o.shared.lanes = 0); al |= s, e.lanes = s, e.memoizedState = f; } } a(rg, "qh"); function hL(e, t, r) { if (e = t.effects, t.effects = null, e !== null) for (t = 0; t < e.length; t++) { var n = e[t], o = n.callback; if (o !== null) { if (n.callback = null, n = r, typeof o != "function") throw Error(W(191, o)); o.call(n); } } } a(hL, "sh"); var np = {}, ca = Fi(np), Yf = Fi(np), Kf = Fi(np); function Zs(e) { if (e === np) throw Error(W(174)); return e; } a(Zs, "xh"); function V_(e, t) { switch (Ye(Kf, t), Ye(Yf, e), Ye(ca, np), e = t.nodeType, e) { case 9: case 11: t = (t = t.documentElement) ? t.namespaceURI : FC(null, ""); break; default: e = e === 8 ? t.parentNode : t, t = e.namespaceURI || null, e = e.tagName, t = FC(t, e); } Ze(ca), Ye(ca, t); } a(V_, "yh"); function Ku() { Ze(ca), Ze(Yf), Ze(Kf); } a(Ku, "zh"); function $k(e) { Zs(Kf.current); var t = Zs(ca.current), r = FC(t, e.type); t !== r && (Ye(Yf, e), Ye(ca, r)); } a($k, "Ah"); function W_(e) { Yf.current === e && (Ze(ca), Ze(Yf)); } a(W_, "Bh"); var dt = Fi(0); function ng(e) { for (var t = e; t !== null; ) { if (t.tag === 13) { var r = t.memoizedState; if (r !== null && (r = r.dehydrated, r === null || r.data === "$?" || r.data === "$!")) return t; } else if (t.tag === 19 && t.memoizedProps.revealOrder !== void 0) { if ((t.flags & 128) !== 0) return t; } else if (t.child !== null) { t.child.return = t, t = t.child; continue; } if (t === e) break; for (; t.sibling === null; ) { if (t.return === null || t.return === e) return null; t = t.return; } t.sibling.return = t.return, t = t.sibling; } return null; } a(ng, "Ch"); var EC = []; function G_() { for (var e = 0; e < EC.length; e++) EC[e]._workInProgressVersionPrimary = null; EC.length = 0; } a(G_, "Eh"); var k0 = Ha.ReactCurrentDispatcher, RC = Ha.ReactCurrentBatchConfig, ol = 0, ft = null, Ft = null, Gt = null, og = !1, Nf = !1, Xf = 0, cge = 0; function wr() { throw Error(W(321)); } a(wr, "P"); function Y_(e, t) { if (t === null) return !1; for (var r = 0; r < t.length && r < e.length; r++) if (!To(e[r], t[r])) return !1; return !0; } a(Y_, "Mh"); function K_(e, t, r, n, o, i) { if (ol = i, ft = t, t.memoizedState = null, t.updateQueue = null, t.lanes = 0, k0.current = e === null || e.memoizedState === null ? mge : hge, e = r(n, o), Nf) { i = 0; do { if (Nf = !1, Xf = 0, 25 <= i) throw Error(W(301)); i += 1, Gt = Ft = null, t.updateQueue = null, k0.current = gge, e = r(n, o); } while (Nf); } if (k0.current = ag, t = Ft !== null && Ft.next !== null, ol = 0, Gt = Ft = ft = null, og = !1, t) throw Error(W(300)); return e; } a(K_, "Nh"); function X_() { var e = Xf !== 0; return Xf = 0, e; } a(X_, "Sh"); function sa() { var e = { memoizedState: null, baseState: null, baseQueue: null, queue: null, next: null }; return Gt === null ? ft.memoizedState = Gt = e : Gt = Gt.next = e, Gt; } a(sa, "Th"); function $n() { if (Ft === null) { var e = ft.alternate; e = e !== null ? e.memoizedState : null; } else e = Ft.next; var t = Gt === null ? ft.memoizedState : Gt.next; if (t !== null) Gt = t, Ft = e; else { if (e === null) throw Error(W(310)); Ft = e, e = { memoizedState: Ft.memoizedState, baseState: Ft.baseState, baseQueue: Ft.baseQueue, queue: Ft.queue, next: null }, Gt === null ? ft.memoizedState = Gt = e : Gt = Gt.next = e; } return Gt; } a($n, "Uh"); function Jf(e, t) { return typeof t == "function" ? t(e) : t; } a(Jf, "Vh"); function xC(e) { var t = $n(), r = t.queue; if (r === null) throw Error(W(311)); r.lastRenderedReducer = e; var n = Ft, o = n.baseQueue, i = r.pending; if (i !== null) { if (o !== null) { var s = o.next; o.next = i.next, i.next = s; } n.baseQueue = o = i, r.pending = null; } if (o !== null) { i = o.next, n = n.baseState; var l = s = null, u = null, c = i; do { var d = c.lane; if ((ol & d) === d) u !== null && (u = u.next = { lane: 0, action: c.action, hasEagerState: c.hasEagerState, eagerState: c.eagerState, next: null }), n = c.hasEagerState ? c.eagerState : e(n, c.action); else { var f = { lane: d, action: c.action, hasEagerState: c.hasEagerState, eagerState: c.eagerState, next: null }; u === null ? (l = u = f, s = n) : u = u.next = f, ft.lanes |= d, al |= d; } c = c.next; } while (c !== null && c !== i); u === null ? s = n : u.next = l, To(n, t.memoizedState) || (Xr = !0), t.memoizedState = n, t.baseState = s, t.baseQueue = u, r.lastRenderedState = n; } if (e = r.interleaved, e !== null) { o = e; do i = o.lane, ft.lanes |= i, al |= i, o = o.next; while (o !== e); } else o === null && (r.lanes = 0); return [t.memoizedState, r.dispatch]; } a(xC, "Wh"); function SC(e) { var t = $n(), r = t.queue; if (r === null) throw Error(W(311)); r.lastRenderedReducer = e; var n = r.dispatch, o = r.pending, i = t.memoizedState; if (o !== null) { r.pending = null; var s = o = o.next; do i = e(i, s.action), s = s.next; while (s !== o); To(i, t.memoizedState) || (Xr = !0), t.memoizedState = i, t.baseQueue === null && (t.baseState = i), r.lastRenderedState = i; } return [i, n]; } a(SC, "Xh"); function Hk() { } a(Hk, "Yh"); function zk(e, t) { var r = ft, n = $n(), o = t(), i = !To(n.memoizedState, o); if (i && (n.memoizedState = o, Xr = !0), n = n.queue, J_(Wk.bind(null, r, n, e), [e]), n.getSnapshot !== t || i || Gt !== null && Gt.memoizedState. tag & 1) { if (r.flags |= 2048, Qf(9, Vk.bind(null, r, n, o, t), void 0, null), Yt === null) throw Error(W(349)); (ol & 30) !== 0 || Uk(r, t, o); } return o; } a(zk, "Zh"); function Uk(e, t, r) { e.flags |= 16384, e = { getSnapshot: t, value: r }, t = ft.updateQueue, t === null ? (t = { lastEffect: null, stores: null }, ft.updateQueue = t, t.stores = [e]) : (r = t.stores, r === null ? t.stores = [e] : r.push(e)); } a(Uk, "di"); function Vk(e, t, r, n) { t.value = r, t.getSnapshot = n, Gk(t) && Yk(e); } a(Vk, "ci"); function Wk(e, t, r) { return r(function() { Gk(t) && Yk(e); }); } a(Wk, "ai"); function Gk(e) { var t = e.getSnapshot; e = e.value; try { var r = t(); return !To(e, r); } catch { return !0; } } a(Gk, "ei"); function Yk(e) { var t = Ba(e, 1); t !== null && Po(t, e, 1, -1); } a(Yk, "fi"); function gL(e) { var t = sa(); return typeof e == "function" && (e = e()), t.memoizedState = t.baseState = e, e = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: Jf, lastRenderedState: e }, t.queue = e, e = e.dispatch = pge.bind(null, ft, e), [t.memoizedState, e]; } a(gL, "hi"); function Qf(e, t, r, n) { return e = { tag: e, create: t, destroy: r, deps: n, next: null }, t = ft.updateQueue, t === null ? (t = { lastEffect: null, stores: null }, ft.updateQueue = t, t.lastEffect = e.next = e) : (r = t.lastEffect, r === null ? t.lastEffect = e.next = e : (n = r.next, r.next = e, e. next = n, t.lastEffect = e)), e; } a(Qf, "bi"); function Kk() { return $n().memoizedState; } a(Kk, "ji"); function q0(e, t, r, n) { var o = sa(); ft.flags |= e, o.memoizedState = Qf(1 | t, r, void 0, n === void 0 ? null : n); } a(q0, "ki"); function yg(e, t, r, n) { var o = $n(); n = n === void 0 ? null : n; var i = void 0; if (Ft !== null) { var s = Ft.memoizedState; if (i = s.destroy, n !== null && Y_(n, s.deps)) { o.memoizedState = Qf(t, r, i, n); return; } } ft.flags |= e, o.memoizedState = Qf(1 | t, r, i, n); } a(yg, "li"); function yL(e, t) { return q0(8390656, 8, e, t); } a(yL, "mi"); function J_(e, t) { return yg(2048, 8, e, t); } a(J_, "$h"); function Xk(e, t) { return yg(4, 2, e, t); } a(Xk, "ni"); function Jk(e, t) { return yg(4, 4, e, t); } a(Jk, "oi"); function Qk(e, t) { if (typeof t == "function") return e = e(), t(e), function() { t(null); }; if (t != null) return e = e(), t.current = e, function() { t.current = null; }; } a(Qk, "pi"); function Zk(e, t, r) { return r = r != null ? r.concat([e]) : null, yg(4, 4, Qk.bind(null, t, e), r); } a(Zk, "qi"); function Q_() { } a(Q_, "ri"); function eq(e, t) { var r = $n(); t = t === void 0 ? null : t; var n = r.memoizedState; return n !== null && t !== null && Y_(t, n[1]) ? n[0] : (r.memoizedState = [e, t], e); } a(eq, "si"); function tq(e, t) { var r = $n(); t = t === void 0 ? null : t; var n = r.memoizedState; return n !== null && t !== null && Y_(t, n[1]) ? n[0] : (e = e(), r.memoizedState = [e, t], e); } a(tq, "ti"); function rq(e, t, r) { return (ol & 21) === 0 ? (e.baseState && (e.baseState = !1, Xr = !0), e.memoizedState = r) : (To(r, t) || (r = sk(), ft.lanes |= r, al |= r, e.baseState = !0), t); } a(rq, "ui"); function dge(e, t) { var r = Fe; Fe = r !== 0 && 4 > r ? r : 4, e(!0); var n = RC.transition; RC.transition = {}; try { e(!1), t(); } finally { Fe = r, RC.transition = n; } } a(dge, "vi"); function nq() { return $n().memoizedState; } a(nq, "wi"); function fge(e, t, r) { var n = Ni(e); if (r = { lane: n, action: r, hasEagerState: !1, eagerState: null, next: null }, oq(e)) aq(t, r); else if (r = jk(e, t, r, n), r !== null) { var o = Nr(); Po(r, e, n, o), iq(r, t, n); } } a(fge, "xi"); function pge(e, t, r) { var n = Ni(e), o = { lane: n, action: r, hasEagerState: !1, eagerState: null, next: null }; if (oq(e)) aq(t, o); else { var i = e.alternate; if (e.lanes === 0 && (i === null || i.lanes === 0) && (i = t.lastRenderedReducer, i !== null)) try { var s = t.lastRenderedState, l = i(s, r); if (o.hasEagerState = !0, o.eagerState = l, To(l, s)) { var u = t.interleaved; u === null ? (o.next = o, z_(t)) : (o.next = u.next, u.next = o), t.interleaved = o; return; } } catch { } finally { } r = jk(e, t, o, n), r !== null && (o = Nr(), Po(r, e, n, o), iq(r, t, n)); } } a(pge, "ii"); function oq(e) { var t = e.alternate; return e === ft || t !== null && t === ft; } a(oq, "zi"); function aq(e, t) { Nf = og = !0; var r = e.pending; r === null ? t.next = t : (t.next = r.next, r.next = t), e.pending = t; } a(aq, "Ai"); function iq(e, t, r) { if ((r & 4194240) !== 0) { var n = t.lanes; n &= e.pendingLanes, r |= n, t.lanes = r, A_(e, r); } } a(iq, "Bi"); var ag = { readContext: Bn, useCallback: wr, useContext: wr, useEffect: wr, useImperativeHandle: wr, useInsertionEffect: wr, useLayoutEffect: wr, useMemo: wr, useReducer: wr, useRef: wr, useState: wr, useDebugValue: wr, useDeferredValue: wr, useTransition: wr, useMutableSource: wr, useSyncExternalStore: wr, useId: wr, unstable_isNewReconciler: !1 }, mge = { readContext: Bn, useCallback: /* @__PURE__ */ a(function(e, t) { return sa().memoizedState = [e, t === void 0 ? null : t], e; }, "useCallback"), useContext: Bn, useEffect: yL, useImperativeHandle: /* @__PURE__ */ a(function(e, t, r) { return r = r != null ? r.concat([e]) : null, q0( 4194308, 4, Qk.bind(null, t, e), r ); }, "useImperativeHandle"), useLayoutEffect: /* @__PURE__ */ a(function(e, t) { return q0(4194308, 4, e, t); }, "useLayoutEffect"), useInsertionEffect: /* @__PURE__ */ a(function(e, t) { return q0(4, 2, e, t); }, "useInsertionEffect"), useMemo: /* @__PURE__ */ a(function(e, t) { var r = sa(); return t = t === void 0 ? null : t, e = e(), r.memoizedState = [e, t], e; }, "useMemo"), useReducer: /* @__PURE__ */ a(function(e, t, r) { var n = sa(); return t = r !== void 0 ? r(t) : t, n.memoizedState = n.baseState = t, e = { pending: null, interleaved: null, lanes: 0, dispatch: null, lastRenderedReducer: e, lastRenderedState: t }, n.queue = e, e = e.dispatch = fge.bind(null, ft, e), [n.memoizedState, e]; }, "useReducer"), useRef: /* @__PURE__ */ a(function(e) { var t = sa(); return e = { current: e }, t.memoizedState = e; }, "useRef"), useState: gL, useDebugValue: Q_, useDeferredValue: /* @__PURE__ */ a(function(e) { return sa().memoizedState = e; }, "useDeferredValue"), useTransition: /* @__PURE__ */ a(function() { var e = gL(!1), t = e[0]; return e = dge.bind(null, e[1]), sa().memoizedState = e, [t, e]; }, "useTransition"), useMutableSource: /* @__PURE__ */ a(function() { }, "useMutableSource"), useSyncExternalStore: /* @__PURE__ */ a(function(e, t, r) { var n = ft, o = sa(); if (lt) { if (r === void 0) throw Error(W(407)); r = r(); } else { if (r = t(), Yt === null) throw Error(W(349)); (ol & 30) !== 0 || Uk(n, t, r); } o.memoizedState = r; var i = { value: r, getSnapshot: t }; return o.queue = i, yL(Wk.bind( null, n, i, e ), [e]), n.flags |= 2048, Qf(9, Vk.bind(null, n, i, r, t), void 0, null), r; }, "useSyncExternalStore"), useId: /* @__PURE__ */ a(function() { var e = sa(), t = Yt.identifierPrefix; if (lt) { var r = qa, n = ka; r = (n & ~(1 << 32 - _o(n) - 1)).toString(32) + r, t = ":" + t + "R" + r, r = Xf++, 0 < r && (t += "H" + r.toString(32)), t += ":"; } else r = cge++, t = ":" + t + "r" + r.toString(32) + ":"; return e.memoizedState = t; }, "useId"), unstable_isNewReconciler: !1 }, hge = { readContext: Bn, useCallback: eq, useContext: Bn, useEffect: J_, useImperativeHandle: Zk, useInsertionEffect: Xk, useLayoutEffect: Jk, useMemo: tq, useReducer: xC, useRef: Kk, useState: /* @__PURE__ */ a(function() { return xC(Jf); }, "useState"), useDebugValue: Q_, useDeferredValue: /* @__PURE__ */ a(function(e) { var t = $n(); return rq(t, Ft.memoizedState, e); }, "useDeferredValue"), useTransition: /* @__PURE__ */ a(function() { var e = xC(Jf)[0], t = $n().memoizedState; return [e, t]; }, "useTransition"), useMutableSource: Hk, useSyncExternalStore: zk, useId: nq, unstable_isNewReconciler: !1 }, gge = { readContext: Bn, useCallback: eq, useContext: Bn, useEffect: J_, useImperativeHandle: Zk, useInsertionEffect: Xk, useLayoutEffect: Jk, useMemo: tq, useReducer: SC, useRef: Kk, useState: /* @__PURE__ */ a(function() { return SC(Jf); }, "useState"), useDebugValue: Q_, useDeferredValue: /* @__PURE__ */ a(function(e) { var t = $n(); return Ft === null ? t.memoizedState = e : rq(t, Ft.memoizedState, e); }, "useDeferredValue"), useTransition: /* @__PURE__ */ a(function() { var e = SC(Jf)[0], t = $n().memoizedState; return [e, t]; }, "useTransition"), useMutableSource: Hk, useSyncExternalStore: zk, useId: nq, unstable_isNewReconciler: !1 }; function xo(e, t) { if (e && e.defaultProps) { t = pt({}, t), e = e.defaultProps; for (var r in e) t[r] === void 0 && (t[r] = e[r]); return t; } return t; } a(xo, "Ci"); function a_(e, t, r, n) { t = e.memoizedState, r = r(n, t), r = r == null ? t : pt({}, t, r), e.memoizedState = r, e.lanes === 0 && (e.updateQueue.baseState = r); } a(a_, "Di"); var vg = { isMounted: /* @__PURE__ */ a(function(e) { return (e = e._reactInternals) ? ll(e) === e : !1; }, "isMounted"), enqueueSetState: /* @__PURE__ */ a(function(e, t, r) { e = e._reactInternals; var n = Nr(), o = Ni(e), i = Da(n, o); i.payload = t, r != null && (i.callback = r), t = Ii(e, i, o), t !== null && (Po(t, e, o, n), L0(t, e, o)); }, "enqueueSetState"), enqueueReplaceState: /* @__PURE__ */ a(function(e, t, r) { e = e._reactInternals; var n = Nr(), o = Ni(e), i = Da(n, o); i.tag = 1, i.payload = t, r != null && (i.callback = r), t = Ii(e, i, o), t !== null && (Po(t, e, o, n), L0(t, e, o)); }, "enqueueReplaceState"), enqueueForceUpdate: /* @__PURE__ */ a(function(e, t) { e = e._reactInternals; var r = Nr(), n = Ni(e), o = Da(r, n); o.tag = 2, t != null && (o.callback = t), t = Ii(e, o, n), t !== null && (Po(t, e, n, r), L0(t, e, n)); }, "enqueueForceUpdate") }; function vL(e, t, r, n, o, i, s) { return e = e.stateNode, typeof e.shouldComponentUpdate == "function" ? e.shouldComponentUpdate(n, i, s) : t.prototype && t.prototype.isPureReactComponent ? !Uf(r, n) || !Uf(o, i) : !0; } a(vL, "Fi"); function sq(e, t, r) { var n = !1, o = qi, i = t.contextType; return typeof i == "object" && i !== null ? i = Bn(i) : (o = Qr(t) ? rl : xr.current, n = t.contextTypes, i = (n = n != null) ? Wu(e, o) : qi), t = new t(r, i), e.memoizedState = t.state !== null && t.state !== void 0 ? t.state : null, t.updater = vg, e.stateNode = t, t._reactInternals = e, n && (e = e.stateNode, e.__reactInternalMemoizedUnmaskedChildContext = o, e.__reactInternalMemoizedMaskedChildContext = i), t; } a(sq, "Gi"); function bL(e, t, r, n) { e = t.state, typeof t.componentWillReceiveProps == "function" && t.componentWillReceiveProps(r, n), typeof t.UNSAFE_componentWillReceiveProps == "function" && t.UNSAFE_componentWillReceiveProps(r, n), t.state !== e && vg.enqueueReplaceState(t, t.state, null); } a(bL, "Hi"); function i_(e, t, r, n) { var o = e.stateNode; o.props = r, o.state = e.memoizedState, o.refs = {}, U_(e); var i = t.contextType; typeof i == "object" && i !== null ? o.context = Bn(i) : (i = Qr(t) ? rl : xr.current, o.context = Wu(e, i)), o.state = e.memoizedState, i = t.getDerivedStateFromProps, typeof i == "function" && (a_(e, t, i, r), o.state = e.memoizedState), typeof t.getDerivedStateFromProps == "function" || typeof o.getSnapshotBeforeUpdate == "function" || typeof o.UNSAFE_componentWillMount != "function" && typeof o.componentWillMount != "function" || (t = o.state, typeof o.componentWillMount == "function" && o.componentWillMount(), typeof o.UNSAFE_componentWillMount == "\ function" && o.UNSAFE_componentWillMount(), t !== o.state && vg.enqueueReplaceState(o, o.state, null), rg(e, r, o, n), o.state = e.memoizedState), typeof o.componentDidMount == "function" && (e.flags |= 4194308); } a(i_, "Ii"); function Xu(e, t) { try { var r = "", n = t; do r += Whe(n), n = n.return; while (n); var o = r; } catch (i) { o = ` Error generating stack: ` + i.message + ` ` + i.stack; } return { value: e, source: t, stack: o, digest: null }; } a(Xu, "Ji"); function CC(e, t, r) { return { value: e, source: null, stack: r ?? null, digest: t ?? null }; } a(CC, "Ki"); function s_(e, t) { try { console.error(t.value); } catch (r) { setTimeout(function() { throw r; }); } } a(s_, "Li"); var yge = typeof WeakMap == "function" ? WeakMap : Map; function lq(e, t, r) { r = Da(-1, r), r.tag = 3, r.payload = { element: null }; var n = t.value; return r.callback = function() { sg || (sg = !0, y_ = n), s_(e, t); }, r; } a(lq, "Ni"); function uq(e, t, r) { r = Da(-1, r), r.tag = 3; var n = e.type.getDerivedStateFromError; if (typeof n == "function") { var o = t.value; r.payload = function() { return n(o); }, r.callback = function() { s_(e, t); }; } var i = e.stateNode; return i !== null && typeof i.componentDidCatch == "function" && (r.callback = function() { s_(e, t), typeof n != "function" && (Mi === null ? Mi = /* @__PURE__ */ new Set([this]) : Mi.add(this)); var s = t.stack; this.componentDidCatch(t.value, { componentStack: s !== null ? s : "" }); }), r; } a(uq, "Qi"); function wL(e, t, r) { var n = e.pingCache; if (n === null) { n = e.pingCache = new yge(); var o = /* @__PURE__ */ new Set(); n.set(t, o); } else o = n.get(t), o === void 0 && (o = /* @__PURE__ */ new Set(), n.set(t, o)); o.has(r) || (o.add(r), e = Ige.bind(null, e, t, r), t.then(e, e)); } a(wL, "Si"); function EL(e) { do { var t; if ((t = e.tag === 13) && (t = e.memoizedState, t = t !== null ? t.dehydrated !== null : !0), t) return e; e = e.return; } while (e !== null); return null; } a(EL, "Ui"); function RL(e, t, r, n, o) { return (e.mode & 1) === 0 ? (e === t ? e.flags |= 65536 : (e.flags |= 128, r.flags |= 131072, r.flags &= -52805, r.tag === 1 && (r.alternate === null ? r.tag = 17 : (t = Da(-1, 1), t.tag = 2, Ii(r, t, 1))), r.lanes |= 1), e) : (e.flags |= 65536, e.lanes = o, e); } a(RL, "Vi"); var vge = Ha.ReactCurrentOwner, Xr = !1; function Mr(e, t, r, n) { t.child = e === null ? Fk(t, null, r, n) : Yu(t, e.child, r, n); } a(Mr, "Xi"); function xL(e, t, r, n, o) { r = r.render; var i = t.ref; return zu(t, o), n = K_(e, t, r, n, i, o), r = X_(), e !== null && !Xr ? (t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~o, $a(e, t, o)) : (lt && r && D_(t), t.flags |= 1, Mr(e, t, n, o), t.child); } a(xL, "Yi"); function SL(e, t, r, n, o) { if (e === null) { var i = r.type; return typeof i == "function" && !iP(i) && i.defaultProps === void 0 && r.compare === null && r.defaultProps === void 0 ? (t.tag = 15, t.type = i, cq(e, t, i, n, o)) : (e = B0(r.type, null, n, t, t.mode, o), e.ref = t.ref, e.return = t, t.child = e); } if (i = e.child, (e.lanes & o) === 0) { var s = i.memoizedProps; if (r = r.compare, r = r !== null ? r : Uf, r(s, n) && e.ref === t.ref) return $a(e, t, o); } return t.flags |= 1, e = Li(i, n), e.ref = t.ref, e.return = t, t.child = e; } a(SL, "$i"); function cq(e, t, r, n, o) { if (e !== null) { var i = e.memoizedProps; if (Uf(i, n) && e.ref === t.ref) if (Xr = !1, t.pendingProps = n = i, (e.lanes & o) !== 0) (e.flags & 131072) !== 0 && (Xr = !0); else return t.lanes = e.lanes, $a(e, t, o); } return l_(e, t, r, n, o); } a(cq, "bj"); function dq(e, t, r) { var n = t.pendingProps, o = n.children, i = e !== null ? e.memoizedState : null; if (n.mode === "hidden") if ((t.mode & 1) === 0) t.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, Ye(Fu, mn), mn |= r; else { if ((r & 1073741824) === 0) return e = i !== null ? i.baseLanes | r : r, t.lanes = t.childLanes = 1073741824, t.memoizedState = { baseLanes: e, cachePool: null, transitions: null }, t.updateQueue = null, Ye(Fu, mn), mn |= e, null; t.memoizedState = { baseLanes: 0, cachePool: null, transitions: null }, n = i !== null ? i.baseLanes : r, Ye(Fu, mn), mn |= n; } else i !== null ? (n = i.baseLanes | r, t.memoizedState = null) : n = r, Ye(Fu, mn), mn |= n; return Mr(e, t, o, r), t.child; } a(dq, "dj"); function fq(e, t) { var r = t.ref; (e === null && r !== null || e !== null && e.ref !== r) && (t.flags |= 512, t.flags |= 2097152); } a(fq, "gj"); function l_(e, t, r, n, o) { var i = Qr(r) ? rl : xr.current; return i = Wu(t, i), zu(t, o), r = K_(e, t, r, n, i, o), n = X_(), e !== null && !Xr ? (t.updateQueue = e.updateQueue, t.flags &= -2053, e.lanes &= ~o, $a(e, t, o)) : (lt && n && D_(t), t.flags |= 1, Mr(e, t, r, o), t.child); } a(l_, "cj"); function CL(e, t, r, n, o) { if (Qr(r)) { var i = !0; J0(t); } else i = !1; if (zu(t, o), t.stateNode === null) D0(e, t), sq(t, r, n), i_(t, r, n, o), n = !0; else if (e === null) { var s = t.stateNode, l = t.memoizedProps; s.props = l; var u = s.context, c = r.contextType; typeof c == "object" && c !== null ? c = Bn(c) : (c = Qr(r) ? rl : xr.current, c = Wu(t, c)); var d = r.getDerivedStateFromProps, f = typeof d == "function" || typeof s.getSnapshotBeforeUpdate == "function"; f || typeof s.UNSAFE_componentWillReceiveProps != "function" && typeof s.componentWillReceiveProps != "function" || (l !== n || u !== c) && bL(t, s, n, c), Ri = !1; var p = t.memoizedState; s.state = p, rg(t, n, s, o), u = t.memoizedState, l !== n || p !== u || Jr.current || Ri ? (typeof d == "function" && (a_(t, r, d, n), u = t.memoizedState), (l = Ri || vL(t, r, l, n, p, u, c)) ? (f || typeof s.UNSAFE_componentWillMount != "function" && typeof s.componentWillMount != "function" || (typeof s.componentWillMount == "function" && s.componentWillMount(), typeof s.UNSAFE_componentWillMount == "function" && s.UNSAFE_componentWillMount()), typeof s.componentDidMount == "function" && (t.flags |= 4194308)) : (typeof s.componentDidMount == "fu\ nction" && (t.flags |= 4194308), t.memoizedProps = n, t.memoizedState = u), s.props = n, s.state = u, s.context = c, n = l) : (typeof s.componentDidMount == "function" && (t.flags |= 4194308), n = !1); } else { s = t.stateNode, Bk(e, t), l = t.memoizedProps, c = t.type === t.elementType ? l : xo(t.type, l), s.props = c, f = t.pendingProps, p = s.context, u = r.contextType, typeof u == "object" && u !== null ? u = Bn(u) : (u = Qr(r) ? rl : xr.current, u = Wu(t, u)); var m = r.getDerivedStateFromProps; (d = typeof m == "function" || typeof s.getSnapshotBeforeUpdate == "function") || typeof s.UNSAFE_componentWillReceiveProps != "functi\ on" && typeof s.componentWillReceiveProps != "function" || (l !== f || p !== u) && bL(t, s, n, u), Ri = !1, p = t.memoizedState, s.state = p, rg(t, n, s, o); var v = t.memoizedState; l !== f || p !== v || Jr.current || Ri ? (typeof m == "function" && (a_(t, r, m, n), v = t.memoizedState), (c = Ri || vL(t, r, c, n, p, v, u) || !1) ? (d || typeof s.UNSAFE_componentWillUpdate != "function" && typeof s.componentWillUpdate != "function" || (typeof s.componentWillUpdate == "function" && s.componentWillUpdate(n, v, u), typeof s.UNSAFE_componentWillUpdate == "function" && s.UNSAFE_componentWillUpdate(n, v, u)), typeof s.componentDidUpdate == "function" && (t.flags |= 4), typeof s.getSnapshotBeforeUpdate == "function" && (t.flags |= 1024)) : (typeof s. componentDidUpdate != "function" || l === e.memoizedProps && p === e.memoizedState || (t.flags |= 4), typeof s.getSnapshotBeforeUpdate != "function" || l === e.memoizedProps && p === e.memoizedState || (t.flags |= 1024), t.memoizedProps = n, t.memoizedState = v), s.props = n, s.state = v, s.context = u, n = c) : (typeof s.componentDidUpdate != "function" || l === e.memoizedProps && p === e.memoizedState || (t.flags |= 4), typeof s.getSnapshotBeforeUpdate != "function" || l === e.memoizedProps && p === e.memoizedState || (t.flags |= 1024), n = !1); } return u_(e, t, r, n, i, o); } a(CL, "hj"); function u_(e, t, r, n, o, i) { fq(e, t); var s = (t.flags & 128) !== 0; if (!n && !s) return o && cL(t, r, !1), $a(e, t, i); n = t.stateNode, vge.current = t; var l = s && typeof r.getDerivedStateFromError != "function" ? null : n.render(); return t.flags |= 1, e !== null && s ? (t.child = Yu(t, e.child, null, i), t.child = Yu(t, null, l, i)) : Mr(e, t, l, i), t.memoizedState = n.state, o && cL(t, r, !0), t.child; } a(u_, "jj"); function pq(e) { var t = e.stateNode; t.pendingContext ? uL(e, t.pendingContext, t.pendingContext !== t.context) : t.context && uL(e, t.context, !1), V_(e, t.containerInfo); } a(pq, "kj"); function _L(e, t, r, n, o) { return Gu(), j_(o), t.flags |= 256, Mr(e, t, r, n), t.child; } a(_L, "lj"); var c_ = { dehydrated: null, treeContext: null, retryLane: 0 }; function d_(e) { return { baseLanes: e, cachePool: null, transitions: null }; } a(d_, "nj"); function mq(e, t, r) { var n = t.pendingProps, o = dt.current, i = !1, s = (t.flags & 128) !== 0, l; if ((l = s) || (l = e !== null && e.memoizedState === null ? !1 : (o & 2) !== 0), l ? (i = !0, t.flags &= -129) : (e === null || e.memoizedState !== null) && (o |= 1), Ye(dt, o & 1), e === null) return n_(t), e = t.memoizedState, e !== null && (e = e.dehydrated, e !== null) ? ((t.mode & 1) === 0 ? t.lanes = 1 : e.data === "$!" ? t.lanes = 8 : t.lanes = 1073741824, null) : (s = n.children, e = n.fallback, i ? (n = t.mode, i = t.child, s = { mode: "hidden", children: s }, (n & 1) === 0 && i !== null ? (i.childLanes = 0, i.pendingProps = s) : i = Eg(s, n, 0, null), e = tl(e, n, r, null), i.return = t, e.return = t, i.sibling = e, t.child = i, t.child.memoizedState = d_(r), t.memoizedState = c_, e) : Z_(t, s)); if (o = e.memoizedState, o !== null && (l = o.dehydrated, l !== null)) return bge(e, t, s, n, l, o, r); if (i) { i = n.fallback, s = t.mode, o = e.child, l = o.sibling; var u = { mode: "hidden", children: n.children }; return (s & 1) === 0 && t.child !== o ? (n = t.child, n.childLanes = 0, n.pendingProps = u, t.deletions = null) : (n = Li(o, u), n.subtreeFlags = o.subtreeFlags & 14680064), l !== null ? i = Li(l, i) : (i = tl(i, s, r, null), i.flags |= 2), i.return = t, n.return = t, n.sibling = i, t.child = n, n = i, i = t.child, s = e.child.memoizedState, s = s === null ? d_(r) : { baseLanes: s.baseLanes | r, cachePool: null, transitions: s.transitions }, i.memoizedState = s, i.childLanes = e.childLanes & ~r, t.memoizedState = c_, n; } return i = e.child, e = i.sibling, n = Li(i, { mode: "visible", children: n.children }), (t.mode & 1) === 0 && (n.lanes = r), n.return = t, n.sibling = null, e !== null && (r = t.deletions, r === null ? (t.deletions = [e], t.flags |= 16) : r.push(e)), t.child = n, t.memoizedState = null, n; } a(mq, "oj"); function Z_(e, t) { return t = Eg({ mode: "visible", children: t }, e.mode, 0, null), t.return = e, e.child = t; } a(Z_, "qj"); function T0(e, t, r, n) { return n !== null && j_(n), Yu(t, e.child, null, r), e = Z_(t, t.pendingProps.children), e.flags |= 2, t.memoizedState = null, e; } a(T0, "sj"); function bge(e, t, r, n, o, i, s) { if (r) return t.flags & 256 ? (t.flags &= -257, n = CC(Error(W(422))), T0(e, t, s, n)) : t.memoizedState !== null ? (t.child = e.child, t.flags |= 128, null) : (i = n.fallback, o = t.mode, n = Eg({ mode: "visible", children: n.children }, o, 0, null), i = tl(i, o, s, null), i.flags |= 2, n.return = t, i.return = t, n.sibling = i, t.child = n, (t.mode & 1) !== 0 && Yu(t, e.child, null, s), t.child.memoizedState = d_(s), t.memoizedState = c_, i); if ((t.mode & 1) === 0) return T0(e, t, s, null); if (o.data === "$!") { if (n = o.nextSibling && o.nextSibling.dataset, n) var l = n.dgst; return n = l, i = Error(W(419)), n = CC(i, n, void 0), T0(e, t, s, n); } if (l = (s & e.childLanes) !== 0, Xr || l) { if (n = Yt, n !== null) { switch (s & -s) { case 4: o = 2; break; case 16: o = 8; break; case 64: case 128: case 256: case 512: case 1024: case 2048: case 4096: case 8192: case 16384: case 32768: case 65536: case 131072: case 262144: case 524288: case 1048576: case 2097152: case 4194304: case 8388608: case 16777216: case 33554432: case 67108864: o = 32; break; case 536870912: o = 268435456; break; default: o = 0; } o = (o & (n.suspendedLanes | s)) !== 0 ? 0 : o, o !== 0 && o !== i.retryLane && (i.retryLane = o, Ba(e, o), Po(n, e, o, -1)); } return aP(), n = CC(Error(W(421))), T0(e, t, s, n); } return o.data === "$?" ? (t.flags |= 128, t.child = e.child, t = Mge.bind(null, e), o._reactRetry = t, null) : (e = i.treeContext, hn = Oi( o.nextSibling), gn = t, lt = !0, Co = null, e !== null && (qn[Dn++] = ka, qn[Dn++] = qa, qn[Dn++] = nl, ka = e.id, qa = e.overflow, nl = t), t = Z_(t, n.children), t.flags |= 4096, t); } a(bge, "rj"); function PL(e, t, r) { e.lanes |= t; var n = e.alternate; n !== null && (n.lanes |= t), o_(e.return, t, r); } a(PL, "vj"); function _C(e, t, r, n, o) { var i = e.memoizedState; i === null ? e.memoizedState = { isBackwards: t, rendering: null, renderingStartTime: 0, last: n, tail: r, tailMode: o } : (i.isBackwards = t, i.rendering = null, i.renderingStartTime = 0, i.last = n, i.tail = r, i.tailMode = o); } a(_C, "wj"); function hq(e, t, r) { var n = t.pendingProps, o = n.revealOrder, i = n.tail; if (Mr(e, t, n.children, r), n = dt.current, (n & 2) !== 0) n = n & 1 | 2, t.flags |= 128; else { if (e !== null && (e.flags & 128) !== 0) e: for (e = t.child; e !== null; ) { if (e.tag === 13) e.memoizedState !== null && PL(e, r, t); else if (e.tag === 19) PL(e, r, t); else if (e.child !== null) { e.child.return = e, e = e.child; continue; } if (e === t) break e; for (; e.sibling === null; ) { if (e.return === null || e.return === t) break e; e = e.return; } e.sibling.return = e.return, e = e.sibling; } n &= 1; } if (Ye(dt, n), (t.mode & 1) === 0) t.memoizedState = null; else switch (o) { case "forwards": for (r = t.child, o = null; r !== null; ) e = r.alternate, e !== null && ng(e) === null && (o = r), r = r.sibling; r = o, r === null ? (o = t.child, t.child = null) : (o = r.sibling, r.sibling = null), _C(t, !1, o, r, i); break; case "backwards": for (r = null, o = t.child, t.child = null; o !== null; ) { if (e = o.alternate, e !== null && ng(e) === null) { t.child = o; break; } e = o.sibling, o.sibling = r, r = o, o = e; } _C(t, !0, r, null, i); break; case "together": _C(t, !1, null, null, void 0); break; default: t.memoizedState = null; } return t.child; } a(hq, "xj"); function D0(e, t) { (t.mode & 1) === 0 && e !== null && (e.alternate = null, t.alternate = null, t.flags |= 2); } a(D0, "ij"); function $a(e, t, r) { if (e !== null && (t.dependencies = e.dependencies), al |= t.lanes, (r & t.childLanes) === 0) return null; if (e !== null && t.child !== e.child) throw Error(W(153)); if (t.child !== null) { for (e = t.child, r = Li(e, e.pendingProps), t.child = r, r.return = t; e.sibling !== null; ) e = e.sibling, r = r.sibling = Li(e, e.pendingProps), r.return = t; r.sibling = null; } return t.child; } a($a, "Zi"); function wge(e, t, r) { switch (t.tag) { case 3: pq(t), Gu(); break; case 5: $k(t); break; case 1: Qr(t.type) && J0(t); break; case 4: V_(t, t.stateNode.containerInfo); break; case 10: var n = t.type._context, o = t.memoizedProps.value; Ye(eg, n._currentValue), n._currentValue = o; break; case 13: if (n = t.memoizedState, n !== null) return n.dehydrated !== null ? (Ye(dt, dt.current & 1), t.flags |= 128, null) : (r & t.child.childLanes) !== 0 ? mq(e, t, r) : (Ye( dt, dt.current & 1), e = $a(e, t, r), e !== null ? e.sibling : null); Ye(dt, dt.current & 1); break; case 19: if (n = (r & t.childLanes) !== 0, (e.flags & 128) !== 0) { if (n) return hq(e, t, r); t.flags |= 128; } if (o = t.memoizedState, o !== null && (o.rendering = null, o.tail = null, o.lastEffect = null), Ye(dt, dt.current), n) break; return null; case 22: case 23: return t.lanes = 0, dq(e, t, r); } return $a(e, t, r); } a(wge, "yj"); var gq, f_, yq, vq; gq = /* @__PURE__ */ a(function(e, t) { for (var r = t.child; r !== null; ) { if (r.tag === 5 || r.tag === 6) e.appendChild(r.stateNode); else if (r.tag !== 4 && r.child !== null) { r.child.return = r, r = r.child; continue; } if (r === t) break; for (; r.sibling === null; ) { if (r.return === null || r.return === t) return; r = r.return; } r.sibling.return = r.return, r = r.sibling; } }, "zj"); f_ = /* @__PURE__ */ a(function() { }, "Aj"); yq = /* @__PURE__ */ a(function(e, t, r, n) { var o = e.memoizedProps; if (o !== n) { e = t.stateNode, Zs(ca.current); var i = null; switch (r) { case "input": o = LC(e, o), n = LC(e, n), i = []; break; case "select": o = pt({}, o, { value: void 0 }), n = pt({}, n, { value: void 0 }), i = []; break; case "textarea": o = DC(e, o), n = DC(e, n), i = []; break; default: typeof o.onClick != "function" && typeof n.onClick == "function" && (e.onclick = K0); } jC(r, n); var s; r = null; for (c in o) if (!n.hasOwnProperty(c) && o.hasOwnProperty(c) && o[c] != null) if (c === "style") { var l = o[c]; for (s in l) l.hasOwnProperty(s) && (r || (r = {}), r[s] = ""); } else c !== "dangerouslySetInnerHTML" && c !== "children" && c !== "suppressContentEditableWarning" && c !== "suppressHydrationWarnin\ g" && c !== "autoFocus" && (Df.hasOwnProperty(c) ? i || (i = []) : (i = i || []).push(c, null)); for (c in n) { var u = n[c]; if (l = o?.[c], n.hasOwnProperty(c) && u !== l && (u != null || l != null)) if (c === "style") if (l) { for (s in l) !l.hasOwnProperty(s) || u && u.hasOwnProperty(s) || (r || (r = {}), r[s] = ""); for (s in u) u.hasOwnProperty(s) && l[s] !== u[s] && (r || (r = {}), r[s] = u[s]); } else r || (i || (i = []), i.push( c, r )), r = u; else c === "dangerouslySetInnerHTML" ? (u = u ? u.__html : void 0, l = l ? l.__html : void 0, u != null && l !== u && (i = i || []). push(c, u)) : c === "children" ? typeof u != "string" && typeof u != "number" || (i = i || []).push(c, "" + u) : c !== "suppressCont\ entEditableWarning" && c !== "suppressHydrationWarning" && (Df.hasOwnProperty(c) ? (u != null && c === "onScroll" && Qe("scroll", e), i || l === u || (i = [])) : (i = i || []).push(c, u)); } r && (i = i || []).push("style", r); var c = i; (t.updateQueue = c) && (t.flags |= 4); } }, "Bj"); vq = /* @__PURE__ */ a(function(e, t, r, n) { r !== n && (t.flags |= 4); }, "Cj"); function Ef(e, t) { if (!lt) switch (e.tailMode) { case "hidden": t = e.tail; for (var r = null; t !== null; ) t.alternate !== null && (r = t), t = t.sibling; r === null ? e.tail = null : r.sibling = null; break; case "collapsed": r = e.tail; for (var n = null; r !== null; ) r.alternate !== null && (n = r), r = r.sibling; n === null ? t || e.tail === null ? e.tail = null : e.tail.sibling = null : n.sibling = null; } } a(Ef, "Dj"); function Er(e) { var t = e.alternate !== null && e.alternate.child === e.child, r = 0, n = 0; if (t) for (var o = e.child; o !== null; ) r |= o.lanes | o.childLanes, n |= o.subtreeFlags & 14680064, n |= o.flags & 14680064, o.return = e, o = o.sibling; else for (o = e.child; o !== null; ) r |= o.lanes | o.childLanes, n |= o.subtreeFlags, n |= o.flags, o.return = e, o = o.sibling; return e.subtreeFlags |= n, e.childLanes = r, t; } a(Er, "S"); function Ege(e, t, r) { var n = t.pendingProps; switch (F_(t), t.tag) { case 2: case 16: case 15: case 0: case 11: case 7: case 8: case 12: case 9: case 14: return Er(t), null; case 1: return Qr(t.type) && X0(), Er(t), null; case 3: return n = t.stateNode, Ku(), Ze(Jr), Ze(xr), G_(), n.pendingContext && (n.context = n.pendingContext, n.pendingContext = null), (e === null || e.child === null) && (_0(t) ? t.flags |= 4 : e === null || e.memoizedState.isDehydrated && (t.flags & 256) === 0 || (t.flags |= 1024, Co !== null && (w_(Co), Co = null))), f_(e, t), Er(t), null; case 5: W_(t); var o = Zs(Kf.current); if (r = t.type, e !== null && t.stateNode != null) yq(e, t, r, n, o), e.ref !== t.ref && (t.flags |= 512, t.flags |= 2097152); else { if (!n) { if (t.stateNode === null) throw Error(W(166)); return Er(t), null; } if (e = Zs(ca.current), _0(t)) { n = t.stateNode, r = t.type; var i = t.memoizedProps; switch (n[la] = t, n[Gf] = i, e = (t.mode & 1) !== 0, r) { case "dialog": Qe("cancel", n), Qe("close", n); break; case "iframe": case "object": case "embed": Qe("load", n); break; case "video": case "audio": for (o = 0; o < Pf.length; o++) Qe(Pf[o], n); break; case "source": Qe("error", n); break; case "img": case "image": case "link": Qe( "error", n ), Qe("load", n); break; case "details": Qe("toggle", n); break; case "input": k9(n, i), Qe("invalid", n); break; case "select": n._wrapperState = { wasMultiple: !!i.multiple }, Qe("invalid", n); break; case "textarea": D9(n, i), Qe("invalid", n); } jC(r, i), o = null; for (var s in i) if (i.hasOwnProperty(s)) { var l = i[s]; s === "children" ? typeof l == "string" ? n.textContent !== l && (i.suppressHydrationWarning !== !0 && C0(n.textContent, l, e), o = ["children", l]) : typeof l == "number" && n.textContent !== "" + l && (i.suppressHydrationWarning !== !0 && C0( n.textContent, l, e ), o = ["children", "" + l]) : Df.hasOwnProperty(s) && l != null && s === "onScroll" && Qe("scroll", n); } switch (r) { case "input": p0(n), q9(n, i, !0); break; case "textarea": p0(n), F9(n); break; case "select": case "option": break; default: typeof i.onClick == "function" && (n.onclick = K0); } n = o, t.updateQueue = n, n !== null && (t.flags |= 4); } else { s = o.nodeType === 9 ? o : o.ownerDocument, e === "http://www.w3.org/1999/xhtml" && (e = WL(r)), e === "http://www.w3.org/1999/x\ html" ? r === "script" ? (e = s.createElement("div"), e.innerHTML = "